aboutsummaryrefslogtreecommitdiff
path: root/archive/Place your Ideas here · Discussion #5 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_delegated-events_dist_index_js-node_modu.js
diff options
context:
space:
mode:
Diffstat (limited to 'archive/Place your Ideas here · Discussion #5 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_delegated-events_dist_index_js-node_modu.js')
-rw-r--r--archive/Place your Ideas here · Discussion #5 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_delegated-events_dist_index_js-node_modu.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/archive/Place your Ideas here · Discussion #5 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_delegated-events_dist_index_js-node_modu.js b/archive/Place your Ideas here · Discussion #5 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_delegated-events_dist_index_js-node_modu.js
new file mode 100644
index 0000000..a46ba85
--- /dev/null
+++ b/archive/Place your Ideas here · Discussion #5 · Ta180m_Idiot-Code-Golf_files/vendors-node_modules_delegated-events_dist_index_js-node_modu.js
@@ -0,0 +1,3 @@
+"use strict";(()=>{var K=Object.defineProperty;var u=(W,L)=>K(W,"name",{value:L,configurable:!0});(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_delegated-events_dist_index_js-node_modules_github_details-dialog-elemen-63debe","node_modules_delegated-events_dist_index_js"],{59753:(W,L,H)=>{H.d(L,{f:()=>V,on:()=>z});function g(){if(!(this instanceof g))return new g;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}u(g,"SelectorSet");var x=window.document.documentElement,F=x.matches||x.webkitMatchesSelector||x.mozMatchesSelector||x.oMatchesSelector||x.msMatchesSelector;g.prototype.matchesSelector=function(e,r){return F.call(e,r)},g.prototype.querySelectorAll=function(e,r){return r.querySelectorAll(e)},g.prototype.indexes=[];var q=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;g.prototype.indexes.push({name:"ID",selector:u(function(r){var n;if(n=r.match(q))return n[0].slice(1)},"matchIdSelector"),element:u(function(r){if(r.id)return[r.id]},"getElementId")});var P=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;g.prototype.indexes.push({name:"CLASS",selector:u(function(r){var n;if(n=r.match(P))return n[0].slice(1)},"matchClassSelector"),element:u(function(r){var n=r.className;if(n){if(typeof n=="string")return n.split(/\s/);if(typeof n=="object"&&"baseVal"in n)return n.baseVal.split(/\s/)}},"getElementClassNames")});var B=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;g.prototype.indexes.push({name:"TAG",selector:u(function(r){var n;if(n=r.match(B))return n[0].toUpperCase()},"matchTagSelector"),element:u(function(r){return[r.nodeName.toUpperCase()]},"getElementTagName")}),g.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}};var C;typeof window.Map=="function"?C=window.Map:C=function(){function e(){this.map={}}return u(e,"Map"),e.prototype.get=function(r){return this.map[r+" "]},e.prototype.set=function(r,n){this.map[r+" "]=n},e}();var I=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function O(e,r){e=e.slice(0).concat(e.default);var n=e.length,c,o,l,a,f=r,m,h,p=[];do if(I.exec(""),(l=I.exec(f))&&(f=l[3],l[2]||!f)){for(c=0;c<n;c++)if(h=e[c],m=h.selector(l[1])){for(o=p.length,a=!1;o--;)if(p[o].index===h&&p[o].key===m){a=!0;break}a||p.push({index:h,key:m});break}}while(l);return p}u(O,"parseSelectorIndexes");function M(e,r){var n,c,o;for(n=0,c=e.length;n<c;n++)if(o=e[n],r.isPrototypeOf(o))return o}u(M,"findByPrototype"),g.prototype.logDefaultIndexUsed=function(){},g.prototype.add=function(e,r){var n,c,o,l,a,f,m,h,p=this.activeIndexes,v=this.selectors,S=this.selectorObjects;if(typeof e=="string"){for(n={id:this.uid++,selector:e,data:r},S[n.id]=n,m=O(this.indexes,e),c=0;c<m.length;c++)h=m[c],l=h.key,o=h.index,a=M(p,o),a||(a=Object.create(o),a.map=new C,p.push(a)),o===this.indexes.default&&this.logDefaultIndexUsed(n),f=a.map.get(l),f||(f=[],a.map.set(l,f)),f.push(n);this.size++,v.push(e)}},g.prototype.remove=function(e,r){if(typeof e=="string"){var n,c,o,l,a,f,m,h,p=this.activeIndexes,v=this.selectors=[],S=this.selectorObjects,j={},U=arguments.length===1;for(n=O(this.indexes,e),o=0;o<n.length;o++)for(c=n[o],l=p.length;l--;)if(f=p[l],c.index.isPrototypeOf(f)){if(m=f.map.get(c.key),m)for(a=m.length;a--;)h=m[a],h.selector===e&&(U||h.data===r)&&(m.splice(a,1),j[h.id]=!0);break}for(o in j)delete S[o],this.size--;for(o in S)v.push(S[o].selector)}};function D(e,r){return e.id-r.id}u(D,"sortById"),g.prototype.queryAll=function(e){if(!this.selectors.length)return[];var r={},n=[],c=this.querySelectorAll(this.selectors.join(", "),e),o,l,a,f,m,h,p,v;for(o=0,a=c.length;o<a;o++)for(m=c[o],h=this.matches(m),l=0,f=h.length;l<f;l++)v=h[l],r[v.id]?p=r[v.id]:(p={id:v.id,selector:v.selector,data:v.data,elements:[]},r[v.id]=p,n.push(p)),p.elements.push(m);return n.sort(D)},g.prototype.matches=function(e){if(!e)return[];var r,n,c,o,l,a,f,m,h,p,v,S=this.activeIndexes,j={},U=[];for(r=0,o=S.length;r<o;r++)if(f=S[r],m=f.element(e),m){for(n=0,l=m.length;n<l;n++)if(h=f.map.get(m[n]))for(c=0,a=h.length;c<a;c++)p=h[c],v=p.id,!j[v]&&this.matchesSelector(e,p.selector)&&(j[v]=!0,U.push(p))}return U.sort(D)};var _={},w={},A=new WeakMap,T=new WeakMap,b=new WeakMap,y=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function R(e,r,n){var c=e[r];return e[r]=function(){return n.apply(e,arguments),c.apply(e,arguments)},e}u(R,"before");function s(e,r,n){var c=[],o=r;do{if(o.nodeType!==1)break;var l=e.matches(o);if(l.length){var a={node:o,observers:l};n?c.unshift(a):c.push(a)}}while(o=o.parentElement);return c}u(s,"dist_matches");function t(){A.set(this,!0)}u(t,"trackPropagation");function i(){A.set(this,!0),T.set(this,!0)}u(i,"trackImmediate");function d(){return b.get(this)||null}u(d,"getCurrentTarget");function E(e,r){!y||Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:r||y.get})}u(E,"defineCurrentTarget");function N(e){try{return e.eventPhase,!0}catch{return!1}}u(N,"canDispatch");function k(e){if(!!N(e)){var r=e.eventPhase===1?w:_,n=r[e.type];if(!!n){var c=s(n,e.target,e.eventPhase===1);if(!!c.length){R(e,"stopPropagation",t),R(e,"stopImmediatePropagation",i),E(e,d);for(var o=0,l=c.length;o<l&&!A.get(e);o++){var a=c[o];b.set(e,a.node);for(var f=0,m=a.observers.length;f<m&&!T.get(e);f++)a.observers[f].data.call(a.node,e)}b.delete(e),E(e)}}}}u(k,"dispatch");function z(e,r,n){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=!!c.capture,l=o?w:_,a=l[e];a||(a=new g,l[e]=a,document.addEventListener(e,k,o)),a.add(r,n)}u(z,"on");function G(e,r,n){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=!!c.capture,l=o?w:_,a=l[e];!a||(a.remove(r,n),!a.size&&(delete l[e],document.removeEventListener(e,k,o)))}u(G,"off");function V(e,r,n){return e.dispatchEvent(new CustomEvent(r,{bubbles:!0,cancelable:!0,detail:n}))}u(V,"fire")},14840:(W,L,H)=>{H.d(L,{Z:()=>R});const g="data-close-dialog",x=`[${g}]`;function F(s){let t=Array.from(s.querySelectorAll("[autofocus]")).filter(P)[0];t||(t=s,s.setAttribute("tabindex","-1")),t.focus()}u(F,"autofocus");function q(s){const t=s.currentTarget;t instanceof Element&&(s.key==="Escape"||s.key==="Esc"?(_(t,!1),s.stopPropagation()):s.key==="Tab"&&C(s))}u(q,"keydown");function P(s){return s.tabIndex>=0&&!s.disabled&&B(s)}u(P,"focusable");function B(s){return!s.hidden&&(!s.type||s.type!=="hidden")&&(s.offsetWidth>0||s.offsetHeight>0)}u(B,"visible");function C(s){if(!(s.currentTarget instanceof Element))return;const t=s.currentTarget.querySelector("details-dialog");if(!t)return;s.preventDefault();const i=Array.from(t.querySelectorAll("*")).filter(P);if(i.length===0)return;const d=s.shiftKey?-1:1,E=t.getRootNode(),N=t.contains(E.activeElement)?E.activeElement:null;let k=d===-1?-1:0;if(N instanceof HTMLElement){const z=i.indexOf(N);z!==-1&&(k=z+d)}k<0?k=i.length-1:k=k%i.length,i[k].focus()}u(C,"restrictTabBehavior");function I(s){const t=s.querySelector("details-dialog");return t instanceof y?t.dispatchEvent(new CustomEvent("details-dialog-close",{bubbles:!0,cancelable:!0})):!0}u(I,"allowClosingDialog");function O(s){if(!(s.currentTarget instanceof Element))return;const t=s.currentTarget.closest("details");!t||!t.hasAttribute("open")||I(t)||(s.preventDefault(),s.stopPropagation())}u(O,"onSummaryClick");function M(s){const t=s.currentTarget;if(!(t instanceof Element))return;const i=t.querySelector("details-dialog");if(i instanceof y)if(t.hasAttribute("open")){const d="getRootNode"in i?i.getRootNode():document;d.activeElement instanceof HTMLElement&&b.set(i,{details:t,activeElement:d.activeElement}),F(i),t.addEventListener("keydown",q)}else{for(const E of i.querySelectorAll("form"))E.reset();const d=D(t,i);d&&d.focus(),t.removeEventListener("keydown",q)}}u(M,"toggle");function D(s,t){const i=b.get(t);return i&&i.activeElement instanceof HTMLElement?i.activeElement:s.querySelector("summary")}u(D,"findFocusElement");function _(s,t){t!==s.hasAttribute("open")&&(t?s.setAttribute("open",""):I(s)&&s.removeAttribute("open"))}u(_,"toggleDetails");function w(s){const t=s.currentTarget;if(!(t instanceof Element))return;const i=t.querySelector("details-dialog");if(!(i instanceof y))return;const d=i.querySelector("include-fragment:not([src])");if(!d)return;const E=i.src;E!==null&&(d.addEventListener("loadend",()=>{t.hasAttribute("open")&&F(i)}),d.setAttribute("src",E),T(t))}u(w,"loadIncludeFragment");function A(s,t,i){T(s),t&&s.addEventListener("toggle",w,{once:!0}),t&&i&&s.addEventListener("mouseover",w,{once:!0})}u(A,"updateIncludeFragmentEventListeners");function T(s){s.removeEventListener("toggle",w),s.removeEventListener("mouseover",w)}u(T,"removeIncludeFragmentEventListeners");const b=new WeakMap;class y extends HTMLElement{static get CLOSE_ATTR(){return g}static get CLOSE_SELECTOR(){return x}constructor(){super();b.set(this,{details:null,activeElement:null}),this.addEventListener("click",function({target:t}){if(!(t instanceof Element))return;const i=t.closest("details");i&&t.closest(x)&&_(i,!1)})}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",t||"")}get preload(){return this.hasAttribute("preload")}set preload(t){t?this.setAttribute("preload",""):this.removeAttribute("preload")}connectedCallback(){this.setAttribute("role","dialog"),this.setAttribute("aria-modal","true");const t=b.get(this);if(!t)return;const i=this.parentElement;if(!i)return;const d=i.querySelector("summary");d&&(d.hasAttribute("role")||d.setAttribute("role","button"),d.addEventListener("click",O,{capture:!0})),i.addEventListener("toggle",M),t.details=i,A(i,this.src,this.preload)}disconnectedCallback(){const t=b.get(this);if(!t)return;const{details:i}=t;if(!i)return;i.removeEventListener("toggle",M),T(i);const d=i.querySelector("summary");d&&d.removeEventListener("click",O,{capture:!0}),t.details=null}toggle(t){const i=b.get(this);if(!i)return;const{details:d}=i;!d||_(d,t)}static get observedAttributes(){return["src","preload"]}attributeChangedCallback(){const t=b.get(this);if(!t)return;const{details:i}=t;!i||A(i,this.src,this.preload)}}u(y,"DetailsDialogElement");const R=y;window.customElements.get("details-dialog")||(window.DetailsDialogElement=y,window.customElements.define("details-dialog",y))}}]);})();
+
+//# sourceMappingURL=vendors-node_modules_delegated-events_dist_index_js-node_modules_github_details-dialog-elemen-63debe-2fddb5aecbef.js.map \ No newline at end of file