var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,n=1,t=arguments.length;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0){E.raf(I)}}};var B=function(r){return L().then(r)};var H=r("d",U(N,false));var z=r("w",U(P,true));var G=r("j",(function(r){var e=new URL(r,E._);return e.origin!==O.location.origin?e.href:e.pathname}));var Q={};var q="http://www.w3.org/2000/svg";var K="http://www.w3.org/1999/xhtml";var V=function(r){return r!=null};var X=function(r){r=typeof r;return r==="object"||r==="function"};function J(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var Y={};f(Y,{err:function(){return rr},map:function(){return er},ok:function(){return Z},unwrap:function(){return nr},unwrapErr:function(){return tr}});var Z=function(r){return{isOk:true,isErr:false,value:r}};var rr=function(r){return{isOk:false,isErr:true,value:r}};function er(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return Z(r)}))}else{return Z(n)}}if(r.isErr){var t=r.value;return rr(t)}throw"should never get here"}var nr=function(r){if(r.isOk){return r.value}else{throw r.value}};var tr=function(r){if(r.isErr){return r.value}else{throw r.value}};var ir=function(r,e){if(e===void 0){e=""}{return function(){return}}};var ar=function(r,e){{return function(){return}}};var fr=r("h",(function(r,e){var n=[];for(var t=2;t0){c.k=l}{c.A=a}{c.O=f}return c}));var ur=function(r,e){var n={i:0,C:r,S:e,T:null,k:null};{n.j=null}{n.A=null}{n.O=null}return n};var or=r("e",{});var lr=function(r){return r&&r.C===or};var vr={forEach:function(r,e){return r.map(sr).forEach(e)},map:function(r,e){return r.map(sr).map(e).map(cr)}};var sr=function(r){return{vattrs:r.j,vchildren:r.k,vkey:r.A,vname:r.O,vtag:r.C,vtext:r.S}};var cr=function(r){if(typeof r.vtag==="function"){var e=__assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return fr.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=ur(r.vtag,r.vtext);n.j=r.vattrs;n.k=r.vchildren;n.A=r.vkey;n.O=r.vname;return n};var dr=function(r,e,n,t){var i=ir("hydrateClient",e);var a=r.shadowRoot;var f=[];var u=[];var o=a?[]:null;var l=t.D=ur(e,null);if(!E.R){pr(C.body,E.R=new Map)}r[_]=n;r.removeAttribute(_);hr(l,f,u,o,r,r,n);f.map((function(r){var n=r.L+"."+r.M;var t=E.R.get(n);var i=r.T;if(t&&D&&t["s-en"]===""){t.parentNode.insertBefore(i,t.nextSibling)}if(!a){i["s-hn"]=e;if(t){i["s-ol"]=t;i["s-ol"]["s-nr"]=i}}E.R.delete(n)}));if(a){o.map((function(r){if(r){a.appendChild(r)}}))}i()};var hr=function(r,e,n,t,i,a,f){var u;var o;var l;var v;if(a.nodeType===1){u=a.getAttribute(j);if(u){o=u.split(".");if(o[0]===f||o[0]==="0"){l={i:0,L:o[0],M:o[1],F:o[2],N:o[3],C:a.tagName.toLowerCase(),T:a,j:null,k:null,A:null,O:null,S:null};e.push(l);a.removeAttribute(j);if(!r.k){r.k=[]}r.k[l.N]=l;r=l;if(t&&l.F==="0"){t[l.N]=l.T}}}if(a.shadowRoot){for(v=a.shadowRoot.childNodes.length-1;v>=0;v--){hr(r,e,n,t,i,a.shadowRoot.childNodes[v],f)}}for(v=a.childNodes.length-1;v>=0;v--){hr(r,e,n,t,i,a.childNodes[v],f)}}else if(a.nodeType===8){o=a.nodeValue.split(".");if(o[1]===f||o[1]==="0"){u=o[0];l={i:0,L:o[1],M:o[2],F:o[3],N:o[4],T:a,j:null,k:null,A:null,O:null,C:null,S:null};if(u===g){l.T=a.nextSibling;if(l.T&&l.T.nodeType===3){l.S=l.T.textContent;e.push(l);a.remove();if(!r.k){r.k=[]}r.k[l.N]=l;if(t&&l.F==="0"){t[l.N]=l.T}}}else if(l.L===f){if(u===$){l.C="slot";if(o[5]){a["s-sn"]=l.O=o[5]}else{a["s-sn"]=""}a["s-sr"]=true;if(t){l.T=C.createElement(l.C);if(l.O){l.T.setAttribute("name",l.O)}a.parentNode.insertBefore(l.T,a);a.remove();if(l.F==="0"){t[l.N]=l.T}}n.push(l);if(!r.k){r.k=[]}r.k[l.N]=l}else if(u===w){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.C==="style"){var s=ur(null,a.textContent);s.T=a;s.N="0";r.k=[s]}};var pr=function(r,e){if(r.nodeType===1){var n=0;if(r.shadowRoot){for(;n=0;a--){var f=n[a];if(f["s-hn"]!==Nr&&f["s-ol"]){te(Xr(f),f,Vr(f));f["s-ol"].remove();f["s-ol"]=void 0;f["s-sh"]=void 0;Wr=true}if(e){zr(f,e)}}E.i&=~1};var Gr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(f.shadowRoot&&f.tagName===Nr){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=Br(null,n,i,r);if(u){t[i].T=u;te(f,u,Vr(e))}}}};var Qr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.T;ne(i);if(a){{Ur=true;if(a["s-ol"]){a["s-ol"].remove()}else{zr(a,true)}}a.remove()}}}};var qr=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var l=e.length-1;var v=e[0];var s=e[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var m;while(a<=l&&f<=c){if(v==null){v=e[++a]}else if(s==null){s=e[--l]}else if(d==null){d=t[++f]}else if(h==null){h=t[--c]}else if(Kr(v,d,i)){Jr(v,d,i);v=e[++a];d=t[++f]}else if(Kr(s,h,i)){Jr(s,h,i);s=e[--l];h=t[--c]}else if(Kr(v,h,i)){if(v.C==="slot"||h.C==="slot"){zr(v.T.parentNode,false)}Jr(v,h,i);te(r,v.T,s.T.nextSibling);v=e[++a];h=t[--c]}else if(Kr(s,d,i)){if(v.C==="slot"||h.C==="slot"){zr(s.T.parentNode,false)}Jr(s,d,i);te(r,s.T,v.T);s=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].A!==null&&e[o].A===d.A){u=o;break}}}if(u>=0){m=e[u];if(m.C!==d.C){p=Br(e&&e[f],n,u,r)}else{Jr(m,d,i);e[u]=void 0;p=m.T}d=t[++f]}else{p=Br(e&&e[f],n,f,r);d=t[++f]}if(p){{te(Xr(v.T),p,Vr(v.T))}}}}if(a>l){Gr(r,t[c+1]==null?null:t[c+1].T,n,t,f,c)}else if(f>c){Qr(e,a,l)}};var Kr=function(r,e,n){if(n===void 0){n=false}if(r.C===e.C){if(r.C==="slot"){if("M"in r&&n&&r.T.nodeType!==8){return false}return r.O===e.O}if(!n){return r.A===e.A}return true}return false};var Vr=function(r){return r&&r["s-ol"]||r};var Xr=function(r){return(r["s-ol"]?r["s-ol"]:r).parentNode};var Jr=function(r,e,n){if(n===void 0){n=false}var t=e.T=r.T;var a=r.k;var f=e.k;var u=e.C;var o=e.S;var l;if(o===null){{Ir=u==="svg"?true:u==="foreignObject"?false:Ir}{if(u==="slot"&&!Pr){if(r.O!==e.O){e.T["s-sn"]=e.O||"";Hr(e.T.parentElement)}}else{Rr(r,e,Ir)}}if(a!==null&&f!==null){qr(t,a,e,f,n)}else if(f!==null){if(r.S!==null){t.textContent=""}Gr(t,null,e,f,0,f.length-1)}else if(!n&&i.updatable&&a!==null){Qr(a,0,a.length-1)}if(Ir&&u==="svg"){Ir=false}}else if(l=t["s-cr"]){l.parentNode.textContent=o}else if(r.S!==o){t.data=o}};var Yr=function(r){var e=r.childNodes;for(var n=0,t=e;n=0;t--){o()}}if(f.nodeType===1){re(f)}}};var ee=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var ne=function(r){{r.j&&r.j.ref&&r.j.ref(null);r.k&&r.k.map(ne)}};var te=function(r,e,n){var t=r==null?void 0:r.insertBefore(e,n);{ae(e,r)}return t};var ie=function(r){var e=[];if(r){e.push.apply(e,__spreadArray(__spreadArray(__spreadArray([],r["s-scs"]||[],false),[r["s-si"],r["s-sc"]],false),ie(r.parentElement),false))}return e};var ae=function(r,e,n){if(n===void 0){n=false}var t;if(r&&e&&r.nodeType===1){var i=new Set(ie(e).filter(Boolean));if(i.size){(t=r.classList)==null?void 0:t.add.apply(t,r["s-scs"]=__spreadArray([],i,true));if(r["s-ol"]||n){for(var a=0,f=Array.from(r.childNodes);a 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"))}var a;if(e){{r.i|=256;if(r.q){r.q.map((function(r){var e=r[0],n=r[1];return ye(i,e,n)}));r.q=void 0}}{a=ye(i,"componentWillLoad")}}{a=ve(a,(function(){return ye(i,"componentWillRender")}))}t();return ve(a,(function(){return ce(r,i,e)}))};var ve=function(r,e){return se(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var se=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var ce=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l;return __generator(this,(function(v){i=r.$hostElement$;a=ir("update",r.u.m);f=i["s-rc"];if(t){xr(r)}u=ir("render",r.u.m);{de(r,e,i,t)}if(f){f.map((function(r){return r()}));i["s-rc"]=void 0}u();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return he(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.i|=4;o.length=0}}return[2]}))}))};var de=function(r,e,n,t){try{e=e.render&&e.render();{r.i&=~16}{r.i|=2}{{{fe(r,e,t)}}}}catch(e){d(e,r.$hostElement$)}return null};var he=function(r){var e=r.u.m;var n=r.$hostElement$;var t=ir("postUpdate",e);var i=r.t;var a=r.G;{ye(i,"componentDidRender")}if(!(r.i&64)){r.i|=64;{we(n)}{ye(i,"componentDidLoad")}t();{r.p(n);if(!a){me()}}}else{{ye(i,"componentDidUpdate")}t()}{r.v(n)}{if(r.H){r.H();r.H=void 0}if(r.i&512){B((function(){return oe(r,false)}))}r.i&=~(4|512)}};var pe=r("i",(function(r){{var e=l(r);var n=e.$hostElement$.isConnected;if(n&&(e.i&(2|16))===2){oe(e,false)}return n}}));var me=function(r){{we(C.documentElement)}B((function(){return _r(O,"appload",{detail:{namespace:t}})}))};var ye=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){d(r)}}return void 0};var we=function(r){var e;return r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated")};var be=function(r,e){return l(r).o.get(e)};var $e=function(r,e,n,t){var i=l(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.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).'))}var a=i.$hostElement$;var f=i.o.get(e);var u=i.i;var o=i.t;n=br(n,t.K[e][0]);var v=Number.isNaN(f)&&Number.isNaN(n);var s=n!==f&&!v;if((!(u&8)||f===void 0)&&s){i.o.set(e,n);if(o){if(t.V&&u&128){var c=t.V[e];if(c){c.map((function(r){try{o[r](n,f,e)}catch(r){d(r,a)}}))}}if((u&(2|16))===2){oe(i,false)}}}};var ge=function(r,e,n){var t,i;var a=r.prototype;if(e.K||(e.V||r.watchers)){if(r.watchers&&!e.V){e.V=r.watchers}var f=Object.entries((t=e.K)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,t,{get:function(){return be(this,t)},set:function(r){$e(this,t,r,e)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var r=[];for(var e=0;e0){if(p){v.textContent+=x}{v.textContent+=i.sort()+k}if(v.innerHTML.length){v.setAttribute("data-styles","");var m=(n=E.U)!=null?n:J(C);if(m!=null){v.setAttribute("nonce",m)}u.insertBefore(v,o?o.nextSibling:u.firstChild)}}h=false;if(c.length){c.map((function(r){return r.connectedCallback()}))}else{{E.jmp((function(){return d=setTimeout(me,30)}))}}t()}));var ze=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=Qe(r,t);var u=Ge(e,a);var o=qe(t);E.ael(f,i,u,o);(e.J=e.J||[]).push((function(){return E.rel(f,i,u,o)}))}))}};var Ge=function(r,e){return function(n){var t;try{{if(r.i&256){(t=r.t)==null?void 0:t[e](n)}else{(r.q=r.q||[]).push([e,n])}}}catch(r){d(r)}}};var Qe=function(r,e){if(e&4)return C;if(e&8)return O;if(e&16)return C.body;return r};var qe=function(r){return R?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var Ke=r("s",(function(r){return E.U=r}))}}}));