UNPKG

eiam-favorite-pages

Version:

Stencil Component Starter

3 lines 18.5 kB
const e="eiam-favorite-pages";const t={hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,updatable:true};var n=Object.defineProperty;var r=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var i="http://www.w3.org/2000/svg";var s="http://www.w3.org/1999/xhtml";var o=(e,t)=>{var n;const r=t.t;const i=Object.entries((n=r.i)!=null?n:{});i.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const i=l(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(i){Object.defineProperty(e,n,{get(){return i.get.call(this)},set(e){i.set.call(this,e)},configurable:true,enumerable:true})}e[n]=t.o.has(n)?t.o.get(n):r}}))};function l(e,t){while(e){const n=Object.getOwnPropertyDescriptor(e,t);if(n==null?void 0:n.get)return n;e=Object.getPrototypeOf(e)}return void 0}var f=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var a=(e,t)=>{if(!t)return;e.__stencil__getHostRef=()=>t;t.l=e;{o(e,t)}};var c=(e,t)=>{const n={u:0,$hostElement$:e,t,o:new Map,v:new Map};{n.h=new Promise((e=>n.p=e));e["s-p"]=[];e["s-rc"]=[]}{n.m=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var u=(e,t)=>t in e;var v=(e,t)=>(0,console.error)(e,t);var d=new Map;var h=(e,t,n)=>{const r=e.$.replace(/-/g,"_");const i=e.S;if(!i){return void 0}const s=d.get(i);if(s){return s[r]} /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${i}.entry.js${""}`).then((e=>{{d.set(i,e)}return e[r]}),(e=>{v(e,t.$hostElement$)}))};var p=new Map;var m="{visibility:hidden}.hydrated{visibility:inherit}";var w="slot-fb{display:contents}slot-fb[hidden]{display:none}";var b=typeof window!=="undefined"?window:{};var y={u:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var g=e=>Promise.resolve(e);var $=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var S=$?(()=>!!b.document&&Object.getOwnPropertyDescriptor(b.document.adoptedStyleSheets,"length").writable)():false;var j=false;var O=[];var k=[];var C=(e,t)=>n=>{e.push(n);if(!j){j=true;if(t&&y.u&4){x(M)}else{y.raf(M)}}};var E=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){v(e)}}e.length=0};var M=()=>{E(O);{E(k);if(j=O.length>0){y.raf(M)}}};var x=e=>g().then(e);var P=C(k,true);var U=e=>{e=typeof e;return e==="object"||e==="function"};function R(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var D=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var N={};r(N,{err:()=>A,map:()=>L,ok:()=>W,unwrap:()=>z,unwrapErr:()=>H});var W=e=>({isOk:true,isErr:false,value:e});var A=e=>({isOk:false,isErr:true,value:e});function L(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>W(e)))}else{return W(n)}}if(e.isErr){const t=e.value;return A(t)}throw"should never get here"}var z=e=>{if(e.isOk){return e.value}else{throw e.value}};var H=e=>{if(e.isErr){return e.value}else{throw e.value}};function T(e){return void 0}var V;function q(e){var t;const n=this.attachShadow({mode:"open"});if(V===void 0)V=(t=T())!=null?t:null;if(V){if(S){n.adoptedStyleSheets.push(V)}else{n.adoptedStyleSheets=[...n.adoptedStyleSheets,V]}}}var F=(e,t="")=>{{return()=>{}}};var I=(e,t)=>{{return()=>{}}};var G=new WeakMap;var Y=(e,t,n)=>{let r=p.get(e);if($&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}p.set(e,r)};var _=(e,t,n)=>{var r;const i=J(t);const s=p.get(i);if(!b.document){return i}e=e.nodeType===11?e:b.document;if(s){if(typeof s==="string"){e=e.head||e;let n=G.get(e);let o;if(!n){G.set(e,n=new Set)}if(!n.has(i)){{o=b.document.createElement("style");o.innerHTML=s;const n=(r=y.O)!=null?r:R(b.document);if(n!=null){o.setAttribute("nonce",n)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(o,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if($){const t=new CSSStyleSheet;t.replaceSync(s);if(S){e.adoptedStyleSheets.unshift(t)}else{e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t){t.innerHTML=s+t.innerHTML}else{e.prepend(o)}}}else{e.append(o)}}if(t.u&1){e.insertBefore(o,null)}}if(t.u&4){o.innerHTML+=w}if(n){n.add(i)}}}else if(!e.adoptedStyleSheets.includes(s)){if(S){e.adoptedStyleSheets.push(s)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}}return i};var B=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const i=F("attachStyles",t.$);const s=_(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=s;n.classList.add(s+"-h")}i()};var J=(e,t)=>"sc-"+e.$;var K=(e,t,...n)=>{let r=null;let i=null;let s=false;let o=false;const l=[];const f=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){f(r)}else if(r!=null&&typeof r!=="boolean"){if(s=typeof e!=="function"&&!U(r)){r=String(r)}if(s&&o){l[l.length-1].k+=r}else{l.push(s?Q(null,r):r)}o=s}}};f(n);if(t){if(t.key){i=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,l,ee)}const a=Q(e,null);a.C=t;if(l.length>0){a.M=l}{a.P=i}return a};var Q=(e,t)=>{const n={u:0,U:e,k:t,R:null,M:null};{n.C=null}{n.P=null}return n};var X={};var Z=e=>e&&e.U===X;var ee={forEach:(e,t)=>e.map(te).forEach(t),map:(e,t)=>e.map(te).map(t).map(ne)};var te=e=>({vattrs:e.C,vchildren:e.M,vkey:e.P,vname:e.D,vtag:e.U,vtext:e.k});var ne=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return K(e.vtag,t,...e.vchildren||[])}const t=Q(e.vtag,e.vtext);t.C=e.vattrs;t.M=e.vchildren;t.P=e.vkey;t.D=e.vname;return t};var re=e=>{const t=D(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};re("::slotted");re(":host");re(":host-context");var ie=(e,t,n)=>{if(e!=null&&!U(e)){if(t&1){return String(e)}return e}return e};var se=e=>{var t;return(t=f(e))==null?void 0:t.$hostElement$};var oe=(e,t,n)=>{const r=y.ce(t,n);e.dispatchEvent(r);return r};var le=(e,t,n,r,i,s,o)=>{if(n===r){return}let l=u(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const i=ae(n);let s=ae(r);{t.remove(...i.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!i.includes(e))))}}else if(t==="key");else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(u(b,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const i=t.endsWith(ce);t=t.replace(ue,"");if(n){y.rel(e,t,n,i)}if(r){y.ael(e,t,r,i)}}}else{const o=U(r);if((l||o&&r!==null)&&!i){try{if(!e.tagName.includes("-")){const i=r==null?"":r;if(t==="list"){l=false}else if(n==null||e[t]!=i){if(typeof e.__lookupSetter__(t)==="function"){e[t]=i}else{e.setAttribute(t,i)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!l||s&4||i)&&!o&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var fe=/\s/;var ae=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(fe)};var ce="Capture";var ue=new RegExp(ce+"$");var ve=(e,t,n,r)=>{const i=t.R.nodeType===11&&t.R.host?t.R.host:t.R;const s=e&&e.C||{};const o=t.C||{};{for(const e of de(Object.keys(s))){if(!(e in o)){le(i,e,s[e],void 0,n,t.u)}}}for(const e of de(Object.keys(o))){le(i,e,s[e],o[e],n,t.u)}};function de(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var he;var pe=false;var me=(e,t,n)=>{const r=t.M[n];let o=0;let l;let f;if(r.k!==null){l=r.R=b.document.createTextNode(r.k)}else{if(!pe){pe=r.U==="svg"}if(!b.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}l=r.R=b.document.createElementNS(pe?i:s,r.U);if(pe&&r.U==="foreignObject"){pe=false}{ve(null,r,pe)}if(r.M){for(o=0;o<r.M.length;++o){f=me(e,r,o);if(f){l.appendChild(f)}}}{if(r.U==="svg"){pe=false}else if(l.tagName==="foreignObject"){pe=true}}}l["s-hn"]=he;return l};var we=(e,t,n,r,i,s)=>{let o=e;let l;if(o.shadowRoot&&o.tagName===he){o=o.shadowRoot}for(;i<=s;++i){if(r[i]){l=me(null,n,i);if(l){r[i].R=l;Se(o,l,t)}}}};var be=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.R;if(e){e.remove()}}}};var ye=(e,t,n,r,i=false)=>{let s=0;let o=0;let l=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let h=r[v];let p;let m;while(s<=a&&o<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--a]}else if(d==null){d=r[++o]}else if(h==null){h=r[--v]}else if(ge(c,d,i)){$e(c,d,i);c=t[++s];d=r[++o]}else if(ge(u,h,i)){$e(u,h,i);u=t[--a];h=r[--v]}else if(ge(c,h,i)){$e(c,h,i);Se(e,c.R,u.R.nextSibling);c=t[++s];h=r[--v]}else if(ge(u,d,i)){$e(u,d,i);Se(e,u.R,c.R);u=t[--a];d=r[++o]}else{l=-1;{for(f=s;f<=a;++f){if(t[f]&&t[f].P!==null&&t[f].P===d.P){l=f;break}}}if(l>=0){m=t[l];if(m.U!==d.U){p=me(t&&t[o],n,l)}else{$e(m,d,i);t[l]=void 0;p=m.R}d=r[++o]}else{p=me(t&&t[o],n,o);d=r[++o]}if(p){{Se(c.R.parentNode,p,c.R)}}}}if(s>a){we(e,r[v+1]==null?null:r[v+1].R,n,r,o,v)}else if(o>v){be(t,s,a)}};var ge=(e,t,n=false)=>{if(e.U===t.U){if(!n){return e.P===t.P}if(n&&!e.P&&t.P){e.P=t.P}return true}return false};var $e=(e,n,r=false)=>{const i=n.R=e.R;const s=e.M;const o=n.M;const l=n.U;const f=n.k;if(f===null){{pe=l==="svg"?true:l==="foreignObject"?false:pe}{ve(e,n,pe)}if(s!==null&&o!==null){ye(i,s,n,o,r)}else if(o!==null){if(e.k!==null){i.textContent=""}we(i,null,n,o,0,o.length-1)}else if(!r&&t.updatable&&s!==null){be(s,0,s.length-1)}else;if(pe&&l==="svg"){pe=false}}else if(e.k!==f){i.data=f}};var Se=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var je=(e,t,n=false)=>{const r=e.$hostElement$;const i=e.N||Q(null,null);const s=Z(t);const o=s?t:K(null,null,t);he=r.tagName;if(n&&o.C){for(const e of Object.keys(o.C)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){o.C[e]=r[e]}}}o.U=null;o.u|=4;e.N=o;o.R=i.R=r.shadowRoot||r;$e(i,o,n)};var Oe=(e,t)=>{if(t&&!e.W&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.W=()=>{t["s-p"].splice(n-1,1);r()})))}};var ke=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}Oe(e,e.A);const n=()=>Ce(e,t);if(t){queueMicrotask((()=>{n()}));return}return P(n)};var Ce=(e,t)=>{const n=e.$hostElement$;const r=F("scheduleUpdate",e.t.$);const i=e.l;if(!i){throw new Error(`Can't render component <${n.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 s;if(t){{if(e.m.length){e.m.forEach((e=>e(n)))}}s=De(i,"componentWillLoad",void 0,n)}else{s=De(i,"componentWillUpdate",void 0,n)}s=Ee(s,(()=>De(i,"componentWillRender",void 0,n)));r();return Ee(s,(()=>xe(e,i,t)))};var Ee=(e,t)=>Me(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Me=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var xe=async(e,t,n)=>{var r;const i=e.$hostElement$;const s=F("update",e.t.$);const o=i["s-rc"];if(n){B(e)}const l=F("render",e.t.$);{Pe(e,t,i,n)}if(o){o.map((e=>e()));i["s-rc"]=void 0}l();s();{const t=(r=i["s-p"])!=null?r:[];const n=()=>Ue(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.u|=4;t.length=0}}};var Pe=(e,t,n,r)=>{try{t=t.render();{e.u&=-17}{e.u|=2}{{{je(e,t,r)}}}}catch(t){v(t,e.$hostElement$)}return null};var Ue=e=>{const t=e.t.$;const n=e.$hostElement$;const r=F("postUpdate",t);const i=e.l;const s=e.A;De(i,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{Ne(n)}De(i,"componentDidLoad",void 0,n);r();{e.p(n);if(!s){Re()}}}else{De(i,"componentDidUpdate",void 0,n);r()}{if(e.W){e.W();e.W=void 0}if(e.u&512){x((()=>ke(e,false)))}e.u&=-517}};var Re=t=>{x((()=>oe(b,"appload",{detail:{namespace:e}})))};var De=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){v(e,r)}}return void 0};var Ne=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var We=(e,t)=>f(e).o.get(t);var Ae=(e,t,n,r)=>{const i=f(e);if(!i){return}if(!i){throw new Error(`Couldn't find host element for "${r.$}" 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/stenciljs/core/issues/5457).`)}const s=i.$hostElement$;const o=i.o.get(t);const l=i.u;const a=i.l;n=ie(n,r.i[t][0]);const c=Number.isNaN(o)&&Number.isNaN(n);const u=n!==o&&!c;if((!(l&8)||o===void 0)&&u){i.o.set(t,n);if(a){if(r.L&&l&128){const e=r.L[t];if(e){e.map((e=>{try{a[e](n,o,t)}catch(e){v(e,s)}}))}}if((l&(2|16))===2){if(a.componentShouldUpdate){if(a.componentShouldUpdate(n,o,t)===false){return}}ke(i,false)}}}};var Le=(e,n,r)=>{var i,s;const o=e.prototype;if(n.i||t.propChangeCallback){{if(e.watchers&&!n.L){n.L=e.watchers}if(e.deserializers&&!n.H){n.H=e.deserializers}if(e.serializers&&!n.T){n.T=e.serializers}}const l=Object.entries((i=n.i)!=null?i:{});l.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:i,set:s}=Object.getOwnPropertyDescriptor(o,e)||{};if(i)n.i[e][0]|=2048;if(s)n.i[e][0]|=4096;if(r&1||!i){Object.defineProperty(o,e,{get(){{if((n.i[e][0]&2048)===0){return We(this,e)}const t=f(this);const r=t?t.l:o;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(i){const o=f(this);if(!o){return}if(s){const r=t&32?this[e]:o.$hostElement$[e];if(typeof r==="undefined"&&o.o.get(e)){i=o.o.get(e)}s.apply(this,[ie(i,t)]);i=t&32?this[e]:o.$hostElement$[e];Ae(this,e,i,n);return}{if((r&1)===0||(n.i[e][0]&4096)===0){Ae(this,e,i,n);if(r&1&&!o.l){o.m.push((()=>{if(n.i[e][0]&4096&&o.l[e]!==o.o.get(e)){o.l[e]=i}}))}return}const s=()=>{const r=o.l[e];if(!o.o.get(e)&&r){o.o.set(e,r)}o.l[e]=ie(i,t);Ae(this,e,o.l[e],n)};if(o.l){s()}else{o.m.push((()=>{s()}))}}}})}}));if(r&1){const r=new Map;o.attributeChangedCallback=function(e,i,s){y.jmp((()=>{var a;const c=r.get(e);const u=f(this);if(this.hasOwnProperty(c)&&t.lazyLoad){s=this[c];delete this[c]}if(o.hasOwnProperty(c)&&typeof this[c]==="number"&&this[c]==s){return}else if(c==null){const t=u==null?void 0:u.u;if(u&&t&&!(t&8)&&t&128&&s!==i){const t=u.l;const r=(a=n.L)==null?void 0:a[e];r==null?void 0:r.forEach((n=>{if(t[n]!=null){t[n].call(t,s,i,e)}}))}return}const v=l.find((([e])=>e===c));if(v&&v[1][0]&4){s=s===null||s==="false"?false:true}const d=Object.getOwnPropertyDescriptor(o,c);if(s!=this[c]&&(!d.get||!!d.set)){this[c]=s}}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=n.L)!=null?s:{}),...l.filter((([e,t])=>t[0]&31)).map((([e,t])=>{const n=t[1]||e;r.set(n,e);return n}))]))}}return e};var ze=async(e,t,n,r)=>{let i;if((t.u&32)===0){t.u|=32;const r=n.S;if(r){const r=h(n,t);if(r&&"then"in r){const e=I();i=await r;e()}else{i=r}if(!i){throw new Error(`Constructor for "${n.$}#${t.V}" was not found`)}if(!i.isProxied){{n.L=i.watchers;n.T=i.serializers;n.H=i.deserializers}Le(i,n,2);i.isProxied=true}const s=F("createInstance",n.$);{t.u|=8}try{new i(t)}catch(t){v(t,e)}{t.u&=-9}{t.u|=128}s();He(t.l,e)}else{i=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.u|=128))}if(i&&i.style){let e;if(typeof i.style==="string"){e=i.style}const t=J(n);if(!p.has(t)){const r=F("registerStyles",n.$);Y(t,e,!!(n.u&1));r()}}}const s=t.A;const o=()=>ke(t,true);if(s&&s["s-rc"]){s["s-rc"].push(o)}else{o()}};var He=(e,t)=>{{De(e,"connectedCallback",void 0,t)}};var Te=e=>{if((y.u&1)===0){const t=f(e);if(!t){return}const n=t.t;const r=F("connectedCallback",n.$);if(!(t.u&1)){t.u|=1;{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){Oe(t,t.A=n);break}}}if(n.i){Object.entries(n.i).map((([t,[n]])=>{if(n&31&&t in e&&e[t]!==Object.prototype[t]){const n=e[t];delete e[t];e[t]=n}}))}{ze(e,t,n)}}else{if(t==null?void 0:t.l){He(t.l,e)}else if(t==null?void 0:t.h){t.h.then((()=>He(t.l,e)))}}r()}};var Ve=(e,t)=>{{De(e,"disconnectedCallback",void 0,t||e)}};var qe=async e=>{if((y.u&1)===0){const t=f(e);if(t==null?void 0:t.l){Ve(t.l,e)}else if(t==null?void 0:t.h){t.h.then((()=>Ve(t.l,e)))}}if(G.has(e)){G.delete(e)}if(e.shadowRoot&&G.has(e.shadowRoot)){G.delete(e.shadowRoot)}};var Fe=(e,t={})=>{var n;if(!b.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=F();const i=[];const s=t.exclude||[];const o=b.customElements;const l=b.document.head;const a=l.querySelector("meta[charset]");const u=b.document.createElement("style");const v=[];let d;let h=true;Object.assign(y,t);y.j=new URL(t.resourcesUrl||"./",b.document.baseURI).href;let p=false;e.map((e=>{e[1].map((t=>{var n,r,l;const a={u:t[0],$:t[1],i:t[2],q:t[3]};if(a.u&4){p=true}{a.i=t[2]}{a.L=(n=t[4])!=null?n:{};a.T=(r=t[5])!=null?r:{};a.H=(l=t[6])!=null?l:{}}const u=a.$;const m=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;c(e,a);if(a.u&1){{if(!e.shadowRoot){q.call(e,a)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${a.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=f(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{y.jmp((()=>Te(this)))}}disconnectedCallback(){y.jmp((()=>qe(this)));y.raf((()=>{var e;const t=f(this);if(!t){return}const n=v.findIndex((e=>e===this));if(n>-1){v.splice(n,1)}if(((e=t==null?void 0:t.N)==null?void 0:e.R)instanceof Node&&!t.N.R.isConnected){delete t.N.R}}))}componentOnReady(){var e;return(e=f(this))==null?void 0:e.h}};a.S=e[0];if(!s.includes(u)&&!o.get(u)){i.push(u);o.define(u,Le(m,a,1))}}))}));if(i.length>0){if(p){u.textContent+=w}{u.textContent+=i.sort()+m}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=y.O)!=null?n:R(b.document);if(e!=null){u.setAttribute("nonce",e)}l.insertBefore(u,a?a.nextSibling:l.firstChild)}}h=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{y.jmp((()=>d=setTimeout(Re,30)))}}r()};var Ie=e=>y.O=e;export{X as H,Fe as b,se as g,K as h,g as p,a as r,Ie as s}; //# sourceMappingURL=p-B5PT1Ofq.js.map