@peculiar/fortify-webcomponents
Version:
Web-components for creating CSR or Certificate and viewing certificates list using Fortify
6 lines • 26.9 kB
JavaScript
/*!
* © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License
*/
const e="peculiar";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:false,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var n=Object.defineProperty;var l=(e,t)=>{for(var l in t)n(e,l,{get:t[l],enumerable:true})};var s=new WeakMap;var r=e=>s.get(e);var i=(e,t)=>s.set(t.t=e,t);var o=(e,t)=>{const n={l:0,$hostElement$:e,i:t,o:new Map};{n.u=new Promise((e=>n.v=e));e["s-p"]=[];e["s-rc"]=[]}return s.set(e,n)};var f=(e,t)=>t in e;var a=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,n)=>{const l=e.h.replace(/-/g,"_");const s=e.p;if(!s){return void 0}const r=c.get(s);if(r){return r[l]}
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${s}.entry.js${""}`).then((e=>{{c.set(s,e)}return e[l]}),a)};var v=new Map;var d="r";var h="o";var p="s";var $="t";var m="c";var y="s-id";var b="sty-id";var w="c-id";var g="{visibility:hidden}.hydrated{visibility:inherit}";var S="slot-fb{display:contents}slot-fb[hidden]{display:none}";var k="http://www.w3.org/1999/xlink";var x=typeof window!=="undefined"?window:{};var C=x.document||{head:{}};var j={l:0,$:"",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)};var O=e=>Promise.resolve(e);var T=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var D=false;var E=[];var A=[];var L=(e,t)=>n=>{e.push(n);if(!D){D=true;if(t&&j.l&4){F(M)}else{j.raf(M)}}};var R=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){a(e)}}e.length=0};var M=()=>{R(E);{R(A);if(D=E.length>0){j.raf(M)}}};var F=e=>O().then(e);var I=L(A,true);var N={};var P="http://www.w3.org/2000/svg";var U="http://www.w3.org/1999/xhtml";var W=e=>e!=null;var H=e=>{e=typeof e;return e==="object"||e==="function"};function B(e){var t,n,l;return(l=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?l:void 0}var z={};l(z,{err:()=>q,map:()=>G,ok:()=>Q,unwrap:()=>K,unwrapErr:()=>V});var Q=e=>({isOk:true,isErr:false,value:e});var q=e=>({isOk:false,isErr:true,value:e});function G(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>Q(e)))}else{return Q(n)}}if(e.isErr){const t=e.value;return q(t)}throw"should never get here"}var K=e=>{if(e.isOk){return e.value}else{throw e.value}};var V=e=>{if(e.isErr){return e.value}else{throw e.value}};var X=(e,t,...n)=>{let l=null;let s=null;let r=null;let i=false;let o=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){l=t[n];if(Array.isArray(l)){a(l)}else if(l!=null&&typeof l!=="boolean"){if(i=typeof e!=="function"&&!H(l)){l=String(l)}if(i&&o){f[f.length-1].m+=l}else{f.push(i?_(null,l):l)}o=i}}};a(n);if(t){if(t.key){s=t.key}if(t.name){r=t.name}{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,f,Z)}const c=_(e,null);c.S=t;if(f.length>0){c.k=f}{c.C=s}{c.j=r}return c};var _=(e,t)=>{const n={l:0,O:e,m:t,T:null,k:null};{n.S=null}{n.C=null}{n.j=null}return n};var J={};var Y=e=>e&&e.O===J;var Z={forEach:(e,t)=>e.map(ee).forEach(t),map:(e,t)=>e.map(ee).map(t).map(te)};var ee=e=>({vattrs:e.S,vchildren:e.k,vkey:e.C,vname:e.j,vtag:e.O,vtext:e.m});var te=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 X(e.vtag,t,...e.vchildren||[])}const t=_(e.vtag,e.vtext);t.S=e.vattrs;t.k=e.vchildren;t.C=e.vkey;t.j=e.vname;return t};var ne=(e,t,n,l,s,r)=>{if(n!==l){let i=f(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const s=se(n);const r=se(l);if(e["s-si"]&&r.indexOf(e["s-si"])<0){r.push(e["s-si"])}t.remove(...s.filter((e=>e&&!r.includes(e))));t.add(...r.filter((e=>e&&!s.includes(e))))}else if(t==="style"){{for(const t in n){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!n||l[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(t==="ref"){if(l){l(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(f(x,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(n||l){const s=t.endsWith(re);t=t.replace(ie,"");if(n){j.rel(e,t,n,s)}if(l){j.ael(e,t,l,s)}}}else{const f=H(l);if((i||f&&l!==null)&&!s){try{if(!e.tagName.includes("-")){const s=l==null?"":l;if(t==="list"){i=false}else if(n==null||e[t]!=s){if(typeof e.__lookupSetter__(t)==="function"){e[t]=s}else{e.setAttribute(t,s)}}}else{e[t]=l}}catch(e){}}let a=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;a=true}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){if(a){e.removeAttributeNS(k,t)}else{e.removeAttribute(t)}}}else if((!i||r&4||s)&&!f){l=l===true?"":l;if(a){e.setAttributeNS(k,t,l)}else{e.setAttribute(t,l)}}}}};var le=/\s/;var se=e=>!e?[]:e.split(le);var re="Capture";var ie=new RegExp(re+"$");var oe=(e,t,n)=>{const l=t.T.nodeType===11&&t.T.host?t.T.host:t.T;const s=e&&e.S||N;const r=t.S||N;{for(const e of fe(Object.keys(s))){if(!(e in r)){ne(l,e,s[e],void 0,n,t.l)}}}for(const e of fe(Object.keys(r))){ne(l,e,s[e],r[e],n,t.l)}};function fe(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ae;var ce;var ue;var ve=false;var de=false;var he=false;var pe=false;var $e=(e,n,l,s)=>{var r;const i=n.k[l];let o=0;let f;let a;let c;if(!ve){he=true;if(i.O==="slot"){if(ae){s.classList.add(ae+"-s")}i.l|=i.k?2:1}}if(i.m!==null){f=i.T=C.createTextNode(i.m)}else if(i.l&1){f=i.T=C.createTextNode("")}else{if(!pe){pe=i.O==="svg"}f=i.T=C.createElementNS(pe?P:U,!ve&&t.slotRelocation&&i.l&2?"slot-fb":i.O);if(pe&&i.O==="foreignObject"){pe=false}{oe(null,i,pe)}const n=f.getRootNode();const l=!n.querySelector("body");if(!l&&t.scoped&&W(ae)&&f["s-si"]!==ae){f.classList.add(f["s-si"]=ae)}{Le(f,s)}if(i.k){for(o=0;o<i.k.length;++o){a=$e(e,i,o,f);if(a){f.appendChild(a)}}}{if(i.O==="svg"){pe=false}else if(f.tagName==="foreignObject"){pe=true}}}f["s-hn"]=ue;{if(i.l&(2|1)){f["s-sr"]=true;f["s-cr"]=ce;f["s-sn"]=i.j||"";f["s-rf"]=(r=i.S)==null?void 0:r.ref;c=e&&e.k&&e.k[l];if(c&&c.O===i.O&&e.T){{me(e.T,false)}}}}return f};var me=(e,n)=>{j.l|=1;const l=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===ue){l.push(t)}}}for(let e=l.length-1;e>=0;e--){const t=l[e];if(t["s-hn"]!==ue&&t["s-ol"]){Ee(ke(t),t,Se(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;he=true}if(n){me(t,n)}}j.l&=~1};var ye=(e,t,n,l,s,r)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let o;if(i.shadowRoot&&i.tagName===ue){i=i.shadowRoot}for(;s<=r;++s){if(l[s]){o=$e(null,n,s,e);if(o){l[s].T=o;Ee(i,o,Se(t))}}}};var be=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.T;De(t);if(e){{de=true;if(e["s-ol"]){e["s-ol"].remove()}else{me(e,true)}}e.remove()}}}};var we=(e,t,n,l,s=false)=>{let r=0;let i=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=l.length-1;let d=l[0];let h=l[v];let p;let $;while(r<=a&&i<=v){if(c==null){c=t[++r]}else if(u==null){u=t[--a]}else if(d==null){d=l[++i]}else if(h==null){h=l[--v]}else if(ge(c,d,s)){xe(c,d,s);c=t[++r];d=l[++i]}else if(ge(u,h,s)){xe(u,h,s);u=t[--a];h=l[--v]}else if(ge(c,h,s)){if(c.O==="slot"||h.O==="slot"){me(c.T.parentNode,false)}xe(c,h,s);Ee(e,c.T,u.T.nextSibling);c=t[++r];h=l[--v]}else if(ge(u,d,s)){if(c.O==="slot"||h.O==="slot"){me(u.T.parentNode,false)}xe(u,d,s);Ee(e,u.T,c.T);u=t[--a];d=l[++i]}else{o=-1;{for(f=r;f<=a;++f){if(t[f]&&t[f].C!==null&&t[f].C===d.C){o=f;break}}}if(o>=0){$=t[o];if($.O!==d.O){p=$e(t&&t[i],n,o,e)}else{xe($,d,s);t[o]=void 0;p=$.T}d=l[++i]}else{p=$e(t&&t[i],n,i,e);d=l[++i]}if(p){{Ee(ke(c.T),p,Se(c.T))}}}}if(r>a){ye(e,l[v+1]==null?null:l[v+1].T,n,l,i,v)}else if(i>v){be(t,r,a)}};var ge=(e,t,n=false)=>{if(e.O===t.O){if(e.O==="slot"){if("D"in e&&n&&e.T.nodeType!==8){return false}return e.j===t.j}if(!n){return e.C===t.C}return true}return false};var Se=e=>e&&e["s-ol"]||e;var ke=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;var xe=(e,n,l=false)=>{const s=n.T=e.T;const r=e.k;const i=n.k;const o=n.O;const f=n.m;let a;if(f===null){{pe=o==="svg"?true:o==="foreignObject"?false:pe}{if(o==="slot"&&!ve);else{oe(e,n,pe)}}if(r!==null&&i!==null){we(s,r,n,i,l)}else if(i!==null){if(e.m!==null){s.textContent=""}ye(s,null,n,i,0,i.length-1)}else if(!l&&t.updatable&&r!==null){be(r,0,r.length-1)}if(pe&&o==="svg"){pe=false}}else if(a=s["s-cr"]){a.parentNode.textContent=f}else if(e.m!==f){s.data=f}};var Ce=e=>{const t=e.__childNodes||e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const n=e["s-sn"];e.hidden=false;for(const l of t){if(l!==e){if(l["s-hn"]!==e["s-hn"]||n!==""){if(l.nodeType===1&&(n===l.getAttribute("slot")||n===l["s-sn"])||l.nodeType===3&&n===l["s-sn"]){e.hidden=true;break}}else if(n===l["s-sn"]){if(l.nodeType===1||l.nodeType===3&&l.textContent.trim()!==""){e.hidden=true;break}}}}}Ce(e)}}};var je=[];var Oe=e=>{let n;let l;let s;const r=e.__childNodes||e.childNodes;for(const e of r){if(e["s-sr"]&&(n=e["s-cr"])&&n.parentNode){l=n.parentNode.__childNodes||n.parentNode.childNodes;const r=e["s-sn"];for(s=l.length-1;s>=0;s--){n=l[s];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==e["s-hn"]&&!t.experimentalSlotFixes){if(Te(n,r)){let t=je.find((e=>e.A===n));de=true;n["s-sn"]=n["s-sn"]||r;if(t){t.A["s-sh"]=e["s-hn"];t.L=e}else{n["s-sh"]=e["s-hn"];je.push({L:e,A:n})}if(n["s-sr"]){je.map((e=>{if(Te(e.A,n["s-sn"])){t=je.find((e=>e.A===n));if(t&&!e.L){e.L=t.L}}}))}}else if(!je.some((e=>e.A===n))){je.push({A:n})}}}}if(e.nodeType===1){Oe(e)}}};var Te=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var De=e=>{{e.S&&e.S.ref&&e.S.ref(null);e.k&&e.k.map(De)}};var Ee=(e,t,n)=>{const l=e==null?void 0:e.insertBefore(t,n);{Le(t,e)}return l};var Ae=e=>{const t=[];if(e){t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...Ae(e.parentElement))}return t};var Le=(e,t,n=false)=>{var l;if(e&&t&&e.nodeType===1){const s=new Set(Ae(t).filter(Boolean));if(s.size){(l=e.classList)==null?void 0:l.add(...e["s-scs"]=Array.from(s));if(e["s-ol"]||n){for(const t of Array.from(e.__childNodes||e.childNodes)){Le(t,e,true)}}}}};var Re=(e,t,n=false)=>{var l,s,r,i;const o=e.$hostElement$;const f=e.i;const a=e.R||_(null,null);const c=Y(t)?t:X(null,null,t);ue=o.tagName;if(f.M){c.S=c.S||{};f.M.map((([e,t])=>c.S[t]=o[e]))}if(n&&c.S){for(const e of Object.keys(c.S)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){c.S[e]=o[e]}}}c.O=null;c.l|=4;e.R=c;c.T=a.T=o.shadowRoot||o;{ae=o["s-sc"]}ve=(f.l&1)!==0;{ce=o["s-cr"];de=false}xe(a,c,n);{j.l|=1;if(he){Oe(c.T);for(const e of je){const t=e.A;if(!t["s-ol"]){const e=C.createTextNode("");e["s-nr"]=t;Ee(t.parentNode,t["s-ol"]=e,t)}}for(const e of je){const t=e.A;const o=e.L;if(o){const e=o.parentNode;let n=o.nextSibling;{let r=(l=t["s-ol"])==null?void 0:l.previousSibling;while(r){let l=(s=r["s-nr"])!=null?s:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){l=l.nextSibling;while(l===t||(l==null?void 0:l["s-sr"])){l=l==null?void 0:l.nextSibling}if(!l||!l["s-nr"]){n=l;break}}r=r.previousSibling}}if(!n&&e!==t.parentNode||t.nextSibling!==n){if(t!==n){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}Ee(e,t,n);if(t.nodeType===1){t.hidden=(r=t["s-ih"])!=null?r:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](t)}else{if(t.nodeType===1){if(n){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(de){Ce(c.T)}j.l&=~1;je.length=0}ce=void 0};var Me=(e,t,n,l)=>{let s;if(e["s-ol"]&&e["s-ol"].isConnected){s=e["s-ol"]}else{s=document.createTextNode("");s["s-nr"]=e}if(!t["s-cr"]||!t["s-cr"].parentNode)return;const r=t["s-cr"].parentNode;const i=n?r.__prepend||r.prepend:r.__appendChild||r.appendChild;if(typeof l!=="undefined"){{s["s-oo"]=l;const e=r.__childNodes||r.childNodes;const t=[s];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<t["s-oo"])return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>i.call(r,e)))}}else{i.call(r,s)}e["s-ol"]=s;e["s-sh"]=t["s-hn"]};var Fe=(e,t="")=>{{return()=>{}}};var Ie=(e,t)=>{{return()=>{}}};var Ne=(e,t,n,l)=>{const s=Fe("hydrateClient",t);const r=e.shadowRoot;const i=[];const o=[];const f=[];const a=r?[]:null;const c=_(t,null);c.T=e;if(!j.F){Ue(C.body,j.F=new Map)}e[y]=n;e.removeAttribute(y);l.R=Pe(c,i,o,a,e,e,n,f);let u=0;const v=i.length;let d;for(u;u<v;u++){d=i[u];const n=d.I+"."+d.D;const l=j.F.get(n);const s=d.T;if(!r){s["s-hn"]=t.toUpperCase();if(d.O==="slot"){s["s-cr"]=e["s-cr"]}}if(l&&l.isConnected){if(r&&l["s-en"]===""){l.parentNode.insertBefore(s,l.nextSibling)}l.parentNode.removeChild(l);if(!r){s["s-oo"]=parseInt(d.D)}}j.F.delete(n)}const h=[];let p=0;const $=f.length;let m;let b;let w;let g;for(p;p<$;p++){m=f[p];if(!m||!m.length)continue;w=m.length;b=0;for(b;b<w;b++){g=m[b];if(!h[g.hostId]){h[g.hostId]=j.F.get(g.hostId)}if(!h[g.hostId])continue;const e=h[g.hostId];if(!e.shadowRoot||!r){g.slot["s-cr"]=e["s-cr"];if(!g.slot["s-cr"]&&e.shadowRoot){g.slot["s-cr"]=e}else{const t=e.__childNodes||e.childNodes;g.slot["s-cr"]=t[0]}Me(g.node,g.slot,false,g.node["s-oo"])}if(e.shadowRoot&&g.node.parentElement!==e){e.appendChild(g.node)}}}if(r){let t=0;const n=a.length;for(t;t<n;t++){r.appendChild(a[t])}Array.from(e.childNodes).forEach((e=>{if(e.nodeType===8&&typeof e["s-sn"]!=="string"){e.parentNode.removeChild(e)}}))}l.$hostElement$=e;s()};var Pe=(e,t,n,l,s,r,i,o=[])=>{let f;let a;let c;let u;const v=s["s-sc"];if(r.nodeType===1){f=r.getAttribute(w);if(f){a=f.split(".");if(a[0]===i||a[0]==="0"){c=We({l:0,I:a[0],D:a[1],N:a[2],P:a[3],O:r.tagName.toLowerCase(),T:r,S:{class:r.className}});t.push(c);r.removeAttribute(w);if(!e.k){e.k=[]}const s=c.T.getAttribute("s-sn");if(typeof s==="string"){if(c.O==="slot-fb"){He(s,a[2],c,r,e,t,n,l,o)}c.T["s-sn"]=s;c.T.removeAttribute("s-sn")}if(c.P!==void 0){e.k[c.P]=c}if(v)r["s-si"]=v;e=c;if(l&&c.N==="0"){l[c.P]=c.T}}}if(r.shadowRoot){for(u=r.shadowRoot.childNodes.length-1;u>=0;u--){Pe(e,t,n,l,s,r.shadowRoot.childNodes[u],i,o)}}const d=r.__childNodes||r.childNodes;for(u=d.length-1;u>=0;u--){Pe(e,t,n,l,s,d[u],i,o)}}else if(r.nodeType===8){a=r.nodeValue.split(".");if(a[1]===i||a[1]==="0"){f=a[0];c=We({I:a[1],D:a[2],N:a[3],P:a[4]||"0",T:r,S:null,k:null,C:null,j:null,O:null,m:null});if(f===$){c.T=r.nextSibling;if(c.T&&c.T.nodeType===3){c.m=c.T.textContent;t.push(c);r.remove();if(i===c.I){if(!e.k){e.k=[]}e.k[c.P]=c}if(l&&c.N==="0"){l[c.P]=c.T}}}else if(f===m){c.T=r.nextSibling;if(c.T&&c.T.nodeType===8){t.push(c);r.remove()}}else if(c.I===i){if(f===p){c.O="slot";const s=r["s-sn"]=c.j=a[5]||"";He(s,a[2],c,r,e,t,n,l,o)}else if(f===d){if(l){r.remove()}else{s["s-cr"]=r;r["s-cn"]=true}}}}}else if(e&&e.O==="style"){const t=_(null,r.textContent);t.T=r;t.P="0";e.k=[t]}return e};var Ue=(e,t)=>{if(e.nodeType===1){const n=e[y]||e.getAttribute(y);if(n){t.set(n,e)}let l=0;if(e.shadowRoot){for(;l<e.shadowRoot.childNodes.length;l++){Ue(e.shadowRoot.childNodes[l],t)}}const s=e.__childNodes||e.childNodes;for(l=0;l<s.length;l++){Ue(s[l],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===h){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var We=e=>{const t={l:0,I:null,D:null,N:null,P:"0",T:null,S:null,k:null,C:null,j:null,O:null,m:null};return{...t,...e}};function He(e,t,n,l,s,r,i,o,f){l["s-sr"]=true;const a=(s==null?void 0:s.T)?s.T["s-id"]||s.T.getAttribute("s-id"):"";if(o){const r=n.T=C.createElement(n.O);if(n.j){n.T.setAttribute("name",e)}if(a&&a!==n.I){s.T.insertBefore(r,s.T.children[0])}else{l.parentNode.insertBefore(n.T,l)}Be(f,t,e,l,n.I);l.remove();if(n.N==="0"){o[n.P]=n.T}}else{const i=n.T;const o=a&&a!==n.I&&s.T.shadowRoot;Be(f,t,e,l,o?a:n.I);if(o){s.T.insertBefore(i,s.T.children[0])}r.push(n)}i.push(n);if(!s.k){s.k=[]}s.k[n.P]=n}var Be=(e,t,n,l,s)=>{let r=l.nextSibling;e[t]=e[t]||[];while(r&&((r["getAttribute"]&&r.getAttribute("slot")||r["s-sn"])===n||n===""&&!r["s-sn"]&&(r.nodeType===8&&r.nodeValue.indexOf(".")!==1||r.nodeType===3))){r["s-sn"]=n;e[t].push({slot:l,node:r,hostId:s});r=r.nextSibling}};var ze=(e,t)=>{if(e!=null&&!H(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var Qe=e=>r(e).$hostElement$;var qe=(e,t,n)=>{const l=Qe(e);return{emit:e=>Ge(l,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var Ge=(e,t,n)=>{const l=j.ce(t,n);e.dispatchEvent(l);return l};var Ke=new WeakMap;var Ve=(e,t,n)=>{let l=v.get(e);if(T&&n){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}v.set(e,l)};var Xe=(e,t,n)=>{var l;const s=Je(t);const r=v.get(s);e=e.nodeType===11?e:C;if(r){if(typeof r==="string"){e=e.head||e;let n=Ke.get(e);let i;if(!n){Ke.set(e,n=new Set)}if(!n.has(s)){if(e.host&&(i=e.querySelector(`[${b}="${s}"]`))){i.innerHTML=r}else{i=C.createElement("style");i.innerHTML=r;const n=(l=j.U)!=null?l:B(C);if(n!=null){i.setAttribute("nonce",n)}if(!(t.l&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(i,n)}else if("host"in e){if(T){const t=new CSSStyleSheet;t.replaceSync(r);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=r+t.innerHTML}else{e.prepend(i)}}}else{e.append(i)}}if(t.l&1&&e.nodeName!=="HEAD"){e.insertBefore(i,null)}}if(t.l&4){i.innerHTML+=S}if(n){n.add(s)}}}else if(!e.adoptedStyleSheets.includes(r)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}}return s};var _e=e=>{const t=e.i;const n=e.$hostElement$;const l=t.l;const s=Fe("attachStyles",t.h);const r=Xe(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(l&10&&l&2){n["s-sc"]=r;n.classList.add(r+"-h");if(l&2){n.classList.add(r+"-s")}}s()};var Je=(e,t)=>"sc-"+e.h;var Ye=(e,t)=>{if(t&&!e.W&&t["s-p"]){t["s-p"].push(new Promise((t=>e.W=t)))}};var Ze=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}Ye(e,e.H);const n=()=>et(e,t);return I(n)};var et=(e,t)=>{const n=e.$hostElement$;const l=Fe("scheduleUpdate",e.i.h);const s=e.t;if(!s){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 r;if(t){{r=ot(s,"componentWillLoad")}}l();return tt(r,(()=>lt(e,s,t)))};var tt=(e,t)=>nt(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var nt=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var lt=async(e,t,n)=>{var l;const s=e.$hostElement$;const r=Fe("update",e.i.h);const i=s["s-rc"];if(n){_e(e)}const o=Fe("render",e.i.h);{st(e,t,s,n)}if(i){i.map((e=>e()));s["s-rc"]=void 0}o();r();{const t=(l=s["s-p"])!=null?l:[];const n=()=>rt(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.l|=4;t.length=0}}};var st=(e,t,n,l)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{Re(e,t,l)}}}}catch(t){a(t,e.$hostElement$)}return null};var rt=e=>{const t=e.i.h;const n=e.$hostElement$;const l=Fe("postUpdate",t);const s=e.t;const r=e.H;if(!(e.l&64)){e.l|=64;{ft(n)}{ot(s,"componentDidLoad")}l();{e.v(n);if(!r){it()}}}else{{ot(s,"componentDidUpdate")}l()}{if(e.W){e.W();e.W=void 0}if(e.l&512){F((()=>Ze(e,false)))}e.l&=~(4|512)}};var it=t=>{{ft(C.documentElement)}F((()=>Ge(x,"appload",{detail:{namespace:e}})))};var ot=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){a(e)}}return void 0};var ft=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var at=(e,t)=>r(e).o.get(t);var ct=(e,t,n,l)=>{const s=r(e);if(!s){throw new Error(`Couldn't find host element for "${l.h}" 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=s.$hostElement$;const o=s.o.get(t);const f=s.l;const c=s.t;n=ze(n,l.B[t][0]);const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if((!(f&8)||o===void 0)&&v){s.o.set(t,n);if(c){if(l.q&&f&128){const e=l.q[t];if(e){e.map((e=>{try{c[e](n,o,t)}catch(e){a(e,i)}}))}}if((f&(2|16))===2){Ze(s,false)}}}};var ut=(e,t,n)=>{var l,s;const i=e.prototype;if(t.B||(t.q||e.watchers)){if(e.watchers&&!t.q){t.q=e.watchers}const o=Object.entries((l=t.B)!=null?l:{});o.map((([e,[l]])=>{if(l&31||n&2&&l&32){if((l&2048)===0){Object.defineProperty(i,e,{get(){return at(this,e)},set(n){ct(this,e,n,t)},configurable:true,enumerable:true})}else if(n&1&&l&2048){{Object.defineProperty(i,e,{get(){const t=r(this);const n=t?t.t:i;if(!n)return;return n[e]},configurable:true,enumerable:true})}if(l&4096){const n=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=r(this);if(n){const r=s.$hostElement$[e];if(!s.o.get(e)&&r){s.o.set(e,r)}n.apply(this,[ze(l,t.B[e][0])]);ct(this,e,s.$hostElement$[e],t);return}if(!s)return;const i=()=>{const n=s.t[e];if(!s.o.get(e)&&n){s.o.set(e,n)}s.t[e]=ze(l,t.B[e][0]);ct(this,e,s.t[e],t)};if(s.t){i()}else{s.u.then((()=>i()))}}})}}}}));if(n&1){const n=new Map;i.attributeChangedCallback=function(e,l,s){j.jmp((()=>{var o;const f=n.get(e);if(this.hasOwnProperty(f)){s=this[f];delete this[f]}else if(i.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==s){return}else if(f==null){const n=r(this);const i=n==null?void 0:n.l;if(i&&!(i&8)&&i&128&&s!==l){const r=n.t;const i=(o=t.q)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(r[t]!=null){r[t].call(r,s,l,e)}}))}return}const a=Object.getOwnPropertyDescriptor(i,f);if(!a.get||!!a.set){this[f]=s===null&&typeof this[f]==="boolean"?false:s}}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=t.q)!=null?s:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,l])=>{var s;const r=l[1]||e;n.set(r,e);if(l[0]&512){(s=t.M)==null?void 0:s.push([e,r])}return r}))]))}}return e};var vt=async(e,t,n,l)=>{let s;if((t.l&32)===0){t.l|=32;const l=n.p;if(l){const e=u(n);if(e&&"then"in e){const t=Ie();s=await e;t()}else{s=e}if(!s){throw new Error(`Constructor for "${n.h}#${t.G}" was not found`)}if(!s.isProxied){{n.q=s.watchers}ut(s,n,2);s.isProxied=true}const l=Fe("createInstance",n.h);{t.l|=8}try{new s(t)}catch(e){a(e)}{t.l&=~8}{t.l|=128}l()}else{s=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.l|=128))}if(s&&s.style){let e;if(typeof s.style==="string"){e=s.style}const t=Je(n);if(!v.has(t)){const l=Fe("registerStyles",n.h);Ve(t,e,!!(n.l&1));l()}}}const r=t.H;const i=()=>Ze(t,true);if(r&&r["s-rc"]){r["s-rc"].push(i)}else{i()}};var dt=e=>{};var ht=e=>{if((j.l&1)===0){const t=r(e);const n=t.i;const l=Fe("connectedCallback",n.h);if(!(t.l&1)){t.l|=1;let l;{l=e.getAttribute(y);if(l){if(n.l&1){const t=Xe(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}else if(n.l&2){const t=Je(n);e["s-sc"]=t}Ne(e,n.h,l,t)}}if(!l){if(n.l&(4|8)){pt(e)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ye(t,t.H=n);break}}}if(n.B){Object.entries(n.B).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{vt(e,t,n)}}else{if(t==null?void 0:t.t);else if(t==null?void 0:t.u){t.u.then((()=>dt()))}}l()}};var pt=e=>{const t=e["s-cr"]=C.createComment("");t["s-cn"]=true;Ee(e,t,e.firstChild)};var $t=e=>{{ot(e,"disconnectedCallback")}};var mt=async e=>{if((j.l&1)===0){const t=r(e);if(t==null?void 0:t.t){$t(t.t)}else if(t==null?void 0:t.u){t.u.then((()=>$t(t.t)))}}};var yt=(e,t={})=>{var n;const l=Fe();const s=[];const i=t.exclude||[];const f=x.customElements;const a=C.head;const c=a.querySelector("meta[charset]");const u=C.createElement("style");const v=[];let d;let h=true;Object.assign(j,t);j.$=new URL(t.resourcesUrl||"./",C.baseURI).href;{j.l|=2}let p=false;e.map((e=>{e[1].map((t=>{var n;const l={l:t[0],h:t[1],B:t[2],K:t[3]};if(l.l&4){p=true}{l.B=t[2]}{l.M=[]}{l.q=(n=t[4])!=null?n:{}}const a=l.h;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;o(e,l);if(l.l&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${l.h}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){r(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{j.jmp((()=>ht(this)))}}disconnectedCallback(){j.jmp((()=>mt(this)))}componentOnReady(){return r(this).u}};l.p=e[0];if(!i.includes(a)&&!f.get(a)){s.push(a);f.define(a,ut(c,l,1))}}))}));if(s.length>0){if(p){u.textContent+=S}{u.textContent+=s.sort()+g}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=j.U)!=null?n:B(C);if(e!=null){u.setAttribute("nonce",e)}a.insertBefore(u,c?c.nextSibling:a.firstChild)}}h=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{j.jmp((()=>d=setTimeout(it,30)))}}l()};var bt=e=>j.U=e;export{J as H,yt as b,qe as c,Qe as g,X as h,O as p,i as r,bt as s};
//# sourceMappingURL=p-1b1223fb.js.map