@hotwax/dxp-components 1.5.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Login.d.ts.map +1 -1
- package/lib/components/ProductIdentifier.vue.d.ts +4 -0
- package/lib/components/ProductIdentifier.vue.d.ts.map +1 -0
- package/lib/components/index.d.ts +11 -10
- package/lib/components/index.d.ts.map +1 -1
- package/lib/index.cjs +1007 -8
- package/lib/index.d.ts +4 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +11310 -3138
- package/lib/style.css +1 -0
- package/lib/utils/firebase.d.ts +3 -0
- package/lib/utils/firebase.d.ts.map +1 -0
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/package.json +4 -3
package/lib/index.cjs
CHANGED
|
@@ -1,20 +1,1019 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";var Ow=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("vue");require("vue-router");var ca=!1;function In(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Ei(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Kd(){return da().__VUE_DEVTOOLS_GLOBAL_HOOK__}function da(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Xd=typeof Proxy=="function",Jd="devtools-plugin:setup",Qd="plugin:settings:set";let Ee,io;function tu(){var e;return Ee!==void 0||(typeof window<"u"&&window.performance?(Ee=!0,io=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(Ee=!0,io=global.perf_hooks.performance):Ee=!1),Ee}function eu(){return tu()?io.now():Date.now()}class nu{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const i={};if(t.settings)for(const s in t.settings){const a=t.settings[s];i[s]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},i);try{const s=localStorage.getItem(o),a=JSON.parse(s);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(s){try{localStorage.setItem(o,JSON.stringify(s))}catch{}r=s},now(){return eu()}},n&&n.on(Qd,(s,a)=>{s===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(s,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function ua(e,t){const n=e,i=da(),o=Kd(),r=Xd&&n.enableEarlyProxy;if(o&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))o.emit(Jd,e,t);else{const s=r?new nu(n,o):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
|
|
2
2
|
* pinia v2.0.36
|
|
3
3
|
* (c) 2023 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/let
|
|
6
|
-
${
|
|
7
|
-
Only state can be modified.`);
|
|
5
|
+
*/let tn;const ln=e=>tn=e,ha=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function de(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mt||(Mt={}));const ai=typeof window<"u",on=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&ai,_r=(()=>typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null})();function iu(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function Po(e,t,n){const i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){ma(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function fa(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Bn(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Vn=typeof navigator=="object"?navigator:{userAgent:""},pa=(()=>/Macintosh/.test(Vn.userAgent)&&/AppleWebKit/.test(Vn.userAgent)&&!/Safari/.test(Vn.userAgent))(),ma=ai?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!pa?ou:"msSaveOrOpenBlob"in Vn?ru:su:()=>{};function ou(e,t="download",n){const i=document.createElement("a");i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?fa(i.href)?Po(e,t,n):(i.target="_blank",Bn(i)):Bn(i)):(i.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(i.href)},4e4),setTimeout(function(){Bn(i)},0))}function ru(e,t="download",n){if(typeof e=="string")if(fa(e))Po(e,t,n);else{const i=document.createElement("a");i.href=e,i.target="_blank",setTimeout(function(){Bn(i)})}else navigator.msSaveOrOpenBlob(iu(e,n),t)}function su(e,t,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),typeof e=="string")return Po(e,t,n);const o=e.type==="application/octet-stream",r=/constructor/i.test(String(_r.HTMLElement))||"safari"in _r,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&r||pa)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw i=null,new Error("Wrong reader.result type");l=s?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=l:location.assign(l),i=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);i?i.location.assign(a):location.href=a,i=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function et(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Lo(e){return"_a"in e&&"install"in e}function ga(){if(!("clipboard"in navigator))return et("Your browser doesn't support the Clipboard API","error"),!0}function ba(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(et('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function au(e){if(!ga())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),et("Global state copied to clipboard.")}catch(t){if(ba(t))return;et("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function lu(e){if(!ga())try{e.state.value=JSON.parse(await navigator.clipboard.readText()),et("Global state pasted from clipboard.")}catch(t){if(ba(t))return;et("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function cu(e){try{ma(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){et("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Lt;function du(){Lt||(Lt=document.createElement("input"),Lt.type="file",Lt.accept=".json");function e(){return new Promise((t,n)=>{Lt.onchange=async()=>{const i=Lt.files;if(!i)return t(null);const o=i.item(0);return t(o?{text:await o.text(),file:o}:null)},Lt.oncancel=()=>t(null),Lt.onerror=n,Lt.click()})}return e}async function uu(e){try{const n=await(await du())();if(!n)return;const{text:i,file:o}=n;e.state.value=JSON.parse(i),et(`Global state imported from "${o.name}".`)}catch(t){et("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}function Tt(e){return{_custom:{display:e}}}const va="🍍 Pinia (root)",oo="_root";function hu(e){return Lo(e)?{id:oo,label:va}:{id:e.$id,label:e.$id}}function fu(e){if(Lo(e)){const n=Array.from(e._s.keys()),i=e._s;return{state:n.map(r=>({editable:!0,key:r,value:e.state.value[r]})),getters:n.filter(r=>i.get(r)._getters).map(r=>{const s=i.get(r);return{editable:!1,key:r,value:s._getters.reduce((a,l)=>(a[l]=s[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function pu(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Tt(e.type),key:Tt(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function mu(e){switch(e){case Mt.direct:return"mutation";case Mt.patchFunction:return"$patch";case Mt.patchObject:return"$patch";default:return"unknown"}}let De=!0;const jn=[],ie="pinia:mutations",ot="pinia",{assign:gu}=Object,qn=e=>"🍍 "+e;function bu(e,t){ua({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:jn,app:e},n=>{typeof n.now!="function"&&et("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:ie,label:"Pinia 🍍",color:15064968}),n.addInspector({id:ot,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{au(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await lu(t),n.sendInspectorTree(ot),n.sendInspectorState(ot)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{cu(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await uu(t),n.sendInspectorTree(ot),n.sendInspectorState(ot)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:i=>{const o=t._s.get(i);o?o._isOptionsAPI?(o.$reset(),et(`Store "${i}" reset.`)):et(`Cannot reset "${i}" store because it's a setup store.`,"warn"):et(`Cannot reset "${i}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((i,o)=>{const r=i.componentInstance&&i.componentInstance.proxy;if(r&&r._pStores){const s=i.componentInstance.proxy._pStores;Object.values(s).forEach(a=>{i.instanceData.state.push({type:qn(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:m.toRaw(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,c)=>(l[c]=a.$state[c],l),{})}),a._getters&&a._getters.length&&i.instanceData.state.push({type:qn(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,c)=>{try{l[c]=a[c]}catch(d){l[c]=d}return l},{})})})}}),n.on.getInspectorTree(i=>{if(i.app===e&&i.inspectorId===ot){let o=[t];o=o.concat(Array.from(t._s.values())),i.rootNodes=(i.filter?o.filter(r=>"$id"in r?r.$id.toLowerCase().includes(i.filter.toLowerCase()):va.toLowerCase().includes(i.filter.toLowerCase())):o).map(hu)}}),n.on.getInspectorState(i=>{if(i.app===e&&i.inspectorId===ot){const o=i.nodeId===oo?t:t._s.get(i.nodeId);if(!o)return;o&&(i.state=fu(o))}}),n.on.editInspectorState((i,o)=>{if(i.app===e&&i.inspectorId===ot){const r=i.nodeId===oo?t:t._s.get(i.nodeId);if(!r)return et(`store "${i.nodeId}" not found`,"error");const{path:s}=i;Lo(r)?s.unshift("state"):(s.length!==1||!r._customProperties.has(s[0])||s[0]in r.$state)&&s.unshift("$state"),De=!1,i.set(r,s,i.state.value),De=!0}}),n.on.editComponentState(i=>{if(i.type.startsWith("🍍")){const o=i.type.replace(/^🍍\s*/,""),r=t._s.get(o);if(!r)return et(`store "${o}" not found`,"error");const{path:s}=i;if(s[0]!=="state")return et(`Invalid path for store "${o}":
|
|
6
|
+
${s}
|
|
7
|
+
Only state can be modified.`);s[0]="$state",De=!1,i.set(r,s,i.state.value),De=!0}})})}function vu(e,t){jn.includes(qn(t.$id))||jn.push(qn(t.$id)),ua({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:jn,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const i=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:s,onError:a,name:l,args:c})=>{const d=ya++;n.addTimelineEvent({layerId:ie,event:{time:i(),title:"🛫 "+l,subtitle:"start",data:{store:Tt(t.$id),action:Tt(l),args:c},groupId:d}}),s(u=>{re=void 0,n.addTimelineEvent({layerId:ie,event:{time:i(),title:"🛬 "+l,subtitle:"end",data:{store:Tt(t.$id),action:Tt(l),args:c,result:u},groupId:d}})}),a(u=>{re=void 0,n.addTimelineEvent({layerId:ie,event:{time:i(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:Tt(t.$id),action:Tt(l),args:c,error:u},groupId:d}})})},!0),t._customProperties.forEach(s=>{m.watch(()=>m.unref(t[s]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(ot),De&&n.addTimelineEvent({layerId:ie,event:{time:i(),title:"Change",subtitle:s,data:{newValue:a,oldValue:l},groupId:re}})},{deep:!0})}),t.$subscribe(({events:s,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(ot),!De)return;const c={time:i(),title:mu(a),data:gu({store:Tt(t.$id)},pu(s)),groupId:re};re=void 0,a===Mt.patchFunction?c.subtitle="⤵️":a===Mt.patchObject?c.subtitle="🧩":s&&!Array.isArray(s)&&(c.subtitle=s.type),s&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:s}}),n.addTimelineEvent({layerId:ie,event:c})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=m.markRaw(s=>{o(s),n.addTimelineEvent({layerId:ie,event:{time:i(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:Tt(t.$id),info:Tt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(ot),n.sendInspectorState(ot)});const{$dispose:r}=t;t.$dispose=()=>{r(),n.notifyComponentUpdate(),n.sendInspectorTree(ot),n.sendInspectorState(ot),n.getSettings().logStoreChanges&&et(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(ot),n.sendInspectorState(ot),n.getSettings().logStoreChanges&&et(`"${t.$id}" store installed 🆕`)})}let ya=0,re;function Mr(e,t){const n=t.reduce((i,o)=>(i[o]=m.toRaw(e)[o],i),{});for(const i in n)e[i]=function(){const o=ya,r=new Proxy(e,{get(...s){return re=o,Reflect.get(...s)},set(...s){return re=o,Reflect.set(...s)}});return n[i].apply(r,arguments)}}function yu({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(n.state&&(t._isOptionsAPI=!0),typeof n.state=="function"){Mr(t,Object.keys(n.actions));const i=t._hotUpdate;m.toRaw(t)._hotUpdate=function(o){i.apply(this,arguments),Mr(t,Object.keys(o._hmrPayload.actions))}}vu(e,t)}}function wu(){const e=m.effectScope(!0),t=e.run(()=>m.ref({}));let n=[],i=[];const o=m.markRaw({install(r){ln(o),o._a=r,r.provide(ha,o),r.config.globalProperties.$pinia=o,on&&bu(r,o),i.forEach(s=>n.push(s)),i=[]},use(r){return!this._a&&!ca?i.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return on&&typeof Proxy<"u"&&o.use(yu),o}function wa(e,t){for(const n in t){const i=t[n];if(!(n in e))continue;const o=e[n];de(o)&&de(i)&&!m.isRef(i)&&!m.isReactive(i)?e[n]=wa(o,i):e[n]=i}return e}const xa=()=>{};function Pr(e,t,n,i=xa){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),i())};return!n&&m.getCurrentScope()&&m.onScopeDispose(o),o}function Se(e,...t){e.slice().forEach(n=>{n(...t)})}function ro(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,i)=>e.set(i,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const i=t[n],o=e[n];de(o)&&de(i)&&e.hasOwnProperty(n)&&!m.isRef(i)&&!m.isReactive(i)?e[n]=ro(o,i):e[n]=i}return e}const xu=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function ku(e){return!de(e)||!e.hasOwnProperty(xu)}const{assign:yt}=Object;function Lr(e){return!!(m.isRef(e)&&e.effect)}function Nr(e,t,n,i){const{state:o,actions:r,getters:s}=t,a=n.state.value[e];let l;function c(){!a&&(process.env.NODE_ENV==="production"||!i)&&(n.state.value[e]=o?o():{});const d=process.env.NODE_ENV!=="production"&&i?m.toRefs(m.ref(o?o():{}).value):m.toRefs(n.state.value[e]);return yt(d,r,Object.keys(s||{}).reduce((u,h)=>(process.env.NODE_ENV!=="production"&&h in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${e}".`),u[h]=m.markRaw(m.computed(()=>{ln(n);const g=n._s.get(e);return s[h].call(g,g)})),u),{}))}return l=so(e,c,t,n,i,!0),l}function so(e,t,n={},i,o,r){let s;const a=yt({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!i._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!ca&&(l.onTrigger=E=>{c?g=E:c==!1&&!v._hotUpdating&&(Array.isArray(g)?g.push(E):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,d,u=m.markRaw([]),h=m.markRaw([]),g;const k=i.state.value[e];!r&&!k&&(process.env.NODE_ENV==="production"||!o)&&(i.state.value[e]={});const b=m.ref({});let C;function $(E){let w;c=d=!1,process.env.NODE_ENV!=="production"&&(g=[]),typeof E=="function"?(E(i.state.value[e]),w={type:Mt.patchFunction,storeId:e,events:g}):(ro(i.state.value[e],E),w={type:Mt.patchObject,payload:E,storeId:e,events:g});const S=C=Symbol();m.nextTick().then(()=>{C===S&&(c=!0)}),d=!0,Se(u,w,i.state.value[e])}const _=r?function(){const{state:w}=n,S=w?w():{};this.$patch(A=>{yt(A,S)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:xa;function z(){s.stop(),u=[],h=[],i._s.delete(e)}function P(E,w){return function(){ln(i);const S=Array.from(arguments),A=[],tt=[];function pt(j){A.push(j)}function Vt(j){tt.push(j)}Se(h,{args:S,name:E,store:v,after:pt,onError:Vt});let H;try{H=w.apply(this&&this.$id===e?this:v,S)}catch(j){throw Se(tt,j),j}return H instanceof Promise?H.then(j=>(Se(A,j),j)).catch(j=>(Se(tt,j),Promise.reject(j))):(Se(A,H),H)}}const F=m.markRaw({actions:{},getters:{},state:[],hotState:b}),I={_p:i,$id:e,$onAction:Pr.bind(null,h),$patch:$,$reset:_,$subscribe(E,w={}){const S=Pr(u,E,w.detached,()=>A()),A=s.run(()=>m.watch(()=>i.state.value[e],tt=>{(w.flush==="sync"?d:c)&&E({storeId:e,type:Mt.direct,events:g},tt)},yt({},l,w)));return S},$dispose:z},v=m.reactive(process.env.NODE_ENV!=="production"||on?yt({_hmrPayload:F,_customProperties:m.markRaw(new Set)},I):I);i._s.set(e,v);const O=i._e.run(()=>(s=m.effectScope(),s.run(()=>t())));for(const E in O){const w=O[E];if(m.isRef(w)&&!Lr(w)||m.isReactive(w))process.env.NODE_ENV!=="production"&&o?In(b.value,E,m.toRef(O,E)):r||(k&&ku(w)&&(m.isRef(w)?w.value=k[E]:ro(w,k[E])),i.state.value[e][E]=w),process.env.NODE_ENV!=="production"&&F.state.push(E);else if(typeof w=="function"){const S=process.env.NODE_ENV!=="production"&&o?w:P(E,w);O[E]=S,process.env.NODE_ENV!=="production"&&(F.actions[E]=w),a.actions[E]=w}else process.env.NODE_ENV!=="production"&&Lr(w)&&(F.getters[E]=r?n.getters[E]:w,ai&&(O._getters||(O._getters=m.markRaw([]))).push(E))}if(yt(v,O),yt(m.toRaw(v),O),Object.defineProperty(v,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?b.value:i.state.value[e],set:E=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");$(w=>{yt(w,E)})}}),process.env.NODE_ENV!=="production"&&(v._hotUpdate=m.markRaw(E=>{v._hotUpdating=!0,E._hmrPayload.state.forEach(w=>{if(w in v.$state){const S=E.$state[w],A=v.$state[w];typeof S=="object"&&de(S)&&de(A)?wa(S,A):E.$state[w]=A}In(v,w,m.toRef(E.$state,w))}),Object.keys(v.$state).forEach(w=>{w in E.$state||Ei(v,w)}),c=!1,d=!1,i.state.value[e]=m.toRef(E._hmrPayload,"hotState"),d=!0,m.nextTick().then(()=>{c=!0});for(const w in E._hmrPayload.actions){const S=E[w];In(v,w,P(w,S))}for(const w in E._hmrPayload.getters){const S=E._hmrPayload.getters[w],A=r?m.computed(()=>(ln(i),S.call(v,v))):S;In(v,w,A)}Object.keys(v._hmrPayload.getters).forEach(w=>{w in E._hmrPayload.getters||Ei(v,w)}),Object.keys(v._hmrPayload.actions).forEach(w=>{w in E._hmrPayload.actions||Ei(v,w)}),v._hmrPayload=E._hmrPayload,v._getters=E._getters,v._hotUpdating=!1})),on){const E={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(w=>{Object.defineProperty(v,w,yt({value:v[w]},E))})}return i._p.forEach(E=>{if(on){const w=s.run(()=>E({store:v,app:i._a,pinia:i,options:a}));Object.keys(w||{}).forEach(S=>v._customProperties.add(S)),yt(v,w)}else yt(v,s.run(()=>E({store:v,app:i._a,pinia:i,options:a})))}),process.env.NODE_ENV!=="production"&&v.$state&&typeof v.$state=="object"&&typeof v.$state.constructor=="function"&&!v.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
8
8
|
state: () => new MyClass()
|
|
9
|
-
Found in store "${
|
|
9
|
+
Found in store "${v.$id}".`),k&&r&&n.hydrate&&n.hydrate(v.$state,k),c=!0,d=!0,v}function ka(e,t,n){let i,o;const r=typeof t=="function";if(typeof e=="string")i=e,o=r?n:t;else if(o=e,i=e.id,process.env.NODE_ENV!=="production"&&typeof i!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function s(a,l){const c=m.getCurrentInstance();if(a=(process.env.NODE_ENV==="test"&&tn&&tn._testing?null:a)||c&&m.inject(ha,null),a&&ln(a),process.env.NODE_ENV!=="production"&&!tn)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
10
10
|
const pinia = createPinia()
|
|
11
11
|
app.use(pinia)
|
|
12
|
-
This will fail in production.`);a=Me,a._s.has(r)||(o?vt(r,e,s,a):Ht(r,s,a),process.env.NODE_ENV!=="production"&&(i._pinia=a));const f=a._s.get(r);if(process.env.NODE_ENV!=="production"&&u){const y="__hot:"+r,S=o?vt(y,e,s,a,!0):Ht(y,Z({},s),a,!0);u._hotUpdate(S),delete a.state.value[y],a._s.delete(y)}if(process.env.NODE_ENV!=="production"&&st&&l&&l.proxy&&!u){const y=l.proxy,S="_pStores"in y?y._pStores:y._pStores={};S[r]=f}return f}return i.$id=r,i}const ls=Vn("productIdentification",{state:()=>({productIdentificationPref:{primaryId:"",secondaryId:""},productIdentificationOptions:["productId","groupId","groupName","internalName","parentProductName","primaryProductCategoryName","productId","sku","title","SHOPIFY_PROD_SKU"]}),getters:{getProductIdentificationPref:t=>t.productIdentificationPref,getProductIdentificationOptions:t=>t.productIdentificationOptions},actions:{async setProductIdentificationPref(t,e,n){const r=JSON.parse(JSON.stringify(this.getProductIdentificationPref));if(!n){this.productIdentificationPref=r;return}r[t]=e;try{this.productIdentificationPref=await Fe.setProductIdentificationPref(n,r)}catch(s){console.log("error",s)}},async getIdentificationPref(t){if(!t)return this.productIdentificationPref={primaryId:"productId",secondaryId:""};this.productIdentificationPref=await Fe.getProductIdentificationPref(t)}}});class ce extends Error{}class cs extends ce{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class fs extends ce{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ds extends ce{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class De extends ce{}class Cn extends ce{constructor(e){super(`Invalid unit ${e}`)}}class z extends ce{}class X extends ce{constructor(){super("Zone is an abstract class")}}const c="numeric",Y="short",A="long",Et={year:c,month:c,day:c},$n={year:c,month:Y,day:c},hs={year:c,month:Y,day:c,weekday:Y},Fn={year:c,month:A,day:c},Pn={year:c,month:A,day:c,weekday:A},Ln={hour:c,minute:c},An={hour:c,minute:c,second:c},Un={hour:c,minute:c,second:c,timeZoneName:Y},Rn={hour:c,minute:c,second:c,timeZoneName:A},Zn={hour:c,minute:c,hourCycle:"h23"},zn={hour:c,minute:c,second:c,hourCycle:"h23"},Wn={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:Y},Hn={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:A},jn={year:c,month:c,day:c,hour:c,minute:c},qn={year:c,month:c,day:c,hour:c,minute:c,second:c},Gn={year:c,month:Y,day:c,hour:c,minute:c},Yn={year:c,month:Y,day:c,hour:c,minute:c,second:c},ms={year:c,month:Y,day:c,weekday:Y,hour:c,minute:c},Jn={year:c,month:A,day:c,hour:c,minute:c,timeZoneName:Y},Bn={year:c,month:A,day:c,hour:c,minute:c,second:c,timeZoneName:Y},Qn={year:c,month:A,day:c,weekday:A,hour:c,minute:c,timeZoneName:A},Kn={year:c,month:A,day:c,weekday:A,hour:c,minute:c,second:c,timeZoneName:A};function O(t){return typeof t>"u"}function ue(t){return typeof t=="number"}function it(t){return typeof t=="number"&&t%1===0}function ys(t){return typeof t=="string"}function gs(t){return Object.prototype.toString.call(t)==="[object Date]"}function Xn(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ps(t){return Array.isArray(t)?t:[t]}function jt(t,e,n){if(t.length!==0)return t.reduce((r,s)=>{const o=[e(s),s];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function ws(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function pe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Q(t,e,n){return it(t)&&t>=e&&t<=n}function Ss(t,e){return t-e*Math.floor(t/e)}function k(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function ee(t){if(!(O(t)||t===null||t===""))return parseInt(t,10)}function re(t){if(!(O(t)||t===null||t===""))return parseFloat(t)}function Vt(t){if(!(O(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Ct(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function Pe(t){return t%4===0&&(t%100!==0||t%400===0)}function Ve(t){return Pe(t)?366:365}function tt(t,e){const n=Ss(e-1,12)+1,r=t+(e-n)/12;return n===2?Pe(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function $t(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function nt(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||r===3?53:52}function It(t){return t>99?t:t>60?1900+t:2e3+t}function er(t,e,n,r=null){const s=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const i={timeZoneName:e,...o},a=new Intl.DateTimeFormat(n,i).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function ot(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function tr(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new z(`Invalid unit value ${t}`);return e}function rt(t,e){const n={};for(const r in t)if(pe(t,r)){const s=t[r];if(s==null)continue;n[e(r)]=tr(s)}return n}function Ce(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${k(n,2)}:${k(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${k(n,2)}${k(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function at(t){return ws(t,["hour","minute","second","millisecond"])}const nr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,Os=["January","February","March","April","May","June","July","August","September","October","November","December"],rr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ts=["J","F","M","A","M","J","J","A","S","O","N","D"];function sr(t){switch(t){case"narrow":return[...Ts];case"short":return[...rr];case"long":return[...Os];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ir=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],or=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],vs=["M","T","W","T","F","S","S"];function ar(t){switch(t){case"narrow":return[...vs];case"short":return[...or];case"long":return[...ir];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ur=["AM","PM"],Es=["Before Christ","Anno Domini"],Is=["BC","AD"],bs=["B","A"];function lr(t){switch(t){case"narrow":return[...bs];case"short":return[...Is];case"long":return[...Es];default:return null}}function Ns(t){return ur[t.hour<12?0:1]}function ks(t,e){return ar(e)[t.weekday-1]}function Ms(t,e){return sr(e)[t.month-1]}function Ds(t,e){return lr(e)[t.year<0?0:1]}function xs(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&o){const y=t==="days";switch(e){case 1:return y?"tomorrow":`next ${s[t][0]}`;case-1:return y?"yesterday":`last ${s[t][0]}`;case 0:return y?"today":`this ${s[t][0]}`}}const i=Object.is(e,-0)||e<0,a=Math.abs(e),u=a===1,l=s[t],f=r?u?l[1]:l[2]||l[1]:u?s[t][0]:t;return i?`${a} ${f} ago`:`in ${a} ${f}`}function qt(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const _s={D:Et,DD:$n,DDD:Fn,DDDD:Pn,t:Ln,tt:An,ttt:Un,tttt:Rn,T:Zn,TT:zn,TTT:Wn,TTTT:Hn,f:jn,ff:Gn,fff:Jn,ffff:Qn,F:qn,FF:Yn,FFF:Bn,FFFF:Kn};class F{static create(e,n={}){return new F(e,n)}static parseFormat(e){let n=null,r="",s=!1;const o=[];for(let i=0;i<e.length;i++){const a=e.charAt(i);a==="'"?(r.length>0&&o.push({literal:s,val:r}),n=null,r="",s=!s):s||a===n?r+=a:(r.length>0&&o.push({literal:!1,val:r}),r=a,n=a)}return r.length>0&&o.push({literal:s,val:r}),o}static macroTokenToFormatOpts(e){return _s[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTime(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTimeParts(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).formatToParts()}resolvedOptions(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return k(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(h,E)=>this.loc.extract(e,h,E),i=h=>e.isOffsetFixed&&e.offset===0&&h.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,h.format):"",a=()=>r?Ns(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(h,E)=>r?Ms(e,h):o(E?{month:h}:{month:h,day:"numeric"},"month"),l=(h,E)=>r?ks(e,h):o(E?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),f=h=>{const E=F.macroTokenToFormatOpts(h);return E?this.formatWithSystemDefault(e,E):h},y=h=>r?Ds(e,h):o({era:h},"era"),S=h=>{switch(h){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return s?o({day:"numeric"},"day"):this.num(e.day);case"dd":return s?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?o({month:"numeric"},"month"):this.num(e.month);case"MM":return s?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?o({year:"numeric"},"year"):this.num(e.year);case"yy":return s?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return y("short");case"GG":return y("long");case"GGGGG":return y("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(h)}};return qt(F.parseFormat(n),S)}formatDurationFromString(e,n){const r=u=>{switch(u[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=u=>l=>{const f=r(l);return f?this.num(u.get(f),l.length):l},o=F.parseFormat(n),i=o.reduce((u,{literal:l,val:f})=>l?u:u.concat(f),[]),a=e.shiftTo(...i.map(r).filter(u=>u));return qt(o,s(a))}}class G{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Le{get type(){throw new X}get name(){throw new X}get ianaName(){return this.name}get isUniversal(){throw new X}offsetName(e,n){throw new X}formatOffset(e,n){throw new X}offset(e){throw new X}equals(e){throw new X}get isValid(){throw new X}}let ft=null;class ut extends Le{static get instance(){return ft===null&&(ft=new ut),ft}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return er(e,n,r)}formatOffset(e,n){return Ce(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Ke={};function Vs(t){return Ke[t]||(Ke[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ke[t]}const Cs={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function $s(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,o,i,a,u,l,f]=r;return[i,s,o,a,u,l,f]}function Fs(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s<n.length;s++){const{type:o,value:i}=n[s],a=Cs[o];o==="era"?r[a]=i:O(a)||(r[a]=parseInt(i,10))}return r}let He={};class K extends Le{static create(e){return He[e]||(He[e]=new K(e)),He[e]}static resetCache(){He={},Ke={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=K.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return er(e,n,r,this.name)}formatOffset(e,n){return Ce(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=Vs(this.name);let[s,o,i,a,u,l,f]=r.formatToParts?Fs(r,n):$s(r,n);a==="BC"&&(s=-Math.abs(s)+1);const S=$t({year:s,month:o,day:i,hour:u===24?0:u,minute:l,second:f,millisecond:0});let h=+n;const E=h%1e3;return h-=E>=0?E:1e3+E,(S-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let dt=null;class V extends Le{static get utcInstance(){return dt===null&&(dt=new V(0)),dt}static instance(e){return e===0?V.utcInstance:new V(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new V(ot(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ce(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ce(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Ce(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Ps extends Le{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function te(t,e){if(O(t)||t===null)return e;if(t instanceof Le)return t;if(ys(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?ut.instance:n==="utc"||n==="gmt"?V.utcInstance:V.parseSpecifier(n)||K.create(t)}else return ue(t)?V.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new Ps(t)}let Gt=()=>Date.now(),Yt="system",Jt=null,Bt=null,Qt=null,Kt;class M{static get now(){return Gt}static set now(e){Gt=e}static set defaultZone(e){Yt=e}static get defaultZone(){return te(Yt,ut.instance)}static get defaultLocale(){return Jt}static set defaultLocale(e){Jt=e}static get defaultNumberingSystem(){return Bt}static set defaultNumberingSystem(e){Bt=e}static get defaultOutputCalendar(){return Qt}static set defaultOutputCalendar(e){Qt=e}static get throwOnInvalid(){return Kt}static set throwOnInvalid(e){Kt=e}static resetCaches(){I.resetCache(),K.resetCache()}}let Xt={};function Ls(t,e={}){const n=JSON.stringify([t,e]);let r=Xt[n];return r||(r=new Intl.ListFormat(t,e),Xt[n]=r),r}let bt={};function Nt(t,e={}){const n=JSON.stringify([t,e]);let r=bt[n];return r||(r=new Intl.DateTimeFormat(t,e),bt[n]=r),r}let kt={};function As(t,e={}){const n=JSON.stringify([t,e]);let r=kt[n];return r||(r=new Intl.NumberFormat(t,e),kt[n]=r),r}let Mt={};function Us(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let o=Mt[s];return o||(o=new Intl.RelativeTimeFormat(t,e),Mt[s]=o),o}let xe=null;function Rs(){return xe||(xe=new Intl.DateTimeFormat().resolvedOptions().locale,xe)}function Zs(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let n;const r=t.substring(0,e);try{n=Nt(t).resolvedOptions()}catch{n=Nt(r).resolvedOptions()}const{numberingSystem:s,calendar:o}=n;return[r,s,o]}}function zs(t,e,n){return(n||e)&&(t+="-u",n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Ws(t){const e=[];for(let n=1;n<=12;n++){const r=w.utc(2016,n,1);e.push(t(r))}return e}function Hs(t){const e=[];for(let n=1;n<=7;n++){const r=w.utc(2016,11,13+n);e.push(t(r))}return e}function je(t,e,n,r,s){const o=t.listingMode(n);return o==="error"?null:o==="en"?r(e):s(e)}function js(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class qs{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:o,...i}=r;if(!n||Object.keys(i).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=As(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Ct(e,3);return k(n,this.padTo)}}}class Gs{constructor(e,n,r){this.opts=r;let s;if(e.zone.isUniversal){const i=-1*(e.offset/60),a=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;e.offset!==0&&K.create(a).valid?(s=a,this.dt=e):(s="UTC",r.timeZoneName?this.dt=e:this.dt=e.offset===0?e:w.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,s=e.zone.name);const o={...this.opts};s&&(o.timeZone=s),this.dtf=Nt(n,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ys{constructor(e,n,r){this.opts={style:"long",...r},!n&&Xn()&&(this.rtf=Us(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):xs(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class I{static fromOpts(e){return I.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,s=!1){const o=e||M.defaultLocale,i=o||(s?"en-US":Rs()),a=n||M.defaultNumberingSystem,u=r||M.defaultOutputCalendar;return new I(i,a,u,o)}static resetCache(){xe=null,bt={},kt={},Mt={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return I.create(e,n,r)}constructor(e,n,r,s){const[o,i,a]=Zs(e);this.locale=o,this.numberingSystem=n||i||null,this.outputCalendar=r||a||null,this.intl=zs(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=js(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:I.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1,r=!0){return je(this,e,r,sr,()=>{const s=n?{month:e,day:"numeric"}:{month:e},o=n?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=Ws(i=>this.extract(i,s,"month"))),this.monthsCache[o][e]})}weekdays(e,n=!1,r=!0){return je(this,e,r,ar,()=>{const s=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=n?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=Hs(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[o][e]})}meridiems(e=!0){return je(this,void 0,e,()=>ur,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[w.utc(2016,11,13,9),w.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(e,n=!0){return je(this,e,n,lr,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[w.utc(-40,1,1),w.utc(2017,1,1)].map(s=>this.extract(s,r,"era"))),this.eraCache[e]})}extract(e,n,r){const s=this.dtFormatter(e,n),o=s.formatToParts(),i=o.find(a=>a.type.toLowerCase()===r);return i?i.value:null}numberFormatter(e={}){return new qs(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Gs(e,this.intl,n)}relFormatter(e={}){return new Ys(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Ls(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function we(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function Se(...t){return e=>t.reduce(([n,r,s],o)=>{const[i,a,u]=o(e,s);return[{...n,...i},a||r,u]},[{},null,1]).slice(0,2)}function Oe(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const s=n.exec(t);if(s)return r(s)}return[null,null]}function cr(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=ee(e[n+s]);return[r,null,n+s]}}const fr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Js=`(?:${fr.source}?(?:\\[(${nr.source})\\])?)?`,Ft=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,dr=RegExp(`${Ft.source}${Js}`),Pt=RegExp(`(?:T${dr.source})?`),Bs=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Qs=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ks=/(\d{4})-?(\d{3})/,Xs=cr("weekYear","weekNumber","weekDay"),ei=cr("year","ordinal"),ti=/(\d{4})-(\d\d)-(\d\d)/,hr=RegExp(`${Ft.source} ?(?:${fr.source}|(${nr.source}))?`),ni=RegExp(`(?: ${hr.source})?`);function ge(t,e,n){const r=t[e];return O(r)?n:ee(r)}function ri(t,e){return[{year:ge(t,e),month:ge(t,e+1,1),day:ge(t,e+2,1)},null,e+3]}function Te(t,e){return[{hours:ge(t,e,0),minutes:ge(t,e+1,0),seconds:ge(t,e+2,0),milliseconds:Vt(t[e+3])},null,e+4]}function Ae(t,e){const n=!t[e]&&!t[e+1],r=ot(t[e+1],t[e+2]),s=n?null:V.instance(r);return[{},s,e+3]}function Ue(t,e){const n=t[e]?K.create(t[e]):null;return[{},n,e+1]}const si=RegExp(`^T?${Ft.source}$`),ii=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function oi(t){const[e,n,r,s,o,i,a,u,l]=t,f=e[0]==="-",y=u&&u[0]==="-",S=(h,E=!1)=>h!==void 0&&(E||h&&f)?-h:h;return[{years:S(re(n)),months:S(re(r)),weeks:S(re(s)),days:S(re(o)),hours:S(re(i)),minutes:S(re(a)),seconds:S(re(u),u==="-0"),milliseconds:S(Vt(l),y)}]}const ai={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Lt(t,e,n,r,s,o,i){const a={year:e.length===2?It(ee(e)):ee(e),month:rr.indexOf(n)+1,day:ee(r),hour:ee(s),minute:ee(o)};return i&&(a.second=ee(i)),t&&(a.weekday=t.length>3?ir.indexOf(t)+1:or.indexOf(t)+1),a}const ui=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function li(t){const[,e,n,r,s,o,i,a,u,l,f,y]=t,S=Lt(e,s,r,n,o,i,a);let h;return u?h=ai[u]:l?h=0:h=ot(f,y),[S,new V(h)]}function ci(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fi=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,di=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hi=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function en(t){const[,e,n,r,s,o,i,a]=t;return[Lt(e,s,r,n,o,i,a),V.utcInstance]}function mi(t){const[,e,n,r,s,o,i,a]=t;return[Lt(e,a,n,r,s,o,i),V.utcInstance]}const yi=we(Bs,Pt),gi=we(Qs,Pt),pi=we(Ks,Pt),wi=we(dr),mr=Se(ri,Te,Ae,Ue),Si=Se(Xs,Te,Ae,Ue),Oi=Se(ei,Te,Ae,Ue),Ti=Se(Te,Ae,Ue);function vi(t){return Oe(t,[yi,mr],[gi,Si],[pi,Oi],[wi,Ti])}function Ei(t){return Oe(ci(t),[ui,li])}function Ii(t){return Oe(t,[fi,en],[di,en],[hi,mi])}function bi(t){return Oe(t,[ii,oi])}const Ni=Se(Te);function ki(t){return Oe(t,[si,Ni])}const Mi=we(ti,ni),Di=we(hr),xi=Se(Te,Ae,Ue);function _i(t){return Oe(t,[Mi,mr],[Di,xi])}const Vi="Invalid Duration",yr={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ci={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...yr},R=146097/400,me=146097/4800,$i={years:{quarters:4,months:12,weeks:R/7,days:R,hours:R*24,minutes:R*24*60,seconds:R*24*60*60,milliseconds:R*24*60*60*1e3},quarters:{months:3,weeks:R/28,days:R/4,hours:R*24/4,minutes:R*24*60/4,seconds:R*24*60*60/4,milliseconds:R*24*60*60*1e3/4},months:{weeks:me/7,days:me,hours:me*24,minutes:me*24*60,seconds:me*24*60*60,milliseconds:me*24*60*60*1e3},...yr},oe=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Fi=oe.slice(0).reverse();function se(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new T(r)}function Pi(t){return t<0?Math.floor(t):Math.ceil(t)}function gr(t,e,n,r,s){const o=t[s][n],i=e[n]/o,a=Math.sign(i)===Math.sign(r[s]),u=!a&&r[s]!==0&&Math.abs(i)<=1?Pi(i):Math.trunc(i);r[s]+=u,e[n]-=u*o}function Li(t,e){Fi.reduce((n,r)=>O(e[r])?n:(n&&gr(t,e,n,e,r),r),null)}class T{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||I.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n?$i:Ci,this.isLuxonDuration=!0}static fromMillis(e,n){return T.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new z(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new T({values:rt(e,T.normalizeUnit),loc:I.fromObject(n),conversionAccuracy:n.conversionAccuracy})}static fromDurationLike(e){if(ue(e))return T.fromMillis(e);if(T.isDuration(e))return e;if(typeof e=="object")return T.fromObject(e);throw new z(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=bi(e);return r?T.fromObject(r,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=ki(e);return r?T.fromObject(r,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new z("need to specify a reason the Duration is invalid");const r=e instanceof G?e:new G(e,n);if(M.throwOnInvalid)throw new ds(r);return new T({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Cn(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?F.create(this.loc,r).formatDurationFromString(this,e):Vi}toHuman(e={}){const n=oe.map(r=>{const s=this.values[r];return O(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(s)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ct(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let s=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(s+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||r.milliseconds!==0)&&(s+=".SSS"));let o=r.toFormat(s);return e.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e),r={};for(const s of oe)(pe(n.values,s)||pe(this.values,s))&&(r[s]=n.get(s)+this.get(s));return se(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=tr(e(this.values[r],r));return se(this,{values:n},!0)}get(e){return this[T.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...rt(e,T.normalizeUnit)};return se(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n}),o={loc:s};return r&&(o.conversionAccuracy=r),se(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Li(this.matrix,e),se(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(i=>T.normalizeUnit(i));const n={},r={},s=this.toObject();let o;for(const i of oe)if(e.indexOf(i)>=0){o=i;let a=0;for(const l in r)a+=this.matrix[l][i]*r[l],r[l]=0;ue(s[i])&&(a+=s[i]);const u=Math.trunc(a);n[i]=u,r[i]=(a*1e3-u*1e3)/1e3;for(const l in s)oe.indexOf(l)>oe.indexOf(i)&&gr(this.matrix,s,l,n,i)}else ue(s[i])&&(r[i]=s[i]);for(const i in r)r[i]!==0&&(n[o]+=i===o?r[i]:r[i]/this.matrix[o][i]);return se(this,{values:n},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return se(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of oe)if(!n(this.values[r],e.values[r]))return!1;return!0}}const Ie="Invalid Interval";function Ai(t,e){return!t||!t.isValid?N.invalid("missing or invalid start"):!e||!e.isValid?N.invalid("missing or invalid end"):e<t?N.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class N{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new z("need to specify a reason the Interval is invalid");const r=e instanceof G?e:new G(e,n);if(M.throwOnInvalid)throw new fs(r);return new N({invalid:r})}static fromDateTimes(e,n){const r=ke(e),s=ke(n),o=Ai(r,s);return o??new N({start:r,end:s})}static after(e,n){const r=T.fromDurationLike(n),s=ke(e);return N.fromDateTimes(s,s.plus(r))}static before(e,n){const r=T.fromDurationLike(n),s=ke(e);return N.fromDateTimes(s.minus(r),s)}static fromISO(e,n){const[r,s]=(e||"").split("/",2);if(r&&s){let o,i;try{o=w.fromISO(r,n),i=o.isValid}catch{i=!1}let a,u;try{a=w.fromISO(s,n),u=a.isValid}catch{u=!1}if(i&&u)return N.fromDateTimes(o,a);if(i){const l=T.fromISO(s,n);if(l.isValid)return N.after(o,l)}else if(u){const l=T.fromISO(r,n);if(l.isValid)return N.before(a,l)}}return N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(n,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?N.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(ke).filter(i=>this.contains(i)).sort(),r=[];let{s}=this,o=0;for(;s<this.e;){const i=n[o]||this.e,a=+i>+this.e?this.e:i;r.push(N.fromDateTimes(s,a)),s=a,o+=1}return r}splitBy(e){const n=T.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,o;const i=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(u=>u*s));o=+a>+this.e?this.e:a,i.push(N.fromDateTimes(r,o)),r=o,s+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:N.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return N.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((s,o)=>s.s-o.s).reduce(([s,o],i)=>o?o.overlaps(i)||o.abutsStart(i)?[s,o.union(i)]:[s.concat([o]),i]:[s,i],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const s=[],o=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),i=Array.prototype.concat(...o),a=i.sort((u,l)=>u.time-l.time);for(const u of a)r+=u.type==="s"?1:-1,r===1?n=u.time:(n&&+n!=+u.time&&s.push(N.fromDateTimes(n,u.time)),n=null);return N.merge(s)}difference(...e){return N.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ie}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ie}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ie}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ie}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Ie}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):T.invalid(this.invalidReason)}mapEndpoints(e){return N.fromDateTimes(e(this.s),e(this.e))}}class qe{static hasDST(e=M.defaultZone){const n=w.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return K.isValidZone(e)}static normalizeZone(e){return te(e,M.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:o="gregory"}={}){return(s||I.create(n,r,o)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:o="gregory"}={}){return(s||I.create(n,r,o)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||I.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||I.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return I.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return I.create(n,null,"gregory").eras(e)}static features(){return{relative:Xn()}}}function tn(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(T.fromMillis(r).as("days"))}function Ui(t,e,n){const r=[["years",(a,u)=>u.year-a.year],["quarters",(a,u)=>u.quarter-a.quarter],["months",(a,u)=>u.month-a.month+(u.year-a.year)*12],["weeks",(a,u)=>{const l=tn(a,u);return(l-l%7)/7}],["days",tn]],s={};let o,i;for(const[a,u]of r)if(n.indexOf(a)>=0){o=a;let l=u(t,e);i=t.plus({[a]:l}),i>e?(t=t.plus({[a]:l-1}),l-=1):t=i,s[a]=l}return[t,s,i,o]}function Ri(t,e,n,r){let[s,o,i,a]=Ui(t,e,n);const u=e-s,l=n.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);l.length===0&&(i<e&&(i=s.plus({[a]:1})),i!==s&&(o[a]=(o[a]||0)+u/(i-s)));const f=T.fromObject(o,r);return l.length>0?T.fromMillis(u,r).shiftTo(...l).plus(f):f}const At={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},nn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Zi=At.hanidec.replace(/[\[|\]]/g,"").split("");function zi(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(At.hanidec)!==-1)e+=Zi.indexOf(t[n]);else for(const s in nn){const[o,i]=nn[s];r>=o&&r<=i&&(e+=r-o)}}return parseInt(e,10)}else return e}function H({numberingSystem:t},e=""){return new RegExp(`${At[t||"latn"]}${e}`)}const Wi="missing Intl.DateTimeFormat.formatToParts support";function v(t,e=n=>n){return{regex:t,deser:([n])=>e(zi(n))}}const Hi=String.fromCharCode(160),pr=`[ ${Hi}]`,wr=new RegExp(pr,"g");function ji(t){return t.replace(/\./g,"\\.?").replace(wr,pr)}function rn(t){return t.replace(/\./g,"").replace(wr," ").toLowerCase()}function j(t,e){return t===null?null:{regex:RegExp(t.map(ji).join("|")),deser:([n])=>t.findIndex(r=>rn(n)===rn(r))+e}}function sn(t,e){return{regex:t,deser:([,n,r])=>ot(n,r),groups:e}}function ht(t){return{regex:t,deser:([e])=>e}}function qi(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Gi(t,e){const n=H(e),r=H(e,"{2}"),s=H(e,"{3}"),o=H(e,"{4}"),i=H(e,"{6}"),a=H(e,"{1,2}"),u=H(e,"{1,3}"),l=H(e,"{1,6}"),f=H(e,"{1,9}"),y=H(e,"{2,4}"),S=H(e,"{4,6}"),h=C=>({regex:RegExp(qi(C.val)),deser:([ne])=>ne,literal:!0}),P=(C=>{if(t.literal)return h(C);switch(C.val){case"G":return j(e.eras("short",!1),0);case"GG":return j(e.eras("long",!1),0);case"y":return v(l);case"yy":return v(y,It);case"yyyy":return v(o);case"yyyyy":return v(S);case"yyyyyy":return v(i);case"M":return v(a);case"MM":return v(r);case"MMM":return j(e.months("short",!0,!1),1);case"MMMM":return j(e.months("long",!0,!1),1);case"L":return v(a);case"LL":return v(r);case"LLL":return j(e.months("short",!1,!1),1);case"LLLL":return j(e.months("long",!1,!1),1);case"d":return v(a);case"dd":return v(r);case"o":return v(u);case"ooo":return v(s);case"HH":return v(r);case"H":return v(a);case"hh":return v(r);case"h":return v(a);case"mm":return v(r);case"m":return v(a);case"q":return v(a);case"qq":return v(r);case"s":return v(a);case"ss":return v(r);case"S":return v(u);case"SSS":return v(s);case"u":return ht(f);case"uu":return ht(a);case"uuu":return v(n);case"a":return j(e.meridiems(),0);case"kkkk":return v(o);case"kk":return v(y,It);case"W":return v(a);case"WW":return v(r);case"E":case"c":return v(n);case"EEE":return j(e.weekdays("short",!1,!1),1);case"EEEE":return j(e.weekdays("long",!1,!1),1);case"ccc":return j(e.weekdays("short",!0,!1),1);case"cccc":return j(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return sn(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return sn(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return ht(/[a-z_+-/]{1,256}?/i);default:return h(C)}})(t)||{invalidReason:Wi};return P.token=t,P}const Yi={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Ji(t,e,n){const{type:r,value:s}=t;if(r==="literal")return{literal:!0,val:s};const o=n[r];let i=Yi[r];if(typeof i=="object"&&(i=i[o]),i)return{literal:!1,val:i}}function Bi(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function Qi(t,e,n){const r=t.match(e);if(r){const s={};let o=1;for(const i in n)if(pe(n,i)){const a=n[i],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(r.slice(o,o+u))),o+=u}return[r,s]}else return[r,{}]}function Ki(t){const e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return O(t.z)||(n=K.create(t.z)),O(t.Z)||(n||(n=new V(t.Z)),r=t.Z),O(t.q)||(t.M=(t.q-1)*3+1),O(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),O(t.u)||(t.S=Vt(t.u)),[Object.keys(t).reduce((o,i)=>{const a=e(i);return a&&(o[a]=t[i]),o},{}),n,r]}let mt=null;function Xi(){return mt||(mt=w.fromMillis(1555555555555)),mt}function eo(t,e){if(t.literal)return t;const n=F.macroTokenToFormatOpts(t.val);if(!n)return t;const o=F.create(e,n).formatDateTimeParts(Xi()).map(i=>Ji(i,e,n));return o.includes(void 0)?t:o}function to(t,e){return Array.prototype.concat(...t.map(n=>eo(n,e)))}function Sr(t,e,n){const r=to(F.parseFormat(n),t),s=r.map(i=>Gi(i,t)),o=s.find(i=>i.invalidReason);if(o)return{input:e,tokens:r,invalidReason:o.invalidReason};{const[i,a]=Bi(s),u=RegExp(i,"i"),[l,f]=Qi(e,u,a),[y,S,h]=f?Ki(f):[null,null,void 0];if(pe(f,"a")&&pe(f,"H"))throw new De("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:u,rawMatches:l,matches:f,result:y,zone:S,specificOffset:h}}}function no(t,e,n){const{result:r,zone:s,specificOffset:o,invalidReason:i}=Sr(t,e,n);return[r,s,o,i]}const Or=[0,31,59,90,120,151,181,212,243,273,304,334],Tr=[0,31,60,91,121,152,182,213,244,274,305,335];function W(t,e){return new G("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function vr(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function Er(t,e,n){return n+(Pe(t)?Tr:Or)[e-1]}function Ir(t,e){const n=Pe(t)?Tr:Or,r=n.findIndex(o=>o<e),s=e-n[r];return{month:r+1,day:s}}function Dt(t){const{year:e,month:n,day:r}=t,s=Er(e,n,r),o=vr(e,n,r);let i=Math.floor((s-o+10)/7),a;return i<1?(a=e-1,i=nt(a)):i>nt(e)?(a=e+1,i=1):a=e,{weekYear:a,weekNumber:i,weekday:o,...at(t)}}function on(t){const{weekYear:e,weekNumber:n,weekday:r}=t,s=vr(e,1,4),o=Ve(e);let i=n*7+r-s-3,a;i<1?(a=e-1,i+=Ve(a)):i>o?(a=e+1,i-=Ve(e)):a=e;const{month:u,day:l}=Ir(a,i);return{year:a,month:u,day:l,...at(t)}}function yt(t){const{year:e,month:n,day:r}=t,s=Er(e,n,r);return{year:e,ordinal:s,...at(t)}}function an(t){const{year:e,ordinal:n}=t,{month:r,day:s}=Ir(e,n);return{year:e,month:r,day:s,...at(t)}}function ro(t){const e=it(t.weekYear),n=Q(t.weekNumber,1,nt(t.weekYear)),r=Q(t.weekday,1,7);return e?n?r?!1:W("weekday",t.weekday):W("week",t.week):W("weekYear",t.weekYear)}function so(t){const e=it(t.year),n=Q(t.ordinal,1,Ve(t.year));return e?n?!1:W("ordinal",t.ordinal):W("year",t.year)}function br(t){const e=it(t.year),n=Q(t.month,1,12),r=Q(t.day,1,tt(t.year,t.month));return e?n?r?!1:W("day",t.day):W("month",t.month):W("year",t.year)}function Nr(t){const{hour:e,minute:n,second:r,millisecond:s}=t,o=Q(e,0,23)||e===24&&n===0&&r===0&&s===0,i=Q(n,0,59),a=Q(r,0,59),u=Q(s,0,999);return o?i?a?u?!1:W("millisecond",s):W("second",r):W("minute",n):W("hour",e)}const gt="Invalid DateTime",un=864e13;function Ge(t){return new G("unsupported zone",`the zone "${t.name}" is not supported`)}function pt(t){return t.weekData===null&&(t.weekData=Dt(t.c)),t.weekData}function be(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new w({...n,...e,old:n})}function kr(t,e,n){let r=t-e*60*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const o=n.offset(r);return s===o?[r,s]:[t-Math.min(s,o)*60*1e3,Math.max(s,o)]}function ln(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Xe(t,e,n){return kr($t(t),e,n)}function cn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:r,month:s,day:Math.min(t.c.day,tt(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},i=T.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=$t(o);let[u,l]=kr(a,n,t.zone);return i!==0&&(u+=i,l=t.zone.offset(u)),{ts:u,o:l}}function Ne(t,e,n,r,s,o){const{setZone:i,zone:a}=n;if(t&&Object.keys(t).length!==0){const u=e||a,l=w.fromObject(t,{...n,zone:u,specificOffset:o});return i?l:l.setZone(a)}else return w.invalid(new G("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Ye(t,e,n=!0){return t.isValid?F.create(I.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function wt(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=k(t.c.year,n?6:4),e?(r+="-",r+=k(t.c.month),r+="-",r+=k(t.c.day)):(r+=k(t.c.month),r+=k(t.c.day)),r}function fn(t,e,n,r,s,o){let i=k(t.c.hour);return e?(i+=":",i+=k(t.c.minute),(t.c.second!==0||!n)&&(i+=":")):i+=k(t.c.minute),(t.c.second!==0||!n)&&(i+=k(t.c.second),(t.c.millisecond!==0||!r)&&(i+=".",i+=k(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!o?i+="Z":t.o<0?(i+="-",i+=k(Math.trunc(-t.o/60)),i+=":",i+=k(Math.trunc(-t.o%60))):(i+="+",i+=k(Math.trunc(t.o/60)),i+=":",i+=k(Math.trunc(t.o%60)))),o&&(i+="["+t.zone.ianaName+"]"),i}const Mr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},io={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},oo={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Dr=["year","month","day","hour","minute","second","millisecond"],ao=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],uo=["year","ordinal","hour","minute","second","millisecond"];function dn(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Cn(t);return e}function hn(t,e){const n=te(e.zone,M.defaultZone),r=I.fromObject(e),s=M.now();let o,i;if(O(t.year))o=s;else{for(const l of Dr)O(t[l])&&(t[l]=Mr[l]);const a=br(t)||Nr(t);if(a)return w.invalid(a);const u=n.offset(s);[o,i]=Xe(t,u,n)}return new w({ts:o,zone:n,loc:r,o:i})}function mn(t,e,n){const r=O(n.round)?!0:n.round,s=(i,a)=>(i=Ct(i,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(i,a)),o=i=>n.calendary?e.hasSame(t,i)?0:e.startOf(i).diff(t.startOf(i),i).get(i):e.diff(t,i).get(i);if(n.unit)return s(o(n.unit),n.unit);for(const i of n.units){const a=o(i);if(Math.abs(a)>=1)return s(a,i)}return s(t>e?-0:0,n.units[n.units.length-1])}function yn(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class w{constructor(e){const n=e.zone||M.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new G("invalid input"):null)||(n.isValid?null:Ge(n));this.ts=O(e.ts)?M.now():e.ts;let s=null,o=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,o]=[e.old.c,e.old.o];else{const a=n.offset(this.ts);s=ln(this.ts,a),r=Number.isNaN(s.year)?new G("invalid input"):null,s=r?null:s,o=r?null:a}this._zone=n,this.loc=e.loc||I.create(),this.invalid=r,this.weekData=null,this.c=s,this.o=o,this.isLuxonDateTime=!0}static now(){return new w({})}static local(){const[e,n]=yn(arguments),[r,s,o,i,a,u,l]=n;return hn({year:r,month:s,day:o,hour:i,minute:a,second:u,millisecond:l},e)}static utc(){const[e,n]=yn(arguments),[r,s,o,i,a,u,l]=n;return e.zone=V.utcInstance,hn({year:r,month:s,day:o,hour:i,minute:a,second:u,millisecond:l},e)}static fromJSDate(e,n={}){const r=gs(e)?e.valueOf():NaN;if(Number.isNaN(r))return w.invalid("invalid input");const s=te(n.zone,M.defaultZone);return s.isValid?new w({ts:r,zone:s,loc:I.fromObject(n)}):w.invalid(Ge(s))}static fromMillis(e,n={}){if(ue(e))return e<-un||e>un?w.invalid("Timestamp out of range"):new w({ts:e,zone:te(n.zone,M.defaultZone),loc:I.fromObject(n)});throw new z(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(ue(e))return new w({ts:e*1e3,zone:te(n.zone,M.defaultZone),loc:I.fromObject(n)});throw new z("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=te(n.zone,M.defaultZone);if(!r.isValid)return w.invalid(Ge(r));const s=M.now(),o=O(n.specificOffset)?r.offset(s):n.specificOffset,i=rt(e,dn),a=!O(i.ordinal),u=!O(i.year),l=!O(i.month)||!O(i.day),f=u||l,y=i.weekYear||i.weekNumber,S=I.fromObject(n);if((f||a)&&y)throw new De("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new De("Can't mix ordinal dates with month/day");const h=y||i.weekday&&!f;let E,P,C=ln(s,o);h?(E=ao,P=io,C=Dt(C)):a?(E=uo,P=oo,C=yt(C)):(E=Dr,P=Mr);let ne=!1;for(const $ of E){const m=i[$];O(m)?ne?i[$]=P[$]:i[$]=C[$]:ne=!0}const lt=h?ro(i):a?so(i):br(i),Re=lt||Nr(i);if(Re)return w.invalid(Re);const Ze=h?on(i):a?an(i):i,[fe,ze]=Xe(Ze,o,r),p=new w({ts:fe,zone:r,o:ze,loc:S});return i.weekday&&f&&e.weekday!==p.weekday?w.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${p.toISO()}`):p}static fromISO(e,n={}){const[r,s]=vi(e);return Ne(r,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,s]=Ei(e);return Ne(r,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,s]=Ii(e);return Ne(r,s,n,"HTTP",n)}static fromFormat(e,n,r={}){if(O(e)||O(n))throw new z("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:o=null}=r,i=I.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0}),[a,u,l,f]=no(i,e,n);return f?w.invalid(f):Ne(a,u,r,`format ${n}`,e,l)}static fromString(e,n,r={}){return w.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,s]=_i(e);return Ne(r,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new z("need to specify a reason the DateTime is invalid");const r=e instanceof G?e:new G(e,n);if(M.throwOnInvalid)throw new cs(r);return new w({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?pt(this).weekYear:NaN}get weekNumber(){return this.isValid?pt(this).weekNumber:NaN}get weekday(){return this.isValid?pt(this).weekday:NaN}get ordinal(){return this.isValid?yt(this.c).ordinal:NaN}get monthShort(){return this.isValid?qe.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?qe.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?qe.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?qe.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Pe(this.year)}get daysInMonth(){return tt(this.year,this.month)}get daysInYear(){return this.isValid?Ve(this.year):NaN}get weeksInWeekYear(){return this.isValid?nt(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:s}=F.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(V.instance(e),n)}toLocal(){return this.setZone(M.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=te(e,M.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||r){const o=e.offset(this.ts),i=this.toObject();[s]=Xe(i,o,e)}return be(this,{ts:s,zone:e})}else return w.invalid(Ge(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return be(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=rt(e,dn),r=!O(n.weekYear)||!O(n.weekNumber)||!O(n.weekday),s=!O(n.ordinal),o=!O(n.year),i=!O(n.month)||!O(n.day),a=o||i,u=n.weekYear||n.weekNumber;if((a||s)&&u)throw new De("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&s)throw new De("Can't mix ordinal dates with month/day");let l;r?l=on({...Dt(this.c),...n}):O(n.ordinal)?(l={...this.toObject(),...n},O(n.day)&&(l.day=Math.min(tt(l.year,l.month),l.day))):l=an({...yt(this.c),...n});const[f,y]=Xe(l,this.o,this.zone);return be(this,{ts:f,o:y})}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return be(this,cn(this,n))}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e).negate();return be(this,cn(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=T.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const s=Math.ceil(this.month/3);n.month=(s-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?F.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):gt}toLocaleString(e=Et,n={}){return this.isValid?F.create(this.loc.clone(n),e).formatDateTime(this):gt}toLocaleParts(e={}){return this.isValid?F.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const i=e==="extended";let a=wt(this,i);return a+="T",a+=fn(this,i,n,r,s,o),a}toISODate({format:e="extended"}={}){return this.isValid?wt(this,e==="extended"):null}toISOWeekDate(){return Ye(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:o=!1,format:i="extended"}={}){return this.isValid?(s?"T":"")+fn(this,i==="extended",n,e,r,o):null}toRFC2822(){return Ye(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ye(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?wt(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(r&&(s+=" "),n?s+="z":e&&(s+="ZZ")),Ye(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():gt}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return T.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=ps(n).map(T.normalizeUnit),i=e.valueOf()>this.valueOf(),a=i?this:e,u=i?e:this,l=Ri(a,u,o,s);return i?l.negate():l}diffNow(e="milliseconds",n={}){return this.diff(w.now(),e,n)}until(e){return this.isValid?N.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(n)<=r&&r<=s.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||w.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(s=e.unit,o=void 0),mn(n,this.plus(r),{...e,numeric:"always",units:s,unit:o})}toRelativeCalendar(e={}){return this.isValid?mn(e.base||w.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(w.isDateTime))throw new z("min requires all arguments be DateTimes");return jt(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(w.isDateTime))throw new z("max requires all arguments be DateTimes");return jt(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:s=null,numberingSystem:o=null}=r,i=I.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0});return Sr(i,e,n)}static fromStringExplain(e,n,r={}){return w.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return Et}static get DATE_MED(){return $n}static get DATE_MED_WITH_WEEKDAY(){return hs}static get DATE_FULL(){return Fn}static get DATE_HUGE(){return Pn}static get TIME_SIMPLE(){return Ln}static get TIME_WITH_SECONDS(){return An}static get TIME_WITH_SHORT_OFFSET(){return Un}static get TIME_WITH_LONG_OFFSET(){return Rn}static get TIME_24_SIMPLE(){return Zn}static get TIME_24_WITH_SECONDS(){return zn}static get TIME_24_WITH_SHORT_OFFSET(){return Wn}static get TIME_24_WITH_LONG_OFFSET(){return Hn}static get DATETIME_SHORT(){return jn}static get DATETIME_SHORT_WITH_SECONDS(){return qn}static get DATETIME_MED(){return Gn}static get DATETIME_MED_WITH_SECONDS(){return Yn}static get DATETIME_MED_WITH_WEEKDAY(){return ms}static get DATETIME_FULL(){return Jn}static get DATETIME_FULL_WITH_SECONDS(){return Bn}static get DATETIME_HUGE(){return Qn}static get DATETIME_HUGE_WITH_SECONDS(){return Kn}}function ke(t){if(w.isDateTime(t))return t;if(t&&t.valueOf&&ue(t.valueOf()))return w.fromJSDate(t);if(t&&typeof t=="object")return w.fromObject(t);throw new z(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const xr=Vn("userAuth",{state:()=>({token:{value:"",expiration:void 0},oms:""}),getters:{getToken:t=>t.token,getOms:t=>t.oms,isAuthenticated:t=>{let e=!1;if(t.token.expiration){const n=w.now().toMillis();e=t.token.expiration<n}return t.token.value&&!e}},persist:!0}),_r=g.defineComponent({template:`
|
|
12
|
+
This will fail in production.`);a=tn,a._s.has(i)||(r?so(i,t,o,a):Nr(i,o,a),process.env.NODE_ENV!=="production"&&(s._pinia=a));const d=a._s.get(i);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+i,h=r?so(u,t,o,a,!0):Nr(u,yt({},o),a,!0);l._hotUpdate(h),delete a.state.value[u],a._s.delete(u)}if(process.env.NODE_ENV!=="production"&&ai&&c&&c.proxy&&!l){const u=c.proxy,h="_pStores"in u?u._pStores:u._pStores={};h[i]=d}return d}return s.$id=i,s}const Ea=ka("productIdentification",{state:()=>({productIdentificationPref:{primaryId:"",secondaryId:""},productIdentificationOptions:["productId","groupId","groupName","internalName","parentProductName","primaryProductCategoryName","productId","sku","title","SHOPIFY_PROD_SKU"]}),getters:{getProductIdentificationPref:e=>e.productIdentificationPref,getProductIdentificationOptions:e=>e.productIdentificationOptions},actions:{async setProductIdentificationPref(e,t,n){const i=JSON.parse(JSON.stringify(this.getProductIdentificationPref));if(!n){this.productIdentificationPref=i;return}i[e]=t;try{this.productIdentificationPref=await pn.setProductIdentificationPref(n,i)}catch(o){console.log("error",o)}},async getIdentificationPref(e){if(!e)return this.productIdentificationPref={primaryId:"productId",secondaryId:""};this.productIdentificationPref=await pn.getProductIdentificationPref(e)}}});class ve extends Error{}class Eu extends ve{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Su extends ve{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Iu extends ve{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class en extends ve{}class Sa extends ve{constructor(t){super(`Invalid unit ${t}`)}}class wt extends ve{}class Ht extends ve{constructor(){super("Zone is an abstract class")}}const x="numeric",Dt="short",ft="long",Yn={year:x,month:x,day:x},Ia={year:x,month:Dt,day:x},Tu={year:x,month:Dt,day:x,weekday:Dt},Ta={year:x,month:ft,day:x},Ca={year:x,month:ft,day:x,weekday:ft},$a={hour:x,minute:x},Oa={hour:x,minute:x,second:x},Aa={hour:x,minute:x,second:x,timeZoneName:Dt},Da={hour:x,minute:x,second:x,timeZoneName:ft},_a={hour:x,minute:x,hourCycle:"h23"},Ma={hour:x,minute:x,second:x,hourCycle:"h23"},Pa={hour:x,minute:x,second:x,hourCycle:"h23",timeZoneName:Dt},La={hour:x,minute:x,second:x,hourCycle:"h23",timeZoneName:ft},Na={year:x,month:x,day:x,hour:x,minute:x},za={year:x,month:x,day:x,hour:x,minute:x,second:x},Fa={year:x,month:Dt,day:x,hour:x,minute:x},Ra={year:x,month:Dt,day:x,hour:x,minute:x,second:x},Cu={year:x,month:Dt,day:x,weekday:Dt,hour:x,minute:x},Ba={year:x,month:ft,day:x,hour:x,minute:x,timeZoneName:Dt},Va={year:x,month:ft,day:x,hour:x,minute:x,second:x,timeZoneName:Dt},ja={year:x,month:ft,day:x,weekday:ft,hour:x,minute:x,timeZoneName:ft},Ha={year:x,month:ft,day:x,weekday:ft,hour:x,minute:x,second:x,timeZoneName:ft};class mn{get type(){throw new Ht}get name(){throw new Ht}get ianaName(){return this.name}get isUniversal(){throw new Ht}offsetName(t,n){throw new Ht}formatOffset(t,n){throw new Ht}offset(t){throw new Ht}equals(t){throw new Ht}get isValid(){throw new Ht}}let Si=null;class li extends mn{static get instance(){return Si===null&&(Si=new li),Si}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:i}){return Wa(t,n,i)}formatOffset(t,n){return sn(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let Hn={};function $u(e){return Hn[e]||(Hn[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Hn[e]}const Ou={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Au(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,r,s,a,l,c,d]=i;return[s,o,r,a,l,c,d]}function Du(e,t){const n=e.formatToParts(t),i=[];for(let o=0;o<n.length;o++){const{type:r,value:s}=n[o],a=Ou[r];r==="era"?i[a]=s:L(a)||(i[a]=parseInt(s,10))}return i}let Tn={};class Bt extends mn{static create(t){return Tn[t]||(Tn[t]=new Bt(t)),Tn[t]}static resetCache(){Tn={},Hn={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Bt.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:i}){return Wa(t,n,i,this.name)}formatOffset(t,n){return sn(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const i=$u(this.name);let[o,r,s,a,l,c,d]=i.formatToParts?Du(i,n):Au(i,n);a==="BC"&&(o=-Math.abs(o)+1);const h=di({year:o,month:r,day:s,hour:l===24?0:l,minute:c,second:d,millisecond:0});let g=+n;const k=g%1e3;return g-=k>=0?k:1e3+k,(h-g)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let zr={};function _u(e,t={}){const n=JSON.stringify([e,t]);let i=zr[n];return i||(i=new Intl.ListFormat(e,t),zr[n]=i),i}let ao={};function lo(e,t={}){const n=JSON.stringify([e,t]);let i=ao[n];return i||(i=new Intl.DateTimeFormat(e,t),ao[n]=i),i}let co={};function Mu(e,t={}){const n=JSON.stringify([e,t]);let i=co[n];return i||(i=new Intl.NumberFormat(e,t),co[n]=i),i}let uo={};function Pu(e,t={}){const{base:n,...i}=t,o=JSON.stringify([e,i]);let r=uo[o];return r||(r=new Intl.RelativeTimeFormat(e,t),uo[o]=r),r}let nn=null;function Lu(){return nn||(nn=new Intl.DateTimeFormat().resolvedOptions().locale,nn)}function Nu(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let i,o;try{i=lo(e).resolvedOptions(),o=e}catch{const l=e.substring(0,n);i=lo(l).resolvedOptions(),o=l}const{numberingSystem:r,calendar:s}=i;return[o,r,s]}}function zu(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Fu(e){const t=[];for(let n=1;n<=12;n++){const i=D.utc(2009,n,1);t.push(e(i))}return t}function Ru(e){const t=[];for(let n=1;n<=7;n++){const i=D.utc(2016,11,13+n);t.push(e(i))}return t}function Cn(e,t,n,i){const o=e.listingMode();return o==="error"?null:o==="en"?n(t):i(t)}function Bu(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class Vu{constructor(t,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:o,floor:r,...s}=i;if(!n||Object.keys(s).length>0){const a={useGrouping:!1,...i};i.padTo>0&&(a.minimumIntegerDigits=i.padTo),this.inf=Mu(t,a)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):zo(t,3);return J(n,this.padTo)}}}class ju{constructor(t,n,i){this.opts=i,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const s=-1*(t.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&Bt.create(a).valid?(o=a,this.dt=t):(o="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,o=t.zone.name):(o="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const r={...this.opts};r.timeZone=r.timeZone||o,this.dtf=lo(n,r)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Hu{constructor(t,n,i){this.opts={style:"long",...i},!n&&Ua()&&(this.rtf=Pu(t,i))}format(t,n){return this.rtf?this.rtf.format(t,n):sh(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class W{static fromOpts(t){return W.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,i,o=!1){const r=t||X.defaultLocale,s=r||(o?"en-US":Lu()),a=n||X.defaultNumberingSystem,l=i||X.defaultOutputCalendar;return new W(s,a,l,r)}static resetCache(){nn=null,ao={},co={},uo={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:i}={}){return W.create(t,n,i)}constructor(t,n,i,o){const[r,s,a]=Nu(t);this.locale=r,this.numberingSystem=n||s||null,this.outputCalendar=i||a||null,this.intl=zu(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Bu(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:W.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Cn(this,t,Ga,()=>{const i=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=Fu(r=>this.extract(r,i,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1){return Cn(this,t,Xa,()=>{const i=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=Ru(r=>this.extract(r,i,"weekday"))),this.weekdaysCache[o][t]})}meridiems(){return Cn(this,void 0,()=>Ja,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[D.utc(2016,11,13,9),D.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Cn(this,t,Qa,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[D.utc(-40,1,1),D.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[t]})}extract(t,n,i){const o=this.dtFormatter(t,n),r=o.formatToParts(),s=r.find(a=>a.type.toLowerCase()===i);return s?s.value:null}numberFormatter(t={}){return new Vu(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new ju(t,this.intl,n)}relFormatter(t={}){return new Hu(this.intl,this.isEnglish(),t)}listFormatter(t={}){return _u(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let Ii=null;class ct extends mn{static get utcInstance(){return Ii===null&&(Ii=new ct(0)),Ii}static instance(t){return t===0?ct.utcInstance:new ct(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new ct(ui(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${sn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${sn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return sn(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Uu extends mn{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function qt(e,t){if(L(e)||e===null)return t;if(e instanceof mn)return e;if(Wu(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?li.instance:n==="utc"||n==="gmt"?ct.utcInstance:ct.parseSpecifier(n)||Bt.create(e)}else return ce(e)?ct.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Uu(e)}let Fr=()=>Date.now(),Rr="system",Br=null,Vr=null,jr=null,Hr=60,Ur;class X{static get now(){return Fr}static set now(t){Fr=t}static set defaultZone(t){Rr=t}static get defaultZone(){return qt(Rr,li.instance)}static get defaultLocale(){return Br}static set defaultLocale(t){Br=t}static get defaultNumberingSystem(){return Vr}static set defaultNumberingSystem(t){Vr=t}static get defaultOutputCalendar(){return jr}static set defaultOutputCalendar(t){jr=t}static get twoDigitCutoffYear(){return Hr}static set twoDigitCutoffYear(t){Hr=t%100}static get throwOnInvalid(){return Ur}static set throwOnInvalid(t){Ur=t}static resetCaches(){W.resetCache(),Bt.resetCache()}}function L(e){return typeof e>"u"}function ce(e){return typeof e=="number"}function ci(e){return typeof e=="number"&&e%1===0}function Wu(e){return typeof e=="string"}function qu(e){return Object.prototype.toString.call(e)==="[object Date]"}function Ua(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Yu(e){return Array.isArray(e)?e:[e]}function Wr(e,t,n){if(e.length!==0)return e.reduce((i,o)=>{const r=[t(o),o];return i&&n(i[0],r[0])===i[0]?i:r},null)[1]}function Gu(e,t){return t.reduce((n,i)=>(n[i]=e[i],n),{})}function Pe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zt(e,t,n){return ci(e)&&e>=t&&e<=n}function Zu(e,t){return e-t*Math.floor(e/t)}function J(e,t=2){const n=e<0;let i;return n?i="-"+(""+-e).padStart(t,"0"):i=(""+e).padStart(t,"0"),i}function Wt(e){if(!(L(e)||e===null||e===""))return parseInt(e,10)}function te(e){if(!(L(e)||e===null||e===""))return parseFloat(e)}function No(e){if(!(L(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function zo(e,t,n=!1){const i=10**t;return(n?Math.trunc:Math.round)(e*i)/i}function gn(e){return e%4===0&&(e%100!==0||e%400===0)}function rn(e){return gn(e)?366:365}function Gn(e,t){const n=Zu(t-1,12)+1,i=e+(t-n)/12;return n===2?gn(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function di(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Zn(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,i=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||i===3?53:52}function ho(e){return e>99?e:e>X.twoDigitCutoffYear?1900+e:2e3+e}function Wa(e,t,n,i=null){const o=new Date(e),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(r.timeZone=i);const s={timeZoneName:t,...r},a=new Intl.DateTimeFormat(n,s).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function ui(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const i=parseInt(t,10)||0,o=n<0||Object.is(n,-0)?-i:i;return n*60+o}function qa(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new wt(`Invalid unit value ${e}`);return t}function Kn(e,t){const n={};for(const i in e)if(Pe(e,i)){const o=e[i];if(o==null)continue;n[t(i)]=qa(o)}return n}function sn(e,t){const n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${J(n,2)}:${J(i,2)}`;case"narrow":return`${o}${n}${i>0?`:${i}`:""}`;case"techie":return`${o}${J(n,2)}${J(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function hi(e){return Gu(e,["hour","minute","second","millisecond"])}const Ku=["January","February","March","April","May","June","July","August","September","October","November","December"],Ya=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Xu=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ga(e){switch(e){case"narrow":return[...Xu];case"short":return[...Ya];case"long":return[...Ku];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Za=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ka=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ju=["M","T","W","T","F","S","S"];function Xa(e){switch(e){case"narrow":return[...Ju];case"short":return[...Ka];case"long":return[...Za];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ja=["AM","PM"],Qu=["Before Christ","Anno Domini"],th=["BC","AD"],eh=["B","A"];function Qa(e){switch(e){case"narrow":return[...eh];case"short":return[...th];case"long":return[...Qu];default:return null}}function nh(e){return Ja[e.hour<12?0:1]}function ih(e,t){return Xa(t)[e.weekday-1]}function oh(e,t){return Ga(t)[e.month-1]}function rh(e,t){return Qa(t)[e.year<0?0:1]}function sh(e,t,n="always",i=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&r){const u=e==="days";switch(t){case 1:return u?"tomorrow":`next ${o[e][0]}`;case-1:return u?"yesterday":`last ${o[e][0]}`;case 0:return u?"today":`this ${o[e][0]}`}}const s=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,c=o[e],d=i?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return s?`${a} ${d} ago`:`in ${a} ${d}`}function qr(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}const ah={D:Yn,DD:Ia,DDD:Ta,DDDD:Ca,t:$a,tt:Oa,ttt:Aa,tttt:Da,T:_a,TT:Ma,TTT:Pa,TTTT:La,f:Na,ff:Fa,fff:Ba,ffff:ja,F:za,FF:Ra,FFF:Va,FFFF:Ha};class st{static create(t,n={}){return new st(t,n)}static parseFormat(t){let n=null,i="",o=!1;const r=[];for(let s=0;s<t.length;s++){const a=t.charAt(s);a==="'"?(i.length>0&&r.push({literal:o||/^\s+$/.test(i),val:i}),n=null,i="",o=!o):o||a===n?i+=a:(i.length>0&&r.push({literal:/^\s+$/.test(i),val:i}),i=a,n=a)}return i.length>0&&r.push({literal:o||/^\s+$/.test(i),val:i}),r}static macroTokenToFormatOpts(t){return ah[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return J(t,n);const i={...this.opts};return n>0&&(i.padTo=n),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const i=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(g,k)=>this.loc.extract(t,g,k),s=g=>t.isOffsetFixed&&t.offset===0&&g.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,g.format):"",a=()=>i?nh(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(g,k)=>i?oh(t,g):r(k?{month:g}:{month:g,day:"numeric"},"month"),c=(g,k)=>i?ih(t,g):r(k?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),d=g=>{const k=st.macroTokenToFormatOpts(g);return k?this.formatWithSystemDefault(t,k):g},u=g=>i?rh(t,g):r({era:g},"era"),h=g=>{switch(g){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return o?r({day:"numeric"},"day"):this.num(t.day);case"dd":return o?r({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?r({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?r({month:"numeric"},"month"):this.num(t.month);case"MM":return o?r({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?r({year:"numeric"},"year"):this.num(t.year);case"yy":return o?r({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?r({year:"numeric"},"year"):this.num(t.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(g)}};return qr(st.parseFormat(n),h)}formatDurationFromString(t,n){const i=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>c=>{const d=i(c);return d?this.num(l.get(d),c.length):c},r=st.parseFormat(n),s=r.reduce((l,{literal:c,val:d})=>c?l:l.concat(d),[]),a=t.shiftTo(...s.map(i).filter(l=>l));return qr(r,o(a))}}class $t{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const tl=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ze(...e){const t=e.reduce((n,i)=>n+i.source,"");return RegExp(`^${t}$`)}function Fe(...e){return t=>e.reduce(([n,i,o],r)=>{const[s,a,l]=r(t,o);return[{...n,...s},a||i,l]},[{},null,1]).slice(0,2)}function Re(e,...t){if(e==null)return[null,null];for(const[n,i]of t){const o=n.exec(e);if(o)return i(o)}return[null,null]}function el(...e){return(t,n)=>{const i={};let o;for(o=0;o<e.length;o++)i[e[o]]=Wt(t[n+o]);return[i,null,n+o]}}const nl=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,lh=`(?:${nl.source}?(?:\\[(${tl.source})\\])?)?`,Fo=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,il=RegExp(`${Fo.source}${lh}`),Ro=RegExp(`(?:T${il.source})?`),ch=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,dh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,uh=/(\d{4})-?(\d{3})/,hh=el("weekYear","weekNumber","weekDay"),fh=el("year","ordinal"),ph=/(\d{4})-(\d\d)-(\d\d)/,ol=RegExp(`${Fo.source} ?(?:${nl.source}|(${tl.source}))?`),mh=RegExp(`(?: ${ol.source})?`);function _e(e,t,n){const i=e[t];return L(i)?n:Wt(i)}function gh(e,t){return[{year:_e(e,t),month:_e(e,t+1,1),day:_e(e,t+2,1)},null,t+3]}function Be(e,t){return[{hours:_e(e,t,0),minutes:_e(e,t+1,0),seconds:_e(e,t+2,0),milliseconds:No(e[t+3])},null,t+4]}function bn(e,t){const n=!e[t]&&!e[t+1],i=ui(e[t+1],e[t+2]),o=n?null:ct.instance(i);return[{},o,t+3]}function vn(e,t){const n=e[t]?Bt.create(e[t]):null;return[{},n,t+1]}const bh=RegExp(`^T?${Fo.source}$`),vh=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function yh(e){const[t,n,i,o,r,s,a,l,c]=e,d=t[0]==="-",u=l&&l[0]==="-",h=(g,k=!1)=>g!==void 0&&(k||g&&d)?-g:g;return[{years:h(te(n)),months:h(te(i)),weeks:h(te(o)),days:h(te(r)),hours:h(te(s)),minutes:h(te(a)),seconds:h(te(l),l==="-0"),milliseconds:h(No(c),u)}]}const wh={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Bo(e,t,n,i,o,r,s){const a={year:t.length===2?ho(Wt(t)):Wt(t),month:Ya.indexOf(n)+1,day:Wt(i),hour:Wt(o),minute:Wt(r)};return s&&(a.second=Wt(s)),e&&(a.weekday=e.length>3?Za.indexOf(e)+1:Ka.indexOf(e)+1),a}const xh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function kh(e){const[,t,n,i,o,r,s,a,l,c,d,u]=e,h=Bo(t,o,i,n,r,s,a);let g;return l?g=wh[l]:c?g=0:g=ui(d,u),[h,new ct(g)]}function Eh(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Sh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ih=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Th=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Yr(e){const[,t,n,i,o,r,s,a]=e;return[Bo(t,o,i,n,r,s,a),ct.utcInstance]}function Ch(e){const[,t,n,i,o,r,s,a]=e;return[Bo(t,a,n,i,o,r,s),ct.utcInstance]}const $h=ze(ch,Ro),Oh=ze(dh,Ro),Ah=ze(uh,Ro),Dh=ze(il),rl=Fe(gh,Be,bn,vn),_h=Fe(hh,Be,bn,vn),Mh=Fe(fh,Be,bn,vn),Ph=Fe(Be,bn,vn);function Lh(e){return Re(e,[$h,rl],[Oh,_h],[Ah,Mh],[Dh,Ph])}function Nh(e){return Re(Eh(e),[xh,kh])}function zh(e){return Re(e,[Sh,Yr],[Ih,Yr],[Th,Ch])}function Fh(e){return Re(e,[vh,yh])}const Rh=Fe(Be);function Bh(e){return Re(e,[bh,Rh])}const Vh=ze(ph,mh),jh=ze(ol),Hh=Fe(Be,bn,vn);function Uh(e){return Re(e,[Vh,rl],[jh,Hh])}const Gr="Invalid Duration",sl={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Wh={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...sl},vt=146097/400,Ie=146097/4800,qh={years:{quarters:4,months:12,weeks:vt/7,days:vt,hours:vt*24,minutes:vt*24*60,seconds:vt*24*60*60,milliseconds:vt*24*60*60*1e3},quarters:{months:3,weeks:vt/28,days:vt/4,hours:vt*24/4,minutes:vt*24*60/4,seconds:vt*24*60*60/4,milliseconds:vt*24*60*60*1e3/4},months:{weeks:Ie/7,days:Ie,hours:Ie*24,minutes:Ie*24*60,seconds:Ie*24*60*60,milliseconds:Ie*24*60*60*1e3},...sl},se=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Yh=se.slice(0).reverse();function Ut(e,t,n=!1){const i={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new R(i)}function al(e,t){let n=t.milliseconds??0;for(const i of Yh.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function Zr(e,t){const n=al(e,t)<0?-1:1;se.reduceRight((i,o)=>{if(L(t[o]))return i;if(i){const r=t[i]*n,s=e[o][i],a=Math.floor(r/s);t[o]+=a*n,t[i]-=a*s*n}return o},null),se.reduce((i,o)=>{if(L(t[o]))return i;if(i){const r=t[i]%1;t[i]-=r,t[o]+=r*e[i][o]}return o},null)}function Gh(e){const t={};for(const[n,i]of Object.entries(e))i!==0&&(t[n]=i);return t}class R{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let i=n?qh:Wh;t.matrix&&(i=t.matrix),this.values=t.values,this.loc=t.loc||W.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(t,n){return R.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new wt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new R({values:Kn(t,R.normalizeUnit),loc:W.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(ce(t))return R.fromMillis(t);if(R.isDuration(t))return t;if(typeof t=="object")return R.fromObject(t);throw new wt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[i]=Fh(t);return i?R.fromObject(i,n):R.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[i]=Bh(t);return i?R.fromObject(i,n):R.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new wt("need to specify a reason the Duration is invalid");const i=t instanceof $t?t:new $t(t,n);if(X.throwOnInvalid)throw new Iu(i);return new R({invalid:i})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new Sa(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?st.create(this.loc,i).formatDurationFromString(this,t):Gr}toHuman(t={}){if(!this.isValid)return Gr;const n=se.map(i=>{const o=this.values[i];return L(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=zo(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},D.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?al(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=R.fromDurationLike(t),i={};for(const o of se)(Pe(n.values,o)||Pe(this.values,o))&&(i[o]=n.get(o)+this.get(o));return Ut(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const n=R.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=qa(t(this.values[i],i));return Ut(this,{values:n},!0)}get(t){return this[R.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...Kn(t,R.normalizeUnit)};return Ut(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:i,matrix:o}={}){const s={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:o,conversionAccuracy:i};return Ut(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Zr(this.matrix,t),Ut(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=Gh(this.normalize().shiftToAll().toObject());return Ut(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>R.normalizeUnit(s));const n={},i={},o=this.toObject();let r;for(const s of se)if(t.indexOf(s)>=0){r=s;let a=0;for(const c in i)a+=this.matrix[c][s]*i[c],i[c]=0;ce(o[s])&&(a+=o[s]);const l=Math.trunc(a);n[s]=l,i[s]=(a*1e3-l*1e3)/1e3}else ce(o[s])&&(i[s]=o[s]);for(const s in i)i[s]!==0&&(n[r]+=s===r?i[s]:i[s]/this.matrix[r][s]);return Zr(this.matrix,n),Ut(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ut(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(i,o){return i===void 0||i===0?o===void 0||o===0:i===o}for(const i of se)if(!n(this.values[i],t.values[i]))return!1;return!0}}const Te="Invalid Interval";function Zh(e,t){return!e||!e.isValid?G.invalid("missing or invalid start"):!t||!t.isValid?G.invalid("missing or invalid end"):t<e?G.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class G{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new wt("need to specify a reason the Interval is invalid");const i=t instanceof $t?t:new $t(t,n);if(X.throwOnInvalid)throw new Su(i);return new G({invalid:i})}static fromDateTimes(t,n){const i=Qe(t),o=Qe(n),r=Zh(i,o);return r??new G({start:i,end:o})}static after(t,n){const i=R.fromDurationLike(n),o=Qe(t);return G.fromDateTimes(o,o.plus(i))}static before(t,n){const i=R.fromDurationLike(n),o=Qe(t);return G.fromDateTimes(o.minus(i),o)}static fromISO(t,n){const[i,o]=(t||"").split("/",2);if(i&&o){let r,s;try{r=D.fromISO(i,n),s=r.isValid}catch{s=!1}let a,l;try{a=D.fromISO(o,n),l=a.isValid}catch{l=!1}if(s&&l)return G.fromDateTimes(r,a);if(s){const c=R.fromISO(o,n);if(c.isValid)return G.after(r,c)}else if(l){const c=R.fromISO(i,n);if(c.isValid)return G.before(a,c)}}return G.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),i=this.end.startOf(t);return Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?G.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Qe).filter(s=>this.contains(s)).sort(),i=[];let{s:o}=this,r=0;for(;o<this.e;){const s=n[r]||this.e,a=+s>+this.e?this.e:s;i.push(G.fromDateTimes(o,a)),o=a,r+=1}return i}splitBy(t){const n=R.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,o=1,r;const s=[];for(;i<this.e;){const a=this.start.plus(n.mapUnits(l=>l*o));r=+a>+this.e?this.e:a,s.push(G.fromDateTimes(i,r)),i=r,o+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return n>=i?null:G.fromDateTimes(n,i)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return G.fromDateTimes(n,i)}static merge(t){const[n,i]=t.sort((o,r)=>o.s-r.s).reduce(([o,r],s)=>r?r.overlaps(s)||r.abutsStart(s)?[o,r.union(s)]:[o.concat([r]),s]:[o,s],[[],null]);return i&&n.push(i),n}static xor(t){let n=null,i=0;const o=[],r=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...r),a=s.sort((l,c)=>l.time-c.time);for(const l of a)i+=l.type==="s"?1:-1,i===1?n=l.time:(n&&+n!=+l.time&&o.push(G.fromDateTimes(n,l.time)),n=null);return G.merge(o)}difference(...t){return G.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Te}toLocaleString(t=Yn,n={}){return this.isValid?st.create(this.s.loc.clone(n),t).formatInterval(this):Te}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Te}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Te}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Te}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Te}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):R.invalid(this.invalidReason)}mapEndpoints(t){return G.fromDateTimes(t(this.s),t(this.e))}}class $n{static hasDST(t=X.defaultZone){const n=D.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Bt.isValidZone(t)}static normalizeZone(t){return qt(t,X.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:i=null,locObj:o=null,outputCalendar:r="gregory"}={}){return(o||W.create(n,i,r)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:i=null,locObj:o=null,outputCalendar:r="gregory"}={}){return(o||W.create(n,i,r)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:i=null,locObj:o=null}={}){return(o||W.create(n,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:i=null,locObj:o=null}={}){return(o||W.create(n,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return W.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return W.create(n,null,"gregory").eras(t)}static features(){return{relative:Ua()}}}function Kr(e,t){const n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(R.fromMillis(i).as("days"))}function Kh(e,t,n){const i=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const d=Kr(l,c);return(d-d%7)/7}],["days",Kr]],o={},r=e;let s,a;for(const[l,c]of i)n.indexOf(l)>=0&&(s=l,o[l]=c(e,t),a=r.plus(o),a>t?(o[l]--,e=r.plus(o),e>t&&(a=e,o[l]--,e=r.plus(o))):e=a);return[e,o,a,s]}function Xh(e,t,n,i){let[o,r,s,a]=Kh(e,t,n);const l=t-o,c=n.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);c.length===0&&(s<t&&(s=o.plus({[a]:1})),s!==o&&(r[a]=(r[a]||0)+l/(s-o)));const d=R.fromObject(r,i);return c.length>0?R.fromMillis(l,i).shiftTo(...c).plus(d):d}const Vo={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Xr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Jh=Vo.hanidec.replace(/[\[|\]]/g,"").split("");function Qh(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(e[n].search(Vo.hanidec)!==-1)t+=Jh.indexOf(e[n]);else for(const o in Xr){const[r,s]=Xr[o];i>=r&&i<=s&&(t+=i-r)}}return parseInt(t,10)}else return t}function Et({numberingSystem:e},t=""){return new RegExp(`${Vo[e||"latn"]}${t}`)}const tf="missing Intl.DateTimeFormat.formatToParts support";function B(e,t=n=>n){return{regex:e,deser:([n])=>t(Qh(n))}}const ef=String.fromCharCode(160),ll=`[ ${ef}]`,cl=new RegExp(ll,"g");function nf(e){return e.replace(/\./g,"\\.?").replace(cl,ll)}function Jr(e){return e.replace(/\./g,"").replace(cl," ").toLowerCase()}function St(e,t){return e===null?null:{regex:RegExp(e.map(nf).join("|")),deser:([n])=>e.findIndex(i=>Jr(n)===Jr(i))+t}}function Qr(e,t){return{regex:e,deser:([,n,i])=>ui(n,i),groups:t}}function On(e){return{regex:e,deser:([t])=>t}}function of(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function rf(e,t){const n=Et(t),i=Et(t,"{2}"),o=Et(t,"{3}"),r=Et(t,"{4}"),s=Et(t,"{6}"),a=Et(t,"{1,2}"),l=Et(t,"{1,3}"),c=Et(t,"{1,6}"),d=Et(t,"{1,9}"),u=Et(t,"{2,4}"),h=Et(t,"{4,6}"),g=C=>({regex:RegExp(of(C.val)),deser:([$])=>$,literal:!0}),b=(C=>{if(e.literal)return g(C);switch(C.val){case"G":return St(t.eras("short"),0);case"GG":return St(t.eras("long"),0);case"y":return B(c);case"yy":return B(u,ho);case"yyyy":return B(r);case"yyyyy":return B(h);case"yyyyyy":return B(s);case"M":return B(a);case"MM":return B(i);case"MMM":return St(t.months("short",!0),1);case"MMMM":return St(t.months("long",!0),1);case"L":return B(a);case"LL":return B(i);case"LLL":return St(t.months("short",!1),1);case"LLLL":return St(t.months("long",!1),1);case"d":return B(a);case"dd":return B(i);case"o":return B(l);case"ooo":return B(o);case"HH":return B(i);case"H":return B(a);case"hh":return B(i);case"h":return B(a);case"mm":return B(i);case"m":return B(a);case"q":return B(a);case"qq":return B(i);case"s":return B(a);case"ss":return B(i);case"S":return B(l);case"SSS":return B(o);case"u":return On(d);case"uu":return On(a);case"uuu":return B(n);case"a":return St(t.meridiems(),0);case"kkkk":return B(r);case"kk":return B(u,ho);case"W":return B(a);case"WW":return B(i);case"E":case"c":return B(n);case"EEE":return St(t.weekdays("short",!1),1);case"EEEE":return St(t.weekdays("long",!1),1);case"ccc":return St(t.weekdays("short",!0),1);case"cccc":return St(t.weekdays("long",!0),1);case"Z":case"ZZ":return Qr(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return Qr(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return On(/[a-z_+-/]{1,256}?/i);case" ":return On(/[^\S\n\r]/);default:return g(C)}})(e)||{invalidReason:tf};return b.token=e,b}const sf={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function af(e,t,n){const{type:i,value:o}=e;if(i==="literal"){const l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}const r=t[i];let s=i;i==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let a=sf[s];if(typeof a=="object"&&(a=a[r]),a)return{literal:!1,val:a}}function lf(e){return[`^${e.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,e]}function cf(e,t,n){const i=e.match(t);if(i){const o={};let r=1;for(const s in n)if(Pe(n,s)){const a=n[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(o[a.token.val[0]]=a.deser(i.slice(r,r+l))),r+=l}return[i,o]}else return[i,{}]}function df(e){const t=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return L(e.z)||(n=Bt.create(e.z)),L(e.Z)||(n||(n=new ct(e.Z)),i=e.Z),L(e.q)||(e.M=(e.q-1)*3+1),L(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),L(e.u)||(e.S=No(e.u)),[Object.keys(e).reduce((r,s)=>{const a=t(s);return a&&(r[a]=e[s]),r},{}),n,i]}let Ti=null;function uf(){return Ti||(Ti=D.fromMillis(1555555555555)),Ti}function hf(e,t){if(e.literal)return e;const n=st.macroTokenToFormatOpts(e.val),i=hl(n,t);return i==null||i.includes(void 0)?e:i}function dl(e,t){return Array.prototype.concat(...e.map(n=>hf(n,t)))}function ul(e,t,n){const i=dl(st.parseFormat(n),e),o=i.map(s=>rf(s,e)),r=o.find(s=>s.invalidReason);if(r)return{input:t,tokens:i,invalidReason:r.invalidReason};{const[s,a]=lf(o),l=RegExp(s,"i"),[c,d]=cf(t,l,a),[u,h,g]=d?df(d):[null,null,void 0];if(Pe(d,"a")&&Pe(d,"H"))throw new en("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:i,regex:l,rawMatches:c,matches:d,result:u,zone:h,specificOffset:g}}}function ff(e,t,n){const{result:i,zone:o,specificOffset:r,invalidReason:s}=ul(e,t,n);return[i,o,r,s]}function hl(e,t){if(!e)return null;const i=st.create(t,e).dtFormatter(uf()),o=i.formatToParts(),r=i.resolvedOptions();return o.map(s=>af(s,e,r))}const fl=[0,31,59,90,120,151,181,212,243,273,304,334],pl=[0,31,60,91,121,152,182,213,244,274,305,335];function xt(e,t){return new $t("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ml(e,t,n){const i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const o=i.getUTCDay();return o===0?7:o}function gl(e,t,n){return n+(gn(e)?pl:fl)[t-1]}function bl(e,t){const n=gn(e)?pl:fl,i=n.findIndex(r=>r<t),o=t-n[i];return{month:i+1,day:o}}function fo(e){const{year:t,month:n,day:i}=e,o=gl(t,n,i),r=ml(t,n,i);let s=Math.floor((o-r+10)/7),a;return s<1?(a=t-1,s=Zn(a)):s>Zn(t)?(a=t+1,s=1):a=t,{weekYear:a,weekNumber:s,weekday:r,...hi(e)}}function ts(e){const{weekYear:t,weekNumber:n,weekday:i}=e,o=ml(t,1,4),r=rn(t);let s=n*7+i-o-3,a;s<1?(a=t-1,s+=rn(a)):s>r?(a=t+1,s-=rn(t)):a=t;const{month:l,day:c}=bl(a,s);return{year:a,month:l,day:c,...hi(e)}}function Ci(e){const{year:t,month:n,day:i}=e,o=gl(t,n,i);return{year:t,ordinal:o,...hi(e)}}function es(e){const{year:t,ordinal:n}=e,{month:i,day:o}=bl(t,n);return{year:t,month:i,day:o,...hi(e)}}function pf(e){const t=ci(e.weekYear),n=zt(e.weekNumber,1,Zn(e.weekYear)),i=zt(e.weekday,1,7);return t?n?i?!1:xt("weekday",e.weekday):xt("week",e.week):xt("weekYear",e.weekYear)}function mf(e){const t=ci(e.year),n=zt(e.ordinal,1,rn(e.year));return t?n?!1:xt("ordinal",e.ordinal):xt("year",e.year)}function vl(e){const t=ci(e.year),n=zt(e.month,1,12),i=zt(e.day,1,Gn(e.year,e.month));return t?n?i?!1:xt("day",e.day):xt("month",e.month):xt("year",e.year)}function yl(e){const{hour:t,minute:n,second:i,millisecond:o}=e,r=zt(t,0,23)||t===24&&n===0&&i===0&&o===0,s=zt(n,0,59),a=zt(i,0,59),l=zt(o,0,999);return r?s?a?l?!1:xt("millisecond",o):xt("second",i):xt("minute",n):xt("hour",t)}const $i="Invalid DateTime",ns=864e13;function An(e){return new $t("unsupported zone",`the zone "${e.name}" is not supported`)}function Oi(e){return e.weekData===null&&(e.weekData=fo(e.c)),e.weekData}function ee(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new D({...n,...t,old:n})}function wl(e,t,n){let i=e-t*60*1e3;const o=n.offset(i);if(t===o)return[i,t];i-=(o-t)*60*1e3;const r=n.offset(i);return o===r?[i,o]:[e-Math.min(o,r)*60*1e3,Math.max(o,r)]}function Dn(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Un(e,t,n){return wl(di(e),t,n)}function is(e,t){const n=e.o,i=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,r={...e.c,year:i,month:o,day:Math.min(e.c.day,Gn(i,o))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=R.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=di(r);let[l,c]=wl(a,n,e.zone);return s!==0&&(l+=s,c=e.zone.offset(l)),{ts:l,o:c}}function Je(e,t,n,i,o,r){const{setZone:s,zone:a}=n;if(e&&Object.keys(e).length!==0||t){const l=t||a,c=D.fromObject(e,{...n,zone:l,specificOffset:r});return s?c:c.setZone(a)}else return D.invalid(new $t("unparsable",`the input "${o}" can't be parsed as ${i}`))}function _n(e,t,n=!0){return e.isValid?st.create(W.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Ai(e,t){const n=e.c.year>9999||e.c.year<0;let i="";return n&&e.c.year>=0&&(i+="+"),i+=J(e.c.year,n?6:4),t?(i+="-",i+=J(e.c.month),i+="-",i+=J(e.c.day)):(i+=J(e.c.month),i+=J(e.c.day)),i}function os(e,t,n,i,o,r){let s=J(e.c.hour);return t?(s+=":",s+=J(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(s+=":")):s+=J(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(s+=J(e.c.second),(e.c.millisecond!==0||!i)&&(s+=".",s+=J(e.c.millisecond,3))),o&&(e.isOffsetFixed&&e.offset===0&&!r?s+="Z":e.o<0?(s+="-",s+=J(Math.trunc(-e.o/60)),s+=":",s+=J(Math.trunc(-e.o%60))):(s+="+",s+=J(Math.trunc(e.o/60)),s+=":",s+=J(Math.trunc(e.o%60)))),r&&(s+="["+e.zone.ianaName+"]"),s}const xl={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},gf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},bf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},kl=["year","month","day","hour","minute","second","millisecond"],vf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],yf=["year","ordinal","hour","minute","second","millisecond"];function rs(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Sa(e);return t}function ss(e,t){const n=qt(t.zone,X.defaultZone),i=W.fromObject(t),o=X.now();let r,s;if(L(e.year))r=o;else{for(const c of kl)L(e[c])&&(e[c]=xl[c]);const a=vl(e)||yl(e);if(a)return D.invalid(a);const l=n.offset(o);[r,s]=Un(e,l,n)}return new D({ts:r,zone:n,loc:i,o:s})}function as(e,t,n){const i=L(n.round)?!0:n.round,o=(s,a)=>(s=zo(s,i||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(s,a)),r=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return o(r(n.unit),n.unit);for(const s of n.units){const a=r(s);if(Math.abs(a)>=1)return o(a,s)}return o(e>t?-0:0,n.units[n.units.length-1])}function ls(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class D{constructor(t){const n=t.zone||X.defaultZone;let i=t.invalid||(Number.isNaN(t.ts)?new $t("invalid input"):null)||(n.isValid?null:An(n));this.ts=L(t.ts)?X.now():t.ts;let o=null,r=null;if(!i)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[o,r]=[t.old.c,t.old.o];else{const a=n.offset(this.ts);o=Dn(this.ts,a),i=Number.isNaN(o.year)?new $t("invalid input"):null,o=i?null:o,r=i?null:a}this._zone=n,this.loc=t.loc||W.create(),this.invalid=i,this.weekData=null,this.c=o,this.o=r,this.isLuxonDateTime=!0}static now(){return new D({})}static local(){const[t,n]=ls(arguments),[i,o,r,s,a,l,c]=n;return ss({year:i,month:o,day:r,hour:s,minute:a,second:l,millisecond:c},t)}static utc(){const[t,n]=ls(arguments),[i,o,r,s,a,l,c]=n;return t.zone=ct.utcInstance,ss({year:i,month:o,day:r,hour:s,minute:a,second:l,millisecond:c},t)}static fromJSDate(t,n={}){const i=qu(t)?t.valueOf():NaN;if(Number.isNaN(i))return D.invalid("invalid input");const o=qt(n.zone,X.defaultZone);return o.isValid?new D({ts:i,zone:o,loc:W.fromObject(n)}):D.invalid(An(o))}static fromMillis(t,n={}){if(ce(t))return t<-ns||t>ns?D.invalid("Timestamp out of range"):new D({ts:t,zone:qt(n.zone,X.defaultZone),loc:W.fromObject(n)});throw new wt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(ce(t))return new D({ts:t*1e3,zone:qt(n.zone,X.defaultZone),loc:W.fromObject(n)});throw new wt("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const i=qt(n.zone,X.defaultZone);if(!i.isValid)return D.invalid(An(i));const o=X.now(),r=L(n.specificOffset)?i.offset(o):n.specificOffset,s=Kn(t,rs),a=!L(s.ordinal),l=!L(s.year),c=!L(s.month)||!L(s.day),d=l||c,u=s.weekYear||s.weekNumber,h=W.fromObject(n);if((d||a)&&u)throw new en("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new en("Can't mix ordinal dates with month/day");const g=u||s.weekday&&!d;let k,b,C=Dn(o,r);g?(k=vf,b=gf,C=fo(C)):a?(k=yf,b=bf,C=Ci(C)):(k=kl,b=xl);let $=!1;for(const O of k){const E=s[O];L(E)?$?s[O]=b[O]:s[O]=C[O]:$=!0}const _=g?pf(s):a?mf(s):vl(s),z=_||yl(s);if(z)return D.invalid(z);const P=g?ts(s):a?es(s):s,[F,I]=Un(P,r,i),v=new D({ts:F,zone:i,o:I,loc:h});return s.weekday&&d&&t.weekday!==v.weekday?D.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${v.toISO()}`):v}static fromISO(t,n={}){const[i,o]=Lh(t);return Je(i,o,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[i,o]=Nh(t);return Je(i,o,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[i,o]=zh(t);return Je(i,o,n,"HTTP",n)}static fromFormat(t,n,i={}){if(L(t)||L(n))throw new wt("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:r=null}=i,s=W.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0}),[a,l,c,d]=ff(s,t,n);return d?D.invalid(d):Je(a,l,i,`format ${n}`,t,c)}static fromString(t,n,i={}){return D.fromFormat(t,n,i)}static fromSQL(t,n={}){const[i,o]=Uh(t);return Je(i,o,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new wt("need to specify a reason the DateTime is invalid");const i=t instanceof $t?t:new $t(t,n);if(X.throwOnInvalid)throw new Eu(i);return new D({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const i=hl(t,W.fromObject(n));return i?i.map(o=>o?o.val:null).join(""):null}static expandFormat(t,n={}){return dl(st.parseFormat(t),W.fromObject(n)).map(o=>o.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Oi(this).weekYear:NaN}get weekNumber(){return this.isValid?Oi(this).weekNumber:NaN}get weekday(){return this.isValid?Oi(this).weekday:NaN}get ordinal(){return this.isValid?Ci(this.c).ordinal:NaN}get monthShort(){return this.isValid?$n.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?$n.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?$n.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?$n.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,i=di(this.c),o=this.zone.offset(i-t),r=this.zone.offset(i+t),s=this.zone.offset(i-o*n),a=this.zone.offset(i-r*n);if(s===a)return[this];const l=i-s*n,c=i-a*n,d=Dn(l,s),u=Dn(c,a);return d.hour===u.hour&&d.minute===u.minute&&d.second===u.second&&d.millisecond===u.millisecond?[ee(this,{ts:l}),ee(this,{ts:c})]:[this]}get isInLeapYear(){return gn(this.year)}get daysInMonth(){return Gn(this.year,this.month)}get daysInYear(){return this.isValid?rn(this.year):NaN}get weeksInWeekYear(){return this.isValid?Zn(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:i,calendar:o}=st.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:o}}toUTC(t=0,n={}){return this.setZone(ct.instance(t),n)}toLocal(){return this.setZone(X.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(t=qt(t,X.defaultZone),t.equals(this.zone))return this;if(t.isValid){let o=this.ts;if(n||i){const r=t.offset(this.ts),s=this.toObject();[o]=Un(s,r,t)}return ee(this,{ts:o,zone:t})}else return D.invalid(An(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:i}={}){const o=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:i});return ee(this,{loc:o})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=Kn(t,rs),i=!L(n.weekYear)||!L(n.weekNumber)||!L(n.weekday),o=!L(n.ordinal),r=!L(n.year),s=!L(n.month)||!L(n.day),a=r||s,l=n.weekYear||n.weekNumber;if((a||o)&&l)throw new en("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new en("Can't mix ordinal dates with month/day");let c;i?c=ts({...fo(this.c),...n}):L(n.ordinal)?(c={...this.toObject(),...n},L(n.day)&&(c.day=Math.min(Gn(c.year,c.month),c.day))):c=es({...Ci(this.c),...n});const[d,u]=Un(c,this.o,this.zone);return ee(this,{ts:d,o:u})}plus(t){if(!this.isValid)return this;const n=R.fromDurationLike(t);return ee(this,is(this,n))}minus(t){if(!this.isValid)return this;const n=R.fromDurationLike(t).negate();return ee(this,is(this,n))}startOf(t){if(!this.isValid)return this;const n={},i=R.normalizeUnit(t);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(i==="weeks"&&(n.weekday=1),i==="quarters"){const o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?st.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):$i}toLocaleString(t=Yn,n={}){return this.isValid?st.create(this.loc.clone(n),t).formatDateTime(this):$i}toLocaleParts(t={}){return this.isValid?st.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:i=!1,includeOffset:o=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const s=t==="extended";let a=Ai(this,s);return a+="T",a+=os(this,s,n,i,o,r),a}toISODate({format:t="extended"}={}){return this.isValid?Ai(this,t==="extended"):null}toISOWeekDate(){return _n(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:i=!0,includePrefix:o=!1,extendedZone:r=!1,format:s="extended"}={}){return this.isValid?(o?"T":"")+os(this,s==="extended",n,t,i,r):null}toRFC2822(){return _n(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return _n(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ai(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:i=!0}={}){let o="HH:mm:ss.SSS";return(n||t)&&(i&&(o+=" "),n?o+="z":t&&(o+="ZZ")),_n(this,o,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():$i}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",i={}){if(!this.isValid||!t.isValid)return R.invalid("created by diffing an invalid DateTime");const o={locale:this.locale,numberingSystem:this.numberingSystem,...i},r=Yu(n).map(R.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,l=s?t:this,c=Xh(a,l,r,o);return s?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(D.now(),t,n)}until(t){return this.isValid?G.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(n)<=i&&i<=o.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||D.fromObject({},{zone:this.zone}),i=t.padding?this<n?-t.padding:t.padding:0;let o=["years","months","days","hours","minutes","seconds"],r=t.unit;return Array.isArray(t.unit)&&(o=t.unit,r=void 0),as(n,this.plus(i),{...t,numeric:"always",units:o,unit:r})}toRelativeCalendar(t={}){return this.isValid?as(t.base||D.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(D.isDateTime))throw new wt("min requires all arguments be DateTimes");return Wr(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(D.isDateTime))throw new wt("max requires all arguments be DateTimes");return Wr(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,i={}){const{locale:o=null,numberingSystem:r=null}=i,s=W.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0});return ul(s,t,n)}static fromStringExplain(t,n,i={}){return D.fromFormatExplain(t,n,i)}static get DATE_SHORT(){return Yn}static get DATE_MED(){return Ia}static get DATE_MED_WITH_WEEKDAY(){return Tu}static get DATE_FULL(){return Ta}static get DATE_HUGE(){return Ca}static get TIME_SIMPLE(){return $a}static get TIME_WITH_SECONDS(){return Oa}static get TIME_WITH_SHORT_OFFSET(){return Aa}static get TIME_WITH_LONG_OFFSET(){return Da}static get TIME_24_SIMPLE(){return _a}static get TIME_24_WITH_SECONDS(){return Ma}static get TIME_24_WITH_SHORT_OFFSET(){return Pa}static get TIME_24_WITH_LONG_OFFSET(){return La}static get DATETIME_SHORT(){return Na}static get DATETIME_SHORT_WITH_SECONDS(){return za}static get DATETIME_MED(){return Fa}static get DATETIME_MED_WITH_SECONDS(){return Ra}static get DATETIME_MED_WITH_WEEKDAY(){return Cu}static get DATETIME_FULL(){return Ba}static get DATETIME_FULL_WITH_SECONDS(){return Va}static get DATETIME_HUGE(){return ja}static get DATETIME_HUGE_WITH_SECONDS(){return Ha}}function Qe(e){if(D.isDateTime(e))return e;if(e&&e.valueOf&&ce(e.valueOf()))return D.fromJSDate(e);if(e&&typeof e=="object")return D.fromObject(e);throw new wt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const El=ka("userAuth",{state:()=>({token:{value:"",expiration:void 0},oms:""}),getters:{getToken:e=>e.token,getOms:e=>e.oms,isAuthenticated:e=>{let t=!1;if(e.token.expiration){const n=D.now().toMillis();t=e.token.expiration<n}return e.token.value&&!t}},persist:!0});/**
|
|
13
|
+
* @license
|
|
14
|
+
* Copyright 2017 Google LLC
|
|
15
|
+
*
|
|
16
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
17
|
+
* you may not use this file except in compliance with the License.
|
|
18
|
+
* You may obtain a copy of the License at
|
|
19
|
+
*
|
|
20
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
* See the License for the specific language governing permissions and
|
|
26
|
+
* limitations under the License.
|
|
27
|
+
*//**
|
|
28
|
+
* @license
|
|
29
|
+
* Copyright 2017 Google LLC
|
|
30
|
+
*
|
|
31
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
32
|
+
* you may not use this file except in compliance with the License.
|
|
33
|
+
* You may obtain a copy of the License at
|
|
34
|
+
*
|
|
35
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
36
|
+
*
|
|
37
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
38
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
39
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
40
|
+
* See the License for the specific language governing permissions and
|
|
41
|
+
* limitations under the License.
|
|
42
|
+
*/const Sl=function(e){const t=[];let n=0;for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=o&63|128):(o&64512)===55296&&i+1<e.length&&(e.charCodeAt(i+1)&64512)===56320?(o=65536+((o&1023)<<10)+(e.charCodeAt(++i)&1023),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=o&63|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=o&63|128)}return t},wf=function(e){const t=[];let n=0,i=0;for(;n<e.length;){const o=e[n++];if(o<128)t[i++]=String.fromCharCode(o);else if(o>191&&o<224){const r=e[n++];t[i++]=String.fromCharCode((o&31)<<6|r&63)}else if(o>239&&o<365){const r=e[n++],s=e[n++],a=e[n++],l=((o&7)<<18|(r&63)<<12|(s&63)<<6|a&63)-65536;t[i++]=String.fromCharCode(55296+(l>>10)),t[i++]=String.fromCharCode(56320+(l&1023))}else{const r=e[n++],s=e[n++];t[i++]=String.fromCharCode((o&15)<<12|(r&63)<<6|s&63)}}return t.join("")},Il={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let o=0;o<e.length;o+=3){const r=e[o],s=o+1<e.length,a=s?e[o+1]:0,l=o+2<e.length,c=l?e[o+2]:0,d=r>>2,u=(r&3)<<4|a>>4;let h=(a&15)<<2|c>>6,g=c&63;l||(g=64,s||(h=64)),i.push(n[d],n[u],n[h],n[g])}return i.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Sl(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):wf(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let o=0;o<e.length;){const r=n[e.charAt(o++)],a=o<e.length?n[e.charAt(o)]:0;++o;const c=o<e.length?n[e.charAt(o)]:64;++o;const u=o<e.length?n[e.charAt(o)]:64;if(++o,r==null||a==null||c==null||u==null)throw new xf;const h=r<<2|a>>4;if(i.push(h),c!==64){const g=a<<4&240|c>>2;if(i.push(g),u!==64){const k=c<<6&192|u;i.push(k)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class xf extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const kf=function(e){const t=Sl(e);return Il.encodeByteArray(t,!0)},Tl=function(e){return kf(e).replace(/\./g,"")},Ef=function(e){try{return Il.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
|
|
43
|
+
* @license
|
|
44
|
+
* Copyright 2022 Google LLC
|
|
45
|
+
*
|
|
46
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
47
|
+
* you may not use this file except in compliance with the License.
|
|
48
|
+
* You may obtain a copy of the License at
|
|
49
|
+
*
|
|
50
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
51
|
+
*
|
|
52
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
53
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
54
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
55
|
+
* See the License for the specific language governing permissions and
|
|
56
|
+
* limitations under the License.
|
|
57
|
+
*/function Sf(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
|
|
58
|
+
* @license
|
|
59
|
+
* Copyright 2022 Google LLC
|
|
60
|
+
*
|
|
61
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
62
|
+
* you may not use this file except in compliance with the License.
|
|
63
|
+
* You may obtain a copy of the License at
|
|
64
|
+
*
|
|
65
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
66
|
+
*
|
|
67
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
68
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
69
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
70
|
+
* See the License for the specific language governing permissions and
|
|
71
|
+
* limitations under the License.
|
|
72
|
+
*/const If=()=>Sf().__FIREBASE_DEFAULTS__,Tf=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},Cf=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&Ef(e[1]);return t&&JSON.parse(t)},$f=()=>{try{return If()||Tf()||Cf()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},Cl=()=>{var e;return(e=$f())===null||e===void 0?void 0:e.config};/**
|
|
73
|
+
* @license
|
|
74
|
+
* Copyright 2017 Google LLC
|
|
75
|
+
*
|
|
76
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
77
|
+
* you may not use this file except in compliance with the License.
|
|
78
|
+
* You may obtain a copy of the License at
|
|
79
|
+
*
|
|
80
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
81
|
+
*
|
|
82
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
83
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
84
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
85
|
+
* See the License for the specific language governing permissions and
|
|
86
|
+
* limitations under the License.
|
|
87
|
+
*/class Of{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,i)=>{n?this.reject(n):this.resolve(i),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,i))}}}function $l(){try{return typeof indexedDB=="object"}catch{return!1}}function Ol(){return new Promise((e,t)=>{try{let n=!0;const i="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(i);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(i),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var r;t(((r=o.error)===null||r===void 0?void 0:r.message)||"")}}catch(n){t(n)}})}function Af(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
88
|
+
* @license
|
|
89
|
+
* Copyright 2017 Google LLC
|
|
90
|
+
*
|
|
91
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
92
|
+
* you may not use this file except in compliance with the License.
|
|
93
|
+
* You may obtain a copy of the License at
|
|
94
|
+
*
|
|
95
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
96
|
+
*
|
|
97
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
98
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
99
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
100
|
+
* See the License for the specific language governing permissions and
|
|
101
|
+
* limitations under the License.
|
|
102
|
+
*/const Df="FirebaseError";class Ve extends Error{constructor(t,n,i){super(n),this.code=t,this.customData=i,this.name=Df,Object.setPrototypeOf(this,Ve.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,fi.prototype.create)}}class fi{constructor(t,n,i){this.service=t,this.serviceName=n,this.errors=i}create(t,...n){const i=n[0]||{},o=`${this.service}/${t}`,r=this.errors[t],s=r?_f(r,i):"Error",a=`${this.serviceName}: ${s} (${o}).`;return new Ve(o,a,i)}}function _f(e,t){return e.replace(Mf,(n,i)=>{const o=t[i];return o!=null?String(o):`<${i}?>`})}const Mf=/\{\$([^}]+)}/g;function po(e,t){if(e===t)return!0;const n=Object.keys(e),i=Object.keys(t);for(const o of n){if(!i.includes(o))return!1;const r=e[o],s=t[o];if(cs(r)&&cs(s)){if(!po(r,s))return!1}else if(r!==s)return!1}for(const o of i)if(!n.includes(o))return!1;return!0}function cs(e){return e!==null&&typeof e=="object"}/**
|
|
103
|
+
* @license
|
|
104
|
+
* Copyright 2021 Google LLC
|
|
105
|
+
*
|
|
106
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
107
|
+
* you may not use this file except in compliance with the License.
|
|
108
|
+
* You may obtain a copy of the License at
|
|
109
|
+
*
|
|
110
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
111
|
+
*
|
|
112
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
113
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
114
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
115
|
+
* See the License for the specific language governing permissions and
|
|
116
|
+
* limitations under the License.
|
|
117
|
+
*/function jo(e){return e&&e._delegate?e._delegate:e}class Xt{constructor(t,n,i){this.name=t,this.instanceFactory=n,this.type=i,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
|
|
118
|
+
* @license
|
|
119
|
+
* Copyright 2019 Google LLC
|
|
120
|
+
*
|
|
121
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
122
|
+
* you may not use this file except in compliance with the License.
|
|
123
|
+
* You may obtain a copy of the License at
|
|
124
|
+
*
|
|
125
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
126
|
+
*
|
|
127
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
128
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
129
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
130
|
+
* See the License for the specific language governing permissions and
|
|
131
|
+
* limitations under the License.
|
|
132
|
+
*/const oe="[DEFAULT]";/**
|
|
133
|
+
* @license
|
|
134
|
+
* Copyright 2019 Google LLC
|
|
135
|
+
*
|
|
136
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
137
|
+
* you may not use this file except in compliance with the License.
|
|
138
|
+
* You may obtain a copy of the License at
|
|
139
|
+
*
|
|
140
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
141
|
+
*
|
|
142
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
143
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
144
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
145
|
+
* See the License for the specific language governing permissions and
|
|
146
|
+
* limitations under the License.
|
|
147
|
+
*/class Pf{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const i=new Of;if(this.instancesDeferred.set(n,i),this.isInitialized(n)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:n});o&&i.resolve(o)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const i=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),o=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(i)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:i})}catch(r){if(o)return null;throw r}else{if(o)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(Nf(t))try{this.getOrInitializeService({instanceIdentifier:oe})}catch{}for(const[n,i]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(n);try{const r=this.getOrInitializeService({instanceIdentifier:o});i.resolve(r)}catch{}}}}clearInstance(t=oe){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=oe){return this.instances.has(t)}getOptions(t=oe){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,i=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(i))throw Error(`${this.name}(${i}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:i,options:n});for(const[r,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(r);i===a&&s.resolve(o)}return o}onInit(t,n){var i;const o=this.normalizeInstanceIdentifier(n),r=(i=this.onInitCallbacks.get(o))!==null&&i!==void 0?i:new Set;r.add(t),this.onInitCallbacks.set(o,r);const s=this.instances.get(o);return s&&t(s,o),()=>{r.delete(t)}}invokeOnInitCallbacks(t,n){const i=this.onInitCallbacks.get(n);if(i)for(const o of i)try{o(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let i=this.instances.get(t);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:Lf(t),options:n}),this.instances.set(t,i),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(i,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,i)}catch{}return i||null}normalizeInstanceIdentifier(t=oe){return this.component?this.component.multipleInstances?t:oe:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function Lf(e){return e===oe?void 0:e}function Nf(e){return e.instantiationMode==="EAGER"}/**
|
|
148
|
+
* @license
|
|
149
|
+
* Copyright 2019 Google LLC
|
|
150
|
+
*
|
|
151
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
152
|
+
* you may not use this file except in compliance with the License.
|
|
153
|
+
* You may obtain a copy of the License at
|
|
154
|
+
*
|
|
155
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
156
|
+
*
|
|
157
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
158
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
159
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
160
|
+
* See the License for the specific language governing permissions and
|
|
161
|
+
* limitations under the License.
|
|
162
|
+
*/class zf{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new Pf(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
163
|
+
* @license
|
|
164
|
+
* Copyright 2017 Google LLC
|
|
165
|
+
*
|
|
166
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
167
|
+
* you may not use this file except in compliance with the License.
|
|
168
|
+
* You may obtain a copy of the License at
|
|
169
|
+
*
|
|
170
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
171
|
+
*
|
|
172
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
173
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
174
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
175
|
+
* See the License for the specific language governing permissions and
|
|
176
|
+
* limitations under the License.
|
|
177
|
+
*/var U;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(U||(U={}));const Ff={debug:U.DEBUG,verbose:U.VERBOSE,info:U.INFO,warn:U.WARN,error:U.ERROR,silent:U.SILENT},Rf=U.INFO,Bf={[U.DEBUG]:"log",[U.VERBOSE]:"log",[U.INFO]:"info",[U.WARN]:"warn",[U.ERROR]:"error"},Vf=(e,t,...n)=>{if(t<e.logLevel)return;const i=new Date().toISOString(),o=Bf[t];if(o)console[o](`[${i}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class jf{constructor(t){this.name=t,this._logLevel=Rf,this._logHandler=Vf,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in U))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?Ff[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,U.DEBUG,...t),this._logHandler(this,U.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,U.VERBOSE,...t),this._logHandler(this,U.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,U.INFO,...t),this._logHandler(this,U.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,U.WARN,...t),this._logHandler(this,U.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,U.ERROR,...t),this._logHandler(this,U.ERROR,...t)}}const Hf=(e,t)=>t.some(n=>e instanceof n);let ds,us;function Uf(){return ds||(ds=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Wf(){return us||(us=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Al=new WeakMap,mo=new WeakMap,Dl=new WeakMap,Di=new WeakMap,Ho=new WeakMap;function qf(e){const t=new Promise((n,i)=>{const o=()=>{e.removeEventListener("success",r),e.removeEventListener("error",s)},r=()=>{n(Yt(e.result)),o()},s=()=>{i(e.error),o()};e.addEventListener("success",r),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&Al.set(n,e)}).catch(()=>{}),Ho.set(t,e),t}function Yf(e){if(mo.has(e))return;const t=new Promise((n,i)=>{const o=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",s),e.removeEventListener("abort",s)},r=()=>{n(),o()},s=()=>{i(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",r),e.addEventListener("error",s),e.addEventListener("abort",s)});mo.set(e,t)}let go={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return mo.get(e);if(t==="objectStoreNames")return e.objectStoreNames||Dl.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Yt(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Gf(e){go=e(go)}function Zf(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=e.call(_i(this),t,...n);return Dl.set(i,t.sort?t.sort():[t]),Yt(i)}:Wf().includes(e)?function(...t){return e.apply(_i(this),t),Yt(Al.get(this))}:function(...t){return Yt(e.apply(_i(this),t))}}function Kf(e){return typeof e=="function"?Zf(e):(e instanceof IDBTransaction&&Yf(e),Hf(e,Uf())?new Proxy(e,go):e)}function Yt(e){if(e instanceof IDBRequest)return qf(e);if(Di.has(e))return Di.get(e);const t=Kf(e);return t!==e&&(Di.set(e,t),Ho.set(t,e)),t}const _i=e=>Ho.get(e);function Xf(e,t,{blocked:n,upgrade:i,blocking:o,terminated:r}={}){const s=indexedDB.open(e,t),a=Yt(s);return i&&s.addEventListener("upgradeneeded",l=>{i(Yt(s.result),l.oldVersion,l.newVersion,Yt(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{r&&l.addEventListener("close",()=>r()),o&&l.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const Jf=["get","getKey","getAll","getAllKeys","count"],Qf=["put","add","delete","clear"],Mi=new Map;function hs(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Mi.get(t))return Mi.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,o=Qf.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(o||Jf.includes(n)))return;const r=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let c=l.store;return i&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),o&&l.done]))[0]};return Mi.set(t,r),r}Gf(e=>({...e,get:(t,n,i)=>hs(t,n)||e.get(t,n,i),has:(t,n)=>!!hs(t,n)||e.has(t,n)}));/**
|
|
178
|
+
* @license
|
|
179
|
+
* Copyright 2019 Google LLC
|
|
180
|
+
*
|
|
181
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
* you may not use this file except in compliance with the License.
|
|
183
|
+
* You may obtain a copy of the License at
|
|
184
|
+
*
|
|
185
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
*
|
|
187
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
* See the License for the specific language governing permissions and
|
|
191
|
+
* limitations under the License.
|
|
192
|
+
*/class tp{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(ep(n)){const i=n.getImmediate();return`${i.library}/${i.version}`}else return null}).filter(n=>n).join(" ")}}function ep(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const bo="@firebase/app",fs="0.9.18";/**
|
|
193
|
+
* @license
|
|
194
|
+
* Copyright 2019 Google LLC
|
|
195
|
+
*
|
|
196
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
197
|
+
* you may not use this file except in compliance with the License.
|
|
198
|
+
* You may obtain a copy of the License at
|
|
199
|
+
*
|
|
200
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
201
|
+
*
|
|
202
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
203
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
204
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
205
|
+
* See the License for the specific language governing permissions and
|
|
206
|
+
* limitations under the License.
|
|
207
|
+
*/const ue=new jf("@firebase/app"),np="@firebase/app-compat",ip="@firebase/analytics-compat",op="@firebase/analytics",rp="@firebase/app-check-compat",sp="@firebase/app-check",ap="@firebase/auth",lp="@firebase/auth-compat",cp="@firebase/database",dp="@firebase/database-compat",up="@firebase/functions",hp="@firebase/functions-compat",fp="@firebase/installations",pp="@firebase/installations-compat",mp="@firebase/messaging",gp="@firebase/messaging-compat",bp="@firebase/performance",vp="@firebase/performance-compat",yp="@firebase/remote-config",wp="@firebase/remote-config-compat",xp="@firebase/storage",kp="@firebase/storage-compat",Ep="@firebase/firestore",Sp="@firebase/firestore-compat",Ip="firebase";/**
|
|
208
|
+
* @license
|
|
209
|
+
* Copyright 2019 Google LLC
|
|
210
|
+
*
|
|
211
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
212
|
+
* you may not use this file except in compliance with the License.
|
|
213
|
+
* You may obtain a copy of the License at
|
|
214
|
+
*
|
|
215
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
216
|
+
*
|
|
217
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
218
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
219
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
220
|
+
* See the License for the specific language governing permissions and
|
|
221
|
+
* limitations under the License.
|
|
222
|
+
*/const vo="[DEFAULT]",Tp={[bo]:"fire-core",[np]:"fire-core-compat",[op]:"fire-analytics",[ip]:"fire-analytics-compat",[sp]:"fire-app-check",[rp]:"fire-app-check-compat",[ap]:"fire-auth",[lp]:"fire-auth-compat",[cp]:"fire-rtdb",[dp]:"fire-rtdb-compat",[up]:"fire-fn",[hp]:"fire-fn-compat",[fp]:"fire-iid",[pp]:"fire-iid-compat",[mp]:"fire-fcm",[gp]:"fire-fcm-compat",[bp]:"fire-perf",[vp]:"fire-perf-compat",[yp]:"fire-rc",[wp]:"fire-rc-compat",[xp]:"fire-gcs",[kp]:"fire-gcs-compat",[Ep]:"fire-fst",[Sp]:"fire-fst-compat","fire-js":"fire-js",[Ip]:"fire-js-all"};/**
|
|
223
|
+
* @license
|
|
224
|
+
* Copyright 2019 Google LLC
|
|
225
|
+
*
|
|
226
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
227
|
+
* you may not use this file except in compliance with the License.
|
|
228
|
+
* You may obtain a copy of the License at
|
|
229
|
+
*
|
|
230
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
231
|
+
*
|
|
232
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
233
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
234
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
235
|
+
* See the License for the specific language governing permissions and
|
|
236
|
+
* limitations under the License.
|
|
237
|
+
*/const Xn=new Map,yo=new Map;function Cp(e,t){try{e.container.addComponent(t)}catch(n){ue.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function he(e){const t=e.name;if(yo.has(t))return ue.debug(`There were multiple attempts to register component ${t}.`),!1;yo.set(t,e);for(const n of Xn.values())Cp(n,e);return!0}function Uo(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
|
|
238
|
+
* @license
|
|
239
|
+
* Copyright 2019 Google LLC
|
|
240
|
+
*
|
|
241
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
242
|
+
* you may not use this file except in compliance with the License.
|
|
243
|
+
* You may obtain a copy of the License at
|
|
244
|
+
*
|
|
245
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
246
|
+
*
|
|
247
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
248
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
249
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
250
|
+
* See the License for the specific language governing permissions and
|
|
251
|
+
* limitations under the License.
|
|
252
|
+
*/const $p={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},Gt=new fi("app","Firebase",$p);/**
|
|
253
|
+
* @license
|
|
254
|
+
* Copyright 2019 Google LLC
|
|
255
|
+
*
|
|
256
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
257
|
+
* you may not use this file except in compliance with the License.
|
|
258
|
+
* You may obtain a copy of the License at
|
|
259
|
+
*
|
|
260
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
261
|
+
*
|
|
262
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
263
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
264
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
265
|
+
* See the License for the specific language governing permissions and
|
|
266
|
+
* limitations under the License.
|
|
267
|
+
*/class Op{constructor(t,n,i){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new Xt("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Gt.create("app-deleted",{appName:this._name})}}function _l(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const i=Object.assign({name:vo,automaticDataCollectionEnabled:!1},t),o=i.name;if(typeof o!="string"||!o)throw Gt.create("bad-app-name",{appName:String(o)});if(n||(n=Cl()),!n)throw Gt.create("no-options");const r=Xn.get(o);if(r){if(po(n,r.options)&&po(i,r.config))return r;throw Gt.create("duplicate-app",{appName:o})}const s=new zf(o);for(const l of yo.values())s.addComponent(l);const a=new Op(n,i,s);return Xn.set(o,a),a}function Ap(e=vo){const t=Xn.get(e);if(!t&&e===vo&&Cl())return _l();if(!t)throw Gt.create("no-app",{appName:e});return t}function Zt(e,t,n){var i;let o=(i=Tp[e])!==null&&i!==void 0?i:e;n&&(o+=`-${n}`);const r=o.match(/\s|\//),s=t.match(/\s|\//);if(r||s){const a=[`Unable to register library "${o}" with version "${t}":`];r&&a.push(`library name "${o}" contains illegal characters (whitespace or "/")`),r&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),ue.warn(a.join(" "));return}he(new Xt(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}/**
|
|
268
|
+
* @license
|
|
269
|
+
* Copyright 2021 Google LLC
|
|
270
|
+
*
|
|
271
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
272
|
+
* you may not use this file except in compliance with the License.
|
|
273
|
+
* You may obtain a copy of the License at
|
|
274
|
+
*
|
|
275
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
276
|
+
*
|
|
277
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
278
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
279
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
280
|
+
* See the License for the specific language governing permissions and
|
|
281
|
+
* limitations under the License.
|
|
282
|
+
*/const Dp="firebase-heartbeat-database",_p=1,cn="firebase-heartbeat-store";let Pi=null;function Ml(){return Pi||(Pi=Xf(Dp,_p,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(cn)}}}).catch(e=>{throw Gt.create("idb-open",{originalErrorMessage:e.message})})),Pi}async function Mp(e){try{return await(await Ml()).transaction(cn).objectStore(cn).get(Pl(e))}catch(t){if(t instanceof Ve)ue.warn(t.message);else{const n=Gt.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});ue.warn(n.message)}}}async function ps(e,t){try{const i=(await Ml()).transaction(cn,"readwrite");await i.objectStore(cn).put(t,Pl(e)),await i.done}catch(n){if(n instanceof Ve)ue.warn(n.message);else{const i=Gt.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});ue.warn(i.message)}}}function Pl(e){return`${e.name}!${e.options.appId}`}/**
|
|
283
|
+
* @license
|
|
284
|
+
* Copyright 2021 Google LLC
|
|
285
|
+
*
|
|
286
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
287
|
+
* you may not use this file except in compliance with the License.
|
|
288
|
+
* You may obtain a copy of the License at
|
|
289
|
+
*
|
|
290
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
291
|
+
*
|
|
292
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
293
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
294
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
295
|
+
* See the License for the specific language governing permissions and
|
|
296
|
+
* limitations under the License.
|
|
297
|
+
*/const Pp=1024,Lp=30*24*60*60*1e3;class Np{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new Fp(n),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}async triggerHeartbeat(){const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=ms();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===i||this._heartbeatsCache.heartbeats.some(o=>o.date===i)))return this._heartbeatsCache.heartbeats.push({date:i,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(o=>{const r=new Date(o.date).valueOf();return Date.now()-r<=Lp}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const t=ms(),{heartbeatsToSend:n,unsentEntries:i}=zp(this._heartbeatsCache.heartbeats),o=Tl(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}}function ms(){return new Date().toISOString().substring(0,10)}function zp(e,t=Pp){const n=[];let i=e.slice();for(const o of e){const r=n.find(s=>s.agent===o.agent);if(r){if(r.dates.push(o.date),gs(n)>t){r.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),gs(n)>t){n.pop();break}i=i.slice(1)}return{heartbeatsToSend:n,unsentEntries:i}}class Fp{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return $l()?Ol().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await Mp(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return ps(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return ps(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...t.heartbeats]})}else return}}function gs(e){return Tl(JSON.stringify({version:2,heartbeats:e})).length}/**
|
|
298
|
+
* @license
|
|
299
|
+
* Copyright 2019 Google LLC
|
|
300
|
+
*
|
|
301
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
302
|
+
* you may not use this file except in compliance with the License.
|
|
303
|
+
* You may obtain a copy of the License at
|
|
304
|
+
*
|
|
305
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
306
|
+
*
|
|
307
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
308
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
309
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
310
|
+
* See the License for the specific language governing permissions and
|
|
311
|
+
* limitations under the License.
|
|
312
|
+
*/function Rp(e){he(new Xt("platform-logger",t=>new tp(t),"PRIVATE")),he(new Xt("heartbeat",t=>new Np(t),"PRIVATE")),Zt(bo,fs,e),Zt(bo,fs,"esm2017"),Zt("fire-js","")}Rp("");var Bp="firebase",Vp="10.3.1";/**
|
|
313
|
+
* @license
|
|
314
|
+
* Copyright 2020 Google LLC
|
|
315
|
+
*
|
|
316
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
317
|
+
* you may not use this file except in compliance with the License.
|
|
318
|
+
* You may obtain a copy of the License at
|
|
319
|
+
*
|
|
320
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
321
|
+
*
|
|
322
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
323
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
324
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
325
|
+
* See the License for the specific language governing permissions and
|
|
326
|
+
* limitations under the License.
|
|
327
|
+
*/Zt(Bp,Vp,"app");const jp=(e,t)=>t.some(n=>e instanceof n);let bs,vs;function Hp(){return bs||(bs=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Up(){return vs||(vs=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Ll=new WeakMap,wo=new WeakMap,Nl=new WeakMap,Li=new WeakMap,Wo=new WeakMap;function Wp(e){const t=new Promise((n,i)=>{const o=()=>{e.removeEventListener("success",r),e.removeEventListener("error",s)},r=()=>{n(Kt(e.result)),o()},s=()=>{i(e.error),o()};e.addEventListener("success",r),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&Ll.set(n,e)}).catch(()=>{}),Wo.set(t,e),t}function qp(e){if(wo.has(e))return;const t=new Promise((n,i)=>{const o=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",s),e.removeEventListener("abort",s)},r=()=>{n(),o()},s=()=>{i(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",r),e.addEventListener("error",s),e.addEventListener("abort",s)});wo.set(e,t)}let xo={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return wo.get(e);if(t==="objectStoreNames")return e.objectStoreNames||Nl.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Kt(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Yp(e){xo=e(xo)}function Gp(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=e.call(Ni(this),t,...n);return Nl.set(i,t.sort?t.sort():[t]),Kt(i)}:Up().includes(e)?function(...t){return e.apply(Ni(this),t),Kt(Ll.get(this))}:function(...t){return Kt(e.apply(Ni(this),t))}}function Zp(e){return typeof e=="function"?Gp(e):(e instanceof IDBTransaction&&qp(e),jp(e,Hp())?new Proxy(e,xo):e)}function Kt(e){if(e instanceof IDBRequest)return Wp(e);if(Li.has(e))return Li.get(e);const t=Zp(e);return t!==e&&(Li.set(e,t),Wo.set(t,e)),t}const Ni=e=>Wo.get(e);function Kp(e,t,{blocked:n,upgrade:i,blocking:o,terminated:r}={}){const s=indexedDB.open(e,t),a=Kt(s);return i&&s.addEventListener("upgradeneeded",l=>{i(Kt(s.result),l.oldVersion,l.newVersion,Kt(s.transaction))}),n&&s.addEventListener("blocked",()=>n()),a.then(l=>{r&&l.addEventListener("close",()=>r()),o&&l.addEventListener("versionchange",()=>o())}).catch(()=>{}),a}const Xp=["get","getKey","getAll","getAllKeys","count"],Jp=["put","add","delete","clear"],zi=new Map;function ys(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(zi.get(t))return zi.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,o=Jp.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(o||Xp.includes(n)))return;const r=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let c=l.store;return i&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),o&&l.done]))[0]};return zi.set(t,r),r}Yp(e=>({...e,get:(t,n,i)=>ys(t,n)||e.get(t,n,i),has:(t,n)=>!!ys(t,n)||e.has(t,n)}));const zl="@firebase/installations",qo="0.6.4";/**
|
|
328
|
+
* @license
|
|
329
|
+
* Copyright 2019 Google LLC
|
|
330
|
+
*
|
|
331
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
332
|
+
* you may not use this file except in compliance with the License.
|
|
333
|
+
* You may obtain a copy of the License at
|
|
334
|
+
*
|
|
335
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
336
|
+
*
|
|
337
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
338
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
339
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
340
|
+
* See the License for the specific language governing permissions and
|
|
341
|
+
* limitations under the License.
|
|
342
|
+
*/const Fl=1e4,Rl=`w:${qo}`,Bl="FIS_v2",Qp="https://firebaseinstallations.googleapis.com/v1",tm=60*60*1e3,em="installations",nm="Installations";/**
|
|
343
|
+
* @license
|
|
344
|
+
* Copyright 2019 Google LLC
|
|
345
|
+
*
|
|
346
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
347
|
+
* you may not use this file except in compliance with the License.
|
|
348
|
+
* You may obtain a copy of the License at
|
|
349
|
+
*
|
|
350
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
351
|
+
*
|
|
352
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
353
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
354
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
355
|
+
* See the License for the specific language governing permissions and
|
|
356
|
+
* limitations under the License.
|
|
357
|
+
*/const im={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},fe=new fi(em,nm,im);function Vl(e){return e instanceof Ve&&e.code.includes("request-failed")}/**
|
|
358
|
+
* @license
|
|
359
|
+
* Copyright 2019 Google LLC
|
|
360
|
+
*
|
|
361
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
362
|
+
* you may not use this file except in compliance with the License.
|
|
363
|
+
* You may obtain a copy of the License at
|
|
364
|
+
*
|
|
365
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
366
|
+
*
|
|
367
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
368
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
369
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
370
|
+
* See the License for the specific language governing permissions and
|
|
371
|
+
* limitations under the License.
|
|
372
|
+
*/function jl({projectId:e}){return`${Qp}/projects/${e}/installations`}function Hl(e){return{token:e.token,requestStatus:2,expiresIn:rm(e.expiresIn),creationTime:Date.now()}}async function Ul(e,t){const i=(await t.json()).error;return fe.create("request-failed",{requestName:e,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})}function Wl({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function om(e,{refreshToken:t}){const n=Wl(e);return n.append("Authorization",sm(t)),n}async function ql(e){const t=await e();return t.status>=500&&t.status<600?e():t}function rm(e){return Number(e.replace("s","000"))}function sm(e){return`${Bl} ${e}`}/**
|
|
373
|
+
* @license
|
|
374
|
+
* Copyright 2019 Google LLC
|
|
375
|
+
*
|
|
376
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
377
|
+
* you may not use this file except in compliance with the License.
|
|
378
|
+
* You may obtain a copy of the License at
|
|
379
|
+
*
|
|
380
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
381
|
+
*
|
|
382
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
383
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
384
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
385
|
+
* See the License for the specific language governing permissions and
|
|
386
|
+
* limitations under the License.
|
|
387
|
+
*/async function am({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const i=jl(e),o=Wl(e),r=t.getImmediate({optional:!0});if(r){const c=await r.getHeartbeatsHeader();c&&o.append("x-firebase-client",c)}const s={fid:n,authVersion:Bl,appId:e.appId,sdkVersion:Rl},a={method:"POST",headers:o,body:JSON.stringify(s)},l=await ql(()=>fetch(i,a));if(l.ok){const c=await l.json();return{fid:c.fid||n,registrationStatus:2,refreshToken:c.refreshToken,authToken:Hl(c.authToken)}}else throw await Ul("Create Installation",l)}/**
|
|
388
|
+
* @license
|
|
389
|
+
* Copyright 2019 Google LLC
|
|
390
|
+
*
|
|
391
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
392
|
+
* you may not use this file except in compliance with the License.
|
|
393
|
+
* You may obtain a copy of the License at
|
|
394
|
+
*
|
|
395
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
396
|
+
*
|
|
397
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
398
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
399
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
400
|
+
* See the License for the specific language governing permissions and
|
|
401
|
+
* limitations under the License.
|
|
402
|
+
*/function Yl(e){return new Promise(t=>{setTimeout(t,e)})}/**
|
|
403
|
+
* @license
|
|
404
|
+
* Copyright 2019 Google LLC
|
|
405
|
+
*
|
|
406
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
407
|
+
* you may not use this file except in compliance with the License.
|
|
408
|
+
* You may obtain a copy of the License at
|
|
409
|
+
*
|
|
410
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
411
|
+
*
|
|
412
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
413
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
414
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
415
|
+
* See the License for the specific language governing permissions and
|
|
416
|
+
* limitations under the License.
|
|
417
|
+
*/function lm(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
418
|
+
* @license
|
|
419
|
+
* Copyright 2019 Google LLC
|
|
420
|
+
*
|
|
421
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
422
|
+
* you may not use this file except in compliance with the License.
|
|
423
|
+
* You may obtain a copy of the License at
|
|
424
|
+
*
|
|
425
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
426
|
+
*
|
|
427
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
428
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
429
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
430
|
+
* See the License for the specific language governing permissions and
|
|
431
|
+
* limitations under the License.
|
|
432
|
+
*/const cm=/^[cdef][\w-]{21}$/,ko="";function dm(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=um(e);return cm.test(n)?n:ko}catch{return ko}}function um(e){return lm(e).substr(0,22)}/**
|
|
433
|
+
* @license
|
|
434
|
+
* Copyright 2019 Google LLC
|
|
435
|
+
*
|
|
436
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
437
|
+
* you may not use this file except in compliance with the License.
|
|
438
|
+
* You may obtain a copy of the License at
|
|
439
|
+
*
|
|
440
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
441
|
+
*
|
|
442
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
443
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
444
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
445
|
+
* See the License for the specific language governing permissions and
|
|
446
|
+
* limitations under the License.
|
|
447
|
+
*/function pi(e){return`${e.appName}!${e.appId}`}/**
|
|
448
|
+
* @license
|
|
449
|
+
* Copyright 2019 Google LLC
|
|
450
|
+
*
|
|
451
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
452
|
+
* you may not use this file except in compliance with the License.
|
|
453
|
+
* You may obtain a copy of the License at
|
|
454
|
+
*
|
|
455
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
456
|
+
*
|
|
457
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
458
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
459
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
460
|
+
* See the License for the specific language governing permissions and
|
|
461
|
+
* limitations under the License.
|
|
462
|
+
*/const Gl=new Map;function Zl(e,t){const n=pi(e);Kl(n,t),hm(n,t)}function Kl(e,t){const n=Gl.get(e);if(n)for(const i of n)i(t)}function hm(e,t){const n=fm();n&&n.postMessage({key:e,fid:t}),pm()}let ae=null;function fm(){return!ae&&"BroadcastChannel"in self&&(ae=new BroadcastChannel("[Firebase] FID Change"),ae.onmessage=e=>{Kl(e.data.key,e.data.fid)}),ae}function pm(){Gl.size===0&&ae&&(ae.close(),ae=null)}/**
|
|
463
|
+
* @license
|
|
464
|
+
* Copyright 2019 Google LLC
|
|
465
|
+
*
|
|
466
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
467
|
+
* you may not use this file except in compliance with the License.
|
|
468
|
+
* You may obtain a copy of the License at
|
|
469
|
+
*
|
|
470
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
471
|
+
*
|
|
472
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
473
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
474
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
475
|
+
* See the License for the specific language governing permissions and
|
|
476
|
+
* limitations under the License.
|
|
477
|
+
*/const mm="firebase-installations-database",gm=1,pe="firebase-installations-store";let Fi=null;function Yo(){return Fi||(Fi=Kp(mm,gm,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(pe)}}})),Fi}async function Jn(e,t){const n=pi(e),o=(await Yo()).transaction(pe,"readwrite"),r=o.objectStore(pe),s=await r.get(n);return await r.put(t,n),await o.done,(!s||s.fid!==t.fid)&&Zl(e,t.fid),t}async function Xl(e){const t=pi(e),i=(await Yo()).transaction(pe,"readwrite");await i.objectStore(pe).delete(t),await i.done}async function mi(e,t){const n=pi(e),o=(await Yo()).transaction(pe,"readwrite"),r=o.objectStore(pe),s=await r.get(n),a=t(s);return a===void 0?await r.delete(n):await r.put(a,n),await o.done,a&&(!s||s.fid!==a.fid)&&Zl(e,a.fid),a}/**
|
|
478
|
+
* @license
|
|
479
|
+
* Copyright 2019 Google LLC
|
|
480
|
+
*
|
|
481
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
482
|
+
* you may not use this file except in compliance with the License.
|
|
483
|
+
* You may obtain a copy of the License at
|
|
484
|
+
*
|
|
485
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
486
|
+
*
|
|
487
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
488
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
489
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
490
|
+
* See the License for the specific language governing permissions and
|
|
491
|
+
* limitations under the License.
|
|
492
|
+
*/async function Go(e){let t;const n=await mi(e.appConfig,i=>{const o=bm(i),r=vm(e,o);return t=r.registrationPromise,r.installationEntry});return n.fid===ko?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function bm(e){const t=e||{fid:dm(),registrationStatus:0};return Jl(t)}function vm(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const o=Promise.reject(fe.create("app-offline"));return{installationEntry:t,registrationPromise:o}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=ym(e,n);return{installationEntry:n,registrationPromise:i}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:wm(e)}:{installationEntry:t}}async function ym(e,t){try{const n=await am(e,t);return Jn(e.appConfig,n)}catch(n){throw Vl(n)&&n.customData.serverCode===409?await Xl(e.appConfig):await Jn(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function wm(e){let t=await ws(e.appConfig);for(;t.registrationStatus===1;)await Yl(100),t=await ws(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:i}=await Go(e);return i||n}return t}function ws(e){return mi(e,t=>{if(!t)throw fe.create("installation-not-found");return Jl(t)})}function Jl(e){return xm(e)?{fid:e.fid,registrationStatus:0}:e}function xm(e){return e.registrationStatus===1&&e.registrationTime+Fl<Date.now()}/**
|
|
493
|
+
* @license
|
|
494
|
+
* Copyright 2019 Google LLC
|
|
495
|
+
*
|
|
496
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
497
|
+
* you may not use this file except in compliance with the License.
|
|
498
|
+
* You may obtain a copy of the License at
|
|
499
|
+
*
|
|
500
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
501
|
+
*
|
|
502
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
503
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
504
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
505
|
+
* See the License for the specific language governing permissions and
|
|
506
|
+
* limitations under the License.
|
|
507
|
+
*/async function km({appConfig:e,heartbeatServiceProvider:t},n){const i=Em(e,n),o=om(e,n),r=t.getImmediate({optional:!0});if(r){const c=await r.getHeartbeatsHeader();c&&o.append("x-firebase-client",c)}const s={installation:{sdkVersion:Rl,appId:e.appId}},a={method:"POST",headers:o,body:JSON.stringify(s)},l=await ql(()=>fetch(i,a));if(l.ok){const c=await l.json();return Hl(c)}else throw await Ul("Generate Auth Token",l)}function Em(e,{fid:t}){return`${jl(e)}/${t}/authTokens:generate`}/**
|
|
508
|
+
* @license
|
|
509
|
+
* Copyright 2019 Google LLC
|
|
510
|
+
*
|
|
511
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
512
|
+
* you may not use this file except in compliance with the License.
|
|
513
|
+
* You may obtain a copy of the License at
|
|
514
|
+
*
|
|
515
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
516
|
+
*
|
|
517
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
518
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
519
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
520
|
+
* See the License for the specific language governing permissions and
|
|
521
|
+
* limitations under the License.
|
|
522
|
+
*/async function Zo(e,t=!1){let n;const i=await mi(e.appConfig,r=>{if(!Ql(r))throw fe.create("not-registered");const s=r.authToken;if(!t&&Tm(s))return r;if(s.requestStatus===1)return n=Sm(e,t),r;{if(!navigator.onLine)throw fe.create("app-offline");const a=$m(r);return n=Im(e,a),a}});return n?await n:i.authToken}async function Sm(e,t){let n=await xs(e.appConfig);for(;n.authToken.requestStatus===1;)await Yl(100),n=await xs(e.appConfig);const i=n.authToken;return i.requestStatus===0?Zo(e,t):i}function xs(e){return mi(e,t=>{if(!Ql(t))throw fe.create("not-registered");const n=t.authToken;return Om(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function Im(e,t){try{const n=await km(e,t),i=Object.assign(Object.assign({},t),{authToken:n});return await Jn(e.appConfig,i),n}catch(n){if(Vl(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await Xl(e.appConfig);else{const i=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Jn(e.appConfig,i)}throw n}}function Ql(e){return e!==void 0&&e.registrationStatus===2}function Tm(e){return e.requestStatus===2&&!Cm(e)}function Cm(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+tm}function $m(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function Om(e){return e.requestStatus===1&&e.requestTime+Fl<Date.now()}/**
|
|
523
|
+
* @license
|
|
524
|
+
* Copyright 2019 Google LLC
|
|
525
|
+
*
|
|
526
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
527
|
+
* you may not use this file except in compliance with the License.
|
|
528
|
+
* You may obtain a copy of the License at
|
|
529
|
+
*
|
|
530
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
531
|
+
*
|
|
532
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
533
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
534
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
535
|
+
* See the License for the specific language governing permissions and
|
|
536
|
+
* limitations under the License.
|
|
537
|
+
*/async function Am(e){const t=e,{installationEntry:n,registrationPromise:i}=await Go(t);return i?i.catch(console.error):Zo(t).catch(console.error),n.fid}/**
|
|
538
|
+
* @license
|
|
539
|
+
* Copyright 2019 Google LLC
|
|
540
|
+
*
|
|
541
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
542
|
+
* you may not use this file except in compliance with the License.
|
|
543
|
+
* You may obtain a copy of the License at
|
|
544
|
+
*
|
|
545
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
546
|
+
*
|
|
547
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
548
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
549
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
550
|
+
* See the License for the specific language governing permissions and
|
|
551
|
+
* limitations under the License.
|
|
552
|
+
*/async function Dm(e,t=!1){const n=e;return await _m(n),(await Zo(n,t)).token}async function _m(e){const{registrationPromise:t}=await Go(e);t&&await t}/**
|
|
553
|
+
* @license
|
|
554
|
+
* Copyright 2019 Google LLC
|
|
555
|
+
*
|
|
556
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
557
|
+
* you may not use this file except in compliance with the License.
|
|
558
|
+
* You may obtain a copy of the License at
|
|
559
|
+
*
|
|
560
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
561
|
+
*
|
|
562
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
563
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
564
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
565
|
+
* See the License for the specific language governing permissions and
|
|
566
|
+
* limitations under the License.
|
|
567
|
+
*/function Mm(e){if(!e||!e.options)throw Ri("App Configuration");if(!e.name)throw Ri("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Ri(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Ri(e){return fe.create("missing-app-config-values",{valueName:e})}/**
|
|
568
|
+
* @license
|
|
569
|
+
* Copyright 2020 Google LLC
|
|
570
|
+
*
|
|
571
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
572
|
+
* you may not use this file except in compliance with the License.
|
|
573
|
+
* You may obtain a copy of the License at
|
|
574
|
+
*
|
|
575
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
576
|
+
*
|
|
577
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
578
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
579
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
580
|
+
* See the License for the specific language governing permissions and
|
|
581
|
+
* limitations under the License.
|
|
582
|
+
*/const tc="installations",Pm="installations-internal",Lm=e=>{const t=e.getProvider("app").getImmediate(),n=Mm(t),i=Uo(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:i,_delete:()=>Promise.resolve()}},Nm=e=>{const t=e.getProvider("app").getImmediate(),n=Uo(t,tc).getImmediate();return{getId:()=>Am(n),getToken:o=>Dm(n,o)}};function zm(){he(new Xt(tc,Lm,"PUBLIC")),he(new Xt(Pm,Nm,"PRIVATE"))}zm();Zt(zl,qo);Zt(zl,qo,"esm2017");const Fm=(e,t)=>t.some(n=>e instanceof n);let ks,Es;function Rm(){return ks||(ks=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Bm(){return Es||(Es=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const ec=new WeakMap,Eo=new WeakMap,nc=new WeakMap,Bi=new WeakMap,Ko=new WeakMap;function Vm(e){const t=new Promise((n,i)=>{const o=()=>{e.removeEventListener("success",r),e.removeEventListener("error",s)},r=()=>{n(Rt(e.result)),o()},s=()=>{i(e.error),o()};e.addEventListener("success",r),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&ec.set(n,e)}).catch(()=>{}),Ko.set(t,e),t}function jm(e){if(Eo.has(e))return;const t=new Promise((n,i)=>{const o=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",s),e.removeEventListener("abort",s)},r=()=>{n(),o()},s=()=>{i(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",r),e.addEventListener("error",s),e.addEventListener("abort",s)});Eo.set(e,t)}let So={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Eo.get(e);if(t==="objectStoreNames")return e.objectStoreNames||nc.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Rt(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Hm(e){So=e(So)}function Um(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=e.call(Vi(this),t,...n);return nc.set(i,t.sort?t.sort():[t]),Rt(i)}:Bm().includes(e)?function(...t){return e.apply(Vi(this),t),Rt(ec.get(this))}:function(...t){return Rt(e.apply(Vi(this),t))}}function Wm(e){return typeof e=="function"?Um(e):(e instanceof IDBTransaction&&jm(e),Fm(e,Rm())?new Proxy(e,So):e)}function Rt(e){if(e instanceof IDBRequest)return Vm(e);if(Bi.has(e))return Bi.get(e);const t=Wm(e);return t!==e&&(Bi.set(e,t),Ko.set(t,e)),t}const Vi=e=>Ko.get(e);function ic(e,t,{blocked:n,upgrade:i,blocking:o,terminated:r}={}){const s=indexedDB.open(e,t),a=Rt(s);return i&&s.addEventListener("upgradeneeded",l=>{i(Rt(s.result),l.oldVersion,l.newVersion,Rt(s.transaction))}),n&&s.addEventListener("blocked",()=>n()),a.then(l=>{r&&l.addEventListener("close",()=>r()),o&&l.addEventListener("versionchange",()=>o())}).catch(()=>{}),a}function ji(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",()=>t()),Rt(n).then(()=>{})}const qm=["get","getKey","getAll","getAllKeys","count"],Ym=["put","add","delete","clear"],Hi=new Map;function Ss(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Hi.get(t))return Hi.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,o=Ym.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(o||qm.includes(n)))return;const r=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let c=l.store;return i&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),o&&l.done]))[0]};return Hi.set(t,r),r}Hm(e=>({...e,get:(t,n,i)=>Ss(t,n)||e.get(t,n,i),has:(t,n)=>!!Ss(t,n)||e.has(t,n)}));/**
|
|
583
|
+
* @license
|
|
584
|
+
* Copyright 2019 Google LLC
|
|
585
|
+
*
|
|
586
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
587
|
+
* you may not use this file except in compliance with the License.
|
|
588
|
+
* You may obtain a copy of the License at
|
|
589
|
+
*
|
|
590
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
591
|
+
*
|
|
592
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
593
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
594
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
595
|
+
* See the License for the specific language governing permissions and
|
|
596
|
+
* limitations under the License.
|
|
597
|
+
*/const Gm="/firebase-messaging-sw.js",Zm="/firebase-cloud-messaging-push-scope",oc="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Km="https://fcmregistrations.googleapis.com/v1",rc="google.c.a.c_id",Xm="google.c.a.c_l",Jm="google.c.a.ts",Qm="google.c.a.e";var Is;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(Is||(Is={}));/**
|
|
598
|
+
* @license
|
|
599
|
+
* Copyright 2018 Google LLC
|
|
600
|
+
*
|
|
601
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
602
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
603
|
+
*
|
|
604
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
605
|
+
*
|
|
606
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
607
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
608
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
609
|
+
* the License.
|
|
610
|
+
*/var dn;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(dn||(dn={}));/**
|
|
611
|
+
* @license
|
|
612
|
+
* Copyright 2017 Google LLC
|
|
613
|
+
*
|
|
614
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
615
|
+
* you may not use this file except in compliance with the License.
|
|
616
|
+
* You may obtain a copy of the License at
|
|
617
|
+
*
|
|
618
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
619
|
+
*
|
|
620
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
621
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
622
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
623
|
+
* See the License for the specific language governing permissions and
|
|
624
|
+
* limitations under the License.
|
|
625
|
+
*/function Nt(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function tg(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(n),o=new Uint8Array(i.length);for(let r=0;r<i.length;++r)o[r]=i.charCodeAt(r);return o}/**
|
|
626
|
+
* @license
|
|
627
|
+
* Copyright 2019 Google LLC
|
|
628
|
+
*
|
|
629
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
630
|
+
* you may not use this file except in compliance with the License.
|
|
631
|
+
* You may obtain a copy of the License at
|
|
632
|
+
*
|
|
633
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
634
|
+
*
|
|
635
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
636
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
637
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
638
|
+
* See the License for the specific language governing permissions and
|
|
639
|
+
* limitations under the License.
|
|
640
|
+
*/const Ui="fcm_token_details_db",eg=5,Ts="fcm_token_object_Store";async function ng(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(r=>r.name).includes(Ui))return null;let t=null;return(await ic(Ui,eg,{upgrade:async(i,o,r,s)=>{var a;if(o<2||!i.objectStoreNames.contains(Ts))return;const l=s.objectStore(Ts),c=await l.index("fcmSenderId").get(e);if(await l.clear(),!!c){if(o===2){const d=c;if(!d.auth||!d.p256dh||!d.endpoint)return;t={token:d.fcmToken,createTime:(a=d.createTime)!==null&&a!==void 0?a:Date.now(),subscriptionOptions:{auth:d.auth,p256dh:d.p256dh,endpoint:d.endpoint,swScope:d.swScope,vapidKey:typeof d.vapidKey=="string"?d.vapidKey:Nt(d.vapidKey)}}}else if(o===3){const d=c;t={token:d.fcmToken,createTime:d.createTime,subscriptionOptions:{auth:Nt(d.auth),p256dh:Nt(d.p256dh),endpoint:d.endpoint,swScope:d.swScope,vapidKey:Nt(d.vapidKey)}}}else if(o===4){const d=c;t={token:d.fcmToken,createTime:d.createTime,subscriptionOptions:{auth:Nt(d.auth),p256dh:Nt(d.p256dh),endpoint:d.endpoint,swScope:d.swScope,vapidKey:Nt(d.vapidKey)}}}}}})).close(),await ji(Ui),await ji("fcm_vapid_details_db"),await ji("undefined"),ig(t)?t:null}function ig(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>0}/**
|
|
641
|
+
* @license
|
|
642
|
+
* Copyright 2019 Google LLC
|
|
643
|
+
*
|
|
644
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
645
|
+
* you may not use this file except in compliance with the License.
|
|
646
|
+
* You may obtain a copy of the License at
|
|
647
|
+
*
|
|
648
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
649
|
+
*
|
|
650
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
651
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
652
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
653
|
+
* See the License for the specific language governing permissions and
|
|
654
|
+
* limitations under the License.
|
|
655
|
+
*/const og="firebase-messaging-database",rg=1,me="firebase-messaging-store";let Wi=null;function Xo(){return Wi||(Wi=ic(og,rg,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(me)}}})),Wi}async function sc(e){const t=Qo(e),i=await(await Xo()).transaction(me).objectStore(me).get(t);if(i)return i;{const o=await ng(e.appConfig.senderId);if(o)return await Jo(e,o),o}}async function Jo(e,t){const n=Qo(e),o=(await Xo()).transaction(me,"readwrite");return await o.objectStore(me).put(t,n),await o.done,t}async function sg(e){const t=Qo(e),i=(await Xo()).transaction(me,"readwrite");await i.objectStore(me).delete(t),await i.done}function Qo({appConfig:e}){return e.appId}/**
|
|
656
|
+
* @license
|
|
657
|
+
* Copyright 2017 Google LLC
|
|
658
|
+
*
|
|
659
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
660
|
+
* you may not use this file except in compliance with the License.
|
|
661
|
+
* You may obtain a copy of the License at
|
|
662
|
+
*
|
|
663
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
664
|
+
*
|
|
665
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
666
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
667
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
668
|
+
* See the License for the specific language governing permissions and
|
|
669
|
+
* limitations under the License.
|
|
670
|
+
*/const ag={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},at=new fi("messaging","Messaging",ag);/**
|
|
671
|
+
* @license
|
|
672
|
+
* Copyright 2019 Google LLC
|
|
673
|
+
*
|
|
674
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
675
|
+
* you may not use this file except in compliance with the License.
|
|
676
|
+
* You may obtain a copy of the License at
|
|
677
|
+
*
|
|
678
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
679
|
+
*
|
|
680
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
681
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
682
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
683
|
+
* See the License for the specific language governing permissions and
|
|
684
|
+
* limitations under the License.
|
|
685
|
+
*/async function lg(e,t){const n=await er(e),i=lc(t),o={method:"POST",headers:n,body:JSON.stringify(i)};let r;try{r=await(await fetch(tr(e.appConfig),o)).json()}catch(s){throw at.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(r.error){const s=r.error.message;throw at.create("token-subscribe-failed",{errorInfo:s})}if(!r.token)throw at.create("token-subscribe-no-token");return r.token}async function cg(e,t){const n=await er(e),i=lc(t.subscriptionOptions),o={method:"PATCH",headers:n,body:JSON.stringify(i)};let r;try{r=await(await fetch(`${tr(e.appConfig)}/${t.token}`,o)).json()}catch(s){throw at.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(r.error){const s=r.error.message;throw at.create("token-update-failed",{errorInfo:s})}if(!r.token)throw at.create("token-update-no-token");return r.token}async function ac(e,t){const i={method:"DELETE",headers:await er(e)};try{const r=await(await fetch(`${tr(e.appConfig)}/${t}`,i)).json();if(r.error){const s=r.error.message;throw at.create("token-unsubscribe-failed",{errorInfo:s})}}catch(o){throw at.create("token-unsubscribe-failed",{errorInfo:o==null?void 0:o.toString()})}}function tr({projectId:e}){return`${Km}/projects/${e}/registrations`}async function er({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function lc({p256dh:e,auth:t,endpoint:n,vapidKey:i}){const o={web:{endpoint:n,auth:t,p256dh:e}};return i!==oc&&(o.web.applicationPubKey=i),o}/**
|
|
686
|
+
* @license
|
|
687
|
+
* Copyright 2019 Google LLC
|
|
688
|
+
*
|
|
689
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
690
|
+
* you may not use this file except in compliance with the License.
|
|
691
|
+
* You may obtain a copy of the License at
|
|
692
|
+
*
|
|
693
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
694
|
+
*
|
|
695
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
696
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
697
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
698
|
+
* See the License for the specific language governing permissions and
|
|
699
|
+
* limitations under the License.
|
|
700
|
+
*/const dg=7*24*60*60*1e3;async function ug(e){const t=await pg(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:Nt(t.getKey("auth")),p256dh:Nt(t.getKey("p256dh"))},i=await sc(e.firebaseDependencies);if(i){if(mg(i.subscriptionOptions,n))return Date.now()>=i.createTime+dg?fg(e,{token:i.token,createTime:Date.now(),subscriptionOptions:n}):i.token;try{await ac(e.firebaseDependencies,i.token)}catch(o){console.warn(o)}return Cs(e.firebaseDependencies,n)}else return Cs(e.firebaseDependencies,n)}async function hg(e){const t=await sc(e.firebaseDependencies);t&&(await ac(e.firebaseDependencies,t.token),await sg(e.firebaseDependencies));const n=await e.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0}async function fg(e,t){try{const n=await cg(e.firebaseDependencies,t),i=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await Jo(e.firebaseDependencies,i),n}catch(n){throw await hg(e),n}}async function Cs(e,t){const i={token:await lg(e,t),createTime:Date.now(),subscriptionOptions:t};return await Jo(e,i),i.token}async function pg(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:tg(t)})}function mg(e,t){const n=t.vapidKey===e.vapidKey,i=t.endpoint===e.endpoint,o=t.auth===e.auth,r=t.p256dh===e.p256dh;return n&&i&&o&&r}/**
|
|
701
|
+
* @license
|
|
702
|
+
* Copyright 2020 Google LLC
|
|
703
|
+
*
|
|
704
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
705
|
+
* you may not use this file except in compliance with the License.
|
|
706
|
+
* You may obtain a copy of the License at
|
|
707
|
+
*
|
|
708
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
709
|
+
*
|
|
710
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
711
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
712
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
713
|
+
* See the License for the specific language governing permissions and
|
|
714
|
+
* limitations under the License.
|
|
715
|
+
*/function $s(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return gg(t,e),bg(t,e),vg(t,e),t}function gg(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const i=t.notification.body;i&&(e.notification.body=i);const o=t.notification.image;o&&(e.notification.image=o);const r=t.notification.icon;r&&(e.notification.icon=r)}function bg(e,t){t.data&&(e.data=t.data)}function vg(e,t){var n,i,o,r,s;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};const a=(o=(i=t.fcmOptions)===null||i===void 0?void 0:i.link)!==null&&o!==void 0?o:(r=t.notification)===null||r===void 0?void 0:r.click_action;a&&(e.fcmOptions.link=a);const l=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;l&&(e.fcmOptions.analyticsLabel=l)}/**
|
|
716
|
+
* @license
|
|
717
|
+
* Copyright 2019 Google LLC
|
|
718
|
+
*
|
|
719
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
720
|
+
* you may not use this file except in compliance with the License.
|
|
721
|
+
* You may obtain a copy of the License at
|
|
722
|
+
*
|
|
723
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
724
|
+
*
|
|
725
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
726
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
727
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
728
|
+
* See the License for the specific language governing permissions and
|
|
729
|
+
* limitations under the License.
|
|
730
|
+
*/function yg(e){return typeof e=="object"&&!!e&&rc in e}/**
|
|
731
|
+
* @license
|
|
732
|
+
* Copyright 2019 Google LLC
|
|
733
|
+
*
|
|
734
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
735
|
+
* you may not use this file except in compliance with the License.
|
|
736
|
+
* You may obtain a copy of the License at
|
|
737
|
+
*
|
|
738
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
739
|
+
*
|
|
740
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
741
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
742
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
743
|
+
* See the License for the specific language governing permissions and
|
|
744
|
+
* limitations under the License.
|
|
745
|
+
*/cc("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");cc("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function cc(e,t){const n=[];for(let i=0;i<e.length;i++)n.push(e.charAt(i)),i<t.length&&n.push(t.charAt(i));return n.join("")}/**
|
|
746
|
+
* @license
|
|
747
|
+
* Copyright 2019 Google LLC
|
|
748
|
+
*
|
|
749
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
750
|
+
* you may not use this file except in compliance with the License.
|
|
751
|
+
* You may obtain a copy of the License at
|
|
752
|
+
*
|
|
753
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
754
|
+
*
|
|
755
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
756
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
757
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
758
|
+
* See the License for the specific language governing permissions and
|
|
759
|
+
* limitations under the License.
|
|
760
|
+
*/function wg(e){if(!e||!e.options)throw qi("App Configuration Object");if(!e.name)throw qi("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const i of t)if(!n[i])throw qi(i);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function qi(e){return at.create("missing-app-config-values",{valueName:e})}/**
|
|
761
|
+
* @license
|
|
762
|
+
* Copyright 2020 Google LLC
|
|
763
|
+
*
|
|
764
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
765
|
+
* you may not use this file except in compliance with the License.
|
|
766
|
+
* You may obtain a copy of the License at
|
|
767
|
+
*
|
|
768
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
769
|
+
*
|
|
770
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
771
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
772
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
773
|
+
* See the License for the specific language governing permissions and
|
|
774
|
+
* limitations under the License.
|
|
775
|
+
*/class xg{constructor(t,n,i){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const o=wg(t);this.firebaseDependencies={app:t,appConfig:o,installations:n,analyticsProvider:i}}_delete(){return Promise.resolve()}}/**
|
|
776
|
+
* @license
|
|
777
|
+
* Copyright 2020 Google LLC
|
|
778
|
+
*
|
|
779
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
780
|
+
* you may not use this file except in compliance with the License.
|
|
781
|
+
* You may obtain a copy of the License at
|
|
782
|
+
*
|
|
783
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
784
|
+
*
|
|
785
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
786
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
787
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
788
|
+
* See the License for the specific language governing permissions and
|
|
789
|
+
* limitations under the License.
|
|
790
|
+
*/async function kg(e){try{e.swRegistration=await navigator.serviceWorker.register(Gm,{scope:Zm}),e.swRegistration.update().catch(()=>{})}catch(t){throw at.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
|
|
791
|
+
* @license
|
|
792
|
+
* Copyright 2020 Google LLC
|
|
793
|
+
*
|
|
794
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
795
|
+
* you may not use this file except in compliance with the License.
|
|
796
|
+
* You may obtain a copy of the License at
|
|
797
|
+
*
|
|
798
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
799
|
+
*
|
|
800
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
801
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
802
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
803
|
+
* See the License for the specific language governing permissions and
|
|
804
|
+
* limitations under the License.
|
|
805
|
+
*/async function Eg(e,t){if(!t&&!e.swRegistration&&await kg(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw at.create("invalid-sw-registration");e.swRegistration=t}}/**
|
|
806
|
+
* @license
|
|
807
|
+
* Copyright 2020 Google LLC
|
|
808
|
+
*
|
|
809
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
810
|
+
* you may not use this file except in compliance with the License.
|
|
811
|
+
* You may obtain a copy of the License at
|
|
812
|
+
*
|
|
813
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
814
|
+
*
|
|
815
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
816
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
817
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
818
|
+
* See the License for the specific language governing permissions and
|
|
819
|
+
* limitations under the License.
|
|
820
|
+
*/async function Sg(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=oc)}/**
|
|
821
|
+
* @license
|
|
822
|
+
* Copyright 2020 Google LLC
|
|
823
|
+
*
|
|
824
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
825
|
+
* you may not use this file except in compliance with the License.
|
|
826
|
+
* You may obtain a copy of the License at
|
|
827
|
+
*
|
|
828
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
829
|
+
*
|
|
830
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
831
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
832
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
833
|
+
* See the License for the specific language governing permissions and
|
|
834
|
+
* limitations under the License.
|
|
835
|
+
*/async function dc(e,t){if(!navigator)throw at.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw at.create("permission-blocked");return await Sg(e,t==null?void 0:t.vapidKey),await Eg(e,t==null?void 0:t.serviceWorkerRegistration),ug(e)}/**
|
|
836
|
+
* @license
|
|
837
|
+
* Copyright 2019 Google LLC
|
|
838
|
+
*
|
|
839
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
840
|
+
* you may not use this file except in compliance with the License.
|
|
841
|
+
* You may obtain a copy of the License at
|
|
842
|
+
*
|
|
843
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
844
|
+
*
|
|
845
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
846
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
847
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
848
|
+
* See the License for the specific language governing permissions and
|
|
849
|
+
* limitations under the License.
|
|
850
|
+
*/async function Ig(e,t,n){const i=Tg(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(i,{message_id:n[rc],message_name:n[Xm],message_time:n[Jm],message_device_time:Math.floor(Date.now()/1e3)})}function Tg(e){switch(e){case dn.NOTIFICATION_CLICKED:return"notification_open";case dn.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
851
|
+
* @license
|
|
852
|
+
* Copyright 2017 Google LLC
|
|
853
|
+
*
|
|
854
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
855
|
+
* you may not use this file except in compliance with the License.
|
|
856
|
+
* You may obtain a copy of the License at
|
|
857
|
+
*
|
|
858
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
859
|
+
*
|
|
860
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
861
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
862
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
863
|
+
* See the License for the specific language governing permissions and
|
|
864
|
+
* limitations under the License.
|
|
865
|
+
*/async function Cg(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===dn.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler($s(n)):e.onMessageHandler.next($s(n)));const i=n.data;yg(i)&&i[Qm]==="1"&&await Ig(e,n.messageType,i)}const Os="@firebase/messaging",As="0.12.4";/**
|
|
866
|
+
* @license
|
|
867
|
+
* Copyright 2020 Google LLC
|
|
868
|
+
*
|
|
869
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
870
|
+
* you may not use this file except in compliance with the License.
|
|
871
|
+
* You may obtain a copy of the License at
|
|
872
|
+
*
|
|
873
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
874
|
+
*
|
|
875
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
876
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
877
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
878
|
+
* See the License for the specific language governing permissions and
|
|
879
|
+
* limitations under the License.
|
|
880
|
+
*/const $g=e=>{const t=new xg(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>Cg(t,n)),t},Og=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:i=>dc(t,i)}};function Ag(){he(new Xt("messaging",$g,"PUBLIC")),he(new Xt("messaging-internal",Og,"PRIVATE")),Zt(Os,As),Zt(Os,As,"esm2017")}/**
|
|
881
|
+
* @license
|
|
882
|
+
* Copyright 2020 Google LLC
|
|
883
|
+
*
|
|
884
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
885
|
+
* you may not use this file except in compliance with the License.
|
|
886
|
+
* You may obtain a copy of the License at
|
|
887
|
+
*
|
|
888
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
889
|
+
*
|
|
890
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
891
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
892
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
893
|
+
* See the License for the specific language governing permissions and
|
|
894
|
+
* limitations under the License.
|
|
895
|
+
*/async function Dg(){try{await Ol()}catch{return!1}return typeof window<"u"&&$l()&&Af()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
896
|
+
* @license
|
|
897
|
+
* Copyright 2020 Google LLC
|
|
898
|
+
*
|
|
899
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
900
|
+
* you may not use this file except in compliance with the License.
|
|
901
|
+
* You may obtain a copy of the License at
|
|
902
|
+
*
|
|
903
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
904
|
+
*
|
|
905
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
906
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
907
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
908
|
+
* See the License for the specific language governing permissions and
|
|
909
|
+
* limitations under the License.
|
|
910
|
+
*/function _g(e,t){if(!navigator)throw at.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/**
|
|
911
|
+
* @license
|
|
912
|
+
* Copyright 2017 Google LLC
|
|
913
|
+
*
|
|
914
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
915
|
+
* you may not use this file except in compliance with the License.
|
|
916
|
+
* You may obtain a copy of the License at
|
|
917
|
+
*
|
|
918
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
919
|
+
*
|
|
920
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
921
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
922
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
923
|
+
* See the License for the specific language governing permissions and
|
|
924
|
+
* limitations under the License.
|
|
925
|
+
*/function Mg(e=Ap()){return Dg().then(t=>{if(!t)throw at.create("unsupported-browser")},t=>{throw at.create("indexed-db-unsupported")}),Uo(jo(e),"messaging").getImmediate()}async function Pg(e,t){return e=jo(e),dc(e,t)}function Lg(e,t){return e=jo(e),_g(e,t)}Ag();const uc=async(e,t,n,i)=>{const r=_l(e),s=Mg(r);if(await Notification.requestPermission()==="granted"){const l=await Pg(s,{vapidKey:t});await n(l),Lg(s,d=>{i({notification:d,isForeground:!0})});const c=new BroadcastChannel("FB_BG_MESSAGES");c.onmessage=d=>{i({notification:d.data,isForeground:!1})}}else alert("You denied notifications.")},hc=m.defineComponent({template:`
|
|
13
926
|
<div style='position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);'>
|
|
14
927
|
<h4 v-if='errorMsg.length'>
|
|
15
928
|
{{ errorMsg }}
|
|
16
929
|
</h4>
|
|
17
930
|
</div>
|
|
18
|
-
`,data(){return{errorMsg:"",authStore:{},router:{},route:{}}},async mounted(){if(this.authStore=
|
|
931
|
+
`,data(){return{errorMsg:"",authStore:{},router:{},route:{}}},async mounted(){if(this.authStore=El(),this.router=exports.appContext.config.globalProperties.$router,this.route=exports.appContext.config.globalProperties.$route,!Object.keys(this.route.query).length){window.location.href=lt.appLoginUrl;return}const{token:e,oms:t,expirationTime:n}=this.route.query;this.handleUserFlow(e,t,n)},methods:{async handleUserFlow(e,t,n){const i=lt.getConfig();if(await lt.logout({isUserUnauthorised:!0}),await lt.initialise(i),+n<D.now().toMillis()){console.error("User token has expired, redirecting to launchpad."),this.errorMsg="User token has expired, redirecting to launchpad.";const o=window.location.origin+"/login";window.location.href=`${lt.appLoginUrl}?isLoggedOut=true&redirectUrl=${o}`;return}this.authStore.$patch({token:{value:e,expiration:n},oms:t}),lt.loader.present("Logging in");try{await lt.login({token:e,oms:t}),await uc(Ft.appFirebaseConfig,Ft.appFirebaseVapidKey,Ft.storeClientRegistrationToken,Ft.addNotification),this.router.push("/")}catch(o){console.error(o),this.errorMsg="Unable to login. Please contact the administrator"}finally{lt.loader.dismiss()}}}}),fc=m.defineComponent({template:`
|
|
19
932
|
<img :src="imageUrl"/>
|
|
20
|
-
`,data(){return{imageUrl:Ut.defaultImgUrl}},props:["src","size"],mounted(){this.setImageUrl()},updated(){this.setImageUrl()},methods:{prepareImgUrl(t,e){return e?t.replace(/_(pico|icon|thumb|small|compact|medium|large|grande|original|1024x1024|2048x2048|master)+\./g,".").replace(/\.jpg|\.png|\.gif|\.jpeg/g,function(n){return"_"+e+n}):t},checkIfImageExists(t){return new Promise((e,n)=>{const r=new Image;r.onload=function(){e(!0)},r.onerror=function(){n(!1)},r.src=t})},setImageUrl(){if(this.src){const t=this.prepareImgUrl(this.src,this.size);this.checkIfImageExists(t).then(()=>{this.imageUrl=t})}}}}),lo=(t,e)=>{const n=(e.startsWith("http")?e.replace(/api\/?/,""):`https://${e}.hotwax.io/`)+`?token=${t}`;window.open(n,"_blank","noopener, noreferrer")};function co(t){return typeof t=="object"&&t!==null}function gn(t,e){return t=co(t)?t:Object.create(null),new Proxy(t,{get(n,r,s){return r==="key"?Reflect.get(n,r,s):Reflect.get(n,r,s)||Reflect.get(e,r,s)}})}function fo(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function ho(t,e,n){return e.slice(0,-1).reduce((r,s)=>/^(__proto__)$/.test(s)?{}:r[s]=r[s]||{},t)[e[e.length-1]]=n,t}function mo(t,e){return e.reduce((n,r)=>{const s=r.split(".");return ho(n,s,fo(t,s))},{})}function pn(t,{storage:e,serializer:n,key:r,debug:s}){try{const o=e==null?void 0:e.getItem(r);o&&t.$patch(n==null?void 0:n.deserialize(o))}catch(o){s&&console.error(o)}}function wn(t,{storage:e,serializer:n,key:r,paths:s,debug:o}){try{const i=Array.isArray(s)?mo(t,s):t;e.setItem(r,n.serialize(i))}catch(i){o&&console.error(i)}}function yo(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:s,pinia:o}=e;if(!r)return;if(!(s.$id in o.state.value)){const a=o._s.get(s.$id.replace("__hot:",""));a&&Promise.resolve().then(()=>a.$persist());return}const i=(Array.isArray(r)?r.map(a=>gn(a,t)):[gn(r,t)]).map(({storage:a=localStorage,beforeRestore:u=null,afterRestore:l=null,serializer:f={serialize:JSON.stringify,deserialize:JSON.parse},key:y=s.$id,paths:S=null,debug:h=!1})=>{var E;return{storage:a,beforeRestore:u,afterRestore:l,serializer:f,key:((E=t.key)!=null?E:P=>P)(typeof y=="string"?y:y(s.$id)),paths:S,debug:h}});s.$persist=()=>{i.forEach(a=>{wn(s.$state,a)})},s.$hydrate=({runHooks:a=!0}={})=>{i.forEach(u=>{const{beforeRestore:l,afterRestore:f}=u;a&&(l==null||l(e)),pn(s,u),a&&(f==null||f(e))})},i.forEach(a=>{const{beforeRestore:u,afterRestore:l}=a;u==null||u(e),pn(s,a),l==null||l(e),s.$subscribe((f,y)=>{wn(y,a)},{detached:!0})})}}var go=yo();const Cr=os();Cr.use(go);let _={},Ut={};exports.appContext={};let Fe={},po={install(t,e){exports.appContext=t,t.use(Cr),t.component("Login",_r),t.component("ShopifyImg",Vr),_.login=e.login,_.logout=e.logout,_.loader=e.loader,_.appLoginUrl=e.appLoginUrl,Ut.defaultImgUrl=e.defaultImgUrl,Fe.getProductIdentificationPref=e.getProductIdentificationPref,Fe.setProductIdentificationPref=e.setProductIdentificationPref,_.getConfig=e.getConfig,_.initialise=e.initialise}};exports.Login=_r;exports.ShopifyImg=Vr;exports.dxpComponents=po;exports.goToOms=lo;exports.loginContext=_;exports.productIdentificationContext=Fe;exports.shopifyImgContext=Ut;exports.useAuthStore=xr;exports.useProductIdentificationStore=ls;
|
|
933
|
+
`,data(){return{imageUrl:wr.defaultImgUrl}},props:["src","size"],mounted(){this.setImageUrl()},updated(){this.setImageUrl()},methods:{prepareImgUrl(e,t){return t?e.replace(/_(pico|icon|thumb|small|compact|medium|large|grande|original|1024x1024|2048x2048|master)+\./g,".").replace(/\.jpg|\.png|\.gif|\.jpeg/g,function(n){return"_"+t+n}):e},checkIfImageExists(e){return new Promise((t,n)=>{const i=new Image;i.onload=function(){t(!0)},i.onerror=function(){n(!1)},i.src=e})},setImageUrl(){if(this.src){const e=this.prepareImgUrl(this.src,this.size);this.checkIfImageExists(e).then(()=>{this.imageUrl=e})}}}}),Ng=(e,t)=>{const n=(t.startsWith("http")?t.replace(/api\/?/,""):`https://${t}.hotwax.io/`)+`commerce/control/main?token=${e}`;window.open(n,"_blank","noopener, noreferrer")};function zg(e){return typeof e=="object"&&e!==null}function Ds(e,t){return e=zg(e)?e:Object.create(null),new Proxy(e,{get(n,i,o){return i==="key"?Reflect.get(n,i,o):Reflect.get(n,i,o)||Reflect.get(t,i,o)}})}function Fg(e,t){return t.reduce((n,i)=>n==null?void 0:n[i],e)}function Rg(e,t,n){return t.slice(0,-1).reduce((i,o)=>/^(__proto__)$/.test(o)?{}:i[o]=i[o]||{},e)[t[t.length-1]]=n,e}function Bg(e,t){return t.reduce((n,i)=>{const o=i.split(".");return Rg(n,o,Fg(e,o))},{})}function _s(e,{storage:t,serializer:n,key:i,debug:o}){try{const r=t==null?void 0:t.getItem(i);r&&e.$patch(n==null?void 0:n.deserialize(r))}catch(r){o&&console.error(r)}}function Ms(e,{storage:t,serializer:n,key:i,paths:o,debug:r}){try{const s=Array.isArray(o)?Bg(e,o):e;t.setItem(i,n.serialize(s))}catch(s){r&&console.error(s)}}function Vg(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:i=n},store:o,pinia:r}=t;if(!i)return;if(!(o.$id in r.state.value)){const a=r._s.get(o.$id.replace("__hot:",""));a&&Promise.resolve().then(()=>a.$persist());return}const s=(Array.isArray(i)?i.map(a=>Ds(a,e)):[Ds(i,e)]).map(({storage:a=localStorage,beforeRestore:l=null,afterRestore:c=null,serializer:d={serialize:JSON.stringify,deserialize:JSON.parse},key:u=o.$id,paths:h=null,debug:g=!1})=>{var k;return{storage:a,beforeRestore:l,afterRestore:c,serializer:d,key:((k=e.key)!=null?k:b=>b)(typeof u=="string"?u:u(o.$id)),paths:h,debug:g}});o.$persist=()=>{s.forEach(a=>{Ms(o.$state,a)})},o.$hydrate=({runHooks:a=!0}={})=>{s.forEach(l=>{const{beforeRestore:c,afterRestore:d}=l;a&&(c==null||c(t)),_s(o,l),a&&(d==null||d(t))})},s.forEach(a=>{const{beforeRestore:l,afterRestore:c}=a;l==null||l(t),_s(o,a),c==null||c(t),o.$subscribe((d,u)=>{Ms(u,a)},{detached:!0})})}}var jg=Vg();const Ce={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let $e,pc,gi,mc=!1,Qn=!1,nr=!1,ht=!1,Ps=null,Io=!1;const Hg=e=>{const t=new URL(e,it.$resourcesUrl$);return t.origin!==wn.location.origin?t.href:t.pathname},ge=(e,t="")=>()=>{},Ls="http://www.w3.org/1999/xlink",Ns={},Ug="http://www.w3.org/2000/svg",Wg="http://www.w3.org/1999/xhtml",qg=e=>e!=null,ir=e=>(e=typeof e,e==="object"||e==="function");function Yg(e){var t,n,i;return(i=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&i!==void 0?i:void 0}const p=(e,t,...n)=>{let i=null,o=null,r=null,s=!1,a=!1;const l=[],c=u=>{for(let h=0;h<u.length;h++)i=u[h],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((s=typeof e!="function"&&!ir(i))&&(i=String(i)),s&&a?l[l.length-1].$text$+=i:l.push(s?ti(null,i):i),a=s)};if(c(n),t){t.key&&(o=t.key),t.name&&(r=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter(h=>u[h]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Zg);const d=ti(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=o,d.$name$=r,d},ti=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},Y={},Gg=e=>e&&e.$tag$===Y,Zg={forEach:(e,t)=>e.map(zs).forEach(t),map:(e,t)=>e.map(zs).map(t).map(Kg)},zs=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Kg=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),p(e.vtag,n,...e.vchildren||[])}const t=ti(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Xg=e=>Ib.map(t=>t(e)).find(t=>!!t),Jg=e=>je(e).$modeName$,Qg=(e,t)=>e!=null&&!ir(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,tb=e=>e,N=(e,t,n)=>{const i=tb(e);return{emit:o=>eb(i,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:o})}},eb=(e,t,n)=>{const i=it.ce(t,n);return e.dispatchEvent(i),i},Fs=new WeakMap,nb=(e,t,n)=>{let i=ii.get(e);$b&&n?(i=i||new CSSStyleSheet,typeof i=="string"?i=t:i.replaceSync(t)):i=t,ii.set(e,i)},ib=(e,t,n,i)=>{var o;let r=gc(t,n);const s=ii.get(r);if(e=e.nodeType===11?e:Ot,s)if(typeof s=="string"){e=e.head||e;let a=Fs.get(e),l;if(a||Fs.set(e,a=new Set),!a.has(r)){{l=Ot.createElement("style"),l.innerHTML=s;const c=(o=it.$nonce$)!==null&&o!==void 0?o:Yg(Ot);c!=null&&l.setAttribute("nonce",c),e.insertBefore(l,e.querySelector("link"))}a&&a.add(r)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},ob=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,o=ge("attachStyles",t.$tagName$),r=ib(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);i&10&&(n["s-sc"]=r,n.classList.add(r+"-h"),i&2&&n.classList.add(r+"-s")),o()},gc=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Rs=(e,t,n,i,o,r)=>{if(n!==i){let s=Hs(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Bs(n),d=Bs(i);l.remove(...c.filter(u=>u&&!d.includes(u))),l.add(...d.filter(u=>u&&!c.includes(u)))}else if(t==="style"){for(const l in n)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!n||i[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Hs(wn,a)?t=a.slice(2):t=a[2]+t.slice(3),n&&it.rel(e,t,n,!1),i&&it.ael(e,t,i,!1);else{const l=ir(i);if((s||l&&i!==null)&&!o)try{if(e.tagName.includes("-"))e[t]=i;else{const d=i??"";t==="list"?s=!1:(n==null||e[t]!=d)&&(e[t]=d)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(Ls,t):e.removeAttribute(t)):(!s||r&4||o)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(Ls,t,i):e.setAttribute(t,i))}}},rb=/\s/,Bs=e=>e?e.split(rb):[],bc=(e,t,n,i)=>{const o=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||Ns,s=t.$attrs$||Ns;for(i in r)i in s||Rs(o,i,r[i],void 0,n,t.$flags$);for(i in s)Rs(o,i,r[i],s[i],n,t.$flags$)},ei=(e,t,n,i)=>{const o=t.$children$[n];let r=0,s,a,l;if(mc||(nr=!0,o.$tag$==="slot"&&($e&&i.classList.add($e+"-s"),o.$flags$|=o.$children$?2:1)),o.$text$!==null)s=o.$elm$=Ot.createTextNode(o.$text$);else if(o.$flags$&1)s=o.$elm$=Ot.createTextNode("");else{if(ht||(ht=o.$tag$==="svg"),s=o.$elm$=Ot.createElementNS(ht?Ug:Wg,o.$flags$&2?"slot-fb":o.$tag$),ht&&o.$tag$==="foreignObject"&&(ht=!1),bc(null,o,ht),qg($e)&&s["s-si"]!==$e&&s.classList.add(s["s-si"]=$e),o.$children$)for(r=0;r<o.$children$.length;++r)a=ei(e,o,r,s),a&&s.appendChild(a);o.$tag$==="svg"?ht=!1:s.tagName==="foreignObject"&&(ht=!0)}return s["s-hn"]=gi,o.$flags$&3&&(s["s-sr"]=!0,s["s-cr"]=pc,s["s-sn"]=o.$name$||"",l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===o.$tag$&&e.$elm$&&un(e.$elm$,!1)),s},un=(e,t)=>{it.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const o=n[i];o["s-hn"]!==gi&&o["s-ol"]&&(wc(o).insertBefore(o,or(o)),o["s-ol"].remove(),o["s-ol"]=void 0,nr=!0),t&&un(o,t)}it.$flags$&=-2},vc=(e,t,n,i,o,r)=>{let s=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(s.shadowRoot&&s.tagName===gi&&(s=s.shadowRoot);o<=r;++o)i[o]&&(a=ei(null,n,o,e),a&&(i[o].$elm$=a,s.insertBefore(a,or(t))))},yc=(e,t,n,i,o)=>{for(;t<=n;++t)(i=e[t])&&(o=i.$elm$,Ec(i),Qn=!0,o["s-ol"]?o["s-ol"].remove():un(o,!0),o.remove())},sb=(e,t,n,i)=>{let o=0,r=0,s=0,a=0,l=t.length-1,c=t[0],d=t[l],u=i.length-1,h=i[0],g=i[u],k,b;for(;o<=l&&r<=u;)if(c==null)c=t[++o];else if(d==null)d=t[--l];else if(h==null)h=i[++r];else if(g==null)g=i[--u];else if(Mn(c,h))Oe(c,h),c=t[++o],h=i[++r];else if(Mn(d,g))Oe(d,g),d=t[--l],g=i[--u];else if(Mn(c,g))(c.$tag$==="slot"||g.$tag$==="slot")&&un(c.$elm$.parentNode,!1),Oe(c,g),e.insertBefore(c.$elm$,d.$elm$.nextSibling),c=t[++o],g=i[--u];else if(Mn(d,h))(c.$tag$==="slot"||g.$tag$==="slot")&&un(d.$elm$.parentNode,!1),Oe(d,h),e.insertBefore(d.$elm$,c.$elm$),d=t[--l],h=i[++r];else{for(s=-1,a=o;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===h.$key$){s=a;break}s>=0?(b=t[s],b.$tag$!==h.$tag$?k=ei(t&&t[r],n,s,e):(Oe(b,h),t[s]=void 0,k=b.$elm$),h=i[++r]):(k=ei(t&&t[r],n,r,e),h=i[++r]),k&&wc(c.$elm$).insertBefore(k,or(c.$elm$))}o>l?vc(e,i[u+1]==null?null:i[u+1].$elm$,n,i,r,u):r>u&&yc(t,o,l)},Mn=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,or=e=>e&&e["s-ol"]||e,wc=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Oe=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,r=t.$tag$,s=t.$text$;let a;s===null?(ht=r==="svg"?!0:r==="foreignObject"?!1:ht,r==="slot"||bc(e,t,ht),i!==null&&o!==null?sb(n,i,t,o):o!==null?(e.$text$!==null&&(n.textContent=""),vc(n,null,t,o,0,o.length-1)):i!==null&&yc(i,0,i.length-1),ht&&r==="svg"&&(ht=!1)):(a=n["s-cr"])?a.parentNode.textContent=s:e.$text$!==s&&(n.data=s)},xc=e=>{const t=e.childNodes;let n,i,o,r,s,a;for(i=0,o=t.length;i<o;i++)if(n=t[i],n.nodeType===1){if(n["s-sr"]){for(s=n["s-sn"],n.hidden=!1,r=0;r<o;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==n["s-hn"]||s!==""){if(a===1&&s===t[r].getAttribute("slot")){n.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){n.hidden=!0;break}}xc(n)}},Ct=[],kc=e=>{let t,n,i,o,r,s,a=0;const l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,o=t["s-sn"],s=i.length-1;s>=0;s--)n=i[s],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(Vs(n,o)?(r=Ct.find(d=>d.$nodeToRelocate$===n),Qn=!0,n["s-sn"]=n["s-sn"]||o,r?r.$slotRefNode$=t:Ct.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&Ct.map(d=>{Vs(d.$nodeToRelocate$,n["s-sn"])&&(r=Ct.find(u=>u.$nodeToRelocate$===n),r&&!d.$slotRefNode$&&(d.$slotRefNode$=r.$slotRefNode$))})):Ct.some(d=>d.$nodeToRelocate$===n)||Ct.push({$nodeToRelocate$:n}));t.nodeType===1&&kc(t)}},Vs=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Ec=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Ec)},ab=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,o=e.$vnode$||ti(null,null),r=Gg(t)?t:p(null,null,t);gi=n.tagName,i.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},i.$attrsToReflect$.map(([s,a])=>r.$attrs$[a]=n[s])),r.$tag$=null,r.$flags$|=4,e.$vnode$=r,r.$elm$=o.$elm$=n.shadowRoot||n,$e=n["s-sc"],pc=n["s-cr"],mc=(i.$flags$&1)!==0,Qn=!1,Oe(o,r);{if(it.$flags$|=1,nr){kc(r.$elm$);let s,a,l,c,d,u,h=0;for(;h<Ct.length;h++)s=Ct[h],a=s.$nodeToRelocate$,a["s-ol"]||(l=Ot.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(h=0;h<Ct.length;h++)if(s=Ct[h],a=s.$nodeToRelocate$,s.$slotRefNode$){for(c=s.$slotRefNode$.parentNode,d=s.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(u=l["s-nr"],u&&u["s-sn"]===a["s-sn"]&&c===u.parentNode&&(u=u.nextSibling,!u||!u["s-nr"])){d=u;break}(!d&&c!==a.parentNode||a.nextSibling!==d)&&a!==d&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,d))}else a.nodeType===1&&(a.hidden=!0)}Qn&&xc(r.$elm$),it.$flags$&=-2,Ct.length=0}},lb=(e,t)=>{},rr=(e,t)=>(e.$flags$|=16,lb(e,e.$ancestorComponent$),oi(()=>cb(e,t))),cb=(e,t)=>{const n=e.$hostElement$,i=ge("scheduleUpdate",e.$cmpMeta$.$tagName$),o=n;let r;return t?r=Me(o,"componentWillLoad"):r=Me(o,"componentWillUpdate"),r=js(r,()=>Me(o,"componentWillRender")),i(),js(r,()=>db(e,o,t))},db=async(e,t,n)=>{const i=e.$hostElement$,o=ge("update",e.$cmpMeta$.$tagName$);i["s-rc"],n&&ob(e);const r=ge("render",e.$cmpMeta$.$tagName$);ub(e,t,i),r(),o(),hb(e)},ub=(e,t,n)=>{try{Ps=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(Ce.hasRenderFn||Ce.reflect)&&(Ce.vdomRender||Ce.reflect)&&(Ce.hydrateServerSide||ab(e,t))}catch(a){yn(a,e.$hostElement$)}return Ps=null,null},hb=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=ge("postUpdate",t),o=n;e.$ancestorComponent$,Me(o,"componentDidRender"),e.$flags$&64?(Me(o,"componentDidUpdate"),i()):(e.$flags$|=64,Me(o,"componentDidLoad"),i())},ni=e=>{{const t=je(e),n=t.$hostElement$.isConnected;return n&&(t.$flags$&18)===2&&rr(t,!1),n}},Me=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){yn(i)}},js=(e,t)=>e&&e.then?e.then(t):t(),fb=(e,t)=>je(e).$instanceValues$.get(t),pb=(e,t,n,i)=>{const o=je(e),r=e,s=o.$instanceValues$.get(t),a=o.$flags$,l=r;n=Qg(n,i.$members$[t][0]);const c=Number.isNaN(s)&&Number.isNaN(n);if(n!==s&&!c){o.$instanceValues$.set(t,n);{if(i.$watchers$&&a&128){const u=i.$watchers$[t];u&&u.map(h=>{try{l[h](n,s,t)}catch(g){yn(g,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,s,t)===!1)return;rr(o,!1)}}}},mb=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),o=e.prototype;i.map(([r,[s]])=>{(s&31||s&32)&&Object.defineProperty(o,r,{get(){return fb(this,r)},set(a){pb(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;o.attributeChangedCallback=function(s,a,l){it.jmp(()=>{const c=r.get(s);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(o.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([s,a])=>a[0]&15).map(([s,a])=>{const l=a[1]||s;return r.set(l,s),a[0]&512&&t.$attrsToReflect$.push([s,l]),l})}}return e},gb=async(e,t,n,i,o)=>{if(!(t.$flags$&32)&&(o=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),o.style)){let s=o.style;typeof s!="string"&&(s=s[t.$modeName$=Xg(e)]);const a=gc(n,t.$modeName$);if(!ii.has(a)){const l=ge("registerStyles",n.$tagName$);nb(a,s,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,(()=>rr(t,!0))()},bb=e=>{},vb=e=>{if(!(it.$flags$&1)){const t=je(e),n=t.$cmpMeta$,i=ge("connectedCallback",n.$tagName$);t.$flags$&1?(Sc(e,t,n.$listeners$),bb(t.$lazyInstance$)):(t.$flags$|=1,n.$flags$&12&&yb(e),n.$members$&&Object.entries(n.$members$).map(([o,[r]])=>{if(r&31&&e.hasOwnProperty(o)){const s=e[o];delete e[o],e[o]=s}}),gb(e,t,n)),i()}},yb=e=>{const t=e["s-cr"]=Ot.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},wb=e=>{if(!(it.$flags$&1)){const t=je(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},Z=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const i=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){Sb(this,n)},connectedCallback(){vb(this),i&&i.call(this)},disconnectedCallback(){wb(this),o&&o.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,mb(e,n)},Sc=(e,t,n,i)=>{n&&n.map(([o,r,s])=>{const a=kb(e,o),l=xb(t,s),c=Eb(o);it.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>it.rel(a,r,l,c))})},xb=(e,t)=>n=>{try{Ce.lazyLoad||e.$hostElement$[t](n)}catch(i){yn(i)}},kb=(e,t)=>t&4?Ot:t&8?wn:t&16?Ot.body:e,Eb=e=>Tb?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Ic=new WeakMap,je=e=>Ic.get(e),Sb=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return Sc(e,n,t.$listeners$),Ic.set(e,n)},Hs=(e,t)=>t in e,yn=(e,t)=>(0,console.error)(e,t),ii=new Map,Ib=[],wn=typeof window<"u"?window:{},Ot=wn.document||{head:{}},K=wn.HTMLElement||class{},it={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},Tb=(()=>{let e=!1;try{Ot.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),Cb=e=>Promise.resolve(e),$b=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),To=[],Tc=[],Cc=(e,t)=>n=>{e.push(n),Io||(Io=!0,t&&it.$flags$&4?Ob(Co):it.raf(Co))},Us=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){yn(n)}e.length=0},Co=()=>{Us(To),Us(Tc),(Io=To.length>0)&&it.raf(Co)},Ob=e=>Cb().then(e),$c=Cc(To,!1),oi=Cc(Tc,!0);/*!
|
|
934
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
935
|
+
*/const Ws="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>";/*!
|
|
936
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
937
|
+
*/class Ab{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,n){const i=this.m.get(t);return i!==void 0?i:n}getBoolean(t,n=!1){const i=this.m.get(t);return i===void 0?n:typeof i=="string"?i==="true":!!i}getNumber(t,n){const i=parseFloat(this.m.get(t));return isNaN(i)?n!==void 0?n:NaN:i}set(t,n){this.m.set(t,n)}}const He=new Ab,Db=e=>Mb(e),_b=(e,t)=>(typeof e=="string"&&(t=e,e=void 0),Db(e).includes(t)),Mb=(e=window)=>{if(typeof e>"u")return[];e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return t==null&&(t=e.Ionic.platforms=Pb(e),t.forEach(n=>e.document.documentElement.classList.add(`plt-${n}`))),t},Pb=e=>{const t=He.get("platform");return Object.keys(qs).filter(n=>{const i=t==null?void 0:t[n];return typeof i=="function"?i(e):qs[n](e)})},Lb=e=>bi(e)&&!Ac(e),sr=e=>!!(be(e,/iPad/i)||be(e,/Macintosh/i)&&bi(e)),Nb=e=>be(e,/iPhone/i),zb=e=>be(e,/iPhone|iPod/i)||sr(e),Oc=e=>be(e,/android|sink/i),Fb=e=>Oc(e)&&!be(e,/mobile/i),Rb=e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),o=Math.max(t,n);return i>390&&i<520&&o>620&&o<800},Bb=e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),o=Math.max(t,n);return sr(e)||Fb(e)||i>460&&i<820&&o>780&&o<1400},bi=e=>Ub(e,"(any-pointer:coarse)"),Vb=e=>!bi(e),Ac=e=>Dc(e)||_c(e),Dc=e=>!!(e.cordova||e.phonegap||e.PhoneGap),_c=e=>{const t=e.Capacitor;return!!(t!=null&&t.isNative)},jb=e=>be(e,/electron/i),Hb=e=>{var t;return!!(!((t=e.matchMedia)===null||t===void 0)&&t.call(e,"(display-mode: standalone)").matches||e.navigator.standalone)},be=(e,t)=>t.test(e.navigator.userAgent),Ub=(e,t)=>{var n;return(n=e.matchMedia)===null||n===void 0?void 0:n.call(e,t).matches},qs={ipad:sr,iphone:Nb,ios:zb,android:Oc,phablet:Rb,tablet:Bb,cordova:Dc,capacitor:_c,electron:jb,pwa:Hb,mobile:bi,mobileweb:Lb,desktop:Vb,hybrid:Ac};let Wb;const V=e=>e&&Jg(e)||Wb;/*!
|
|
938
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
939
|
+
*/const ar=(e,t)=>{e.componentOnReady?e.componentOnReady().then(n=>t(n)):rt(()=>t(e))},Mc=(e,t=[])=>{const n={};return t.forEach(i=>{e.hasAttribute(i)&&(e.getAttribute(i)!==null&&(n[i]=e.getAttribute(i)),e.removeAttribute(i))}),n},lr=(e,t,n,i)=>{var o;if(typeof window<"u"){const r=window,s=(o=r==null?void 0:r.Ionic)===null||o===void 0?void 0:o.config;if(s){const a=s.get("_ael");if(a)return a(e,t,n,i);if(s._ael)return s._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},Pc=(e,t,n,i)=>{var o;if(typeof window<"u"){const r=window,s=(o=r==null?void 0:r.Ionic)===null||o===void 0?void 0:o.config;if(s){const a=s.get("_rel");if(a)return a(e,t,n,i);if(s._rel)return s._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},ye=(e,t=e)=>e.shadowRoot||t,rt=e=>typeof __zone_symbol__requestAnimationFrame=="function"?__zone_symbol__requestAnimationFrame(e):typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(e),qb=e=>!!e.shadowRoot&&!!e.attachShadow,Lc=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},Nc=e=>{if(e.focus(),e.classList.contains("ion-focusable")){const t=e.closest("ion-app");t&&t.setFocus([e])}},cr=(e,t)=>{let n;const i=e.getAttribute("aria-labelledby"),o=e.id;let r=i!==null&&i.trim()!==""?i:t+"-lbl",s=i!==null&&i.trim()!==""?document.getElementById(i):Lc(e);return s?(i===null&&(s.id=r),n=s.textContent,s.setAttribute("aria-hidden","true")):o.trim()!==""&&(s=document.querySelector(`label[for="${o}"]`),s&&(s.id!==""?r=s.id:s.id=r=`${o}-lbl`,n=s.textContent)),{label:s,labelId:r,labelText:n}},dr=(e,t,n,i,o)=>{if(e||qb(t)){let r=t.querySelector("input.aux-input");r||(r=t.ownerDocument.createElement("input"),r.type="hidden",r.classList.add("aux-input"),t.appendChild(r)),r.disabled=o,r.name=n,r.value=i||""}};/*!
|
|
940
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
941
|
+
*/let Yi;const Yb=()=>{if(typeof window>"u")return new Map;if(!Yi){const e=window;e.Ionicons=e.Ionicons||{},Yi=e.Ionicons.map=e.Ionicons.map||new Map}return Yi},Gb=e=>{let t=Gi(e.src);return t||(t=zc(e.name,e.icon,e.mode,e.ios,e.md),t?Zb(t):e.icon&&(t=Gi(e.icon),t||(t=Gi(e.icon[e.mode]),t))?t:null)},Zb=e=>{const t=Yb().get(e);return t||Hg(`svg/${e}.svg`)},zc=(e,t,n,i,o)=>(n=(n&&Pn(n))==="ios"?"ios":"md",i&&n==="ios"?e=Pn(i):o&&n==="md"?e=Pn(o):(!e&&t&&!Fc(t)&&(e=t),ri(e)&&(e=Pn(e))),!ri(e)||e.trim()===""||e.replace(/[a-z]|-|\d/gi,"")!==""?null:e),Gi=e=>ri(e)&&(e=e.trim(),Fc(e))?e:null,Fc=e=>e.length>0&&/(\/|\.)/.test(e),ri=e=>typeof e=="string",Pn=e=>e.toLowerCase(),Kb=(e,t=[])=>{const n={};return t.forEach(i=>{e.hasAttribute(i)&&(e.getAttribute(i)!==null&&(n[i]=e.getAttribute(i)),e.removeAttribute(i))}),n},Xb=e=>e&&e.dir!==""?e.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",Jb=e=>{const t=document.createElement("div");t.innerHTML=e;for(let i=t.childNodes.length-1;i>=0;i--)t.childNodes[i].nodeName.toLowerCase()!=="svg"&&t.removeChild(t.childNodes[i]);const n=t.firstElementChild;if(n&&n.nodeName.toLowerCase()==="svg"){const i=n.getAttribute("class")||"";if(n.setAttribute("class",(i+" s-ion-icon").trim()),Rc(n))return t.innerHTML}return""},Rc=e=>{if(e.nodeType===1){if(e.nodeName.toLowerCase()==="script")return!1;for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;if(ri(n)&&n.toLowerCase().indexOf("on")===0)return!1}for(let t=0;t<e.childNodes.length;t++)if(!Rc(e.childNodes[t]))return!1}return!0},Qb=e=>e.startsWith("data:image/svg+xml"),t0=e=>e.indexOf(";utf8,")!==-1,le=new Map,Ys=new Map;let Zi;const e0=(e,t)=>{let n=Ys.get(e);if(!n)if(typeof fetch<"u"&&typeof document<"u")if(Qb(e)&&t0(e)){Zi||(Zi=new DOMParser);const o=Zi.parseFromString(e,"text/html").querySelector("svg");return o&&le.set(e,o.outerHTML),Promise.resolve()}else n=fetch(e).then(i=>{if(i.ok)return i.text().then(o=>{o&&t!==!1&&(o=Jb(o)),le.set(e,o||"")});le.set(e,"")}),Ys.set(e,n);else return le.set(e,""),Promise.resolve();return n},n0=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}:host(.flip-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.icon-small){font-size:18px !important}:host(.icon-large){font-size:32px !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",i0=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.isVisible=!1,this.mode=o0(),this.lazy=!1,this.sanitize=!0,this.hasAriaHidden=()=>{const{el:e}=this;return e.hasAttribute("aria-hidden")&&e.getAttribute("aria-hidden")==="true"}}componentWillLoad(){this.inheritedAttributes=Kb(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(e,t,n){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const i=this.io=new window.IntersectionObserver(o=>{o[0].isIntersecting&&(i.disconnect(),this.io=void 0,n())},{rootMargin:t});i.observe(e)}else n()}loadIcon(){if(this.isVisible){const t=Gb(this);t&&(le.has(t)?this.svgContent=le.get(t):e0(t,this.sanitize).then(()=>this.svgContent=le.get(t)))}const e=this.iconName=zc(this.name,this.icon,this.mode,this.ios,this.md);e&&(this.ariaLabel=e.replace(/\-/g," "))}render(){const{iconName:e,ariaLabel:t,el:n,inheritedAttributes:i}=this,o=this.mode||"md",r=this.flipRtl||e&&(e.indexOf("arrow")>-1||e.indexOf("chevron")>-1)&&this.flipRtl!==!1;return p(Y,Object.assign({"aria-label":t!==void 0&&!this.hasAriaHidden()?t:null,role:"img",class:Object.assign(Object.assign({[o]:!0},r0(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":!!r&&Xb(n)})},i),this.svgContent?p("div",{class:"icon-inner",innerHTML:this.svgContent}):p("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return n0}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32],ariaLabel:[32]}]),o0=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",r0=e=>e?{"ion-color":!0,[`ion-color-${e}`]:!0}:null;function vi(){if(typeof customElements>"u")return;["ion-icon"].forEach(t=>{switch(t){case"ion-icon":customElements.get(t)||customElements.define(t,i0);break}})}/*!
|
|
942
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
943
|
+
*/class s0{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(t){var n;return new a0(this,this.newID(),t.name,(n=t.priority)!==null&&n!==void 0?n:0,!!t.disableScroll)}createBlocker(t={}){return new l0(this,this.newID(),t.disable,!!t.disableScroll)}start(t,n,i){return this.canStart(t)?(this.requestedStart.set(n,i),!0):(this.requestedStart.delete(n),!1)}capture(t,n,i){if(!this.start(t,n,i))return!1;const o=this.requestedStart;let r=-1e4;if(o.forEach(s=>{r=Math.max(r,s)}),r===i){this.capturedId=n,o.clear();const s=new CustomEvent("ionGestureCaptured",{detail:{gestureName:t}});return document.dispatchEvent(s),!0}return o.delete(n),!1}release(t){this.requestedStart.delete(t),this.capturedId===t&&(this.capturedId=void 0)}disableGesture(t,n){let i=this.disabledGestures.get(t);i===void 0&&(i=new Set,this.disabledGestures.set(t,i)),i.add(n)}enableGesture(t,n){const i=this.disabledGestures.get(t);i!==void 0&&i.delete(n)}disableScroll(t){this.disabledScroll.add(t),this.disabledScroll.size===1&&document.body.classList.add(Gs)}enableScroll(t){this.disabledScroll.delete(t),this.disabledScroll.size===0&&document.body.classList.remove(Gs)}canStart(t){return!(this.capturedId!==void 0||this.isDisabled(t))}isCaptured(){return this.capturedId!==void 0}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(t){const n=this.disabledGestures.get(t);return!!(n&&n.size>0)}newID(){return this.gestureId++,this.gestureId}}class a0{constructor(t,n,i,o,r){this.id=n,this.name=i,this.disableScroll=r,this.priority=o*1e6+n,this.ctrl=t}canStart(){return this.ctrl?this.ctrl.canStart(this.name):!1}start(){return this.ctrl?this.ctrl.start(this.name,this.id,this.priority):!1}capture(){if(!this.ctrl)return!1;const t=this.ctrl.capture(this.name,this.id,this.priority);return t&&this.disableScroll&&this.ctrl.disableScroll(this.id),t}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class l0{constructor(t,n,i,o){this.id=n,this.disable=i,this.disableScroll=o,this.ctrl=t}block(){if(this.ctrl){if(this.disable)for(const t of this.disable)this.ctrl.disableGesture(t,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const t of this.disable)this.ctrl.enableGesture(t,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Gs="backdrop-no-scroll",Bc=new s0;/*!
|
|
944
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
945
|
+
*/const c0=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",d0=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",u0=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionBackdropTap=N(this,"ionBackdropTap",7),this.blocker=Bc.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onMouseDown(e){this.emitTap(e)}emitTap(e){this.stopPropagation&&(e.preventDefault(),e.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){const e=V(this);return p(Y,{tabindex:"-1","aria-hidden":"true",class:{[e]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}static get style(){return{ios:c0,md:d0}}},[33,"ion-backdrop",{visible:[4],tappable:[4],stopPropagation:[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]);function yi(){if(typeof customElements>"u")return;["ion-backdrop"].forEach(t=>{switch(t){case"ion-backdrop":customElements.get(t)||customElements.define(t,u0);break}})}/*!
|
|
946
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
947
|
+
*/const xn=(e,t)=>t.closest(e)!==null,Pt=(e,t)=>typeof e=="string"&&e.length>0?Object.assign({"ion-color":!0,[`ion-color-${e}`]:!0},t):t,h0=e=>e!==void 0?(Array.isArray(e)?e:e.split(" ")).filter(n=>n!=null).map(n=>n.trim()).filter(n=>n!==""):[],At=e=>{const t={};return h0(e).forEach(n=>t[n]=!0),t},f0=/^[a-z][a-z0-9+\-.]*:/,Vc=async(e,t,n,i)=>{if(e!=null&&e[0]!=="#"&&!f0.test(e)){const o=document.querySelector("ion-router");if(o)return t!=null&&t.preventDefault(),o.push(e,n,i)}return!1};/*!
|
|
948
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
949
|
+
*/const p0=(e,...t)=>console.warn(`[Ionic Warning]: ${e}`,...t),m0=(e,...t)=>console.error(`[Ionic Error]: ${e}`,...t);/*!
|
|
950
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
951
|
+
*/const g0=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}",b0=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="bounded"}async addRipple(e,t){return new Promise(n=>{$c(()=>{const i=this.el.getBoundingClientRect(),o=i.width,r=i.height,s=Math.sqrt(o*o+r*r),a=Math.max(r,o),l=this.unbounded?a:s+y0,c=Math.floor(a*w0),d=l/c;let u=e-i.left,h=t-i.top;this.unbounded&&(u=o*.5,h=r*.5);const g=u-c*.5,k=h-c*.5,b=o*.5-u,C=r*.5-h;oi(()=>{const $=document.createElement("div");$.classList.add("ripple-effect");const _=$.style;_.top=k+"px",_.left=g+"px",_.width=_.height=c+"px",_.setProperty("--final-scale",`${d}`),_.setProperty("--translate-end",`${b}px, ${C}px`),(this.el.shadowRoot||this.el).appendChild($),setTimeout(()=>{n(()=>{v0($)})},225+100)})})})}get unbounded(){return this.type==="unbounded"}render(){const e=V(this);return p(Y,{role:"presentation",class:{[e]:!0,unbounded:this.unbounded}})}get el(){return this}static get style(){return g0}},[1,"ion-ripple-effect",{type:[1],addRipple:[64]}]),v0=e=>{e.classList.add("fade-out"),setTimeout(()=>{e.remove()},200)},y0=10,w0=.5;function Ue(){if(typeof customElements>"u")return;["ion-ripple-effect"].forEach(t=>{switch(t){case"ion-ripple-effect":customElements.get(t)||customElements.define(t,b0);break}})}/*!
|
|
952
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
953
|
+
*/const x0=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));margin-left:16px;margin-right:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1), -webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:14px;-webkit-box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}:host(.ion-activated){-webkit-transform:scale3d(0.97, 0.97, 1);transform:scale3d(0.97, 0.97, 1)}",k0=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:14px;-webkit-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}",E0=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAriaAttributes={},this.button=!1,this.type="button",this.disabled=!1,this.routerDirection="forward"}componentWillLoad(){this.inheritedAriaAttributes=Mc(this.el,["aria-label"])}isClickable(){return this.href!==void 0||this.button}renderCard(e){const t=this.isClickable();if(!t)return[p("slot",null)];const{href:n,routerAnimation:i,routerDirection:o,inheritedAriaAttributes:r}=this,s=t?n===void 0?"button":"a":"div",a=s==="button"?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target};return p(s,Object.assign({},a,r,{class:"card-native",part:"native",disabled:this.disabled,onClick:l=>Vc(n,l,o,i)}),p("slot",null),t&&e==="md"&&p("ion-ripple-effect",null))}render(){const e=V(this);return p(Y,{class:Pt(this.color,{[e]:!0,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(e))}get el(){return this}static get style(){return{ios:x0,md:k0}}},[33,"ion-card",{color:[513],button:[4],type:[1],disabled:[4],download:[1],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1]}]);function S0(){if(typeof customElements>"u")return;["ion-card","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-card":customElements.get(t)||customElements.define(t,E0);break;case"ion-ripple-effect":customElements.get(t)||Ue();break}})}const I0=S0;/*!
|
|
954
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
955
|
+
*/const T0="ion-card-content{display:block;position:relative}.card-content-ios{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;font-size:16px;line-height:1.4}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.card-content-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px}ion-card-header+.card-content-ios{padding-top:0}",C0="ion-card-content{display:block;position:relative}.card-content-md{padding-left:16px;padding-right:16px;padding-top:13px;padding-bottom:13px;font-size:14px;line-height:1.5}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.card-content-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}",$0=Z(class extends K{constructor(){super(),this.__registerHost()}render(){const e=V(this);return p(Y,{class:{[e]:!0,[`card-content-${e}`]:!0}})}static get style(){return{ios:T0,md:C0}}},[32,"ion-card-content"]);function O0(){if(typeof customElements>"u")return;["ion-card-content"].forEach(t=>{switch(t){case"ion-card-content":customElements.get(t)||customElements.define(t,$0);break}})}const A0=O0;/*!
|
|
956
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
957
|
+
*/const D0=":host{--background:transparent;--color:inherit;display:block;position:relative;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px)}}",_0=":host{--background:transparent;--color:inherit;display:block;position:relative;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{padding-left:16px;padding-right:16px;padding-top:16px;padding-bottom:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}",M0=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.translucent=!1}render(){const e=V(this);return p(Y,{class:Pt(this.color,{"card-header-translucent":this.translucent,"ion-inherit-color":!0,[e]:!0})},p("slot",null))}static get style(){return{ios:D0,md:_0}}},[33,"ion-card-header",{color:[513],translucent:[4]}]);function P0(){if(typeof customElements>"u")return;["ion-card-header"].forEach(t=>{switch(t){case"ion-card-header":customElements.get(t)||customElements.define(t,M0);break}})}const L0=P0;/*!
|
|
958
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
959
|
+
*/const N0=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-text-color, #000);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:28px;font-weight:700;line-height:1.2}",z0=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850, #262626);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;line-height:1.2}",F0=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const e=V(this);return p(Y,{role:"heading","aria-level":"2",class:Pt(this.color,{"ion-inherit-color":!0,[e]:!0})},p("slot",null))}static get style(){return{ios:N0,md:z0}}},[33,"ion-card-title",{color:[513]}]);function R0(){if(typeof customElements>"u")return;["ion-card-title"].forEach(t=>{switch(t){case"ion-card-title":customElements.get(t)||customElements.define(t,F0);break}})}const B0=R0;/*!
|
|
960
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
961
|
+
*/const V0=":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:1px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--background:var(--ion-item-background, var(--ion-background-color, #fff));--size:26px;width:var(--size);height:var(--size)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.in-item[slot=start]){margin-left:2px;margin-right:20px;margin-top:8px;margin-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:20px;margin-inline-end:20px}}",j0=":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.51);--checkmark-width:3;--background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px;width:var(--size);height:var(--size)}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:18px;margin-bottom:18px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}",H0=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=N(this,"ionChange",7),this.ionFocus=N(this,"ionFocus",7),this.ionBlur=N(this,"ionBlur",7),this.ionStyle=N(this,"ionStyle",7),this.inputId=`ion-cb-${U0++}`,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.onClick=e=>{e.preventDefault(),this.setFocus(),this.checked=!this.checked,this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.emitStyle()}checkedChanged(e){this.ionChange.emit({checked:e,value:this.value}),this.emitStyle()}disabledChanged(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"checkbox-checked":this.checked,"interactive-disabled":this.disabled})}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{color:e,checked:t,disabled:n,el:i,indeterminate:o,inputId:r,name:s,value:a}=this,l=V(this),{label:c,labelId:d,labelText:u}=cr(i,r);dr(!0,i,s,t?a:"",n);let h=o?p("path",{d:"M6 12L18 12",part:"mark"}):p("path",{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return l==="md"&&(h=o?p("path",{d:"M2 12H22",part:"mark"}):p("path",{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),p(Y,{onClick:this.onClick,"aria-labelledby":c?d:null,"aria-checked":`${t}`,"aria-hidden":n?"true":null,role:"checkbox",class:Pt(e,{[l]:!0,"in-item":xn("ion-item",i),"checkbox-checked":t,"checkbox-disabled":n,"checkbox-indeterminate":o,interactive:!0})},p("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},h),p("label",{htmlFor:r},u),p("input",{type:"checkbox","aria-checked":`${t}`,disabled:n,id:r,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:g=>this.focusEl=g}))}get el(){return this}static get watchers(){return{checked:["checkedChanged"],disabled:["disabledChanged"]}}static get style(){return{ios:V0,md:j0}}},[33,"ion-checkbox",{color:[513],name:[1],checked:[1028],indeterminate:[1028],disabled:[4],value:[8]}]);let U0=0;function jc(){if(typeof customElements>"u")return;["ion-checkbox"].forEach(t=>{switch(t){case"ion-checkbox":customElements.get(t)||customElements.define(t,H0);break}})}/*!
|
|
962
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
963
|
+
*/const Ln=typeof window<"u"?window:void 0;Ln&&(Ln.CSS&&Ln.CSS.supports&&Ln.CSS.supports("--a: 0"));/*!
|
|
964
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
965
|
+
*/const W0=":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6)}",q0=":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:14px}",Y0=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const e=V(this);return p(Y,{class:Pt(this.color,{[e]:!0})},p("slot",null))}static get style(){return{ios:W0,md:q0}}},[33,"ion-note",{color:[513]}]);function ur(){if(typeof customElements>"u")return;["ion-note"].forEach(t=>{switch(t){case"ion-note":customElements.get(t)||customElements.define(t,Y0);break}})}/*!
|
|
966
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
967
|
+
*/const G0=':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:20px;--inner-padding-end:10px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:#000;--background-focused:#000;--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:17px}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){margin-left:0;margin-right:20px;margin-top:2px;margin-bottom:2px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:20px;margin-inline-end:20px}}::slotted([slot=end]){margin-left:10px;margin-right:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:0px;--padding-bottom:0px;--padding-start:.5em;--padding-end:.5em;height:24px;font-size:13px}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:0px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0px;margin-inline-start:0px}}::slotted(ion-label){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}',Z0=':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:16px;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));left:var(--position-offset);top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));-webkit-transition:none;transition:none}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;-ms-flex-item-align:start;align-self:flex-start}::slotted([slot=start]){margin-right:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted([slot=end]){margin-left:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;-webkit-margin-start:32px;margin-inline-start:32px}}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:24px}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){margin-right:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted(ion-icon[slot=end]){margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:8px;margin-inline-end:8px}}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:11px}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){padding-right:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-note[slot=start]){padding-right:unset;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-note[slot=end]){padding-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-note[slot=end]){padding-left:unset;-webkit-padding-start:16px;padding-inline-start:16px}}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:unset;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}::slotted(.button-small){--padding-top:0;--padding-bottom:0;--padding-start:.6em;--padding-end:.6em;height:25px;font-size:12px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:unset;-webkit-padding-start:32px;padding-inline-start:32px}}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){-webkit-transform:translateY(-14px);transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{letter-spacing:0.0333333333em}',K0=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.labelColorStyles={},this.itemStyles=new Map,this.inheritedAriaAttributes={},this.multipleInputs=!1,this.focusable=!0,this.button=!1,this.detailIcon=Ws,this.disabled=!1,this.counter=!1,this.routerDirection="forward",this.type="button"}counterFormatterChanged(){this.updateCounterOutput(this.getFirstInput())}handleIonChange(e){this.counter&&e.target===this.getFirstInput()&&this.updateCounterOutput(e.target)}labelColorChanged(e){const{color:t}=this;t===void 0&&(this.labelColorStyles=e.detail)}itemStyle(e){e.stopPropagation();const t=e.target.tagName,n=e.detail,i={},o=this.itemStyles.get(t)||{};let r=!1;Object.keys(n).forEach(s=>{if(n[s]){const a=`item-${s}`;o[a]||(r=!0),i[a]=!0}}),!r&&Object.keys(i).length!==Object.keys(o).length&&(r=!0),r&&(this.itemStyles.set(t,i),ni(this))}connectedCallback(){this.counter&&this.updateCounterOutput(this.getFirstInput()),this.hasStartEl()}componentDidUpdate(){const e=this.getFirstInput();e!==void 0&&!this.clickListener&&(this.clickListener=t=>this.delegateFocus(t,e),this.el.addEventListener("click",this.clickListener))}disconnectedCallback(){this.getFirstInput()!==void 0&&this.clickListener&&(this.el.removeEventListener("click",this.clickListener),this.clickListener=void 0)}componentWillLoad(){this.inheritedAriaAttributes=Mc(this.el,["aria-label"])}componentDidLoad(){rt(()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()})}setMultipleInputs(){const e=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),t=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),n=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=e.length+t.length>1||e.length+n.length>1||e.length>0&&this.isClickable()}hasCover(){return this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio").length===1&&!this.multipleInputs}isClickable(){return this.href!==void 0||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){const e=this.el.querySelector(".ion-focusable");return this.canActivate()||e!==null}getFirstInput(){return this.el.querySelectorAll("ion-input, ion-textarea")[0]}delegateFocus(e,t){const n=e.target.tagName==="ION-ITEM";let i=!1;document.activeElement&&(i=t.querySelector("input, textarea")===document.activeElement),n&&(i||!this.multipleInputs)&&(t.fireFocusEvents=!1,t.setBlur(),t.setFocus(),rt(()=>{t.fireFocusEvents=!0}))}updateCounterOutput(e){var t,n;const{counter:i,counterFormatter:o,defaultCounterFormatter:r}=this;if(i&&!this.multipleInputs&&(e==null?void 0:e.maxlength)!==void 0){const s=(n=(t=e==null?void 0:e.value)===null||t===void 0?void 0:t.toString().length)!==null&&n!==void 0?n:0;if(o===void 0)this.counterString=r(s,e.maxlength);else try{this.counterString=o(s,e.maxlength)}catch(a){m0("Exception in provided `counterFormatter`.",a),this.counterString=r(s,e.maxlength)}}}defaultCounterFormatter(e,t){return`${e} / ${t}`}hasStartEl(){this.el.querySelector('[slot="start"]')!==null&&this.el.classList.add("item-has-start-slot")}render(){const{counterString:e,detail:t,detailIcon:n,download:i,fill:o,labelColorStyles:r,lines:s,disabled:a,href:l,rel:c,shape:d,target:u,routerAnimation:h,routerDirection:g,inheritedAriaAttributes:k}=this,b={},C=V(this),$=this.isClickable(),_=this.canActivate(),z=$?l===void 0?"button":"a":"div",P=z==="button"?{type:this.type}:{download:i,href:l,rel:c,target:u},F=$?{onClick:w=>{Vc(l,w,g,h)}}:{},I=t!==void 0?t:C==="ios"&&$;this.itemStyles.forEach(w=>{Object.assign(b,w)});const v=a||b["item-interactive-disabled"]?"true":null,O=o||"none",E=xn("ion-list",this.el);return p(Y,{"aria-disabled":v,class:Object.assign(Object.assign(Object.assign({},b),r),Pt(this.color,{item:!0,[C]:!0,"item-lines-default":s===void 0,[`item-lines-${s}`]:s!==void 0,[`item-fill-${O}`]:!0,[`item-shape-${d}`]:d!==void 0,"item-disabled":a,"in-list":E,"item-multiple-inputs":this.multipleInputs,"ion-activatable":_,"ion-focusable":this.focusable,"item-rtl":document.dir==="rtl"})),role:E?"listitem":null},p(z,Object.assign({},P,k,{class:"item-native",part:"native",disabled:a},F),p("slot",{name:"start"}),p("div",{class:"item-inner"},p("div",{class:"input-wrapper"},p("slot",null)),p("slot",{name:"end"}),I&&p("ion-icon",{icon:n,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":n===Ws}),p("div",{class:"item-inner-highlight"})),_&&C==="md"&&p("ion-ripple-effect",null),p("div",{class:"item-highlight"})),p("div",{class:"item-bottom"},p("slot",{name:"error"}),p("slot",{name:"helper"}),e&&p("ion-note",{class:"item-counter"},e)))}static get delegatesFocus(){return!0}get el(){return this}static get watchers(){return{counterFormatter:["counterFormatterChanged"]}}static get style(){return{ios:G0,md:Z0}}},[49,"ion-item",{color:[513],button:[4],detail:[4],detailIcon:[1,"detail-icon"],disabled:[4],download:[1],fill:[1],shape:[1],href:[1],rel:[1],lines:[1],counter:[4],routerAnimation:[16],routerDirection:[1,"router-direction"],target:[1],type:[1],counterFormatter:[16],multipleInputs:[32],focusable:[32],counterString:[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]]);function hr(){if(typeof customElements>"u")return;["ion-item","ion-icon","ion-note","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-item":customElements.get(t)||customElements.define(t,K0);break;case"ion-icon":customElements.get(t)||vi();break;case"ion-note":customElements.get(t)||ur();break;case"ion-ripple-effect":customElements.get(t)||Ue();break}})}/*!
|
|
968
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
969
|
+
*/const X0=".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{white-space:normal}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{font-size:14px;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:14px}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:22px;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:17px;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",J0='.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{white-space:normal}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:20px;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}',Q0=Z(class extends K{constructor(){super(),this.__registerHost(),this.ionColor=N(this,"ionColor",7),this.ionStyle=N(this,"ionStyle",7),this.inRange=!1,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate=this.position==="floating",this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout(()=>{this.noAnimate=!1},1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:e}=this;this.ionColor.emit({"item-label-color":e!==void 0,[`ion-color-${e}`]:e!==void 0})}emitStyle(){const{inRange:e,position:t}=this;e||this.ionStyle.emit({label:!0,[`label-${t}`]:t!==void 0})}render(){const e=this.position,t=V(this);return p(Y,{class:Pt(this.color,{[t]:!0,"in-item-color":xn("ion-item.ion-color",this.el),[`label-${e}`]:e!==void 0,"label-no-animate":this.noAnimate,"label-rtl":document.dir==="rtl"})})}get el(){return this}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}static get style(){return{ios:X0,md:J0}}},[34,"ion-label",{color:[513],position:[1],noAnimate:[32]}]);function fr(){if(typeof customElements>"u")return;["ion-label"].forEach(t=>{switch(t){case"ion-label":customElements.get(t)||customElements.define(t,Q0);break}})}/*!
|
|
970
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
971
|
+
*/const wi={getEngine(){var e;const t=window;return t.TapticEngine||((e=t.Capacitor)===null||e===void 0?void 0:e.isPluginAvailable("Haptics"))&&t.Capacitor.Plugins.Haptics},available(){var e;const t=window;return this.getEngine()?((e=t.Capacitor)===null||e===void 0?void 0:e.getPlatform())==="web"?typeof navigator<"u"&&navigator.vibrate!==void 0:!0:!1},isCordova(){return!!window.TapticEngine},isCapacitor(){return!!window.Capacitor},impact(e){const t=this.getEngine();if(!t)return;const n=this.isCapacitor()?e.style.toUpperCase():e.style;t.impact({style:n})},notification(e){const t=this.getEngine();if(!t)return;const n=this.isCapacitor()?e.style.toUpperCase():e.style;t.notification({style:n})},selection(){this.impact({style:"light"})},selectionStart(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionStart():e.gestureSelectionStart())},selectionChanged(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionChanged():e.gestureSelectionChanged())},selectionEnd(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionEnd():e.gestureSelectionEnd())}},pr=()=>wi.available(),tv=()=>{pr()&&wi.selectionStart()},ev=()=>{pr()&&wi.selectionChanged()},nv=()=>{pr()&&wi.selectionEnd()};/*!
|
|
972
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
973
|
+
*/const iv=async(e,t,n,i,o,r)=>{var s;if(e)return e.attachViewToDom(t,n,o,i);if(!r&&typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("framework delegate is missing");const a=typeof n=="string"?(s=t.ownerDocument)===null||s===void 0?void 0:s.createElement(n):n;return i&&i.forEach(l=>a.classList.add(l)),o&&Object.assign(a,o),t.appendChild(a),await new Promise(l=>ar(a,l)),a},ov=(e,t)=>{if(t){if(e){const n=t.parentElement;return e.removeViewFromDom(n,t)}t.remove()}return Promise.resolve()},rv=()=>{let e,t;return{attachViewToDom:async(o,r,s={},a=[])=>{var l,c;if(e=o,r){const u=typeof r=="string"?(l=e.ownerDocument)===null||l===void 0?void 0:l.createElement(r):r;a.forEach(h=>u.classList.add(h)),Object.assign(u,s),e.appendChild(u),await new Promise(h=>ar(u,h))}else if(e.children.length>0&&!e.children[0].classList.contains("ion-delegate-host")){const h=(c=e.ownerDocument)===null||c===void 0?void 0:c.createElement("div");h.classList.add("ion-delegate-host"),a.forEach(g=>h.classList.add(g)),h.append(...e.children),e.appendChild(h)}const d=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),e.parentNode.insertBefore(t,e),d.appendChild(e),e},removeViewFromDom:()=>(e&&t&&(t.parentNode.insertBefore(e,t),t.remove()),Promise.resolve())}};/*!
|
|
974
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
975
|
+
*/const sv=100;/*!
|
|
976
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
977
|
+
*/let $o=0;const Oo=new WeakMap,mr=e=>({create(t){return dv(e,t)},dismiss(t,n,i){return pv(document,t,n,e,i)},async getTop(){return fn(document,e)}}),av=mr("ion-alert"),lv=mr("ion-action-sheet"),cv=mr("ion-popover"),gr=e=>{typeof document<"u"&&fv(document);const t=$o++;e.overlayIndex=t,e.hasAttribute("id")||(e.id=`ion-overlay-${t}`)},dv=(e,t)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(e).then(()=>{const n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,Object.assign(Object.assign({},t),{hasController:!0})),Uc(document).appendChild(n),new Promise(i=>ar(n,i))}):Promise.resolve(),hn='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Ao=(e,t)=>{let n=e.querySelector(hn);const i=n==null?void 0:n.shadowRoot;i&&(n=i.querySelector(hn)||n),n?Nc(n):t.focus()},uv=e=>e.classList.contains("overlay-hidden"),Zs=(e,t)=>{const n=Array.from(e.querySelectorAll(hn));let i=n.length>0?n[n.length-1]:null;const o=i==null?void 0:i.shadowRoot;o&&(i=o.querySelector(hn)||i),i?i.focus():t.focus()},hv=(e,t)=>{const n=fn(t,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),i=e.target;if(!n||!i||n.classList.contains("ion-disable-focus-trap"))return;const o=()=>{if(n===i)n.lastFocus=void 0;else{const s=ye(n);if(!s.contains(i))return;const a=s.querySelector(".ion-overlay-wrapper");if(!a)return;if(a.contains(i))n.lastFocus=i;else{const l=n.lastFocus;Ao(a,n),l===t.activeElement&&Zs(a,n),n.lastFocus=t.activeElement}}},r=()=>{if(n.contains(i))n.lastFocus=i;else{const s=n.lastFocus;Ao(n,n),s===t.activeElement&&Zs(n,n),n.lastFocus=t.activeElement}};n.shadowRoot?r():o()},fv=e=>{$o===0&&($o=1,e.addEventListener("focus",t=>{hv(t,e)},!0),e.addEventListener("ionBackButton",t=>{const n=fn(e);n!=null&&n.backdropDismiss&&t.detail.register(sv,()=>n.dismiss(void 0,Ne))}),e.addEventListener("keyup",t=>{if(t.key==="Escape"){const n=fn(e);n!=null&&n.backdropDismiss&&n.dismiss(void 0,Ne)}}))},pv=(e,t,n,i,o)=>{const r=fn(e,i,o);return r?r.dismiss(t,n):Promise.reject("overlay does not exist")},mv=(e,t)=>(t===void 0&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(n=>n.overlayIndex>0)),fn=(e,t,n)=>{const i=mv(e,t).filter(o=>!uv(o));return n===void 0?i[i.length-1]:i.find(o=>o.id===n)},Hc=(e=!1)=>{const n=Uc(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");n&&(e?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"))},br=async(e,t,n,i,o)=>{var r,s;if(e.presented)return;Hc(!0),e.presented=!0,e.willPresent.emit(),(r=e.willPresentShorthand)===null||r===void 0||r.emit();const a=V(e),l=e.enterAnimation?e.enterAnimation:He.get(t,a==="ios"?n:i);await Wc(e,l,e.el,o)&&(e.didPresent.emit(),(s=e.didPresentShorthand)===null||s===void 0||s.emit()),e.el.tagName!=="ION-TOAST"&&gv(e.el),e.keyboardClose&&(document.activeElement===null||!e.el.contains(document.activeElement))&&e.el.focus()},gv=async e=>{let t=document.activeElement;if(!t)return;const n=t==null?void 0:t.shadowRoot;n&&(t=n.querySelector(hn)||t),await e.onDidDismiss(),t.focus()},vr=async(e,t,n,i,o,r,s)=>{var a,l;if(!e.presented)return!1;Hc(!1),e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n}),(a=e.willDismissShorthand)===null||a===void 0||a.emit({data:t,role:n});const c=V(e),d=e.leaveAnimation?e.leaveAnimation:He.get(i,c==="ios"?o:r);n!==yv&&await Wc(e,d,e.el,s),e.didDismiss.emit({data:t,role:n}),(l=e.didDismissShorthand)===null||l===void 0||l.emit({data:t,role:n}),Oo.delete(e),e.el.classList.add("overlay-hidden"),e.el.style.removeProperty("pointer-events"),e.el.lastFocus!==void 0&&(e.el.lastFocus=void 0)}catch(c){console.error(c)}return e.el.remove(),!0},Uc=e=>e.querySelector("ion-app")||e.body,Wc=async(e,t,n,i)=>{n.classList.remove("overlay-hidden");const o=e.el,r=t(o,i);(!e.animated||!He.getBoolean("animated",!0))&&r.duration(0),e.keyboardClose&&r.beforeAddWrite(()=>{const a=n.ownerDocument.activeElement;a!=null&&a.matches("input,ion-input, ion-textarea")&&a.blur()});const s=Oo.get(e)||[];return Oo.set(e,[...s,r]),await r.play(),!0},Le=(e,t)=>{let n;const i=new Promise(o=>n=o);return bv(e,t,o=>{n(o.detail)}),i},bv=(e,t,n)=>{const i=o=>{Pc(e,t,i),n(o)};lr(e,t,i)},si=e=>e==="cancel"||e===Ne,vv=e=>e(),an=(e,t)=>{if(typeof e=="function")return He.get("_zoneGate",vv)(()=>{try{return e(t)}catch(i){throw i}})},Ne="backdrop",yv="gesture";/*!
|
|
978
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
979
|
+
*/const wv="ionViewWillEnter",xv="ionViewDidEnter",kv="ionViewWillLeave",Ev="ionViewDidLeave",qc=async e=>{const t=e;if(t){if(t.componentOnReady!=null){if(await t.componentOnReady()!=null)return}else if(t.__registerHost!=null){await new Promise(i=>rt(i));return}await Promise.all(Array.from(t.children).map(qc))}};/*!
|
|
980
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
981
|
+
*/const dt=typeof window<"u"?window:void 0;/*!
|
|
982
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
983
|
+
*/let Ki;const Sv=e=>(e.forEach(t=>{for(const n in t)if(t.hasOwnProperty(n)){const i=t[n];if(n==="easing"){const o="animation-timing-function";t[o]=i,delete t[n]}else{const o=Iv(n);o!==n&&(t[o]=i,delete t[n])}}}),e),Iv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yr=e=>{if(Ki===void 0){const t=e.style.animationName!==void 0,n=e.style.webkitAnimationName!==void 0;Ki=!t&&n?"-webkit-":""}return Ki},q=(e,t,n)=>{const i=t.startsWith("animation")?yr(e):"";e.style.setProperty(i+t,n)},It=(e,t)=>{const n=t.startsWith("animation")?yr(e):"";e.style.removeProperty(n+t)},Tv=(e,t)=>{let n;const i={passive:!0},o=()=>{n&&n()},r=s=>{e===s.target&&(o(),t(s))};return e&&(e.addEventListener("webkitAnimationEnd",r,i),e.addEventListener("animationend",r,i),n=()=>{e.removeEventListener("webkitAnimationEnd",r,i),e.removeEventListener("animationend",r,i)}),o},Cv=(e=[])=>e.map(t=>{const n=t.offset,i=[];for(const o in t)t.hasOwnProperty(o)&&o!=="offset"&&i.push(`${o}: ${t[o]};`);return`${n*100}% { ${i.join(" ")} }`}).join(" "),Ks=[],$v=e=>{let t=Ks.indexOf(e);return t<0&&(t=Ks.push(e)-1),`ion-animation-${t}`},Ov=e=>{const t=e.getRootNode!==void 0?e.getRootNode():e;return t.head||t},Av=(e,t,n)=>{var i;const o=Ov(n),r=yr(n),s=o.querySelector("#"+e);if(s)return s;const a=((i=n.ownerDocument)!==null&&i!==void 0?i:document).createElement("style");return a.id=e,a.textContent=`@${r}keyframes ${e} { ${t} } @${r}keyframes ${e}-alt { ${t} }`,o.appendChild(a),a},Nn=(e=[],t)=>{if(t!==void 0){const n=Array.isArray(t)?t:[t];return[...e,...n]}return e},M=e=>{let t,n,i,o,r,s,a=[],l=[],c=[],d=!1,u,h={},g=[],k=[],b={},C=0,$=!1,_=!1,z,P,F,I,v=!0,O=!1,E=!0,w,S,A=!1;const tt=e,pt=[],Vt=[],H=[],j=[],We=[],kn=[],qe=[],Ye=[],En=[],mt=[],Ge=typeof AnimationEffect=="function"||dt!==void 0&&typeof dt.AnimationEffect=="function",ut=typeof Element=="function"&&typeof Element.prototype.animate=="function"&&Ge,xr=100,kr=()=>mt,ld=f=>(j.forEach(y=>{y.destroy(f)}),cd(f),H.length=0,j.length=0,a.length=0,hd(),d=!1,E=!0,S),cd=f=>{Er(),f&&Sr()},dd=()=>{$=!1,_=!1,E=!0,P=void 0,F=void 0,I=void 0,C=0,O=!1,v=!0,A=!1},ud=()=>C!==0&&!A,Sn=(f,y)=>((y!=null&&y.oneTimeCallback?Vt:pt).push({c:f,o:y}),S),hd=()=>(pt.length=0,Vt.length=0,S),Er=()=>{if(ut)mt.forEach(f=>{f.cancel()}),mt.length=0;else{const f=H.slice();rt(()=>{f.forEach(y=>{It(y,"animation-name"),It(y,"animation-duration"),It(y,"animation-timing-function"),It(y,"animation-iteration-count"),It(y,"animation-delay"),It(y,"animation-play-state"),It(y,"animation-fill-mode"),It(y,"animation-direction")})})}},Sr=()=>{We.forEach(f=>{f!=null&&f.parentNode&&f.parentNode.removeChild(f)}),We.length=0},fd=f=>(kn.push(f),S),pd=f=>(qe.push(f),S),md=f=>(Ye.push(f),S),gd=f=>(En.push(f),S),bd=f=>(l=Nn(l,f),S),vd=f=>(c=Nn(c,f),S),yd=(f={})=>(h=f,S),wd=(f=[])=>{for(const y of f)h[y]="";return S},xd=f=>(g=Nn(g,f),S),kd=f=>(k=Nn(k,f),S),Ed=(f={})=>(b=f,S),Sd=(f=[])=>{for(const y of f)b[y]="";return S},Ze=()=>r!==void 0?r:u?u.getFill():"both",we=()=>P!==void 0?P:s!==void 0?s:u?u.getDirection():"normal",Ke=()=>$?"linear":i!==void 0?i:u?u.getEasing():"linear",kt=()=>_?0:F!==void 0?F:n!==void 0?n:u?u.getDuration():0,jt=()=>o!==void 0?o:u?u.getIterations():1,xe=()=>I!==void 0?I:t!==void 0?t:u?u.getDelay():0,Id=()=>a,Td=f=>(s=f,gt(!0),S),Cd=f=>(r=f,gt(!0),S),$d=f=>(t=f,gt(!0),S),Od=f=>(i=f,gt(!0),S),Ad=f=>(!ut&&f===0&&(f=1),n=f,gt(!0),S),Dd=f=>(o=f,gt(!0),S),_d=f=>(u=f,S),Md=f=>{if(f!=null)if(f.nodeType===1)H.push(f);else if(f.length>=0)for(let y=0;y<f.length;y++)H.push(f[y]);else console.error("Invalid addElement value");return S},Pd=f=>{if(f!=null)if(Array.isArray(f))for(const y of f)y.parent(S),j.push(y);else f.parent(S),j.push(f);return S},Ld=f=>{const y=a!==f;return a=f,y&&Nd(a),S},Nd=f=>{ut?kr().forEach(y=>{if(y.effect.setKeyframes)y.effect.setKeyframes(f);else{const T=new KeyframeEffect(y.effect.target,f,y.effect.getTiming());y.effect=T}}):Ir()},zd=()=>{kn.forEach(Q=>Q()),qe.forEach(Q=>Q());const f=l,y=c,T=h;H.forEach(Q=>{const nt=Q.classList;f.forEach(bt=>nt.add(bt)),y.forEach(bt=>nt.remove(bt));for(const bt in T)T.hasOwnProperty(bt)&&q(Q,bt,T[bt])})},Fd=()=>{ki(),Ye.forEach(nt=>nt()),En.forEach(nt=>nt());const f=v?1:0,y=g,T=k,Q=b;H.forEach(nt=>{const bt=nt.classList;y.forEach(Qt=>bt.add(Qt)),T.forEach(Qt=>bt.remove(Qt));for(const Qt in Q)Q.hasOwnProperty(Qt)&&q(nt,Qt,Q[Qt])}),pt.forEach(nt=>nt.c(f,S)),Vt.forEach(nt=>nt.c(f,S)),Vt.length=0,E=!0,v&&(O=!0),v=!0},ke=()=>{C!==0&&(C--,C===0&&(Fd(),u&&u.animationFinish()))},Ir=(f=!0)=>{Sr();const y=Sv(a);H.forEach(T=>{if(y.length>0){const Q=Cv(y);w=e!==void 0?e:$v(Q);const nt=Av(w,Q,T);We.push(nt),q(T,"animation-duration",`${kt()}ms`),q(T,"animation-timing-function",Ke()),q(T,"animation-delay",`${xe()}ms`),q(T,"animation-fill-mode",Ze()),q(T,"animation-direction",we());const bt=jt()===1/0?"infinite":jt().toString();q(T,"animation-iteration-count",bt),q(T,"animation-play-state","paused"),f&&q(T,"animation-name",`${nt.id}-alt`),rt(()=>{q(T,"animation-name",nt.id||null)})}})},Rd=()=>{H.forEach(f=>{const y=f.animate(a,{id:tt,delay:xe(),duration:kt(),easing:Ke(),iterations:jt(),fill:Ze(),direction:we()});y.pause(),mt.push(y)}),mt.length>0&&(mt[0].onfinish=()=>{ke()})},Tr=(f=!0)=>{zd(),a.length>0&&(ut?Rd():Ir(f)),d=!0},Xe=f=>{if(f=Math.min(Math.max(f,0),.9999),ut)mt.forEach(y=>{y.currentTime=y.effect.getComputedTiming().delay+kt()*f,y.pause()});else{const y=`-${kt()*f}ms`;H.forEach(T=>{a.length>0&&(q(T,"animation-delay",y),q(T,"animation-play-state","paused"))})}},Cr=f=>{mt.forEach(y=>{y.effect.updateTiming({delay:xe(),duration:kt(),easing:Ke(),iterations:jt(),fill:Ze(),direction:we()})}),f!==void 0&&Xe(f)},$r=(f=!0,y)=>{rt(()=>{H.forEach(T=>{q(T,"animation-name",w||null),q(T,"animation-duration",`${kt()}ms`),q(T,"animation-timing-function",Ke()),q(T,"animation-delay",y!==void 0?`-${y*kt()}ms`:`${xe()}ms`),q(T,"animation-fill-mode",Ze()||null),q(T,"animation-direction",we()||null);const Q=jt()===1/0?"infinite":jt().toString();q(T,"animation-iteration-count",Q),f&&q(T,"animation-name",`${w}-alt`),rt(()=>{q(T,"animation-name",w||null)})})})},gt=(f=!1,y=!0,T)=>(f&&j.forEach(Q=>{Q.update(f,y,T)}),ut?Cr(T):$r(y,T),S),Bd=(f=!1,y)=>(j.forEach(T=>{T.progressStart(f,y)}),Or(),$=f,d||Tr(),gt(!1,!0,y),S),Vd=f=>(j.forEach(y=>{y.progressStep(f)}),Xe(f),S),jd=(f,y,T)=>($=!1,j.forEach(Q=>{Q.progressEnd(f,y,T)}),T!==void 0&&(F=T),O=!1,v=!0,f===0?(P=we()==="reverse"?"normal":"reverse",P==="reverse"&&(v=!1),ut?(gt(),Xe(1-y)):(I=(1-y)*kt()*-1,gt(!1,!1))):f===1&&(ut?(gt(),Xe(y)):(I=y*kt()*-1,gt(!1,!1))),f!==void 0&&(Sn(()=>{F=void 0,P=void 0,I=void 0},{oneTimeCallback:!0}),u||Ar()),S),Or=()=>{d&&(ut?mt.forEach(f=>{f.pause()}):H.forEach(f=>{q(f,"animation-play-state","paused")}),A=!0)},Hd=()=>(j.forEach(f=>{f.pause()}),Or(),S),Ud=()=>{z=void 0,ke()},ki=()=>{z&&clearTimeout(z)},Wd=()=>{if(ki(),rt(()=>{H.forEach(f=>{a.length>0&&q(f,"animation-play-state","running")})}),a.length===0||H.length===0)ke();else{const f=xe()||0,y=kt()||0,T=jt()||1;isFinite(T)&&(z=setTimeout(Ud,f+y*T+xr)),Tv(H[0],()=>{ki(),rt(()=>{qd(),rt(ke)})})}},qd=()=>{H.forEach(f=>{It(f,"animation-duration"),It(f,"animation-delay"),It(f,"animation-play-state")})},Yd=()=>{mt.forEach(f=>{f.play()}),(a.length===0||H.length===0)&&ke()},Gd=()=>{ut?(Xe(0),Cr()):$r()},Ar=f=>new Promise(y=>{f!=null&&f.sync&&(_=!0,Sn(()=>_=!1,{oneTimeCallback:!0})),d||Tr(),O&&(Gd(),O=!1),E&&(C=j.length+1,E=!1),Sn(()=>y(),{oneTimeCallback:!0}),j.forEach(T=>{T.play()}),ut?Yd():Wd(),A=!1}),Zd=()=>{j.forEach(f=>{f.stop()}),d&&(Er(),d=!1),dd()},Dr=(f,y)=>{const T=a[0];return T!==void 0&&(T.offset===void 0||T.offset===0)?T[f]=y:a=[{offset:0,[f]:y},...a],S};return S={parentAnimation:u,elements:H,childAnimations:j,id:tt,animationFinish:ke,from:Dr,to:(f,y)=>{const T=a[a.length-1];return T!==void 0&&(T.offset===void 0||T.offset===1)?T[f]=y:a=[...a,{offset:1,[f]:y}],S},fromTo:(f,y,T)=>Dr(f,y).to(f,T),parent:_d,play:Ar,pause:Hd,stop:Zd,destroy:ld,keyframes:Ld,addAnimation:Pd,addElement:Md,update:gt,fill:Cd,direction:Td,iterations:Dd,duration:Ad,easing:Od,delay:$d,getWebAnimations:kr,getKeyframes:Id,getFill:Ze,getDirection:we,getDelay:xe,getIterations:jt,getEasing:Ke,getDuration:kt,afterAddRead:md,afterAddWrite:gd,afterClearStyles:Sd,afterStyles:Ed,afterRemoveClass:kd,afterAddClass:xd,beforeAddRead:fd,beforeAddWrite:pd,beforeClearStyles:wd,beforeStyles:yd,beforeRemoveClass:vd,beforeAddClass:bd,onFinish:Sn,isRunning:ud,progressStart:Bd,progressStep:Vd,progressEnd:jd}};/*!
|
|
984
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
985
|
+
*/const Dv=e=>{if(!e)return{arrowWidth:0,arrowHeight:0};const{width:t,height:n}=e.getBoundingClientRect();return{arrowWidth:t,arrowHeight:n}},Yc=(e,t,n)=>{const i=t.getBoundingClientRect(),o=i.height;let r=i.width;return e==="cover"&&n&&(r=n.getBoundingClientRect().width),{contentWidth:r,contentHeight:o}},_v=(e,t,n,i)=>{let o=[];const s=ye(i).querySelector(".popover-content");switch(t){case"hover":o=[{eventName:"mouseenter",callback:a=>{document.elementFromPoint(a.clientX,a.clientY)!==e&&n.dismiss(void 0,void 0,!1)}}];break;case"context-menu":case"click":default:o=[{eventName:"click",callback:a=>{if(a.target.closest("[data-ion-popover-trigger]")===e){a.stopPropagation();return}n.dismiss(void 0,void 0,!1)}}];break}return o.forEach(({eventName:a,callback:l})=>s.addEventListener(a,l)),()=>{o.forEach(({eventName:a,callback:l})=>s.removeEventListener(a,l))}},Mv=(e,t,n)=>{let i=[];switch(t){case"hover":let o;i=[{eventName:"mouseenter",callback:async r=>{r.stopPropagation(),o&&clearTimeout(o),o=setTimeout(()=>{rt(()=>{n.presentFromTrigger(r),o=void 0})},100)}},{eventName:"mouseleave",callback:r=>{o&&clearTimeout(o);const s=r.relatedTarget;s&&s.closest("ion-popover")!==n&&n.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:r=>r.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break;case"context-menu":i=[{eventName:"contextmenu",callback:r=>{r.preventDefault(),n.presentFromTrigger(r)}},{eventName:"click",callback:r=>r.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break;case"click":default:i=[{eventName:"click",callback:r=>n.presentFromTrigger(r)},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break}return i.forEach(({eventName:o,callback:r})=>e.addEventListener(o,r)),e.setAttribute("data-ion-popover-trigger","true"),()=>{i.forEach(({eventName:o,callback:r})=>e.removeEventListener(o,r)),e.removeAttribute("data-ion-popover-trigger")}},Gc=(e,t)=>!t||t.tagName!=="ION-ITEM"?-1:e.findIndex(n=>n===t),Pv=(e,t)=>{const n=Gc(e,t);return e[n+1]},Lv=(e,t)=>{const n=Gc(e,t);return e[n-1]},zn=e=>{const n=ye(e).querySelector("button");n&&rt(()=>n.focus())},Nv=e=>e.hasAttribute("data-ion-popover-trigger"),zv=e=>{const t=async n=>{var i;const o=document.activeElement;let r=[];const s=(i=n.target)===null||i===void 0?void 0:i.tagName;if(!(s!=="ION-POPOVER"&&s!=="ION-ITEM")){try{r=Array.from(e.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch{}switch(n.key){case"ArrowLeft":await e.getParentPopover()&&e.dismiss(void 0,void 0,!1);break;case"ArrowDown":n.preventDefault();const l=Pv(r,o);l!==void 0&&zn(l);break;case"ArrowUp":n.preventDefault();const c=Lv(r,o);c!==void 0&&zn(c);break;case"Home":n.preventDefault();const d=r[0];d!==void 0&&zn(d);break;case"End":n.preventDefault();const u=r[r.length-1];u!==void 0&&zn(u);break;case"ArrowRight":case" ":case"Enter":if(o&&Nv(o)){const h=new CustomEvent("ionPopoverActivateTrigger");o.dispatchEvent(h)}break}}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},Zc=(e,t,n,i,o,r,s,a,l,c,d)=>{var u;let h={top:0,left:0,width:0,height:0};switch(r){case"event":if(!d)return l;const F=d;h={top:F.clientY,left:F.clientX,width:1,height:1};break;case"trigger":default:const I=d,v=c||((u=I==null?void 0:I.detail)===null||u===void 0?void 0:u.ionShadowTarget)||(I==null?void 0:I.target);if(!v)return l;const O=v.getBoundingClientRect();h={top:O.top,left:O.left,width:O.width,height:O.height};break}const g=Bv(s,h,t,n,i,o,e),k=Vv(a,s,h,t,n),b=g.top+k.top,C=g.left+k.left,{arrowTop:$,arrowLeft:_}=Rv(s,i,o,b,C,t,n,e),{originX:z,originY:P}=Fv(s,a,e);return{top:b,left:C,referenceCoordinates:h,arrowTop:$,arrowLeft:_,originX:z,originY:P}},Fv=(e,t,n)=>{switch(e){case"top":return{originX:Xs(t),originY:"bottom"};case"bottom":return{originX:Xs(t),originY:"top"};case"left":return{originX:"right",originY:Fn(t)};case"right":return{originX:"left",originY:Fn(t)};case"start":return{originX:n?"left":"right",originY:Fn(t)};case"end":return{originX:n?"right":"left",originY:Fn(t)}}},Xs=e=>{switch(e){case"start":return"left";case"center":return"center";case"end":return"right"}},Fn=e=>{switch(e){case"start":return"top";case"center":return"center";case"end":return"bottom"}},Rv=(e,t,n,i,o,r,s,a)=>{const l={arrowTop:i+s/2-t/2,arrowLeft:o+r-t/2},c={arrowTop:i+s/2-t/2,arrowLeft:o-t*1.5};switch(e){case"top":return{arrowTop:i+s,arrowLeft:o+r/2-t/2};case"bottom":return{arrowTop:i-n,arrowLeft:o+r/2-t/2};case"left":return l;case"right":return c;case"start":return a?c:l;case"end":return a?l:c;default:return{arrowTop:0,arrowLeft:0}}},Bv=(e,t,n,i,o,r,s)=>{const a={top:t.top,left:t.left-n-o},l={top:t.top,left:t.left+t.width+o};switch(e){case"top":return{top:t.top-i-r,left:t.left};case"right":return l;case"bottom":return{top:t.top+t.height+r,left:t.left};case"left":return a;case"start":return s?l:a;case"end":return s?a:l}},Vv=(e,t,n,i,o)=>{switch(e){case"center":return Hv(t,n,i,o);case"end":return jv(t,n,i,o);case"start":default:return{top:0,left:0}}},jv=(e,t,n,i)=>{switch(e){case"start":case"end":case"left":case"right":return{top:-(i-t.height),left:0};case"top":case"bottom":default:return{top:0,left:-(n-t.width)}}},Hv=(e,t,n,i)=>{switch(e){case"start":case"end":case"left":case"right":return{top:-(i/2-t.height/2),left:0};case"top":case"bottom":default:return{top:0,left:-(n/2-t.width/2)}}},Kc=(e,t,n,i,o,r,s,a,l,c,d,u,h=0,g=0,k=0)=>{let b=h;const C=g;let $=n,_=t,z,P=c,F=d,I=!1,v=!1;const O=u?u.top+u.height:r/2-a/2,E=u?u.height:0;let w=!1;return $<i+l?($=i,I=!0,P="left"):s+i+$+l>o&&(v=!0,$=o-s-i,P="right"),O+E+a>r&&(e==="top"||e==="bottom")&&(O-a>0?(_=Math.max(12,O-a-E-(k-1)),b=_+a,F="bottom",w=!0):z=i),{top:_,left:$,bottom:z,originX:P,originY:F,checkSafeAreaLeft:I,checkSafeAreaRight:v,arrowTop:b,arrowLeft:C,addPopoverBottomClass:w}},Uv=(e,t=!1,n,i)=>!(!n&&!i||e!=="top"&&e!=="bottom"&&t),Wv=5,qv=(e,t)=>{var n;const{event:i,size:o,trigger:r,reference:s,side:a,align:l}=t,c=e.ownerDocument,d=c.dir==="rtl",u=c.defaultView.innerWidth,h=c.defaultView.innerHeight,g=ye(e),k=g.querySelector(".popover-content"),b=g.querySelector(".popover-arrow"),C=r||((n=i==null?void 0:i.detail)===null||n===void 0?void 0:n.ionShadowTarget)||(i==null?void 0:i.target),{contentWidth:$,contentHeight:_}=Yc(o,k,C),{arrowWidth:z,arrowHeight:P}=Dv(b),F={top:h/2-_/2,left:u/2-$/2,originX:d?"right":"left",originY:"top"},I=Zc(d,$,_,z,P,s,a,l,F,r,i),v=o==="cover"?0:Wv,O=o==="cover"?0:25,{originX:E,originY:w,top:S,left:A,bottom:tt,checkSafeAreaLeft:pt,checkSafeAreaRight:Vt,arrowTop:H,arrowLeft:j,addPopoverBottomClass:We}=Kc(a,I.top,I.left,v,u,h,$,_,O,I.originX,I.originY,I.referenceCoordinates,I.arrowTop,I.arrowLeft,P),kn=M(),qe=M(),Ye=M();return qe.addElement(g.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),Ye.addElement(g.querySelector(".popover-wrapper")).fromTo("opacity",.01,1),kn.easing("ease").duration(100).beforeAddWrite(()=>{o==="cover"&&e.style.setProperty("--width",`${$}px`),We&&e.classList.add("popover-bottom"),tt!==void 0&&k.style.setProperty("bottom",`${tt}px`);const En=" + var(--ion-safe-area-left, 0)",mt=" - var(--ion-safe-area-right, 0)";let Ge=`${A}px`;if(pt&&(Ge=`${A}px${En}`),Vt&&(Ge=`${A}px${mt}`),k.style.setProperty("top",`calc(${S}px + var(--offset-y, 0))`),k.style.setProperty("left",`calc(${Ge} + var(--offset-x, 0))`),k.style.setProperty("transform-origin",`${w} ${E}`),b!==null){const ut=I.top!==S||I.left!==A;Uv(a,ut,i,r)?(b.style.setProperty("top",`calc(${H}px + var(--offset-y, 0))`),b.style.setProperty("left",`calc(${j}px + var(--offset-x, 0))`)):b.style.setProperty("display","none")}}).addAnimation([qe,Ye])},Yv=e=>{const t=ye(e),n=t.querySelector(".popover-content"),i=t.querySelector(".popover-arrow"),o=M(),r=M(),s=M();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),s.addElement(t.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),o.easing("ease").afterAddWrite(()=>{e.style.removeProperty("--width"),e.classList.remove("popover-bottom"),n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("bottom"),n.style.removeProperty("transform-origin"),i&&(i.style.removeProperty("top"),i.style.removeProperty("left"),i.style.removeProperty("display"))}).duration(300).addAnimation([r,s])},Gv=12,Zv=(e,t)=>{var n;const{event:i,size:o,trigger:r,reference:s,side:a,align:l}=t,c=e.ownerDocument,d=c.dir==="rtl",u=c.defaultView.innerWidth,h=c.defaultView.innerHeight,g=ye(e),k=g.querySelector(".popover-content"),b=r||((n=i==null?void 0:i.detail)===null||n===void 0?void 0:n.ionShadowTarget)||(i==null?void 0:i.target),{contentWidth:C,contentHeight:$}=Yc(o,k,b),_={top:h/2-$/2,left:u/2-C/2,originX:d?"right":"left",originY:"top"},z=Zc(d,C,$,0,0,s,a,l,_,r,i),P=o==="cover"?0:Gv,{originX:F,originY:I,top:v,left:O,bottom:E}=Kc(a,z.top,z.left,P,u,h,C,$,0,z.originX,z.originY,z.referenceCoordinates),w=M(),S=M(),A=M(),tt=M(),pt=M();return S.addElement(g.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),A.addElement(g.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),tt.addElement(k).beforeStyles({top:`calc(${v}px + var(--offset-y, 0px))`,left:`calc(${O}px + var(--offset-x, 0px))`,"transform-origin":`${I} ${F}`}).beforeAddWrite(()=>{E!==void 0&&k.style.setProperty("bottom",`${E}px`)}).fromTo("transform","scale(0.8)","scale(1)"),pt.addElement(g.querySelector(".popover-viewport")).fromTo("opacity",.01,1),w.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(()=>{o==="cover"&&e.style.setProperty("--width",`${C}px`),I==="bottom"&&e.classList.add("popover-bottom")}).addAnimation([S,A,tt,pt])},Kv=e=>{const t=ye(e),n=t.querySelector(".popover-content"),i=M(),o=M(),r=M();return o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(t.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),i.easing("ease").afterAddWrite(()=>{e.style.removeProperty("--width"),e.classList.remove("popover-bottom"),n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("bottom"),n.style.removeProperty("transform-origin")}).duration(150).addAnimation([o,r])},Xv=':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{left:3px;top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}[dir=rtl] .popover-arrow::after,:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',Jv=":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}[dir=rtl] .popover-content,:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}",Qv=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=N(this,"ionPopoverDidPresent",7),this.willPresent=N(this,"ionPopoverWillPresent",7),this.willDismiss=N(this,"ionPopoverWillDismiss",7),this.didDismiss=N(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=N(this,"didPresent",7),this.willPresentShorthand=N(this,"willPresent",7),this.willDismissShorthand=N(this,"willDismiss",7),this.didDismissShorthand=N(this,"didDismiss",7),this.ionMount=N(this,"ionMount",7),this.parentPopover=null,this.popoverIndex=ey++,this.coreDelegate=rv(),this.inline=!1,this.focusDescendantOnPresent=!1,this.presented=!1,this.hasController=!1,this.keyboardClose=!0,this.backdropDismiss=!0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.triggerAction="click",this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.keepContentsMounted=!1,this.onBackdropTap=()=>{this.dismiss(void 0,Ne)},this.onLifecycle=e=>{const t=this.usersElement,n=ty[e.type];if(t&&n){const i=new CustomEvent(n,{bubbles:!1,cancelable:!1,detail:e.detail});t.dispatchEvent(i)}},this.configureTriggerInteraction=()=>{const{trigger:e,triggerAction:t,el:n,destroyTriggerInteraction:i}=this;if(i&&i(),e===void 0)return;const o=this.triggerEl=e!==void 0?document.getElementById(e):null;if(!o){p0(`A trigger element with the ID "${e}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.`,this.el);return}this.destroyTriggerInteraction=Mv(o,t,n)},this.configureKeyboardInteraction=()=>{const{destroyKeyboardInteraction:e,el:t}=this;e&&e(),this.destroyKeyboardInteraction=zv(t)},this.configureDismissInteraction=()=>{const{destroyDismissInteraction:e,parentPopover:t,triggerAction:n,triggerEl:i,el:o}=this;!t||!i||(e&&e(),this.destroyDismissInteraction=_v(i,n,o,t))}}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(e,t){e===!0&&t===!1?this.present():e===!1&&t===!0&&this.dismiss()}connectedCallback(){const{configureTriggerInteraction:e,el:t}=this;gr(t),e()}disconnectedCallback(){const{destroyTriggerInteraction:e}=this;e&&e()}componentWillLoad(){this.popoverId=this.el.hasAttribute("id")?this.el.getAttribute("id"):`ion-popover-${this.popoverIndex}`,this.parentPopover=this.el.closest(`ion-popover:not(#${this.popoverId})`),this.alignment===void 0&&(this.alignment=V(this)==="ios"?"center":"start")}componentDidLoad(){const{parentPopover:e,isOpen:t}=this;t===!0&&rt(()=>this.present()),e&&lr(e,"ionPopoverWillDismiss",()=>{this.dismiss(void 0,void 0,!1)})}async presentFromTrigger(e,t=!1){this.focusDescendantOnPresent=t,await this.present(e),this.focusDescendantOnPresent=!1}getDelegate(e=!1){if(this.workingDelegate&&!e)return{delegate:this.workingDelegate,inline:this.inline};const t=this.el.parentNode,n=this.inline=t!==null&&!this.hasController,i=this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate;return{inline:n,delegate:i}}async present(e){if(this.presented)return;this.currentTransition!==void 0&&await this.currentTransition;const{inline:t,delegate:n}=this.getDelegate(!0);return this.usersElement=await iv(n,this.el,this.component,["popover-viewport"],this.componentProps,t),await qc(this.usersElement),this.keyboardEvents||this.configureKeyboardInteraction(),this.configureDismissInteraction(),this.ionMount.emit(),new Promise(i=>{rt(()=>{rt(async()=>{this.currentTransition=br(this,"popoverEnter",qv,Zv,{event:e||this.event,size:this.size,trigger:this.triggerEl,reference:this.reference,side:this.side,align:this.alignment}),await this.currentTransition,this.currentTransition=void 0,this.focusDescendantOnPresent&&Ao(this.el,this.el),i()})})})}async dismiss(e,t,n=!0){this.currentTransition!==void 0&&await this.currentTransition;const{destroyKeyboardInteraction:i,destroyDismissInteraction:o}=this;n&&this.parentPopover&&this.parentPopover.dismiss(e,t,n),this.currentTransition=vr(this,e,t,"popoverLeave",Yv,Kv,this.event);const r=await this.currentTransition;if(r){i&&(i(),this.destroyKeyboardInteraction=void 0),o&&(o(),this.destroyDismissInteraction=void 0);const{delegate:s}=this.getDelegate();await ov(s,this.usersElement)}return this.currentTransition=void 0,r}async getParentPopover(){return this.parentPopover}onDidDismiss(){return Le(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return Le(this.el,"ionPopoverWillDismiss")}render(){const e=V(this),{onLifecycle:t,popoverId:n,parentPopover:i,dismissOnSelect:o,side:r,arrow:s,htmlAttributes:a}=this,l=_b("desktop"),c=s&&!i;return p(Y,Object.assign({"aria-modal":"true","no-router":!0,tabindex:"-1"},a,{style:{zIndex:`${2e4+this.overlayIndex}`},id:n,class:Object.assign(Object.assign({},At(this.cssClass)),{[e]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":l,[`popover-side-${r}`]:!0,"popover-nested":!!i}),onIonPopoverDidPresent:t,onIonPopoverWillPresent:t,onIonPopoverWillDismiss:t,onIonPopoverDidDismiss:t,onIonBackdropTap:this.onBackdropTap}),!i&&p("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),p("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:o?()=>this.dismiss():void 0},c&&p("div",{class:"popover-arrow",part:"arrow"}),p("div",{class:"popover-content",part:"content"},p("slot",null))))}get el(){return this}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}static get style(){return{ios:Xv,md:Jv}}},[33,"ion-popover",{hasController:[4,"has-controller"],delegate:[16],overlayIndex:[2,"overlay-index"],enterAnimation:[16],leaveAnimation:[16],component:[1],componentProps:[16],keyboardClose:[4,"keyboard-close"],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],event:[8],showBackdrop:[4,"show-backdrop"],translucent:[4],animated:[4],htmlAttributes:[16],triggerAction:[1,"trigger-action"],trigger:[1],size:[1],dismissOnSelect:[4,"dismiss-on-select"],reference:[1],side:[1],alignment:[1025],arrow:[4],isOpen:[4,"is-open"],keyboardEvents:[4,"keyboard-events"],keepContentsMounted:[4,"keep-contents-mounted"],presented:[32],presentFromTrigger:[64],present:[64],dismiss:[64],getParentPopover:[64],onDidDismiss:[64],onWillDismiss:[64]}]),ty={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};let ey=0;function ny(){if(typeof customElements>"u")return;["ion-popover","ion-backdrop"].forEach(t=>{switch(t){case"ion-popover":customElements.get(t)||customElements.define(t,Qv);break;case"ion-backdrop":customElements.get(t)||yi();break}})}/*!
|
|
986
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
987
|
+
*/const iy=e=>{let t,n,i;const o=()=>{t=()=>{i=!0,e&&e(!0)},n=()=>{i=!1,e&&e(!1)},dt==null||dt.addEventListener("keyboardWillShow",t),dt==null||dt.addEventListener("keyboardWillHide",n)},r=()=>{dt==null||dt.removeEventListener("keyboardWillShow",t),dt==null||dt.removeEventListener("keyboardWillHide",n),t=n=void 0},s=()=>i;return o(),{init:o,destroy:r,isKeyboardVisible:s}};/*!
|
|
988
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
989
|
+
*/const oy=e=>{try{if(e instanceof ly)return e.value;if(!ry()||typeof e!="string"||e==="")return e;if(e.includes("onload="))return"";const t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,ay.forEach(s=>{const a=t.querySelectorAll(s);for(let l=a.length-1;l>=0;l--){const c=a[l];c.parentNode?c.parentNode.removeChild(c):t.removeChild(c);const d=_o(c);for(let u=0;u<d.length;u++)Do(d[u])}});const i=_o(t);for(let s=0;s<i.length;s++)Do(i[s]);const o=document.createElement("div");o.appendChild(t);const r=o.querySelector("div");return r!==null?r.innerHTML:o.innerHTML}catch(t){return console.error(t),""}},Do=e=>{if(e.nodeType&&e.nodeType!==1)return;if(typeof NamedNodeMap<"u"&&!(e.attributes instanceof NamedNodeMap)){e.remove();return}for(let n=e.attributes.length-1;n>=0;n--){const i=e.attributes.item(n),o=i.name;if(!sy.includes(o.toLowerCase())){e.removeAttribute(o);continue}const r=i.value,s=e[o];(r!=null&&r.toLowerCase().includes("javascript:")||s!=null&&s.toLowerCase().includes("javascript:"))&&e.removeAttribute(o)}const t=_o(e);for(let n=0;n<t.length;n++)Do(t[n])},_o=e=>e.children!=null?e.children:e.childNodes,ry=()=>{var e;const t=window,n=(e=t==null?void 0:t.Ionic)===null||e===void 0?void 0:e.config;return n?n.get?n.get("sanitizerEnabled",!0):n.sanitizerEnabled===!0||n.sanitizerEnabled===void 0:!0},sy=["class","id","href","src","name","slot"],ay=["script","style","iframe","meta","link","object","embed"];class ly{constructor(t){this.value=t}}const cy=!0;/*!
|
|
990
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
991
|
+
*/const dy=hr;/*!
|
|
992
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
993
|
+
*/const uy=fr;/*!
|
|
994
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
995
|
+
*/const hy="ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{margin-left:16px;margin-right:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.list-ios.list-inset{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}.list-ios.list-inset ion-item:last-child{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",fy="ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-md>.input:last-child::after{left:0}[dir=rtl] .list-md>.input:last-child::after,:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}.list-md.list-inset{margin-left:16px;margin-right:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.list-md.list-inset{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}.list-md.list-inset ion-item:first-child{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:last-child{--border-radius:0 0 2px, 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",py=Z(class extends K{constructor(){super(),this.__registerHost(),this.inset=!1}async closeSlidingItems(){const e=this.el.querySelector("ion-item-sliding");return e!=null&&e.closeOpened?e.closeOpened():!1}render(){const e=V(this),{lines:t,inset:n}=this;return p(Y,{role:"list",class:{[e]:!0,[`list-${e}`]:!0,"list-inset":n,[`list-lines-${t}`]:t!==void 0,[`list-${e}-lines-${t}`]:t!==void 0}})}get el(){return this}static get style(){return{ios:hy,md:fy}}},[32,"ion-list",{lines:[1],inset:[4],closeSlidingItems:[64]}]);function Xc(){if(typeof customElements>"u")return;["ion-list"].forEach(t=>{switch(t){case"ion-list":customElements.get(t)||customElements.define(t,py);break}})}/*!
|
|
996
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
997
|
+
*/const my=":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-left:calc(var(--ion-safe-area-left, 0px) + 20px);position:relative;-ms-flex-align:end;align-items:flex-end;font-size:22px;font-weight:700;letter-spacing:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0px) + 20px);padding-inline-start:calc(var(--ion-safe-area-left, 0px) + 20px)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){margin-left:3px;margin-right:3px;height:1.4em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-button){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px}}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",gy=":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-left:calc(var(--ion-safe-area-left, 0) + 16px);min-height:45px;font-size:14px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0) + 16px);padding-inline-start:calc(var(--ion-safe-area-left, 0) + 16px)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}",by=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const{lines:e}=this,t=V(this);return p(Y,{class:Pt(this.color,{[t]:!0,[`list-header-lines-${e}`]:e!==void 0})},p("div",{class:"list-header-inner"},p("slot",null)))}static get style(){return{ios:my,md:gy}}},[33,"ion-list-header",{color:[513],lines:[1]}]);function Jc(){if(typeof customElements>"u")return;["ion-list-header"].forEach(t=>{switch(t){case"ion-list-header":customElements.get(t)||customElements.define(t,by);break}})}/*!
|
|
998
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
999
|
+
*/const vy=':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color-checked:var(--ion-color-primary, #3880ff);width:15px;height:24px}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{margin-left:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-radio.item-ios ion-label{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-9px;top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}:host(.in-item){margin-left:10px;margin-right:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:11px;margin-inline-end:11px}}:host(.in-item[slot=start]){margin-left:3px;margin-right:21px;margin-top:8px;margin-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px}}',yy=':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color:var(--ion-color-step-400, #999999);--color-checked:var(--ion-color-primary, #3880ff);--border-width:2px;--border-style:solid;--border-radius:50%;width:20px;height:20px}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-12px;top:-12px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-12px}:host(.in-item){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:11px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}',wy=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=N(this,"ionStyle",7),this.ionFocus=N(this,"ionFocus",7),this.ionBlur=N(this,"ionBlur",7),this.inputId=`ion-rb-${xy++}`,this.radioGroup=null,this.checked=!1,this.buttonTabindex=-1,this.name=this.inputId,this.disabled=!1,this.updateState=()=>{this.radioGroup&&(this.checked=this.radioGroup.value===this.value)},this.onClick=()=>{this.checked=this.nativeInput.checked},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}valueChanged(){this.updateState()}async setFocus(e){e.stopPropagation(),e.preventDefault(),this.el.focus()}async setButtonTabindex(e){this.buttonTabindex=e}connectedCallback(){this.value===void 0&&(this.value=this.inputId);const e=this.radioGroup=this.el.closest("ion-radio-group");e&&(this.updateState(),lr(e,"ionChange",this.updateState))}disconnectedCallback(){const e=this.radioGroup;e&&(Pc(e,"ionChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"radio-checked":this.checked,"interactive-disabled":this.disabled})}render(){const{inputId:e,disabled:t,checked:n,color:i,el:o,buttonTabindex:r}=this,s=V(this),{label:a,labelId:l,labelText:c}=cr(o,e);return p(Y,{"aria-checked":`${n}`,"aria-hidden":t?"true":null,"aria-labelledby":a?l:null,role:"radio",tabindex:r,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:Pt(i,{[s]:!0,"in-item":xn("ion-item",o),interactive:!0,"radio-checked":n,"radio-disabled":t})},p("div",{class:"radio-icon",part:"container"},p("div",{class:"radio-inner",part:"mark"}),p("div",{class:"radio-ripple"})),p("label",{htmlFor:e},c),p("input",{type:"radio",checked:n,disabled:t,tabindex:"-1",id:e,ref:d=>this.nativeInput=d}))}get el(){return this}static get watchers(){return{value:["valueChanged"],color:["emitStyle"],checked:["emitStyle"],disabled:["emitStyle"]}}static get style(){return{ios:vy,md:yy}}},[33,"ion-radio",{color:[513],name:[1],disabled:[4],value:[8],checked:[32],buttonTabindex:[32],setFocus:[64],setButtonTabindex:[64]}]);let xy=0;function Qc(){if(typeof customElements>"u")return;["ion-radio"].forEach(t=>{switch(t){case"ion-radio":customElements.get(t)||customElements.define(t,wy);break}})}/*!
|
|
1000
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
1001
|
+
*/const ky=Z(class extends K{constructor(){super(),this.__registerHost(),this.ionChange=N(this,"ionChange",7),this.inputId=`ion-rg-${Ey++}`,this.labelId=`${this.inputId}-lbl`,this.allowEmptySelection=!1,this.name=this.inputId,this.setRadioTabindex=e=>{const t=this.getRadios(),n=t.find(r=>!r.disabled),i=t.find(r=>r.value===e&&!r.disabled);if(!n&&!i)return;const o=i||n;for(const r of t){const s=r===o?0:-1;r.setButtonTabindex(s)}},this.onClick=e=>{e.preventDefault();const t=e.target&&e.target.closest("ion-radio");if(t){const n=this.value,i=t.value;i!==n?this.value=i:this.allowEmptySelection&&(this.value=void 0)}}}valueChanged(e){this.setRadioTabindex(e),this.ionChange.emit({value:e})}componentDidLoad(){this.setRadioTabindex(this.value)}async connectedCallback(){const e=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(e){const t=this.label=e.querySelector("ion-label");t&&(this.labelId=t.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}onKeydown(e){const t=!!this.el.closest("ion-select-popover");if(e.target&&!this.el.contains(e.target))return;const n=this.getRadios().filter(i=>!i.disabled);if(e.target&&n.includes(e.target)){const i=n.findIndex(s=>s===e.target),o=n[i];let r;["ArrowDown","ArrowRight"].includes(e.key)&&(r=i===n.length-1?n[0]:n[i+1]),["ArrowUp","ArrowLeft"].includes(e.key)&&(r=i===0?n[n.length-1]:n[i-1]),r&&n.includes(r)&&(r.setFocus(e),t||(this.value=r.value)),[" "].includes(e.key)&&(this.value=this.allowEmptySelection&&this.value!==void 0?void 0:o.value,e.preventDefault())}}render(){const{label:e,labelId:t,el:n,name:i,value:o}=this,r=V(this);return dr(!0,n,i,o,!1),p(Y,{role:"radiogroup","aria-labelledby":e?t:null,onClick:this.onClick,class:r})}get el(){return this}static get watchers(){return{value:["valueChanged"]}}},[0,"ion-radio-group",{allowEmptySelection:[4,"allow-empty-selection"],name:[1],value:[1032]},[[4,"keydown","onKeydown"]]]);let Ey=0;function td(){if(typeof customElements>"u")return;["ion-radio-group"].forEach(t=>{switch(t){case"ion-radio-group":customElements.get(t)||customElements.define(t,ky);break}})}/*!
|
|
1002
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
1003
|
+
*/const ne=(e,t,n,i)=>{const o=Sy(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;let r,s;return e.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",s="__zone_symbol__removeEventListener"):(r="addEventListener",s="removeEventListener"),e[r](t,n,o),()=>{e[s](t,n,o)}},Sy=e=>{if(Rn===void 0)try{const t=Object.defineProperty({},"passive",{get:()=>{Rn=!0}});e.addEventListener("optsTest",()=>{},t)}catch{Rn=!1}return!!Rn};let Rn;const Iy=2e3,Ty=(e,t,n,i,o)=>{let r,s,a,l,c,d,u,h=0;const g=I=>{h=Date.now()+Iy,t(I)&&(!s&&n&&(s=ne(e,"touchmove",n,o)),a||(a=ne(I.target,"touchend",b,o)),l||(l=ne(I.target,"touchcancel",b,o)))},k=I=>{h>Date.now()||t(I)&&(!d&&n&&(d=ne(Js(e),"mousemove",n,o)),u||(u=ne(Js(e),"mouseup",C,o)))},b=I=>{$(),i&&i(I)},C=I=>{_(),i&&i(I)},$=()=>{s&&s(),a&&a(),l&&l(),s=a=l=void 0},_=()=>{d&&d(),u&&u(),d=u=void 0},z=()=>{$(),_()},P=(I=!0)=>{I?(r||(r=ne(e,"touchstart",g,o)),c||(c=ne(e,"mousedown",k,o))):(r&&r(),c&&c(),r=c=void 0,z())};return{enable:P,stop:z,destroy:()=>{P(!1),i=n=t=void 0}}},Js=e=>e instanceof Document?e:e.ownerDocument,Cy=(e,t,n)=>{const i=n*(Math.PI/180),o=e==="x",r=Math.cos(i),s=t*t;let a=0,l=0,c=!1,d=0;return{start(u,h){a=u,l=h,d=0,c=!0},detect(u,h){if(!c)return!1;const g=u-a,k=h-l,b=g*g+k*k;if(b<s)return!1;const C=Math.sqrt(b),$=(o?g:k)/C;return $>r?d=1:$<-r?d=-1:d=0,c=!1,!0},isGesture(){return d!==0},getDirection(){return d}}},$y=e=>{let t=!1,n=!1,i=!0,o=!1;const r=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),s=r.canStart,a=r.onWillStart,l=r.onStart,c=r.onEnd,d=r.notCaptured,u=r.onMove,h=r.threshold,g=r.passive,k=r.blurOnStart,b={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},C=Cy(r.direction,r.threshold,r.maxAngle),$=Bc.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),_=A=>{const tt=nd(A);return n||!i||(ed(A,b),b.startX=b.currentX,b.startY=b.currentY,b.startTime=b.currentTime=tt,b.velocityX=b.velocityY=b.deltaX=b.deltaY=0,b.event=A,s&&s(b)===!1)||($.release(),!$.start())?!1:(n=!0,h===0?F():(C.start(b.startX,b.startY),!0))},z=A=>{if(t){!o&&i&&(o=!0,Xi(b,A),requestAnimationFrame(P));return}Xi(b,A),C.detect(b.currentX,b.currentY)&&(!C.isGesture()||!F())&&S()},P=()=>{t&&(o=!1,u&&u(b))},F=()=>$.capture()?(t=!0,i=!1,b.startX=b.currentX,b.startY=b.currentY,b.startTime=b.currentTime,a?a(b).then(v):v(),!0):!1,I=()=>{if(typeof document<"u"){const A=document.activeElement;A!=null&&A.blur&&A.blur()}},v=()=>{k&&I(),l&&l(b),i=!0},O=()=>{t=!1,n=!1,o=!1,i=!0,$.release()},E=A=>{const tt=t,pt=i;if(O(),!!pt){if(Xi(b,A),tt){c&&c(b);return}d&&d(b)}},w=Ty(r.el,_,z,E,{capture:!1,passive:g}),S=()=>{O(),w.stop(),d&&d(b)};return{enable(A=!0){A||(t&&E(void 0),O()),w.enable(A)},destroy(){$.destroy(),w.destroy()}}},Xi=(e,t)=>{if(!t)return;const n=e.currentX,i=e.currentY,o=e.currentTime;ed(t,e);const r=e.currentX,s=e.currentY,l=(e.currentTime=nd(t))-o;if(l>0&&l<100){const c=(r-n)/l,d=(s-i)/l;e.velocityX=c*.7+e.velocityX*.3,e.velocityY=d*.7+e.velocityY*.3}e.deltaX=r-e.startX,e.deltaY=s-e.startY,e.event=t},ed=(e,t)=>{let n=0,i=0;if(e){const o=e.changedTouches;if(o&&o.length>0){const r=o[0];n=r.clientX,i=r.clientY}else e.pageX!==void 0&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},nd=e=>e.timeStamp||Date.now();/*!
|
|
1004
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
1005
|
+
*/const id=(e,t)=>{let n,i;const o=(a,l,c)=>{if(typeof document>"u")return;const d=document.elementFromPoint(a,l);if(!d||!t(d)){s();return}d!==n&&(s(),r(d,c))},r=(a,l)=>{n=a,i||(i=n);const c=n;oi(()=>c.classList.add("ion-activated")),l()},s=(a=!1)=>{if(!n)return;const l=n;oi(()=>l.classList.remove("ion-activated")),a&&i!==n&&n.click(),n=void 0};return $y({el:e,gestureName:"buttonActiveDrag",threshold:0,onStart:a=>o(a.currentX,a.currentY,tv),onMove:a=>o(a.currentX,a.currentY,ev),onEnd:()=>{s(!0),nv(),i=void 0}})};/*!
|
|
1006
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
1007
|
+
*/const Oy=e=>{const t=M(),n=M(),i=M();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,i])},Ay=e=>{const t=M(),n=M(),i=M();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([n,i])},Dy=e=>{const t=M(),n=M(),i=M();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,i])},_y=e=>{const t=M(),n=M(),i=M();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([n,i])},My='.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-container.sc-ion-action-sheet-ios{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-container.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{padding-left:10px;padding-right:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:13px;font-weight:400;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:13px;font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{padding-left:18px;padding-right:18px;padding-top:18px;padding-bottom:18px;height:56px;font-size:20px;contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:18px;padding-inline-start:18px;-webkit-padding-end:18px;padding-inline-end:18px}}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:0.3em;font-size:28px;pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}',Py='.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-title.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:16px;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:14px}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;position:relative;height:52px;font-size:16px;text-align:start;contain:strict;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-icon.sc-ion-action-sheet-md{margin-left:0;margin-right:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:24px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-icon.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px}}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}',Ly=Z(class extends K{constructor(){super(),this.__registerHost(),this.didPresent=N(this,"ionActionSheetDidPresent",7),this.willPresent=N(this,"ionActionSheetWillPresent",7),this.willDismiss=N(this,"ionActionSheetWillDismiss",7),this.didDismiss=N(this,"ionActionSheetDidDismiss",7),this.presented=!1,this.keyboardClose=!0,this.buttons=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=()=>{this.dismiss(void 0,Ne)},this.dispatchCancelHandler=e=>{const t=e.detail.role;if(si(t)){const n=this.getButtons().find(i=>i.role==="cancel");this.callButtonHandler(n)}}}present(){return br(this,"actionSheetEnter",Oy,Dy)}connectedCallback(){gr(this.el)}dismiss(e,t){return vr(this,e,t,"actionSheetLeave",Ay,_y)}onDidDismiss(){return Le(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return Le(this.el,"ionActionSheetWillDismiss")}async buttonClick(e){const t=e.role;return si(t)?this.dismiss(e.data,t):await this.callButtonHandler(e)?this.dismiss(e.data,e.role):Promise.resolve()}async callButtonHandler(e){return!(e&&await an(e.handler)===!1)}getButtons(){return this.buttons.map(e=>typeof e=="string"?{text:e}:e)}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){const{groupEl:e,wrapperEl:t}=this;this.gesture||V(this)==="md"||!t||!e||$c(()=>{e.scrollHeight>e.clientHeight||(this.gesture=id(t,i=>i.classList.contains("action-sheet-button")),this.gesture.enable(!0))})}render(){const{header:e,htmlAttributes:t,overlayIndex:n}=this,i=V(this),o=this.getButtons(),r=o.find(l=>l.role==="cancel"),s=o.filter(l=>l.role!=="cancel"),a=`action-sheet-${n}-header`;return p(Y,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":e!==void 0?a:null,tabindex:"-1"},t,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[i]:!0},At(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),p("ion-backdrop",{tappable:this.backdropDismiss}),p("div",{tabindex:"0"}),p("div",{class:"action-sheet-wrapper ion-overlay-wrapper",ref:l=>this.wrapperEl=l},p("div",{class:"action-sheet-container"},p("div",{class:"action-sheet-group",ref:l=>this.groupEl=l},e!==void 0&&p("div",{id:a,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":this.subHeader!==void 0}},e,this.subHeader&&p("div",{class:"action-sheet-sub-title"},this.subHeader)),s.map(l=>p("button",{type:"button",id:l.id,class:Qs(l),onClick:()=>this.buttonClick(l)},p("span",{class:"action-sheet-button-inner"},l.icon&&p("ion-icon",{icon:l.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),l.text),i==="md"&&p("ion-ripple-effect",null)))),r&&p("div",{class:"action-sheet-group action-sheet-group-cancel"},p("button",{type:"button",class:Qs(r),onClick:()=>this.buttonClick(r)},p("span",{class:"action-sheet-button-inner"},r.icon&&p("ion-icon",{icon:r.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),r.text),i==="md"&&p("ion-ripple-effect",null))))),p("div",{tabindex:"0"}))}get el(){return this}static get style(){return{ios:My,md:Py}}},[34,"ion-action-sheet",{overlayIndex:[2,"overlay-index"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],buttons:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],header:[1],subHeader:[1,"sub-header"],translucent:[4],animated:[4],htmlAttributes:[16],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]}]),Qs=e=>Object.assign({"action-sheet-button":!0,"ion-activatable":!0,"ion-focusable":!0,[`action-sheet-${e.role}`]:e.role!==void 0},At(e.cssClass));function Ny(){if(typeof customElements>"u")return;["ion-action-sheet","ion-backdrop","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-action-sheet":customElements.get(t)||customElements.define(t,Ly);break;case"ion-backdrop":customElements.get(t)||yi();break;case"ion-icon":customElements.get(t)||vi();break;case"ion-ripple-effect":customElements.get(t)||Ue();break}})}/*!
|
|
1008
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
1009
|
+
*/const zy=e=>{const t=M(),n=M(),i=M();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(1.1)"},{offset:1,opacity:"1",transform:"scale(1)"}]),t.addElement(e).easing("ease-in-out").duration(200).addAnimation([n,i])},Fy=e=>{const t=M(),n=M(),i=M();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),t.addElement(e).easing("ease-in-out").duration(200).addAnimation([n,i])},Ry=e=>{const t=M(),n=M(),i=M();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(0.9)"},{offset:1,opacity:"1",transform:"scale(1)"}]),t.addElement(e).easing("ease-in-out").duration(150).addAnimation([n,i])},By=e=>{const t=M(),n=M(),i=M();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(e.querySelector(".alert-wrapper")).fromTo("opacity",.99,0),t.addElement(e).easing("ease-in-out").duration(150).addAnimation([n,i])},Vy=".sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:14px;line-height:20px;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:strict}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:270px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:14px}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:7px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-head.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:17px;font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, #666666);font-size:14px}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:13px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:4px;margin-top:10px;padding-left:6px;padding-right:6px;padding-top:6px;padding-bottom:6px;border:0.55px solid var(--ion-color-step-250, #bfbfbf);background-color:var(--ion-background-color, #fff);-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-input.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px}}.alert-input.sc-ion-alert-ios::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{-ms-scroll-chaining:none;overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{height:44px}.alert-radio-label.sc-ion-alert-ios{padding-left:13px;padding-right:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;-ms-flex-order:0;order:0;color:var(--ion-text-color, #000);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-radio-label.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px}}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #3880ff)}.alert-radio-icon.sc-ion-alert-ios{position:relative;-ms-flex-order:1;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:7px;top:-7px;position:absolute;width:6px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #3880ff)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}.alert-checkbox-label.sc-ion-alert-ios{padding-left:13px;padding-right:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-text-color, #000);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-label.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px}}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;margin-left:16px;margin-right:6px;margin-top:10px;margin-bottom:10px;position:relative;width:24px;height:24px;border-width:1px;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-icon.sc-ion-alert-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px}}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:9px;top:4px;position:absolute;width:5px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:1px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:9px}.alert-button-group.sc-ion-alert-ios{margin-right:-0.55px;-ms-flex-wrap:wrap;flex-wrap:wrap}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button-group.sc-ion-alert-ios{margin-right:unset;-webkit-margin-end:-0.55px;margin-inline-end:-0.55px}}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;-ms-flex:1 1 auto;flex:1 1 auto;min-width:50%;height:44px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #3880ff);font-size:17px;overflow:hidden}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child,[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child,[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #eb445a)}",jy=".sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:14px;line-height:20px;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:strict}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:14px}.alert-wrapper.sc-ion-alert-md{border-radius:4px;-webkit-box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{padding-left:23px;padding-right:23px;padding-top:20px;padding-bottom:15px;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-head.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px}}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:20px;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:16px}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{padding-left:24px;padding-right:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, #737373)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px}}.alert-message.sc-ion-alert-md{max-height:266px;font-size:16px}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #3880ff)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;max-height:266px;border-top:1px solid var(--ion-color-step-150, #d9d9d9);border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);overflow:auto}.alert-tappable.sc-ion-alert-md{position:relative;height:48px;overflow:hidden}.alert-radio-label.sc-ion-alert-md{padding-left:52px;padding-right:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:16px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-radio-label.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px}}.alert-radio-icon.sc-ion-alert-md{left:26px;top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373)}[dir=rtl].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}.alert-radio-inner.sc-ion-alert-md{left:3px;top:3px;border-radius:50%;position:absolute;width:10px;height:10px;-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #3880ff)}[dir=rtl].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, #262626)}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{padding-left:53px;padding-right:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:16px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-label.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px}}.alert-checkbox-icon.sc-ion-alert-md{left:26px;top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373);contain:strict}[dir=rtl].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:3px;top:0;position:absolute;width:6px;height:10px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}[dir=rtl].sc-ion-alert-md [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}.alert-button-group.sc-ion-alert-md{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button-group.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.alert-button.sc-ion-alert-md{border-radius:2px;margin-left:0;margin-right:8px;margin-top:0;margin-bottom:0;padding-left:10px;padding-right:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #3880ff);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button.sc-ion-alert-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.alert-button-inner.sc-ion-alert-md{-ms-flex-pack:end;justify-content:flex-end}",Hy=Z(class extends K{constructor(){super(),this.__registerHost(),this.didPresent=N(this,"ionAlertDidPresent",7),this.willPresent=N(this,"ionAlertWillPresent",7),this.willDismiss=N(this,"ionAlertWillDismiss",7),this.didDismiss=N(this,"ionAlertDidDismiss",7),this.customHTMLEnabled=He.get("innerHTMLTemplatesEnabled",cy),this.processedInputs=[],this.processedButtons=[],this.presented=!1,this.keyboardClose=!0,this.buttons=[],this.inputs=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=()=>{this.dismiss(void 0,Ne)},this.dispatchCancelHandler=e=>{const t=e.detail.role;if(si(t)){const n=this.processedButtons.find(i=>i.role==="cancel");this.callButtonHandler(n)}}}onKeydown(e){if(!new Set(this.processedInputs.map(s=>s.type)).has("radio")||e.target&&!this.el.contains(e.target)||e.target.classList.contains("alert-button"))return;const n=this.el.querySelectorAll(".alert-radio"),i=Array.from(n).filter(s=>!s.disabled),o=i.findIndex(s=>s.id===e.target.id);let r;if(["ArrowDown","ArrowRight"].includes(e.key)&&(r=o===i.length-1?i[0]:i[o+1]),["ArrowUp","ArrowLeft"].includes(e.key)&&(r=o===0?i[i.length-1]:i[o-1]),r&&i.includes(r)){const s=this.processedInputs.find(a=>a.id===(r==null?void 0:r.id));s&&(this.rbClick(s),r.focus())}}buttonsChanged(){const e=this.buttons;this.processedButtons=e.map(t=>typeof t=="string"?{text:t,role:t.toLowerCase()==="cancel"?"cancel":void 0}:t)}inputsChanged(){const e=this.inputs,t=e.find(r=>!r.disabled),i=e.find(r=>r.checked&&!r.disabled)||t,o=new Set(e.map(r=>r.type));o.has("checkbox")&&o.has("radio")&&console.warn(`Alert cannot mix input types: ${Array.from(o.values()).join("/")}. Please see alert docs for more info.`),this.inputType=o.values().next().value,this.processedInputs=e.map((r,s)=>{var a;return{type:r.type||"text",name:r.name||`${s}`,placeholder:r.placeholder||"",value:r.value,label:r.label,checked:!!r.checked,disabled:!!r.disabled,id:r.id||`alert-input-${this.overlayIndex}-${s}`,handler:r.handler,min:r.min,max:r.max,cssClass:(a=r.cssClass)!==null&&a!==void 0?a:"",attributes:r.attributes||{},tabindex:r.type==="radio"&&r!==i?-1:0}})}connectedCallback(){gr(this.el)}componentWillLoad(){this.inputsChanged(),this.buttonsChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){this.gesture||V(this)==="md"||!this.wrapperEl||(this.gesture=id(this.wrapperEl,e=>e.classList.contains("alert-button")),this.gesture.enable(!0))}present(){return br(this,"alertEnter",zy,Ry)}dismiss(e,t){return vr(this,e,t,"alertLeave",Fy,By)}onDidDismiss(){return Le(this.el,"ionAlertDidDismiss")}onWillDismiss(){return Le(this.el,"ionAlertWillDismiss")}rbClick(e){for(const t of this.processedInputs)t.checked=t===e,t.tabindex=t===e?0:-1;this.activeId=e.id,an(e.handler,e),ni(this)}cbClick(e){e.checked=!e.checked,an(e.handler,e),ni(this)}async buttonClick(e){const t=e.role,n=this.getValues();if(si(t))return this.dismiss({values:n},t);const i=await this.callButtonHandler(e,n);return i!==!1?this.dismiss(Object.assign({values:n},i),e.role):!1}async callButtonHandler(e,t){if(e!=null&&e.handler){const n=await an(e.handler,t);if(n===!1)return!1;if(typeof n=="object")return n}return{}}getValues(){if(this.processedInputs.length===0)return;if(this.inputType==="radio"){const t=this.processedInputs.find(n=>!!n.checked);return t?t.value:void 0}if(this.inputType==="checkbox")return this.processedInputs.filter(t=>t.checked).map(t=>t.value);const e={};return this.processedInputs.forEach(t=>{e[t.name]=t.value||""}),e}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){const e=this.processedInputs,t=V(this);return e.length===0?null:p("div",{class:"alert-checkbox-group"},e.map(n=>p("button",{type:"button",onClick:()=>this.cbClick(n),"aria-checked":`${n.checked}`,id:n.id,disabled:n.disabled,tabIndex:n.tabindex,role:"checkbox",class:Object.assign(Object.assign({},At(n.cssClass)),{"alert-tappable":!0,"alert-checkbox":!0,"alert-checkbox-button":!0,"ion-focusable":!0,"alert-checkbox-button-disabled":n.disabled||!1})},p("div",{class:"alert-button-inner"},p("div",{class:"alert-checkbox-icon"},p("div",{class:"alert-checkbox-inner"})),p("div",{class:"alert-checkbox-label"},n.label)),t==="md"&&p("ion-ripple-effect",null))))}renderRadio(){const e=this.processedInputs;return e.length===0?null:p("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},e.map(t=>p("button",{type:"button",onClick:()=>this.rbClick(t),"aria-checked":`${t.checked}`,disabled:t.disabled,id:t.id,tabIndex:t.tabindex,class:Object.assign(Object.assign({},At(t.cssClass)),{"alert-radio-button":!0,"alert-tappable":!0,"alert-radio":!0,"ion-focusable":!0,"alert-radio-button-disabled":t.disabled||!1}),role:"radio"},p("div",{class:"alert-button-inner"},p("div",{class:"alert-radio-icon"},p("div",{class:"alert-radio-inner"})),p("div",{class:"alert-radio-label"},t.label)))))}renderInput(){const e=this.processedInputs;return e.length===0?null:p("div",{class:"alert-input-group"},e.map(t=>{var n,i,o,r;return t.type==="textarea"?p("div",{class:"alert-input-wrapper"},p("textarea",Object.assign({placeholder:t.placeholder,value:t.value,id:t.id,tabIndex:t.tabindex},t.attributes,{disabled:(i=(n=t.attributes)===null||n===void 0?void 0:n.disabled)!==null&&i!==void 0?i:t.disabled,class:ta(t),onInput:s=>{var a;t.value=s.target.value,!((a=t.attributes)===null||a===void 0)&&a.onInput&&t.attributes.onInput(s)}}))):p("div",{class:"alert-input-wrapper"},p("input",Object.assign({placeholder:t.placeholder,type:t.type,min:t.min,max:t.max,value:t.value,id:t.id,tabIndex:t.tabindex},t.attributes,{disabled:(r=(o=t.attributes)===null||o===void 0?void 0:o.disabled)!==null&&r!==void 0?r:t.disabled,class:ta(t),onInput:s=>{var a;t.value=s.target.value,!((a=t.attributes)===null||a===void 0)&&a.onInput&&t.attributes.onInput(s)}})))}))}renderAlertButtons(){const e=this.processedButtons,t=V(this),n={"alert-button-group":!0,"alert-button-group-vertical":e.length>2};return p("div",{class:n},e.map(i=>p("button",{type:"button",id:i.id,class:Uy(i),tabIndex:0,onClick:()=>this.buttonClick(i)},p("span",{class:"alert-button-inner"},i.text),t==="md"&&p("ion-ripple-effect",null))))}renderAlertMessage(e){const{customHTMLEnabled:t,message:n}=this;return t?p("div",{id:e,class:"alert-message",innerHTML:oy(n)}):p("div",{id:e,class:"alert-message"},n)}render(){const{overlayIndex:e,header:t,subHeader:n,message:i,htmlAttributes:o}=this,r=V(this),s=`alert-${e}-hdr`,a=`alert-${e}-sub-hdr`,l=`alert-${e}-msg`,c=this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert";return p(Y,Object.assign({role:c,"aria-modal":"true","aria-labelledby":t?s:n?a:null,"aria-describedby":i!==void 0?l:null,tabindex:"-1"},o,{style:{zIndex:`${2e4+e}`},class:Object.assign(Object.assign({},At(this.cssClass)),{[r]:!0,"overlay-hidden":!0,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),p("ion-backdrop",{tappable:this.backdropDismiss}),p("div",{tabindex:"0"}),p("div",{class:"alert-wrapper ion-overlay-wrapper",ref:u=>this.wrapperEl=u},p("div",{class:"alert-head"},t&&p("h2",{id:s,class:"alert-title"},t),n&&p("h2",{id:a,class:"alert-sub-title"},n)),this.renderAlertMessage(l),this.renderAlertInputs(),this.renderAlertButtons()),p("div",{tabindex:"0"}))}get el(){return this}static get watchers(){return{buttons:["buttonsChanged"],inputs:["inputsChanged"]}}static get style(){return{ios:Vy,md:jy}}},[34,"ion-alert",{overlayIndex:[2,"overlay-index"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],header:[1],subHeader:[1,"sub-header"],message:[1],buttons:[16],inputs:[1040],backdropDismiss:[4,"backdrop-dismiss"],translucent:[4],animated:[4],htmlAttributes:[16],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},[[4,"keydown","onKeydown"]]]),ta=e=>{var t,n,i;return Object.assign(Object.assign({"alert-input":!0,"alert-input-disabled":((n=(t=e.attributes)===null||t===void 0?void 0:t.disabled)!==null&&n!==void 0?n:e.disabled)||!1},At(e.cssClass)),At(e.attributes?(i=e.attributes.class)===null||i===void 0?void 0:i.toString():""))},Uy=e=>Object.assign({"alert-button":!0,"ion-focusable":!0,"ion-activatable":!0,[`alert-button-role-${e.role}`]:e.role!==void 0},At(e.cssClass));function Wy(){if(typeof customElements>"u")return;["ion-alert","ion-backdrop","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-alert":customElements.get(t)||customElements.define(t,Hy);break;case"ion-backdrop":customElements.get(t)||yi();break;case"ion-ripple-effect":customElements.get(t)||Ue();break}})}/*!
|
|
1010
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
1011
|
+
*/const qy=".sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",Yy=".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md{opacity:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08);--background-focused:var(--ion-color-primary, #3880ff);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #3880ff);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #3880ff)}",Gy=Z(class extends K{constructor(){super(),this.__registerHost(),this.options=[]}onSelect(e){this.setChecked(e),this.callOptionHandler(e)}findOptionFromEvent(e){const{options:t}=this;return t.find(n=>n.value===e.target.value)}callOptionHandler(e){const t=this.findOptionFromEvent(e),n=this.getValues(e);t!=null&&t.handler&&an(t.handler,n)}rbClick(e){this.callOptionHandler(e)}setChecked(e){const{multiple:t}=this,n=this.findOptionFromEvent(e);t&&n&&(n.checked=e.detail.checked)}getValues(e){const{multiple:t,options:n}=this;if(t)return n.filter(o=>o.checked).map(o=>o.value);const i=this.findOptionFromEvent(e);return i?i.value:void 0}renderOptions(e){const{multiple:t}=this;switch(t){case!0:return this.renderCheckboxOptions(e);default:return this.renderRadioOptions(e)}}renderCheckboxOptions(e){return e.map(t=>p("ion-item",{class:At(t.cssClass)},p("ion-checkbox",{slot:"start",value:t.value,disabled:t.disabled,checked:t.checked}),p("ion-label",null,t.text)))}renderRadioOptions(e){const t=e.filter(n=>n.checked).map(n=>n.value)[0];return p("ion-radio-group",{value:t},e.map(n=>p("ion-item",{class:At(n.cssClass)},p("ion-label",null,n.text),p("ion-radio",{value:n.value,disabled:n.disabled,onClick:i=>this.rbClick(i)}))))}render(){const{header:e,message:t,options:n,subHeader:i}=this,o=i!==void 0||t!==void 0;return p(Y,{class:V(this)},p("ion-list",null,e!==void 0&&p("ion-list-header",null,e),o&&p("ion-item",null,p("ion-label",{class:"ion-text-wrap"},i!==void 0&&p("h3",null,i),t!==void 0&&p("p",null,t))),this.renderOptions(n)))}static get style(){return{ios:qy,md:Yy}}},[34,"ion-select-popover",{header:[1],subHeader:[1,"sub-header"],message:[1],multiple:[4],options:[16]},[[0,"ionChange","onSelect"]]]);function Zy(){if(typeof customElements>"u")return;["ion-select-popover","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-radio","ion-radio-group","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-select-popover":customElements.get(t)||customElements.define(t,Gy);break;case"ion-checkbox":customElements.get(t)||jc();break;case"ion-icon":customElements.get(t)||vi();break;case"ion-item":customElements.get(t)||hr();break;case"ion-label":customElements.get(t)||fr();break;case"ion-list":customElements.get(t)||Xc();break;case"ion-list-header":customElements.get(t)||Jc();break;case"ion-note":customElements.get(t)||ur();break;case"ion-radio":customElements.get(t)||Qc();break;case"ion-radio-group":customElements.get(t)||td();break;case"ion-ripple-effect":customElements.get(t)||Ue();break}})}/*!
|
|
1012
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
1013
|
+
*/const Ky=(e,t,n)=>{if(typeof MutationObserver>"u")return;const i=new MutationObserver(o=>{n(Xy(o,t))});return i.observe(e,{childList:!0,subtree:!0}),i},Xy=(e,t)=>{let n;return e.forEach(i=>{for(let o=0;o<i.addedNodes.length;o++)n=Jy(i.addedNodes[o],t)||n}),n},Jy=(e,t)=>e.nodeType!==1?void 0:(e.tagName===t.toUpperCase()?[e]:Array.from(e.querySelectorAll(t))).find(i=>i.value===e.value),Qy=":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:20px}.select-icon{width:12px;height:18px;opacity:0.33}",tw=":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:19px;height:19px;-webkit-transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:0.55}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){-webkit-transform:translate3d(0, -9px, 0);transform:translate3d(0, -9px, 0)}:host-context(.item-has-focus) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)) .select-icon{-webkit-transform:translate3d(0, -9px, 0) rotate(180deg);transform:translate3d(0, -9px, 0) rotate(180deg)}:host-context(ion-item.ion-focused) .select-icon,:host-context(.item-has-focus) .select-icon{color:var(--highlight-color-focused);opacity:1}",ew=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=N(this,"ionChange",7),this.ionCancel=N(this,"ionCancel",7),this.ionDismiss=N(this,"ionDismiss",7),this.ionFocus=N(this,"ionFocus",7),this.ionBlur=N(this,"ionBlur",7),this.ionStyle=N(this,"ionStyle",7),this.inputId=`ion-sel-${ow++}`,this.didInit=!1,this.isExpanded=!1,this.disabled=!1,this.cancelText="Cancel",this.okText="OK",this.name=this.inputId,this.multiple=!1,this.interface="alert",this.interfaceOptions={},this.onClick=e=>{this.setFocus(),this.open(e)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}styleChanged(){this.emitStyle()}valueChanged(){this.emitStyle(),this.didInit&&this.ionChange.emit({value:this.value})}async connectedCallback(){this.updateOverlayOptions(),this.emitStyle(),this.mutationO=Ky(this.el,"ion-select-option",async()=>{this.updateOverlayOptions(),ni(this)})}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentDidLoad(){this.didInit=!0}async open(e){if(this.disabled||this.isExpanded)return;this.isExpanded=!0;const t=this.overlay=await this.createOverlay(e);if(t.onDidDismiss().then(()=>{this.overlay=void 0,this.isExpanded=!1,this.ionDismiss.emit(),this.setFocus()}),await t.present(),this.interface==="popover"){let n=this.childOpts.map(o=>o.value).indexOf(this.value);n=n>-1?n:0;const i=t.querySelector(`.select-interface-option:nth-child(${n+1})`);if(i){Nc(i);const o=i.querySelector("ion-radio, ion-checkbox");o&&o.focus()}}return t}createOverlay(e){let t=this.interface;return t==="action-sheet"&&this.multiple&&(console.warn(`Select interface cannot be "${t}" with a multi-value select. Using the "alert" interface instead.`),t="alert"),t==="popover"&&!e&&(console.warn(`Select interface cannot be a "${t}" without passing an event. Using the "alert" interface instead.`),t="alert"),t==="action-sheet"?this.openActionSheet():t==="popover"?this.openPopover(e):this.openAlert()}updateOverlayOptions(){const e=this.overlay;if(!e)return;const t=this.childOpts,n=this.value;switch(this.interface){case"action-sheet":e.buttons=this.createActionSheetButtons(t,n);break;case"popover":const i=e.querySelector("ion-select-popover");i&&(i.options=this.createPopoverOptions(t,n));break;case"alert":const o=this.multiple?"checkbox":"radio";e.inputs=this.createAlertInputs(t,o,n);break}}createActionSheetButtons(e,t){const n=e.map(i=>{const o=Wn(i),r=Array.from(i.classList).filter(a=>a!=="hydrated").join(" "),s=`${Qi} ${r}`;return{role:Ji(t,o,this.compareWith)?"selected":"",text:i.textContent,cssClass:s,handler:()=>{this.value=o}}});return n.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),n}createAlertInputs(e,t,n){return e.map(o=>{const r=Wn(o),s=Array.from(o.classList).filter(l=>l!=="hydrated").join(" "),a=`${Qi} ${s}`;return{type:t,cssClass:a,label:o.textContent||"",value:r,checked:Ji(n,r,this.compareWith),disabled:o.disabled}})}createPopoverOptions(e,t){return e.map(i=>{const o=Wn(i),r=Array.from(i.classList).filter(a=>a!=="hydrated").join(" "),s=`${Qi} ${r}`;return{text:i.textContent||"",cssClass:s,value:o,checked:Ji(t,o,this.compareWith),disabled:i.disabled,handler:a=>{this.value=a,this.multiple||this.close()}}})}async openPopover(e){const t=this.interfaceOptions,n=V(this),i=n!=="md",o=this.multiple,r=this.value;let s=e,a="auto";const l=this.el.closest("ion-item");l&&(l.classList.contains("item-label-floating")||l.classList.contains("item-label-stacked"))&&(s=Object.assign(Object.assign({},e),{detail:{ionShadowTarget:l}}),a="cover");const c=Object.assign(Object.assign({mode:n,event:s,alignment:"center",size:a,showBackdrop:i},t),{component:"ion-select-popover",cssClass:["select-popover",t.cssClass],componentProps:{header:t.header,subHeader:t.subHeader,message:t.message,multiple:o,value:r,options:this.createPopoverOptions(this.childOpts,r)}});return cv.create(c)}async openActionSheet(){const e=V(this),t=this.interfaceOptions,n=Object.assign(Object.assign({mode:e},t),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",t.cssClass]});return lv.create(n)}async openAlert(){const e=this.getLabel(),t=e?e.textContent:null,n=this.interfaceOptions,i=this.multiple?"checkbox":"radio",o=V(this),r=Object.assign(Object.assign({mode:o},n),{header:n.header?n.header:t,inputs:this.createAlertInputs(this.childOpts,i,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:s=>{this.value=s}}],cssClass:["select-alert",n.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return av.create(r)}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return Lc(this.el)}hasValue(){return this.getText()!==""}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}getText(){const e=this.selectedText;return e!=null&&e!==""?e:iw(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){this.ionStyle.emit({interactive:!0,"interactive-disabled":this.disabled,select:!0,"select-disabled":this.disabled,"has-placeholder":this.placeholder!==void 0,"has-value":this.hasValue(),"has-focus":this.isExpanded})}render(){const{disabled:e,el:t,inputId:n,isExpanded:i,name:o,placeholder:r,value:s}=this,a=V(this),{labelText:l,labelId:c}=cr(t,n);dr(!0,t,o,nw(s),e);const d=this.getText();let u=!1,h=d;h===""&&r!==void 0&&(h=r,u=!0);const g={"select-text":!0,"select-placeholder":u},k=u?"placeholder":"text",b=l!==void 0?h!==""?`${h}, ${l}`:l:h;return p(Y,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":e?"true":null,"aria-label":b,class:{[a]:!0,"in-item":xn("ion-item",t),"select-disabled":e,"select-expanded":i}},p("div",{"aria-hidden":"true",class:g,part:k},h),p("div",{class:"select-icon",role:"presentation",part:"icon"},p("div",{class:"select-icon-inner"})),p("label",{id:c},b),p("button",{type:"button",disabled:e,id:n,"aria-labelledby":c,"aria-haspopup":"listbox","aria-expanded":`${i}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:C=>this.focusEl=C}))}get el(){return this}static get watchers(){return{disabled:["styleChanged"],placeholder:["styleChanged"],isExpanded:["styleChanged"],value:["valueChanged"]}}static get style(){return{ios:Qy,md:tw}}},[33,"ion-select",{disabled:[4],cancelText:[1,"cancel-text"],okText:[1,"ok-text"],placeholder:[1],name:[1],selectedText:[1,"selected-text"],multiple:[4],interface:[1],interfaceOptions:[8,"interface-options"],compareWith:[1,"compare-with"],value:[1032],isExpanded:[32],open:[64]}]),Ji=(e,t,n)=>e===void 0?!1:Array.isArray(e)?e.some(i=>Mo(i,t,n)):Mo(e,t,n),Wn=e=>{const t=e.value;return t===void 0?e.textContent||"":t},nw=e=>{if(e!=null)return Array.isArray(e)?e.join(","):e.toString()},Mo=(e,t,n)=>typeof n=="function"?n(e,t):typeof n=="string"?e[n]===t[n]:Array.isArray(t)?t.includes(e):e===t,iw=(e,t,n)=>t===void 0?"":Array.isArray(t)?t.map(i=>ea(e,i,n)).filter(i=>i!==null).join(", "):ea(e,t,n)||"",ea=(e,t,n)=>{const i=e.find(o=>Mo(t,Wn(o),n));return i?i.textContent:null};let ow=0;const Qi="select-interface-option";function rw(){if(typeof customElements>"u")return;["ion-select","ion-action-sheet","ion-alert","ion-backdrop","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-popover","ion-radio","ion-radio-group","ion-ripple-effect","ion-select-popover"].forEach(t=>{switch(t){case"ion-select":customElements.get(t)||customElements.define(t,ew);break;case"ion-action-sheet":customElements.get(t)||Ny();break;case"ion-alert":customElements.get(t)||Wy();break;case"ion-backdrop":customElements.get(t)||yi();break;case"ion-checkbox":customElements.get(t)||jc();break;case"ion-icon":customElements.get(t)||vi();break;case"ion-item":customElements.get(t)||hr();break;case"ion-label":customElements.get(t)||fr();break;case"ion-list":customElements.get(t)||Xc();break;case"ion-list-header":customElements.get(t)||Jc();break;case"ion-note":customElements.get(t)||ur();break;case"ion-popover":customElements.get(t)||ny();break;case"ion-radio":customElements.get(t)||Qc();break;case"ion-radio-group":customElements.get(t)||td();break;case"ion-ripple-effect":customElements.get(t)||Ue();break;case"ion-select-popover":customElements.get(t)||Zy();break}})}const sw=rw;/*!
|
|
1014
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
1015
|
+
*/const aw=":host{display:none}",lw=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inputId=`ion-selopt-${cw++}`,this.disabled=!1}render(){return p(Y,{role:"option",id:this.inputId,class:V(this)})}get el(){return this}static get style(){return aw}},[1,"ion-select-option",{disabled:[4],value:[8]}]);let cw=0;function dw(){if(typeof customElements>"u")return;["ion-select-option"].forEach(t=>{switch(t){case"ion-select-option":customElements.get(t)||customElements.define(t,lw);break}})}const uw=dw;/*!
|
|
1016
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
1017
|
+
*/var na;(function(e){e.Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT"})(na||(na={}));/*!
|
|
1018
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
1019
|
+
*/const hw=":host{padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-color-step-50, #f7f7f7));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:0.55px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--color:var(--ion-tab-bar-color, var(--ion-color-step-400, #999999));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:50px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.tab-bar-translucent){--background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(210%) blur(20px);backdrop-filter:saturate(210%) blur(20px)}:host(.ion-color.tab-bar-translucent){background:rgba(var(--ion-color-base-rgb), 0.8)}:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.6)}}",fw=":host{padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-background-color, #fff));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:1px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.07))));--color:var(--ion-tab-bar-color, var(--ion-color-step-600, #666666));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:56px}",pw=Z(class extends K{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabBarChanged=N(this,"ionTabBarChanged",7),this.keyboardCtrl=null,this.keyboardVisible=!1,this.translucent=!1}selectedTabChanged(){this.selectedTab!==void 0&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentWillLoad(){this.selectedTabChanged()}connectedCallback(){this.keyboardCtrl=iy(e=>{this.keyboardVisible=e})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}render(){const{color:e,translucent:t,keyboardVisible:n}=this,i=V(this),o=n&&this.el.getAttribute("slot")!=="top";return p(Y,{role:"tablist","aria-hidden":o?"true":null,class:Pt(e,{[i]:!0,"tab-bar-translucent":t,"tab-bar-hidden":o})},p("slot",null))}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"]}}static get style(){return{ios:hw,md:fw}}},[33,"ion-tab-bar",{color:[513],selectedTab:[1,"selected-tab"],translucent:[4],keyboardVisible:[32]}]);function mw(){if(typeof customElements>"u")return;["ion-tab-bar"].forEach(t=>{switch(t){case"ion-tab-bar":customElements.get(t)||customElements.define(t,pw);break}})}const gw=mw,ia="update:modelValue",to="modelValue",bw="routerLink",oa="navManager",vw="router",yw="aria",Ae=Symbol(),eo={default:Ae},ra=e=>(e==null?void 0:e.split(" "))||[],ww=(e,t,n=[])=>{var i;return[...Array.from(((i=e.value)===null||i===void 0?void 0:i.classList)||[]),...n].filter((o,r,s)=>!t.has(o)&&s.indexOf(o)===r)},Jt=(e,t,n=[],i,o,r)=>{t!==void 0&&t();const s=m.defineComponent((a,{attrs:l,slots:c,emit:d})=>{var u;let h=a[i];const g=m.ref(),k=new Set(ra(l.class)),b=P=>{P.el&&(Array.isArray(o)?o:[o]).forEach(I=>{P.el.addEventListener(I.toLowerCase(),v=>{h=(v==null?void 0:v.target)[i],d(ia,h),r&&d(r,v)})})},C=m.getCurrentInstance(),_=((u=C==null?void 0:C.appContext)===null||u===void 0?void 0:u.provides[oa])?m.inject(oa):void 0,z=P=>{const{routerLink:F}=a;if(F!==Ae)if(_!==void 0){let I={event:P};for(const v in a){const O=a[v];a.hasOwnProperty(v)&&v.startsWith(vw)&&O!==Ae&&(I[v]=O)}_.navigate(I)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{h=a[i],ra(l.class).forEach(v=>{k.add(v)});const P=a.onClick,F=v=>{P!==void 0&&P(v),v.defaultPrevented||z(v)};let I={ref:g,class:ww(g,k),onClick:F,onVnodeBeforeMount:o?b:void 0};for(const v in a){const O=a[v];(a.hasOwnProperty(v)&&O!==Ae||v.startsWith(yw))&&(I[v]=O)}return i&&(a[to]!==Ae?I=Object.assign(Object.assign({},I),{[i]:a[to]}):h!==Ae&&(I=Object.assign(Object.assign({},I),{[i]:h}))),m.h(e,I,c.default&&c.default())}});return s.displayName=e,s.props={[bw]:eo},n.forEach(a=>{s.props[a]=eo}),i&&(s.props[to]=eo,s.emits=[ia,r]),s},xw=Jt("ion-card",I0,["color","button","type","disabled","download","href","rel","routerDirection","routerAnimation","target"]),kw=Jt("ion-card-content",A0),Ew=Jt("ion-card-header",L0,["color","translucent"]),Sw=Jt("ion-card-title",B0,["color"]),sa=Jt("ion-item",dy,["color","button","detail","detailIcon","disabled","download","fill","shape","href","rel","lines","counter","routerAnimation","routerDirection","target","type","counterFormatter"]),aa=Jt("ion-label",uy,["color","position","ionColor","ionStyle"]),la=Jt("ion-select",sw,["disabled","cancelText","okText","placeholder","name","selectedText","multiple","interface","interfaceOptions","compareWith","value","ionChange","ionCancel","ionDismiss","ionFocus","ionBlur","ionStyle"],"value","v-ion-change","ionChange"),no=Jt("ion-select-option",uw,["disabled","value"]);var _t;(function(e){e.WillEnter="onIonViewWillEnter",e.DidEnter="onIonViewDidEnter",e.WillLeave="onIonViewWillLeave",e.DidLeave="onIonViewDidLeave"})(_t||(_t={}));wv+"",_t.WillEnter,xv+"",_t.DidEnter,kv+"",_t.WillLeave,Ev+"",_t.DidLeave;const Iw=(e,t,n)=>{if(n){const i=n,o=i.proxy[e]||(i.proxy[e]=[]);i.exposed&&(i.exposed[e]=o);const r=(...s)=>{if(!i.isUnmounted)return s?t(...s):t()};return o.push(r),r}else console.warn("[@ionic/vue]: Ionic Lifecycle Hooks can only be used during execution of setup().")},xi=e=>(t,n=m.getCurrentInstance())=>Iw(e,t,n);xi(_t.WillEnter);xi(_t.DidEnter);xi(_t.WillLeave);xi(_t.DidLeave);const od=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)==="IonTabButton"},rd=e=>{let t=[];return e.forEach(n=>{if(od(n))t.push(n);else if(Array.isArray(n.children)&&n.children.length>1){const i=rd(n.children);t=[...t,...i]}}),t};m.defineComponent({name:"IonTabBar",props:{_tabsWillChange:{type:Function,default:()=>{}},_tabsDidChange:{type:Function,default:()=>{}}},data(){return{tabState:{activeTab:void 0,tabs:{}},tabVnodes:[]}},updated(){this.setupTabState(m.inject("navManager"))},methods:{setupTabState(e){const t=this.$data.tabState,n=m.getCurrentInstance();(this.$data.tabVnodes=rd(n.subTree.children||[])).forEach(o=>{t.tabs[o.props.tab]={originalHref:o.props.href,currentHref:o.props.href,ref:o},o.component.props._getTabState=()=>t}),this.checkActiveTab(e)},checkActiveTab(e){const t=e.getCurrentRouteInfo(),n=this.$data.tabVnodes,{tabs:i,activeTab:o}=this.$data.tabState,r=this.$data.tabState,a=Object.keys(i).find(u=>{const h=i[u].originalHref;return t.pathname.startsWith(h)});if(n.forEach(u=>{const h=i[u.props.tab];(!h||h.originalHref!==u.props.href)&&(i[u.props.tab]={originalHref:u.props.href,currentHref:u.props.href,ref:u})}),a&&o){const u=this.$data.tabState.tabs[o].currentHref;if(a!==o||u!==t.pathname){const h=t.search?`?${t.search}`:"";i[a]=Object.assign(Object.assign({},i[a]),{currentHref:t.pathname+h})}t.routerAction==="pop"&&a!==o&&(i[o]=Object.assign(Object.assign({},i[o]),{currentHref:i[o].originalHref}))}const l=n.find(u=>{var h;return od(u)&&((h=u.props)===null||h===void 0?void 0:h.tab)===a}),c=this.$refs.ionTabBar,d=a!==o;c&&(l?(d&&this.$props._tabsWillChange(a),e.handleSetCurrentTab(a),c.selectedTab=r.activeTab=a,d&&this.$props._tabsDidChange(a)):c.selectedTab=r.activeTab="")}},mounted(){const e=m.inject("navManager");this.setupTabState(e),e.registerHistoryChangeListener(()=>this.checkActiveTab(e))},setup(e,{slots:t}){return gw(),()=>m.h("ion-tab-bar",{ref:"ionTabBar"},t.default&&t.default())}});m.shallowRef([]);const sd=m.defineComponent({__name:"ProductIdentifier",setup(e){const t=Ea(),n=exports.appContext.config.globalProperties.$store,i=m.computed(()=>n.getters["user/getCurrentEComStore"]),o=m.computed(()=>t.getProductIdentificationPref),r=t.getProductIdentificationOptions;m.onMounted(()=>{t.getIdentificationPref(i.value.productStoreId)});function s(a,l){t.setProductIdentificationPref(l,a,i.value.productStoreId)}return(a,l)=>(m.openBlock(),m.createBlock(m.unref(xw),null,{default:m.withCtx(()=>[m.createVNode(m.unref(Ew),null,{default:m.withCtx(()=>[m.createVNode(m.unref(Sw),null,{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString("Product Identifier"))]),_:1})]),_:1}),m.createVNode(m.unref(kw),null,{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString("Choosing a product identifier allows you to view products with your preferred identifiers."),1)]),_:1}),m.createVNode(m.unref(sa),null,{default:m.withCtx(()=>[m.createVNode(m.unref(aa),null,{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString("Primary Product Identifier"))]),_:1}),m.createVNode(m.unref(la),{interface:"popover",placeholder:"primary identifier",value:o.value.primaryId,onIonChange:l[0]||(l[0]=c=>s(c.detail.value,"primaryId"))},{default:m.withCtx(()=>[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(m.unref(r),c=>(m.openBlock(),m.createBlock(m.unref(no),{key:c,value:c},{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString(c),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),m.createVNode(m.unref(sa),null,{default:m.withCtx(()=>[m.createVNode(m.unref(aa),null,{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString("Secondary Product Identifier"))]),_:1}),m.createVNode(m.unref(la),{interface:"popover",placeholder:"secondary identifier",value:o.value.secondaryId,onIonChange:l[1]||(l[1]=c=>s(c.detail.value,"secondaryId"))},{default:m.withCtx(()=>[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(m.unref(r),c=>(m.openBlock(),m.createBlock(m.unref(no),{key:c,value:c},{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString(c),1)]),_:2},1032,["value"]))),128)),m.createVNode(m.unref(no),{value:""},{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString("None"))]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}))}}),ad=wu();ad.use(jg);let lt={},wr={};exports.appContext={};let pn={},Ft={},Tw={install(e,t){exports.appContext=e,e.use(ad),e.component("Login",hc),e.component("ShopifyImg",fc),e.component("ProductIdentifier",sd),lt.login=t.login,lt.logout=t.logout,lt.loader=t.loader,lt.appLoginUrl=t.appLoginUrl,wr.defaultImgUrl=t.defaultImgUrl,pn.getProductIdentificationPref=t.getProductIdentificationPref,pn.setProductIdentificationPref=t.setProductIdentificationPref,Ft.addNotification=t.addNotification,Ft.appFirebaseConfig=t.appFirebaseConfig,Ft.appFirebaseVapidKey=t.appFirebaseVapidKey,Ft.storeClientRegistrationToken=t.storeClientRegistrationToken,lt.getConfig=t.getConfig,lt.initialise=t.initialise}};exports.Login=hc;exports.ProductIdentifier=sd;exports.ShopifyImg=fc;exports.dxpComponents=Tw;exports.goToOms=Ng;exports.initialiseFirebaseApp=uc;exports.loginContext=lt;exports.noitificationContext=Ft;exports.productIdentificationContext=pn;exports.shopifyImgContext=wr;exports.useAuthStore=El;exports.useProductIdentificationStore=Ea;
|