티스토리 수익 글 보기
performance.mark(“js-parse-end:96504-716c5bcb0dacbbdd.js”);
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“96504”],{95493(t,e,i){function n(t,e){return r(function(t){if(t.activeElement!==t.body)return t.activeElement;var e=t.querySelectorAll(“:hover”),i=e.length;if(i)return e[i-1]}(t),e)}function r(t,e){var i=t;if(!i)return Promise.resolve(e());var n=i.ownerDocument.documentElement,r=function(t){for(var e=[];t;){var i=t.getBoundingClientRect(),n=i.top,r=i.left;e.push({element:t,top:n,left:r}),t=t.parentElement}return e}(i);return Promise.resolve(e()).then(function(t){var e=function(t){for(var e=0;en,_H:()=>r})},97088(t,e,i){i.d(e,{s:()=>o});let n=[“utm_source”,”utm_medium”,”utm_campaign”,”utm_term”,”utm_content”,”scid”];var r=i(36301);class o{constructor(t){this.options=t,this.eventBatch=[],this.idleCallbackId=null,this.waitTimerId=null,this.onVisibilityChange=()=>{“hidden”===document.visibilityState&&this.flushBatch()},this.boundFlush=()=>this.flushBatch(),”u”>typeof document&&document.addEventListener(“visibilitychange”,this.onVisibilityChange),”u”>typeof window&&window.addEventListener(“pagehide”,this.boundFlush)}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:(0,r.y)()}get maxBatchSize(){return this.options.maxBatchSize??10}get idleTimeout(){return this.options.idleTimeout??1e3}createEvent(t){return{page:location.href,title:document.title,context:{…this.options.baseContext,…function(){let t={};try{for(let[e,i]of new URLSearchParams(window.location.search)){let r=e.toLowerCase();n.includes(r)&&(t[r]=i)}return t}catch(t){return{}}}(),…t}}}sendPageView(t){let e=this.createEvent(t);this.send({page_views:[e]})}sendEvent(t,e){let i={…this.createEvent(e),type:t};this.send({events:[i]})}sendBatchedEvent(t,e){let i={…this.createEvent(e),type:t};this.eventBatch.push(i),this.eventBatch.length>=this.maxBatchSize?this.flushBatch():this.scheduleFlush()}flushBatch(){if(0===this.eventBatch.length)return;this.cancelScheduledFlush();let t=this.eventBatch;this.eventBatch=[],this.send({events:t})}destroy(){this.flushBatch(),”u”>typeof document&&document.removeEventListener(“visibilitychange”,this.onVisibilityChange),”u”>typeof window&&window.removeEventListener(“pagehide”,this.boundFlush)}scheduleFlush(){null===this.idleCallbackId&&null===this.waitTimerId&&(this.waitTimerId=setTimeout(()=>{this.waitTimerId=null,”function”==typeof requestIdleCallback?this.idleCallbackId=requestIdleCallback(this.boundFlush):this.boundFlush()},this.idleTimeout))}cancelScheduledFlush(){null!==this.idleCallbackId&&(“function”==typeof cancelIdleCallback&&cancelIdleCallback(this.idleCallbackId),this.idleCallbackId=null),null!==this.waitTimerId&&(clearTimeout(this.waitTimerId),this.waitTimerId=null)}send({page_views:t,events:e}){let i=JSON.stringify({client_id:this.clientId,page_views:t,events:e,request_context:{referrer:function(){let t;try{t=window.top.document.referrer}catch(e){if(window.parent)try{t=window.parent.document.referrer}catch(t){}}return””===t&&(t=document.referrer),t}(),user_agent:navigator.userAgent,screen_resolution:function(){try{return`${screen.width}x${screen.height}`}catch(t){return”unknown”}}(),browser_resolution:function(){let t=0,e=0;try{return”number”==typeof window.innerWidth?(e=window.innerWidth,t=window.innerHeight):null!=document.documentElement&&null!=document.documentElement.clientWidth?(e=document.documentElement.clientWidth,t=document.documentElement.clientHeight):null!=document.body&&null!=document.body.clientWidth&&(e=document.body.clientWidth,t=document.body.clientHeight),`${e}x${t}`}catch(t){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,i)}catch{}fetch(this.collectorUrl,{method:”POST”,cache:”no-cache”,headers:{“Content-Type”:”application/json”},body:i,keepalive:!1})}}},36301(t,e,i){let n;function r(){return`${Math.round(0x7fffffff*Math.random())}.${Math.round(Date.now()/1e3)}`}function o(){try{let t=function(){let t,e=document.cookie.match(/_octo=([^;]+)/g);if(!e)return;let i=[0,0];for(let n of e){let[,e]=n.split(“=”),[,r,…o]=e.split(“.”),a=r.split(“-“).map(Number);a>i&&(i=a,t=o.join(“.”))}return t}();if(t)return t;let e=r();return!function(t){let e=`GH1.1.${t}`,i=new Date(Date.now()+31536e6).toUTCString(),{domain:n}=document;n.endsWith(“.github.com”)&&(n=”github.com”),document.cookie=`_octo=${e}; expires=${i}; path=/; domain=${n}; secure; samesite=lax`}(e),e}catch(t){return n||(n=r()),n}}i.d(e,{y:()=>o})},70837(t,e,i){i.d(e,{O:()=>n});function n(t=”ha”){let e,i={};for(let n of Array.from(document.head.querySelectorAll(`meta[name^=”${t}-“]`))){let{name:r,content:o}=n,a=r.replace(`${t}-`,””).replace(/-/g,”_”);”url”===a?e=o:i[a]=o}if(!e)throw Error(`AnalyticsClient ${t}-url meta tag not found`);return{collectorUrl:e,…Object.keys(i).length>0?{baseContext:i}:{}}}},28078(t,e,i){i.d(e,{T:()=>p});var n,r,o,a,s,l,c,h,u=function(t,e,i,n){if(“a”===i&&!n)throw TypeError(“Private accessor was defined without a getter”);if(“function”==typeof e?t!==e||!n:!e.has(t))throw TypeError(“Cannot read private member from an object whose class did not declare it”);return”m”===i?n:”a”===i?n.call(t):n?n.value:e.get(t)},d=function(t,e,i,n,r){if(“m”===n)throw TypeError(“Private method is not writable”);if(“a”===n&&!r)throw TypeError(“Private accessor was defined without a setter”);if(“function”==typeof e?t!==e||!r:!e.has(t))throw TypeError(“Cannot write private member to an object whose class did not declare it”);return”a”===n?r.call(t,i):r?r.value=i:e.set(t,i),i};let f=new WeakMap,m=null;class p extends HTMLElement{constructor(){super(…arguments),n.add(this),r.set(this,!1),o.set(this,new IntersectionObserver(t=>{for(let e of t)if(e.isIntersecting){let{target:t}=e;if(u(this,o,”f”).unobserve(t),!(t instanceof p))return;”lazy”===t.loading&&u(this,n,”m”,a).call(this)}},{rootMargin:”0px 0px 256px 0px”,threshold:.01}))}static define(t=”include-fragment”,e=customElements){return e.define(t,this),this}static setCSPTrustedTypesPolicy(t){m=null===t?t:Promise.resolve(t)}static get observedAttributes(){return[“src”,”loading”]}get src(){let t=this.getAttribute(“src”);if(!t)return””;{let e=this.ownerDocument.createElement(“a”);return e.href=t,e.href}}set src(t){this.setAttribute(“src”,t)}get loading(){return”lazy”===this.getAttribute(“loading”)?”lazy”:”eager”}set loading(t){this.setAttribute(“loading”,t)}get accept(){return this.getAttribute(“accept”)||””}set accept(t){this.setAttribute(“accept”,t)}get data(){return u(this,n,”m”,l).call(this)}attributeChangedCallback(t,e){“src”===t?this.isConnected&&”eager”===this.loading&&u(this,n,”m”,a).call(this):”loading”===t&&this.isConnected&&”eager”!==e&&”eager”===this.loading&&u(this,n,”m”,a).call(this)}connectedCallback(){if(!this.shadowRoot){this.attachShadow({mode:”open”});let t=document.createElement(“style”);t.textContent=”:host {display: block;}”,this.shadowRoot.append(t,document.createElement(“slot”))}this.src&&”eager”===this.loading&&u(this,n,”m”,a).call(this),”lazy”===this.loading&&u(this,o,”f”).observe(this)}request(){let t=this.src;if(!t)throw Error(“missing src”);return new Request(t,{method:”GET”,credentials:”same-origin”,headers:{Accept:this.accept||”text/html”}})}load(){return u(this,n,”m”,l).call(this)}fetch(t){return fetch(t)}refetch(){f.delete(this),u(this,n,”m”,a).call(this)}}r=new WeakMap,o=new WeakMap,n=new WeakSet,a=async function(){if(!u(this,r,”f”)){d(this,r,!0,”f”),u(this,o,”f”).unobserve(this);try{let t=await u(this,n,”m”,s).call(this);if(t instanceof Error)throw t;let e=document.createElement(“template”);e.innerHTML=t;let i=document.importNode(e.content,!0);if(!this.dispatchEvent(new CustomEvent(“include-fragment-replace”,{cancelable:!0,detail:{fragment:i}})))return void d(this,r,!1,”f”);this.replaceWith(i),this.dispatchEvent(new CustomEvent(“include-fragment-replaced”))}catch(t){this.classList.add(“is-error”)}finally{d(this,r,!1,”f”)}}},s=async function(){let t=this.src,e=f.get(this);if(e&&e.src===t)return e.data;{let e;return e=t?u(this,n,”m”,h).call(this):Promise.reject(Error(“missing src”)),f.set(this,{src:t,data:e}),e}},l=async function(){let t=await u(this,n,”m”,s).call(this);if(t instanceof Error)throw t;return t.toString()},c=async function(t,e){for(let i of(await new Promise(t=>setTimeout(t,0)),t))this.dispatchEvent(e?new CustomEvent(i,{detail:{error:e}}):new Event(i))},h=async function(){try{var t;await u(this,n,”m”,c).call(this,[“loadstart”]);let e=await this.fetch(this.request()),i=e.headers.get(“Content-Type”);if(!((t=this.accept)&&t.split(“,”).find(t=>t.match(/^\s*\*\/\*/)))&&(!i||!i.includes(this.accept?this.accept:”text/html”)))throw Error(`Failed to load resource: expected ${this.accept||”text/html”} but was ${i}`);if(200!==e.status)throw Error(`Failed to load resource: the server responded with a status of ${e.status}`);let r=await e.text(),o=r;return m&&(o=(await m).createHTML(r,e)),u(this,n,”m”,c).call(this,[“load”,”loadend”]),o}catch(t){throw u(this,n,”m”,c).call(this,[“error”,”loadend”],t),t}};let g=”u”>typeof globalThis?globalThis:window;try{g.IncludeFragmentElement=p.define()}catch(t){if(!(g.DOMException&&t instanceof DOMException&&”NotSupportedError”===t.name)&&!(t instanceof ReferenceError))throw t}}}]);
//# sourceMappingURL=96504-716c5bcb0dacbbdd-97b21529cf4c432d.js.map