@hotwax/dxp-components 1.21.0 → 1.22.1
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 +5 -0
- package/lib/components/ImageModal.vue.d.ts.map +1 -0
- package/lib/directives/imagePreview.d.ts +5 -0
- package/lib/directives/imagePreview.d.ts.map +1 -0
- package/lib/{index-93214f76.js → index-5811a56a.js} +848 -777
- package/lib/{index-5bdb0166.cjs → index-e2cf0498.cjs} +8 -8
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/{index9-1b3af07f.js → index9-d7012e58.js} +1 -1
- package/lib/{index9-d5c9e84b.cjs → index9-ebb6eee5.cjs} +1 -1
- package/lib/{input-shims-e844671b.js → input-shims-0002b962.js} +1 -1
- package/lib/{input-shims-7a96c568.cjs → input-shims-92e9a1e4.cjs} +1 -1
- package/lib/{ios.transition-e2c8d023.js → ios.transition-567461bc.js} +1 -1
- package/lib/{ios.transition-9d6acba5.cjs → ios.transition-8bffa284.cjs} +1 -1
- package/lib/{md.transition-a401617e.js → md.transition-a4303cfa.js} +1 -1
- package/lib/{md.transition-7cd6c538.cjs → md.transition-fdcff58b.cjs} +1 -1
- package/lib/{status-tap-ded7c591.js → status-tap-2397f06f.js} +1 -1
- package/lib/{status-tap-3d6224c3.cjs → status-tap-f58788f5.cjs} +1 -1
- package/lib/store/user.d.ts +3 -3
- package/lib/style.css +1 -1
- package/lib/{swipe-back-9713ec6f.js → swipe-back-f19b1dc6.js} +1 -1
- package/lib/{swipe-back-e5f78b86.cjs → swipe-back-fe0e2aee.cjs} +1 -1
- package/package.json +1 -1
|
@@ -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-8bffa284.cjs")),mdTransitionAnimation=()=>Promise.resolve().then(()=>require("./md.transition-fdcff58b.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-e5f78b86.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-fe0e2aee.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,13 +188,13 @@ 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-ebb6eee5.cjs")).then(o=>o.startTapClick(config$1)),config$1.getBoolean("statusTap",e)&&Promise.resolve().then(()=>require("./status-tap-f58788f5.cjs")).then(o=>o.startStatusTap()),config$1.getBoolean("inputShims",needInputShims())){const o=isPlatform(window,"ios")?"ios":"android";Promise.resolve().then(()=>require("./input-shims-92e9a1e4.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
|
|
195
195
|
*/const KEYBOARD_DID_OPEN="ionKeyboardDidShow",KEYBOARD_DID_CLOSE="ionKeyboardDidHide",KEYBOARD_THRESHOLD=150;let previousVisualViewport={},currentVisualViewport={},keyboardOpen=!1;const resetKeyboardAssist=()=>{previousVisualViewport={},currentVisualViewport={},keyboardOpen=!1},startKeyboardAssist=t=>{if(Keyboard.getEngine())startNativeListeners(t);else{if(!t.visualViewport)return;currentVisualViewport=copyVisualViewport(t.visualViewport),t.visualViewport.onresize=()=>{trackViewportChanges(t),keyboardDidOpen()||keyboardDidResize(t)?setKeyboardOpen(t):keyboardDidClose(t)&&setKeyboardClose(t)}}},startNativeListeners=t=>{t.addEventListener("keyboardDidShow",e=>setKeyboardOpen(t,e)),t.addEventListener("keyboardDidHide",()=>setKeyboardClose(t))},setKeyboardOpen=(t,e)=>{fireKeyboardOpenEvent(t,e),keyboardOpen=!0},setKeyboardClose=t=>{fireKeyboardCloseEvent(t),keyboardOpen=!1},keyboardDidOpen=()=>{const t=(previousVisualViewport.height-currentVisualViewport.height)*currentVisualViewport.scale;return!keyboardOpen&&previousVisualViewport.width===currentVisualViewport.width&&t>KEYBOARD_THRESHOLD},keyboardDidResize=t=>keyboardOpen&&!keyboardDidClose(t),keyboardDidClose=t=>keyboardOpen&¤tVisualViewport.height===t.innerHeight,fireKeyboardOpenEvent=(t,e)=>{const r=e?e.keyboardHeight:t.innerHeight-currentVisualViewport.height,o=new CustomEvent(KEYBOARD_DID_OPEN,{detail:{keyboardHeight:r}});t.dispatchEvent(o)},fireKeyboardCloseEvent=t=>{const e=new CustomEvent(KEYBOARD_DID_CLOSE);t.dispatchEvent(e)},trackViewportChanges=t=>{previousVisualViewport=Object.assign({},currentVisualViewport),currentVisualViewport=copyVisualViewport(t.visualViewport)},copyVisualViewport=t=>({width:Math.round(t.width),height:Math.round(t.height),offsetTop:t.offsetTop,offsetLeft:t.offsetLeft,pageTop:t.pageTop,pageLeft:t.pageLeft,scale:t.scale}),keyboard2=Object.freeze(Object.defineProperty({__proto__:null,KEYBOARD_DID_CLOSE,KEYBOARD_DID_OPEN,copyVisualViewport,keyboardDidClose,keyboardDidOpen,keyboardDidResize,resetKeyboardAssist,setKeyboardClose,setKeyboardOpen,startKeyboardAssist,trackViewportChanges},Symbol.toStringTag,{value:"Module"}));/*!
|
|
196
196
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
197
|
-
*/var Style;(function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"})(Style||(Style={}));const StatusBar={getEngine(){const t=getCapacitor();if(t!=null&&t.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},supportsDefaultStatusBarStyle(){const t=getCapacitor();return!!(t!=null&&t.PluginHeaders)},setStyle(t){const e=this.getEngine();e&&e.setStyle(t)},getStyle:async function(){const t=this.getEngine();if(!t)return Style.Default;const{style:e}=await t.getInfo();return e}},getBackdropValueForSheet=(t,e)=>{if(e===1)return 0;const r=1/(1-e),o=-(e*r);return t*r+o},setCardStatusBarDark=()=>{!win||win.innerWidth>=768||!StatusBar.supportsDefaultStatusBarStyle()||StatusBar.setStyle({style:Style.Dark})},setCardStatusBarDefault=(t=Style.Default)=>{!win||win.innerWidth>=768||!StatusBar.supportsDefaultStatusBarStyle()||StatusBar.setStyle({style:t})},handleCanDismiss=async(t,e)=>{typeof t.canDismiss!="function"||!await t.canDismiss(void 0,GESTURE)||(e.isRunning()?e.onFinish(()=>{t.dismiss(void 0,"handler")},{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))},calculateSpringStep=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,SwipeToCloseDefaults={MIN_PRESENTING_SCALE:.93},createSwipeToCloseGesture=(t,e,r,o)=>{const c=t.offsetHeight;let u=!1,d=!1,p=null,g=null;const b=.2;let x=!0,w=0;const y=()=>p&&isIonContent(p)?p.scrollY:!0,O=createGesture({el:t,gestureName:"modalSwipeToClose",gesturePriority:OVERLAY_GESTURE_PRIORITY,direction:"y",threshold:10,canStart:A=>{const L=A.event.target;return L===null||!L.closest?!0:(p=findClosestIonContent(L),p?(isIonContent(p)?g=getElementRoot(p).querySelector(".inner-scroll"):g=p,!!!p.querySelector("ion-refresher")&&g.scrollTop===0):L.closest("ion-footer")===null)},onStart:A=>{const{deltaY:L}=A;x=y(),d=t.canDismiss!==void 0&&t.canDismiss!==!0,L>0&&p&&disableContentScrollY(p),e.progressStart(!0,u?1:0)},onMove:A=>{const{deltaY:L}=A;L>0&&p&&disableContentScrollY(p);const R=A.deltaY/c,$=R>=0&&d,P=$?b:.9999,z=$?calculateSpringStep(R/P):R,W=clamp(1e-4,z,P);e.progressStep(W),W>=.5&&w<.5?setCardStatusBarDefault(r):W<.5&&w>=.5&&setCardStatusBarDark(),w=W},onEnd:A=>{const L=A.velocityY,R=A.deltaY/c,$=R>=0&&d,P=$?b:.9999,z=$?calculateSpringStep(R/P):R,W=clamp(1e-4,z,P),D=(A.deltaY+L*1e3)/c,S=!$&&D>=.5;let F=S?-.001:.001;S?(e.easing("cubic-bezier(0.32, 0.72, 0, 1)"),F+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],W)[0]):(e.easing("cubic-bezier(1, 0, 0.68, 0.28)"),F+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],W)[0]);const U=computeDuration(S?R*c:(1-W)*c,L);u=S,O.enable(!1),p&&resetContentScrollY(p,x),e.onFinish(()=>{S||O.enable(!0)}).progressEnd(S?1:0,F,U),$&&W>P/4?handleCanDismiss(t,e):S&&o()}});return O},computeDuration=(t,e)=>clamp(400,t/Math.abs(e*1.1),500),createSheetEnterAnimation=t=>{const{currentBreakpoint:e,backdropBreakpoint:r}=t,o=r===void 0||r<e,a=o?`calc(var(--backdrop-opacity) * ${e})`:"0",c=createAnimation("backdropAnimation").fromTo("opacity",0,a);return o&&c.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:createAnimation("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-e*100}%)`}]),backdropAnimation:c}},createSheetLeaveAnimation=t=>{const{currentBreakpoint:e,backdropBreakpoint:r}=t,o=`calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(e,r)})`,a=[{offset:0,opacity:o},{offset:1,opacity:0}],c=[{offset:0,opacity:o},{offset:r,opacity:0},{offset:1,opacity:0}],u=createAnimation("backdropAnimation").keyframes(r!==0?c:a);return{wrapperAnimation:createAnimation("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-e*100}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:u}},createEnterAnimation$1=()=>{const t=createAnimation().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),e=createAnimation().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:t,wrapperAnimation:e}},iosEnterAnimation=(t,e)=>{const{presentingEl:r,currentBreakpoint:o}=e,a=getElementRoot(t),{wrapperAnimation:c,backdropAnimation:u}=o!==void 0?createSheetEnterAnimation(e):createEnterAnimation$1();u.addElement(a.querySelector("ion-backdrop")),c.addElement(a.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const d=createAnimation("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(c);if(r){const p=window.innerWidth<768,g=r.tagName==="ION-MODAL"&&r.presentingElement!==void 0,b=getElementRoot(r),x=createAnimation().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),w=document.body;if(p){const y=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",I=g?"-10px":y,k=SwipeToCloseDefaults.MIN_PRESENTING_SCALE,T=`translateY(${I}) scale(${k})`;x.afterStyles({transform:T}).beforeAddWrite(()=>w.style.setProperty("background-color","black")).addElement(r).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:T,borderRadius:"10px 10px 0 0"}]),d.addAnimation(x)}else if(d.addAnimation(u),!g)c.fromTo("opacity","0","1");else{const I=`translateY(-10px) scale(${g?SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1})`;x.afterStyles({transform:I}).addElement(b.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:I}]);const k=createAnimation().afterStyles({transform:I}).addElement(b.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:I}]);d.addAnimation([x,k])}}else d.addAnimation(u);return d},createLeaveAnimation$1=()=>{const t=createAnimation().fromTo("opacity","var(--backdrop-opacity)",0),e=createAnimation().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:t,wrapperAnimation:e}},iosLeaveAnimation=(t,e,r=500)=>{const{presentingEl:o,currentBreakpoint:a}=e,c=getElementRoot(t),{wrapperAnimation:u,backdropAnimation:d}=a!==void 0?createSheetLeaveAnimation(e):createLeaveAnimation$1();d.addElement(c.querySelector("ion-backdrop")),u.addElement(c.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const p=createAnimation("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(r).addAnimation(u);if(o){const g=window.innerWidth<768,b=o.tagName==="ION-MODAL"&&o.presentingElement!==void 0,x=getElementRoot(o),w=createAnimation().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(I=>{if(I!==1)return;o.style.setProperty("overflow",""),Array.from(y.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter(T=>T.presentingElement!==void 0).length<=1&&y.style.setProperty("background-color","")}),y=document.body;if(g){const I=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",k=b?"-10px":I,T=SwipeToCloseDefaults.MIN_PRESENTING_SCALE,E=`translateY(${k}) scale(${T})`;w.addElement(o).keyframes([{offset:0,filter:"contrast(0.85)",transform:E,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),p.addAnimation(w)}else if(p.addAnimation(d),!b)u.fromTo("opacity","1","0");else{const k=`translateY(-10px) scale(${b?SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1})`;w.addElement(x.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:k},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const T=createAnimation().addElement(x.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:k},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);p.addAnimation([w,T])}}else p.addAnimation(d);return p},createEnterAnimation=()=>{const t=createAnimation().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),e=createAnimation().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:t,wrapperAnimation:e}},mdEnterAnimation=(t,e)=>{const{currentBreakpoint:r}=e,o=getElementRoot(t),{wrapperAnimation:a,backdropAnimation:c}=r!==void 0?createSheetEnterAnimation(e):createEnterAnimation();return c.addElement(o.querySelector("ion-backdrop")),a.addElement(o.querySelector(".modal-wrapper")),createAnimation().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([c,a])},createLeaveAnimation=()=>{const t=createAnimation().fromTo("opacity","var(--backdrop-opacity)",0),e=createAnimation().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:t,wrapperAnimation:e}},mdLeaveAnimation=(t,e)=>{const{currentBreakpoint:r}=e,o=getElementRoot(t),{wrapperAnimation:a,backdropAnimation:c}=r!==void 0?createSheetLeaveAnimation(e):createLeaveAnimation();return c.addElement(o.querySelector("ion-backdrop")),a.addElement(o.querySelector(".modal-wrapper")),createAnimation().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([c,a])},createSheetGesture=(t,e,r,o,a,c,u=[],d,p,g)=>{const b=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}],x=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-a,opacity:0},{offset:1,opacity:0}],w={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:a!==0?x:b},y=t.querySelector("ion-content"),I=r.clientHeight;let k=o,T=0,E=!1;const O=.95,A=c.childAnimations.find(V=>V.id==="wrapperAnimation"),L=c.childAnimations.find(V=>V.id==="backdropAnimation"),R=u[u.length-1],$=u[0],P=()=>{t.style.setProperty("pointer-events","auto"),e.style.setProperty("pointer-events","auto"),t.classList.remove("ion-disable-focus-trap")},z=()=>{t.style.setProperty("pointer-events","none"),e.style.setProperty("pointer-events","none"),t.classList.add("ion-disable-focus-trap")};A&&L&&(A.keyframes([...w.WRAPPER_KEYFRAMES]),L.keyframes([...w.BACKDROP_KEYFRAMES]),c.progressStart(!0,1-k),k>a?P():z()),y&&k!==R&&(y.scrollY=!1);const W=V=>{const G=V.event.target.closest("ion-content");return k=d(),!(k===1&&G)},D=()=>{E=t.canDismiss!==void 0&&t.canDismiss!==!0&&$===0,y&&(y.scrollY=!1),raf(()=>{t.focus()}),c.progressStart(!0,1-k)},S=V=>{const G=1-k,Q=u.length>1?1-u[1]:void 0,fe=G+V.deltaY/I,te=Q!==void 0&&fe>=Q&&E,de=te?O:.9999,me=te&&Q!==void 0?Q+calculateSpringStep((fe-Q)/(de-Q)):fe;T=clamp(1e-4,me,de),c.progressStep(T)},F=V=>{const G=V.velocityY,Q=(V.deltaY+G*350)/I,fe=k-Q,te=u.reduce((de,me)=>Math.abs(me-fe)<Math.abs(de-fe)?me:de);U({breakpoint:te,breakpointOffset:T,canDismiss:E,animated:!0})},U=V=>{const{breakpoint:G,canDismiss:Q,breakpointOffset:fe,animated:te}=V,de=Q&&G===0,me=de?k:G,Me=me!==0;return k=0,A&&L&&(A.keyframes([{offset:0,transform:`translateY(${fe*100}%)`},{offset:1,transform:`translateY(${(1-me)*100}%)`}]),L.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(1-fe,a)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(me,a)})`}]),c.progressStep(0)),M.enable(!1),de?handleCanDismiss(t,c):Me||p(),new Promise(ce=>{c.onFinish(()=>{Me?A&&L?raf(()=>{A.keyframes([...w.WRAPPER_KEYFRAMES]),L.keyframes([...w.BACKDROP_KEYFRAMES]),c.progressStart(!0,1-me),k=me,g(k),y&&k===u[u.length-1]&&(y.scrollY=!0),k>a?P():z(),M.enable(!0),ce()}):(M.enable(!0),ce()):ce()},{oneTimeCallback:!0}).progressEnd(1,0,te?500:0)})},M=createGesture({el:r,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:W,onStart:D,onMove:S,onEnd:F});return{gesture:M,moveSheetToBreakpoint:U}},modalIosCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{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);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-card:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-sheet:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}',modalMdCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{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);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}',Modal=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=createEvent(this,"ionModalDidPresent",7),this.willPresent=createEvent(this,"ionModalWillPresent",7),this.willDismiss=createEvent(this,"ionModalWillDismiss",7),this.didDismiss=createEvent(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=createEvent(this,"ionBreakpointDidChange",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.ionMount=createEvent(this,"ionMount",7),this.lockController=createLockController(),this.triggerController=createTriggerController(),this.coreDelegate=CoreDelegate(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:e,handleBehavior:r}=this;r!=="cycle"||e!==void 0||this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:e}=this;e===void 0&&this.dismiss(void 0,BACKDROP)},this.onLifecycle=e=>{const r=this.usersElement,o=LIFECYCLE_MAP[e.type];if(r&&o){const a=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e.detail});r.dispatchEvent(a)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.canDismiss=!0}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)}breakpointsChanged(e){e!==void 0&&(this.sortedBreakpoints=e.sort((r,o)=>r-o))}connectedCallback(){const{el:e}=this;prepareOverlay(e),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:e,initialBreakpoint:r,el:o}=this,a=this.isSheetModal=e!==void 0&&r!==void 0;this.inheritedAttributes=inheritAttributes$2(o,["aria-label","role"]),a&&(this.currentBreakpoint=this.initialBreakpoint),e!==void 0&&r!==void 0&&!e.includes(r)&&printIonWarning("Your breakpoints array must include the initialBreakpoint value."),setOverlayId(o)}componentDidLoad(){this.isOpen===!0&&raf(()=>this.present()),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(e=!1){if(this.workingDelegate&&!e)return{delegate:this.workingDelegate,inline:this.inline};const r=this.el.parentNode,o=this.inline=r!==null&&!this.hasController,a=this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate;return{inline:o,delegate:a}}async checkCanDismiss(e,r){const{canDismiss:o}=this;return typeof o=="function"?o(e,r):o}async present(){const e=await this.lockController.lock();if(this.presented){e();return}const{presentingElement:r,el:o}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:a,delegate:c}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await attachComponent(c,o,this.component,["ion-page"],this.componentProps,a),hasLazyBuild(o)?await deepReady(this.usersElement):this.keepContentsMounted||await waitForMount(),writeTask(()=>this.el.classList.add("show-modal"));const u=r!==void 0;u&&getIonMode$2(this)==="ios"&&(this.statusBarStyle=await StatusBar.getStyle(),setCardStatusBarDark()),await present(this,"modalEnter",iosEnterAnimation,mdEnterAnimation,{presentingEl:r,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),typeof window<"u"&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),raf(()=>{this.gesture&&this.gesture.enable(!0)}))},window.addEventListener(KEYBOARD_DID_OPEN,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():u&&this.initSwipeToClose(),e()}initSwipeToClose(){var e;if(getIonMode$2(this)!=="ios")return;const{el:r}=this,o=this.leaveAnimation||config$1.get("modalLeave",iosLeaveAnimation),a=this.animation=o(r,{presentingEl:this.presentingElement});if(!findIonContent(r)){printIonContentErrorMsg(r);return}const u=(e=this.statusBarStyle)!==null&&e!==void 0?e:Style.Default;this.gesture=createSwipeToCloseGesture(r,a,u,()=>{this.gestureAnimationDismissing=!0,setCardStatusBarDefault(this.statusBarStyle),this.animation.onFinish(async()=>{await this.dismiss(void 0,GESTURE),this.gestureAnimationDismissing=!1})}),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:e,initialBreakpoint:r,backdropBreakpoint:o}=this;if(!e||r===void 0)return;const a=this.enterAnimation||config$1.get("modalEnter",iosEnterAnimation),c=this.animation=a(this.el,{presentingEl:this.presentingElement,currentBreakpoint:r,backdropBreakpoint:o});c.progressStart(!0,1);const{gesture:u,moveSheetToBreakpoint:d}=createSheetGesture(this.el,this.backdropEl,e,r,o,c,this.sortedBreakpoints,()=>{var p;return(p=this.currentBreakpoint)!==null&&p!==void 0?p:0},()=>this.sheetOnDismiss(),p=>{this.currentBreakpoint!==p&&(this.currentBreakpoint=p,this.ionBreakpointDidChange.emit({breakpoint:p}))});this.gesture=u,this.moveSheetToBreakpoint=d,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish(async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,GESTURE),this.gestureAnimationDismissing=!1})}async dismiss(e,r){var o;if(this.gestureAnimationDismissing&&r!==GESTURE)return!1;const a=await this.lockController.lock();if(r!=="handler"&&!await this.checkCanDismiss(e,r))return a(),!1;const{presentingElement:c}=this;c!==void 0&&getIonMode$2(this)==="ios"&&setCardStatusBarDefault(this.statusBarStyle),typeof window<"u"&&this.keyboardOpenCallback&&(window.removeEventListener(KEYBOARD_DID_OPEN,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const d=activeAnimations.get(this)||[],p=await dismiss(this,e,r,"modalLeave",iosLeaveAnimation,mdLeaveAnimation,{presentingEl:c,currentBreakpoint:(o=this.currentBreakpoint)!==null&&o!==void 0?o:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(p){const{delegate:g}=this.getDelegate();await detachComponent(g,this.usersElement),writeTask(()=>this.el.classList.remove("show-modal")),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy(),d.forEach(b=>b.destroy())}return this.currentBreakpoint=void 0,this.animation=void 0,a(),p}onDidDismiss(){return eventMethod(this.el,"ionModalDidDismiss")}onWillDismiss(){return eventMethod(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(e){if(!this.isSheetModal){printIonWarning("setCurrentBreakpoint is only supported on sheet modals.");return}if(!this.breakpoints.includes(e)){printIonWarning(`Attempted to set invalid breakpoint value ${e}. Please double check that the breakpoint value is part of your defined breakpoints.`);return}const{currentBreakpoint:r,moveSheetToBreakpoint:o,canDismiss:a,breakpoints:c,animated:u}=this;r!==e&&o&&(this.sheetTransition=o({breakpoint:e,breakpointOffset:1-r,canDismiss:a!==void 0&&a!==!0&&c[0]===0,animated:u}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:e,currentBreakpoint:r}=this;if(!e||r==null)return!1;const o=e.filter(d=>d!==0),c=(o.indexOf(r)+1)%o.length,u=o[c];return await this.setCurrentBreakpoint(u),!0}render(){const{handle:e,isSheetModal:r,presentingElement:o,htmlAttributes:a,handleBehavior:c,inheritedAttributes:u}=this,d=e!==!1&&r,p=getIonMode$2(this),g=o!==void 0&&p==="ios",b=c==="cycle";return h(Host,Object.assign({"no-router":!0,tabindex:"-1"},a,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[p]:!0,"modal-default":!g&&!r,"modal-card":g,"modal-sheet":r,"overlay-hidden":!0},getClassMap(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),h("ion-backdrop",{ref:x=>this.backdropEl=x,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),p==="ios"&&h("div",{class:"modal-shadow"}),h("div",Object.assign({role:"dialog"},u,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:x=>this.wrapperEl=x}),d&&h("button",{class:"modal-handle",tabIndex:b?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:b?this.onHandleClick:void 0,part:"handle"}),h("slot",null)))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:modalIosCss,md:modalMdCss}}},[33,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],canDismiss:[4,"can-dismiss"],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),LIFECYCLE_MAP={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};function defineCustomElement$1(){if(typeof customElements>"u")return;["ion-modal","ion-backdrop"].forEach(e=>{switch(e){case"ion-modal":customElements.get(e)||customElements.define(e,Modal);break;case"ion-backdrop":customElements.get(e)||defineCustomElement$R();break}})}const defineCustomElement=defineCustomElement$1,UPDATE_VALUE_EVENT="update:modelValue",MODEL_VALUE="modelValue",ROUTER_LINK_VALUE="routerLink",NAV_MANAGER="navManager",ROUTER_PROP_PREFIX="router",ARIA_PROP_PREFIX="aria",EMPTY_PROP$1=Symbol(),DEFAULT_EMPTY_PROP$1={default:EMPTY_PROP$1},getComponentClasses=t=>(t==null?void 0:t.split(" "))||[],getElementClasses=(t,e,r=[])=>{var o;return[...Array.from(((o=t.value)===null||o===void 0?void 0:o.classList)||[]),...r].filter((a,c,u)=>!e.has(a)&&u.indexOf(a)===c)},defineContainer=(t,e,r=[],o,a)=>{e!==void 0&&e();const c=vue.defineComponent((u,{attrs:d,slots:p,emit:g})=>{var b;let x=u[o];const w=vue.ref(),y=new Set(getComponentClasses(d.class)),I={created:A=>{(Array.isArray(a)?a:[a]).forEach(R=>{A.addEventListener(R.toLowerCase(),$=>{x=($==null?void 0:$.target)[o],g(UPDATE_VALUE_EVENT,x)})})}},k=vue.getCurrentInstance(),E=((b=k==null?void 0:k.appContext)===null||b===void 0?void 0:b.provides[NAV_MANAGER])?vue.inject(NAV_MANAGER):void 0,O=A=>{const{routerLink:L}=u;if(L!==EMPTY_PROP$1)if(E!==void 0){let R={event:A};for(const $ in u){const P=u[$];u.hasOwnProperty($)&&$.startsWith(ROUTER_PROP_PREFIX)&&P!==EMPTY_PROP$1&&(R[$]=P)}E.navigate(R)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{x=u[o],getComponentClasses(d.class).forEach(P=>{y.add(P)});const A=u.onClick,L=P=>{A!==void 0&&A(P),P.defaultPrevented||O(P)};let R={ref:w,class:getElementClasses(w,y),onClick:L};for(const P in u){const z=u[P];(u.hasOwnProperty(P)&&z!==EMPTY_PROP$1||P.startsWith(ARIA_PROP_PREFIX))&&(R[P]=z)}o&&(u[MODEL_VALUE]!==EMPTY_PROP$1?R=Object.assign(Object.assign({},R),{[o]:u[MODEL_VALUE]}):x!==EMPTY_PROP$1&&(R=Object.assign(Object.assign({},R),{[o]:x})));const $=vue.h(t,R,p.default&&p.default());return o===void 0?$:vue.withDirectives($,[[I]])}});return typeof c!="function"&&(c.name=t,c.props={[ROUTER_LINK_VALUE]:DEFAULT_EMPTY_PROP$1},r.forEach(u=>{c.props[u]=DEFAULT_EMPTY_PROP$1}),o&&(c.props[MODEL_VALUE]=DEFAULT_EMPTY_PROP$1,c.emits=[UPDATE_VALUE_EVENT])),c},IonAvatar=defineContainer("ion-avatar",defineCustomElement$S),IonButton=defineContainer("ion-button",defineCustomElement$O,["color","buttonType","disabled","expand","fill","routerDirection","routerAnimation","download","href","rel","shape","size","strong","target","type","form","ionFocus","ionBlur"]),IonButtons=defineContainer("ion-buttons",defineCustomElement$M,["collapse"]),IonCard=defineContainer("ion-card",defineCustomElement$L,["color","button","type","disabled","download","href","rel","routerDirection","routerAnimation","target"]),IonCardContent=defineContainer("ion-card-content",defineCustomElement$K),IonCardHeader=defineContainer("ion-card-header",defineCustomElement$J,["color","translucent"]),IonCardSubtitle=defineContainer("ion-card-subtitle",defineCustomElement$I,["color"]),IonCardTitle=defineContainer("ion-card-title",defineCustomElement$H,["color"]),IonChip=defineContainer("ion-chip",defineCustomElement$F,["color","outline","disabled"]),IonContent=defineContainer("ion-content",defineCustomElement$E,["color","fullscreen","forceOverscroll","scrollX","scrollY","scrollEvents","ionScrollStart","ionScroll","ionScrollEnd"]),IonFab=defineContainer("ion-fab",defineCustomElement$z,["horizontal","vertical","edge","activated"]),IonFabButton=defineContainer("ion-fab-button",defineCustomElement$y,["color","activated","disabled","download","href","rel","routerDirection","routerAnimation","target","show","translucent","type","size","closeIcon","ionFocus","ionBlur"]),IonFooter=defineContainer("ion-footer",defineCustomElement$x,["collapse","translucent"]),IonHeader=defineContainer("ion-header",defineCustomElement$w,["collapse","translucent"]),IonItem=defineContainer("ion-item",defineCustomElement$u,["color","button","detail","detailIcon","disabled","download","fill","shape","href","rel","lines","counter","routerAnimation","routerDirection","target","type","counterFormatter"]),IonLabel=defineContainer("ion-label",defineCustomElement$t,["color","position","ionColor","ionStyle"]),IonList=defineContainer("ion-list",defineCustomElement$r,["lines","inset"]),IonListHeader=defineContainer("ion-list-header",defineCustomElement$p,["color","lines"]),IonNote=defineContainer("ion-note",defineCustomElement$n,["color"]),IonRadio=defineContainer("ion-radio",defineCustomElement$l,["color","name","disabled","value","labelPlacement","legacy","justify","alignment","ionStyle","ionFocus","ionBlur"],"value","ion-change"),IonRadioGroup=defineContainer("ion-radio-group",defineCustomElement$j,["allowEmptySelection","compareWith","name","value","ionChange","ionValueChange"],"value","ion-change"),IonSearchbar=defineContainer("ion-searchbar",defineCustomElement$i,["color","animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","debounce","disabled","inputmode","enterkeyhint","name","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value","ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus","ionStyle"],"value","ion-input"),IonSegment=defineContainer("ion-segment",defineCustomElement$h,["color","disabled","scrollable","swipeGesture","value","selectOnFocus","ionChange","ionSelect","ionStyle"],"value","ion-change"),IonSegmentButton=defineContainer("ion-segment-button",defineCustomElement$g,["disabled","layout","type","value"],"value","ion-change"),IonSelect=defineContainer("ion-select",defineCustomElement$c,["cancelText","color","compareWith","disabled","fill","interface","interfaceOptions","justify","label","labelPlacement","legacy","multiple","name","okText","placeholder","selectedText","toggleIcon","expandedIcon","shape","value","ionChange","ionCancel","ionDismiss","ionFocus","ionBlur","ionStyle"],"value","ion-change"),IonSelectOption=defineContainer("ion-select-option",defineCustomElement$b,["disabled","value"]),IonSpinner=defineContainer("ion-spinner",defineCustomElement$a,["color","duration","name","paused"]),IonTitle=defineContainer("ion-title",defineCustomElement$9,["color","size","ionStyle"]),IonToolbar=defineContainer("ion-toolbar",defineCustomElement$8,["color"]);var LifecycleHooks;(function(t){t.WillEnter="onIonViewWillEnter",t.DidEnter="onIonViewDidEnter",t.WillLeave="onIonViewWillLeave",t.DidLeave="onIonViewDidLeave"})(LifecycleHooks||(LifecycleHooks={}));LIFECYCLE_WILL_ENTER+"",LifecycleHooks.WillEnter,LIFECYCLE_DID_ENTER+"",LifecycleHooks.DidEnter,LIFECYCLE_WILL_LEAVE+"",LifecycleHooks.WillLeave,LIFECYCLE_DID_LEAVE+"",LifecycleHooks.DidLeave;const getConfig=()=>{if(typeof window<"u"){const t=window.Ionic;if(t&&t.config)return t.config}return null},injectHook=(t,e,r)=>{if(r){const o=r,a=o.proxy[t]||(o.proxy[t]=[]);o.exposed&&(o.exposed[t]=a);const c=(...u)=>{if(!o.isUnmounted)return u?e(...u):e()};return a.push(c),c}else console.warn("[@ionic/vue]: Ionic Lifecycle Hooks can only be used during execution of setup().")},createHook=t=>(e,r=vue.getCurrentInstance())=>injectHook(t,e,r);createHook(LifecycleHooks.WillEnter);createHook(LifecycleHooks.DidEnter);createHook(LifecycleHooks.WillLeave);createHook(LifecycleHooks.DidLeave);const toKebabCase=t=>t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),getHelperFunctions=()=>({ael:(t,e,r,o)=>t.addEventListener(toKebabCase(e),r,o),rel:(t,e,r,o)=>t.removeEventListener(toKebabCase(e),r,o),ce:(t,e)=>new CustomEvent(toKebabCase(t),e)}),IonicVue={async install(t,e={}){typeof document<"u"&&document.documentElement.classList.add("ion-ce");const{ael:r,rel:o,ce:a}=getHelperFunctions();initialize(Object.assign(Object.assign({},e),{_ael:r,_rel:o,_ce:a}))}},IonBackButton=vue.defineComponent((t,{attrs:e,slots:r})=>{defineCustomElement$7();const o=vue.inject("navManager"),a=()=>{if(o===void 0)return;const c=e["default-href"]||e.defaultHref,u=e["router-animation"]||e.routerAnimation;o.handleNavigateBack(c,u)};return()=>vue.h("ion-back-button",Object.assign({onClick:a},e),r.default&&r.default())});IonBackButton.name="IonBackButton";const IonTabButton=vue.defineComponent({name:"IonTabButton",props:{_getTabState:{type:Function,default:()=>({})},disabled:Boolean,download:String,href:String,rel:String,layout:String,selected:Boolean,tab:String,target:String},setup(t,{slots:e}){defineCustomElement$6();const r=vue.inject("navManager"),o=a=>{a.cancelable&&a.preventDefault();const{tab:c,href:u,_getTabState:d}=t,p=d(),g=p.tabs[c]||{},b=g.originalHref||u,x=g.currentHref||u;p.activeTab===c?b!==x&&r.resetTab(c):r.changeTab(c,x)};return()=>vue.h("ion-tab-button",Object.assign({onClick:o},t),e.default&&e.default())}}),isTabButton=t=>{var e;return((e=t.type)===null||e===void 0?void 0:e.name)==="IonTabButton"},getTabs=t=>{let e=[];return t.forEach(r=>{if(isTabButton(r))e.push(r);else if(Array.isArray(r.children)&&r.children.length>1){const o=getTabs(r.children);e=[...e,...o]}}),e};vue.defineComponent({name:"IonTabBar",props:{_tabsWillChange:{type:Function,default:()=>{}},_tabsDidChange:{type:Function,default:()=>{}}},data(){return{tabState:{activeTab:void 0,tabs:{}},tabVnodes:[]}},updated(){this.setupTabState(vue.inject("navManager"))},methods:{setupTabState(t){const e=this.$data.tabState,r=vue.getCurrentInstance();(this.$data.tabVnodes=getTabs(r.subTree.children||[])).forEach(a=>{e.tabs[a.props.tab]={originalHref:a.props.href,currentHref:a.props.href,ref:a},a.component.props._getTabState=()=>e}),this.checkActiveTab(t)},checkActiveTab(t){const e=t.getCurrentRouteInfo(),r=this.$data.tabVnodes,{tabs:o,activeTab:a}=this.$data.tabState,c=this.$data.tabState,d=Object.keys(o).find(x=>{const w=o[x].originalHref;return e.pathname.startsWith(w)});if(r.forEach(x=>{const w=o[x.props.tab];(!w||w.originalHref!==x.props.href)&&(o[x.props.tab]={originalHref:x.props.href,currentHref:x.props.href,ref:x})}),d&&a){const x=this.$data.tabState.tabs[a].currentHref;if(d!==a||x!==e.pathname){const w=e.search?`?${e.search}`:"";o[d]=Object.assign(Object.assign({},o[d]),{currentHref:e.pathname+w})}e.routerAction==="pop"&&d!==a&&(o[a]=Object.assign(Object.assign({},o[a]),{currentHref:o[a].originalHref}))}const p=r.find(x=>{var w;return isTabButton(x)&&((w=x.props)===null||w===void 0?void 0:w.tab)===d}),g=this.$refs.ionTabBar,b=d!==a;g&&(p?(b&&this.$props._tabsWillChange(d),t.handleSetCurrentTab(d),g.selectedTab=c.activeTab=d,b&&this.$props._tabsDidChange(d)):g.selectedTab=c.activeTab="")}},mounted(){const t=vue.inject("navManager");this.setupTabState(t),t.registerHistoryChangeListener(()=>this.checkActiveTab(t))},setup(t,{slots:e}){return defineCustomElement$5(),()=>vue.h("ion-tab-bar",{ref:"ionTabBar"},e.default&&e.default())}});const userComponents=vue.shallowRef([]),IonApp=vue.defineComponent((t,{attrs:e,slots:r})=>(defineCustomElement$4(),()=>vue.h("ion-app",Object.assign({},e),[r.default&&r.default(),...userComponents.value])));IonApp.name="IonApp";const addTeleportedUserComponent=t=>{userComponents.value=[...userComponents.value,t]},removeTeleportedUserComponent=t=>{userComponents.value=userComponents.value.filter(e=>e!==t)},VueDelegate=(t=addTeleportedUserComponent,e=removeTeleportedUserComponent)=>{const r=new WeakMap;return{attachViewToDom:(c,u,d={},p)=>{const g=document.createElement("div");p&&g.classList.add(...p),c.appendChild(g);const b=vue.h(vue.Teleport,{to:g},vue.h(u,Object.assign({},d)));return r.set(g,b),t(b),Promise.resolve(g)},removeViewFromDom:(c,u)=>{const d=r.get(u);return d&&e(d),Promise.resolve()}}},IonNav=vue.defineComponent(t=>{defineCustomElement$o();const e=vue.shallowRef([]),a=VueDelegate(c=>e.value=[...e.value,c],c=>e.value=e.value.filter(u=>u!==c));return()=>vue.h("ion-nav",Object.assign(Object.assign({},t),{delegate:a}),e.value)});IonNav.name="IonNav";IonNav.props={animated:{type:Boolean,default:!0},animation:{type:Function,default:void 0},root:{type:[Function,Object,String],default:void 0},rootParams:{type:Object,default:void 0},swipeGesture:{type:Boolean,default:void 0}};const IonIcon=vue.defineComponent({name:"IonIcon",props:{color:String,flipRtl:Boolean,icon:String,ios:String,lazy:String,md:String,mode:String,name:String,size:String,src:String},setup(t,{slots:e}){return defineCustomElement$3(),()=>{var r,o;const{icon:a,ios:c,md:u,mode:d}=t;let p;const g=getConfig(),b=d||(g==null?void 0:g.get("mode"));return c||u?b==="ios"?p=(r=c??u)!==null&&r!==void 0?r:a:p=(o=u??c)!==null&&o!==void 0?o:a:p=a,vue.h("ion-icon",Object.assign(Object.assign({},t),{icon:p}),e)}}}),EMPTY_PROP=Symbol(),DEFAULT_EMPTY_PROP={default:EMPTY_PROP},defineOverlayContainer=(t,e,r=[],o,a)=>{const d=a!==void 0?(()=>vue.defineComponent((p,{slots:g,emit:b})=>{const x=[{componentEv:`${t}-will-present`,frameworkEv:"willPresent"},{componentEv:`${t}-did-present`,frameworkEv:"didPresent"},{componentEv:`${t}-will-dismiss`,frameworkEv:"willDismiss"},{componentEv:`${t}-did-dismiss`,frameworkEv:"didDismiss"}];e!==void 0&&e();const w=vue.ref(),y=async()=>{p.isOpen&&await E(p)},I=async(O,A)=>{const L=O.props.isOpen,R=A.props.isOpen;L!==R&&(L?await E(p):await T())},k=async()=>{await T()},T=async()=>{w.value&&(await w.value,w.value=w.value.dismiss(),await w.value,w.value=void 0)},E=async O=>{var A;if(w.value&&await w.value,!((A=w.value)===null||A===void 0)&&A.present){await w.value.present();return}let L={};for(const $ in O){const P=O[$];O.hasOwnProperty($)&&P!==EMPTY_PROP&&(L[$]=P)}delete L.onWillPresent,delete L.onDidPresent,delete L.onWillDismiss,delete L.onDidDismiss;const R=g.default&&g.default()[0];w.value=a.create(Object.assign(Object.assign({},L),{component:R})),w.value=await w.value,x.forEach($=>{w.value.addEventListener($.componentEv,()=>{b($.frameworkEv)})}),await w.value.present()};return()=>vue.h("div",{style:{display:"none"},onVnodeMounted:y,onVnodeUpdated:I,onVnodeBeforeUnmount:k,isOpen:p.isOpen===!0})}))():(()=>vue.defineComponent((p,{slots:g})=>{e!==void 0&&e();const b=vue.ref(!1),x=vue.ref();return vue.onMounted(()=>{x.value.addEventListener("ion-mount",()=>b.value=!0),x.value.addEventListener("will-present",()=>b.value=!0),x.value.addEventListener("did-dismiss",()=>b.value=!1)}),()=>{let w={};for(const I in p){const k=p[I];p.hasOwnProperty(I)&&k!==EMPTY_PROP&&(w[I]=k)}const y=()=>o?vue.h("div",{className:"ion-delegate-host ion-page"},g):g;return vue.h(t,Object.assign(Object.assign({},w),{ref:x}),b.value||w.keepContentsMounted||w.keepContentsMounted===""?y():void 0)}}))();return d.name=t,d.props={isOpen:DEFAULT_EMPTY_PROP},r.forEach(p=>{d.props[p]=DEFAULT_EMPTY_PROP}),a!==void 0&&(d.emits=["willPresent","didPresent","willDismiss","didDismiss"]),d},IonModal=defineOverlayContainer("ion-modal",defineCustomElement,["animated","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","enterAnimation","handle","handleBehavior","htmlAttributes","initialBreakpoint","isOpen","keepContentsMounted","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","trigger"],!0),createController=(t,e,r=!1)=>{const o=r?VueDelegate():void 0,a=e.create.bind(e);return e.create=c=>(t(),a(Object.assign(Object.assign({},c),{delegate:o}))),e},toastController=createController(defineCustomElement$2,toastController$1),_hoisted_1$8={class:"section-header"},_hoisted_2$4={class:"overline"},_hoisted_3$4={class:"ion-text-end"},_hoisted_4$2={class:"overline"},_sfc_main$d=vue.defineComponent({__name:"DxpAppVersionInfo",setup(t){const e=useUserStore(),r=exports.appContext.config.globalProperties.$store,o=vue.computed(()=>r.getters["user/getPwaState"]),a=()=>{r.dispatch("user/updatePwaState",{registration:o.value.registration,updateExists:!1}),!(!o.value.registration||!o.value.registration.waiting)&&o.value.registration.waiting.postMessage({type:"SKIP_WAITING"})},c=process.env.VUE_APP_VERSION_INFO?JSON.parse(process.env.VUE_APP_VERSION_INFO):{},u=c.branch?c.branch+"-"+c.revision:c.tag,d=p=>DateTime.fromMillis(p).setZone(e.currentTimeZoneId).toLocaleString(DateTime.DATETIME_MED);return(p,g)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[vue.createElementVNode("div",null,[vue.createElementVNode("h1",null,vue.toDisplayString(vue.unref(exports.translate)("App")),1),vue.createElementVNode("p",_hoisted_2$4,vue.toDisplayString(vue.unref(exports.translate)("Version: ",{appVersion:vue.unref(u)})),1)]),vue.createElementVNode("div",_hoisted_3$4,[vue.createElementVNode("p",_hoisted_4$2,vue.toDisplayString(vue.unref(exports.translate)("Built: ",{builtDateTime:d(vue.unref(c).builtTime)})),1),o.value.updateExists?(vue.openBlock(),vue.createBlock(vue.unref(IonButton),{key:0,onClick:g[0]||(g[0]=b=>a()),fill:"outline",color:"dark",size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("Update")),1)]),_:1})):vue.createCommentVNode("",!0)])]))}}),arrowBackOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M244 400L100 256l144-144M120 256h292' class='ionicon-fill-none'/></svg>",caretDownOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M98 190.06l139.78 163.12a24 24 0 0036.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z'/></svg>",caretForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M190.06 414l163.12-139.78a24 24 0 000-36.44L190.06 98c-15.57-13.34-39.62-2.28-39.62 18.22v279.6c0 20.5 24.05 31.56 39.62 18.18z'/></svg>",chevronBackOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M328 112L184 256l144 144' class='ionicon-fill-none'/></svg>",chevronForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",close="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z'/></svg>",closeOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M368 368L144 144M368 144L144 368' class='ionicon-fill-none ionicon-stroke-width'/></svg>",documentOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 56v120a32 32 0 0032 32h120' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",helpOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M160 164s1.44-33 33.54-59.46C212.6 88.83 235.49 84.28 256 84c18.73-.23 35.47 2.94 45.48 7.82C318.59 100.2 352 120.6 352 164c0 45.67-29.18 66.37-62.35 89.18S248 298.36 248 324' stroke-linecap='round' stroke-miterlimit='10' stroke-width='40' class='ionicon-fill-none'/><circle cx='248' cy='399.99' r='32'/></svg>",openOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",playSkipBackOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M400 111v290c0 17.44-17 28.52-31 20.16L121.09 272.79c-12.12-7.25-12.12-26.33 0-33.58L369 90.84c14-8.36 31 2.72 31 20.16z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M112 80v352' class='ionicon-fill-none ionicon-stroke-width'/></svg>",playSkipForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M400 80v352' class='ionicon-fill-none ionicon-stroke-width'/></svg>",returnDownBackOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M112 352l-64-64 64-64' class='ionicon-fill-none ionicon-stroke-width'/><path d='M64 288h294c58.76 0 106-49.33 106-108v-20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",returnDownForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M400 352l64-64-64-64' class='ionicon-fill-none ionicon-stroke-width'/><path d='M448 288H154c-58.76 0-106-49.33-106-108v-20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",saveOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M380.93 57.37A32 32 0 00358.3 48H94.22A46.21 46.21 0 0048 94.22v323.56A46.21 46.21 0 0094.22 464h323.56A46.36 46.36 0 00464 417.78V153.7a32 32 0 00-9.37-22.63zM256 416a64 64 0 1164-64 63.92 63.92 0 01-64 64zm48-224H112a16 16 0 01-16-16v-64a16 16 0 0116-16h192a16 16 0 0116 16v64a16 16 0 01-16 16z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",searchOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>",warningOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M85.57 446.25h340.86a32 32 0 0028.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0028.17 47.17z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M250.26 195.39l5.74 122 5.73-121.95a5.74 5.74 0 00-5.79-6h0a5.74 5.74 0 00-5.68 5.95z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 397.25a20 20 0 1120-20 20 20 0 01-20 20z'/></svg>";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getAugmentedNamespace(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var a=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(r,o,a.get?a:{enumerable:!0,get:function(){return t[o]}})}),r}var lib$2={},types={},ContactMech={},Enumeration={},Geo={},Order={},Party={},Product$1={},Status={},Uom={},Stock={},User={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ContactMech",{enumerable:!0,get:function(){return e.ContactMech}}),Object.defineProperty(t,"Enumeration",{enumerable:!0,get:function(){return r.Enumeration}}),Object.defineProperty(t,"Geo",{enumerable:!0,get:function(){return o.Geo}}),t.OPERATOR=void 0,Object.defineProperty(t,"Order",{enumerable:!0,get:function(){return a.Order}}),Object.defineProperty(t,"OrderItem",{enumerable:!0,get:function(){return a.OrderItem}}),Object.defineProperty(t,"OrderPart",{enumerable:!0,get:function(){return a.OrderPart}}),Object.defineProperty(t,"Party",{enumerable:!0,get:function(){return c.Party}}),Object.defineProperty(t,"Product",{enumerable:!0,get:function(){return u.Product}}),Object.defineProperty(t,"Status",{enumerable:!0,get:function(){return d.Status}}),Object.defineProperty(t,"Stock",{enumerable:!0,get:function(){return g.Stock}}),Object.defineProperty(t,"Uom",{enumerable:!0,get:function(){return p.Uom}}),Object.defineProperty(t,"User",{enumerable:!0,get:function(){return b.User}}),t.events=void 0;var e=ContactMech,r=Enumeration,o=Geo,a=Order,c=Party,u=Product$1,d=Status,p=Uom,g=Stock,b=User,x={UNAUTHORIZED:"unauthorized",QUEUE_TASK:"queueTask",DISMISS_LOADER:"dismissLoader"};t.events=x;var w;t.OPERATOR=w,function(y){y.AND="AND",y.BETWEEN="between",y.CONTAINS="contains",y.EQUALS="equals",y.GREATER_THAN="greaterThan",y.GREATER_THAN_EQUAL_TO="greaterThanEqualTo",y.IN="in",y.LESS_THAN="lessThan",y.LESS_THAN_EQUAL_TO="lessThanEqualTo",y.LIKE="like",y.NOT="not",y.NOT_EMPTY="not-empty",y.NOT_EQUAL="notEqual",y.NOT_LIKE="notLike",y.OR="OR"}(w||(t.OPERATOR=w={}))})(types);var api={},axios$2={exports:{}},bind$4=function(e,r){return function(){for(var a=new Array(arguments.length),c=0;c<a.length;c++)a[c]=arguments[c];return e.apply(r,a)}},bind$3=bind$4,toString=Object.prototype.toString;function isArray$5(t){return toString.call(t)==="[object Array]"}function isUndefined(t){return typeof t>"u"}function isBuffer$1(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function isArrayBuffer(t){return toString.call(t)==="[object ArrayBuffer]"}function isFormData(t){return typeof FormData<"u"&&t instanceof FormData}function isArrayBufferView(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function isString$4(t){return typeof t=="string"}function isNumber$2(t){return typeof t=="number"}function isObject$5(t){return t!==null&&typeof t=="object"}function isPlainObject$1(t){if(toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function isDate$2(t){return toString.call(t)==="[object Date]"}function isFile(t){return toString.call(t)==="[object File]"}function isBlob(t){return toString.call(t)==="[object Blob]"}function isFunction$2(t){return toString.call(t)==="[object Function]"}function isStream(t){return isObject$5(t)&&isFunction$2(t.pipe)}function isURLSearchParams(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function trim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),isArray$5(t))for(var r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}function merge$1(){var t={};function e(a,c){isPlainObject$1(t[c])&&isPlainObject$1(a)?t[c]=merge$1(t[c],a):isPlainObject$1(a)?t[c]=merge$1({},a):isArray$5(a)?t[c]=a.slice():t[c]=a}for(var r=0,o=arguments.length;r<o;r++)forEach(arguments[r],e);return t}function extend(t,e,r){return forEach(e,function(a,c){r&&typeof a=="function"?t[c]=bind$3(a,r):t[c]=a}),t}function stripBOM(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var utils$e={isArray:isArray$5,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$4,isNumber:isNumber$2,isObject:isObject$5,isPlainObject:isPlainObject$1,isUndefined,isDate:isDate$2,isFile,isBlob,isFunction:isFunction$2,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge:merge$1,extend,trim,stripBOM},utils$d=utils$e;function encode$4(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function(e,r,o){if(!r)return e;var a;if(o)a=o(r);else if(utils$d.isURLSearchParams(r))a=r.toString();else{var c=[];utils$d.forEach(r,function(p,g){p===null||typeof p>"u"||(utils$d.isArray(p)?g=g+"[]":p=[p],utils$d.forEach(p,function(x){utils$d.isDate(x)?x=x.toISOString():utils$d.isObject(x)&&(x=JSON.stringify(x)),c.push(encode$4(g)+"="+encode$4(x))}))}),a=c.join("&")}if(a){var u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e},utils$c=utils$e;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(e,r,o){return this.handlers.push({fulfilled:e,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};InterceptorManager$1.prototype.forEach=function(e){utils$c.forEach(this.handlers,function(o){o!==null&&e(o)})};var InterceptorManager_1=InterceptorManager$1,utils$b=utils$e,normalizeHeaderName$1=function(e,r){utils$b.forEach(e,function(a,c){c!==r&&c.toUpperCase()===r.toUpperCase()&&(e[r]=a,delete e[c])})},enhanceError$1=function(e,r,o,a,c){return e.config=r,o&&(e.code=o),e.request=a,e.response=c,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var t=enhanceError$1;return createError=function(r,o,a,c,u){var d=new Error(r);return t(d,o,a,c,u)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var t=requireCreateError();return settle=function(r,o,a){var c=a.config.validateStatus;!a.status||!c||c(a.status)?r(a):o(t("Request failed with status code "+a.status,a.config,null,a.request,a))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var t=utils$e;return cookies=t.isStandardBrowserEnv()?function(){return{write:function(o,a,c,u,d,p){var g=[];g.push(o+"="+encodeURIComponent(a)),t.isNumber(c)&&g.push("expires="+new Date(c).toGMTString()),t.isString(u)&&g.push("path="+u),t.isString(d)&&g.push("domain="+d),p===!0&&g.push("secure"),document.cookie=g.join("; ")},read:function(o){var a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var t=requireIsAbsoluteURL(),e=requireCombineURLs();return buildFullPath=function(o,a){return o&&!t(a)?e(o,a):a},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var t=utils$e,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(o){var a={},c,u,d;return o&&t.forEach(o.split(`
|
|
197
|
+
*/var Style;(function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"})(Style||(Style={}));const StatusBar={getEngine(){const t=getCapacitor();if(t!=null&&t.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},supportsDefaultStatusBarStyle(){const t=getCapacitor();return!!(t!=null&&t.PluginHeaders)},setStyle(t){const e=this.getEngine();e&&e.setStyle(t)},getStyle:async function(){const t=this.getEngine();if(!t)return Style.Default;const{style:e}=await t.getInfo();return e}},getBackdropValueForSheet=(t,e)=>{if(e===1)return 0;const r=1/(1-e),o=-(e*r);return t*r+o},setCardStatusBarDark=()=>{!win||win.innerWidth>=768||!StatusBar.supportsDefaultStatusBarStyle()||StatusBar.setStyle({style:Style.Dark})},setCardStatusBarDefault=(t=Style.Default)=>{!win||win.innerWidth>=768||!StatusBar.supportsDefaultStatusBarStyle()||StatusBar.setStyle({style:t})},handleCanDismiss=async(t,e)=>{typeof t.canDismiss!="function"||!await t.canDismiss(void 0,GESTURE)||(e.isRunning()?e.onFinish(()=>{t.dismiss(void 0,"handler")},{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))},calculateSpringStep=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,SwipeToCloseDefaults={MIN_PRESENTING_SCALE:.93},createSwipeToCloseGesture=(t,e,r,o)=>{const c=t.offsetHeight;let u=!1,d=!1,p=null,g=null;const b=.2;let x=!0,w=0;const y=()=>p&&isIonContent(p)?p.scrollY:!0,O=createGesture({el:t,gestureName:"modalSwipeToClose",gesturePriority:OVERLAY_GESTURE_PRIORITY,direction:"y",threshold:10,canStart:A=>{const L=A.event.target;return L===null||!L.closest?!0:(p=findClosestIonContent(L),p?(isIonContent(p)?g=getElementRoot(p).querySelector(".inner-scroll"):g=p,!!!p.querySelector("ion-refresher")&&g.scrollTop===0):L.closest("ion-footer")===null)},onStart:A=>{const{deltaY:L}=A;x=y(),d=t.canDismiss!==void 0&&t.canDismiss!==!0,L>0&&p&&disableContentScrollY(p),e.progressStart(!0,u?1:0)},onMove:A=>{const{deltaY:L}=A;L>0&&p&&disableContentScrollY(p);const R=A.deltaY/c,$=R>=0&&d,P=$?b:.9999,z=$?calculateSpringStep(R/P):R,W=clamp(1e-4,z,P);e.progressStep(W),W>=.5&&w<.5?setCardStatusBarDefault(r):W<.5&&w>=.5&&setCardStatusBarDark(),w=W},onEnd:A=>{const L=A.velocityY,R=A.deltaY/c,$=R>=0&&d,P=$?b:.9999,z=$?calculateSpringStep(R/P):R,W=clamp(1e-4,z,P),D=(A.deltaY+L*1e3)/c,S=!$&&D>=.5;let F=S?-.001:.001;S?(e.easing("cubic-bezier(0.32, 0.72, 0, 1)"),F+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],W)[0]):(e.easing("cubic-bezier(1, 0, 0.68, 0.28)"),F+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],W)[0]);const U=computeDuration(S?R*c:(1-W)*c,L);u=S,O.enable(!1),p&&resetContentScrollY(p,x),e.onFinish(()=>{S||O.enable(!0)}).progressEnd(S?1:0,F,U),$&&W>P/4?handleCanDismiss(t,e):S&&o()}});return O},computeDuration=(t,e)=>clamp(400,t/Math.abs(e*1.1),500),createSheetEnterAnimation=t=>{const{currentBreakpoint:e,backdropBreakpoint:r}=t,o=r===void 0||r<e,a=o?`calc(var(--backdrop-opacity) * ${e})`:"0",c=createAnimation("backdropAnimation").fromTo("opacity",0,a);return o&&c.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:createAnimation("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-e*100}%)`}]),backdropAnimation:c}},createSheetLeaveAnimation=t=>{const{currentBreakpoint:e,backdropBreakpoint:r}=t,o=`calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(e,r)})`,a=[{offset:0,opacity:o},{offset:1,opacity:0}],c=[{offset:0,opacity:o},{offset:r,opacity:0},{offset:1,opacity:0}],u=createAnimation("backdropAnimation").keyframes(r!==0?c:a);return{wrapperAnimation:createAnimation("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-e*100}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:u}},createEnterAnimation$1=()=>{const t=createAnimation().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),e=createAnimation().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:t,wrapperAnimation:e}},iosEnterAnimation=(t,e)=>{const{presentingEl:r,currentBreakpoint:o}=e,a=getElementRoot(t),{wrapperAnimation:c,backdropAnimation:u}=o!==void 0?createSheetEnterAnimation(e):createEnterAnimation$1();u.addElement(a.querySelector("ion-backdrop")),c.addElement(a.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const d=createAnimation("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(c);if(r){const p=window.innerWidth<768,g=r.tagName==="ION-MODAL"&&r.presentingElement!==void 0,b=getElementRoot(r),x=createAnimation().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),w=document.body;if(p){const y=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",I=g?"-10px":y,k=SwipeToCloseDefaults.MIN_PRESENTING_SCALE,T=`translateY(${I}) scale(${k})`;x.afterStyles({transform:T}).beforeAddWrite(()=>w.style.setProperty("background-color","black")).addElement(r).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:T,borderRadius:"10px 10px 0 0"}]),d.addAnimation(x)}else if(d.addAnimation(u),!g)c.fromTo("opacity","0","1");else{const I=`translateY(-10px) scale(${g?SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1})`;x.afterStyles({transform:I}).addElement(b.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:I}]);const k=createAnimation().afterStyles({transform:I}).addElement(b.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:I}]);d.addAnimation([x,k])}}else d.addAnimation(u);return d},createLeaveAnimation$1=()=>{const t=createAnimation().fromTo("opacity","var(--backdrop-opacity)",0),e=createAnimation().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:t,wrapperAnimation:e}},iosLeaveAnimation=(t,e,r=500)=>{const{presentingEl:o,currentBreakpoint:a}=e,c=getElementRoot(t),{wrapperAnimation:u,backdropAnimation:d}=a!==void 0?createSheetLeaveAnimation(e):createLeaveAnimation$1();d.addElement(c.querySelector("ion-backdrop")),u.addElement(c.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const p=createAnimation("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(r).addAnimation(u);if(o){const g=window.innerWidth<768,b=o.tagName==="ION-MODAL"&&o.presentingElement!==void 0,x=getElementRoot(o),w=createAnimation().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(I=>{if(I!==1)return;o.style.setProperty("overflow",""),Array.from(y.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter(T=>T.presentingElement!==void 0).length<=1&&y.style.setProperty("background-color","")}),y=document.body;if(g){const I=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",k=b?"-10px":I,T=SwipeToCloseDefaults.MIN_PRESENTING_SCALE,E=`translateY(${k}) scale(${T})`;w.addElement(o).keyframes([{offset:0,filter:"contrast(0.85)",transform:E,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),p.addAnimation(w)}else if(p.addAnimation(d),!b)u.fromTo("opacity","1","0");else{const k=`translateY(-10px) scale(${b?SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1})`;w.addElement(x.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:k},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const T=createAnimation().addElement(x.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:k},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);p.addAnimation([w,T])}}else p.addAnimation(d);return p},createEnterAnimation=()=>{const t=createAnimation().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),e=createAnimation().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:t,wrapperAnimation:e}},mdEnterAnimation=(t,e)=>{const{currentBreakpoint:r}=e,o=getElementRoot(t),{wrapperAnimation:a,backdropAnimation:c}=r!==void 0?createSheetEnterAnimation(e):createEnterAnimation();return c.addElement(o.querySelector("ion-backdrop")),a.addElement(o.querySelector(".modal-wrapper")),createAnimation().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([c,a])},createLeaveAnimation=()=>{const t=createAnimation().fromTo("opacity","var(--backdrop-opacity)",0),e=createAnimation().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:t,wrapperAnimation:e}},mdLeaveAnimation=(t,e)=>{const{currentBreakpoint:r}=e,o=getElementRoot(t),{wrapperAnimation:a,backdropAnimation:c}=r!==void 0?createSheetLeaveAnimation(e):createLeaveAnimation();return c.addElement(o.querySelector("ion-backdrop")),a.addElement(o.querySelector(".modal-wrapper")),createAnimation().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([c,a])},createSheetGesture=(t,e,r,o,a,c,u=[],d,p,g)=>{const b=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}],x=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-a,opacity:0},{offset:1,opacity:0}],w={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:a!==0?x:b},y=t.querySelector("ion-content"),I=r.clientHeight;let k=o,T=0,E=!1;const O=.95,A=c.childAnimations.find(V=>V.id==="wrapperAnimation"),L=c.childAnimations.find(V=>V.id==="backdropAnimation"),R=u[u.length-1],$=u[0],P=()=>{t.style.setProperty("pointer-events","auto"),e.style.setProperty("pointer-events","auto"),t.classList.remove("ion-disable-focus-trap")},z=()=>{t.style.setProperty("pointer-events","none"),e.style.setProperty("pointer-events","none"),t.classList.add("ion-disable-focus-trap")};A&&L&&(A.keyframes([...w.WRAPPER_KEYFRAMES]),L.keyframes([...w.BACKDROP_KEYFRAMES]),c.progressStart(!0,1-k),k>a?P():z()),y&&k!==R&&(y.scrollY=!1);const W=V=>{const G=V.event.target.closest("ion-content");return k=d(),!(k===1&&G)},D=()=>{E=t.canDismiss!==void 0&&t.canDismiss!==!0&&$===0,y&&(y.scrollY=!1),raf(()=>{t.focus()}),c.progressStart(!0,1-k)},S=V=>{const G=1-k,Q=u.length>1?1-u[1]:void 0,fe=G+V.deltaY/I,te=Q!==void 0&&fe>=Q&&E,de=te?O:.9999,me=te&&Q!==void 0?Q+calculateSpringStep((fe-Q)/(de-Q)):fe;T=clamp(1e-4,me,de),c.progressStep(T)},F=V=>{const G=V.velocityY,Q=(V.deltaY+G*350)/I,fe=k-Q,te=u.reduce((de,me)=>Math.abs(me-fe)<Math.abs(de-fe)?me:de);U({breakpoint:te,breakpointOffset:T,canDismiss:E,animated:!0})},U=V=>{const{breakpoint:G,canDismiss:Q,breakpointOffset:fe,animated:te}=V,de=Q&&G===0,me=de?k:G,Me=me!==0;return k=0,A&&L&&(A.keyframes([{offset:0,transform:`translateY(${fe*100}%)`},{offset:1,transform:`translateY(${(1-me)*100}%)`}]),L.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(1-fe,a)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(me,a)})`}]),c.progressStep(0)),M.enable(!1),de?handleCanDismiss(t,c):Me||p(),new Promise(ce=>{c.onFinish(()=>{Me?A&&L?raf(()=>{A.keyframes([...w.WRAPPER_KEYFRAMES]),L.keyframes([...w.BACKDROP_KEYFRAMES]),c.progressStart(!0,1-me),k=me,g(k),y&&k===u[u.length-1]&&(y.scrollY=!0),k>a?P():z(),M.enable(!0),ce()}):(M.enable(!0),ce()):ce()},{oneTimeCallback:!0}).progressEnd(1,0,te?500:0)})},M=createGesture({el:r,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:W,onStart:D,onMove:S,onEnd:F});return{gesture:M,moveSheetToBreakpoint:U}},modalIosCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{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);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-card:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-sheet:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}',modalMdCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{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);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}',Modal=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=createEvent(this,"ionModalDidPresent",7),this.willPresent=createEvent(this,"ionModalWillPresent",7),this.willDismiss=createEvent(this,"ionModalWillDismiss",7),this.didDismiss=createEvent(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=createEvent(this,"ionBreakpointDidChange",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.ionMount=createEvent(this,"ionMount",7),this.lockController=createLockController(),this.triggerController=createTriggerController(),this.coreDelegate=CoreDelegate(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:e,handleBehavior:r}=this;r!=="cycle"||e!==void 0||this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:e}=this;e===void 0&&this.dismiss(void 0,BACKDROP)},this.onLifecycle=e=>{const r=this.usersElement,o=LIFECYCLE_MAP[e.type];if(r&&o){const a=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e.detail});r.dispatchEvent(a)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.canDismiss=!0}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)}breakpointsChanged(e){e!==void 0&&(this.sortedBreakpoints=e.sort((r,o)=>r-o))}connectedCallback(){const{el:e}=this;prepareOverlay(e),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:e,initialBreakpoint:r,el:o}=this,a=this.isSheetModal=e!==void 0&&r!==void 0;this.inheritedAttributes=inheritAttributes$2(o,["aria-label","role"]),a&&(this.currentBreakpoint=this.initialBreakpoint),e!==void 0&&r!==void 0&&!e.includes(r)&&printIonWarning("Your breakpoints array must include the initialBreakpoint value."),setOverlayId(o)}componentDidLoad(){this.isOpen===!0&&raf(()=>this.present()),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(e=!1){if(this.workingDelegate&&!e)return{delegate:this.workingDelegate,inline:this.inline};const r=this.el.parentNode,o=this.inline=r!==null&&!this.hasController,a=this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate;return{inline:o,delegate:a}}async checkCanDismiss(e,r){const{canDismiss:o}=this;return typeof o=="function"?o(e,r):o}async present(){const e=await this.lockController.lock();if(this.presented){e();return}const{presentingElement:r,el:o}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:a,delegate:c}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await attachComponent(c,o,this.component,["ion-page"],this.componentProps,a),hasLazyBuild(o)?await deepReady(this.usersElement):this.keepContentsMounted||await waitForMount(),writeTask(()=>this.el.classList.add("show-modal"));const u=r!==void 0;u&&getIonMode$2(this)==="ios"&&(this.statusBarStyle=await StatusBar.getStyle(),setCardStatusBarDark()),await present(this,"modalEnter",iosEnterAnimation,mdEnterAnimation,{presentingEl:r,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),typeof window<"u"&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),raf(()=>{this.gesture&&this.gesture.enable(!0)}))},window.addEventListener(KEYBOARD_DID_OPEN,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():u&&this.initSwipeToClose(),e()}initSwipeToClose(){var e;if(getIonMode$2(this)!=="ios")return;const{el:r}=this,o=this.leaveAnimation||config$1.get("modalLeave",iosLeaveAnimation),a=this.animation=o(r,{presentingEl:this.presentingElement});if(!findIonContent(r)){printIonContentErrorMsg(r);return}const u=(e=this.statusBarStyle)!==null&&e!==void 0?e:Style.Default;this.gesture=createSwipeToCloseGesture(r,a,u,()=>{this.gestureAnimationDismissing=!0,setCardStatusBarDefault(this.statusBarStyle),this.animation.onFinish(async()=>{await this.dismiss(void 0,GESTURE),this.gestureAnimationDismissing=!1})}),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:e,initialBreakpoint:r,backdropBreakpoint:o}=this;if(!e||r===void 0)return;const a=this.enterAnimation||config$1.get("modalEnter",iosEnterAnimation),c=this.animation=a(this.el,{presentingEl:this.presentingElement,currentBreakpoint:r,backdropBreakpoint:o});c.progressStart(!0,1);const{gesture:u,moveSheetToBreakpoint:d}=createSheetGesture(this.el,this.backdropEl,e,r,o,c,this.sortedBreakpoints,()=>{var p;return(p=this.currentBreakpoint)!==null&&p!==void 0?p:0},()=>this.sheetOnDismiss(),p=>{this.currentBreakpoint!==p&&(this.currentBreakpoint=p,this.ionBreakpointDidChange.emit({breakpoint:p}))});this.gesture=u,this.moveSheetToBreakpoint=d,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish(async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,GESTURE),this.gestureAnimationDismissing=!1})}async dismiss(e,r){var o;if(this.gestureAnimationDismissing&&r!==GESTURE)return!1;const a=await this.lockController.lock();if(r!=="handler"&&!await this.checkCanDismiss(e,r))return a(),!1;const{presentingElement:c}=this;c!==void 0&&getIonMode$2(this)==="ios"&&setCardStatusBarDefault(this.statusBarStyle),typeof window<"u"&&this.keyboardOpenCallback&&(window.removeEventListener(KEYBOARD_DID_OPEN,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const d=activeAnimations.get(this)||[],p=await dismiss(this,e,r,"modalLeave",iosLeaveAnimation,mdLeaveAnimation,{presentingEl:c,currentBreakpoint:(o=this.currentBreakpoint)!==null&&o!==void 0?o:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(p){const{delegate:g}=this.getDelegate();await detachComponent(g,this.usersElement),writeTask(()=>this.el.classList.remove("show-modal")),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy(),d.forEach(b=>b.destroy())}return this.currentBreakpoint=void 0,this.animation=void 0,a(),p}onDidDismiss(){return eventMethod(this.el,"ionModalDidDismiss")}onWillDismiss(){return eventMethod(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(e){if(!this.isSheetModal){printIonWarning("setCurrentBreakpoint is only supported on sheet modals.");return}if(!this.breakpoints.includes(e)){printIonWarning(`Attempted to set invalid breakpoint value ${e}. Please double check that the breakpoint value is part of your defined breakpoints.`);return}const{currentBreakpoint:r,moveSheetToBreakpoint:o,canDismiss:a,breakpoints:c,animated:u}=this;r!==e&&o&&(this.sheetTransition=o({breakpoint:e,breakpointOffset:1-r,canDismiss:a!==void 0&&a!==!0&&c[0]===0,animated:u}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:e,currentBreakpoint:r}=this;if(!e||r==null)return!1;const o=e.filter(d=>d!==0),c=(o.indexOf(r)+1)%o.length,u=o[c];return await this.setCurrentBreakpoint(u),!0}render(){const{handle:e,isSheetModal:r,presentingElement:o,htmlAttributes:a,handleBehavior:c,inheritedAttributes:u}=this,d=e!==!1&&r,p=getIonMode$2(this),g=o!==void 0&&p==="ios",b=c==="cycle";return h(Host,Object.assign({"no-router":!0,tabindex:"-1"},a,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[p]:!0,"modal-default":!g&&!r,"modal-card":g,"modal-sheet":r,"overlay-hidden":!0},getClassMap(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),h("ion-backdrop",{ref:x=>this.backdropEl=x,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),p==="ios"&&h("div",{class:"modal-shadow"}),h("div",Object.assign({role:"dialog"},u,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:x=>this.wrapperEl=x}),d&&h("button",{class:"modal-handle",tabIndex:b?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:b?this.onHandleClick:void 0,part:"handle"}),h("slot",null)))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:modalIosCss,md:modalMdCss}}},[33,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],canDismiss:[4,"can-dismiss"],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),LIFECYCLE_MAP={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};function defineCustomElement$1(){if(typeof customElements>"u")return;["ion-modal","ion-backdrop"].forEach(e=>{switch(e){case"ion-modal":customElements.get(e)||customElements.define(e,Modal);break;case"ion-backdrop":customElements.get(e)||defineCustomElement$R();break}})}const defineCustomElement=defineCustomElement$1,UPDATE_VALUE_EVENT="update:modelValue",MODEL_VALUE="modelValue",ROUTER_LINK_VALUE="routerLink",NAV_MANAGER="navManager",ROUTER_PROP_PREFIX="router",ARIA_PROP_PREFIX="aria",EMPTY_PROP$1=Symbol(),DEFAULT_EMPTY_PROP$1={default:EMPTY_PROP$1},getComponentClasses=t=>(t==null?void 0:t.split(" "))||[],getElementClasses=(t,e,r=[])=>{var o;return[...Array.from(((o=t.value)===null||o===void 0?void 0:o.classList)||[]),...r].filter((a,c,u)=>!e.has(a)&&u.indexOf(a)===c)},defineContainer=(t,e,r=[],o,a)=>{e!==void 0&&e();const c=vue.defineComponent((u,{attrs:d,slots:p,emit:g})=>{var b;let x=u[o];const w=vue.ref(),y=new Set(getComponentClasses(d.class)),I={created:A=>{(Array.isArray(a)?a:[a]).forEach(R=>{A.addEventListener(R.toLowerCase(),$=>{x=($==null?void 0:$.target)[o],g(UPDATE_VALUE_EVENT,x)})})}},k=vue.getCurrentInstance(),E=((b=k==null?void 0:k.appContext)===null||b===void 0?void 0:b.provides[NAV_MANAGER])?vue.inject(NAV_MANAGER):void 0,O=A=>{const{routerLink:L}=u;if(L!==EMPTY_PROP$1)if(E!==void 0){let R={event:A};for(const $ in u){const P=u[$];u.hasOwnProperty($)&&$.startsWith(ROUTER_PROP_PREFIX)&&P!==EMPTY_PROP$1&&(R[$]=P)}E.navigate(R)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{x=u[o],getComponentClasses(d.class).forEach(P=>{y.add(P)});const A=u.onClick,L=P=>{A!==void 0&&A(P),P.defaultPrevented||O(P)};let R={ref:w,class:getElementClasses(w,y),onClick:L};for(const P in u){const z=u[P];(u.hasOwnProperty(P)&&z!==EMPTY_PROP$1||P.startsWith(ARIA_PROP_PREFIX))&&(R[P]=z)}o&&(u[MODEL_VALUE]!==EMPTY_PROP$1?R=Object.assign(Object.assign({},R),{[o]:u[MODEL_VALUE]}):x!==EMPTY_PROP$1&&(R=Object.assign(Object.assign({},R),{[o]:x})));const $=vue.h(t,R,p.default&&p.default());return o===void 0?$:vue.withDirectives($,[[I]])}});return typeof c!="function"&&(c.name=t,c.props={[ROUTER_LINK_VALUE]:DEFAULT_EMPTY_PROP$1},r.forEach(u=>{c.props[u]=DEFAULT_EMPTY_PROP$1}),o&&(c.props[MODEL_VALUE]=DEFAULT_EMPTY_PROP$1,c.emits=[UPDATE_VALUE_EVENT])),c},IonAvatar=defineContainer("ion-avatar",defineCustomElement$S),IonButton=defineContainer("ion-button",defineCustomElement$O,["color","buttonType","disabled","expand","fill","routerDirection","routerAnimation","download","href","rel","shape","size","strong","target","type","form","ionFocus","ionBlur"]),IonButtons=defineContainer("ion-buttons",defineCustomElement$M,["collapse"]),IonCard=defineContainer("ion-card",defineCustomElement$L,["color","button","type","disabled","download","href","rel","routerDirection","routerAnimation","target"]),IonCardContent=defineContainer("ion-card-content",defineCustomElement$K),IonCardHeader=defineContainer("ion-card-header",defineCustomElement$J,["color","translucent"]),IonCardSubtitle=defineContainer("ion-card-subtitle",defineCustomElement$I,["color"]),IonCardTitle=defineContainer("ion-card-title",defineCustomElement$H,["color"]),IonChip=defineContainer("ion-chip",defineCustomElement$F,["color","outline","disabled"]),IonContent=defineContainer("ion-content",defineCustomElement$E,["color","fullscreen","forceOverscroll","scrollX","scrollY","scrollEvents","ionScrollStart","ionScroll","ionScrollEnd"]),IonFab=defineContainer("ion-fab",defineCustomElement$z,["horizontal","vertical","edge","activated"]),IonFabButton=defineContainer("ion-fab-button",defineCustomElement$y,["color","activated","disabled","download","href","rel","routerDirection","routerAnimation","target","show","translucent","type","size","closeIcon","ionFocus","ionBlur"]),IonFooter=defineContainer("ion-footer",defineCustomElement$x,["collapse","translucent"]),IonHeader=defineContainer("ion-header",defineCustomElement$w,["collapse","translucent"]),IonItem=defineContainer("ion-item",defineCustomElement$u,["color","button","detail","detailIcon","disabled","download","fill","shape","href","rel","lines","counter","routerAnimation","routerDirection","target","type","counterFormatter"]),IonLabel=defineContainer("ion-label",defineCustomElement$t,["color","position","ionColor","ionStyle"]),IonList=defineContainer("ion-list",defineCustomElement$r,["lines","inset"]),IonListHeader=defineContainer("ion-list-header",defineCustomElement$p,["color","lines"]),IonNote=defineContainer("ion-note",defineCustomElement$n,["color"]),IonRadio=defineContainer("ion-radio",defineCustomElement$l,["color","name","disabled","value","labelPlacement","legacy","justify","alignment","ionStyle","ionFocus","ionBlur"],"value","ion-change"),IonRadioGroup=defineContainer("ion-radio-group",defineCustomElement$j,["allowEmptySelection","compareWith","name","value","ionChange","ionValueChange"],"value","ion-change"),IonSearchbar=defineContainer("ion-searchbar",defineCustomElement$i,["color","animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","debounce","disabled","inputmode","enterkeyhint","name","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value","ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus","ionStyle"],"value","ion-input"),IonSegment=defineContainer("ion-segment",defineCustomElement$h,["color","disabled","scrollable","swipeGesture","value","selectOnFocus","ionChange","ionSelect","ionStyle"],"value","ion-change"),IonSegmentButton=defineContainer("ion-segment-button",defineCustomElement$g,["disabled","layout","type","value"],"value","ion-change"),IonSelect=defineContainer("ion-select",defineCustomElement$c,["cancelText","color","compareWith","disabled","fill","interface","interfaceOptions","justify","label","labelPlacement","legacy","multiple","name","okText","placeholder","selectedText","toggleIcon","expandedIcon","shape","value","ionChange","ionCancel","ionDismiss","ionFocus","ionBlur","ionStyle"],"value","ion-change"),IonSelectOption=defineContainer("ion-select-option",defineCustomElement$b,["disabled","value"]),IonSpinner=defineContainer("ion-spinner",defineCustomElement$a,["color","duration","name","paused"]),IonTitle=defineContainer("ion-title",defineCustomElement$9,["color","size","ionStyle"]),IonToolbar=defineContainer("ion-toolbar",defineCustomElement$8,["color"]);var LifecycleHooks;(function(t){t.WillEnter="onIonViewWillEnter",t.DidEnter="onIonViewDidEnter",t.WillLeave="onIonViewWillLeave",t.DidLeave="onIonViewDidLeave"})(LifecycleHooks||(LifecycleHooks={}));LIFECYCLE_WILL_ENTER+"",LifecycleHooks.WillEnter,LIFECYCLE_DID_ENTER+"",LifecycleHooks.DidEnter,LIFECYCLE_WILL_LEAVE+"",LifecycleHooks.WillLeave,LIFECYCLE_DID_LEAVE+"",LifecycleHooks.DidLeave;const getConfig=()=>{if(typeof window<"u"){const t=window.Ionic;if(t&&t.config)return t.config}return null},injectHook=(t,e,r)=>{if(r){const o=r,a=o.proxy[t]||(o.proxy[t]=[]);o.exposed&&(o.exposed[t]=a);const c=(...u)=>{if(!o.isUnmounted)return u?e(...u):e()};return a.push(c),c}else console.warn("[@ionic/vue]: Ionic Lifecycle Hooks can only be used during execution of setup().")},createHook=t=>(e,r=vue.getCurrentInstance())=>injectHook(t,e,r);createHook(LifecycleHooks.WillEnter);createHook(LifecycleHooks.DidEnter);createHook(LifecycleHooks.WillLeave);createHook(LifecycleHooks.DidLeave);const toKebabCase=t=>t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),getHelperFunctions=()=>({ael:(t,e,r,o)=>t.addEventListener(toKebabCase(e),r,o),rel:(t,e,r,o)=>t.removeEventListener(toKebabCase(e),r,o),ce:(t,e)=>new CustomEvent(toKebabCase(t),e)}),IonicVue={async install(t,e={}){typeof document<"u"&&document.documentElement.classList.add("ion-ce");const{ael:r,rel:o,ce:a}=getHelperFunctions();initialize(Object.assign(Object.assign({},e),{_ael:r,_rel:o,_ce:a}))}},IonBackButton=vue.defineComponent((t,{attrs:e,slots:r})=>{defineCustomElement$7();const o=vue.inject("navManager"),a=()=>{if(o===void 0)return;const c=e["default-href"]||e.defaultHref,u=e["router-animation"]||e.routerAnimation;o.handleNavigateBack(c,u)};return()=>vue.h("ion-back-button",Object.assign({onClick:a},e),r.default&&r.default())});IonBackButton.name="IonBackButton";const IonTabButton=vue.defineComponent({name:"IonTabButton",props:{_getTabState:{type:Function,default:()=>({})},disabled:Boolean,download:String,href:String,rel:String,layout:String,selected:Boolean,tab:String,target:String},setup(t,{slots:e}){defineCustomElement$6();const r=vue.inject("navManager"),o=a=>{a.cancelable&&a.preventDefault();const{tab:c,href:u,_getTabState:d}=t,p=d(),g=p.tabs[c]||{},b=g.originalHref||u,x=g.currentHref||u;p.activeTab===c?b!==x&&r.resetTab(c):r.changeTab(c,x)};return()=>vue.h("ion-tab-button",Object.assign({onClick:o},t),e.default&&e.default())}}),isTabButton=t=>{var e;return((e=t.type)===null||e===void 0?void 0:e.name)==="IonTabButton"},getTabs=t=>{let e=[];return t.forEach(r=>{if(isTabButton(r))e.push(r);else if(Array.isArray(r.children)&&r.children.length>1){const o=getTabs(r.children);e=[...e,...o]}}),e};vue.defineComponent({name:"IonTabBar",props:{_tabsWillChange:{type:Function,default:()=>{}},_tabsDidChange:{type:Function,default:()=>{}}},data(){return{tabState:{activeTab:void 0,tabs:{}},tabVnodes:[]}},updated(){this.setupTabState(vue.inject("navManager"))},methods:{setupTabState(t){const e=this.$data.tabState,r=vue.getCurrentInstance();(this.$data.tabVnodes=getTabs(r.subTree.children||[])).forEach(a=>{e.tabs[a.props.tab]={originalHref:a.props.href,currentHref:a.props.href,ref:a},a.component.props._getTabState=()=>e}),this.checkActiveTab(t)},checkActiveTab(t){const e=t.getCurrentRouteInfo(),r=this.$data.tabVnodes,{tabs:o,activeTab:a}=this.$data.tabState,c=this.$data.tabState,d=Object.keys(o).find(x=>{const w=o[x].originalHref;return e.pathname.startsWith(w)});if(r.forEach(x=>{const w=o[x.props.tab];(!w||w.originalHref!==x.props.href)&&(o[x.props.tab]={originalHref:x.props.href,currentHref:x.props.href,ref:x})}),d&&a){const x=this.$data.tabState.tabs[a].currentHref;if(d!==a||x!==e.pathname){const w=e.search?`?${e.search}`:"";o[d]=Object.assign(Object.assign({},o[d]),{currentHref:e.pathname+w})}e.routerAction==="pop"&&d!==a&&(o[a]=Object.assign(Object.assign({},o[a]),{currentHref:o[a].originalHref}))}const p=r.find(x=>{var w;return isTabButton(x)&&((w=x.props)===null||w===void 0?void 0:w.tab)===d}),g=this.$refs.ionTabBar,b=d!==a;g&&(p?(b&&this.$props._tabsWillChange(d),t.handleSetCurrentTab(d),g.selectedTab=c.activeTab=d,b&&this.$props._tabsDidChange(d)):g.selectedTab=c.activeTab="")}},mounted(){const t=vue.inject("navManager");this.setupTabState(t),t.registerHistoryChangeListener(()=>this.checkActiveTab(t))},setup(t,{slots:e}){return defineCustomElement$5(),()=>vue.h("ion-tab-bar",{ref:"ionTabBar"},e.default&&e.default())}});const userComponents=vue.shallowRef([]),IonApp=vue.defineComponent((t,{attrs:e,slots:r})=>(defineCustomElement$4(),()=>vue.h("ion-app",Object.assign({},e),[r.default&&r.default(),...userComponents.value])));IonApp.name="IonApp";const addTeleportedUserComponent=t=>{userComponents.value=[...userComponents.value,t]},removeTeleportedUserComponent=t=>{userComponents.value=userComponents.value.filter(e=>e!==t)},VueDelegate=(t=addTeleportedUserComponent,e=removeTeleportedUserComponent)=>{const r=new WeakMap;return{attachViewToDom:(c,u,d={},p)=>{const g=document.createElement("div");p&&g.classList.add(...p),c.appendChild(g);const b=vue.h(vue.Teleport,{to:g},vue.h(u,Object.assign({},d)));return r.set(g,b),t(b),Promise.resolve(g)},removeViewFromDom:(c,u)=>{const d=r.get(u);return d&&e(d),Promise.resolve()}}},IonNav=vue.defineComponent(t=>{defineCustomElement$o();const e=vue.shallowRef([]),a=VueDelegate(c=>e.value=[...e.value,c],c=>e.value=e.value.filter(u=>u!==c));return()=>vue.h("ion-nav",Object.assign(Object.assign({},t),{delegate:a}),e.value)});IonNav.name="IonNav";IonNav.props={animated:{type:Boolean,default:!0},animation:{type:Function,default:void 0},root:{type:[Function,Object,String],default:void 0},rootParams:{type:Object,default:void 0},swipeGesture:{type:Boolean,default:void 0}};const IonIcon=vue.defineComponent({name:"IonIcon",props:{color:String,flipRtl:Boolean,icon:String,ios:String,lazy:String,md:String,mode:String,name:String,size:String,src:String},setup(t,{slots:e}){return defineCustomElement$3(),()=>{var r,o;const{icon:a,ios:c,md:u,mode:d}=t;let p;const g=getConfig(),b=d||(g==null?void 0:g.get("mode"));return c||u?b==="ios"?p=(r=c??u)!==null&&r!==void 0?r:a:p=(o=u??c)!==null&&o!==void 0?o:a:p=a,vue.h("ion-icon",Object.assign(Object.assign({},t),{icon:p}),e)}}}),EMPTY_PROP=Symbol(),DEFAULT_EMPTY_PROP={default:EMPTY_PROP},defineOverlayContainer=(t,e,r=[],o,a)=>{const d=a!==void 0?(()=>vue.defineComponent((p,{slots:g,emit:b})=>{const x=[{componentEv:`${t}-will-present`,frameworkEv:"willPresent"},{componentEv:`${t}-did-present`,frameworkEv:"didPresent"},{componentEv:`${t}-will-dismiss`,frameworkEv:"willDismiss"},{componentEv:`${t}-did-dismiss`,frameworkEv:"didDismiss"}];e!==void 0&&e();const w=vue.ref(),y=async()=>{p.isOpen&&await E(p)},I=async(O,A)=>{const L=O.props.isOpen,R=A.props.isOpen;L!==R&&(L?await E(p):await T())},k=async()=>{await T()},T=async()=>{w.value&&(await w.value,w.value=w.value.dismiss(),await w.value,w.value=void 0)},E=async O=>{var A;if(w.value&&await w.value,!((A=w.value)===null||A===void 0)&&A.present){await w.value.present();return}let L={};for(const $ in O){const P=O[$];O.hasOwnProperty($)&&P!==EMPTY_PROP&&(L[$]=P)}delete L.onWillPresent,delete L.onDidPresent,delete L.onWillDismiss,delete L.onDidDismiss;const R=g.default&&g.default()[0];w.value=a.create(Object.assign(Object.assign({},L),{component:R})),w.value=await w.value,x.forEach($=>{w.value.addEventListener($.componentEv,()=>{b($.frameworkEv)})}),await w.value.present()};return()=>vue.h("div",{style:{display:"none"},onVnodeMounted:y,onVnodeUpdated:I,onVnodeBeforeUnmount:k,isOpen:p.isOpen===!0})}))():(()=>vue.defineComponent((p,{slots:g})=>{e!==void 0&&e();const b=vue.ref(!1),x=vue.ref();return vue.onMounted(()=>{x.value.addEventListener("ion-mount",()=>b.value=!0),x.value.addEventListener("will-present",()=>b.value=!0),x.value.addEventListener("did-dismiss",()=>b.value=!1)}),()=>{let w={};for(const I in p){const k=p[I];p.hasOwnProperty(I)&&k!==EMPTY_PROP&&(w[I]=k)}const y=()=>o?vue.h("div",{className:"ion-delegate-host ion-page"},g):g;return vue.h(t,Object.assign(Object.assign({},w),{ref:x}),b.value||w.keepContentsMounted||w.keepContentsMounted===""?y():void 0)}}))();return d.name=t,d.props={isOpen:DEFAULT_EMPTY_PROP},r.forEach(p=>{d.props[p]=DEFAULT_EMPTY_PROP}),a!==void 0&&(d.emits=["willPresent","didPresent","willDismiss","didDismiss"]),d},IonModal=defineOverlayContainer("ion-modal",defineCustomElement,["animated","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","enterAnimation","handle","handleBehavior","htmlAttributes","initialBreakpoint","isOpen","keepContentsMounted","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","trigger"],!0),createController=(t,e,r=!1)=>{const o=r?VueDelegate():void 0,a=e.create.bind(e);return e.create=c=>(t(),a(Object.assign(Object.assign({},c),{delegate:o}))),e},toastController=createController(defineCustomElement$2,toastController$1),_hoisted_1$8={class:"section-header"},_hoisted_2$4={class:"overline"},_hoisted_3$4={class:"ion-text-end"},_hoisted_4$2={class:"overline"},_sfc_main$e=vue.defineComponent({__name:"DxpAppVersionInfo",setup(t){const e=useUserStore(),r=exports.appContext.config.globalProperties.$store,o=vue.computed(()=>r.getters["user/getPwaState"]),a=()=>{r.dispatch("user/updatePwaState",{registration:o.value.registration,updateExists:!1}),!(!o.value.registration||!o.value.registration.waiting)&&o.value.registration.waiting.postMessage({type:"SKIP_WAITING"})},c=process.env.VUE_APP_VERSION_INFO?JSON.parse(process.env.VUE_APP_VERSION_INFO):{},u=c.branch?c.branch+"-"+c.revision:c.tag,d=p=>DateTime.fromMillis(p).setZone(e.currentTimeZoneId).toLocaleString(DateTime.DATETIME_MED);return(p,g)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[vue.createElementVNode("div",null,[vue.createElementVNode("h1",null,vue.toDisplayString(vue.unref(exports.translate)("App")),1),vue.createElementVNode("p",_hoisted_2$4,vue.toDisplayString(vue.unref(exports.translate)("Version: ",{appVersion:vue.unref(u)})),1)]),vue.createElementVNode("div",_hoisted_3$4,[vue.createElementVNode("p",_hoisted_4$2,vue.toDisplayString(vue.unref(exports.translate)("Built: ",{builtDateTime:d(vue.unref(c).builtTime)})),1),o.value.updateExists?(vue.openBlock(),vue.createBlock(vue.unref(IonButton),{key:0,onClick:g[0]||(g[0]=b=>a()),fill:"outline",color:"dark",size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(exports.translate)("Update")),1)]),_:1})):vue.createCommentVNode("",!0)])]))}}),arrowBackOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M244 400L100 256l144-144M120 256h292' class='ionicon-fill-none'/></svg>",caretDownOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M98 190.06l139.78 163.12a24 24 0 0036.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z'/></svg>",caretForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M190.06 414l163.12-139.78a24 24 0 000-36.44L190.06 98c-15.57-13.34-39.62-2.28-39.62 18.22v279.6c0 20.5 24.05 31.56 39.62 18.18z'/></svg>",chevronBackOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M328 112L184 256l144 144' class='ionicon-fill-none'/></svg>",chevronForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",close="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z'/></svg>",closeOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M368 368L144 144M368 144L144 368' class='ionicon-fill-none ionicon-stroke-width'/></svg>",documentOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 56v120a32 32 0 0032 32h120' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",helpOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M160 164s1.44-33 33.54-59.46C212.6 88.83 235.49 84.28 256 84c18.73-.23 35.47 2.94 45.48 7.82C318.59 100.2 352 120.6 352 164c0 45.67-29.18 66.37-62.35 89.18S248 298.36 248 324' stroke-linecap='round' stroke-miterlimit='10' stroke-width='40' class='ionicon-fill-none'/><circle cx='248' cy='399.99' r='32'/></svg>",openOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",playSkipBackOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M400 111v290c0 17.44-17 28.52-31 20.16L121.09 272.79c-12.12-7.25-12.12-26.33 0-33.58L369 90.84c14-8.36 31 2.72 31 20.16z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M112 80v352' class='ionicon-fill-none ionicon-stroke-width'/></svg>",playSkipForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M400 80v352' class='ionicon-fill-none ionicon-stroke-width'/></svg>",returnDownBackOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M112 352l-64-64 64-64' class='ionicon-fill-none ionicon-stroke-width'/><path d='M64 288h294c58.76 0 106-49.33 106-108v-20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",returnDownForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M400 352l64-64-64-64' class='ionicon-fill-none ionicon-stroke-width'/><path d='M448 288H154c-58.76 0-106-49.33-106-108v-20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",saveOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M380.93 57.37A32 32 0 00358.3 48H94.22A46.21 46.21 0 0048 94.22v323.56A46.21 46.21 0 0094.22 464h323.56A46.36 46.36 0 00464 417.78V153.7a32 32 0 00-9.37-22.63zM256 416a64 64 0 1164-64 63.92 63.92 0 01-64 64zm48-224H112a16 16 0 01-16-16v-64a16 16 0 0116-16h192a16 16 0 0116 16v64a16 16 0 01-16 16z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",searchOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>",warningOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M85.57 446.25h340.86a32 32 0 0028.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0028.17 47.17z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M250.26 195.39l5.74 122 5.73-121.95a5.74 5.74 0 00-5.79-6h0a5.74 5.74 0 00-5.68 5.95z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 397.25a20 20 0 1120-20 20 20 0 01-20 20z'/></svg>";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getAugmentedNamespace(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var a=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(r,o,a.get?a:{enumerable:!0,get:function(){return t[o]}})}),r}var lib$2={},types={},ContactMech={},Enumeration={},Geo={},Order={},Party={},Product$1={},Status={},Uom={},Stock={},User={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ContactMech",{enumerable:!0,get:function(){return e.ContactMech}}),Object.defineProperty(t,"Enumeration",{enumerable:!0,get:function(){return r.Enumeration}}),Object.defineProperty(t,"Geo",{enumerable:!0,get:function(){return o.Geo}}),t.OPERATOR=void 0,Object.defineProperty(t,"Order",{enumerable:!0,get:function(){return a.Order}}),Object.defineProperty(t,"OrderItem",{enumerable:!0,get:function(){return a.OrderItem}}),Object.defineProperty(t,"OrderPart",{enumerable:!0,get:function(){return a.OrderPart}}),Object.defineProperty(t,"Party",{enumerable:!0,get:function(){return c.Party}}),Object.defineProperty(t,"Product",{enumerable:!0,get:function(){return u.Product}}),Object.defineProperty(t,"Status",{enumerable:!0,get:function(){return d.Status}}),Object.defineProperty(t,"Stock",{enumerable:!0,get:function(){return g.Stock}}),Object.defineProperty(t,"Uom",{enumerable:!0,get:function(){return p.Uom}}),Object.defineProperty(t,"User",{enumerable:!0,get:function(){return b.User}}),t.events=void 0;var e=ContactMech,r=Enumeration,o=Geo,a=Order,c=Party,u=Product$1,d=Status,p=Uom,g=Stock,b=User,x={UNAUTHORIZED:"unauthorized",QUEUE_TASK:"queueTask",DISMISS_LOADER:"dismissLoader"};t.events=x;var w;t.OPERATOR=w,function(y){y.AND="AND",y.BETWEEN="between",y.CONTAINS="contains",y.EQUALS="equals",y.GREATER_THAN="greaterThan",y.GREATER_THAN_EQUAL_TO="greaterThanEqualTo",y.IN="in",y.LESS_THAN="lessThan",y.LESS_THAN_EQUAL_TO="lessThanEqualTo",y.LIKE="like",y.NOT="not",y.NOT_EMPTY="not-empty",y.NOT_EQUAL="notEqual",y.NOT_LIKE="notLike",y.OR="OR"}(w||(t.OPERATOR=w={}))})(types);var api={},axios$2={exports:{}},bind$4=function(e,r){return function(){for(var a=new Array(arguments.length),c=0;c<a.length;c++)a[c]=arguments[c];return e.apply(r,a)}},bind$3=bind$4,toString=Object.prototype.toString;function isArray$5(t){return toString.call(t)==="[object Array]"}function isUndefined(t){return typeof t>"u"}function isBuffer$1(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function isArrayBuffer(t){return toString.call(t)==="[object ArrayBuffer]"}function isFormData(t){return typeof FormData<"u"&&t instanceof FormData}function isArrayBufferView(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function isString$4(t){return typeof t=="string"}function isNumber$2(t){return typeof t=="number"}function isObject$5(t){return t!==null&&typeof t=="object"}function isPlainObject$1(t){if(toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function isDate$2(t){return toString.call(t)==="[object Date]"}function isFile(t){return toString.call(t)==="[object File]"}function isBlob(t){return toString.call(t)==="[object Blob]"}function isFunction$2(t){return toString.call(t)==="[object Function]"}function isStream(t){return isObject$5(t)&&isFunction$2(t.pipe)}function isURLSearchParams(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function trim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),isArray$5(t))for(var r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}function merge$1(){var t={};function e(a,c){isPlainObject$1(t[c])&&isPlainObject$1(a)?t[c]=merge$1(t[c],a):isPlainObject$1(a)?t[c]=merge$1({},a):isArray$5(a)?t[c]=a.slice():t[c]=a}for(var r=0,o=arguments.length;r<o;r++)forEach(arguments[r],e);return t}function extend(t,e,r){return forEach(e,function(a,c){r&&typeof a=="function"?t[c]=bind$3(a,r):t[c]=a}),t}function stripBOM(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var utils$e={isArray:isArray$5,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$4,isNumber:isNumber$2,isObject:isObject$5,isPlainObject:isPlainObject$1,isUndefined,isDate:isDate$2,isFile,isBlob,isFunction:isFunction$2,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge:merge$1,extend,trim,stripBOM},utils$d=utils$e;function encode$4(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function(e,r,o){if(!r)return e;var a;if(o)a=o(r);else if(utils$d.isURLSearchParams(r))a=r.toString();else{var c=[];utils$d.forEach(r,function(p,g){p===null||typeof p>"u"||(utils$d.isArray(p)?g=g+"[]":p=[p],utils$d.forEach(p,function(x){utils$d.isDate(x)?x=x.toISOString():utils$d.isObject(x)&&(x=JSON.stringify(x)),c.push(encode$4(g)+"="+encode$4(x))}))}),a=c.join("&")}if(a){var u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e},utils$c=utils$e;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(e,r,o){return this.handlers.push({fulfilled:e,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};InterceptorManager$1.prototype.forEach=function(e){utils$c.forEach(this.handlers,function(o){o!==null&&e(o)})};var InterceptorManager_1=InterceptorManager$1,utils$b=utils$e,normalizeHeaderName$1=function(e,r){utils$b.forEach(e,function(a,c){c!==r&&c.toUpperCase()===r.toUpperCase()&&(e[r]=a,delete e[c])})},enhanceError$1=function(e,r,o,a,c){return e.config=r,o&&(e.code=o),e.request=a,e.response=c,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var t=enhanceError$1;return createError=function(r,o,a,c,u){var d=new Error(r);return t(d,o,a,c,u)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var t=requireCreateError();return settle=function(r,o,a){var c=a.config.validateStatus;!a.status||!c||c(a.status)?r(a):o(t("Request failed with status code "+a.status,a.config,null,a.request,a))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var t=utils$e;return cookies=t.isStandardBrowserEnv()?function(){return{write:function(o,a,c,u,d,p){var g=[];g.push(o+"="+encodeURIComponent(a)),t.isNumber(c)&&g.push("expires="+new Date(c).toGMTString()),t.isString(u)&&g.push("path="+u),t.isString(d)&&g.push("domain="+d),p===!0&&g.push("secure"),document.cookie=g.join("; ")},read:function(o){var a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var t=requireIsAbsoluteURL(),e=requireCombineURLs();return buildFullPath=function(o,a){return o&&!t(a)?e(o,a):a},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var t=utils$e,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(o){var a={},c,u,d;return o&&t.forEach(o.split(`
|
|
198
198
|
`),function(g){if(d=g.indexOf(":"),c=t.trim(g.substr(0,d)).toLowerCase(),u=t.trim(g.substr(d+1)),c){if(a[c]&&e.indexOf(c)>=0)return;c==="set-cookie"?a[c]=(a[c]?a[c]:[]).concat([u]):a[c]=a[c]?a[c]+", "+u:u}}),a},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var t=utils$e;return isURLSameOrigin=t.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a"),a;function c(u){var d=u;return r&&(o.setAttribute("href",d),d=o.href),o.setAttribute("href",d),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return a=c(window.location.href),function(d){var p=t.isString(d)?c(d):d;return p.protocol===a.protocol&&p.host===a.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var t=utils$e,e=requireSettle(),r=requireCookies(),o=buildURL$1,a=requireBuildFullPath(),c=requireParseHeaders(),u=requireIsURLSameOrigin(),d=requireCreateError();return xhr=function(g){return new Promise(function(x,w){var y=g.data,I=g.headers,k=g.responseType;t.isFormData(y)&&delete I["Content-Type"];var T=new XMLHttpRequest;if(g.auth){var E=g.auth.username||"",O=g.auth.password?unescape(encodeURIComponent(g.auth.password)):"";I.Authorization="Basic "+btoa(E+":"+O)}var A=a(g.baseURL,g.url);T.open(g.method.toUpperCase(),o(A,g.params,g.paramsSerializer),!0),T.timeout=g.timeout;function L(){if(T){var $="getAllResponseHeaders"in T?c(T.getAllResponseHeaders()):null,P=!k||k==="text"||k==="json"?T.responseText:T.response,z={data:P,status:T.status,statusText:T.statusText,headers:$,config:g,request:T};e(x,w,z),T=null}}if("onloadend"in T?T.onloadend=L:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(L)},T.onabort=function(){T&&(w(d("Request aborted",g,"ECONNABORTED",T)),T=null)},T.onerror=function(){w(d("Network Error",g,null,T)),T=null},T.ontimeout=function(){var P="timeout of "+g.timeout+"ms exceeded";g.timeoutErrorMessage&&(P=g.timeoutErrorMessage),w(d(P,g,g.transitional&&g.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",T)),T=null},t.isStandardBrowserEnv()){var R=(g.withCredentials||u(A))&&g.xsrfCookieName?r.read(g.xsrfCookieName):void 0;R&&(I[g.xsrfHeaderName]=R)}"setRequestHeader"in T&&t.forEach(I,function(P,z){typeof y>"u"&&z.toLowerCase()==="content-type"?delete I[z]:T.setRequestHeader(z,P)}),t.isUndefined(g.withCredentials)||(T.withCredentials=!!g.withCredentials),k&&k!=="json"&&(T.responseType=g.responseType),typeof g.onDownloadProgress=="function"&&T.addEventListener("progress",g.onDownloadProgress),typeof g.onUploadProgress=="function"&&T.upload&&T.upload.addEventListener("progress",g.onUploadProgress),g.cancelToken&&g.cancelToken.promise.then(function(P){T&&(T.abort(),w(P),T=null)}),y||(y=null),T.send(y)})},xhr}var utils$a=utils$e,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(t,e){!utils$a.isUndefined(t)&&utils$a.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function getDefaultAdapter(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=requireXhr()),t}function stringifySafely(t,e,r){if(utils$a.isString(t))try{return(e||JSON.parse)(t),utils$a.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(t)}var defaults$5={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function(e,r){return normalizeHeaderName(r,"Accept"),normalizeHeaderName(r,"Content-Type"),utils$a.isFormData(e)||utils$a.isArrayBuffer(e)||utils$a.isBuffer(e)||utils$a.isStream(e)||utils$a.isFile(e)||utils$a.isBlob(e)?e:utils$a.isArrayBufferView(e)?e.buffer:utils$a.isURLSearchParams(e)?(setContentTypeIfUnset(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):utils$a.isObject(e)||r&&r["Content-Type"]==="application/json"?(setContentTypeIfUnset(r,"application/json"),stringifySafely(e)):e}],transformResponse:[function(e){var r=this.transitional,o=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,c=!o&&this.responseType==="json";if(c||a&&utils$a.isString(e)&&e.length)try{return JSON.parse(e)}catch(u){if(c)throw u.name==="SyntaxError"?enhanceError(u,this,"E_JSON_PARSE"):u}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};defaults$5.headers={common:{Accept:"application/json, text/plain, */*"}};utils$a.forEach(["delete","get","head"],function(e){defaults$5.headers[e]={}});utils$a.forEach(["post","put","patch"],function(e){defaults$5.headers[e]=utils$a.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$5,utils$9=utils$e,defaults$4=defaults_1,transformData$1=function(e,r,o){var a=this||defaults$4;return utils$9.forEach(o,function(u){e=u.call(a,e,r)}),e},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(e){return!!(e&&e.__CANCEL__)}),isCancel$1}var utils$8=utils$e,transformData=transformData$1,isCancel=requireIsCancel(),defaults$3=defaults_1;function throwIfCancellationRequested(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var dispatchRequest$1=function(e){throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=transformData.call(e,e.data,e.headers,e.transformRequest),e.headers=utils$8.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),utils$8.forEach(["delete","get","head","post","put","patch","common"],function(a){delete e.headers[a]});var r=e.adapter||defaults$3.adapter;return r(e).then(function(a){return throwIfCancellationRequested(e),a.data=transformData.call(e,a.data,a.headers,e.transformResponse),a},function(a){return isCancel(a)||(throwIfCancellationRequested(e),a&&a.response&&(a.response.data=transformData.call(e,a.response.data,a.response.headers,e.transformResponse))),Promise.reject(a)})},utils$7=utils$e,mergeConfig$2=function(e,r){r=r||{};var o={},a=["url","method","data"],c=["headers","auth","proxy","params"],u=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],d=["validateStatus"];function p(w,y){return utils$7.isPlainObject(w)&&utils$7.isPlainObject(y)?utils$7.merge(w,y):utils$7.isPlainObject(y)?utils$7.merge({},y):utils$7.isArray(y)?y.slice():y}function g(w){utils$7.isUndefined(r[w])?utils$7.isUndefined(e[w])||(o[w]=p(void 0,e[w])):o[w]=p(e[w],r[w])}utils$7.forEach(a,function(y){utils$7.isUndefined(r[y])||(o[y]=p(void 0,r[y]))}),utils$7.forEach(c,g),utils$7.forEach(u,function(y){utils$7.isUndefined(r[y])?utils$7.isUndefined(e[y])||(o[y]=p(void 0,e[y])):o[y]=p(void 0,r[y])}),utils$7.forEach(d,function(y){y in r?o[y]=p(e[y],r[y]):y in e&&(o[y]=p(void 0,e[y]))});var b=a.concat(c).concat(u).concat(d),x=Object.keys(e).concat(Object.keys(r)).filter(function(y){return b.indexOf(y)===-1});return utils$7.forEach(x,g),o};const name$q="axios",version$3="0.21.4",description="Promise based HTTP client for the browser and node.js",main="index.js",scripts={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository={type:"git",url:"https://github.com/axios/axios.git"},keywords=["xhr","http","ajax","promise","node"],author="Matt Zabriskie",license="MIT",bugs={url:"https://github.com/axios/axios/issues"},homepage="https://axios-http.com",devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0$2={name:name$q,version:version$3,description,main,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,browser,jsdelivr,unpkg,typings,dependencies,bundlesize};var pkg=require$$0$2,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){validators$1[t]=function(o){return typeof o===t||"a"+(e<1?"n ":" ")+t}});var deprecatedWarnings={},currentVerArr=pkg.version.split(".");function isOlderVersion(t,e){for(var r=e?e.split("."):currentVerArr,o=t.split("."),a=0;a<3;a++){if(r[a]>o[a])return!0;if(r[a]<o[a])return!1}return!1}validators$1.transitional=function(e,r,o){var a=r&&isOlderVersion(r);function c(u,d){return"[Axios v"+pkg.version+"] Transitional option '"+u+"'"+d+(o?". "+o:"")}return function(u,d,p){if(e===!1)throw new Error(c(d," has been removed in "+r));return a&&!deprecatedWarnings[d]&&(deprecatedWarnings[d]=!0,console.warn(c(d," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(u,d,p):!0}};function assertOptions(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var o=Object.keys(t),a=o.length;a-- >0;){var c=o[a],u=e[c];if(u){var d=t[c],p=d===void 0||u(d,c,t);if(p!==!0)throw new TypeError("option "+c+" must be "+p);continue}if(r!==!0)throw Error("Unknown option "+c)}}var validator$1={isOlderVersion,assertOptions,validators:validators$1},utils$6=utils$e,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1(t){this.defaults=t,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=mergeConfig$1(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean,"1.0.0"),forcedJSONParsing:validators.transitional(validators.boolean,"1.0.0"),clarifyTimeoutError:validators.transitional(validators.boolean,"1.0.0")},!1);var o=[],a=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(e)===!1||(a=a&&w.synchronous,o.unshift(w.fulfilled,w.rejected))});var c=[];this.interceptors.response.forEach(function(w){c.push(w.fulfilled,w.rejected)});var u;if(!a){var d=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(d,o),d=d.concat(c),u=Promise.resolve(e);d.length;)u=u.then(d.shift(),d.shift());return u}for(var p=e;o.length;){var g=o.shift(),b=o.shift();try{p=g(p)}catch(x){b(x);break}}try{u=dispatchRequest(p)}catch(x){return Promise.reject(x)}for(;c.length;)u=u.then(c.shift(),c.shift());return u};Axios$1.prototype.getUri=function(e){return e=mergeConfig$1(this.defaults,e),buildURL(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};utils$6.forEach(["delete","get","head","options"],function(e){Axios$1.prototype[e]=function(r,o){return this.request(mergeConfig$1(o||{},{method:e,url:r,data:(o||{}).data}))}});utils$6.forEach(["post","put","patch"],function(e){Axios$1.prototype[e]=function(r,o,a){return this.request(mergeConfig$1(a||{},{method:e,url:r,data:o}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,Cancel_1=t,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var t=requireCancel();function e(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var o;this.promise=new Promise(function(u){o=u});var a=this;r(function(u){a.reason||(a.reason=new t(u),o(a.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.source=function(){var o,a=new e(function(u){o=u});return{token:a,cancel:o}},CancelToken_1=e,CancelToken_1}var spread,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread=function(e){return function(o){return e.apply(null,o)}}),spread}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(e){return typeof e=="object"&&e.isAxiosError===!0}),isAxiosError}var utils$5=utils$e,bind$2=bind$4,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults$2=defaults_1;function createInstance(t){var e=new Axios(t),r=bind$2(Axios.prototype.request,e);return utils$5.extend(r,Axios.prototype,e),utils$5.extend(r,e),r}var axios$1=createInstance(defaults$2);axios$1.Axios=Axios;axios$1.create=function(e){return createInstance(mergeConfig(axios$1.defaults,e))};axios$1.Cancel=requireCancel();axios$1.CancelToken=requireCancelToken();axios$1.isCancel=requireIsCancel();axios$1.all=function(e){return Promise.all(e)};axios$1.spread=requireSpread();axios$1.isAxiosError=requireIsAxiosError();axios$2.exports=axios$1;axios$2.exports.default=axios$1;var axiosExports=axios$2.exports,axios=axiosExports,ACCEPTED=202,BAD_GATEWAY=502,BAD_REQUEST=400,CONFLICT=409,CONTINUE=100,CREATED=201,EXPECTATION_FAILED=417,FAILED_DEPENDENCY=424,FORBIDDEN=403,GATEWAY_TIMEOUT=504,GONE=410,HTTP_VERSION_NOT_SUPPORTED=505,IM_A_TEAPOT=418,INSUFFICIENT_SPACE_ON_RESOURCE=419,INSUFFICIENT_STORAGE=507,INTERNAL_SERVER_ERROR=500,LENGTH_REQUIRED=411,LOCKED=423,METHOD_FAILURE=420,METHOD_NOT_ALLOWED=405,MOVED_PERMANENTLY=301,MOVED_TEMPORARILY=302,MULTI_STATUS=207,MULTIPLE_CHOICES=300,NETWORK_AUTHENTICATION_REQUIRED=511,NO_CONTENT=204,NON_AUTHORITATIVE_INFORMATION=203,NOT_ACCEPTABLE=406,NOT_FOUND=404,NOT_IMPLEMENTED=501,NOT_MODIFIED=304,OK=200,PARTIAL_CONTENT=206,PAYMENT_REQUIRED=402,PERMANENT_REDIRECT=308,PRECONDITION_FAILED=412,PRECONDITION_REQUIRED=428,PROCESSING=102,PROXY_AUTHENTICATION_REQUIRED=407,REQUEST_HEADER_FIELDS_TOO_LARGE=431,REQUEST_TIMEOUT=408,REQUEST_TOO_LONG=413,REQUEST_URI_TOO_LONG=414,REQUESTED_RANGE_NOT_SATISFIABLE=416,RESET_CONTENT=205,SEE_OTHER=303,SERVICE_UNAVAILABLE=503,SWITCHING_PROTOCOLS=101,TEMPORARY_REDIRECT=307,TOO_MANY_REQUESTS=429,UNAUTHORIZED=401,UNPROCESSABLE_ENTITY=422,UNSUPPORTED_MEDIA_TYPE=415,USE_PROXY=305;const legacyCodes={ACCEPTED,BAD_GATEWAY,BAD_REQUEST,CONFLICT,CONTINUE,CREATED,EXPECTATION_FAILED,FORBIDDEN,GATEWAY_TIMEOUT,GONE,HTTP_VERSION_NOT_SUPPORTED,IM_A_TEAPOT,INSUFFICIENT_SPACE_ON_RESOURCE,INSUFFICIENT_STORAGE,INTERNAL_SERVER_ERROR,LENGTH_REQUIRED,LOCKED,METHOD_FAILURE,METHOD_NOT_ALLOWED,MOVED_PERMANENTLY,MOVED_TEMPORARILY,MULTI_STATUS,MULTIPLE_CHOICES,NETWORK_AUTHENTICATION_REQUIRED,NO_CONTENT,NON_AUTHORITATIVE_INFORMATION,NOT_ACCEPTABLE,NOT_FOUND,NOT_IMPLEMENTED,NOT_MODIFIED,OK,PARTIAL_CONTENT,PAYMENT_REQUIRED,PERMANENT_REDIRECT,PRECONDITION_FAILED,PRECONDITION_REQUIRED,PROCESSING,PROXY_AUTHENTICATION_REQUIRED,REQUEST_HEADER_FIELDS_TOO_LARGE,REQUEST_TIMEOUT,REQUEST_TOO_LONG,REQUEST_URI_TOO_LONG,REQUESTED_RANGE_NOT_SATISFIABLE,RESET_CONTENT,SEE_OTHER,SERVICE_UNAVAILABLE,SWITCHING_PROTOCOLS,TEMPORARY_REDIRECT,TOO_MANY_REQUESTS,UNAUTHORIZED,UNPROCESSABLE_ENTITY,UNSUPPORTED_MEDIA_TYPE,USE_PROXY};var statusCodeToReasonPhrase={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"},reasonPhraseToStatusCode={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421};function getReasonPhrase(t){var e=statusCodeToReasonPhrase[t.toString()];if(!e)throw new Error("Status code does not exist: "+t);return e}function getStatusCode(t){var e=reasonPhraseToStatusCode[t];if(!e)throw new Error("Reason phrase does not exist: "+t);return e}var getStatusText=getReasonPhrase,StatusCodes;(function(t){t[t.ACCEPTED=202]="ACCEPTED",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.CONFLICT=409]="CONFLICT",t[t.CONTINUE=100]="CONTINUE",t[t.CREATED=201]="CREATED",t[t.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",t[t.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.GONE=410]="GONE",t[t.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",t[t.IM_A_TEAPOT=418]="IM_A_TEAPOT",t[t.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",t[t.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t[t.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",t[t.LOCKED=423]="LOCKED",t[t.METHOD_FAILURE=420]="METHOD_FAILURE",t[t.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",t[t.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",t[t.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",t[t.MULTI_STATUS=207]="MULTI_STATUS",t[t.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",t[t.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",t[t.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",t[t.NOT_MODIFIED=304]="NOT_MODIFIED",t[t.OK=200]="OK",t[t.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",t[t.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",t[t.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",t[t.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",t[t.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",t[t.PROCESSING=102]="PROCESSING",t[t.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",t[t.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",t[t.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",t[t.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",t[t.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",t[t.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",t[t.RESET_CONTENT=205]="RESET_CONTENT",t[t.SEE_OTHER=303]="SEE_OTHER",t[t.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",t[t.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",t[t.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",t[t.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",t[t.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",t[t.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",t[t.USE_PROXY=305]="USE_PROXY",t[t.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST"})(StatusCodes||(StatusCodes={}));var ReasonPhrases;(function(t){t.ACCEPTED="Accepted",t.BAD_GATEWAY="Bad Gateway",t.BAD_REQUEST="Bad Request",t.CONFLICT="Conflict",t.CONTINUE="Continue",t.CREATED="Created",t.EXPECTATION_FAILED="Expectation Failed",t.FAILED_DEPENDENCY="Failed Dependency",t.FORBIDDEN="Forbidden",t.GATEWAY_TIMEOUT="Gateway Timeout",t.GONE="Gone",t.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",t.IM_A_TEAPOT="I'm a teapot",t.INSUFFICIENT_SPACE_ON_RESOURCE="Insufficient Space on Resource",t.INSUFFICIENT_STORAGE="Insufficient Storage",t.INTERNAL_SERVER_ERROR="Internal Server Error",t.LENGTH_REQUIRED="Length Required",t.LOCKED="Locked",t.METHOD_FAILURE="Method Failure",t.METHOD_NOT_ALLOWED="Method Not Allowed",t.MOVED_PERMANENTLY="Moved Permanently",t.MOVED_TEMPORARILY="Moved Temporarily",t.MULTI_STATUS="Multi-Status",t.MULTIPLE_CHOICES="Multiple Choices",t.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",t.NO_CONTENT="No Content",t.NON_AUTHORITATIVE_INFORMATION="Non Authoritative Information",t.NOT_ACCEPTABLE="Not Acceptable",t.NOT_FOUND="Not Found",t.NOT_IMPLEMENTED="Not Implemented",t.NOT_MODIFIED="Not Modified",t.OK="OK",t.PARTIAL_CONTENT="Partial Content",t.PAYMENT_REQUIRED="Payment Required",t.PERMANENT_REDIRECT="Permanent Redirect",t.PRECONDITION_FAILED="Precondition Failed",t.PRECONDITION_REQUIRED="Precondition Required",t.PROCESSING="Processing",t.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",t.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",t.REQUEST_TIMEOUT="Request Timeout",t.REQUEST_TOO_LONG="Request Entity Too Large",t.REQUEST_URI_TOO_LONG="Request-URI Too Long",t.REQUESTED_RANGE_NOT_SATISFIABLE="Requested Range Not Satisfiable",t.RESET_CONTENT="Reset Content",t.SEE_OTHER="See Other",t.SERVICE_UNAVAILABLE="Service Unavailable",t.SWITCHING_PROTOCOLS="Switching Protocols",t.TEMPORARY_REDIRECT="Temporary Redirect",t.TOO_MANY_REQUESTS="Too Many Requests",t.UNAUTHORIZED="Unauthorized",t.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",t.UNPROCESSABLE_ENTITY="Unprocessable Entity",t.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",t.USE_PROXY="Use Proxy",t.MISDIRECTED_REQUEST="Misdirected Request"})(ReasonPhrases||(ReasonPhrases={}));var __assign=globalThis&&globalThis.__assign||function(){return __assign=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},__assign.apply(this,arguments)};const index=__assign(__assign({},legacyCodes),{getStatusCode,getStatusText}),es=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED,BAD_GATEWAY,BAD_REQUEST,CONFLICT,CONTINUE,CREATED,EXPECTATION_FAILED,FAILED_DEPENDENCY,FORBIDDEN,GATEWAY_TIMEOUT,GONE,HTTP_VERSION_NOT_SUPPORTED,IM_A_TEAPOT,INSUFFICIENT_SPACE_ON_RESOURCE,INSUFFICIENT_STORAGE,INTERNAL_SERVER_ERROR,LENGTH_REQUIRED,LOCKED,METHOD_FAILURE,METHOD_NOT_ALLOWED,MOVED_PERMANENTLY,MOVED_TEMPORARILY,MULTIPLE_CHOICES,MULTI_STATUS,NETWORK_AUTHENTICATION_REQUIRED,NON_AUTHORITATIVE_INFORMATION,NOT_ACCEPTABLE,NOT_FOUND,NOT_IMPLEMENTED,NOT_MODIFIED,NO_CONTENT,OK,PARTIAL_CONTENT,PAYMENT_REQUIRED,PERMANENT_REDIRECT,PRECONDITION_FAILED,PRECONDITION_REQUIRED,PROCESSING,PROXY_AUTHENTICATION_REQUIRED,REQUESTED_RANGE_NOT_SATISFIABLE,REQUEST_HEADER_FIELDS_TOO_LARGE,REQUEST_TIMEOUT,REQUEST_TOO_LONG,REQUEST_URI_TOO_LONG,RESET_CONTENT,get ReasonPhrases(){return ReasonPhrases},SEE_OTHER,SERVICE_UNAVAILABLE,SWITCHING_PROTOCOLS,get StatusCodes(){return StatusCodes},TEMPORARY_REDIRECT,TOO_MANY_REQUESTS,UNAUTHORIZED,UNPROCESSABLE_ENTITY,UNSUPPORTED_MEDIA_TYPE,USE_PROXY,default:index,getReasonPhrase,getStatusCode,getStatusText},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(es);var cache$1={exports:{}};(function(t,e){(function(o,a){t.exports=a(axios)})(window,function(r){return function(o){var a={};function c(u){if(a[u])return a[u].exports;var d=a[u]={i:u,l:!1,exports:{}};return o[u].call(d.exports,d,d.exports,c),d.l=!0,d.exports}return c.m=o,c.c=a,c.d=function(u,d,p){c.o(u,d)||Object.defineProperty(u,d,{enumerable:!0,get:p})},c.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},c.t=function(u,d){if(d&1&&(u=c(u)),d&8||d&4&&typeof u=="object"&&u&&u.__esModule)return u;var p=Object.create(null);if(c.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:u}),d&2&&typeof u!="string")for(var g in u)c.d(p,g,(function(b){return u[b]}).bind(null,g));return p},c.n=function(u){var d=u&&u.__esModule?function(){return u.default}:function(){return u};return c.d(d,"a",d),d},c.o=function(u,d){return Object.prototype.hasOwnProperty.call(u,d)},c.p="",c(c.s="./src/index.js")}({"./node_modules/cache-control-esm/index.js":function(o,a,c){c.r(a),c.d(a,"CacheControl",function(){return A}),c.d(a,"parse",function(){return L}),c.d(a,"format",function(){return R}),c("./node_modules/core-js/modules/es6.array.from.js"),c("./node_modules/core-js/modules/es6.function.name.js"),c("./node_modules/core-js/modules/es6.object.to-string.js"),c("./node_modules/core-js/modules/web.dom.iterable.js"),c("./node_modules/core-js/modules/es7.symbol.async-iterator.js"),c("./node_modules/core-js/modules/es6.symbol.js"),c("./node_modules/core-js/modules/es6.regexp.split.js"),c("./node_modules/core-js/modules/es6.number.is-finite.js");function u($,P){return x($)||b($,P)||p($,P)||d()}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
199
199
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p($,P){if($){if(typeof $=="string")return g($,P);var z=Object.prototype.toString.call($).slice(8,-1);if(z==="Object"&&$.constructor&&(z=$.constructor.name),z==="Map"||z==="Set")return Array.from($);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return g($,P)}}function g($,P){(P==null||P>$.length)&&(P=$.length);for(var z=0,W=new Array(P);z<P;z++)W[z]=$[z];return W}function b($,P){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object($)))){var z=[],W=!0,D=!1,S=void 0;try{for(var F=$[Symbol.iterator](),U;!(W=(U=F.next()).done)&&(z.push(U.value),!(P&&z.length===P));W=!0);}catch(M){D=!0,S=M}finally{try{!W&&F.return!=null&&F.return()}finally{if(D)throw S}}return z}}function x($){if(Array.isArray($))return $}function w($,P){if(!($ instanceof P))throw new TypeError("Cannot call a class as a function")}function y($,P){for(var z=0;z<P.length;z++){var W=P[z];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty($,W.key,W)}}function I($,P,z){return P&&y($.prototype,P),z&&y($,z),$}var k=/([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?/g,T={maxAge:"max-age",sharedMaxAge:"s-maxage",maxStale:"max-stale",minFresh:"min-fresh",immutable:"immutable",mustRevalidate:"must-revalidate",noCache:"no-cache",noStore:"no-store",noTransform:"no-transform",onlyIfCached:"only-if-cached",private:"private",proxyRevalidate:"proxy-revalidate",public:"public"};function E($){return $===null}function O($){if(!$)return null;var P=parseInt($,10);return!Number.isFinite(P)||P<0?null:P}var A=function(){function $(){w(this,$),this.maxAge=null,this.sharedMaxAge=null,this.maxStale=null,this.maxStaleDuration=null,this.minFresh=null,this.immutable=null,this.mustRevalidate=null,this.noCache=null,this.noStore=null,this.noTransform=null,this.onlyIfCached=null,this.private=null,this.proxyRevalidate=null,this.public=null}return I($,[{key:"parse",value:function(z){if(!z||z.length===0)return this;var W={},D=z.match(k)||[];return Array.prototype.forEach.call(D,function(S){var F=S.split("=",2),U=u(F,1),M=U[0],V=null;F.length>1&&(V=F[1].trim()),W[M.toLowerCase()]=V}),this.maxAge=O(W[T.maxAge]),this.sharedMaxAge=O(W[T.sharedMaxAge]),this.maxStale=E(W[T.maxStale]),this.maxStaleDuration=O(W[T.maxStale]),this.maxStaleDuration&&(this.maxStale=!0),this.minFresh=O(W[T.minFresh]),this.immutable=E(W[T.immutable]),this.mustRevalidate=E(W[T.mustRevalidate]),this.noCache=E(W[T.noCache]),this.noStore=E(W[T.noStore]),this.noTransform=E(W[T.noTransform]),this.onlyIfCached=E(W[T.onlyIfCached]),this.private=E(W[T.private]),this.proxyRevalidate=E(W[T.proxyRevalidate]),this.public=E(W[T.public]),this}},{key:"format",value:function(){var z=[];return this.maxAge&&z.push("".concat(T.maxAge,"=").concat(this.maxAge)),this.sharedMaxAge&&z.push("".concat(T.sharedMaxAge,"=").concat(this.sharedMaxAge)),this.maxStale&&(this.maxStaleDuration?z.push("".concat(T.maxStale,"=").concat(this.maxStaleDuration)):z.push(T.maxStale)),this.minFresh&&z.push("".concat(T.minFresh,"=").concat(this.minFresh)),this.immutable&&z.push(T.immutable),this.mustRevalidate&&z.push(T.mustRevalidate),this.noCache&&z.push(T.noCache),this.noStore&&z.push(T.noStore),this.noTransform&&z.push(T.noTransform),this.onlyIfCached&&z.push(T.onlyIfCached),this.private&&z.push(T.private),this.proxyRevalidate&&z.push(T.proxyRevalidate),this.public&&z.push(T.public),z.join(", ")}}]),$}();function L($){var P=new A;return P.parse($)}function R($){return $ instanceof A?$.format():A.prototype.format.call($)}a.default={CacheControl:A,parse:L,format:R}},"./node_modules/charenc/charenc.js":function(o,a){var c={utf8:{stringToBytes:function(u){return c.bin.stringToBytes(unescape(encodeURIComponent(u)))},bytesToString:function(u){return decodeURIComponent(escape(c.bin.bytesToString(u)))}},bin:{stringToBytes:function(u){for(var d=[],p=0;p<u.length;p++)d.push(u.charCodeAt(p)&255);return d},bytesToString:function(u){for(var d=[],p=0;p<u.length;p++)d.push(String.fromCharCode(u[p]));return d.join("")}}};o.exports=c},"./node_modules/core-js/modules/_a-function.js":function(o,a){o.exports=function(c){if(typeof c!="function")throw TypeError(c+" is not a function!");return c}},"./node_modules/core-js/modules/_add-to-unscopables.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_wks.js")("unscopables"),d=Array.prototype;d[u]==null&&c("./node_modules/core-js/modules/_hide.js")(d,u,{}),o.exports=function(p){d[u][p]=!0}},"./node_modules/core-js/modules/_advance-string-index.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_string-at.js")(!0);o.exports=function(d,p,g){return p+(g?u(d,p).length:1)}},"./node_modules/core-js/modules/_an-object.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_is-object.js");o.exports=function(d){if(!u(d))throw TypeError(d+" is not an object!");return d}},"./node_modules/core-js/modules/_array-includes.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_to-iobject.js"),d=c("./node_modules/core-js/modules/_to-length.js"),p=c("./node_modules/core-js/modules/_to-absolute-index.js");o.exports=function(g){return function(b,x,w){var y=u(b),I=d(y.length),k=p(w,I),T;if(g&&x!=x){for(;I>k;)if(T=y[k++],T!=T)return!0}else for(;I>k;k++)if((g||k in y)&&y[k]===x)return g||k||0;return!g&&-1}}},"./node_modules/core-js/modules/_classof.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_cof.js"),d=c("./node_modules/core-js/modules/_wks.js")("toStringTag"),p=u(function(){return arguments}())=="Arguments",g=function(b,x){try{return b[x]}catch{}};o.exports=function(b){var x,w,y;return b===void 0?"Undefined":b===null?"Null":typeof(w=g(x=Object(b),d))=="string"?w:p?u(x):(y=u(x))=="Object"&&typeof x.callee=="function"?"Arguments":y}},"./node_modules/core-js/modules/_cof.js":function(o,a){var c={}.toString;o.exports=function(u){return c.call(u).slice(8,-1)}},"./node_modules/core-js/modules/_core.js":function(o,a){var c=o.exports={version:"2.6.12"};typeof __e=="number"&&(__e=c)},"./node_modules/core-js/modules/_create-property.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-dp.js"),d=c("./node_modules/core-js/modules/_property-desc.js");o.exports=function(p,g,b){g in p?u.f(p,g,d(0,b)):p[g]=b}},"./node_modules/core-js/modules/_ctx.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_a-function.js");o.exports=function(d,p,g){if(u(d),p===void 0)return d;switch(g){case 1:return function(b){return d.call(p,b)};case 2:return function(b,x){return d.call(p,b,x)};case 3:return function(b,x,w){return d.call(p,b,x,w)}}return function(){return d.apply(p,arguments)}}},"./node_modules/core-js/modules/_defined.js":function(o,a){o.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},"./node_modules/core-js/modules/_descriptors.js":function(o,a,c){o.exports=!c("./node_modules/core-js/modules/_fails.js")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/modules/_dom-create.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_is-object.js"),d=c("./node_modules/core-js/modules/_global.js").document,p=u(d)&&u(d.createElement);o.exports=function(g){return p?d.createElement(g):{}}},"./node_modules/core-js/modules/_enum-bug-keys.js":function(o,a){o.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"./node_modules/core-js/modules/_enum-keys.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-keys.js"),d=c("./node_modules/core-js/modules/_object-gops.js"),p=c("./node_modules/core-js/modules/_object-pie.js");o.exports=function(g){var b=u(g),x=d.f;if(x)for(var w=x(g),y=p.f,I=0,k;w.length>I;)y.call(g,k=w[I++])&&b.push(k);return b}},"./node_modules/core-js/modules/_export.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_global.js"),d=c("./node_modules/core-js/modules/_core.js"),p=c("./node_modules/core-js/modules/_hide.js"),g=c("./node_modules/core-js/modules/_redefine.js"),b=c("./node_modules/core-js/modules/_ctx.js"),x="prototype",w=function(y,I,k){var T=y&w.F,E=y&w.G,O=y&w.S,A=y&w.P,L=y&w.B,R=E?u:O?u[I]||(u[I]={}):(u[I]||{})[x],$=E?d:d[I]||(d[I]={}),P=$[x]||($[x]={}),z,W,D,S;E&&(k=I);for(z in k)W=!T&&R&&R[z]!==void 0,D=(W?R:k)[z],S=L&&W?b(D,u):A&&typeof D=="function"?b(Function.call,D):D,R&&g(R,z,D,y&w.U),$[z]!=D&&p($,z,S),A&&P[z]!=D&&(P[z]=D)};u.core=d,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,o.exports=w},"./node_modules/core-js/modules/_fails-is-regexp.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_wks.js")("match");o.exports=function(d){var p=/./;try{"/./"[d](p)}catch{try{return p[u]=!1,!"/./"[d](p)}catch{}}return!0}},"./node_modules/core-js/modules/_fails.js":function(o,a){o.exports=function(c){try{return!!c()}catch{return!0}}},"./node_modules/core-js/modules/_fix-re-wks.js":function(o,a,c){c("./node_modules/core-js/modules/es6.regexp.exec.js");var u=c("./node_modules/core-js/modules/_redefine.js"),d=c("./node_modules/core-js/modules/_hide.js"),p=c("./node_modules/core-js/modules/_fails.js"),g=c("./node_modules/core-js/modules/_defined.js"),b=c("./node_modules/core-js/modules/_wks.js"),x=c("./node_modules/core-js/modules/_regexp-exec.js"),w=b("species"),y=!p(function(){var k=/./;return k.exec=function(){var T=[];return T.groups={a:"7"},T},"".replace(k,"$<a>")!=="7"}),I=function(){var k=/(?:)/,T=k.exec;k.exec=function(){return T.apply(this,arguments)};var E="ab".split(k);return E.length===2&&E[0]==="a"&&E[1]==="b"}();o.exports=function(k,T,E){var O=b(k),A=!p(function(){var W={};return W[O]=function(){return 7},""[k](W)!=7}),L=A?!p(function(){var W=!1,D=/a/;return D.exec=function(){return W=!0,null},k==="split"&&(D.constructor={},D.constructor[w]=function(){return D}),D[O](""),!W}):void 0;if(!A||!L||k==="replace"&&!y||k==="split"&&!I){var R=/./[O],$=E(g,O,""[k],function(D,S,F,U,M){return S.exec===x?A&&!M?{done:!0,value:R.call(S,F,U)}:{done:!0,value:D.call(F,S,U)}:{done:!1}}),P=$[0],z=$[1];u(String.prototype,k,P),d(RegExp.prototype,O,T==2?function(W,D){return z.call(W,this,D)}:function(W){return z.call(W,this)})}}},"./node_modules/core-js/modules/_flags.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_an-object.js");o.exports=function(){var d=u(this),p="";return d.global&&(p+="g"),d.ignoreCase&&(p+="i"),d.multiline&&(p+="m"),d.unicode&&(p+="u"),d.sticky&&(p+="y"),p}},"./node_modules/core-js/modules/_function-to-string.js":function(o,a,c){o.exports=c("./node_modules/core-js/modules/_shared.js")("native-function-to-string",Function.toString)},"./node_modules/core-js/modules/_global.js":function(o,a){var c=o.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=c)},"./node_modules/core-js/modules/_has.js":function(o,a){var c={}.hasOwnProperty;o.exports=function(u,d){return c.call(u,d)}},"./node_modules/core-js/modules/_hide.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-dp.js"),d=c("./node_modules/core-js/modules/_property-desc.js");o.exports=c("./node_modules/core-js/modules/_descriptors.js")?function(p,g,b){return u.f(p,g,d(1,b))}:function(p,g,b){return p[g]=b,p}},"./node_modules/core-js/modules/_html.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_global.js").document;o.exports=u&&u.documentElement},"./node_modules/core-js/modules/_ie8-dom-define.js":function(o,a,c){o.exports=!c("./node_modules/core-js/modules/_descriptors.js")&&!c("./node_modules/core-js/modules/_fails.js")(function(){return Object.defineProperty(c("./node_modules/core-js/modules/_dom-create.js")("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/modules/_iobject.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_cof.js");o.exports=Object("z").propertyIsEnumerable(0)?Object:function(d){return u(d)=="String"?d.split(""):Object(d)}},"./node_modules/core-js/modules/_is-array-iter.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_iterators.js"),d=c("./node_modules/core-js/modules/_wks.js")("iterator"),p=Array.prototype;o.exports=function(g){return g!==void 0&&(u.Array===g||p[d]===g)}},"./node_modules/core-js/modules/_is-array.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_cof.js");o.exports=Array.isArray||function(p){return u(p)=="Array"}},"./node_modules/core-js/modules/_is-object.js":function(o,a){o.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},"./node_modules/core-js/modules/_is-regexp.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_is-object.js"),d=c("./node_modules/core-js/modules/_cof.js"),p=c("./node_modules/core-js/modules/_wks.js")("match");o.exports=function(g){var b;return u(g)&&((b=g[p])!==void 0?!!b:d(g)=="RegExp")}},"./node_modules/core-js/modules/_iter-call.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_an-object.js");o.exports=function(d,p,g,b){try{return b?p(u(g)[0],g[1]):p(g)}catch(w){var x=d.return;throw x!==void 0&&u(x.call(d)),w}}},"./node_modules/core-js/modules/_iter-create.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-create.js"),d=c("./node_modules/core-js/modules/_property-desc.js"),p=c("./node_modules/core-js/modules/_set-to-string-tag.js"),g={};c("./node_modules/core-js/modules/_hide.js")(g,c("./node_modules/core-js/modules/_wks.js")("iterator"),function(){return this}),o.exports=function(b,x,w){b.prototype=u(g,{next:d(1,w)}),p(b,x+" Iterator")}},"./node_modules/core-js/modules/_iter-define.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_library.js"),d=c("./node_modules/core-js/modules/_export.js"),p=c("./node_modules/core-js/modules/_redefine.js"),g=c("./node_modules/core-js/modules/_hide.js"),b=c("./node_modules/core-js/modules/_iterators.js"),x=c("./node_modules/core-js/modules/_iter-create.js"),w=c("./node_modules/core-js/modules/_set-to-string-tag.js"),y=c("./node_modules/core-js/modules/_object-gpo.js"),I=c("./node_modules/core-js/modules/_wks.js")("iterator"),k=!([].keys&&"next"in[].keys()),T="@@iterator",E="keys",O="values",A=function(){return this};o.exports=function(L,R,$,P,z,W,D){x($,R,P);var S=function(ce){if(!k&&ce in V)return V[ce];switch(ce){case E:return function(){return new $(this,ce)};case O:return function(){return new $(this,ce)}}return function(){return new $(this,ce)}},F=R+" Iterator",U=z==O,M=!1,V=L.prototype,G=V[I]||V[T]||z&&V[z],Q=G||S(z),fe=z?U?S("entries"):Q:void 0,te=R=="Array"&&V.entries||G,de,me,Me;if(te&&(Me=y(te.call(new L)),Me!==Object.prototype&&Me.next&&(w(Me,F,!0),!u&&typeof Me[I]!="function"&&g(Me,I,A))),U&&G&&G.name!==O&&(M=!0,Q=function(){return G.call(this)}),(!u||D)&&(k||M||!V[I])&&g(V,I,Q),b[R]=Q,b[F]=A,z)if(de={values:U?Q:S(O),keys:W?Q:S(E),entries:fe},D)for(me in de)me in V||p(V,me,de[me]);else d(d.P+d.F*(k||M),R,de);return de}},"./node_modules/core-js/modules/_iter-detect.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_wks.js")("iterator"),d=!1;try{var p=[7][u]();p.return=function(){d=!0},Array.from(p,function(){throw 2})}catch{}o.exports=function(g,b){if(!b&&!d)return!1;var x=!1;try{var w=[7],y=w[u]();y.next=function(){return{done:x=!0}},w[u]=function(){return y},g(w)}catch{}return x}},"./node_modules/core-js/modules/_iter-step.js":function(o,a){o.exports=function(c,u){return{value:u,done:!!c}}},"./node_modules/core-js/modules/_iterators.js":function(o,a){o.exports={}},"./node_modules/core-js/modules/_library.js":function(o,a){o.exports=!1},"./node_modules/core-js/modules/_meta.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_uid.js")("meta"),d=c("./node_modules/core-js/modules/_is-object.js"),p=c("./node_modules/core-js/modules/_has.js"),g=c("./node_modules/core-js/modules/_object-dp.js").f,b=0,x=Object.isExtensible||function(){return!0},w=!c("./node_modules/core-js/modules/_fails.js")(function(){return x(Object.preventExtensions({}))}),y=function(O){g(O,u,{value:{i:"O"+ ++b,w:{}}})},I=function(O,A){if(!d(O))return typeof O=="symbol"?O:(typeof O=="string"?"S":"P")+O;if(!p(O,u)){if(!x(O))return"F";if(!A)return"E";y(O)}return O[u].i},k=function(O,A){if(!p(O,u)){if(!x(O))return!0;if(!A)return!1;y(O)}return O[u].w},T=function(O){return w&&E.NEED&&x(O)&&!p(O,u)&&y(O),O},E=o.exports={KEY:u,NEED:!1,fastKey:I,getWeak:k,onFreeze:T}},"./node_modules/core-js/modules/_object-create.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_an-object.js"),d=c("./node_modules/core-js/modules/_object-dps.js"),p=c("./node_modules/core-js/modules/_enum-bug-keys.js"),g=c("./node_modules/core-js/modules/_shared-key.js")("IE_PROTO"),b=function(){},x="prototype",w=function(){var y=c("./node_modules/core-js/modules/_dom-create.js")("iframe"),I=p.length,k="<",T=">",E;for(y.style.display="none",c("./node_modules/core-js/modules/_html.js").appendChild(y),y.src="javascript:",E=y.contentWindow.document,E.open(),E.write(k+"script"+T+"document.F=Object"+k+"/script"+T),E.close(),w=E.F;I--;)delete w[x][p[I]];return w()};o.exports=Object.create||function(I,k){var T;return I!==null?(b[x]=u(I),T=new b,b[x]=null,T[g]=I):T=w(),k===void 0?T:d(T,k)}},"./node_modules/core-js/modules/_object-dp.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_an-object.js"),d=c("./node_modules/core-js/modules/_ie8-dom-define.js"),p=c("./node_modules/core-js/modules/_to-primitive.js"),g=Object.defineProperty;a.f=c("./node_modules/core-js/modules/_descriptors.js")?Object.defineProperty:function(x,w,y){if(u(x),w=p(w,!0),u(y),d)try{return g(x,w,y)}catch{}if("get"in y||"set"in y)throw TypeError("Accessors not supported!");return"value"in y&&(x[w]=y.value),x}},"./node_modules/core-js/modules/_object-dps.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-dp.js"),d=c("./node_modules/core-js/modules/_an-object.js"),p=c("./node_modules/core-js/modules/_object-keys.js");o.exports=c("./node_modules/core-js/modules/_descriptors.js")?Object.defineProperties:function(b,x){d(b);for(var w=p(x),y=w.length,I=0,k;y>I;)u.f(b,k=w[I++],x[k]);return b}},"./node_modules/core-js/modules/_object-gopd.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-pie.js"),d=c("./node_modules/core-js/modules/_property-desc.js"),p=c("./node_modules/core-js/modules/_to-iobject.js"),g=c("./node_modules/core-js/modules/_to-primitive.js"),b=c("./node_modules/core-js/modules/_has.js"),x=c("./node_modules/core-js/modules/_ie8-dom-define.js"),w=Object.getOwnPropertyDescriptor;a.f=c("./node_modules/core-js/modules/_descriptors.js")?w:function(I,k){if(I=p(I),k=g(k,!0),x)try{return w(I,k)}catch{}if(b(I,k))return d(!u.f.call(I,k),I[k])}},"./node_modules/core-js/modules/_object-gopn-ext.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_to-iobject.js"),d=c("./node_modules/core-js/modules/_object-gopn.js").f,p={}.toString,g=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(x){try{return d(x)}catch{return g.slice()}};o.exports.f=function(w){return g&&p.call(w)=="[object Window]"?b(w):d(u(w))}},"./node_modules/core-js/modules/_object-gopn.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-keys-internal.js"),d=c("./node_modules/core-js/modules/_enum-bug-keys.js").concat("length","prototype");a.f=Object.getOwnPropertyNames||function(g){return u(g,d)}},"./node_modules/core-js/modules/_object-gops.js":function(o,a){a.f=Object.getOwnPropertySymbols},"./node_modules/core-js/modules/_object-gpo.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_has.js"),d=c("./node_modules/core-js/modules/_to-object.js"),p=c("./node_modules/core-js/modules/_shared-key.js")("IE_PROTO"),g=Object.prototype;o.exports=Object.getPrototypeOf||function(b){return b=d(b),u(b,p)?b[p]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?g:null}},"./node_modules/core-js/modules/_object-keys-internal.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_has.js"),d=c("./node_modules/core-js/modules/_to-iobject.js"),p=c("./node_modules/core-js/modules/_array-includes.js")(!1),g=c("./node_modules/core-js/modules/_shared-key.js")("IE_PROTO");o.exports=function(b,x){var w=d(b),y=0,I=[],k;for(k in w)k!=g&&u(w,k)&&I.push(k);for(;x.length>y;)u(w,k=x[y++])&&(~p(I,k)||I.push(k));return I}},"./node_modules/core-js/modules/_object-keys.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-keys-internal.js"),d=c("./node_modules/core-js/modules/_enum-bug-keys.js");o.exports=Object.keys||function(g){return u(g,d)}},"./node_modules/core-js/modules/_object-pie.js":function(o,a){a.f={}.propertyIsEnumerable},"./node_modules/core-js/modules/_own-keys.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-gopn.js"),d=c("./node_modules/core-js/modules/_object-gops.js"),p=c("./node_modules/core-js/modules/_an-object.js"),g=c("./node_modules/core-js/modules/_global.js").Reflect;o.exports=g&&g.ownKeys||function(x){var w=u.f(p(x)),y=d.f;return y?w.concat(y(x)):w}},"./node_modules/core-js/modules/_property-desc.js":function(o,a){o.exports=function(c,u){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:u}}},"./node_modules/core-js/modules/_redefine.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_global.js"),d=c("./node_modules/core-js/modules/_hide.js"),p=c("./node_modules/core-js/modules/_has.js"),g=c("./node_modules/core-js/modules/_uid.js")("src"),b=c("./node_modules/core-js/modules/_function-to-string.js"),x="toString",w=(""+b).split(x);c("./node_modules/core-js/modules/_core.js").inspectSource=function(y){return b.call(y)},(o.exports=function(y,I,k,T){var E=typeof k=="function";E&&(p(k,"name")||d(k,"name",I)),y[I]!==k&&(E&&(p(k,g)||d(k,g,y[I]?""+y[I]:w.join(String(I)))),y===u?y[I]=k:T?y[I]?y[I]=k:d(y,I,k):(delete y[I],d(y,I,k)))})(Function.prototype,x,function(){return typeof this=="function"&&this[g]||b.call(this)})},"./node_modules/core-js/modules/_regexp-exec-abstract.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_classof.js"),d=RegExp.prototype.exec;o.exports=function(p,g){var b=p.exec;if(typeof b=="function"){var x=b.call(p,g);if(typeof x!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return x}if(u(p)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return d.call(p,g)}},"./node_modules/core-js/modules/_regexp-exec.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_flags.js"),d=RegExp.prototype.exec,p=String.prototype.replace,g=d,b="lastIndex",x=function(){var I=/a/,k=/b*/g;return d.call(I,"a"),d.call(k,"a"),I[b]!==0||k[b]!==0}(),w=/()??/.exec("")[1]!==void 0,y=x||w;y&&(g=function(k){var T=this,E,O,A,L;return w&&(O=new RegExp("^"+T.source+"$(?!\\s)",u.call(T))),x&&(E=T[b]),A=d.call(T,k),x&&A&&(T[b]=T.global?A.index+A[0].length:E),w&&A&&A.length>1&&p.call(A[0],O,function(){for(L=1;L<arguments.length-2;L++)arguments[L]===void 0&&(A[L]=void 0)}),A}),o.exports=g},"./node_modules/core-js/modules/_set-to-string-tag.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-dp.js").f,d=c("./node_modules/core-js/modules/_has.js"),p=c("./node_modules/core-js/modules/_wks.js")("toStringTag");o.exports=function(g,b,x){g&&!d(g=x?g:g.prototype,p)&&u(g,p,{configurable:!0,value:b})}},"./node_modules/core-js/modules/_shared-key.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_shared.js")("keys"),d=c("./node_modules/core-js/modules/_uid.js");o.exports=function(p){return u[p]||(u[p]=d(p))}},"./node_modules/core-js/modules/_shared.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_core.js"),d=c("./node_modules/core-js/modules/_global.js"),p="__core-js_shared__",g=d[p]||(d[p]={});(o.exports=function(b,x){return g[b]||(g[b]=x!==void 0?x:{})})("versions",[]).push({version:u.version,mode:c("./node_modules/core-js/modules/_library.js")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/modules/_species-constructor.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_an-object.js"),d=c("./node_modules/core-js/modules/_a-function.js"),p=c("./node_modules/core-js/modules/_wks.js")("species");o.exports=function(g,b){var x=u(g).constructor,w;return x===void 0||(w=u(x)[p])==null?b:d(w)}},"./node_modules/core-js/modules/_string-at.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_to-integer.js"),d=c("./node_modules/core-js/modules/_defined.js");o.exports=function(p){return function(g,b){var x=String(d(g)),w=u(b),y=x.length,I,k;return w<0||w>=y?p?"":void 0:(I=x.charCodeAt(w),I<55296||I>56319||w+1===y||(k=x.charCodeAt(w+1))<56320||k>57343?p?x.charAt(w):I:p?x.slice(w,w+2):(I-55296<<10)+(k-56320)+65536)}}},"./node_modules/core-js/modules/_string-context.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_is-regexp.js"),d=c("./node_modules/core-js/modules/_defined.js");o.exports=function(p,g,b){if(u(g))throw TypeError("String#"+b+" doesn't accept regex!");return String(d(p))}},"./node_modules/core-js/modules/_to-absolute-index.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_to-integer.js"),d=Math.max,p=Math.min;o.exports=function(g,b){return g=u(g),g<0?d(g+b,0):p(g,b)}},"./node_modules/core-js/modules/_to-integer.js":function(o,a){var c=Math.ceil,u=Math.floor;o.exports=function(d){return isNaN(d=+d)?0:(d>0?u:c)(d)}},"./node_modules/core-js/modules/_to-iobject.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_iobject.js"),d=c("./node_modules/core-js/modules/_defined.js");o.exports=function(p){return u(d(p))}},"./node_modules/core-js/modules/_to-length.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_to-integer.js"),d=Math.min;o.exports=function(p){return p>0?d(u(p),9007199254740991):0}},"./node_modules/core-js/modules/_to-object.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_defined.js");o.exports=function(d){return Object(u(d))}},"./node_modules/core-js/modules/_to-primitive.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_is-object.js");o.exports=function(d,p){if(!u(d))return d;var g,b;if(p&&typeof(g=d.toString)=="function"&&!u(b=g.call(d))||typeof(g=d.valueOf)=="function"&&!u(b=g.call(d))||!p&&typeof(g=d.toString)=="function"&&!u(b=g.call(d)))return b;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/modules/_uid.js":function(o,a){var c=0,u=Math.random();o.exports=function(d){return"Symbol(".concat(d===void 0?"":d,")_",(++c+u).toString(36))}},"./node_modules/core-js/modules/_wks-define.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_global.js"),d=c("./node_modules/core-js/modules/_core.js"),p=c("./node_modules/core-js/modules/_library.js"),g=c("./node_modules/core-js/modules/_wks-ext.js"),b=c("./node_modules/core-js/modules/_object-dp.js").f;o.exports=function(x){var w=d.Symbol||(d.Symbol=p?{}:u.Symbol||{});x.charAt(0)!="_"&&!(x in w)&&b(w,x,{value:g.f(x)})}},"./node_modules/core-js/modules/_wks-ext.js":function(o,a,c){a.f=c("./node_modules/core-js/modules/_wks.js")},"./node_modules/core-js/modules/_wks.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_shared.js")("wks"),d=c("./node_modules/core-js/modules/_uid.js"),p=c("./node_modules/core-js/modules/_global.js").Symbol,g=typeof p=="function",b=o.exports=function(x){return u[x]||(u[x]=g&&p[x]||(g?p:d)("Symbol."+x))};b.store=u},"./node_modules/core-js/modules/core.get-iterator-method.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_classof.js"),d=c("./node_modules/core-js/modules/_wks.js")("iterator"),p=c("./node_modules/core-js/modules/_iterators.js");o.exports=c("./node_modules/core-js/modules/_core.js").getIteratorMethod=function(g){if(g!=null)return g[d]||g["@@iterator"]||p[u(g)]}},"./node_modules/core-js/modules/es6.array.from.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_ctx.js"),d=c("./node_modules/core-js/modules/_export.js"),p=c("./node_modules/core-js/modules/_to-object.js"),g=c("./node_modules/core-js/modules/_iter-call.js"),b=c("./node_modules/core-js/modules/_is-array-iter.js"),x=c("./node_modules/core-js/modules/_to-length.js"),w=c("./node_modules/core-js/modules/_create-property.js"),y=c("./node_modules/core-js/modules/core.get-iterator-method.js");d(d.S+d.F*!c("./node_modules/core-js/modules/_iter-detect.js")(function(I){Array.from(I)}),"Array",{from:function(k){var T=p(k),E=typeof this=="function"?this:Array,O=arguments.length,A=O>1?arguments[1]:void 0,L=A!==void 0,R=0,$=y(T),P,z,W,D;if(L&&(A=u(A,O>2?arguments[2]:void 0,2)),$!=null&&!(E==Array&&b($)))for(D=$.call(T),z=new E;!(W=D.next()).done;R++)w(z,R,L?g(D,A,[W.value,R],!0):W.value);else for(P=x(T.length),z=new E(P);P>R;R++)w(z,R,L?A(T[R],R):T[R]);return z.length=R,z}})},"./node_modules/core-js/modules/es6.array.iterator.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_add-to-unscopables.js"),d=c("./node_modules/core-js/modules/_iter-step.js"),p=c("./node_modules/core-js/modules/_iterators.js"),g=c("./node_modules/core-js/modules/_to-iobject.js");o.exports=c("./node_modules/core-js/modules/_iter-define.js")(Array,"Array",function(b,x){this._t=g(b),this._i=0,this._k=x},function(){var b=this._t,x=this._k,w=this._i++;return!b||w>=b.length?(this._t=void 0,d(1)):x=="keys"?d(0,w):x=="values"?d(0,b[w]):d(0,[w,b[w]])},"values"),p.Arguments=p.Array,u("keys"),u("values"),u("entries")},"./node_modules/core-js/modules/es6.function.name.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_object-dp.js").f,d=Function.prototype,p=/^\s*function ([^ (]*)/,g="name";g in d||c("./node_modules/core-js/modules/_descriptors.js")&&u(d,g,{configurable:!0,get:function(){try{return(""+this).match(p)[1]}catch{return""}}})},"./node_modules/core-js/modules/es6.number.is-finite.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_export.js"),d=c("./node_modules/core-js/modules/_global.js").isFinite;u(u.S,"Number",{isFinite:function(g){return typeof g=="number"&&d(g)}})},"./node_modules/core-js/modules/es6.object.to-string.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_classof.js"),d={};d[c("./node_modules/core-js/modules/_wks.js")("toStringTag")]="z",d+""!="[object z]"&&c("./node_modules/core-js/modules/_redefine.js")(Object.prototype,"toString",function(){return"[object "+u(this)+"]"},!0)},"./node_modules/core-js/modules/es6.regexp.exec.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_regexp-exec.js");c("./node_modules/core-js/modules/_export.js")({target:"RegExp",proto:!0,forced:u!==/./.exec},{exec:u})},"./node_modules/core-js/modules/es6.regexp.split.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_is-regexp.js"),d=c("./node_modules/core-js/modules/_an-object.js"),p=c("./node_modules/core-js/modules/_species-constructor.js"),g=c("./node_modules/core-js/modules/_advance-string-index.js"),b=c("./node_modules/core-js/modules/_to-length.js"),x=c("./node_modules/core-js/modules/_regexp-exec-abstract.js"),w=c("./node_modules/core-js/modules/_regexp-exec.js"),y=c("./node_modules/core-js/modules/_fails.js"),I=Math.min,k=[].push,T="split",E="length",O="lastIndex",A=4294967295,L=!y(function(){});c("./node_modules/core-js/modules/_fix-re-wks.js")("split",2,function(R,$,P,z){var W;return"abbc"[T](/(b)*/)[1]=="c"||"test"[T](/(?:)/,-1)[E]!=4||"ab"[T](/(?:ab)*/)[E]!=2||"."[T](/(.?)(.?)/)[E]!=4||"."[T](/()()/)[E]>1||""[T](/.?/)[E]?W=function(D,S){var F=String(this);if(D===void 0&&S===0)return[];if(!u(D))return P.call(F,D,S);for(var U=[],M=(D.ignoreCase?"i":"")+(D.multiline?"m":"")+(D.unicode?"u":"")+(D.sticky?"y":""),V=0,G=S===void 0?A:S>>>0,Q=new RegExp(D.source,M+"g"),fe,te,de;(fe=w.call(Q,F))&&(te=Q[O],!(te>V&&(U.push(F.slice(V,fe.index)),fe[E]>1&&fe.index<F[E]&&k.apply(U,fe.slice(1)),de=fe[0][E],V=te,U[E]>=G)));)Q[O]===fe.index&&Q[O]++;return V===F[E]?(de||!Q.test(""))&&U.push(""):U.push(F.slice(V)),U[E]>G?U.slice(0,G):U}:"0"[T](void 0,0)[E]?W=function(D,S){return D===void 0&&S===0?[]:P.call(this,D,S)}:W=P,[function(S,F){var U=R(this),M=S==null?void 0:S[$];return M!==void 0?M.call(S,U,F):W.call(String(U),S,F)},function(D,S){var F=z(W,D,this,S,W!==P);if(F.done)return F.value;var U=d(D),M=String(this),V=p(U,RegExp),G=U.unicode,Q=(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")+(L?"y":"g"),fe=new V(L?U:"^(?:"+U.source+")",Q),te=S===void 0?A:S>>>0;if(te===0)return[];if(M.length===0)return x(fe,M)===null?[M]:[];for(var de=0,me=0,Me=[];me<M.length;){fe.lastIndex=L?me:0;var ce=x(fe,L?M:M.slice(me)),oe;if(ce===null||(oe=I(b(fe.lastIndex+(L?0:me)),M.length))===de)me=g(M,me,G);else{if(Me.push(M.slice(de,me)),Me.length===te)return Me;for(var be=1;be<=ce.length-1;be++)if(Me.push(ce[be]),Me.length===te)return Me;me=de=oe}}return Me.push(M.slice(de)),Me}]})},"./node_modules/core-js/modules/es6.string.includes.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_export.js"),d=c("./node_modules/core-js/modules/_string-context.js"),p="includes";u(u.P+u.F*c("./node_modules/core-js/modules/_fails-is-regexp.js")(p),"String",{includes:function(b){return!!~d(this,b,p).indexOf(b,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es6.symbol.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_global.js"),d=c("./node_modules/core-js/modules/_has.js"),p=c("./node_modules/core-js/modules/_descriptors.js"),g=c("./node_modules/core-js/modules/_export.js"),b=c("./node_modules/core-js/modules/_redefine.js"),x=c("./node_modules/core-js/modules/_meta.js").KEY,w=c("./node_modules/core-js/modules/_fails.js"),y=c("./node_modules/core-js/modules/_shared.js"),I=c("./node_modules/core-js/modules/_set-to-string-tag.js"),k=c("./node_modules/core-js/modules/_uid.js"),T=c("./node_modules/core-js/modules/_wks.js"),E=c("./node_modules/core-js/modules/_wks-ext.js"),O=c("./node_modules/core-js/modules/_wks-define.js"),A=c("./node_modules/core-js/modules/_enum-keys.js"),L=c("./node_modules/core-js/modules/_is-array.js"),R=c("./node_modules/core-js/modules/_an-object.js"),$=c("./node_modules/core-js/modules/_is-object.js"),P=c("./node_modules/core-js/modules/_to-object.js"),z=c("./node_modules/core-js/modules/_to-iobject.js"),W=c("./node_modules/core-js/modules/_to-primitive.js"),D=c("./node_modules/core-js/modules/_property-desc.js"),S=c("./node_modules/core-js/modules/_object-create.js"),F=c("./node_modules/core-js/modules/_object-gopn-ext.js"),U=c("./node_modules/core-js/modules/_object-gopd.js"),M=c("./node_modules/core-js/modules/_object-gops.js"),V=c("./node_modules/core-js/modules/_object-dp.js"),G=c("./node_modules/core-js/modules/_object-keys.js"),Q=U.f,fe=V.f,te=F.f,de=u.Symbol,me=u.JSON,Me=me&&me.stringify,ce="prototype",oe=T("_hidden"),be=T("toPrimitive"),Te={}.propertyIsEnumerable,Ae=y("symbol-registry"),Be=y("symbols"),Xe=y("op-symbols"),He=Object[ce],Ke=typeof de=="function"&&!!M.f,ot=u.QObject,K=!ot||!ot[ce]||!ot[ce].findChild,q=p&&w(function(){return S(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a!=7})?function($e,Ee,Ie){var ze=Q(He,Ee);ze&&delete He[Ee],fe($e,Ee,Ie),ze&&$e!==He&&fe(He,Ee,ze)}:fe,se=function($e){var Ee=Be[$e]=S(de[ce]);return Ee._k=$e,Ee},Ce=Ke&&typeof de.iterator=="symbol"?function($e){return typeof $e=="symbol"}:function($e){return $e instanceof de},Le=function(Ee,Ie,ze){return Ee===He&&Le(Xe,Ie,ze),R(Ee),Ie=W(Ie,!0),R(ze),d(Be,Ie)?(ze.enumerable?(d(Ee,oe)&&Ee[oe][Ie]&&(Ee[oe][Ie]=!1),ze=S(ze,{enumerable:D(0,!1)})):(d(Ee,oe)||fe(Ee,oe,D(1,{})),Ee[oe][Ie]=!0),q(Ee,Ie,ze)):fe(Ee,Ie,ze)},qe=function(Ee,Ie){R(Ee);for(var ze=A(Ie=z(Ie)),ct=0,st=ze.length,ht;st>ct;)Le(Ee,ht=ze[ct++],Ie[ht]);return Ee},Ct=function(Ee,Ie){return Ie===void 0?S(Ee):qe(S(Ee),Ie)},ke=function(Ee){var Ie=Te.call(this,Ee=W(Ee,!0));return this===He&&d(Be,Ee)&&!d(Xe,Ee)?!1:Ie||!d(this,Ee)||!d(Be,Ee)||d(this,oe)&&this[oe][Ee]?Ie:!0},xe=function(Ee,Ie){if(Ee=z(Ee),Ie=W(Ie,!0),!(Ee===He&&d(Be,Ie)&&!d(Xe,Ie))){var ze=Q(Ee,Ie);return ze&&d(Be,Ie)&&!(d(Ee,oe)&&Ee[oe][Ie])&&(ze.enumerable=!0),ze}},Ne=function(Ee){for(var Ie=te(z(Ee)),ze=[],ct=0,st;Ie.length>ct;)!d(Be,st=Ie[ct++])&&st!=oe&&st!=x&&ze.push(st);return ze},Se=function(Ee){for(var Ie=Ee===He,ze=te(Ie?Xe:z(Ee)),ct=[],st=0,ht;ze.length>st;)d(Be,ht=ze[st++])&&(!Ie||d(He,ht))&&ct.push(Be[ht]);return ct};Ke||(de=function(){if(this instanceof de)throw TypeError("Symbol is not a constructor!");var Ee=k(arguments.length>0?arguments[0]:void 0),Ie=function(ze){this===He&&Ie.call(Xe,ze),d(this,oe)&&d(this[oe],Ee)&&(this[oe][Ee]=!1),q(this,Ee,D(1,ze))};return p&&K&&q(He,Ee,{configurable:!0,set:Ie}),se(Ee)},b(de[ce],"toString",function(){return this._k}),U.f=xe,V.f=Le,c("./node_modules/core-js/modules/_object-gopn.js").f=F.f=Ne,c("./node_modules/core-js/modules/_object-pie.js").f=ke,M.f=Se,p&&!c("./node_modules/core-js/modules/_library.js")&&b(He,"propertyIsEnumerable",ke,!0),E.f=function($e){return se(T($e))}),g(g.G+g.W+g.F*!Ke,{Symbol:de});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),he=0;ie.length>he;)T(ie[he++]);for(var Ye=G(T.store),et=0;Ye.length>et;)O(Ye[et++]);g(g.S+g.F*!Ke,"Symbol",{for:function($e){return d(Ae,$e+="")?Ae[$e]:Ae[$e]=de($e)},keyFor:function(Ee){if(!Ce(Ee))throw TypeError(Ee+" is not a symbol!");for(var Ie in Ae)if(Ae[Ie]===Ee)return Ie},useSetter:function(){K=!0},useSimple:function(){K=!1}}),g(g.S+g.F*!Ke,"Object",{create:Ct,defineProperty:Le,defineProperties:qe,getOwnPropertyDescriptor:xe,getOwnPropertyNames:Ne,getOwnPropertySymbols:Se});var bt=w(function(){M.f(1)});g(g.S+g.F*bt,"Object",{getOwnPropertySymbols:function(Ee){return M.f(P(Ee))}}),me&&g(g.S+g.F*(!Ke||w(function(){var $e=de();return Me([$e])!="[null]"||Me({a:$e})!="{}"||Me(Object($e))!="{}"})),"JSON",{stringify:function(Ee){for(var Ie=[Ee],ze=1,ct,st;arguments.length>ze;)Ie.push(arguments[ze++]);if(st=ct=Ie[1],!(!$(ct)&&Ee===void 0||Ce(Ee)))return L(ct)||(ct=function(ht,Rt){if(typeof st=="function"&&(Rt=st.call(this,ht,Rt)),!Ce(Rt))return Rt}),Ie[1]=ct,Me.apply(me,Ie)}}),de[ce][be]||c("./node_modules/core-js/modules/_hide.js")(de[ce],be,de[ce].valueOf),I(de,"Symbol"),I(Math,"Math",!0),I(u.JSON,"JSON",!0)},"./node_modules/core-js/modules/es7.array.includes.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_export.js"),d=c("./node_modules/core-js/modules/_array-includes.js")(!0);u(u.P,"Array",{includes:function(g){return d(this,g,arguments.length>1?arguments[1]:void 0)}}),c("./node_modules/core-js/modules/_add-to-unscopables.js")("includes")},"./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js":function(o,a,c){var u=c("./node_modules/core-js/modules/_export.js"),d=c("./node_modules/core-js/modules/_own-keys.js"),p=c("./node_modules/core-js/modules/_to-iobject.js"),g=c("./node_modules/core-js/modules/_object-gopd.js"),b=c("./node_modules/core-js/modules/_create-property.js");u(u.S,"Object",{getOwnPropertyDescriptors:function(w){for(var y=p(w),I=g.f,k=d(y),T={},E=0,O,A;k.length>E;)A=I(y,O=k[E++]),A!==void 0&&b(T,O,A);return T}})},"./node_modules/core-js/modules/es7.symbol.async-iterator.js":function(o,a,c){c("./node_modules/core-js/modules/_wks-define.js")("asyncIterator")},"./node_modules/core-js/modules/web.dom.iterable.js":function(o,a,c){for(var u=c("./node_modules/core-js/modules/es6.array.iterator.js"),d=c("./node_modules/core-js/modules/_object-keys.js"),p=c("./node_modules/core-js/modules/_redefine.js"),g=c("./node_modules/core-js/modules/_global.js"),b=c("./node_modules/core-js/modules/_hide.js"),x=c("./node_modules/core-js/modules/_iterators.js"),w=c("./node_modules/core-js/modules/_wks.js"),y=w("iterator"),I=w("toStringTag"),k=x.Array,T={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},E=d(T),O=0;O<E.length;O++){var A=E[O],L=T[A],R=g[A],$=R&&R.prototype,P;if($&&($[y]||b($,y,k),$[I]||b($,I,A),x[A]=k,L))for(P in u)$[P]||p($,P,u[P],!0)}},"./node_modules/crypt/crypt.js":function(o,a){(function(){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u={rotl:function(d,p){return d<<p|d>>>32-p},rotr:function(d,p){return d<<32-p|d>>>p},endian:function(d){if(d.constructor==Number)return u.rotl(d,8)&16711935|u.rotl(d,24)&4278255360;for(var p=0;p<d.length;p++)d[p]=u.endian(d[p]);return d},randomBytes:function(d){for(var p=[];d>0;d--)p.push(Math.floor(Math.random()*256));return p},bytesToWords:function(d){for(var p=[],g=0,b=0;g<d.length;g++,b+=8)p[b>>>5]|=d[g]<<24-b%32;return p},wordsToBytes:function(d){for(var p=[],g=0;g<d.length*32;g+=8)p.push(d[g>>>5]>>>24-g%32&255);return p},bytesToHex:function(d){for(var p=[],g=0;g<d.length;g++)p.push((d[g]>>>4).toString(16)),p.push((d[g]&15).toString(16));return p.join("")},hexToBytes:function(d){for(var p=[],g=0;g<d.length;g+=2)p.push(parseInt(d.substr(g,2),16));return p},bytesToBase64:function(d){for(var p=[],g=0;g<d.length;g+=3)for(var b=d[g]<<16|d[g+1]<<8|d[g+2],x=0;x<4;x++)g*8+x*6<=d.length*8?p.push(c.charAt(b>>>6*(3-x)&63)):p.push("=");return p.join("")},base64ToBytes:function(d){d=d.replace(/[^A-Z0-9+\/]/ig,"");for(var p=[],g=0,b=0;g<d.length;b=++g%4)b!=0&&p.push((c.indexOf(d.charAt(g-1))&Math.pow(2,-2*b+8)-1)<<b*2|c.indexOf(d.charAt(g))>>>6-b*2);return p}};o.exports=u})()},"./node_modules/is-buffer/index.js":function(o,a){/*!
|
|
200
200
|
* Determine if an object is a Buffer
|
|
@@ -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$c=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$b=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$b,[["__scopeId","data-v-f436bef6"]]),_hoisted_1$5=["src"],_sfc_main$a=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$9=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),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$8=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$7=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$6=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$5=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$4=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$3=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$2=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$1=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$a),{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$1,[["__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=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}=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();/*!
|
|
1163
1163
|
* shared v9.4.1
|
|
1164
1164
|
* (c) 2023 kazuya kawaguchi
|
|
1165
1165
|
* Released under the MIT License.
|
|
@@ -1179,5 +1179,5 @@ ${g}`:p)}else throw u},onCacheKey:u=>generateFormatCacheKey(e,r,u)}}function get
|
|
|
1179
1179
|
* vue-i18n v9.4.1
|
|
1180
1180
|
* (c) 2023 kazuya kawaguchi
|
|
1181
1181
|
* Released under the MIT License.
|
|
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;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.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$
|
|
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.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;
|