티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[19973,23387],{27552:(e,t,n)=>{n.d(t,{A:()=>a});let r=new WeakMap;let RemoteInputElement=class RemoteInputElement extends HTMLElement{constructor(){super();const e=i.bind(null,this,!0),t={currentQuery:null,oninput:function(e){let t;return function(n){clearTimeout(t),t=setTimeout(()=>{clearTimeout(t),e(n)},300)}}(t=>e(t)),fetch:e,controller:null};r.set(this,t)}static get observedAttributes(){return[“src”]}attributeChangedCallback(e,t){t&&”src”===e&&i(this,!1)}connectedCallback(){let e=this.input;if(!e)return;e.setAttribute(“autocomplete”,”off”),e.setAttribute(“spellcheck”,”false”);let t=r.get(this);t&&(e.addEventListener(“focus”,t.fetch),e.addEventListener(“change”,t.fetch),e.addEventListener(“input”,t.oninput))}disconnectedCallback(){let e=this.input;if(!e)return;let t=r.get(this);t&&(e.removeEventListener(“focus”,t.fetch),e.removeEventListener(“change”,t.fetch),e.removeEventListener(“input”,t.oninput))}get input(){let e=this.querySelector(“input, textarea”);return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}get src(){return this.getAttribute(“src”)||””}set src(e){this.setAttribute(“src”,e)}};async function i(e,t,n){let i,a=e.input;if(!a)return;let l=r.get(e);if(!l)return;let s=a.value;if(t&&l.currentQuery===s)return;l.currentQuery=s;let c=e.src;if(!c)return;let u=document.getElementById(e.getAttribute(“aria-owns”)||””);if(!u)return;let d=new URL(c,window.location.href),h=new URLSearchParams(d.search);h.append(e.getAttribute(“param”)||”q”,s),d.search=h.toString(),l.controller?l.controller.abort():(e.dispatchEvent(new CustomEvent(“loadstart”)),e.setAttribute(“loading”,””)),l.controller=”AbortController”in window?new AbortController:{signal:null,abort(){}};let f=””;try{i=await o(e,d.toString(),{signal:l.controller.signal,credentials:”same-origin”,headers:{accept:”text/fragment+html”}}),f=await i.text(),e.removeAttribute(“loading”),l.controller=null}catch(t){t instanceof Error&&”AbortError”!==t.name&&(e.removeAttribute(“loading”),l.controller=null);return}i&&i.ok?(u.innerHTML=f,e.dispatchEvent(new CustomEvent(“remote-input-success”,{bubbles:!0,detail:{eventType:n?n.type:void 0}}))):e.dispatchEvent(new CustomEvent(“remote-input-error”,{bubbles:!0}))}async function o(e,t,n){try{let r=await fetch(t,n);return e.dispatchEvent(new CustomEvent(“load”)),e.dispatchEvent(new CustomEvent(“loadend”)),r}catch(t){throw t instanceof Error&&(null==t?void 0:t.name)!==”AbortError”&&(e.dispatchEvent(new CustomEvent(“error”)),e.dispatchEvent(new CustomEvent(“loadend”))),t}}let a=RemoteInputElement;window.customElements.get(“remote-input”)||(window.RemoteInputElement=RemoteInputElement,window.customElements.define(“remote-input”,RemoteInputElement))},39595:(e,t,n)=>{let r;n.d(t,{CF:()=>m,p_:()=>R,FB:()=>d,Se:()=>k,aC:()=>x,zV:()=>M});let i=new WeakSet,o=new WeakMap;function a(e=document){if(o.has(e))return o.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if(“attributes”===t.type&&t.target instanceof Element)u(t.target);else if(“childList”===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&l(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:[“data-action”]});let r={get closed(){return t},unsubscribe(){t=!0,o.delete(e),n.disconnect()}};return o.set(e,r),r}function l(e){for(let t of e.querySelectorAll(“[data-action]”))u(t);e instanceof Element&&e.hasAttribute(“data-action”)&&u(e)}function s(e){let t=e.currentTarget;for(let n of c(t))if(e.type===n.type){let r=t.closest(n.tag);i.has(r)&&”function”==typeof r[n.method]&&r[n.method](e);let o=t.getRootNode();if(o instanceof ShadowRoot&&i.has(o.host)&&o.host.matches(n.tag)){let t=o.host;”function”==typeof t[n.method]&&t[n.method](e)}}}function*c(e){for(let t of(e.getAttribute(“data-action”)||””).trim().split(/\s+/)){let e=t.lastIndexOf(“:”),n=Math.max(0,t.lastIndexOf(“#”))||t.length;yield{type:t.slice(0,e),tag:t.slice(e+1,n),method:t.slice(n+1)||”handleEvent”}}}function u(e){for(let t of c(e))e.addEventListener(t.type,s)}function d(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let r of e.shadowRoot.querySelectorAll(`[data-target~=”${n}.${t}”]`))if(!r.closest(n))return r}for(let r of e.querySelectorAll(`[data-target~=”${n}.${t}”]`))if(r.closest(n)===e)return r}let h=e=>String(“symbol”==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,”-$1″).replace(/–/g,”-“).replace(/^-|-$/,””).toLowerCase(),f=(e,t=”property”)=>{let n=h(e);if(!n.includes(“-“))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,”SyntaxError”);return n},p=”attr”;function m(e,t){T(e,p).add(t)}let b=new WeakSet;function g(e,t){if(b.has(e))return;b.add(e);let n=Object.getPrototypeOf(e),r=n?.constructor?.attrPrefix??”data-“;for(let i of(t||(t=T(n,p)),t)){let t=e[i],n=f(`${r}${i}`),o={configurable:!0,get(){return this.getAttribute(n)||””},set(e){this.setAttribute(n,e||””)}};”number”==typeof t?o={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:”boolean”==typeof t&&(o={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,i,o),i in e&&!e.hasAttribute(n)&&o.set.call(e,t)}}let w=new Map,v=new Promise(e=>{“loading”!==document.readyState?e():document.addEventListener(“readystatechange”,()=>e(),{once:!0})}),y=new Promise(e=>{let t=new AbortController;t.signal.addEventListener(“abort”,()=>e());let n={once:!0,passive:!0,signal:t.signal},r=()=>t.abort();document.addEventListener(“mousedown”,r,n),document.addEventListener(“touchstart”,r,n),document.addEventListener(“keydown”,r,n),document.addEventListener(“pointerdown”,r,n)}),E={ready:()=>v,firstInteraction:()=>y,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let r of e)if(r.isIntersecting){t(),n.disconnect();return}},{rootMargin:”0px 0px 256px 0px”,threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},C=new WeakMap;function A(e){cancelAnimationFrame(C.get(e)||0),C.set(e,requestAnimationFrame(()=>{for(let t of w.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let r=n?.getAttribute(“data-load-on”)||”ready”,i=r in E?E[r]:E.ready;for(let e of w.get(t)||[])i(t).then(e);w.delete(t),C.delete(e)}}}))}function k(e,t){for(let[n,r]of(“string”==typeof e&&t&&(e={[e]:t}),Object.entries(e)))w.has(n)||w.set(n,new Set),w.get(n).add(r);L(document)}function L(e){r||(r=new MutationObserver(e=>{if(w.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&A(e)})),A(e),r.observe(e,{subtree:!0,childList:!0})}let S=Symbol.for(“catalyst”);let CatalystDelegate=class CatalystDelegate{constructor(e){const t=this,n=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){t.connectedCallback(this,n)};const r=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){t.disconnectedCallback(this,r)};const i=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,n,r){t.attributeChangedCallback(this,e,n,r,i)};let o=e.observedAttributes||[];Object.defineProperty(e,”observedAttributes”,{configurable:!0,get(){return t.observedAttributes(this,o)},set(e){o=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??”data-“,r=e=>f(`${n}${e}`);Object.defineProperty(e,”observedAttributes”,{configurable:!0,get:()=>[…T(e.prototype,p)].map(r).concat(t),set(e){t=e}})}(e),function(e){let t=h(e.name).replace(/-element$/,””);try{window.customElements.define(t,e),window[e.name]=customElements.get(t)}catch(e){if(!(e instanceof DOMException&&”NotSupportedError”===e.name))throw e}}(e)}observedAttributes(e,t){return t}connectedCallback(e,t){var n,r;for(let t of(e.toggleAttribute(“data-catalyst”,!0),customElements.upgrade(e),e.querySelectorAll(“template[data-shadowroot]”)))t.parentElement===e&&e.attachShadow({mode:”closed”===t.getAttribute(“data-shadowroot”)?”closed”:”open”}).append(t.content.cloneNode(!0));(g(e),i.add(e),e.shadowRoot&&(l(r=e.shadowRoot),a(r)),l(e),a(e.ownerDocument),t?.call(e),e.shadowRoot)&&(l(n=e.shadowRoot),a(n),L(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,r,i){g(e),”data-catalyst”!==t&&i&&i.call(e,t,n,r)}};function T(e,t){if(!Object.prototype.hasOwnProperty.call(e,S)){let t=e[S],n=e[S]=new Map;if(t)for(let[e,r]of t)n.set(e,new Set(r))}let n=e[S];return n.has(t)||n.set(t,new Set),n.get(t)}function x(e,t){T(e,”target”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){return d(this,t)}})}function M(e,t){T(e,”targets”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){let e=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let r of this.shadowRoot.querySelectorAll(`[data-targets~=”${e}.${t}”]`))r.closest(e)||n.push(r);for(let r of this.querySelectorAll(`[data-targets~=”${e}.${t}”]`))r.closest(e)===this&&n.push(r);return n}})}function R(e){new CatalystDelegate(e)}},46493:(e,t,n)=>{n.d(t,{Cj:()=>U,iP:()=>Q});let r=”less”,i=”equal”,o=”greater”;var a,l,s,c,u,d,h,f,p,m,b,g,w,v,y,E,C,A=(e,t,n)=>{if(!t.has(e))throw TypeError(“Cannot “+n)},k=(e,t,n)=>(A(e,t,”read from private field”),n?n.call(e):t.get(e)),L=(e,t,n)=>{if(t.has(e))throw TypeError(“Cannot add the same private member more than once”);t instanceof WeakSet?t.add(e):t.set(e,n)},S=(e,t,n,r)=>(A(e,t,”write to private field”),r?r.call(e,n):t.set(e,n),n),T=(e,t,n)=>(A(e,t,”access private method”),n);let MinHeap=class MinHeap{constructor({compareFn:e}){L(this,s),L(this,u),L(this,a,void 0),L(this,l,void 0),S(this,a,e),S(this,l,[])}insert(e){k(this,l).push(e),T(this,u,d).call(this)}pop(){let e=k(this,l)[0];return k(this,l)[k(this,l).length-1]&&(k(this,l)[0]=k(this,l)[k(this,l).length-1],k(this,l).pop()),T(this,s,c).call(this),e}peek(){return k(this,l)[0]}delete(e){let t=k(this,l).indexOf(e);-1!==t&&(M(k(this,l),t,k(this,l).length-1),k(this,l).pop(),T(this,s,c).call(this))}clear(){S(this,l,[])}get size(){return k(this,l).length}};function x(e){return Math.floor((e-1)/2)}function M(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}a=new WeakMap,l=new WeakMap,s=new WeakSet,c=function(){let e=0;for(;2*e+10&&k(this,a).call(this,k(this,l)[t],(e=k(this,l),e[x(t)]))===r;)M(k(this,l),t,x(t)),t=x(t)};var R=Object.defineProperty,I=(e,t,n)=>{if(!t.has(e))throw TypeError(“Cannot “+n)},P=(e,t,n)=>(I(e,t,”read from private field”),n?n.call(e):t.get(e)),q=(e,t,n)=>{if(t.has(e))throw TypeError(“Cannot add the same private member more than once”);t instanceof WeakSet?t.add(e):t.set(e,n)},$=(e,t,n,r)=>(I(e,t,”write to private field”),r?r.call(e,n):t.set(e,n),n);let Deferred=class Deferred{constructor(){((e,t,n)=>{let r;return(r=”symbol”!=typeof t?t+””:t)in e?R(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n})(this,h,”Deferred”),q(this,f,void 0),q(this,p,void 0),q(this,m,void 0),$(this,f,new Promise((e,t)=>{$(this,p,e),$(this,m,t)}))}then(e,t){return Promise.prototype.then.apply(P(this,f),[e,t])}catch(e){return Promise.prototype.catch.apply(P(this,f),[e])}finally(e){return Promise.prototype.finally.apply(P(this,f),[e])}resolve(e){P(this,p).call(this,e)}reject(e){P(this,m).call(this,e)}getPromise(){return P(this,f)}};h=Symbol.toStringTag,f=new WeakMap,p=new WeakMap,m=new WeakMap;var O=(e,t,n)=>{if(!t.has(e))throw TypeError(“Cannot “+n)},W=(e,t,n)=>(O(e,t,”read from private field”),n?n.call(e):t.get(e)),F=(e,t,n)=>{if(t.has(e))throw TypeError(“Cannot add the same private member more than once”);t instanceof WeakSet?t.add(e):t.set(e,n)},H=(e,t,n,r)=>(O(e,t,”write to private field”),r?r.call(e,n):t.set(e,n),n),N=(e,t,n)=>(O(e,t,”access private method”),n);let LiveRegionElement=class LiveRegionElement extends HTMLElement{constructor(){if(super(),F(this,v),F(this,E),F(this,b,void 0),F(this,g,void 0),F(this,w,void 0),!this.shadowRoot){const e=(j||((j=document.createElement(“template”)).innerHTML=D),j);this.attachShadow({mode:”open”}).appendChild(e.content.cloneNode(!0))}H(this,b,!1),H(this,w,null),H(this,g,new MinHeap({compareFn:_}))}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:n,politeness:r=”polite”}=t,i=Date.now(),o=new Deferred,a={deferred:o,politeness:r,contents:e,scheduled:void 0!==n?i+n:i};return W(this,g).insert(a),N(this,v,y).call(this),{…o.getPromise(),cancel:()=>{W(this,g).delete(a),o.resolve()}}}announceFromElement(e,t){var n;let r,i=(r=””,(n=e).hasAttribute(“aria-label”)?r=n.getAttribute(“aria-label”):n.innerText?r=n.innerText:n.textContent&&(r=n.textContent),r?r.trim():””);return””!==i?this.announce(i,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!==W(this,w)&&(clearTimeout(W(this,w)),H(this,w,null)),W(this,g).clear()}};b=new WeakMap,g=new WeakMap,w=new WeakMap,v=new WeakSet,y=function(){if(W(this,b))return;let e=W(this,g).peek();if(!e)return;null!==W(this,w)&&(clearTimeout(W(this,w)),H(this,w,null));let t=Date.now();if(e.scheduled<=t){(e=W(this,g).pop())&&N(this,E,C).call(this,e),N(this,v,y).call(this);return}let n=e.scheduled-t;H(this,w,window.setTimeout(()=>{H(this,w,null),N(this,v,y).call(this)},n))},E=new WeakSet,C=function(e){H(this,b,!0);let{contents:t,deferred:n,politeness:r}=e,i=this.shadowRoot?.getElementById(r);if(!i)throw H(this,b,!1),Error(`Unable to find container for message. Expected a container with id=”${r}”`);i.textContent===t?i.textContent=`${t}\xa0`:i.textContent=t,null!==W(this,w)&&clearTimeout(W(this,w)),n.resolve(),this.delay>0?H(this,w,window.setTimeout(()=>{H(this,w,null),H(this,b,!1),N(this,v,y).call(this)},this.delay)):(H(this,w,null),H(this,b,!1),N(this,v,y).call(this))};let j=null,D=`
`;function _(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?i:e.scheduled{r=!0};return{…Z(X).then(()=>{if(!r){let r=n.announce(e,t);return i=r.cancel,r}}),cancel:()=>{i()}}}return n.announce(e,t)}function U(e,t={}){let n=z(t.from);if(!n){n=document.createElement(“live-region”),t.appendTo?t.appendTo.appendChild(n):V(t.from).appendChild(n);let r=!1,i=()=>{r=!0};return{…Z(X).then(()=>{if(!r){let r=n.announceFromElement(e,t);return i=r.cancel,r}}),cancel:()=>{i()}}}return n.announceFromElement(e,t)}function z(e){let t=null;return null!==(t=e?function(e){let t=e.closest(“dialog”),n=e;for(;(n=n.parentElement)&&(!t||t.contains(n));)for(let e of n.childNodes)if(e instanceof LiveRegionElement)return e;return null}(e):null)||null!==(t=V(e).querySelector(“live-region”))?t:null}function V(e){let t=document.body;if(e){let n=e.closest(“dialog”);n&&(t=n)}return t}customElements.get(“live-region”)||customElements.define(“live-region”,LiveRegionElement);let X=150;function Z(e){return new Promise(t=>{setTimeout(t,e)})}},62044:(e,t,n)=>{n.d(t,{A:()=>o});let FilterInputElement=class FilterInputElement extends HTMLElement{constructor(){super(),this.currentQuery=null,this.filter=null,this.debounceInputChange=function(e){let t;return function(){clearTimeout(t),t=setTimeout(()=>{clearTimeout(t),e()},300)}}(()=>r(this,!0)),this.boundFilterResults=()=>{r(this,!1)}}static get observedAttributes(){return[“aria-owns”]}attributeChangedCallback(e,t){t&&”aria-owns”===e&&r(this,!1)}connectedCallback(){let e=this.input;e&&(e.setAttribute(“autocomplete”,”off”),e.setAttribute(“spellcheck”,”false”),e.addEventListener(“focus”,this.boundFilterResults),e.addEventListener(“change”,this.boundFilterResults),e.addEventListener(“input”,this.debounceInputChange))}disconnectedCallback(){let e=this.input;e&&(e.removeEventListener(“focus”,this.boundFilterResults),e.removeEventListener(“change”,this.boundFilterResults),e.removeEventListener(“input”,this.debounceInputChange))}get input(){let e=this.querySelector(“input”);return e instanceof HTMLInputElement?e:null}reset(){let e=this.input;e&&(e.value=””,e.dispatchEvent(new Event(“change”,{bubbles:!0})))}};async function r(e,t=!1){var n,o,a,l,s;let c,u,d,h=e.input;if(!h)return;let f=h.value.trim(),p=e.getAttribute(“aria-owns”);if(!p)return;let m=document.getElementById(p);if(!m)return;let b=m.hasAttribute(“data-filter-list”)?m:m.querySelector(“[data-filter-list]”);if(!b||(e.dispatchEvent(new CustomEvent(“filter-input-start”,{bubbles:!0})),t&&e.currentQuery===f))return;e.currentQuery=f;let g=e.filter||i,w=b.childElementCount,v=0,y=!1;for(let e of Array.from(b.children)){if(!(e instanceof HTMLElement))continue;let t=(((n=e).querySelector(“[data-filter-item-text]”)||n).textContent||””).trim(),r=g(e,t,f);!0===r.hideNew&&(y=r.hideNew),e.hidden=!r.match,r.match&&v++}let E=m.querySelector(“[data-filter-new-item]”),C=!!E&&f.length>0&&!y;E instanceof HTMLElement&&(E.hidden=!C,C&&(o=E,a=f,(c=o.querySelector(“[data-filter-new-item-text]”))&&(c.textContent=a),((u=o.querySelector(“[data-filter-new-item-value]”))instanceof HTMLInputElement||u instanceof HTMLButtonElement)&&(u.value=a))),l=m,s=v>0||C,(d=l.querySelector(“[data-filter-empty-state]”))instanceof HTMLElement&&(d.hidden=s),e.dispatchEvent(new CustomEvent(“filter-input-updated”,{bubbles:!0,detail:{count:v,total:w}}))}function i(e,t,n){return{match:-1!==t.toLowerCase().indexOf(n.toLowerCase()),hideNew:t===n}}let o=FilterInputElement;window.customElements.get(“filter-input”)||(window.FilterInputElement=FilterInputElement,window.customElements.define(“filter-input”,FilterInputElement))},91385:(e,t,n)=>{n.d(t,{Xq:()=>l,ai:()=>i,fN:()=>a,qA:()=>s});var r=-1/0,i=1/0;function o(e,t,n,i){for(var o=e.length,a=t.length,l=e.toLowerCase(),s=t.toLowerCase(),c=function(e){for(var t=e.length,n=Array(t),r=”/”,i=0;i1024)return r;var l=Array(n),s=Array(n);return o(e,t,l,s),s[n-1][a-1]}function l(e,t){var n=e.length,i=t.length,a=Array(n);if(!n||!i)return a;if(n===i){for(var l=0;l1024)return a;var s=Array(n),c=Array(n);o(e,t,s,c);for(var u=!1,l=n-1,d=i-1;l>=0;l–)for(;d>=0;d–)if(s[l][d]!==r&&(u||s[l][d]===c[l][d])){u=l&&d&&c[l][d]===s[l-1][d-1]+1,a[l]=d–;break}return a}function s(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var n=e.length,r=0,i=0;r