UNPKG

gov-gui

Version:

Gov UI Component Library Demo ready Build

3 lines 24.3 kB
const e="gov-gui";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,constructableCSS:true,cssAnnotations:true,devTools:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:false,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,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:true,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,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:false,watchCallback:true};var n=Object.defineProperty;var r=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var s="http://www.w3.org/2000/svg";var l="http://www.w3.org/1999/xhtml";var i=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var o=(e,t)=>{e.__stencil__getHostRef=()=>t;t.t=e};var f=(e,t)=>{const n={l:0,$hostElement$:e,i:t,o:new Map};{n.u=new Promise((e=>n.v=e))}{n.h=new Promise((e=>n.p=e));e["s-p"]=[];e["s-rc"]=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var a=(e,t)=>t in e;var c=(e,t)=>(0,console.error)(e,t);var u=new Map;var v=(e,t,n)=>{const r=e.m.replace(/-/g,"_");const s=e.S;if(!s){return void 0}const l=u.get(s);if(l){return l[r]} /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${s}.entry.js${""}`).then((e=>{{u.set(s,e)}return e[r]}),(e=>{c(e,t.$hostElement$)}))};var d=new Map;var h="sty-id";var p="{visibility:hidden}.hydrated{visibility:inherit}";var m="slot-fb{display:contents}slot-fb[hidden]{display:none}";var y=typeof window!=="undefined"?window:{};var b=y.document||{head:{}};var w={l:0,$:"",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=(()=>{let e=false;try{b.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=true}}))}catch(e){}return e})();var S=e=>Promise.resolve(e);var $=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var O=false;var j=[];var k=[];var C=(e,t)=>n=>{e.push(n);if(!O){O=true;if(t&&w.l&4){F(x)}else{w.raf(x)}}};var T=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){c(e)}}e.length=0};var x=()=>{T(j);{T(k);if(O=j.length>0){w.raf(x)}}};var F=e=>S().then(e);var L=C(k,true);var E=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 N={};r(N,{err:()=>M,map:()=>P,ok:()=>D,unwrap:()=>A,unwrapErr:()=>U});var D=e=>({isOk:true,isErr:false,value:e});var M=e=>({isOk:false,isErr:true,value:e});function P(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>D(e)))}else{return D(n)}}if(e.isErr){const t=e.value;return M(t)}throw"should never get here"}var A=e=>{if(e.isOk){return e.value}else{throw e.value}};var U=e=>{if(e.isErr){return e.value}else{throw e.value}};var B=e=>{const t=V(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){_(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(H(e,I(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&V(e,"childNodes").length){B(e)}}};var W=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};function _(e,t,n){let r=0;let s=[];let l;for(;r<e.length;r++){l=e[r];if(l["s-sr"]&&(!t||l["s-hn"]===t)&&(n===void 0||I(l)===n)){s.push(l);if(typeof n!=="undefined")return s}s=[...s,..._(l.childNodes,t,n)]}return s}var H=(e,t,n=true)=>{const r=[];if(n&&e["s-sr"]||!e["s-sr"])r.push(e);let s=e;while(s=s.nextSibling){if(I(s)===t&&(n||!s["s-sr"]))r.push(s)}return r};var z=(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 I=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Q(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots. \n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const s=this["s-cr"].parentElement;const l=s.__childNodes?s.childNodes:W(s.childNodes);l.forEach((e=>{if(r===I(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function V(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var q=(e,t="")=>{{return()=>{}}};var G=(e,t)=>{{return()=>{}}};var K=(e,t,...n)=>{let r=null;let s=null;let l=null;let i=false;let o=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(i=typeof e!=="function"&&!E(r)){r=String(r)}if(i&&o){f[f.length-1].O+=r}else{f.push(i?X(null,r):r)}o=i}}};a(n);if(t){if(t.key){s=t.key}if(t.name){l=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=X(e,null);c.j=t;if(f.length>0){c.k=f}{c.C=s}{c.T=l}return c};var X=(e,t)=>{const n={l:0,F:e,O:t,L:null,k:null};{n.j=null}{n.C=null}{n.T=null}return n};var Y={};var J=e=>e&&e.F===Y;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.j,vchildren:e.k,vkey:e.C,vname:e.T,vtag:e.F,vtext:e.O});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 K(e.vtag,t,...e.vchildren||[])}const t=X(e.vtag,e.vtext);t.j=e.vattrs;t.k=e.vchildren;t.C=e.vkey;t.T=e.vname;return t};var ne=(e,t)=>{if(e!=null&&!E(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 re=e=>i(e).$hostElement$;var se=(e,t,n)=>{const r=re(e);return{emit:e=>le(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var le=(e,t,n)=>{const r=w.ce(t,n);e.dispatchEvent(r);return r};var ie=new WeakMap;var oe=(e,t,n)=>{let r=d.get(e);if($&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}d.set(e,r)};var fe=(e,t,n)=>{var r;const s=ce(t);const l=d.get(s);e=e.nodeType===11?e:b;if(l){if(typeof l==="string"){e=e.head||e;let n=ie.get(e);let i;if(!n){ie.set(e,n=new Set)}if(!n.has(s)){{i=document.querySelector(`[${h}="${s}"]`)||b.createElement("style");i.innerHTML=l;const n=(r=w.R)!=null?r:R(b);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==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if($){const t=new CSSStyleSheet;t.replaceSync(l);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=l+t.innerHTML}else{e.prepend(i)}}}else{e.append(i)}}if(t.l&1){e.insertBefore(i,null)}}if(t.l&4){i.innerHTML+=m}if(n){n.add(s)}}}else if(!e.adoptedStyleSheets.includes(l)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]}}return s};var ae=e=>{const t=e.i;const n=e.$hostElement$;const r=t.l;const s=q("attachStyles",t.m);const l=fe(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10&&r&2||r&128){n["s-sc"]=l;n.classList.add(l+"-h")}s()};var ce=(e,t)=>"sc-"+e.m;var ue=(e,t,n,r,s,l,i)=>{if(n===r){return}let o=a(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const s=de(n);let l=de(r);{t.remove(...s.filter((e=>e&&!l.includes(e))));t.add(...l.filter((e=>e&&!s.includes(e))))}}else if(t==="style"){{for(const t in n){if(!r||r[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in r){if(!n||r[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,r[t])}else{e.style[t]=r[t]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(y,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const s=t.endsWith(he);t=t.replace(pe,"");if(n){w.rel(e,t,n,s)}if(r){w.ael(e,t,r,s)}}}else{const i=E(r);if((o||i&&r!==null)&&!s){try{if(!e.tagName.includes("-")){const s=r==null?"":r;if(t==="list"){o=false}else if(n==null||e[t]!=s){if(typeof e.__lookupSetter__(t)==="function"){e[t]=s}else{e.setAttribute(t,s)}}}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((!o||l&4||s)&&!i&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var ve=/\s/;var de=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(ve)};var he="Capture";var pe=new RegExp(he+"$");var me=(e,t,n,r)=>{const s=t.L.nodeType===11&&t.L.host?t.L.host:t.L;const l=e&&e.j||{};const i=t.j||{};{for(const e of ye(Object.keys(l))){if(!(e in i)){ue(s,e,l[e],void 0,n,t.l)}}}for(const e of ye(Object.keys(i))){ue(s,e,l[e],i[e],n,t.l)}};function ye(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var be;var we;var ge=false;var Se=false;var $e=false;var Oe=false;var je=(e,n,r)=>{var i;const o=n.k[r];let f=0;let a;let c;let u;if(!ge){$e=true;if(o.F==="slot"){o.l|=o.k?2:1}}if(o.O!==null){a=o.L=b.createTextNode(o.O)}else if(o.l&1){a=o.L=b.createTextNode("");{me(null,o,Oe)}}else{if(!Oe){Oe=o.F==="svg"}a=o.L=b.createElementNS(Oe?s:l,!ge&&t.slotRelocation&&o.l&2?"slot-fb":o.F);if(Oe&&o.F==="foreignObject"){Oe=false}{me(null,o,Oe)}if(o.k){for(f=0;f<o.k.length;++f){c=je(e,o,f);if(c){a.appendChild(c)}}}{if(o.F==="svg"){Oe=false}else if(a.tagName==="foreignObject"){Oe=true}}}a["s-hn"]=we;{if(o.l&(2|1)){a["s-sr"]=true;a["s-cr"]=be;a["s-sn"]=o.T||"";a["s-rf"]=(i=o.j)==null?void 0:i.ref;Q(a);u=e&&e.k&&e.k[r];if(u&&u.F===o.F&&e.L){{ke(e.L,false)}}}}return a};var ke=(e,n)=>{w.l|=1;const r=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"]===we){r.push(t)}}}for(let e=r.length-1;e>=0;e--){const t=r[e];if(t["s-hn"]!==we&&t["s-ol"]){Me(Le(t).parentNode,t,Le(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;$e=true}if(n){ke(t,n)}}w.l&=~1};var Ce=(e,t,n,r,s,l)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let o;if(i.shadowRoot&&i.tagName===we){i=i.shadowRoot}for(;s<=l;++s){if(r[s]){o=je(null,n,s);if(o){r[s].L=o;Me(i,o,Le(t))}}}};var Te=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.L;De(t);if(e){{Se=true;if(e["s-ol"]){e["s-ol"].remove()}else{ke(e,true)}}e.remove()}}}};var xe=(e,t,n,r,s=false)=>{let l=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=r.length-1;let d=r[0];let h=r[v];let p;let m;while(l<=a&&i<=v){if(c==null){c=t[++l]}else if(u==null){u=t[--a]}else if(d==null){d=r[++i]}else if(h==null){h=r[--v]}else if(Fe(c,d,s)){Ee(c,d,s);c=t[++l];d=r[++i]}else if(Fe(u,h,s)){Ee(u,h,s);u=t[--a];h=r[--v]}else if(Fe(c,h,s)){if(c.F==="slot"||h.F==="slot"){ke(c.L.parentNode,false)}Ee(c,h,s);Me(e,c.L,u.L.nextSibling);c=t[++l];h=r[--v]}else if(Fe(u,d,s)){if(c.F==="slot"||h.F==="slot"){ke(u.L.parentNode,false)}Ee(u,d,s);Me(e,u.L,c.L);u=t[--a];d=r[++i]}else{o=-1;{for(f=l;f<=a;++f){if(t[f]&&t[f].C!==null&&t[f].C===d.C){o=f;break}}}if(o>=0){m=t[o];if(m.F!==d.F){p=je(t&&t[i],n,o)}else{Ee(m,d,s);t[o]=void 0;p=m.L}d=r[++i]}else{p=je(t&&t[i],n,i);d=r[++i]}if(p){{Me(Le(c.L).parentNode,p,Le(c.L))}}}}if(l>a){Ce(e,r[v+1]==null?null:r[v+1].L,n,r,i,v)}else if(i>v){Te(t,l,a)}};var Fe=(e,t,n=false)=>{if(e.F===t.F){if(e.F==="slot"){return e.T===t.T}if(!n){return e.C===t.C}if(n&&!e.C&&t.C){e.C=t.C}return true}return false};var Le=e=>e&&e["s-ol"]||e;var Ee=(e,n,r=false)=>{const s=n.L=e.L;const l=e.k;const i=n.k;const o=n.F;const f=n.O;let a;if(f===null){{Oe=o==="svg"?true:o==="foreignObject"?false:Oe}{me(e,n,Oe)}if(l!==null&&i!==null){xe(s,l,n,i,r)}else if(i!==null){if(e.O!==null){s.textContent=""}Ce(s,null,n,i,0,i.length-1)}else if(!r&&t.updatable&&l!==null){Te(l,0,l.length-1)}if(Oe&&o==="svg"){Oe=false}}else if(a=s["s-cr"]){a.parentNode.textContent=f}else if(e.O!==f){s.data=f}};var Re=[];var Ne=e=>{let n;let r;let s;const l=e.__childNodes||e.childNodes;for(const e of l){if(e["s-sr"]&&(n=e["s-cr"])&&n.parentNode){r=n.parentNode.__childNodes||n.parentNode.childNodes;const l=e["s-sn"];for(s=r.length-1;s>=0;s--){n=r[s];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==e["s-hn"]&&!t.experimentalSlotFixes){if(z(n,l)){let t=Re.find((e=>e.N===n));Se=true;n["s-sn"]=n["s-sn"]||l;if(t){t.N["s-sh"]=e["s-hn"];t.D=e}else{n["s-sh"]=e["s-hn"];Re.push({D:e,N:n})}if(n["s-sr"]){Re.map((e=>{if(z(e.N,n["s-sn"])){t=Re.find((e=>e.N===n));if(t&&!e.D){e.D=t.D}}}))}}else if(!Re.some((e=>e.N===n))){Re.push({N:n})}}}}if(e.nodeType===1){Ne(e)}}};var De=e=>{{e.j&&e.j.ref&&e.j.ref(null);e.k&&e.k.map(De)}};var Me=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var Pe=(e,t,n=false)=>{var r,s,l,i;const o=e.$hostElement$;const f=e.i;const a=e.M||X(null,null);const c=J(t)?t:K(null,null,t);we=o.tagName;if(f.P){c.j=c.j||{};f.P.map((([e,t])=>c.j[t]=o[e]))}if(n&&c.j){for(const e of Object.keys(c.j)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){c.j[e]=o[e]}}}c.F=null;c.l|=4;e.M=c;c.L=a.L=o.shadowRoot||o;ge=!!(f.l&1)&&!(f.l&128);{be=o["s-cr"];Se=false}Ee(a,c,n);{w.l|=1;if($e){Ne(c.L);for(const e of Re){const t=e.N;if(!t["s-ol"]){const e=b.createTextNode("");e["s-nr"]=t;Me(t.parentNode,t["s-ol"]=e,t)}}for(const e of Re){const t=e.N;const o=e.D;if(o){const e=o.parentNode;let n=o.nextSibling;{let l=(r=t["s-ol"])==null?void 0:r.previousSibling;while(l){let r=(s=l["s-nr"])!=null?s:null;if(r&&r["s-sn"]===t["s-sn"]&&e===(r.__parentNode||r.parentNode)){r=r.nextSibling;while(r===t||(r==null?void 0:r["s-sr"])){r=r==null?void 0:r.nextSibling}if(!r||!r["s-nr"]){n=r;break}}l=l.previousSibling}}const i=t.__parentNode||t.parentNode;const f=t.__nextSibling||t.nextSibling;if(!n&&e!==i||f!==n){if(t!==n){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}Me(e,t,n);if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(l=t["s-ih"])!=null?l:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](o)}else{if(t.nodeType===1){if(n){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(Se){B(c.L)}w.l&=~1;Re.length=0}be=void 0};var Ae=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.A=()=>{t["s-p"].splice(n-1,1);r()})))}};var Ue=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}Ae(e,e.U);const n=()=>Be(e,t);return L(n)};var Be=(e,t)=>{const n=e.$hostElement$;const r=q("scheduleUpdate",e.i.m);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 l;if(t){{e.l|=256;if(e.B){e.B.map((([e,t])=>Ve(s,e,t,n)));e.B=void 0}}l=Ve(s,"componentWillLoad",void 0,n)}else{l=Ve(s,"componentWillUpdate",void 0,n)}l=We(l,(()=>Ve(s,"componentWillRender",void 0,n)));r();return We(l,(()=>He(e,s,t)))};var We=(e,t)=>_e(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var _e=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var He=async(e,t,n)=>{var r;const s=e.$hostElement$;const l=q("update",e.i.m);const i=s["s-rc"];if(n){ae(e)}const o=q("render",e.i.m);{ze(e,t,s,n)}if(i){i.map((e=>e()));s["s-rc"]=void 0}o();l();{const t=(r=s["s-p"])!=null?r:[];const n=()=>Ie(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.l|=4;t.length=0}}};var ze=(e,t,n,r)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{Pe(e,t,r)}}}}catch(t){c(t,e.$hostElement$)}return null};var Ie=e=>{const t=e.i.m;const n=e.$hostElement$;const r=q("postUpdate",t);const s=e.t;const l=e.U;Ve(s,"componentDidRender",void 0,n);if(!(e.l&64)){e.l|=64;{qe(n)}Ve(s,"componentDidLoad",void 0,n);r();{e.p(n);if(!l){Qe()}}}else{Ve(s,"componentDidUpdate",void 0,n);r()}{e.v(n)}{if(e.A){e.A();e.A=void 0}if(e.l&512){F((()=>Ue(e,false)))}e.l&=~(4|512)}};var Qe=t=>{F((()=>le(y,"appload",{detail:{namespace:e}})))};var Ve=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){c(e,r)}}return void 0};var qe=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Ge=(e,t)=>i(e).o.get(t);var Ke=(e,t,n,r)=>{const s=i(e);if(!s){throw new Error(`Couldn't find host element for "${r.m}" 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 l=s.$hostElement$;const o=s.o.get(t);const f=s.l;const a=s.t;n=ne(n,r.W[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(a){if(r._&&f&128){const e=r._[t];if(e){e.map((e=>{try{a[e](n,o,t)}catch(e){c(e,l)}}))}}if((f&(2|16))===2){if(a.componentShouldUpdate){if(a.componentShouldUpdate(n,o,t)===false){return}}Ue(s,false)}}}};var Xe=(e,n,r)=>{var s,l;const o=e.prototype;if(n.W||(n._||e.watchers)){if(e.watchers&&!n._){n._=e.watchers}const f=Object.entries((s=n.W)!=null?s:{});f.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:s,set:l}=Object.getOwnPropertyDescriptor(o,e)||{};if(s)n.W[e][0]|=2048;if(l)n.W[e][0]|=4096;if(r&1||!s){Object.defineProperty(o,e,{get(){{if((n.W[e][0]&2048)===0){return Ge(this,e)}const t=i(this);const r=t?t.t:o;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(s){const o=i(this);if(l){const r=t&32?this[e]:o.$hostElement$[e];if(typeof r==="undefined"&&o.o.get(e)){s=o.o.get(e)}else if(!o.o.get(e)&&r){o.o.set(e,r)}l.apply(this,[ne(s,t)]);s=t&32?this[e]:o.$hostElement$[e];Ke(this,e,s,n);return}{if((r&1)===0||(n.W[e][0]&4096)===0){Ke(this,e,s,n);if(r&1&&!o.t){o.h.then((()=>{if(n.W[e][0]&4096&&o.t[e]!==o.o.get(e)){o.t[e]=s}}))}return}const l=()=>{const r=o.t[e];if(!o.o.get(e)&&r){o.o.set(e,r)}o.t[e]=ne(s,t);Ke(this,e,o.t[e],n)};if(o.t){l()}else{o.h.then((()=>l()))}}}})}else if(r&1&&t&64){Object.defineProperty(o,e,{value(...t){var n;const r=i(this);return(n=r==null?void 0:r.u)==null?void 0:n.then((()=>{var n;return(n=r.t)==null?void 0:n[e](...t)}))}})}}));if(r&1){const r=new Map;o.attributeChangedCallback=function(e,s,l){w.jmp((()=>{var f;const a=r.get(e);if(this.hasOwnProperty(a)&&t.lazyLoad){l=this[a];delete this[a]}else if(o.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==l){return}else if(a==null){const t=i(this);const r=t==null?void 0:t.l;if(r&&!(r&8)&&r&128&&l!==s){const r=t.t;const i=(f=n._)==null?void 0:f[e];i==null?void 0:i.forEach((t=>{if(r[t]!=null){r[t].call(r,l,s,e)}}))}return}const c=Object.getOwnPropertyDescriptor(o,a);l=l===null&&typeof this[a]==="boolean"?false:l;if(l!==this[a]&&(!c.get||!!c.set)){this[a]=l}}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=n._)!=null?l:{}),...f.filter((([e,t])=>t[0]&15)).map((([e,t])=>{var s;const l=t[1]||e;r.set(l,e);if(t[0]&512){(s=n.P)==null?void 0:s.push([e,l])}return l}))]))}}return e};var Ye=async(e,t,n,r)=>{let s;if((t.l&32)===0){t.l|=32;const r=n.S;if(r){const r=v(n,t);if(r&&"then"in r){const e=G();s=await r;e()}else{s=r}if(!s){throw new Error(`Constructor for "${n.m}#${t.H}" was not found`)}if(!s.isProxied){{n._=s.watchers}Xe(s,n,2);s.isProxied=true}const l=q("createInstance",n.m);{t.l|=8}try{new s(t)}catch(t){c(t,e)}{t.l&=~8}{t.l|=128}l();Je(t.t,e)}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=ce(n);if(!d.has(t)){const r=q("registerStyles",n.m);oe(t,e,!!(n.l&1));r()}}}const l=t.U;const i=()=>Ue(t,true);if(l&&l["s-rc"]){l["s-rc"].push(i)}else{i()}};var Je=(e,t)=>{{Ve(e,"connectedCallback",void 0,t)}};var Ze=e=>{if((w.l&1)===0){const t=i(e);const n=t.i;const r=q("connectedCallback",n.m);if(!(t.l&1)){t.l|=1;{if(n.l&(4|8)){et(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){Ae(t,t.U=n);break}}}if(n.W){Object.entries(n.W).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{Ye(e,t,n)}}else{lt(e,t,n.I);if(t==null?void 0:t.t){Je(t.t,e)}else if(t==null?void 0:t.h){t.h.then((()=>Je(t.t,e)))}}r()}};var et=e=>{const t=e["s-cr"]=b.createComment("");t["s-cn"]=true;Me(e,t,e.firstChild)};var tt=(e,t)=>{{Ve(e,"disconnectedCallback",void 0,t||e)}};var nt=async e=>{if((w.l&1)===0){const t=i(e);{if(t.V){t.V.map((e=>e()));t.V=void 0}}if(t==null?void 0:t.t){tt(t.t,e)}else if(t==null?void 0:t.h){t.h.then((()=>tt(t.t,e)))}}if(ie.has(e)){ie.delete(e)}if(e.shadowRoot&&ie.has(e.shadowRoot)){ie.delete(e.shadowRoot)}};var rt=(e,t={})=>{var n;const r=q();const s=[];const l=t.exclude||[];const o=y.customElements;const a=b.head;const c=a.querySelector("meta[charset]");const u=b.createElement("style");const v=[];let d;let h=true;Object.assign(w,t);w.$=new URL(t.resourcesUrl||"./",b.baseURI).href;let g=false;e.map((e=>{e[1].map((t=>{var n;const r={l:t[0],m:t[1],W:t[2],I:t[3]};if(r.l&4){g=true}{r.W=t[2]}{r.I=t[3]}{r.P=[]}{r._=(n=t[4])!=null?n:{}}const a=r.m;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;f(e,r);if(r.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 ${r.m}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=i(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;lt(this,e,r.I)}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{w.jmp((()=>Ze(this)))}}disconnectedCallback(){w.jmp((()=>nt(this)));w.raf((()=>{var e;const t=i(this);const n=v.findIndex((e=>e===this));if(n>-1){v.splice(n,1)}if(((e=t==null?void 0:t.M)==null?void 0:e.L)instanceof Node&&!t.M.L.isConnected){delete t.M.L}}))}componentOnReady(){return i(this).h}};r.S=e[0];if(!l.includes(a)&&!o.get(a)){s.push(a);o.define(a,Xe(c,r,1))}}))}));if(s.length>0){if(g){u.textContent+=m}{u.textContent+=s.sort()+p}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=w.R)!=null?n:R(b);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{{w.jmp((()=>d=setTimeout(Qe,30)))}}r()};var st=(e,t)=>t;var lt=(e,t,n,r)=>{if(n){n.map((([n,r,s])=>{const l=ot(e,n);const i=it(t,s);const o=ft(n);w.ael(l,r,i,o);(t.V=t.V||[]).push((()=>w.rel(l,r,i,o)))}))}};var it=(e,t)=>n=>{var r;try{{if(e.l&256){(r=e.t)==null?void 0:r[t](n)}else{(e.B=e.B||[]).push([t,n])}}}catch(t){c(t,e.$hostElement$)}};var ot=(e,t)=>{if(t&4)return b;return e};var ft=e=>g?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var at=e=>w.R=e;export{st as F,Y as H,rt as b,se as c,re as g,K as h,S as p,o as r,at as s}; //# sourceMappingURL=p-6d7c929e.js.map