티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[90780],{46493:(e,t,i)=>{i.d(t,{Cj:()=>z,iP:()=>O});let n=”less”,s=”equal”,o=”greater”;var l,r,a,h,c,u,d,p,m,f,g,y,v,w,b,E,T,C=(e,t,i)=>{if(!t.has(e))throw TypeError(“Cannot “+i)},M=(e,t,i)=>(C(e,t,”read from private field”),i?i.call(e):t.get(e)),x=(e,t,i)=>{if(t.has(e))throw TypeError(“Cannot add the same private member more than once”);t instanceof WeakSet?t.add(e):t.set(e,i)},k=(e,t,i,n)=>(C(e,t,”write to private field”),n?n.call(e,i):t.set(e,i),i),S=(e,t,i)=>(C(e,t,”access private method”),i);let MinHeap=class MinHeap{constructor({compareFn:e}){x(this,a),x(this,c),x(this,l,void 0),x(this,r,void 0),k(this,l,e),k(this,r,[])}insert(e){M(this,r).push(e),S(this,c,u).call(this)}pop(){let e=M(this,r)[0];return M(this,r)[M(this,r).length-1]&&(M(this,r)[0]=M(this,r)[M(this,r).length-1],M(this,r).pop()),S(this,a,h).call(this),e}peek(){return M(this,r)[0]}delete(e){let t=M(this,r).indexOf(e);-1!==t&&(D(M(this,r),t,M(this,r).length-1),M(this,r).pop(),S(this,a,h).call(this))}clear(){k(this,r,[])}get size(){return M(this,r).length}};function W(e){return Math.floor((e-1)/2)}function D(e,t,i){let n=e[t];e[t]=e[i],e[i]=n}l=new WeakMap,r=new WeakMap,a=new WeakSet,h=function(){let e=0;for(;2*e+10&&M(this,l).call(this,M(this,r)[t],(e=M(this,r),e[W(t)]))===n;)D(M(this,r),t,W(t)),t=W(t)};var q=Object.defineProperty,N=(e,t,i)=>{if(!t.has(e))throw TypeError(“Cannot “+i)},P=(e,t,i)=>(N(e,t,”read from private field”),i?i.call(e):t.get(e)),R=(e,t,i)=>{if(t.has(e))throw TypeError(“Cannot add the same private member more than once”);t instanceof WeakSet?t.add(e):t.set(e,i)},L=(e,t,i,n)=>(N(e,t,”write to private field”),n?n.call(e,i):t.set(e,i),i);let Deferred=class Deferred{constructor(){((e,t,i)=>{let n;return(n=”symbol”!=typeof t?t+””:t)in e?q(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i})(this,d,”Deferred”),R(this,p,void 0),R(this,m,void 0),R(this,f,void 0),L(this,p,new Promise((e,t)=>{L(this,m,e),L(this,f,t)}))}then(e,t){return Promise.prototype.then.apply(P(this,p),[e,t])}catch(e){return Promise.prototype.catch.apply(P(this,p),[e])}finally(e){return Promise.prototype.finally.apply(P(this,p),[e])}resolve(e){P(this,m).call(this,e)}reject(e){P(this,f).call(this,e)}getPromise(){return P(this,p)}};d=Symbol.toStringTag,p=new WeakMap,m=new WeakMap,f=new WeakMap;var _=(e,t,i)=>{if(!t.has(e))throw TypeError(“Cannot “+i)},A=(e,t,i)=>(_(e,t,”read from private field”),i?i.call(e):t.get(e)),H=(e,t,i)=>{if(t.has(e))throw TypeError(“Cannot add the same private member more than once”);t instanceof WeakSet?t.add(e):t.set(e,i)},I=(e,t,i,n)=>(_(e,t,”write to private field”),n?n.call(e,i):t.set(e,i),i),$=(e,t,i)=>(_(e,t,”access private method”),i);let LiveRegionElement=class LiveRegionElement extends HTMLElement{constructor(){if(super(),H(this,w),H(this,E),H(this,g,void 0),H(this,y,void 0),H(this,v,void 0),!this.shadowRoot){const e=(F||((F=document.createElement(“template”)).innerHTML=U),F);this.attachShadow({mode:”open”}).appendChild(e.content.cloneNode(!0))}I(this,g,!1),I(this,v,null),I(this,y,new MinHeap({compareFn:j}))}get delay(){let e=this.getAttribute(“delay”);return e?parseInt(e,10):150}set delay(e){this.setAttribute(“delay”,`${e}`)}announce(e,t={}){let{delayMs:i,politeness:n=”polite”}=t,s=Date.now(),o=new Deferred,l={deferred:o,politeness:n,contents:e,scheduled:void 0!==i?s+i:s};return A(this,y).insert(l),$(this,w,b).call(this),{…o.getPromise(),cancel:()=>{A(this,y).delete(l),o.resolve()}}}announceFromElement(e,t){var i;let n,s=(n=””,(i=e).hasAttribute(“aria-label”)?n=i.getAttribute(“aria-label”):i.innerText?n=i.innerText:i.textContent&&(n=i.textContent),n?n.trim():””);return””!==s?this.announce(s,t):{…Promise.resolve(),cancel:B}}getMessage(e=”polite”){let t=this.shadowRoot?.getElementById(e);if(!t)throw Error(“Unable to find container for message”);return t.textContent}clear(){null!==A(this,v)&&(clearTimeout(A(this,v)),I(this,v,null)),A(this,y).clear()}};g=new WeakMap,y=new WeakMap,v=new WeakMap,w=new WeakSet,b=function(){if(A(this,g))return;let e=A(this,y).peek();if(!e)return;null!==A(this,v)&&(clearTimeout(A(this,v)),I(this,v,null));let t=Date.now();if(e.scheduled<=t){(e=A(this,y).pop())&&$(this,E,T).call(this,e),$(this,w,b).call(this);return}let i=e.scheduled-t;I(this,v,window.setTimeout(()=>{I(this,v,null),$(this,w,b).call(this)},i))},E=new WeakSet,T=function(e){I(this,g,!0);let{contents:t,deferred:i,politeness:n}=e,s=this.shadowRoot?.getElementById(n);if(!s)throw I(this,g,!1),Error(`Unable to find container for message. Expected a container with id=”${n}”`);s.textContent===t?s.textContent=`${t}\xa0`:s.textContent=t,null!==A(this,v)&&clearTimeout(A(this,v)),i.resolve(),this.delay>0?I(this,v,window.setTimeout(()=>{I(this,v,null),I(this,g,!1),$(this,w,b).call(this)},this.delay)):(I(this,v,null),I(this,g,!1),$(this,w,b).call(this))};let F=null,U=`
`;function j(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?s:e.scheduled{n=!0};return{…K(J).then(()=>{if(!n){let n=i.announce(e,t);return s=n.cancel,n}}),cancel:()=>{s()}}}return i.announce(e,t)}function z(e,t={}){let i=Q(t.from);if(!i){i=document.createElement(“live-region”),t.appendTo?t.appendTo.appendChild(i):G(t.from).appendChild(i);let n=!1,s=()=>{n=!0};return{…K(J).then(()=>{if(!n){let n=i.announceFromElement(e,t);return s=n.cancel,n}}),cancel:()=>{s()}}}return i.announceFromElement(e,t)}function Q(e){let t=null;return null!==(t=e?function(e){let t=e.closest(“dialog”),i=e;for(;(i=i.parentElement)&&(!t||t.contains(i));)for(let e of i.childNodes)if(e instanceof LiveRegionElement)return e;return null}(e):null)||null!==(t=G(e).querySelector(“live-region”))?t:null}function G(e){let t=document.body;if(e){let i=e.closest(“dialog”);i&&(t=i)}return t}customElements.get(“live-region”)||customElements.define(“live-region”,LiveRegionElement);let J=150;function K(e){return new Promise(t=>{setTimeout(t,e)})}},89272:()=>{if(void 0!==globalThis.Element&&void 0!==globalThis.Document&&(!(“ariaNotify”in Element.prototype)||!(“ariaNotify”in Document.prototype))){let e=`${Date.now()}`;try{e=crypto.randomUUID()}catch{}let t=Symbol(),i=`live-region-${e}`;let Message=class Message{element;message;priority=”normal”;constructor({element:e,message:t,priority:i=”normal”}){this.element=e,this.message=t,this.priority=i}#e(){return this.element.isConnected&&!this.element.closest(“[inert]”)&&(this.element.ownerDocument.querySelector(CSS.supports(“selector(:modal)”)?”:modal”:”dialog[open]”)?.contains(this.element)??!0)}async announce(){if(!this.#e())return;let e=this.element.closest(“dialog”)||this.element.closest(“[role=’dialog’]”)||this.element.getRootNode();(!e||e instanceof Document)&&(e=document.body);let n=e.querySelector(i);n||(n=document.createElement(i),e.append(n)),await new Promise(e=>setTimeout(e,250)),n.handleMessage(t,this.message)}};let n=new class MessageQueue{#t=[];#i;enqueue(e){let{priority:t}=e;if(“high”===t){let t=this.#t.findLastIndex(e=>”high”===e.priority);this.#t.splice(t+1,0,e)}else this.#t.push(e);this.#i||this.#n()}async #n(){this.#i=this.#t.shift(),this.#i&&(await this.#i.announce(),this.#n())}};let LiveRegionCustomElement=class LiveRegionCustomElement extends HTMLElement{#s=this.attachShadow({mode:”closed”});connectedCallback(){this.ariaLive=”polite”,this.ariaAtomic=”true”,this.style.marginLeft=”-1px”,this.style.marginTop=”-1px”,this.style.position=”absolute”,this.style.width=”1px”,this.style.height=”1px”,this.style.overflow=”hidden”,this.style.clipPath=”rect(0 0 0 0)”,this.style.overflowWrap=”normal”}handleMessage(e=null,i=””){t===e&&(this.#s.textContent==i&&(i+=”\xa0″),this.#s.textContent=i)}};customElements.define(i,LiveRegionCustomElement),”ariaNotify”in Element.prototype||(Element.prototype.ariaNotify=function(e,{priority:t=”normal”}={}){n.enqueue(new Message({element:this,message:e,priority:t}))}),”ariaNotify”in Document.prototype||(Document.prototype.ariaNotify=function(e,{priority:t=”normal”}={}){n.enqueue(new Message({element:this.documentElement,message:e,priority:t}))})}}}]); //# sourceMappingURL=90780-762bb712b909.js.map