summaryrefslogtreecommitdiff
path: root/assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/38302-277be92deeed3c63.js
blob: 5e81188444c139f68dba9f58692cd3de3d66e8c0 (plain)
1
2
3
performance.mark("js-parse-end:38302-277be92deeed3c63.js");
"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["38302"],{21744(e,t,n){function o(){if(!(this instanceof o))return new o;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}n.d(t,{h:()=>C,on:()=>E});var r,i=window.document.documentElement,a=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector;o.prototype.matchesSelector=function(e,t){return a.call(e,t)},o.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},o.prototype.indexes=[];var s=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;o.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(s))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var c=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;o.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(c))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 l=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;o.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(l))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),o.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 d(e,t){var n,o,r,i,a,s,c=(e=e.slice(0).concat(e.default)).length,l=t,d=[];do if(u.exec(""),(r=u.exec(l))&&(l=r[3],r[2]||!l)){for(n=0;n<c;n++)if(a=(s=e[n]).selector(r[1])){for(o=d.length,i=!1;o--;)if(d[o].index===s&&d[o].key===a){i=!0;break}i||d.push({index:s,key:a});break}}while(r);return d}function f(e,t){return e.id-t.id}o.prototype.logDefaultIndexUsed=function(){},o.prototype.add=function(e,t){var n,o,i,a,s,c,l,u,f=this.activeIndexes,h=this.selectors,p=this.selectorObjects;if("string"==typeof e){for(o=0,p[(n={id:this.uid++,selector:e,data:t}).id]=n,l=d(this.indexes,e);o<l.length;o++)a=(u=l[o]).key,(s=function(e,t){var n,o,r;for(n=0,o=e.length;n<o;n++)if(r=e[n],t.isPrototypeOf(r))return r}(f,i=u.index))||((s=Object.create(i)).map=new r,f.push(s)),i===this.indexes.default&&this.logDefaultIndexUsed(n),(c=s.map.get(a))||(c=[],s.map.set(a,c)),c.push(n);this.size++,h.push(e)}},o.prototype.remove=function(e,t){if("string"==typeof e){var n,o,r,i,a,s,c,l,u=this.activeIndexes,f=this.selectors=[],h=this.selectorObjects,p={},g=1==arguments.length;for(r=0,n=d(this.indexes,e);r<n.length;r++)for(o=n[r],i=u.length;i--;)if(s=u[i],o.index.isPrototypeOf(s)){if(c=s.map.get(o.key))for(a=c.length;a--;)(l=c[a]).selector===e&&(g||l.data===t)&&(c.splice(a,1),p[l.id]=!0);break}for(r in p)delete h[r],this.size--;for(r in h)f.push(h[r].selector)}},o.prototype.queryAll=function(e){if(!this.selectors.length)return[];var t,n,o,r,i,a,s,c,l={},u=[],d=this.querySelectorAll(this.selectors.join(", "),e);for(t=0,o=d.length;t<o;t++)for(n=0,i=d[t],r=(a=this.matches(i)).length;n<r;n++)l[(c=a[n]).id]?s=l[c.id]:(s={id:c.id,selector:c.selector,data:c.data,elements:[]},l[c.id]=s,u.push(s)),s.elements.push(i);return u.sort(f)},o.prototype.matches=function(e){if(!e)return[];var t,n,o,r,i,a,s,c,l,u,d,h=this.activeIndexes,p={},g=[];for(t=0,r=h.length;t<r;t++)if(c=(s=h[t]).element(e)){for(n=0,i=c.length;n<i;n++)if(l=s.map.get(c[n]))for(o=0,a=l.length;o<a;o++)!p[d=(u=l[o]).id]&&this.matchesSelector(e,u.selector)&&(p[d]=!0,g.push(u))}return g.sort(f)};var h={},p={},g=new WeakMap,b=new WeakMap,m=new WeakMap,y=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function w(e,t,n){var o=e[t];return e[t]=function(){return n.apply(e,arguments),o.apply(e,arguments)},e}function v(){g.set(this,!0)}function A(){g.set(this,!0),b.set(this,!0)}function k(){return m.get(this)||null}function x(e,t){y&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t||y.get})}function S(e){if(function(e){try{return e.eventPhase,!0}catch(e){return!1}}(e)){var t=(1===e.eventPhase?p:h)[e.type];if(t){var n=function(e,t,n){var o=[],r=t;do{if(1!==r.nodeType)break;var i=e.matches(r);if(i.length){var a={node:r,observers:i};n?o.unshift(a):o.push(a)}}while(r=r.parentElement);return o}(t,e.target,1===e.eventPhase);if(n.length){w(e,"stopPropagation",v),w(e,"stopImmediatePropagation",A),x(e,k);for(var o=0,r=n.length;o<r&&!g.get(e);o++){var i=n[o];m.set(e,i.node);for(var a=0,s=i.observers.length;a<s&&!b.get(e);a++)i.observers[a].data.call(i.node,e)}m.delete(e),x(e)}}}}function E(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!!r.capture,a=i?p:h,s=a[e];s||(s=new o,a[e]=s,document.addEventListener(e,S,i)),s.add(t,n)}function C(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},94571(e,t,n){let o;n.d(t,{Se:()=>S,FB:()=>d,p_:()=>j,CF:()=>g,aC:()=>M,zV:()=>$});let r=new WeakSet,i=new WeakMap;function a(e=document){if(i.has(e))return i.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&&s(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let o={get closed(){return t},unsubscribe(){t=!0,i.delete(e),n.disconnect()}};return i.set(e,o),o}function s(e){for(let t of e.querySelectorAll("[data-action]"))u(t);e instanceof Element&&e.hasAttribute("data-action")&&u(e)}function c(e){let t=e.currentTarget;for(let n of l(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 i=t.getRootNode();if(i instanceof ShadowRoot&&r.has(i.host)&&i.host.matches(n.tag)){let t=i.host;"function"==typeof t[n.method]&&t[n.method](e)}}}function*l(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 l(e))e.addEventListener(t.type,c)}function d(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},p="attr";function g(e,t){P(e,p).add(t)}let b=new WeakSet;function m(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=P(n,p)),t)){let t=e[r],n=h(`${o}${r}`),i={configurable:!0,get(){return this.getAttribute(n)||""},set(e){this.setAttribute(n,e||"")}};"number"==typeof t?i={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:"boolean"==typeof t&&(i={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,r,i),r in e&&!e.hasAttribute(n)&&i.set.call(e,t)}}let y=new Map,w=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:()=>w,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)})},k=new WeakMap;function x(e){cancelAnimationFrame(k.get(e)||0),k.set(e,requestAnimationFrame(()=>{for(let t of y.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 y.get(t)||[])r(t).then(e);y.delete(t),k.delete(e)}}}))}function S(e,t){for(let[n,o]of("string"==typeof e&&t&&(e={[e]:t}),Object.entries(e)))y.has(n)||y.set(n,new Set),y.get(n).add(o);E(document)}function E(e){o||(o=new MutationObserver(e=>{if(y.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&x(e)})),x(e),o.observe(e,{subtree:!0,childList:!0})}let C=Symbol.for("catalyst");class O{constructor(e,t){const n=this,o=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){n.connectedCallback(this,o)};const r=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){n.disconnectedCallback(this,r)};const i=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,t,o){n.attributeChangedCallback(this,e,t,o,i)};let a=e.observedAttributes||[];Object.defineProperty(e,"observedAttributes",{configurable:!0,get(){return n.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:()=>[...P(e.prototype,p)].map(o).concat(t),set(e){t=e}})}(e),function(e,t){let n=t||f(e.name).replace(/-element$/,"");try{window.customElements.define(n,e),window[e.name]=customElements.get(n)}catch(e){if(!(e instanceof DOMException&&"NotSupportedError"===e.name))throw e}}(e,t)}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));(m(e),r.add(e),e.shadowRoot&&(s(o=e.shadowRoot),a(o)),s(e),a(e.ownerDocument),t?.call(e),e.shadowRoot)&&(s(n=e.shadowRoot),a(n),E(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,o,r){m(e),"data-catalyst"!==t&&r&&r.call(e,t,n,o)}}function P(e,t){if(!Object.prototype.hasOwnProperty.call(e,C)){let t=e[C],n=e[C]=new Map;if(t)for(let[e,o]of t)n.set(e,new Set(o))}let n=e[C];return n.has(t)||n.set(t,new Set),n.get(t)}function M(e,t){P(e,"target").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return d(this,t)}})}function $(e,t){P(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 j(e){if("string"==typeof e)return t=>{new O(t,e)};new O(e)}}}]);
//# sourceMappingURL=38302-277be92deeed3c63-e11f23497035a60c.js.map