@hotwax/dxp-components 1.22.2 → 1.22.3
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/DxpAppVersionInfo.vue.d.ts +2 -2
- package/lib/components/DxpAppVersionInfo.vue.d.ts.map +1 -1
- package/lib/components/DxpFacilitySwitcher.vue.d.ts +2 -2
- package/lib/components/DxpFacilitySwitcher.vue.d.ts.map +1 -1
- package/lib/components/DxpGitBookSearch.vue.d.ts +2 -2
- package/lib/components/DxpGitBookSearch.vue.d.ts.map +1 -1
- package/lib/components/DxpImage.vue.d.ts +2 -2
- package/lib/components/DxpImage.vue.d.ts.map +1 -1
- package/lib/components/DxpLanguageSwitcher.vue.d.ts +2 -2
- package/lib/components/DxpLanguageSwitcher.vue.d.ts.map +1 -1
- package/lib/components/DxpLogin.vue.d.ts +3 -3
- package/lib/components/DxpLogin.vue.d.ts.map +1 -1
- package/lib/components/DxpMenuFooterNavigation.vue.d.ts +2 -2
- package/lib/components/DxpMenuFooterNavigation.vue.d.ts.map +1 -1
- package/lib/components/DxpOmsInstanceNavigator.vue.d.ts +2 -2
- package/lib/components/DxpOmsInstanceNavigator.vue.d.ts.map +1 -1
- package/lib/components/DxpPagination.vue.d.ts +2 -2
- package/lib/components/DxpPagination.vue.d.ts.map +1 -1
- package/lib/components/DxpProductIdentifier.vue.d.ts +2 -2
- package/lib/components/DxpProductIdentifier.vue.d.ts.map +1 -1
- package/lib/components/DxpProductStoreSelector.vue.d.ts +2 -2
- package/lib/components/DxpProductStoreSelector.vue.d.ts.map +1 -1
- package/lib/components/DxpShopifyImg.vue.d.ts +2 -2
- package/lib/components/DxpShopifyImg.vue.d.ts.map +1 -1
- package/lib/components/DxpTimeZoneSwitcher.vue.d.ts +2 -2
- package/lib/components/DxpTimeZoneSwitcher.vue.d.ts.map +1 -1
- package/lib/components/DxpUserProfile.vue.d.ts +2 -2
- package/lib/components/DxpUserProfile.vue.d.ts.map +1 -1
- package/lib/components/ImageModal.vue.d.ts +2 -2
- package/lib/components/ImageModal.vue.d.ts.map +1 -1
- package/lib/{index-e69408d1.js → index-388fe0c6.js} +774 -766
- package/lib/{index-724c1eb1.cjs → index-c07f74a3.cjs} +7 -7
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +20 -19
- package/lib/{index9-e5dee6fc.cjs → index9-cf787c96.cjs} +1 -1
- package/lib/{index9-260bd7aa.js → index9-fe0890a9.js} +1 -1
- package/lib/{input-shims-87cca364.js → input-shims-6a19fd55.js} +1 -1
- package/lib/{input-shims-b0c5d7d7.cjs → input-shims-efeb3d80.cjs} +1 -1
- package/lib/{ios.transition-853fae7f.cjs → ios.transition-2035df9a.cjs} +1 -1
- package/lib/{ios.transition-4e661dd6.js → ios.transition-77ccb35d.js} +1 -1
- package/lib/{md.transition-65756cfd.cjs → md.transition-bfdac154.cjs} +1 -1
- package/lib/{md.transition-52223049.js → md.transition-d55a82f7.js} +1 -1
- package/lib/{status-tap-7589d22a.js → status-tap-236157de.js} +1 -1
- package/lib/{status-tap-b41afd85.cjs → status-tap-3ef9ea2d.cjs} +1 -1
- package/lib/store/auth.d.ts +9 -0
- package/lib/store/auth.d.ts.map +1 -1
- package/lib/{swipe-back-45296dfc.cjs → swipe-back-c6e34927.cjs} +1 -1
- package/lib/{swipe-back-03bce7cd.js → swipe-back-f59e8842.js} +1 -1
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ Only state can be modified.`);u[0]="$state",isTimelineActive=!1,o.set(c,u,o.stat
|
|
|
9
9
|
Found in store "${P.$id}".`),I&&c&&r.hydrate&&r.hydrate(P.$state,I),g=!0,b=!0,P}function defineStore(t,e,r){let o,a;const c=typeof e=="function";if(typeof t=="string")o=t,a=c?r:e;else if(a=t,o=t.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function u(d,p){const g=vue.getCurrentInstance();if(d=(process.env.NODE_ENV==="test"&&activePinia&&activePinia._testing?null:d)||g&&vue.inject(piniaSymbol,null),d&&setActivePinia(d),process.env.NODE_ENV!=="production"&&!activePinia)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.`);d=activePinia,d._s.has(o)||(c?createSetupStore(o,e,a,d):createOptionsStore(o,a,d),process.env.NODE_ENV!=="production"&&(u._pinia=d));const b=d._s.get(o);if(process.env.NODE_ENV!=="production"&&p){const x="__hot:"+o,w=c?createSetupStore(x,e,a,d,!0):createOptionsStore(x,assign$5({},a),d,!0);p._hotUpdate(w),delete d.state.value[x],d._s.delete(x)}if(process.env.NODE_ENV!=="production"&&IS_CLIENT&&g&&g.proxy&&!p){const x=g.proxy,w="_pStores"in x?x._pStores:x._pStores={};w[o]=b}return b}return u.$id=o,u}const useProductIdentificationStore=defineStore("productIdentification",{state:()=>({productIdentificationPref:{primaryId:"",secondaryId:""},productIdentificationOptions:[],goodIdentificationOptions:[]}),getters:{getProductIdentificationPref:t=>t.productIdentificationPref,getProductIdentificationOptions:t=>t.productIdentificationOptions,getGoodIdentificationOptions:t=>t.goodIdentificationOptions},actions:{async setProductIdentificationPref(t,e,r){const o=JSON.parse(JSON.stringify(this.getProductIdentificationPref));if(!r){this.productIdentificationPref=o;return}o[t]=e;try{this.productIdentificationPref=await productIdentificationContext.setProductIdentificationPref(r,o)}catch(a){console.error("error",a)}},async getIdentificationPref(t){if(!t)return this.productIdentificationPref={primaryId:"productId",secondaryId:""};this.productIdentificationPref=await productIdentificationContext.getProductIdentificationPref(t)},async prepareProductIdentifierOptions(){const t=[{goodIdentificationTypeId:"productId",description:"Product ID"},{goodIdentificationTypeId:"groupId",description:"Group ID"},{goodIdentificationTypeId:"groupName",description:"Group Name"},{goodIdentificationTypeId:"internalName",description:"Internal Name"},{goodIdentificationTypeId:"parentProductName",description:"Parent Product Name"},{goodIdentificationTypeId:"primaryProductCategoryName",description:"Primary Product Category Name"},{goodIdentificationTypeId:"title",description:"Title"}],r=await productIdentificationContext.fetchGoodIdentificationTypes("HC_GOOD_ID_TYPE")||[];this.productIdentificationOptions=Array.from(new Set([...t,...r])).sort(),this.goodIdentificationOptions=r}}});class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const n="numeric",s="short",l="long",DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l,day:n,weekday:l,hour:n,minute:n,timeZoneName:l},DATETIME_HUGE_WITH_SECONDS={year:n,month:l,day:n,weekday:l,hour:n,minute:n,second:n,timeZoneName:l};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,r){throw new ZoneIsAbstractError}formatOffset(e,r){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let singleton$1=null;class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:o}){return parseZoneInfo(e,r,o)}formatOffset(e,r){return formatOffset(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let dtfCache={};function makeDTF(t){return dtfCache[t]||(dtfCache[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"})),dtfCache[t]}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(t,e){const r=t.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,c,u,d,p,g,b]=o;return[u,a,c,d,p,g,b]}function partsOffset(t,e){const r=t.formatToParts(e),o=[];for(let a=0;a<r.length;a++){const{type:c,value:u}=r[a],d=typeToPos[c];c==="era"?o[d]=u:isUndefined$1(d)||(o[d]=parseInt(u,10))}return o}let ianaZoneCache={};class IANAZone extends Zone{static create(e){return ianaZoneCache[e]||(ianaZoneCache[e]=new IANAZone(e)),ianaZoneCache[e]}static resetCache(){ianaZoneCache={},dtfCache={}}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=IANAZone.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:o}){return parseZoneInfo(e,r,o,this.name)}formatOffset(e,r){return formatOffset(this.offset(e),r)}offset(e){const r=new Date(e);if(isNaN(r))return NaN;const o=makeDTF(this.name);let[a,c,u,d,p,g,b]=o.formatToParts?partsOffset(o,r):hackyOffset(o,r);d==="BC"&&(a=-Math.abs(a)+1);const w=objToLocalTS({year:a,month:c,day:u,hour:p===24?0:p,minute:g,second:b,millisecond:0});let y=+r;const I=y%1e3;return y-=I>=0?I:1e3+I,(w-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let intlLFCache={};function getCachedLF(t,e={}){const r=JSON.stringify([t,e]);let o=intlLFCache[r];return o||(o=new Intl.ListFormat(t,e),intlLFCache[r]=o),o}let intlDTCache={};function getCachedDTF(t,e={}){const r=JSON.stringify([t,e]);let o=intlDTCache[r];return o||(o=new Intl.DateTimeFormat(t,e),intlDTCache[r]=o),o}let intlNumCache={};function getCachedINF(t,e={}){const r=JSON.stringify([t,e]);let o=intlNumCache[r];return o||(o=new Intl.NumberFormat(t,e),intlNumCache[r]=o),o}let intlRelCache={};function getCachedRTF(t,e={}){const{base:r,...o}=e,a=JSON.stringify([t,o]);let c=intlRelCache[a];return c||(c=new Intl.RelativeTimeFormat(t,e),intlRelCache[a]=c),c}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}function parseLocaleString(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const r=t.indexOf("-u-");if(r===-1)return[t];{let o,a;try{o=getCachedDTF(t).resolvedOptions(),a=t}catch{const p=t.substring(0,r);o=getCachedDTF(p).resolvedOptions(),a=p}const{numberingSystem:c,calendar:u}=o;return[a,c,u]}}function intlConfigString(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function mapMonths(t){const e=[];for(let r=1;r<=12;r++){const o=DateTime.utc(2009,r,1);e.push(t(o))}return e}function mapWeekdays(t){const e=[];for(let r=1;r<=7;r++){const o=DateTime.utc(2016,11,13+r);e.push(t(o))}return e}function listStuff(t,e,r,o){const a=t.listingMode();return a==="error"?null:a==="en"?r(e):o(e)}function supportsFastNumbers(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 PolyNumberFormatter{constructor(e,r,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:a,floor:c,...u}=o;if(!r||Object.keys(u).length>0){const d={useGrouping:!1,...o};o.padTo>0&&(d.minimumIntegerDigits=o.padTo),this.inf=getCachedINF(e,d)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):roundTo(e,3);return padStart(r,this.padTo)}}}class PolyDateFormatter{constructor(e,r,o){this.opts=o,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),d=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&IANAZone.create(d).valid?(a=d,this.dt=e):(a="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,a=e.zone.name):(a="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const c={...this.opts};c.timeZone=c.timeZone||a,this.dtf=getCachedDTF(r,c)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:o}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,r,o){this.opts={style:"long",...o},!r&&hasRelative()&&(this.rtf=getCachedRTF(e,o))}format(e,r){return this.rtf?this.rtf.format(e,r):formatRelativeTime(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,r,o,a=!1){const c=e||Settings.defaultLocale,u=c||(a?"en-US":systemLocale()),d=r||Settings.defaultNumberingSystem,p=o||Settings.defaultOutputCalendar;return new Locale(u,d,p,c)}static resetCache(){sysLocaleCache=null,intlDTCache={},intlNumCache={},intlRelCache={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:o}={}){return Locale.create(e,r,o)}constructor(e,r,o,a){const[c,u,d]=parseLocaleString(e);this.locale=c,this.numberingSystem=r||u||null,this.outputCalendar=o||d||null,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Locale.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,r=!1){return listStuff(this,e,months,()=>{const o=r?{month:e,day:"numeric"}:{month:e},a=r?"format":"standalone";return this.monthsCache[a][e]||(this.monthsCache[a][e]=mapMonths(c=>this.extract(c,o,"month"))),this.monthsCache[a][e]})}weekdays(e,r=!1){return listStuff(this,e,weekdays,()=>{const o=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=r?"format":"standalone";return this.weekdaysCache[a][e]||(this.weekdaysCache[a][e]=mapWeekdays(c=>this.extract(c,o,"weekday"))),this.weekdaysCache[a][e]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return listStuff(this,e,eras,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(o=>this.extract(o,r,"era"))),this.eraCache[e]})}extract(e,r,o){const a=this.dtFormatter(e,r),c=a.formatToParts(),u=c.find(d=>d.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new PolyDateFormatter(e,this.intl,r)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(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}}let singleton=null;class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone(signedOffset(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return formatOffset(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class InvalidZone extends Zone{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 normalizeZone(t,e){if(isUndefined$1(t)||t===null)return e;if(t instanceof Zone)return t;if(isString$5(t)){const r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?SystemZone.instance:r==="utc"||r==="gmt"?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(r)||IANAZone.create(t)}else return isNumber$3(t)?FixedOffsetZone.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new InvalidZone(t)}let now$2=()=>Date.now(),defaultZone="system",defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid;class Settings{static get now(){return now$2}static set now(e){now$2=e}static set defaultZone(e){defaultZone=e}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(e){defaultLocale=e}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(e){defaultNumberingSystem=e}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(e){defaultOutputCalendar=e}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(e){twoDigitCutoffYear=e%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(e){throwOnInvalid=e}static resetCaches(){Locale.resetCache(),IANAZone.resetCache()}}function isUndefined$1(t){return typeof t>"u"}function isNumber$3(t){return typeof t=="number"}function isInteger(t){return typeof t=="number"&&t%1===0}function isString$5(t){return typeof t=="string"}function isDate$3(t){return Object.prototype.toString.call(t)==="[object Date]"}function hasRelative(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function maybeArray(t){return Array.isArray(t)?t:[t]}function bestBy(t,e,r){if(t.length!==0)return t.reduce((o,a)=>{const c=[e(a),a];return o&&r(o[0],c[0])===o[0]?o:c},null)[1]}function pick$1(t,e){return e.reduce((r,o)=>(r[o]=t[o],r),{})}function hasOwnProperty$1(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function integerBetween(t,e,r){return isInteger(t)&&t>=e&&t<=r}function floorMod(t,e){return t-e*Math.floor(t/e)}function padStart(t,e=2){const r=t<0;let o;return r?o="-"+(""+-t).padStart(e,"0"):o=(""+t).padStart(e,"0"),o}function parseInteger(t){if(!(isUndefined$1(t)||t===null||t===""))return parseInt(t,10)}function parseFloating(t){if(!(isUndefined$1(t)||t===null||t===""))return parseFloat(t)}function parseMillis(t){if(!(isUndefined$1(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function roundTo(t,e,r=!1){const o=10**e;return(r?Math.trunc:Math.round)(t*o)/o}function isLeapYear(t){return t%4===0&&(t%100!==0||t%400===0)}function daysInYear(t){return isLeapYear(t)?366:365}function daysInMonth(t,e){const r=floorMod(e-1,12)+1,o=t+(e-r)/12;return r===2?isLeapYear(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function objToLocalTS(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(t.year,t.month-1,t.day)),+e}function weeksInWeekYear(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,o=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return e===4||o===3?53:52}function untruncateYear(t){return t>99?t:t>Settings.twoDigitCutoffYear?1900+t:2e3+t}function parseZoneInfo(t,e,r,o=null){const a=new Date(t),c={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(c.timeZone=o);const u={timeZoneName:e,...c},d=new Intl.DateTimeFormat(r,u).formatToParts(a).find(p=>p.type.toLowerCase()==="timezonename");return d?d.value:null}function signedOffset(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const o=parseInt(e,10)||0,a=r<0||Object.is(r,-0)?-o:o;return r*60+a}function asNumber(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new InvalidArgumentError(`Invalid unit value ${t}`);return e}function normalizeObject(t,e){const r={};for(const o in t)if(hasOwnProperty$1(t,o)){const a=t[o];if(a==null)continue;r[e(o)]=asNumber(a)}return r}function formatOffset(t,e){const r=Math.trunc(Math.abs(t/60)),o=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${padStart(r,2)}:${padStart(o,2)}`;case"narrow":return`${a}${r}${o>0?`:${o}`:""}`;case"techie":return`${a}${padStart(r,2)}${padStart(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function timeObject(t){return pick$1(t,["hour","minute","second","millisecond"])}const monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(t){switch(t){case"narrow":return[...monthsNarrow];case"short":return[...monthsShort];case"long":return[...monthsLong];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 weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(t){switch(t){case"narrow":return[...weekdaysNarrow];case"short":return[...weekdaysShort];case"long":return[...weekdaysLong];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(t){switch(t){case"narrow":return[...erasNarrow];case"short":return[...erasShort];case"long":return[...erasLong];default:return null}}function meridiemForDateTime(t){return meridiems[t.hour<12?0:1]}function weekdayForDateTime(t,e){return weekdays(e)[t.weekday-1]}function monthForDateTime(t,e){return months(e)[t.month-1]}function eraForDateTime(t,e){return eras(e)[t.year<0?0:1]}function formatRelativeTime(t,e,r="always",o=!1){const a={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."]},c=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&c){const x=t==="days";switch(e){case 1:return x?"tomorrow":`next ${a[t][0]}`;case-1:return x?"yesterday":`last ${a[t][0]}`;case 0:return x?"today":`this ${a[t][0]}`}}const u=Object.is(e,-0)||e<0,d=Math.abs(e),p=d===1,g=a[t],b=o?p?g[1]:g[2]||g[1]:p?a[t][0]:t;return u?`${d} ${b} ago`:`in ${d} ${b}`}function stringifyTokens(t,e){let r="";for(const o of t)o.literal?r+=o.val:r+=e(o.val);return r}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};class Formatter{static create(e,r={}){return new Formatter(e,r)}static parseFormat(e){let r=null,o="",a=!1;const c=[];for(let u=0;u<e.length;u++){const d=e.charAt(u);d==="'"?(o.length>0&&c.push({literal:a||/^\s+$/.test(o),val:o}),r=null,o="",a=!a):a||d===r?o+=d:(o.length>0&&c.push({literal:/^\s+$/.test(o),val:o}),o=d,r=d)}return o.length>0&&c.push({literal:a||/^\s+$/.test(o),val:o}),c}static macroTokenToFormatOpts(e){return macroTokenToFormatOpts[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return padStart(e,r);const o={...this.opts};return r>0&&(o.padTo=r),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,r){const o=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",c=(y,I)=>this.loc.extract(e,y,I),u=y=>e.isOffsetFixed&&e.offset===0&&y.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,y.format):"",d=()=>o?meridiemForDateTime(e):c({hour:"numeric",hourCycle:"h12"},"dayperiod"),p=(y,I)=>o?monthForDateTime(e,y):c(I?{month:y}:{month:y,day:"numeric"},"month"),g=(y,I)=>o?weekdayForDateTime(e,y):c(I?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),b=y=>{const I=Formatter.macroTokenToFormatOpts(y);return I?this.formatWithSystemDefault(e,I):y},x=y=>o?eraForDateTime(e,y):c({era:y},"era"),w=y=>{switch(y){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 u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({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 d();case"d":return a?c({day:"numeric"},"day"):this.num(e.day);case"dd":return a?c({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return g("short",!0);case"cccc":return g("long",!0);case"ccccc":return g("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return g("short",!1);case"EEEE":return g("long",!1);case"EEEEE":return g("narrow",!1);case"L":return a?c({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?c({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return p("short",!0);case"LLLL":return p("long",!0);case"LLLLL":return p("narrow",!0);case"M":return a?c({month:"numeric"},"month"):this.num(e.month);case"MM":return a?c({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return p("short",!1);case"MMMM":return p("long",!1);case"MMMMM":return p("narrow",!1);case"y":return a?c({year:"numeric"},"year"):this.num(e.year);case"yy":return a?c({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?c({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?c({year:"numeric"},"year"):this.num(e.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("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 b(y)}};return stringifyTokens(Formatter.parseFormat(r),w)}formatDurationFromString(e,r){const o=p=>{switch(p[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}},a=p=>g=>{const b=o(g);return b?this.num(p.get(b),g.length):g},c=Formatter.parseFormat(r),u=c.reduce((p,{literal:g,val:b})=>g?p:p.concat(b),[]),d=e.shiftTo(...u.map(o).filter(p=>p));return stringifyTokens(c,a(d))}}class Invalid{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...t){const e=t.reduce((r,o)=>r+o.source,"");return RegExp(`^${e}$`)}function combineExtractors(...t){return e=>t.reduce(([r,o,a],c)=>{const[u,d,p]=c(e,a);return[{...r,...u},d||o,p]},[{},null,1]).slice(0,2)}function parse$4(t,...e){if(t==null)return[null,null];for(const[r,o]of e){const a=r.exec(t);if(a)return o(a)}return[null,null]}function simpleParse(...t){return(e,r)=>{const o={};let a;for(a=0;a<t.length;a++)o[t[a]]=parseInteger(e[r+a]);return[o,null,r+a]}}const offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:T${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int$1(t,e,r){const o=t[e];return isUndefined$1(o)?r:parseInteger(o)}function extractISOYmd(t,e){return[{year:int$1(t,e),month:int$1(t,e+1,1),day:int$1(t,e+2,1)},null,e+3]}function extractISOTime(t,e){return[{hours:int$1(t,e,0),minutes:int$1(t,e+1,0),seconds:int$1(t,e+2,0),milliseconds:parseMillis(t[e+3])},null,e+4]}function extractISOOffset(t,e){const r=!t[e]&&!t[e+1],o=signedOffset(t[e+1],t[e+2]),a=r?null:FixedOffsetZone.instance(o);return[{},a,e+3]}function extractIANAZone(t,e){const r=t[e]?IANAZone.create(t[e]):null;return[{},r,e+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?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 extractISODuration(t){const[e,r,o,a,c,u,d,p,g]=t,b=e[0]==="-",x=p&&p[0]==="-",w=(y,I=!1)=>y!==void 0&&(I||y&&b)?-y:y;return[{years:w(parseFloating(r)),months:w(parseFloating(o)),weeks:w(parseFloating(a)),days:w(parseFloating(c)),hours:w(parseFloating(u)),minutes:w(parseFloating(d)),seconds:w(parseFloating(p),p==="-0"),milliseconds:w(parseMillis(g),x)}]}const obsOffsets={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 fromStrings(t,e,r,o,a,c,u){const d={year:e.length===2?untruncateYear(parseInteger(e)):parseInteger(e),month:monthsShort.indexOf(r)+1,day:parseInteger(o),hour:parseInteger(a),minute:parseInteger(c)};return u&&(d.second=parseInteger(u)),t&&(d.weekday=t.length>3?weekdaysLong.indexOf(t)+1:weekdaysShort.indexOf(t)+1),d}const rfc2822=/^(?:(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 extractRFC2822(t){const[,e,r,o,a,c,u,d,p,g,b,x]=t,w=fromStrings(e,a,o,r,c,u,d);let y;return p?y=obsOffsets[p]:g?y=0:y=signedOffset(b,x),[w,new FixedOffsetZone(y)]}function preprocessRFC2822(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123=/^(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$/,rfc850=/^(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$/,ascii=/^(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 extractRFC1123Or850(t){const[,e,r,o,a,c,u,d]=t;return[fromStrings(e,a,o,r,c,u,d),FixedOffsetZone.utcInstance]}function extractASCII(t){const[,e,r,o,a,c,u,d]=t;return[fromStrings(e,d,r,o,a,c,u),FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(t){return parse$4(t,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(t){return parse$4(preprocessRFC2822(t),[rfc2822,extractRFC2822])}function parseHTTPDate(t){return parse$4(t,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(t){return parse$4(t,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(t){return parse$4(t,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(t){return parse$4(t,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2="Invalid Duration",lowOrderMatrix={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}},casualMatrix={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},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(t,e,r=!1){const o={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Duration(o)}function durationToMillis(t,e){let r=e.milliseconds??0;for(const o of reverseUnits.slice(1))e[o]&&(r+=e[o]*t[o].milliseconds);return r}function normalizeValues(t,e){const r=durationToMillis(t,e)<0?-1:1;orderedUnits$1.reduceRight((o,a)=>{if(isUndefined$1(e[a]))return o;if(o){const c=e[o]*r,u=t[a][o],d=Math.floor(c/u);e[a]+=d*r,e[o]-=d*u*r}return a},null),orderedUnits$1.reduce((o,a)=>{if(isUndefined$1(e[a]))return o;if(o){const c=e[o]%1;e[o]-=c,e[a]+=c*t[o][a]}return a},null)}function removeZeroes(t){const e={};for(const[r,o]of Object.entries(t))o!==0&&(e[r]=o);return e}class Duration{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let o=r?accurateMatrix:casualMatrix;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||Locale.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,r){return Duration.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(isNumber$3(e))return Duration.fromMillis(e);if(Duration.isDuration(e))return e;if(typeof e=="object")return Duration.fromObject(e);throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[o]=parseISODuration(e);return o?Duration.fromObject(o,r):Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[o]=parseISOTimeOnly(e);return o?Duration.fromObject(o,r):Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");const o=e instanceof Invalid?e:new Invalid(e,r);if(Settings.throwOnInvalid)throw new InvalidDurationError(o);return new Duration({invalid:o})}static normalizeUnit(e){const r={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(!r)throw new InvalidUnitError(e);return r}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,r={}){const o={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Formatter.create(this.loc,o).formatDurationFromString(this,e):INVALID$2}toHuman(e={}){if(!this.isValid)return INVALID$2;const r=orderedUnits$1.map(o=>{const a=this.values[o];return isUndefined$1(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(a)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}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+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},DateTime.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=Duration.fromDurationLike(e),o={};for(const a of orderedUnits$1)(hasOwnProperty$1(r.values,a)||hasOwnProperty$1(this.values,a))&&(o[a]=r.get(a)+this.get(a));return clone$1(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const r=Duration.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const o of Object.keys(this.values))r[o]=asNumber(e(this.values[o],o));return clone$1(this,{values:r},!0)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone$1(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:o,matrix:a}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:a,conversionAccuracy:o};return clone$1(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return normalizeValues(this.matrix,e),clone$1(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>Duration.normalizeUnit(u));const r={},o={},a=this.toObject();let c;for(const u of orderedUnits$1)if(e.indexOf(u)>=0){c=u;let d=0;for(const g in o)d+=this.matrix[g][u]*o[g],o[g]=0;isNumber$3(a[u])&&(d+=a[u]);const p=Math.trunc(d);r[u]=p,o[u]=(d*1e3-p*1e3)/1e3}else isNumber$3(a[u])&&(o[u]=a[u]);for(const u in o)o[u]!==0&&(r[c]+=u===c?o[u]:o[u]/this.matrix[c][u]);return normalizeValues(this.matrix,r),clone$1(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return clone$1(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 r(o,a){return o===void 0||o===0?a===void 0||a===0:o===a}for(const o of orderedUnits$1)if(!r(this.values[o],e.values[o]))return!1;return!0}}const INVALID$1="Invalid Interval";function validateStartEnd(t,e){return!t||!t.isValid?Interval.invalid("missing or invalid start"):!e||!e.isValid?Interval.invalid("missing or invalid end"):e<t?Interval.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 Interval{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");const o=e instanceof Invalid?e:new Invalid(e,r);if(Settings.throwOnInvalid)throw new InvalidIntervalError(o);return new Interval({invalid:o})}static fromDateTimes(e,r){const o=friendlyDateTime(e),a=friendlyDateTime(r),c=validateStartEnd(o,a);return c??new Interval({start:o,end:a})}static after(e,r){const o=Duration.fromDurationLike(r),a=friendlyDateTime(e);return Interval.fromDateTimes(a,a.plus(o))}static before(e,r){const o=Duration.fromDurationLike(r),a=friendlyDateTime(e);return Interval.fromDateTimes(a.minus(o),a)}static fromISO(e,r){const[o,a]=(e||"").split("/",2);if(o&&a){let c,u;try{c=DateTime.fromISO(o,r),u=c.isValid}catch{u=!1}let d,p;try{d=DateTime.fromISO(a,r),p=d.isValid}catch{p=!1}if(u&&p)return Interval.fromDateTimes(c,d);if(u){const g=Duration.fromISO(a,r);if(g.isValid)return Interval.after(c,g)}else if(p){const g=Duration.fromISO(o,r);if(g.isValid)return Interval.before(d,g)}}return Interval.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 r=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(r,e).get(e))+(o.valueOf()!==this.end.valueOf())}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:r}={}){return this.isValid?Interval.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(friendlyDateTime).filter(u=>this.contains(u)).sort(),o=[];let{s:a}=this,c=0;for(;a<this.e;){const u=r[c]||this.e,d=+u>+this.e?this.e:u;o.push(Interval.fromDateTimes(a,d)),a=d,c+=1}return o}splitBy(e){const r=Duration.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:o}=this,a=1,c;const u=[];for(;o<this.e;){const d=this.start.plus(r.mapUnits(p=>p*a));c=+d>+this.e?this.e:d,u.push(Interval.fromDateTimes(o,c)),o=c,a+=1}return u}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 r=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return r>=o?null:Interval.fromDateTimes(r,o)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return Interval.fromDateTimes(r,o)}static merge(e){const[r,o]=e.sort((a,c)=>a.s-c.s).reduce(([a,c],u)=>c?c.overlaps(u)||c.abutsStart(u)?[a,c.union(u)]:[a.concat([c]),u]:[a,u],[[],null]);return o&&r.push(o),r}static xor(e){let r=null,o=0;const a=[],c=e.map(p=>[{time:p.s,type:"s"},{time:p.e,type:"e"}]),u=Array.prototype.concat(...c),d=u.sort((p,g)=>p.time-g.time);for(const p of d)o+=p.type==="s"?1:-1,o===1?r=p.time:(r&&+r!=+p.time&&a.push(Interval.fromDateTimes(r,p.time)),r=null);return Interval.merge(a)}difference(...e){return Interval.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}toLocaleString(e=DATE_SHORT,r={}){return this.isValid?Formatter.create(this.s.loc.clone(r),e).formatInterval(this):INVALID$1}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:INVALID$1}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:INVALID$1}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Duration.invalid(this.invalidReason)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const r=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static months(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null,outputCalendar:c="gregory"}={}){return(a||Locale.create(r,o,c)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null,outputCalendar:c="gregory"}={}){return(a||Locale.create(r,o,c)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null}={}){return(a||Locale.create(r,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null}={}){return(a||Locale.create(r,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return Locale.create(r,null,"gregory").eras(e)}static features(){return{relative:hasRelative()}}}function dayDiff(t,e){const r=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=r(e)-r(t);return Math.floor(Duration.fromMillis(o).as("days"))}function highOrderDiffs(t,e,r){const o=[["years",(p,g)=>g.year-p.year],["quarters",(p,g)=>g.quarter-p.quarter+(g.year-p.year)*4],["months",(p,g)=>g.month-p.month+(g.year-p.year)*12],["weeks",(p,g)=>{const b=dayDiff(p,g);return(b-b%7)/7}],["days",dayDiff]],a={},c=t;let u,d;for(const[p,g]of o)r.indexOf(p)>=0&&(u=p,a[p]=g(t,e),d=c.plus(a),d>e?(a[p]--,t=c.plus(a),t>e&&(d=t,a[p]--,t=c.plus(a))):t=d);return[t,a,d,u]}function diff(t,e,r,o){let[a,c,u,d]=highOrderDiffs(t,e,r);const p=e-a,g=r.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);g.length===0&&(u<e&&(u=a.plus({[d]:1})),u!==a&&(c[d]=(c[d]||0)+p/(u-a)));const b=Duration.fromObject(c,o);return g.length>0?Duration.fromMillis(p,o).shiftTo(...g).plus(b):b}const numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={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]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){const o=t.charCodeAt(r);if(t[r].search(numberingSystems.hanidec)!==-1)e+=hanidecChars.indexOf(t[r]);else for(const a in numberingSystemsUTF16){const[c,u]=numberingSystemsUTF16[a];o>=c&&o<=u&&(e+=o-c)}}return parseInt(e,10)}else return e}function digitRegex({numberingSystem:t},e=""){return new RegExp(`${numberingSystems[t||"latn"]}${e}`)}const MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(t,e=r=>r){return{regex:t,deser:([r])=>e(parseDigits(r))}}const NBSP=String.fromCharCode(160),spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(t){return t.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(t){return t.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(t,e){return t===null?null:{regex:RegExp(t.map(fixListRegex).join("|")),deser:([r])=>t.findIndex(o=>stripInsensitivities(r)===stripInsensitivities(o))+e}}function offset(t,e){return{regex:t,deser:([,r,o])=>signedOffset(r,o),groups:e}}function simple(t){return{regex:t,deser:([e])=>e}}function escapeToken(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(t,e){const r=digitRegex(e),o=digitRegex(e,"{2}"),a=digitRegex(e,"{3}"),c=digitRegex(e,"{4}"),u=digitRegex(e,"{6}"),d=digitRegex(e,"{1,2}"),p=digitRegex(e,"{1,3}"),g=digitRegex(e,"{1,6}"),b=digitRegex(e,"{1,9}"),x=digitRegex(e,"{2,4}"),w=digitRegex(e,"{4,6}"),y=T=>({regex:RegExp(escapeToken(T.val)),deser:([E])=>E,literal:!0}),k=(T=>{if(t.literal)return y(T);switch(T.val){case"G":return oneOf(e.eras("short"),0);case"GG":return oneOf(e.eras("long"),0);case"y":return intUnit(g);case"yy":return intUnit(x,untruncateYear);case"yyyy":return intUnit(c);case"yyyyy":return intUnit(w);case"yyyyyy":return intUnit(u);case"M":return intUnit(d);case"MM":return intUnit(o);case"MMM":return oneOf(e.months("short",!0),1);case"MMMM":return oneOf(e.months("long",!0),1);case"L":return intUnit(d);case"LL":return intUnit(o);case"LLL":return oneOf(e.months("short",!1),1);case"LLLL":return oneOf(e.months("long",!1),1);case"d":return intUnit(d);case"dd":return intUnit(o);case"o":return intUnit(p);case"ooo":return intUnit(a);case"HH":return intUnit(o);case"H":return intUnit(d);case"hh":return intUnit(o);case"h":return intUnit(d);case"mm":return intUnit(o);case"m":return intUnit(d);case"q":return intUnit(d);case"qq":return intUnit(o);case"s":return intUnit(d);case"ss":return intUnit(o);case"S":return intUnit(p);case"SSS":return intUnit(a);case"u":return simple(b);case"uu":return simple(d);case"uuu":return intUnit(r);case"a":return oneOf(e.meridiems(),0);case"kkkk":return intUnit(c);case"kk":return intUnit(x,untruncateYear);case"W":return intUnit(d);case"WW":return intUnit(o);case"E":case"c":return intUnit(r);case"EEE":return oneOf(e.weekdays("short",!1),1);case"EEEE":return oneOf(e.weekdays("long",!1),1);case"ccc":return oneOf(e.weekdays("short",!0),1);case"cccc":return oneOf(e.weekdays("long",!0),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${d.source})(?::(${o.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${d.source})(${o.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return y(T)}})(t)||{invalidReason:MISSING_FTP};return k.token=t,k}const partTypeStyleToTokenVal={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 tokenForPart(t,e,r){const{type:o,value:a}=t;if(o==="literal"){const p=/^\s+$/.test(a);return{literal:!p,val:p?" ":a}}const c=e[o];let u=o;o==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=r.hour12?"hour12":"hour24");let d=partTypeStyleToTokenVal[u];if(typeof d=="object"&&(d=d[c]),d)return{literal:!1,val:d}}function buildRegex(t){return[`^${t.map(r=>r.regex).reduce((r,o)=>`${r}(${o.source})`,"")}$`,t]}function match(t,e,r){const o=t.match(e);if(o){const a={};let c=1;for(const u in r)if(hasOwnProperty$1(r,u)){const d=r[u],p=d.groups?d.groups+1:1;!d.literal&&d.token&&(a[d.token.val[0]]=d.deser(o.slice(c,c+p))),c+=p}return[o,a]}else return[o,{}]}function dateTimeFromMatches(t){const e=c=>{switch(c){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 r=null,o;return isUndefined$1(t.z)||(r=IANAZone.create(t.z)),isUndefined$1(t.Z)||(r||(r=new FixedOffsetZone(t.Z)),o=t.Z),isUndefined$1(t.q)||(t.M=(t.q-1)*3+1),isUndefined$1(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),isUndefined$1(t.u)||(t.S=parseMillis(t.u)),[Object.keys(t).reduce((c,u)=>{const d=e(u);return d&&(c[d]=t[u]),c},{}),r,o]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime.fromMillis(1555555555555)),dummyDateTimeCache}function maybeExpandMacroToken(t,e){if(t.literal)return t;const r=Formatter.macroTokenToFormatOpts(t.val),o=formatOptsToTokens(r,e);return o==null||o.includes(void 0)?t:o}function expandMacroTokens(t,e){return Array.prototype.concat(...t.map(r=>maybeExpandMacroToken(r,e)))}function explainFromTokens(t,e,r){const o=expandMacroTokens(Formatter.parseFormat(r),t),a=o.map(u=>unitForToken(u,t)),c=a.find(u=>u.invalidReason);if(c)return{input:e,tokens:o,invalidReason:c.invalidReason};{const[u,d]=buildRegex(a),p=RegExp(u,"i"),[g,b]=match(e,p,d),[x,w,y]=b?dateTimeFromMatches(b):[null,null,void 0];if(hasOwnProperty$1(b,"a")&&hasOwnProperty$1(b,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:p,rawMatches:g,matches:b,result:x,zone:w,specificOffset:y}}}function parseFromTokens(t,e,r){const{result:o,zone:a,specificOffset:c,invalidReason:u}=explainFromTokens(t,e,r);return[o,a,c,u]}function formatOptsToTokens(t,e){if(!t)return null;const o=Formatter.create(e,t).dtFormatter(getDummyDateTime()),a=o.formatToParts(),c=o.resolvedOptions();return a.map(u=>tokenForPart(u,t,c))}const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(t,e){return new Invalid("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function dayOfWeek(t,e,r){const o=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const a=o.getUTCDay();return a===0?7:a}function computeOrdinal(t,e,r){return r+(isLeapYear(t)?leapLadder:nonLeapLadder)[e-1]}function uncomputeOrdinal(t,e){const r=isLeapYear(t)?leapLadder:nonLeapLadder,o=r.findIndex(c=>c<e),a=e-r[o];return{month:o+1,day:a}}function gregorianToWeek(t){const{year:e,month:r,day:o}=t,a=computeOrdinal(e,r,o),c=dayOfWeek(e,r,o);let u=Math.floor((a-c+10)/7),d;return u<1?(d=e-1,u=weeksInWeekYear(d)):u>weeksInWeekYear(e)?(d=e+1,u=1):d=e,{weekYear:d,weekNumber:u,weekday:c,...timeObject(t)}}function weekToGregorian(t){const{weekYear:e,weekNumber:r,weekday:o}=t,a=dayOfWeek(e,1,4),c=daysInYear(e);let u=r*7+o-a-3,d;u<1?(d=e-1,u+=daysInYear(d)):u>c?(d=e+1,u-=daysInYear(e)):d=e;const{month:p,day:g}=uncomputeOrdinal(d,u);return{year:d,month:p,day:g,...timeObject(t)}}function gregorianToOrdinal(t){const{year:e,month:r,day:o}=t,a=computeOrdinal(e,r,o);return{year:e,ordinal:a,...timeObject(t)}}function ordinalToGregorian(t){const{year:e,ordinal:r}=t,{month:o,day:a}=uncomputeOrdinal(e,r);return{year:e,month:o,day:a,...timeObject(t)}}function hasInvalidWeekData(t){const e=isInteger(t.weekYear),r=integerBetween(t.weekNumber,1,weeksInWeekYear(t.weekYear)),o=integerBetween(t.weekday,1,7);return e?r?o?!1:unitOutOfRange("weekday",t.weekday):unitOutOfRange("week",t.week):unitOutOfRange("weekYear",t.weekYear)}function hasInvalidOrdinalData(t){const e=isInteger(t.year),r=integerBetween(t.ordinal,1,daysInYear(t.year));return e?r?!1:unitOutOfRange("ordinal",t.ordinal):unitOutOfRange("year",t.year)}function hasInvalidGregorianData(t){const e=isInteger(t.year),r=integerBetween(t.month,1,12),o=integerBetween(t.day,1,daysInMonth(t.year,t.month));return e?r?o?!1:unitOutOfRange("day",t.day):unitOutOfRange("month",t.month):unitOutOfRange("year",t.year)}function hasInvalidTimeData(t){const{hour:e,minute:r,second:o,millisecond:a}=t,c=integerBetween(e,0,23)||e===24&&r===0&&o===0&&a===0,u=integerBetween(r,0,59),d=integerBetween(o,0,59),p=integerBetween(a,0,999);return c?u?d?p?!1:unitOutOfRange("millisecond",a):unitOutOfRange("second",o):unitOutOfRange("minute",r):unitOutOfRange("hour",e)}const INVALID="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(t){return new Invalid("unsupported zone",`the zone "${t.name}" is not supported`)}function possiblyCachedWeekData(t){return t.weekData===null&&(t.weekData=gregorianToWeek(t.c)),t.weekData}function clone(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new DateTime({...r,...e,old:r})}function fixOffset(t,e,r){let o=t-e*60*1e3;const a=r.offset(o);if(e===a)return[o,e];o-=(a-e)*60*1e3;const c=r.offset(o);return a===c?[o,a]:[t-Math.min(a,c)*60*1e3,Math.max(a,c)]}function tsToObj(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(t,e,r){return fixOffset(objToLocalTS(t),e,r)}function adjustTime(t,e){const r=t.o,o=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,c={...t.c,year:o,month:a,day:Math.min(t.c.day,daysInMonth(o,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=Duration.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"),d=objToLocalTS(c);let[p,g]=fixOffset(d,r,t.zone);return u!==0&&(p+=u,g=t.zone.offset(p)),{ts:p,o:g}}function parseDataToDateTime(t,e,r,o,a,c){const{setZone:u,zone:d}=r;if(t&&Object.keys(t).length!==0||e){const p=e||d,g=DateTime.fromObject(t,{...r,zone:p,specificOffset:c});return u?g:g.setZone(d)}else return DateTime.invalid(new Invalid("unparsable",`the input "${a}" can't be parsed as ${o}`))}function toTechFormat(t,e,r=!0){return t.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function toISODate(t,e){const r=t.c.year>9999||t.c.year<0;let o="";return r&&t.c.year>=0&&(o+="+"),o+=padStart(t.c.year,r?6:4),e?(o+="-",o+=padStart(t.c.month),o+="-",o+=padStart(t.c.day)):(o+=padStart(t.c.month),o+=padStart(t.c.day)),o}function toISOTime(t,e,r,o,a,c){let u=padStart(t.c.hour);return e?(u+=":",u+=padStart(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(u+=":")):u+=padStart(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(u+=padStart(t.c.second),(t.c.millisecond!==0||!o)&&(u+=".",u+=padStart(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!c?u+="Z":t.o<0?(u+="-",u+=padStart(Math.trunc(-t.o/60)),u+=":",u+=padStart(Math.trunc(-t.o%60))):(u+="+",u+=padStart(Math.trunc(t.o/60)),u+=":",u+=padStart(Math.trunc(t.o%60)))),c&&(u+="["+t.zone.ianaName+"]"),u}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(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 InvalidUnitError(t);return e}function quickDT(t,e){const r=normalizeZone(e.zone,Settings.defaultZone),o=Locale.fromObject(e),a=Settings.now();let c,u;if(isUndefined$1(t.year))c=a;else{for(const g of orderedUnits)isUndefined$1(t[g])&&(t[g]=defaultUnitValues[g]);const d=hasInvalidGregorianData(t)||hasInvalidTimeData(t);if(d)return DateTime.invalid(d);const p=r.offset(a);[c,u]=objToTS(t,p,r)}return new DateTime({ts:c,zone:r,loc:o,o:u})}function diffRelative(t,e,r){const o=isUndefined$1(r.round)?!0:r.round,a=(u,d)=>(u=roundTo(u,o||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(u,d)),c=u=>r.calendary?e.hasSame(t,u)?0:e.startOf(u).diff(t.startOf(u),u).get(u):e.diff(t,u).get(u);if(r.unit)return a(c(r.unit),r.unit);for(const u of r.units){const d=c(u);if(Math.abs(d)>=1)return a(d,u)}return a(t>e?-0:0,r.units[r.units.length-1])}function lastOpts(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class DateTime{constructor(e){const r=e.zone||Settings.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(r.isValid?null:unsupportedZone(r));this.ts=isUndefined$1(e.ts)?Settings.now():e.ts;let a=null,c=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[a,c]=[e.old.c,e.old.o];else{const d=r.offset(this.ts);a=tsToObj(this.ts,d),o=Number.isNaN(a.year)?new Invalid("invalid input"):null,a=o?null:a,c=o?null:d}this._zone=r,this.loc=e.loc||Locale.create(),this.invalid=o,this.weekData=null,this.c=a,this.o=c,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){const[e,r]=lastOpts(arguments),[o,a,c,u,d,p,g]=r;return quickDT({year:o,month:a,day:c,hour:u,minute:d,second:p,millisecond:g},e)}static utc(){const[e,r]=lastOpts(arguments),[o,a,c,u,d,p,g]=r;return e.zone=FixedOffsetZone.utcInstance,quickDT({year:o,month:a,day:c,hour:u,minute:d,second:p,millisecond:g},e)}static fromJSDate(e,r={}){const o=isDate$3(e)?e.valueOf():NaN;if(Number.isNaN(o))return DateTime.invalid("invalid input");const a=normalizeZone(r.zone,Settings.defaultZone);return a.isValid?new DateTime({ts:o,zone:a,loc:Locale.fromObject(r)}):DateTime.invalid(unsupportedZone(a))}static fromMillis(e,r={}){if(isNumber$3(e))return e<-MAX_DATE||e>MAX_DATE?DateTime.invalid("Timestamp out of range"):new DateTime({ts:e,zone:normalizeZone(r.zone,Settings.defaultZone),loc:Locale.fromObject(r)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(isNumber$3(e))return new DateTime({ts:e*1e3,zone:normalizeZone(r.zone,Settings.defaultZone),loc:Locale.fromObject(r)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const o=normalizeZone(r.zone,Settings.defaultZone);if(!o.isValid)return DateTime.invalid(unsupportedZone(o));const a=Settings.now(),c=isUndefined$1(r.specificOffset)?o.offset(a):r.specificOffset,u=normalizeObject(e,normalizeUnit),d=!isUndefined$1(u.ordinal),p=!isUndefined$1(u.year),g=!isUndefined$1(u.month)||!isUndefined$1(u.day),b=p||g,x=u.weekYear||u.weekNumber,w=Locale.fromObject(r);if((b||d)&&x)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&d)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");const y=x||u.weekday&&!b;let I,k,T=tsToObj(a,c);y?(I=orderedWeekUnits,k=defaultWeekUnitValues,T=gregorianToWeek(T)):d?(I=orderedOrdinalUnits,k=defaultOrdinalUnitValues,T=gregorianToOrdinal(T)):(I=orderedUnits,k=defaultUnitValues);let E=!1;for(const z of I){const W=u[z];isUndefined$1(W)?E?u[z]=k[z]:u[z]=T[z]:E=!0}const O=y?hasInvalidWeekData(u):d?hasInvalidOrdinalData(u):hasInvalidGregorianData(u),A=O||hasInvalidTimeData(u);if(A)return DateTime.invalid(A);const L=y?weekToGregorian(u):d?ordinalToGregorian(u):u,[R,$]=objToTS(L,c,o),P=new DateTime({ts:R,zone:o,o:$,loc:w});return u.weekday&&b&&e.weekday!==P.weekday?DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${P.toISO()}`):P}static fromISO(e,r={}){const[o,a]=parseISODate(e);return parseDataToDateTime(o,a,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[o,a]=parseRFC2822Date(e);return parseDataToDateTime(o,a,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[o,a]=parseHTTPDate(e);return parseDataToDateTime(o,a,r,"HTTP",r)}static fromFormat(e,r,o={}){if(isUndefined$1(e)||isUndefined$1(r))throw new InvalidArgumentError("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:c=null}=o,u=Locale.fromOpts({locale:a,numberingSystem:c,defaultToEN:!0}),[d,p,g,b]=parseFromTokens(u,e,r);return b?DateTime.invalid(b):parseDataToDateTime(d,p,o,`format ${r}`,e,g)}static fromString(e,r,o={}){return DateTime.fromFormat(e,r,o)}static fromSQL(e,r={}){const[o,a]=parseSQL(e);return parseDataToDateTime(o,a,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");const o=e instanceof Invalid?e:new Invalid(e,r);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(o);return new DateTime({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const o=formatOptsToTokens(e,Locale.fromObject(r));return o?o.map(a=>a?a.val:null).join(""):null}static expandFormat(e,r={}){return expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(r)).map(a=>a.val).join("")}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?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.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 e=864e5,r=6e4,o=objToLocalTS(this.c),a=this.zone.offset(o-e),c=this.zone.offset(o+e),u=this.zone.offset(o-a*r),d=this.zone.offset(o-c*r);if(u===d)return[this];const p=o-u*r,g=o-d*r,b=tsToObj(p,u),x=tsToObj(g,d);return b.hour===x.hour&&b.minute===x.minute&&b.second===x.second&&b.millisecond===x.millisecond?[clone(this,{ts:p}),clone(this,{ts:g})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:o,calendar:a}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:o,outputCalendar:a}}toUTC(e=0,r={}){return this.setZone(FixedOffsetZone.instance(e),r)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:o=!1}={}){if(e=normalizeZone(e,Settings.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(r||o){const c=e.offset(this.ts),u=this.toObject();[a]=objToTS(u,c,e)}return clone(this,{ts:a,zone:e})}else return DateTime.invalid(unsupportedZone(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:o}={}){const a=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:o});return clone(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=normalizeObject(e,normalizeUnit),o=!isUndefined$1(r.weekYear)||!isUndefined$1(r.weekNumber)||!isUndefined$1(r.weekday),a=!isUndefined$1(r.ordinal),c=!isUndefined$1(r.year),u=!isUndefined$1(r.month)||!isUndefined$1(r.day),d=c||u,p=r.weekYear||r.weekNumber;if((d||a)&&p)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let g;o?g=weekToGregorian({...gregorianToWeek(this.c),...r}):isUndefined$1(r.ordinal)?(g={...this.toObject(),...r},isUndefined$1(r.day)&&(g.day=Math.min(daysInMonth(g.year,g.month),g.day))):g=ordinalToGregorian({...gregorianToOrdinal(this.c),...r});const[b,x]=objToTS(g,this.o,this.zone);return clone(this,{ts:b,o:x})}plus(e){if(!this.isValid)return this;const r=Duration.fromDurationLike(e);return clone(this,adjustTime(this,r))}minus(e){if(!this.isValid)return this;const r=Duration.fromDurationLike(e).negate();return clone(this,adjustTime(this,r))}startOf(e){if(!this.isValid)return this;const r={},o=Duration.normalizeUnit(e);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks"&&(r.weekday=1),o==="quarters"){const a=Math.ceil(this.month/3);r.month=(a-1)*3+1}return this.set(r)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,r={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):INVALID}toLocaleString(e=DATE_SHORT,r={}){return this.isValid?Formatter.create(this.loc.clone(r),e).formatDateTime(this):INVALID}toLocaleParts(e={}){return this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:o=!1,includeOffset:a=!0,extendedZone:c=!1}={}){if(!this.isValid)return null;const u=e==="extended";let d=toISODate(this,u);return d+="T",d+=toISOTime(this,u,r,o,a,c),d}toISODate({format:e="extended"}={}){return this.isValid?toISODate(this,e==="extended"):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:o=!0,includePrefix:a=!1,extendedZone:c=!1,format:u="extended"}={}){return this.isValid?(a?"T":"")+toISOTime(this,u==="extended",r,e,o,c):null}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:o=!0}={}){let a="HH:mm:ss.SSS";return(r||e)&&(o&&(a+=" "),r?a+="z":e&&(a+="ZZ")),toTechFormat(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():INVALID}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 r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",o={}){if(!this.isValid||!e.isValid)return Duration.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...o},c=maybeArray(r).map(Duration.normalizeUnit),u=e.valueOf()>this.valueOf(),d=u?this:e,p=u?e:this,g=diff(d,p,c,a);return u?g.negate():g}diffNow(e="milliseconds",r={}){return this.diff(DateTime.now(),e,r)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,r){if(!this.isValid)return!1;const o=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(r)<=o&&o<=a.endOf(r)}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 r=e.base||DateTime.fromObject({},{zone:this.zone}),o=e.padding?this<r?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],c=e.unit;return Array.isArray(e.unit)&&(a=e.unit,c=void 0),diffRelative(r,this.plus(o),{...e,numeric:"always",units:a,unit:c})}toRelativeCalendar(e={}){return this.isValid?diffRelative(e.base||DateTime.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(DateTime.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,o={}){const{locale:a=null,numberingSystem:c=null}=o,u=Locale.fromOpts({locale:a,numberingSystem:c,defaultToEN:!0});return explainFromTokens(u,e,r)}static fromStringExplain(e,r,o={}){return DateTime.fromFormatExplain(e,r,o)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}}function friendlyDateTime(t){if(DateTime.isDateTime(t))return t;if(t&&t.valueOf&&isNumber$3(t.valueOf()))return DateTime.fromJSDate(t);if(t&&typeof t=="object")return DateTime.fromObject(t);throw new InvalidArgumentError(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const useAuthStore=defineStore("userAuth",{state:()=>({token:{value:"",expiration:void 0},oms:""}),getters:{getToken:t=>t.token,getOms:t=>t.oms,getBaseUrl:t=>{let e=t.oms;const r=loginContext.getConfig();return e&&r.systemType==="MOQUI"?e.startsWith("http")?e.includes("/rest/s1")?e:`${e}/rest/s1/`:`https://${e}.hotwax.io/rest/s1/`:e?e.startsWith("http")?e.includes("/api")?e:`${e}/api/`:`https://${e}.hotwax.io/api/`:""},isAuthenticated:t=>{let e=!1;if(t.token.expiration){const r=DateTime.now().toMillis();e=t.token.expiration<r}return t.token.value&&!e}},persist:!0}),core="",normalize$1="",structure="",typography="",padding="",floatElements="",textAlignment="",textTransformation="",flexUtils="",display="",BUILD={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,formAssociated:!1,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,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1};let scopeId,contentRef,hostTagName,useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,renderingRef=null,queuePending=!1;const Build={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},getAssetPath=t=>{const e=new URL(t,plt.$resourcesUrl$);return e.origin!==win$2.location.origin?e.href:e.pathname},createTime=(t,e="")=>()=>{},SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}",XLINK_NS="http://www.w3.org/1999/xlink",EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=t=>t!=null,isComplexType=t=>(t=typeof t,t==="object"||t==="function");function queryNonceMetaTagContent(t){var e,r,o;return(o=(r=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&o!==void 0?o:void 0}const h=(t,e,...r)=>{let o=null,a=null,c=null,u=!1,d=!1;const p=[],g=x=>{for(let w=0;w<x.length;w++)o=x[w],Array.isArray(o)?g(o):o!=null&&typeof o!="boolean"&&((u=typeof t!="function"&&!isComplexType(o))&&(o=String(o)),u&&d?p[p.length-1].$text$+=o:p.push(u?newVNode(null,o):o),d=u)};if(g(r),e){e.key&&(a=e.key),e.name&&(c=e.name);{const x=e.className||e.class;x&&(e.class=typeof x!="object"?x:Object.keys(x).filter(w=>x[w]).join(" "))}}if(typeof t=="function")return t(e===null?{}:e,p,vdomFnUtils);const b=newVNode(t,null);return b.$attrs$=e,p.length>0&&(b.$children$=p),b.$key$=a,b.$name$=c,b},newVNode=(t,e)=>{const r={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r.$name$=null,r},Host={},isHost=t=>t&&t.$tag$===Host,vdomFnUtils={forEach:(t,e)=>t.map(convertToPublic).forEach(e),map:(t,e)=>t.map(convertToPublic).map(e).map(convertToPrivate)},convertToPublic=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),convertToPrivate=t=>{if(typeof t.vtag=="function"){const r=Object.assign({},t.vattrs);return t.vkey&&(r.key=t.vkey),t.vname&&(r.name=t.vname),h(t.vtag,r,...t.vchildren||[])}const e=newVNode(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},computeMode=t=>modeResolutionChain.map(e=>e(t)).find(e=>!!e),setMode=t=>modeResolutionChain.push(t),getMode=t=>getHostRef(t).$modeName$,parsePropertyValue=(t,e)=>t!=null&&!isComplexType(t)?e&4?t==="false"?!1:t===""||!!t:e&2?parseFloat(t):e&1?String(t):t:t,getElement=t=>t,createEvent=(t,e,r)=>{const o=getElement(t);return{emit:a=>emitEvent(o,e,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:a})}},emitEvent=(t,e,r)=>{const o=plt.ce(e,r);return t.dispatchEvent(o),o},rootAppliedStyles=new WeakMap,registerStyle=(t,e,r)=>{let o=styles.get(t);supportsConstructableStylesheets&&r?(o=o||new CSSStyleSheet,typeof o=="string"?o=e:o.replaceSync(e)):o=e,styles.set(t,o)},addStyle=(t,e,r)=>{var o;const a=getScopeId(e,r),c=styles.get(a);if(t=t.nodeType===11?t:doc$1,c)if(typeof c=="string"){t=t.head||t;let u=rootAppliedStyles.get(t),d;if(u||rootAppliedStyles.set(t,u=new Set),!u.has(a)){{d=doc$1.createElement("style"),d.innerHTML=c;const p=(o=plt.$nonce$)!==null&&o!==void 0?o:queryNonceMetaTagContent(doc$1);p!=null&&d.setAttribute("nonce",p),t.insertBefore(d,t.querySelector("link"))}e.$flags$&4&&(d.innerHTML+=SLOT_FB_CSS),u&&u.add(a)}}else t.adoptedStyleSheets.includes(c)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,c]);return a},attachStyles=t=>{const e=t.$cmpMeta$,r=t.$hostElement$,o=e.$flags$,a=createTime("attachStyles",e.$tagName$),c=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),e,t.$modeName$);o&10&&(r["s-sc"]=c,r.classList.add(c+"-h"),o&2&&r.classList.add(c+"-s")),a()},getScopeId=(t,e)=>"sc-"+(e&&t.$flags$&32?t.$tagName$+"-"+e:t.$tagName$),setAccessor=(t,e,r,o,a,c)=>{if(r!==o){let u=isMemberInElement(t,e),d=e.toLowerCase();if(e==="class"){const p=t.classList,g=parseClassList(r),b=parseClassList(o);p.remove(...g.filter(x=>x&&!b.includes(x))),p.add(...b.filter(x=>x&&!g.includes(x)))}else if(e==="style"){for(const p in r)(!o||o[p]==null)&&(p.includes("-")?t.style.removeProperty(p):t.style[p]="");for(const p in o)(!r||o[p]!==r[p])&&(p.includes("-")?t.style.setProperty(p,o[p]):t.style[p]=o[p])}else if(e!=="key")if(e==="ref")o&&o(t);else if(!t.__lookupSetter__(e)&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"?e=e.slice(3):isMemberInElement(win$2,d)?e=d.slice(2):e=d[2]+e.slice(3),r||o){const p=e.endsWith(CAPTURE_EVENT_SUFFIX);e=e.replace(CAPTURE_EVENT_REGEX,""),r&&plt.rel(t,e,r,p),o&&plt.ael(t,e,o,p)}}else{const p=isComplexType(o);if((u||p&&o!==null)&&!a)try{if(t.tagName.includes("-"))t[e]=o;else{const b=o??"";e==="list"?u=!1:(r==null||t[e]!=b)&&(t[e]=b)}}catch{}let g=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(e=d,g=!0),o==null||o===!1?(o!==!1||t.getAttribute(e)==="")&&(g?t.removeAttributeNS(XLINK_NS,e):t.removeAttribute(e)):(!u||c&4||a)&&!p&&(o=o===!0?"":o,g?t.setAttributeNS(XLINK_NS,e,o):t.setAttribute(e,o))}}},parseClassListRegex=/\s/,parseClassList=t=>t?t.split(parseClassListRegex):[],CAPTURE_EVENT_SUFFIX="Capture",CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$"),updateElement=(t,e,r,o)=>{const a=e.$elm$.nodeType===11&&e.$elm$.host?e.$elm$.host:e.$elm$,c=t&&t.$attrs$||EMPTY_OBJ,u=e.$attrs$||EMPTY_OBJ;for(o in c)o in u||setAccessor(a,o,c[o],void 0,r,e.$flags$);for(o in u)setAccessor(a,o,c[o],u[o],r,e.$flags$)},createElm=(t,e,r,o)=>{var a;const c=e.$children$[r];let u=0,d,p,g;if(useNativeShadowDom||(checkSlotRelocate=!0,c.$tag$==="slot"&&(scopeId&&o.classList.add(scopeId+"-s"),c.$flags$|=c.$children$?2:1)),c.$text$!==null)d=c.$elm$=doc$1.createTextNode(c.$text$);else if(c.$flags$&1)d=c.$elm$=doc$1.createTextNode("");else{if(isSvgMode||(isSvgMode=c.$tag$==="svg"),d=c.$elm$=doc$1.createElementNS(isSvgMode?SVG_NS:HTML_NS,c.$flags$&2?"slot-fb":c.$tag$),isSvgMode&&c.$tag$==="foreignObject"&&(isSvgMode=!1),updateElement(null,c,isSvgMode),isDef(scopeId)&&d["s-si"]!==scopeId&&d.classList.add(d["s-si"]=scopeId),c.$children$)for(u=0;u<c.$children$.length;++u)p=createElm(t,c,u,d),p&&d.appendChild(p);c.$tag$==="svg"?isSvgMode=!1:d.tagName==="foreignObject"&&(isSvgMode=!0)}return d["s-hn"]=hostTagName,c.$flags$&3&&(d["s-sr"]=!0,d["s-fs"]=(a=c.$attrs$)===null||a===void 0?void 0:a.slot,d["s-cr"]=contentRef,d["s-sn"]=c.$name$||"",g=t&&t.$children$&&t.$children$[r],g&&g.$tag$===c.$tag$&&t.$elm$&&putBackInOriginalLocation(t.$elm$,!1)),d},putBackInOriginalLocation=(t,e)=>{var r;plt.$flags$|=1;const o=t.childNodes;for(let a=o.length-1;a>=0;a--){const c=o[a];c["s-hn"]!==hostTagName&&c["s-ol"]&&(parentReferenceNode(c).insertBefore(c,referenceNode(c)),c["s-ol"].remove(),c["s-ol"]=void 0,c["s-sh"]=void 0,c.nodeType===1&&c.setAttribute("slot",(r=c["s-sn"])!==null&&r!==void 0?r:""),checkSlotRelocate=!0),e&&putBackInOriginalLocation(c,e)}plt.$flags$&=-2},addVnodes=(t,e,r,o,a,c)=>{let u=t["s-cr"]&&t["s-cr"].parentNode||t,d;for(u.shadowRoot&&u.tagName===hostTagName&&(u=u.shadowRoot);a<=c;++a)o[a]&&(d=createElm(null,r,a,t),d&&(o[a].$elm$=d,u.insertBefore(d,referenceNode(e))))},removeVnodes=(t,e,r)=>{for(let o=e;o<=r;++o){const a=t[o];if(a){const c=a.$elm$;nullifyVNodeRefs(a),c&&(checkSlotFallbackVisibility=!0,c["s-ol"]?c["s-ol"].remove():putBackInOriginalLocation(c,!0),c.remove())}}},updateChildren=(t,e,r,o,a=!1)=>{let c=0,u=0,d=0,p=0,g=e.length-1,b=e[0],x=e[g],w=o.length-1,y=o[0],I=o[w],k,T;for(;c<=g&&u<=w;)if(b==null)b=e[++c];else if(x==null)x=e[--g];else if(y==null)y=o[++u];else if(I==null)I=o[--w];else if(isSameVnode(b,y,a))patch(b,y,a),b=e[++c],y=o[++u];else if(isSameVnode(x,I,a))patch(x,I,a),x=e[--g],I=o[--w];else if(isSameVnode(b,I,a))(b.$tag$==="slot"||I.$tag$==="slot")&&putBackInOriginalLocation(b.$elm$.parentNode,!1),patch(b,I,a),t.insertBefore(b.$elm$,x.$elm$.nextSibling),b=e[++c],I=o[--w];else if(isSameVnode(x,y,a))(b.$tag$==="slot"||I.$tag$==="slot")&&putBackInOriginalLocation(x.$elm$.parentNode,!1),patch(x,y,a),t.insertBefore(x.$elm$,b.$elm$),x=e[--g],y=o[++u];else{for(d=-1,p=c;p<=g;++p)if(e[p]&&e[p].$key$!==null&&e[p].$key$===y.$key$){d=p;break}d>=0?(T=e[d],T.$tag$!==y.$tag$?k=createElm(e&&e[u],r,d,t):(patch(T,y,a),e[d]=void 0,k=T.$elm$),y=o[++u]):(k=createElm(e&&e[u],r,u,t),y=o[++u]),k&&parentReferenceNode(b.$elm$).insertBefore(k,referenceNode(b.$elm$))}c>g?addVnodes(t,o[w+1]==null?null:o[w+1].$elm$,r,o,u,w):u>w&&removeVnodes(e,c,g)},isSameVnode=(t,e,r=!1)=>t.$tag$===e.$tag$?t.$tag$==="slot"?t.$name$===e.$name$:r?!0:t.$key$===e.$key$:!1,referenceNode=t=>t&&t["s-ol"]||t,parentReferenceNode=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,patch=(t,e,r=!1)=>{const o=e.$elm$=t.$elm$,a=t.$children$,c=e.$children$,u=e.$tag$,d=e.$text$;let p;d===null?(isSvgMode=u==="svg"?!0:u==="foreignObject"?!1:isSvgMode,u==="slot"||updateElement(t,e,isSvgMode),a!==null&&c!==null?updateChildren(o,a,e,c,r):c!==null?(t.$text$!==null&&(o.textContent=""),addVnodes(o,null,e,c,0,c.length-1)):a!==null&&removeVnodes(a,0,a.length-1),isSvgMode&&u==="svg"&&(isSvgMode=!1)):(p=o["s-cr"])?p.parentNode.textContent=d:t.$text$!==d&&(o.data=d)},updateFallbackSlotVisibility=t=>{const e=t.childNodes;for(const r of e)if(r.nodeType===1){if(r["s-sr"]){const o=r["s-sn"];r.hidden=!1;for(const a of e)if(a!==r){if(a["s-hn"]!==r["s-hn"]||o!==""){if(a.nodeType===1&&(o===a.getAttribute("slot")||o===a["s-sn"])){r.hidden=!0;break}}else if(a.nodeType===1||a.nodeType===3&&a.textContent.trim()!==""){r.hidden=!0;break}}}updateFallbackSlotVisibility(r)}},relocateNodes=[],markSlotContentForRelocation=t=>{let e,r,o;for(const a of t.childNodes){if(a["s-sr"]&&(e=a["s-cr"])&&e.parentNode){r=e.parentNode.childNodes;const c=a["s-sn"];for(o=r.length-1;o>=0;o--)if(e=r[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==a["s-hn"]&&!BUILD.experimentalSlotFixes)if(isNodeLocatedInSlot(e,c)){let u=relocateNodes.find(d=>d.$nodeToRelocate$===e);checkSlotFallbackVisibility=!0,e["s-sn"]=e["s-sn"]||c,u?(u.$nodeToRelocate$["s-sh"]=a["s-hn"],u.$slotRefNode$=a):(e["s-sh"]=a["s-hn"],relocateNodes.push({$slotRefNode$:a,$nodeToRelocate$:e})),e["s-sr"]&&relocateNodes.map(d=>{isNodeLocatedInSlot(d.$nodeToRelocate$,e["s-sn"])&&(u=relocateNodes.find(p=>p.$nodeToRelocate$===e),u&&!d.$slotRefNode$&&(d.$slotRefNode$=u.$slotRefNode$))})}else relocateNodes.some(u=>u.$nodeToRelocate$===e)||relocateNodes.push({$nodeToRelocate$:e})}a.nodeType===1&&markSlotContentForRelocation(a)}},isNodeLocatedInSlot=(t,e)=>t.nodeType===1?t.getAttribute("slot")===null&&e===""||t.getAttribute("slot")===e:t["s-sn"]===e?!0:e==="",nullifyVNodeRefs=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(nullifyVNodeRefs)},renderVdom=(t,e,r=!1)=>{var o,a,c,u;const d=t.$hostElement$,p=t.$cmpMeta$,g=t.$vnode$||newVNode(null,null),b=isHost(e)?e:h(null,null,e);if(hostTagName=d.tagName,p.$attrsToReflect$&&(b.$attrs$=b.$attrs$||{},p.$attrsToReflect$.map(([x,w])=>b.$attrs$[w]=d[x])),r&&b.$attrs$)for(const x of Object.keys(b.$attrs$))d.hasAttribute(x)&&!["key","ref","style","class"].includes(x)&&(b.$attrs$[x]=d[x]);b.$tag$=null,b.$flags$|=4,t.$vnode$=b,b.$elm$=g.$elm$=d.shadowRoot||d,scopeId=d["s-sc"],contentRef=d["s-cr"],useNativeShadowDom=(p.$flags$&1)!==0,checkSlotFallbackVisibility=!1,patch(g,b,r);{if(plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation(b.$elm$);for(const x of relocateNodes){const w=x.$nodeToRelocate$;if(!w["s-ol"]){const y=doc$1.createTextNode("");y["s-nr"]=w,w.parentNode.insertBefore(w["s-ol"]=y,w)}}for(const x of relocateNodes){const w=x.$nodeToRelocate$,y=x.$slotRefNode$;if(y){const I=y.parentNode;let k=y.nextSibling;{let T=(o=w["s-ol"])===null||o===void 0?void 0:o.previousSibling;for(;T;){let E=(a=T["s-nr"])!==null&&a!==void 0?a:null;if(E&&E["s-sn"]===w["s-sn"]&&I===E.parentNode&&(E=E.nextSibling,!E||!E["s-nr"])){k=E;break}T=T.previousSibling}}(!k&&I!==w.parentNode||w.nextSibling!==k)&&w!==k&&(!w["s-hn"]&&w["s-ol"]&&(w["s-hn"]=w["s-ol"].parentNode.nodeName),I.insertBefore(w,k),w.nodeType===1&&(w.hidden=(c=w["s-ih"])!==null&&c!==void 0?c:!1))}else w.nodeType===1&&(r&&(w["s-ih"]=(u=w.hidden)!==null&&u!==void 0?u:!1),w.hidden=!0)}}checkSlotFallbackVisibility&&updateFallbackSlotVisibility(b.$elm$),plt.$flags$&=-2,relocateNodes.length=0}},attachToAncestor=(t,e)=>{},scheduleUpdate=(t,e)=>(t.$flags$|=16,attachToAncestor(t,t.$ancestorComponent$),writeTask(()=>dispatchHooks(t,e))),dispatchHooks=(t,e)=>{const r=t.$hostElement$,o=createTime("scheduleUpdate",t.$cmpMeta$.$tagName$),a=r;let c;return e?c=safeCall$1(a,"componentWillLoad"):c=safeCall$1(a,"componentWillUpdate"),c=enqueue(c,()=>safeCall$1(a,"componentWillRender")),o(),enqueue(c,()=>updateComponent(t,a,e))},enqueue=(t,e)=>isPromisey(t)?t.then(e):e(),isPromisey=t=>t instanceof Promise||t&&t.then&&typeof t.then=="function",updateComponent=async(t,e,r)=>{const o=t.$hostElement$,a=createTime("update",t.$cmpMeta$.$tagName$);o["s-rc"],r&&attachStyles(t);const c=createTime("render",t.$cmpMeta$.$tagName$);callRender(t,e,o,r),c(),a(),postUpdateComponent(t)},callRender=(t,e,r,o)=>{try{renderingRef=e,e=e.render&&e.render(),t.$flags$&=-17,t.$flags$|=2,(BUILD.hasRenderFn||BUILD.reflect)&&(BUILD.vdomRender||BUILD.reflect)&&(BUILD.hydrateServerSide||renderVdom(t,e,o))}catch(p){consoleError(p,t.$hostElement$)}return renderingRef=null,null},postUpdateComponent=t=>{const e=t.$cmpMeta$.$tagName$,r=t.$hostElement$,o=createTime("postUpdate",e),a=r;t.$ancestorComponent$,safeCall$1(a,"componentDidRender"),t.$flags$&64?(safeCall$1(a,"componentDidUpdate"),o()):(t.$flags$|=64,safeCall$1(a,"componentDidLoad"),o())},forceUpdate=t=>{{const e=getHostRef(t),r=e.$hostElement$.isConnected;return r&&(e.$flags$&18)===2&&scheduleUpdate(e,!1),r}},safeCall$1=(t,e,r)=>{if(t&&t[e])try{return t[e](r)}catch(o){consoleError(o)}},getValue=(t,e)=>getHostRef(t).$instanceValues$.get(e),setValue=(t,e,r,o)=>{const a=getHostRef(t),c=t,u=a.$instanceValues$.get(e),d=a.$flags$,p=c;r=parsePropertyValue(r,o.$members$[e][0]);const g=Number.isNaN(u)&&Number.isNaN(r);if(r!==u&&!g){a.$instanceValues$.set(e,r);{if(o.$watchers$&&d&128){const x=o.$watchers$[e];x&&x.map(w=>{try{p[w](r,u,e)}catch(y){consoleError(y,c)}})}if((d&18)===2){if(p.componentShouldUpdate&&p.componentShouldUpdate(r,u,e)===!1)return;scheduleUpdate(a,!1)}}}},proxyComponent=(t,e,r)=>{var o;const a=t.prototype;if(e.$members$){t.watchers&&(e.$watchers$=t.watchers);const c=Object.entries(e.$members$);c.map(([u,[d]])=>{(d&31||d&32)&&Object.defineProperty(a,u,{get(){return getValue(this,u)},set(p){setValue(this,u,p,e)},configurable:!0,enumerable:!0})});{const u=new Map;a.attributeChangedCallback=function(d,p,g){plt.jmp(()=>{var b;const x=u.get(d);if(this.hasOwnProperty(x))g=this[x],delete this[x];else{if(a.hasOwnProperty(x)&&typeof this[x]=="number"&&this[x]==g)return;if(x==null){const w=getHostRef(this),y=w==null?void 0:w.$flags$;if(y&&!(y&8)&&y&128&&g!==p){const k=this,T=(b=e.$watchers$)===null||b===void 0?void 0:b[d];T==null||T.forEach(E=>{k[E]!=null&&k[E].call(k,g,p,d)})}return}}this[x]=g===null&&typeof this[x]=="boolean"?!1:g})},t.observedAttributes=Array.from(new Set([...Object.keys((o=e.$watchers$)!==null&&o!==void 0?o:{}),...c.filter(([d,p])=>p[0]&15).map(([d,p])=>{var g;const b=p[1]||d;return u.set(b,d),p[0]&512&&((g=e.$attrsToReflect$)===null||g===void 0||g.push([d,b])),b})]))}}return t},initializeComponent=async(t,e,r,o)=>{let a;if(!(e.$flags$&32)&&(e.$flags$|=32,a=t.constructor,customElements.whenDefined(r.$tagName$).then(()=>e.$flags$|=128),a.style)){let u=a.style;typeof u!="string"&&(u=u[e.$modeName$=computeMode(t)]);const d=getScopeId(r,e.$modeName$);if(!styles.has(d)){const p=createTime("registerStyles",r.$tagName$);registerStyle(d,u,!!(r.$flags$&1)),p()}}e.$ancestorComponent$,(()=>scheduleUpdate(e,!0))()},fireConnectedCallback=t=>{},connectedCallback=t=>{if(!(plt.$flags$&1)){const e=getHostRef(t),r=e.$cmpMeta$,o=createTime("connectedCallback",r.$tagName$);e.$flags$&1?(addHostEventListeners(t,e,r.$listeners$),e!=null&&e.$lazyInstance$?fireConnectedCallback(e.$lazyInstance$):e!=null&&e.$onReadyPromise$&&e.$onReadyPromise$.then(()=>fireConnectedCallback(e.$lazyInstance$))):(e.$flags$|=1,r.$flags$&12&&setContentReference(t),r.$members$&&Object.entries(r.$members$).map(([a,[c]])=>{if(c&31&&t.hasOwnProperty(a)){const u=t[a];delete t[a],t[a]=u}}),initializeComponent(t,e,r)),o()}},setContentReference=t=>{const e=t["s-cr"]=doc$1.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},disconnectedCallback=async t=>{if(!(plt.$flags$&1)){const e=getHostRef(t);e.$rmListeners$&&(e.$rmListeners$.map(r=>r()),e.$rmListeners$=void 0)}},proxyCustomElement=(t,e)=>{const r={$flags$:e[0],$tagName$:e[1]};r.$members$=e[2],r.$listeners$=e[3],r.$watchers$=t.$watchers$,r.$attrsToReflect$=[];const o=t.prototype.connectedCallback,a=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__registerHost(){registerHost(this,r)},connectedCallback(){connectedCallback(this),o&&o.call(this)},disconnectedCallback(){disconnectedCallback(this),a&&a.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(r.$flags$&16)})}}),t.is=r.$tagName$,proxyComponent(t,r)},addHostEventListeners=(t,e,r,o)=>{r&&r.map(([a,c,u])=>{const d=getHostListenerTarget(t,a),p=hostListenerProxy(e,u),g=hostListenerOpts(a);plt.ael(d,c,p,g),(e.$rmListeners$=e.$rmListeners$||[]).push(()=>plt.rel(d,c,p,g))})},hostListenerProxy=(t,e)=>r=>{try{BUILD.lazyLoad||t.$hostElement$[e](r)}catch(o){consoleError(o)}},getHostListenerTarget=(t,e)=>e&4?doc$1:e&8?win$2:e&16?doc$1.body:t,hostListenerOpts=t=>supportsListenerOptions?{passive:(t&1)!==0,capture:(t&2)!==0}:(t&2)!==0,hostRefs=new WeakMap,getHostRef=t=>hostRefs.get(t),registerHost=(t,e)=>{const r={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return addHostEventListeners(t,r,e.$listeners$),hostRefs.set(t,r)},isMemberInElement=(t,e)=>e in t,consoleError=(t,e)=>(0,console.error)(t,e),styles=new Map,modeResolutionChain=[],win$2=typeof window<"u"?window:{},doc$1=win$2.document||{head:{}},H=win$2.HTMLElement||class{},plt={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,r,o)=>t.addEventListener(e,r,o),rel:(t,e,r,o)=>t.removeEventListener(e,r,o),ce:(t,e)=>new CustomEvent(t,e)},setPlatformHelpers=t=>{Object.assign(plt,t)},supportsListenerOptions=(()=>{let t=!1;try{doc$1.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),promiseResolve=t=>Promise.resolve(t),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),queueDomReads=[],queueDomWrites=[],queueTask=(t,e)=>r=>{t.push(r),queuePending||(queuePending=!0,e&&plt.$flags$&4?nextTick(flush):plt.raf(flush))},consume=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(r){consoleError(r)}t.length=0},flush=()=>{consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush)},nextTick=t=>promiseResolve().then(t),readTask=queueTask(queueDomReads,!1),writeTask=queueTask(queueDomWrites,!0);/*!
|
|
12
|
+
This will fail in production.`);d=activePinia,d._s.has(o)||(c?createSetupStore(o,e,a,d):createOptionsStore(o,a,d),process.env.NODE_ENV!=="production"&&(u._pinia=d));const b=d._s.get(o);if(process.env.NODE_ENV!=="production"&&p){const x="__hot:"+o,w=c?createSetupStore(x,e,a,d,!0):createOptionsStore(x,assign$5({},a),d,!0);p._hotUpdate(w),delete d.state.value[x],d._s.delete(x)}if(process.env.NODE_ENV!=="production"&&IS_CLIENT&&g&&g.proxy&&!p){const x=g.proxy,w="_pStores"in x?x._pStores:x._pStores={};w[o]=b}return b}return u.$id=o,u}const useProductIdentificationStore=defineStore("productIdentification",{state:()=>({productIdentificationPref:{primaryId:"",secondaryId:""},productIdentificationOptions:[],goodIdentificationOptions:[]}),getters:{getProductIdentificationPref:t=>t.productIdentificationPref,getProductIdentificationOptions:t=>t.productIdentificationOptions,getGoodIdentificationOptions:t=>t.goodIdentificationOptions},actions:{async setProductIdentificationPref(t,e,r){const o=JSON.parse(JSON.stringify(this.getProductIdentificationPref));if(!r){this.productIdentificationPref=o;return}o[t]=e;try{this.productIdentificationPref=await productIdentificationContext.setProductIdentificationPref(r,o)}catch(a){console.error("error",a)}},async getIdentificationPref(t){if(!t)return this.productIdentificationPref={primaryId:"productId",secondaryId:""};this.productIdentificationPref=await productIdentificationContext.getProductIdentificationPref(t)},async prepareProductIdentifierOptions(){const t=[{goodIdentificationTypeId:"productId",description:"Product ID"},{goodIdentificationTypeId:"groupId",description:"Group ID"},{goodIdentificationTypeId:"groupName",description:"Group Name"},{goodIdentificationTypeId:"internalName",description:"Internal Name"},{goodIdentificationTypeId:"parentProductName",description:"Parent Product Name"},{goodIdentificationTypeId:"primaryProductCategoryName",description:"Primary Product Category Name"},{goodIdentificationTypeId:"title",description:"Title"}],r=await productIdentificationContext.fetchGoodIdentificationTypes("HC_GOOD_ID_TYPE")||[];this.productIdentificationOptions=Array.from(new Set([...t,...r])).sort(),this.goodIdentificationOptions=r}}});class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const n="numeric",s="short",l="long",DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l,day:n,weekday:l,hour:n,minute:n,timeZoneName:l},DATETIME_HUGE_WITH_SECONDS={year:n,month:l,day:n,weekday:l,hour:n,minute:n,second:n,timeZoneName:l};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,r){throw new ZoneIsAbstractError}formatOffset(e,r){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let singleton$1=null;class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:o}){return parseZoneInfo(e,r,o)}formatOffset(e,r){return formatOffset(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let dtfCache={};function makeDTF(t){return dtfCache[t]||(dtfCache[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"})),dtfCache[t]}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(t,e){const r=t.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,c,u,d,p,g,b]=o;return[u,a,c,d,p,g,b]}function partsOffset(t,e){const r=t.formatToParts(e),o=[];for(let a=0;a<r.length;a++){const{type:c,value:u}=r[a],d=typeToPos[c];c==="era"?o[d]=u:isUndefined$1(d)||(o[d]=parseInt(u,10))}return o}let ianaZoneCache={};class IANAZone extends Zone{static create(e){return ianaZoneCache[e]||(ianaZoneCache[e]=new IANAZone(e)),ianaZoneCache[e]}static resetCache(){ianaZoneCache={},dtfCache={}}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=IANAZone.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:o}){return parseZoneInfo(e,r,o,this.name)}formatOffset(e,r){return formatOffset(this.offset(e),r)}offset(e){const r=new Date(e);if(isNaN(r))return NaN;const o=makeDTF(this.name);let[a,c,u,d,p,g,b]=o.formatToParts?partsOffset(o,r):hackyOffset(o,r);d==="BC"&&(a=-Math.abs(a)+1);const w=objToLocalTS({year:a,month:c,day:u,hour:p===24?0:p,minute:g,second:b,millisecond:0});let y=+r;const I=y%1e3;return y-=I>=0?I:1e3+I,(w-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let intlLFCache={};function getCachedLF(t,e={}){const r=JSON.stringify([t,e]);let o=intlLFCache[r];return o||(o=new Intl.ListFormat(t,e),intlLFCache[r]=o),o}let intlDTCache={};function getCachedDTF(t,e={}){const r=JSON.stringify([t,e]);let o=intlDTCache[r];return o||(o=new Intl.DateTimeFormat(t,e),intlDTCache[r]=o),o}let intlNumCache={};function getCachedINF(t,e={}){const r=JSON.stringify([t,e]);let o=intlNumCache[r];return o||(o=new Intl.NumberFormat(t,e),intlNumCache[r]=o),o}let intlRelCache={};function getCachedRTF(t,e={}){const{base:r,...o}=e,a=JSON.stringify([t,o]);let c=intlRelCache[a];return c||(c=new Intl.RelativeTimeFormat(t,e),intlRelCache[a]=c),c}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}function parseLocaleString(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const r=t.indexOf("-u-");if(r===-1)return[t];{let o,a;try{o=getCachedDTF(t).resolvedOptions(),a=t}catch{const p=t.substring(0,r);o=getCachedDTF(p).resolvedOptions(),a=p}const{numberingSystem:c,calendar:u}=o;return[a,c,u]}}function intlConfigString(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function mapMonths(t){const e=[];for(let r=1;r<=12;r++){const o=DateTime.utc(2009,r,1);e.push(t(o))}return e}function mapWeekdays(t){const e=[];for(let r=1;r<=7;r++){const o=DateTime.utc(2016,11,13+r);e.push(t(o))}return e}function listStuff(t,e,r,o){const a=t.listingMode();return a==="error"?null:a==="en"?r(e):o(e)}function supportsFastNumbers(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 PolyNumberFormatter{constructor(e,r,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:a,floor:c,...u}=o;if(!r||Object.keys(u).length>0){const d={useGrouping:!1,...o};o.padTo>0&&(d.minimumIntegerDigits=o.padTo),this.inf=getCachedINF(e,d)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):roundTo(e,3);return padStart(r,this.padTo)}}}class PolyDateFormatter{constructor(e,r,o){this.opts=o,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),d=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&IANAZone.create(d).valid?(a=d,this.dt=e):(a="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,a=e.zone.name):(a="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const c={...this.opts};c.timeZone=c.timeZone||a,this.dtf=getCachedDTF(r,c)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:o}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,r,o){this.opts={style:"long",...o},!r&&hasRelative()&&(this.rtf=getCachedRTF(e,o))}format(e,r){return this.rtf?this.rtf.format(e,r):formatRelativeTime(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,r,o,a=!1){const c=e||Settings.defaultLocale,u=c||(a?"en-US":systemLocale()),d=r||Settings.defaultNumberingSystem,p=o||Settings.defaultOutputCalendar;return new Locale(u,d,p,c)}static resetCache(){sysLocaleCache=null,intlDTCache={},intlNumCache={},intlRelCache={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:o}={}){return Locale.create(e,r,o)}constructor(e,r,o,a){const[c,u,d]=parseLocaleString(e);this.locale=c,this.numberingSystem=r||u||null,this.outputCalendar=o||d||null,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Locale.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,r=!1){return listStuff(this,e,months,()=>{const o=r?{month:e,day:"numeric"}:{month:e},a=r?"format":"standalone";return this.monthsCache[a][e]||(this.monthsCache[a][e]=mapMonths(c=>this.extract(c,o,"month"))),this.monthsCache[a][e]})}weekdays(e,r=!1){return listStuff(this,e,weekdays,()=>{const o=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=r?"format":"standalone";return this.weekdaysCache[a][e]||(this.weekdaysCache[a][e]=mapWeekdays(c=>this.extract(c,o,"weekday"))),this.weekdaysCache[a][e]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return listStuff(this,e,eras,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(o=>this.extract(o,r,"era"))),this.eraCache[e]})}extract(e,r,o){const a=this.dtFormatter(e,r),c=a.formatToParts(),u=c.find(d=>d.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new PolyDateFormatter(e,this.intl,r)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(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}}let singleton=null;class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone(signedOffset(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return formatOffset(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class InvalidZone extends Zone{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 normalizeZone(t,e){if(isUndefined$1(t)||t===null)return e;if(t instanceof Zone)return t;if(isString$5(t)){const r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?SystemZone.instance:r==="utc"||r==="gmt"?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(r)||IANAZone.create(t)}else return isNumber$3(t)?FixedOffsetZone.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new InvalidZone(t)}let now$2=()=>Date.now(),defaultZone="system",defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid;class Settings{static get now(){return now$2}static set now(e){now$2=e}static set defaultZone(e){defaultZone=e}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(e){defaultLocale=e}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(e){defaultNumberingSystem=e}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(e){defaultOutputCalendar=e}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(e){twoDigitCutoffYear=e%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(e){throwOnInvalid=e}static resetCaches(){Locale.resetCache(),IANAZone.resetCache()}}function isUndefined$1(t){return typeof t>"u"}function isNumber$3(t){return typeof t=="number"}function isInteger(t){return typeof t=="number"&&t%1===0}function isString$5(t){return typeof t=="string"}function isDate$3(t){return Object.prototype.toString.call(t)==="[object Date]"}function hasRelative(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function maybeArray(t){return Array.isArray(t)?t:[t]}function bestBy(t,e,r){if(t.length!==0)return t.reduce((o,a)=>{const c=[e(a),a];return o&&r(o[0],c[0])===o[0]?o:c},null)[1]}function pick$1(t,e){return e.reduce((r,o)=>(r[o]=t[o],r),{})}function hasOwnProperty$1(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function integerBetween(t,e,r){return isInteger(t)&&t>=e&&t<=r}function floorMod(t,e){return t-e*Math.floor(t/e)}function padStart(t,e=2){const r=t<0;let o;return r?o="-"+(""+-t).padStart(e,"0"):o=(""+t).padStart(e,"0"),o}function parseInteger(t){if(!(isUndefined$1(t)||t===null||t===""))return parseInt(t,10)}function parseFloating(t){if(!(isUndefined$1(t)||t===null||t===""))return parseFloat(t)}function parseMillis(t){if(!(isUndefined$1(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function roundTo(t,e,r=!1){const o=10**e;return(r?Math.trunc:Math.round)(t*o)/o}function isLeapYear(t){return t%4===0&&(t%100!==0||t%400===0)}function daysInYear(t){return isLeapYear(t)?366:365}function daysInMonth(t,e){const r=floorMod(e-1,12)+1,o=t+(e-r)/12;return r===2?isLeapYear(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function objToLocalTS(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(t.year,t.month-1,t.day)),+e}function weeksInWeekYear(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,o=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return e===4||o===3?53:52}function untruncateYear(t){return t>99?t:t>Settings.twoDigitCutoffYear?1900+t:2e3+t}function parseZoneInfo(t,e,r,o=null){const a=new Date(t),c={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(c.timeZone=o);const u={timeZoneName:e,...c},d=new Intl.DateTimeFormat(r,u).formatToParts(a).find(p=>p.type.toLowerCase()==="timezonename");return d?d.value:null}function signedOffset(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const o=parseInt(e,10)||0,a=r<0||Object.is(r,-0)?-o:o;return r*60+a}function asNumber(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new InvalidArgumentError(`Invalid unit value ${t}`);return e}function normalizeObject(t,e){const r={};for(const o in t)if(hasOwnProperty$1(t,o)){const a=t[o];if(a==null)continue;r[e(o)]=asNumber(a)}return r}function formatOffset(t,e){const r=Math.trunc(Math.abs(t/60)),o=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${padStart(r,2)}:${padStart(o,2)}`;case"narrow":return`${a}${r}${o>0?`:${o}`:""}`;case"techie":return`${a}${padStart(r,2)}${padStart(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function timeObject(t){return pick$1(t,["hour","minute","second","millisecond"])}const monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(t){switch(t){case"narrow":return[...monthsNarrow];case"short":return[...monthsShort];case"long":return[...monthsLong];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 weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(t){switch(t){case"narrow":return[...weekdaysNarrow];case"short":return[...weekdaysShort];case"long":return[...weekdaysLong];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(t){switch(t){case"narrow":return[...erasNarrow];case"short":return[...erasShort];case"long":return[...erasLong];default:return null}}function meridiemForDateTime(t){return meridiems[t.hour<12?0:1]}function weekdayForDateTime(t,e){return weekdays(e)[t.weekday-1]}function monthForDateTime(t,e){return months(e)[t.month-1]}function eraForDateTime(t,e){return eras(e)[t.year<0?0:1]}function formatRelativeTime(t,e,r="always",o=!1){const a={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."]},c=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&c){const x=t==="days";switch(e){case 1:return x?"tomorrow":`next ${a[t][0]}`;case-1:return x?"yesterday":`last ${a[t][0]}`;case 0:return x?"today":`this ${a[t][0]}`}}const u=Object.is(e,-0)||e<0,d=Math.abs(e),p=d===1,g=a[t],b=o?p?g[1]:g[2]||g[1]:p?a[t][0]:t;return u?`${d} ${b} ago`:`in ${d} ${b}`}function stringifyTokens(t,e){let r="";for(const o of t)o.literal?r+=o.val:r+=e(o.val);return r}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};class Formatter{static create(e,r={}){return new Formatter(e,r)}static parseFormat(e){let r=null,o="",a=!1;const c=[];for(let u=0;u<e.length;u++){const d=e.charAt(u);d==="'"?(o.length>0&&c.push({literal:a||/^\s+$/.test(o),val:o}),r=null,o="",a=!a):a||d===r?o+=d:(o.length>0&&c.push({literal:/^\s+$/.test(o),val:o}),o=d,r=d)}return o.length>0&&c.push({literal:a||/^\s+$/.test(o),val:o}),c}static macroTokenToFormatOpts(e){return macroTokenToFormatOpts[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return padStart(e,r);const o={...this.opts};return r>0&&(o.padTo=r),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,r){const o=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",c=(y,I)=>this.loc.extract(e,y,I),u=y=>e.isOffsetFixed&&e.offset===0&&y.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,y.format):"",d=()=>o?meridiemForDateTime(e):c({hour:"numeric",hourCycle:"h12"},"dayperiod"),p=(y,I)=>o?monthForDateTime(e,y):c(I?{month:y}:{month:y,day:"numeric"},"month"),g=(y,I)=>o?weekdayForDateTime(e,y):c(I?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),b=y=>{const I=Formatter.macroTokenToFormatOpts(y);return I?this.formatWithSystemDefault(e,I):y},x=y=>o?eraForDateTime(e,y):c({era:y},"era"),w=y=>{switch(y){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 u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({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 d();case"d":return a?c({day:"numeric"},"day"):this.num(e.day);case"dd":return a?c({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return g("short",!0);case"cccc":return g("long",!0);case"ccccc":return g("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return g("short",!1);case"EEEE":return g("long",!1);case"EEEEE":return g("narrow",!1);case"L":return a?c({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?c({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return p("short",!0);case"LLLL":return p("long",!0);case"LLLLL":return p("narrow",!0);case"M":return a?c({month:"numeric"},"month"):this.num(e.month);case"MM":return a?c({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return p("short",!1);case"MMMM":return p("long",!1);case"MMMMM":return p("narrow",!1);case"y":return a?c({year:"numeric"},"year"):this.num(e.year);case"yy":return a?c({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?c({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?c({year:"numeric"},"year"):this.num(e.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("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 b(y)}};return stringifyTokens(Formatter.parseFormat(r),w)}formatDurationFromString(e,r){const o=p=>{switch(p[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}},a=p=>g=>{const b=o(g);return b?this.num(p.get(b),g.length):g},c=Formatter.parseFormat(r),u=c.reduce((p,{literal:g,val:b})=>g?p:p.concat(b),[]),d=e.shiftTo(...u.map(o).filter(p=>p));return stringifyTokens(c,a(d))}}class Invalid{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...t){const e=t.reduce((r,o)=>r+o.source,"");return RegExp(`^${e}$`)}function combineExtractors(...t){return e=>t.reduce(([r,o,a],c)=>{const[u,d,p]=c(e,a);return[{...r,...u},d||o,p]},[{},null,1]).slice(0,2)}function parse$4(t,...e){if(t==null)return[null,null];for(const[r,o]of e){const a=r.exec(t);if(a)return o(a)}return[null,null]}function simpleParse(...t){return(e,r)=>{const o={};let a;for(a=0;a<t.length;a++)o[t[a]]=parseInteger(e[r+a]);return[o,null,r+a]}}const offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:T${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int$1(t,e,r){const o=t[e];return isUndefined$1(o)?r:parseInteger(o)}function extractISOYmd(t,e){return[{year:int$1(t,e),month:int$1(t,e+1,1),day:int$1(t,e+2,1)},null,e+3]}function extractISOTime(t,e){return[{hours:int$1(t,e,0),minutes:int$1(t,e+1,0),seconds:int$1(t,e+2,0),milliseconds:parseMillis(t[e+3])},null,e+4]}function extractISOOffset(t,e){const r=!t[e]&&!t[e+1],o=signedOffset(t[e+1],t[e+2]),a=r?null:FixedOffsetZone.instance(o);return[{},a,e+3]}function extractIANAZone(t,e){const r=t[e]?IANAZone.create(t[e]):null;return[{},r,e+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?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 extractISODuration(t){const[e,r,o,a,c,u,d,p,g]=t,b=e[0]==="-",x=p&&p[0]==="-",w=(y,I=!1)=>y!==void 0&&(I||y&&b)?-y:y;return[{years:w(parseFloating(r)),months:w(parseFloating(o)),weeks:w(parseFloating(a)),days:w(parseFloating(c)),hours:w(parseFloating(u)),minutes:w(parseFloating(d)),seconds:w(parseFloating(p),p==="-0"),milliseconds:w(parseMillis(g),x)}]}const obsOffsets={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 fromStrings(t,e,r,o,a,c,u){const d={year:e.length===2?untruncateYear(parseInteger(e)):parseInteger(e),month:monthsShort.indexOf(r)+1,day:parseInteger(o),hour:parseInteger(a),minute:parseInteger(c)};return u&&(d.second=parseInteger(u)),t&&(d.weekday=t.length>3?weekdaysLong.indexOf(t)+1:weekdaysShort.indexOf(t)+1),d}const rfc2822=/^(?:(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 extractRFC2822(t){const[,e,r,o,a,c,u,d,p,g,b,x]=t,w=fromStrings(e,a,o,r,c,u,d);let y;return p?y=obsOffsets[p]:g?y=0:y=signedOffset(b,x),[w,new FixedOffsetZone(y)]}function preprocessRFC2822(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123=/^(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$/,rfc850=/^(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$/,ascii=/^(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 extractRFC1123Or850(t){const[,e,r,o,a,c,u,d]=t;return[fromStrings(e,a,o,r,c,u,d),FixedOffsetZone.utcInstance]}function extractASCII(t){const[,e,r,o,a,c,u,d]=t;return[fromStrings(e,d,r,o,a,c,u),FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(t){return parse$4(t,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(t){return parse$4(preprocessRFC2822(t),[rfc2822,extractRFC2822])}function parseHTTPDate(t){return parse$4(t,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(t){return parse$4(t,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(t){return parse$4(t,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(t){return parse$4(t,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2="Invalid Duration",lowOrderMatrix={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}},casualMatrix={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},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(t,e,r=!1){const o={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Duration(o)}function durationToMillis(t,e){let r=e.milliseconds??0;for(const o of reverseUnits.slice(1))e[o]&&(r+=e[o]*t[o].milliseconds);return r}function normalizeValues(t,e){const r=durationToMillis(t,e)<0?-1:1;orderedUnits$1.reduceRight((o,a)=>{if(isUndefined$1(e[a]))return o;if(o){const c=e[o]*r,u=t[a][o],d=Math.floor(c/u);e[a]+=d*r,e[o]-=d*u*r}return a},null),orderedUnits$1.reduce((o,a)=>{if(isUndefined$1(e[a]))return o;if(o){const c=e[o]%1;e[o]-=c,e[a]+=c*t[o][a]}return a},null)}function removeZeroes(t){const e={};for(const[r,o]of Object.entries(t))o!==0&&(e[r]=o);return e}class Duration{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let o=r?accurateMatrix:casualMatrix;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||Locale.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,r){return Duration.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(isNumber$3(e))return Duration.fromMillis(e);if(Duration.isDuration(e))return e;if(typeof e=="object")return Duration.fromObject(e);throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[o]=parseISODuration(e);return o?Duration.fromObject(o,r):Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[o]=parseISOTimeOnly(e);return o?Duration.fromObject(o,r):Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");const o=e instanceof Invalid?e:new Invalid(e,r);if(Settings.throwOnInvalid)throw new InvalidDurationError(o);return new Duration({invalid:o})}static normalizeUnit(e){const r={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(!r)throw new InvalidUnitError(e);return r}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,r={}){const o={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Formatter.create(this.loc,o).formatDurationFromString(this,e):INVALID$2}toHuman(e={}){if(!this.isValid)return INVALID$2;const r=orderedUnits$1.map(o=>{const a=this.values[o];return isUndefined$1(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(a)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}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+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},DateTime.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=Duration.fromDurationLike(e),o={};for(const a of orderedUnits$1)(hasOwnProperty$1(r.values,a)||hasOwnProperty$1(this.values,a))&&(o[a]=r.get(a)+this.get(a));return clone$1(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const r=Duration.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const o of Object.keys(this.values))r[o]=asNumber(e(this.values[o],o));return clone$1(this,{values:r},!0)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone$1(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:o,matrix:a}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:a,conversionAccuracy:o};return clone$1(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return normalizeValues(this.matrix,e),clone$1(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>Duration.normalizeUnit(u));const r={},o={},a=this.toObject();let c;for(const u of orderedUnits$1)if(e.indexOf(u)>=0){c=u;let d=0;for(const g in o)d+=this.matrix[g][u]*o[g],o[g]=0;isNumber$3(a[u])&&(d+=a[u]);const p=Math.trunc(d);r[u]=p,o[u]=(d*1e3-p*1e3)/1e3}else isNumber$3(a[u])&&(o[u]=a[u]);for(const u in o)o[u]!==0&&(r[c]+=u===c?o[u]:o[u]/this.matrix[c][u]);return normalizeValues(this.matrix,r),clone$1(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return clone$1(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 r(o,a){return o===void 0||o===0?a===void 0||a===0:o===a}for(const o of orderedUnits$1)if(!r(this.values[o],e.values[o]))return!1;return!0}}const INVALID$1="Invalid Interval";function validateStartEnd(t,e){return!t||!t.isValid?Interval.invalid("missing or invalid start"):!e||!e.isValid?Interval.invalid("missing or invalid end"):e<t?Interval.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 Interval{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");const o=e instanceof Invalid?e:new Invalid(e,r);if(Settings.throwOnInvalid)throw new InvalidIntervalError(o);return new Interval({invalid:o})}static fromDateTimes(e,r){const o=friendlyDateTime(e),a=friendlyDateTime(r),c=validateStartEnd(o,a);return c??new Interval({start:o,end:a})}static after(e,r){const o=Duration.fromDurationLike(r),a=friendlyDateTime(e);return Interval.fromDateTimes(a,a.plus(o))}static before(e,r){const o=Duration.fromDurationLike(r),a=friendlyDateTime(e);return Interval.fromDateTimes(a.minus(o),a)}static fromISO(e,r){const[o,a]=(e||"").split("/",2);if(o&&a){let c,u;try{c=DateTime.fromISO(o,r),u=c.isValid}catch{u=!1}let d,p;try{d=DateTime.fromISO(a,r),p=d.isValid}catch{p=!1}if(u&&p)return Interval.fromDateTimes(c,d);if(u){const g=Duration.fromISO(a,r);if(g.isValid)return Interval.after(c,g)}else if(p){const g=Duration.fromISO(o,r);if(g.isValid)return Interval.before(d,g)}}return Interval.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 r=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(r,e).get(e))+(o.valueOf()!==this.end.valueOf())}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:r}={}){return this.isValid?Interval.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(friendlyDateTime).filter(u=>this.contains(u)).sort(),o=[];let{s:a}=this,c=0;for(;a<this.e;){const u=r[c]||this.e,d=+u>+this.e?this.e:u;o.push(Interval.fromDateTimes(a,d)),a=d,c+=1}return o}splitBy(e){const r=Duration.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:o}=this,a=1,c;const u=[];for(;o<this.e;){const d=this.start.plus(r.mapUnits(p=>p*a));c=+d>+this.e?this.e:d,u.push(Interval.fromDateTimes(o,c)),o=c,a+=1}return u}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 r=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return r>=o?null:Interval.fromDateTimes(r,o)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return Interval.fromDateTimes(r,o)}static merge(e){const[r,o]=e.sort((a,c)=>a.s-c.s).reduce(([a,c],u)=>c?c.overlaps(u)||c.abutsStart(u)?[a,c.union(u)]:[a.concat([c]),u]:[a,u],[[],null]);return o&&r.push(o),r}static xor(e){let r=null,o=0;const a=[],c=e.map(p=>[{time:p.s,type:"s"},{time:p.e,type:"e"}]),u=Array.prototype.concat(...c),d=u.sort((p,g)=>p.time-g.time);for(const p of d)o+=p.type==="s"?1:-1,o===1?r=p.time:(r&&+r!=+p.time&&a.push(Interval.fromDateTimes(r,p.time)),r=null);return Interval.merge(a)}difference(...e){return Interval.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}toLocaleString(e=DATE_SHORT,r={}){return this.isValid?Formatter.create(this.s.loc.clone(r),e).formatInterval(this):INVALID$1}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:INVALID$1}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:INVALID$1}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Duration.invalid(this.invalidReason)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const r=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static months(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null,outputCalendar:c="gregory"}={}){return(a||Locale.create(r,o,c)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null,outputCalendar:c="gregory"}={}){return(a||Locale.create(r,o,c)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null}={}){return(a||Locale.create(r,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null}={}){return(a||Locale.create(r,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return Locale.create(r,null,"gregory").eras(e)}static features(){return{relative:hasRelative()}}}function dayDiff(t,e){const r=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=r(e)-r(t);return Math.floor(Duration.fromMillis(o).as("days"))}function highOrderDiffs(t,e,r){const o=[["years",(p,g)=>g.year-p.year],["quarters",(p,g)=>g.quarter-p.quarter+(g.year-p.year)*4],["months",(p,g)=>g.month-p.month+(g.year-p.year)*12],["weeks",(p,g)=>{const b=dayDiff(p,g);return(b-b%7)/7}],["days",dayDiff]],a={},c=t;let u,d;for(const[p,g]of o)r.indexOf(p)>=0&&(u=p,a[p]=g(t,e),d=c.plus(a),d>e?(a[p]--,t=c.plus(a),t>e&&(d=t,a[p]--,t=c.plus(a))):t=d);return[t,a,d,u]}function diff(t,e,r,o){let[a,c,u,d]=highOrderDiffs(t,e,r);const p=e-a,g=r.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);g.length===0&&(u<e&&(u=a.plus({[d]:1})),u!==a&&(c[d]=(c[d]||0)+p/(u-a)));const b=Duration.fromObject(c,o);return g.length>0?Duration.fromMillis(p,o).shiftTo(...g).plus(b):b}const numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={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]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){const o=t.charCodeAt(r);if(t[r].search(numberingSystems.hanidec)!==-1)e+=hanidecChars.indexOf(t[r]);else for(const a in numberingSystemsUTF16){const[c,u]=numberingSystemsUTF16[a];o>=c&&o<=u&&(e+=o-c)}}return parseInt(e,10)}else return e}function digitRegex({numberingSystem:t},e=""){return new RegExp(`${numberingSystems[t||"latn"]}${e}`)}const MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(t,e=r=>r){return{regex:t,deser:([r])=>e(parseDigits(r))}}const NBSP=String.fromCharCode(160),spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(t){return t.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(t){return t.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(t,e){return t===null?null:{regex:RegExp(t.map(fixListRegex).join("|")),deser:([r])=>t.findIndex(o=>stripInsensitivities(r)===stripInsensitivities(o))+e}}function offset(t,e){return{regex:t,deser:([,r,o])=>signedOffset(r,o),groups:e}}function simple(t){return{regex:t,deser:([e])=>e}}function escapeToken(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(t,e){const r=digitRegex(e),o=digitRegex(e,"{2}"),a=digitRegex(e,"{3}"),c=digitRegex(e,"{4}"),u=digitRegex(e,"{6}"),d=digitRegex(e,"{1,2}"),p=digitRegex(e,"{1,3}"),g=digitRegex(e,"{1,6}"),b=digitRegex(e,"{1,9}"),x=digitRegex(e,"{2,4}"),w=digitRegex(e,"{4,6}"),y=T=>({regex:RegExp(escapeToken(T.val)),deser:([E])=>E,literal:!0}),k=(T=>{if(t.literal)return y(T);switch(T.val){case"G":return oneOf(e.eras("short"),0);case"GG":return oneOf(e.eras("long"),0);case"y":return intUnit(g);case"yy":return intUnit(x,untruncateYear);case"yyyy":return intUnit(c);case"yyyyy":return intUnit(w);case"yyyyyy":return intUnit(u);case"M":return intUnit(d);case"MM":return intUnit(o);case"MMM":return oneOf(e.months("short",!0),1);case"MMMM":return oneOf(e.months("long",!0),1);case"L":return intUnit(d);case"LL":return intUnit(o);case"LLL":return oneOf(e.months("short",!1),1);case"LLLL":return oneOf(e.months("long",!1),1);case"d":return intUnit(d);case"dd":return intUnit(o);case"o":return intUnit(p);case"ooo":return intUnit(a);case"HH":return intUnit(o);case"H":return intUnit(d);case"hh":return intUnit(o);case"h":return intUnit(d);case"mm":return intUnit(o);case"m":return intUnit(d);case"q":return intUnit(d);case"qq":return intUnit(o);case"s":return intUnit(d);case"ss":return intUnit(o);case"S":return intUnit(p);case"SSS":return intUnit(a);case"u":return simple(b);case"uu":return simple(d);case"uuu":return intUnit(r);case"a":return oneOf(e.meridiems(),0);case"kkkk":return intUnit(c);case"kk":return intUnit(x,untruncateYear);case"W":return intUnit(d);case"WW":return intUnit(o);case"E":case"c":return intUnit(r);case"EEE":return oneOf(e.weekdays("short",!1),1);case"EEEE":return oneOf(e.weekdays("long",!1),1);case"ccc":return oneOf(e.weekdays("short",!0),1);case"cccc":return oneOf(e.weekdays("long",!0),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${d.source})(?::(${o.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${d.source})(${o.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return y(T)}})(t)||{invalidReason:MISSING_FTP};return k.token=t,k}const partTypeStyleToTokenVal={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 tokenForPart(t,e,r){const{type:o,value:a}=t;if(o==="literal"){const p=/^\s+$/.test(a);return{literal:!p,val:p?" ":a}}const c=e[o];let u=o;o==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=r.hour12?"hour12":"hour24");let d=partTypeStyleToTokenVal[u];if(typeof d=="object"&&(d=d[c]),d)return{literal:!1,val:d}}function buildRegex(t){return[`^${t.map(r=>r.regex).reduce((r,o)=>`${r}(${o.source})`,"")}$`,t]}function match(t,e,r){const o=t.match(e);if(o){const a={};let c=1;for(const u in r)if(hasOwnProperty$1(r,u)){const d=r[u],p=d.groups?d.groups+1:1;!d.literal&&d.token&&(a[d.token.val[0]]=d.deser(o.slice(c,c+p))),c+=p}return[o,a]}else return[o,{}]}function dateTimeFromMatches(t){const e=c=>{switch(c){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 r=null,o;return isUndefined$1(t.z)||(r=IANAZone.create(t.z)),isUndefined$1(t.Z)||(r||(r=new FixedOffsetZone(t.Z)),o=t.Z),isUndefined$1(t.q)||(t.M=(t.q-1)*3+1),isUndefined$1(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),isUndefined$1(t.u)||(t.S=parseMillis(t.u)),[Object.keys(t).reduce((c,u)=>{const d=e(u);return d&&(c[d]=t[u]),c},{}),r,o]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime.fromMillis(1555555555555)),dummyDateTimeCache}function maybeExpandMacroToken(t,e){if(t.literal)return t;const r=Formatter.macroTokenToFormatOpts(t.val),o=formatOptsToTokens(r,e);return o==null||o.includes(void 0)?t:o}function expandMacroTokens(t,e){return Array.prototype.concat(...t.map(r=>maybeExpandMacroToken(r,e)))}function explainFromTokens(t,e,r){const o=expandMacroTokens(Formatter.parseFormat(r),t),a=o.map(u=>unitForToken(u,t)),c=a.find(u=>u.invalidReason);if(c)return{input:e,tokens:o,invalidReason:c.invalidReason};{const[u,d]=buildRegex(a),p=RegExp(u,"i"),[g,b]=match(e,p,d),[x,w,y]=b?dateTimeFromMatches(b):[null,null,void 0];if(hasOwnProperty$1(b,"a")&&hasOwnProperty$1(b,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:p,rawMatches:g,matches:b,result:x,zone:w,specificOffset:y}}}function parseFromTokens(t,e,r){const{result:o,zone:a,specificOffset:c,invalidReason:u}=explainFromTokens(t,e,r);return[o,a,c,u]}function formatOptsToTokens(t,e){if(!t)return null;const o=Formatter.create(e,t).dtFormatter(getDummyDateTime()),a=o.formatToParts(),c=o.resolvedOptions();return a.map(u=>tokenForPart(u,t,c))}const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(t,e){return new Invalid("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function dayOfWeek(t,e,r){const o=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const a=o.getUTCDay();return a===0?7:a}function computeOrdinal(t,e,r){return r+(isLeapYear(t)?leapLadder:nonLeapLadder)[e-1]}function uncomputeOrdinal(t,e){const r=isLeapYear(t)?leapLadder:nonLeapLadder,o=r.findIndex(c=>c<e),a=e-r[o];return{month:o+1,day:a}}function gregorianToWeek(t){const{year:e,month:r,day:o}=t,a=computeOrdinal(e,r,o),c=dayOfWeek(e,r,o);let u=Math.floor((a-c+10)/7),d;return u<1?(d=e-1,u=weeksInWeekYear(d)):u>weeksInWeekYear(e)?(d=e+1,u=1):d=e,{weekYear:d,weekNumber:u,weekday:c,...timeObject(t)}}function weekToGregorian(t){const{weekYear:e,weekNumber:r,weekday:o}=t,a=dayOfWeek(e,1,4),c=daysInYear(e);let u=r*7+o-a-3,d;u<1?(d=e-1,u+=daysInYear(d)):u>c?(d=e+1,u-=daysInYear(e)):d=e;const{month:p,day:g}=uncomputeOrdinal(d,u);return{year:d,month:p,day:g,...timeObject(t)}}function gregorianToOrdinal(t){const{year:e,month:r,day:o}=t,a=computeOrdinal(e,r,o);return{year:e,ordinal:a,...timeObject(t)}}function ordinalToGregorian(t){const{year:e,ordinal:r}=t,{month:o,day:a}=uncomputeOrdinal(e,r);return{year:e,month:o,day:a,...timeObject(t)}}function hasInvalidWeekData(t){const e=isInteger(t.weekYear),r=integerBetween(t.weekNumber,1,weeksInWeekYear(t.weekYear)),o=integerBetween(t.weekday,1,7);return e?r?o?!1:unitOutOfRange("weekday",t.weekday):unitOutOfRange("week",t.week):unitOutOfRange("weekYear",t.weekYear)}function hasInvalidOrdinalData(t){const e=isInteger(t.year),r=integerBetween(t.ordinal,1,daysInYear(t.year));return e?r?!1:unitOutOfRange("ordinal",t.ordinal):unitOutOfRange("year",t.year)}function hasInvalidGregorianData(t){const e=isInteger(t.year),r=integerBetween(t.month,1,12),o=integerBetween(t.day,1,daysInMonth(t.year,t.month));return e?r?o?!1:unitOutOfRange("day",t.day):unitOutOfRange("month",t.month):unitOutOfRange("year",t.year)}function hasInvalidTimeData(t){const{hour:e,minute:r,second:o,millisecond:a}=t,c=integerBetween(e,0,23)||e===24&&r===0&&o===0&&a===0,u=integerBetween(r,0,59),d=integerBetween(o,0,59),p=integerBetween(a,0,999);return c?u?d?p?!1:unitOutOfRange("millisecond",a):unitOutOfRange("second",o):unitOutOfRange("minute",r):unitOutOfRange("hour",e)}const INVALID="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(t){return new Invalid("unsupported zone",`the zone "${t.name}" is not supported`)}function possiblyCachedWeekData(t){return t.weekData===null&&(t.weekData=gregorianToWeek(t.c)),t.weekData}function clone(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new DateTime({...r,...e,old:r})}function fixOffset(t,e,r){let o=t-e*60*1e3;const a=r.offset(o);if(e===a)return[o,e];o-=(a-e)*60*1e3;const c=r.offset(o);return a===c?[o,a]:[t-Math.min(a,c)*60*1e3,Math.max(a,c)]}function tsToObj(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(t,e,r){return fixOffset(objToLocalTS(t),e,r)}function adjustTime(t,e){const r=t.o,o=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,c={...t.c,year:o,month:a,day:Math.min(t.c.day,daysInMonth(o,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=Duration.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"),d=objToLocalTS(c);let[p,g]=fixOffset(d,r,t.zone);return u!==0&&(p+=u,g=t.zone.offset(p)),{ts:p,o:g}}function parseDataToDateTime(t,e,r,o,a,c){const{setZone:u,zone:d}=r;if(t&&Object.keys(t).length!==0||e){const p=e||d,g=DateTime.fromObject(t,{...r,zone:p,specificOffset:c});return u?g:g.setZone(d)}else return DateTime.invalid(new Invalid("unparsable",`the input "${a}" can't be parsed as ${o}`))}function toTechFormat(t,e,r=!0){return t.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function toISODate(t,e){const r=t.c.year>9999||t.c.year<0;let o="";return r&&t.c.year>=0&&(o+="+"),o+=padStart(t.c.year,r?6:4),e?(o+="-",o+=padStart(t.c.month),o+="-",o+=padStart(t.c.day)):(o+=padStart(t.c.month),o+=padStart(t.c.day)),o}function toISOTime(t,e,r,o,a,c){let u=padStart(t.c.hour);return e?(u+=":",u+=padStart(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(u+=":")):u+=padStart(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(u+=padStart(t.c.second),(t.c.millisecond!==0||!o)&&(u+=".",u+=padStart(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!c?u+="Z":t.o<0?(u+="-",u+=padStart(Math.trunc(-t.o/60)),u+=":",u+=padStart(Math.trunc(-t.o%60))):(u+="+",u+=padStart(Math.trunc(t.o/60)),u+=":",u+=padStart(Math.trunc(t.o%60)))),c&&(u+="["+t.zone.ianaName+"]"),u}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(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 InvalidUnitError(t);return e}function quickDT(t,e){const r=normalizeZone(e.zone,Settings.defaultZone),o=Locale.fromObject(e),a=Settings.now();let c,u;if(isUndefined$1(t.year))c=a;else{for(const g of orderedUnits)isUndefined$1(t[g])&&(t[g]=defaultUnitValues[g]);const d=hasInvalidGregorianData(t)||hasInvalidTimeData(t);if(d)return DateTime.invalid(d);const p=r.offset(a);[c,u]=objToTS(t,p,r)}return new DateTime({ts:c,zone:r,loc:o,o:u})}function diffRelative(t,e,r){const o=isUndefined$1(r.round)?!0:r.round,a=(u,d)=>(u=roundTo(u,o||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(u,d)),c=u=>r.calendary?e.hasSame(t,u)?0:e.startOf(u).diff(t.startOf(u),u).get(u):e.diff(t,u).get(u);if(r.unit)return a(c(r.unit),r.unit);for(const u of r.units){const d=c(u);if(Math.abs(d)>=1)return a(d,u)}return a(t>e?-0:0,r.units[r.units.length-1])}function lastOpts(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class DateTime{constructor(e){const r=e.zone||Settings.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(r.isValid?null:unsupportedZone(r));this.ts=isUndefined$1(e.ts)?Settings.now():e.ts;let a=null,c=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[a,c]=[e.old.c,e.old.o];else{const d=r.offset(this.ts);a=tsToObj(this.ts,d),o=Number.isNaN(a.year)?new Invalid("invalid input"):null,a=o?null:a,c=o?null:d}this._zone=r,this.loc=e.loc||Locale.create(),this.invalid=o,this.weekData=null,this.c=a,this.o=c,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){const[e,r]=lastOpts(arguments),[o,a,c,u,d,p,g]=r;return quickDT({year:o,month:a,day:c,hour:u,minute:d,second:p,millisecond:g},e)}static utc(){const[e,r]=lastOpts(arguments),[o,a,c,u,d,p,g]=r;return e.zone=FixedOffsetZone.utcInstance,quickDT({year:o,month:a,day:c,hour:u,minute:d,second:p,millisecond:g},e)}static fromJSDate(e,r={}){const o=isDate$3(e)?e.valueOf():NaN;if(Number.isNaN(o))return DateTime.invalid("invalid input");const a=normalizeZone(r.zone,Settings.defaultZone);return a.isValid?new DateTime({ts:o,zone:a,loc:Locale.fromObject(r)}):DateTime.invalid(unsupportedZone(a))}static fromMillis(e,r={}){if(isNumber$3(e))return e<-MAX_DATE||e>MAX_DATE?DateTime.invalid("Timestamp out of range"):new DateTime({ts:e,zone:normalizeZone(r.zone,Settings.defaultZone),loc:Locale.fromObject(r)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(isNumber$3(e))return new DateTime({ts:e*1e3,zone:normalizeZone(r.zone,Settings.defaultZone),loc:Locale.fromObject(r)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const o=normalizeZone(r.zone,Settings.defaultZone);if(!o.isValid)return DateTime.invalid(unsupportedZone(o));const a=Settings.now(),c=isUndefined$1(r.specificOffset)?o.offset(a):r.specificOffset,u=normalizeObject(e,normalizeUnit),d=!isUndefined$1(u.ordinal),p=!isUndefined$1(u.year),g=!isUndefined$1(u.month)||!isUndefined$1(u.day),b=p||g,x=u.weekYear||u.weekNumber,w=Locale.fromObject(r);if((b||d)&&x)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&d)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");const y=x||u.weekday&&!b;let I,k,T=tsToObj(a,c);y?(I=orderedWeekUnits,k=defaultWeekUnitValues,T=gregorianToWeek(T)):d?(I=orderedOrdinalUnits,k=defaultOrdinalUnitValues,T=gregorianToOrdinal(T)):(I=orderedUnits,k=defaultUnitValues);let E=!1;for(const z of I){const W=u[z];isUndefined$1(W)?E?u[z]=k[z]:u[z]=T[z]:E=!0}const O=y?hasInvalidWeekData(u):d?hasInvalidOrdinalData(u):hasInvalidGregorianData(u),A=O||hasInvalidTimeData(u);if(A)return DateTime.invalid(A);const L=y?weekToGregorian(u):d?ordinalToGregorian(u):u,[R,$]=objToTS(L,c,o),P=new DateTime({ts:R,zone:o,o:$,loc:w});return u.weekday&&b&&e.weekday!==P.weekday?DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${P.toISO()}`):P}static fromISO(e,r={}){const[o,a]=parseISODate(e);return parseDataToDateTime(o,a,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[o,a]=parseRFC2822Date(e);return parseDataToDateTime(o,a,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[o,a]=parseHTTPDate(e);return parseDataToDateTime(o,a,r,"HTTP",r)}static fromFormat(e,r,o={}){if(isUndefined$1(e)||isUndefined$1(r))throw new InvalidArgumentError("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:c=null}=o,u=Locale.fromOpts({locale:a,numberingSystem:c,defaultToEN:!0}),[d,p,g,b]=parseFromTokens(u,e,r);return b?DateTime.invalid(b):parseDataToDateTime(d,p,o,`format ${r}`,e,g)}static fromString(e,r,o={}){return DateTime.fromFormat(e,r,o)}static fromSQL(e,r={}){const[o,a]=parseSQL(e);return parseDataToDateTime(o,a,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");const o=e instanceof Invalid?e:new Invalid(e,r);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(o);return new DateTime({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const o=formatOptsToTokens(e,Locale.fromObject(r));return o?o.map(a=>a?a.val:null).join(""):null}static expandFormat(e,r={}){return expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(r)).map(a=>a.val).join("")}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?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.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 e=864e5,r=6e4,o=objToLocalTS(this.c),a=this.zone.offset(o-e),c=this.zone.offset(o+e),u=this.zone.offset(o-a*r),d=this.zone.offset(o-c*r);if(u===d)return[this];const p=o-u*r,g=o-d*r,b=tsToObj(p,u),x=tsToObj(g,d);return b.hour===x.hour&&b.minute===x.minute&&b.second===x.second&&b.millisecond===x.millisecond?[clone(this,{ts:p}),clone(this,{ts:g})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:o,calendar:a}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:o,outputCalendar:a}}toUTC(e=0,r={}){return this.setZone(FixedOffsetZone.instance(e),r)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:o=!1}={}){if(e=normalizeZone(e,Settings.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(r||o){const c=e.offset(this.ts),u=this.toObject();[a]=objToTS(u,c,e)}return clone(this,{ts:a,zone:e})}else return DateTime.invalid(unsupportedZone(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:o}={}){const a=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:o});return clone(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=normalizeObject(e,normalizeUnit),o=!isUndefined$1(r.weekYear)||!isUndefined$1(r.weekNumber)||!isUndefined$1(r.weekday),a=!isUndefined$1(r.ordinal),c=!isUndefined$1(r.year),u=!isUndefined$1(r.month)||!isUndefined$1(r.day),d=c||u,p=r.weekYear||r.weekNumber;if((d||a)&&p)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let g;o?g=weekToGregorian({...gregorianToWeek(this.c),...r}):isUndefined$1(r.ordinal)?(g={...this.toObject(),...r},isUndefined$1(r.day)&&(g.day=Math.min(daysInMonth(g.year,g.month),g.day))):g=ordinalToGregorian({...gregorianToOrdinal(this.c),...r});const[b,x]=objToTS(g,this.o,this.zone);return clone(this,{ts:b,o:x})}plus(e){if(!this.isValid)return this;const r=Duration.fromDurationLike(e);return clone(this,adjustTime(this,r))}minus(e){if(!this.isValid)return this;const r=Duration.fromDurationLike(e).negate();return clone(this,adjustTime(this,r))}startOf(e){if(!this.isValid)return this;const r={},o=Duration.normalizeUnit(e);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks"&&(r.weekday=1),o==="quarters"){const a=Math.ceil(this.month/3);r.month=(a-1)*3+1}return this.set(r)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,r={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):INVALID}toLocaleString(e=DATE_SHORT,r={}){return this.isValid?Formatter.create(this.loc.clone(r),e).formatDateTime(this):INVALID}toLocaleParts(e={}){return this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:o=!1,includeOffset:a=!0,extendedZone:c=!1}={}){if(!this.isValid)return null;const u=e==="extended";let d=toISODate(this,u);return d+="T",d+=toISOTime(this,u,r,o,a,c),d}toISODate({format:e="extended"}={}){return this.isValid?toISODate(this,e==="extended"):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:o=!0,includePrefix:a=!1,extendedZone:c=!1,format:u="extended"}={}){return this.isValid?(a?"T":"")+toISOTime(this,u==="extended",r,e,o,c):null}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:o=!0}={}){let a="HH:mm:ss.SSS";return(r||e)&&(o&&(a+=" "),r?a+="z":e&&(a+="ZZ")),toTechFormat(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():INVALID}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 r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",o={}){if(!this.isValid||!e.isValid)return Duration.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...o},c=maybeArray(r).map(Duration.normalizeUnit),u=e.valueOf()>this.valueOf(),d=u?this:e,p=u?e:this,g=diff(d,p,c,a);return u?g.negate():g}diffNow(e="milliseconds",r={}){return this.diff(DateTime.now(),e,r)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,r){if(!this.isValid)return!1;const o=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(r)<=o&&o<=a.endOf(r)}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 r=e.base||DateTime.fromObject({},{zone:this.zone}),o=e.padding?this<r?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],c=e.unit;return Array.isArray(e.unit)&&(a=e.unit,c=void 0),diffRelative(r,this.plus(o),{...e,numeric:"always",units:a,unit:c})}toRelativeCalendar(e={}){return this.isValid?diffRelative(e.base||DateTime.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(DateTime.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,o={}){const{locale:a=null,numberingSystem:c=null}=o,u=Locale.fromOpts({locale:a,numberingSystem:c,defaultToEN:!0});return explainFromTokens(u,e,r)}static fromStringExplain(e,r,o={}){return DateTime.fromFormatExplain(e,r,o)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}}function friendlyDateTime(t){if(DateTime.isDateTime(t))return t;if(t&&t.valueOf&&isNumber$3(t.valueOf()))return DateTime.fromJSDate(t);if(t&&typeof t=="object")return DateTime.fromObject(t);throw new InvalidArgumentError(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const useAuthStore=defineStore("userAuth",{state:()=>({token:{value:"",expiration:void 0},oms:"",isEmbedded:!1}),getters:{getToken:t=>t.token,getOms:t=>t.oms,getBaseUrl:t=>{let e=t.oms;const r=loginContext.getConfig();return e&&r.systemType==="MOQUI"?e.startsWith("http")?e.includes("/rest/s1")?e:`${e}/rest/s1/`:`https://${e}.hotwax.io/rest/s1/`:e?e.startsWith("http")?e.includes("/api")?e:`${e}/api/`:`https://${e}.hotwax.io/api/`:""},isAuthenticated:t=>{let e=!1;if(t.token.expiration){const r=DateTime.now().toMillis();e=t.token.expiration<r}return t.token.value&&!e}},persist:!0}),core="",normalize$1="",structure="",typography="",padding="",floatElements="",textAlignment="",textTransformation="",flexUtils="",display="",BUILD={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,formAssociated:!1,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,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1};let scopeId,contentRef,hostTagName,useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,renderingRef=null,queuePending=!1;const Build={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},getAssetPath=t=>{const e=new URL(t,plt.$resourcesUrl$);return e.origin!==win$2.location.origin?e.href:e.pathname},createTime=(t,e="")=>()=>{},SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}",XLINK_NS="http://www.w3.org/1999/xlink",EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=t=>t!=null,isComplexType=t=>(t=typeof t,t==="object"||t==="function");function queryNonceMetaTagContent(t){var e,r,o;return(o=(r=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&o!==void 0?o:void 0}const h=(t,e,...r)=>{let o=null,a=null,c=null,u=!1,d=!1;const p=[],g=x=>{for(let w=0;w<x.length;w++)o=x[w],Array.isArray(o)?g(o):o!=null&&typeof o!="boolean"&&((u=typeof t!="function"&&!isComplexType(o))&&(o=String(o)),u&&d?p[p.length-1].$text$+=o:p.push(u?newVNode(null,o):o),d=u)};if(g(r),e){e.key&&(a=e.key),e.name&&(c=e.name);{const x=e.className||e.class;x&&(e.class=typeof x!="object"?x:Object.keys(x).filter(w=>x[w]).join(" "))}}if(typeof t=="function")return t(e===null?{}:e,p,vdomFnUtils);const b=newVNode(t,null);return b.$attrs$=e,p.length>0&&(b.$children$=p),b.$key$=a,b.$name$=c,b},newVNode=(t,e)=>{const r={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r.$name$=null,r},Host={},isHost=t=>t&&t.$tag$===Host,vdomFnUtils={forEach:(t,e)=>t.map(convertToPublic).forEach(e),map:(t,e)=>t.map(convertToPublic).map(e).map(convertToPrivate)},convertToPublic=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),convertToPrivate=t=>{if(typeof t.vtag=="function"){const r=Object.assign({},t.vattrs);return t.vkey&&(r.key=t.vkey),t.vname&&(r.name=t.vname),h(t.vtag,r,...t.vchildren||[])}const e=newVNode(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},computeMode=t=>modeResolutionChain.map(e=>e(t)).find(e=>!!e),setMode=t=>modeResolutionChain.push(t),getMode=t=>getHostRef(t).$modeName$,parsePropertyValue=(t,e)=>t!=null&&!isComplexType(t)?e&4?t==="false"?!1:t===""||!!t:e&2?parseFloat(t):e&1?String(t):t:t,getElement=t=>t,createEvent=(t,e,r)=>{const o=getElement(t);return{emit:a=>emitEvent(o,e,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:a})}},emitEvent=(t,e,r)=>{const o=plt.ce(e,r);return t.dispatchEvent(o),o},rootAppliedStyles=new WeakMap,registerStyle=(t,e,r)=>{let o=styles.get(t);supportsConstructableStylesheets&&r?(o=o||new CSSStyleSheet,typeof o=="string"?o=e:o.replaceSync(e)):o=e,styles.set(t,o)},addStyle=(t,e,r)=>{var o;const a=getScopeId(e,r),c=styles.get(a);if(t=t.nodeType===11?t:doc$1,c)if(typeof c=="string"){t=t.head||t;let u=rootAppliedStyles.get(t),d;if(u||rootAppliedStyles.set(t,u=new Set),!u.has(a)){{d=doc$1.createElement("style"),d.innerHTML=c;const p=(o=plt.$nonce$)!==null&&o!==void 0?o:queryNonceMetaTagContent(doc$1);p!=null&&d.setAttribute("nonce",p),t.insertBefore(d,t.querySelector("link"))}e.$flags$&4&&(d.innerHTML+=SLOT_FB_CSS),u&&u.add(a)}}else t.adoptedStyleSheets.includes(c)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,c]);return a},attachStyles=t=>{const e=t.$cmpMeta$,r=t.$hostElement$,o=e.$flags$,a=createTime("attachStyles",e.$tagName$),c=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),e,t.$modeName$);o&10&&(r["s-sc"]=c,r.classList.add(c+"-h"),o&2&&r.classList.add(c+"-s")),a()},getScopeId=(t,e)=>"sc-"+(e&&t.$flags$&32?t.$tagName$+"-"+e:t.$tagName$),setAccessor=(t,e,r,o,a,c)=>{if(r!==o){let u=isMemberInElement(t,e),d=e.toLowerCase();if(e==="class"){const p=t.classList,g=parseClassList(r),b=parseClassList(o);p.remove(...g.filter(x=>x&&!b.includes(x))),p.add(...b.filter(x=>x&&!g.includes(x)))}else if(e==="style"){for(const p in r)(!o||o[p]==null)&&(p.includes("-")?t.style.removeProperty(p):t.style[p]="");for(const p in o)(!r||o[p]!==r[p])&&(p.includes("-")?t.style.setProperty(p,o[p]):t.style[p]=o[p])}else if(e!=="key")if(e==="ref")o&&o(t);else if(!t.__lookupSetter__(e)&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"?e=e.slice(3):isMemberInElement(win$2,d)?e=d.slice(2):e=d[2]+e.slice(3),r||o){const p=e.endsWith(CAPTURE_EVENT_SUFFIX);e=e.replace(CAPTURE_EVENT_REGEX,""),r&&plt.rel(t,e,r,p),o&&plt.ael(t,e,o,p)}}else{const p=isComplexType(o);if((u||p&&o!==null)&&!a)try{if(t.tagName.includes("-"))t[e]=o;else{const b=o??"";e==="list"?u=!1:(r==null||t[e]!=b)&&(t[e]=b)}}catch{}let g=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(e=d,g=!0),o==null||o===!1?(o!==!1||t.getAttribute(e)==="")&&(g?t.removeAttributeNS(XLINK_NS,e):t.removeAttribute(e)):(!u||c&4||a)&&!p&&(o=o===!0?"":o,g?t.setAttributeNS(XLINK_NS,e,o):t.setAttribute(e,o))}}},parseClassListRegex=/\s/,parseClassList=t=>t?t.split(parseClassListRegex):[],CAPTURE_EVENT_SUFFIX="Capture",CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$"),updateElement=(t,e,r,o)=>{const a=e.$elm$.nodeType===11&&e.$elm$.host?e.$elm$.host:e.$elm$,c=t&&t.$attrs$||EMPTY_OBJ,u=e.$attrs$||EMPTY_OBJ;for(o in c)o in u||setAccessor(a,o,c[o],void 0,r,e.$flags$);for(o in u)setAccessor(a,o,c[o],u[o],r,e.$flags$)},createElm=(t,e,r,o)=>{var a;const c=e.$children$[r];let u=0,d,p,g;if(useNativeShadowDom||(checkSlotRelocate=!0,c.$tag$==="slot"&&(scopeId&&o.classList.add(scopeId+"-s"),c.$flags$|=c.$children$?2:1)),c.$text$!==null)d=c.$elm$=doc$1.createTextNode(c.$text$);else if(c.$flags$&1)d=c.$elm$=doc$1.createTextNode("");else{if(isSvgMode||(isSvgMode=c.$tag$==="svg"),d=c.$elm$=doc$1.createElementNS(isSvgMode?SVG_NS:HTML_NS,c.$flags$&2?"slot-fb":c.$tag$),isSvgMode&&c.$tag$==="foreignObject"&&(isSvgMode=!1),updateElement(null,c,isSvgMode),isDef(scopeId)&&d["s-si"]!==scopeId&&d.classList.add(d["s-si"]=scopeId),c.$children$)for(u=0;u<c.$children$.length;++u)p=createElm(t,c,u,d),p&&d.appendChild(p);c.$tag$==="svg"?isSvgMode=!1:d.tagName==="foreignObject"&&(isSvgMode=!0)}return d["s-hn"]=hostTagName,c.$flags$&3&&(d["s-sr"]=!0,d["s-fs"]=(a=c.$attrs$)===null||a===void 0?void 0:a.slot,d["s-cr"]=contentRef,d["s-sn"]=c.$name$||"",g=t&&t.$children$&&t.$children$[r],g&&g.$tag$===c.$tag$&&t.$elm$&&putBackInOriginalLocation(t.$elm$,!1)),d},putBackInOriginalLocation=(t,e)=>{var r;plt.$flags$|=1;const o=t.childNodes;for(let a=o.length-1;a>=0;a--){const c=o[a];c["s-hn"]!==hostTagName&&c["s-ol"]&&(parentReferenceNode(c).insertBefore(c,referenceNode(c)),c["s-ol"].remove(),c["s-ol"]=void 0,c["s-sh"]=void 0,c.nodeType===1&&c.setAttribute("slot",(r=c["s-sn"])!==null&&r!==void 0?r:""),checkSlotRelocate=!0),e&&putBackInOriginalLocation(c,e)}plt.$flags$&=-2},addVnodes=(t,e,r,o,a,c)=>{let u=t["s-cr"]&&t["s-cr"].parentNode||t,d;for(u.shadowRoot&&u.tagName===hostTagName&&(u=u.shadowRoot);a<=c;++a)o[a]&&(d=createElm(null,r,a,t),d&&(o[a].$elm$=d,u.insertBefore(d,referenceNode(e))))},removeVnodes=(t,e,r)=>{for(let o=e;o<=r;++o){const a=t[o];if(a){const c=a.$elm$;nullifyVNodeRefs(a),c&&(checkSlotFallbackVisibility=!0,c["s-ol"]?c["s-ol"].remove():putBackInOriginalLocation(c,!0),c.remove())}}},updateChildren=(t,e,r,o,a=!1)=>{let c=0,u=0,d=0,p=0,g=e.length-1,b=e[0],x=e[g],w=o.length-1,y=o[0],I=o[w],k,T;for(;c<=g&&u<=w;)if(b==null)b=e[++c];else if(x==null)x=e[--g];else if(y==null)y=o[++u];else if(I==null)I=o[--w];else if(isSameVnode(b,y,a))patch(b,y,a),b=e[++c],y=o[++u];else if(isSameVnode(x,I,a))patch(x,I,a),x=e[--g],I=o[--w];else if(isSameVnode(b,I,a))(b.$tag$==="slot"||I.$tag$==="slot")&&putBackInOriginalLocation(b.$elm$.parentNode,!1),patch(b,I,a),t.insertBefore(b.$elm$,x.$elm$.nextSibling),b=e[++c],I=o[--w];else if(isSameVnode(x,y,a))(b.$tag$==="slot"||I.$tag$==="slot")&&putBackInOriginalLocation(x.$elm$.parentNode,!1),patch(x,y,a),t.insertBefore(x.$elm$,b.$elm$),x=e[--g],y=o[++u];else{for(d=-1,p=c;p<=g;++p)if(e[p]&&e[p].$key$!==null&&e[p].$key$===y.$key$){d=p;break}d>=0?(T=e[d],T.$tag$!==y.$tag$?k=createElm(e&&e[u],r,d,t):(patch(T,y,a),e[d]=void 0,k=T.$elm$),y=o[++u]):(k=createElm(e&&e[u],r,u,t),y=o[++u]),k&&parentReferenceNode(b.$elm$).insertBefore(k,referenceNode(b.$elm$))}c>g?addVnodes(t,o[w+1]==null?null:o[w+1].$elm$,r,o,u,w):u>w&&removeVnodes(e,c,g)},isSameVnode=(t,e,r=!1)=>t.$tag$===e.$tag$?t.$tag$==="slot"?t.$name$===e.$name$:r?!0:t.$key$===e.$key$:!1,referenceNode=t=>t&&t["s-ol"]||t,parentReferenceNode=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,patch=(t,e,r=!1)=>{const o=e.$elm$=t.$elm$,a=t.$children$,c=e.$children$,u=e.$tag$,d=e.$text$;let p;d===null?(isSvgMode=u==="svg"?!0:u==="foreignObject"?!1:isSvgMode,u==="slot"||updateElement(t,e,isSvgMode),a!==null&&c!==null?updateChildren(o,a,e,c,r):c!==null?(t.$text$!==null&&(o.textContent=""),addVnodes(o,null,e,c,0,c.length-1)):a!==null&&removeVnodes(a,0,a.length-1),isSvgMode&&u==="svg"&&(isSvgMode=!1)):(p=o["s-cr"])?p.parentNode.textContent=d:t.$text$!==d&&(o.data=d)},updateFallbackSlotVisibility=t=>{const e=t.childNodes;for(const r of e)if(r.nodeType===1){if(r["s-sr"]){const o=r["s-sn"];r.hidden=!1;for(const a of e)if(a!==r){if(a["s-hn"]!==r["s-hn"]||o!==""){if(a.nodeType===1&&(o===a.getAttribute("slot")||o===a["s-sn"])){r.hidden=!0;break}}else if(a.nodeType===1||a.nodeType===3&&a.textContent.trim()!==""){r.hidden=!0;break}}}updateFallbackSlotVisibility(r)}},relocateNodes=[],markSlotContentForRelocation=t=>{let e,r,o;for(const a of t.childNodes){if(a["s-sr"]&&(e=a["s-cr"])&&e.parentNode){r=e.parentNode.childNodes;const c=a["s-sn"];for(o=r.length-1;o>=0;o--)if(e=r[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==a["s-hn"]&&!BUILD.experimentalSlotFixes)if(isNodeLocatedInSlot(e,c)){let u=relocateNodes.find(d=>d.$nodeToRelocate$===e);checkSlotFallbackVisibility=!0,e["s-sn"]=e["s-sn"]||c,u?(u.$nodeToRelocate$["s-sh"]=a["s-hn"],u.$slotRefNode$=a):(e["s-sh"]=a["s-hn"],relocateNodes.push({$slotRefNode$:a,$nodeToRelocate$:e})),e["s-sr"]&&relocateNodes.map(d=>{isNodeLocatedInSlot(d.$nodeToRelocate$,e["s-sn"])&&(u=relocateNodes.find(p=>p.$nodeToRelocate$===e),u&&!d.$slotRefNode$&&(d.$slotRefNode$=u.$slotRefNode$))})}else relocateNodes.some(u=>u.$nodeToRelocate$===e)||relocateNodes.push({$nodeToRelocate$:e})}a.nodeType===1&&markSlotContentForRelocation(a)}},isNodeLocatedInSlot=(t,e)=>t.nodeType===1?t.getAttribute("slot")===null&&e===""||t.getAttribute("slot")===e:t["s-sn"]===e?!0:e==="",nullifyVNodeRefs=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(nullifyVNodeRefs)},renderVdom=(t,e,r=!1)=>{var o,a,c,u;const d=t.$hostElement$,p=t.$cmpMeta$,g=t.$vnode$||newVNode(null,null),b=isHost(e)?e:h(null,null,e);if(hostTagName=d.tagName,p.$attrsToReflect$&&(b.$attrs$=b.$attrs$||{},p.$attrsToReflect$.map(([x,w])=>b.$attrs$[w]=d[x])),r&&b.$attrs$)for(const x of Object.keys(b.$attrs$))d.hasAttribute(x)&&!["key","ref","style","class"].includes(x)&&(b.$attrs$[x]=d[x]);b.$tag$=null,b.$flags$|=4,t.$vnode$=b,b.$elm$=g.$elm$=d.shadowRoot||d,scopeId=d["s-sc"],contentRef=d["s-cr"],useNativeShadowDom=(p.$flags$&1)!==0,checkSlotFallbackVisibility=!1,patch(g,b,r);{if(plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation(b.$elm$);for(const x of relocateNodes){const w=x.$nodeToRelocate$;if(!w["s-ol"]){const y=doc$1.createTextNode("");y["s-nr"]=w,w.parentNode.insertBefore(w["s-ol"]=y,w)}}for(const x of relocateNodes){const w=x.$nodeToRelocate$,y=x.$slotRefNode$;if(y){const I=y.parentNode;let k=y.nextSibling;{let T=(o=w["s-ol"])===null||o===void 0?void 0:o.previousSibling;for(;T;){let E=(a=T["s-nr"])!==null&&a!==void 0?a:null;if(E&&E["s-sn"]===w["s-sn"]&&I===E.parentNode&&(E=E.nextSibling,!E||!E["s-nr"])){k=E;break}T=T.previousSibling}}(!k&&I!==w.parentNode||w.nextSibling!==k)&&w!==k&&(!w["s-hn"]&&w["s-ol"]&&(w["s-hn"]=w["s-ol"].parentNode.nodeName),I.insertBefore(w,k),w.nodeType===1&&(w.hidden=(c=w["s-ih"])!==null&&c!==void 0?c:!1))}else w.nodeType===1&&(r&&(w["s-ih"]=(u=w.hidden)!==null&&u!==void 0?u:!1),w.hidden=!0)}}checkSlotFallbackVisibility&&updateFallbackSlotVisibility(b.$elm$),plt.$flags$&=-2,relocateNodes.length=0}},attachToAncestor=(t,e)=>{},scheduleUpdate=(t,e)=>(t.$flags$|=16,attachToAncestor(t,t.$ancestorComponent$),writeTask(()=>dispatchHooks(t,e))),dispatchHooks=(t,e)=>{const r=t.$hostElement$,o=createTime("scheduleUpdate",t.$cmpMeta$.$tagName$),a=r;let c;return e?c=safeCall$1(a,"componentWillLoad"):c=safeCall$1(a,"componentWillUpdate"),c=enqueue(c,()=>safeCall$1(a,"componentWillRender")),o(),enqueue(c,()=>updateComponent(t,a,e))},enqueue=(t,e)=>isPromisey(t)?t.then(e):e(),isPromisey=t=>t instanceof Promise||t&&t.then&&typeof t.then=="function",updateComponent=async(t,e,r)=>{const o=t.$hostElement$,a=createTime("update",t.$cmpMeta$.$tagName$);o["s-rc"],r&&attachStyles(t);const c=createTime("render",t.$cmpMeta$.$tagName$);callRender(t,e,o,r),c(),a(),postUpdateComponent(t)},callRender=(t,e,r,o)=>{try{renderingRef=e,e=e.render&&e.render(),t.$flags$&=-17,t.$flags$|=2,(BUILD.hasRenderFn||BUILD.reflect)&&(BUILD.vdomRender||BUILD.reflect)&&(BUILD.hydrateServerSide||renderVdom(t,e,o))}catch(p){consoleError(p,t.$hostElement$)}return renderingRef=null,null},postUpdateComponent=t=>{const e=t.$cmpMeta$.$tagName$,r=t.$hostElement$,o=createTime("postUpdate",e),a=r;t.$ancestorComponent$,safeCall$1(a,"componentDidRender"),t.$flags$&64?(safeCall$1(a,"componentDidUpdate"),o()):(t.$flags$|=64,safeCall$1(a,"componentDidLoad"),o())},forceUpdate=t=>{{const e=getHostRef(t),r=e.$hostElement$.isConnected;return r&&(e.$flags$&18)===2&&scheduleUpdate(e,!1),r}},safeCall$1=(t,e,r)=>{if(t&&t[e])try{return t[e](r)}catch(o){consoleError(o)}},getValue=(t,e)=>getHostRef(t).$instanceValues$.get(e),setValue=(t,e,r,o)=>{const a=getHostRef(t),c=t,u=a.$instanceValues$.get(e),d=a.$flags$,p=c;r=parsePropertyValue(r,o.$members$[e][0]);const g=Number.isNaN(u)&&Number.isNaN(r);if(r!==u&&!g){a.$instanceValues$.set(e,r);{if(o.$watchers$&&d&128){const x=o.$watchers$[e];x&&x.map(w=>{try{p[w](r,u,e)}catch(y){consoleError(y,c)}})}if((d&18)===2){if(p.componentShouldUpdate&&p.componentShouldUpdate(r,u,e)===!1)return;scheduleUpdate(a,!1)}}}},proxyComponent=(t,e,r)=>{var o;const a=t.prototype;if(e.$members$){t.watchers&&(e.$watchers$=t.watchers);const c=Object.entries(e.$members$);c.map(([u,[d]])=>{(d&31||d&32)&&Object.defineProperty(a,u,{get(){return getValue(this,u)},set(p){setValue(this,u,p,e)},configurable:!0,enumerable:!0})});{const u=new Map;a.attributeChangedCallback=function(d,p,g){plt.jmp(()=>{var b;const x=u.get(d);if(this.hasOwnProperty(x))g=this[x],delete this[x];else{if(a.hasOwnProperty(x)&&typeof this[x]=="number"&&this[x]==g)return;if(x==null){const w=getHostRef(this),y=w==null?void 0:w.$flags$;if(y&&!(y&8)&&y&128&&g!==p){const k=this,T=(b=e.$watchers$)===null||b===void 0?void 0:b[d];T==null||T.forEach(E=>{k[E]!=null&&k[E].call(k,g,p,d)})}return}}this[x]=g===null&&typeof this[x]=="boolean"?!1:g})},t.observedAttributes=Array.from(new Set([...Object.keys((o=e.$watchers$)!==null&&o!==void 0?o:{}),...c.filter(([d,p])=>p[0]&15).map(([d,p])=>{var g;const b=p[1]||d;return u.set(b,d),p[0]&512&&((g=e.$attrsToReflect$)===null||g===void 0||g.push([d,b])),b})]))}}return t},initializeComponent=async(t,e,r,o)=>{let a;if(!(e.$flags$&32)&&(e.$flags$|=32,a=t.constructor,customElements.whenDefined(r.$tagName$).then(()=>e.$flags$|=128),a.style)){let u=a.style;typeof u!="string"&&(u=u[e.$modeName$=computeMode(t)]);const d=getScopeId(r,e.$modeName$);if(!styles.has(d)){const p=createTime("registerStyles",r.$tagName$);registerStyle(d,u,!!(r.$flags$&1)),p()}}e.$ancestorComponent$,(()=>scheduleUpdate(e,!0))()},fireConnectedCallback=t=>{},connectedCallback=t=>{if(!(plt.$flags$&1)){const e=getHostRef(t),r=e.$cmpMeta$,o=createTime("connectedCallback",r.$tagName$);e.$flags$&1?(addHostEventListeners(t,e,r.$listeners$),e!=null&&e.$lazyInstance$?fireConnectedCallback(e.$lazyInstance$):e!=null&&e.$onReadyPromise$&&e.$onReadyPromise$.then(()=>fireConnectedCallback(e.$lazyInstance$))):(e.$flags$|=1,r.$flags$&12&&setContentReference(t),r.$members$&&Object.entries(r.$members$).map(([a,[c]])=>{if(c&31&&t.hasOwnProperty(a)){const u=t[a];delete t[a],t[a]=u}}),initializeComponent(t,e,r)),o()}},setContentReference=t=>{const e=t["s-cr"]=doc$1.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},disconnectedCallback=async t=>{if(!(plt.$flags$&1)){const e=getHostRef(t);e.$rmListeners$&&(e.$rmListeners$.map(r=>r()),e.$rmListeners$=void 0)}},proxyCustomElement=(t,e)=>{const r={$flags$:e[0],$tagName$:e[1]};r.$members$=e[2],r.$listeners$=e[3],r.$watchers$=t.$watchers$,r.$attrsToReflect$=[];const o=t.prototype.connectedCallback,a=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__registerHost(){registerHost(this,r)},connectedCallback(){connectedCallback(this),o&&o.call(this)},disconnectedCallback(){disconnectedCallback(this),a&&a.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(r.$flags$&16)})}}),t.is=r.$tagName$,proxyComponent(t,r)},addHostEventListeners=(t,e,r,o)=>{r&&r.map(([a,c,u])=>{const d=getHostListenerTarget(t,a),p=hostListenerProxy(e,u),g=hostListenerOpts(a);plt.ael(d,c,p,g),(e.$rmListeners$=e.$rmListeners$||[]).push(()=>plt.rel(d,c,p,g))})},hostListenerProxy=(t,e)=>r=>{try{BUILD.lazyLoad||t.$hostElement$[e](r)}catch(o){consoleError(o)}},getHostListenerTarget=(t,e)=>e&4?doc$1:e&8?win$2:e&16?doc$1.body:t,hostListenerOpts=t=>supportsListenerOptions?{passive:(t&1)!==0,capture:(t&2)!==0}:(t&2)!==0,hostRefs=new WeakMap,getHostRef=t=>hostRefs.get(t),registerHost=(t,e)=>{const r={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return addHostEventListeners(t,r,e.$listeners$),hostRefs.set(t,r)},isMemberInElement=(t,e)=>e in t,consoleError=(t,e)=>(0,console.error)(t,e),styles=new Map,modeResolutionChain=[],win$2=typeof window<"u"?window:{},doc$1=win$2.document||{head:{}},H=win$2.HTMLElement||class{},plt={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,r,o)=>t.addEventListener(e,r,o),rel:(t,e,r,o)=>t.removeEventListener(e,r,o),ce:(t,e)=>new CustomEvent(t,e)},setPlatformHelpers=t=>{Object.assign(plt,t)},supportsListenerOptions=(()=>{let t=!1;try{doc$1.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),promiseResolve=t=>Promise.resolve(t),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),queueDomReads=[],queueDomWrites=[],queueTask=(t,e)=>r=>{t.push(r),queuePending||(queuePending=!0,e&&plt.$flags$&4?nextTick(flush):plt.raf(flush))},consume=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(r){consoleError(r)}t.length=0},flush=()=>{consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush)},nextTick=t=>promiseResolve().then(t),readTask=queueTask(queueDomReads,!1),writeTask=queueTask(queueDomWrites,!0);/*!
|
|
13
13
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
14
14
|
*/const componentOnReady=(t,e)=>{t.componentOnReady?t.componentOnReady().then(r=>e(r)):raf(()=>e(t))},hasLazyBuild=t=>t.componentOnReady!==void 0,inheritAttributes$2=(t,e=[])=>{const r={};return e.forEach(o=>{t.hasAttribute(o)&&(t.getAttribute(o)!==null&&(r[o]=t.getAttribute(o)),t.removeAttribute(o))}),r},ariaAttributes=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],inheritAriaAttributes=(t,e)=>{let r=ariaAttributes;return e&&e.length>0&&(r=r.filter(o=>!e.includes(o))),inheritAttributes$2(t,r)},addEventListener$1=(t,e,r,o)=>{var a;if(typeof window<"u"){const c=window,u=(a=c==null?void 0:c.Ionic)===null||a===void 0?void 0:a.config;if(u){const d=u.get("_ael");if(d)return d(t,e,r,o);if(u._ael)return u._ael(t,e,r,o)}}return t.addEventListener(e,r,o)},removeEventListener=(t,e,r,o)=>{var a;if(typeof window<"u"){const c=window,u=(a=c==null?void 0:c.Ionic)===null||a===void 0?void 0:a.config;if(u){const d=u.get("_rel");if(d)return d(t,e,r,o);if(u._rel)return u._rel(t,e,r,o)}}return t.removeEventListener(e,r,o)},getElementRoot=(t,e=t)=>t.shadowRoot||e,raf=t=>typeof __zone_symbol__requestAnimationFrame=="function"?__zone_symbol__requestAnimationFrame(t):typeof requestAnimationFrame=="function"?requestAnimationFrame(t):setTimeout(t),hasShadowDom=t=>!!t.shadowRoot&&!!t.attachShadow,findItemLabel=t=>{const e=t.closest("ion-item");return e?e.querySelector("ion-label"):null},focusElement=t=>{if(t.focus(),t.classList.contains("ion-focusable")){const e=t.closest("ion-app");e&&e.setFocus([t])}},getAriaLabel=(t,e)=>{let r;const o=t.getAttribute("aria-labelledby"),a=t.id;let c=o!==null&&o.trim()!==""?o:e+"-lbl",u=o!==null&&o.trim()!==""?document.getElementById(o):findItemLabel(t);return u?(o===null&&(u.id=c),r=u.textContent,u.setAttribute("aria-hidden","true")):a.trim()!==""&&(u=document.querySelector(`label[for="${a}"]`),u&&(u.id!==""?c=u.id:u.id=c=`${a}-lbl`,r=u.textContent)),{label:u,labelId:c,labelText:r}},renderHiddenInput=(t,e,r,o,a)=>{if(t||hasShadowDom(e)){let c=e.querySelector("input.aux-input");c||(c=e.ownerDocument.createElement("input"),c.type="hidden",c.classList.add("aux-input"),e.appendChild(c)),c.disabled=a,c.name=r,c.value=o||""}},clamp=(t,e,r)=>Math.max(t,Math.min(e,r)),assert=(t,e)=>{if(!t){const r="ASSERT: "+e;console.error(r);debugger;throw new Error(r)}},now$1=t=>t.timeStamp||Date.now(),pointerCoord=t=>{if(t){const e=t.changedTouches;if(e&&e.length>0){const r=e[0];return{x:r.clientX,y:r.clientY}}if(t.pageX!==void 0)return{x:t.pageX,y:t.pageY}}return{x:0,y:0}},debounceEvent=(t,e)=>{const r=t._original||t;return{_original:t,emit:debounce(r.emit.bind(r),e)}},debounce=(t,e=0)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(t,e,...o)}},shallowEqualStringMap=(t,e)=>{if(t??(t={}),e??(e={}),t===e)return!0;const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(const o of r)if(!(o in e)||t[o]!==e[o])return!1;return!0};/*!
|
|
15
15
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
@@ -89,7 +89,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
89
89
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
90
90
|
*/let lastOverlayIndex=0,lastId=0;const activeAnimations=new WeakMap,createController$1=t=>({create(e){return createOverlay(t,e)},dismiss(e,r,o){return dismissOverlay(document,e,r,t,o)},async getTop(){return getPresentedOverlay(document,t)}}),alertController=createController$1("ion-alert"),actionSheetController=createController$1("ion-action-sheet"),popoverController=createController$1("ion-popover"),toastController$1=createController$1("ion-toast"),prepareOverlay=t=>{typeof document<"u"&&connectListeners(document);const e=lastOverlayIndex++;t.overlayIndex=e},setOverlayId=t=>(t.hasAttribute("id")||(t.id=`ion-overlay-${++lastId}`),t.id),createOverlay=(t,e)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(t).then(()=>{const r=document.createElement(t);return r.classList.add("overlay-hidden"),Object.assign(r,Object.assign(Object.assign({},e),{hasController:!0})),getAppRoot(document).appendChild(r),new Promise(o=>componentOnReady(r,o))}):Promise.resolve(),focusableQueryString='[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])',focusFirstDescendant=(t,e)=>{let r=t.querySelector(focusableQueryString);const o=r==null?void 0:r.shadowRoot;o&&(r=o.querySelector(focusableQueryString)||r),r?focusElement(r):e.focus()},isOverlayHidden=t=>t.classList.contains("overlay-hidden"),focusLastDescendant=(t,e)=>{const r=Array.from(t.querySelectorAll(focusableQueryString));let o=r.length>0?r[r.length-1]:null;const a=o==null?void 0:o.shadowRoot;a&&(o=a.querySelector(focusableQueryString)||o),o?o.focus():e.focus()},trapKeyboardFocus=(t,e)=>{const r=getPresentedOverlay(e,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),o=t.target;if(!r||!o||r.classList.contains("ion-disable-focus-trap"))return;const a=()=>{if(r===o)r.lastFocus=void 0;else{const u=getElementRoot(r);if(!u.contains(o))return;const d=u.querySelector(".ion-overlay-wrapper");if(!d)return;if(d.contains(o)||o===u.querySelector("ion-backdrop"))r.lastFocus=o;else{const p=r.lastFocus;focusFirstDescendant(d,r),p===e.activeElement&&focusLastDescendant(d,r),r.lastFocus=e.activeElement}}},c=()=>{if(r.contains(o))r.lastFocus=o;else{const u=r.lastFocus;focusFirstDescendant(r,r),u===e.activeElement&&focusLastDescendant(r,r),r.lastFocus=e.activeElement}};r.shadowRoot?c():a()},connectListeners=t=>{lastOverlayIndex===0&&(lastOverlayIndex=1,t.addEventListener("focus",e=>{trapKeyboardFocus(e,t)},!0),t.addEventListener("ionBackButton",e=>{const r=getPresentedOverlay(t);r!=null&&r.backdropDismiss&&e.detail.register(OVERLAY_BACK_BUTTON_PRIORITY,()=>r.dismiss(void 0,BACKDROP))}),t.addEventListener("keydown",e=>{if(e.key==="Escape"){const r=getPresentedOverlay(t);r!=null&&r.backdropDismiss&&r.dismiss(void 0,BACKDROP)}}))},dismissOverlay=(t,e,r,o,a)=>{const c=getPresentedOverlay(t,o,a);return c?c.dismiss(e,r):Promise.reject("overlay does not exist")},getOverlays=(t,e)=>(e===void 0&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter(r=>r.overlayIndex>0)),getPresentedOverlays=(t,e)=>getOverlays(t,e).filter(r=>!isOverlayHidden(r)),getPresentedOverlay=(t,e,r)=>{const o=getPresentedOverlays(t,e);return r===void 0?o[o.length-1]:o.find(a=>a.id===r)},setRootAriaHidden=(t=!1)=>{const r=getAppRoot(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");r&&(t?r.setAttribute("aria-hidden","true"):r.removeAttribute("aria-hidden"))},present=async(t,e,r,o,a)=>{var c,u;if(t.presented)return;setRootAriaHidden(!0),t.presented=!0,t.willPresent.emit(),(c=t.willPresentShorthand)===null||c===void 0||c.emit();const d=getIonMode$2(t),p=t.enterAnimation?t.enterAnimation:config$1.get(e,d==="ios"?r:o);await overlayAnimation(t,p,t.el,a)&&(t.didPresent.emit(),(u=t.didPresentShorthand)===null||u===void 0||u.emit()),t.el.tagName!=="ION-TOAST"&&focusPreviousElementOnDismiss(t.el),t.keyboardClose&&(document.activeElement===null||!t.el.contains(document.activeElement))&&t.el.focus()},focusPreviousElementOnDismiss=async t=>{let e=document.activeElement;if(!e)return;const r=e==null?void 0:e.shadowRoot;r&&(e=r.querySelector(focusableQueryString)||e),await t.onDidDismiss(),e.focus()},dismiss=async(t,e,r,o,a,c,u)=>{var d,p;if(!t.presented)return!1;doc!==void 0&&getPresentedOverlays(doc).length===1&&setRootAriaHidden(!1),t.presented=!1;try{t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:e,role:r}),(d=t.willDismissShorthand)===null||d===void 0||d.emit({data:e,role:r});const g=getIonMode$2(t),b=t.leaveAnimation?t.leaveAnimation:config$1.get(o,g==="ios"?a:c);r!==GESTURE&&await overlayAnimation(t,b,t.el,u),t.didDismiss.emit({data:e,role:r}),(p=t.didDismissShorthand)===null||p===void 0||p.emit({data:e,role:r}),activeAnimations.delete(t),t.el.classList.add("overlay-hidden"),t.el.style.removeProperty("pointer-events"),t.el.lastFocus!==void 0&&(t.el.lastFocus=void 0)}catch(g){console.error(g)}return t.el.remove(),!0},getAppRoot=t=>t.querySelector("ion-app")||t.body,overlayAnimation=async(t,e,r,o)=>{r.classList.remove("overlay-hidden");const a=t.el,c=e(a,o);(!t.animated||!config$1.getBoolean("animated",!0))&&c.duration(0),t.keyboardClose&&c.beforeAddWrite(()=>{const d=r.ownerDocument.activeElement;d!=null&&d.matches("input,ion-input, ion-textarea")&&d.blur()});const u=activeAnimations.get(t)||[];return activeAnimations.set(t,[...u,c]),await c.play(),!0},eventMethod=(t,e)=>{let r;const o=new Promise(a=>r=a);return onceEvent(t,e,a=>{r(a.detail)}),o},onceEvent=(t,e,r)=>{const o=a=>{removeEventListener(t,e,o),r(a)};addEventListener$1(t,e,o)},isCancel$2=t=>t==="cancel"||t===BACKDROP,defaultGate=t=>t(),safeCall=(t,e)=>{if(typeof t=="function")return config$1.get("_zoneGate",defaultGate)(()=>{try{return t(e)}catch(o){throw o}})},BACKDROP="backdrop",GESTURE="gesture",OVERLAY_GESTURE_PRIORITY=39,createDelegateController=t=>{let e=!1,r;const o=CoreDelegate(),a=(d=!1)=>{if(r&&!d)return{delegate:r,inline:e};const{el:p,hasController:g,delegate:b}=t;return e=p.parentNode!==null&&!g,r=e?b||o:b,{inline:e,delegate:r}};return{attachViewToDom:async d=>{const{delegate:p}=a(!0);if(p)return await p.attachViewToDom(t.el,d);const{hasController:g}=t;if(g&&d!==void 0)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:d}=a();d&&t.el!==void 0&&d.removeViewFromDom(t.el.parentElement,t.el)}}},createTriggerController=()=>{let t;const e=()=>{t&&(t(),t=void 0)};return{addClickListener:(o,a)=>{e();const c=a!==void 0?document.getElementById(a):null;if(!c){printIonWarning(`A trigger element with the ID "${a}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,o);return}t=((d,p)=>{const g=()=>{p.present()};return d.addEventListener("click",g),()=>{d.removeEventListener("click",g)}})(c,o)},removeClickListener:e}};/*!
|
|
91
91
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
92
|
-
*/const LIFECYCLE_WILL_ENTER="ionViewWillEnter",LIFECYCLE_DID_ENTER="ionViewDidEnter",LIFECYCLE_WILL_LEAVE="ionViewWillLeave",LIFECYCLE_DID_LEAVE="ionViewDidLeave",LIFECYCLE_WILL_UNLOAD="ionViewWillUnload",iosTransitionAnimation=()=>Promise.resolve().then(()=>require("./ios.transition-
|
|
92
|
+
*/const LIFECYCLE_WILL_ENTER="ionViewWillEnter",LIFECYCLE_DID_ENTER="ionViewDidEnter",LIFECYCLE_WILL_LEAVE="ionViewWillLeave",LIFECYCLE_DID_LEAVE="ionViewDidLeave",LIFECYCLE_WILL_UNLOAD="ionViewWillUnload",iosTransitionAnimation=()=>Promise.resolve().then(()=>require("./ios.transition-2035df9a.cjs")),mdTransitionAnimation=()=>Promise.resolve().then(()=>require("./md.transition-bfdac154.cjs")),transition=t=>new Promise((e,r)=>{writeTask(()=>{beforeTransition(t),runTransition(t).then(o=>{o.animation&&o.animation.destroy(),afterTransition(t),e(o)},o=>{afterTransition(t),r(o)})})}),beforeTransition=t=>{const e=t.enteringEl,r=t.leavingEl;setZIndex(e,r,t.direction),t.showGoBack?e.classList.add("can-go-back"):e.classList.remove("can-go-back"),setPageHidden(e,!1),e.style.setProperty("pointer-events","none"),r&&(setPageHidden(r,!1),r.style.setProperty("pointer-events","none"))},runTransition=async t=>{const e=await getAnimationBuilder(t);return e&&Build.isBrowser?animation(e,t):noAnimation(t)},afterTransition=t=>{const e=t.enteringEl,r=t.leavingEl;e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events"),r!==void 0&&(r.classList.remove("ion-page-invisible"),r.style.removeProperty("pointer-events"))},getAnimationBuilder=async t=>!t.leavingEl||!t.animated||t.duration===0?void 0:t.animationBuilder?t.animationBuilder:t.mode==="ios"?(await iosTransitionAnimation()).iosTransitionAnimation:(await mdTransitionAnimation()).mdTransitionAnimation,animation=async(t,e)=>{await waitForReady(e,!0);const r=t(e.baseEl,e);fireWillEvents(e.enteringEl,e.leavingEl);const o=await playTransition(r,e);return e.progressCallback&&e.progressCallback(void 0),o&&fireDidEvents(e.enteringEl,e.leavingEl),{hasCompleted:o,animation:r}},noAnimation=async t=>{const e=t.enteringEl,r=t.leavingEl;return await waitForReady(t,!1),fireWillEvents(e,r),fireDidEvents(e,r),{hasCompleted:!0}},waitForReady=async(t,e)=>{(t.deepWait!==void 0?t.deepWait:e)&&await Promise.all([deepReady(t.enteringEl),deepReady(t.leavingEl)]),await notifyViewReady(t.viewIsReady,t.enteringEl)},notifyViewReady=async(t,e)=>{t&&await t(e)},playTransition=(t,e)=>{const r=e.progressCallback,o=new Promise(a=>{t.onFinish(c=>a(c===1))});return r?(t.progressStart(!0),r(t)):t.play(),o},fireWillEvents=(t,e)=>{lifecycle(e,LIFECYCLE_WILL_LEAVE),lifecycle(t,LIFECYCLE_WILL_ENTER)},fireDidEvents=(t,e)=>{lifecycle(t,LIFECYCLE_DID_ENTER),lifecycle(e,LIFECYCLE_DID_LEAVE)},lifecycle=(t,e)=>{if(t){const r=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(r)}},waitForMount=()=>new Promise(t=>raf(()=>raf(()=>t()))),deepReady=async t=>{const e=t;if(e){if(e.componentOnReady!=null){if(await e.componentOnReady()!=null)return}else if(e.__registerHost!=null){await new Promise(o=>raf(o));return}await Promise.all(Array.from(e.children).map(deepReady))}},setPageHidden=(t,e)=>{e?(t.setAttribute("aria-hidden","true"),t.classList.add("ion-page-hidden")):(t.hidden=!1,t.removeAttribute("aria-hidden"),t.classList.remove("ion-page-hidden"))},setZIndex=(t,e,r)=>{t!==void 0&&(t.style.zIndex=r==="back"?"99":"101"),e!==void 0&&(e.style.zIndex="100")},getIonPageElement=t=>{if(t.classList.contains("ion-page"))return t;const e=t.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");return e||t};/*!
|
|
93
93
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
94
94
|
*/let animationPrefix;const processKeyframes=t=>(t.forEach(e=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];if(r==="easing"){const a="animation-timing-function";e[a]=o,delete e[r]}else{const a=convertCamelCaseToHypen(r);a!==r&&(e[a]=o,delete e[r])}}}),t),convertCamelCaseToHypen=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),getAnimationPrefix=t=>{if(animationPrefix===void 0){const e=t.style.animationName!==void 0,r=t.style.webkitAnimationName!==void 0;animationPrefix=!e&&r?"-webkit-":""}return animationPrefix},setStyleProperty=(t,e,r)=>{const o=e.startsWith("animation")?getAnimationPrefix(t):"";t.style.setProperty(o+e,r)},removeStyleProperty=(t,e)=>{const r=e.startsWith("animation")?getAnimationPrefix(t):"";t.style.removeProperty(r+e)},animationEnd=(t,e)=>{let r;const o={passive:!0},a=()=>{r&&r()},c=u=>{t===u.target&&(a(),e(u))};return t&&(t.addEventListener("webkitAnimationEnd",c,o),t.addEventListener("animationend",c,o),r=()=>{t.removeEventListener("webkitAnimationEnd",c,o),t.removeEventListener("animationend",c,o)}),a},generateKeyframeRules=(t=[])=>t.map(e=>{const r=e.offset,o=[];for(const a in e)e.hasOwnProperty(a)&&a!=="offset"&&o.push(`${a}: ${e[a]};`);return`${r*100}% { ${o.join(" ")} }`}).join(" "),keyframeIds=[],generateKeyframeName=t=>{let e=keyframeIds.indexOf(t);return e<0&&(e=keyframeIds.push(t)-1),`ion-animation-${e}`},getStyleContainer=t=>{const e=t.getRootNode!==void 0?t.getRootNode():t;return e.head||e},createKeyframeStylesheet=(t,e,r)=>{var o;const a=getStyleContainer(r),c=getAnimationPrefix(r),u=a.querySelector("#"+t);if(u)return u;const d=((o=r.ownerDocument)!==null&&o!==void 0?o:document).createElement("style");return d.id=t,d.textContent=`@${c}keyframes ${t} { ${e} } @${c}keyframes ${t}-alt { ${e} }`,a.appendChild(d),d},addClassToArray=(t=[],e)=>{if(e!==void 0){const r=Array.isArray(e)?e:[e];return[...t,...r]}return t},createAnimation=t=>{let e,r,o,a,c,u,d=[],p=[],g=[],b=!1,x,w={},y=[],I=[],k={},T=0,E=!1,O=!1,A,L,R,$,P=!0,z=!1,W=!0,D,S,F=!1;const U=t,M=[],V=[],G=[],Q=[],fe=[],te=[],de=[],me=[],Me=[],ce=[],oe=[],be=typeof AnimationEffect=="function"||win!==void 0&&typeof win.AnimationEffect=="function",Te=typeof Element=="function"&&typeof Element.prototype.animate=="function"&&be,Ae=100,Be=()=>oe,Xe=ae=>(fe.forEach(_e=>{_e.destroy(ae)}),He(ae),Q.length=0,fe.length=0,d.length=0,Ce(),b=!1,W=!0,S),He=ae=>{Le(),ae&&qe()},Ke=()=>{E=!1,O=!1,W=!0,L=void 0,R=void 0,$=void 0,T=0,z=!1,P=!0,F=!1},ot=()=>T!==0&&!F,K=(ae,_e)=>{const De=_e.findIndex(ft=>ft.c===ae);De>-1&&_e.splice(De,1)},q=(ae,_e)=>(G.push({c:ae,o:_e}),S),se=(ae,_e)=>((_e!=null&&_e.oneTimeCallback?V:M).push({c:ae,o:_e}),S),Ce=()=>(M.length=0,V.length=0,S),Le=()=>{if(Te)oe.forEach(ae=>{ae.cancel()}),oe.length=0;else{const ae=Q.slice();raf(()=>{ae.forEach(_e=>{removeStyleProperty(_e,"animation-name"),removeStyleProperty(_e,"animation-duration"),removeStyleProperty(_e,"animation-timing-function"),removeStyleProperty(_e,"animation-iteration-count"),removeStyleProperty(_e,"animation-delay"),removeStyleProperty(_e,"animation-play-state"),removeStyleProperty(_e,"animation-fill-mode"),removeStyleProperty(_e,"animation-direction")})})}},qe=()=>{te.forEach(ae=>{ae!=null&&ae.parentNode&&ae.parentNode.removeChild(ae)}),te.length=0},Ct=ae=>(de.push(ae),S),ke=ae=>(me.push(ae),S),xe=ae=>(Me.push(ae),S),Ne=ae=>(ce.push(ae),S),Se=ae=>(p=addClassToArray(p,ae),S),ie=ae=>(g=addClassToArray(g,ae),S),he=(ae={})=>(w=ae,S),Ye=(ae=[])=>{for(const _e of ae)w[_e]="";return S},et=ae=>(y=addClassToArray(y,ae),S),bt=ae=>(I=addClassToArray(I,ae),S),$e=(ae={})=>(k=ae,S),Ee=(ae=[])=>{for(const _e of ae)k[_e]="";return S},Ie=()=>c!==void 0?c:x?x.getFill():"both",ze=()=>L!==void 0?L:u!==void 0?u:x?x.getDirection():"normal",ct=()=>E?"linear":o!==void 0?o:x?x.getEasing():"linear",st=()=>O?0:R!==void 0?R:r!==void 0?r:x?x.getDuration():0,ht=()=>a!==void 0?a:x?x.getIterations():1,Rt=()=>$!==void 0?$:e!==void 0?e:x?x.getDelay():0,ar=()=>d,To=ae=>(u=ae,Ft(!0),S),Io=ae=>(c=ae,Ft(!0),S),Oo=ae=>(e=ae,Ft(!0),S),Ar=ae=>(o=ae,Ft(!0),S),$r=ae=>(!Te&&ae===0&&(ae=1),r=ae,Ft(!0),S),Ao=ae=>(a=ae,Ft(!0),S),$o=ae=>(x=ae,S),Do=ae=>{if(ae!=null)if(ae.nodeType===1)Q.push(ae);else if(ae.length>=0)for(let _e=0;_e<ae.length;_e++)Q.push(ae[_e]);else console.error("Invalid addElement value");return S},Lo=ae=>{if(ae!=null)if(Array.isArray(ae))for(const _e of ae)_e.parent(S),fe.push(_e);else ae.parent(S),fe.push(ae);return S},Dr=ae=>{const _e=d!==ae;return d=ae,_e&&Ro(d),S},Ro=ae=>{Te?Be().forEach(_e=>{const De=_e.effect;if(De.setKeyframes)De.setKeyframes(ae);else{const ft=new KeyframeEffect(De.target,ae,De.getTiming());_e.effect=ft}}):Lr()},Po=()=>{de.forEach(ft=>ft()),me.forEach(ft=>ft());const ae=p,_e=g,De=w;Q.forEach(ft=>{const Et=ft.classList;ae.forEach(Bt=>Et.add(Bt)),_e.forEach(Bt=>Et.remove(Bt));for(const Bt in De)De.hasOwnProperty(Bt)&&setStyleProperty(ft,Bt,De[Bt])})},No=()=>{ur(),Me.forEach(Et=>Et()),ce.forEach(Et=>Et());const ae=P?1:0,_e=y,De=I,ft=k;Q.forEach(Et=>{const Bt=Et.classList;_e.forEach(mn=>Bt.add(mn)),De.forEach(mn=>Bt.remove(mn));for(const mn in ft)ft.hasOwnProperty(mn)&&setStyleProperty(Et,mn,ft[mn])}),R=void 0,L=void 0,$=void 0,M.forEach(Et=>Et.c(ae,S)),V.forEach(Et=>Et.c(ae,S)),V.length=0,W=!0,P&&(z=!0),P=!0},un=()=>{T!==0&&(T--,T===0&&(No(),x&&x.animationFinish()))},Lr=(ae=!0)=>{qe();const _e=processKeyframes(d);Q.forEach(De=>{if(_e.length>0){const ft=generateKeyframeRules(_e);D=t!==void 0?t:generateKeyframeName(ft);const Et=createKeyframeStylesheet(D,ft,De);te.push(Et),setStyleProperty(De,"animation-duration",`${st()}ms`),setStyleProperty(De,"animation-timing-function",ct()),setStyleProperty(De,"animation-delay",`${Rt()}ms`),setStyleProperty(De,"animation-fill-mode",Ie()),setStyleProperty(De,"animation-direction",ze());const Bt=ht()===1/0?"infinite":ht().toString();setStyleProperty(De,"animation-iteration-count",Bt),setStyleProperty(De,"animation-play-state","paused"),ae&&setStyleProperty(De,"animation-name",`${Et.id}-alt`),raf(()=>{setStyleProperty(De,"animation-name",Et.id||null)})}})},lr=()=>{Q.forEach(ae=>{const _e=ae.animate(d,{id:U,delay:Rt(),duration:st(),easing:ct(),iterations:ht(),fill:Ie(),direction:ze()});_e.pause(),oe.push(_e)}),oe.length>0&&(oe[0].onfinish=()=>{un()})},Rr=(ae=!0)=>{Po(),d.length>0&&(Te?lr():Lr(ae)),b=!0},Rn=ae=>{if(ae=Math.min(Math.max(ae,0),.9999),Te)oe.forEach(_e=>{_e.currentTime=_e.effect.getComputedTiming().delay+st()*ae,_e.pause()});else{const _e=`-${st()*ae}ms`;Q.forEach(De=>{d.length>0&&(setStyleProperty(De,"animation-delay",_e),setStyleProperty(De,"animation-play-state","paused"))})}},Nr=ae=>{oe.forEach(_e=>{_e.effect.updateTiming({delay:Rt(),duration:st(),easing:ct(),iterations:ht(),fill:Ie(),direction:ze()})}),ae!==void 0&&Rn(ae)},Mr=(ae=!0,_e)=>{raf(()=>{Q.forEach(De=>{setStyleProperty(De,"animation-name",D||null),setStyleProperty(De,"animation-duration",`${st()}ms`),setStyleProperty(De,"animation-timing-function",ct()),setStyleProperty(De,"animation-delay",_e!==void 0?`-${_e*st()}ms`:`${Rt()}ms`),setStyleProperty(De,"animation-fill-mode",Ie()||null),setStyleProperty(De,"animation-direction",ze()||null);const ft=ht()===1/0?"infinite":ht().toString();setStyleProperty(De,"animation-iteration-count",ft),ae&&setStyleProperty(De,"animation-name",`${D}-alt`),raf(()=>{setStyleProperty(De,"animation-name",D||null)})})})},Ft=(ae=!1,_e=!0,De)=>(ae&&fe.forEach(ft=>{ft.update(ae,_e,De)}),Te?Nr(De):Mr(_e,De),S),Mo=(ae=!1,_e)=>(fe.forEach(De=>{De.progressStart(ae,_e)}),cr(),E=ae,b||Rr(),Ft(!1,!0,_e),S),Fo=ae=>(fe.forEach(_e=>{_e.progressStep(ae)}),Rn(ae),S),Bo=(ae,_e,De)=>(E=!1,fe.forEach(ft=>{ft.progressEnd(ae,_e,De)}),De!==void 0&&(R=De),z=!1,P=!0,ae===0?(L=ze()==="reverse"?"normal":"reverse",L==="reverse"&&(P=!1),Te?(Ft(),Rn(1-_e)):($=(1-_e)*st()*-1,Ft(!1,!1))):ae===1&&(Te?(Ft(),Rn(_e)):($=_e*st()*-1,Ft(!1,!1))),ae!==void 0&&!x&&Fr(),S),cr=()=>{b&&(Te?oe.forEach(ae=>{ae.pause()}):Q.forEach(ae=>{setStyleProperty(ae,"animation-play-state","paused")}),F=!0)},jo=()=>(fe.forEach(ae=>{ae.pause()}),cr(),S),Uo=()=>{A=void 0,un()},ur=()=>{A&&clearTimeout(A)},Vo=()=>{if(ur(),raf(()=>{Q.forEach(ae=>{d.length>0&&setStyleProperty(ae,"animation-play-state","running")})}),d.length===0||Q.length===0)un();else{const ae=Rt()||0,_e=st()||0,De=ht()||1;isFinite(De)&&(A=setTimeout(Uo,ae+_e*De+Ae)),animationEnd(Q[0],()=>{ur(),raf(()=>{zo(),raf(un)})})}},zo=()=>{Q.forEach(ae=>{removeStyleProperty(ae,"animation-duration"),removeStyleProperty(ae,"animation-delay"),removeStyleProperty(ae,"animation-play-state")})},Ho=()=>{oe.forEach(ae=>{ae.play()}),(d.length===0||Q.length===0)&&un()},Hn=()=>{Te?(Rn(0),Nr()):Mr()},Fr=ae=>new Promise(_e=>{ae!=null&&ae.sync&&(O=!0,se(()=>O=!1,{oneTimeCallback:!0})),b||Rr(),z&&(Hn(),z=!1),W&&(T=fe.length+1,W=!1);const De=()=>{K(ft,V),_e()},ft=()=>{K(De,G),_e()};se(ft,{oneTimeCallback:!0}),q(De,{oneTimeCallback:!0}),fe.forEach(Et=>{Et.play()}),Te?Ho():Vo(),F=!1}),qn=()=>{fe.forEach(ae=>{ae.stop()}),b&&(Le(),b=!1),Ke(),G.forEach(ae=>ae.c(0,S)),G.length=0},Br=(ae,_e)=>{const De=d[0];return De!==void 0&&(De.offset===void 0||De.offset===0)?De[ae]=_e:d=[{offset:0,[ae]:_e},...d],S};return S={parentAnimation:x,elements:Q,childAnimations:fe,id:U,animationFinish:un,from:Br,to:(ae,_e)=>{const De=d[d.length-1];return De!==void 0&&(De.offset===void 0||De.offset===1)?De[ae]=_e:d=[...d,{offset:1,[ae]:_e}],S},fromTo:(ae,_e,De)=>Br(ae,_e).to(ae,De),parent:$o,play:Fr,pause:jo,stop:qn,destroy:Xe,keyframes:Dr,addAnimation:Lo,addElement:Do,update:Ft,fill:Io,direction:To,iterations:Ao,duration:$r,easing:Ar,delay:Oo,getWebAnimations:Be,getKeyframes:ar,getFill:Ie,getDirection:ze,getDelay:Rt,getIterations:ht,getEasing:ct,getDuration:st,afterAddRead:xe,afterAddWrite:Ne,afterClearStyles:Ee,afterStyles:$e,afterRemoveClass:bt,afterAddClass:et,beforeAddRead:Ct,beforeAddWrite:ke,beforeClearStyles:Ye,beforeStyles:he,beforeRemoveClass:ie,beforeAddClass:Se,onFinish:se,isRunning:ot,progressStart:Mo,progressStep:Fo,progressEnd:Bo}};/*!
|
|
95
95
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
@@ -131,7 +131,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
131
131
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
132
132
|
*/const getTimeGivenProgression=(t,e,r,o,a)=>solveCubicBezier(t[1],e[1],r[1],o[1],a).map(c=>solveCubicParametricEquation(t[0],e[0],r[0],o[0],c)),solveCubicParametricEquation=(t,e,r,o,a)=>{const c=3*e*Math.pow(a-1,2),u=-3*r*a+3*r+o*a,d=t*Math.pow(a-1,3);return a*(c+a*u)-d},solveCubicBezier=(t,e,r,o,a)=>(t-=a,e-=a,r-=a,o-=a,solveCubicEquation(o-3*r+3*e-t,3*r-6*e+3*t,3*e-3*t,t).filter(u=>u>=0&&u<=1)),solveQuadraticEquation=(t,e,r)=>{const o=e*e-4*t*r;return o<0?[]:[(-e+Math.sqrt(o))/(2*t),(-e-Math.sqrt(o))/(2*t)]},solveCubicEquation=(t,e,r,o)=>{if(t===0)return solveQuadraticEquation(e,r,o);e/=t,r/=t,o/=t;const a=(3*r-e*e)/3,c=(2*e*e*e-9*e*r+27*o)/27;if(a===0)return[Math.pow(-c,1/3)];if(c===0)return[Math.sqrt(-a),-Math.sqrt(-a)];const u=Math.pow(c/2,2)+Math.pow(a/3,3);if(u===0)return[Math.pow(c/2,1/2)-e/3];if(u>0)return[Math.pow(-(c/2)+Math.sqrt(u),1/3)-Math.pow(c/2+Math.sqrt(u),1/3)-e/3];const d=Math.sqrt(Math.pow(-(a/3),3)),p=Math.acos(-(c/(2*Math.sqrt(Math.pow(-(a/3),3))))),g=2*Math.pow(d,1/3);return[g*Math.cos(p/3)-e/3,g*Math.cos((p+2*Math.PI)/3)-e/3,g*Math.cos((p+4*Math.PI)/3)-e/3]};/*!
|
|
133
133
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
134
|
-
*/const VIEW_STATE_NEW=1,VIEW_STATE_ATTACHED=2,VIEW_STATE_DESTROYED=3;class ViewController{constructor(e,r){this.component=e,this.params=r,this.state=VIEW_STATE_NEW}async init(e){if(this.state=VIEW_STATE_ATTACHED,!this.element){const r=this.component;this.element=await attachComponent(this.delegate,e,r,["ion-page","ion-page-invisible"],this.params)}}_destroy(){assert(this.state!==VIEW_STATE_DESTROYED,"view state must be ATTACHED");const e=this.element;e&&(this.delegate?this.delegate.removeViewFromDom(e.parentElement,e):e.remove()),this.nav=void 0,this.state=VIEW_STATE_DESTROYED}}const matches=(t,e,r)=>!t||t.component!==e?!1:shallowEqualStringMap(t.params,r),convertToView=(t,e)=>t?t instanceof ViewController?t:new ViewController(t,e):null,convertToViews=t=>t.map(e=>e instanceof ViewController?e:"component"in e?convertToView(e.component,e.componentProps===null?void 0:e.componentProps):convertToView(e,void 0)).filter(e=>e!==null),navCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}",Nav=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=createEvent(this,"ionNavWillLoad",7),this.ionNavWillChange=createEvent(this,"ionNavWillChange",3),this.ionNavDidChange=createEvent(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(this.swipeGesture===!0)}rootChanged(){this.root!==void 0&&this.didLoad!==!1&&(this.useRouter||this.root!==void 0&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null,this.swipeGesture===void 0){const e=getIonMode$2(this);this.swipeGesture=config$1.getBoolean("swipeBackEnabled",e==="ios")}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await Promise.resolve().then(()=>require("./swipe-back-45296dfc.cjs"))).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const e of this.views)lifecycle(e.element,LIFECYCLE_WILL_UNLOAD),e._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(e,r,o,a){return this.insert(-1,e,r,o,a)}insert(e,r,o,a,c){return this.insertPages(e,[{component:r,componentProps:o}],a,c)}insertPages(e,r,o,a){return this.queueTrns({insertStart:e,insertViews:r,opts:o},a)}pop(e,r){return this.removeIndex(-1,1,e,r)}popTo(e,r,o){const a={removeStart:-1,removeCount:-1,opts:r};return typeof e=="object"&&e.component?(a.removeView=e,a.removeStart=1):typeof e=="number"&&(a.removeStart=e+1),this.queueTrns(a,o)}popToRoot(e,r){return this.removeIndex(1,-1,e,r)}removeIndex(e,r=1,o,a){return this.queueTrns({removeStart:e,removeCount:r,opts:o},a)}setRoot(e,r,o,a){return this.setPages([{component:e,componentProps:r}],o,a)}setPages(e,r,o){return r??(r={}),r.animated!==!0&&(r.animated=!1),this.queueTrns({insertStart:0,insertViews:e,removeStart:0,removeCount:-1,opts:r},o)}setRouteId(e,r,o,a){const c=this.getActiveSync();if(matches(c,e,r))return Promise.resolve({changed:!1,element:c.element});let u;const d=new Promise(b=>u=b);let p;const g={updateURL:!1,viewIsReady:b=>{let x;const w=new Promise(y=>x=y);return u({changed:!0,element:b,markVisible:async()=>{x(),await p}}),w}};if(o==="root")p=this.setRoot(e,r,g);else{const b=this.views.find(x=>matches(x,e,r));b?p=this.popTo(b,Object.assign(Object.assign({},g),{direction:"back",animationBuilder:a})):o==="forward"?p=this.push(e,r,Object.assign(Object.assign({},g),{animationBuilder:a})):o==="back"&&(p=this.setRoot(e,r,Object.assign(Object.assign({},g),{direction:"back",animated:!0,animationBuilder:a})))}return d}async getRouteId(){const e=this.getActiveSync();if(e)return{id:e.element.tagName,params:e.params,element:e.element}}async getActive(){return this.getActiveSync()}async getByIndex(e){return this.views[e]}async canGoBack(e){return this.canGoBackSync(e)}async getPrevious(e){return this.getPreviousSync(e)}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(e=this.getActiveSync()){return!!(e&&this.getPreviousSync(e))}getPreviousSync(e=this.getActiveSync()){if(!e)return;const r=this.views,o=r.indexOf(e);return o>0?r[o-1]:void 0}async queueTrns(e,r){var o,a;if(this.isTransitioning&&(!((o=e.opts)===null||o===void 0)&&o.skipIfBusy))return!1;const c=new Promise((u,d)=>{e.resolve=u,e.reject=d});if(e.done=r,e.opts&&e.opts.updateURL!==!1&&this.useRouter){const u=document.querySelector("ion-router");if(u){const d=await u.canTransition();if(d===!1)return!1;if(typeof d=="string")return u.push(d,e.opts.direction||"back"),!1}}return((a=e.insertViews)===null||a===void 0?void 0:a.length)===0&&(e.insertViews=void 0),this.transInstr.push(e),this.nextTrns(),c}success(e,r){if(this.destroyed){this.fireError("nav controller was destroyed",r);return}if(r.done&&r.done(e.hasCompleted,e.requiresTransition,e.enteringView,e.leavingView,e.direction),r.resolve(e.hasCompleted),r.opts.updateURL!==!1&&this.useRouter){const o=document.querySelector("ion-router");if(o){const a=e.direction==="back"?"back":"forward";o.navChanged(a)}}}failed(e,r){if(this.destroyed){this.fireError("nav controller was destroyed",r);return}this.transInstr.length=0,this.fireError(e,r)}fireError(e,r){r.done&&r.done(!1,!1,e),r.reject&&!this.destroyed?r.reject(e):r.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const e=this.transInstr.shift();return e?(this.runTransition(e),!0):!1}async runTransition(e){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(e);const r=this.getActiveSync(),o=this.getEnteringView(e,r);if(!r&&!o)throw new Error("no views in the stack to be removed");o&&o.state===VIEW_STATE_NEW&&await o.init(this.el),this.postViewInit(o,r,e);const a=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&o!==r;a&&e.opts&&r&&(e.opts.direction==="back"&&(e.opts.animationBuilder=e.opts.animationBuilder||(o==null?void 0:o.animationBuilder)),r.animationBuilder=e.opts.animationBuilder);let c;a?c=await this.transition(o,r,e):c={hasCompleted:!0,requiresTransition:!1},this.success(c,e),this.ionNavDidChange.emit()}catch(r){this.failed(r,e)}this.isTransitioning=!1,this.nextTrns()}prepareTI(e){var r,o,a;const c=this.views.length;if((r=e.opts)!==null&&r!==void 0||(e.opts={}),(o=(a=e.opts).delegate)!==null&&o!==void 0||(a.delegate=this.delegate),e.removeView!==void 0){assert(e.removeStart!==void 0,"removeView needs removeStart"),assert(e.removeCount!==void 0,"removeView needs removeCount");const p=this.views.indexOf(e.removeView);if(p<0)throw new Error("removeView was not found");e.removeStart+=p}e.removeStart!==void 0&&(e.removeStart<0&&(e.removeStart=c-1),e.removeCount<0&&(e.removeCount=c-e.removeStart),e.leavingRequiresTransition=e.removeCount>0&&e.removeStart+e.removeCount===c),e.insertViews&&((e.insertStart<0||e.insertStart>c)&&(e.insertStart=c),e.enteringRequiresTransition=e.insertStart===c);const u=e.insertViews;if(!u)return;assert(u.length>0,"length can not be zero");const d=convertToViews(u);if(d.length===0)throw new Error("invalid views to insert");for(const p of d){p.delegate=e.opts.delegate;const g=p.nav;if(g&&g!==this)throw new Error("inserted view was already inserted");if(p.state===VIEW_STATE_DESTROYED)throw new Error("inserted view was already destroyed")}e.insertViews=d}getEnteringView(e,r){const o=e.insertViews;if(o!==void 0)return o[o.length-1];const a=e.removeStart;if(a!==void 0){const c=this.views,u=a+e.removeCount;for(let d=c.length-1;d>=0;d--){const p=c[d];if((d<a||d>=u)&&p!==r)return p}}}postViewInit(e,r,o){var a,c,u;assert(r||e,"Both leavingView and enteringView are null"),assert(o.resolve,"resolve must be valid"),assert(o.reject,"reject must be valid");const d=o.opts,{insertViews:p,removeStart:g,removeCount:b}=o;let x;if(g!==void 0&&b!==void 0){assert(g>=0,"removeStart can not be negative"),assert(b>=0,"removeCount can not be negative"),x=[];for(let y=g;y<g+b;y++){const I=this.views[y];I!==void 0&&I!==e&&I!==r&&x.push(I)}(a=d.direction)!==null&&a!==void 0||(d.direction="back")}const w=this.views.length+((c=p==null?void 0:p.length)!==null&&c!==void 0?c:0)-(b??0);if(assert(w>=0,"final balance can not be negative"),w===0)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(p){let y=o.insertStart;for(const I of p)this.insertViewAt(I,y),y++;o.enteringRequiresTransition&&((u=d.direction)!==null&&u!==void 0||(d.direction="forward"))}if(x&&x.length>0){for(const y of x)lifecycle(y.element,LIFECYCLE_WILL_LEAVE),lifecycle(y.element,LIFECYCLE_DID_LEAVE),lifecycle(y.element,LIFECYCLE_WILL_UNLOAD);for(const y of x)this.destroyView(y)}}async transition(e,r,o){const a=o.opts,c=a.progressAnimation?x=>{x!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,x.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0}),x.progressEnd(0,0,0)):this.sbAni=x}:void 0,u=getIonMode$2(this),d=e.element,p=r&&r.element,g=Object.assign(Object.assign({mode:u,showGoBack:this.canGoBackSync(e),baseEl:this.el,progressCallback:c,animated:this.animated&&config$1.getBoolean("animated",!0),enteringEl:d,leavingEl:p},a),{animationBuilder:a.animationBuilder||this.animation||config$1.get("navAnimation")}),{hasCompleted:b}=await transition(g);return this.transitionFinish(b,e,r,a)}transitionFinish(e,r,o,a){const c=e?r:o;return c&&this.unmountInactiveViews(c),{hasCompleted:e,requiresTransition:!0,enteringView:r,leavingView:o,direction:a.direction}}insertViewAt(e,r){const o=this.views,a=o.indexOf(e);a>-1?(assert(e.nav===this,"view is not part of the nav"),o.splice(a,1),o.splice(r,0,e)):(assert(!e.nav,"nav is used"),e.nav=this,o.splice(r,0,e))}removeView(e){assert(e.state===VIEW_STATE_ATTACHED||e.state===VIEW_STATE_DESTROYED,"view state should be loaded or destroyed");const r=this.views,o=r.indexOf(e);assert(o>-1,"view must be part of the stack"),o>=0&&r.splice(o,1)}destroyView(e){e._destroy(),this.removeView(e)}unmountInactiveViews(e){if(this.destroyed)return;const r=this.views,o=r.indexOf(e);for(let a=r.length-1;a>=0;a--){const c=r[a],u=c.element;u&&(a>o?(lifecycle(u,LIFECYCLE_WILL_UNLOAD),this.destroyView(c)):a<o&&setPageHidden(u,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(e){this.sbAni&&this.sbAni.progressStep(e)}onEnd(e,r,o){if(this.sbAni){this.sbAni.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0});let a=e?-.001:.001;e?a+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],r)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),a+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],r)[0]),this.sbAni.progressEnd(e?1:0,a,o)}else this.gestureOrAnimationInProgress=!1}render(){return h("slot",null)}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return navCss}},[1,"ion-nav",{delegate:[16],swipeGesture:[1028,"swipe-gesture"],animated:[4],animation:[16],rootParams:[16],root:[1],push:[64],insert:[64],insertPages:[64],pop:[64],popTo:[64],popToRoot:[64],removeIndex:[64],setRoot:[64],setPages:[64],setRouteId:[64],getRouteId:[64],getActive:[64],getByIndex:[64],canGoBack:[64],getPrevious:[64]},void 0,{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}]);function defineCustomElement$1$e(){if(typeof customElements>"u")return;["ion-nav"].forEach(e=>{switch(e){case"ion-nav":customElements.get(e)||customElements.define(e,Nav);break}})}const defineCustomElement$o=defineCustomElement$1$e;/*!
|
|
134
|
+
*/const VIEW_STATE_NEW=1,VIEW_STATE_ATTACHED=2,VIEW_STATE_DESTROYED=3;class ViewController{constructor(e,r){this.component=e,this.params=r,this.state=VIEW_STATE_NEW}async init(e){if(this.state=VIEW_STATE_ATTACHED,!this.element){const r=this.component;this.element=await attachComponent(this.delegate,e,r,["ion-page","ion-page-invisible"],this.params)}}_destroy(){assert(this.state!==VIEW_STATE_DESTROYED,"view state must be ATTACHED");const e=this.element;e&&(this.delegate?this.delegate.removeViewFromDom(e.parentElement,e):e.remove()),this.nav=void 0,this.state=VIEW_STATE_DESTROYED}}const matches=(t,e,r)=>!t||t.component!==e?!1:shallowEqualStringMap(t.params,r),convertToView=(t,e)=>t?t instanceof ViewController?t:new ViewController(t,e):null,convertToViews=t=>t.map(e=>e instanceof ViewController?e:"component"in e?convertToView(e.component,e.componentProps===null?void 0:e.componentProps):convertToView(e,void 0)).filter(e=>e!==null),navCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}",Nav=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=createEvent(this,"ionNavWillLoad",7),this.ionNavWillChange=createEvent(this,"ionNavWillChange",3),this.ionNavDidChange=createEvent(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(this.swipeGesture===!0)}rootChanged(){this.root!==void 0&&this.didLoad!==!1&&(this.useRouter||this.root!==void 0&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null,this.swipeGesture===void 0){const e=getIonMode$2(this);this.swipeGesture=config$1.getBoolean("swipeBackEnabled",e==="ios")}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await Promise.resolve().then(()=>require("./swipe-back-c6e34927.cjs"))).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const e of this.views)lifecycle(e.element,LIFECYCLE_WILL_UNLOAD),e._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(e,r,o,a){return this.insert(-1,e,r,o,a)}insert(e,r,o,a,c){return this.insertPages(e,[{component:r,componentProps:o}],a,c)}insertPages(e,r,o,a){return this.queueTrns({insertStart:e,insertViews:r,opts:o},a)}pop(e,r){return this.removeIndex(-1,1,e,r)}popTo(e,r,o){const a={removeStart:-1,removeCount:-1,opts:r};return typeof e=="object"&&e.component?(a.removeView=e,a.removeStart=1):typeof e=="number"&&(a.removeStart=e+1),this.queueTrns(a,o)}popToRoot(e,r){return this.removeIndex(1,-1,e,r)}removeIndex(e,r=1,o,a){return this.queueTrns({removeStart:e,removeCount:r,opts:o},a)}setRoot(e,r,o,a){return this.setPages([{component:e,componentProps:r}],o,a)}setPages(e,r,o){return r??(r={}),r.animated!==!0&&(r.animated=!1),this.queueTrns({insertStart:0,insertViews:e,removeStart:0,removeCount:-1,opts:r},o)}setRouteId(e,r,o,a){const c=this.getActiveSync();if(matches(c,e,r))return Promise.resolve({changed:!1,element:c.element});let u;const d=new Promise(b=>u=b);let p;const g={updateURL:!1,viewIsReady:b=>{let x;const w=new Promise(y=>x=y);return u({changed:!0,element:b,markVisible:async()=>{x(),await p}}),w}};if(o==="root")p=this.setRoot(e,r,g);else{const b=this.views.find(x=>matches(x,e,r));b?p=this.popTo(b,Object.assign(Object.assign({},g),{direction:"back",animationBuilder:a})):o==="forward"?p=this.push(e,r,Object.assign(Object.assign({},g),{animationBuilder:a})):o==="back"&&(p=this.setRoot(e,r,Object.assign(Object.assign({},g),{direction:"back",animated:!0,animationBuilder:a})))}return d}async getRouteId(){const e=this.getActiveSync();if(e)return{id:e.element.tagName,params:e.params,element:e.element}}async getActive(){return this.getActiveSync()}async getByIndex(e){return this.views[e]}async canGoBack(e){return this.canGoBackSync(e)}async getPrevious(e){return this.getPreviousSync(e)}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(e=this.getActiveSync()){return!!(e&&this.getPreviousSync(e))}getPreviousSync(e=this.getActiveSync()){if(!e)return;const r=this.views,o=r.indexOf(e);return o>0?r[o-1]:void 0}async queueTrns(e,r){var o,a;if(this.isTransitioning&&(!((o=e.opts)===null||o===void 0)&&o.skipIfBusy))return!1;const c=new Promise((u,d)=>{e.resolve=u,e.reject=d});if(e.done=r,e.opts&&e.opts.updateURL!==!1&&this.useRouter){const u=document.querySelector("ion-router");if(u){const d=await u.canTransition();if(d===!1)return!1;if(typeof d=="string")return u.push(d,e.opts.direction||"back"),!1}}return((a=e.insertViews)===null||a===void 0?void 0:a.length)===0&&(e.insertViews=void 0),this.transInstr.push(e),this.nextTrns(),c}success(e,r){if(this.destroyed){this.fireError("nav controller was destroyed",r);return}if(r.done&&r.done(e.hasCompleted,e.requiresTransition,e.enteringView,e.leavingView,e.direction),r.resolve(e.hasCompleted),r.opts.updateURL!==!1&&this.useRouter){const o=document.querySelector("ion-router");if(o){const a=e.direction==="back"?"back":"forward";o.navChanged(a)}}}failed(e,r){if(this.destroyed){this.fireError("nav controller was destroyed",r);return}this.transInstr.length=0,this.fireError(e,r)}fireError(e,r){r.done&&r.done(!1,!1,e),r.reject&&!this.destroyed?r.reject(e):r.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const e=this.transInstr.shift();return e?(this.runTransition(e),!0):!1}async runTransition(e){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(e);const r=this.getActiveSync(),o=this.getEnteringView(e,r);if(!r&&!o)throw new Error("no views in the stack to be removed");o&&o.state===VIEW_STATE_NEW&&await o.init(this.el),this.postViewInit(o,r,e);const a=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&o!==r;a&&e.opts&&r&&(e.opts.direction==="back"&&(e.opts.animationBuilder=e.opts.animationBuilder||(o==null?void 0:o.animationBuilder)),r.animationBuilder=e.opts.animationBuilder);let c;a?c=await this.transition(o,r,e):c={hasCompleted:!0,requiresTransition:!1},this.success(c,e),this.ionNavDidChange.emit()}catch(r){this.failed(r,e)}this.isTransitioning=!1,this.nextTrns()}prepareTI(e){var r,o,a;const c=this.views.length;if((r=e.opts)!==null&&r!==void 0||(e.opts={}),(o=(a=e.opts).delegate)!==null&&o!==void 0||(a.delegate=this.delegate),e.removeView!==void 0){assert(e.removeStart!==void 0,"removeView needs removeStart"),assert(e.removeCount!==void 0,"removeView needs removeCount");const p=this.views.indexOf(e.removeView);if(p<0)throw new Error("removeView was not found");e.removeStart+=p}e.removeStart!==void 0&&(e.removeStart<0&&(e.removeStart=c-1),e.removeCount<0&&(e.removeCount=c-e.removeStart),e.leavingRequiresTransition=e.removeCount>0&&e.removeStart+e.removeCount===c),e.insertViews&&((e.insertStart<0||e.insertStart>c)&&(e.insertStart=c),e.enteringRequiresTransition=e.insertStart===c);const u=e.insertViews;if(!u)return;assert(u.length>0,"length can not be zero");const d=convertToViews(u);if(d.length===0)throw new Error("invalid views to insert");for(const p of d){p.delegate=e.opts.delegate;const g=p.nav;if(g&&g!==this)throw new Error("inserted view was already inserted");if(p.state===VIEW_STATE_DESTROYED)throw new Error("inserted view was already destroyed")}e.insertViews=d}getEnteringView(e,r){const o=e.insertViews;if(o!==void 0)return o[o.length-1];const a=e.removeStart;if(a!==void 0){const c=this.views,u=a+e.removeCount;for(let d=c.length-1;d>=0;d--){const p=c[d];if((d<a||d>=u)&&p!==r)return p}}}postViewInit(e,r,o){var a,c,u;assert(r||e,"Both leavingView and enteringView are null"),assert(o.resolve,"resolve must be valid"),assert(o.reject,"reject must be valid");const d=o.opts,{insertViews:p,removeStart:g,removeCount:b}=o;let x;if(g!==void 0&&b!==void 0){assert(g>=0,"removeStart can not be negative"),assert(b>=0,"removeCount can not be negative"),x=[];for(let y=g;y<g+b;y++){const I=this.views[y];I!==void 0&&I!==e&&I!==r&&x.push(I)}(a=d.direction)!==null&&a!==void 0||(d.direction="back")}const w=this.views.length+((c=p==null?void 0:p.length)!==null&&c!==void 0?c:0)-(b??0);if(assert(w>=0,"final balance can not be negative"),w===0)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(p){let y=o.insertStart;for(const I of p)this.insertViewAt(I,y),y++;o.enteringRequiresTransition&&((u=d.direction)!==null&&u!==void 0||(d.direction="forward"))}if(x&&x.length>0){for(const y of x)lifecycle(y.element,LIFECYCLE_WILL_LEAVE),lifecycle(y.element,LIFECYCLE_DID_LEAVE),lifecycle(y.element,LIFECYCLE_WILL_UNLOAD);for(const y of x)this.destroyView(y)}}async transition(e,r,o){const a=o.opts,c=a.progressAnimation?x=>{x!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,x.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0}),x.progressEnd(0,0,0)):this.sbAni=x}:void 0,u=getIonMode$2(this),d=e.element,p=r&&r.element,g=Object.assign(Object.assign({mode:u,showGoBack:this.canGoBackSync(e),baseEl:this.el,progressCallback:c,animated:this.animated&&config$1.getBoolean("animated",!0),enteringEl:d,leavingEl:p},a),{animationBuilder:a.animationBuilder||this.animation||config$1.get("navAnimation")}),{hasCompleted:b}=await transition(g);return this.transitionFinish(b,e,r,a)}transitionFinish(e,r,o,a){const c=e?r:o;return c&&this.unmountInactiveViews(c),{hasCompleted:e,requiresTransition:!0,enteringView:r,leavingView:o,direction:a.direction}}insertViewAt(e,r){const o=this.views,a=o.indexOf(e);a>-1?(assert(e.nav===this,"view is not part of the nav"),o.splice(a,1),o.splice(r,0,e)):(assert(!e.nav,"nav is used"),e.nav=this,o.splice(r,0,e))}removeView(e){assert(e.state===VIEW_STATE_ATTACHED||e.state===VIEW_STATE_DESTROYED,"view state should be loaded or destroyed");const r=this.views,o=r.indexOf(e);assert(o>-1,"view must be part of the stack"),o>=0&&r.splice(o,1)}destroyView(e){e._destroy(),this.removeView(e)}unmountInactiveViews(e){if(this.destroyed)return;const r=this.views,o=r.indexOf(e);for(let a=r.length-1;a>=0;a--){const c=r[a],u=c.element;u&&(a>o?(lifecycle(u,LIFECYCLE_WILL_UNLOAD),this.destroyView(c)):a<o&&setPageHidden(u,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(e){this.sbAni&&this.sbAni.progressStep(e)}onEnd(e,r,o){if(this.sbAni){this.sbAni.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0});let a=e?-.001:.001;e?a+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],r)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),a+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],r)[0]),this.sbAni.progressEnd(e?1:0,a,o)}else this.gestureOrAnimationInProgress=!1}render(){return h("slot",null)}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return navCss}},[1,"ion-nav",{delegate:[16],swipeGesture:[1028,"swipe-gesture"],animated:[4],animation:[16],rootParams:[16],root:[1],push:[64],insert:[64],insertPages:[64],pop:[64],popTo:[64],popToRoot:[64],removeIndex:[64],setRoot:[64],setPages:[64],setRouteId:[64],getRouteId:[64],getActive:[64],getByIndex:[64],canGoBack:[64],getPrevious:[64]},void 0,{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}]);function defineCustomElement$1$e(){if(typeof customElements>"u")return;["ion-nav"].forEach(e=>{switch(e){case"ion-nav":customElements.get(e)||customElements.define(e,Nav);break}})}const defineCustomElement$o=defineCustomElement$1$e;/*!
|
|
135
135
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
136
136
|
*/const defineCustomElement$n=defineCustomElement$D;/*!
|
|
137
137
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
@@ -188,7 +188,7 @@ Developers can use the "legacy" property to continue using the legacy form marku
|
|
|
188
188
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
189
189
|
*/const tabBarIosCss=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);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}: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-600, #666666));--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)}}",tabBarMdCss=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);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}: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-650, #595959));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:56px}",TabBar=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabBarChanged=createEvent(this,"ionTabBarChanged",7),this.ionTabBarLoaded=createEvent(this,"ionTabBarLoaded",7),this.keyboardCtrl=null,this.keyboardVisible=!1,this.color=void 0,this.selectedTab=void 0,this.translucent=!1}selectedTabChanged(){this.selectedTab!==void 0&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentWillLoad(){this.selectedTabChanged()}async connectedCallback(){this.keyboardCtrl=await createKeyboardController(async(e,r)=>{e===!1&&r!==void 0&&await r,this.keyboardVisible=e})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}componentDidLoad(){this.ionTabBarLoaded.emit()}render(){const{color:e,translucent:r,keyboardVisible:o}=this,a=getIonMode$2(this),c=o&&this.el.getAttribute("slot")!=="top";return h(Host,{role:"tablist","aria-hidden":c?"true":null,class:createColorClasses$1(e,{[a]:!0,"tab-bar-translucent":r,"tab-bar-hidden":c})},h("slot",null))}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"]}}static get style(){return{ios:tabBarIosCss,md:tabBarMdCss}}},[33,"ion-tab-bar",{color:[513],selectedTab:[1,"selected-tab"],translucent:[4],keyboardVisible:[32]},void 0,{selectedTab:["selectedTabChanged"]}]);function defineCustomElement$1$4(){if(typeof customElements>"u")return;["ion-tab-bar"].forEach(e=>{switch(e){case"ion-tab-bar":customElements.get(e)||customElements.define(e,TabBar);break}})}const defineCustomElement$5=defineCustomElement$1$4;/*!
|
|
190
190
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
191
|
-
*/const appCss="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}",App=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}componentDidLoad(){rIC(async()=>{const e=isPlatform(window,"hybrid");if(config$1.getBoolean("_testing")||Promise.resolve().then(()=>require("./index9-
|
|
191
|
+
*/const appCss="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}",App=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}componentDidLoad(){rIC(async()=>{const e=isPlatform(window,"hybrid");if(config$1.getBoolean("_testing")||Promise.resolve().then(()=>require("./index9-cf787c96.cjs")).then(o=>o.startTapClick(config$1)),config$1.getBoolean("statusTap",e)&&Promise.resolve().then(()=>require("./status-tap-3ef9ea2d.cjs")).then(o=>o.startStatusTap()),config$1.getBoolean("inputShims",needInputShims())){const o=isPlatform(window,"ios")?"ios":"android";Promise.resolve().then(()=>require("./input-shims-efeb3d80.cjs")).then(a=>a.startInputShims(config$1,o))}const r=await Promise.resolve().then(()=>hardwareBackButton);config$1.getBoolean("hardwareBackButton",e)?r.startHardwareBackButton():r.blockHardwareBackButton(),typeof window<"u"&&Promise.resolve().then(()=>keyboard2).then(o=>o.startKeyboardAssist(window)),Promise.resolve().then(()=>require("./focus-visible-fe5467a3.cjs")).then(o=>this.focusVisible=o.startFocusVisible())})}async setFocus(e){this.focusVisible&&this.focusVisible.setFocus(e)}render(){const e=getIonMode$2(this);return h(Host,{class:{[e]:!0,"ion-page":!0,"force-statusbar-padding":config$1.getBoolean("_forceStatusbarPadding")}})}get el(){return this}static get style(){return appCss}},[0,"ion-app",{setFocus:[64]}]),needInputShims=()=>!!(isPlatform(window,"ios")&&isPlatform(window,"mobile")||isPlatform(window,"android")&&isPlatform(window,"mobileweb")),rIC=t=>{"requestIdleCallback"in window?window.requestIdleCallback(t):setTimeout(t,32)};function defineCustomElement$1$3(){if(typeof customElements>"u")return;["ion-app"].forEach(e=>{switch(e){case"ion-app":customElements.get(e)||customElements.define(e,App);break}})}const defineCustomElement$4=defineCustomElement$1$3;let CACHED_MAP;const getIconMap=()=>{if(typeof window>"u")return new Map;if(!CACHED_MAP){const t=window;t.Ionicons=t.Ionicons||{},CACHED_MAP=t.Ionicons.map=t.Ionicons.map||new Map}return CACHED_MAP},getUrl=t=>{let e=getSrc(t.src);return e||(e=getName(t.name,t.icon,t.mode,t.ios,t.md),e?getNamedUrl(e,t):t.icon&&(e=getSrc(t.icon),e||(e=getSrc(t.icon[t.mode]),e))?e:null)},getNamedUrl=(t,e)=>{const r=getIconMap().get(t);if(r)return r;try{return getAssetPath(`svg/${t}.svg`)}catch{console.warn(`[Ionicons Warning]: Could not load icon with name "${t}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,e)}},getName=(t,e,r,o,a)=>(r=(r&&toLower(r))==="ios"?"ios":"md",o&&r==="ios"?t=toLower(o):a&&r==="md"?t=toLower(a):(!t&&e&&!isSrc(e)&&(t=e),isStr(t)&&(t=toLower(t))),!isStr(t)||t.trim()===""||t.replace(/[a-z]|-|\d/gi,"")!==""?null:t),getSrc=t=>isStr(t)&&(t=t.trim(),isSrc(t))?t:null,isSrc=t=>t.length>0&&/(\/|\.)/.test(t),isStr=t=>typeof t=="string",toLower=t=>t.toLowerCase(),inheritAttributes=(t,e=[])=>{const r={};return e.forEach(o=>{t.hasAttribute(o)&&(t.getAttribute(o)!==null&&(r[o]=t.getAttribute(o)),t.removeAttribute(o))}),r},isRTL=t=>t&&t.dir!==""?t.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",validateContent=t=>{const e=document.createElement("div");e.innerHTML=t;for(let o=e.childNodes.length-1;o>=0;o--)e.childNodes[o].nodeName.toLowerCase()!=="svg"&&e.removeChild(e.childNodes[o]);const r=e.firstElementChild;if(r&&r.nodeName.toLowerCase()==="svg"){const o=r.getAttribute("class")||"";if(r.setAttribute("class",(o+" s-ion-icon").trim()),isValid(r))return e.innerHTML}return""},isValid=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script")return!1;for(let e=0;e<t.attributes.length;e++){const r=t.attributes[e].name;if(isStr(r)&&r.toLowerCase().indexOf("on")===0)return!1}for(let e=0;e<t.childNodes.length;e++)if(!isValid(t.childNodes[e]))return!1}return!0},isSvgDataUrl=t=>t.startsWith("data:image/svg+xml"),isEncodedDataUrl=t=>t.indexOf(";utf8,")!==-1,ioniconContent=new Map,requests=new Map;let parser;const getSvgContent=(t,e)=>{let r=requests.get(t);if(!r)if(typeof fetch<"u"&&typeof document<"u")if(isSvgDataUrl(t)&&isEncodedDataUrl(t)){parser||(parser=new DOMParser);const a=parser.parseFromString(t,"text/html").querySelector("svg");return a&&ioniconContent.set(t,a.outerHTML),Promise.resolve()}else r=fetch(t).then(o=>{if(o.ok)return o.text().then(a=>{a&&e!==!1&&(a=validateContent(a)),ioniconContent.set(t,a||"")});ioniconContent.set(t,"")}),requests.set(t,r);else return ioniconContent.set(t,""),Promise.resolve();return r},iconCss=":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%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !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)}",Icon=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=getIonMode(),this.color=void 0,this.ios=void 0,this.md=void 0,this.flipRtl=void 0,this.name=void 0,this.src=void 0,this.icon=void 0,this.size=void 0,this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=inheritAttributes(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(e,r,o){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const a=this.io=new window.IntersectionObserver(c=>{c[0].isIntersecting&&(a.disconnect(),this.io=void 0,o())},{rootMargin:r});a.observe(e)}else o()}loadIcon(){if(this.isVisible){const e=getUrl(this);e&&(ioniconContent.has(e)?this.svgContent=ioniconContent.get(e):getSvgContent(e,this.sanitize).then(()=>this.svgContent=ioniconContent.get(e)),this.didLoadIcon=!0)}this.iconName=getName(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:e,iconName:r,inheritedAttributes:o,el:a}=this,c=this.mode||"md",u=r?(r.includes("arrow")||r.includes("chevron"))&&e!==!1:!1,d=e||u;return h(Host,Object.assign({role:"img",class:Object.assign(Object.assign({[c]:!0},createColorClasses(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":d,"icon-rtl":d&&isRTL(a)})},o),this.svgContent?h("div",{class:"icon-inner",innerHTML:this.svgContent}):h("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 iconCss}},[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]}]),getIonMode=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",createColorClasses=t=>t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null;function defineCustomElement$1$2(){if(typeof customElements>"u")return;["ion-icon"].forEach(e=>{switch(e){case"ion-icon":customElements.get(e)||customElements.define(e,Icon);break}})}const defineCustomElement$3=defineCustomElement$1$2;/*!
|
|
192
192
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
193
193
|
*/function getAnimationPosition(t,e,r,o){let a;if(r==="md"?a=t==="top"?8:-8:a=t==="top"?10:-10,e&&win){warnIfAnchorIsHidden(e,o);const c=e.getBoundingClientRect();return t==="top"?a+=c.bottom:t==="bottom"&&(a-=win.innerHeight-c.top),{top:`${a}px`,bottom:`${a}px`}}else return{top:`calc(${a}px + var(--ion-safe-area-top, 0px))`,bottom:`calc(${a}px - var(--ion-safe-area-bottom, 0px))`}}function warnIfAnchorIsHidden(t,e){t.offsetParent===null&&printIonWarning("The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",e)}const getOffsetForMiddlePosition=(t,e)=>Math.floor(t/2-e/2),iosEnterAnimation$1=(t,e)=>{const r=createAnimation(),o=createAnimation(),{position:a,top:c,bottom:u}=e,p=getElementRoot(t).querySelector(".toast-wrapper");switch(o.addElement(p),a){case"top":o.fromTo("transform","translateY(-100%)",`translateY(${c})`);break;case"middle":const g=getOffsetForMiddlePosition(t.clientHeight,p.clientHeight);p.style.top=`${g}px`,o.fromTo("opacity",.01,1);break;default:o.fromTo("transform","translateY(100%)",`translateY(${u})`);break}return r.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(o)},iosLeaveAnimation$1=(t,e)=>{const r=createAnimation(),o=createAnimation(),{position:a,top:c,bottom:u}=e,p=getElementRoot(t).querySelector(".toast-wrapper");switch(o.addElement(p),a){case"top":o.fromTo("transform",`translateY(${c})`,"translateY(-100%)");break;case"middle":o.fromTo("opacity",.99,0);break;default:o.fromTo("transform",`translateY(${u})`,"translateY(100%)");break}return r.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(o)},mdEnterAnimation$1=(t,e)=>{const r=createAnimation(),o=createAnimation(),{position:a,top:c,bottom:u}=e,p=getElementRoot(t).querySelector(".toast-wrapper");switch(o.addElement(p),a){case"top":p.style.setProperty("transform",`translateY(${c})`),o.fromTo("opacity",.01,1);break;case"middle":const g=getOffsetForMiddlePosition(t.clientHeight,p.clientHeight);p.style.top=`${g}px`,o.fromTo("opacity",.01,1);break;default:p.style.setProperty("transform",`translateY(${u})`),o.fromTo("opacity",.01,1);break}return r.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(o)},mdLeaveAnimation$1=t=>{const e=createAnimation(),r=createAnimation(),a=getElementRoot(t).querySelector(".toast-wrapper");return r.addElement(a).fromTo("opacity",.99,0),e.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(r)},createSwipeToDismissGesture=(t,e,r)=>{const o=getElementRoot(t).querySelector(".toast-wrapper"),a=t.clientHeight,c=o.getBoundingClientRect();let u=0;const d=.5,p=t.position==="middle"?.5:0,g=t.position==="top"?-1:1,b=getOffsetForMiddlePosition(a,c.height),x=[{offset:0,transform:`translateY(-${b+c.height}px)`},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:`translateY(${b+c.height}px)`}],w=createAnimation("toast-swipe-to-dismiss-animation").addElement(o).duration(100);switch(t.position){case"middle":u=a+c.height,w.keyframes(x),w.progressStart(!0,.5);break;case"top":u=c.bottom,w.keyframes([{offset:0,transform:`translateY(${e.top})`},{offset:1,transform:"translateY(-100%)"}]),w.progressStart(!0,0);break;case"bottom":default:u=a-c.top,w.keyframes([{offset:0,transform:`translateY(${e.bottom})`},{offset:1,transform:"translateY(100%)"}]),w.progressStart(!0,0);break}const y=E=>E*g/u,T=createGesture({el:o,gestureName:"toast-swipe-to-dismiss",gesturePriority:OVERLAY_GESTURE_PRIORITY,direction:"y",onMove:E=>{const O=p+y(E.deltaY);w.progressStep(O)},onEnd:E=>{const O=E.velocityY,A=(E.deltaY+O*1e3)/u*g;T.enable(!1);let L=!0,R=1,$=0,P=0;if(t.position==="middle"){L=A>=d/2||A<=-d/2,R=1,$=0;const W=o.getBoundingClientRect(),D=W.top-b,S=`${D}px`,F=E.deltaY<=0?-1:1,U=(b+W.height)*F,M=L?`${U}px`:"0px",V=[{offset:0,transform:`translateY(${S})`},{offset:1,transform:`translateY(${M})`}];w.keyframes(V),P=U-D}else L=A>=d,R=L?1:0,$=y(E.deltaY),P=(L?1-$:$)*u;const z=Math.min(Math.abs(P)/Math.abs(O),200);w.onFinish(()=>{L?(r(),w.destroy()):(t.position==="middle"?w.keyframes(x).progressStart(!0,.5):w.progressStart(!0,0),T.enable(!0))},{oneTimeCallback:!0}).progressEnd(R,$,z)}});return T},toastIosCss=":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, #f2f2f2);--border-radius:14px;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-850, #262626);--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{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)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",toastMdCss=":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, #333333);--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-50, #f2f2f2);--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, #e6e6e6)}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}",Toast=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=createEvent(this,"ionToastDidPresent",7),this.willPresent=createEvent(this,"ionToastWillPresent",7),this.willDismiss=createEvent(this,"ionToastWillDismiss",7),this.didDismiss=createEvent(this,"ionToastDidDismiss",7),this.didPresentShorthand=createEvent(this,"didPresent",7),this.willPresentShorthand=createEvent(this,"willPresent",7),this.willDismissShorthand=createEvent(this,"willDismiss",7),this.didDismissShorthand=createEvent(this,"didDismiss",7),this.delegateController=createDelegateController(this),this.lockController=createLockController(),this.triggerController=createTriggerController(),this.customHTMLEnabled=config$1.get("innerHTMLTemplatesEnabled",ENABLE_HTML_CONTENT_DEFAULT),this.presented=!1,this.dispatchCancelHandler=e=>{const r=e.detail.role;if(isCancel$2(r)){const o=this.getButtons().find(a=>a.role==="cancel");this.callButtonHandler(o)}},this.createSwipeGesture=e=>{(this.gesture=createSwipeToDismissGesture(this.el,e,()=>{this.dismiss(void 0,GESTURE)})).enable(!0)},this.destroySwipeGesture=()=>{const{gesture:e}=this;e!==void 0&&(e.destroy(),this.gesture=void 0)},this.prefersSwipeGesture=()=>{const{swipeGesture:e}=this;return e==="vertical"},this.revealContentToScreenReader=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.color=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.duration=config$1.getNumber("toastDuration",0),this.header=void 0,this.layout="baseline",this.message=void 0,this.keyboardClose=!1,this.position="bottom",this.positionAnchor=void 0,this.buttons=void 0,this.translucent=!1,this.animated=!0,this.icon=void 0,this.htmlAttributes=void 0,this.swipeGesture=void 0,this.isOpen=!1,this.trigger=void 0}swipeGestureChanged(){this.destroySwipeGesture(),this.presented&&this.prefersSwipeGesture()&&this.createSwipeGesture(this.lastPresentedPosition)}onIsOpenChange(e,r){e===!0&&r===!1?this.present():e===!1&&r===!0&&this.dismiss()}triggerChanged(){const{trigger:e,el:r,triggerController:o}=this;e&&o.addClickListener(r,e)}connectedCallback(){prepareOverlay(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){setOverlayId(this.el)}componentDidLoad(){this.isOpen===!0&&raf(()=>this.present()),this.triggerChanged()}async present(){const e=await this.lockController.lock();await this.delegateController.attachViewToDom();const{el:r,position:o}=this,a=this.getAnchorElement(),c=getAnimationPosition(o,a,getIonMode$2(this),r);this.lastPresentedPosition=c,await present(this,"toastEnter",iosEnterAnimation$1,mdEnterAnimation$1,{position:o,top:c.top,bottom:c.bottom}),this.revealContentToScreenReader=!0,this.duration>0&&(this.durationTimeout=setTimeout(()=>this.dismiss(void 0,"timeout"),this.duration)),this.prefersSwipeGesture()&&this.createSwipeGesture(c),e()}async dismiss(e,r){var o,a;const c=await this.lockController.lock(),{durationTimeout:u,position:d,lastPresentedPosition:p}=this;u&&clearTimeout(u);const g=await dismiss(this,e,r,"toastLeave",iosLeaveAnimation$1,mdLeaveAnimation$1,{position:d,top:(o=p==null?void 0:p.top)!==null&&o!==void 0?o:"",bottom:(a=p==null?void 0:p.bottom)!==null&&a!==void 0?a:""});return g&&(this.delegateController.removeViewFromDom(),this.revealContentToScreenReader=!1),this.lastPresentedPosition=void 0,this.destroySwipeGesture(),c(),g}onDidDismiss(){return eventMethod(this.el,"ionToastDidDismiss")}onWillDismiss(){return eventMethod(this.el,"ionToastWillDismiss")}getButtons(){return this.buttons?this.buttons.map(r=>typeof r=="string"?{text:r}:r):[]}getAnchorElement(){const{position:e,positionAnchor:r,el:o}=this;if(r!==void 0){if(e==="middle"&&r!==void 0){printIonWarning('The positionAnchor property is ignored when using position="middle".',this.el);return}if(typeof r=="string"){const a=document.getElementById(r);if(a===null){printIonWarning(`An anchor element with an ID of "${r}" was not found in the DOM.`,o);return}return a}if(r instanceof H)return r;printIonWarning("Invalid positionAnchor value:",r,o)}}async buttonClick(e){const r=e.role;return isCancel$2(r)?this.dismiss(void 0,r):await this.callButtonHandler(e)?this.dismiss(void 0,r):Promise.resolve()}async callButtonHandler(e){if(e!=null&&e.handler)try{if(await safeCall(e.handler)===!1)return!1}catch(r){console.error(r)}return!0}renderButtons(e,r){if(e.length===0)return;const o=getIonMode$2(this),a={"toast-button-group":!0,[`toast-button-group-${r}`]:!0};return h("div",{class:a},e.map(c=>h("button",Object.assign({},c.htmlAttributes,{type:"button",class:buttonClass(c),tabIndex:0,onClick:()=>this.buttonClick(c),part:buttonPart(c)}),h("div",{class:"toast-button-inner"},c.icon&&h("ion-icon",{"aria-hidden":"true",icon:c.icon,slot:c.text===void 0?"icon-only":void 0,class:"toast-button-icon"}),c.text),o==="md"&&h("ion-ripple-effect",{type:c.icon!==void 0&&c.text===void 0?"unbounded":"bounded"}))))}renderToastMessage(e,r=null){const{customHTMLEnabled:o,message:a}=this;return o?h("div",{key:e,"aria-hidden":r,class:"toast-message",part:"message",innerHTML:sanitizeDOMString(a)}):h("div",{key:e,"aria-hidden":r,class:"toast-message",part:"message"},a)}renderHeader(e,r=null){return h("div",{key:e,class:"toast-header","aria-hidden":r,part:"header"},this.header)}render(){const{layout:e,el:r,revealContentToScreenReader:o,header:a,message:c}=this,u=this.getButtons(),d=u.filter(x=>x.side==="start"),p=u.filter(x=>x.side!=="start"),g=getIonMode$2(this),b={"toast-wrapper":!0,[`toast-${this.position}`]:!0,[`toast-layout-${e}`]:!0};return e==="stacked"&&d.length>0&&p.length>0&&printIonWarning("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",r),h(Host,Object.assign({tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:createColorClasses$1(this.color,Object.assign(Object.assign({[g]:!0},getClassMap(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),h("div",{class:b},h("div",{class:"toast-container",part:"container"},this.renderButtons(d,"start"),this.icon!==void 0&&h("ion-icon",{class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),h("div",{class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!o&&a!==void 0&&this.renderHeader("oldHeader","true"),!o&&c!==void 0&&this.renderToastMessage("oldMessage","true"),o&&a!==void 0&&this.renderHeader("header"),o&&c!==void 0&&this.renderToastMessage("header")),this.renderButtons(p,"end"))))}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:toastIosCss,md:toastMdCss}}},[33,"ion-toast",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],color:[513],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],duration:[2],header:[1],layout:[1],message:[1],keyboardClose:[4,"keyboard-close"],position:[1],positionAnchor:[1,"position-anchor"],buttons:[16],translucent:[4],animated:[4],icon:[1],htmlAttributes:[16],swipeGesture:[1,"swipe-gesture"],isOpen:[4,"is-open"],trigger:[1],revealContentToScreenReader:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),buttonClass=t=>Object.assign({"toast-button":!0,"toast-button-icon-only":t.icon!==void 0&&t.text===void 0,[`toast-button-${t.role}`]:t.role!==void 0,"ion-focusable":!0,"ion-activatable":!0},getClassMap(t.cssClass)),buttonPart=t=>isCancel$2(t.role)?"button cancel":"button";function defineCustomElement$1$1(){if(typeof customElements>"u")return;["ion-toast","ion-icon","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-toast":customElements.get(e)||customElements.define(e,Toast);break;case"ion-icon":customElements.get(e)||defineCustomElement$T();break;case"ion-ripple-effect":customElements.get(e)||defineCustomElement$Q();break}})}const defineCustomElement$2=defineCustomElement$1$1;/*!
|
|
194
194
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
@@ -246,7 +246,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
246
246
|
`:">",c)};Renderer$1.prototype.renderInline=function(t,e,r){for(var o,a="",c=this.rules,u=0,d=t.length;u<d;u++)o=t[u].type,typeof c[o]<"u"?a+=c[o](t,u,e,r,this):a+=this.renderToken(t,u,e);return a};Renderer$1.prototype.renderInlineAsText=function(t,e,r){for(var o="",a=0,c=t.length;a<c;a++)t[a].type==="text"?o+=t[a].content:t[a].type==="image"?o+=this.renderInlineAsText(t[a].children,e,r):t[a].type==="softbreak"&&(o+=`
|
|
247
247
|
`);return o};Renderer$1.prototype.render=function(t,e,r){var o,a,c,u="",d=this.rules;for(o=0,a=t.length;o<a;o++)c=t[o].type,c==="inline"?u+=this.renderInline(t[o].children,e,r):typeof d[c]<"u"?u+=d[c](t,o,e,r,this):u+=this.renderToken(t,o,e,r);return u};var renderer=Renderer$1;function Ruler$3(){this.__rules__=[],this.__cache__=null}Ruler$3.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Ruler$3.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(o){o.enabled&&(r&&o.alt.indexOf(r)<0||t.__cache__[r].push(o.fn))})})};Ruler$3.prototype.at=function(t,e,r){var o=this.__find__(t),a=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=a.alt||[],this.__cache__=null};Ruler$3.prototype.before=function(t,e,r,o){var a=this.__find__(t),c=o||{};if(a===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(a,0,{name:e,enabled:!0,fn:r,alt:c.alt||[]}),this.__cache__=null};Ruler$3.prototype.after=function(t,e,r,o){var a=this.__find__(t),c=o||{};if(a===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(a+1,0,{name:e,enabled:!0,fn:r,alt:c.alt||[]}),this.__cache__=null};Ruler$3.prototype.push=function(t,e,r){var o=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};Ruler$3.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(o){var a=this.__find__(o);if(a<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[a].enabled=!0,r.push(o)},this),this.__cache__=null,r};Ruler$3.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,e)};Ruler$3.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(o){var a=this.__find__(o);if(a<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[a].enabled=!1,r.push(o)},this),this.__cache__=null,r};Ruler$3.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var ruler=Ruler$3,NEWLINES_RE=/\r\n?|\n/g,NULL_RE=/\0/g,normalize=function t(e){var r;r=e.src.replace(NEWLINES_RE,`
|
|
248
248
|
`),r=r.replace(NULL_RE,"�"),e.src=r},block=function t(e){var r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},inline=function t(e){var r=e.tokens,o,a,c;for(a=0,c=r.length;a<c;a++)o=r[a],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},arrayReplaceAt=utils$1.arrayReplaceAt;function isLinkOpen$1(t){return/^<a[>\s]/i.test(t)}function isLinkClose$1(t){return/^<\/a\s*>/i.test(t)}var linkify$1=function t(e){var r,o,a,c,u,d,p,g,b,x,w,y,I,k,T,E,O=e.tokens,A;if(e.md.options.linkify){for(o=0,a=O.length;o<a;o++)if(!(O[o].type!=="inline"||!e.md.linkify.pretest(O[o].content)))for(c=O[o].children,I=0,r=c.length-1;r>=0;r--){if(d=c[r],d.type==="link_close"){for(r--;c[r].level!==d.level&&c[r].type!=="link_open";)r--;continue}if(d.type==="html_inline"&&(isLinkOpen$1(d.content)&&I>0&&I--,isLinkClose$1(d.content)&&I++),!(I>0)&&d.type==="text"&&e.md.linkify.test(d.content)){for(b=d.content,A=e.md.linkify.match(b),p=[],y=d.level,w=0,A.length>0&&A[0].index===0&&r>0&&c[r-1].type==="text_special"&&(A=A.slice(1)),g=0;g<A.length;g++)k=A[g].url,T=e.md.normalizeLink(k),e.md.validateLink(T)&&(E=A[g].text,A[g].schema?A[g].schema==="mailto:"&&!/^mailto:/i.test(E)?E=e.md.normalizeLinkText("mailto:"+E).replace(/^mailto:/,""):E=e.md.normalizeLinkText(E):E=e.md.normalizeLinkText("http://"+E).replace(/^http:\/\//,""),x=A[g].index,x>w&&(u=new e.Token("text","",0),u.content=b.slice(w,x),u.level=y,p.push(u)),u=new e.Token("link_open","a",1),u.attrs=[["href",T]],u.level=y++,u.markup="linkify",u.info="auto",p.push(u),u=new e.Token("text","",0),u.content=E,u.level=y,p.push(u),u=new e.Token("link_close","a",-1),u.level=--y,u.markup="linkify",u.info="auto",p.push(u),w=A[g].lastIndex);w<b.length&&(u=new e.Token("text","",0),u.content=b.slice(w),u.level=y,p.push(u)),O[o].children=c=arrayReplaceAt(c,r,p)}}}},RARE_RE=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,SCOPED_ABBR_TEST_RE=/\((c|tm|r)\)/i,SCOPED_ABBR_RE=/\((c|tm|r)\)/ig,SCOPED_ABBR={c:"©",r:"®",tm:"™"};function replaceFn(t,e){return SCOPED_ABBR[e.toLowerCase()]}function replace_scoped(t){var e,r,o=0;for(e=t.length-1;e>=0;e--)r=t[e],r.type==="text"&&!o&&(r.content=r.content.replace(SCOPED_ABBR_RE,replaceFn)),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}function replace_rare(t){var e,r,o=0;for(e=t.length-1;e>=0;e--)r=t[e],r.type==="text"&&!o&&RARE_RE.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}var replacements=function t(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(SCOPED_ABBR_TEST_RE.test(e.tokens[r].content)&&replace_scoped(e.tokens[r].children),RARE_RE.test(e.tokens[r].content)&&replace_rare(e.tokens[r].children))},isWhiteSpace$1=utils$1.isWhiteSpace,isPunctChar$1=utils$1.isPunctChar,isMdAsciiPunct$1=utils$1.isMdAsciiPunct,QUOTE_TEST_RE=/['"]/,QUOTE_RE=/['"]/g,APOSTROPHE="’";function replaceAt(t,e,r){return t.slice(0,e)+r+t.slice(e+1)}function process_inlines(t,e){var r,o,a,c,u,d,p,g,b,x,w,y,I,k,T,E,O,A,L,R,$;for(L=[],r=0;r<t.length;r++){for(o=t[r],p=t[r].level,O=L.length-1;O>=0&&!(L[O].level<=p);O--);if(L.length=O+1,o.type==="text"){a=o.content,u=0,d=a.length;e:for(;u<d&&(QUOTE_RE.lastIndex=u,c=QUOTE_RE.exec(a),!!c);){if(T=E=!0,u=c.index+1,A=c[0]==="'",b=32,c.index-1>=0)b=a.charCodeAt(c.index-1);else for(O=r-1;O>=0&&!(t[O].type==="softbreak"||t[O].type==="hardbreak");O--)if(t[O].content){b=t[O].content.charCodeAt(t[O].content.length-1);break}if(x=32,u<d)x=a.charCodeAt(u);else for(O=r+1;O<t.length&&!(t[O].type==="softbreak"||t[O].type==="hardbreak");O++)if(t[O].content){x=t[O].content.charCodeAt(0);break}if(w=isMdAsciiPunct$1(b)||isPunctChar$1(String.fromCharCode(b)),y=isMdAsciiPunct$1(x)||isPunctChar$1(String.fromCharCode(x)),I=isWhiteSpace$1(b),k=isWhiteSpace$1(x),k?T=!1:y&&(I||w||(T=!1)),I?E=!1:w&&(k||y||(E=!1)),x===34&&c[0]==='"'&&b>=48&&b<=57&&(E=T=!1),T&&E&&(T=w,E=y),!T&&!E){A&&(o.content=replaceAt(o.content,c.index,APOSTROPHE));continue}if(E){for(O=L.length-1;O>=0&&(g=L[O],!(L[O].level<p));O--)if(g.single===A&&L[O].level===p){g=L[O],A?(R=e.md.options.quotes[2],$=e.md.options.quotes[3]):(R=e.md.options.quotes[0],$=e.md.options.quotes[1]),o.content=replaceAt(o.content,c.index,$),t[g.token].content=replaceAt(t[g.token].content,g.pos,R),u+=$.length-1,g.token===r&&(u+=R.length-1),a=o.content,d=a.length,L.length=O;continue e}}T?L.push({token:r,pos:c.index,single:A,level:p}):E&&A&&(o.content=replaceAt(o.content,c.index,APOSTROPHE))}}}}var smartquotes=function t(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type!=="inline"||!QUOTE_TEST_RE.test(e.tokens[r].content)||process_inlines(e.tokens[r].children,e)},text_join=function t(e){var r,o,a,c,u,d,p=e.tokens;for(r=0,o=p.length;r<o;r++)if(p[r].type==="inline"){for(a=p[r].children,u=a.length,c=0;c<u;c++)a[c].type==="text_special"&&(a[c].type="text");for(c=d=0;c<u;c++)a[c].type==="text"&&c+1<u&&a[c+1].type==="text"?a[c+1].content=a[c].content+a[c+1].content:(c!==d&&(a[d]=a[c]),d++);c!==d&&(a.length=d)}};function Token$3(t,e,r){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Token$3.prototype.attrIndex=function t(e){var r,o,a;if(!this.attrs)return-1;for(r=this.attrs,o=0,a=r.length;o<a;o++)if(r[o][0]===e)return o;return-1};Token$3.prototype.attrPush=function t(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Token$3.prototype.attrSet=function t(e,r){var o=this.attrIndex(e),a=[e,r];o<0?this.attrPush(a):this.attrs[o]=a};Token$3.prototype.attrGet=function t(e){var r=this.attrIndex(e),o=null;return r>=0&&(o=this.attrs[r][1]),o};Token$3.prototype.attrJoin=function t(e,r){var o=this.attrIndex(e);o<0?this.attrPush([e,r]):this.attrs[o][1]=this.attrs[o][1]+" "+r};var token=Token$3,Token$2=token;function StateCore(t,e,r){this.src=t,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}StateCore.prototype.Token=Token$2;var state_core=StateCore,Ruler$2=ruler,_rules$2=[["normalize",normalize],["block",block],["inline",inline],["linkify",linkify$1],["replacements",replacements],["smartquotes",smartquotes],["text_join",text_join]];function Core(){this.ruler=new Ruler$2;for(var t=0;t<_rules$2.length;t++)this.ruler.push(_rules$2[t][0],_rules$2[t][1])}Core.prototype.process=function(t){var e,r,o;for(o=this.ruler.getRules(""),e=0,r=o.length;e<r;e++)o[e](t)};Core.prototype.State=state_core;var parser_core=Core,isSpace$a=utils$1.isSpace;function getLine(t,e){var r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(r,o)}function escapedSplit(t){var e=[],r=0,o=t.length,a,c=!1,u=0,d="";for(a=t.charCodeAt(r);r<o;)a===124&&(c?(d+=t.substring(u,r-1),u=r):(e.push(d+t.substring(u,r)),d="",u=r+1)),c=a===92,r++,a=t.charCodeAt(r);return e.push(d+t.substring(u)),e}var table=function t(e,r,o,a){var c,u,d,p,g,b,x,w,y,I,k,T,E,O,A,L,R,$;if(r+2>o||(b=r+1,e.sCount[b]<e.blkIndent)||e.sCount[b]-e.blkIndent>=4||(d=e.bMarks[b]+e.tShift[b],d>=e.eMarks[b])||(R=e.src.charCodeAt(d++),R!==124&&R!==45&&R!==58)||d>=e.eMarks[b]||($=e.src.charCodeAt(d++),$!==124&&$!==45&&$!==58&&!isSpace$a($))||R===45&&isSpace$a($))return!1;for(;d<e.eMarks[b];){if(c=e.src.charCodeAt(d),c!==124&&c!==45&&c!==58&&!isSpace$a(c))return!1;d++}for(u=getLine(e,r+1),x=u.split("|"),I=[],p=0;p<x.length;p++){if(k=x[p].trim(),!k){if(p===0||p===x.length-1)continue;return!1}if(!/^:?-+:?$/.test(k))return!1;k.charCodeAt(k.length-1)===58?I.push(k.charCodeAt(0)===58?"center":"right"):k.charCodeAt(0)===58?I.push("left"):I.push("")}if(u=getLine(e,r).trim(),u.indexOf("|")===-1||e.sCount[r]-e.blkIndent>=4||(x=escapedSplit(u),x.length&&x[0]===""&&x.shift(),x.length&&x[x.length-1]===""&&x.pop(),w=x.length,w===0||w!==I.length))return!1;if(a)return!0;for(O=e.parentType,e.parentType="table",L=e.md.block.ruler.getRules("blockquote"),y=e.push("table_open","table",1),y.map=T=[r,0],y=e.push("thead_open","thead",1),y.map=[r,r+1],y=e.push("tr_open","tr",1),y.map=[r,r+1],p=0;p<x.length;p++)y=e.push("th_open","th",1),I[p]&&(y.attrs=[["style","text-align:"+I[p]]]),y=e.push("inline","",0),y.content=x[p].trim(),y.children=[],y=e.push("th_close","th",-1);for(y=e.push("tr_close","tr",-1),y=e.push("thead_close","thead",-1),b=r+2;b<o&&!(e.sCount[b]<e.blkIndent);b++){for(A=!1,p=0,g=L.length;p<g;p++)if(L[p](e,b,o,!0)){A=!0;break}if(A||(u=getLine(e,b).trim(),!u)||e.sCount[b]-e.blkIndent>=4)break;for(x=escapedSplit(u),x.length&&x[0]===""&&x.shift(),x.length&&x[x.length-1]===""&&x.pop(),b===r+2&&(y=e.push("tbody_open","tbody",1),y.map=E=[r+2,0]),y=e.push("tr_open","tr",1),y.map=[b,b+1],p=0;p<w;p++)y=e.push("td_open","td",1),I[p]&&(y.attrs=[["style","text-align:"+I[p]]]),y=e.push("inline","",0),y.content=x[p]?x[p].trim():"",y.children=[],y=e.push("td_close","td",-1);y=e.push("tr_close","tr",-1)}return E&&(y=e.push("tbody_close","tbody",-1),E[1]=b),y=e.push("table_close","table",-1),T[1]=b,e.parentType=O,e.line=b,!0},code$3=function t(e,r,o){var a,c,u;if(e.sCount[r]-e.blkIndent<4)return!1;for(c=a=r+1;a<o;){if(e.isEmpty(a)){a++;continue}if(e.sCount[a]-e.blkIndent>=4){a++,c=a;continue}break}return e.line=c,u=e.push("code_block","code",0),u.content=e.getLines(r,c,4+e.blkIndent,!1)+`
|
|
249
|
-
`,u.map=[r,e.line],!0},fence=function t(e,r,o,a){var c,u,d,p,g,b,x,w=!1,y=e.bMarks[r]+e.tShift[r],I=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||y+3>I||(c=e.src.charCodeAt(y),c!==126&&c!==96)||(g=y,y=e.skipChars(y,c),u=y-g,u<3)||(x=e.src.slice(g,y),d=e.src.slice(y,I),c===96&&d.indexOf(String.fromCharCode(c))>=0))return!1;if(a)return!0;for(p=r;p++,!(p>=o||(y=g=e.bMarks[p]+e.tShift[p],I=e.eMarks[p],y<I&&e.sCount[p]<e.blkIndent));)if(e.src.charCodeAt(y)===c&&!(e.sCount[p]-e.blkIndent>=4)&&(y=e.skipChars(y,c),!(y-g<u)&&(y=e.skipSpaces(y),!(y<I)))){w=!0;break}return u=e.sCount[r],e.line=p+(w?1:0),b=e.push("fence","code",0),b.info=d,b.content=e.getLines(r+1,p,u,!0),b.markup=x,b.map=[r,e.line],!0},isSpace$9=utils$1.isSpace,blockquote=function t(e,r,o,a){var c,u,d,p,g,b,x,w,y,I,k,T,E,O,A,L,R,$,P,z,W=e.lineMax,D=e.bMarks[r]+e.tShift[r],S=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(D)!==62)return!1;if(a)return!0;for(I=[],k=[],O=[],A=[],$=e.md.block.ruler.getRules("blockquote"),E=e.parentType,e.parentType="blockquote",w=r;w<o&&(z=e.sCount[w]<e.blkIndent,D=e.bMarks[w]+e.tShift[w],S=e.eMarks[w],!(D>=S));w++){if(e.src.charCodeAt(D++)===62&&!z){for(p=e.sCount[w]+1,e.src.charCodeAt(D)===32?(D++,p++,c=!1,L=!0):e.src.charCodeAt(D)===9?(L=!0,(e.bsCount[w]+p)%4===3?(D++,p++,c=!1):c=!0):L=!1,y=p,I.push(e.bMarks[w]),e.bMarks[w]=D;D<S&&(u=e.src.charCodeAt(D),isSpace$9(u));){u===9?y+=4-(y+e.bsCount[w]+(c?1:0))%4:y++;D++}b=D>=S,k.push(e.bsCount[w]),e.bsCount[w]=e.sCount[w]+1+(L?1:0),O.push(e.sCount[w]),e.sCount[w]=y-p,A.push(e.tShift[w]),e.tShift[w]=D-e.bMarks[w];continue}if(b)break;for(R=!1,d=0,g=$.length;d<g;d++)if($[d](e,w,o,!0)){R=!0;break}if(R){e.lineMax=w,e.blkIndent!==0&&(I.push(e.bMarks[w]),k.push(e.bsCount[w]),A.push(e.tShift[w]),O.push(e.sCount[w]),e.sCount[w]-=e.blkIndent);break}I.push(e.bMarks[w]),k.push(e.bsCount[w]),A.push(e.tShift[w]),O.push(e.sCount[w]),e.sCount[w]=-1}for(T=e.blkIndent,e.blkIndent=0,P=e.push("blockquote_open","blockquote",1),P.markup=">",P.map=x=[r,0],e.md.block.tokenize(e,r,w),P=e.push("blockquote_close","blockquote",-1),P.markup=">",e.lineMax=W,e.parentType=E,x[1]=e.line,d=0;d<A.length;d++)e.bMarks[d+r]=I[d],e.tShift[d+r]=A[d],e.sCount[d+r]=O[d],e.bsCount[d+r]=k[d];return e.blkIndent=T,!0},isSpace$8=utils$1.isSpace,hr=function t(e,r,o,a){var c,u,d,p,g=e.bMarks[r]+e.tShift[r],b=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(c=e.src.charCodeAt(g++),c!==42&&c!==45&&c!==95))return!1;for(u=1;g<b;){if(d=e.src.charCodeAt(g++),d!==c&&!isSpace$8(d))return!1;d===c&&u++}return u<3?!1:(a||(e.line=r+1,p=e.push("hr","hr",0),p.map=[r,e.line],p.markup=Array(u+1).join(String.fromCharCode(c))),!0)},isSpace$7=utils$1.isSpace;function skipBulletListMarker(t,e){var r,o,a,c;return o=t.bMarks[e]+t.tShift[e],a=t.eMarks[e],r=t.src.charCodeAt(o++),r!==42&&r!==45&&r!==43||o<a&&(c=t.src.charCodeAt(o),!isSpace$7(c))?-1:o}function skipOrderedListMarker(t,e){var r,o=t.bMarks[e]+t.tShift[e],a=o,c=t.eMarks[e];if(a+1>=c||(r=t.src.charCodeAt(a++),r<48||r>57))return-1;for(;;){if(a>=c)return-1;if(r=t.src.charCodeAt(a++),r>=48&&r<=57){if(a-o>=10)return-1;continue}if(r===41||r===46)break;return-1}return a<c&&(r=t.src.charCodeAt(a),!isSpace$7(r))?-1:a}function markTightParagraphs(t,e){var r,o,a=t.level+2;for(r=e+2,o=t.tokens.length-2;r<o;r++)t.tokens[r].level===a&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}var list=function t(e,r,o,a){var c,u,d,p,g,b,x,w,y,I,k,T,E,O,A,L,R,$,P,z,W,D,S,F,U,M,V,G=r,Q=!1,fe=!0;if(e.sCount[G]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[G]-e.listIndent>=4&&e.sCount[G]<e.blkIndent)return!1;if(a&&e.parentType==="paragraph"&&e.sCount[G]>=e.blkIndent&&(Q=!0),(D=skipOrderedListMarker(e,G))>=0){if(x=!0,F=e.bMarks[G]+e.tShift[G],E=Number(e.src.slice(F,D-1)),Q&&E!==1)return!1}else if((D=skipBulletListMarker(e,G))>=0)x=!1;else return!1;if(Q&&e.skipSpaces(D)>=e.eMarks[G])return!1;if(a)return!0;for(T=e.src.charCodeAt(D-1),k=e.tokens.length,x?(V=e.push("ordered_list_open","ol",1),E!==1&&(V.attrs=[["start",E]])):V=e.push("bullet_list_open","ul",1),V.map=I=[G,0],V.markup=String.fromCharCode(T),S=!1,M=e.md.block.ruler.getRules("list"),R=e.parentType,e.parentType="list";G<o;){for(W=D,O=e.eMarks[G],b=A=e.sCount[G]+D-(e.bMarks[G]+e.tShift[G]);W<O;){if(c=e.src.charCodeAt(W),c===9)A+=4-(A+e.bsCount[G])%4;else if(c===32)A++;else break;W++}if(u=W,u>=O?g=1:g=A-b,g>4&&(g=1),p=b+g,V=e.push("list_item_open","li",1),V.markup=String.fromCharCode(T),V.map=w=[G,0],x&&(V.info=e.src.slice(F,D-1)),z=e.tight,P=e.tShift[G],$=e.sCount[G],L=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=p,e.tight=!0,e.tShift[G]=u-e.bMarks[G],e.sCount[G]=A,u>=O&&e.isEmpty(G+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,G,o,!0),(!e.tight||S)&&(fe=!1),S=e.line-G>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=L,e.tShift[G]=P,e.sCount[G]=$,e.tight=z,V=e.push("list_item_close","li",-1),V.markup=String.fromCharCode(T),G=e.line,w[1]=G,G>=o||e.sCount[G]<e.blkIndent||e.sCount[G]-e.blkIndent>=4)break;for(U=!1,d=0,y=M.length;d<y;d++)if(M[d](e,G,o,!0)){U=!0;break}if(U)break;if(x){if(D=skipOrderedListMarker(e,G),D<0)break;F=e.bMarks[G]+e.tShift[G]}else if(D=skipBulletListMarker(e,G),D<0)break;if(T!==e.src.charCodeAt(D-1))break}return x?V=e.push("ordered_list_close","ol",-1):V=e.push("bullet_list_close","ul",-1),V.markup=String.fromCharCode(T),I[1]=G,e.line=G,e.parentType=R,fe&&markTightParagraphs(e,k),!0},normalizeReference$2=utils$1.normalizeReference,isSpace$6=utils$1.isSpace,reference=function t(e,r,o,a){var c,u,d,p,g,b,x,w,y,I,k,T,E,O,A,L,R=0,$=e.bMarks[r]+e.tShift[r],P=e.eMarks[r],z=r+1;if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt($)!==91)return!1;for(;++$<P;)if(e.src.charCodeAt($)===93&&e.src.charCodeAt($-1)!==92){if($+1===P||e.src.charCodeAt($+1)!==58)return!1;break}for(p=e.lineMax,A=e.md.block.ruler.getRules("reference"),I=e.parentType,e.parentType="reference";z<p&&!e.isEmpty(z);z++)if(!(e.sCount[z]-e.blkIndent>3)&&!(e.sCount[z]<0)){for(O=!1,b=0,x=A.length;b<x;b++)if(A[b](e,z,p,!0)){O=!0;break}if(O)break}for(E=e.getLines(r,z,e.blkIndent,!1).trim(),P=E.length,$=1;$<P;$++){if(c=E.charCodeAt($),c===91)return!1;if(c===93){y=$;break}else c===10?R++:c===92&&($++,$<P&&E.charCodeAt($)===10&&R++)}if(y<0||E.charCodeAt(y+1)!==58)return!1;for($=y+2;$<P;$++)if(c=E.charCodeAt($),c===10)R++;else if(!isSpace$6(c))break;if(k=e.md.helpers.parseLinkDestination(E,$,P),!k.ok||(g=e.md.normalizeLink(k.str),!e.md.validateLink(g)))return!1;for($=k.pos,R+=k.lines,u=$,d=R,T=$;$<P;$++)if(c=E.charCodeAt($),c===10)R++;else if(!isSpace$6(c))break;for(k=e.md.helpers.parseLinkTitle(E,$,P),$<P&&T!==$&&k.ok?(L=k.str,$=k.pos,R+=k.lines):(L="",$=u,R=d);$<P&&(c=E.charCodeAt($),!!isSpace$6(c));)$++;if($<P&&E.charCodeAt($)!==10&&L)for(L="",$=u,R=d;$<P&&(c=E.charCodeAt($),!!isSpace$6(c));)$++;return $<P&&E.charCodeAt($)!==10||(w=normalizeReference$2(E.slice(1,y)),!w)?!1:(a||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[w]>"u"&&(e.env.references[w]={title:L,href:g}),e.parentType=I,e.line=r+R+1),!0)},html_blocks=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],html_re={},attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",processing="<[?][\\s\\S]*?[?]>",declaration="<![A-Z]+\\s+[^>]*>",cdata="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",HTML_TAG_RE$1=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment+"|"+processing+"|"+declaration+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE$1=new RegExp("^(?:"+open_tag+"|"+close_tag+")");html_re.HTML_TAG_RE=HTML_TAG_RE$1;html_re.HTML_OPEN_CLOSE_TAG_RE=HTML_OPEN_CLOSE_TAG_RE$1;var block_names=html_blocks,HTML_OPEN_CLOSE_TAG_RE=html_re.HTML_OPEN_CLOSE_TAG_RE,HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+block_names.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]],html_block=function t(e,r,o,a){var c,u,d,p,g=e.bMarks[r]+e.tShift[r],b=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(g)!==60)return!1;for(p=e.src.slice(g,b),c=0;c<HTML_SEQUENCES.length&&!HTML_SEQUENCES[c][0].test(p);c++);if(c===HTML_SEQUENCES.length)return!1;if(a)return HTML_SEQUENCES[c][2];if(u=r+1,!HTML_SEQUENCES[c][1].test(p)){for(;u<o&&!(e.sCount[u]<e.blkIndent);u++)if(g=e.bMarks[u]+e.tShift[u],b=e.eMarks[u],p=e.src.slice(g,b),HTML_SEQUENCES[c][1].test(p)){p.length!==0&&u++;break}}return e.line=u,d=e.push("html_block","",0),d.map=[r,u],d.content=e.getLines(r,u,e.blkIndent,!0),!0},isSpace$5=utils$1.isSpace,heading=function t(e,r,o,a){var c,u,d,p,g=e.bMarks[r]+e.tShift[r],b=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(c=e.src.charCodeAt(g),c!==35||g>=b))return!1;for(u=1,c=e.src.charCodeAt(++g);c===35&&g<b&&u<=6;)u++,c=e.src.charCodeAt(++g);return u>6||g<b&&!isSpace$5(c)?!1:(a||(b=e.skipSpacesBack(b,g),d=e.skipCharsBack(b,35,g),d>g&&isSpace$5(e.src.charCodeAt(d-1))&&(b=d),e.line=r+1,p=e.push("heading_open","h"+String(u),1),p.markup="########".slice(0,u),p.map=[r,e.line],p=e.push("inline","",0),p.content=e.src.slice(g,b).trim(),p.map=[r,e.line],p.children=[],p=e.push("heading_close","h"+String(u),-1),p.markup="########".slice(0,u)),!0)},lheading=function t(e,r,o){var a,c,u,d,p,g,b,x,w,y=r+1,I,k=e.md.block.ruler.getRules("paragraph");if(e.sCount[r]-e.blkIndent>=4)return!1;for(I=e.parentType,e.parentType="paragraph";y<o&&!e.isEmpty(y);y++)if(!(e.sCount[y]-e.blkIndent>3)){if(e.sCount[y]>=e.blkIndent&&(g=e.bMarks[y]+e.tShift[y],b=e.eMarks[y],g<b&&(w=e.src.charCodeAt(g),(w===45||w===61)&&(g=e.skipChars(g,w),g=e.skipSpaces(g),g>=b)))){x=w===61?1:2;break}if(!(e.sCount[y]<0)){for(c=!1,u=0,d=k.length;u<d;u++)if(k[u](e,y,o,!0)){c=!0;break}if(c)break}}return x?(a=e.getLines(r,y,e.blkIndent,!1).trim(),e.line=y+1,p=e.push("heading_open","h"+String(x),1),p.markup=String.fromCharCode(w),p.map=[r,e.line],p=e.push("inline","",0),p.content=a,p.map=[r,e.line-1],p.children=[],p=e.push("heading_close","h"+String(x),-1),p.markup=String.fromCharCode(w),e.parentType=I,!0):!1},paragraph=function t(e,r,o){var a,c,u,d,p,g,b=r+1,x=e.md.block.ruler.getRules("paragraph");for(g=e.parentType,e.parentType="paragraph";b<o&&!e.isEmpty(b);b++)if(!(e.sCount[b]-e.blkIndent>3)&&!(e.sCount[b]<0)){for(c=!1,u=0,d=x.length;u<d;u++)if(x[u](e,b,o,!0)){c=!0;break}if(c)break}return a=e.getLines(r,b,e.blkIndent,!1).trim(),e.line=b,p=e.push("paragraph_open","p",1),p.map=[r,e.line],p=e.push("inline","",0),p.content=a,p.map=[r,e.line],p.children=[],p=e.push("paragraph_close","p",-1),e.parentType=g,!0},Token$1=token,isSpace$4=utils$1.isSpace;function StateBlock(t,e,r,o){var a,c,u,d,p,g,b,x;for(this.src=t,this.md=e,this.env=r,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",c=this.src,x=!1,u=d=g=b=0,p=c.length;d<p;d++){if(a=c.charCodeAt(d),!x)if(isSpace$4(a)){g++,a===9?b+=4-b%4:b++;continue}else x=!0;(a===10||d===p-1)&&(a!==10&&d++,this.bMarks.push(u),this.eMarks.push(d),this.tShift.push(g),this.sCount.push(b),this.bsCount.push(0),x=!1,g=0,b=0,u=d+1)}this.bMarks.push(c.length),this.eMarks.push(c.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}StateBlock.prototype.push=function(t,e,r){var o=new Token$1(t,e,r);return o.block=!0,r<0&&this.level--,o.level=this.level,r>0&&this.level++,this.tokens.push(o),o};StateBlock.prototype.isEmpty=function t(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};StateBlock.prototype.skipEmptyLines=function t(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};StateBlock.prototype.skipSpaces=function t(e){for(var r,o=this.src.length;e<o&&(r=this.src.charCodeAt(e),!!isSpace$4(r));e++);return e};StateBlock.prototype.skipSpacesBack=function t(e,r){if(e<=r)return e;for(;e>r;)if(!isSpace$4(this.src.charCodeAt(--e)))return e+1;return e};StateBlock.prototype.skipChars=function t(e,r){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===r;e++);return e};StateBlock.prototype.skipCharsBack=function t(e,r,o){if(e<=o)return e;for(;e>o;)if(r!==this.src.charCodeAt(--e))return e+1;return e};StateBlock.prototype.getLines=function t(e,r,o,a){var c,u,d,p,g,b,x,w=e;if(e>=r)return"";for(b=new Array(r-e),c=0;w<r;w++,c++){for(u=0,x=p=this.bMarks[w],w+1<r||a?g=this.eMarks[w]+1:g=this.eMarks[w];p<g&&u<o;){if(d=this.src.charCodeAt(p),isSpace$4(d))d===9?u+=4-(u+this.bsCount[w])%4:u++;else if(p-x<this.tShift[w])u++;else break;p++}u>o?b[c]=new Array(u-o+1).join(" ")+this.src.slice(p,g):b[c]=this.src.slice(p,g)}return b.join("")};StateBlock.prototype.Token=Token$1;var state_block=StateBlock,Ruler$1=ruler,_rules$1=[["table",table,["paragraph","reference"]],["code",code$3],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock$1(){this.ruler=new Ruler$1;for(var t=0;t<_rules$1.length;t++)this.ruler.push(_rules$1[t][0],_rules$1[t][1],{alt:(_rules$1[t][2]||[]).slice()})}ParserBlock$1.prototype.tokenize=function(t,e,r){for(var o,a,c,u=this.ruler.getRules(""),d=u.length,p=e,g=!1,b=t.md.options.maxNesting;p<r&&(t.line=p=t.skipEmptyLines(p),!(p>=r||t.sCount[p]<t.blkIndent));){if(t.level>=b){t.line=r;break}for(c=t.line,a=0;a<d;a++)if(o=u[a](t,p,r,!1),o){if(c>=t.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");t.tight=!g,t.isEmpty(t.line-1)&&(g=!0),p=t.line,p<r&&t.isEmpty(p)&&(g=!0,p++,t.line=p)}};ParserBlock$1.prototype.parse=function(t,e,r,o){var a;t&&(a=new this.State(t,e,r,o),this.tokenize(a,a.line,a.lineMax))};ParserBlock$1.prototype.State=state_block;var parser_block=ParserBlock$1;function isTerminatorChar(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var text=function t(e,r){for(var o=e.pos;o<e.posMax&&!isTerminatorChar(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(r||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},SCHEME_RE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,linkify=function t(e,r){var o,a,c,u,d,p,g,b;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,a=e.posMax,o+3>a)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(c=e.pending.match(SCHEME_RE),!c)||(u=c[1],d=e.md.linkify.matchAtStart(e.src.slice(o-u.length)),!d)||(p=d.url,p.length<=u.length)||(p=p.replace(/\*+$/,""),g=e.md.normalizeLink(p),!e.md.validateLink(g))?!1:(r||(e.pending=e.pending.slice(0,-u.length),b=e.push("link_open","a",1),b.attrs=[["href",g]],b.markup="linkify",b.info="auto",b=e.push("text","",0),b.content=e.md.normalizeLinkText(p),b=e.push("link_close","a",-1),b.markup="linkify",b.info="auto"),e.pos+=p.length-u.length,!0)},isSpace$3=utils$1.isSpace,newline=function t(e,r){var o,a,c,u=e.pos;if(e.src.charCodeAt(u)!==10)return!1;if(o=e.pending.length-1,a=e.posMax,!r)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(c=o-1;c>=1&&e.pending.charCodeAt(c-1)===32;)c--;e.pending=e.pending.slice(0,c),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(u++;u<a&&isSpace$3(e.src.charCodeAt(u));)u++;return e.pos=u,!0},isSpace$2=utils$1.isSpace,ESCAPED=[];for(var i=0;i<256;i++)ESCAPED.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){ESCAPED[t.charCodeAt(0)]=1});var _escape=function t(e,r){var o,a,c,u,d,p=e.pos,g=e.posMax;if(e.src.charCodeAt(p)!==92||(p++,p>=g))return!1;if(o=e.src.charCodeAt(p),o===10){for(r||e.push("hardbreak","br",0),p++;p<g&&(o=e.src.charCodeAt(p),!!isSpace$2(o));)p++;return e.pos=p,!0}return u=e.src[p],o>=55296&&o<=56319&&p+1<g&&(a=e.src.charCodeAt(p+1),a>=56320&&a<=57343&&(u+=e.src[p+1],p++)),c="\\"+u,r||(d=e.push("text_special","",0),o<256&&ESCAPED[o]!==0?d.content=u:d.content=c,d.markup=c,d.info="escape"),e.pos=p+1,!0},backticks=function t(e,r){var o,a,c,u,d,p,g,b,x=e.pos,w=e.src.charCodeAt(x);if(w!==96)return!1;for(o=x,x++,a=e.posMax;x<a&&e.src.charCodeAt(x)===96;)x++;if(c=e.src.slice(o,x),g=c.length,e.backticksScanned&&(e.backticks[g]||0)<=o)return r||(e.pending+=c),e.pos+=g,!0;for(p=x;(d=e.src.indexOf("`",p))!==-1;){for(p=d+1;p<a&&e.src.charCodeAt(p)===96;)p++;if(b=p-d,b===g)return r||(u=e.push("code_inline","code",0),u.markup=c,u.content=e.src.slice(x,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=p,!0;e.backticks[b]=d}return e.backticksScanned=!0,r||(e.pending+=c),e.pos+=g,!0},strikethrough={};strikethrough.tokenize=function t(e,r){var o,a,c,u,d,p=e.pos,g=e.src.charCodeAt(p);if(r||g!==126||(a=e.scanDelims(e.pos,!0),u=a.length,d=String.fromCharCode(g),u<2))return!1;for(u%2&&(c=e.push("text","",0),c.content=d,u--),o=0;o<u;o+=2)c=e.push("text","",0),c.content=d+d,e.delimiters.push({marker:g,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0};function postProcess$1(t,e){var r,o,a,c,u,d=[],p=e.length;for(r=0;r<p;r++)a=e[r],a.marker===126&&a.end!==-1&&(c=e[a.end],u=t.tokens[a.token],u.type="s_open",u.tag="s",u.nesting=1,u.markup="~~",u.content="",u=t.tokens[c.token],u.type="s_close",u.tag="s",u.nesting=-1,u.markup="~~",u.content="",t.tokens[c.token-1].type==="text"&&t.tokens[c.token-1].content==="~"&&d.push(c.token-1));for(;d.length;){for(r=d.pop(),o=r+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,r!==o&&(u=t.tokens[o],t.tokens[o]=t.tokens[r],t.tokens[r]=u)}}strikethrough.postProcess=function t(e){var r,o=e.tokens_meta,a=e.tokens_meta.length;for(postProcess$1(e,e.delimiters),r=0;r<a;r++)o[r]&&o[r].delimiters&&postProcess$1(e,o[r].delimiters)};var emphasis={};emphasis.tokenize=function t(e,r){var o,a,c,u=e.pos,d=e.src.charCodeAt(u);if(r||d!==95&&d!==42)return!1;for(a=e.scanDelims(e.pos,d===42),o=0;o<a.length;o++)c=e.push("text","",0),c.content=String.fromCharCode(d),e.delimiters.push({marker:d,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0};function postProcess(t,e){var r,o,a,c,u,d,p=e.length;for(r=p-1;r>=0;r--)o=e[r],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(a=e[o.end],d=r>0&&e[r-1].end===o.end+1&&e[r-1].marker===o.marker&&e[r-1].token===o.token-1&&e[o.end+1].token===a.token+1,u=String.fromCharCode(o.marker),c=t.tokens[o.token],c.type=d?"strong_open":"em_open",c.tag=d?"strong":"em",c.nesting=1,c.markup=d?u+u:u,c.content="",c=t.tokens[a.token],c.type=d?"strong_close":"em_close",c.tag=d?"strong":"em",c.nesting=-1,c.markup=d?u+u:u,c.content="",d&&(t.tokens[e[r-1].token].content="",t.tokens[e[o.end+1].token].content="",r--))}emphasis.postProcess=function t(e){var r,o=e.tokens_meta,a=e.tokens_meta.length;for(postProcess(e,e.delimiters),r=0;r<a;r++)o[r]&&o[r].delimiters&&postProcess(e,o[r].delimiters)};var normalizeReference$1=utils$1.normalizeReference,isSpace$1=utils$1.isSpace,link=function t(e,r){var o,a,c,u,d,p,g,b,x,w="",y="",I=e.pos,k=e.posMax,T=e.pos,E=!0;if(e.src.charCodeAt(e.pos)!==91||(d=e.pos+1,u=e.md.helpers.parseLinkLabel(e,e.pos,!0),u<0))return!1;if(p=u+1,p<k&&e.src.charCodeAt(p)===40){for(E=!1,p++;p<k&&(a=e.src.charCodeAt(p),!(!isSpace$1(a)&&a!==10));p++);if(p>=k)return!1;if(T=p,g=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),g.ok){for(w=e.md.normalizeLink(g.str),e.md.validateLink(w)?p=g.pos:w="",T=p;p<k&&(a=e.src.charCodeAt(p),!(!isSpace$1(a)&&a!==10));p++);if(g=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<k&&T!==p&&g.ok)for(y=g.str,p=g.pos;p<k&&(a=e.src.charCodeAt(p),!(!isSpace$1(a)&&a!==10));p++);}(p>=k||e.src.charCodeAt(p)!==41)&&(E=!0),p++}if(E){if(typeof e.env.references>"u")return!1;if(p<k&&e.src.charCodeAt(p)===91?(T=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?c=e.src.slice(T,p++):p=u+1):p=u+1,c||(c=e.src.slice(d,u)),b=e.env.references[normalizeReference$1(c)],!b)return e.pos=I,!1;w=b.href,y=b.title}return r||(e.pos=d,e.posMax=u,x=e.push("link_open","a",1),x.attrs=o=[["href",w]],y&&o.push(["title",y]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,x=e.push("link_close","a",-1)),e.pos=p,e.posMax=k,!0},normalizeReference=utils$1.normalizeReference,isSpace=utils$1.isSpace,image=function t(e,r){var o,a,c,u,d,p,g,b,x,w,y,I,k,T="",E=e.pos,O=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(p=e.pos+2,d=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),d<0))return!1;if(g=d+1,g<O&&e.src.charCodeAt(g)===40){for(g++;g<O&&(a=e.src.charCodeAt(g),!(!isSpace(a)&&a!==10));g++);if(g>=O)return!1;for(k=g,x=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),x.ok&&(T=e.md.normalizeLink(x.str),e.md.validateLink(T)?g=x.pos:T=""),k=g;g<O&&(a=e.src.charCodeAt(g),!(!isSpace(a)&&a!==10));g++);if(x=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<O&&k!==g&&x.ok)for(w=x.str,g=x.pos;g<O&&(a=e.src.charCodeAt(g),!(!isSpace(a)&&a!==10));g++);else w="";if(g>=O||e.src.charCodeAt(g)!==41)return e.pos=E,!1;g++}else{if(typeof e.env.references>"u")return!1;if(g<O&&e.src.charCodeAt(g)===91?(k=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?u=e.src.slice(k,g++):g=d+1):g=d+1,u||(u=e.src.slice(p,d)),b=e.env.references[normalizeReference(u)],!b)return e.pos=E,!1;T=b.href,w=b.title}return r||(c=e.src.slice(p,d),e.md.inline.parse(c,e.md,e.env,I=[]),y=e.push("image","img",0),y.attrs=o=[["src",T],["alt",""]],y.children=I,y.content=c,w&&o.push(["title",w])),e.pos=g,e.posMax=O,!0},EMAIL_RE=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,autolink=function t(e,r){var o,a,c,u,d,p,g=e.pos;if(e.src.charCodeAt(g)!==60)return!1;for(d=e.pos,p=e.posMax;;){if(++g>=p||(u=e.src.charCodeAt(g),u===60))return!1;if(u===62)break}return o=e.src.slice(d+1,g),AUTOLINK_RE.test(o)?(a=e.md.normalizeLink(o),e.md.validateLink(a)?(r||(c=e.push("link_open","a",1),c.attrs=[["href",a]],c.markup="autolink",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(o),c=e.push("link_close","a",-1),c.markup="autolink",c.info="auto"),e.pos+=o.length+2,!0):!1):EMAIL_RE.test(o)?(a=e.md.normalizeLink("mailto:"+o),e.md.validateLink(a)?(r||(c=e.push("link_open","a",1),c.attrs=[["href",a]],c.markup="autolink",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(o),c=e.push("link_close","a",-1),c.markup="autolink",c.info="auto"),e.pos+=o.length+2,!0):!1):!1},HTML_TAG_RE=html_re.HTML_TAG_RE;function isLinkOpen(t){return/^<a[>\s]/i.test(t)}function isLinkClose(t){return/^<\/a\s*>/i.test(t)}function isLetter(t){var e=t|32;return e>=97&&e<=122}var html_inline=function t(e,r){var o,a,c,u,d=e.pos;return!e.md.options.html||(c=e.posMax,e.src.charCodeAt(d)!==60||d+2>=c)||(o=e.src.charCodeAt(d+1),o!==33&&o!==63&&o!==47&&!isLetter(o))||(a=e.src.slice(d).match(HTML_TAG_RE),!a)?!1:(r||(u=e.push("html_inline","",0),u.content=a[0],isLinkOpen(u.content)&&e.linkLevel++,isLinkClose(u.content)&&e.linkLevel--),e.pos+=a[0].length,!0)},entities=entities$1,has=utils$1.has,isValidEntityCode=utils$1.isValidEntityCode,fromCodePoint=utils$1.fromCodePoint,DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i,entity=function t(e,r){var o,a,c,u,d=e.pos,p=e.posMax;if(e.src.charCodeAt(d)!==38||d+1>=p)return!1;if(o=e.src.charCodeAt(d+1),o===35){if(c=e.src.slice(d).match(DIGITAL_RE),c)return r||(a=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),u=e.push("text_special","",0),u.content=isValidEntityCode(a)?fromCodePoint(a):fromCodePoint(65533),u.markup=c[0],u.info="entity"),e.pos+=c[0].length,!0}else if(c=e.src.slice(d).match(NAMED_RE),c&&has(entities,c[1]))return r||(u=e.push("text_special","",0),u.content=entities[c[1]],u.markup=c[0],u.info="entity"),e.pos+=c[0].length,!0;return!1};function processDelimiters(t){var e,r,o,a,c,u,d,p,g={},b=t.length;if(b){var x=0,w=-2,y=[];for(e=0;e<b;e++)if(o=t[e],y.push(0),(t[x].marker!==o.marker||w!==o.token-1)&&(x=e),w=o.token,o.length=o.length||0,!!o.close){for(g.hasOwnProperty(o.marker)||(g[o.marker]=[-1,-1,-1,-1,-1,-1]),c=g[o.marker][(o.open?3:0)+o.length%3],r=x-y[x]-1,u=r;r>c;r-=y[r]+1)if(a=t[r],a.marker===o.marker&&a.open&&a.end<0&&(d=!1,(a.close||o.open)&&(a.length+o.length)%3===0&&(a.length%3!==0||o.length%3!==0)&&(d=!0),!d)){p=r>0&&!t[r-1].open?y[r-1]+1:0,y[e]=e-r+p,y[r]=p,o.open=!1,a.end=e,a.close=!1,u=-1,w=-2;break}u!==-1&&(g[o.marker][(o.open?3:0)+(o.length||0)%3]=u)}}}var balance_pairs=function t(e){var r,o=e.tokens_meta,a=e.tokens_meta.length;for(processDelimiters(e.delimiters),r=0;r<a;r++)o[r]&&o[r].delimiters&&processDelimiters(o[r].delimiters)},fragments_join=function t(e){var r,o,a=0,c=e.tokens,u=e.tokens.length;for(r=o=0;r<u;r++)c[r].nesting<0&&a--,c[r].level=a,c[r].nesting>0&&a++,c[r].type==="text"&&r+1<u&&c[r+1].type==="text"?c[r+1].content=c[r].content+c[r+1].content:(r!==o&&(c[o]=c[r]),o++);r!==o&&(c.length=o)},Token=token,isWhiteSpace=utils$1.isWhiteSpace,isPunctChar=utils$1.isPunctChar,isMdAsciiPunct=utils$1.isMdAsciiPunct;function StateInline(t,e,r,o){this.src=t,this.env=r,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}StateInline.prototype.pushPending=function(){var t=new Token("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};StateInline.prototype.push=function(t,e,r){this.pending&&this.pushPending();var o=new Token(t,e,r),a=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(a),o};StateInline.prototype.scanDelims=function(t,e){var r=t,o,a,c,u,d,p,g,b,x,w=!0,y=!0,I=this.posMax,k=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;r<I&&this.src.charCodeAt(r)===k;)r++;return c=r-t,a=r<I?this.src.charCodeAt(r):32,g=isMdAsciiPunct(o)||isPunctChar(String.fromCharCode(o)),x=isMdAsciiPunct(a)||isPunctChar(String.fromCharCode(a)),p=isWhiteSpace(o),b=isWhiteSpace(a),b?w=!1:x&&(p||g||(w=!1)),p?y=!1:g&&(b||x||(y=!1)),e?(u=w,d=y):(u=w&&(!y||g),d=y&&(!w||x)),{can_open:u,can_close:d,length:c}};StateInline.prototype.Token=Token;var state_inline=StateInline,Ruler=ruler,_rules=[["text",text],["linkify",linkify],["newline",newline],["escape",_escape],["backticks",backticks],["strikethrough",strikethrough.tokenize],["emphasis",emphasis.tokenize],["link",link],["image",image],["autolink",autolink],["html_inline",html_inline],["entity",entity]],_rules2=[["balance_pairs",balance_pairs],["strikethrough",strikethrough.postProcess],["emphasis",emphasis.postProcess],["fragments_join",fragments_join]];function ParserInline$1(){var t;for(this.ruler=new Ruler,t=0;t<_rules.length;t++)this.ruler.push(_rules[t][0],_rules[t][1]);for(this.ruler2=new Ruler,t=0;t<_rules2.length;t++)this.ruler2.push(_rules2[t][0],_rules2[t][1])}ParserInline$1.prototype.skipToken=function(t){var e,r,o=t.pos,a=this.ruler.getRules(""),c=a.length,u=t.md.options.maxNesting,d=t.cache;if(typeof d[o]<"u"){t.pos=d[o];return}if(t.level<u){for(r=0;r<c;r++)if(t.level++,e=a[r](t,!0),t.level--,e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,d[o]=t.pos};ParserInline$1.prototype.tokenize=function(t){for(var e,r,o,a=this.ruler.getRules(""),c=a.length,u=t.posMax,d=t.md.options.maxNesting;t.pos<u;){if(o=t.pos,t.level<d){for(r=0;r<c;r++)if(e=a[r](t,!1),e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=u)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};ParserInline$1.prototype.parse=function(t,e,r,o){var a,c,u,d=new this.State(t,e,r,o);for(this.tokenize(d),c=this.ruler2.getRules(""),u=c.length,a=0;a<u;a++)c[a](d)};ParserInline$1.prototype.State=state_inline;var parser_inline=ParserInline$1,re,hasRequiredRe;function requireRe(){return hasRequiredRe||(hasRequiredRe=1,re=function(t){var e={};t=t||{},e.src_Any=requireRegex$3().source,e.src_Cc=requireRegex$2().source,e.src_Z=requireRegex().source,e.src_P=regex$4.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var r="[><|]";return e.src_pseudo_letter="(?:(?!"+r+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+r+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),re}function assign$2(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(r){r&&Object.keys(r).forEach(function(o){t[o]=r[o]})}),t}function _class(t){return Object.prototype.toString.call(t)}function isString$2(t){return _class(t)==="[object String]"}function isObject$4(t){return _class(t)==="[object Object]"}function isRegExp$1(t){return _class(t)==="[object RegExp]"}function isFunction$1(t){return _class(t)==="[object Function]"}function escapeRE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var defaultOptions={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(t){return Object.keys(t||{}).reduce(function(e,r){return e||defaultOptions.hasOwnProperty(r)},!1)}var defaultSchemas={"http:":{validate:function(t,e,r){var o=t.slice(e);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(o)?o.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,r){var o=t.slice(e);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,r){var o=t.slice(e);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(o)?o.match(r.re.mailto)[0].length:0}}},tlds_2ch_src_re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(t){t.__index__=-1,t.__text_cache__=""}function createValidator(t){return function(e,r){var o=e.slice(r);return t.test(o)?o.match(t)[0].length:0}}function createNormalizer(){return function(t,e){e.normalize(t)}}function compile$1(t){var e=t.re=requireRe()(t.__opts__),r=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||r.push(tlds_2ch_src_re),r.push(e.src_xn),e.src_tlds=r.join("|");function o(d){return d.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var a=[];t.__compiled__={};function c(d,p){throw new Error('(LinkifyIt) Invalid schema "'+d+'": '+p)}Object.keys(t.__schemas__).forEach(function(d){var p=t.__schemas__[d];if(p!==null){var g={validate:null,link:null};if(t.__compiled__[d]=g,isObject$4(p)){isRegExp$1(p.validate)?g.validate=createValidator(p.validate):isFunction$1(p.validate)?g.validate=p.validate:c(d,p),isFunction$1(p.normalize)?g.normalize=p.normalize:p.normalize?c(d,p):g.normalize=createNormalizer();return}if(isString$2(p)){a.push(d);return}c(d,p)}}),a.forEach(function(d){t.__compiled__[t.__schemas__[d]]&&(t.__compiled__[d].validate=t.__compiled__[t.__schemas__[d]].validate,t.__compiled__[d].normalize=t.__compiled__[t.__schemas__[d]].normalize)}),t.__compiled__[""]={validate:null,normalize:createNormalizer()};var u=Object.keys(t.__compiled__).filter(function(d){return d.length>0&&t.__compiled__[d]}).map(escapeRE).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+u+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+u+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),resetScanCache(t)}function Match(t,e){var r=t.__index__,o=t.__last_index__,a=t.__text_cache__.slice(r,o);this.schema=t.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=o+e,this.raw=a,this.text=a,this.url=a}function createMatch(t,e){var r=new Match(t,e);return t.__compiled__[r.schema].normalize(r,t),r}function LinkifyIt$1(t,e){if(!(this instanceof LinkifyIt$1))return new LinkifyIt$1(t,e);e||isOptionsObj(t)&&(e=t,t={}),this.__opts__=assign$2({},defaultOptions,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign$2({},defaultSchemas,t),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile$1(this)}LinkifyIt$1.prototype.add=function t(e,r){return this.__schemas__[e]=r,compile$1(this),this};LinkifyIt$1.prototype.set=function t(e){return this.__opts__=assign$2(this.__opts__,e),this};LinkifyIt$1.prototype.test=function t(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var r,o,a,c,u,d,p,g,b;if(this.re.schema_test.test(e)){for(p=this.re.schema_search,p.lastIndex=0;(r=p.exec(e))!==null;)if(c=this.testSchemaAt(e,r[2],p.lastIndex),c){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+c;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(g=e.search(this.re.host_fuzzy_test),g>=0&&(this.__index__<0||g<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(u=o.index+o[1].length,(this.__index__<0||u<this.__index__)&&(this.__schema__="",this.__index__=u,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(b=e.indexOf("@"),b>=0&&(a=e.match(this.re.email_fuzzy))!==null&&(u=a.index+a[1].length,d=a.index+a[0].length,(this.__index__<0||u<this.__index__||u===this.__index__&&d>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=u,this.__last_index__=d))),this.__index__>=0};LinkifyIt$1.prototype.pretest=function t(e){return this.re.pretest.test(e)};LinkifyIt$1.prototype.testSchemaAt=function t(e,r,o){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,o,this):0};LinkifyIt$1.prototype.match=function t(e){var r=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(createMatch(this,r)),r=this.__last_index__);for(var a=r?e.slice(r):e;this.test(a);)o.push(createMatch(this,r)),a=a.slice(this.__last_index__),r+=this.__last_index__;return o.length?o:null};LinkifyIt$1.prototype.matchAtStart=function t(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var r=this.re.schema_at_start.exec(e);if(!r)return null;var o=this.testSchemaAt(e,r[2],r[0].length);return o?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o,createMatch(this,0)):null};LinkifyIt$1.prototype.tlds=function t(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,a,c){return o!==c[a-1]}).reverse(),compile$1(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,compile$1(this),this)};LinkifyIt$1.prototype.normalize=function t(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};LinkifyIt$1.prototype.onCompile=function t(){};var linkifyIt=LinkifyIt$1;const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(t){throw new RangeError(errors[t])}function map(t,e){const r=[];let o=t.length;for(;o--;)r[o]=e(t[o]);return r}function mapDomain(t,e){const r=t.split("@");let o="";r.length>1&&(o=r[0]+"@",t=r[1]),t=t.replace(regexSeparators,".");const a=t.split("."),c=map(a,e).join(".");return o+c}function ucs2decode(t){const e=[];let r=0;const o=t.length;for(;r<o;){const a=t.charCodeAt(r++);if(a>=55296&&a<=56319&&r<o){const c=t.charCodeAt(r++);(c&64512)==56320?e.push(((a&1023)<<10)+(c&1023)+65536):(e.push(a),r--)}else e.push(a)}return e}const ucs2encode=t=>String.fromCodePoint(...t),basicToDigit=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:base},digitToBasic=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},adapt=function(t,e,r){let o=0;for(t=r?floor(t/damp):t>>1,t+=floor(t/e);t>baseMinusTMin*tMax>>1;o+=base)t=floor(t/baseMinusTMin);return floor(o+(baseMinusTMin+1)*t/(t+skew))},decode=function(t){const e=[],r=t.length;let o=0,a=initialN,c=initialBias,u=t.lastIndexOf(delimiter);u<0&&(u=0);for(let d=0;d<u;++d)t.charCodeAt(d)>=128&&error("not-basic"),e.push(t.charCodeAt(d));for(let d=u>0?u+1:0;d<r;){const p=o;for(let b=1,x=base;;x+=base){d>=r&&error("invalid-input");const w=basicToDigit(t.charCodeAt(d++));w>=base&&error("invalid-input"),w>floor((maxInt-o)/b)&&error("overflow"),o+=w*b;const y=x<=c?tMin:x>=c+tMax?tMax:x-c;if(w<y)break;const I=base-y;b>floor(maxInt/I)&&error("overflow"),b*=I}const g=e.length+1;c=adapt(o-p,g,p==0),floor(o/g)>maxInt-a&&error("overflow"),a+=floor(o/g),o%=g,e.splice(o++,0,a)}return String.fromCodePoint(...e)},encode$1=function(t){const e=[];t=ucs2decode(t);const r=t.length;let o=initialN,a=0,c=initialBias;for(const p of t)p<128&&e.push(stringFromCharCode(p));const u=e.length;let d=u;for(u&&e.push(delimiter);d<r;){let p=maxInt;for(const b of t)b>=o&&b<p&&(p=b);const g=d+1;p-o>floor((maxInt-a)/g)&&error("overflow"),a+=(p-o)*g,o=p;for(const b of t)if(b<o&&++a>maxInt&&error("overflow"),b===o){let x=a;for(let w=base;;w+=base){const y=w<=c?tMin:w>=c+tMax?tMax:w-c;if(x<y)break;const I=x-y,k=base-y;e.push(stringFromCharCode(digitToBasic(y+I%k,0))),x=floor(I/k)}e.push(stringFromCharCode(digitToBasic(x,0))),c=adapt(a,g,d===u),a=0,++d}++a,++o}return e.join("")},toUnicode=function(t){return mapDomain(t,function(e){return regexPunycode.test(e)?decode(e.slice(4).toLowerCase()):e})},toASCII=function(t){return mapDomain(t,function(e){return regexNonASCII.test(e)?"xn--"+encode$1(e):e})},punycode$1={version:"2.1.0",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode:encode$1,toASCII,toUnicode},punycode_es6=Object.freeze(Object.defineProperty({__proto__:null,decode,default:punycode$1,encode:encode$1,toASCII,toUnicode,ucs2decode,ucs2encode},Symbol.toStringTag,{value:"Module"})),require$$8=getAugmentedNamespace(punycode_es6);var _default={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},utils=utils$1,helpers=helpers$1,Renderer=renderer,ParserCore=parser_core,ParserBlock=parser_block,ParserInline=parser_inline,LinkifyIt=linkifyIt,mdurl=mdurl$1,punycode=require$$8,config={default:_default,zero,commonmark},BAD_PROTO_RE=/^(vbscript|javascript|file|data):/,GOOD_DATA_RE=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(t){var e=t.trim().toLowerCase();return BAD_PROTO_RE.test(e)?!!GOOD_DATA_RE.test(e):!0}var RECODE_HOSTNAME_FOR=["http:","https:","mailto:"];function normalizeLink(t){var e=mdurl.parse(t,!0);if(e.hostname&&(!e.protocol||RECODE_HOSTNAME_FOR.indexOf(e.protocol)>=0))try{e.hostname=punycode.toASCII(e.hostname)}catch{}return mdurl.encode(mdurl.format(e))}function normalizeLinkText(t){var e=mdurl.parse(t,!0);if(e.hostname&&(!e.protocol||RECODE_HOSTNAME_FOR.indexOf(e.protocol)>=0))try{e.hostname=punycode.toUnicode(e.hostname)}catch{}return mdurl.decode(mdurl.format(e),mdurl.decode.defaultChars+"%")}function MarkdownIt$1(t,e){if(!(this instanceof MarkdownIt$1))return new MarkdownIt$1(t,e);e||utils.isString(t)||(e=t||{},t="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new ParserCore,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils,this.helpers=utils.assign({},helpers),this.options={},this.configure(t),e&&this.set(e)}MarkdownIt$1.prototype.set=function(t){return utils.assign(this.options,t),this};MarkdownIt$1.prototype.configure=function(t){var e=this,r;if(utils.isString(t)&&(r=t,t=config[r],!t))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};MarkdownIt$1.prototype.enable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(t,!0))},this),r=r.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(a){return r.indexOf(a)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};MarkdownIt$1.prototype.disable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(t,!0))},this),r=r.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(a){return r.indexOf(a)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};MarkdownIt$1.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};MarkdownIt$1.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var r=new this.core.State(t,this,e);return this.core.process(r),r.tokens};MarkdownIt$1.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};MarkdownIt$1.prototype.parseInline=function(t,e){var r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens};MarkdownIt$1.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var lib=MarkdownIt$1,markdownIt=lib;const MarkdownIt=getDefaultExportFromCjs(markdownIt),VueMarkdown=vue.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1},plugins:{type:Array,required:!1}},setup(t){const e=vue.ref(new MarkdownIt(t.options??{}));for(const o of t.plugins??[])e.value.use(o);const r=vue.computed(()=>e.value.render(t.source));return()=>vue.h("div",{innerHTML:r.value})}}),VueMarkdown$1=VueMarkdown,_hoisted_1$7={key:0,class:"empty-state"},_hoisted_2$3={class:"item-header"},_hoisted_3$3={class:"truncate"},_hoisted_4$1={key:1,class:"empty-state"},_hoisted_5$1={key:1,class:"empty-state"},_hoisted_6$1={key:1,class:"empty-state"},_sfc_main$d=vue.defineComponent({__name:"DxpGitBookSearch",setup(t){const e=vue.ref(),r=vue.ref("search");let o=vue.ref(""),a=vue.ref([]);const c=vue.ref({}),u=vue.ref(!1),d=vue.ref(!1),p=vue.ref([]),g=vue.ref(!1);function b(){e.value.$el.dismiss(null,"cancel")}function x(){o.value="",a.value=[],c.value={}}async function w(){u.value=!0;let O={};try{const A=await gitBookContext.askQuery({queryString:o.value,spaceId:process.env.VUE_APP_SPACE_ID,baseURL:process.env.VUE_APP_GITBOOK_BASE_URL,token:process.env.VUE_APP_GITBOOK_API_KEY});if(!lib$2.hasError(A))O=A.data.answer,p.value=[],g.value=!1;else throw A.data}catch(A){console.error(A)}c.value=O,u.value=!1}async function y(){u.value=!0;let O=[];const A=process.env.VUE_APP_GITBOOK_BASE_URL;try{const L=await gitBookContext.searchQuery({queryString:o.value,spaceId:process.env.VUE_APP_SPACE_ID,baseURL:A,token:process.env.VUE_APP_GITBOOK_API_KEY});if(!lib$2.hasError(L))O=L.data.items;else throw L.data}catch(L){console.error(L)}a.value=O,u.value=!1}async function I(){d.value=!0;const O=[];(await Promise.allSettled(c.value.sources.map(L=>{if(L.type==="page")return gitBookContext.getGitBookPage({pageId:L.page,spaceId:process.env.VUE_APP_SPACE_ID,baseURL:process.env.VUE_APP_GITBOOK_BASE_URL,token:process.env.VUE_APP_GITBOOK_API_KEY})}))).map(L=>{L.status==="fulfilled"&&O.push(L.value.data)}),p.value=O,d.value=!1,g.value=!0}function k(O){window.open(`https://docs.hotwax.co/user-guides/${O.path}`,"_blank")}function T(O){o.value=O,w()}function E(){r.value="search",o.value="",a.value=[],c.value={},u.value=!1,d.value=!1,p.value=[],g.value=!1}return(O,A)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(IonTabButton),{tab:"help",id:"gibook-search-modal"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(helpOutline)},null,8,["icon"]),vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("Help")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonModal),{ref_key:"gitBookSearchModal",ref:e,trigger:"gibook-search-modal",onWillDismiss:A[4]||(A[4]=L=>E())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButtons),{slot:"start"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButton),{onClick:b},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(close),slot:"icon-only"},null,8,["icon"])]),_:1})]),_:1}),vue.createVNode(vue.unref(IonTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("Ask me anything?")),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(IonContent),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSearchbar),{placeholder:vue.unref(exports.translate)(r.value==="search"?"Search...":"Ask..."),value:vue.unref(o),onKeyup:A[0]||(A[0]=vue.withKeys(L=>{vue.isRef(o)?o.value=L.target.value:o=L.target.value,r.value==="search"?y():w()},["enter"]))},null,8,["placeholder","value"]),vue.createVNode(vue.unref(IonSegment),{modelValue:r.value,"onUpdate:modelValue":A[1]||(A[1]=L=>r.value=L),onIonChange:A[2]||(A[2]=L=>x())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSegmentButton),{value:"search"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("Search")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonSegmentButton),{value:"ask"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("Ask")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"]),u.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$7,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSpinner),{name:"crescent",slot:"start"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(exports.translate)(r.value==="search"?"Searching your query.":"Analyzing the question to answer your question.")),1)]),_:1})])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[r.value==="search"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.unref(a).length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(vue.unref(a),(L,R)=>(vue.openBlock(),vue.createElementBlock("div",{key:R},[vue.createVNode(vue.unref(IonItem),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(documentOutline),slot:"start"},null,8,["icon"]),vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L.title),1)]),_:2},1024),vue.createVNode(vue.unref(IonButton),{fill:"clear",color:"medium",slot:"end",onClick:$=>k(L)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(returnDownBackOutline),slot:"start"},null,8,["icon"]),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(exports.translate)("go to page")),1)]),_:2},1032,["onClick"])]),_:2},1024),L.sections.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(L.sections,($,P)=>(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:P,class:"ion-padding-left"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(returnDownForwardOutline),slot:"start"},null,8,["icon"]),vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$3,[vue.createVNode(vue.unref(VueMarkdown$1),{source:$.title?$.title:L.title},null,8,["source"]),vue.createVNode(vue.unref(IonButton),{fill:"clear",color:"medium",slot:"end",onClick:z=>k($)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(returnDownBackOutline),slot:"start"},null,8,["icon"]),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(exports.translate)("go to section")),1)]),_:2},1032,["onClick"])]),vue.createElementVNode("p",_hoisted_3$3,[vue.createVNode(vue.unref(VueMarkdown$1),{source:$.body},null,8,["source"])])]),_:2},1024)]),_:2},1024))),128)):vue.createCommentVNode("",!0)]))),128)):vue.unref(o)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$1,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("No page found.")),1)]),_:1})])):vue.createCommentVNode("",!0)],64)):r.value==="ask"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.value&&Object.keys(c.value).length?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(o)),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonItem),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",null,[vue.createVNode(vue.unref(VueMarkdown$1),{source:c.value.text},null,8,["source"])])]),_:1})]),_:1}),c.value.sources.length?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:0,button:"",onClick:A[3]||(A[3]=L=>g.value?"":I())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(vue.unref(exports.translate)("Answer based on resources",{count:c.value.sources.length})),1)]),_:1}),vue.createVNode(vue.unref(IonIcon),{icon:p.value.length?vue.unref(caretDownOutline):vue.unref(caretForwardOutline)},null,8,["icon"])]),_:1})):vue.createCommentVNode("",!0),d.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSpinner),{name:"crescent",slot:"start"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(exports.translate)("Fetching resources...")),1)]),_:1})])):p.value.length?(vue.openBlock(),vue.createBlock(vue.unref(IonList),{key:2},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.value,L=>(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:L.title},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L.title),1)]),_:2},1024),vue.createVNode(vue.unref(IonButton),{fill:"clear",color:"medium",slot:"end",onClick:R=>k(L)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(returnDownBackOutline),slot:"start"},null,8,["icon"]),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(exports.translate)("go to page")),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})):g.value?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:3},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(vue.unref(exports.translate)("No resource found.")),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),c.value.followupQuestions.length?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:4},[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(vue.unref(exports.translate)("Related Queries")),1)]),_:1})]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value.followupQuestions,(L,R)=>(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{lines:"none",key:R,onClick:$=>T(L)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonChip),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(searchOutline)},null,8,["icon"]),vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128))],64)):vue.createCommentVNode("",!0)],64)):vue.unref(o)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("No answer found.")),1)]),_:1})])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)],64))]),_:1})]),_:1},512)],64))}}),goToOms=(t,e)=>{const r=(e.startsWith("http")?e.replace(/\/api\/?|\/$/,""):`https://${e}.hotwax.io`)+`/commerce/control/main?token=${t}`;window.open(r,"_blank","noopener, noreferrer")},getProductIdentificationValue=(t,e)=>{var a;if(!Object.keys(e).length)return;let r=e[t];const o=(a=e.goodIdentifications)==null?void 0:a.find(c=>c.startsWith(t+"/"));return o&&(r=o.split("/")[1]),r},showToast$1=async(t,e)=>{const r=[{text:"Dismiss",role:"cancel"}];return e&&r.push(...e),(await toastController.create({message:t,duration:3e3,position:"bottom",buttons:r})).present()},getCurrentTime=(t,e="t ZZZZ")=>DateTime.now().setZone(t).toFormat(e),useUserStore=defineStore("user",{state:()=>({eComStores:[],currentEComStore:{},localeOptions:process.env.VUE_APP_LOCALES?JSON.parse(process.env.VUE_APP_LOCALES):{"en-US":"English"},locale:"en-US",currentTimeZoneId:"",timeZones:[],facilities:[],currentFacility:{}}),getters:{getLocale:t=>t.locale,getLocaleOptions:t=>t.localeOptions,getTimeZones:t=>t.timeZones,getCurrentTimeZone:t=>t.currentTimeZoneId,getFacilites:t=>t.facilities,getCurrentFacility:t=>t.currentFacility,getProductStores:t=>t.eComStores,getCurrentEComStore:t=>t.currentEComStore},actions:{async setLocale(t){let e,r;e=this.locale;try{t&&(r=Object.keys(this.localeOptions).find(o=>o===t),r=r||Object.keys(this.localeOptions).find(o=>o.slice(0,2)===t.slice(0,2)),e=r||this.locale,userContext.setUserLocale&&await userContext.setUserLocale({newLocale:e}))}catch(o){console.error(o)}finally{exports.i18n.global.locale.value=e,this.locale=e}},async setUserTimeZone(t){if(this.currentTimeZoneId!==t)try{return await userContext.setUserTimeZone({tzId:t}),this.currentTimeZoneId=t,showToast$1(exports.translate("Time zone updated successfully")),Promise.resolve(t)}catch(e){return console.error("Error",e),Promise.reject("")}},async getAvailableTimeZones(){if(!this.timeZones.length)try{const t=await userContext.getAvailableTimeZones();this.timeZones=t.filter(e=>DateTime.local().setZone(e.id).isValid)}catch(t){console.error("Error",t)}},updateTimeZone(t){this.currentTimeZoneId=t},async getUserFacilities(t,e,r,o={}){const a=useAuthStore();try{const c=await facilityContext.getUserFacilities(a.getToken.value,a.getBaseUrl,t,e,r,o);this.facilities=c}catch(c){console.error(c)}return this.facilities},async getFacilityPreference(t,e=""){const r=useAuthStore();if(!this.facilities.length)return;let o=this.facilities[0];try{let a=await facilityContext.getUserPreference(r.getToken.value,r.getBaseUrl,t,e);if(a){const c=this.facilities.find(u=>u.facilityId===a);c&&(o=c)}}catch(a){console.error(a)}this.currentFacility=o},async setFacilityPreference(t){const r=exports.appContext.config.globalProperties.$store.getters["user/getUserProfile"];try{await facilityContext.setUserPreference({userPrefTypeId:"SELECTED_FACILITY",userPrefValue:t.facilityId,userId:r.userId})}catch(o){console.error("error",o)}this.currentFacility=t},async getEComStoresByFacility(t){const e=useAuthStore();try{const r=await productStoreContext.getEComStoresByFacility(e.getToken.value,e.getBaseUrl,100,t);this.eComStores=r}catch(r){console.error(r)}return this.eComStores},async getEComStores(){const t=useAuthStore();try{const e=await productStoreContext.getEComStores(t.getToken.value,t.getBaseUrl,100);this.eComStores=e}catch(e){console.error(e)}return this.eComStores},async getEComStorePreference(t,e=""){const r=useAuthStore();if(!this.eComStores.length)return;let o=this.eComStores[0];try{let a=await productStoreContext.getUserPreference(r.getToken.value,r.getBaseUrl,t,e);if(a){const c=this.eComStores.find(u=>u.productStoreId===a);c&&(o=c)}}catch(a){console.error(a)}this.currentEComStore=o},async setEComStorePreference(t){const r=exports.appContext.config.globalProperties.$store.getters["user/getUserProfile"];try{await productStoreContext.setUserPreference({userPrefTypeId:"SELECTED_BRAND",userPrefValue:t.productStoreId,userId:r.userId})}catch(o){console.error("error",o)}this.currentEComStore=t}},persist:!0}),_hoisted_1$6={key:0,class:"empty-state"},_hoisted_2$2={key:1,class:"empty-state"},_hoisted_3$2={key:2},_sfc_main$c=vue.defineComponent({__name:"DxpFacilitySwitcher",emits:["updateFacility"],setup(t,{emit:e}){const r=useUserStore(),o=vue.computed(()=>r.getFacilites),a=vue.computed(()=>r.getCurrentFacility),c=vue.ref(),u=vue.ref(""),d=vue.ref(!0),p=vue.ref([]),g=vue.ref(""),b=()=>{c.value.$el.dismiss(null,"cancel")};function x(){p.value=o.value,g.value=a.value.facilityId,d.value=!1}const w=()=>{d.value=!0;const E=u.value.trim().toLowerCase();E?p.value=o.value.filter(O=>{var A,L;return((A=O.facilityName)==null?void 0:A.toLowerCase().includes(E))||((L=O.facilityId)==null?void 0:L.toLowerCase().includes(E))}):p.value=o.value,d.value=!1};async function y(E){(await E.target.getInputElement()).select()}function I(E){/[`!@#$%^&*()_+\-=\\|,.<>?~]/.test(E.key)&&E.preventDefault()}async function k(){const E=o.value.find(O=>O.facilityId===g.value);await r.setFacilityPreference(E),e("updateFacility",E),b()}function T(){u.value="",p.value=[],g.value="",d.value=!0}return(E,O)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(E.$t("Facility")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(E.$t("Specify which facility you want to operate from. Order, inventory and other configuration data will be specific to the facility you select.")),1)]),_:1}),vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>{var A;return[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.value.facilityName)+" ",1),vue.createElementVNode("p",null,vue.toDisplayString(a.value.facilityId),1)]),_:1}),((A=o.value)==null?void 0:A.length)>1?(vue.openBlock(),vue.createBlock(vue.unref(IonButton),{key:0,id:"open-facility-modal",slot:"end",fill:"outline",color:"dark"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(E.$t("Change")),1)]),_:1})):vue.createCommentVNode("",!0)]}),_:1})]),_:1}),vue.createVNode(vue.unref(IonModal),{ref_key:"facilityModal",ref:c,trigger:"open-facility-modal",onDidPresent:O[5]||(O[5]=A=>x()),onDidDismiss:O[6]||(O[6]=A=>T())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButtons),{slot:"start"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButton),{onClick:b},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(closeOutline)},null,8,["icon"])]),_:1})]),_:1}),vue.createVNode(vue.unref(IonTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(E.$t("Select Facility")),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(IonContent),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSearchbar),{onIonFocus:O[0]||(O[0]=A=>y(A)),placeholder:E.$t("Search facilities"),modelValue:u.value,"onUpdate:modelValue":O[1]||(O[1]=A=>u.value=A),onKeyup:O[2]||(O[2]=vue.withKeys(A=>{u.value=A.target.value,w()},["enter"])),onKeydown:O[3]||(O[3]=A=>I(A))},null,8,["placeholder","modelValue"]),vue.createVNode(vue.unref(IonRadioGroup),{modelValue:g.value,"onUpdate:modelValue":O[4]||(O[4]=A=>g.value=A)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonList),null,{default:vue.withCtx(()=>[d.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$6,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSpinner),{color:"secondary",name:"crescent",slot:"start"}),vue.createTextVNode(" "+vue.toDisplayString(E.$t("Fetching facilities")),1)]),_:1})])):p.value.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$2,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.value,A=>(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:A.facilityId},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonRadio),{"label-placement":"end",justify:"start",value:A.facilityId},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(A.facilityName)+" ",1),vue.createElementVNode("p",null,vue.toDisplayString(A.facilityId),1)]),_:2},1024)]),_:2},1032,["value"])]),_:2},1024))),128))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$2,[vue.createElementVNode("p",null,vue.toDisplayString(E.$t("No facilities found")),1)]))]),_:1})]),_:1},8,["modelValue"]),vue.createVNode(vue.unref(IonFab),{vertical:"bottom",horizontal:"end",slot:"fixed"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonFabButton),{disabled:g.value===a.value.facilityId,onClick:k},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(saveOutline)},null,8,["icon"])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},512)],64))}}),DxpFacilitySwitcher_vue_vue_type_style_index_0_scoped_f436bef6_lang="",_export_sfc=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r},DxpFacilitySwitcher=_export_sfc(_sfc_main$c,[["__scopeId","data-v-f436bef6"]]),_hoisted_1$5=["src"],_sfc_main$b=vue.defineComponent({__name:"DxpImage",props:["src"],setup(t){const e=t;let r=vue.ref(imageContext.defaultImgUrl),o=process.env.VUE_APP_RESOURCE_URL||"";const a=()=>{if(e.src)if(e.src.startsWith("http"))c(e.src).then(()=>{r.value=e.src}).catch(()=>{console.error("Image doesn't exist")});else if(e.src.indexOf("assets/")!=-1||e.src.startsWith("/img/"))r.value=e.src;else{const u=o.concat(e.src);c(r).then(()=>{r.value=u}).catch(()=>{console.error("Image doesn't exist")})}},c=u=>new Promise((d,p)=>{const g=new Image;g.onload=()=>d(!0),g.onerror=()=>p(!1),g.src=u});return vue.onMounted(()=>{a()}),vue.onUpdated(()=>{a()}),(u,d)=>(vue.openBlock(),vue.createElementBlock("img",{src:vue.unref(r)},null,8,_hoisted_1$5))}}),_sfc_main$a=vue.defineComponent({__name:"DxpLanguageSwitcher",setup(t){const e=useUserStore(),r=vue.computed(()=>e.getLocaleOptions),o=vue.computed(()=>e.getLocale),a=c=>{e.setLocale(c)};return(c,u)=>(vue.openBlock(),vue.createBlock(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(c.$t("Language")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(c.$t("Select your preferred language.")),1)]),_:1}),vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSelect),{label:c.$t("Choose language"),interface:"popover",value:o.value,onIonChange:u[0]||(u[0]=d=>a(d.detail.value))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Object.keys(r.value),d=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:d,value:d},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.value[d]),1)]),_:2},1032,["value"]))),128))]),_:1},8,["label","value"])]),_:1})]),_:1}))}});/**
|
|
249
|
+
`,u.map=[r,e.line],!0},fence=function t(e,r,o,a){var c,u,d,p,g,b,x,w=!1,y=e.bMarks[r]+e.tShift[r],I=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||y+3>I||(c=e.src.charCodeAt(y),c!==126&&c!==96)||(g=y,y=e.skipChars(y,c),u=y-g,u<3)||(x=e.src.slice(g,y),d=e.src.slice(y,I),c===96&&d.indexOf(String.fromCharCode(c))>=0))return!1;if(a)return!0;for(p=r;p++,!(p>=o||(y=g=e.bMarks[p]+e.tShift[p],I=e.eMarks[p],y<I&&e.sCount[p]<e.blkIndent));)if(e.src.charCodeAt(y)===c&&!(e.sCount[p]-e.blkIndent>=4)&&(y=e.skipChars(y,c),!(y-g<u)&&(y=e.skipSpaces(y),!(y<I)))){w=!0;break}return u=e.sCount[r],e.line=p+(w?1:0),b=e.push("fence","code",0),b.info=d,b.content=e.getLines(r+1,p,u,!0),b.markup=x,b.map=[r,e.line],!0},isSpace$9=utils$1.isSpace,blockquote=function t(e,r,o,a){var c,u,d,p,g,b,x,w,y,I,k,T,E,O,A,L,R,$,P,z,W=e.lineMax,D=e.bMarks[r]+e.tShift[r],S=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(D)!==62)return!1;if(a)return!0;for(I=[],k=[],O=[],A=[],$=e.md.block.ruler.getRules("blockquote"),E=e.parentType,e.parentType="blockquote",w=r;w<o&&(z=e.sCount[w]<e.blkIndent,D=e.bMarks[w]+e.tShift[w],S=e.eMarks[w],!(D>=S));w++){if(e.src.charCodeAt(D++)===62&&!z){for(p=e.sCount[w]+1,e.src.charCodeAt(D)===32?(D++,p++,c=!1,L=!0):e.src.charCodeAt(D)===9?(L=!0,(e.bsCount[w]+p)%4===3?(D++,p++,c=!1):c=!0):L=!1,y=p,I.push(e.bMarks[w]),e.bMarks[w]=D;D<S&&(u=e.src.charCodeAt(D),isSpace$9(u));){u===9?y+=4-(y+e.bsCount[w]+(c?1:0))%4:y++;D++}b=D>=S,k.push(e.bsCount[w]),e.bsCount[w]=e.sCount[w]+1+(L?1:0),O.push(e.sCount[w]),e.sCount[w]=y-p,A.push(e.tShift[w]),e.tShift[w]=D-e.bMarks[w];continue}if(b)break;for(R=!1,d=0,g=$.length;d<g;d++)if($[d](e,w,o,!0)){R=!0;break}if(R){e.lineMax=w,e.blkIndent!==0&&(I.push(e.bMarks[w]),k.push(e.bsCount[w]),A.push(e.tShift[w]),O.push(e.sCount[w]),e.sCount[w]-=e.blkIndent);break}I.push(e.bMarks[w]),k.push(e.bsCount[w]),A.push(e.tShift[w]),O.push(e.sCount[w]),e.sCount[w]=-1}for(T=e.blkIndent,e.blkIndent=0,P=e.push("blockquote_open","blockquote",1),P.markup=">",P.map=x=[r,0],e.md.block.tokenize(e,r,w),P=e.push("blockquote_close","blockquote",-1),P.markup=">",e.lineMax=W,e.parentType=E,x[1]=e.line,d=0;d<A.length;d++)e.bMarks[d+r]=I[d],e.tShift[d+r]=A[d],e.sCount[d+r]=O[d],e.bsCount[d+r]=k[d];return e.blkIndent=T,!0},isSpace$8=utils$1.isSpace,hr=function t(e,r,o,a){var c,u,d,p,g=e.bMarks[r]+e.tShift[r],b=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(c=e.src.charCodeAt(g++),c!==42&&c!==45&&c!==95))return!1;for(u=1;g<b;){if(d=e.src.charCodeAt(g++),d!==c&&!isSpace$8(d))return!1;d===c&&u++}return u<3?!1:(a||(e.line=r+1,p=e.push("hr","hr",0),p.map=[r,e.line],p.markup=Array(u+1).join(String.fromCharCode(c))),!0)},isSpace$7=utils$1.isSpace;function skipBulletListMarker(t,e){var r,o,a,c;return o=t.bMarks[e]+t.tShift[e],a=t.eMarks[e],r=t.src.charCodeAt(o++),r!==42&&r!==45&&r!==43||o<a&&(c=t.src.charCodeAt(o),!isSpace$7(c))?-1:o}function skipOrderedListMarker(t,e){var r,o=t.bMarks[e]+t.tShift[e],a=o,c=t.eMarks[e];if(a+1>=c||(r=t.src.charCodeAt(a++),r<48||r>57))return-1;for(;;){if(a>=c)return-1;if(r=t.src.charCodeAt(a++),r>=48&&r<=57){if(a-o>=10)return-1;continue}if(r===41||r===46)break;return-1}return a<c&&(r=t.src.charCodeAt(a),!isSpace$7(r))?-1:a}function markTightParagraphs(t,e){var r,o,a=t.level+2;for(r=e+2,o=t.tokens.length-2;r<o;r++)t.tokens[r].level===a&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}var list=function t(e,r,o,a){var c,u,d,p,g,b,x,w,y,I,k,T,E,O,A,L,R,$,P,z,W,D,S,F,U,M,V,G=r,Q=!1,fe=!0;if(e.sCount[G]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[G]-e.listIndent>=4&&e.sCount[G]<e.blkIndent)return!1;if(a&&e.parentType==="paragraph"&&e.sCount[G]>=e.blkIndent&&(Q=!0),(D=skipOrderedListMarker(e,G))>=0){if(x=!0,F=e.bMarks[G]+e.tShift[G],E=Number(e.src.slice(F,D-1)),Q&&E!==1)return!1}else if((D=skipBulletListMarker(e,G))>=0)x=!1;else return!1;if(Q&&e.skipSpaces(D)>=e.eMarks[G])return!1;if(a)return!0;for(T=e.src.charCodeAt(D-1),k=e.tokens.length,x?(V=e.push("ordered_list_open","ol",1),E!==1&&(V.attrs=[["start",E]])):V=e.push("bullet_list_open","ul",1),V.map=I=[G,0],V.markup=String.fromCharCode(T),S=!1,M=e.md.block.ruler.getRules("list"),R=e.parentType,e.parentType="list";G<o;){for(W=D,O=e.eMarks[G],b=A=e.sCount[G]+D-(e.bMarks[G]+e.tShift[G]);W<O;){if(c=e.src.charCodeAt(W),c===9)A+=4-(A+e.bsCount[G])%4;else if(c===32)A++;else break;W++}if(u=W,u>=O?g=1:g=A-b,g>4&&(g=1),p=b+g,V=e.push("list_item_open","li",1),V.markup=String.fromCharCode(T),V.map=w=[G,0],x&&(V.info=e.src.slice(F,D-1)),z=e.tight,P=e.tShift[G],$=e.sCount[G],L=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=p,e.tight=!0,e.tShift[G]=u-e.bMarks[G],e.sCount[G]=A,u>=O&&e.isEmpty(G+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,G,o,!0),(!e.tight||S)&&(fe=!1),S=e.line-G>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=L,e.tShift[G]=P,e.sCount[G]=$,e.tight=z,V=e.push("list_item_close","li",-1),V.markup=String.fromCharCode(T),G=e.line,w[1]=G,G>=o||e.sCount[G]<e.blkIndent||e.sCount[G]-e.blkIndent>=4)break;for(U=!1,d=0,y=M.length;d<y;d++)if(M[d](e,G,o,!0)){U=!0;break}if(U)break;if(x){if(D=skipOrderedListMarker(e,G),D<0)break;F=e.bMarks[G]+e.tShift[G]}else if(D=skipBulletListMarker(e,G),D<0)break;if(T!==e.src.charCodeAt(D-1))break}return x?V=e.push("ordered_list_close","ol",-1):V=e.push("bullet_list_close","ul",-1),V.markup=String.fromCharCode(T),I[1]=G,e.line=G,e.parentType=R,fe&&markTightParagraphs(e,k),!0},normalizeReference$2=utils$1.normalizeReference,isSpace$6=utils$1.isSpace,reference=function t(e,r,o,a){var c,u,d,p,g,b,x,w,y,I,k,T,E,O,A,L,R=0,$=e.bMarks[r]+e.tShift[r],P=e.eMarks[r],z=r+1;if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt($)!==91)return!1;for(;++$<P;)if(e.src.charCodeAt($)===93&&e.src.charCodeAt($-1)!==92){if($+1===P||e.src.charCodeAt($+1)!==58)return!1;break}for(p=e.lineMax,A=e.md.block.ruler.getRules("reference"),I=e.parentType,e.parentType="reference";z<p&&!e.isEmpty(z);z++)if(!(e.sCount[z]-e.blkIndent>3)&&!(e.sCount[z]<0)){for(O=!1,b=0,x=A.length;b<x;b++)if(A[b](e,z,p,!0)){O=!0;break}if(O)break}for(E=e.getLines(r,z,e.blkIndent,!1).trim(),P=E.length,$=1;$<P;$++){if(c=E.charCodeAt($),c===91)return!1;if(c===93){y=$;break}else c===10?R++:c===92&&($++,$<P&&E.charCodeAt($)===10&&R++)}if(y<0||E.charCodeAt(y+1)!==58)return!1;for($=y+2;$<P;$++)if(c=E.charCodeAt($),c===10)R++;else if(!isSpace$6(c))break;if(k=e.md.helpers.parseLinkDestination(E,$,P),!k.ok||(g=e.md.normalizeLink(k.str),!e.md.validateLink(g)))return!1;for($=k.pos,R+=k.lines,u=$,d=R,T=$;$<P;$++)if(c=E.charCodeAt($),c===10)R++;else if(!isSpace$6(c))break;for(k=e.md.helpers.parseLinkTitle(E,$,P),$<P&&T!==$&&k.ok?(L=k.str,$=k.pos,R+=k.lines):(L="",$=u,R=d);$<P&&(c=E.charCodeAt($),!!isSpace$6(c));)$++;if($<P&&E.charCodeAt($)!==10&&L)for(L="",$=u,R=d;$<P&&(c=E.charCodeAt($),!!isSpace$6(c));)$++;return $<P&&E.charCodeAt($)!==10||(w=normalizeReference$2(E.slice(1,y)),!w)?!1:(a||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[w]>"u"&&(e.env.references[w]={title:L,href:g}),e.parentType=I,e.line=r+R+1),!0)},html_blocks=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],html_re={},attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",processing="<[?][\\s\\S]*?[?]>",declaration="<![A-Z]+\\s+[^>]*>",cdata="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",HTML_TAG_RE$1=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment+"|"+processing+"|"+declaration+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE$1=new RegExp("^(?:"+open_tag+"|"+close_tag+")");html_re.HTML_TAG_RE=HTML_TAG_RE$1;html_re.HTML_OPEN_CLOSE_TAG_RE=HTML_OPEN_CLOSE_TAG_RE$1;var block_names=html_blocks,HTML_OPEN_CLOSE_TAG_RE=html_re.HTML_OPEN_CLOSE_TAG_RE,HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+block_names.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]],html_block=function t(e,r,o,a){var c,u,d,p,g=e.bMarks[r]+e.tShift[r],b=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(g)!==60)return!1;for(p=e.src.slice(g,b),c=0;c<HTML_SEQUENCES.length&&!HTML_SEQUENCES[c][0].test(p);c++);if(c===HTML_SEQUENCES.length)return!1;if(a)return HTML_SEQUENCES[c][2];if(u=r+1,!HTML_SEQUENCES[c][1].test(p)){for(;u<o&&!(e.sCount[u]<e.blkIndent);u++)if(g=e.bMarks[u]+e.tShift[u],b=e.eMarks[u],p=e.src.slice(g,b),HTML_SEQUENCES[c][1].test(p)){p.length!==0&&u++;break}}return e.line=u,d=e.push("html_block","",0),d.map=[r,u],d.content=e.getLines(r,u,e.blkIndent,!0),!0},isSpace$5=utils$1.isSpace,heading=function t(e,r,o,a){var c,u,d,p,g=e.bMarks[r]+e.tShift[r],b=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(c=e.src.charCodeAt(g),c!==35||g>=b))return!1;for(u=1,c=e.src.charCodeAt(++g);c===35&&g<b&&u<=6;)u++,c=e.src.charCodeAt(++g);return u>6||g<b&&!isSpace$5(c)?!1:(a||(b=e.skipSpacesBack(b,g),d=e.skipCharsBack(b,35,g),d>g&&isSpace$5(e.src.charCodeAt(d-1))&&(b=d),e.line=r+1,p=e.push("heading_open","h"+String(u),1),p.markup="########".slice(0,u),p.map=[r,e.line],p=e.push("inline","",0),p.content=e.src.slice(g,b).trim(),p.map=[r,e.line],p.children=[],p=e.push("heading_close","h"+String(u),-1),p.markup="########".slice(0,u)),!0)},lheading=function t(e,r,o){var a,c,u,d,p,g,b,x,w,y=r+1,I,k=e.md.block.ruler.getRules("paragraph");if(e.sCount[r]-e.blkIndent>=4)return!1;for(I=e.parentType,e.parentType="paragraph";y<o&&!e.isEmpty(y);y++)if(!(e.sCount[y]-e.blkIndent>3)){if(e.sCount[y]>=e.blkIndent&&(g=e.bMarks[y]+e.tShift[y],b=e.eMarks[y],g<b&&(w=e.src.charCodeAt(g),(w===45||w===61)&&(g=e.skipChars(g,w),g=e.skipSpaces(g),g>=b)))){x=w===61?1:2;break}if(!(e.sCount[y]<0)){for(c=!1,u=0,d=k.length;u<d;u++)if(k[u](e,y,o,!0)){c=!0;break}if(c)break}}return x?(a=e.getLines(r,y,e.blkIndent,!1).trim(),e.line=y+1,p=e.push("heading_open","h"+String(x),1),p.markup=String.fromCharCode(w),p.map=[r,e.line],p=e.push("inline","",0),p.content=a,p.map=[r,e.line-1],p.children=[],p=e.push("heading_close","h"+String(x),-1),p.markup=String.fromCharCode(w),e.parentType=I,!0):!1},paragraph=function t(e,r,o){var a,c,u,d,p,g,b=r+1,x=e.md.block.ruler.getRules("paragraph");for(g=e.parentType,e.parentType="paragraph";b<o&&!e.isEmpty(b);b++)if(!(e.sCount[b]-e.blkIndent>3)&&!(e.sCount[b]<0)){for(c=!1,u=0,d=x.length;u<d;u++)if(x[u](e,b,o,!0)){c=!0;break}if(c)break}return a=e.getLines(r,b,e.blkIndent,!1).trim(),e.line=b,p=e.push("paragraph_open","p",1),p.map=[r,e.line],p=e.push("inline","",0),p.content=a,p.map=[r,e.line],p.children=[],p=e.push("paragraph_close","p",-1),e.parentType=g,!0},Token$1=token,isSpace$4=utils$1.isSpace;function StateBlock(t,e,r,o){var a,c,u,d,p,g,b,x;for(this.src=t,this.md=e,this.env=r,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",c=this.src,x=!1,u=d=g=b=0,p=c.length;d<p;d++){if(a=c.charCodeAt(d),!x)if(isSpace$4(a)){g++,a===9?b+=4-b%4:b++;continue}else x=!0;(a===10||d===p-1)&&(a!==10&&d++,this.bMarks.push(u),this.eMarks.push(d),this.tShift.push(g),this.sCount.push(b),this.bsCount.push(0),x=!1,g=0,b=0,u=d+1)}this.bMarks.push(c.length),this.eMarks.push(c.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}StateBlock.prototype.push=function(t,e,r){var o=new Token$1(t,e,r);return o.block=!0,r<0&&this.level--,o.level=this.level,r>0&&this.level++,this.tokens.push(o),o};StateBlock.prototype.isEmpty=function t(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};StateBlock.prototype.skipEmptyLines=function t(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};StateBlock.prototype.skipSpaces=function t(e){for(var r,o=this.src.length;e<o&&(r=this.src.charCodeAt(e),!!isSpace$4(r));e++);return e};StateBlock.prototype.skipSpacesBack=function t(e,r){if(e<=r)return e;for(;e>r;)if(!isSpace$4(this.src.charCodeAt(--e)))return e+1;return e};StateBlock.prototype.skipChars=function t(e,r){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===r;e++);return e};StateBlock.prototype.skipCharsBack=function t(e,r,o){if(e<=o)return e;for(;e>o;)if(r!==this.src.charCodeAt(--e))return e+1;return e};StateBlock.prototype.getLines=function t(e,r,o,a){var c,u,d,p,g,b,x,w=e;if(e>=r)return"";for(b=new Array(r-e),c=0;w<r;w++,c++){for(u=0,x=p=this.bMarks[w],w+1<r||a?g=this.eMarks[w]+1:g=this.eMarks[w];p<g&&u<o;){if(d=this.src.charCodeAt(p),isSpace$4(d))d===9?u+=4-(u+this.bsCount[w])%4:u++;else if(p-x<this.tShift[w])u++;else break;p++}u>o?b[c]=new Array(u-o+1).join(" ")+this.src.slice(p,g):b[c]=this.src.slice(p,g)}return b.join("")};StateBlock.prototype.Token=Token$1;var state_block=StateBlock,Ruler$1=ruler,_rules$1=[["table",table,["paragraph","reference"]],["code",code$3],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock$1(){this.ruler=new Ruler$1;for(var t=0;t<_rules$1.length;t++)this.ruler.push(_rules$1[t][0],_rules$1[t][1],{alt:(_rules$1[t][2]||[]).slice()})}ParserBlock$1.prototype.tokenize=function(t,e,r){for(var o,a,c,u=this.ruler.getRules(""),d=u.length,p=e,g=!1,b=t.md.options.maxNesting;p<r&&(t.line=p=t.skipEmptyLines(p),!(p>=r||t.sCount[p]<t.blkIndent));){if(t.level>=b){t.line=r;break}for(c=t.line,a=0;a<d;a++)if(o=u[a](t,p,r,!1),o){if(c>=t.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");t.tight=!g,t.isEmpty(t.line-1)&&(g=!0),p=t.line,p<r&&t.isEmpty(p)&&(g=!0,p++,t.line=p)}};ParserBlock$1.prototype.parse=function(t,e,r,o){var a;t&&(a=new this.State(t,e,r,o),this.tokenize(a,a.line,a.lineMax))};ParserBlock$1.prototype.State=state_block;var parser_block=ParserBlock$1;function isTerminatorChar(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var text=function t(e,r){for(var o=e.pos;o<e.posMax&&!isTerminatorChar(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(r||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},SCHEME_RE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,linkify=function t(e,r){var o,a,c,u,d,p,g,b;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,a=e.posMax,o+3>a)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(c=e.pending.match(SCHEME_RE),!c)||(u=c[1],d=e.md.linkify.matchAtStart(e.src.slice(o-u.length)),!d)||(p=d.url,p.length<=u.length)||(p=p.replace(/\*+$/,""),g=e.md.normalizeLink(p),!e.md.validateLink(g))?!1:(r||(e.pending=e.pending.slice(0,-u.length),b=e.push("link_open","a",1),b.attrs=[["href",g]],b.markup="linkify",b.info="auto",b=e.push("text","",0),b.content=e.md.normalizeLinkText(p),b=e.push("link_close","a",-1),b.markup="linkify",b.info="auto"),e.pos+=p.length-u.length,!0)},isSpace$3=utils$1.isSpace,newline=function t(e,r){var o,a,c,u=e.pos;if(e.src.charCodeAt(u)!==10)return!1;if(o=e.pending.length-1,a=e.posMax,!r)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(c=o-1;c>=1&&e.pending.charCodeAt(c-1)===32;)c--;e.pending=e.pending.slice(0,c),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(u++;u<a&&isSpace$3(e.src.charCodeAt(u));)u++;return e.pos=u,!0},isSpace$2=utils$1.isSpace,ESCAPED=[];for(var i=0;i<256;i++)ESCAPED.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){ESCAPED[t.charCodeAt(0)]=1});var _escape=function t(e,r){var o,a,c,u,d,p=e.pos,g=e.posMax;if(e.src.charCodeAt(p)!==92||(p++,p>=g))return!1;if(o=e.src.charCodeAt(p),o===10){for(r||e.push("hardbreak","br",0),p++;p<g&&(o=e.src.charCodeAt(p),!!isSpace$2(o));)p++;return e.pos=p,!0}return u=e.src[p],o>=55296&&o<=56319&&p+1<g&&(a=e.src.charCodeAt(p+1),a>=56320&&a<=57343&&(u+=e.src[p+1],p++)),c="\\"+u,r||(d=e.push("text_special","",0),o<256&&ESCAPED[o]!==0?d.content=u:d.content=c,d.markup=c,d.info="escape"),e.pos=p+1,!0},backticks=function t(e,r){var o,a,c,u,d,p,g,b,x=e.pos,w=e.src.charCodeAt(x);if(w!==96)return!1;for(o=x,x++,a=e.posMax;x<a&&e.src.charCodeAt(x)===96;)x++;if(c=e.src.slice(o,x),g=c.length,e.backticksScanned&&(e.backticks[g]||0)<=o)return r||(e.pending+=c),e.pos+=g,!0;for(p=x;(d=e.src.indexOf("`",p))!==-1;){for(p=d+1;p<a&&e.src.charCodeAt(p)===96;)p++;if(b=p-d,b===g)return r||(u=e.push("code_inline","code",0),u.markup=c,u.content=e.src.slice(x,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=p,!0;e.backticks[b]=d}return e.backticksScanned=!0,r||(e.pending+=c),e.pos+=g,!0},strikethrough={};strikethrough.tokenize=function t(e,r){var o,a,c,u,d,p=e.pos,g=e.src.charCodeAt(p);if(r||g!==126||(a=e.scanDelims(e.pos,!0),u=a.length,d=String.fromCharCode(g),u<2))return!1;for(u%2&&(c=e.push("text","",0),c.content=d,u--),o=0;o<u;o+=2)c=e.push("text","",0),c.content=d+d,e.delimiters.push({marker:g,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0};function postProcess$1(t,e){var r,o,a,c,u,d=[],p=e.length;for(r=0;r<p;r++)a=e[r],a.marker===126&&a.end!==-1&&(c=e[a.end],u=t.tokens[a.token],u.type="s_open",u.tag="s",u.nesting=1,u.markup="~~",u.content="",u=t.tokens[c.token],u.type="s_close",u.tag="s",u.nesting=-1,u.markup="~~",u.content="",t.tokens[c.token-1].type==="text"&&t.tokens[c.token-1].content==="~"&&d.push(c.token-1));for(;d.length;){for(r=d.pop(),o=r+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,r!==o&&(u=t.tokens[o],t.tokens[o]=t.tokens[r],t.tokens[r]=u)}}strikethrough.postProcess=function t(e){var r,o=e.tokens_meta,a=e.tokens_meta.length;for(postProcess$1(e,e.delimiters),r=0;r<a;r++)o[r]&&o[r].delimiters&&postProcess$1(e,o[r].delimiters)};var emphasis={};emphasis.tokenize=function t(e,r){var o,a,c,u=e.pos,d=e.src.charCodeAt(u);if(r||d!==95&&d!==42)return!1;for(a=e.scanDelims(e.pos,d===42),o=0;o<a.length;o++)c=e.push("text","",0),c.content=String.fromCharCode(d),e.delimiters.push({marker:d,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0};function postProcess(t,e){var r,o,a,c,u,d,p=e.length;for(r=p-1;r>=0;r--)o=e[r],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(a=e[o.end],d=r>0&&e[r-1].end===o.end+1&&e[r-1].marker===o.marker&&e[r-1].token===o.token-1&&e[o.end+1].token===a.token+1,u=String.fromCharCode(o.marker),c=t.tokens[o.token],c.type=d?"strong_open":"em_open",c.tag=d?"strong":"em",c.nesting=1,c.markup=d?u+u:u,c.content="",c=t.tokens[a.token],c.type=d?"strong_close":"em_close",c.tag=d?"strong":"em",c.nesting=-1,c.markup=d?u+u:u,c.content="",d&&(t.tokens[e[r-1].token].content="",t.tokens[e[o.end+1].token].content="",r--))}emphasis.postProcess=function t(e){var r,o=e.tokens_meta,a=e.tokens_meta.length;for(postProcess(e,e.delimiters),r=0;r<a;r++)o[r]&&o[r].delimiters&&postProcess(e,o[r].delimiters)};var normalizeReference$1=utils$1.normalizeReference,isSpace$1=utils$1.isSpace,link=function t(e,r){var o,a,c,u,d,p,g,b,x,w="",y="",I=e.pos,k=e.posMax,T=e.pos,E=!0;if(e.src.charCodeAt(e.pos)!==91||(d=e.pos+1,u=e.md.helpers.parseLinkLabel(e,e.pos,!0),u<0))return!1;if(p=u+1,p<k&&e.src.charCodeAt(p)===40){for(E=!1,p++;p<k&&(a=e.src.charCodeAt(p),!(!isSpace$1(a)&&a!==10));p++);if(p>=k)return!1;if(T=p,g=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),g.ok){for(w=e.md.normalizeLink(g.str),e.md.validateLink(w)?p=g.pos:w="",T=p;p<k&&(a=e.src.charCodeAt(p),!(!isSpace$1(a)&&a!==10));p++);if(g=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<k&&T!==p&&g.ok)for(y=g.str,p=g.pos;p<k&&(a=e.src.charCodeAt(p),!(!isSpace$1(a)&&a!==10));p++);}(p>=k||e.src.charCodeAt(p)!==41)&&(E=!0),p++}if(E){if(typeof e.env.references>"u")return!1;if(p<k&&e.src.charCodeAt(p)===91?(T=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?c=e.src.slice(T,p++):p=u+1):p=u+1,c||(c=e.src.slice(d,u)),b=e.env.references[normalizeReference$1(c)],!b)return e.pos=I,!1;w=b.href,y=b.title}return r||(e.pos=d,e.posMax=u,x=e.push("link_open","a",1),x.attrs=o=[["href",w]],y&&o.push(["title",y]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,x=e.push("link_close","a",-1)),e.pos=p,e.posMax=k,!0},normalizeReference=utils$1.normalizeReference,isSpace=utils$1.isSpace,image=function t(e,r){var o,a,c,u,d,p,g,b,x,w,y,I,k,T="",E=e.pos,O=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(p=e.pos+2,d=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),d<0))return!1;if(g=d+1,g<O&&e.src.charCodeAt(g)===40){for(g++;g<O&&(a=e.src.charCodeAt(g),!(!isSpace(a)&&a!==10));g++);if(g>=O)return!1;for(k=g,x=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),x.ok&&(T=e.md.normalizeLink(x.str),e.md.validateLink(T)?g=x.pos:T=""),k=g;g<O&&(a=e.src.charCodeAt(g),!(!isSpace(a)&&a!==10));g++);if(x=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<O&&k!==g&&x.ok)for(w=x.str,g=x.pos;g<O&&(a=e.src.charCodeAt(g),!(!isSpace(a)&&a!==10));g++);else w="";if(g>=O||e.src.charCodeAt(g)!==41)return e.pos=E,!1;g++}else{if(typeof e.env.references>"u")return!1;if(g<O&&e.src.charCodeAt(g)===91?(k=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?u=e.src.slice(k,g++):g=d+1):g=d+1,u||(u=e.src.slice(p,d)),b=e.env.references[normalizeReference(u)],!b)return e.pos=E,!1;T=b.href,w=b.title}return r||(c=e.src.slice(p,d),e.md.inline.parse(c,e.md,e.env,I=[]),y=e.push("image","img",0),y.attrs=o=[["src",T],["alt",""]],y.children=I,y.content=c,w&&o.push(["title",w])),e.pos=g,e.posMax=O,!0},EMAIL_RE=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,autolink=function t(e,r){var o,a,c,u,d,p,g=e.pos;if(e.src.charCodeAt(g)!==60)return!1;for(d=e.pos,p=e.posMax;;){if(++g>=p||(u=e.src.charCodeAt(g),u===60))return!1;if(u===62)break}return o=e.src.slice(d+1,g),AUTOLINK_RE.test(o)?(a=e.md.normalizeLink(o),e.md.validateLink(a)?(r||(c=e.push("link_open","a",1),c.attrs=[["href",a]],c.markup="autolink",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(o),c=e.push("link_close","a",-1),c.markup="autolink",c.info="auto"),e.pos+=o.length+2,!0):!1):EMAIL_RE.test(o)?(a=e.md.normalizeLink("mailto:"+o),e.md.validateLink(a)?(r||(c=e.push("link_open","a",1),c.attrs=[["href",a]],c.markup="autolink",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(o),c=e.push("link_close","a",-1),c.markup="autolink",c.info="auto"),e.pos+=o.length+2,!0):!1):!1},HTML_TAG_RE=html_re.HTML_TAG_RE;function isLinkOpen(t){return/^<a[>\s]/i.test(t)}function isLinkClose(t){return/^<\/a\s*>/i.test(t)}function isLetter(t){var e=t|32;return e>=97&&e<=122}var html_inline=function t(e,r){var o,a,c,u,d=e.pos;return!e.md.options.html||(c=e.posMax,e.src.charCodeAt(d)!==60||d+2>=c)||(o=e.src.charCodeAt(d+1),o!==33&&o!==63&&o!==47&&!isLetter(o))||(a=e.src.slice(d).match(HTML_TAG_RE),!a)?!1:(r||(u=e.push("html_inline","",0),u.content=a[0],isLinkOpen(u.content)&&e.linkLevel++,isLinkClose(u.content)&&e.linkLevel--),e.pos+=a[0].length,!0)},entities=entities$1,has=utils$1.has,isValidEntityCode=utils$1.isValidEntityCode,fromCodePoint=utils$1.fromCodePoint,DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i,entity=function t(e,r){var o,a,c,u,d=e.pos,p=e.posMax;if(e.src.charCodeAt(d)!==38||d+1>=p)return!1;if(o=e.src.charCodeAt(d+1),o===35){if(c=e.src.slice(d).match(DIGITAL_RE),c)return r||(a=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),u=e.push("text_special","",0),u.content=isValidEntityCode(a)?fromCodePoint(a):fromCodePoint(65533),u.markup=c[0],u.info="entity"),e.pos+=c[0].length,!0}else if(c=e.src.slice(d).match(NAMED_RE),c&&has(entities,c[1]))return r||(u=e.push("text_special","",0),u.content=entities[c[1]],u.markup=c[0],u.info="entity"),e.pos+=c[0].length,!0;return!1};function processDelimiters(t){var e,r,o,a,c,u,d,p,g={},b=t.length;if(b){var x=0,w=-2,y=[];for(e=0;e<b;e++)if(o=t[e],y.push(0),(t[x].marker!==o.marker||w!==o.token-1)&&(x=e),w=o.token,o.length=o.length||0,!!o.close){for(g.hasOwnProperty(o.marker)||(g[o.marker]=[-1,-1,-1,-1,-1,-1]),c=g[o.marker][(o.open?3:0)+o.length%3],r=x-y[x]-1,u=r;r>c;r-=y[r]+1)if(a=t[r],a.marker===o.marker&&a.open&&a.end<0&&(d=!1,(a.close||o.open)&&(a.length+o.length)%3===0&&(a.length%3!==0||o.length%3!==0)&&(d=!0),!d)){p=r>0&&!t[r-1].open?y[r-1]+1:0,y[e]=e-r+p,y[r]=p,o.open=!1,a.end=e,a.close=!1,u=-1,w=-2;break}u!==-1&&(g[o.marker][(o.open?3:0)+(o.length||0)%3]=u)}}}var balance_pairs=function t(e){var r,o=e.tokens_meta,a=e.tokens_meta.length;for(processDelimiters(e.delimiters),r=0;r<a;r++)o[r]&&o[r].delimiters&&processDelimiters(o[r].delimiters)},fragments_join=function t(e){var r,o,a=0,c=e.tokens,u=e.tokens.length;for(r=o=0;r<u;r++)c[r].nesting<0&&a--,c[r].level=a,c[r].nesting>0&&a++,c[r].type==="text"&&r+1<u&&c[r+1].type==="text"?c[r+1].content=c[r].content+c[r+1].content:(r!==o&&(c[o]=c[r]),o++);r!==o&&(c.length=o)},Token=token,isWhiteSpace=utils$1.isWhiteSpace,isPunctChar=utils$1.isPunctChar,isMdAsciiPunct=utils$1.isMdAsciiPunct;function StateInline(t,e,r,o){this.src=t,this.env=r,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}StateInline.prototype.pushPending=function(){var t=new Token("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};StateInline.prototype.push=function(t,e,r){this.pending&&this.pushPending();var o=new Token(t,e,r),a=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(a),o};StateInline.prototype.scanDelims=function(t,e){var r=t,o,a,c,u,d,p,g,b,x,w=!0,y=!0,I=this.posMax,k=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;r<I&&this.src.charCodeAt(r)===k;)r++;return c=r-t,a=r<I?this.src.charCodeAt(r):32,g=isMdAsciiPunct(o)||isPunctChar(String.fromCharCode(o)),x=isMdAsciiPunct(a)||isPunctChar(String.fromCharCode(a)),p=isWhiteSpace(o),b=isWhiteSpace(a),b?w=!1:x&&(p||g||(w=!1)),p?y=!1:g&&(b||x||(y=!1)),e?(u=w,d=y):(u=w&&(!y||g),d=y&&(!w||x)),{can_open:u,can_close:d,length:c}};StateInline.prototype.Token=Token;var state_inline=StateInline,Ruler=ruler,_rules=[["text",text],["linkify",linkify],["newline",newline],["escape",_escape],["backticks",backticks],["strikethrough",strikethrough.tokenize],["emphasis",emphasis.tokenize],["link",link],["image",image],["autolink",autolink],["html_inline",html_inline],["entity",entity]],_rules2=[["balance_pairs",balance_pairs],["strikethrough",strikethrough.postProcess],["emphasis",emphasis.postProcess],["fragments_join",fragments_join]];function ParserInline$1(){var t;for(this.ruler=new Ruler,t=0;t<_rules.length;t++)this.ruler.push(_rules[t][0],_rules[t][1]);for(this.ruler2=new Ruler,t=0;t<_rules2.length;t++)this.ruler2.push(_rules2[t][0],_rules2[t][1])}ParserInline$1.prototype.skipToken=function(t){var e,r,o=t.pos,a=this.ruler.getRules(""),c=a.length,u=t.md.options.maxNesting,d=t.cache;if(typeof d[o]<"u"){t.pos=d[o];return}if(t.level<u){for(r=0;r<c;r++)if(t.level++,e=a[r](t,!0),t.level--,e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,d[o]=t.pos};ParserInline$1.prototype.tokenize=function(t){for(var e,r,o,a=this.ruler.getRules(""),c=a.length,u=t.posMax,d=t.md.options.maxNesting;t.pos<u;){if(o=t.pos,t.level<d){for(r=0;r<c;r++)if(e=a[r](t,!1),e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=u)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};ParserInline$1.prototype.parse=function(t,e,r,o){var a,c,u,d=new this.State(t,e,r,o);for(this.tokenize(d),c=this.ruler2.getRules(""),u=c.length,a=0;a<u;a++)c[a](d)};ParserInline$1.prototype.State=state_inline;var parser_inline=ParserInline$1,re,hasRequiredRe;function requireRe(){return hasRequiredRe||(hasRequiredRe=1,re=function(t){var e={};t=t||{},e.src_Any=requireRegex$3().source,e.src_Cc=requireRegex$2().source,e.src_Z=requireRegex().source,e.src_P=regex$4.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var r="[><|]";return e.src_pseudo_letter="(?:(?!"+r+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+r+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),re}function assign$2(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(r){r&&Object.keys(r).forEach(function(o){t[o]=r[o]})}),t}function _class(t){return Object.prototype.toString.call(t)}function isString$2(t){return _class(t)==="[object String]"}function isObject$4(t){return _class(t)==="[object Object]"}function isRegExp$1(t){return _class(t)==="[object RegExp]"}function isFunction$1(t){return _class(t)==="[object Function]"}function escapeRE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var defaultOptions={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(t){return Object.keys(t||{}).reduce(function(e,r){return e||defaultOptions.hasOwnProperty(r)},!1)}var defaultSchemas={"http:":{validate:function(t,e,r){var o=t.slice(e);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(o)?o.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,r){var o=t.slice(e);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,r){var o=t.slice(e);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(o)?o.match(r.re.mailto)[0].length:0}}},tlds_2ch_src_re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(t){t.__index__=-1,t.__text_cache__=""}function createValidator(t){return function(e,r){var o=e.slice(r);return t.test(o)?o.match(t)[0].length:0}}function createNormalizer(){return function(t,e){e.normalize(t)}}function compile$1(t){var e=t.re=requireRe()(t.__opts__),r=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||r.push(tlds_2ch_src_re),r.push(e.src_xn),e.src_tlds=r.join("|");function o(d){return d.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var a=[];t.__compiled__={};function c(d,p){throw new Error('(LinkifyIt) Invalid schema "'+d+'": '+p)}Object.keys(t.__schemas__).forEach(function(d){var p=t.__schemas__[d];if(p!==null){var g={validate:null,link:null};if(t.__compiled__[d]=g,isObject$4(p)){isRegExp$1(p.validate)?g.validate=createValidator(p.validate):isFunction$1(p.validate)?g.validate=p.validate:c(d,p),isFunction$1(p.normalize)?g.normalize=p.normalize:p.normalize?c(d,p):g.normalize=createNormalizer();return}if(isString$2(p)){a.push(d);return}c(d,p)}}),a.forEach(function(d){t.__compiled__[t.__schemas__[d]]&&(t.__compiled__[d].validate=t.__compiled__[t.__schemas__[d]].validate,t.__compiled__[d].normalize=t.__compiled__[t.__schemas__[d]].normalize)}),t.__compiled__[""]={validate:null,normalize:createNormalizer()};var u=Object.keys(t.__compiled__).filter(function(d){return d.length>0&&t.__compiled__[d]}).map(escapeRE).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+u+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+u+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),resetScanCache(t)}function Match(t,e){var r=t.__index__,o=t.__last_index__,a=t.__text_cache__.slice(r,o);this.schema=t.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=o+e,this.raw=a,this.text=a,this.url=a}function createMatch(t,e){var r=new Match(t,e);return t.__compiled__[r.schema].normalize(r,t),r}function LinkifyIt$1(t,e){if(!(this instanceof LinkifyIt$1))return new LinkifyIt$1(t,e);e||isOptionsObj(t)&&(e=t,t={}),this.__opts__=assign$2({},defaultOptions,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign$2({},defaultSchemas,t),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile$1(this)}LinkifyIt$1.prototype.add=function t(e,r){return this.__schemas__[e]=r,compile$1(this),this};LinkifyIt$1.prototype.set=function t(e){return this.__opts__=assign$2(this.__opts__,e),this};LinkifyIt$1.prototype.test=function t(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var r,o,a,c,u,d,p,g,b;if(this.re.schema_test.test(e)){for(p=this.re.schema_search,p.lastIndex=0;(r=p.exec(e))!==null;)if(c=this.testSchemaAt(e,r[2],p.lastIndex),c){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+c;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(g=e.search(this.re.host_fuzzy_test),g>=0&&(this.__index__<0||g<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(u=o.index+o[1].length,(this.__index__<0||u<this.__index__)&&(this.__schema__="",this.__index__=u,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(b=e.indexOf("@"),b>=0&&(a=e.match(this.re.email_fuzzy))!==null&&(u=a.index+a[1].length,d=a.index+a[0].length,(this.__index__<0||u<this.__index__||u===this.__index__&&d>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=u,this.__last_index__=d))),this.__index__>=0};LinkifyIt$1.prototype.pretest=function t(e){return this.re.pretest.test(e)};LinkifyIt$1.prototype.testSchemaAt=function t(e,r,o){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,o,this):0};LinkifyIt$1.prototype.match=function t(e){var r=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(createMatch(this,r)),r=this.__last_index__);for(var a=r?e.slice(r):e;this.test(a);)o.push(createMatch(this,r)),a=a.slice(this.__last_index__),r+=this.__last_index__;return o.length?o:null};LinkifyIt$1.prototype.matchAtStart=function t(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var r=this.re.schema_at_start.exec(e);if(!r)return null;var o=this.testSchemaAt(e,r[2],r[0].length);return o?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o,createMatch(this,0)):null};LinkifyIt$1.prototype.tlds=function t(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,a,c){return o!==c[a-1]}).reverse(),compile$1(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,compile$1(this),this)};LinkifyIt$1.prototype.normalize=function t(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};LinkifyIt$1.prototype.onCompile=function t(){};var linkifyIt=LinkifyIt$1;const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(t){throw new RangeError(errors[t])}function map(t,e){const r=[];let o=t.length;for(;o--;)r[o]=e(t[o]);return r}function mapDomain(t,e){const r=t.split("@");let o="";r.length>1&&(o=r[0]+"@",t=r[1]),t=t.replace(regexSeparators,".");const a=t.split("."),c=map(a,e).join(".");return o+c}function ucs2decode(t){const e=[];let r=0;const o=t.length;for(;r<o;){const a=t.charCodeAt(r++);if(a>=55296&&a<=56319&&r<o){const c=t.charCodeAt(r++);(c&64512)==56320?e.push(((a&1023)<<10)+(c&1023)+65536):(e.push(a),r--)}else e.push(a)}return e}const ucs2encode=t=>String.fromCodePoint(...t),basicToDigit=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:base},digitToBasic=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},adapt=function(t,e,r){let o=0;for(t=r?floor(t/damp):t>>1,t+=floor(t/e);t>baseMinusTMin*tMax>>1;o+=base)t=floor(t/baseMinusTMin);return floor(o+(baseMinusTMin+1)*t/(t+skew))},decode=function(t){const e=[],r=t.length;let o=0,a=initialN,c=initialBias,u=t.lastIndexOf(delimiter);u<0&&(u=0);for(let d=0;d<u;++d)t.charCodeAt(d)>=128&&error("not-basic"),e.push(t.charCodeAt(d));for(let d=u>0?u+1:0;d<r;){const p=o;for(let b=1,x=base;;x+=base){d>=r&&error("invalid-input");const w=basicToDigit(t.charCodeAt(d++));w>=base&&error("invalid-input"),w>floor((maxInt-o)/b)&&error("overflow"),o+=w*b;const y=x<=c?tMin:x>=c+tMax?tMax:x-c;if(w<y)break;const I=base-y;b>floor(maxInt/I)&&error("overflow"),b*=I}const g=e.length+1;c=adapt(o-p,g,p==0),floor(o/g)>maxInt-a&&error("overflow"),a+=floor(o/g),o%=g,e.splice(o++,0,a)}return String.fromCodePoint(...e)},encode$1=function(t){const e=[];t=ucs2decode(t);const r=t.length;let o=initialN,a=0,c=initialBias;for(const p of t)p<128&&e.push(stringFromCharCode(p));const u=e.length;let d=u;for(u&&e.push(delimiter);d<r;){let p=maxInt;for(const b of t)b>=o&&b<p&&(p=b);const g=d+1;p-o>floor((maxInt-a)/g)&&error("overflow"),a+=(p-o)*g,o=p;for(const b of t)if(b<o&&++a>maxInt&&error("overflow"),b===o){let x=a;for(let w=base;;w+=base){const y=w<=c?tMin:w>=c+tMax?tMax:w-c;if(x<y)break;const I=x-y,k=base-y;e.push(stringFromCharCode(digitToBasic(y+I%k,0))),x=floor(I/k)}e.push(stringFromCharCode(digitToBasic(x,0))),c=adapt(a,g,d===u),a=0,++d}++a,++o}return e.join("")},toUnicode=function(t){return mapDomain(t,function(e){return regexPunycode.test(e)?decode(e.slice(4).toLowerCase()):e})},toASCII=function(t){return mapDomain(t,function(e){return regexNonASCII.test(e)?"xn--"+encode$1(e):e})},punycode$1={version:"2.1.0",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode:encode$1,toASCII,toUnicode},punycode_es6=Object.freeze(Object.defineProperty({__proto__:null,decode,default:punycode$1,encode:encode$1,toASCII,toUnicode,ucs2decode,ucs2encode},Symbol.toStringTag,{value:"Module"})),require$$8=getAugmentedNamespace(punycode_es6);var _default={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},utils=utils$1,helpers=helpers$1,Renderer=renderer,ParserCore=parser_core,ParserBlock=parser_block,ParserInline=parser_inline,LinkifyIt=linkifyIt,mdurl=mdurl$1,punycode=require$$8,config={default:_default,zero,commonmark},BAD_PROTO_RE=/^(vbscript|javascript|file|data):/,GOOD_DATA_RE=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(t){var e=t.trim().toLowerCase();return BAD_PROTO_RE.test(e)?!!GOOD_DATA_RE.test(e):!0}var RECODE_HOSTNAME_FOR=["http:","https:","mailto:"];function normalizeLink(t){var e=mdurl.parse(t,!0);if(e.hostname&&(!e.protocol||RECODE_HOSTNAME_FOR.indexOf(e.protocol)>=0))try{e.hostname=punycode.toASCII(e.hostname)}catch{}return mdurl.encode(mdurl.format(e))}function normalizeLinkText(t){var e=mdurl.parse(t,!0);if(e.hostname&&(!e.protocol||RECODE_HOSTNAME_FOR.indexOf(e.protocol)>=0))try{e.hostname=punycode.toUnicode(e.hostname)}catch{}return mdurl.decode(mdurl.format(e),mdurl.decode.defaultChars+"%")}function MarkdownIt$1(t,e){if(!(this instanceof MarkdownIt$1))return new MarkdownIt$1(t,e);e||utils.isString(t)||(e=t||{},t="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new ParserCore,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils,this.helpers=utils.assign({},helpers),this.options={},this.configure(t),e&&this.set(e)}MarkdownIt$1.prototype.set=function(t){return utils.assign(this.options,t),this};MarkdownIt$1.prototype.configure=function(t){var e=this,r;if(utils.isString(t)&&(r=t,t=config[r],!t))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};MarkdownIt$1.prototype.enable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(t,!0))},this),r=r.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(a){return r.indexOf(a)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};MarkdownIt$1.prototype.disable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(t,!0))},this),r=r.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(a){return r.indexOf(a)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};MarkdownIt$1.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};MarkdownIt$1.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var r=new this.core.State(t,this,e);return this.core.process(r),r.tokens};MarkdownIt$1.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};MarkdownIt$1.prototype.parseInline=function(t,e){var r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens};MarkdownIt$1.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var lib=MarkdownIt$1,markdownIt=lib;const MarkdownIt=getDefaultExportFromCjs(markdownIt),VueMarkdown=vue.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1},plugins:{type:Array,required:!1}},setup(t){const e=vue.ref(new MarkdownIt(t.options??{}));for(const o of t.plugins??[])e.value.use(o);const r=vue.computed(()=>e.value.render(t.source));return()=>vue.h("div",{innerHTML:r.value})}}),VueMarkdown$1=VueMarkdown,_hoisted_1$7={key:0,class:"empty-state"},_hoisted_2$3={class:"item-header"},_hoisted_3$3={class:"truncate"},_hoisted_4$1={key:1,class:"empty-state"},_hoisted_5$1={key:1,class:"empty-state"},_hoisted_6$1={key:1,class:"empty-state"},_sfc_main$d=vue.defineComponent({__name:"DxpGitBookSearch",setup(t){const e=vue.ref(),r=vue.ref("search");let o=vue.ref(""),a=vue.ref([]);const c=vue.ref({}),u=vue.ref(!1),d=vue.ref(!1),p=vue.ref([]),g=vue.ref(!1);function b(){e.value.$el.dismiss(null,"cancel")}function x(){o.value="",a.value=[],c.value={}}async function w(){u.value=!0;let O={};try{const A=await gitBookContext.askQuery({queryString:o.value,spaceId:process.env.VUE_APP_SPACE_ID,baseURL:process.env.VUE_APP_GITBOOK_BASE_URL,token:process.env.VUE_APP_GITBOOK_API_KEY});if(!lib$2.hasError(A))O=A.data.answer,p.value=[],g.value=!1;else throw A.data}catch(A){console.error(A)}c.value=O,u.value=!1}async function y(){u.value=!0;let O=[];const A=process.env.VUE_APP_GITBOOK_BASE_URL;try{const L=await gitBookContext.searchQuery({queryString:o.value,spaceId:process.env.VUE_APP_SPACE_ID,baseURL:A,token:process.env.VUE_APP_GITBOOK_API_KEY});if(!lib$2.hasError(L))O=L.data.items;else throw L.data}catch(L){console.error(L)}a.value=O,u.value=!1}async function I(){d.value=!0;const O=[];(await Promise.allSettled(c.value.sources.map(L=>{if(L.type==="page")return gitBookContext.getGitBookPage({pageId:L.page,spaceId:process.env.VUE_APP_SPACE_ID,baseURL:process.env.VUE_APP_GITBOOK_BASE_URL,token:process.env.VUE_APP_GITBOOK_API_KEY})}))).map(L=>{L.status==="fulfilled"&&O.push(L.value.data)}),p.value=O,d.value=!1,g.value=!0}function k(O){window.open(`https://docs.hotwax.co/user-guides/${O.path}`,"_blank")}function T(O){o.value=O,w()}function E(){r.value="search",o.value="",a.value=[],c.value={},u.value=!1,d.value=!1,p.value=[],g.value=!1}return(O,A)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(IonTabButton),{tab:"help",id:"gibook-search-modal"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(helpOutline)},null,8,["icon"]),vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("Help")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonModal),{ref_key:"gitBookSearchModal",ref:e,trigger:"gibook-search-modal",onWillDismiss:A[4]||(A[4]=L=>E())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButtons),{slot:"start"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButton),{onClick:b},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(close),slot:"icon-only"},null,8,["icon"])]),_:1})]),_:1}),vue.createVNode(vue.unref(IonTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("Ask me anything?")),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(IonContent),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSearchbar),{placeholder:vue.unref(exports.translate)(r.value==="search"?"Search...":"Ask..."),value:vue.unref(o),onKeyup:A[0]||(A[0]=vue.withKeys(L=>{vue.isRef(o)?o.value=L.target.value:o=L.target.value,r.value==="search"?y():w()},["enter"]))},null,8,["placeholder","value"]),vue.createVNode(vue.unref(IonSegment),{modelValue:r.value,"onUpdate:modelValue":A[1]||(A[1]=L=>r.value=L),onIonChange:A[2]||(A[2]=L=>x())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSegmentButton),{value:"search"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("Search")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonSegmentButton),{value:"ask"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("Ask")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"]),u.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$7,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSpinner),{name:"crescent",slot:"start"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(exports.translate)(r.value==="search"?"Searching your query.":"Analyzing the question to answer your question.")),1)]),_:1})])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[r.value==="search"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.unref(a).length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(vue.unref(a),(L,R)=>(vue.openBlock(),vue.createElementBlock("div",{key:R},[vue.createVNode(vue.unref(IonItem),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(documentOutline),slot:"start"},null,8,["icon"]),vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L.title),1)]),_:2},1024),vue.createVNode(vue.unref(IonButton),{fill:"clear",color:"medium",slot:"end",onClick:$=>k(L)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(returnDownBackOutline),slot:"start"},null,8,["icon"]),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(exports.translate)("go to page")),1)]),_:2},1032,["onClick"])]),_:2},1024),L.sections.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(L.sections,($,P)=>(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:P,class:"ion-padding-left"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(returnDownForwardOutline),slot:"start"},null,8,["icon"]),vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$3,[vue.createVNode(vue.unref(VueMarkdown$1),{source:$.title?$.title:L.title},null,8,["source"]),vue.createVNode(vue.unref(IonButton),{fill:"clear",color:"medium",slot:"end",onClick:z=>k($)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(returnDownBackOutline),slot:"start"},null,8,["icon"]),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(exports.translate)("go to section")),1)]),_:2},1032,["onClick"])]),vue.createElementVNode("p",_hoisted_3$3,[vue.createVNode(vue.unref(VueMarkdown$1),{source:$.body},null,8,["source"])])]),_:2},1024)]),_:2},1024))),128)):vue.createCommentVNode("",!0)]))),128)):vue.unref(o)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$1,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("No page found.")),1)]),_:1})])):vue.createCommentVNode("",!0)],64)):r.value==="ask"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.value&&Object.keys(c.value).length?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(o)),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonItem),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",null,[vue.createVNode(vue.unref(VueMarkdown$1),{source:c.value.text},null,8,["source"])])]),_:1})]),_:1}),c.value.sources.length?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:0,button:"",onClick:A[3]||(A[3]=L=>g.value?"":I())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(vue.unref(exports.translate)("Answer based on resources",{count:c.value.sources.length})),1)]),_:1}),vue.createVNode(vue.unref(IonIcon),{icon:p.value.length?vue.unref(caretDownOutline):vue.unref(caretForwardOutline)},null,8,["icon"])]),_:1})):vue.createCommentVNode("",!0),d.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSpinner),{name:"crescent",slot:"start"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(exports.translate)("Fetching resources...")),1)]),_:1})])):p.value.length?(vue.openBlock(),vue.createBlock(vue.unref(IonList),{key:2},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.value,L=>(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:L.title},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L.title),1)]),_:2},1024),vue.createVNode(vue.unref(IonButton),{fill:"clear",color:"medium",slot:"end",onClick:R=>k(L)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(returnDownBackOutline),slot:"start"},null,8,["icon"]),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(exports.translate)("go to page")),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})):g.value?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:3},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(vue.unref(exports.translate)("No resource found.")),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),c.value.followupQuestions.length?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:4},[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(vue.unref(exports.translate)("Related Queries")),1)]),_:1})]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value.followupQuestions,(L,R)=>(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{lines:"none",key:R,onClick:$=>T(L)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonChip),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(searchOutline)},null,8,["icon"]),vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128))],64)):vue.createCommentVNode("",!0)],64)):vue.unref(o)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("No answer found.")),1)]),_:1})])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)],64))]),_:1})]),_:1},512)],64))}}),goToOms=(t,e)=>{const r=(e.startsWith("http")?e.replace(/\/api\/?|\/$/,""):`https://${e}.hotwax.io`)+`/commerce/control/main?token=${t}`;window.open(r,"_blank","noopener, noreferrer")},getProductIdentificationValue=(t,e)=>{var a;if(!Object.keys(e).length)return;let r=e[t];const o=(a=e.goodIdentifications)==null?void 0:a.find(c=>c.startsWith(t+"/"));return o&&(r=o.split("/")[1]),r},showToast$1=async(t,e)=>{const r=[{text:"Dismiss",role:"cancel"}];return e&&r.push(...e),(await toastController.create({message:t,duration:3e3,position:"bottom",buttons:r})).present()},getCurrentTime=(t,e="t ZZZZ")=>DateTime.now().setZone(t).toFormat(e),getAppLoginUrl=()=>useAuthStore().isEmbedded?process.env.VUE_APP_EMBEDDED_LAUNCHPAD_URL:process.env.VUE_APP_LOGIN_URL,useUserStore=defineStore("user",{state:()=>({eComStores:[],currentEComStore:{},localeOptions:process.env.VUE_APP_LOCALES?JSON.parse(process.env.VUE_APP_LOCALES):{"en-US":"English"},locale:"en-US",currentTimeZoneId:"",timeZones:[],facilities:[],currentFacility:{}}),getters:{getLocale:t=>t.locale,getLocaleOptions:t=>t.localeOptions,getTimeZones:t=>t.timeZones,getCurrentTimeZone:t=>t.currentTimeZoneId,getFacilites:t=>t.facilities,getCurrentFacility:t=>t.currentFacility,getProductStores:t=>t.eComStores,getCurrentEComStore:t=>t.currentEComStore},actions:{async setLocale(t){let e,r;e=this.locale;try{t&&(r=Object.keys(this.localeOptions).find(o=>o===t),r=r||Object.keys(this.localeOptions).find(o=>o.slice(0,2)===t.slice(0,2)),e=r||this.locale,userContext.setUserLocale&&await userContext.setUserLocale({newLocale:e}))}catch(o){console.error(o)}finally{exports.i18n.global.locale.value=e,this.locale=e}},async setUserTimeZone(t){if(this.currentTimeZoneId!==t)try{return await userContext.setUserTimeZone({tzId:t}),this.currentTimeZoneId=t,showToast$1(exports.translate("Time zone updated successfully")),Promise.resolve(t)}catch(e){return console.error("Error",e),Promise.reject("")}},async getAvailableTimeZones(){if(!this.timeZones.length)try{const t=await userContext.getAvailableTimeZones();this.timeZones=t.filter(e=>DateTime.local().setZone(e.id).isValid)}catch(t){console.error("Error",t)}},updateTimeZone(t){this.currentTimeZoneId=t},async getUserFacilities(t,e,r,o={}){const a=useAuthStore();try{const c=await facilityContext.getUserFacilities(a.getToken.value,a.getBaseUrl,t,e,r,o);this.facilities=c}catch(c){console.error(c)}return this.facilities},async getFacilityPreference(t,e=""){const r=useAuthStore();if(!this.facilities.length)return;let o=this.facilities[0];try{let a=await facilityContext.getUserPreference(r.getToken.value,r.getBaseUrl,t,e);if(a){const c=this.facilities.find(u=>u.facilityId===a);c&&(o=c)}}catch(a){console.error(a)}this.currentFacility=o},async setFacilityPreference(t){const r=exports.appContext.config.globalProperties.$store.getters["user/getUserProfile"];try{await facilityContext.setUserPreference({userPrefTypeId:"SELECTED_FACILITY",userPrefValue:t.facilityId,userId:r.userId})}catch(o){console.error("error",o)}this.currentFacility=t},async getEComStoresByFacility(t){const e=useAuthStore();try{const r=await productStoreContext.getEComStoresByFacility(e.getToken.value,e.getBaseUrl,100,t);this.eComStores=r}catch(r){console.error(r)}return this.eComStores},async getEComStores(){const t=useAuthStore();try{const e=await productStoreContext.getEComStores(t.getToken.value,t.getBaseUrl,100);this.eComStores=e}catch(e){console.error(e)}return this.eComStores},async getEComStorePreference(t,e=""){const r=useAuthStore();if(!this.eComStores.length)return;let o=this.eComStores[0];try{let a=await productStoreContext.getUserPreference(r.getToken.value,r.getBaseUrl,t,e);if(a){const c=this.eComStores.find(u=>u.productStoreId===a);c&&(o=c)}}catch(a){console.error(a)}this.currentEComStore=o},async setEComStorePreference(t){const r=exports.appContext.config.globalProperties.$store.getters["user/getUserProfile"];try{await productStoreContext.setUserPreference({userPrefTypeId:"SELECTED_BRAND",userPrefValue:t.productStoreId,userId:r.userId})}catch(o){console.error("error",o)}this.currentEComStore=t}},persist:!0}),_hoisted_1$6={key:0,class:"empty-state"},_hoisted_2$2={key:1,class:"empty-state"},_hoisted_3$2={key:2},_sfc_main$c=vue.defineComponent({__name:"DxpFacilitySwitcher",emits:["updateFacility"],setup(t,{emit:e}){const r=useUserStore(),o=vue.computed(()=>r.getFacilites),a=vue.computed(()=>r.getCurrentFacility),c=vue.ref(),u=vue.ref(""),d=vue.ref(!0),p=vue.ref([]),g=vue.ref(""),b=()=>{c.value.$el.dismiss(null,"cancel")};function x(){p.value=o.value,g.value=a.value.facilityId,d.value=!1}const w=()=>{d.value=!0;const E=u.value.trim().toLowerCase();E?p.value=o.value.filter(O=>{var A,L;return((A=O.facilityName)==null?void 0:A.toLowerCase().includes(E))||((L=O.facilityId)==null?void 0:L.toLowerCase().includes(E))}):p.value=o.value,d.value=!1};async function y(E){(await E.target.getInputElement()).select()}function I(E){/[`!@#$%^&*()_+\-=\\|,.<>?~]/.test(E.key)&&E.preventDefault()}async function k(){const E=o.value.find(O=>O.facilityId===g.value);await r.setFacilityPreference(E),e("updateFacility",E),b()}function T(){u.value="",p.value=[],g.value="",d.value=!0}return(E,O)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(E.$t("Facility")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(E.$t("Specify which facility you want to operate from. Order, inventory and other configuration data will be specific to the facility you select.")),1)]),_:1}),vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>{var A;return[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.value.facilityName)+" ",1),vue.createElementVNode("p",null,vue.toDisplayString(a.value.facilityId),1)]),_:1}),((A=o.value)==null?void 0:A.length)>1?(vue.openBlock(),vue.createBlock(vue.unref(IonButton),{key:0,id:"open-facility-modal",slot:"end",fill:"outline",color:"dark"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(E.$t("Change")),1)]),_:1})):vue.createCommentVNode("",!0)]}),_:1})]),_:1}),vue.createVNode(vue.unref(IonModal),{ref_key:"facilityModal",ref:c,trigger:"open-facility-modal",onDidPresent:O[5]||(O[5]=A=>x()),onDidDismiss:O[6]||(O[6]=A=>T())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButtons),{slot:"start"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButton),{onClick:b},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(closeOutline)},null,8,["icon"])]),_:1})]),_:1}),vue.createVNode(vue.unref(IonTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(E.$t("Select Facility")),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(IonContent),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSearchbar),{onIonFocus:O[0]||(O[0]=A=>y(A)),placeholder:E.$t("Search facilities"),modelValue:u.value,"onUpdate:modelValue":O[1]||(O[1]=A=>u.value=A),onKeyup:O[2]||(O[2]=vue.withKeys(A=>{u.value=A.target.value,w()},["enter"])),onKeydown:O[3]||(O[3]=A=>I(A))},null,8,["placeholder","modelValue"]),vue.createVNode(vue.unref(IonRadioGroup),{modelValue:g.value,"onUpdate:modelValue":O[4]||(O[4]=A=>g.value=A)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonList),null,{default:vue.withCtx(()=>[d.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$6,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSpinner),{color:"secondary",name:"crescent",slot:"start"}),vue.createTextVNode(" "+vue.toDisplayString(E.$t("Fetching facilities")),1)]),_:1})])):p.value.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$2,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.value,A=>(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:A.facilityId},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonRadio),{"label-placement":"end",justify:"start",value:A.facilityId},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(A.facilityName)+" ",1),vue.createElementVNode("p",null,vue.toDisplayString(A.facilityId),1)]),_:2},1024)]),_:2},1032,["value"])]),_:2},1024))),128))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$2,[vue.createElementVNode("p",null,vue.toDisplayString(E.$t("No facilities found")),1)]))]),_:1})]),_:1},8,["modelValue"]),vue.createVNode(vue.unref(IonFab),{vertical:"bottom",horizontal:"end",slot:"fixed"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonFabButton),{disabled:g.value===a.value.facilityId,onClick:k},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(saveOutline)},null,8,["icon"])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},512)],64))}}),DxpFacilitySwitcher_vue_vue_type_style_index_0_scoped_f436bef6_lang="",_export_sfc=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r},DxpFacilitySwitcher=_export_sfc(_sfc_main$c,[["__scopeId","data-v-f436bef6"]]),_hoisted_1$5=["src"],_sfc_main$b=vue.defineComponent({__name:"DxpImage",props:["src"],setup(t){const e=t;let r=vue.ref(imageContext.defaultImgUrl),o=process.env.VUE_APP_RESOURCE_URL||"";const a=()=>{if(e.src)if(e.src.startsWith("http"))c(e.src).then(()=>{r.value=e.src}).catch(()=>{console.error("Image doesn't exist")});else if(e.src.indexOf("assets/")!=-1||e.src.startsWith("/img/"))r.value=e.src;else{const u=o.concat(e.src);c(r).then(()=>{r.value=u}).catch(()=>{console.error("Image doesn't exist")})}},c=u=>new Promise((d,p)=>{const g=new Image;g.onload=()=>d(!0),g.onerror=()=>p(!1),g.src=u});return vue.onMounted(()=>{a()}),vue.onUpdated(()=>{a()}),(u,d)=>(vue.openBlock(),vue.createElementBlock("img",{src:vue.unref(r)},null,8,_hoisted_1$5))}}),_sfc_main$a=vue.defineComponent({__name:"DxpLanguageSwitcher",setup(t){const e=useUserStore(),r=vue.computed(()=>e.getLocaleOptions),o=vue.computed(()=>e.getLocale),a=c=>{e.setLocale(c)};return(c,u)=>(vue.openBlock(),vue.createBlock(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(c.$t("Language")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(c.$t("Select your preferred language.")),1)]),_:1}),vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSelect),{label:c.$t("Choose language"),interface:"popover",value:o.value,onIonChange:u[0]||(u[0]=d=>a(d.detail.value))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Object.keys(r.value),d=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:d,value:d},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.value[d]),1)]),_:2},1032,["value"]))),128))]),_:1},8,["label","value"])]),_:1})]),_:1}))}});/**
|
|
250
250
|
* @license
|
|
251
251
|
* Copyright 2017 Google LLC
|
|
252
252
|
*
|
|
@@ -1159,7 +1159,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1159
1159
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1160
1160
|
* See the License for the specific language governing permissions and
|
|
1161
1161
|
* limitations under the License.
|
|
1162
|
-
*/function getMessagingInWindow(t=getApp()){return isWindowSupported().then(e=>{if(!e)throw ERROR_FACTORY.create("unsupported-browser")},e=>{throw ERROR_FACTORY.create("indexed-db-unsupported")}),_getProvider(getModularInstance(t),"messaging").getImmediate()}async function getToken(t,e){return t=getModularInstance(t),getToken$1(t,e)}function onMessage(t,e){return t=getModularInstance(t),onMessage$1(t,e)}registerMessagingInWindow();const initialiseFirebaseApp=async(t,e,r,o)=>{const a=t;if(!await isWindowSupported()){console.error("Notifications not supported");return}const c=initializeApp(a),u=getMessagingInWindow(c);if(await Notification.requestPermission()==="granted"){const p=await getToken(u,{vapidKey:e});await r(p),onMessage(u,b=>{o({notification:b,isForeground:!0})});const g=new BroadcastChannel("FB_BG_MESSAGES");g.onmessage=b=>{o({notification:b.data,isForeground:!1})}}else alert("You denied notifications.")},_hoisted_1$4={class:"center-div"},_hoisted_2$1={key:1},_hoisted_3$1={key:2},_sfc_main$9=vue.defineComponent({__name:"DxpLogin",setup(t){const e=useAuthStore(),r=exports.appContext.config.globalProperties.$router,o=exports.appContext.config.globalProperties.$route,a=vue.ref({message:"",responseMessage:""});vue.onMounted(async()=>{if(!Object.keys(o.query).length){window.location.replace(loginContext.appLoginUrl);return}const{token:d,oms:p,expirationTime:g,omsRedirectionUrl:b}=o.query;await c(d,p,g,b)});async function c(d,p,g,b=""){const x=loginContext.getConfig();if(await loginContext.logout({isUserUnauthorised:!0}),await loginContext.initialise(x),+g<DateTime.now().toMillis()){console.error("User token has expired, redirecting to launchpad."),a.value.message="User token has expired, redirecting to launchpad.";const w=window.location.origin+"/login";window.location.replace(`${loginContext.appLoginUrl}?isLoggedOut=true&redirectUrl=${w}`);return}e.$patch({token:{value:d,expiration:g},oms:p}),loginContext.loader.present("Logging in");try{const w=await loginContext.login({token:d,oms:p,omsRedirectionUrl:b}),y=useUserStore(),I=exports.appContext.config.globalProperties.$store;await y.setLocale(I.getters["user/getUserProfile"].userLocale);const k=I.getters["user/getAllNotificationPrefs"];notificationContext.appFirebaseConfig&¬ificationContext.appFirebaseConfig.apiKey&&(k!=null&&k.length)&&await initialiseFirebaseApp(notificationContext.appFirebaseConfig,notificationContext.appFirebaseVapidKey,notificationContext.storeClientRegistrationToken,notificationContext.addNotification),r.replace(w||"/")}catch(w){console.error(w),a.value.message="Please contact the administrator.",a.value.responseMessage=w.message||""}finally{loginContext.loader.dismiss()}}function u(){window.location.replace(process.env.VUE_APP_LOGIN_URL)}return(d,p)=>(vue.openBlock(),vue.createBlock(vue.unref(IonContent),null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$4,[a.value.message.length?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:0,lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"start",color:"warning",icon:vue.unref(warningOutline)},null,8,["icon"]),vue.createElementVNode("h4",null,vue.toDisplayString(d.$t("Login failed")),1)]),_:1})):vue.createCommentVNode("",!0),a.value.responseMessage.length?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$1,vue.toDisplayString(d.$t("Reason:"))+" "+vue.toDisplayString(d.$t(a.value.responseMessage)),1)):vue.createCommentVNode("",!0),a.value.message.length?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$1,vue.toDisplayString(d.$t(a.value.message)),1)):vue.createCommentVNode("",!0),a.value.message.length?(vue.openBlock(),vue.createBlock(vue.unref(IonButton),{key:3,class:"ion-margin-top",onClick:p[0]||(p[0]=g=>u())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"start",icon:vue.unref(arrowBackOutline)},null,8,["icon"]),vue.createTextVNode(" "+vue.toDisplayString(d.$t("Back to Launchpad")),1)]),_:1})):vue.createCommentVNode("",!0)])]),_:1}))}}),DxpLogin_vue_vue_type_style_index_0_lang="",_hoisted_1$3={class:"overline"},_sfc_main$8=vue.defineComponent({__name:"DxpMenuFooterNavigation",emits:["updateEComStore"],setup(t,{emit:e}){const r=useAuthStore(),o=useUserStore(),a=exports.appContext.config.globalProperties.$store,c=vue.computed(()=>r.getOms),u=vue.computed(()=>o.getProductStores),d=vue.computed(()=>o.getCurrentEComStore),p=vue.computed(()=>({userProfile:a.getters["user/getUserProfile"],currentEComStore:o.getCurrentEComStore,shopifyConfigs:a.getters["user/getShopifyConfigs"],currentShopifyConfig:a.getters["user/getCurrentShopifyConfig"]})),g=Intl.DateTimeFormat().resolvedOptions().timeZone;async function b(x){const w=u.value.find(y=>y.productStoreId==x);await o.setEComStorePreference(w),e("updateEComStore",w)}return(x,w)=>(vue.openBlock(),vue.createBlock(vue.unref(IonFooter),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>{var y,I,k,T,E;return[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>{var O;return[vue.createVNode(vue.unref(IonLabel),{class:"ion-text-wrap"},{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_1$3,vue.toDisplayString(c.value),1)]),_:1}),vue.createVNode(vue.unref(IonNote),{color:vue.unref(g)===((O=p.value.userProfile)==null?void 0:O.userTimeZone)?"":"danger",slot:"end"},{default:vue.withCtx(()=>{var A;return[vue.createTextVNode(vue.toDisplayString((A=p.value.userProfile)==null?void 0:A.userTimeZone),1)]}),_:1},8,["color"])]}),_:1}),((y=u.value)==null?void 0:y.length)>2?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:0,lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSelect),{interface:"popover",value:d.value.productStoreId,onIonChange:w[0]||(w[0]=O=>b(O.target.value))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(u.value,O=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:O.productStoreId,value:O.productStoreId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(O.storeName),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1})):(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:1,lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),{class:"ion-text-wrap"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(d.value.storeName),1)]),_:1})]),_:1})),(I=p.value.shopifyConfigs)!=null&&I.length?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[((k=p.value.shopifyConfigs)==null?void 0:k.length)>1&&((E=(T=p.value.userProfile)==null?void 0:T.stores)==null?void 0:E.length)<3?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:0,lines:"none"},{default:vue.withCtx(()=>{var O;return[vue.createVNode(vue.unref(IonSelect),{interface:"popover",value:(O=p.value.currentShopifyConfig)==null?void 0:O.shopifyConfigId,onIonChange:w[1]||(w[1]=A=>x.$emit("updateShopifyConfig",A))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.value.shopifyConfigs,A=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:A.shopifyConfigId,value:A.shopifyConfigId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(A.name?A.name:A.shopifyConfigName),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]}),_:1})):(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:1,lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),{class:"ion-text-wrap"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(p.value.currentShopifyConfig.name?p.value.currentShopifyConfig.name:p.value.currentShopifyConfig.shopifyConfigName),1)]),_:1})]),_:1}))],64)):vue.createCommentVNode("",!0)]}),_:1})]),_:1}))}}),_sfc_main$7=vue.defineComponent({__name:"DxpOmsInstanceNavigator",setup(t){const e=useAuthStore(),r=vue.computed(()=>e.getToken),o=vue.computed(()=>e.getOms);return(a,c)=>(vue.openBlock(),vue.createBlock(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardSubtitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.$t("OMS instance")),1)]),_:1}),vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(e).getOms),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.$t("This is the name of the OMS you are connected to right now. Make sure that you are connected to the right instance before proceeding.")),1)]),_:1}),vue.createVNode(vue.unref(IonButton),{onClick:c[0]||(c[0]=u=>vue.unref(goToOms)(r.value.value,o.value)),fill:"clear",disabled:!vue.unref(exports.appContext).hasPermission(vue.unref(exports.appContext).Actions.APP_COMMERCE_VIEW)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.$t("Go to OMS"))+" ",1),vue.createVNode(vue.unref(IonIcon),{slot:"end",icon:vue.unref(openOutline)},null,8,["icon"])]),_:1},8,["disabled"])]),_:1}))}}),_sfc_main$6=vue.defineComponent({__name:"DxpPagination",props:{itemsPerPage:{type:Number,required:!0},totalItems:{type:Number,required:!0}},emits:["updatePageIndex"],setup(t,{emit:e}){const r=t,o=vue.computed(()=>Math.ceil(r.totalItems/r.itemsPerPage)),a=vue.ref(1);function c(){const d=[],p=Math.max(1,a.value-1),g=Math.min(o.value,a.value+1);for(let b=p;b<=g;b++)d.push(b);return d}function u(d){a.value=d;const p=a.value-1;e("updatePageIndex",p)}return(d,p)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(IonButton),{size:"small",fill:"clear",color:"medium",onClick:p[0]||(p[0]=g=>u(1)),disabled:a.value===1},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"icon-only",icon:vue.unref(playSkipBackOutline)},null,8,["icon"])]),_:1},8,["disabled"]),vue.createVNode(vue.unref(IonButton),{size:"small",fill:"clear",color:"medium",onClick:p[1]||(p[1]=g=>u(a.value-1)),disabled:a.value===1},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"icon-only",icon:vue.unref(chevronBackOutline)},null,8,["icon"])]),_:1},8,["disabled"]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c(),g=>(vue.openBlock(),vue.createBlock(vue.unref(IonButton),{key:g,fill:"clear",size:a.value===g?"default":"small",color:a.value===g?"dark":"medium",onClick:b=>u(g)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(g),1)]),_:2},1032,["size","color","onClick"]))),128)),vue.createVNode(vue.unref(IonButton),{size:"small",fill:"clear",color:"medium",onClick:p[2]||(p[2]=g=>u(a.value+1)),disabled:a.value===o.value},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"icon-only",icon:vue.unref(chevronForwardOutline)},null,8,["icon"])]),_:1},8,["disabled"]),vue.createVNode(vue.unref(IonButton),{size:"small",fill:"clear",color:"medium",onClick:p[3]||(p[3]=g=>u(o.value)),disabled:a.value===o.value},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"icon-only",icon:vue.unref(playSkipForwardOutline)},null,8,["icon"])]),_:1},8,["disabled"])],64))}}),_sfc_main$5=vue.defineComponent({__name:"DxpProductIdentifier",setup(t){const e=useProductIdentificationStore(),r=useUserStore(),o=vue.computed(()=>r.getCurrentEComStore),a=vue.computed(()=>e.getProductIdentificationPref),c=vue.computed(()=>e.getProductIdentificationOptions);vue.onMounted(()=>{e.prepareProductIdentifierOptions(),e.getIdentificationPref(o.value.productStoreId)});function u(d,p){e.setProductIdentificationPref(p,d,o.value.productStoreId)}return(d,p)=>(vue.openBlock(),vue.createBlock(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString("Product Identifier"))]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString("Choosing a product identifier allows you to view products with your preferred identifiers."),1)]),_:1}),vue.createVNode(vue.unref(IonItem),{disabled:!vue.unref(exports.appContext).hasPermission(vue.unref(exports.appContext).Actions.APP_PRODUCT_IDENTIFIER_UPDATE)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSelect),{label:d.$t("Primary"),interface:"popover",placeholder:"primary identifier",value:a.value.primaryId,onIonChange:p[0]||(p[0]=g=>u(g.detail.value,"primaryId"))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value,g=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:g.goodIdentificationTypeId,value:g.goodIdentificationTypeId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(g.description?g.description:g.goodIdentificationTypeId),1)]),_:2},1032,["value"]))),128))]),_:1},8,["label","value"])]),_:1},8,["disabled"]),vue.createVNode(vue.unref(IonItem),{lines:"none",disabled:!vue.unref(exports.appContext).hasPermission(vue.unref(exports.appContext).Actions.APP_PRODUCT_IDENTIFIER_UPDATE)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSelect),{label:d.$t("Secondary"),interface:"popover",placeholder:"secondary identifier",value:a.value.secondaryId,onIonChange:p[1]||(p[1]=g=>u(g.detail.value,"secondaryId"))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value,g=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:g.goodIdentificationTypeId,value:g.goodIdentificationTypeId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(g.description?g.description:g.goodIdentificationTypeId),1)]),_:2},1032,["value"]))),128)),vue.createVNode(vue.unref(IonSelectOption),{value:""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString("None"))]),_:1})]),_:1},8,["label","value"])]),_:1},8,["disabled"])]),_:1}))}}),_sfc_main$4=vue.defineComponent({__name:"DxpProductStoreSelector",emits:["updateEComStore"],setup(t,{emit:e}){const r=useUserStore(),o=vue.computed(()=>r.getProductStores),a=vue.computed(()=>r.getCurrentEComStore);async function c(u){const d=o.value.find(p=>p.productStoreId==u);await r.setEComStorePreference(d),e("updateEComStore",d)}return(u,d)=>(vue.openBlock(),vue.createBlock(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardSubtitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.$t("Product Store")),1)]),_:1}),vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.$t("Store")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.$t("A store represents a company or a unique catalog of products. If your OMS is connected to multiple eCommerce stores selling different collections of products, you may have multiple Product Stores set up in HotWax Commerce.")),1)]),_:1}),vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>{var p;return[vue.createVNode(vue.unref(IonSelect),{label:u.$t("Select store"),interface:"popover",placeholder:u.$t("store name"),value:(p=a.value)==null?void 0:p.productStoreId,onIonChange:d[0]||(d[0]=g=>c(g.target.value))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value?o.value:[],g=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:g.productStoreId,value:g.productStoreId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(g.storeName),1)]),_:2},1032,["value"]))),128))]),_:1},8,["label","placeholder","value"])]}),_:1})]),_:1}))}}),_hoisted_1$2=["src"],_sfc_main$3=vue.defineComponent({__name:"DxpShopifyImg",props:["src","size"],setup(t){const e=t,r=vue.ref(shopifyImgContext.defaultImgUrl),o=u=>new Promise((d,p)=>{const g=new Image;g.onload=()=>d(!0),g.onerror=()=>p(!1),g.src=u}),a=(u,d)=>d?u.replace(/_(pico|icon|thumb|small|compact|medium|large|grande|original|1024x1024|2048x2048|master)+\./g,".").replace(/\.jpg|\.png|\.gif|\.jpeg/g,function(p){return"_"+d+p}):u,c=()=>{if(e.src){const u=a(e.src,e.size);o(u).then(()=>r.value=u).catch(d=>console.error("checkIfImageExists",d))}};return vue.onMounted(()=>{c()}),vue.onUpdated(()=>{c()}),(u,d)=>(vue.openBlock(),vue.createElementBlock("img",{src:r.value},null,8,_hoisted_1$2))}}),_hoisted_1$1={class:"user-profile"},_sfc_main$2=vue.defineComponent({__name:"DxpUserProfile",props:{userProfile:{type:Object,required:!0},logoutLabel:{type:String,default:"Logout"},goToLabel:{type:String,default:"Go To Launchpad"}},emits:["before-logout"],setup(t,{emit:e}){const r=exports.appContext.config.globalProperties.$store,o=process.env.VUE_APP_LOGIN_URL,a=()=>{e("before-logout"),r.dispatch("user/logout").then(()=>{const u=window.location.origin+"/login";window.location.replace(`${o}?isLoggedOut=true&redirectUrl=${u}`)})},c=()=>{window.location.href=o};return(u,d)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1,[vue.createVNode(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonItem),{lines:"full"},{default:vue.withCtx(()=>{var p;return[(p=t.userProfile)!=null&&p.partyImageUrl?(vue.openBlock(),vue.createBlock(vue.unref(IonAvatar),{key:0,slot:"start"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(_sfc_main$b),{src:t.userProfile.partyImageUrl},null,8,["src"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(IonCardHeader),{class:"ion-no-padding ion-padding-vertical"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardSubtitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.userProfile.userLoginId),1)]),_:1}),vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.userProfile.partyName),1)]),_:1})]),_:1})]}),_:1}),vue.createVNode(vue.unref(IonButton),{color:"danger",onClick:d[0]||(d[0]=p=>a())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.logoutLabel),1)]),_:1}),vue.createVNode(vue.unref(IonButton),{fill:"outline",onClick:d[1]||(d[1]=p=>c())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.goToLabel)+" ",1),vue.createVNode(vue.unref(IonIcon),{slot:"end",icon:vue.unref(openOutline)},null,8,["icon"])]),_:1})]),_:1})]))}}),DxpUserProfile_vue_vue_type_style_index_0_scoped_8f31bd81_lang="",DxpUserProfile=_export_sfc(_sfc_main$2,[["__scopeId","data-v-8f31bd81"]]),_hoisted_1={class:"overline"},_hoisted_2={key:0},_hoisted_3={class:"overline"},_hoisted_4={key:0},_hoisted_5={key:0},_hoisted_6={key:1,class:"empty-state"},_hoisted_7={key:2,class:"empty-state"},_hoisted_8={key:3},_hoisted_9={key:0},_sfc_main$1=vue.defineComponent({__name:"DxpTimeZoneSwitcher",props:{showBrowserTimeZone:{type:Boolean,default:!0},showDateTime:{type:Boolean,default:!0},dateTimeFormat:{type:String,default:"t ZZZZ"}},emits:["timeZoneUpdated"],setup(t,{emit:e}){const r=t,o=exports.appContext.config.globalProperties.$store,a=useUserStore(),c=vue.computed(()=>o.getters["user/getUserProfile"]),u=vue.computed(()=>a.getTimeZones),d=vue.computed(()=>a.getCurrentTimeZone),p=vue.ref(!0),g=vue.ref(),b=vue.ref(""),x=vue.ref([]),w=vue.ref(""),y=vue.ref({label:"",id:Intl.DateTimeFormat().resolvedOptions().timeZone}),I=()=>{g.value.$el.dismiss(null,"cancel")};vue.onBeforeMount(async()=>{var R;p.value=!0,await a.getAvailableTimeZones(),c.value&&c.value.userTimeZone&&(a.currentTimeZoneId=c.value.userTimeZone,w.value=c.value.userTimeZone),r.showBrowserTimeZone&&(y.value.label=(R=u.value.find($=>$.id.toLowerCase().match(y.value.id.toLowerCase())))==null?void 0:R.label),T(),p.value=!1});async function k(){await a.setUserTimeZone(w.value).then(R=>{e("timeZoneUpdated",R)}).catch(R=>R),I()}function T(){const R=b.value.toLowerCase();x.value=u.value.filter($=>$.id.toLowerCase().match(R)||$.label.toLowerCase().match(R)),r.showBrowserTimeZone&&(x.value=x.value.filter($=>!$.id.toLowerCase().match(y.value.id.toLowerCase())))}async function E(R){(await R.target.getInputElement()).select()}function O(R){/[`!@#$%^&*()_+\-=\\|,.<>?~]/.test(R.key)&&R.preventDefault()}function A(){p.value=!0,T(),p.value=!1}function L(){b.value="",x.value=[],p.value=!0}return(R,$)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("Timezone")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("The timezone you select is used to ensure automations you schedule are always accurate to the time you select.")),1)]),_:1}),t.showBrowserTimeZone?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:0},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_1,vue.toDisplayString(R.$t("Browser TimeZone")),1),vue.createTextVNode(" "+vue.toDisplayString(y.value.id)+" ",1),t.showDateTime?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2,vue.toDisplayString(vue.unref(getCurrentTime)(y.value.id,t.dateTimeFormat)),1)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_3,vue.toDisplayString(R.$t("Selected TimeZone")),1),vue.createTextVNode(" "+vue.toDisplayString(d.value)+" ",1),t.showDateTime?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4,vue.toDisplayString(vue.unref(getCurrentTime)(d.value,t.dateTimeFormat)),1)):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(vue.unref(IonButton),{id:"time-zone-modal",slot:"end",fill:"outline",color:"dark"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("Change")),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(IonModal),{ref_key:"timeZoneModal",ref:g,trigger:"time-zone-modal",onDidPresent:$[5]||($[5]=P=>A()),onDidDismiss:$[6]||($[6]=P=>L())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButtons),{slot:"start"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButton),{onClick:I},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(closeOutline)},null,8,["icon"])]),_:1})]),_:1}),vue.createVNode(vue.unref(IonTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("Select time zone")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSearchbar),{onIonFocus:$[0]||($[0]=P=>E(P)),placeholder:R.$t("Search time zones"),modelValue:b.value,"onUpdate:modelValue":$[1]||($[1]=P=>b.value=P),onKeyup:$[2]||($[2]=vue.withKeys(P=>{b.value=P.target.value,T()},["enter"])),onKeydown:$[3]||($[3]=P=>O(P))},null,8,["placeholder","modelValue"])]),_:1})]),_:1}),vue.createVNode(vue.unref(IonContent),null,{default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createVNode(vue.unref(IonRadioGroup),{value:"rd",modelValue:w.value,"onUpdate:modelValue":$[4]||($[4]=P=>w.value=P)},{default:vue.withCtx(()=>[t.showBrowserTimeZone?(vue.openBlock(),vue.createBlock(vue.unref(IonList),{key:0},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonListHeader),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("Browser time zone")),1)]),_:1}),vue.createVNode(vue.unref(IonItem),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonRadio),{"label-placement":"end",justify:"start",value:y.value.id},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.value.label)+" ("+vue.toDisplayString(y.value.id)+") ",1),t.showDateTime?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5,vue.toDisplayString(vue.unref(getCurrentTime)(y.value.id,t.dateTimeFormat)),1)):vue.createCommentVNode("",!0)]),_:1})]),_:1},8,["value"])]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(IonList),null,{default:vue.withCtx(()=>[t.showBrowserTimeZone?(vue.openBlock(),vue.createBlock(vue.unref(IonListHeader),{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("Select a different time zone")),1)]),_:1})):vue.createCommentVNode("",!0),p.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSpinner),{color:"secondary",name:"crescent",slot:"start"}),vue.createTextVNode(" "+vue.toDisplayString(R.$t("Fetching time zones")),1)]),_:1})])):x.value.length===0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7,[vue.createElementVNode("p",null,vue.toDisplayString(R.$t("No time zone found")),1)])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(x.value,P=>(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:P.id},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonRadio),{"label-placement":"end",justify:"start",value:P.id},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(P.label)+" ("+vue.toDisplayString(P.id)+") ",1),t.showDateTime?(vue.openBlock(),vue.createElementBlock("p",_hoisted_9,vue.toDisplayString(vue.unref(getCurrentTime)(P.id,t.dateTimeFormat)),1)):vue.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["value"])]),_:2},1024))),128))]))]),_:1})]),_:1},8,["modelValue"])]),vue.createVNode(vue.unref(IonFab),{vertical:"bottom",horizontal:"end",slot:"fixed"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonFabButton),{disabled:!d.value,onClick:k},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(saveOutline)},null,8,["icon"])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},512)],64))}});function isObject$2(t){return typeof t=="object"&&t!==null}function normalizeOptions(t,e){return t=isObject$2(t)?t:Object.create(null),new Proxy(t,{get(r,o,a){return o==="key"?Reflect.get(r,o,a):Reflect.get(r,o,a)||Reflect.get(e,o,a)}})}function get(t,e){return e.reduce((r,o)=>r==null?void 0:r[o],t)}function set(t,e,r){return e.slice(0,-1).reduce((o,a)=>/^(__proto__)$/.test(a)?{}:o[a]=o[a]||{},t)[e[e.length-1]]=r,t}function pick(t,e){return e.reduce((r,o)=>{const a=o.split(".");return set(r,a,get(t,a))},{})}function hydrateStore(t,{storage:e,serializer:r,key:o,debug:a}){try{const c=e==null?void 0:e.getItem(o);c&&t.$patch(r==null?void 0:r.deserialize(c))}catch(c){a&&console.error(c)}}function persistState(t,{storage:e,serializer:r,key:o,paths:a,debug:c}){try{const u=Array.isArray(a)?pick(t,a):t;e.setItem(o,r.serialize(u))}catch(u){c&&console.error(u)}}function createPersistedState(t={}){return e=>{const{auto:r=!1}=t,{options:{persist:o=r},store:a,pinia:c}=e;if(!o)return;if(!(a.$id in c.state.value)){const d=c._s.get(a.$id.replace("__hot:",""));d&&Promise.resolve().then(()=>d.$persist());return}const u=(Array.isArray(o)?o.map(d=>normalizeOptions(d,t)):[normalizeOptions(o,t)]).map(({storage:d=localStorage,beforeRestore:p=null,afterRestore:g=null,serializer:b={serialize:JSON.stringify,deserialize:JSON.parse},key:x=a.$id,paths:w=null,debug:y=!1})=>{var I;return{storage:d,beforeRestore:p,afterRestore:g,serializer:b,key:((I=t.key)!=null?I:k=>k)(typeof x=="string"?x:x(a.$id)),paths:w,debug:y}});a.$persist=()=>{u.forEach(d=>{persistState(a.$state,d)})},a.$hydrate=({runHooks:d=!0}={})=>{u.forEach(p=>{const{beforeRestore:g,afterRestore:b}=p;d&&(g==null||g(e)),hydrateStore(a,p),d&&(b==null||b(e))})},u.forEach(d=>{const{beforeRestore:p,afterRestore:g}=d;p==null||p(e),hydrateStore(a,d),g==null||g(e),a.$subscribe((b,x)=>{persistState(x,d)},{detached:!0})})}}var src_default=createPersistedState();/*!
|
|
1162
|
+
*/function getMessagingInWindow(t=getApp()){return isWindowSupported().then(e=>{if(!e)throw ERROR_FACTORY.create("unsupported-browser")},e=>{throw ERROR_FACTORY.create("indexed-db-unsupported")}),_getProvider(getModularInstance(t),"messaging").getImmediate()}async function getToken(t,e){return t=getModularInstance(t),getToken$1(t,e)}function onMessage(t,e){return t=getModularInstance(t),onMessage$1(t,e)}registerMessagingInWindow();const initialiseFirebaseApp=async(t,e,r,o)=>{const a=t;if(!await isWindowSupported()){console.error("Notifications not supported");return}const c=initializeApp(a),u=getMessagingInWindow(c);if(await Notification.requestPermission()==="granted"){const p=await getToken(u,{vapidKey:e});await r(p),onMessage(u,b=>{o({notification:b,isForeground:!0})});const g=new BroadcastChannel("FB_BG_MESSAGES");g.onmessage=b=>{o({notification:b.data,isForeground:!1})}}else alert("You denied notifications.")},_hoisted_1$4={class:"center-div"},_hoisted_2$1={key:1},_hoisted_3$1={key:2},_sfc_main$9=vue.defineComponent({__name:"DxpLogin",setup(t){const e=useAuthStore(),r=exports.appContext.config.globalProperties.$router,o=exports.appContext.config.globalProperties.$route,a=vue.ref({message:"",responseMessage:""});vue.onMounted(async()=>{if(!Object.keys(o.query).length){window.location.replace(loginContext.appLoginUrl);return}const{token:d,oms:p,expirationTime:g,omsRedirectionUrl:b,isEmbedded:x}=o.query;await c(d,p,g,b,x==="true")});async function c(d,p,g,b="",x){const w=loginContext.getConfig();if(await loginContext.logout({isUserUnauthorised:!0}),await loginContext.initialise(w),+g<DateTime.now().toMillis()){console.error("User token has expired, redirecting to launchpad."),a.value.message="User token has expired, redirecting to launchpad.",e.isEmbedded=x;const y=getAppLoginUrl();if(x)window.location.replace(y);else{const I=window.location.origin+"/login";window.location.replace(`${y}?isLoggedOut=true&redirectUrl=${I}`)}return}e.$patch({token:{value:d,expiration:g},oms:p,isEmbedded:x}),loginContext.loader.present("Logging in");try{const y=await loginContext.login({token:d,oms:p,omsRedirectionUrl:b,isEmbedded:x}),I=useUserStore(),k=exports.appContext.config.globalProperties.$store;await I.setLocale(k.getters["user/getUserProfile"].userLocale);const T=k.getters["user/getAllNotificationPrefs"];notificationContext.appFirebaseConfig&¬ificationContext.appFirebaseConfig.apiKey&&(T!=null&&T.length)&&await initialiseFirebaseApp(notificationContext.appFirebaseConfig,notificationContext.appFirebaseVapidKey,notificationContext.storeClientRegistrationToken,notificationContext.addNotification),r.replace(y||"/")}catch(y){console.error(y),a.value.message="Please contact the administrator.",a.value.responseMessage=y.message||""}finally{loginContext.loader.dismiss()}}function u(){window.location.replace(getAppLoginUrl())}return(d,p)=>(vue.openBlock(),vue.createBlock(vue.unref(IonContent),null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$4,[a.value.message.length?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:0,lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"start",color:"warning",icon:vue.unref(warningOutline)},null,8,["icon"]),vue.createElementVNode("h4",null,vue.toDisplayString(d.$t("Login failed")),1)]),_:1})):vue.createCommentVNode("",!0),a.value.responseMessage.length?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$1,vue.toDisplayString(d.$t("Reason:"))+" "+vue.toDisplayString(d.$t(a.value.responseMessage)),1)):vue.createCommentVNode("",!0),a.value.message.length?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$1,vue.toDisplayString(d.$t(a.value.message)),1)):vue.createCommentVNode("",!0),a.value.message.length?(vue.openBlock(),vue.createBlock(vue.unref(IonButton),{key:3,class:"ion-margin-top",onClick:p[0]||(p[0]=g=>u())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"start",icon:vue.unref(arrowBackOutline)},null,8,["icon"]),vue.createTextVNode(" "+vue.toDisplayString(d.$t("Back to Launchpad")),1)]),_:1})):vue.createCommentVNode("",!0)])]),_:1}))}}),DxpLogin_vue_vue_type_style_index_0_lang="",_hoisted_1$3={class:"overline"},_sfc_main$8=vue.defineComponent({__name:"DxpMenuFooterNavigation",emits:["updateEComStore"],setup(t,{emit:e}){const r=useAuthStore(),o=useUserStore(),a=exports.appContext.config.globalProperties.$store,c=vue.computed(()=>r.getOms),u=vue.computed(()=>o.getProductStores),d=vue.computed(()=>o.getCurrentEComStore),p=vue.computed(()=>({userProfile:a.getters["user/getUserProfile"],currentEComStore:o.getCurrentEComStore,shopifyConfigs:a.getters["user/getShopifyConfigs"],currentShopifyConfig:a.getters["user/getCurrentShopifyConfig"]})),g=Intl.DateTimeFormat().resolvedOptions().timeZone;async function b(x){const w=u.value.find(y=>y.productStoreId==x);await o.setEComStorePreference(w),e("updateEComStore",w)}return(x,w)=>(vue.openBlock(),vue.createBlock(vue.unref(IonFooter),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>{var y,I,k,T,E;return[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>{var O;return[vue.createVNode(vue.unref(IonLabel),{class:"ion-text-wrap"},{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_1$3,vue.toDisplayString(c.value),1)]),_:1}),vue.createVNode(vue.unref(IonNote),{color:vue.unref(g)===((O=p.value.userProfile)==null?void 0:O.userTimeZone)?"":"danger",slot:"end"},{default:vue.withCtx(()=>{var A;return[vue.createTextVNode(vue.toDisplayString((A=p.value.userProfile)==null?void 0:A.userTimeZone),1)]}),_:1},8,["color"])]}),_:1}),((y=u.value)==null?void 0:y.length)>2?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:0,lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSelect),{interface:"popover",value:d.value.productStoreId,onIonChange:w[0]||(w[0]=O=>b(O.target.value))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(u.value,O=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:O.productStoreId,value:O.productStoreId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(O.storeName),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1})):(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:1,lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),{class:"ion-text-wrap"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(d.value.storeName),1)]),_:1})]),_:1})),(I=p.value.shopifyConfigs)!=null&&I.length?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[((k=p.value.shopifyConfigs)==null?void 0:k.length)>1&&((E=(T=p.value.userProfile)==null?void 0:T.stores)==null?void 0:E.length)<3?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:0,lines:"none"},{default:vue.withCtx(()=>{var O;return[vue.createVNode(vue.unref(IonSelect),{interface:"popover",value:(O=p.value.currentShopifyConfig)==null?void 0:O.shopifyConfigId,onIonChange:w[1]||(w[1]=A=>x.$emit("updateShopifyConfig",A))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.value.shopifyConfigs,A=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:A.shopifyConfigId,value:A.shopifyConfigId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(A.name?A.name:A.shopifyConfigName),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]}),_:1})):(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:1,lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),{class:"ion-text-wrap"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(p.value.currentShopifyConfig.name?p.value.currentShopifyConfig.name:p.value.currentShopifyConfig.shopifyConfigName),1)]),_:1})]),_:1}))],64)):vue.createCommentVNode("",!0)]}),_:1})]),_:1}))}}),_sfc_main$7=vue.defineComponent({__name:"DxpOmsInstanceNavigator",setup(t){const e=useAuthStore(),r=vue.computed(()=>e.getToken),o=vue.computed(()=>e.getOms);return(a,c)=>(vue.openBlock(),vue.createBlock(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardSubtitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.$t("OMS instance")),1)]),_:1}),vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(e).getOms),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.$t("This is the name of the OMS you are connected to right now. Make sure that you are connected to the right instance before proceeding.")),1)]),_:1}),vue.createVNode(vue.unref(IonButton),{onClick:c[0]||(c[0]=u=>vue.unref(goToOms)(r.value.value,o.value)),fill:"clear",disabled:!vue.unref(exports.appContext).hasPermission(vue.unref(exports.appContext).Actions.APP_COMMERCE_VIEW)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.$t("Go to OMS"))+" ",1),vue.createVNode(vue.unref(IonIcon),{slot:"end",icon:vue.unref(openOutline)},null,8,["icon"])]),_:1},8,["disabled"])]),_:1}))}}),_sfc_main$6=vue.defineComponent({__name:"DxpPagination",props:{itemsPerPage:{type:Number,required:!0},totalItems:{type:Number,required:!0}},emits:["updatePageIndex"],setup(t,{emit:e}){const r=t,o=vue.computed(()=>Math.ceil(r.totalItems/r.itemsPerPage)),a=vue.ref(1);function c(){const d=[],p=Math.max(1,a.value-1),g=Math.min(o.value,a.value+1);for(let b=p;b<=g;b++)d.push(b);return d}function u(d){a.value=d;const p=a.value-1;e("updatePageIndex",p)}return(d,p)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(IonButton),{size:"small",fill:"clear",color:"medium",onClick:p[0]||(p[0]=g=>u(1)),disabled:a.value===1},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"icon-only",icon:vue.unref(playSkipBackOutline)},null,8,["icon"])]),_:1},8,["disabled"]),vue.createVNode(vue.unref(IonButton),{size:"small",fill:"clear",color:"medium",onClick:p[1]||(p[1]=g=>u(a.value-1)),disabled:a.value===1},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"icon-only",icon:vue.unref(chevronBackOutline)},null,8,["icon"])]),_:1},8,["disabled"]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c(),g=>(vue.openBlock(),vue.createBlock(vue.unref(IonButton),{key:g,fill:"clear",size:a.value===g?"default":"small",color:a.value===g?"dark":"medium",onClick:b=>u(g)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(g),1)]),_:2},1032,["size","color","onClick"]))),128)),vue.createVNode(vue.unref(IonButton),{size:"small",fill:"clear",color:"medium",onClick:p[2]||(p[2]=g=>u(a.value+1)),disabled:a.value===o.value},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"icon-only",icon:vue.unref(chevronForwardOutline)},null,8,["icon"])]),_:1},8,["disabled"]),vue.createVNode(vue.unref(IonButton),{size:"small",fill:"clear",color:"medium",onClick:p[3]||(p[3]=g=>u(o.value)),disabled:a.value===o.value},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{slot:"icon-only",icon:vue.unref(playSkipForwardOutline)},null,8,["icon"])]),_:1},8,["disabled"])],64))}}),_sfc_main$5=vue.defineComponent({__name:"DxpProductIdentifier",setup(t){const e=useProductIdentificationStore(),r=useUserStore(),o=vue.computed(()=>r.getCurrentEComStore),a=vue.computed(()=>e.getProductIdentificationPref),c=vue.computed(()=>e.getProductIdentificationOptions);vue.onMounted(()=>{e.prepareProductIdentifierOptions(),e.getIdentificationPref(o.value.productStoreId)});function u(d,p){e.setProductIdentificationPref(p,d,o.value.productStoreId)}return(d,p)=>(vue.openBlock(),vue.createBlock(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString("Product Identifier"))]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString("Choosing a product identifier allows you to view products with your preferred identifiers."),1)]),_:1}),vue.createVNode(vue.unref(IonItem),{disabled:!vue.unref(exports.appContext).hasPermission(vue.unref(exports.appContext).Actions.APP_PRODUCT_IDENTIFIER_UPDATE)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSelect),{label:d.$t("Primary"),interface:"popover",placeholder:"primary identifier",value:a.value.primaryId,onIonChange:p[0]||(p[0]=g=>u(g.detail.value,"primaryId"))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value,g=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:g.goodIdentificationTypeId,value:g.goodIdentificationTypeId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(g.description?g.description:g.goodIdentificationTypeId),1)]),_:2},1032,["value"]))),128))]),_:1},8,["label","value"])]),_:1},8,["disabled"]),vue.createVNode(vue.unref(IonItem),{lines:"none",disabled:!vue.unref(exports.appContext).hasPermission(vue.unref(exports.appContext).Actions.APP_PRODUCT_IDENTIFIER_UPDATE)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSelect),{label:d.$t("Secondary"),interface:"popover",placeholder:"secondary identifier",value:a.value.secondaryId,onIonChange:p[1]||(p[1]=g=>u(g.detail.value,"secondaryId"))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value,g=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:g.goodIdentificationTypeId,value:g.goodIdentificationTypeId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(g.description?g.description:g.goodIdentificationTypeId),1)]),_:2},1032,["value"]))),128)),vue.createVNode(vue.unref(IonSelectOption),{value:""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString("None"))]),_:1})]),_:1},8,["label","value"])]),_:1},8,["disabled"])]),_:1}))}}),_sfc_main$4=vue.defineComponent({__name:"DxpProductStoreSelector",emits:["updateEComStore"],setup(t,{emit:e}){const r=useUserStore(),o=vue.computed(()=>r.getProductStores),a=vue.computed(()=>r.getCurrentEComStore);async function c(u){const d=o.value.find(p=>p.productStoreId==u);await r.setEComStorePreference(d),e("updateEComStore",d)}return(u,d)=>(vue.openBlock(),vue.createBlock(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardSubtitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.$t("Product Store")),1)]),_:1}),vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.$t("Store")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.$t("A store represents a company or a unique catalog of products. If your OMS is connected to multiple eCommerce stores selling different collections of products, you may have multiple Product Stores set up in HotWax Commerce.")),1)]),_:1}),vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>{var p;return[vue.createVNode(vue.unref(IonSelect),{label:u.$t("Select store"),interface:"popover",placeholder:u.$t("store name"),value:(p=a.value)==null?void 0:p.productStoreId,onIonChange:d[0]||(d[0]=g=>c(g.target.value))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value?o.value:[],g=>(vue.openBlock(),vue.createBlock(vue.unref(IonSelectOption),{key:g.productStoreId,value:g.productStoreId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(g.storeName),1)]),_:2},1032,["value"]))),128))]),_:1},8,["label","placeholder","value"])]}),_:1})]),_:1}))}}),_hoisted_1$2=["src"],_sfc_main$3=vue.defineComponent({__name:"DxpShopifyImg",props:["src","size"],setup(t){const e=t,r=vue.ref(shopifyImgContext.defaultImgUrl),o=u=>new Promise((d,p)=>{const g=new Image;g.onload=()=>d(!0),g.onerror=()=>p(!1),g.src=u}),a=(u,d)=>d?u.replace(/_(pico|icon|thumb|small|compact|medium|large|grande|original|1024x1024|2048x2048|master)+\./g,".").replace(/\.jpg|\.png|\.gif|\.jpeg/g,function(p){return"_"+d+p}):u,c=()=>{if(e.src){const u=a(e.src,e.size);o(u).then(()=>r.value=u).catch(d=>console.error("checkIfImageExists",d))}};return vue.onMounted(()=>{c()}),vue.onUpdated(()=>{c()}),(u,d)=>(vue.openBlock(),vue.createElementBlock("img",{src:r.value},null,8,_hoisted_1$2))}}),_hoisted_1$1={class:"user-profile"},_sfc_main$2=vue.defineComponent({__name:"DxpUserProfile",props:{userProfile:{type:Object,required:!0},logoutLabel:{type:String,default:"Logout"},goToLabel:{type:String,default:"Go To Launchpad"}},emits:["before-logout"],setup(t,{emit:e}){const r=exports.appContext.config.globalProperties.$store,o=process.env.VUE_APP_LOGIN_URL,a=()=>{e("before-logout"),r.dispatch("user/logout").then(()=>{const u=window.location.origin+"/login";window.location.replace(`${o}?isLoggedOut=true&redirectUrl=${u}`)})},c=()=>{window.location.href=o};return(u,d)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1,[vue.createVNode(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonItem),{lines:"full"},{default:vue.withCtx(()=>{var p;return[(p=t.userProfile)!=null&&p.partyImageUrl?(vue.openBlock(),vue.createBlock(vue.unref(IonAvatar),{key:0,slot:"start"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(_sfc_main$b),{src:t.userProfile.partyImageUrl},null,8,["src"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(IonCardHeader),{class:"ion-no-padding ion-padding-vertical"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardSubtitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.userProfile.userLoginId),1)]),_:1}),vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.userProfile.partyName),1)]),_:1})]),_:1})]}),_:1}),vue.createVNode(vue.unref(IonButton),{color:"danger",onClick:d[0]||(d[0]=p=>a())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.logoutLabel),1)]),_:1}),vue.createVNode(vue.unref(IonButton),{fill:"outline",onClick:d[1]||(d[1]=p=>c())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.goToLabel)+" ",1),vue.createVNode(vue.unref(IonIcon),{slot:"end",icon:vue.unref(openOutline)},null,8,["icon"])]),_:1})]),_:1})]))}}),DxpUserProfile_vue_vue_type_style_index_0_scoped_8f31bd81_lang="",DxpUserProfile=_export_sfc(_sfc_main$2,[["__scopeId","data-v-8f31bd81"]]),_hoisted_1={class:"overline"},_hoisted_2={key:0},_hoisted_3={class:"overline"},_hoisted_4={key:0},_hoisted_5={key:0},_hoisted_6={key:1,class:"empty-state"},_hoisted_7={key:2,class:"empty-state"},_hoisted_8={key:3},_hoisted_9={key:0},_sfc_main$1=vue.defineComponent({__name:"DxpTimeZoneSwitcher",props:{showBrowserTimeZone:{type:Boolean,default:!0},showDateTime:{type:Boolean,default:!0},dateTimeFormat:{type:String,default:"t ZZZZ"}},emits:["timeZoneUpdated"],setup(t,{emit:e}){const r=t,o=exports.appContext.config.globalProperties.$store,a=useUserStore(),c=vue.computed(()=>o.getters["user/getUserProfile"]),u=vue.computed(()=>a.getTimeZones),d=vue.computed(()=>a.getCurrentTimeZone),p=vue.ref(!0),g=vue.ref(),b=vue.ref(""),x=vue.ref([]),w=vue.ref(""),y=vue.ref({label:"",id:Intl.DateTimeFormat().resolvedOptions().timeZone}),I=()=>{g.value.$el.dismiss(null,"cancel")};vue.onBeforeMount(async()=>{var R;p.value=!0,await a.getAvailableTimeZones(),c.value&&c.value.userTimeZone&&(a.currentTimeZoneId=c.value.userTimeZone,w.value=c.value.userTimeZone),r.showBrowserTimeZone&&(y.value.label=(R=u.value.find($=>$.id.toLowerCase().match(y.value.id.toLowerCase())))==null?void 0:R.label),T(),p.value=!1});async function k(){await a.setUserTimeZone(w.value).then(R=>{e("timeZoneUpdated",R)}).catch(R=>R),I()}function T(){const R=b.value.toLowerCase();x.value=u.value.filter($=>$.id.toLowerCase().match(R)||$.label.toLowerCase().match(R)),r.showBrowserTimeZone&&(x.value=x.value.filter($=>!$.id.toLowerCase().match(y.value.id.toLowerCase())))}async function E(R){(await R.target.getInputElement()).select()}function O(R){/[`!@#$%^&*()_+\-=\\|,.<>?~]/.test(R.key)&&R.preventDefault()}function A(){p.value=!0,T(),p.value=!1}function L(){b.value="",x.value=[],p.value=!0}return(R,$)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(IonCard),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonCardTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("Timezone")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonCardContent),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("The timezone you select is used to ensure automations you schedule are always accurate to the time you select.")),1)]),_:1}),t.showBrowserTimeZone?(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:0},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_1,vue.toDisplayString(R.$t("Browser TimeZone")),1),vue.createTextVNode(" "+vue.toDisplayString(y.value.id)+" ",1),t.showDateTime?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2,vue.toDisplayString(vue.unref(getCurrentTime)(y.value.id,t.dateTimeFormat)),1)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_3,vue.toDisplayString(R.$t("Selected TimeZone")),1),vue.createTextVNode(" "+vue.toDisplayString(d.value)+" ",1),t.showDateTime?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4,vue.toDisplayString(vue.unref(getCurrentTime)(d.value,t.dateTimeFormat)),1)):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(vue.unref(IonButton),{id:"time-zone-modal",slot:"end",fill:"outline",color:"dark"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("Change")),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(IonModal),{ref_key:"timeZoneModal",ref:g,trigger:"time-zone-modal",onDidPresent:$[5]||($[5]=P=>A()),onDidDismiss:$[6]||($[6]=P=>L())},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButtons),{slot:"start"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButton),{onClick:I},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(closeOutline)},null,8,["icon"])]),_:1})]),_:1}),vue.createVNode(vue.unref(IonTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("Select time zone")),1)]),_:1})]),_:1}),vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSearchbar),{onIonFocus:$[0]||($[0]=P=>E(P)),placeholder:R.$t("Search time zones"),modelValue:b.value,"onUpdate:modelValue":$[1]||($[1]=P=>b.value=P),onKeyup:$[2]||($[2]=vue.withKeys(P=>{b.value=P.target.value,T()},["enter"])),onKeydown:$[3]||($[3]=P=>O(P))},null,8,["placeholder","modelValue"])]),_:1})]),_:1}),vue.createVNode(vue.unref(IonContent),null,{default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createVNode(vue.unref(IonRadioGroup),{value:"rd",modelValue:w.value,"onUpdate:modelValue":$[4]||($[4]=P=>w.value=P)},{default:vue.withCtx(()=>[t.showBrowserTimeZone?(vue.openBlock(),vue.createBlock(vue.unref(IonList),{key:0},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonListHeader),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("Browser time zone")),1)]),_:1}),vue.createVNode(vue.unref(IonItem),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonRadio),{"label-placement":"end",justify:"start",value:y.value.id},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.value.label)+" ("+vue.toDisplayString(y.value.id)+") ",1),t.showDateTime?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5,vue.toDisplayString(vue.unref(getCurrentTime)(y.value.id,t.dateTimeFormat)),1)):vue.createCommentVNode("",!0)]),_:1})]),_:1},8,["value"])]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(IonList),null,{default:vue.withCtx(()=>[t.showBrowserTimeZone?(vue.openBlock(),vue.createBlock(vue.unref(IonListHeader),{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.$t("Select a different time zone")),1)]),_:1})):vue.createCommentVNode("",!0),p.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6,[vue.createVNode(vue.unref(IonItem),{lines:"none"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonSpinner),{color:"secondary",name:"crescent",slot:"start"}),vue.createTextVNode(" "+vue.toDisplayString(R.$t("Fetching time zones")),1)]),_:1})])):x.value.length===0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7,[vue.createElementVNode("p",null,vue.toDisplayString(R.$t("No time zone found")),1)])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(x.value,P=>(vue.openBlock(),vue.createBlock(vue.unref(IonItem),{key:P.id},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonRadio),{"label-placement":"end",justify:"start",value:P.id},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonLabel),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(P.label)+" ("+vue.toDisplayString(P.id)+") ",1),t.showDateTime?(vue.openBlock(),vue.createElementBlock("p",_hoisted_9,vue.toDisplayString(vue.unref(getCurrentTime)(P.id,t.dateTimeFormat)),1)):vue.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["value"])]),_:2},1024))),128))]))]),_:1})]),_:1},8,["modelValue"])]),vue.createVNode(vue.unref(IonFab),{vertical:"bottom",horizontal:"end",slot:"fixed"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonFabButton),{disabled:!d.value,onClick:k},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(saveOutline)},null,8,["icon"])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},512)],64))}});function isObject$2(t){return typeof t=="object"&&t!==null}function normalizeOptions(t,e){return t=isObject$2(t)?t:Object.create(null),new Proxy(t,{get(r,o,a){return o==="key"?Reflect.get(r,o,a):Reflect.get(r,o,a)||Reflect.get(e,o,a)}})}function get(t,e){return e.reduce((r,o)=>r==null?void 0:r[o],t)}function set(t,e,r){return e.slice(0,-1).reduce((o,a)=>/^(__proto__)$/.test(a)?{}:o[a]=o[a]||{},t)[e[e.length-1]]=r,t}function pick(t,e){return e.reduce((r,o)=>{const a=o.split(".");return set(r,a,get(t,a))},{})}function hydrateStore(t,{storage:e,serializer:r,key:o,debug:a}){try{const c=e==null?void 0:e.getItem(o);c&&t.$patch(r==null?void 0:r.deserialize(c))}catch(c){a&&console.error(c)}}function persistState(t,{storage:e,serializer:r,key:o,paths:a,debug:c}){try{const u=Array.isArray(a)?pick(t,a):t;e.setItem(o,r.serialize(u))}catch(u){c&&console.error(u)}}function createPersistedState(t={}){return e=>{const{auto:r=!1}=t,{options:{persist:o=r},store:a,pinia:c}=e;if(!o)return;if(!(a.$id in c.state.value)){const d=c._s.get(a.$id.replace("__hot:",""));d&&Promise.resolve().then(()=>d.$persist());return}const u=(Array.isArray(o)?o.map(d=>normalizeOptions(d,t)):[normalizeOptions(o,t)]).map(({storage:d=localStorage,beforeRestore:p=null,afterRestore:g=null,serializer:b={serialize:JSON.stringify,deserialize:JSON.parse},key:x=a.$id,paths:w=null,debug:y=!1})=>{var I;return{storage:d,beforeRestore:p,afterRestore:g,serializer:b,key:((I=t.key)!=null?I:k=>k)(typeof x=="string"?x:x(a.$id)),paths:w,debug:y}});a.$persist=()=>{u.forEach(d=>{persistState(a.$state,d)})},a.$hydrate=({runHooks:d=!0}={})=>{u.forEach(p=>{const{beforeRestore:g,afterRestore:b}=p;d&&(g==null||g(e)),hydrateStore(a,p),d&&(b==null||b(e))})},u.forEach(d=>{const{beforeRestore:p,afterRestore:g}=d;p==null||p(e),hydrateStore(a,d),g==null||g(e),a.$subscribe((b,x)=>{persistState(x,d)},{detached:!0})})}}var src_default=createPersistedState();/*!
|
|
1163
1163
|
* shared v9.4.1
|
|
1164
1164
|
* (c) 2023 kazuya kawaguchi
|
|
1165
1165
|
* Released under the MIT License.
|
|
@@ -1180,4 +1180,4 @@ ${g}`:p)}else throw u},onCacheKey:u=>generateFormatCacheKey(e,r,u)}}function get
|
|
|
1180
1180
|
* (c) 2023 kazuya kawaguchi
|
|
1181
1181
|
* Released under the MIT License.
|
|
1182
1182
|
*/const VERSION="9.4.1";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function getWarnMessage(t,...e){return format$2(warnMessages[t],...e)}const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(t,...e){return createCompileError(t,null,process.env.NODE_ENV!=="production"?{messages:errorMessages,args:e}:void 0)}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),EnableEmitter=makeSymbol("__enableEmitter"),DisableEmitter=makeSymbol("__disableEmitter"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(t){if(!isObject$1(t))return t;for(const e in t)if(hasOwn(t,e))if(!e.includes("."))isObject$1(t[e])&&handleFlatJson(t[e]);else{const r=e.split("."),o=r.length-1;let a=t,c=!1;for(let u=0;u<o;u++){if(r[u]in a||(a[r[u]]={}),!isObject$1(a[r[u]])){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN,{key:r[u]})),c=!0;break}a=a[r[u]]}c||(a[r[o]]=t[e],delete t[e]),isObject$1(a[r[o]])&&handleFlatJson(a[r[o]])}return t}function getLocaleMessages(t,e){const{messages:r,__i18n:o,messageResolver:a,flatJson:c}=e,u=isPlainObject(r)?r:isArray(o)?{}:{[t]:{}};if(isArray(o)&&o.forEach(d=>{if("locale"in d&&"resource"in d){const{locale:p,resource:g}=d;p?(u[p]=u[p]||{},deepCopy(g,u[p])):deepCopy(g,u)}else isString$1(d)&&deepCopy(JSON.parse(d),u)}),a==null&&c)for(const d in u)hasOwn(u,d)&&handleFlatJson(u[d]);return u}const isNotObjectOrIsArray=t=>!isObject$1(t)||isArray(t);function deepCopy(t,e){if(isNotObjectOrIsArray(t)||isNotObjectOrIsArray(e))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const r in t)hasOwn(t,r)&&(isNotObjectOrIsArray(t[r])||isNotObjectOrIsArray(e[r])?e[r]=t[r]:deepCopy(t[r],e[r]))}function getComponentOptions(t){return t.type}function adjustI18nResources(t,e,r){let o=isObject$1(e.messages)?e.messages:{};"__i18nGlobal"in r&&(o=getLocaleMessages(t.locale.value,{messages:o,__i18n:r.__i18nGlobal}));const a=Object.keys(o);a.length&&a.forEach(c=>{t.mergeLocaleMessage(c,o[c])});{if(isObject$1(e.datetimeFormats)){const c=Object.keys(e.datetimeFormats);c.length&&c.forEach(u=>{t.mergeDateTimeFormat(u,e.datetimeFormats[u])})}if(isObject$1(e.numberFormats)){const c=Object.keys(e.numberFormats);c.length&&c.forEach(u=>{t.mergeNumberFormat(u,e.numberFormats[u])})}}}function createTextNode(t){return vue.createVNode(vue.Text,null,t,0)}const DEVTOOLS_META="__INTLIFY_META__";let composerID=0;function defineCoreMissingHandler(t){return(e,r,o,a)=>t(r,o,vue.getCurrentInstance()||void 0,a)}const getMetaInfo=()=>{const t=vue.getCurrentInstance();let e=null;return t&&(e=getComponentOptions(t)[DEVTOOLS_META])?{[DEVTOOLS_META]:e}:null};function createComposer(t={},e){const{__root:r,__injectWithOption:o}=t,a=r===void 0;let c=isBoolean(t.inheritLocale)?t.inheritLocale:!0;const u=vue.ref(r&&c?r.locale.value:isString$1(t.locale)?t.locale:DEFAULT_LOCALE),d=vue.ref(r&&c?r.fallbackLocale.value:isString$1(t.fallbackLocale)||isArray(t.fallbackLocale)||isPlainObject(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:u.value),p=vue.ref(getLocaleMessages(u.value,t)),g=vue.ref(isPlainObject(t.datetimeFormats)?t.datetimeFormats:{[u.value]:{}}),b=vue.ref(isPlainObject(t.numberFormats)?t.numberFormats:{[u.value]:{}});let x=r?r.missingWarn:isBoolean(t.missingWarn)||isRegExp(t.missingWarn)?t.missingWarn:!0,w=r?r.fallbackWarn:isBoolean(t.fallbackWarn)||isRegExp(t.fallbackWarn)?t.fallbackWarn:!0,y=r?r.fallbackRoot:isBoolean(t.fallbackRoot)?t.fallbackRoot:!0,I=!!t.fallbackFormat,k=isFunction(t.missing)?t.missing:null,T=isFunction(t.missing)?defineCoreMissingHandler(t.missing):null,E=isFunction(t.postTranslation)?t.postTranslation:null,O=r?r.warnHtmlMessage:isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0,A=!!t.escapeParameter;const L=r?r.modifiers:isPlainObject(t.modifiers)?t.modifiers:{};let R=t.pluralRules||r&&r.pluralRules,$;$=(()=>{a&&setFallbackContext(null);const ie={version:VERSION,locale:u.value,fallbackLocale:d.value,messages:p.value,modifiers:L,pluralRules:R,missing:T===null?void 0:T,missingWarn:x,fallbackWarn:w,fallbackFormat:I,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:O,escapeParameter:A,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};ie.datetimeFormats=g.value,ie.numberFormats=b.value,ie.__datetimeFormatters=isPlainObject($)?$.__datetimeFormatters:void 0,ie.__numberFormatters=isPlainObject($)?$.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(ie.__v_emitter=isPlainObject($)?$.__v_emitter:void 0);const he=createCoreContext(ie);return a&&setFallbackContext(he),he})(),updateFallbackLocale($,u.value,d.value);function z(){return[u.value,d.value,p.value,g.value,b.value]}const W=vue.computed({get:()=>u.value,set:ie=>{u.value=ie,$.locale=u.value}}),D=vue.computed({get:()=>d.value,set:ie=>{d.value=ie,$.fallbackLocale=d.value,updateFallbackLocale($,u.value,ie)}}),S=vue.computed(()=>p.value),F=vue.computed(()=>g.value),U=vue.computed(()=>b.value);function M(){return isFunction(E)?E:null}function V(ie){E=ie,$.postTranslation=ie}function G(){return k}function Q(ie){ie!==null&&(T=defineCoreMissingHandler(ie)),k=ie,$.missing=T}function fe(ie,he){return ie!=="translate"||!he.resolvedMessage}const te=(ie,he,Ye,et,bt,$e)=>{z();let Ee;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&setAdditionalMeta(getMetaInfo()),a||($.fallbackContext=r?getFallbackContext():void 0),Ee=ie($)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&setAdditionalMeta(null),a||($.fallbackContext=void 0)}if(isNumber(Ee)&&Ee===NOT_REOSLVED){const[Ie,ze]=he();if(process.env.NODE_ENV!=="production"&&r&&isString$1(Ie)&&fe(Ye,ze)&&(y&&(isTranslateFallbackWarn(w,Ie)||isTranslateMissingWarn(x,Ie))&&warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:Ie,type:Ye})),process.env.NODE_ENV!=="production")){const{__v_emitter:ct}=$;ct&&y&&ct.emit("fallback",{type:Ye,key:Ie,to:"global",groupId:`${Ye}:${Ie}`})}return r&&y?et(r):bt(Ie)}else{if($e(Ee))return Ee;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function de(...ie){return te(he=>Reflect.apply(translate,null,[he,...ie]),()=>parseTranslateArgs(...ie),"translate",he=>Reflect.apply(he.t,he,[...ie]),he=>he,he=>isString$1(he))}function me(...ie){const[he,Ye,et]=ie;if(et&&!isObject$1(et))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return de(he,Ye,assign$1({resolvedMessage:!0},et||{}))}function Me(...ie){return te(he=>Reflect.apply(datetime,null,[he,...ie]),()=>parseDateTimeArgs(...ie),"datetime format",he=>Reflect.apply(he.d,he,[...ie]),()=>MISSING_RESOLVE_VALUE,he=>isString$1(he))}function ce(...ie){return te(he=>Reflect.apply(number,null,[he,...ie]),()=>parseNumberArgs(...ie),"number format",he=>Reflect.apply(he.n,he,[...ie]),()=>MISSING_RESOLVE_VALUE,he=>isString$1(he))}function oe(ie){return ie.map(he=>isString$1(he)||isNumber(he)||isBoolean(he)?createTextNode(String(he)):he)}const Te={normalize:oe,interpolate:ie=>ie,type:"vnode"};function Ae(...ie){return te(he=>{let Ye;const et=he;try{et.processor=Te,Ye=Reflect.apply(translate,null,[et,...ie])}finally{et.processor=null}return Ye},()=>parseTranslateArgs(...ie),"translate",he=>he[TranslateVNodeSymbol](...ie),he=>[createTextNode(he)],he=>isArray(he))}function Be(...ie){return te(he=>Reflect.apply(number,null,[he,...ie]),()=>parseNumberArgs(...ie),"number format",he=>he[NumberPartsSymbol](...ie),()=>[],he=>isString$1(he)||isArray(he))}function Xe(...ie){return te(he=>Reflect.apply(datetime,null,[he,...ie]),()=>parseDateTimeArgs(...ie),"datetime format",he=>he[DatetimePartsSymbol](...ie),()=>[],he=>isString$1(he)||isArray(he))}function He(ie){R=ie,$.pluralRules=R}function Ke(ie,he){const Ye=isString$1(he)?he:u.value,et=q(Ye);return $.messageResolver(et,ie)!==null}function ot(ie){let he=null;const Ye=fallbackWithLocaleChain($,d.value,u.value);for(let et=0;et<Ye.length;et++){const bt=p.value[Ye[et]]||{},$e=$.messageResolver(bt,ie);if($e!=null){he=$e;break}}return he}function K(ie){const he=ot(ie);return he??(r?r.tm(ie)||{}:{})}function q(ie){return p.value[ie]||{}}function se(ie,he){p.value[ie]=he,$.messages=p.value}function Ce(ie,he){p.value[ie]=p.value[ie]||{},deepCopy(he,p.value[ie]),$.messages=p.value}function Le(ie){return g.value[ie]||{}}function qe(ie,he){g.value[ie]=he,$.datetimeFormats=g.value,clearDateTimeFormat($,ie,he)}function Ct(ie,he){g.value[ie]=assign$1(g.value[ie]||{},he),$.datetimeFormats=g.value,clearDateTimeFormat($,ie,he)}function ke(ie){return b.value[ie]||{}}function xe(ie,he){b.value[ie]=he,$.numberFormats=b.value,clearNumberFormat($,ie,he)}function Ne(ie,he){b.value[ie]=assign$1(b.value[ie]||{},he),$.numberFormats=b.value,clearNumberFormat($,ie,he)}composerID++,r&&inBrowser&&(vue.watch(r.locale,ie=>{c&&(u.value=ie,$.locale=ie,updateFallbackLocale($,u.value,d.value))}),vue.watch(r.fallbackLocale,ie=>{c&&(d.value=ie,$.fallbackLocale=ie,updateFallbackLocale($,u.value,d.value))}));const Se={id:composerID,locale:W,fallbackLocale:D,get inheritLocale(){return c},set inheritLocale(ie){c=ie,ie&&r&&(u.value=r.locale.value,d.value=r.fallbackLocale.value,updateFallbackLocale($,u.value,d.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:S,get modifiers(){return L},get pluralRules(){return R||{}},get isGlobal(){return a},get missingWarn(){return x},set missingWarn(ie){x=ie,$.missingWarn=x},get fallbackWarn(){return w},set fallbackWarn(ie){w=ie,$.fallbackWarn=w},get fallbackRoot(){return y},set fallbackRoot(ie){y=ie},get fallbackFormat(){return I},set fallbackFormat(ie){I=ie,$.fallbackFormat=I},get warnHtmlMessage(){return O},set warnHtmlMessage(ie){O=ie,$.warnHtmlMessage=ie},get escapeParameter(){return A},set escapeParameter(ie){A=ie,$.escapeParameter=ie},t:de,getLocaleMessage:q,setLocaleMessage:se,mergeLocaleMessage:Ce,getPostTranslationHandler:M,setPostTranslationHandler:V,getMissingHandler:G,setMissingHandler:Q,[SetPluralRulesSymbol]:He};return Se.datetimeFormats=F,Se.numberFormats=U,Se.rt=me,Se.te=Ke,Se.tm=K,Se.d=Me,Se.n=ce,Se.getDateTimeFormat=Le,Se.setDateTimeFormat=qe,Se.mergeDateTimeFormat=Ct,Se.getNumberFormat=ke,Se.setNumberFormat=xe,Se.mergeNumberFormat=Ne,Se[InejctWithOptionSymbol]=o,Se[TranslateVNodeSymbol]=Ae,Se[DatetimePartsSymbol]=Xe,Se[NumberPartsSymbol]=Be,process.env.NODE_ENV!=="production"&&(Se[EnableEmitter]=ie=>{$.__v_emitter=ie},Se[DisableEmitter]=()=>{$.__v_emitter=void 0}),Se}function convertComposerOptions(t){const e=isString$1(t.locale)?t.locale:DEFAULT_LOCALE,r=isString$1(t.fallbackLocale)||isArray(t.fallbackLocale)||isPlainObject(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,o=isFunction(t.missing)?t.missing:void 0,a=isBoolean(t.silentTranslationWarn)||isRegExp(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,c=isBoolean(t.silentFallbackWarn)||isRegExp(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,u=isBoolean(t.fallbackRoot)?t.fallbackRoot:!0,d=!!t.formatFallbackMessages,p=isPlainObject(t.modifiers)?t.modifiers:{},g=t.pluralizationRules,b=isFunction(t.postTranslation)?t.postTranslation:void 0,x=isString$1(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,w=!!t.escapeParameterHtml,y=isBoolean(t.sync)?t.sync:!0;process.env.NODE_ENV!=="production"&&t.formatter&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&t.preserveDirectiveContent&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let I=t.messages;if(isPlainObject(t.sharedMessages)){const R=t.sharedMessages;I=Object.keys(R).reduce((P,z)=>{const W=P[z]||(P[z]={});return assign$1(W,R[z]),P},I||{})}const{__i18n:k,__root:T,__injectWithOption:E}=t,O=t.datetimeFormats,A=t.numberFormats,L=t.flatJson;return{locale:e,fallbackLocale:r,messages:I,flatJson:L,datetimeFormats:O,numberFormats:A,missing:o,missingWarn:a,fallbackWarn:c,fallbackRoot:u,fallbackFormat:d,modifiers:p,pluralRules:g,postTranslation:b,warnHtmlMessage:x,escapeParameter:w,messageResolver:t.messageResolver,inheritLocale:y,__i18n:k,__root:T,__injectWithOption:E}}function createVueI18n(t={},e){{const r=createComposer(convertComposerOptions(t)),{__extender:o}=t,a={id:r.id,get locale(){return r.locale.value},set locale(c){r.locale.value=c},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(c){r.fallbackLocale.value=c},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(c){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return r.getMissingHandler()},set missing(c){r.setMissingHandler(c)},get silentTranslationWarn(){return isBoolean(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(c){r.missingWarn=isBoolean(c)?!c:c},get silentFallbackWarn(){return isBoolean(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(c){r.fallbackWarn=isBoolean(c)?!c:c},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(c){r.fallbackFormat=c},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(c){r.setPostTranslationHandler(c)},get sync(){return r.inheritLocale},set sync(c){r.inheritLocale=c},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(c){r.warnHtmlMessage=c!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(c){r.escapeParameter=c},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(c){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...c){const[u,d,p]=c,g={};let b=null,x=null;if(!isString$1(u))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const w=u;return isString$1(d)?g.locale=d:isArray(d)?b=d:isPlainObject(d)&&(x=d),isArray(p)?b=p:isPlainObject(p)&&(x=p),Reflect.apply(r.t,r,[w,b||x||{},g])},rt(...c){return Reflect.apply(r.rt,r,[...c])},tc(...c){const[u,d,p]=c,g={plural:1};let b=null,x=null;if(!isString$1(u))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const w=u;return isString$1(d)?g.locale=d:isNumber(d)?g.plural=d:isArray(d)?b=d:isPlainObject(d)&&(x=d),isString$1(p)?g.locale=p:isArray(p)?b=p:isPlainObject(p)&&(x=p),Reflect.apply(r.t,r,[w,b||x||{},g])},te(c,u){return r.te(c,u)},tm(c){return r.tm(c)},getLocaleMessage(c){return r.getLocaleMessage(c)},setLocaleMessage(c,u){r.setLocaleMessage(c,u)},mergeLocaleMessage(c,u){r.mergeLocaleMessage(c,u)},d(...c){return Reflect.apply(r.d,r,[...c])},getDateTimeFormat(c){return r.getDateTimeFormat(c)},setDateTimeFormat(c,u){r.setDateTimeFormat(c,u)},mergeDateTimeFormat(c,u){r.mergeDateTimeFormat(c,u)},n(...c){return Reflect.apply(r.n,r,[...c])},getNumberFormat(c){return r.getNumberFormat(c)},setNumberFormat(c,u){r.setNumberFormat(c,u)},mergeNumberFormat(c,u){r.mergeNumberFormat(c,u)},getChoiceIndex(c,u){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return a.__extender=o,process.env.NODE_ENV!=="production"&&(a.__enableEmitter=c=>{const u=r;u[EnableEmitter]&&u[EnableEmitter](c)},a.__disableEmitter=()=>{const c=r;c[DisableEmitter]&&c[DisableEmitter]()}),a}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((o,a)=>[...o,...a.type===vue.Fragment?a.children:[a]],[]):e.reduce((r,o)=>{const a=t[o];return a&&(r[o]=a()),r},{})}function getFragmentableTag(t){return vue.Fragment}const TranslationImpl=vue.defineComponent({name:"i18n-t",props:assign$1({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>isNumber(t)||!isNaN(t)}},baseFormatProps),setup(t,e){const{slots:r,attrs:o}=e,a=t.i18n||useI18n({useScope:t.scope,__useComponent:!0});return()=>{const c=Object.keys(r).filter(x=>x!=="_"),u={};t.locale&&(u.locale=t.locale),t.plural!==void 0&&(u.plural=isString$1(t.plural)?+t.plural:t.plural);const d=getInterpolateArg(e,c),p=a[TranslateVNodeSymbol](t.keypath,d,u),g=assign$1({},o),b=isString$1(t.tag)||isObject$1(t.tag)?t.tag:getFragmentableTag();return vue.h(b,g,p)}}}),Translation=TranslationImpl;function isVNode(t){return isArray(t)&&!isString$1(t[0])}function renderFormatter(t,e,r,o){const{slots:a,attrs:c}=e;return()=>{const u={part:!0};let d={};t.locale&&(u.locale=t.locale),isString$1(t.format)?u.key=t.format:isObject$1(t.format)&&(isString$1(t.format.key)&&(u.key=t.format.key),d=Object.keys(t.format).reduce((w,y)=>r.includes(y)?assign$1({},w,{[y]:t.format[y]}):w,{}));const p=o(t.value,u,d);let g=[u.key];isArray(p)?g=p.map((w,y)=>{const I=a[w.type],k=I?I({[w.type]:w.value,index:y,parts:p}):[w.value];return isVNode(k)&&(k[0].key=`${w.type}-${y}`),k}):isString$1(p)&&(g=[p]);const b=assign$1({},c),x=isString$1(t.tag)||isObject$1(t.tag)?t.tag:getFragmentableTag();return vue.h(x,b,g)}}const NumberFormatImpl=vue.defineComponent({name:"i18n-n",props:assign$1({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,e){const r=t.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(t,e,NUMBER_FORMAT_OPTIONS_KEYS,(...o)=>r[NumberPartsSymbol](...o))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=vue.defineComponent({name:"i18n-d",props:assign$1({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,e){const r=t.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(t,e,DATETIME_FORMAT_OPTIONS_KEYS,(...o)=>r[DatetimePartsSymbol](...o))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(t,e){const r=t;if(t.mode==="composition")return r.__getInstance(e)||t.global;{const o=r.__getInstance(e);return o!=null?o.__composer:t.global.__composer}}function vTDirective(t){const e=u=>{const{instance:d,modifiers:p,value:g}=u;if(!d||!d.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const b=getComposer$2(t,d.$);process.env.NODE_ENV!=="production"&&p.preserve&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const x=parseValue(g);return[Reflect.apply(b.t,b,[...makeParams(x)]),b]};return{created:(u,d)=>{const[p,g]=e(d);inBrowser&&t.global===g&&(u.__i18nWatcher=vue.watch(g.locale,()=>{d.instance&&d.instance.$forceUpdate()})),u.__composer=g,u.textContent=p},unmounted:u=>{inBrowser&&u.__i18nWatcher&&(u.__i18nWatcher(),u.__i18nWatcher=void 0,delete u.__i18nWatcher),u.__composer&&(u.__composer=void 0,delete u.__composer)},beforeUpdate:(u,{value:d})=>{if(u.__composer){const p=u.__composer,g=parseValue(d);u.textContent=Reflect.apply(p.t,p,[...makeParams(g)])}},getSSRProps:u=>{const[d]=e(u);return{textContent:d}}}}function parseValue(t){if(isString$1(t))return{path:t};if(isPlainObject(t)){if(!("path"in t))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return t}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(t){const{path:e,locale:r,args:o,choice:a,plural:c}=t,u={},d=o||{};return isString$1(r)&&(u.locale=r),isNumber(a)&&(u.plural=a),isNumber(c)&&(u.plural=c),[e,d,u]}function apply(t,e,...r){const o=isPlainObject(r[0])?r[0]:{},a=!!o.useI18nComponentName,c=isBoolean(o.globalInstall)?o.globalInstall:!0;process.env.NODE_ENV!=="production"&&c&&a&&warn(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),c&&([a?"i18n":Translation.name,"I18nT"].forEach(u=>t.component(u,Translation)),[NumberFormat.name,"I18nN"].forEach(u=>t.component(u,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(u=>t.component(u,DatetimeFormat))),t.directive("t",vTDirective(e))}const VueDevToolsLabels={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},VueDevToolsPlaceholders={"vue-i18n-resource-inspector":"Search for scopes ..."},VueDevToolsTimelineColors={"vue-i18n-timeline":16764185},VUE_I18N_COMPONENT_TYPES="vue-i18n: composer properties";let devtoolsApi;async function enableDevTools(t,e){return new Promise((r,o)=>{try{setupDevtoolsPlugin({id:"vue-devtools-plugin-vue-i18n",label:VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[VUE_I18N_COMPONENT_TYPES],app:t},a=>{devtoolsApi=a,a.on.visitComponentTree(({componentInstance:u,treeNode:d})=>{updateComponentTreeTags(u,d,e)}),a.on.inspectComponent(({componentInstance:u,instanceData:d})=>{u.vnode.el&&u.vnode.el.__VUE_I18N__&&d&&(e.mode==="legacy"?u.vnode.el.__VUE_I18N__!==e.global.__composer&&inspectComposer(d,u.vnode.el.__VUE_I18N__):inspectComposer(d,u.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:VueDevToolsLabels["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:VueDevToolsPlaceholders["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(u=>{u.app===t&&u.inspectorId==="vue-i18n-resource-inspector"&®isterScope(u,e)});const c=new Map;a.on.getInspectorState(async u=>{if(u.app===t&&u.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),inspectScope(u,e),u.nodeId==="global"){if(!c.has(u.app)){const[d]=await a.getComponentInstances(u.app);c.set(u.app,d)}a.highlightElement(c.get(u.app))}else{const d=getComponentInstance(u.nodeId,e);d&&a.highlightElement(d)}}),a.on.editInspectorState(u=>{u.app===t&&u.inspectorId==="vue-i18n-resource-inspector"&&editScope(u,e)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:VueDevToolsLabels["vue-i18n-timeline"],color:VueDevToolsTimelineColors["vue-i18n-timeline"]}),r(!0)})}catch(a){console.error(a),o(!1)}})}function getI18nScopeLable(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function updateComponentTreeTags(t,e,r){const o=r.mode==="composition"?r.global:r.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==o){const a={label:`i18n (${getI18nScopeLable(t)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(a)}}function inspectComposer(t,e){const r=VUE_I18N_COMPONENT_TYPES;t.state.push({type:r,key:"locale",editable:!0,value:e.locale.value}),t.state.push({type:r,key:"availableLocales",editable:!1,value:e.availableLocales}),t.state.push({type:r,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),t.state.push({type:r,key:"inheritLocale",editable:!0,value:e.inheritLocale}),t.state.push({type:r,key:"messages",editable:!1,value:getLocaleMessageValue(e.messages.value)}),t.state.push({type:r,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),t.state.push({type:r,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function getLocaleMessageValue(t){const e={};return Object.keys(t).forEach(r=>{const o=t[r];isFunction(o)&&"source"in o?e[r]=getMessageFunctionDetails(o):isMessageAST(o)&&o.loc&&o.loc.source?e[r]=o.loc.source:isObject$1(o)?e[r]=getLocaleMessageValue(o):e[r]=o}),e}const ESC={"<":"<",">":">",'"':""","&":"&"};function escape$1(t){return t.replace(/[<>"&]/g,escapeChar)}function escapeChar(t){return ESC[t]||t}function getMessageFunctionDetails(t){return{_custom:{type:"function",display:`<span>ƒ</span> ${t.source?`("${escape$1(t.source)}")`:"(?)"}`}}}function registerScope(t,e){t.rootNodes.push({id:"global",label:"Global Scope"});const r=e.mode==="composition"?e.global:e.global.__composer;for(const[o,a]of e.__instances){const c=e.mode==="composition"?a:a.__composer;r!==c&&t.rootNodes.push({id:c.id.toString(),label:`${getI18nScopeLable(o)} Scope`})}}function getComponentInstance(t,e){let r=null;if(t!=="global"){for(const[o,a]of e.__instances.entries())if(a.id.toString()===t){r=o;break}}return r}function getComposer$1(t,e){if(t==="global")return e.mode==="composition"?e.global:e.global.__composer;{const r=Array.from(e.__instances.values()).find(o=>o.id.toString()===t);return r?e.mode==="composition"?r:r.__composer:null}}function inspectScope(t,e){const r=getComposer$1(t.nodeId,e);return r&&(t.state=makeScopeInspectState(r)),null}function makeScopeInspectState(t){const e={},r="Locale related info",o=[{type:r,key:"locale",editable:!0,value:t.locale.value},{type:r,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:r,key:"availableLocales",editable:!1,value:t.availableLocales},{type:r,key:"inheritLocale",editable:!0,value:t.inheritLocale}];e[r]=o;const a="Locale messages info",c=[{type:a,key:"messages",editable:!1,value:getLocaleMessageValue(t.messages.value)}];e[a]=c;{const u="Datetime formats info",d=[{type:u,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];e[u]=d;const p="Datetime formats info",g=[{type:p,key:"numberFormats",editable:!1,value:t.numberFormats.value}];e[p]=g}return e}function addTimelineEvent(t,e){if(devtoolsApi){let r;e&&"groupId"in e&&(r=e.groupId,delete e.groupId),devtoolsApi.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:r,time:Date.now(),meta:{},data:e||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function editScope(t,e){const r=getComposer$1(t.nodeId,e);if(r){const[o]=t.path;o==="locale"&&isString$1(t.state.value)?r.locale.value=t.state.value:o==="fallbackLocale"&&(isString$1(t.state.value)||isArray(t.state.value)||isObject$1(t.state.value))?r.fallbackLocale.value=t.state.value:o==="inheritLocale"&&isBoolean(t.state.value)&&(r.inheritLocale=t.state.value)}}function defineMixin(t,e,r){return{beforeCreate(){const o=vue.getCurrentInstance();if(!o)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const c=a.i18n;if(a.__i18n&&(c.__i18n=a.__i18n),c.__root=e,this===this.$root)this.$i18n=mergeToGlobal(t,c);else{c.__injectWithOption=!0,c.__extender=r.__vueI18nExtend,this.$i18n=createVueI18n(c);const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(t,a);else{this.$i18n=createVueI18n({__i18n:a.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:e});const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}else this.$i18n=t;a.__i18nGlobal&&adjustI18nResources(e,a,a),this.$t=(...c)=>this.$i18n.t(...c),this.$rt=(...c)=>this.$i18n.rt(...c),this.$tc=(...c)=>this.$i18n.tc(...c),this.$te=(c,u)=>this.$i18n.te(c,u),this.$d=(...c)=>this.$i18n.d(...c),this.$n=(...c)=>this.$i18n.n(...c),this.$tm=c=>this.$i18n.tm(c),r.__setInstance(o,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const o=this.$i18n;this.$el.__VUE_I18N__=o.__composer;const a=this.__v_emitter=createEmitter();o.__enableEmitter&&o.__enableEmitter(a),a.on("*",addTimelineEvent)}},unmounted(){const o=vue.getCurrentInstance();if(!o)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",addTimelineEvent),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),r.__deleteInstance(o),delete this.$i18n}}}function mergeToGlobal(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[SetPluralRulesSymbol](e.pluralizationRules||t.pluralizationRules);const r=getLocaleMessages(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(r).forEach(o=>t.mergeLocaleMessage(o,r[o])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(o=>t.mergeDateTimeFormat(o,e.datetimeFormats[o])),e.numberFormats&&Object.keys(e.numberFormats).forEach(o=>t.mergeNumberFormat(o,e.numberFormats[o])),t}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(t={},e){const r=__VUE_I18N_LEGACY_API__&&isBoolean(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,o=isBoolean(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&r?!!t.allowComposition:!0,c=new Map,[u,d]=createGlobal(t,r),p=makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&r&&a&&warn(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));function g(w){return c.get(w)||null}function b(w,y){c.set(w,y)}function x(w){c.delete(w)}{const w={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return a},async install(y,...I){if(process.env.NODE_ENV!=="production"&&(y.__VUE_I18N__=w),y.__VUE_I18N_SYMBOL__=p,y.provide(y.__VUE_I18N_SYMBOL__,w),isPlainObject(I[0])){const E=I[0];w.__composerExtend=E.__composerExtend,w.__vueI18nExtend=E.__vueI18nExtend}let k=null;!r&&o&&(k=injectGlobalFields(y,w.global)),__VUE_I18N_FULL_INSTALL__&&apply(y,w,...I),__VUE_I18N_LEGACY_API__&&r&&y.mixin(defineMixin(d,d.__composer,w));const T=y.unmount;if(y.unmount=()=>{k&&k(),w.dispose(),T()},process.env.NODE_ENV!=="production"){if(!await enableDevTools(y,w))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const O=createEmitter();if(r){const A=d;A.__enableEmitter&&A.__enableEmitter(O)}else{const A=d;A[EnableEmitter]&&A[EnableEmitter](O)}O.on("*",addTimelineEvent)}},get global(){return d},dispose(){u.stop()},__instances:c,__getInstance:g,__setInstance:b,__deleteInstance:x};return w}}function useI18n(t={}){const e=vue.getCurrentInstance();if(e==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const r=getI18nInstance(e),o=getGlobalComposer(r),a=getComponentOptions(e),c=getScope(t,a);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!t.__useComponent){if(!r.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(e,c,o,t)}if(c==="global")return adjustI18nResources(o,t,a),o;if(c==="parent"){let p=getComposer(r,e,t.__useComponent);return p==null&&(process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),p=o),p}const u=r;let d=u.__getInstance(e);if(d==null){const p=assign$1({},t);"__i18n"in a&&(p.__i18n=a.__i18n),o&&(p.__root=o),d=createComposer(p),u.__composerExtend&&(d[DisposeSymbol]=u.__composerExtend(d)),setupLifeCycle(u,e,d),u.__setInstance(e,d)}return d}function createGlobal(t,e,r){const o=vue.effectScope();{const a=__VUE_I18N_LEGACY_API__&&e?o.run(()=>createVueI18n(t)):o.run(()=>createComposer(t));if(a==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[o,a]}}function getI18nInstance(t){{const e=vue.inject(t.isCE?I18nInjectionKey:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw createI18nError(t.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return e}}function getScope(t,e){return isEmptyObject(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function getGlobalComposer(t){return t.mode==="composition"?t.global:t.global.__composer}function getComposer(t,e,r=!1){let o=null;const a=e.root;let c=getParentComponentInstance(e,r);for(;c!=null;){const u=t;if(t.mode==="composition")o=u.__getInstance(c);else if(__VUE_I18N_LEGACY_API__){const d=u.__getInstance(c);d!=null&&(o=d.__composer,r&&o&&!o[InejctWithOptionSymbol]&&(o=null))}if(o!=null||a===c)break;c=c.parent}return o}function getParentComponentInstance(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function setupLifeCycle(t,e,r){let o=null;vue.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=r,o=createEmitter();const a=r;a[EnableEmitter]&&a[EnableEmitter](o),o.on("*",addTimelineEvent)}},e),vue.onUnmounted(()=>{const a=r;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(o&&o.off("*",addTimelineEvent),a[DisableEmitter]&&a[DisableEmitter](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const c=a[DisposeSymbol];c&&(c(),delete a[DisposeSymbol])},e)}function useI18nForLegacy(t,e,r,o={}){const a=e==="local",c=vue.shallowRef(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=isBoolean(o.inheritLocale)?o.inheritLocale:!isString$1(o.locale),d=vue.ref(!a||u?r.locale.value:isString$1(o.locale)?o.locale:DEFAULT_LOCALE),p=vue.ref(!a||u?r.fallbackLocale.value:isString$1(o.fallbackLocale)||isArray(o.fallbackLocale)||isPlainObject(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:d.value),g=vue.ref(getLocaleMessages(d.value,o)),b=vue.ref(isPlainObject(o.datetimeFormats)?o.datetimeFormats:{[d.value]:{}}),x=vue.ref(isPlainObject(o.numberFormats)?o.numberFormats:{[d.value]:{}}),w=a?r.missingWarn:isBoolean(o.missingWarn)||isRegExp(o.missingWarn)?o.missingWarn:!0,y=a?r.fallbackWarn:isBoolean(o.fallbackWarn)||isRegExp(o.fallbackWarn)?o.fallbackWarn:!0,I=a?r.fallbackRoot:isBoolean(o.fallbackRoot)?o.fallbackRoot:!0,k=!!o.fallbackFormat,T=isFunction(o.missing)?o.missing:null,E=isFunction(o.postTranslation)?o.postTranslation:null,O=a?r.warnHtmlMessage:isBoolean(o.warnHtmlMessage)?o.warnHtmlMessage:!0,A=!!o.escapeParameter,L=a?r.modifiers:isPlainObject(o.modifiers)?o.modifiers:{},R=o.pluralRules||a&&r.pluralRules;function $(){return[d.value,p.value,g.value,b.value,x.value]}const P=vue.computed({get:()=>c.value?c.value.locale.value:d.value,set:q=>{c.value&&(c.value.locale.value=q),d.value=q}}),z=vue.computed({get:()=>c.value?c.value.fallbackLocale.value:p.value,set:q=>{c.value&&(c.value.fallbackLocale.value=q),p.value=q}}),W=vue.computed(()=>c.value?c.value.messages.value:g.value),D=vue.computed(()=>b.value),S=vue.computed(()=>x.value);function F(){return c.value?c.value.getPostTranslationHandler():E}function U(q){c.value&&c.value.setPostTranslationHandler(q)}function M(){return c.value?c.value.getMissingHandler():T}function V(q){c.value&&c.value.setMissingHandler(q)}function G(q){return $(),q()}function Q(...q){return c.value?G(()=>Reflect.apply(c.value.t,null,[...q])):G(()=>"")}function fe(...q){return c.value?Reflect.apply(c.value.rt,null,[...q]):""}function te(...q){return c.value?G(()=>Reflect.apply(c.value.d,null,[...q])):G(()=>"")}function de(...q){return c.value?G(()=>Reflect.apply(c.value.n,null,[...q])):G(()=>"")}function me(q){return c.value?c.value.tm(q):{}}function Me(q,se){return c.value?c.value.te(q,se):!1}function ce(q){return c.value?c.value.getLocaleMessage(q):{}}function oe(q,se){c.value&&(c.value.setLocaleMessage(q,se),g.value[q]=se)}function be(q,se){c.value&&c.value.mergeLocaleMessage(q,se)}function Te(q){return c.value?c.value.getDateTimeFormat(q):{}}function Ae(q,se){c.value&&(c.value.setDateTimeFormat(q,se),b.value[q]=se)}function Be(q,se){c.value&&c.value.mergeDateTimeFormat(q,se)}function Xe(q){return c.value?c.value.getNumberFormat(q):{}}function He(q,se){c.value&&(c.value.setNumberFormat(q,se),x.value[q]=se)}function Ke(q,se){c.value&&c.value.mergeNumberFormat(q,se)}const ot={get id(){return c.value?c.value.id:-1},locale:P,fallbackLocale:z,messages:W,datetimeFormats:D,numberFormats:S,get inheritLocale(){return c.value?c.value.inheritLocale:u},set inheritLocale(q){c.value&&(c.value.inheritLocale=q)},get availableLocales(){return c.value?c.value.availableLocales:Object.keys(g.value)},get modifiers(){return c.value?c.value.modifiers:L},get pluralRules(){return c.value?c.value.pluralRules:R},get isGlobal(){return c.value?c.value.isGlobal:!1},get missingWarn(){return c.value?c.value.missingWarn:w},set missingWarn(q){c.value&&(c.value.missingWarn=q)},get fallbackWarn(){return c.value?c.value.fallbackWarn:y},set fallbackWarn(q){c.value&&(c.value.missingWarn=q)},get fallbackRoot(){return c.value?c.value.fallbackRoot:I},set fallbackRoot(q){c.value&&(c.value.fallbackRoot=q)},get fallbackFormat(){return c.value?c.value.fallbackFormat:k},set fallbackFormat(q){c.value&&(c.value.fallbackFormat=q)},get warnHtmlMessage(){return c.value?c.value.warnHtmlMessage:O},set warnHtmlMessage(q){c.value&&(c.value.warnHtmlMessage=q)},get escapeParameter(){return c.value?c.value.escapeParameter:A},set escapeParameter(q){c.value&&(c.value.escapeParameter=q)},t:Q,getPostTranslationHandler:F,setPostTranslationHandler:U,getMissingHandler:M,setMissingHandler:V,rt:fe,d:te,n:de,tm:me,te:Me,getLocaleMessage:ce,setLocaleMessage:oe,mergeLocaleMessage:be,getDateTimeFormat:Te,setDateTimeFormat:Ae,mergeDateTimeFormat:Be,getNumberFormat:Xe,setNumberFormat:He,mergeNumberFormat:Ke};function K(q){q.locale.value=d.value,q.fallbackLocale.value=p.value,Object.keys(g.value).forEach(se=>{q.mergeLocaleMessage(se,g.value[se])}),Object.keys(b.value).forEach(se=>{q.mergeDateTimeFormat(se,b.value[se])}),Object.keys(x.value).forEach(se=>{q.mergeNumberFormat(se,x.value[se])}),q.escapeParameter=A,q.fallbackFormat=k,q.fallbackRoot=I,q.fallbackWarn=y,q.missingWarn=w,q.warnHtmlMessage=O}return vue.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const q=c.value=t.proxy.$i18n.__composer;e==="global"?(d.value=q.locale.value,p.value=q.fallbackLocale.value,g.value=q.messages.value,b.value=q.datetimeFormats.value,x.value=q.numberFormats.value):a&&K(q)}),ot}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(t,e){const r=Object.create(null);return globalExportProps.forEach(a=>{const c=Object.getOwnPropertyDescriptor(e,a);if(!c)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const u=vue.isRef(c.value)?{get(){return c.value.value},set(d){c.value.value=d}}:{get(){return c.get&&c.get()}};Object.defineProperty(r,a,u)}),t.config.globalProperties.$i18n=r,globalExportMethods.forEach(a=>{const c=Object.getOwnPropertyDescriptor(e,a);if(!c||!c.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${a}`,c)}),()=>{delete t.config.globalProperties.$i18n,globalExportMethods.forEach(a=>{delete t.config.globalProperties[`$${a}`]})}}initFeatureFlags();__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile):registerMessageCompiler(compileToFunction);registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=getGlobalThis();t.__INTLIFY__=!0,setDevToolsHook(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const _sfc_main=vue.defineComponent({__name:"ImageModal",props:["imageUrl","onClose","productName"],setup(t){const e=t,r=()=>{e.onClose()};return(o,a)=>(vue.openBlock(),vue.createBlock(vue.unref(IonModal),{"is-open":!0,onDidDismiss:r},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButtons),{slot:"start"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButton),{onClick:r},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(closeOutline),slot:"icon-only"},null,8,["icon"])]),_:1})]),_:1}),vue.createVNode(vue.unref(IonTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.productName),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(IonContent),{class:"ion-text-center"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$3,{src:t.imageUrl},null,8,["src"])]),_:1})]),_:1}))}}),ImageModal_vue_vue_type_style_index_0_scoped_d0727426_lang="",ImageModal=_export_sfc(_sfc_main,[["__scopeId","data-v-d0727426"]]),imagePreview={mounted(t,e){var c,u;t.classList.add("pointer");const r=(c=e.value)==null?void 0:c.mainImageUrl,o=(u=e.value)==null?void 0:u.productName,a=()=>{const d=document.createElement("div");t.appendChild(d);const p=vue.h(ImageModal,{imageUrl:r,productName:o,onClose:()=>{vue.render(null,d),t.removeChild(d)}});vue.render(p,d)};t.addEventListener("click",a)}};var isLocalhost=function(){return!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))},waitWindowLoad;typeof window<"u"&&(typeof Promise<"u"?waitWindowLoad=new Promise(function(t){return window.addEventListener("load",t)}):waitWindowLoad={then:function(t){return window.addEventListener("load",t)}});function register(t,e){e===void 0&&(e={});var r=e.registrationOptions;r===void 0&&(r={}),delete e.registrationOptions;var o=function(a){for(var c=[],u=arguments.length-1;u-- >0;)c[u]=arguments[u+1];e&&e[a]&&e[a].apply(e,c)};"serviceWorker"in navigator&&waitWindowLoad.then(function(){isLocalhost()?(checkValidServiceWorker(t,o,r),navigator.serviceWorker.ready.then(function(a){o("ready",a)}).catch(function(a){return handleError(o,a)})):(registerValidSW(t,o,r),navigator.serviceWorker.ready.then(function(a){o("ready",a)}).catch(function(a){return handleError(o,a)}))})}function handleError(t,e){navigator.onLine||t("offline"),t("error",e)}function registerValidSW(t,e,r){navigator.serviceWorker.register(t,r).then(function(o){if(e("registered",o),o.waiting){e("updated",o);return}o.onupdatefound=function(){e("updatefound",o);var a=o.installing;a.onstatechange=function(){a.state==="installed"&&(navigator.serviceWorker.controller?e("updated",o):e("cached",o))}}}).catch(function(o){return handleError(e,o)})}function checkValidServiceWorker(t,e,r){fetch(t).then(function(o){o.status===404?(e("error",new Error("Service worker not found at "+t)),unregister()):o.headers.get("content-type").indexOf("javascript")===-1?(e("error",new Error("Expected "+t+" to have javascript content-type, but received "+o.headers.get("content-type"))),unregister()):registerValidSW(t,e,r)}).catch(function(o){return handleError(e,o)})}function unregister(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(t){t.unregister()}).catch(function(t){return handleError(emit,t)})}process.env.NODE_ENV==="production"&®ister(`${process.env.BASE_URL}service-worker.js`,{ready(){console.log(`App is being served from cache by a service worker.
|
|
1183
|
-
For more details, visit https://goo.gl/AFskqB`)},registered(t){console.log("Service worker has been registered."),setInterval(()=>{t.update()},1e3*60*60)},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(t){console.log("New content is available; please refresh."),document.dispatchEvent(new CustomEvent("swUpdated",{detail:t}))},offline(){console.log("No internet connection found. App is running in offline mode.")},error(t){console.error("Error during service worker registration:",t)}});const pinia=createPinia();pinia.use(src_default);exports.i18n=void 0;let imageContext={};exports.translate=void 0;let loginContext={},shopifyImgContext={};exports.appContext={};let productIdentificationContext={},facilityContext={},productStoreContext={},notificationContext={},gitBookContext={},userContext={},showToast={},refreshing=!1;const updateAvailable=t=>{const e=t.detail,r=!0;exports.appContext.config.globalProperties.$store.dispatch("user/updatePwaState",{registration:e,updateExists:r}),showToast(exports.translate("New version available, please update the app."))};document.addEventListener("swUpdated",updateAvailable,{once:!0});navigator.serviceWorker&&navigator.serviceWorker.addEventListener("controllerchange",()=>{refreshing||(refreshing=!0,window.location.reload())});let dxpComponents={install(t,e){exports.appContext=t,exports.i18n=createI18n({legacy:!1,locale:process.env.VUE_APP_I18N_LOCALE||"en-US",fallbackLocale:process.env.VUE_APP_I18N_FALLBACK_LOCALE||"en-US",messages:e.localeMessages}),t.use(pinia),t.use(exports.i18n),t.use(IonicVue,{mode:"md"}),t.component("DxpAppVersionInfo",_sfc_main$e),t.component("DxpFacilitySwitcher",DxpFacilitySwitcher),t.component("DxpGitBookSearch",_sfc_main$d),t.component("DxpImage",_sfc_main$b),t.component("DxpLanguageSwitcher",_sfc_main$a),t.component("DxpLogin",_sfc_main$9),t.component("DxpMenuFooterNavigation",_sfc_main$8),t.component("DxpOmsInstanceNavigator",_sfc_main$7),t.component("DxpPagination",_sfc_main$6),t.component("DxpProductIdentifier",_sfc_main$5),t.component("DxpProductStoreSelector",_sfc_main$4),t.component("DxpShopifyImg",_sfc_main$3),t.component("DxpTimeZoneSwitcher",_sfc_main$1),t.component("DxpUserProfile",DxpUserProfile),t.directive("image-preview",imagePreview),showToast=e.showToast,loginContext.login=e.login,loginContext.logout=e.logout,loginContext.loader=e.loader,loginContext.appLoginUrl=e.appLoginUrl,imageContext.defaultImgUrl=e.defaultImgUrl,shopifyImgContext.defaultImgUrl=e.defaultImgUrl,userContext.setUserLocale=e.setUserLocale,userContext.setUserTimeZone=e.setUserTimeZone,userContext.getAvailableTimeZones=e.getAvailableTimeZones,productIdentificationContext.getProductIdentificationPref=e.getProductIdentificationPref,productIdentificationContext.setProductIdentificationPref=e.setProductIdentificationPref,productIdentificationContext.fetchGoodIdentificationTypes=e.fetchGoodIdentificationTypes,facilityContext.getUserFacilities=e.getUserFacilities,facilityContext.setUserPreference=e.setUserPreference,facilityContext.getUserPreference=e.getUserPreference,productStoreContext.getEComStoresByFacility=e.getEComStoresByFacility,productStoreContext.getEComStores=e.getEComStores,productStoreContext.setUserPreference=e.setUserPreference,productStoreContext.getUserPreference=e.getUserPreference,notificationContext.addNotification=e.addNotification,notificationContext.appFirebaseConfig=e.appFirebaseConfig,notificationContext.appFirebaseVapidKey=e.appFirebaseVapidKey,notificationContext.storeClientRegistrationToken=e.storeClientRegistrationToken,gitBookContext.askQuery=e.askQuery,gitBookContext.getGitBookPage=e.getGitBookPage,gitBookContext.searchQuery=e.searchQuery,loginContext.getConfig=e.getConfig,loginContext.initialise=e.initialise,exports.appContext.Actions=e.Actions,exports.appContext.hasPermission=e.hasPermission,exports.i18n.global.locale.value=useUserStore().getLocale,exports.translate=exports.i18n.global.t}};exports.DxpUserProfile=DxpUserProfile;exports.Keyboard=Keyboard;exports._sfc_main=_sfc_main$b;exports._sfc_main$1=_sfc_main$9;exports._sfc_main$2=_sfc_main$8;exports._sfc_main$3=_sfc_main$7;exports._sfc_main$4=_sfc_main$6;exports._sfc_main$5=_sfc_main$5;exports._sfc_main$6=_sfc_main$3;exports._sfc_main$7=_sfc_main$1;exports.addEventListener=addEventListener$1;exports.clamp=clamp;exports.componentOnReady=componentOnReady;exports.createAnimation=createAnimation;exports.createGesture=createGesture;exports.doc=doc;exports.dxpComponents=dxpComponents;exports.facilityContext=facilityContext;exports.findClosestIonContent=findClosestIonContent;exports.getIonPageElement=getIonPageElement;exports.getProductIdentificationValue=getProductIdentificationValue;exports.getScrollElement=getScrollElement;exports.gitBookContext=gitBookContext;exports.goToOms=goToOms;exports.imageContext=imageContext;exports.initialiseFirebaseApp=initialiseFirebaseApp;exports.isRTL=isRTL$1;exports.loginContext=loginContext;exports.notificationContext=notificationContext;exports.now=now$1;exports.pointerCoord=pointerCoord;exports.productIdentificationContext=productIdentificationContext;exports.productStoreContext=productStoreContext;exports.raf=raf;exports.readTask=readTask;exports.removeEventListener=removeEventListener;exports.scrollByPoint=scrollByPoint;exports.scrollToTop=scrollToTop;exports.shopifyImgContext=shopifyImgContext;exports.useAuthStore=useAuthStore;exports.useProductIdentificationStore=useProductIdentificationStore;exports.useUserStore=useUserStore;exports.userContext=userContext;exports.win=win;exports.writeTask=writeTask;
|
|
1183
|
+
For more details, visit https://goo.gl/AFskqB`)},registered(t){console.log("Service worker has been registered."),setInterval(()=>{t.update()},1e3*60*60)},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(t){console.log("New content is available; please refresh."),document.dispatchEvent(new CustomEvent("swUpdated",{detail:t}))},offline(){console.log("No internet connection found. App is running in offline mode.")},error(t){console.error("Error during service worker registration:",t)}});const pinia=createPinia();pinia.use(src_default);exports.i18n=void 0;let imageContext={};exports.translate=void 0;let loginContext={},shopifyImgContext={};exports.appContext={};let productIdentificationContext={},facilityContext={},productStoreContext={},notificationContext={},gitBookContext={},userContext={},showToast={},refreshing=!1;const updateAvailable=t=>{const e=t.detail,r=!0;exports.appContext.config.globalProperties.$store.dispatch("user/updatePwaState",{registration:e,updateExists:r}),showToast(exports.translate("New version available, please update the app."))};document.addEventListener("swUpdated",updateAvailable,{once:!0});navigator.serviceWorker&&navigator.serviceWorker.addEventListener("controllerchange",()=>{refreshing||(refreshing=!0,window.location.reload())});let dxpComponents={install(t,e){exports.appContext=t,exports.i18n=createI18n({legacy:!1,locale:process.env.VUE_APP_I18N_LOCALE||"en-US",fallbackLocale:process.env.VUE_APP_I18N_FALLBACK_LOCALE||"en-US",messages:e.localeMessages}),t.use(pinia),t.use(exports.i18n),t.use(IonicVue,{mode:"md"}),t.component("DxpAppVersionInfo",_sfc_main$e),t.component("DxpFacilitySwitcher",DxpFacilitySwitcher),t.component("DxpGitBookSearch",_sfc_main$d),t.component("DxpImage",_sfc_main$b),t.component("DxpLanguageSwitcher",_sfc_main$a),t.component("DxpLogin",_sfc_main$9),t.component("DxpMenuFooterNavigation",_sfc_main$8),t.component("DxpOmsInstanceNavigator",_sfc_main$7),t.component("DxpPagination",_sfc_main$6),t.component("DxpProductIdentifier",_sfc_main$5),t.component("DxpProductStoreSelector",_sfc_main$4),t.component("DxpShopifyImg",_sfc_main$3),t.component("DxpTimeZoneSwitcher",_sfc_main$1),t.component("DxpUserProfile",DxpUserProfile),t.directive("image-preview",imagePreview),showToast=e.showToast,loginContext.login=e.login,loginContext.logout=e.logout,loginContext.loader=e.loader,loginContext.appLoginUrl=e.appLoginUrl,imageContext.defaultImgUrl=e.defaultImgUrl,shopifyImgContext.defaultImgUrl=e.defaultImgUrl,userContext.setUserLocale=e.setUserLocale,userContext.setUserTimeZone=e.setUserTimeZone,userContext.getAvailableTimeZones=e.getAvailableTimeZones,productIdentificationContext.getProductIdentificationPref=e.getProductIdentificationPref,productIdentificationContext.setProductIdentificationPref=e.setProductIdentificationPref,productIdentificationContext.fetchGoodIdentificationTypes=e.fetchGoodIdentificationTypes,facilityContext.getUserFacilities=e.getUserFacilities,facilityContext.setUserPreference=e.setUserPreference,facilityContext.getUserPreference=e.getUserPreference,productStoreContext.getEComStoresByFacility=e.getEComStoresByFacility,productStoreContext.getEComStores=e.getEComStores,productStoreContext.setUserPreference=e.setUserPreference,productStoreContext.getUserPreference=e.getUserPreference,notificationContext.addNotification=e.addNotification,notificationContext.appFirebaseConfig=e.appFirebaseConfig,notificationContext.appFirebaseVapidKey=e.appFirebaseVapidKey,notificationContext.storeClientRegistrationToken=e.storeClientRegistrationToken,gitBookContext.askQuery=e.askQuery,gitBookContext.getGitBookPage=e.getGitBookPage,gitBookContext.searchQuery=e.searchQuery,loginContext.getConfig=e.getConfig,loginContext.initialise=e.initialise,exports.appContext.Actions=e.Actions,exports.appContext.hasPermission=e.hasPermission,exports.i18n.global.locale.value=useUserStore().getLocale,exports.translate=exports.i18n.global.t}};exports.DxpUserProfile=DxpUserProfile;exports.Keyboard=Keyboard;exports._sfc_main=_sfc_main$b;exports._sfc_main$1=_sfc_main$9;exports._sfc_main$2=_sfc_main$8;exports._sfc_main$3=_sfc_main$7;exports._sfc_main$4=_sfc_main$6;exports._sfc_main$5=_sfc_main$5;exports._sfc_main$6=_sfc_main$3;exports._sfc_main$7=_sfc_main$1;exports.addEventListener=addEventListener$1;exports.clamp=clamp;exports.componentOnReady=componentOnReady;exports.createAnimation=createAnimation;exports.createGesture=createGesture;exports.doc=doc;exports.dxpComponents=dxpComponents;exports.facilityContext=facilityContext;exports.findClosestIonContent=findClosestIonContent;exports.getAppLoginUrl=getAppLoginUrl;exports.getIonPageElement=getIonPageElement;exports.getProductIdentificationValue=getProductIdentificationValue;exports.getScrollElement=getScrollElement;exports.gitBookContext=gitBookContext;exports.goToOms=goToOms;exports.imageContext=imageContext;exports.initialiseFirebaseApp=initialiseFirebaseApp;exports.isRTL=isRTL$1;exports.loginContext=loginContext;exports.notificationContext=notificationContext;exports.now=now$1;exports.pointerCoord=pointerCoord;exports.productIdentificationContext=productIdentificationContext;exports.productStoreContext=productStoreContext;exports.raf=raf;exports.readTask=readTask;exports.removeEventListener=removeEventListener;exports.scrollByPoint=scrollByPoint;exports.scrollToTop=scrollToTop;exports.shopifyImgContext=shopifyImgContext;exports.useAuthStore=useAuthStore;exports.useProductIdentificationStore=useProductIdentificationStore;exports.useUserStore=useUserStore;exports.userContext=userContext;exports.win=win;exports.writeTask=writeTask;
|