UNPKG

@ionic/core

Version:
5 lines • 39.6 kB
/*! * (C) Ionic http://ionicframework.com - MIT License */ class t{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,e){const n=this.m.get(t);return void 0!==n?n:e}getBoolean(t,e=!1){const n=this.m.get(t);return void 0===n?e:"string"==typeof n?"true"===n:!!n}getNumber(t,e){const n=parseFloat(this.m.get(t));return isNaN(n)?void 0!==e?e:NaN:n}set(t,e){this.m.set(t,e)}}const e=new t,n="ionic:",o="ionic-persist-config";var s;!function(t){t.OFF="OFF",t.ERROR="ERROR",t.WARN="WARN"}(s||(s={}));const i=(t,...n)=>{const o=e.get("logLevel",s.WARN);if([s.WARN].includes(o))return console.warn("[Ionic Warning]: "+t,...n)},l=(t,...n)=>{const o=e.get("logLevel",s.ERROR);if([s.ERROR,s.WARN].includes(o))return console.error("[Ionic Error]: "+t,...n)},r=(t,...e)=>console.error(`<${t.tagName.toLowerCase()}> must be used inside ${e.join(" or ")}.`),c=t=>f(t),u=(t,e)=>("string"==typeof t&&(e=t,t=void 0),c(t).includes(e)),f=(t=window)=>{if(void 0===t)return[];t.Ionic=t.Ionic||{};let e=t.Ionic.platforms;return null==e&&(e=t.Ionic.platforms=a(t),e.forEach((e=>t.document.documentElement.classList.add("plt-"+e)))),e},a=t=>{const n=e.get("platform");return Object.keys(y).filter((e=>{const o=null==n?void 0:n[e];return"function"==typeof o?o(t):y[e](t)}))},d=t=>!!$(t,/iPad/i)||!(!$(t,/Macintosh/i)||!p(t)),h=t=>$(t,/android|sink/i),p=t=>g(t,"(any-pointer:coarse)"),v=t=>b(t)||m(t),b=t=>!!(t.cordova||t.phonegap||t.PhoneGap),m=t=>{const e=t.Capacitor;return!!((null==e?void 0:e.isNative)||(null==e?void 0:e.isNativePlatform)&&e.isNativePlatform())},$=(t,e)=>e.test(t.navigator.userAgent),g=(t,e)=>{var n;return null===(n=t.matchMedia)||void 0===n?void 0:n.call(t,e).matches},y={ipad:d,iphone:t=>$(t,/iPhone/i),ios:t=>$(t,/iPhone|iPod/i)||d(t),android:h,phablet:t=>{const e=t.innerWidth,n=t.innerHeight,o=Math.min(e,n),s=Math.max(e,n);return o>390&&o<520&&s>620&&s<800},tablet:t=>{const e=t.innerWidth,n=t.innerHeight,o=Math.min(e,n),s=Math.max(e,n);return d(t)||(t=>h(t)&&!$(t,/mobile/i))(t)||o>460&&o<820&&s>780&&s<1400},cordova:b,capacitor:m,electron:t=>$(t,/electron/i),pwa:t=>{var e;return!(!(null===(e=t.matchMedia)||void 0===e?void 0:e.call(t,"(display-mode: standalone)").matches)&&!t.navigator.standalone)},mobile:p,mobileweb:t=>p(t)&&!v(t),desktop:t=>!p(t),hybrid:v};let w;const S=t=>t&&ce(t)||w,j=(t={})=>{if("undefined"==typeof window)return;const s=window.document,l=window,r=l.Ionic=l.Ionic||{},c=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(t=>{try{const e=t.sessionStorage.getItem(o);return null!==e?JSON.parse(e):{}}catch(t){return{}}})(l)),{persistConfig:!1}),r.config),(t=>{const e={};return t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,e])=>{try{return[decodeURIComponent(t),decodeURIComponent(e)]}catch(t){return["",""]}})).filter((([t])=>((t,e)=>t.substr(0,e.length)===e)(t,n))).map((([t,e])=>[t.slice(6),e])).forEach((([t,n])=>{e[t]=n})),e})(l)),t);e.reset(c),e.getBoolean("persistConfig")&&((t,e)=>{try{t.sessionStorage.setItem(o,JSON.stringify(e))}catch(t){return}})(l,c),f(l),r.config=e,r.mode=w=e.get("mode",s.documentElement.getAttribute("mode")||(u(l,"ios")?"ios":"md")),e.set("mode",w),s.documentElement.setAttribute("mode",w),s.documentElement.classList.add(w),e.getBoolean("_testing")&&e.set("animated",!1);const a=t=>{var e;return null===(e=t.tagName)||void 0===e?void 0:e.startsWith("ION-")},d=t=>["ios","md"].includes(t);re((t=>{for(;t;){const e=t.mode||t.getAttribute("mode");if(e){if(d(e))return e;a(t)&&i('Invalid ionic mode: "'+e+'", expected: "ios" or "md"')}t=t.parentElement}return w}))},O=j;var N=Object.defineProperty,x={isBrowser:!0},C=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(C||{}),k=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(k||{}),E="type",M="value",I="serialized:",R=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},L=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},P=(t,e)=>e in t,A=(t,e)=>(0,console.error)(t,e),F=new Map,B=new Map,T=[],U="s-id",_="sty-id",W="c-id",D="slot-fb{display:contents}slot-fb[hidden]{display:none}",V="http://www.w3.org/1999/xlink",J="undefined"!=typeof window?window:{},z=J.HTMLElement||class{},H={o:0,i:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},q=t=>Promise.resolve(t),Y=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),G=!1,K=[],Q=[],X=(t,e)=>n=>{t.push(n),G||(G=!0,e&&4&H.o?et(tt):H.raf(tt))},Z=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){A(t)}t.length=0},tt=()=>{Z(K),Z(Q),(G=K.length>0)&&H.raf(tt)},et=t=>q().then(t),nt=X(K,!1),ot=X(Q,!0),st=t=>{const e=new URL(t,H.i);return e.origin!==J.location.origin?e.href:e.pathname},it=t=>"object"==(t=typeof t)||"function"===t;function lt(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var rt=class t{static fromLocalValue(e){const n=e[E],o=M in e?e[M]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((e=>t.fromLocalValue(e)));case"date":return new Date(o);case"map":const e=new Map;for(const[n,s]of o){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,i=t.fromLocalValue(s);e.set(o,i)}return e;case"object":const s={};for(const[e,n]of o)s[e]=t.fromLocalValue(n);return s;case"regexp":const{pattern:i,flags:l}=o;return RegExp(i,l);case"set":const r=new Set;for(const e of o)r.add(t.fromLocalValue(e));return r;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(E))return!1;const e=t[E];return!!Object.values({...C,...k}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(M))}};((t,e)=>{for(var n in e)N(t,n,{get:e[n],enumerable:!0})})({},{err:()=>ut,map:()=>ft,ok:()=>ct,unwrap:()=>at,unwrapErr:()=>dt});var ct=t=>({isOk:!0,isErr:!1,value:t}),ut=t=>({isOk:!1,isErr:!0,value:t});function ft(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>ct(t))):ct(n)}if(t.isErr)return ut(t.value);throw"should never get here"}var at=t=>{if(t.isOk)return t.value;throw t.value},dt=t=>{if(t.isErr)return t.value;throw t.value};function ht(t){const e=this.attachShadow({mode:"open",delegatesFocus:!!(16&t.o)});if(Y){const t=new CSSStyleSheet;t.replaceSync(""),e.adoptedStyleSheets.push(t)}}var pt=t=>{const e=Jt(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&bt(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!mt(t,yt(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&Jt(t,"childNodes").length&&pt(t)}},vt=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function bt(t,e,n){let o,s=0,i=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||yt(o)===n)&&(i.push(o),void 0!==n))return i;i=[...i,...bt(o.childNodes,e,n)]}return i}var mt=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)yt(s)!==e||!n&&s["s-sr"]||o.push(s);return o},$t=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,gt=(t,e,n,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const s=document.createTextNode("");if(s["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const i=e["s-cr"].parentNode,l=Jt(i,n?"prepend":"appendChild");if(void 0!==o){s["s-oo"]=o;const t=Jt(i,"childNodes"),e=[s];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>l.call(i,t)))}else l.call(i,s);t["s-ol"]=s,t["s-sh"]=e["s-hn"]},yt=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function wt(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.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;return(s.__childNodes?s.childNodes:vt(s.childNodes)).forEach((t=>{o===yt(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function St(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function jt(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=yt(t)||"";return{slotNode:bt(Jt(e,"childNodes"),e.tagName,o)[0],slotName:o}}var Ot=t=>{const e=t.cloneNode;t.cloneNode=function(t){const n=this.shadowRoot&&true,o=e.call(this,!!n&&t);if(!n&&t){let t,e,n=0;const s=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],i=this.__childNodes||this.childNodes;for(;n<i.length;n++)t=i[n]["s-nr"],e=s.every((t=>!i[n][t])),t&&(o.__appendChild?o.__appendChild(t.cloneNode(!0)):o.appendChild(t.cloneNode(!0))),e&&o.appendChild(i[n].cloneNode(!0))}return o}},Nt=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=jt(t,this);if(n){gt(t,n);const o=mt(n,e),s=o[o.length-1],i=Jt(s,"parentNode"),l=Jt(i,"insertBefore")(t,s.nextSibling);return St(n),pt(this),l}return this.__appendChild(t)}},xt=t=>{t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&bt(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void pt(this)):this.__removeChild(t)}},Ct=t=>{t.__prepend=t.prepend,t.prepend=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const n=(e["s-sn"]=yt(e))||"",o=bt(Jt(this,"childNodes"),this.tagName,n)[0];if(o){gt(e,o,!0);const t=mt(o,n)[0],s=Jt(t,"parentNode"),i=Jt(s,"insertBefore")(e,Jt(t,"nextSibling"));return St(o),i}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))}},kt=t=>{t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))}},Et=t=>{const e=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,n){if("afterbegin"!==t&&"beforeend"!==t)return e.call(this,t,n);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=n,"afterbegin"===t)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===t)for(;s=o.firstChild;)this.append(s)}},Mt=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},It=t=>{t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=jt(t,this),s=this.__childNodes?this.childNodes:vt(this.childNodes);if(o){let i=!1;if(s.forEach((s=>{if(s!==e&&null!==e);else{if(i=!0,null===e||n!==e["s-sn"])return void this.appendChild(t);if(n===e["s-sn"]){gt(t,o);const n=Jt(e,"parentNode");Jt(n,"insertBefore")(t,e),St(o)}}})),i)return t}const i=null==e?void 0:e.__parentNode;return i&&!this.isSameNode(i)?this.appendChild(t):this.__insertBefore(t,e)})},Rt=t=>{const e=t.insertAdjacentElement;t.insertAdjacentElement=function(t,n){return"afterbegin"!==t&&"beforeend"!==t?e.call(this,t,n):"afterbegin"===t?(this.prepend(n),n):"beforeend"===t?(this.append(n),n):n}},Lt=t=>{Vt("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:vt(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:vt(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},Pt=t=>{class e extends Array{item(t){return this[t]}}Vt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),Vt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),Vt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),Vt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...vt(this.__childNodes)),t}})},At=t=>{t&&void 0===t.__nextSibling&&globalThis.Node&&(Ft(t),Tt(t),_t(t),t.nodeType===Node.ELEMENT_NODE&&(Bt(t),Ut(t)))},Ft=t=>{t&&!t.__nextSibling&&(Vt("nextSibling",t),Object.defineProperty(t,"nextSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextSibling}}))},Bt=t=>{t&&!t.__nextElementSibling&&(Vt("nextElementSibling",t),Object.defineProperty(t,"nextElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextElementSibling}}))},Tt=t=>{t&&!t.__previousSibling&&(Vt("previousSibling",t),Object.defineProperty(t,"previousSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousSibling}}))},Ut=t=>{t&&!t.__previousElementSibling&&(Vt("previousElementSibling",t),Object.defineProperty(t,"previousElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousElementSibling}}))},_t=t=>{t&&!t.__parentNode&&(Vt("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},Wt=["children","nextElementSibling","previousElementSibling"],Dt=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Vt(t,e){let n;Wt.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):Dt.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function Jt(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var zt=(t,e,...n)=>{let o=null,s=null,i=null,l=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!it(o))&&(o+=""),l&&r?c[c.length-1].l+=o:c.push(l?Ht(null,o):o),r=l)};if(u(n),e){e.key&&(s=e.key),e.name&&(i=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,Yt);const f=Ht(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=s,f.v=i,f},Ht=(t,e)=>({o:0,$:t,l:e,S:null,h:null,u:null,p:null,v:null}),qt={},Yt={forEach:(t,e)=>t.map(Gt).forEach(e),map:(t,e)=>t.map(Gt).map(e).map(Kt)},Gt=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.v,vtag:t.$,vtext:t.l}),Kt=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),zt(t.vtag,e,...t.vchildren||[])}const e=Ht(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.v=t.vname,e},Qt=(t,e,n,o,s,i,l,r=[])=>{let c,u,f,a;const d=s["s-sc"];if(1===i.nodeType){if(c=i.getAttribute(W),c&&(u=c.split("."),u[0]===l||"0"===u[0])){f=Zt({o:0,j:u[0],O:u[1],N:u[2],C:u[3],$:i.tagName.toLowerCase(),S:i,u:{class:i.className||""}}),e.push(f),i.removeAttribute(W),t.h||(t.h=[]),d&&(i["s-si"]=d,f.u.class+=" "+d);const s=f.S.getAttribute("s-sn");"string"==typeof s&&("slot-fb"===f.$&&(te(s,u[2],f,i,t,e,n,o,r),d&&i.classList.add(d)),f.S["s-sn"]=s,f.S.removeAttribute("s-sn")),void 0!==f.C&&(t.h[f.C]=f),t=f,o&&"0"===f.N&&(o[f.C]=f.S)}if(i.shadowRoot)for(a=i.shadowRoot.childNodes.length-1;a>=0;a--)Qt(t,e,n,o,s,i.shadowRoot.childNodes[a],l,r);const h=i.__childNodes||i.childNodes;for(a=h.length-1;a>=0;a--)Qt(t,e,n,o,s,h[a],l,r)}else if(8===i.nodeType)u=i.nodeValue.split("."),(u[1]===l||"0"===u[1])&&(c=u[0],f=Zt({j:u[1],O:u[2],N:u[3],C:u[4]||"0",S:i,u:null,h:null,p:null,v:null,$:null,l:null}),"t"===c?(f.S=ne(i,3),f.S&&3===f.S.nodeType&&(f.l=f.S.textContent,e.push(f),i.remove(),l===f.j&&(t.h||(t.h=[]),t.h[f.C]=f),o&&"0"===f.N&&(o[f.C]=f.S))):"c"===c?(f.S=ne(i,8),f.S&&8===f.S.nodeType&&(e.push(f),i.remove())):f.j===l&&("s"===c?te(i["s-sn"]=u[5]||"",u[2],f,i,t,e,n,o,r):"r"===c&&(o?i.remove():(s["s-cr"]=i,i["s-cn"]=!0))));else if(t&&"style"===t.$){const e=Ht(null,i.textContent);e.S=i,e.C="0",t.h=[e]}else 3!==i.nodeType||i.wholeText.trim()||i.remove();return t},Xt=(t,e)=>{if(1===t.nodeType){const n=t[U]||t.getAttribute(U);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)Xt(t.shadowRoot.childNodes[o],e);const s=t.__childNodes||t.childNodes;for(o=0;o<s.length;o++)Xt(s[o],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},Zt=t=>({o:0,j:null,O:null,N:null,C:"0",S:null,u:null,h:null,p:null,v:null,$:null,l:null,...t});function te(t,e,n,o,s,i,l,r,c){o["s-sr"]=!0,n.v=t||null,n.$="slot";const u=(null==s?void 0:s.S)?s.S["s-id"]||s.S.getAttribute("s-id"):"";if(r&&J.document){const i=n.S=J.document.createElement(n.$);n.v&&n.S.setAttribute("name",t),u&&u!==n.j?s.S.insertBefore(i,s.S.children[0]):o.parentNode.insertBefore(n.S,o),ee(c,e,t,o,n.j),o.remove(),"0"===n.N&&(r[n.C]=n.S)}else{const l=n.S,r=u&&u!==n.j&&s.S.shadowRoot;ee(c,e,t,o,r?u:n.j),wt(o),r&&s.S.insertBefore(l,s.S.children[0]),i.push(n)}l.push(n),s.h||(s.h=[]),s.h[n.C]=n}var ee=(t,e,n,o,s)=>{let i=o.nextSibling;for(t[e]=t[e]||[];i&&((i.getAttribute&&i.getAttribute("slot")||i["s-sn"])===n||""===n&&!i["s-sn"]&&(8===i.nodeType&&1!==i.nodeValue.indexOf(".")||3===i.nodeType));)i["s-sn"]=n,t[e].push({slot:o,node:i,hostId:s}),i=i.nextSibling},ne=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},oe=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};oe("::slotted"),oe(":host"),oe(":host-context");var se,ie,le,re=t=>T.push(t),ce=t=>R(t).k,ue=(t,e)=>{if("string"==typeof t&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return"string"==typeof t&&t.startsWith(I)?t=function(t){return"string"==typeof t&&t.startsWith(I)?rt.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||it(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t},fe=t=>R(t).$hostElement$,ae=(t,e,n)=>{const o=fe(t);return{emit:t=>de(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},de=(t,e,n)=>{const o=H.ce(e,n);return t.dispatchEvent(o),o},he=new WeakMap,pe=(t,e,n)=>{let o=B.get(t);Y&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,B.set(t,o)},ve=(t,e,n)=>{var o;const s=be(e,n),i=B.get(s);if(!J.document)return s;if(t=11===t.nodeType?t:J.document,i)if("string"==typeof i){let n,l=he.get(t=t.head||t);if(l||he.set(t,l=new Set),!l.has(s)){if(t.host&&(n=t.querySelector(`[${_}="${s}"]`)))n.innerHTML=i;else{n=document.querySelector(`[${_}="${s}"]`)||J.document.createElement("style"),n.innerHTML=i;const l=null!=(o=H.M)?o:lt(J.document);if(null!=l&&n.setAttribute("nonce",l),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),o=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(n,(null==o?void 0:o.parentNode)===t?o:null)}else if("host"in t)if(Y){const e=new CSSStyleSheet;e.replaceSync(i),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=i+e.innerHTML:t.prepend(n)}else t.append(n);1&e.o&&t.insertBefore(n,null)}4&e.o&&(n.innerHTML+=D),l&&l.add(s)}}else t.adoptedStyleSheets.includes(i)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,i]);return s},be=(t,e)=>"sc-"+(e&&32&t.o?t.I+"-"+e:t.I),me=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),$e=(t,e,n,o,s,i,l)=>{if(n===o)return;let r=P(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,s=ye(n);let i=ye(o);t["s-si"]&&l?(i.push(t["s-si"]),s.forEach((e=>{e.startsWith(t["s-si"])&&i.push(e)})),i=[...new Set(i)],e.add(...i)):(e.remove(...s.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!s.includes(t)))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(r||"o"!==e[0]||"n"!==e[1]){const l=it(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const s=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==s||("function"==typeof t.__lookupSetter__(e)?t[e]=s:t.setAttribute(e,s))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,u=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(u?t.removeAttributeNS(V,e):t.removeAttribute(e)):(!r||4&i||s)&&!l&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(V,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):P(J,c)?c.slice(2):c[2]+e.slice(3),n||o){const s=e.endsWith(we);e=e.replace(Se,""),n&&H.rel(t,e,n,s),o&&H.ael(t,e,o,s)}},ge=/\s/,ye=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ge):[]),we="Capture",Se=RegExp(we+"$"),je=(t,e,n,o)=>{const s=11===e.S.nodeType&&e.S.host?e.S.host:e.S,i=t&&t.u||{},l=e.u||{};for(const t of Oe(Object.keys(i)))t in l||$e(s,t,i[t],void 0,n,e.o,o);for(const t of Oe(Object.keys(l)))$e(s,t,i[t],l[t],n,e.o,o)};function Oe(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Ne=!1,xe=!1,Ce=!1,ke=!1,Ee=(t,e,n)=>{var o;const s=e.h[n];let i,l,r,c=0;if(Ne||(Ce=!0,"slot"===s.$&&(s.o|=s.h?2:1)),null!==s.l)i=s.S=J.document.createTextNode(s.l);else if(1&s.o)i=s.S=J.document.createTextNode(""),je(null,s,ke);else{if(ke||(ke="svg"===s.$),!J.document)throw 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.");if(i=s.S=J.document.createElementNS(ke?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Ne&&2&s.o?"slot-fb":s.$),ke&&"foreignObject"===s.$&&(ke=!1),je(null,s,ke),null!=se&&void 0!==se&&i["s-si"]!==se&&i.classList.add(i["s-si"]=se),s.h)for(c=0;c<s.h.length;++c)l=Ee(t,s,c),l&&i.appendChild(l);"svg"===s.$?ke=!1:"foreignObject"===i.tagName&&(ke=!0)}return i["s-hn"]=le,3&s.o&&(i["s-sr"]=!0,i["s-cr"]=ie,i["s-sn"]=s.v||"",i["s-rf"]=null==(o=s.u)?void 0:o.ref,wt(i),r=t&&t.h&&t.h[n],r&&r.$===s.$&&t.S&&Me(t.S),We(ie,i,e.S,null==t?void 0:t.S)),i},Me=t=>{H.o|=1;const e=t.closest(le.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(_e(e,t,null!=n?n:null),t["s-sh"]=void 0,Ce=!0)}H.o&=-2},Ie=(t,e)=>{H.o|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===le&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==le&&o["s-ol"]&&(_e(Ae(o).parentNode,o,Ae(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,Ce=!0),e&&Ie(o,e)}H.o&=-2},Re=(t,e,n,o,s,i)=>{let l,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===le&&(r=r.shadowRoot);s<=i;++s)o[s]&&(l=Ee(null,n,s),l&&(o[s].S=l,_e(r,l,Ae(e))))},Le=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;Ue(e),t&&(xe=!0,t["s-ol"]?t["s-ol"].remove():Ie(t,!0),t.remove())}}},Pe=(t,e,n=!1)=>t.$===e.$&&("slot"===t.$?t.v===e.v:n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),Ae=t=>t&&t["s-ol"]||t,Fe=(t,e,n=!1)=>{const o=e.S=t.S,s=t.h,i=e.h,l=e.$,r=e.l;let c;null===r?(ke="svg"===l||"foreignObject"!==l&&ke,"slot"!==l||Ne||t.v!==e.v&&(e.S["s-sn"]=e.v||"",Me(e.S.parentElement)),je(t,e,ke,n),null!==s&&null!==i?((t,e,n,o,s=!1)=>{let i,l,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,v=o[0],b=o[p];for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==v)v=o[++c];else if(null==b)b=o[--p];else if(Pe(d,v,s))Fe(d,v,s),d=e[++r],v=o[++c];else if(Pe(h,b,s))Fe(h,b,s),h=e[--a],b=o[--p];else if(Pe(d,b,s))"slot"!==d.$&&"slot"!==b.$||Ie(d.S.parentNode,!1),Fe(d,b,s),_e(t,d.S,h.S.nextSibling),d=e[++r],b=o[--p];else if(Pe(h,v,s))"slot"!==d.$&&"slot"!==b.$||Ie(h.S.parentNode,!1),Fe(h,v,s),_e(t,h.S,d.S),h=e[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===v.p){u=f;break}u>=0?(l=e[u],l.$!==v.$?i=Ee(e&&e[c],n,u):(Fe(l,v,s),e[u]=void 0,i=l.S),v=o[++c]):(i=Ee(e&&e[c],n,c),v=o[++c]),i&&_e(Ae(d.S).parentNode,i,Ae(d.S))}r>a?Re(t,null==o[p+1]?null:o[p+1].S,n,o,c,p):c>p&&Le(e,r,a)})(o,s,e,i,n):null!==i?(null!==t.l&&(o.textContent=""),Re(o,null,e,i,0,i.length-1)):!n&&null!==s&&Le(s,0,s.length-1),ke&&"svg"===l&&(ke=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.l!==r&&(o.data=r)},Be=[],Te=t=>{let e,n,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if($t(e,s)){let n=Be.find((t=>t.R===e));xe=!0,e["s-sn"]=e["s-sn"]||s,n?(n.R["s-sh"]=t["s-hn"],n.L=t):(e["s-sh"]=t["s-hn"],Be.push({L:t,R:e})),e["s-sr"]&&Be.map((t=>{$t(t.R,e["s-sn"])&&(n=Be.find((t=>t.R===e)),n&&!t.L&&(t.L=n.L))}))}else Be.some((t=>t.R===e))||Be.push({R:e})}1===t.nodeType&&Te(t)}},Ue=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(Ue)},_e=(t,e,n)=>{if("string"==typeof e["s-sn"]&&e["s-sr"]&&e["s-cr"])We(e["s-cr"],e,t,e.parentElement);else if("string"==typeof e["s-sn"]){11!==t.getRootNode().nodeType&&_t(e),t.insertBefore(e,n);const{slotNode:o}=jt(e);return o&&St(o),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)};function We(t,e,n,o){var s,i;let l;if(t&&"string"==typeof e["s-sn"]&&e["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(l=e["s-si"]||t.parentNode["s-sc"])){const t=e["s-sn"],r=e["s-hn"];if(null==(s=n.classList)||s.add(l+"-s"),o&&(null==(i=o.classList)?void 0:i.contains(l+"-s"))){let e=(o.__childNodes||o.childNodes)[0],n=!1;for(;e;){if(e["s-sn"]!==t&&e["s-hn"]===r&&e["s-sr"]){n=!0;break}e=e.nextSibling}n||o.classList.remove(l+"-s")}}}var De=(t,e)=>{if(e&&!t.P&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.P=()=>{e["s-p"].splice(n-1,1),o()})))}},Ve=(t,e)=>{if(t.o|=16,!(4&t.o))return De(t,t.A),ot((()=>Je(t,e)));t.o|=512},Je=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw 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;return e?(t.o|=256,t.F&&(t.F.map((([t,e])=>Xe(o,t,e,n))),t.F=void 0),s=Xe(o,"componentWillLoad",void 0,n)):s=Xe(o,"componentWillUpdate",void 0,n),s=ze(s,(()=>Xe(o,"componentWillRender",void 0,n))),ze(s,(()=>qe(t,o,e)))},ze=(t,e)=>He(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),He=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,qe=async(t,e,n)=>{var o;const s=t.$hostElement$,i=s["s-rc"];n&&(t=>{const e=t.B,n=t.$hostElement$,o=e.o,s=ve(n.shadowRoot?n.shadowRoot:n.getRootNode(),e,t.k);10&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);Ye(t,e,s,n),i&&(i.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>Ge(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Ye=(t,e,n,o)=>{try{e=e.render&&e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,s,i,l,r;const c=t.$hostElement$,u=t.B,f=t.T||Ht(null,null),a=(t=>t&&t.$===qt)(e)?e:zt(null,null,e);if(le=c.tagName,u.U&&(a.u=a.u||{},u.U.map((([t,e])=>a.u[e]=c[t]))),n&&a.u)for(const t of Object.keys(a.u))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.u[t]=c[t]);if(a.$=null,a.o|=4,t.T=a,a.S=f.S=c.shadowRoot||c,se=c["s-sc"],Ne=!(!(1&u.o)||128&u.o),ie=c["s-cr"],xe=!1,Fe(f,a,n),H.o|=1,Ce){Te(a.S);for(const t of Be){const e=t.R;if(!e["s-ol"]&&J.document){const t=J.document.createTextNode("");t["s-nr"]=e,_e(e.parentNode,e["s-ol"]=t,e)}}for(const t of Be){const e=t.R,r=t.L;if(r){const t=r.parentNode;let n=r.nextSibling;if(n&&1===n.nodeType){let i=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;i;){let o=null!=(s=i["s-nr"])?s:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}i=i.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(_e(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(i=e["s-ih"])&&i)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(l=e.hidden)&&l),e.hidden=!0)}}if(xe&&pt(a.S),H.o&=-2,Be.length=0,2&u.o){const t=a.S.__childNodes||a.S.childNodes;for(const e of t)e["s-hn"]===le||e["s-sh"]||(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}ie=void 0})(t,e,o)}catch(e){A(e,t.$hostElement$)}return null},Ge=t=>{const e=t.$hostElement$,n=t.t,o=t.A;Xe(n,"componentDidRender",void 0,e),64&t.o?Xe(n,"componentDidUpdate",void 0,e):(t.o|=64,Ze(e),Xe(n,"componentDidLoad",void 0,e),t._(e),o||Qe()),t.W(e),t.P&&(t.P(),t.P=void 0),512&t.o&&et((()=>Ve(t,!1))),t.o&=-517},Ke=t=>{{const e=R(t),n=e.$hostElement$.isConnected;return n&&2==(18&e.o)&&Ve(e,!1),n}},Qe=()=>{et((()=>de(J,"appload",{detail:{namespace:"ionic"}})))},Xe=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){A(t,o)}},Ze=t=>t.classList.add("hydrated"),tn=(t,e,n,o)=>{const s=R(t);if(!s)throw Error(`Couldn't find host element for "${o.I}" 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 i=s.$hostElement$,l=s.D.get(e),r=s.o,c=s.t;if(n=ue(n,o.V[e][0]),(!(8&r)||void 0===l)&&n!==l&&(!Number.isNaN(l)||!Number.isNaN(n))&&(s.D.set(e,n),c)){if(o.J&&128&r){const t=o.J[e];t&&t.map((t=>{try{c[t](n,l,e)}catch(t){A(t,i)}}))}if(2==(18&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,l,e))return;Ve(s,!1)}}},en=(t,e,n)=>{var o,s;const i=t.prototype;if(e.V||e.J||t.watchers){t.watchers&&!e.J&&(e.J=t.watchers);const l=Object.entries(null!=(o=e.V)?o:{});if(l.map((([t,[o]])=>{if(31&o||2&n&&32&o){const{get:s,set:l}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.V[t][0]|=2048),l&&(e.V[t][0]|=4096),(1&n||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.V[t][0]))return((t,e)=>R(this).D.get(e))(0,t);const n=R(this),o=n?n.t:i;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=R(this);if(l){const n=32&o?this[t]:i.$hostElement$[t];return void 0===n&&i.D.get(t)?s=i.D.get(t):!i.D.get(t)&&n&&i.D.set(t,n),l.call(this,ue(s,o)),void tn(this,t,s=32&o?this[t]:i.$hostElement$[t],e)}{if(!(1&n&&4096&e.V[t][0]))return tn(this,t,s,e),void(1&n&&!i.t&&i.H.then((()=>{4096&e.V[t][0]&&i.t[t]!==i.D.get(t)&&(i.t[t]=s)})));const l=()=>{const n=i.t[t];!i.D.get(t)&&n&&i.D.set(t,n),i.t[t]=ue(s,o),tn(this,t,i.t[t],e)};i.t?l():i.H.then((()=>l()))}}})}else 1&n&&64&o&&Object.defineProperty(i,t,{value(...e){var n;const o=R(this);return null==(n=null==o?void 0:o.q)?void 0:n.then((()=>{var n;return null==(n=o.t)?void 0:n[t](...e)}))}})})),1&n){const n=new Map;i.attributeChangedCallback=function(t,o,s){H.jmp((()=>{var l;const r=n.get(t);if(this.hasOwnProperty(r))s=this[r],delete this[r];else{if(i.hasOwnProperty(r)&&"number"==typeof this[r]&&this[r]==s)return;if(null==r){const n=R(this),i=null==n?void 0:n.o;if(i&&!(8&i)&&128&i&&s!==o){const i=n.t,r=null==(l=e.J)?void 0:l[t];null==r||r.forEach((e=>{null!=i[e]&&i[e].call(i,s,o,t)}))}return}}const c=Object.getOwnPropertyDescriptor(i,r);(s=(null!==s||"boolean"!=typeof this[r])&&s)===this[r]||c.get&&!c.set||(this[r]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.J)?s:{}),...l.filter((([t,e])=>15&e[0])).map((([t,o])=>{var s;const i=o[1]||t;return n.set(i,t),512&o[0]&&(null==(s=e.U)||s.push([t,i])),i}))]))}}return t},nn=(t,e)=>{Xe(t,"connectedCallback",void 0,e)},on=t=>{if(!(1&H.o)){const e=R(t),n=e.B,o=()=>{};if(1&e.o)un(t,e,n.Y),(null==e?void 0:e.t)?nn(e.t,t):(null==e?void 0:e.H)&&e.H.then((()=>nn(e.t,t)));else{let o;if(e.o|=1,o=t.getAttribute(U),o){if(1&n.o){const e=ve(t.shadowRoot,n,t.getAttribute("s-mode"));t.classList.remove(e+"-h",e+"-s")}else if(2&n.o){const e=be(n,t.getAttribute("s-mode"));t["s-sc"]=e}((t,e,n,o)=>{var s;const i=t.shadowRoot,l=[],r=[],c=[],u=i?[]:null,f=Ht(e,null);let a;f.S=t,Object.entries((null==(s=o.B)?void 0:s.V)||{}).forEach((([e,[n,s]])=>{var i;if(!(31&n))return;const l=t.getAttribute(s||e);if(null!==l){const t=ue(l,n);null==(i=null==o?void 0:o.D)||i.set(e,t)}}));{const e=o.B;e&&10&e.o&&t["s-sc"]?(a=t["s-sc"],t.classList.add(a+"-h")):t["s-sc"]&&delete t["s-sc"]}!J.document||H.G&&H.G.size||Xt(J.document.body,H.G=new Map),t[U]=n,t.removeAttribute(U),o.T=Qt(f,l,r,u,t,t,n,c);let d=0;const h=l.length;let p;for(;d<h;d++){p=l[d];const n=p.j+"."+p.O,o=H.G.get(n),s=p.S;i||(s["s-hn"]=e.toUpperCase(),"slot"===p.$&&(s["s-cr"]=t["s-cr"])),"slot"===p.$&&(p.v=p.S["s-sn"]||p.S.name||null,p.h?(p.o|=2,p.S.childNodes.length||p.h.forEach((t=>{p.S.appendChild(t.S)}))):p.o|=1),o&&o.isConnected&&(i&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),o.parentNode.removeChild(o),i||(s["s-oo"]=parseInt(p.O))),H.G.delete(n)}const v=[],b=c.length;let m,$,g,y,w=0;for(;w<b;w++)if(m=c[w],m&&m.length)for(g=m.length,$=0;$<g;$++){if(y=m[$],v[y.hostId]||(v[y.hostId]=H.G.get(y.hostId)),!v[y.hostId])continue;const t=v[y.hostId];t.shadowRoot&&i||(y.slot["s-cr"]=t["s-cr"],y.slot["s-cr"]=!y.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0],gt(y.node,y.slot,!1,y.node["s-oo"]),At(y.node)),t.shadowRoot&&y.node.parentElement!==t&&t.appendChild(y.node)}if(a&&r.length&&r.forEach((t=>{t.S.parentElement.classList.add(a+"-s")})),i&&!i.childNodes.length){let e=0;const n=u.length;if(n){for(;e<n;e++)i.appendChild(u[e]);Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):(8===t.nodeType||3===t.nodeType&&!t.wholeText.trim())&&t.parentNode.removeChild(t))}))}}H.G.delete(t["s-id"]),o.$hostElement$=t})(t,n.I,o,e)}o||12&n.o&&sn(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){De(e,e.A=n);break}}n.V&&Object.entries(n.V).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.K){const s=((t,e)=>{const n=t.I.replace(/-/g,"_"),o=t.K;if(!o)return;const s=F.get(o);return s?s[n]:import(`./${o}.entry.js`).then((t=>(F.set(o,t),t[n])),(t=>{A(t,e.$hostElement$)})) /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(s&&"then"in s){const t=()=>{};o=await s,t()}else o=s;if(!o)throw Error(`Constructor for "${n.I}#${e.k}" was not found`);o.isProxied||(n.J=o.watchers,en(o,n,2),o.isProxied=!0);const i=()=>{};e.o|=8;try{new o(e)}catch(e){A(e,t)}e.o&=-9,e.o|=128,i(),nn(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let s;"string"==typeof o.style?s=o.style:"string"!=typeof o.style&&(e.k=(t=>T.map((e=>e(t))).find((t=>!!t)))(t),e.k&&(s=o.style[e.k]));const i=be(n,e.k);if(!B.has(i)){const t=()=>{};pe(i,s,!!(1&n.o)),t()}}}const s=e.A,i=()=>Ve(e,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(t,e,n)}o()}},sn=t=>{if(!J.document)return;const e=t["s-cr"]=J.document.createComment("");e["s-cn"]=!0,_e(t,e,t.firstChild)},ln=(t,e)=>{Xe(t,"disconnectedCallback",void 0,e||t)},rn=(t,e={})=>{var n;if(!J.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],s=e.exclude||[],i=J.customElements,l=J.document.head,r=l.querySelector("meta[charset]"),c=J.document.createElement("style"),u=[];let f,a=!0;Object.assign(H,e),H.i=new URL(e.resourcesUrl||"./",J.document.baseURI).href,H.o|=2,(()=>{if(!J.document)return;const t=J.document.querySelectorAll(`[${_}]`);let e=0;for(;e<t.length;e++)pe(t[e].getAttribute(_),me(t[e].innerHTML),!0)})();let d=!1;if(t.map((t=>{t[1].map((e=>{var n;const l={o:e[0],I:e[1],V:e[2],Y:e[3]};4&l.o&&(d=!0),l.V=e[2],l.Y=e[3],l.U=[],l.J=null!=(n=e[4])?n:{};const r=l.I,c=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,B:e,D:new Map};n.q=new Promise((t=>n.W=t)),n.H=new Promise((t=>n._=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.I}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ht.call(t,l)}connectedCallback(){const t=R(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,un(this,t,l.Y)),f&&(clearTimeout(f),f=null),a?u.push(this):H.jmp((()=>on(this)))}disconnectedCallback(){H.jmp((()=>(async t=>{if(!(1&H.o)){const e=R(t);e.X&&(e.X.map((t=>t())),e.X=void 0),(null==e?void 0:e.t)?ln(e.t,t):(null==e?void 0:e.H)&&e.H.then((()=>ln(e.t,t)))}he.has(t)&&he.delete(t),t.shadowRoot&&he.has(t.shadowRoot)&&he.delete(t.shadowRoot)})(this))),H.raf((()=>{var t;const e=R(this),n=u.findIndex((t=>t===this));n>-1&&u.splice(n,1),(null==(t=null==e?void 0:e.T)?void 0:t.S)instanceof Node&&!e.T.S.isConnected&&delete e.T.S}))}componentOnReady(){return R(this).H}};2&l.o&&(t=>{Ot(t),Nt(t),kt(t),Ct(t),Rt(t),Et(t),Mt(t),It(t),Lt(t),Pt(t),xt(t)})(c.prototype),l.K=t[0],s.includes(r)||i.get(r)||(o.push(r),i.define(r,en(c,l,1)))}))})),o.length>0&&(d&&(c.textContent+=D),c.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(n=H.M)?n:lt(J.document);null!=t&&c.setAttribute("nonce",t),l.insertBefore(c,r?r.nextSibling:l.firstChild)}a=!1,u.length?u.map((t=>t.connectedCallback())):H.jmp((()=>f=setTimeout(Qe,30)))},cn=(t,e)=>e,un=(t,e,n)=>{n&&J.document&&n.map((([n,o,s])=>{const i=an(J.document,t,n),l=fn(e,s),r=dn(n);H.ael(i,o,l,r),(e.X=e.X||[]).push((()=>H.rel(i,o,l,r)))}))},fn=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.F=t.F||[]).push([e,n])}catch(e){A(e,t.$hostElement$)}},an=(t,e,n)=>4&n?t:8&n?J:16&n?t.body:e,dn=t=>({passive:!!(1&t),capture:!!(2&t)}),hn=t=>H.M=t;export{x as B,cn as F,z as H,s as L,u as a,rn as b,c,ae as d,S as e,nt as f,O as g,zt as h,j as i,qt as j,fe as k,e as l,i as m,Ke as n,l as o,q as p,st as q,L as r,hn as s,r as t,ot as w}