티스토리 수익 글 보기
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[19973,66946],{18679:(e,t,n)=>{n.d(t,{s:()=>AnalyticsClient});let o=[“utm_source”,”utm_medium”,”utm_campaign”,”utm_term”,”utm_content”,”scid”];var r=n(36301);let AnalyticsClient=class AnalyticsClient{constructor(e){this.options=e}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:(0,r.y)()}createEvent(e){return{page:location.href,title:document.title,context:{…this.options.baseContext,…function(){let e={};try{for(let[t,n]of new URLSearchParams(window.location.search)){let r=t.toLowerCase();o.includes(r)&&(e[r]=n)}return e}catch(e){return{}}}(),…e}}}sendPageView(e){let t=this.createEvent(e);this.send({page_views:[t]})}sendEvent(e,t){let n={…this.createEvent(t),type:e};this.send({events:[n]})}send({page_views:e,events:t}){let n=JSON.stringify({client_id:this.clientId,page_views:e,events:t,request_context:{referrer:function(){let e;try{e=window.top.document.referrer}catch(t){if(window.parent)try{e=window.parent.document.referrer}catch(e){}}return””===e&&(e=document.referrer),e}(),user_agent:navigator.userAgent,screen_resolution:function(){try{return`${screen.width}x${screen.height}`}catch(e){return”unknown”}}(),browser_resolution:function(){let e=0,t=0;try{return”number”==typeof window.innerWidth?(t=window.innerWidth,e=window.innerHeight):null!=document.documentElement&&null!=document.documentElement.clientWidth?(t=document.documentElement.clientWidth,e=document.documentElement.clientHeight):null!=document.body&&null!=document.body.clientWidth&&(t=document.body.clientWidth,e=document.body.clientHeight),`${t}x${e}`}catch(e){return”unknown”}}(),browser_languages:navigator.languages?navigator.languages.join(“,”):navigator.language||””,pixel_ratio:window.devicePixelRatio,timestamp:Date.now(),tz_seconds:-60*new Date().getTimezoneOffset()}});try{if(navigator.sendBeacon)return void navigator.sendBeacon(this.collectorUrl,n)}catch{}fetch(this.collectorUrl,{method:”POST”,cache:”no-cache”,headers:{“Content-Type”:”application/json”},body:n,keepalive:!1})}}},37351:(e,t,n)=>{n.d(t,{_:()=>o});function o(e,t){if(e!==t)throw TypeError(“Private static access of wrong provenance”)}},39595:(e,t,n)=>{let o;n.d(t,{CF:()=>m,p_:()=>P,FB:()=>u,Se:()=>k,aC:()=>O,zV:()=>x});let r=new WeakSet,a=new WeakMap;function i(e=document){if(a.has(e))return a.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if(“attributes”===t.type&&t.target instanceof Element)d(t.target);else if(“childList”===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&c(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:[“data-action”]});let o={get closed(){return t},unsubscribe(){t=!0,a.delete(e),n.disconnect()}};return a.set(e,o),o}function c(e){for(let t of e.querySelectorAll(“[data-action]”))d(t);e instanceof Element&&e.hasAttribute(“data-action”)&&d(e)}function l(e){let t=e.currentTarget;for(let n of s(t))if(e.type===n.type){let o=t.closest(n.tag);r.has(o)&&”function”==typeof o[n.method]&&o[n.method](e);let a=t.getRootNode();if(a instanceof ShadowRoot&&r.has(a.host)&&a.host.matches(n.tag)){let t=a.host;”function”==typeof t[n.method]&&t[n.method](e)}}}function*s(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 d(e){for(let t of s(e))e.addEventListener(t.type,l)}function u(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let o of e.shadowRoot.querySelectorAll(`[data-target~=”${n}.${t}”]`))if(!o.closest(n))return o}for(let o of e.querySelectorAll(`[data-target~=”${n}.${t}”]`))if(o.closest(n)===e)return o}let f=e=>String(“symbol”==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,”-$1″).replace(/–/g,”-“).replace(/^-|-$/,””).toLowerCase(),h=(e,t=”property”)=>{let n=f(e);if(!n.includes(“-“))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,”SyntaxError”);return n},g=”attr”;function m(e,t){_(e,g).add(t)}let b=new WeakSet;function p(e,t){if(b.has(e))return;b.add(e);let n=Object.getPrototypeOf(e),o=n?.constructor?.attrPrefix??”data-“;for(let r of(t||(t=_(n,g)),t)){let t=e[r],n=h(`${o}${r}`),a={configurable:!0,get(){return this.getAttribute(n)||””},set(e){this.setAttribute(n,e||””)}};”number”==typeof t?a={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:”boolean”==typeof t&&(a={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,r,a),r in e&&!e.hasAttribute(n)&&a.set.call(e,t)}}let w=new Map,y=new Promise(e=>{“loading”!==document.readyState?e():document.addEventListener(“readystatechange”,()=>e(),{once:!0})}),v=new Promise(e=>{let t=new AbortController;t.signal.addEventListener(“abort”,()=>e());let n={once:!0,passive:!0,signal:t.signal},o=()=>t.abort();document.addEventListener(“mousedown”,o,n),document.addEventListener(“touchstart”,o,n),document.addEventListener(“keydown”,o,n),document.addEventListener(“pointerdown”,o,n)}),A={ready:()=>y,firstInteraction:()=>v,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let o of e)if(o.isIntersecting){t(),n.disconnect();return}},{rootMargin:”0px 0px 256px 0px”,threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},E=new WeakMap;function C(e){cancelAnimationFrame(E.get(e)||0),E.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 o=n?.getAttribute(“data-load-on”)||”ready”,r=o in A?A[o]:A.ready;for(let e of w.get(t)||[])r(t).then(e);w.delete(t),E.delete(e)}}}))}function k(e,t){for(let[n,o]of(“string”==typeof e&&t&&(e={[e]:t}),Object.entries(e)))w.has(n)||w.set(n,new Set),w.get(n).add(o);S(document)}function S(e){o||(o=new MutationObserver(e=>{if(w.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&C(e)})),C(e),o.observe(e,{subtree:!0,childList:!0})}let $=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 o=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){t.disconnectedCallback(this,o)};const r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,n,o){t.attributeChangedCallback(this,e,n,o,r)};let a=e.observedAttributes||[];Object.defineProperty(e,”observedAttributes”,{configurable:!0,get(){return t.observedAttributes(this,a)},set(e){a=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??”data-“,o=e=>h(`${n}${e}`);Object.defineProperty(e,”observedAttributes”,{configurable:!0,get:()=>[…_(e.prototype,g)].map(o).concat(t),set(e){t=e}})}(e),function(e){let t=f(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,o;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));(p(e),r.add(e),e.shadowRoot&&(c(o=e.shadowRoot),i(o)),c(e),i(e.ownerDocument),t?.call(e),e.shadowRoot)&&(c(n=e.shadowRoot),i(n),S(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,o,r){p(e),”data-catalyst”!==t&&r&&r.call(e,t,n,o)}};function _(e,t){if(!Object.prototype.hasOwnProperty.call(e,$)){let t=e[$],n=e[$]=new Map;if(t)for(let[e,o]of t)n.set(e,new Set(o))}let n=e[$];return n.has(t)||n.set(t,new Set),n.get(t)}function O(e,t){_(e,”target”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){return u(this,t)}})}function x(e,t){_(e,”targets”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){let e=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let o of this.shadowRoot.querySelectorAll(`[data-targets~=”${e}.${t}”]`))o.closest(e)||n.push(o);for(let o of this.querySelectorAll(`[data-targets~=”${e}.${t}”]`))o.closest(e)===this&&n.push(o);return n}})}function P(e){new CatalystDelegate(e)}},45062:(e,t,n)=>{n.d(t,{s:()=>r});var o=n(70170);function r(e=0,t={}){return(n,r,a)=>{if(!a||”function”!=typeof a.value)throw Error(“debounce can only decorate functions”);let i=a.value;a.value=(0,o.s)(i,e,t),Object.defineProperty(n,r,a)}}},70837:(e,t,n)=>{n.d(t,{O:()=>o});function o(e=”ha”){let t,n={};for(let o of Array.from(document.head.querySelectorAll(`meta[name^=”${e}-“]`))){let{name:r,content:a}=o,i=r.replace(`${e}-`,””).replace(/-/g,”_”);”url”===i?t=a:n[i]=a}if(!t)throw Error(`AnalyticsClient ${e}-url meta tag not found`);return{collectorUrl:t,…Object.keys(n).length>0?{baseContext:n}:{}}}}}]);
//# sourceMappingURL=66946-65a91c1e304d.js.map