티스토리 수익 글 보기
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“scanning”,”vendors-node_modules_delegated-events_dist_index_js-node_modules_github_memoize_dist_esm_inde-455471″],{97797:(e,t,n)=>{function i(){if(!(this instanceof i))return new i;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}n.d(t,{h:()=>_,on:()=>C});var r,o=window.document.documentElement,s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector;i.prototype.matchesSelector=function(e,t){return s.call(e,t)},i.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},i.prototype.indexes=[];var a=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;i.prototype.indexes.push({name:”ID”,selector:function(e){var t;if(t=e.match(a))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var l=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;i.prototype.indexes.push({name:”CLASS”,selector:function(e){var t;if(t=e.match(l))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if(“string”==typeof t)return t.split(/\s/);else if(“object”==typeof t&&”baseVal”in t)return t.baseVal.split(/\s/)}}});var c=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;i.prototype.indexes.push({name:”TAG”,selector:function(e){var t;if(t=e.match(c))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),i.prototype.indexes.default={name:”UNIVERSAL”,selector:function(){return!0},element:function(){return[!0]}},r=”function”==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+” “]},e.prototype.set=function(e,t){this.map[e+” “]=t},e}();var u=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|[‘”][^'”]*[‘”]|[^\[\]'”]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function h(e,t){var n,i,r,o,s,a,l=(e=e.slice(0).concat(e.default)).length,c=t,h=[];do if(u.exec(“”),(r=u.exec(c))&&(c=r[3],r[2]||!c)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=!!r.capture,s=o?p:f,a=s[e];a||(a=new i,s[e]=a,document.addEventListener(e,x,o)),a.add(t,n)}function _(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},53571:(e,t,n)=>{var i=n(4559),r=n(97797);(0,r.on)(“click”,”.js-scanning-reopen-button-disabled”,function(e){e.preventDefault()}),(0,r.on)(“change”,”.js-scanning-alert-check”,function({currentTarget:e}){let t=e.closest(“.js-scanning-alert-list”),n=null!=t.querySelector(“.js-scanning-alert-check:checked”),r=t.querySelector(“.js-scanning-filter-options”),o=t.querySelector(“.js-scanning-alert-bulk-actions”),s=o?.querySelector(“[role=status]”),a=t.querySelector(“.js-scanning-alert-links”);if(r&&(r.style.visibility=n?”hidden”:”visible”),o){let e=o.hidden===n;o.hidden=!n,e&&s&&(0,i.C)(s)}a&&(a.style.visibility=n?”hidden”:”visible”),function(e){let t=!1,n=e.querySelectorAll(“.js-scanning-fixed-alert-numbers”),i=0!==n.length?JSON.parse(n[0].getAttribute(“data-numbers”)||”[]”):[];for(let n of e.querySelectorAll(“.js-scanning-bulk-action-items”)){n.textContent=””;let r=e.querySelectorAll(“.js-scanning-alert-list [data-check-all-item]:checked”),o=document.getElementById(“code-scanning-selected-alert-numbers”);if(o){let e=[];for(let t of r)-1===i.indexOf(parseInt(t.value))&&e.push(parseInt(t.value));o.textContent=JSON.stringify(e),o.dispatchEvent(new Event(“change”))}for(let e of r)t||(t=-1!==i.indexOf(parseInt(e.value))),n.appendChild(function(e){let t=document.createElement(“input”);return t.setAttribute(“type”,”hidden”),t.setAttribute(“name”,e.name),t.setAttribute(“value”,e.value),t}(e))}for(let n of e.querySelectorAll(“.js-scanning-reopen-button”))n.hidden=t;for(let n of e.querySelectorAll(“.js-scanning-reopen-button-disabled”))n.hidden=!t}(t)}),(0,r.on)(“click”,”.js-scanning-code-path-menu-item”,function(e){if(null===e.currentTarget||!(e.currentTarget instanceof Element))return;let t=e.currentTarget.getAttribute(“data-target-code-path”);for(let e of document.querySelectorAll(“.js-scanning-code-path-menu-item”))e.ariaChecked=”false”;for(let n of(e.currentTarget.ariaChecked=”true”,document.querySelectorAll(“.js-scanning-code-path”)))n.hidden=t!==n.getAttribute(“data-code-path”)},{capture:!0})},4559:(e,t,n)=>{n.d(t,{C:()=>s,i:()=>a});var i=n(71315),r=n(69599),o=n(46493);function s(e,t){(0,r.G7)(“arianotify_comprehensive_migration”)?a(l(e),{…t,element:t?.element??e}):(0,r.G7)(“primer_live_region_element”)&&t?.element===void 0?(0,o.Cj)(e,{politeness:t?.assertive?”assertive”:”polite”}):a(l(e),t)}function a(e,t){let{assertive:n,element:s}=t??{};(0,r.G7)(“arianotify_comprehensive_migration”)&&”ariaNotify”in Element.prototype?(s||document.body).ariaNotify(e):(0,r.G7)(“primer_live_region_element”)&&void 0===s?(0,o.iP)(e,{politeness:n?”assertive”:”polite”}):function(e,t,n){let r=n??i.XC?.querySelector(t?”#js-global-screen-reader-notice-assertive”:”#js-global-screen-reader-notice”);r&&(r.textContent===e?r.textContent=`${e}\u00A0`:r.textContent=e)}(e,n,s)}function l(e){return(e.getAttribute(“aria-label”)||e.innerText||””).trim()}},21067:(e,t,n)=>{let i;function r(){if(!i)throw Error(“Client env was requested before it was loaded. This likely means you are attempting to use client env at the module level in SSR, which is not supported. Please move your client env usage into a function.”);return i}function o(){return i?.locale??”en-US”}function s(){return!!r().login}function a(){return r().login}n.d(t,{JK:()=>o,M3:()=>s,_$:()=>r,cj:()=>a}),!function(){if(“undefined”!=typeof document){let e=document.getElementById(“client-env”);if(e)try{i=JSON.parse(e.textContent||””)}catch(e){console.error(“Error parsing client-env”,e)}}}()},69599:(e,t,n)=>{n.d(t,{G7:()=>l,XY:()=>c,fQ:()=>a});var i=n(5225),r=n(21067);function o(){return new Set((0,r._$)().featureFlags)}let s=n(71315).X3||function(){try{return process?.env?.STORYBOOK===”true”}catch{return!1}}()?o:(0,i.A)(o);function a(){return Array.from(s())}function l(e){return s().has(e)}let c={isFeatureEnabled:l}},71315:(e,t,n)=>{n.d(t,{KJ:()=>i.KJ,Kn:()=>r.Kn,X3:()=>i.X3,XC:()=>r.XC,cg:()=>r.cg,fV:()=>r.fV,g5:()=>i.g5});var i=n(6923),r=n(56038)},56038:(e,t,n)=>{n.d(t,{Kn:()=>s,XC:()=>r,cg:()=>o,fV:()=>a});let i=”undefined”!=typeof FORCE_SERVER_ENV&&FORCE_SERVER_ENV,r=”undefined”==typeof document||i?void 0:document,o=”undefined”==typeof window||i?void 0:window,s=”undefined”==typeof history||i?void 0:history,a=”undefined”==typeof location||i?{pathname:””,origin:””,search:””,hash:””,href:””}:location},6923:(e,t,n)=>{n.d(t,{KJ:()=>o,X3:()=>r,g5:()=>s});var i=n(56038);let r=void 0===i.XC,o=!r;function s(){return!!r||!i.XC||!!(i.XC.querySelector(‘react-app[data-ssr=”true”]’)||i.XC.querySelector(‘react-partial[data-ssr=”true”][partial-name=”repos-overview”]’))}},5225:(e,t,n)=>{function i(…e){return JSON.stringify(e,(e,t)=>”object”==typeof t?t:String(t))}function r(e,t={}){let{hash:n=i,cache:o=new Map}=t;return function(…t){let i=n.apply(this,t);if(o.has(i))return o.get(i);let r=e.apply(this,t);return r instanceof Promise&&(r=r.catch(e=>{throw o.delete(i),e})),o.set(i,r),r}}n.d(t,{A:()=>r})},46493:(e,t,n)=>{n.d(t,{Cj:()=>G,iP:()=>V});let i={Less:”less”,Equal:”equal”,Greater:”greater”};var r,o,s,a,l,c,u,h,d,f,p,m,g,v,y,b,w,E=(e,t,n)=>{if(!t.has(e))throw TypeError(“Cannot “+n)},S=(e,t,n)=>(E(e,t,”read from private field”),n?n.call(e):t.get(e)),k=(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)},x=(e,t,n,i)=>(E(e,t,”write to private field”),i?i.call(e,n):t.set(e,n),n),C=(e,t,n)=>(E(e,t,”access private method”),n);let MinHeap=class MinHeap{constructor({compareFn:e}){k(this,s),k(this,l),k(this,r,void 0),k(this,o,void 0),x(this,r,e),x(this,o,[])}insert(e){S(this,o).push(e),C(this,l,c).call(this)}pop(){let e=S(this,o)[0];return S(this,o)[S(this,o).length-1]&&(S(this,o)[0]=S(this,o)[S(this,o).length-1],S(this,o).pop()),C(this,s,a).call(this),e}peek(){return S(this,o)[0]}delete(e){let t=S(this,o).indexOf(e);-1!==t&&(T(S(this,o),t,S(this,o).length-1),S(this,o).pop(),C(this,s,a).call(this))}clear(){x(this,o,[])}get size(){return S(this,o).length}};function _(e){return Math.floor((e-1)/2)}function T(e,t,n){let i=e[t];e[t]=e[n],e[n]=i}r=new WeakMap,o=new WeakMap,s=new WeakSet,a=function(){let e=0;for(;2*e+10&&S(this,r).call(this,S(this,o)[t],(e=S(this,o),e[_(t)]))===i.Less;)T(S(this,o),t,_(t)),t=_(t)};var j=Object.defineProperty,A=(e,t,n)=>{if(!t.has(e))throw TypeError(“Cannot “+n)},q=(e,t,n)=>(A(e,t,”read from private field”),n?n.call(e):t.get(e)),M=(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)},O=(e,t,n,i)=>(A(e,t,”write to private field”),i?i.call(e,n):t.set(e,n),n);let Deferred=class Deferred{constructor(){((e,t,n)=>((e,t,n)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,”symbol”!=typeof t?t+””:t,n))(this,u,”Deferred”),M(this,h,void 0),M(this,d,void 0),M(this,f,void 0),O(this,h,new Promise((e,t)=>{O(this,d,e),O(this,f,t)}))}then(e,t){return Promise.prototype.then.apply(q(this,h),[e,t])}catch(e){return Promise.prototype.catch.apply(q(this,h),[e])}finally(e){return Promise.prototype.finally.apply(q(this,h),[e])}resolve(e){q(this,d).call(this,e)}reject(e){q(this,f).call(this,e)}getPromise(){return q(this,h)}};u=Symbol.toStringTag,h=new WeakMap,d=new WeakMap,f=new WeakMap;var P=(e,t,n)=>{if(!t.has(e))throw TypeError(“Cannot “+n)},F=(e,t,n)=>(P(e,t,”read from private field”),n?n.call(e):t.get(e)),W=(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)},I=(e,t,n,i)=>(P(e,t,”write to private field”),i?i.call(e,n):t.set(e,n),n),R=(e,t,n)=>(P(e,t,”access private method”),n);let LiveRegionElement=class LiveRegionElement extends HTMLElement{constructor(){if(super(),W(this,v),W(this,b),W(this,p,void 0),W(this,m,void 0),W(this,g,void 0),!this.shadowRoot){let e=(L||((L=document.createElement(“template”)).innerHTML=N),L);this.attachShadow({mode:”open”}).appendChild(e.content.cloneNode(!0))}I(this,p,!1),I(this,g,null),I(this,m,new MinHeap({compareFn:X}))}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:i=”polite”}=t,r=Date.now(),o=new Deferred,s={deferred:o,politeness:i,contents:e,scheduled:void 0!==n?r+n:r};return F(this,m).insert(s),R(this,v,y).call(this),{…o.getPromise(),cancel:()=>{F(this,m).delete(s),o.resolve()}}}announceFromElement(e,t){var n;let i,r=(i=””,(n=e).hasAttribute(“aria-label”)?i=n.getAttribute(“aria-label”):n.innerText?i=n.innerText:n.textContent&&(i=n.textContent),i?i.trim():””);return””!==r?this.announce(r,t):{…Promise.resolve(),cancel:D}}getMessage(e=”polite”){let t=this.shadowRoot?.getElementById(e);if(!t)throw Error(“Unable to find container for message”);return t.textContent}clear(){null!==F(this,g)&&(clearTimeout(F(this,g)),I(this,g,null)),F(this,m).clear()}};p=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakSet,y=function(){if(F(this,p))return;let e=F(this,m).peek();if(!e)return;null!==F(this,g)&&(clearTimeout(F(this,g)),I(this,g,null));let t=Date.now();if(e.scheduled<=t){(e=F(this,m).pop())&&R(this,b,w).call(this,e),R(this,v,y).call(this);return}let n=e.scheduled-t;I(this,g,window.setTimeout(()=>{I(this,g,null),R(this,v,y).call(this)},n))},b=new WeakSet,w=function(e){I(this,p,!0);let{contents:t,deferred:n,politeness:i}=e,r=this.shadowRoot?.getElementById(i);if(!r)throw I(this,p,!1),Error(`Unable to find container for message. Expected a container with id=”${i}”`);r.textContent===t?r.textContent=`${t}\xa0`:r.textContent=t,null!==F(this,g)&&clearTimeout(F(this,g)),n.resolve(),this.delay>0?I(this,g,window.setTimeout(()=>{I(this,g,null),I(this,p,!1),R(this,v,y).call(this)},this.delay)):(I(this,g,null),I(this,p,!1),R(this,v,y).call(this))};let L=null,N=`
`;function X(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?i.Equal:e.scheduled{i=!0};return{…z(U).then(()=>{if(!i){let i=n.announce(e,t);return r=i.cancel,i}}),cancel:()=>{r()}}}return n.announce(e,t)}function G(e,t={}){let n=J(t.from);if(!n){n=document.createElement(“live-region”),t.appendTo?t.appendTo.appendChild(n):K(t.from).appendChild(n);let i=!1,r=()=>{i=!0};return{…z(U).then(()=>{if(!i){let i=n.announceFromElement(e,t);return r=i.cancel,i}}),cancel:()=>{r()}}}return n.announceFromElement(e,t)}function J(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=K(e).querySelector(“live-region”))?t:null}function K(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 U=150;function z(e){return new Promise(t=>{setTimeout(t,e)})}}},e=>{e(e.s=53571)}]);
//# sourceMappingURL=scanning-140e97782a5d.js.map