UNPKG

@telekom/scale-components

Version:

Scale is the digital design system for Telekom products and experiences.

2 lines 15.4 kB
const e="scale-components";let t,n,l,s=!1,o=!1,i=!1,c=!1,r=!1;const f="undefined"!=typeof window?window:{},a=f.document||{head:{}},u=f.HTMLElement||class{},$={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},d=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),p=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=y(e,n),i=m(t,s),c=b(n);$.ael(o,l,i,c),(t.o=t.o||[]).push((()=>$.rel(o,l,i,c)))}))},m=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){je(e)}},y=(e,t)=>4&t?a:8&t?f:e,b=e=>0!=(2&e),w="http://www.w3.org/1999/xlink",g=new WeakMap,v=(e,t,n)=>{let l=Oe.get(e);h&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Oe.set(e,l)},k=(e,t)=>{let n=j(t);const l=Oe.get(n);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let t,s=g.get(e=e.head||e);s||g.set(e,s=new Set),s.has(n)||(e.host&&(t=e.querySelector(`[sty-id="${n}"]`))?t.innerHTML=l:(t=a.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link"))),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n},j=e=>"sc-"+e.$,S=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),x={},O=e=>"object"==(e=typeof e)||"function"===e,M=(e,t,...n)=>{let l=null,s=null,o=null,i=!1,c=!1;const r=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!O(l))&&(l+=""),i&&c?r[r.length-1].h+=l:r.push(i?C(null,l):l),c=i)};if(f(n),t){t.key&&(s=t.key),t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,N);const a=C(e,null);return a.p=t,r.length>0&&(a.m=r),a.g=s,a.v=o,a},C=(e,t)=>({t:0,k:e,h:t,j:null,m:null,p:null,g:null,v:null}),R={},N={forEach:(e,t)=>e.map(P).forEach(t),map:(e,t)=>e.map(P).map(t).map(T)},P=e=>({vattrs:e.p,vchildren:e.m,vkey:e.g,vname:e.v,vtag:e.k,vtext:e.h}),T=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),M(e.vtag,t,...e.vchildren||[])}const t=C(e.vtag,e.vtext);return t.p=e.vattrs,t.m=e.vchildren,t.g=e.vkey,t.v=e.vname,t},W=(e,t,n,l,s,o)=>{if(n!==l){let i=ke(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,s=I(n),o=I(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const r=O(l);if((i||r&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(w,t):e.removeAttribute(t)):(!i||4&o||s)&&!r&&(l=!0===l?"":l,f?e.setAttributeNS(w,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ke(f,c)?c.slice(2):c[2]+t.slice(3),n&&$.rel(e,t,n,!1),l&&$.ael(e,t,l,!1)}},E=/\s/,I=e=>e?e.split(E):[],L=(e,t,n,l)=>{const s=11===t.j.nodeType&&t.j.host?t.j.host:t.j,o=e&&e.p||x,i=t.p||x;for(l in o)l in i||W(s,l,o[l],void 0,n,t.t);for(l in i)W(s,l,o[l],i[l],n,t.t)},U=(e,o,r,f)=>{const u=o.m[r];let $,d,h,p=0;if(s||(i=!0,"slot"===u.k&&(t&&f.classList.add(t+"-s"),u.t|=u.m?2:1)),null!==u.h)$=u.j=a.createTextNode(u.h);else if(1&u.t)$=u.j=a.createTextNode("");else{if(c||(c="svg"===u.k),$=u.j=a.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&u.t?"slot-fb":u.k),c&&"foreignObject"===u.k&&(c=!1),L(null,u,c),null!=t&&$["s-si"]!==t&&$.classList.add($["s-si"]=t),u.m)for(p=0;p<u.m.length;++p)d=U(e,u,p,$),d&&$.appendChild(d);"svg"===u.k?c=!1:"foreignObject"===$.tagName&&(c=!0)}return $["s-hn"]=l,3&u.t&&($["s-sr"]=!0,$["s-cr"]=n,$["s-sn"]=u.v||"",h=e&&e.m&&e.m[r],h&&h.k===u.k&&e.j&&D(e.j,!1)),$},D=(e,t)=>{$.t|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const s=n[e];s["s-hn"]!==l&&s["s-ol"]&&(V(s).insertBefore(s,H(s)),s["s-ol"].remove(),s["s-ol"]=void 0,i=!0),t&&D(s,t)}$.t&=-2},F=(e,t,n,s,o,i)=>{let c,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===l&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=U(null,n,o,e),c&&(s[o].j=c,r.insertBefore(c,H(t))))},A=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.j,K(l),o=!0,s["s-ol"]?s["s-ol"].remove():D(s,!0),s.remove())},q=(e,t)=>e.k===t.k&&("slot"===e.k?e.v===t.v:e.g===t.g),H=e=>e&&e["s-ol"]||e,V=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,_=(e,t)=>{const n=t.j=e.j,l=e.m,s=t.m,o=t.k,i=t.h;let r;null===i?(c="svg"===o||"foreignObject"!==o&&c,"slot"===o||L(e,t,c),null!==l&&null!==s?((e,t,n,l)=>{let s,o,i=0,c=0,r=0,f=0,a=t.length-1,u=t[0],$=t[a],d=l.length-1,h=l[0],p=l[d];for(;i<=a&&c<=d;)if(null==u)u=t[++i];else if(null==$)$=t[--a];else if(null==h)h=l[++c];else if(null==p)p=l[--d];else if(q(u,h))_(u,h),u=t[++i],h=l[++c];else if(q($,p))_($,p),$=t[--a],p=l[--d];else if(q(u,p))"slot"!==u.k&&"slot"!==p.k||D(u.j.parentNode,!1),_(u,p),e.insertBefore(u.j,$.j.nextSibling),u=t[++i],p=l[--d];else if(q($,h))"slot"!==u.k&&"slot"!==p.k||D($.j.parentNode,!1),_($,h),e.insertBefore($.j,u.j),$=t[--a],h=l[++c];else{for(r=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].g&&t[f].g===h.g){r=f;break}r>=0?(o=t[r],o.k!==h.k?s=U(t&&t[c],n,r,e):(_(o,h),t[r]=void 0,s=o.j),h=l[++c]):(s=U(t&&t[c],n,c,e),h=l[++c]),s&&V(u.j).insertBefore(s,H(u.j))}i>a?F(e,null==l[d+1]?null:l[d+1].j,n,l,c,d):c>d&&A(t,i,a)})(n,l,t,s):null!==s?(null!==e.h&&(n.textContent=""),F(n,null,t,s,0,s.length-1)):null!==l&&A(l,0,l.length-1),c&&"svg"===o&&(c=!1)):(r=n["s-cr"])?r.parentNode.textContent=i:e.h!==i&&(n.data=i)},z=e=>{const t=e.childNodes;let n,l,s,o,i,c;for(l=0,s=t.length;l<s;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,o=0;o<s;o++)if(c=t[o].nodeType,t[o]["s-hn"]!==n["s-hn"]||""!==i){if(1===c&&i===t[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[o].textContent.trim()){n.hidden=!0;break}z(n)}},B=[],G=e=>{let t,n,l,s,i,c,r=0;const f=e.childNodes,a=f.length;for(;r<a;r++){if(t=f[r],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(J(n,s)?(i=B.find((e=>e.S===n)),o=!0,n["s-sn"]=n["s-sn"]||s,i?i.O=t:B.push({O:t,S:n}),n["s-sr"]&&B.map((e=>{J(e.S,n["s-sn"])&&(i=B.find((e=>e.S===n)),i&&!e.O&&(e.O=i.O))}))):B.some((e=>e.S===n))||B.push({S:n}));1===t.nodeType&&G(t)}},J=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,K=e=>{e.p&&e.p.ref&&e.p.ref(null),e.m&&e.m.map(K)},Q=e=>we(e).M,X=(e,t,n)=>{const l=Q(e);return{emit:e=>Y(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},Y=(e,t,n)=>{const l=$.ce(t,n);return e.dispatchEvent(l),l},Z=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ee=(e,t)=>{if(e.t|=16,!(4&e.t))return Z(e,e.R),We((()=>te(e,t)));e.t|=512},te=(e,t)=>{const n=e.i;let l;return t?(e.t|=256,e.u&&(e.u.map((([e,t])=>ie(n,e,t))),e.u=null),l=ie(n,"componentWillLoad")):l=ie(n,"componentWillUpdate"),l=ce(l,(()=>ie(n,"componentWillRender"))),ce(l,(()=>ne(e,n,t)))},ne=async(e,t,n)=>{const l=e.M,s=l["s-rc"];n&&(e=>{const t=e.N,n=e.M,l=t.t,s=k(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);le(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},le=(e,c)=>{try{c=c.render(),e.t&=-17,e.t|=2,((e,c)=>{const r=e.M,f=e.N,u=e.P||C(null,null),d=(e=>e&&e.k===R)(c)?c:M(null,null,c);if(l=r.tagName,f.T&&(d.p=d.p||{},f.T.map((([e,t])=>d.p[t]=r[e]))),d.k=null,d.t|=4,e.P=d,d.j=u.j=r.shadowRoot||r,t=r["s-sc"],n=r["s-cr"],s=0!=(1&f.t),o=!1,_(u,d),$.t|=1,i){let e,t,n,l,s,o;G(d.j);let i=0;for(;i<B.length;i++)e=B[i],t=e.S,t["s-ol"]||(n=a.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<B.length;i++)if(e=B[i],t=e.S,e.O){for(l=e.O.parentNode,s=e.O.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===t["s-sn"]&&l===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){s=o;break}(!s&&l!==t.parentNode||t.nextSibling!==s)&&t!==s&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,s))}else 1===t.nodeType&&(t.hidden=!0)}o&&z(d.j),$.t&=-2,B.length=0})(e,c)}catch(t){je(t,e.M)}return null},se=e=>{const t=e.M,n=e.i,l=e.R;ie(n,"componentDidRender"),64&e.t?ie(n,"componentDidUpdate"):(e.t|=64,re(t),ie(n,"componentDidLoad"),e.W(t),l||oe()),e.I(t),e.C&&(e.C(),e.C=void 0),512&e.t&&Te((()=>ee(e,!1))),e.t&=-517},oe=()=>{re(a.documentElement),Te((()=>Y(f,"appload",{detail:{namespace:"scale-components"}})))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){je(e)}},ce=(e,t)=>e&&e.then?e.then(t):t(),re=e=>e.classList.add("hydrated"),fe=(e,t,n,l,s,o,i)=>{let c,r,f,u;if(1===o.nodeType){for(c=o.getAttribute("c-id"),c&&(r=c.split("."),r[0]!==i&&"0"!==r[0]||(f={t:0,L:r[0],U:r[1],D:r[2],F:r[3],k:o.tagName.toLowerCase(),j:o,p:null,m:null,g:null,v:null,h:null},t.push(f),o.removeAttribute("c-id"),e.m||(e.m=[]),e.m[f.F]=f,e=f,l&&"0"===f.D&&(l[f.F]=f.j))),u=o.childNodes.length-1;u>=0;u--)fe(e,t,n,l,s,o.childNodes[u],i);if(o.shadowRoot)for(u=o.shadowRoot.childNodes.length-1;u>=0;u--)fe(e,t,n,l,s,o.shadowRoot.childNodes[u],i)}else if(8===o.nodeType)r=o.nodeValue.split("."),r[1]!==i&&"0"!==r[1]||(c=r[0],f={t:0,L:r[1],U:r[2],D:r[3],F:r[4],j:o,p:null,m:null,g:null,v:null,k:null,h:null},"t"===c?(f.j=o.nextSibling,f.j&&3===f.j.nodeType&&(f.h=f.j.textContent,t.push(f),o.remove(),e.m||(e.m=[]),e.m[f.F]=f,l&&"0"===f.D&&(l[f.F]=f.j))):f.L===i&&("s"===c?(f.k="slot",o["s-sn"]=r[5]?f.v=r[5]:"",o["s-sr"]=!0,l&&(f.j=a.createElement(f.k),f.v&&f.j.setAttribute("name",f.v),o.parentNode.insertBefore(f.j,o),o.remove(),"0"===f.D&&(l[f.F]=f.j)),n.push(f),e.m||(e.m=[]),e.m[f.F]=f):"r"===c&&(l?o.remove():(s["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.k){const t=C(null,o.textContent);t.j=o,t.F="0",e.m=[t]}},ae=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)ae(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)ae(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},ue=(e,t,n)=>{if(t.A){e.watchers&&(t.q=e.watchers);const l=Object.entries(t.A),s=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(s,e,{get(){return((e,t)=>we(this).H.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=we(e),o=s.M,i=s.H.get(t),c=s.t,r=s.i;if(n=((e,t)=>null==e||O(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.A[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(s.H.set(t,n),r)){if(l.q&&128&c){const e=l.q[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){je(e,o)}}))}2==(18&c)&&ee(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(s,e,{value(...t){const n=we(this);return n.V.then((()=>n.i[e](...t)))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){$.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.T.push([e,s]),s}))}}return e},$e=e=>{ie(e,"connectedCallback")},de=e=>{if(0==(1&$.t)){const t=we(e),n=t.N,l=()=>{};if(1&t.t)p(e,t,n._),$e(t.i);else{let l;if(t.t|=1,l=e.getAttribute("s-id"),l){if(1&n.t){const t=k(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}((e,t,n,l)=>{const s=e.shadowRoot,o=[],i=s?[]:null,c=l.P=C(t,null);$.B||ae(a.body,$.B=new Map),e["s-id"]=n,e.removeAttribute("s-id"),fe(c,o,[],i,e,e,n),o.map((e=>{const n=e.L+"."+e.U,l=$.B.get(n),o=e.j;l&&""===l["s-en"]&&l.parentNode.insertBefore(o,l.nextSibling),s||(o["s-hn"]=t,l&&(o["s-ol"]=l,o["s-ol"]["s-nr"]=o)),$.B.delete(n)})),s&&i.map((e=>{e&&s.appendChild(e)}))})(e,n.$,l,t)}l||12&n.t&&he(e);{let n=e;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Z(t,t.R=n);break}}n.A&&Object.entries(n.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=xe(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.q=s.watchers,ue(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){je(e)}t.t&=-9,t.t|=128,e(),$e(t.i)}if(s.style){let e=s.style;const t=j(n);if(!Oe.has(t)){const l=()=>{};v(t,e,!!(1&n.t)),l()}}}const o=t.R,i=()=>ee(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}},he=e=>{const t=e["s-cr"]=a.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},pe=e=>{const t=e.cloneNode;e.cloneNode=function(e){const n=this,l=n.shadowRoot&&!0,s=t.call(n,!!l&&e);if(!l&&e){let e,t,l=0;const o=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si"];for(;l<n.childNodes.length;l++)e=n.childNodes[l]["s-nr"],t=o.every((e=>!n.childNodes[l][e])),e&&s.appendChild(e.cloneNode(!0)),t&&s.appendChild(n.childNodes[l].cloneNode(!0))}return s}},me=(e,t={})=>{const n=[],l=t.exclude||[],s=f.customElements,o=a.head,i=o.querySelector("meta[charset]"),c=a.createElement("style"),r=[],u=a.querySelectorAll("[sty-id]");let d,h=!0,p=0;for(Object.assign($,t),$.l=new URL(t.resourcesUrl||"./",a.baseURI).href,$.t|=2;p<u.length;p++)v(u[p].getAttribute("sty-id"),S(u[p].innerHTML),!0);e.map((e=>{e[1].map((t=>{const o={t:t[0],$:t[1],A:t[2],_:t[3]};o.A=t[2],o._=t[3],o.T=[],o.q={};const i=o.$,c=class extends HTMLElement{constructor(e){super(e),ve(e=this,o),1&o.t&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),h?r.push(this):$.jmp((()=>de(this)))}disconnectedCallback(){$.jmp((()=>(()=>{if(0==(1&$.t)){const e=we(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),ie(t,"disconnectedCallback")}})()))}componentOnReady(){return we(this).G}};pe(c.prototype),o.J=e[0],l.includes(i)||s.get(i)||(n.push(i),s.define(i,ue(c,o,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),o.insertBefore(c,i?i.nextSibling:o.firstChild),h=!1,r.length?r.map((e=>e.connectedCallback())):$.jmp((()=>d=setTimeout(oe,30)))},ye=(e,t)=>t,be=new WeakMap,we=e=>be.get(e),ge=(e,t)=>be.set(t.i=e,t),ve=(e,t)=>{const n={t:0,M:e,N:t,H:new Map};return n.V=new Promise((e=>n.I=e)),n.G=new Promise((e=>n.W=e)),e["s-p"]=[],e["s-rc"]=[],p(e,n,t._),be.set(e,n)},ke=(e,t)=>t in e,je=(e,t)=>(0,console.error)(e,t),Se=new Map,xe=e=>{const t=e.$.replace(/-/g,"_"),n=e.J,l=Se.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(Se.set(n,e),e[t])),je) /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Oe=new Map,Me=[],Ce=[],Re=(e,t)=>n=>{e.push(n),r||(r=!0,t&&4&$.t?Te(Pe):$.raf(Pe))},Ne=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){je(e)}e.length=0},Pe=()=>{Ne(Me),Ne(Ce),(r=Me.length>0)&&$.raf(Pe)},Te=e=>d().then(e),We=Re(Ce,!0);export{ye as F,u as H,e as N,R as a,me as b,X as c,Q as g,M as h,d as p,ge as r}