@scania/tegel
Version:
Tegel Design System
2 lines • 16.9 kB
JavaScript
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",f="undefined"!=typeof window?window:{},a=f.document||{head:{}},d={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,v=[],y=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&d.o?g(b):d.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(v),$(y),(m=v.length>0)&&d.raf(b)},g=e=>h().then(e),k=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>C,map:()=>x,ok:()=>E,unwrap:()=>T,unwrapErr:()=>A});var E=e=>({isOk:!0,isErr:!1,value:e}),C=e=>({isOk:!1,isErr:!0,value:e});function x(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return C(e.value);throw"should never get here"}var M,R,P,T=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},F=(e,t,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],u=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof e&&!j(o))&&(o+=""),r&&i?c[c.length-1].i+=o:c.push(r?L(null,o):o),i=r)};if(u(n),t){t.key&&(l=t.key),t.name&&(s=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,c,W);const f=L(e,null);return f.u=t,c.length>0&&(f.h=c),f.p=l,f.m=s,f},L=(e,t)=>({o:0,v:e,i:t,$:null,h:null,u:null,p:null,m:null}),N={},W={forEach:(e,t)=>e.map(D).forEach(t),map:(e,t)=>e.map(D).map(t).map(H)},D=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.m,vtag:e.v,vtext:e.i}),H=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),F(e.vtag,t,...e.vchildren||[])}const t=L(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.m=e.vname,t},U=e=>n(e).$hostElement$,q=(e,t,n)=>{const o=U(e);return{emit:e=>B(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},B=(e,t,n)=>{const o=d.ce(t,n);return e.dispatchEvent(o),o},G=new WeakMap,V=e=>"sc-"+e.k,_=(e,t,n,o,s,r)=>{if(n!==o){let i=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=I(n),s=I(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(i||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((i||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,f=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!i||4&r||s)&&!l&&(o=!0===o?"":o,f?e.setAttributeNS(u,t,o):e.setAttribute(t,o))}else if(t="-"===t[2]?t.slice(3):l(f,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(J);t=t.replace(K,""),n&&d.rel(e,t,n,l),o&&d.ael(e,t,o,l)}}},z=/\s/,I=e=>e?e.split(z):[],J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||S,s=t.u||S;for(const e of X(Object.keys(l)))e in s||_(o,e,l[e],void 0,n,t.o);for(const e of X(Object.keys(s)))_(o,e,l[e],s[e],n,t.o)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,Z=!1,ee=!1,te=!1,ne=(e,t,n,o)=>{var l;const s=t.h[n];let r,i,c,u=0;if(Y||(ee=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)r=s.$=a.createTextNode(s.i);else if(1&s.o)r=s.$=a.createTextNode("");else{if(te||(te="svg"===s.v),r=s.$=a.createElementNS(te?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Y&&2&s.o?"slot-fb":s.v),te&&"foreignObject"===s.v&&(te=!1),Q(null,s,te),null!=M&&r["s-si"]!==M&&r.classList.add(r["s-si"]=M),ye(r,o),s.h)for(u=0;u<s.h.length;++u)i=ne(e,s,u,r),i&&r.appendChild(i);"svg"===s.v?te=!1:"foreignObject"===r.tagName&&(te=!0)}return r["s-hn"]=P,3&s.o&&(r["s-sr"]=!0,r["s-cr"]=R,r["s-sn"]=s.m||"",r["s-rf"]=null==(l=s.u)?void 0:l.ref,c=e&&e.h&&e.h[n],c&&c.v===s.v&&e.$&&oe(e.$,!1)),r},oe=(e,t)=>{d.o|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==P&&o["s-ol"]&&(me(ce(o),o,ie(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ee=!0),t&&oe(o,t)}d.o&=-2},le=(e,t,n,o,l,s)=>{let r,i=e["s-cr"]&&e["s-cr"].parentNode||e;for(i.shadowRoot&&i.tagName===P&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=ne(null,n,l,e),r&&(o[l].$=r,me(i,r,ie(t))))},se=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;pe(t),e&&(Z=!0,e["s-ol"]?e["s-ol"].remove():oe(e,!0),e.remove())}}},re=(e,t,n=!1)=>e.v===t.v&&("slot"===e.v?e.m===t.m:!!n||e.p===t.p),ie=e=>e&&e["s-ol"]||e,ce=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ue=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,r=t.v,i=t.i;let c;null===i?(te="svg"===r||"foreignObject"!==r&&te,("slot"!==r||Y)&&Q(e,t,te),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=t.length-1,d=t[0],h=t[a],p=o.length-1,m=o[0],v=o[p];for(;i<=a&&c<=p;)if(null==d)d=t[++i];else if(null==h)h=t[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(re(d,m,l))ue(d,m,l),d=t[++i],m=o[++c];else if(re(h,v,l))ue(h,v,l),h=t[--a],v=o[--p];else if(re(d,v,l))"slot"!==d.v&&"slot"!==v.v||oe(d.$.parentNode,!1),ue(d,v,l),me(e,d.$,h.$.nextSibling),d=t[++i],v=o[--p];else if(re(h,m,l))"slot"!==d.v&&"slot"!==v.v||oe(h.$.parentNode,!1),ue(h,m,l),me(e,h.$,d.$),h=t[--a],m=o[++c];else{for(u=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){u=f;break}u>=0?(r=t[u],r.v!==m.v?s=ne(t&&t[c],n,u,e):(ue(r,m,l),t[u]=void 0,s=r.$),m=o[++c]):(s=ne(t&&t[c],n,c,e),m=o[++c]),s&&me(ce(d.$),s,ie(d.$))}i>a?le(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&se(t,i,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),le(o,null,t,s,0,s.length-1)):null!==l&&se(l,0,l.length-1),te&&"svg"===r&&(te=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:e.i!==i&&(o.data=i)},fe=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const o of t)if(o!==e)if(o["s-hn"]!==e["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){e.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){e.hidden=!0;break}}fe(e)}},ae=[],de=e=>{let t,n,o;for(const l of e.childNodes){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=l["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"])if(he(t,e)){let n=ae.find((e=>e.S===t));Z=!0,t["s-sn"]=t["s-sn"]||e,n?(n.S["s-sh"]=l["s-hn"],n.j=l):(t["s-sh"]=l["s-hn"],ae.push({j:l,S:t})),t["s-sr"]&&ae.map((e=>{he(e.S,t["s-sn"])&&(n=ae.find((e=>e.S===t)),n&&!e.j&&(e.j=n.j))}))}else ae.some((e=>e.S===t))||ae.push({S:t})}1===l.nodeType&&de(l)}},he=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,pe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(pe)},me=(e,t,n)=>{const o=null==e?void 0:e.insertBefore(t,n);return ye(t,e),o},ve=e=>{const t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...ve(e.parentElement)),t},ye=(e,t,n=!1)=>{var o;if(e&&t&&1===e.nodeType){const l=new Set(ve(t).filter(Boolean));if(l.size&&(null==(o=e.classList)||o.add(...e["s-scs"]=[...l]),e["s-ol"]||n))for(const t of Array.from(e.childNodes))ye(t,e,!0)}},we=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.O=t)))},$e=(e,t)=>{if(e.o|=16,!(4&e.o))return we(e,e.C),k((()=>be(e,t)));e.o|=512},be=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(e.o|=256,e.M&&(e.M.map((([e,t])=>Ce(n,e,t))),e.M=void 0),o=Ce(n,"componentWillLoad")),o=ge(o,(()=>Ce(n,"componentWillRender"))),ge(o,(()=>Se(e,n,t)))},ge=(e,t)=>ke(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ke=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Se=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.R,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=V(t),l=i.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,r=G.get(e=e.head||e);if(r||G.set(e,r=new Set),!r.has(o)){{s=a.createElement("style"),s.innerHTML=l;const t=null!=(n=d.P)?n:O(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.o&&(s.innerHTML+=c),r&&r.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"),2&o&&n.classList.add(l+"-s"))})(e);je(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>Oe(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},je=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{var o,l,s,r;const i=e.$hostElement$,c=e.R,u=e.T||L(null,null),f=(e=>e&&e.v===N)(t)?t:F(null,null,t);if(P=i.tagName,c.A&&(f.u=f.u||{},c.A.map((([e,t])=>f.u[t]=i[e]))),n&&f.u)for(const e of Object.keys(f.u))i.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(f.u[e]=i[e]);if(f.v=null,f.o|=4,e.T=f,f.$=u.$=i.shadowRoot||i,M=i["s-sc"],Y=!!(1&c.o),R=i["s-cr"],Z=!1,ue(u,f,n),d.o|=1,ee){de(f.$);for(const e of ae){const t=e.S;if(!t["s-ol"]){const e=a.createTextNode("");e["s-nr"]=t,me(t.parentNode,t["s-ol"]=e,t)}}for(const e of ae){const t=e.S,i=e.j;if(i){const e=i.parentNode;let n=i.nextSibling;{let s=null==(o=t["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===t["s-sn"]&&e===o.parentNode){for(o=o.nextSibling;o===t||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),me(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof i["s-rf"]&&i["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(r=t.hidden)&&r),t.hidden=!0)}}Z&&fe(f.$),d.o&=-2,ae.length=0,R=void 0})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},Oe=e=>{const t=e.$hostElement$,n=e.t,o=e.C;Ce(n,"componentDidRender"),64&e.o||(e.o|=64,xe(t),Ce(n,"componentDidLoad"),e.F(t),o||Ee()),e.L(t),e.O&&(e.O(),e.O=void 0),512&e.o&&g((()=>$e(e,!1))),e.o&=-517},Ee=()=>{xe(a.documentElement),g((()=>B(f,"appload",{detail:{namespace:"tegel"}})))},Ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},xe=e=>e.classList.add("hydrated"),Me=(e,t,o)=>{var l,r;const i=e.prototype;if(t.N||t.W||e.watchers){e.watchers&&!t.W&&(t.W=e.watchers);const c=Object.entries(null!=(l=t.N)?l:{});if(c.map((([e,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(i,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(o){((e,t,o,l)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.D.get(t),u=r.o,f=r.t;if(o=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(o,l.N[t][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.D.set(t,o),f)){if(l.W&&128&u){const e=l.W[t];e&&e.map((e=>{try{f[e](o,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&$e(r,!1)}})(this,e,o,t)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(i,e,{value(...t){var o;const l=n(this);return null==(o=null==l?void 0:l.H)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[e](...t)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){d.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.W)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.W)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var l;const s=n[1]||e;return o.set(s,e),512&n[0]&&(null==(l=t.A)||l.push([e,s])),s}))]))}}return e},Re=e=>{Ce(e,"connectedCallback")},Pe=e=>{Ce(e,"disconnectedCallback")},Te=(e,o={})=>{var l;const u=[],h=o.exclude||[],m=f.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),$=[];let b,g=!0;Object.assign(d,o),d.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let k=!1;if(e.map((e=>{e[1].map((l=>{var c;const f={o:l[0],k:l[1],N:l[2],U:l[3]};4&f.o&&(k=!0),f.N=l[2],f.U=l[3],f.A=[],f.W=null!=(c=l[4])?c:{};const v=o.transformTagName?o.transformTagName(f.k):f.k,y=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,R:n,D:new Map};o.H=new Promise((e=>o.L=e)),o.q=new Promise((e=>o.F=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,f),1&f.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${f.k}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open",delegatesFocus:!!(16&f.o)})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Fe(this,e,f.U)),b&&(clearTimeout(b),b=null),g?$.push(this):d.jmp((()=>(e=>{if(!(1&d.o)){const t=n(e),o=t.R,l=()=>{};if(1&t.o)Fe(e,t,o.U),(null==t?void 0:t.t)?Re(t.t):(null==t?void 0:t.q)&&t.q.then((()=>Re(t.t)));else{t.o|=1,12&o.o&&(e=>{const t=e["s-cr"]=a.createComment("");t["s-cn"]=!0,me(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){we(t,t.C=n);break}}o.N&&Object.entries(o.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.B){const e=(e=>{const t=e.k.replace(/-/g,"_"),n=e.B;if(!n)return;const o=r.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.k}#${t.G}" was not found`);o.isProxied||(n.W=o.watchers,Me(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,t.o|=128,l(),Re(t.t)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=V(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.C,c=()=>$e(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.o)){const e=n(this);e.V&&(e.V.map((e=>e())),e.V=void 0),(null==e?void 0:e.t)?Pe(e.t):(null==e?void 0:e.q)&&e.q.then((()=>Pe(e.t)))}})()))}componentOnReady(){return n(this).q}};f.B=e[0],h.includes(v)||m.get(v)||(u.push(v),m.define(v,Me(y,f,1)))}))})),u.length>0&&(k&&(w.textContent+=c),w.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(l=d.P)?l:O(a);null!=e&&w.setAttribute("nonce",e),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):d.jmp((()=>b=setTimeout(Ee,30)))},Ae=(e,t)=>t,Fe=(e,t,n)=>{n&&n.map((([n,o,l])=>{const s=Ne(e,n),r=Le(t,l),i=We(n);d.ael(s,o,r,i),(t.V=t.V||[]).push((()=>d.rel(s,o,r,i)))}))},Le=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.M=e.M||[]).push([t,n])}catch(e){s(e)}},Ne=(e,t)=>4&t?a:8&t?f:16&t?a.body:e,We=e=>({passive:!!(1&e),capture:!!(2&e)}),De=e=>d.P=e;export{Ae as F,N as H,Te as b,q as c,U as g,F as h,h as p,o as r,De as s}