yabo-vue2-test 2.0.21 → 2.0.23
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/dist/admin/v2/assets/{GameTabs-CDyPlN6R.js → GameTabs-yunCJgyc.js} +1 -1
- package/dist/admin/v2/assets/MyUploader-CSvt89VX.js +1 -0
- package/dist/admin/v2/assets/{MyUploader2-DGNvNOsP.js → MyUploader2-BX6Is43z.js} +1 -1
- package/dist/admin/v2/assets/{SelectHuishuiMethod-G_GnixwM.js → SelectHuishuiMethod-CXjmaCYf.js} +1 -1
- package/dist/admin/v2/assets/{Table-my9Fa-9-.js → Table-CTeClyua.js} +1 -1
- package/dist/admin/v2/assets/{YbSidebar-Ch7AdMc_.js → YbSidebar-8phyJZo2.js} +1 -1
- package/dist/admin/v2/assets/{decimal-input-DhU70yg-.js → decimal-input-4_eXFeFq.js} +1 -1
- package/dist/admin/v2/assets/index--Q0ffat5.css +1 -0
- package/dist/admin/v2/assets/{index-GjtrqO1b.js → index-BSdqQVaD.js} +1 -1
- package/dist/admin/v2/assets/{index-BOuJkefh.js → index-BSgFwNrN.js} +1 -1
- package/dist/admin/v2/assets/{index-vu4_Myju.js → index-BZmp0fh2.js} +1 -1
- package/dist/admin/v2/assets/{index-CfcnDFW0.js → index-Bb5uR4Yg.js} +2 -2
- package/dist/admin/v2/assets/{index-BNwj4IVq.js → index-C6Ubgk4Q.js} +9 -9
- package/dist/admin/v2/assets/{index-DBvmbBTo.js → index-CkWibq0B.js} +1 -1
- package/dist/admin/v2/assets/{index-CtGAslds.js → index-CumxMqc3.js} +1 -1
- package/dist/admin/v2/assets/{index-r6Tnv7tW.js → index-DRitYVdC.js} +1 -1
- package/dist/admin/v2/assets/{index-C81fHsLz.js → index-DwBAXo46.js} +1 -1
- package/dist/admin/v2/assets/index-JJNF8T3h.js +1 -0
- package/dist/admin/v2/assets/index-xb4Zq5gQ.js +1 -0
- package/dist/admin/v2/assets/{uploader-CKck4KOU.js → uploader-0sIdUff4.js} +1 -1
- package/dist/admin/v2/config.js +1 -1
- package/dist/admin/v2/index.html +1 -1
- package/dist/open/v1/config.js +1 -1
- package/dist/v1/assets/BetRecord-CwxruTm5.js +1 -0
- package/dist/v1/assets/BetRecord-DYcmFUla.css +1 -0
- package/dist/v1/assets/{BetSelection-CeArZvTw.js → BetSelection-wzrR9ySf.js} +1 -1
- package/dist/v1/assets/{ChatBubble-ze1l2uVM.js → ChatBubble-DPk3Tiq-.js} +1 -1
- package/dist/v1/assets/FinanceRecord-BUZT7D9W.js +1 -0
- package/dist/v1/assets/FinanceRecord-CMfhs0wD.css +1 -0
- package/dist/v1/assets/{GameItem-D6cgRRUw.js → GameItem-G_xFbUgt.js} +1 -1
- package/dist/v1/assets/{IVGridItem-u7cts9PE.js → IVGridItem-Cw9JRNV-.js} +1 -1
- package/dist/v1/assets/MoneyRecord-1i-c5vI8.css +1 -0
- package/dist/v1/assets/MoneyRecord-D8MmP0h_.js +1 -0
- package/dist/v1/assets/{TabsPage-CVmnvyGB.js → TabsPage-ByCw-Plx.js} +1 -1
- package/dist/v1/assets/agent-cQj33ON-.js +1 -0
- package/dist/v1/assets/agent-members-jq4KfIr5.css +1 -0
- package/dist/v1/assets/agent-members-tRpCVBp9.js +1 -0
- package/dist/v1/assets/agent-vXLnXjga.js +1 -0
- package/dist/v1/assets/alipay-Ba2hVamm.js +1 -0
- package/dist/v1/assets/amount-BbHuZgrl.js +1 -0
- package/dist/v1/assets/{amount-Calqw9vh.js → amount-DmZ2zkDA.js} +1 -1
- package/dist/v1/assets/{bank-blkZSJHB.js → bank-DTWXJUCo.js} +1 -1
- package/dist/v1/assets/{bet-DV_VgRoM.js → bet-DwsCe44A.js} +1 -1
- package/dist/v1/assets/bill-item-CzOtlt26.js +1 -0
- package/dist/v1/assets/{bind-pay-qr-BoLatjik.js → bind-pay-qr-BMZU1Iad.js} +1 -1
- package/dist/v1/assets/card-CU5_1py_.js +1 -0
- package/dist/v1/assets/card-content-cQkVyLcW.js +1 -0
- package/dist/v1/assets/{card-title-mBW1xoTi.js → card-title-4dVvvqGF.js} +1 -1
- package/dist/v1/assets/{chat-B30gxZvI.js → chat-Cr-IZzh7.js} +1 -1
- package/dist/v1/assets/detail-common-U21qbDZx.js +1 -0
- package/dist/v1/assets/{finance-BmJfWVZA.js → finance-CDmmEQ6D.js} +1 -1
- package/dist/v1/assets/{index-BIawOabw.js → index-3wrKkicp.js} +1 -1
- package/dist/v1/assets/{index-fVTcahcw.js → index-5jmhc_WJ.js} +1 -1
- package/dist/v1/assets/{index-CgRhqST3.js → index-BAIk2bJI.js} +6 -6
- package/dist/v1/assets/{index-Bu6jnAxV.js → index-BkIaOmZl.js} +1 -1
- package/dist/v1/assets/index-C3PnqudL.js +1 -0
- package/dist/v1/assets/index-C6J2fT7X.css +1 -0
- package/dist/v1/assets/{index-C4q5R2Vz.js → index-CKBYPuNF.js} +1 -1
- package/dist/v1/assets/index-CfYDgyJU.css +1 -0
- package/dist/v1/assets/{index-BV_BYr-C.js → index-Cv-G3h2X.js} +1 -1
- package/dist/v1/assets/index-D1_ewaYL.js +1 -0
- package/dist/v1/assets/index-DFB1HCj9.css +1 -0
- package/dist/v1/assets/index-DMxYpt-G.css +1 -0
- package/dist/v1/assets/{index-BlqzNCWr.js → index-DYwtbQAS.js} +1 -1
- package/dist/v1/assets/{index-pAUNIIfW.js → index-Do7j_-cS.js} +1 -1
- package/dist/v1/assets/{index-ieyVAgNg.js → index-Gu2dtOGK.js} +1 -1
- package/dist/v1/assets/index-bznbZtOH.js +1 -0
- package/dist/v1/assets/{index9-DHG273u1.js → index9-U7jDjeNY.js} +1 -1
- package/dist/v1/assets/{input-shims-DFrNt_8z.js → input-shims-D4JWcw13.js} +1 -1
- package/dist/v1/assets/{invite-mvPm5q_h.js → invite-Iwm3Plm-.js} +1 -1
- package/dist/v1/assets/{IonPullList-C4gISBuG.js → ion-pull-list-BQyjPCTm.js} +1 -1
- package/dist/v1/assets/{ios.transition-DNSye4Ez.js → ios.transition-DaMfR95M.js} +1 -1
- package/dist/v1/assets/{keyboard2-Wyr5n6g4.js → keyboard2-CjO5GU2n.js} +1 -1
- package/dist/v1/assets/{lottery-HPvACrmy.js → lottery-DTRLxFmW.js} +1 -1
- package/dist/v1/assets/{index-CzvJb6hW.js → lottery-result-L_hcenis.js} +1 -1
- package/dist/v1/assets/{md.transition-DlghHbzA.js → md.transition-BVrQMLIN.js} +1 -1
- package/dist/v1/assets/{notice-Bw1FygVp.js → notice-CV2t-EXG.js} +1 -1
- package/dist/v1/assets/password-CJPuRZdM.css +1 -0
- package/dist/v1/assets/password-D03Xlmo2.js +1 -0
- package/dist/v1/assets/{recharge-gUmR0ITz.js → recharge-Cj1AnYB6.js} +1 -1
- package/dist/v1/assets/{rule-DJ_XvY6V.js → rule-C0Gxi65h.js} +1 -1
- package/dist/v1/assets/{search-CwT0eZCw.js → search-Bm2OsnWZ.js} +1 -1
- package/dist/v1/assets/{setting-D1To_Uac.js → setting-NZrw_xU6.js} +1 -1
- package/dist/v1/assets/statistics-Da_EW5Vx.js +1 -0
- package/dist/v1/assets/statistics-TclkEg7x.css +1 -0
- package/dist/v1/assets/{status-tap-CJoqupzm.js → status-tap-Cr7IifCg.js} +1 -1
- package/dist/v1/assets/{swipe-back-Cz3hcaOA.js → swipe-back-ByZ8YIKO.js} +1 -1
- package/dist/v1/assets/{usdt-xB8NkuA0.js → usdt-CWMFexEE.js} +1 -1
- package/dist/v1/assets/{wechat-pay-Bx7NO-FV.js → wechat-pay-BaIOMe2A.js} +1 -1
- package/dist/v1/assets/{withdraw-CQnCJaYJ.js → withdraw-DlZ4PSq1.js} +1 -1
- package/dist/v1/config.js +1 -1
- package/dist/v1/index.html +1 -1
- package/package.json +1 -1
- package/dist/admin/v2/assets/MyUploader-P3YvLtmo.js +0 -1
- package/dist/admin/v2/assets/index-1Rbc-VY-.js +0 -1
- package/dist/admin/v2/assets/index-OLBT6Msk.css +0 -1
- package/dist/admin/v2/assets/index-dOJ7uTyx.js +0 -1
- package/dist/v1/assets/BetRecord-CQMzKtk1.css +0 -1
- package/dist/v1/assets/BetRecord-CgL702Ar.js +0 -1
- package/dist/v1/assets/ColorAmount-BITvfw1H.js +0 -1
- package/dist/v1/assets/ColorAmount-QfUZvuXx.css +0 -1
- package/dist/v1/assets/DetailPK-DYFOeDQI.css +0 -1
- package/dist/v1/assets/DetailPK.vue_vue_type_style_index_0_scoped_b4b22b85_lang-ZBGgCSEe.js +0 -1
- package/dist/v1/assets/FinanceRecord-3kwcgnpo.css +0 -1
- package/dist/v1/assets/FinanceRecord-DAlDNR1V.js +0 -1
- package/dist/v1/assets/MoneyRecord-B43medf8.css +0 -1
- package/dist/v1/assets/MoneyRecord-CZ7t59HX.js +0 -1
- package/dist/v1/assets/agent-BMJlIJkB.js +0 -1
- package/dist/v1/assets/agent-DezTzMXW.css +0 -1
- package/dist/v1/assets/agent-_8KZIOpu.js +0 -1
- package/dist/v1/assets/agent-members-KJpOy60m.js +0 -1
- package/dist/v1/assets/agent-members-e0ucL41S.css +0 -1
- package/dist/v1/assets/alipay-DrCjH2kd.js +0 -1
- package/dist/v1/assets/amount-wiyeWm9Y.js +0 -1
- package/dist/v1/assets/card-content-B9t-Byge.js +0 -1
- package/dist/v1/assets/card-q1U5VGBy.js +0 -1
- package/dist/v1/assets/index-BQAfIWES.js +0 -1
- package/dist/v1/assets/index-BbUsl8U_.css +0 -1
- package/dist/v1/assets/index-BmVT-9DW.css +0 -1
- package/dist/v1/assets/index-CE4jlwew.js +0 -1
- package/dist/v1/assets/index-ChIpdd0M.css +0 -1
- package/dist/v1/assets/index-H66qGAc6.js +0 -1
- package/dist/v1/assets/index-nq3mK4jh.css +0 -1
- package/dist/v1/assets/password-CN36yEZl.css +0 -1
- package/dist/v1/assets/password-D9OdUQSH.js +0 -1
- package/dist/v1/assets/statistics-Cmnarkz6.js +0 -1
- package/dist/v1/assets/statistics-DgZ2Udbk.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DYwtbQAS.js","assets/index-BkIaOmZl.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/index-DA3r05JQ.css","assets/index-DmMcfsSN.js","assets/index-BJMLJdGz.css","assets/search-Bm2OsnWZ.js","assets/search-CJ8JDVr1.css","assets/index-Cv-G3h2X.js","assets/IVGridItem-Cw9JRNV-.js","assets/IVGridItem-D3KZu0Bh.css","assets/GameItem-G_xFbUgt.js","assets/GameItem-DZF1b2w2.css","assets/amount-BbHuZgrl.js","assets/notice-CV2t-EXG.js","assets/index-Bja8WmXv.css","assets/index-Do7j_-cS.js","assets/index-BWOM_OPq.css","assets/index-3wrKkicp.js","assets/index-BjWn6Jpl.css","assets/index-5jmhc_WJ.js","assets/index-XYR_Jl9m.css","assets/index-D1_ewaYL.js","assets/ChatBubble-DPk3Tiq-.js","assets/lottery-D-PRJkaF.js","assets/lottery-result-L_hcenis.js","assets/BetSelection-wzrR9ySf.js","assets/isObject-CrizDe3l.js","assets/BetSelection-BH0RPvK_.css","assets/bet-DwsCe44A.js","assets/lottery-DTRLxFmW.js","assets/index-CfYDgyJU.css","assets/rule-C0Gxi65h.js","assets/rule-CLXtpkVX.css","assets/index-C3PnqudL.js","assets/ion-pull-list-BQyjPCTm.js","assets/index-C6J2fT7X.css","assets/index-CKBYPuNF.js","assets/index-CB-IaiwI.css","assets/index-bznbZtOH.js","assets/index-DFB1HCj9.css","assets/amount-DmZ2zkDA.js","assets/amount-CungToST.css","assets/alipay-Ba2hVamm.js","assets/bind-pay-qr-BMZU1Iad.js","assets/card-CU5_1py_.js","assets/card-title-4dVvvqGF.js","assets/wechat-pay-BaIOMe2A.js","assets/bank-DTWXJUCo.js","assets/usdt-CWMFexEE.js","assets/recharge-Cj1AnYB6.js","assets/index-Gu2dtOGK.js","assets/card-content-cQkVyLcW.js","assets/finance-CDmmEQ6D.js","assets/withdraw-DlZ4PSq1.js","assets/withdraw-C7jHnFzp.css","assets/chat-Cr-IZzh7.js","assets/chat-Bkath4Sw.css","assets/BetRecord-CwxruTm5.js","assets/math-D-1citcT.js","assets/BetRecord-DYcmFUla.css","assets/MoneyRecord-D8MmP0h_.js","assets/MoneyRecord-1i-c5vI8.css","assets/FinanceRecord-BUZT7D9W.js","assets/FinanceRecord-CMfhs0wD.css","assets/invite-Iwm3Plm-.js","assets/invite-B_VnZqBB.css","assets/agent-cQj33ON-.js","assets/agent-vXLnXjga.js","assets/bill-item-CzOtlt26.js","assets/agent-members-tRpCVBp9.js","assets/detail-common-U21qbDZx.js","assets/agent-members-jq4KfIr5.css","assets/statistics-Da_EW5Vx.js","assets/statistics-TclkEg7x.css","assets/setting-NZrw_xU6.js","assets/setting-Cx5t_dw3.css","assets/password-D03Xlmo2.js","assets/password-CJPuRZdM.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
|
|
3
3
|
* @vue/shared v3.5.16
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -87,7 +87,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BlqzNCWr.
|
|
|
87
87
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
88
88
|
*/const ST=()=>{document.addEventListener("backbutton",()=>{})},CT=()=>{const e=document;let t=!1;e.addEventListener("backbutton",()=>{if(t)return;let n=0,i=[];const o=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(a,l){i.push({priority:a,handler:l,id:n++})}}});e.dispatchEvent(o);const r=async a=>{try{if(a!=null&&a.handler){const l=a.handler(s);l!=null&&await l}}catch(l){console.error(l)}},s=()=>{if(i.length>0){let a={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};i.forEach(l=>{l.priority>=a.priority&&(a=l)}),t=!0,i=i.filter(l=>l.id!==a.id),r(a).then(()=>t=!1)}};s()})},m0=100,ET=99,$T=Object.freeze(Object.defineProperty({__proto__:null,MENU_BACK_BUTTON_PRIORITY:ET,OVERLAY_BACK_BUTTON_PRIORITY:m0,blockHardwareBackButton:ST,startHardwareBackButton:CT},Symbol.toStringTag,{value:"Module"}));/*!
|
|
89
89
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
90
|
-
*/let uu=0,TT=0;const fu=new WeakMap,nc=e=>({create(t){return IT(e,t)},dismiss(t,n,i){return LT(document,t,n,e,i)},async getTop(){return As(document,e)}}),_T=nc("ion-alert"),AT=nc("ion-action-sheet"),OT=nc("ion-loading"),RT=nc("ion-toast"),ic=e=>{typeof document<"u"&&BT(document);const t=uu++;e.overlayIndex=t},oc=e=>(e.hasAttribute("id")||(e.id=`ion-overlay-${++TT}`),e.id),IT=(e,t)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(e).then(()=>{const n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,Object.assign(Object.assign({},t),{hasController:!0})),b0(document).appendChild(n),new Promise(i=>Qi(n,i))}):Promise.resolve(),_s='[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])',Fp=(e,t)=>{let n=e.querySelector(_s);const i=n==null?void 0:n.shadowRoot;i&&(n=i.querySelector(_s)||n),n?TE(n):t.focus()},PT=e=>e.classList.contains("overlay-hidden"),Hp=(e,t)=>{const n=Array.from(e.querySelectorAll(_s));let i=n.length>0?n[n.length-1]:null;const o=i==null?void 0:i.shadowRoot;o&&(i=o.querySelector(_s)||i),i?i.focus():t.focus()},DT=(e,t)=>{const n=As(t,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),i=e.target;if(!n||!i||n.classList.contains("ion-disable-focus-trap"))return;const o=()=>{if(n===i)n.lastFocus=void 0;else{const s=Ao(n);if(!s.contains(i))return;const a=s.querySelector(".ion-overlay-wrapper");if(!a)return;if(a.contains(i))n.lastFocus=i;else{const l=n.lastFocus;Fp(a,n),l===t.activeElement&&Hp(a,n),n.lastFocus=t.activeElement}}},r=()=>{if(n.contains(i))n.lastFocus=i;else{const s=n.lastFocus;Fp(n,n),s===t.activeElement&&Hp(n,n),n.lastFocus=t.activeElement}};n.shadowRoot?r():o()},BT=e=>{uu===0&&(uu=1,e.addEventListener("focus",t=>{DT(t,e)},!0),e.addEventListener("ionBackButton",t=>{const n=As(e);n!=null&&n.backdropDismiss&&t.detail.register(m0,()=>n.dismiss(void 0,Sr))}),e.addEventListener("keydown",t=>{if(t.key==="Escape"){const n=As(e);n!=null&&n.backdropDismiss&&n.dismiss(void 0,Sr)}}))},LT=(e,t,n,i,o)=>{const r=As(e,i,o);return r?r.dismiss(t,n):Promise.reject("overlay does not exist")},zT=(e,t)=>(t===void 0&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(n=>n.overlayIndex>0)),As=(e,t,n)=>{const i=zT(e,t).filter(o=>!PT(o));return n===void 0?i[i.length-1]:i.find(o=>o.id===n)},g0=(e=!1)=>{const n=b0(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");n&&(e?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"))},rc=async(e,t,n,i,o)=>{var r,s;if(e.presented)return;g0(!0),e.presented=!0,e.willPresent.emit(),(r=e.willPresentShorthand)===null||r===void 0||r.emit();const a=xe(e),l=e.enterAnimation?e.enterAnimation:_e.get(t,a==="ios"?n:i);await v0(e,l,e.el,o)&&(e.didPresent.emit(),(s=e.didPresentShorthand)===null||s===void 0||s.emit()),e.el.tagName!=="ION-TOAST"&&MT(e.el),e.keyboardClose&&(document.activeElement===null||!e.el.contains(document.activeElement))&&e.el.focus()},MT=async e=>{let t=document.activeElement;if(!t)return;const n=t==null?void 0:t.shadowRoot;n&&(t=n.querySelector(_s)||t),await e.onDidDismiss(),t.focus()},sc=async(e,t,n,i,o,r,s)=>{var a,l;if(!e.presented)return!1;g0(!1),e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n}),(a=e.willDismissShorthand)===null||a===void 0||a.emit({data:t,role:n});const c=xe(e),d=e.leaveAnimation?e.leaveAnimation:_e.get(i,c==="ios"?o:r);n!==NT&&await v0(e,d,e.el,s),e.didDismiss.emit({data:t,role:n}),(l=e.didDismissShorthand)===null||l===void 0||l.emit({data:t,role:n}),fu.delete(e),e.el.classList.add("overlay-hidden"),e.el.style.removeProperty("pointer-events"),e.el.lastFocus!==void 0&&(e.el.lastFocus=void 0)}catch(c){console.error(c)}return e.el.remove(),!0},b0=e=>e.querySelector("ion-app")||e.body,v0=async(e,t,n,i)=>{n.classList.remove("overlay-hidden");const o=e.el,r=t(o,i);(!e.animated||!_e.getBoolean("animated",!0))&&r.duration(0),e.keyboardClose&&r.beforeAddWrite(()=>{const a=n.ownerDocument.activeElement;a!=null&&a.matches("input,ion-input, ion-textarea")&&a.blur()});const s=fu.get(e)||[];return fu.set(e,[...s,r]),await r.play(),!0},eo=(e,t)=>{let n;const i=new Promise(o=>n=o);return FT(e,t,o=>{n(o.detail)}),i},FT=(e,t,n)=>{const i=o=>{EE(e,t,i),n(o)};CE(e,t,i)},kr=e=>e==="cancel"||e===Sr,HT=e=>e(),us=(e,t)=>{if(typeof e=="function")return _e.get("_zoneGate",HT)(()=>{try{return e(t)}catch(i){throw i}})},Sr="backdrop",NT="gesture",ac=e=>{let t=!1,n;const i=kT(),o=(a=!1)=>{if(n&&!a)return{delegate:n,inline:t};const{el:l,hasController:c,delegate:d}=e;return t=l.parentNode!==null&&!c,n=t?d||i:d,{inline:t,delegate:n}};return{attachViewToDom:async a=>{const{delegate:l}=o(!0);if(l)return await l.attachViewToDom(e.el,a);const{hasController:c}=e;if(c&&a!==void 0)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:a}=o();a&&e.el!==void 0&&a.removeViewFromDom(e.el.parentElement,e.el)}}},lc=()=>{let e;const t=()=>{e&&(e(),e=void 0)};return{addClickListener:(i,o)=>{t();const r=o!==void 0?document.getElementById(o):null;if(!r){vn(`A trigger element with the ID "${o}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,i);return}e=((a,l)=>{const c=()=>{l.present()};return a.addEventListener("click",c),()=>{a.removeEventListener("click",c)}})(r,i)},removeClickListener:t}},zf="ionViewWillEnter",Mf="ionViewDidEnter",cc="ionViewWillLeave",dc="ionViewDidLeave",sd="ionViewWillUnload",VT=()=>Re(()=>import("./ios.transition-
|
|
90
|
+
*/let uu=0,TT=0;const fu=new WeakMap,nc=e=>({create(t){return IT(e,t)},dismiss(t,n,i){return LT(document,t,n,e,i)},async getTop(){return As(document,e)}}),_T=nc("ion-alert"),AT=nc("ion-action-sheet"),OT=nc("ion-loading"),RT=nc("ion-toast"),ic=e=>{typeof document<"u"&&BT(document);const t=uu++;e.overlayIndex=t},oc=e=>(e.hasAttribute("id")||(e.id=`ion-overlay-${++TT}`),e.id),IT=(e,t)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(e).then(()=>{const n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,Object.assign(Object.assign({},t),{hasController:!0})),b0(document).appendChild(n),new Promise(i=>Qi(n,i))}):Promise.resolve(),_s='[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])',Fp=(e,t)=>{let n=e.querySelector(_s);const i=n==null?void 0:n.shadowRoot;i&&(n=i.querySelector(_s)||n),n?TE(n):t.focus()},PT=e=>e.classList.contains("overlay-hidden"),Hp=(e,t)=>{const n=Array.from(e.querySelectorAll(_s));let i=n.length>0?n[n.length-1]:null;const o=i==null?void 0:i.shadowRoot;o&&(i=o.querySelector(_s)||i),i?i.focus():t.focus()},DT=(e,t)=>{const n=As(t,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),i=e.target;if(!n||!i||n.classList.contains("ion-disable-focus-trap"))return;const o=()=>{if(n===i)n.lastFocus=void 0;else{const s=Ao(n);if(!s.contains(i))return;const a=s.querySelector(".ion-overlay-wrapper");if(!a)return;if(a.contains(i))n.lastFocus=i;else{const l=n.lastFocus;Fp(a,n),l===t.activeElement&&Hp(a,n),n.lastFocus=t.activeElement}}},r=()=>{if(n.contains(i))n.lastFocus=i;else{const s=n.lastFocus;Fp(n,n),s===t.activeElement&&Hp(n,n),n.lastFocus=t.activeElement}};n.shadowRoot?r():o()},BT=e=>{uu===0&&(uu=1,e.addEventListener("focus",t=>{DT(t,e)},!0),e.addEventListener("ionBackButton",t=>{const n=As(e);n!=null&&n.backdropDismiss&&t.detail.register(m0,()=>n.dismiss(void 0,Sr))}),e.addEventListener("keydown",t=>{if(t.key==="Escape"){const n=As(e);n!=null&&n.backdropDismiss&&n.dismiss(void 0,Sr)}}))},LT=(e,t,n,i,o)=>{const r=As(e,i,o);return r?r.dismiss(t,n):Promise.reject("overlay does not exist")},zT=(e,t)=>(t===void 0&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(n=>n.overlayIndex>0)),As=(e,t,n)=>{const i=zT(e,t).filter(o=>!PT(o));return n===void 0?i[i.length-1]:i.find(o=>o.id===n)},g0=(e=!1)=>{const n=b0(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");n&&(e?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"))},rc=async(e,t,n,i,o)=>{var r,s;if(e.presented)return;g0(!0),e.presented=!0,e.willPresent.emit(),(r=e.willPresentShorthand)===null||r===void 0||r.emit();const a=xe(e),l=e.enterAnimation?e.enterAnimation:_e.get(t,a==="ios"?n:i);await v0(e,l,e.el,o)&&(e.didPresent.emit(),(s=e.didPresentShorthand)===null||s===void 0||s.emit()),e.el.tagName!=="ION-TOAST"&&MT(e.el),e.keyboardClose&&(document.activeElement===null||!e.el.contains(document.activeElement))&&e.el.focus()},MT=async e=>{let t=document.activeElement;if(!t)return;const n=t==null?void 0:t.shadowRoot;n&&(t=n.querySelector(_s)||t),await e.onDidDismiss(),t.focus()},sc=async(e,t,n,i,o,r,s)=>{var a,l;if(!e.presented)return!1;g0(!1),e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n}),(a=e.willDismissShorthand)===null||a===void 0||a.emit({data:t,role:n});const c=xe(e),d=e.leaveAnimation?e.leaveAnimation:_e.get(i,c==="ios"?o:r);n!==NT&&await v0(e,d,e.el,s),e.didDismiss.emit({data:t,role:n}),(l=e.didDismissShorthand)===null||l===void 0||l.emit({data:t,role:n}),fu.delete(e),e.el.classList.add("overlay-hidden"),e.el.style.removeProperty("pointer-events"),e.el.lastFocus!==void 0&&(e.el.lastFocus=void 0)}catch(c){console.error(c)}return e.el.remove(),!0},b0=e=>e.querySelector("ion-app")||e.body,v0=async(e,t,n,i)=>{n.classList.remove("overlay-hidden");const o=e.el,r=t(o,i);(!e.animated||!_e.getBoolean("animated",!0))&&r.duration(0),e.keyboardClose&&r.beforeAddWrite(()=>{const a=n.ownerDocument.activeElement;a!=null&&a.matches("input,ion-input, ion-textarea")&&a.blur()});const s=fu.get(e)||[];return fu.set(e,[...s,r]),await r.play(),!0},eo=(e,t)=>{let n;const i=new Promise(o=>n=o);return FT(e,t,o=>{n(o.detail)}),i},FT=(e,t,n)=>{const i=o=>{EE(e,t,i),n(o)};CE(e,t,i)},kr=e=>e==="cancel"||e===Sr,HT=e=>e(),us=(e,t)=>{if(typeof e=="function")return _e.get("_zoneGate",HT)(()=>{try{return e(t)}catch(i){throw i}})},Sr="backdrop",NT="gesture",ac=e=>{let t=!1,n;const i=kT(),o=(a=!1)=>{if(n&&!a)return{delegate:n,inline:t};const{el:l,hasController:c,delegate:d}=e;return t=l.parentNode!==null&&!c,n=t?d||i:d,{inline:t,delegate:n}};return{attachViewToDom:async a=>{const{delegate:l}=o(!0);if(l)return await l.attachViewToDom(e.el,a);const{hasController:c}=e;if(c&&a!==void 0)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:a}=o();a&&e.el!==void 0&&a.removeViewFromDom(e.el.parentElement,e.el)}}},lc=()=>{let e;const t=()=>{e&&(e(),e=void 0)};return{addClickListener:(i,o)=>{t();const r=o!==void 0?document.getElementById(o):null;if(!r){vn(`A trigger element with the ID "${o}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,i);return}e=((a,l)=>{const c=()=>{l.present()};return a.addEventListener("click",c),()=>{a.removeEventListener("click",c)}})(r,i)},removeClickListener:t}},zf="ionViewWillEnter",Mf="ionViewDidEnter",cc="ionViewWillLeave",dc="ionViewDidLeave",sd="ionViewWillUnload",VT=()=>Re(()=>import("./ios.transition-DaMfR95M.js"),[]),jT=()=>Re(()=>import("./md.transition-BVrQMLIN.js"),[]),y0=e=>new Promise((t,n)=>{st(()=>{qT(e),UT(e).then(i=>{i.animation&&i.animation.destroy(),Np(e),t(i)},i=>{Np(e),n(i)})})}),qT=e=>{const t=e.enteringEl,n=e.leavingEl;ZT(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),pu(t,!1),t.style.setProperty("pointer-events","none"),n&&(pu(n,!1),n.style.setProperty("pointer-events","none"))},UT=async e=>{const t=await WT(e);return t&&dC.isBrowser?YT(t,e):KT(e)},Np=e=>{const t=e.enteringEl,n=e.leavingEl;t.classList.remove("ion-page-invisible"),t.style.removeProperty("pointer-events"),n!==void 0&&(n.classList.remove("ion-page-invisible"),n.style.removeProperty("pointer-events"))},WT=async e=>!e.leavingEl||!e.animated||e.duration===0?void 0:e.animationBuilder?e.animationBuilder:e.mode==="ios"?(await VT()).iosTransitionAnimation:(await jT()).mdTransitionAnimation,YT=async(e,t)=>{await x0(t,!0);const n=e(t.baseEl,t);w0(t.enteringEl,t.leavingEl);const i=await GT(n,t);return t.progressCallback&&t.progressCallback(void 0),i&&k0(t.enteringEl,t.leavingEl),{hasCompleted:i,animation:n}},KT=async e=>{const t=e.enteringEl,n=e.leavingEl;return await x0(e,!1),w0(t,n),k0(t,n),{hasCompleted:!0}},x0=async(e,t)=>{(e.deepWait!==void 0?e.deepWait:t)&&await Promise.all([hu(e.enteringEl),hu(e.leavingEl)]),await XT(e.viewIsReady,e.enteringEl)},XT=async(e,t)=>{e&&await e(t)},GT=(e,t)=>{const n=t.progressCallback,i=new Promise(o=>{e.onFinish(r=>o(r===1))});return n?(e.progressStart(!0),n(e)):e.play(),i},w0=(e,t)=>{yi(t,cc),yi(e,zf)},k0=(e,t)=>{yi(e,Mf),yi(t,dc)},yi=(e,t)=>{if(e){const n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},hu=async e=>{const t=e;if(t){if(t.componentOnReady!=null){if(await t.componentOnReady()!=null)return}else if(t.__registerHost!=null){await new Promise(i=>Zt(i));return}await Promise.all(Array.from(t.children).map(hu))}},pu=(e,t)=>{t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},ZT=(e,t,n)=>{e!==void 0&&(e.style.zIndex=n==="back"?"99":"101"),t!==void 0&&(t.style.zIndex="100")},BN=e=>{if(e.classList.contains("ion-page"))return e;const t=e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");return t||e};/*!
|
|
91
91
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
92
92
|
*/const gt=typeof window<"u"?window:void 0,ad=typeof document<"u"?document:void 0;/*!
|
|
93
93
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
@@ -136,7 +136,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
136
136
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
137
137
|
*/const sA=rA;/*!
|
|
138
138
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
139
|
-
*/const Is=(e,t,n,i,o)=>lA(e[1],t[1],n[1],i[1],o).map(r=>aA(e[0],t[0],n[0],i[0],r)),aA=(e,t,n,i,o)=>{const r=3*t*Math.pow(o-1,2),s=-3*n*o+3*n+i*o,a=e*Math.pow(o-1,3);return o*(r+o*s)-a},lA=(e,t,n,i,o)=>(e-=o,t-=o,n-=o,i-=o,dA(i-3*n+3*t-e,3*n-6*t+3*e,3*t-3*e,e).filter(s=>s>=0&&s<=1)),cA=(e,t,n)=>{const i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]},dA=(e,t,n,i)=>{if(e===0)return cA(t,n,i);t/=e,n/=e,i/=e;const o=(3*n-t*t)/3,r=(2*t*t*t-9*t*n+27*i)/27;if(o===0)return[Math.pow(-r,1/3)];if(r===0)return[Math.sqrt(-o),-Math.sqrt(-o)];const s=Math.pow(r/2,2)+Math.pow(o/3,3);if(s===0)return[Math.pow(r/2,1/2)-t/3];if(s>0)return[Math.pow(-(r/2)+Math.sqrt(s),1/3)-Math.pow(r/2+Math.sqrt(s),1/3)-t/3];const a=Math.sqrt(Math.pow(-(o/3),3)),l=Math.acos(-(r/(2*Math.sqrt(Math.pow(-(o/3),3))))),c=2*Math.pow(a,1/3);return[c*Math.cos(l/3)-t/3,c*Math.cos((l+2*Math.PI)/3)-t/3,c*Math.cos((l+4*Math.PI)/3)-t/3]},$0=1,T0=2,Cl=3;class xu{constructor(t,n){this.component=t,this.params=n,this.state=$0}async init(t){if(this.state=T0,!this.element){const n=this.component;this.element=await p0(this.delegate,t,n,["ion-page","ion-page-invisible"],this.params)}}_destroy(){Qt(this.state!==Cl,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=Cl}}const Kp=(e,t,n)=>!e||e.component!==t?!1:l0(e.params,n),Xp=(e,t)=>e?e instanceof xu?e:new xu(e,t):null,uA=e=>e.map(t=>t instanceof xu?t:"component"in t?Xp(t.component,t.componentProps===null?void 0:t.componentProps):Xp(t,void 0)).filter(t=>t!==null),fA=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}",hA=ze(class extends Me{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=ke(this,"ionNavWillLoad",7),this.ionNavWillChange=ke(this,"ionNavWillChange",3),this.ionNavDidChange=ke(this,"ionNavDidChange",3),this.transInstr=[],this.animationEnabled=!0,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],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.useRouter||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 t=xe(this);this.swipeGesture=_e.getBoolean("swipeBackEnabled",t==="ios")}this.ionNavWillLoad.emit()}async componentDidLoad(){this.rootChanged(),this.gesture=(await Re(async()=>{const{createSwipeBackGesture:t}=await import("./swipe-back-Cz3hcaOA.js");return{createSwipeBackGesture:t}},[])).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 t of this.views)yi(t.element,sd),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,n,i,o){return this.insert(-1,t,n,i,o)}insert(t,n,i,o,r){return this.insertPages(t,[{component:n,componentProps:i}],o,r)}insertPages(t,n,i,o){return this.queueTrns({insertStart:t,insertViews:n,opts:i},o)}pop(t,n){return this.removeIndex(-1,1,t,n)}popTo(t,n,i){const o={removeStart:-1,removeCount:-1,opts:n};return typeof t=="object"&&t.component?(o.removeView=t,o.removeStart=1):typeof t=="number"&&(o.removeStart=t+1),this.queueTrns(o,i)}popToRoot(t,n){return this.removeIndex(1,-1,t,n)}removeIndex(t,n=1,i,o){return this.queueTrns({removeStart:t,removeCount:n,opts:i},o)}setRoot(t,n,i,o){return this.setPages([{component:t,componentProps:n}],i,o)}setPages(t,n,i){return n??(n={}),n.animated!==!0&&(n.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:n},i)}setRouteId(t,n,i,o){const r=this.getActiveSync();if(Kp(r,t,n))return Promise.resolve({changed:!1,element:r.element});let s;const a=new Promise(d=>s=d);let l;const c={updateURL:!1,viewIsReady:d=>{let u;const f=new Promise(p=>u=p);return s({changed:!0,element:d,markVisible:async()=>{u(),await l}}),f}};if(i==="root")l=this.setRoot(t,n,c);else{const d=this.views.find(u=>Kp(u,t,n));d?l=this.popTo(d,Object.assign(Object.assign({},c),{direction:"back",animationBuilder:o})):i==="forward"?l=this.push(t,n,Object.assign(Object.assign({},c),{animationBuilder:o})):i==="back"&&(l=this.setRoot(t,n,Object.assign(Object.assign({},c),{direction:"back",animated:!0,animationBuilder:o})))}return a}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!!(t&&this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const n=this.views,i=n.indexOf(t);return i>0?n[i-1]:void 0}async queueTrns(t,n){var i,o;if(this.isTransitioning&&(!((i=t.opts)===null||i===void 0)&&i.skipIfBusy))return!1;const r=new Promise((s,a)=>{t.resolve=s,t.reject=a});if(t.done=n,t.opts&&t.opts.updateURL!==!1&&this.useRouter){const s=document.querySelector("ion-router");if(s){const a=await s.canTransition();if(a===!1)return!1;if(typeof a=="string")return s.push(a,t.opts.direction||"back"),!1}}return((o=t.insertViews)===null||o===void 0?void 0:o.length)===0&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),r}success(t,n){if(this.destroyed){this.fireError("nav controller was destroyed",n);return}if(n.done&&n.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),n.resolve(t.hasCompleted),n.opts.updateURL!==!1&&this.useRouter){const i=document.querySelector("ion-router");if(i){const o=t.direction==="back"?"back":"forward";i.navChanged(o)}}}failed(t,n){if(this.destroyed){this.fireError("nav controller was destroyed",n);return}this.transInstr.length=0,this.fireError(t,n)}fireError(t,n){n.done&&n.done(!1,!1,t),n.reject&&!this.destroyed?n.reject(t):n.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return t?(this.runTransition(t),!0):!1}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const n=this.getActiveSync(),i=this.getEnteringView(t,n);if(!n&&!i)throw new Error("no views in the stack to be removed");i&&i.state===$0&&await i.init(this.el),this.postViewInit(i,n,t);const o=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&i!==n;o&&t.opts&&n&&(t.opts.direction==="back"&&(t.opts.animationBuilder=t.opts.animationBuilder||(i==null?void 0:i.animationBuilder)),n.animationBuilder=t.opts.animationBuilder);let r;o?r=await this.transition(i,n,t):r={hasCompleted:!0,requiresTransition:!1},this.success(r,t),this.ionNavDidChange.emit()}catch(n){this.failed(n,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var n,i,o;const r=this.views.length;if((n=t.opts)!==null&&n!==void 0||(t.opts={}),(i=(o=t.opts).delegate)!==null&&i!==void 0||(o.delegate=this.delegate),t.removeView!==void 0){Qt(t.removeStart!==void 0,"removeView needs removeStart"),Qt(t.removeCount!==void 0,"removeView needs removeCount");const l=this.views.indexOf(t.removeView);if(l<0)throw new Error("removeView was not found");t.removeStart+=l}t.removeStart!==void 0&&(t.removeStart<0&&(t.removeStart=r-1),t.removeCount<0&&(t.removeCount=r-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===r),t.insertViews&&((t.insertStart<0||t.insertStart>r)&&(t.insertStart=r),t.enteringRequiresTransition=t.insertStart===r);const s=t.insertViews;if(!s)return;Qt(s.length>0,"length can not be zero");const a=uA(s);if(a.length===0)throw new Error("invalid views to insert");for(const l of a){l.delegate=t.opts.delegate;const c=l.nav;if(c&&c!==this)throw new Error("inserted view was already inserted");if(l.state===Cl)throw new Error("inserted view was already destroyed")}t.insertViews=a}getEnteringView(t,n){const i=t.insertViews;if(i!==void 0)return i[i.length-1];const o=t.removeStart;if(o!==void 0){const r=this.views,s=o+t.removeCount;for(let a=r.length-1;a>=0;a--){const l=r[a];if((a<o||a>=s)&&l!==n)return l}}}postViewInit(t,n,i){var o,r,s;Qt(n||t,"Both leavingView and enteringView are null"),Qt(i.resolve,"resolve must be valid"),Qt(i.reject,"reject must be valid");const a=i.opts,{insertViews:l,removeStart:c,removeCount:d}=i;let u;if(c!==void 0&&d!==void 0){Qt(c>=0,"removeStart can not be negative"),Qt(d>=0,"removeCount can not be negative"),u=[];for(let p=c;p<c+d;p++){const b=this.views[p];b!==void 0&&b!==t&&b!==n&&u.push(b)}(o=a.direction)!==null&&o!==void 0||(a.direction="back")}const f=this.views.length+((r=l==null?void 0:l.length)!==null&&r!==void 0?r:0)-(d??0);if(Qt(f>=0,"final balance can not be negative"),f===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(l){let p=i.insertStart;for(const b of l)this.insertViewAt(b,p),p++;i.enteringRequiresTransition&&((s=a.direction)!==null&&s!==void 0||(a.direction="forward"))}if(u&&u.length>0){for(const p of u)yi(p.element,cc),yi(p.element,dc),yi(p.element,sd);for(const p of u)this.destroyView(p)}}async transition(t,n,i){const o=i.opts,r=o.progressAnimation?u=>this.sbAni=u:void 0,s=xe(this),a=t.element,l=n&&n.element,c=Object.assign(Object.assign({mode:s,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:r,animated:this.animated&&_e.getBoolean("animated",!0),enteringEl:a,leavingEl:l},o),{animationBuilder:o.animationBuilder||this.animation||_e.get("navAnimation")}),{hasCompleted:d}=await y0(c);return this.transitionFinish(d,t,n,o)}transitionFinish(t,n,i,o){const r=t?n:i;return r&&this.unmountInactiveViews(r),{hasCompleted:t,requiresTransition:!0,enteringView:n,leavingView:i,direction:o.direction}}insertViewAt(t,n){const i=this.views,o=i.indexOf(t);o>-1?(Qt(t.nav===this,"view is not part of the nav"),i.splice(o,1),i.splice(n,0,t)):(Qt(!t.nav,"nav is used"),t.nav=this,i.splice(n,0,t))}removeView(t){Qt(t.state===T0||t.state===Cl,"view state should be loaded or destroyed");const n=this.views,i=n.indexOf(t);Qt(i>-1,"view must be part of the stack"),i>=0&&n.splice(i,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const n=this.views,i=n.indexOf(t);for(let o=n.length-1;o>=0;o--){const r=n[o],s=r.element;s&&(o>i?(yi(s,sd),this.destroyView(r)):o<i&&pu(s,!0))}}canStart(){return!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.animationEnabled&&this.canGoBackSync()}onStart(){this.pop({direction:"back",progressAnimation:!0})}onMove(t){this.sbAni&&this.sbAni.progressStep(t)}onEnd(t,n,i){if(this.sbAni){this.animationEnabled=!1,this.sbAni.onFinish(()=>{this.animationEnabled=!0},{oneTimeCallback:!0});let o=t?-.001:.001;t?o+=Is([0,0],[.32,.72],[0,1],[1,1],n)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),o+=Is([0,0],[1,0],[.68,.28],[1,1],n)[0]),this.sbAni.progressEnd(t?1:0,o,i)}}render(){return B("slot",null)}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return fA}},[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]}]);function pA(){if(typeof customElements>"u")return;["ion-nav"].forEach(t=>{switch(t){case"ion-nav":customElements.get(t)||customElements.define(t,hA);break}})}const mA=pA;/*!
|
|
139
|
+
*/const Is=(e,t,n,i,o)=>lA(e[1],t[1],n[1],i[1],o).map(r=>aA(e[0],t[0],n[0],i[0],r)),aA=(e,t,n,i,o)=>{const r=3*t*Math.pow(o-1,2),s=-3*n*o+3*n+i*o,a=e*Math.pow(o-1,3);return o*(r+o*s)-a},lA=(e,t,n,i,o)=>(e-=o,t-=o,n-=o,i-=o,dA(i-3*n+3*t-e,3*n-6*t+3*e,3*t-3*e,e).filter(s=>s>=0&&s<=1)),cA=(e,t,n)=>{const i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]},dA=(e,t,n,i)=>{if(e===0)return cA(t,n,i);t/=e,n/=e,i/=e;const o=(3*n-t*t)/3,r=(2*t*t*t-9*t*n+27*i)/27;if(o===0)return[Math.pow(-r,1/3)];if(r===0)return[Math.sqrt(-o),-Math.sqrt(-o)];const s=Math.pow(r/2,2)+Math.pow(o/3,3);if(s===0)return[Math.pow(r/2,1/2)-t/3];if(s>0)return[Math.pow(-(r/2)+Math.sqrt(s),1/3)-Math.pow(r/2+Math.sqrt(s),1/3)-t/3];const a=Math.sqrt(Math.pow(-(o/3),3)),l=Math.acos(-(r/(2*Math.sqrt(Math.pow(-(o/3),3))))),c=2*Math.pow(a,1/3);return[c*Math.cos(l/3)-t/3,c*Math.cos((l+2*Math.PI)/3)-t/3,c*Math.cos((l+4*Math.PI)/3)-t/3]},$0=1,T0=2,Cl=3;class xu{constructor(t,n){this.component=t,this.params=n,this.state=$0}async init(t){if(this.state=T0,!this.element){const n=this.component;this.element=await p0(this.delegate,t,n,["ion-page","ion-page-invisible"],this.params)}}_destroy(){Qt(this.state!==Cl,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=Cl}}const Kp=(e,t,n)=>!e||e.component!==t?!1:l0(e.params,n),Xp=(e,t)=>e?e instanceof xu?e:new xu(e,t):null,uA=e=>e.map(t=>t instanceof xu?t:"component"in t?Xp(t.component,t.componentProps===null?void 0:t.componentProps):Xp(t,void 0)).filter(t=>t!==null),fA=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}",hA=ze(class extends Me{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=ke(this,"ionNavWillLoad",7),this.ionNavWillChange=ke(this,"ionNavWillChange",3),this.ionNavDidChange=ke(this,"ionNavDidChange",3),this.transInstr=[],this.animationEnabled=!0,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],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.useRouter||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 t=xe(this);this.swipeGesture=_e.getBoolean("swipeBackEnabled",t==="ios")}this.ionNavWillLoad.emit()}async componentDidLoad(){this.rootChanged(),this.gesture=(await Re(async()=>{const{createSwipeBackGesture:t}=await import("./swipe-back-ByZ8YIKO.js");return{createSwipeBackGesture:t}},[])).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 t of this.views)yi(t.element,sd),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,n,i,o){return this.insert(-1,t,n,i,o)}insert(t,n,i,o,r){return this.insertPages(t,[{component:n,componentProps:i}],o,r)}insertPages(t,n,i,o){return this.queueTrns({insertStart:t,insertViews:n,opts:i},o)}pop(t,n){return this.removeIndex(-1,1,t,n)}popTo(t,n,i){const o={removeStart:-1,removeCount:-1,opts:n};return typeof t=="object"&&t.component?(o.removeView=t,o.removeStart=1):typeof t=="number"&&(o.removeStart=t+1),this.queueTrns(o,i)}popToRoot(t,n){return this.removeIndex(1,-1,t,n)}removeIndex(t,n=1,i,o){return this.queueTrns({removeStart:t,removeCount:n,opts:i},o)}setRoot(t,n,i,o){return this.setPages([{component:t,componentProps:n}],i,o)}setPages(t,n,i){return n??(n={}),n.animated!==!0&&(n.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:n},i)}setRouteId(t,n,i,o){const r=this.getActiveSync();if(Kp(r,t,n))return Promise.resolve({changed:!1,element:r.element});let s;const a=new Promise(d=>s=d);let l;const c={updateURL:!1,viewIsReady:d=>{let u;const f=new Promise(p=>u=p);return s({changed:!0,element:d,markVisible:async()=>{u(),await l}}),f}};if(i==="root")l=this.setRoot(t,n,c);else{const d=this.views.find(u=>Kp(u,t,n));d?l=this.popTo(d,Object.assign(Object.assign({},c),{direction:"back",animationBuilder:o})):i==="forward"?l=this.push(t,n,Object.assign(Object.assign({},c),{animationBuilder:o})):i==="back"&&(l=this.setRoot(t,n,Object.assign(Object.assign({},c),{direction:"back",animated:!0,animationBuilder:o})))}return a}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!!(t&&this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const n=this.views,i=n.indexOf(t);return i>0?n[i-1]:void 0}async queueTrns(t,n){var i,o;if(this.isTransitioning&&(!((i=t.opts)===null||i===void 0)&&i.skipIfBusy))return!1;const r=new Promise((s,a)=>{t.resolve=s,t.reject=a});if(t.done=n,t.opts&&t.opts.updateURL!==!1&&this.useRouter){const s=document.querySelector("ion-router");if(s){const a=await s.canTransition();if(a===!1)return!1;if(typeof a=="string")return s.push(a,t.opts.direction||"back"),!1}}return((o=t.insertViews)===null||o===void 0?void 0:o.length)===0&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),r}success(t,n){if(this.destroyed){this.fireError("nav controller was destroyed",n);return}if(n.done&&n.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),n.resolve(t.hasCompleted),n.opts.updateURL!==!1&&this.useRouter){const i=document.querySelector("ion-router");if(i){const o=t.direction==="back"?"back":"forward";i.navChanged(o)}}}failed(t,n){if(this.destroyed){this.fireError("nav controller was destroyed",n);return}this.transInstr.length=0,this.fireError(t,n)}fireError(t,n){n.done&&n.done(!1,!1,t),n.reject&&!this.destroyed?n.reject(t):n.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return t?(this.runTransition(t),!0):!1}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const n=this.getActiveSync(),i=this.getEnteringView(t,n);if(!n&&!i)throw new Error("no views in the stack to be removed");i&&i.state===$0&&await i.init(this.el),this.postViewInit(i,n,t);const o=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&i!==n;o&&t.opts&&n&&(t.opts.direction==="back"&&(t.opts.animationBuilder=t.opts.animationBuilder||(i==null?void 0:i.animationBuilder)),n.animationBuilder=t.opts.animationBuilder);let r;o?r=await this.transition(i,n,t):r={hasCompleted:!0,requiresTransition:!1},this.success(r,t),this.ionNavDidChange.emit()}catch(n){this.failed(n,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var n,i,o;const r=this.views.length;if((n=t.opts)!==null&&n!==void 0||(t.opts={}),(i=(o=t.opts).delegate)!==null&&i!==void 0||(o.delegate=this.delegate),t.removeView!==void 0){Qt(t.removeStart!==void 0,"removeView needs removeStart"),Qt(t.removeCount!==void 0,"removeView needs removeCount");const l=this.views.indexOf(t.removeView);if(l<0)throw new Error("removeView was not found");t.removeStart+=l}t.removeStart!==void 0&&(t.removeStart<0&&(t.removeStart=r-1),t.removeCount<0&&(t.removeCount=r-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===r),t.insertViews&&((t.insertStart<0||t.insertStart>r)&&(t.insertStart=r),t.enteringRequiresTransition=t.insertStart===r);const s=t.insertViews;if(!s)return;Qt(s.length>0,"length can not be zero");const a=uA(s);if(a.length===0)throw new Error("invalid views to insert");for(const l of a){l.delegate=t.opts.delegate;const c=l.nav;if(c&&c!==this)throw new Error("inserted view was already inserted");if(l.state===Cl)throw new Error("inserted view was already destroyed")}t.insertViews=a}getEnteringView(t,n){const i=t.insertViews;if(i!==void 0)return i[i.length-1];const o=t.removeStart;if(o!==void 0){const r=this.views,s=o+t.removeCount;for(let a=r.length-1;a>=0;a--){const l=r[a];if((a<o||a>=s)&&l!==n)return l}}}postViewInit(t,n,i){var o,r,s;Qt(n||t,"Both leavingView and enteringView are null"),Qt(i.resolve,"resolve must be valid"),Qt(i.reject,"reject must be valid");const a=i.opts,{insertViews:l,removeStart:c,removeCount:d}=i;let u;if(c!==void 0&&d!==void 0){Qt(c>=0,"removeStart can not be negative"),Qt(d>=0,"removeCount can not be negative"),u=[];for(let p=c;p<c+d;p++){const b=this.views[p];b!==void 0&&b!==t&&b!==n&&u.push(b)}(o=a.direction)!==null&&o!==void 0||(a.direction="back")}const f=this.views.length+((r=l==null?void 0:l.length)!==null&&r!==void 0?r:0)-(d??0);if(Qt(f>=0,"final balance can not be negative"),f===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(l){let p=i.insertStart;for(const b of l)this.insertViewAt(b,p),p++;i.enteringRequiresTransition&&((s=a.direction)!==null&&s!==void 0||(a.direction="forward"))}if(u&&u.length>0){for(const p of u)yi(p.element,cc),yi(p.element,dc),yi(p.element,sd);for(const p of u)this.destroyView(p)}}async transition(t,n,i){const o=i.opts,r=o.progressAnimation?u=>this.sbAni=u:void 0,s=xe(this),a=t.element,l=n&&n.element,c=Object.assign(Object.assign({mode:s,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:r,animated:this.animated&&_e.getBoolean("animated",!0),enteringEl:a,leavingEl:l},o),{animationBuilder:o.animationBuilder||this.animation||_e.get("navAnimation")}),{hasCompleted:d}=await y0(c);return this.transitionFinish(d,t,n,o)}transitionFinish(t,n,i,o){const r=t?n:i;return r&&this.unmountInactiveViews(r),{hasCompleted:t,requiresTransition:!0,enteringView:n,leavingView:i,direction:o.direction}}insertViewAt(t,n){const i=this.views,o=i.indexOf(t);o>-1?(Qt(t.nav===this,"view is not part of the nav"),i.splice(o,1),i.splice(n,0,t)):(Qt(!t.nav,"nav is used"),t.nav=this,i.splice(n,0,t))}removeView(t){Qt(t.state===T0||t.state===Cl,"view state should be loaded or destroyed");const n=this.views,i=n.indexOf(t);Qt(i>-1,"view must be part of the stack"),i>=0&&n.splice(i,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const n=this.views,i=n.indexOf(t);for(let o=n.length-1;o>=0;o--){const r=n[o],s=r.element;s&&(o>i?(yi(s,sd),this.destroyView(r)):o<i&&pu(s,!0))}}canStart(){return!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.animationEnabled&&this.canGoBackSync()}onStart(){this.pop({direction:"back",progressAnimation:!0})}onMove(t){this.sbAni&&this.sbAni.progressStep(t)}onEnd(t,n,i){if(this.sbAni){this.animationEnabled=!1,this.sbAni.onFinish(()=>{this.animationEnabled=!0},{oneTimeCallback:!0});let o=t?-.001:.001;t?o+=Is([0,0],[.32,.72],[0,1],[1,1],n)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),o+=Is([0,0],[1,0],[.68,.28],[1,1],n)[0]),this.sbAni.progressEnd(t?1:0,o,i)}}render(){return B("slot",null)}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return fA}},[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]}]);function pA(){if(typeof customElements>"u")return;["ion-nav"].forEach(t=>{switch(t){case"ion-nav":customElements.get(t)||customElements.define(t,hA);break}})}const mA=pA;/*!
|
|
140
140
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
141
141
|
*/const gA=h0,bA=e=>{const t=e.previousElementSibling;return t!==null&&t.tagName==="ION-HEADER"?"translate":"scale"},vA=(e,t,n)=>e==="scale"?yA(t,n):xA(t,n),_0=e=>{const t=e.querySelector("ion-spinner"),n=t.shadowRoot.querySelector("circle"),i=e.querySelector(".spinner-arrow-container"),o=e.querySelector(".arrow-container"),r=o?o.querySelector("ion-icon"):null,s=$e().duration(1e3).easing("ease-out"),a=$e().addElement(i).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]),l=$e().addElement(n).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]),c=$e().addElement(t).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(o&&r){const d=$e().addElement(o).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]),u=$e().addElement(r).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);s.addAnimation([d,u])}return s.addAnimation([a,l,c])},yA=(e,t)=>{const n=t.clientHeight,i=$e().addElement(e).keyframes([{offset:0,transform:`scale(0) translateY(-${n}px)`},{offset:1,transform:"scale(1) translateY(100px)"}]);return _0(e).addAnimation([i])},xA=(e,t)=>{const n=t.clientHeight,i=$e().addElement(e).keyframes([{offset:0,transform:`translateY(-${n}px)`},{offset:1,transform:"translateY(100px)"}]);return _0(e).addAnimation([i])},wA=e=>$e().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)"),kA=(e,t)=>{e.style.setProperty("opacity",t.toString())},SA=(e,t,n)=>{st(()=>{e.forEach((o,r)=>{const s=r*(1/t),a=1-s,l=n-s,c=So(0,l/a,1);o.style.setProperty("opacity",c.toString())})})},CA=(e,t)=>{st(()=>{e.style.setProperty("--refreshing-rotation-duration",t>=1?"0.5s":"2s"),e.style.setProperty("opacity","1")})},ya=(e,t,n=200)=>{if(!e)return Promise.resolve();const i=s0(e,n);return st(()=>{e.style.setProperty("transition",`${n}ms all ease-out`),t===void 0?e.style.removeProperty("transform"):e.style.setProperty("transform",`translate3d(0px, ${t}, 0px)`)}),i},Gp=async(e,t)=>{const n=e.querySelector("ion-refresher-content");if(!n)return Promise.resolve(!1);await new Promise(r=>Qi(n,r));const i=e.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),o=e.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return i!==null&&o!==null&&(t==="ios"&&Jn("mobile")&&e.style.webkitOverflowScrolling!==void 0||t==="md")},EA="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}@supports (inset-inline-start: 0){ion-refresher{inset-inline-start:0}}@supports not (inset-inline-start: 0){ion-refresher{left:0}:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}[dir=rtl] ion-refresher{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){ion-refresher:dir(rtl){left:unset;right:unset;right:0}}}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, #747577)}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}",$A="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}@supports (inset-inline-start: 0){ion-refresher{inset-inline-start:0}}@supports not (inset-inline-start: 0){ion-refresher{left:0}:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}[dir=rtl] ion-refresher{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){ion-refresher:dir(rtl){left:unset;right:unset;right:0}}}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #3880ff)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #3880ff);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, #ececec);background:var(--ion-color-step-250, #ffffff);-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}",TA=ze(class extends Me{constructor(){super(),this.__registerHost(),this.ionRefresh=ke(this,"ionRefresh",7),this.ionPull=ke(this,"ionPull",7),this.ionStart=ke(this,"ionStart",7),this.appliedStyles=!1,this.didStart=!1,this.progress=0,this.pointerDown=!1,this.needsCompletion=!1,this.didRefresh=!1,this.lastVelocityY=0,this.animations=[],this.nativeRefresher=!1,this.state=1,this.pullMin=60,this.pullMax=this.pullMin+60,this.closeDuration="280ms",this.snapbackDuration="280ms",this.pullFactor=1,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async checkNativeRefresher(){const t=await Gp(this.el,xe(this));if(t&&!this.nativeRefresher){const n=this.el.closest("ion-content");this.setupNativeRefresher(n)}else t||this.destroyNativeRefresher()}destroyNativeRefresher(){this.scrollEl&&this.scrollListenerCallback&&(this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback),this.scrollListenerCallback=void 0),this.nativeRefresher=!1}async resetNativeRefresher(t,n){this.state=n,xe(this)==="ios"?await ya(t,void 0,300):await s0(this.el.querySelector(".refresher-refreshing-icon"),200),this.didRefresh=!1,this.needsCompletion=!1,this.pointerDown=!1,this.animations.forEach(i=>i.destroy()),this.animations=[],this.progress=0,this.state=1}async setupiOSNativeRefresher(t,n){this.elementToTransform=this.scrollEl;const i=t.shadowRoot.querySelectorAll("svg");let o=this.scrollEl.clientHeight*.16;const r=i.length;st(()=>i.forEach(s=>s.style.setProperty("animation","none"))),this.scrollListenerCallback=()=>{!this.pointerDown&&this.state===1||ii(()=>{const s=this.scrollEl.scrollTop,a=this.el.clientHeight;if(s>0){if(this.state===8){const u=So(0,s/(a*.5),1);st(()=>kA(n,1-u));return}return}this.pointerDown&&(this.didStart||(this.didStart=!0,this.ionStart.emit()),this.pointerDown&&this.ionPull.emit());const l=this.didStart?30:0,c=this.progress=So(0,(Math.abs(s)-l)/o,1);this.state===8||c===1?(this.pointerDown&&CA(n,this.lastVelocityY),this.didRefresh||(this.beginRefresh(),this.didRefresh=!0,xT({style:"light"}),this.pointerDown||ya(this.elementToTransform,`${a}px`))):(this.state=2,SA(i,r,c))})},this.scrollEl.addEventListener("scroll",this.scrollListenerCallback),this.gesture=(await Re(async()=>{const{createGesture:s}=await Promise.resolve().then(()=>dd);return{createGesture:s}},void 0)).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:()=>{this.pointerDown=!0,this.didRefresh||ya(this.elementToTransform,"0px"),o===0&&(o=this.scrollEl.clientHeight*.16)},onMove:s=>{this.lastVelocityY=s.velocityY},onEnd:()=>{this.pointerDown=!1,this.didStart=!1,this.needsCompletion?(this.resetNativeRefresher(this.elementToTransform,32),this.needsCompletion=!1):this.didRefresh&&ii(()=>ya(this.elementToTransform,`${this.el.clientHeight}px`))}}),this.disabledChanged()}async setupMDNativeRefresher(t,n,i){const o=Ao(n).querySelector("circle"),r=this.el.querySelector("ion-refresher-content .refresher-pulling-icon"),s=Ao(i).querySelector("circle");o!==null&&s!==null&&st(()=>{o.style.setProperty("animation","none"),i.style.setProperty("animation-delay","-655ms"),s.style.setProperty("animation-delay","-655ms")}),this.gesture=(await Re(async()=>{const{createGesture:a}=await Promise.resolve().then(()=>dd);return{createGesture:a}},void 0)).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:()=>this.state!==8&&this.state!==32&&this.scrollEl.scrollTop===0,onStart:a=>{this.progress=0,a.data={animation:void 0,didStart:!1,cancelled:!1}},onMove:a=>{if(a.velocityY<0&&this.progress===0&&!a.data.didStart||a.data.cancelled){a.data.cancelled=!0;return}if(!a.data.didStart){a.data.didStart=!0,this.state=2;const{scrollEl:l}=this,c=l.matches(fs)?"overflow":"--overflow";st(()=>l.style.setProperty(c,"hidden"));const d=bA(t),u=vA(d,r,this.el);a.data.animation=u,u.progressStart(!1,0),this.ionStart.emit(),this.animations.push(u);return}this.progress=So(0,a.deltaY/180*.5,1),a.data.animation.progressStep(this.progress),this.ionPull.emit()},onEnd:a=>{if(!a.data.didStart)return;this.gesture.enable(!1);const{scrollEl:l}=this,c=l.matches(fs)?"overflow":"--overflow";if(st(()=>l.style.removeProperty(c)),this.progress<=.4){a.data.animation.progressEnd(0,this.progress,500).onFinish(()=>{this.animations.forEach(f=>f.destroy()),this.animations=[],this.gesture.enable(!0),this.state=1});return}const d=Is([0,0],[0,0],[1,1],[1,1],this.progress)[0],u=wA(r);this.animations.push(u),st(async()=>{r.style.setProperty("--ion-pulling-refresher-translate",`${d*100}px`),a.data.animation.progressEnd(),await u.play(),this.beginRefresh(),a.data.animation.destroy(),this.gesture.enable(!0)})}}),this.disabledChanged()}async setupNativeRefresher(t){if(this.scrollListenerCallback||!t||this.nativeRefresher||!this.scrollEl)return;this.setCss(0,"",!1,""),this.nativeRefresher=!0;const n=this.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),i=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");xe(this)==="ios"?this.setupiOSNativeRefresher(n,i):this.setupMDNativeRefresher(t,n,i)}componentDidUpdate(){this.checkNativeRefresher()}async connectedCallback(){if(this.el.getAttribute("slot")!=="fixed"){console.error('Make sure you use: <ion-refresher slot="fixed">');return}const t=this.el.closest(Hf);if(!t){Rs(this.el);return}Qi(t,async()=>{const n=t.querySelector(fs);this.scrollEl=await Os(n??t),this.backgroundContentEl=await t.getBackgroundElement(),await Gp(this.el,xe(this))?this.setupNativeRefresher(t):(this.gesture=(await Re(async()=>{const{createGesture:i}=await Promise.resolve().then(()=>dd);return{createGesture:i}},void 0)).createGesture({el:t,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:!1,canStart:()=>this.canStart(),onStart:()=>this.onStart(),onMove:i=>this.onMove(i),onEnd:()=>this.onEnd()}),this.disabledChanged())})}disconnectedCallback(){this.destroyNativeRefresher(),this.scrollEl=void 0,this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async complete(){this.nativeRefresher?(this.needsCompletion=!0,this.pointerDown||Zt(()=>Zt(()=>this.resetNativeRefresher(this.elementToTransform,32)))):this.close(32,"120ms")}async cancel(){this.nativeRefresher?this.pointerDown||Zt(()=>Zt(()=>this.resetNativeRefresher(this.elementToTransform,16))):this.close(16,"")}getProgress(){return Promise.resolve(this.progress)}canStart(){return!(!this.scrollEl||this.state!==1||this.scrollEl.scrollTop>0)}onStart(){this.progress=0,this.state=1,this.memoizeOverflowStyle()}onMove(t){if(!this.scrollEl)return;const n=t.event;if(n.touches!==void 0&&n.touches.length>1||(this.state&56)!==0)return;const i=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor,o=t.deltaY*i;if(o<=0){if(this.progress=0,this.state=1,this.appliedStyles){this.setCss(0,"",!1,"");return}return}if(this.state===1){if(this.scrollEl.scrollTop>0){this.progress=0;return}this.state=2}if(n.cancelable&&n.preventDefault(),this.setCss(o,"0ms",!0,""),o===0){this.progress=0;return}const r=this.pullMin;if(this.progress=o/r,this.didStart||(this.didStart=!0,this.ionStart.emit()),this.ionPull.emit(),o<r){this.state=2;return}if(o>this.pullMax){this.beginRefresh();return}this.state=4}onEnd(){this.state===4?this.beginRefresh():this.state===2?this.cancel():this.state===1&&this.restoreOverflowStyle()}beginRefresh(){this.state=8,this.setCss(this.pullMin,this.snapbackDuration,!0,""),this.ionRefresh.emit({complete:this.complete.bind(this)})}close(t,n){setTimeout(()=>{this.state=1,this.progress=0,this.didStart=!1,this.setCss(0,"0ms",!1,"",!0)},600),this.state=t,this.setCss(0,this.closeDuration,!0,n)}setCss(t,n,i,o,r=!1){this.nativeRefresher||(this.appliedStyles=t>0,st(()=>{if(this.scrollEl&&this.backgroundContentEl){const s=this.scrollEl.style,a=this.backgroundContentEl.style;s.transform=a.transform=t>0?`translateY(${t}px) translateZ(0px)`:"",s.transitionDuration=a.transitionDuration=n,s.transitionDelay=a.transitionDelay=o,s.overflow=i?"hidden":""}r&&this.restoreOverflowStyle()}))}memoizeOverflowStyle(){if(this.scrollEl){const{overflow:t,overflowX:n,overflowY:i}=this.scrollEl.style;this.overflowStyles={overflow:t??"",overflowX:n??"",overflowY:i??""}}}restoreOverflowStyle(){if(this.overflowStyles!==void 0&&this.scrollEl!==void 0){const{overflow:t,overflowX:n,overflowY:i}=this.overflowStyles;this.scrollEl.style.overflow=t,this.scrollEl.style.overflowX=n,this.scrollEl.style.overflowY=i,this.overflowStyles=void 0}}render(){const t=xe(this);return B(Le,{slot:"fixed",class:{[t]:!0,[`refresher-${t}`]:!0,"refresher-native":this.nativeRefresher,"refresher-active":this.state!==1,"refresher-pulling":this.state===2,"refresher-ready":this.state===4,"refresher-refreshing":this.state===8,"refresher-cancelling":this.state===16,"refresher-completing":this.state===32}})}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return{ios:EA,md:$A}}},[32,"ion-refresher",{pullMin:[2,"pull-min"],pullMax:[2,"pull-max"],closeDuration:[1,"close-duration"],snapbackDuration:[1,"snapback-duration"],pullFactor:[2,"pull-factor"],disabled:[4],nativeRefresher:[32],state:[32],complete:[64],cancel:[64],getProgress:[64]}]);function _A(){if(typeof customElements>"u")return;["ion-refresher"].forEach(t=>{switch(t){case"ion-refresher":customElements.get(t)||customElements.define(t,TA);break}})}const AA=_A;/*!
|
|
142
142
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
@@ -158,7 +158,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
158
158
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
159
159
|
*/const a2=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}:host(.toolbar-searchbar) ::slotted(ion-back-button){height:38px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}",l2=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){-webkit-margin-start:4px;margin-inline-start:4px}::slotted(.buttons-last-slot){-webkit-margin-end:4px;margin-inline-end:4px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}",c2=ze(class extends Me{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.childrenStyles=new Map,this.color=void 0}componentWillLoad(){const t=Array.from(this.el.querySelectorAll("ion-buttons")),n=t.find(r=>r.slot==="start");n&&n.classList.add("buttons-first-slot");const i=t.reverse(),o=i.find(r=>r.slot==="end")||i.find(r=>r.slot==="primary")||i.find(r=>r.slot==="secondary");o&&o.classList.add("buttons-last-slot")}childrenStyle(t){t.stopPropagation();const n=t.target.tagName,i=t.detail,o={},r=this.childrenStyles.get(n)||{};let s=!1;Object.keys(i).forEach(a=>{const l=`toolbar-${a}`,c=i[a];c!==r[l]&&(s=!0),c&&(o[l]=!0)}),s&&(this.childrenStyles.set(n,o),wr(this))}render(){const t=xe(this),n={};return this.childrenStyles.forEach(i=>{Object.assign(n,i)}),B(Le,{class:Object.assign(Object.assign({},n),Ct(this.color,{[t]:!0,"in-toolbar":dn("ion-toolbar",this.el)}))},B("div",{class:"toolbar-background"}),B("div",{class:"toolbar-container"},B("slot",{name:"start"}),B("slot",{name:"secondary"}),B("div",{class:"toolbar-content"},B("slot",null)),B("slot",{name:"primary"}),B("slot",{name:"end"})))}get el(){return this}static get style(){return{ios:a2,md:l2}}},[33,"ion-toolbar",{color:[513]},[[0,"ionStyle","childrenStyle"]]]);function d2(){if(typeof customElements>"u")return;["ion-toolbar"].forEach(t=>{switch(t){case"ion-toolbar":customElements.get(t)||customElements.define(t,c2);break}})}const u2=d2;/*!
|
|
160
160
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
161
|
-
*/const f2=':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--icon-margin-end:1px;--icon-margin-start:-4px;--icon-font-size:1.6em;--min-height:32px;font-size:17px}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}',h2=':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:24px;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:14px;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;height:48px}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}',p2=ze(class extends Me{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAttributes={},this.onClick=async t=>{const n=this.el.closest("ion-nav");return t.preventDefault(),n&&await n.canGoBack()?n.pop({animationBuilder:this.routerAnimation,skipIfBusy:!0}):ec(this.defaultHref,t,"back",this.routerAnimation)},this.color=void 0,this.defaultHref=void 0,this.disabled=!1,this.icon=void 0,this.text=void 0,this.type="button",this.routerAnimation=void 0}componentWillLoad(){this.inheritedAttributes=Ql(this.el),this.defaultHref===void 0&&(this.defaultHref=_e.get("backButtonDefaultHref"))}get backButtonIcon(){const t=this.icon;return t??(xe(this)==="ios"?_e.get("backButtonIcon",nE):_e.get("backButtonIcon",QC))}get backButtonText(){const t=xe(this)==="ios"?"Back":null;return this.text!=null?this.text:_e.get("backButtonText",t)}get hasIconOnly(){return this.backButtonIcon&&!this.backButtonText}get rippleType(){return this.hasIconOnly?"unbounded":"bounded"}render(){const{color:t,defaultHref:n,disabled:i,type:o,hasIconOnly:r,backButtonIcon:s,backButtonText:a,icon:l,inheritedAttributes:c}=this,d=n!==void 0,u=xe(this),f=c["aria-label"]||a||"back";return B(Le,{onClick:this.onClick,class:Ct(t,{[u]:!0,button:!0,"back-button-disabled":i,"back-button-has-icon-only":r,"in-toolbar":dn("ion-toolbar",this.el),"in-toolbar-color":dn("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0,"show-back-button":d})},B("button",{type:o,disabled:i,class:"button-native",part:"native","aria-label":f},B("span",{class:"button-inner"},s&&B("ion-icon",{part:"icon",icon:s,"aria-hidden":"true",lazy:!1,"flip-rtl":l===void 0}),a&&B("span",{part:"text","aria-hidden":"true",class:"button-text"},a)),u==="md"&&B("ion-ripple-effect",{type:this.rippleType})))}get el(){return this}static get style(){return{ios:f2,md:h2}}},[33,"ion-back-button",{color:[513],defaultHref:[1025,"default-href"],disabled:[516],icon:[1],text:[1],type:[1],routerAnimation:[16]}]);function m2(){if(typeof customElements>"u")return;["ion-back-button","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-back-button":customElements.get(t)||customElements.define(t,p2);break;case"ion-icon":customElements.get(t)||Ir();break;case"ion-ripple-effect":customElements.get(t)||Ri();break}})}const g2=m2,b2=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}",v2=ze(class extends Me{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=ke(this,"ionNavWillLoad",7),this.ionNavWillChange=ke(this,"ionNavWillChange",3),this.ionNavDidChange=ke(this,"ionNavDidChange",3),this.gestureOrAnimationInProgress=!1,this.mode=xe(this),this.delegate=void 0,this.animated=!0,this.animation=void 0,this.swipeHandler=void 0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(this.swipeHandler!==void 0)}async connectedCallback(){const t=()=>{this.gestureOrAnimationInProgress=!0,this.swipeHandler&&this.swipeHandler.onStart()};this.gesture=(await Re(async()=>{const{createSwipeBackGesture:n}=await import("./swipe-back-Cz3hcaOA.js");return{createSwipeBackGesture:n}},[])).createSwipeBackGesture(this.el,()=>!this.gestureOrAnimationInProgress&&!!this.swipeHandler&&this.swipeHandler.canStart(),()=>t(),n=>{var i;return(i=this.ani)===null||i===void 0?void 0:i.progressStep(n)},(n,i,o)=>{if(this.ani){this.ani.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(n)},{oneTimeCallback:!0});let r=n?-.001:.001;n?r+=Is([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),r+=Is([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.ani.progressEnd(n?1:0,r,o)}else this.gestureOrAnimationInProgress=!1}),this.swipeHandlerChanged()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async commit(t,n,i){const o=await this.lock();let r=!1;try{r=await this.transition(t,n,i)}catch(s){console.error(s)}return o(),r}async setRouteId(t,n,i,o){return{changed:await this.setRoot(t,n,{duration:i==="root"?0:void 0,direction:i==="back"?"back":"forward",animationBuilder:o}),element:this.activeEl}}async getRouteId(){const t=this.activeEl;return t?{id:t.tagName,element:t,params:this.activeParams}:void 0}async setRoot(t,n,i){if(this.activeComponent===t&&l0(n,this.activeParams))return!1;const o=this.activeEl,r=await p0(this.delegate,this.el,t,["ion-page","ion-page-invisible"],n);return this.activeComponent=t,this.activeEl=r,this.activeParams=n,await this.commit(r,o,i),await wT(this.delegate,o),!0}async transition(t,n,i={}){if(n===t)return!1;this.ionNavWillChange.emit();const{el:o,mode:r}=this,s=this.animated&&_e.getBoolean("animated",!0),a=i.animationBuilder||this.animation||_e.get("navAnimation");return await y0(Object.assign(Object.assign({mode:r,animated:s,enteringEl:t,leavingEl:n,baseEl:o,deepWait:kE(o),progressCallback:i.progressAnimation?l=>{l!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,l.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(!1)},{oneTimeCallback:!0}),l.progressEnd(0,0,0)):this.ani=l}:void 0},i),{animationBuilder:a})),this.ionNavDidChange.emit(),!0}async lock(){const t=this.waitPromise;let n;return this.waitPromise=new Promise(i=>n=i),t!==void 0&&await t,n}render(){return B("slot",null)}get el(){return this}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}static get style(){return b2}},[1,"ion-router-outlet",{mode:[1025],delegate:[16],animated:[4],animation:[16],swipeHandler:[16],commit:[64],setRouteId:[64],getRouteId:[64]}]);function y2(){if(typeof customElements>"u")return;["ion-router-outlet"].forEach(t=>{switch(t){case"ion-router-outlet":customElements.get(t)||customElements.define(t,v2);break}})}const x2=y2;/*!
|
|
161
|
+
*/const f2=':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--icon-margin-end:1px;--icon-margin-start:-4px;--icon-font-size:1.6em;--min-height:32px;font-size:17px}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}',h2=':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:24px;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:14px;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;height:48px}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}',p2=ze(class extends Me{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAttributes={},this.onClick=async t=>{const n=this.el.closest("ion-nav");return t.preventDefault(),n&&await n.canGoBack()?n.pop({animationBuilder:this.routerAnimation,skipIfBusy:!0}):ec(this.defaultHref,t,"back",this.routerAnimation)},this.color=void 0,this.defaultHref=void 0,this.disabled=!1,this.icon=void 0,this.text=void 0,this.type="button",this.routerAnimation=void 0}componentWillLoad(){this.inheritedAttributes=Ql(this.el),this.defaultHref===void 0&&(this.defaultHref=_e.get("backButtonDefaultHref"))}get backButtonIcon(){const t=this.icon;return t??(xe(this)==="ios"?_e.get("backButtonIcon",nE):_e.get("backButtonIcon",QC))}get backButtonText(){const t=xe(this)==="ios"?"Back":null;return this.text!=null?this.text:_e.get("backButtonText",t)}get hasIconOnly(){return this.backButtonIcon&&!this.backButtonText}get rippleType(){return this.hasIconOnly?"unbounded":"bounded"}render(){const{color:t,defaultHref:n,disabled:i,type:o,hasIconOnly:r,backButtonIcon:s,backButtonText:a,icon:l,inheritedAttributes:c}=this,d=n!==void 0,u=xe(this),f=c["aria-label"]||a||"back";return B(Le,{onClick:this.onClick,class:Ct(t,{[u]:!0,button:!0,"back-button-disabled":i,"back-button-has-icon-only":r,"in-toolbar":dn("ion-toolbar",this.el),"in-toolbar-color":dn("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0,"show-back-button":d})},B("button",{type:o,disabled:i,class:"button-native",part:"native","aria-label":f},B("span",{class:"button-inner"},s&&B("ion-icon",{part:"icon",icon:s,"aria-hidden":"true",lazy:!1,"flip-rtl":l===void 0}),a&&B("span",{part:"text","aria-hidden":"true",class:"button-text"},a)),u==="md"&&B("ion-ripple-effect",{type:this.rippleType})))}get el(){return this}static get style(){return{ios:f2,md:h2}}},[33,"ion-back-button",{color:[513],defaultHref:[1025,"default-href"],disabled:[516],icon:[1],text:[1],type:[1],routerAnimation:[16]}]);function m2(){if(typeof customElements>"u")return;["ion-back-button","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-back-button":customElements.get(t)||customElements.define(t,p2);break;case"ion-icon":customElements.get(t)||Ir();break;case"ion-ripple-effect":customElements.get(t)||Ri();break}})}const g2=m2,b2=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}",v2=ze(class extends Me{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=ke(this,"ionNavWillLoad",7),this.ionNavWillChange=ke(this,"ionNavWillChange",3),this.ionNavDidChange=ke(this,"ionNavDidChange",3),this.gestureOrAnimationInProgress=!1,this.mode=xe(this),this.delegate=void 0,this.animated=!0,this.animation=void 0,this.swipeHandler=void 0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(this.swipeHandler!==void 0)}async connectedCallback(){const t=()=>{this.gestureOrAnimationInProgress=!0,this.swipeHandler&&this.swipeHandler.onStart()};this.gesture=(await Re(async()=>{const{createSwipeBackGesture:n}=await import("./swipe-back-ByZ8YIKO.js");return{createSwipeBackGesture:n}},[])).createSwipeBackGesture(this.el,()=>!this.gestureOrAnimationInProgress&&!!this.swipeHandler&&this.swipeHandler.canStart(),()=>t(),n=>{var i;return(i=this.ani)===null||i===void 0?void 0:i.progressStep(n)},(n,i,o)=>{if(this.ani){this.ani.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(n)},{oneTimeCallback:!0});let r=n?-.001:.001;n?r+=Is([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),r+=Is([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.ani.progressEnd(n?1:0,r,o)}else this.gestureOrAnimationInProgress=!1}),this.swipeHandlerChanged()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async commit(t,n,i){const o=await this.lock();let r=!1;try{r=await this.transition(t,n,i)}catch(s){console.error(s)}return o(),r}async setRouteId(t,n,i,o){return{changed:await this.setRoot(t,n,{duration:i==="root"?0:void 0,direction:i==="back"?"back":"forward",animationBuilder:o}),element:this.activeEl}}async getRouteId(){const t=this.activeEl;return t?{id:t.tagName,element:t,params:this.activeParams}:void 0}async setRoot(t,n,i){if(this.activeComponent===t&&l0(n,this.activeParams))return!1;const o=this.activeEl,r=await p0(this.delegate,this.el,t,["ion-page","ion-page-invisible"],n);return this.activeComponent=t,this.activeEl=r,this.activeParams=n,await this.commit(r,o,i),await wT(this.delegate,o),!0}async transition(t,n,i={}){if(n===t)return!1;this.ionNavWillChange.emit();const{el:o,mode:r}=this,s=this.animated&&_e.getBoolean("animated",!0),a=i.animationBuilder||this.animation||_e.get("navAnimation");return await y0(Object.assign(Object.assign({mode:r,animated:s,enteringEl:t,leavingEl:n,baseEl:o,deepWait:kE(o),progressCallback:i.progressAnimation?l=>{l!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,l.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(!1)},{oneTimeCallback:!0}),l.progressEnd(0,0,0)):this.ani=l}:void 0},i),{animationBuilder:a})),this.ionNavDidChange.emit(),!0}async lock(){const t=this.waitPromise;let n;return this.waitPromise=new Promise(i=>n=i),t!==void 0&&await t,n}render(){return B("slot",null)}get el(){return this}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}static get style(){return b2}},[1,"ion-router-outlet",{mode:[1025],delegate:[16],animated:[4],animation:[16],swipeHandler:[16],commit:[64],setRouteId:[64],getRouteId:[64]}]);function y2(){if(typeof customElements>"u")return;["ion-router-outlet"].forEach(t=>{switch(t){case"ion-router-outlet":customElements.get(t)||customElements.define(t,v2);break}})}const x2=y2;/*!
|
|
162
162
|
* vue-router v4.5.1
|
|
163
163
|
* (c) 2025 Eduardo San Martin Morote
|
|
164
164
|
* @license MIT
|
|
@@ -166,7 +166,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
166
166
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
167
167
|
*/const CO=':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:2px;--padding-bottom:0;--padding-start:2px;max-width:240px;font-size:10px}::slotted(ion-badge){-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px;padding-top:1px;padding-bottom:1px;top:4px;height:auto;font-size:12px;line-height:16px}@supports (inset-inline-start: 0){::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}}@supports not (inset-inline-start: 0){::slotted(ion-badge){left:calc(50% + 6px)}:host-context([dir=rtl]) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}[dir=rtl] ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}@supports selector(:dir(rtl)){::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 6px)}}}::slotted(ion-icon){margin-top:2px;margin-bottom:2px;font-size:30px}::slotted(ion-icon::before){vertical-align:top}::slotted(ion-label){margin-top:0;margin-bottom:1px;min-height:11px;font-weight:500}:host(.tab-has-label-only) ::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:12px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-label),:host(.tab-layout-icon-start) ::slotted(ion-label),:host(.tab-layout-icon-hide) ::slotted(ion-label){margin-top:2px;margin-bottom:2px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-icon),:host(.tab-layout-icon-start) ::slotted(ion-icon){min-width:24px;height:26px;margin-top:2px;margin-bottom:1px;font-size:24px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start:calc(50% + 12px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){left:calc(50% + 12px)}:host-context([dir=rtl]):host(.tab-layout-icon-bottom) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-bottom ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 12px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-bottom) ::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 12px)}}}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:1px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:4px}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){top:10px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:calc(50% + 35px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){left:calc(50% + 35px)}:host-context([dir=rtl]):host(.tab-layout-icon-start) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-start ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-layout-icon-end) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-end ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 35px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-start) ::slotted(ion-badge):dir(rtl),:host(.tab-layout-icon-end) ::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 35px)}}}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:10px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start:calc(50% + 30px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){left:calc(50% + 30px)}:host-context([dir=rtl]):host(.tab-layout-icon-hide) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-hide ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-has-label-only) ::slotted(ion-badge),:host-context([dir=rtl]).tab-has-label-only ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 30px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-hide) ::slotted(ion-badge):dir(rtl),:host(.tab-has-label-only) ::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 30px)}}}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:10px}:host(.tab-layout-label-hide) ::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}',EO=':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:12px;--padding-bottom:0;--padding-start:12px;max-width:168px;font-size:12px;font-weight:normal;letter-spacing:0.03em}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;text-transform:none}::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;-webkit-transform-origin:center center;transform-origin:center center;font-size:22px}:host-context([dir=rtl]) ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){::slotted(ion-icon):dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}::slotted(ion-badge){border-radius:8px;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;padding-top:3px;padding-bottom:2px;top:8px;min-width:12px;font-size:8px;font-weight:normal}@supports (inset-inline-start: 0){::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}}@supports not (inset-inline-start: 0){::slotted(ion-badge){left:calc(50% + 6px)}:host-context([dir=rtl]) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}[dir=rtl] ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}@supports selector(:dir(rtl)){::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 6px)}}}::slotted(ion-badge:empty){display:block;min-width:8px;height:8px}:host(.tab-layout-icon-top) ::slotted(ion-icon){margin-top:6px;margin-bottom:2px}:host(.tab-layout-icon-top) ::slotted(ion-label){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){top:8px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start:70%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){left:70%}:host-context([dir=rtl]):host(.tab-layout-icon-bottom) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-bottom ::slotted(ion-badge){left:unset;right:unset;right:70%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-bottom) ::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:70%}}}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:6px;margin-bottom:0}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){top:16px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:80%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){left:80%}:host-context([dir=rtl]):host(.tab-layout-icon-start) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-start ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-layout-icon-end) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-end ::slotted(ion-badge){left:unset;right:unset;right:80%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-start) ::slotted(ion-badge):dir(rtl),:host(.tab-layout-icon-end) ::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:80%}}}:host(.tab-layout-icon-start) ::slotted(ion-icon){-webkit-margin-end:6px;margin-inline-end:6px}:host(.tab-layout-icon-end) ::slotted(ion-icon){-webkit-margin-start:6px;margin-inline-start:6px}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:16px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start:70%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){left:70%}:host-context([dir=rtl]):host(.tab-layout-icon-hide) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-hide ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-has-label-only) ::slotted(ion-badge),:host-context([dir=rtl]).tab-has-label-only ::slotted(ion-badge){left:unset;right:unset;right:70%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-hide) ::slotted(ion-badge):dir(rtl),:host(.tab-has-label-only) ::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:70%}}}:host(.tab-layout-icon-hide) ::slotted(ion-label),:host(.tab-has-label-only) ::slotted(ion-label){margin-top:0;margin-bottom:0}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:16px}:host(.tab-layout-label-hide) ::slotted(ion-icon),:host(.tab-has-icon-only) ::slotted(ion-icon){margin-top:0;margin-bottom:0;font-size:24px}',$O=ze(class extends Me{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabButtonClick=ke(this,"ionTabButtonClick",7),this.inheritedAttributes={},this.onKeyUp=t=>{(t.key==="Enter"||t.key===" ")&&this.selectTab(t)},this.onClick=t=>{this.selectTab(t)},this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.layout=void 0,this.selected=!1,this.tab=void 0,this.target=void 0}onTabBarChanged(t){const n=t.target,i=this.el.parentElement;(t.composedPath().includes(i)||n!=null&&n.contains(this.el))&&(this.selected=this.tab===t.detail.tab)}componentWillLoad(){this.inheritedAttributes=Object.assign({},Qs(this.el,["aria-label"])),this.layout===void 0&&(this.layout=_e.get("tabButtonLayout","icon-top"))}selectTab(t){this.tab!==void 0&&(this.disabled||this.ionTabButtonClick.emit({tab:this.tab,href:this.href,selected:this.selected}),t.preventDefault())}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}render(){const{disabled:t,hasIcon:n,hasLabel:i,href:o,rel:r,target:s,layout:a,selected:l,tab:c,inheritedAttributes:d}=this,u=xe(this),f={download:this.download,href:o,rel:r,target:s};return B(Le,{onClick:this.onClick,onKeyup:this.onKeyUp,id:c!==void 0?`tab-button-${c}`:null,class:{[u]:!0,"tab-selected":l,"tab-disabled":t,"tab-has-label":i,"tab-has-icon":n,"tab-has-label-only":i&&!n,"tab-has-icon-only":n&&!i,[`tab-layout-${a}`]:!0,"ion-activatable":!0,"ion-selectable":!0,"ion-focusable":!0}},B("a",Object.assign({},f,{class:"button-native",part:"native",role:"tab","aria-selected":l?"true":null,"aria-disabled":t?"true":null,tabindex:t?"-1":void 0},d),B("span",{class:"button-inner"},B("slot",null)),u==="md"&&B("ion-ripple-effect",{type:"unbounded"})))}get el(){return this}static get style(){return{ios:CO,md:EO}}},[33,"ion-tab-button",{disabled:[4],download:[1],href:[1],rel:[1],layout:[1025],selected:[1028],tab:[1],target:[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]]);function TO(){if(typeof customElements>"u")return;["ion-tab-button","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-tab-button":customElements.get(t)||customElements.define(t,$O);break;case"ion-ripple-effect":customElements.get(t)||Ri();break}})}const _O=TO;/*!
|
|
168
168
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
169
|
-
*/const AO=":host{-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}: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)}}",OO=":host{-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}: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}",RO=ze(class extends Me{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabBarChanged=ke(this,"ionTabBarChanged",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 E0(async(t,n)=>{t===!1&&n!==void 0&&await n,this.keyboardVisible=t})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}render(){const{color:t,translucent:n,keyboardVisible:i}=this,o=xe(this),r=i&&this.el.getAttribute("slot")!=="top";return B(Le,{role:"tablist","aria-hidden":r?"true":null,class:Ct(t,{[o]:!0,"tab-bar-translucent":n,"tab-bar-hidden":r})},B("slot",null))}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"]}}static get style(){return{ios:AO,md:OO}}},[33,"ion-tab-bar",{color:[513],selectedTab:[1,"selected-tab"],translucent:[4],keyboardVisible:[32]}]);function IO(){if(typeof customElements>"u")return;["ion-tab-bar"].forEach(t=>{switch(t){case"ion-tab-bar":customElements.get(t)||customElements.define(t,RO);break}})}const PO=IO,DO="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}",BO=ze(class extends Me{constructor(){super(),this.__registerHost()}componentDidLoad(){zO(async()=>{const t=Jn(window,"hybrid");if(_e.getBoolean("_testing")||Re(()=>import("./index9-DHG273u1.js"),[]).then(i=>i.startTapClick(_e)),_e.getBoolean("statusTap",t)&&Re(()=>import("./status-tap-CJoqupzm.js"),[]).then(i=>i.startStatusTap()),_e.getBoolean("inputShims",LO())){const i=Jn(window,"ios")?"ios":"android";Re(()=>import("./input-shims-DFrNt_8z.js"),[]).then(o=>o.startInputShims(_e,i))}const n=await Re(()=>Promise.resolve().then(()=>$T),void 0);_e.getBoolean("hardwareBackButton",t)?n.startHardwareBackButton():n.blockHardwareBackButton(),typeof window<"u"&&Re(()=>import("./keyboard2-Wyr5n6g4.js"),[]).then(i=>i.startKeyboardAssist(window)),Re(()=>import("./focus-visible-supuXXMI.js"),[]).then(i=>this.focusVisible=i.startFocusVisible())})}async setFocus(t){this.focusVisible&&this.focusVisible.setFocus(t)}render(){const t=xe(this);return B(Le,{class:{[t]:!0,"ion-page":!0,"force-statusbar-padding":_e.getBoolean("_forceStatusbarPadding")}})}get el(){return this}static get style(){return DO}},[0,"ion-app",{setFocus:[64]}]),LO=()=>!!(Jn(window,"ios")&&Jn(window,"mobile")||Jn(window,"android")&&Jn(window,"mobileweb")),zO=e=>{"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,32)};function MO(){if(typeof customElements>"u")return;["ion-app"].forEach(t=>{switch(t){case"ion-app":customElements.get(t)||customElements.define(t,BO);break}})}const FO=MO,or={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let rr,W0,mc,Y0=!1,El=!1,qf=!1,ln=!1,bm=null,Eu=!1;const HO=e=>{const t=new URL(e,Nt.$resourcesUrl$);return t.origin!==ia.location.origin?t.href:t.pathname},Oo=(e,t="")=>()=>{},vm="http://www.w3.org/1999/xlink",ym={},NO="http://www.w3.org/2000/svg",VO="http://www.w3.org/1999/xhtml",jO=e=>e!=null,Uf=e=>(e=typeof e,e==="object"||e==="function");function qO(e){var t,n,i;return(i=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&i!==void 0?i:void 0}const ms=(e,t,...n)=>{let i=null,o=null,r=null,s=!1,a=!1;const l=[],c=u=>{for(let f=0;f<u.length;f++)i=u[f],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((s=typeof e!="function"&&!Uf(i))&&(i=String(i)),s&&a?l[l.length-1].$text$+=i:l.push(s?$l(null,i):i),a=s)};if(c(n),t){t.key&&(o=t.key),t.name&&(r=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter(f=>u[f]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,WO);const d=$l(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=o,d.$name$=r,d},$l=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},K0={},UO=e=>e&&e.$tag$===K0,WO={forEach:(e,t)=>e.map(xm).forEach(t),map:(e,t)=>e.map(xm).map(t).map(YO)},xm=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),YO=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),ms(e.vtag,n,...e.vchildren||[])}const t=$l(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},KO=e=>xR.map(t=>t(e)).find(t=>!!t),XO=(e,t)=>e!=null&&!Uf(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,wm=new WeakMap,GO=(e,t,n)=>{let i=_l.get(e);SR&&n?(i=i||new CSSStyleSheet,typeof i=="string"?i=t:i.replaceSync(t)):i=t,_l.set(e,i)},ZO=(e,t,n,i)=>{var o;let r=X0(t,n);const s=_l.get(r);if(e=e.nodeType===11?e:ti,s)if(typeof s=="string"){e=e.head||e;let a=wm.get(e),l;if(a||wm.set(e,a=new Set),!a.has(r)){{l=ti.createElement("style"),l.innerHTML=s;const c=(o=Nt.$nonce$)!==null&&o!==void 0?o:qO(ti);c!=null&&l.setAttribute("nonce",c),e.insertBefore(l,e.querySelector("link"))}a&&a.add(r)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},JO=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,o=Oo("attachStyles",t.$tagName$),r=ZO(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);i&10&&(n["s-sc"]=r,n.classList.add(r+"-h"),i&2&&n.classList.add(r+"-s")),o()},X0=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),km=(e,t,n,i,o,r)=>{if(n!==i){let s=$m(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Sm(n),d=Sm(i);l.remove(...c.filter(u=>u&&!d.includes(u))),l.add(...d.filter(u=>u&&!c.includes(u)))}else if(t==="style"){for(const l in n)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!n||i[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):$m(ia,a)?t=a.slice(2):t=a[2]+t.slice(3),n&&Nt.rel(e,t,n,!1),i&&Nt.ael(e,t,i,!1);else{const l=Uf(i);if((s||l&&i!==null)&&!o)try{if(e.tagName.includes("-"))e[t]=i;else{const d=i??"";t==="list"?s=!1:(n==null||e[t]!=d)&&(e[t]=d)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(vm,t):e.removeAttribute(t)):(!s||r&4||o)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(vm,t,i):e.setAttribute(t,i))}}},QO=/\s/,Sm=e=>e?e.split(QO):[],G0=(e,t,n,i)=>{const o=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||ym,s=t.$attrs$||ym;for(i in r)i in s||km(o,i,r[i],void 0,n,t.$flags$);for(i in s)km(o,i,r[i],s[i],n,t.$flags$)},Tl=(e,t,n,i)=>{const o=t.$children$[n];let r=0,s,a,l;if(Y0||(qf=!0,o.$tag$==="slot"&&(rr&&i.classList.add(rr+"-s"),o.$flags$|=o.$children$?2:1)),o.$text$!==null)s=o.$elm$=ti.createTextNode(o.$text$);else if(o.$flags$&1)s=o.$elm$=ti.createTextNode("");else{if(ln||(ln=o.$tag$==="svg"),s=o.$elm$=ti.createElementNS(ln?NO:VO,o.$flags$&2?"slot-fb":o.$tag$),ln&&o.$tag$==="foreignObject"&&(ln=!1),G0(null,o,ln),jO(rr)&&s["s-si"]!==rr&&s.classList.add(s["s-si"]=rr),o.$children$)for(r=0;r<o.$children$.length;++r)a=Tl(e,o,r,s),a&&s.appendChild(a);o.$tag$==="svg"?ln=!1:s.tagName==="foreignObject"&&(ln=!0)}return s["s-hn"]=mc,o.$flags$&3&&(s["s-sr"]=!0,s["s-cr"]=W0,s["s-sn"]=o.$name$||"",l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===o.$tag$&&e.$elm$&&Bs(e.$elm$,!1)),s},Bs=(e,t)=>{Nt.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const o=n[i];o["s-hn"]!==mc&&o["s-ol"]&&(Q0(o).insertBefore(o,Wf(o)),o["s-ol"].remove(),o["s-ol"]=void 0,qf=!0),t&&Bs(o,t)}Nt.$flags$&=-2},Z0=(e,t,n,i,o,r)=>{let s=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(s.shadowRoot&&s.tagName===mc&&(s=s.shadowRoot);o<=r;++o)i[o]&&(a=Tl(null,n,o,e),a&&(i[o].$elm$=a,s.insertBefore(a,Wf(t))))},J0=(e,t,n,i,o)=>{for(;t<=n;++t)(i=e[t])&&(o=i.$elm$,ny(i),El=!0,o["s-ol"]?o["s-ol"].remove():Bs(o,!0),o.remove())},eR=(e,t,n,i)=>{let o=0,r=0,s=0,a=0,l=t.length-1,c=t[0],d=t[l],u=i.length-1,f=i[0],p=i[u],b,m;for(;o<=l&&r<=u;)if(c==null)c=t[++o];else if(d==null)d=t[--l];else if(f==null)f=i[++r];else if(p==null)p=i[--u];else if(wa(c,f))sr(c,f),c=t[++o],f=i[++r];else if(wa(d,p))sr(d,p),d=t[--l],p=i[--u];else if(wa(c,p))(c.$tag$==="slot"||p.$tag$==="slot")&&Bs(c.$elm$.parentNode,!1),sr(c,p),e.insertBefore(c.$elm$,d.$elm$.nextSibling),c=t[++o],p=i[--u];else if(wa(d,f))(c.$tag$==="slot"||p.$tag$==="slot")&&Bs(d.$elm$.parentNode,!1),sr(d,f),e.insertBefore(d.$elm$,c.$elm$),d=t[--l],f=i[++r];else{for(s=-1,a=o;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===f.$key$){s=a;break}s>=0?(m=t[s],m.$tag$!==f.$tag$?b=Tl(t&&t[r],n,s,e):(sr(m,f),t[s]=void 0,b=m.$elm$),f=i[++r]):(b=Tl(t&&t[r],n,r,e),f=i[++r]),b&&Q0(c.$elm$).insertBefore(b,Wf(c.$elm$))}o>l?Z0(e,i[u+1]==null?null:i[u+1].$elm$,n,i,r,u):r>u&&J0(t,o,l)},wa=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,Wf=e=>e&&e["s-ol"]||e,Q0=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,sr=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,r=t.$tag$,s=t.$text$;let a;s===null?(ln=r==="svg"?!0:r==="foreignObject"?!1:ln,r==="slot"||G0(e,t,ln),i!==null&&o!==null?eR(n,i,t,o):o!==null?(e.$text$!==null&&(n.textContent=""),Z0(n,null,t,o,0,o.length-1)):i!==null&&J0(i,0,i.length-1),ln&&r==="svg"&&(ln=!1)):(a=n["s-cr"])?a.parentNode.textContent=s:e.$text$!==s&&(n.data=s)},ey=e=>{const t=e.childNodes;let n,i,o,r,s,a;for(i=0,o=t.length;i<o;i++)if(n=t[i],n.nodeType===1){if(n["s-sr"]){for(s=n["s-sn"],n.hidden=!1,r=0;r<o;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==n["s-hn"]||s!==""){if(a===1&&s===t[r].getAttribute("slot")){n.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){n.hidden=!0;break}}ey(n)}},On=[],ty=e=>{let t,n,i,o,r,s,a=0;const l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,o=t["s-sn"],s=i.length-1;s>=0;s--)n=i[s],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(Cm(n,o)?(r=On.find(d=>d.$nodeToRelocate$===n),El=!0,n["s-sn"]=n["s-sn"]||o,r?r.$slotRefNode$=t:On.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&On.map(d=>{Cm(d.$nodeToRelocate$,n["s-sn"])&&(r=On.find(u=>u.$nodeToRelocate$===n),r&&!d.$slotRefNode$&&(d.$slotRefNode$=r.$slotRefNode$))})):On.some(d=>d.$nodeToRelocate$===n)||On.push({$nodeToRelocate$:n}));t.nodeType===1&&ty(t)}},Cm=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",ny=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ny)},tR=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,o=e.$vnode$||$l(null,null),r=UO(t)?t:ms(null,null,t);mc=n.tagName,i.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},i.$attrsToReflect$.map(([s,a])=>r.$attrs$[a]=n[s])),r.$tag$=null,r.$flags$|=4,e.$vnode$=r,r.$elm$=o.$elm$=n.shadowRoot||n,rr=n["s-sc"],W0=n["s-cr"],Y0=(i.$flags$&1)!==0,El=!1,sr(o,r);{if(Nt.$flags$|=1,qf){ty(r.$elm$);let s,a,l,c,d,u,f=0;for(;f<On.length;f++)s=On[f],a=s.$nodeToRelocate$,a["s-ol"]||(l=ti.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(f=0;f<On.length;f++)if(s=On[f],a=s.$nodeToRelocate$,s.$slotRefNode$){for(c=s.$slotRefNode$.parentNode,d=s.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(u=l["s-nr"],u&&u["s-sn"]===a["s-sn"]&&c===u.parentNode&&(u=u.nextSibling,!u||!u["s-nr"])){d=u;break}(!d&&c!==a.parentNode||a.nextSibling!==d)&&a!==d&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,d))}else a.nodeType===1&&(a.hidden=!0)}El&&ey(r.$elm$),Nt.$flags$&=-2,On.length=0}},nR=(e,t)=>{},iy=(e,t)=>(e.$flags$|=16,nR(e,e.$ancestorComponent$),$R(()=>iR(e,t))),iR=(e,t)=>{const n=e.$hostElement$,i=Oo("scheduleUpdate",e.$cmpMeta$.$tagName$),o=n;let r;return t?r=pr(o,"componentWillLoad"):r=pr(o,"componentWillUpdate"),r=Em(r,()=>pr(o,"componentWillRender")),i(),Em(r,()=>oR(e,o,t))},oR=async(e,t,n)=>{const i=e.$hostElement$,o=Oo("update",e.$cmpMeta$.$tagName$);i["s-rc"],n&&JO(e);const r=Oo("render",e.$cmpMeta$.$tagName$);rR(e,t,i),r(),o(),sR(e)},rR=(e,t,n)=>{try{bm=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(or.hasRenderFn||or.reflect)&&(or.vdomRender||or.reflect)&&(or.hydrateServerSide||tR(e,t))}catch(a){na(a,e.$hostElement$)}return bm=null,null},sR=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=Oo("postUpdate",t),o=n;e.$ancestorComponent$,pr(o,"componentDidRender"),pd(),e.$flags$&64?(pr(o,"componentDidUpdate"),pd(),i()):(e.$flags$|=64,pr(o,"componentDidLoad"),pd(),i())},pr=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){na(i)}},Em=(e,t)=>e&&e.then?e.then(t):t(),pd=(e,t)=>{},aR=(e,t)=>gc(e).$instanceValues$.get(t),lR=(e,t,n,i)=>{const o=gc(e),r=e,s=o.$instanceValues$.get(t),a=o.$flags$,l=r;n=XO(n,i.$members$[t][0]);const c=Number.isNaN(s)&&Number.isNaN(n);if(n!==s&&!c){o.$instanceValues$.set(t,n);{if(i.$watchers$&&a&128){const u=i.$watchers$[t];u&&u.map(f=>{try{l[f](n,s,t)}catch(p){na(p,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,s,t)===!1)return;iy(o,!1)}}}},cR=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),o=e.prototype;i.map(([r,[s]])=>{(s&31||s&32)&&Object.defineProperty(o,r,{get(){return aR(this,r)},set(a){lR(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;o.attributeChangedCallback=function(s,a,l){Nt.jmp(()=>{const c=r.get(s);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(o.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([s,a])=>a[0]&15).map(([s,a])=>{const l=a[1]||s;return r.set(l,s),a[0]&512&&t.$attrsToReflect$.push([s,l]),l})}}return e},dR=async(e,t,n,i,o)=>{if((t.$flags$&32)===0&&(o=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),o.style)){let s=o.style;typeof s!="string"&&(s=s[t.$modeName$=KO(e)]);const a=X0(n,t.$modeName$);if(!_l.has(a)){const l=Oo("registerStyles",n.$tagName$);GO(a,s,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,iy(t,!0)},uR=e=>{},fR=e=>{if((Nt.$flags$&1)===0){const t=gc(e),n=t.$cmpMeta$,i=Oo("connectedCallback",n.$tagName$);t.$flags$&1?(oy(e,t,n.$listeners$),uR(t.$lazyInstance$)):(t.$flags$|=1,n.$flags$&12&&hR(e),n.$members$&&Object.entries(n.$members$).map(([o,[r]])=>{if(r&31&&e.hasOwnProperty(o)){const s=e[o];delete e[o],e[o]=s}}),dR(e,t,n)),i()}},hR=e=>{const t=e["s-cr"]=ti.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},pR=e=>{if((Nt.$flags$&1)===0){const t=gc(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},mR=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const i=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){yR(this,n)},connectedCallback(){fR(this),i&&i.call(this)},disconnectedCallback(){pR(this),o&&o.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,cR(e,n)},oy=(e,t,n,i)=>{n&&n.map(([o,r,s])=>{const a=bR(e,o),l=gR(t,s),c=vR(o);Nt.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Nt.rel(a,r,l,c))})},gR=(e,t)=>n=>{try{or.lazyLoad||e.$hostElement$[t](n)}catch(i){na(i)}},bR=(e,t)=>t&4?ti:t&8?ia:t&16?ti.body:e,vR=e=>(e&2)!==0,ry=new WeakMap,gc=e=>ry.get(e),yR=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return oy(e,n,t.$listeners$),ry.set(e,n)},$m=(e,t)=>t in e,na=(e,t)=>(0,console.error)(e,t),_l=new Map,xR=[],ia=typeof window<"u"?window:{},ti=ia.document||{head:{}},wR=ia.HTMLElement||class{},Nt={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},kR=e=>Promise.resolve(e),SR=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),Tm=[],sy=[],CR=(e,t)=>n=>{e.push(n),Eu||(Eu=!0,t&&Nt.$flags$&4?ER($u):Nt.raf($u))},_m=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){na(n)}e.length=0},$u=()=>{_m(Tm),_m(sy),(Eu=Tm.length>0)&&Nt.raf($u)},ER=e=>kR().then(e),$R=CR(sy,!0);let md;const TR=()=>{if(typeof window>"u")return new Map;if(!md){const e=window;e.Ionicons=e.Ionicons||{},md=e.Ionicons.map=e.Ionicons.map||new Map}return md},_R=e=>{let t=gd(e.src);return t||(t=ay(e.name,e.icon,e.mode,e.ios,e.md),t?AR(t):e.icon&&(t=gd(e.icon),t||(t=gd(e.icon[e.mode]),t))?t:null)},AR=e=>{const t=TR().get(e);return t||HO(`svg/${e}.svg`)},ay=(e,t,n,i,o)=>(n=(n&&ka(n))==="ios"?"ios":"md",i&&n==="ios"?e=ka(i):o&&n==="md"?e=ka(o):(!e&&t&&!ly(t)&&(e=t),Al(e)&&(e=ka(e))),!Al(e)||e.trim()===""||e.replace(/[a-z]|-|\d/gi,"")!==""?null:e),gd=e=>Al(e)&&(e=e.trim(),ly(e))?e:null,ly=e=>e.length>0&&/(\/|\.)/.test(e),Al=e=>typeof e=="string",ka=e=>e.toLowerCase(),OR=(e,t=[])=>{const n={};return t.forEach(i=>{e.hasAttribute(i)&&(e.getAttribute(i)!==null&&(n[i]=e.getAttribute(i)),e.removeAttribute(i))}),n},RR=e=>e&&e.dir!==""?e.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",IR=e=>{const t=document.createElement("div");t.innerHTML=e;for(let i=t.childNodes.length-1;i>=0;i--)t.childNodes[i].nodeName.toLowerCase()!=="svg"&&t.removeChild(t.childNodes[i]);const n=t.firstElementChild;if(n&&n.nodeName.toLowerCase()==="svg"){const i=n.getAttribute("class")||"";if(n.setAttribute("class",(i+" s-ion-icon").trim()),cy(n))return t.innerHTML}return""},cy=e=>{if(e.nodeType===1){if(e.nodeName.toLowerCase()==="script")return!1;for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;if(Al(n)&&n.toLowerCase().indexOf("on")===0)return!1}for(let t=0;t<e.childNodes.length;t++)if(!cy(e.childNodes[t]))return!1}return!0},PR=e=>e.startsWith("data:image/svg+xml"),DR=e=>e.indexOf(";utf8,")!==-1,vo=new Map,Am=new Map;let bd;const BR=(e,t)=>{let n=Am.get(e);if(!n)if(typeof fetch<"u"&&typeof document<"u")if(PR(e)&&DR(e)){bd||(bd=new DOMParser);const o=bd.parseFromString(e,"text/html").querySelector("svg");return o&&vo.set(e,o.outerHTML),Promise.resolve()}else n=fetch(e).then(i=>{if(i.ok)return i.text().then(o=>{o&&t!==!1&&(o=IR(o)),vo.set(e,o||"")});vo.set(e,"")}),Am.set(e,n);else return vo.set(e,""),Promise.resolve();return n},LR=":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:18px !important}:host(.icon-large){font-size:32px !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",zR=mR(class extends wR{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.isVisible=!1,this.mode=MR(),this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=OR(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(e,t,n){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const i=this.io=new window.IntersectionObserver(o=>{o[0].isIntersecting&&(i.disconnect(),this.io=void 0,n())},{rootMargin:t});i.observe(e)}else n()}loadIcon(){if(this.isVisible){const e=_R(this);e&&(vo.has(e)?this.svgContent=vo.get(e):BR(e,this.sanitize).then(()=>this.svgContent=vo.get(e)))}this.iconName=ay(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:e,iconName:t,inheritedAttributes:n,el:i}=this,o=this.mode||"md",r=t?(t.includes("arrow")||t.includes("chevron"))&&e!==!1:!1,s=e||r;return ms(K0,Object.assign({role:"img",class:Object.assign(Object.assign({[o]:!0},FR(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":s,"icon-rtl":s&&RR(i)})},n),this.svgContent?ms("div",{class:"icon-inner",innerHTML:this.svgContent}):ms("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 LR}},[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]}]),MR=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",FR=e=>e?{"ion-color":!0,[`ion-color-${e}`]:!0}:null;function HR(){if(typeof customElements>"u")return;["ion-icon"].forEach(t=>{switch(t){case"ion-icon":customElements.get(t)||customElements.define(t,zR);break}})}const NR=HR;/*!
|
|
169
|
+
*/const AO=":host{-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}: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)}}",OO=":host{-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}: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}",RO=ze(class extends Me{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabBarChanged=ke(this,"ionTabBarChanged",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 E0(async(t,n)=>{t===!1&&n!==void 0&&await n,this.keyboardVisible=t})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}render(){const{color:t,translucent:n,keyboardVisible:i}=this,o=xe(this),r=i&&this.el.getAttribute("slot")!=="top";return B(Le,{role:"tablist","aria-hidden":r?"true":null,class:Ct(t,{[o]:!0,"tab-bar-translucent":n,"tab-bar-hidden":r})},B("slot",null))}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"]}}static get style(){return{ios:AO,md:OO}}},[33,"ion-tab-bar",{color:[513],selectedTab:[1,"selected-tab"],translucent:[4],keyboardVisible:[32]}]);function IO(){if(typeof customElements>"u")return;["ion-tab-bar"].forEach(t=>{switch(t){case"ion-tab-bar":customElements.get(t)||customElements.define(t,RO);break}})}const PO=IO,DO="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}",BO=ze(class extends Me{constructor(){super(),this.__registerHost()}componentDidLoad(){zO(async()=>{const t=Jn(window,"hybrid");if(_e.getBoolean("_testing")||Re(()=>import("./index9-U7jDjeNY.js"),[]).then(i=>i.startTapClick(_e)),_e.getBoolean("statusTap",t)&&Re(()=>import("./status-tap-Cr7IifCg.js"),[]).then(i=>i.startStatusTap()),_e.getBoolean("inputShims",LO())){const i=Jn(window,"ios")?"ios":"android";Re(()=>import("./input-shims-D4JWcw13.js"),[]).then(o=>o.startInputShims(_e,i))}const n=await Re(()=>Promise.resolve().then(()=>$T),void 0);_e.getBoolean("hardwareBackButton",t)?n.startHardwareBackButton():n.blockHardwareBackButton(),typeof window<"u"&&Re(()=>import("./keyboard2-CjO5GU2n.js"),[]).then(i=>i.startKeyboardAssist(window)),Re(()=>import("./focus-visible-supuXXMI.js"),[]).then(i=>this.focusVisible=i.startFocusVisible())})}async setFocus(t){this.focusVisible&&this.focusVisible.setFocus(t)}render(){const t=xe(this);return B(Le,{class:{[t]:!0,"ion-page":!0,"force-statusbar-padding":_e.getBoolean("_forceStatusbarPadding")}})}get el(){return this}static get style(){return DO}},[0,"ion-app",{setFocus:[64]}]),LO=()=>!!(Jn(window,"ios")&&Jn(window,"mobile")||Jn(window,"android")&&Jn(window,"mobileweb")),zO=e=>{"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,32)};function MO(){if(typeof customElements>"u")return;["ion-app"].forEach(t=>{switch(t){case"ion-app":customElements.get(t)||customElements.define(t,BO);break}})}const FO=MO,or={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let rr,W0,mc,Y0=!1,El=!1,qf=!1,ln=!1,bm=null,Eu=!1;const HO=e=>{const t=new URL(e,Nt.$resourcesUrl$);return t.origin!==ia.location.origin?t.href:t.pathname},Oo=(e,t="")=>()=>{},vm="http://www.w3.org/1999/xlink",ym={},NO="http://www.w3.org/2000/svg",VO="http://www.w3.org/1999/xhtml",jO=e=>e!=null,Uf=e=>(e=typeof e,e==="object"||e==="function");function qO(e){var t,n,i;return(i=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&i!==void 0?i:void 0}const ms=(e,t,...n)=>{let i=null,o=null,r=null,s=!1,a=!1;const l=[],c=u=>{for(let f=0;f<u.length;f++)i=u[f],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((s=typeof e!="function"&&!Uf(i))&&(i=String(i)),s&&a?l[l.length-1].$text$+=i:l.push(s?$l(null,i):i),a=s)};if(c(n),t){t.key&&(o=t.key),t.name&&(r=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter(f=>u[f]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,WO);const d=$l(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=o,d.$name$=r,d},$l=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},K0={},UO=e=>e&&e.$tag$===K0,WO={forEach:(e,t)=>e.map(xm).forEach(t),map:(e,t)=>e.map(xm).map(t).map(YO)},xm=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),YO=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),ms(e.vtag,n,...e.vchildren||[])}const t=$l(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},KO=e=>xR.map(t=>t(e)).find(t=>!!t),XO=(e,t)=>e!=null&&!Uf(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,wm=new WeakMap,GO=(e,t,n)=>{let i=_l.get(e);SR&&n?(i=i||new CSSStyleSheet,typeof i=="string"?i=t:i.replaceSync(t)):i=t,_l.set(e,i)},ZO=(e,t,n,i)=>{var o;let r=X0(t,n);const s=_l.get(r);if(e=e.nodeType===11?e:ti,s)if(typeof s=="string"){e=e.head||e;let a=wm.get(e),l;if(a||wm.set(e,a=new Set),!a.has(r)){{l=ti.createElement("style"),l.innerHTML=s;const c=(o=Nt.$nonce$)!==null&&o!==void 0?o:qO(ti);c!=null&&l.setAttribute("nonce",c),e.insertBefore(l,e.querySelector("link"))}a&&a.add(r)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},JO=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,o=Oo("attachStyles",t.$tagName$),r=ZO(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);i&10&&(n["s-sc"]=r,n.classList.add(r+"-h"),i&2&&n.classList.add(r+"-s")),o()},X0=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),km=(e,t,n,i,o,r)=>{if(n!==i){let s=$m(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Sm(n),d=Sm(i);l.remove(...c.filter(u=>u&&!d.includes(u))),l.add(...d.filter(u=>u&&!c.includes(u)))}else if(t==="style"){for(const l in n)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!n||i[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):$m(ia,a)?t=a.slice(2):t=a[2]+t.slice(3),n&&Nt.rel(e,t,n,!1),i&&Nt.ael(e,t,i,!1);else{const l=Uf(i);if((s||l&&i!==null)&&!o)try{if(e.tagName.includes("-"))e[t]=i;else{const d=i??"";t==="list"?s=!1:(n==null||e[t]!=d)&&(e[t]=d)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(vm,t):e.removeAttribute(t)):(!s||r&4||o)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(vm,t,i):e.setAttribute(t,i))}}},QO=/\s/,Sm=e=>e?e.split(QO):[],G0=(e,t,n,i)=>{const o=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||ym,s=t.$attrs$||ym;for(i in r)i in s||km(o,i,r[i],void 0,n,t.$flags$);for(i in s)km(o,i,r[i],s[i],n,t.$flags$)},Tl=(e,t,n,i)=>{const o=t.$children$[n];let r=0,s,a,l;if(Y0||(qf=!0,o.$tag$==="slot"&&(rr&&i.classList.add(rr+"-s"),o.$flags$|=o.$children$?2:1)),o.$text$!==null)s=o.$elm$=ti.createTextNode(o.$text$);else if(o.$flags$&1)s=o.$elm$=ti.createTextNode("");else{if(ln||(ln=o.$tag$==="svg"),s=o.$elm$=ti.createElementNS(ln?NO:VO,o.$flags$&2?"slot-fb":o.$tag$),ln&&o.$tag$==="foreignObject"&&(ln=!1),G0(null,o,ln),jO(rr)&&s["s-si"]!==rr&&s.classList.add(s["s-si"]=rr),o.$children$)for(r=0;r<o.$children$.length;++r)a=Tl(e,o,r,s),a&&s.appendChild(a);o.$tag$==="svg"?ln=!1:s.tagName==="foreignObject"&&(ln=!0)}return s["s-hn"]=mc,o.$flags$&3&&(s["s-sr"]=!0,s["s-cr"]=W0,s["s-sn"]=o.$name$||"",l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===o.$tag$&&e.$elm$&&Bs(e.$elm$,!1)),s},Bs=(e,t)=>{Nt.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const o=n[i];o["s-hn"]!==mc&&o["s-ol"]&&(Q0(o).insertBefore(o,Wf(o)),o["s-ol"].remove(),o["s-ol"]=void 0,qf=!0),t&&Bs(o,t)}Nt.$flags$&=-2},Z0=(e,t,n,i,o,r)=>{let s=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(s.shadowRoot&&s.tagName===mc&&(s=s.shadowRoot);o<=r;++o)i[o]&&(a=Tl(null,n,o,e),a&&(i[o].$elm$=a,s.insertBefore(a,Wf(t))))},J0=(e,t,n,i,o)=>{for(;t<=n;++t)(i=e[t])&&(o=i.$elm$,ny(i),El=!0,o["s-ol"]?o["s-ol"].remove():Bs(o,!0),o.remove())},eR=(e,t,n,i)=>{let o=0,r=0,s=0,a=0,l=t.length-1,c=t[0],d=t[l],u=i.length-1,f=i[0],p=i[u],b,m;for(;o<=l&&r<=u;)if(c==null)c=t[++o];else if(d==null)d=t[--l];else if(f==null)f=i[++r];else if(p==null)p=i[--u];else if(wa(c,f))sr(c,f),c=t[++o],f=i[++r];else if(wa(d,p))sr(d,p),d=t[--l],p=i[--u];else if(wa(c,p))(c.$tag$==="slot"||p.$tag$==="slot")&&Bs(c.$elm$.parentNode,!1),sr(c,p),e.insertBefore(c.$elm$,d.$elm$.nextSibling),c=t[++o],p=i[--u];else if(wa(d,f))(c.$tag$==="slot"||p.$tag$==="slot")&&Bs(d.$elm$.parentNode,!1),sr(d,f),e.insertBefore(d.$elm$,c.$elm$),d=t[--l],f=i[++r];else{for(s=-1,a=o;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===f.$key$){s=a;break}s>=0?(m=t[s],m.$tag$!==f.$tag$?b=Tl(t&&t[r],n,s,e):(sr(m,f),t[s]=void 0,b=m.$elm$),f=i[++r]):(b=Tl(t&&t[r],n,r,e),f=i[++r]),b&&Q0(c.$elm$).insertBefore(b,Wf(c.$elm$))}o>l?Z0(e,i[u+1]==null?null:i[u+1].$elm$,n,i,r,u):r>u&&J0(t,o,l)},wa=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,Wf=e=>e&&e["s-ol"]||e,Q0=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,sr=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,r=t.$tag$,s=t.$text$;let a;s===null?(ln=r==="svg"?!0:r==="foreignObject"?!1:ln,r==="slot"||G0(e,t,ln),i!==null&&o!==null?eR(n,i,t,o):o!==null?(e.$text$!==null&&(n.textContent=""),Z0(n,null,t,o,0,o.length-1)):i!==null&&J0(i,0,i.length-1),ln&&r==="svg"&&(ln=!1)):(a=n["s-cr"])?a.parentNode.textContent=s:e.$text$!==s&&(n.data=s)},ey=e=>{const t=e.childNodes;let n,i,o,r,s,a;for(i=0,o=t.length;i<o;i++)if(n=t[i],n.nodeType===1){if(n["s-sr"]){for(s=n["s-sn"],n.hidden=!1,r=0;r<o;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==n["s-hn"]||s!==""){if(a===1&&s===t[r].getAttribute("slot")){n.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){n.hidden=!0;break}}ey(n)}},On=[],ty=e=>{let t,n,i,o,r,s,a=0;const l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,o=t["s-sn"],s=i.length-1;s>=0;s--)n=i[s],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(Cm(n,o)?(r=On.find(d=>d.$nodeToRelocate$===n),El=!0,n["s-sn"]=n["s-sn"]||o,r?r.$slotRefNode$=t:On.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&On.map(d=>{Cm(d.$nodeToRelocate$,n["s-sn"])&&(r=On.find(u=>u.$nodeToRelocate$===n),r&&!d.$slotRefNode$&&(d.$slotRefNode$=r.$slotRefNode$))})):On.some(d=>d.$nodeToRelocate$===n)||On.push({$nodeToRelocate$:n}));t.nodeType===1&&ty(t)}},Cm=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",ny=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ny)},tR=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,o=e.$vnode$||$l(null,null),r=UO(t)?t:ms(null,null,t);mc=n.tagName,i.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},i.$attrsToReflect$.map(([s,a])=>r.$attrs$[a]=n[s])),r.$tag$=null,r.$flags$|=4,e.$vnode$=r,r.$elm$=o.$elm$=n.shadowRoot||n,rr=n["s-sc"],W0=n["s-cr"],Y0=(i.$flags$&1)!==0,El=!1,sr(o,r);{if(Nt.$flags$|=1,qf){ty(r.$elm$);let s,a,l,c,d,u,f=0;for(;f<On.length;f++)s=On[f],a=s.$nodeToRelocate$,a["s-ol"]||(l=ti.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(f=0;f<On.length;f++)if(s=On[f],a=s.$nodeToRelocate$,s.$slotRefNode$){for(c=s.$slotRefNode$.parentNode,d=s.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(u=l["s-nr"],u&&u["s-sn"]===a["s-sn"]&&c===u.parentNode&&(u=u.nextSibling,!u||!u["s-nr"])){d=u;break}(!d&&c!==a.parentNode||a.nextSibling!==d)&&a!==d&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,d))}else a.nodeType===1&&(a.hidden=!0)}El&&ey(r.$elm$),Nt.$flags$&=-2,On.length=0}},nR=(e,t)=>{},iy=(e,t)=>(e.$flags$|=16,nR(e,e.$ancestorComponent$),$R(()=>iR(e,t))),iR=(e,t)=>{const n=e.$hostElement$,i=Oo("scheduleUpdate",e.$cmpMeta$.$tagName$),o=n;let r;return t?r=pr(o,"componentWillLoad"):r=pr(o,"componentWillUpdate"),r=Em(r,()=>pr(o,"componentWillRender")),i(),Em(r,()=>oR(e,o,t))},oR=async(e,t,n)=>{const i=e.$hostElement$,o=Oo("update",e.$cmpMeta$.$tagName$);i["s-rc"],n&&JO(e);const r=Oo("render",e.$cmpMeta$.$tagName$);rR(e,t,i),r(),o(),sR(e)},rR=(e,t,n)=>{try{bm=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(or.hasRenderFn||or.reflect)&&(or.vdomRender||or.reflect)&&(or.hydrateServerSide||tR(e,t))}catch(a){na(a,e.$hostElement$)}return bm=null,null},sR=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=Oo("postUpdate",t),o=n;e.$ancestorComponent$,pr(o,"componentDidRender"),pd(),e.$flags$&64?(pr(o,"componentDidUpdate"),pd(),i()):(e.$flags$|=64,pr(o,"componentDidLoad"),pd(),i())},pr=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){na(i)}},Em=(e,t)=>e&&e.then?e.then(t):t(),pd=(e,t)=>{},aR=(e,t)=>gc(e).$instanceValues$.get(t),lR=(e,t,n,i)=>{const o=gc(e),r=e,s=o.$instanceValues$.get(t),a=o.$flags$,l=r;n=XO(n,i.$members$[t][0]);const c=Number.isNaN(s)&&Number.isNaN(n);if(n!==s&&!c){o.$instanceValues$.set(t,n);{if(i.$watchers$&&a&128){const u=i.$watchers$[t];u&&u.map(f=>{try{l[f](n,s,t)}catch(p){na(p,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,s,t)===!1)return;iy(o,!1)}}}},cR=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),o=e.prototype;i.map(([r,[s]])=>{(s&31||s&32)&&Object.defineProperty(o,r,{get(){return aR(this,r)},set(a){lR(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;o.attributeChangedCallback=function(s,a,l){Nt.jmp(()=>{const c=r.get(s);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(o.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([s,a])=>a[0]&15).map(([s,a])=>{const l=a[1]||s;return r.set(l,s),a[0]&512&&t.$attrsToReflect$.push([s,l]),l})}}return e},dR=async(e,t,n,i,o)=>{if((t.$flags$&32)===0&&(o=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),o.style)){let s=o.style;typeof s!="string"&&(s=s[t.$modeName$=KO(e)]);const a=X0(n,t.$modeName$);if(!_l.has(a)){const l=Oo("registerStyles",n.$tagName$);GO(a,s,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,iy(t,!0)},uR=e=>{},fR=e=>{if((Nt.$flags$&1)===0){const t=gc(e),n=t.$cmpMeta$,i=Oo("connectedCallback",n.$tagName$);t.$flags$&1?(oy(e,t,n.$listeners$),uR(t.$lazyInstance$)):(t.$flags$|=1,n.$flags$&12&&hR(e),n.$members$&&Object.entries(n.$members$).map(([o,[r]])=>{if(r&31&&e.hasOwnProperty(o)){const s=e[o];delete e[o],e[o]=s}}),dR(e,t,n)),i()}},hR=e=>{const t=e["s-cr"]=ti.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},pR=e=>{if((Nt.$flags$&1)===0){const t=gc(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},mR=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const i=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){yR(this,n)},connectedCallback(){fR(this),i&&i.call(this)},disconnectedCallback(){pR(this),o&&o.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,cR(e,n)},oy=(e,t,n,i)=>{n&&n.map(([o,r,s])=>{const a=bR(e,o),l=gR(t,s),c=vR(o);Nt.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Nt.rel(a,r,l,c))})},gR=(e,t)=>n=>{try{or.lazyLoad||e.$hostElement$[t](n)}catch(i){na(i)}},bR=(e,t)=>t&4?ti:t&8?ia:t&16?ti.body:e,vR=e=>(e&2)!==0,ry=new WeakMap,gc=e=>ry.get(e),yR=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return oy(e,n,t.$listeners$),ry.set(e,n)},$m=(e,t)=>t in e,na=(e,t)=>(0,console.error)(e,t),_l=new Map,xR=[],ia=typeof window<"u"?window:{},ti=ia.document||{head:{}},wR=ia.HTMLElement||class{},Nt={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},kR=e=>Promise.resolve(e),SR=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),Tm=[],sy=[],CR=(e,t)=>n=>{e.push(n),Eu||(Eu=!0,t&&Nt.$flags$&4?ER($u):Nt.raf($u))},_m=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){na(n)}e.length=0},$u=()=>{_m(Tm),_m(sy),(Eu=Tm.length>0)&&Nt.raf($u)},ER=e=>kR().then(e),$R=CR(sy,!0);let md;const TR=()=>{if(typeof window>"u")return new Map;if(!md){const e=window;e.Ionicons=e.Ionicons||{},md=e.Ionicons.map=e.Ionicons.map||new Map}return md},_R=e=>{let t=gd(e.src);return t||(t=ay(e.name,e.icon,e.mode,e.ios,e.md),t?AR(t):e.icon&&(t=gd(e.icon),t||(t=gd(e.icon[e.mode]),t))?t:null)},AR=e=>{const t=TR().get(e);return t||HO(`svg/${e}.svg`)},ay=(e,t,n,i,o)=>(n=(n&&ka(n))==="ios"?"ios":"md",i&&n==="ios"?e=ka(i):o&&n==="md"?e=ka(o):(!e&&t&&!ly(t)&&(e=t),Al(e)&&(e=ka(e))),!Al(e)||e.trim()===""||e.replace(/[a-z]|-|\d/gi,"")!==""?null:e),gd=e=>Al(e)&&(e=e.trim(),ly(e))?e:null,ly=e=>e.length>0&&/(\/|\.)/.test(e),Al=e=>typeof e=="string",ka=e=>e.toLowerCase(),OR=(e,t=[])=>{const n={};return t.forEach(i=>{e.hasAttribute(i)&&(e.getAttribute(i)!==null&&(n[i]=e.getAttribute(i)),e.removeAttribute(i))}),n},RR=e=>e&&e.dir!==""?e.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",IR=e=>{const t=document.createElement("div");t.innerHTML=e;for(let i=t.childNodes.length-1;i>=0;i--)t.childNodes[i].nodeName.toLowerCase()!=="svg"&&t.removeChild(t.childNodes[i]);const n=t.firstElementChild;if(n&&n.nodeName.toLowerCase()==="svg"){const i=n.getAttribute("class")||"";if(n.setAttribute("class",(i+" s-ion-icon").trim()),cy(n))return t.innerHTML}return""},cy=e=>{if(e.nodeType===1){if(e.nodeName.toLowerCase()==="script")return!1;for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;if(Al(n)&&n.toLowerCase().indexOf("on")===0)return!1}for(let t=0;t<e.childNodes.length;t++)if(!cy(e.childNodes[t]))return!1}return!0},PR=e=>e.startsWith("data:image/svg+xml"),DR=e=>e.indexOf(";utf8,")!==-1,vo=new Map,Am=new Map;let bd;const BR=(e,t)=>{let n=Am.get(e);if(!n)if(typeof fetch<"u"&&typeof document<"u")if(PR(e)&&DR(e)){bd||(bd=new DOMParser);const o=bd.parseFromString(e,"text/html").querySelector("svg");return o&&vo.set(e,o.outerHTML),Promise.resolve()}else n=fetch(e).then(i=>{if(i.ok)return i.text().then(o=>{o&&t!==!1&&(o=IR(o)),vo.set(e,o||"")});vo.set(e,"")}),Am.set(e,n);else return vo.set(e,""),Promise.resolve();return n},LR=":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:18px !important}:host(.icon-large){font-size:32px !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",zR=mR(class extends wR{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.isVisible=!1,this.mode=MR(),this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=OR(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(e,t,n){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const i=this.io=new window.IntersectionObserver(o=>{o[0].isIntersecting&&(i.disconnect(),this.io=void 0,n())},{rootMargin:t});i.observe(e)}else n()}loadIcon(){if(this.isVisible){const e=_R(this);e&&(vo.has(e)?this.svgContent=vo.get(e):BR(e,this.sanitize).then(()=>this.svgContent=vo.get(e)))}this.iconName=ay(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:e,iconName:t,inheritedAttributes:n,el:i}=this,o=this.mode||"md",r=t?(t.includes("arrow")||t.includes("chevron"))&&e!==!1:!1,s=e||r;return ms(K0,Object.assign({role:"img",class:Object.assign(Object.assign({[o]:!0},FR(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":s,"icon-rtl":s&&RR(i)})},n),this.svgContent?ms("div",{class:"icon-inner",innerHTML:this.svgContent}):ms("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 LR}},[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]}]),MR=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",FR=e=>e?{"ion-color":!0,[`ion-color-${e}`]:!0}:null;function HR(){if(typeof customElements>"u")return;["ion-icon"].forEach(t=>{switch(t){case"ion-icon":customElements.get(t)||customElements.define(t,zR);break}})}const NR=HR;/*!
|
|
170
170
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
171
171
|
*/const VR=UA;/*!
|
|
172
172
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
@@ -193,7 +193,7 @@ See https://ionicframework.com/docs/vue/navigation#ionpage for more information.
|
|
|
193
193
|
* pinia v3.0.2
|
|
194
194
|
* (c) 2025 Eduardo San Martin Morote
|
|
195
195
|
* @license MIT
|
|
196
|
-
*/let Yy;const _c=e=>Yy=e,Ky=Symbol();function Lu(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var gs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(gs||(gs={}));function zD(){const e=xb(!0),t=e.run(()=>V({}));let n=[],i=[];const o=hf({install(r){_c(o),o._a=r,r.provide(Ky,o),r.config.globalProperties.$pinia=o,i.forEach(s=>n.push(s)),i=[]},use(r){return this._a?n.push(r):i.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Xy=()=>{};function sg(e,t,n,i=Xy){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),i())};return!n&&wb()&&C1(o),o}function Mo(e,...t){e.slice().forEach(n=>{n(...t)})}const MD=e=>e(),ag=Symbol(),Td=Symbol();function zu(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,i)=>e.set(i,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const i=t[n],o=e[n];Lu(o)&&Lu(i)&&e.hasOwnProperty(n)&&!ut(i)&&!Xi(i)?e[n]=zu(o,i):e[n]=i}return e}const FD=Symbol();function HD(e){return!Lu(e)||!Object.prototype.hasOwnProperty.call(e,FD)}const{assign:Vi}=Object;function ND(e){return!!(ut(e)&&e.effect)}function VD(e,t,n,i){const{state:o,actions:r,getters:s}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=o?o():{});const d=W1(n.state.value[e]);return Vi(d,r,Object.keys(s||{}).reduce((u,f)=>(u[f]=hf(N(()=>{_c(n);const p=n._s.get(e);return s[f].call(p,p)})),u),{}))}return l=Gy(e,c,t,n,i,!0),l}function Gy(e,t,n={},i,o,r){let s;const a=Vi({actions:{}},n),l={deep:!0};let c,d,u=[],f=[],p;const b=i.state.value[e];!r&&!b&&(i.state.value[e]={}),V({});let m;function g(S){let T;c=d=!1,typeof S=="function"?(S(i.state.value[e]),T={type:gs.patchFunction,storeId:e,events:p}):(zu(i.state.value[e],S),T={type:gs.patchObject,payload:S,storeId:e,events:p});const A=m=Symbol();Pe().then(()=>{m===A&&(c=!0)}),d=!0,Mo(u,T,i.state.value[e])}const x=r?function(){const{state:T}=n,A=T?T():{};this.$patch(w=>{Vi(w,A)})}:Xy;function v(){s.stop(),u=[],f=[],i._s.delete(e)}const k=(S,T="")=>{if(ag in S)return S[Td]=T,S;const A=function(){_c(i);const w=Array.from(arguments),_=[],D=[];function F(M){_.push(M)}function H(M){D.push(M)}Mo(f,{args:w,name:A[Td],store:y,after:F,onError:H});let P;try{P=S.apply(this&&this.$id===e?this:y,w)}catch(M){throw Mo(D,M),M}return P instanceof Promise?P.then(M=>(Mo(_,M),M)).catch(M=>(Mo(D,M),Promise.reject(M))):(Mo(_,P),P)};return A[ag]=!0,A[Td]=T,A},C={_p:i,$id:e,$onAction:sg.bind(null,f),$patch:g,$reset:x,$subscribe(S,T={}){const A=sg(u,S,T.detached,()=>w()),w=s.run(()=>le(()=>i.state.value[e],_=>{(T.flush==="sync"?d:c)&&S({storeId:e,type:gs.direct,events:p},_)},Vi({},l,T)));return A},$dispose:v},y=nt(C);i._s.set(e,y);const $=(i._a&&i._a.runWithContext||MD)(()=>i._e.run(()=>(s=xb()).run(()=>t({action:k}))));for(const S in $){const T=$[S];if(ut(T)&&!ND(T)||Xi(T))r||(b&&HD(T)&&(ut(T)?T.value=b[S]:zu(T,b[S])),i.state.value[e][S]=T);else if(typeof T=="function"){const A=k(T,S);$[S]=A,a.actions[S]=T}}return Vi(y,$),Vi(Ue(y),$),Object.defineProperty(y,"$state",{get:()=>i.state.value[e],set:S=>{g(T=>{Vi(T,S)})}}),i._p.forEach(S=>{Vi(y,s.run(()=>S({store:y,app:i._a,pinia:i,options:a})))}),b&&r&&n.hydrate&&n.hydrate(y.$state,b),c=!0,d=!0,y}/*! #__NO_SIDE_EFFECTS__ */function jD(e,t,n){let i;const o=typeof t=="function";i=o?n:t;function r(s,a){const l=zk();return s=s||(l?Qe(Ky,null):null),s&&_c(s),s=Yy,s._s.has(e)||(o?Gy(e,t,i,s):VD(e,i,s)),s._s.get(e)}return r.$id=e,r}const oi=Object.create(null);oi.open="0";oi.close="1";oi.ping="2";oi.pong="3";oi.message="4";oi.upgrade="5";oi.noop="6";const tl=Object.create(null);Object.keys(oi).forEach(e=>{tl[oi[e]]=e});const Mu={type:"error",data:"parser error"},Zy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Jy=typeof ArrayBuffer=="function",Qy=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Jf=({type:e,data:t},n,i)=>Zy&&t instanceof Blob?n?i(t):lg(t,i):Jy&&(t instanceof ArrayBuffer||Qy(t))?n?i(t):lg(new Blob([t]),i):i(oi[e]+(t||"")),lg=(e,t)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];t("b"+(i||""))},n.readAsDataURL(e)};function cg(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let _d;function qD(e,t){if(Zy&&e.data instanceof Blob)return e.data.arrayBuffer().then(cg).then(t);if(Jy&&(e.data instanceof ArrayBuffer||Qy(e.data)))return t(cg(e.data));Jf(e,!1,n=>{_d||(_d=new TextEncoder),t(_d.encode(n))})}const dg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",is=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<dg.length;e++)is[dg.charCodeAt(e)]=e;const UD=e=>{let t=e.length*.75,n=e.length,i,o=0,r,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),d=new Uint8Array(c);for(i=0;i<n;i+=4)r=is[e.charCodeAt(i)],s=is[e.charCodeAt(i+1)],a=is[e.charCodeAt(i+2)],l=is[e.charCodeAt(i+3)],d[o++]=r<<2|s>>4,d[o++]=(s&15)<<4|a>>2,d[o++]=(a&3)<<6|l&63;return c},WD=typeof ArrayBuffer=="function",Qf=(e,t)=>{if(typeof e!="string")return{type:"message",data:ex(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:YD(e.substring(1),t)}:tl[n]?e.length>1?{type:tl[n],data:e.substring(1)}:{type:tl[n]}:Mu},YD=(e,t)=>{if(WD){const n=UD(e);return ex(n,t)}else return{base64:!0,data:e}},ex=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},tx="",KD=(e,t)=>{const n=e.length,i=new Array(n);let o=0;e.forEach((r,s)=>{Jf(r,!1,a=>{i[s]=a,++o===n&&t(i.join(tx))})})},XD=(e,t)=>{const n=e.split(tx),i=[];for(let o=0;o<n.length;o++){const r=Qf(n[o],t);if(i.push(r),r.type==="error")break}return i};function GD(){return new TransformStream({transform(e,t){qD(e,n=>{const i=n.length;let o;if(i<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,i);else if(i<65536){o=new Uint8Array(3);const r=new DataView(o.buffer);r.setUint8(0,126),r.setUint16(1,i)}else{o=new Uint8Array(9);const r=new DataView(o.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(i))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Ad;function $a(e){return e.reduce((t,n)=>t+n.length,0)}function Ta(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let i=0;for(let o=0;o<t;o++)n[o]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),n}function ZD(e,t){Ad||(Ad=new TextDecoder);const n=[];let i=0,o=-1,r=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(i===0){if($a(n)<1)break;const l=Ta(n,1);r=(l[0]&128)===128,o=l[0]&127,o<126?i=3:o===126?i=1:i=2}else if(i===1){if($a(n)<2)break;const l=Ta(n,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),i=3}else if(i===2){if($a(n)<8)break;const l=Ta(n,8),c=new DataView(l.buffer,l.byteOffset,l.length),d=c.getUint32(0);if(d>Math.pow(2,21)-1){a.enqueue(Mu);break}o=d*Math.pow(2,32)+c.getUint32(4),i=3}else{if($a(n)<o)break;const l=Ta(n,o);a.enqueue(Qf(r?l:Ad.decode(l),t)),i=0}if(o===0||o>e){a.enqueue(Mu);break}}}})}const nx=4;function bt(e){if(e)return JD(e)}function JD(e){for(var t in bt.prototype)e[t]=bt.prototype[t];return e}bt.prototype.on=bt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};bt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};bt.prototype.off=bt.prototype.removeListener=bt.prototype.removeAllListeners=bt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,o=0;o<n.length;o++)if(i=n[o],i===t||i.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};bt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,o=n.length;i<o;++i)n[i].apply(this,t)}return this};bt.prototype.emitReserved=bt.prototype.emit;bt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};bt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ac=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),yn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),QD="arraybuffer";function ix(e,...t){return t.reduce((n,i)=>(e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}const eB=yn.setTimeout,tB=yn.clearTimeout;function Oc(e,t){t.useNativeTimers?(e.setTimeoutFn=eB.bind(yn),e.clearTimeoutFn=tB.bind(yn)):(e.setTimeoutFn=yn.setTimeout.bind(yn),e.clearTimeoutFn=yn.clearTimeout.bind(yn))}const nB=1.33;function iB(e){return typeof e=="string"?oB(e):Math.ceil((e.byteLength||e.size)*nB)}function oB(e){let t=0,n=0;for(let i=0,o=e.length;i<o;i++)t=e.charCodeAt(i),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(i++,n+=4);return n}function ox(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function rB(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function sB(e){let t={},n=e.split("&");for(let i=0,o=n.length;i<o;i++){let r=n[i].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}class aB extends Error{constructor(t,n,i){super(t),this.description=n,this.context=i,this.type="TransportError"}}class eh extends bt{constructor(t){super(),this.writable=!1,Oc(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,i){return super.emitReserved("error",new aB(t,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Qf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=rB(t);return n.length?"?"+n:""}}class lB extends eh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};XD(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,KD(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=ox()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let rx=!1;try{rx=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const cB=rx;function dB(){}class uB extends lB{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,n){const i=this.request({method:"POST",data:t});i.on("success",n),i.on("error",(o,r)=>{this.onError("xhr post error",o,r)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=t}}let mr=class nl extends bt{constructor(t,n,i){super(),this.createRequest=t,Oc(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;const n=ix(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&i.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var o;i.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=nl.requestsCount++,nl.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=dB,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete nl.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};mr.requestsCount=0;mr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ug);else if(typeof addEventListener=="function"){const e="onpagehide"in yn?"pagehide":"unload";addEventListener(e,ug,!1)}}function ug(){for(let e in mr.requests)mr.requests.hasOwnProperty(e)&&mr.requests[e].abort()}const fB=(function(){const e=sx({xdomain:!1});return e&&e.responseType!==null})();class hB extends uB{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=fB&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new mr(sx,this.uri(),t)}}function sx(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||cB))return new XMLHttpRequest}catch{}if(!t)try{return new yn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ax=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class pB extends eh{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,i=ax?{}:ix(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,i)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],o=n===t.length-1;Jf(i,this.supportsBinary,r=>{try{this.doWrite(i,r)}catch{}o&&Ac(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=ox()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Od=yn.WebSocket||yn.MozWebSocket;class mB extends pB{createSocket(t,n,i){return ax?new Od(t,n,i):n?new Od(t,n):new Od(t)}doWrite(t,n){this.ws.send(n)}}class gB extends eh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=ZD(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=t.readable.pipeThrough(n).getReader(),o=GD();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const r=()=>{i.read().then(({done:a,value:l})=>{a||(this.onPacket(l),r())}).catch(a=>{})};r();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],o=n===t.length-1;this._writer.write(i).then(()=>{o&&Ac(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const bB={websocket:mB,webtransport:gB,polling:hB},vB=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,yB=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Fu(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),i=e.indexOf("]");n!=-1&&i!=-1&&(e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length));let o=vB.exec(e||""),r={},s=14;for(;s--;)r[yB[s]]=o[s]||"";return n!=-1&&i!=-1&&(r.source=t,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=xB(r,r.path),r.queryKey=wB(r,r.query),r}function xB(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&i.splice(0,1),t.slice(-1)=="/"&&i.splice(i.length-1,1),i}function wB(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,o,r){o&&(n[o]=r)}),n}const Hu=typeof addEventListener=="function"&&typeof removeEventListener=="function",il=[];Hu&&addEventListener("offline",()=>{il.forEach(e=>e())},!1);class Gi extends bt{constructor(t,n){if(super(),this.binaryType=QD,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const i=Fu(t);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=Fu(n.host).host);Oc(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(i=>{const o=i.prototype.name;this.transports.push(o),this._transportsByName[o]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=sB(this.opts.query)),Hu&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},il.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=nx,n.transport=t,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Gi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Gi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const o=this.writeBuffer[i].data;if(o&&(n+=iB(o)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Ac(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,i){return this._sendPacket("message",t,n,i),this}send(t,n,i){return this._sendPacket("message",t,n,i),this}_sendPacket(t,n,i,o){if(typeof n=="function"&&(o=n,n=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const r={type:t,data:n,options:i};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(Gi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Hu&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=il.indexOf(this._offlineEventListener);i!==-1&&il.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Gi.protocol=nx;class kB extends Gi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),i=!1;Gi.priorWebsocketSuccess=!1;const o=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!i)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Gi.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function r(){i||(i=!0,d(),n.close(),n=null)}const s=u=>{const f=new Error("probe error: "+u);f.transport=n.name,r(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function c(u){n&&u.name!==n.name&&r()}const d=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&n.push(t[i]);return n}}let SB=class extends kB{constructor(t,n={}){const i=typeof t=="object"?t:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(o=>bB[o]).filter(o=>!!o)),super(t,i)}};function CB(e,t="",n){let i=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),i=Fu(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const r=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port+t,i.href=i.protocol+"://"+r+(n&&n.port===i.port?"":":"+i.port),i}const EB=typeof ArrayBuffer=="function",$B=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,lx=Object.prototype.toString,TB=typeof Blob=="function"||typeof Blob<"u"&&lx.call(Blob)==="[object BlobConstructor]",_B=typeof File=="function"||typeof File<"u"&&lx.call(File)==="[object FileConstructor]";function th(e){return EB&&(e instanceof ArrayBuffer||$B(e))||TB&&e instanceof Blob||_B&&e instanceof File}function ol(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(ol(e[n]))return!0;return!1}if(th(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ol(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&ol(e[n]))return!0;return!1}function AB(e){const t=[],n=e.data,i=e;return i.data=Nu(n,t),i.attachments=t.length,{packet:i,buffers:t}}function Nu(e,t){if(!e)return e;if(th(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++)n[i]=Nu(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=Nu(e[i],t));return n}return e}function OB(e,t){return e.data=Vu(e.data,t),delete e.attachments,e}function Vu(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Vu(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Vu(e[n],t));return e}const RB=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],IB=5;var je;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(je||(je={}));class PB{constructor(t){this.replacer=t}encode(t){return(t.type===je.EVENT||t.type===je.ACK)&&ol(t)?this.encodeAsBinary({type:t.type===je.EVENT?je.BINARY_EVENT:je.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===je.BINARY_EVENT||t.type===je.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=AB(t),i=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(i),o}}function fg(e){return Object.prototype.toString.call(e)==="[object Object]"}class nh extends bt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const i=n.type===je.BINARY_EVENT;i||n.type===je.BINARY_ACK?(n.type=i?je.EVENT:je.ACK,this.reconstructor=new DB(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(th(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const i={type:Number(t.charAt(0))};if(je[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===je.BINARY_EVENT||i.type===je.BINARY_ACK){const r=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(r,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(s)}if(t.charAt(n+1)==="/"){const r=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););i.nsp=t.substring(r,n)}else i.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const r=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}i.id=Number(t.substring(r,n+1))}if(t.charAt(++n)){const r=this.tryParse(t.substr(n));if(nh.isPayloadValid(i.type,r))i.data=r;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case je.CONNECT:return fg(n);case je.DISCONNECT:return n===void 0;case je.CONNECT_ERROR:return typeof n=="string"||fg(n);case je.EVENT:case je.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&RB.indexOf(n[0])===-1);case je.ACK:case je.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class DB{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=OB(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const BB=Object.freeze(Object.defineProperty({__proto__:null,Decoder:nh,Encoder:PB,get PacketType(){return je},protocol:IB},Symbol.toStringTag,{value:"Module"}));function _n(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const LB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class cx extends bt{constructor(t,n,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[_n(t,"open",this.onopen.bind(this)),_n(t,"packet",this.onpacket.bind(this)),_n(t,"error",this.onerror.bind(this)),_n(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var i,o,r;if(LB.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:je.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,u=n.pop();this._registerAckCallback(d,u),s.id=d}const a=(o=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((r=this.io.engine)===null||r===void 0)&&r._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var i;const o=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},o),s=(...a)=>{this.io.clearTimeoutFn(r),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((i,o)=>{const r=(s,a)=>s?o(s):i(a);r.withError=!0,n.push(r),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...r)=>i!==this._queue[0]?void 0:(o!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...r)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:je.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(i=>String(i.id)===t)){const i=this.acks[t];delete this.acks[t],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case je.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case je.EVENT:case je.BINARY_EVENT:this.onevent(t);break;case je.ACK:case je.BINARY_ACK:this.onack(t);break;case je.DISCONNECT:this.ondisconnect();break;case je.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let i=!1;return function(...o){i||(i=!0,n.packet({type:je.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:je.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,t.data)}}}function zr(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}zr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};zr.prototype.reset=function(){this.attempts=0};zr.prototype.setMin=function(e){this.ms=e};zr.prototype.setMax=function(e){this.max=e};zr.prototype.setJitter=function(e){this.jitter=e};class ju extends bt{constructor(t,n){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Oc(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new zr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||BB;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new SB(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const o=_n(n,"open",function(){i.onopen(),t&&t()}),r=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=_n(n,"error",r);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),r(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(_n(t,"ping",this.onping.bind(this)),_n(t,"data",this.ondata.bind(this)),_n(t,"error",this.onerror.bind(this)),_n(t,"close",this.onclose.bind(this)),_n(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ac(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let i=this.nsps[t];return i?this._autoConnect&&!i.active&&i.connect():(i=new cx(this,t,n),this.nsps[t]=i),i}_destroy(t){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let i=0;i<n.length;i++)this.engine.write(n[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Yr={};function rl(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=CB(e,t.path||"/socket.io"),i=n.source,o=n.id,r=n.path,s=Yr[o]&&r in Yr[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new ju(i,t):(Yr[o]||(Yr[o]=new ju(i,t)),l=Yr[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(rl,{Manager:ju,Socket:cx,io:rl,connect:rl});function zB(e,t,n=(o,r)=>{console.log("socket handler",o,r)},i=()=>({"X-TOKEN":window.localStorage.getItem("X-TOKEN"),"X-UID":window.localStorage.getItem("X-UID"),"X-CODE":window.localStorage.getItem("X-CODE")})){return jD("socket",{state:()=>({chats:[],inService:!1,isUnread:!1,msgs:[],inGame:!1,ws:void 0,listeners:new Map}),getters:{},actions:{init(){if(this.ws)return;const o=i(),r=rl(window.xConfig.ws,{query:o,transports:["websocket"]});r.on("game",s=>{this.emit("game",s),this.inGame&&(s=JSON.parse(s),this.msgs.length>=200&&(this.msgs=this.msgs.slice(-50)),this.msgs.push(s.data))}),r.on("service",s=>{if(this.emit("service",s),!this.inService){this.isUnread=!0;return}s=JSON.parse(s),this.chats.length>=200&&(this.chats=this.chats.slice(-50)),this.chats.push(s.data)}),r.on("apply",s=>this.emit("apply",s)),r.on("forceDisconnect",s=>n("forceDisconnect",s)),r.on("authError",s=>n("authError",s)),this.ws=r},disconnect(){this.ws&&this.ws.disconnect(),this.chats=[],this.inService=!1,this.isUnread=!1,this.msgs=[],this.inGame=!1,this.ws=void 0},joinGame(o){this.inGame=!0,this.ws.emit("joinGame",o),e({gameId:o}).then(r=>{this.msgs=r.reverse()})},leaveGame(o){this.inGame=!1,this.ws.emit("leaveGame",o),this.msgs=[]},joinService(){this.inService=!0,this.isUnread=!1,t().then(o=>{this.chats=o.reverse()})},leaveService(){this.inService=!1,this.chats=[]},emit(o,r){const s=this.listeners.get(o);s&&s.forEach(a=>a(r))},on(o,r){return this.listeners.has(o)||this.listeners.set(o,new Set),this.listeners.get(o).add(r),()=>{this.listeners.get(o).delete(r)}}}})}const MB=e=>Yf(e,void 0,{backdropDismiss:!1,buttons:[{text:"返回登录",role:"cancel",handler:()=>{localStorage.clear(),Mr.push("/login")}}]}),FB=(e,t)=>{if(e==="forceDisconnect"){MB(t);return}if(e==="authError"){Mr.push("/login");return}},qu=zB(PI,DI,FB);function HB(e){return Ut({url:"/api/v1/app/game",method:"get",params:e})}function gj(){return Ut({url:"/api/v1/app/game/list",method:"get"})}function bj(){return Ut({url:"/api/v1/app/game/opens",method:"get"})}function vj(){return Ut({url:"/api/v1/app/game/onlines",method:"get"})}function NB(e){return Ut({url:"/api/v1/app/member",method:"get",params:e})}function yj(){return Ut({url:"/api/v1/app/member/amount",method:"get"})}function xj(e){return Ut({url:"/api/v1/app/member/updatePass",method:"post",data:e})}function wj(e){return Ut({url:"/api/v1/app/member/login",method:"post",data:e})}function kj(e){return Ut({url:"/api/v1/app/member/register",method:"post",data:e})}function Sj(e){return Ut({url:"/api/v1/app/member/updatePayInfo",method:"post",data:e})}function Cj(e){return Ut({url:"/api/v1/app/member/auto-bet/info",method:"get",params:{gameId:e}})}function Ej(e){return Ut({url:"/api/v1/app/member/auto-bet/update",method:"post",data:e})}async function hg(e,t,n){if((await NB()).isAgent)return n();await TI("您不是代理,暂无邀请好友权限,请联系客服申请代理"),n(t)}const VB=[{path:"/login",component:()=>Re(()=>import("./index-BlqzNCWr.js"),__vite__mapDeps([0,1,2,3,4,5]))},{path:"/search",component:()=>Re(()=>import("./search-CwT0eZCw.js"),__vite__mapDeps([6,1,2,3,4,7]))},{path:"/",component:()=>Re(()=>import("./TabsPage-CVmnvyGB.js"),[]),children:[{path:"",redirect:"/home"},{path:"/home",component:()=>Re(()=>import("./index-BV_BYr-C.js"),__vite__mapDeps([8,9,2,10,11,12,13,4,14,15]))},{path:"/wallet",component:()=>Re(()=>import("./index-pAUNIIfW.js"),__vite__mapDeps([16,13,2,4,17]))},{path:"/service",component:()=>Re(()=>import("./index-BIawOabw.js"),__vite__mapDeps([18,2,4,19]))},{path:"/mine",component:()=>Re(()=>import("./index-fVTcahcw.js"),__vite__mapDeps([20,9,2,10,21]))}]},{path:"/game/:gameId",component:()=>Re(()=>import("./index-CE4jlwew.js"),__vite__mapDeps([22,13,2,4,23,11,12,24,25,26,27,28,29,30,31])),meta:{needKey:!0},beforeEnter:async(e,t,n)=>{const i=e.params.gameId;if(!i)return n("/home");const o=dx();try{const r=await HB({gameId:i});if(r===void 0)return Ga("游戏不存在"),n("/home");if(!r.isOpen)return Ga("游戏未开启"),n("/home")}catch{return Ga("进入游戏出错,请联系管理员"),n("/home")}finally{ux(o)}n()}},{path:"/rule",component:()=>Re(()=>import("./rule-DJ_XvY6V.js"),__vite__mapDeps([32,2,33])),beforeEnter:(e,t,n)=>e.query.gameId?n():n(t)},{path:"/trend",component:()=>Re(()=>import("./index-BQAfIWES.js"),__vite__mapDeps([34,30,2,4,25,35,36])),beforeEnter:(e,t,n)=>!e.query.lotCode&&!e.query.gameType?n(t):n()},{path:"/auto-bet",component:()=>Re(()=>import("./index-C4q5R2Vz.js"),__vite__mapDeps([37,26,2,27,28,38])),beforeEnter:(e,t,n)=>e.query.gameId?n():n(t)},{path:"/notice",component:()=>Re(()=>import("./index-H66qGAc6.js"),__vite__mapDeps([39,35,2,14,40]))},{path:"/wallet/amount",component:()=>Re(()=>import("./amount-Calqw9vh.js"),__vite__mapDeps([41,13,2,4,42]))},{path:"/wallet/pay-info/alipay",component:()=>Re(()=>import("./alipay-DrCjH2kd.js"),__vite__mapDeps([43,44,2,45,46,4]))},{path:"/wallet/pay-info/wechat-pay",component:()=>Re(()=>import("./wechat-pay-Bx7NO-FV.js"),__vite__mapDeps([47,44,2,45,46,4]))},{path:"/wallet/pay-info/bank",component:()=>Re(()=>import("./bank-blkZSJHB.js"),__vite__mapDeps([48,2,45,46]))},{path:"/wallet/pay-info/usdt",component:()=>Re(()=>import("./usdt-xB8NkuA0.js"),__vite__mapDeps([49,2,45,46]))},{path:"/wallet/recharge",component:()=>Re(()=>import("./recharge-gUmR0ITz.js"),__vite__mapDeps([50,51,2,45,46,4,52,13,27,53]))},{path:"/wallet/withdraw",component:()=>Re(()=>import("./withdraw-CQnCJaYJ.js"),__vite__mapDeps([54,2,51,45,46,4,52,13,27,53,55]))},{path:"/chat",component:()=>Re(()=>import("./chat-B30gxZvI.js"),__vite__mapDeps([56,2,23,4,57]))},{path:"/record/bet",component:()=>Re(()=>import("./BetRecord-CgL702Ar.js"),__vite__mapDeps([58,24,2,25,4,59,35,29,60]))},{path:"/record/money",component:()=>Re(()=>import("./MoneyRecord-CZ7t59HX.js"),__vite__mapDeps([61,2,4,35,62]))},{path:"/record/finance",component:()=>Re(()=>import("./FinanceRecord-DAlDNR1V.js"),__vite__mapDeps([63,2,4,35,53,64]))},{path:"/mine/invite",component:()=>Re(()=>import("./invite-mvPm5q_h.js"),__vite__mapDeps([65,2,66]))},{path:"/mine/agent",component:()=>Re(()=>import("./agent-BMJlIJkB.js"),__vite__mapDeps([67,13,2,4,68,69,59,70,71])),beforeEnter:hg},{path:"/mine/agent/members",component:()=>Re(()=>import("./agent-members-KJpOy60m.js"),__vite__mapDeps([72,13,2,4,45,52,68,69,59,70,73,74,35,75])),beforeEnter:hg},{path:"/mine/statistics",component:()=>Re(()=>import("./statistics-Cmnarkz6.js"),__vite__mapDeps([76,29,2,45,52,46,73,13,4,68,69,74,77]))},{path:"/mine/setting",component:()=>Re(()=>import("./setting-D1To_Uac.js"),__vite__mapDeps([78,2,79]))},{path:"/mine/password",component:()=>Re(()=>import("./password-D9OdUQSH.js"),__vite__mapDeps([80,2,4,81]))},{path:"/:pathMatch(.*)",redirect:"/",hidden:!0}],Mr=RI({history:II(),routes:VB});Mr.beforeEach((e,t)=>window.localStorage.getItem("isLogin")!=="true"?(qu().disconnect(),e.path==="/login"?!0:{path:"/login"}):(qu().init(),e.path==="/login"?{path:"/home"}:!0));const ih=e=>Ga(e),jB=e=>ih(e),qB=e=>ih(e),pg=e=>Mr.push(e),dx=()=>$I(void 0),ux=e=>{e!==void 0&&typeof e.then=="function"&&e.then(t=>{t.dismiss()})},Ut=LD(window.xConfig,{WARN:ih,ERROR:jB,NOTIFY:qB,REDIRECT:pg,createLoading:dx,closeLoading:ux,errorHandler401(){localStorage.setItem("isLogin","false"),qu().disconnect(),pg("/login")}});function UB(e){return Ut({url:"/api/v1/app/room",method:"get",params:e})}const WB={setup(){},created(){},mounted(){UB().then(e=>{window.document.title=e.roomName,jm(e.expireTime).isBefore(jm())&&this.dialog()})},methods:{dialog(){Yf("服务暂停","当前服务已暂停,请联系客服",{backdropDismiss:!1,keyboardClose:!1,buttons:[{text:"好的",role:"test",disabled:!0,handler(){throw new Error("服务暂停,不允许关闭")}}]})}}},YB=Object.assign(WB,{__name:"App",setup(e){return(t,n)=>(ur(),fr(tn(hy),null,{default:Zb(()=>[t.$route.meta.needKey?(ur(),fr(tn(zm),{key:t.$route.fullPath})):(ur(),fr(tn(zm),{key:1}))]),_:1}))}});function Uu(){}const Ee=Object.assign,kn=typeof window<"u",Hn=e=>e!==null&&typeof e=="object",qe=e=>e!=null,Tr=e=>typeof e=="function",oh=e=>Hn(e)&&Tr(e.then)&&Tr(e.catch),Fs=e=>Object.prototype.toString.call(e)==="[object Date]"&&!Number.isNaN(e.getTime());function fx(e){return e=e.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(e)||/^0[0-9-]{10,13}$/.test(e)}const hx=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),KB=()=>kn?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function mg(e,t){const n=t.split(".");let i=e;return n.forEach(o=>{var r;i=Hn(i)&&(r=i[o])!=null?r:""}),i}function We(e,t,n){return t.reduce((i,o)=>((!n||e[o]!==void 0)&&(i[o]=e[o]),i),{})}const ni=(e,t)=>JSON.stringify(e)===JSON.stringify(t),Il=e=>Array.isArray(e)?e:[e],XB=e=>e.reduce((t,n)=>t.concat(n),[]),rt=null,oe=[Number,String],Z={type:Boolean,default:!0},_t=e=>({type:e,required:!0}),it=()=>({type:Array,default:()=>[]}),kt=e=>({type:Number,default:e}),be=e=>({type:oe,default:e}),se=e=>({type:String,default:e});function Ti(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function Pl(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function Eo(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Hs(e){Pl(window,e),Pl(document.body,e)}function gg(e,t){if(e===window)return 0;const n=t?Ti(t):Eo();return Ye(e).top+n}const GB=KB();function px(){GB&&Hs(Eo())}const rh=e=>e.stopPropagation();function et(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&rh(e)}function Io(e){const t=tn(e);if(!t)return!1;const n=window.getComputedStyle(t),i=n.display==="none",o=t.offsetParent===null&&n.position!=="fixed";return i||o}const{width:Bn,height:wn}=tP();function ZB(e){const t=window.getComputedStyle(e);return t.transform!=="none"||t.perspective!=="none"||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))}function JB(e){let t=e.parentElement;for(;t;){if(t&&t.tagName!=="HTML"&&t.tagName!=="BODY"&&ZB(t))return t;t=t.parentElement}return null}function Ae(e){if(qe(e))return hx(e)?`${e}px`:String(e)}function Ii(e){if(qe(e)){if(Array.isArray(e))return{width:Ae(e[0]),height:Ae(e[1])};const t=Ae(e);return{width:t,height:t}}}function Pi(e){const t={};return e!==void 0&&(t.zIndex=+e),t}let Rd;function QB(){if(!Rd){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;Rd=parseFloat(t)}return Rd}function eL(e){return e=e.replace(/rem/g,""),+e*QB()}function tL(e){return e=e.replace(/vw/g,""),+e*Bn.value/100}function nL(e){return e=e.replace(/vh/g,""),+e*wn.value/100}function sh(e){if(typeof e=="number")return e;if(kn){if(e.includes("rem"))return eL(e);if(e.includes("vw"))return tL(e);if(e.includes("vh"))return nL(e)}return parseFloat(e)}const iL=/-(\w)/g,mx=e=>e.replace(iL,(t,n)=>n.toUpperCase()),oL=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function Rn(e,t=2){let n=e+"";for(;n.length<t;)n="0"+n;return n}const Et=(e,t,n)=>Math.min(Math.max(e,t),n);function bg(e,t,n){const i=e.indexOf(t);return i===-1?e:t==="-"&&i!==0?e.slice(0,i):e.slice(0,i+1)+e.slice(i).replace(n,"")}function Wu(e,t=!0,n=!0){t?e=bg(e,".",/\./g):e=e.split(".")[0],n?e=bg(e,"-",/-/g):e=e.replace(/-/,"");const i=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(i,"")}function gx(e,t){return Math.round((e+t)*1e10)/1e10}const{hasOwnProperty:rL}=Object.prototype;function sL(e,t,n){const i=t[n];qe(i)&&(!rL.call(e,n)||!Hn(i)?e[n]=i:e[n]=bx(Object(e[n]),i))}function bx(e,t){return Object.keys(t).forEach(n=>{sL(e,t,n)}),e}var aL={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const vg=V("zh-CN"),yg=nt({"zh-CN":aL}),vx={messages(){return yg[vg.value]},use(e,t){vg.value=e,this.add({[e]:t})},add(e={}){bx(yg,e)}};var lL=vx;function cL(e){const t=mx(e)+".";return(n,...i)=>{const o=lL.messages(),r=mg(o,t+n)||mg(o,n);return Tr(r)?r(...i):r}}function Yu(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,i)=>n+Yu(e,i),""):Object.keys(t).reduce((n,i)=>n+(t[i]?Yu(e,i):""),""):""}function dL(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Yu(t,n)}`)}function te(e){const t=`van-${e}`;return[t,dL(t),cL(t)]}const Di="van-hairline",yx=`${Di}--top`,xx=`${Di}--left`,uL=`${Di}--right`,ah=`${Di}--bottom`,bs=`${Di}--surround`,Rc=`${Di}--top-bottom`,fL=`${Di}-unset--top-bottom`,Vt="van-haptics-feedback",wx=Symbol("van-form"),kx=500,xg=5;function oo(e,{args:t=[],done:n,canceled:i,error:o}){if(e){const r=e.apply(null,t);oh(r)?r.then(s=>{s?n():i&&i()}).catch(o||Uu):r?n():i&&i()}else n()}function re(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(mx(`-${n}`),e))},e}function Dl(e,t){return e.reduce((n,i)=>Math.abs(n-t)<Math.abs(i-t)?n:i)}const Sx=Symbol();function Ic(e){const t=Qe(Sx,null);t&&le(t,n=>{n&&e()})}const Cx=(e,t)=>{const n=V(),i=()=>{n.value=Ye(e).height};return at(()=>{if(Pe(i),t)for(let o=1;o<=3;o++)setTimeout(i,100*o)}),Ic(()=>Pe(i)),le([Bn,wn],i),n};function Pc(e,t){const n=Cx(e,!0);return i=>h("div",{class:t("placeholder"),style:{height:n.value?`${n.value}px`:void 0}},[i()])}const[Ex,wg]=te("action-bar"),lh=Symbol(Ex),hL={placeholder:Boolean,safeAreaInsetBottom:Z};var pL=G({name:Ex,props:hL,setup(e,{slots:t}){const n=V(),i=Pc(n,wg),{linkChildren:o}=qt(lh);o();const r=()=>{var s;return h("div",{ref:n,class:[wg(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[(s=t.default)==null?void 0:s.call(t)])};return()=>e.placeholder?i(r):r()}});const $x=re(pL);function Fe(e){const t=sn();t&&Ee(t.proxy,e)}const ro={to:[String,Object],url:String,replace:Boolean};function Tx({to:e,url:t,replace:n,$router:i}){e&&i?i[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function Do(){const e=sn().proxy;return()=>Tx(e)}const[mL,kg]=te("badge"),gL={dot:Boolean,max:oe,tag:se("div"),color:String,offset:Array,content:oe,showZero:Z,position:se("top-right")};var bL=G({name:mL,props:gL,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:a,showZero:l}=e;return qe(a)&&a!==""&&(l||a!==0&&a!=="0")},i=()=>{const{dot:a,max:l,content:c}=e;if(!a&&n())return t.content?t.content():qe(l)&&hx(c)&&+c>+l?`${l}+`:c},o=a=>a.startsWith("-")?a.replace("-",""):`-${a}`,r=N(()=>{const a={background:e.color};if(e.offset){const[l,c]=e.offset,{position:d}=e,[u,f]=d.split("-");t.default?(typeof c=="number"?a[u]=Ae(u==="top"?c:-c):a[u]=u==="top"?Ae(c):o(c),typeof l=="number"?a[f]=Ae(f==="left"?l:-l):a[f]=f==="left"?Ae(l):o(l)):(a.marginTop=Ae(c),a.marginLeft=Ae(l))}return a}),s=()=>{if(n()||e.dot)return h("div",{class:kg([e.position,{dot:e.dot,fixed:!!t.default}]),style:r.value},[i()])};return()=>{if(t.default){const{tag:a}=e;return h(a,{class:kg("wrapper")},{default:()=>[t.default(),s()]})}return s()}}});const Bo=re(bL);let _x=2e3;const vL=()=>++_x,yL=e=>{_x=e},[Ax,xL]=te("config-provider"),Ox=Symbol(Ax),wL={tag:se("div"),theme:se("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:se("local"),iconPrefix:String};function kL(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function SL(e){const t={};return Object.keys(e).forEach(n=>{const i=kL(oL(n));t[`--van-${i}`]=e[n]}),t}function _a(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}var CL=G({name:Ax,props:wL,setup(e,{slots:t}){const n=N(()=>SL(Ee({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(kn){const i=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},o=(r=e.theme)=>{document.documentElement.classList.remove(`van-theme-${r}`)};le(()=>e.theme,(r,s)=>{s&&o(s),i()},{immediate:!0}),ri(i),si(o),ai(o),le(n,(r,s)=>{e.themeVarsScope==="global"&&_a(r,s)}),le(()=>e.themeVarsScope,(r,s)=>{s==="global"&&_a({},n.value),r==="global"&&_a(n.value,{})}),e.themeVarsScope==="global"&&_a(n.value,{})}return Pn(Ox,e),Or(()=>{e.zIndex!==void 0&&yL(e.zIndex)}),()=>h(e.tag,{class:xL(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var i;return[(i=t.default)==null?void 0:i.call(t)]}})}});const[EL,Sg]=te("icon"),$L=e=>e==null?void 0:e.includes("/"),TL={dot:Boolean,tag:se("i"),name:String,size:oe,badge:oe,color:String,badgeProps:Object,classPrefix:String};var _L=G({name:EL,props:TL,setup(e,{slots:t}){const n=Qe(Ox,null),i=N(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Sg());return()=>{const{tag:o,dot:r,name:s,size:a,badge:l,color:c}=e,d=$L(s);return h(Bo,De({dot:r,tag:o,class:[i.value,d?"":`${i.value}-${s}`],style:{color:c,fontSize:Ae(a)},content:l},e.badgeProps),{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t),d&&h("img",{class:Sg("image"),src:s},null)]}})}}});const Oe=re(_L);var AL=Oe;const[OL,vs]=te("loading"),RL=Array(12).fill(null).map((e,t)=>h("i",{class:vs("line",String(t+1))},null)),IL=h("svg",{class:vs("circular"),viewBox:"25 25 50 50"},[h("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),PL={size:oe,type:se("circular"),color:String,vertical:Boolean,textSize:oe,textColor:String};var DL=G({name:OL,props:PL,setup(e,{slots:t}){const n=N(()=>Ee({color:e.color},Ii(e.size))),i=()=>{const r=e.type==="spinner"?RL:IL;return h("span",{class:vs("spinner",e.type),style:n.value},[t.icon?t.icon():r])},o=()=>{var r;if(t.default)return h("span",{class:vs("text"),style:{fontSize:Ae(e.textSize),color:(r=e.textColor)!=null?r:e.color}},[t.default()])};return()=>{const{type:r,vertical:s}=e;return h("div",{class:vs([r,{vertical:s}]),"aria-live":"polite","aria-busy":!0},[i(),o()])}}});const Vn=re(DL),[BL,Fo]=te("button"),LL=Ee({},ro,{tag:se("button"),text:String,icon:String,type:se("default"),size:se("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:se("button"),loadingSize:oe,loadingText:String,loadingType:String,iconPosition:se("left")});var zL=G({name:BL,props:LL,emits:["click"],setup(e,{emit:t,slots:n}){const i=Do(),o=()=>n.loading?n.loading():h(Vn,{size:e.loadingSize,type:e.loadingType,class:Fo("loading")},null),r=()=>{if(e.loading)return o();if(n.icon)return h("div",{class:Fo("icon")},[n.icon()]);if(e.icon)return h(Oe,{name:e.icon,class:Fo("icon"),classPrefix:e.iconPrefix},null)},s=()=>{let c;if(e.loading?c=e.loadingText:c=n.default?n.default():e.text,c)return h("span",{class:Fo("text")},[c])},a=()=>{const{color:c,plain:d}=e;if(c){const u={color:d?c:"white"};return d||(u.background=c),c.includes("gradient")?u.border=0:u.borderColor=c,u}},l=c=>{e.loading?et(c):e.disabled||(t("click",c),i())};return()=>{const{tag:c,type:d,size:u,block:f,round:p,plain:b,square:m,loading:g,disabled:x,hairline:v,nativeType:k,iconPosition:C}=e,y=[Fo([d,u,{plain:b,block:f,round:p,square:m,loading:g,disabled:x,hairline:v}]),{[bs]:v}];return h(c,{type:k,class:y,style:a(),disabled:x,onClick:l},{default:()=>[h("div",{class:Fo("content")},[C==="left"&&r(),s(),C==="right"&&r()])]})}}});const jt=re(zL),[ML,FL]=te("action-bar-button"),HL=Ee({},ro,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var NL=G({name:ML,props:HL,setup(e,{slots:t}){const n=Do(),{parent:i,index:o}=Lt(lh),r=N(()=>{if(i){const a=i.children[o.value-1];return!(a&&"isButton"in a)}}),s=N(()=>{if(i){const a=i.children[o.value+1];return!(a&&"isButton"in a)}});return Fe({isButton:!0}),()=>{const{type:a,icon:l,text:c,color:d,loading:u,disabled:f}=e;return h(jt,{class:FL([a,{last:s.value,first:r.value}]),size:"large",type:a,icon:l,color:d,loading:u,disabled:f,onClick:n},{default:()=>[t.default?t.default():c]})}}});const Ku=re(NL),[VL,Id]=te("action-bar-icon"),jL=Ee({},ro,{dot:Boolean,text:String,icon:String,color:String,badge:oe,iconClass:rt,badgeProps:Object,iconPrefix:String});var qL=G({name:VL,props:jL,setup(e,{slots:t}){const n=Do();Lt(lh);const i=()=>{const{dot:o,badge:r,icon:s,color:a,iconClass:l,badgeProps:c,iconPrefix:d}=e;return t.icon?h(Bo,De({dot:o,class:Id("icon"),content:r},c),{default:t.icon}):h(Oe,{tag:"div",dot:o,name:s,badge:r,color:a,class:[Id("icon"),l],badgeProps:c,classPrefix:d},null)};return()=>h("div",{role:"button",class:Id(),tabindex:0,onClick:n},[i(),t.default?t.default():e.text])}});const UL=re(qL),Fr={show:Boolean,zIndex:oe,overlay:Z,duration:oe,teleport:[String,Object],lockScroll:Z,lazyRender:Z,beforeClose:Function,overlayStyle:Object,overlayClass:rt,transitionAppear:Boolean,closeOnClickOverlay:Z},ch=Object.keys(Fr);function WL(e,t){return e>t?"horizontal":t>e?"vertical":""}function Sn(){const e=V(0),t=V(0),n=V(0),i=V(0),o=V(0),r=V(0),s=V(""),a=V(!0),l=()=>s.value==="vertical",c=()=>s.value==="horizontal",d=()=>{n.value=0,i.value=0,o.value=0,r.value=0,s.value="",a.value=!0};return{move:p=>{const b=p.touches[0];n.value=(b.clientX<0?0:b.clientX)-e.value,i.value=b.clientY-t.value,o.value=Math.abs(n.value),r.value=Math.abs(i.value);const m=10;(!s.value||o.value<m&&r.value<m)&&(s.value=WL(o.value,r.value)),a.value&&(o.value>xg||r.value>xg)&&(a.value=!1)},start:p=>{d(),e.value=p.touches[0].clientX,t.value=p.touches[0].clientY},reset:d,startX:e,startY:t,deltaX:n,deltaY:i,offsetX:o,offsetY:r,direction:s,isVertical:l,isHorizontal:c,isTap:a}}let Kr=0;const Cg="van-overflow-hidden";function Rx(e,t){const n=Sn(),i="01",o="10",r=d=>{n.move(d);const u=n.deltaY.value>0?o:i,f=Kf(d.target,e.value),{scrollHeight:p,offsetHeight:b,scrollTop:m}=f;let g="11";m===0?g=b>=p?"00":"01":m+b>=p&&(g="10"),g!=="11"&&n.isVertical()&&!(parseInt(g,2)&parseInt(u,2))&&et(d,!0)},s=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,{passive:!1}),Kr||document.body.classList.add(Cg),Kr++},a=()=>{Kr&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Kr--,Kr||document.body.classList.remove(Cg))},l=()=>t()&&s(),c=()=>t()&&a();Pr(l),si(c),ai(c),le(t,d=>{d?s():a()})}function dh(e){const t=V(!1);return le(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Bl=()=>{var e;const{scopeId:t}=((e=sn())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[YL,KL]=te("overlay"),XL={show:Boolean,zIndex:oe,duration:oe,className:rt,lockScroll:Z,lazyRender:Z,customStyle:Object,teleport:[String,Object]};var GL=G({name:YL,inheritAttrs:!1,props:XL,setup(e,{attrs:t,slots:n}){const i=V(),o=dh(()=>e.show||!e.lazyRender),r=a=>{e.lockScroll&&et(a,!0)},s=o(()=>{var a;const l=Ee(Pi(e.zIndex),e.customStyle);return qe(e.duration)&&(l.animationDuration=`${e.duration}s`),At(h("div",De({ref:i,style:l,class:[KL(),e.className]},t),[(a=n.default)==null?void 0:a.call(n)]),[[Pt,e.show]])});return ft("touchmove",r,{target:i}),()=>{const a=h(Gl,{name:"van-fade",appear:!0},{default:s});return e.teleport?h(to,{to:e.teleport},{default:()=>[a]}):a}}});const Ix=re(GL),ZL=Ee({},Fr,{round:Boolean,position:se("center"),closeIcon:se("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:se("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[JL,Eg]=te("popup");var QL=G({name:JL,inheritAttrs:!1,props:ZL,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:i}){let o,r;const s=V(),a=V(),l=dh(()=>e.show||!e.lazyRender),c=N(()=>{const E={zIndex:s.value};if(qe(e.duration)){const $=e.position==="center"?"animationDuration":"transitionDuration";E[$]=`${e.duration}s`}return E}),d=()=>{o||(o=!0,s.value=e.zIndex!==void 0?+e.zIndex:vL(),t("open"))},u=()=>{o&&oo(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},f=E=>{t("clickOverlay",E),e.closeOnClickOverlay&&u()},p=()=>{if(e.overlay)return h(Ix,De({show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},Bl(),{onClick:f}),{default:i["overlay-content"]})},b=E=>{t("clickCloseIcon",E),u()},m=()=>{if(e.closeable)return h(Oe,{role:"button",tabindex:0,name:e.closeIcon,class:[Eg("close-icon",e.closeIconPosition),Vt],classPrefix:e.iconPrefix,onClick:b},null)};let g;const x=()=>{g&&clearTimeout(g),g=setTimeout(()=>{t("opened")})},v=()=>t("closed"),k=E=>t("keydown",E),C=l(()=>{var E;const{destroyOnClose:$,round:S,position:T,safeAreaInsetTop:A,safeAreaInsetBottom:w,show:_}=e;if(!(!_&&$))return At(h("div",De({ref:a,style:c.value,role:"dialog",tabindex:0,class:[Eg({round:S,[T]:T}),{"van-safe-area-top":A,"van-safe-area-bottom":w}],onKeydown:k},n,Bl()),[(E=i.default)==null?void 0:E.call(i),m()]),[[Pt,_]])}),y=()=>{const{position:E,transition:$,transitionAppear:S}=e,T=E==="center"?"van-fade":`van-popup-slide-${E}`;return h(Gl,{name:$||T,appear:S,onAfterEnter:x,onAfterLeave:v},{default:C})};return le(()=>e.show,E=>{E&&!o&&(d(),n.tabindex===0&&Pe(()=>{var $;($=a.value)==null||$.focus()})),!E&&o&&(o=!1,t("close"))}),Fe({popupRef:a}),Rx(a,()=>e.show&&e.lockScroll),ft("popstate",()=>{e.closeOnPopstate&&(u(),r=!1)}),at(()=>{e.show&&d()}),ri(()=>{r&&(t("update:show",!0),r=!1)}),si(()=>{e.show&&e.teleport&&(u(),r=!0)}),Pn(Sx,()=>e.show),()=>e.teleport?h(to,{to:e.teleport},{default:()=>[p(),y()]}):h(dt,null,[p(),y()])}});const jn=re(QL),[e4,gn]=te("action-sheet"),t4=Ee({},Fr,{title:String,round:Z,actions:it(),closeIcon:se("cross"),closeable:Z,cancelText:String,description:String,closeOnPopstate:Z,closeOnClickAction:Boolean,safeAreaInsetBottom:Z}),n4=[...ch,"round","closeOnPopstate","safeAreaInsetBottom"];var i4=G({name:e4,props:t4,emits:["select","cancel","update:show"],setup(e,{slots:t,emit:n}){const i=u=>n("update:show",u),o=()=>{i(!1),n("cancel")},r=()=>{if(e.title)return h("div",{class:gn("header")},[e.title,e.closeable&&h(Oe,{name:e.closeIcon,class:[gn("close"),Vt],onClick:o},null)])},s=()=>{if(t.cancel||e.cancelText)return[h("div",{class:gn("gap")},null),h("button",{type:"button",class:gn("cancel"),onClick:o},[t.cancel?t.cancel():e.cancelText])]},a=u=>{if(u.icon)return h(Oe,{class:gn("item-icon"),name:u.icon},null)},l=(u,f)=>u.loading?h(Vn,{class:gn("loading-icon")},null):t.action?t.action({action:u,index:f}):[h("span",{class:gn("name")},[u.name]),u.subname&&h("div",{class:gn("subname")},[u.subname])],c=(u,f)=>{const{color:p,loading:b,callback:m,disabled:g,className:x}=u,v=()=>{g||b||(m&&m(u),e.closeOnClickAction&&i(!1),Pe(()=>n("select",u,f)))};return h("button",{type:"button",style:{color:p},class:[gn("item",{loading:b,disabled:g}),x],onClick:v},[a(u),l(u,f)])},d=()=>{if(e.description||t.description){const u=t.description?t.description():e.description;return h("div",{class:gn("description")},[u])}};return()=>h(jn,De({class:gn(),position:"bottom","onUpdate:show":i},We(e,n4)),{default:()=>{var u;return[r(),d(),h("div",{class:gn("content")},[e.actions.map(c),(u=t.default)==null?void 0:u.call(t)]),s()]}})}});const o4=re(i4),[r4,xi,$g]=te("picker"),Px=e=>e.find(t=>!t.disabled)||e[0];function s4(e,t){const n=e[0];if(n){if(Array.isArray(n))return"multiple";if(t.children in n)return"cascade"}return"default"}function sl(e,t){t=Et(t,0,e.length);for(let n=t;n<e.length;n++)if(!e[n].disabled)return n;for(let n=t-1;n>=0;n--)if(!e[n].disabled)return n;return 0}const Tg=(e,t,n)=>t!==void 0&&e.some(i=>i[n.value]===t);function Xu(e,t,n){const i=e.findIndex(r=>r[n.value]===t),o=sl(e,i);return e[o]}function a4(e,t,n){const i=[];let o={[t.children]:e},r=0;for(;o&&o[t.children];){const s=o[t.children],a=n.value[r];if(o=qe(a)?Xu(s,a,t):void 0,!o&&s.length){const l=Px(s)[t.value];o=Xu(s,l,t)}r++,i.push(s)}return i}function l4(e){const{transform:t}=window.getComputedStyle(e),n=t.slice(7,t.length-1).split(", ")[5];return Number(n)}function c4(e){return Ee({text:"text",value:"value",children:"children"},e)}const _g=200,Ag=300,d4=15,[Dx,Pd]=te("picker-column"),Bx=Symbol(Dx);var u4=G({name:Dx,props:{value:oe,fields:_t(Object),options:it(),readonly:Boolean,allowHtml:Boolean,optionHeight:_t(Number),swipeDuration:_t(oe),visibleOptionNum:_t(oe)},emits:["change","clickOption","scrollInto"],setup(e,{emit:t,slots:n}){let i,o,r,s,a;const l=V(),c=V(),d=V(0),u=V(0),f=Sn(),p=()=>e.options.length,b=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,m=A=>{let w=sl(e.options,A);const _=-w*e.optionHeight,D=()=>{w>p()-1&&(w=sl(e.options,A));const F=e.options[w][e.fields.value];F!==e.value&&t("change",F)};i&&_!==d.value?a=D:D(),d.value=_},g=()=>e.readonly||!e.options.length,x=A=>{i||g()||(a=null,u.value=_g,m(A),t("clickOption",e.options[A]))},v=A=>Et(Math.round(-A/e.optionHeight),0,p()-1),k=N(()=>v(d.value)),C=(A,w)=>{const _=Math.abs(A/w);A=d.value+_/.003*(A<0?-1:1);const D=v(A);u.value=+e.swipeDuration,m(D)},y=()=>{i=!1,u.value=0,a&&(a(),a=null)},E=A=>{if(!g()){if(f.start(A),i){const w=l4(c.value);d.value=Math.min(0,w-b())}u.value=0,o=d.value,r=Date.now(),s=o,a=null}},$=A=>{if(g())return;f.move(A),f.isVertical()&&(i=!0,et(A,!0));const w=Et(o+f.deltaY.value,-(p()*e.optionHeight),e.optionHeight),_=v(w);_!==k.value&&t("scrollInto",e.options[_]),d.value=w;const D=Date.now();D-r>Ag&&(r=D,s=w)},S=()=>{if(g())return;const A=d.value-s,w=Date.now()-r;if(w<Ag&&Math.abs(A)>d4){C(A,w);return}const D=v(d.value);u.value=_g,m(D),setTimeout(()=>{i=!1},0)},T=()=>{const A={height:`${e.optionHeight}px`};return e.options.map((w,_)=>{const D=w[e.fields.text],{disabled:F}=w,H=w[e.fields.value],P={role:"button",style:A,tabindex:F?-1:0,class:[Pd("item",{disabled:F,selected:H===e.value}),w.className],onClick:()=>x(_)},M={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:D};return h("li",P,[n.option?n.option(w,_):h("div",M,null)])})};return Lt(Bx),Fe({stopMomentum:y}),Or(()=>{const A=i?Math.floor(-d.value/e.optionHeight):e.options.findIndex(D=>D[e.fields.value]===e.value),w=sl(e.options,A),_=-w*e.optionHeight;i&&w<A&&y(),d.value=_}),ft("touchmove",$,{target:l}),()=>h("div",{ref:l,class:Pd(),onTouchstartPassive:E,onTouchend:S,onTouchcancel:S},[h("ul",{ref:c,style:{transform:`translate3d(0, ${d.value+b()}px, 0)`,transitionDuration:`${u.value}ms`,transitionProperty:u.value?"all":"none"},class:Pd("wrapper"),onTransitionend:y},[T()])])}});const[f4]=te("picker-toolbar"),Dc={title:String,cancelButtonText:String,confirmButtonText:String},Lx=["cancel","confirm","title","toolbar"],h4=Object.keys(Dc);var zx=G({name:f4,props:Dc,emits:["confirm","cancel"],setup(e,{emit:t,slots:n}){const i=()=>{if(n.title)return n.title();if(e.title)return h("div",{class:[xi("title"),"van-ellipsis"]},[e.title])},o=()=>t("cancel"),r=()=>t("confirm"),s=()=>{var l;const c=(l=e.cancelButtonText)!=null?l:$g("cancel");if(!(!n.cancel&&!c))return h("button",{type:"button",class:[xi("cancel"),Vt],onClick:o},[n.cancel?n.cancel():c])},a=()=>{var l;const c=(l=e.confirmButtonText)!=null?l:$g("confirm");if(!(!n.confirm&&!c))return h("button",{type:"button",class:[xi("confirm"),Vt],onClick:r},[n.confirm?n.confirm():c])};return()=>h("div",{class:xi("toolbar")},[n.toolbar?n.toolbar():[s(),i(),a()]])}});const uh=(e,t)=>{const n=V(e());return le(e,i=>{i!==n.value&&(n.value=i)}),le(n,i=>{i!==e()&&t(i)}),n};function p4(e,t,n){let i,o=0;const r=e.scrollLeft,s=n===0?1:Math.round(n*1e3/16);let a=r;function l(){yc(i)}function c(){a+=(t-r)/s,e.scrollLeft=a,++o<s&&(i=Ht(c))}return c(),l}function m4(e,t,n,i){let o,r=Ti(e);const s=r<t,a=n===0?1:Math.round(n*1e3/16),l=(t-r)/a;function c(){yc(o)}function d(){r+=l,(s&&r>t||!s&&r<t)&&(r=t),Pl(e,r),s&&r<t||!s&&r>t?o=Ht(d):i&&(o=Ht(i))}return d(),c}let g4=0;function Hr(){const e=sn(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++g4}`}function sa(){const e=V([]),t=[];return cv(()=>{e.value=[]}),[e,i=>(t[i]||(t[i]=o=>{e.value[i]=o}),t[i])]}function Mx(e,t){if(!kn||!window.IntersectionObserver)return;const n=new IntersectionObserver(r=>{t(r[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&n.observe(e.value)},o=()=>{e.value&&n.unobserve(e.value)};si(o),ai(o),Pr(i)}const[b4,v4]=te("sticky"),y4={zIndex:oe,position:se("top"),container:Object,offsetTop:be(0),offsetBottom:be(0)};var x4=G({name:b4,props:y4,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const i=V(),o=Dr(i),r=nt({fixed:!1,width:0,height:0,transform:0}),s=V(!1),a=N(()=>sh(e.position==="top"?e.offsetTop:e.offsetBottom)),l=N(()=>{if(s.value)return;const{fixed:f,height:p,width:b}=r;if(f)return{width:`${b}px`,height:`${p}px`}}),c=N(()=>{if(!r.fixed||s.value)return;const f=Ee(Pi(e.zIndex),{width:`${r.width}px`,height:`${r.height}px`,[e.position]:`${a.value}px`});return r.transform&&(f.transform=`translate3d(0, ${r.transform}px, 0)`),f}),d=f=>t("scroll",{scrollTop:f,isFixed:r.fixed}),u=()=>{if(!i.value||Io(i))return;const{container:f,position:p}=e,b=Ye(i),m=Ti(window);if(r.width=b.width,r.height=b.height,p==="top")if(f){const g=Ye(f),x=g.bottom-a.value-r.height;r.fixed=a.value>b.top&&g.bottom>0,r.transform=x<0?x:0}else r.fixed=a.value>b.top;else{const{clientHeight:g}=document.documentElement;if(f){const x=Ye(f),v=g-x.top-a.value-r.height;r.fixed=g-a.value<b.bottom&&g>x.top,r.transform=v<0?-v:0}else r.fixed=g-a.value<b.bottom}d(m)};return le(()=>r.fixed,f=>t("change",f)),ft("scroll",u,{target:o,passive:!0}),Mx(i,u),le([Bn,wn],()=>{!i.value||Io(i)||!r.fixed||(s.value=!0,Pe(()=>{const f=Ye(i);r.width=f.width,r.height=f.height,s.value=!1}))}),()=>{var f;return h("div",{ref:i,style:l.value},[h("div",{class:v4({fixed:r.fixed&&!s.value}),style:c.value},[(f=n.default)==null?void 0:f.call(n)])])}}});const Fx=re(x4),[Hx,Aa]=te("swipe"),w4={loop:Z,width:oe,height:oe,vertical:Boolean,autoplay:be(0),duration:be(500),touchable:Z,lazyRender:Boolean,initialSwipe:be(0),indicatorColor:String,showIndicators:Z,stopPropagation:Z},Nx=Symbol(Hx);var k4=G({name:Hx,props:w4,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const i=V(),o=V(),r=nt({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let s=!1;const a=Sn(),{children:l,linkChildren:c}=qt(Nx),d=N(()=>l.length),u=N(()=>r[e.vertical?"height":"width"]),f=N(()=>e.vertical?a.deltaY.value:a.deltaX.value),p=N(()=>r.rect?(e.vertical?r.rect.height:r.rect.width)-u.value*d.value:0),b=N(()=>u.value?Math.ceil(Math.abs(p.value)/u.value):d.value),m=N(()=>d.value*u.value),g=N(()=>(r.active+d.value)%d.value),x=N(()=>{const ie=e.vertical?"vertical":"horizontal";return a.direction.value===ie}),v=N(()=>{const ie={transitionDuration:`${r.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+r.offset.toFixed(2)}px)`};if(u.value){const q=e.vertical?"height":"width",J=e.vertical?"width":"height";ie[q]=`${m.value}px`,ie[J]=e[J]?`${e[J]}px`:""}return ie}),k=ie=>{const{active:q}=r;return ie?e.loop?Et(q+ie,-1,d.value):Et(q+ie,0,b.value):q},C=(ie,q=0)=>{let J=ie*u.value;e.loop||(J=Math.min(J,-p.value));let me=q-J;return e.loop||(me=Et(me,p.value,0)),me},y=({pace:ie=0,offset:q=0,emitChange:J})=>{if(d.value<=1)return;const{active:me}=r,K=k(ie),de=C(K,q);if(e.loop){if(l[0]&&de!==p.value){const O=de<p.value;l[0].setOffset(O?m.value:0)}if(l[d.value-1]&&de!==0){const O=de>0;l[d.value-1].setOffset(O?-m.value:0)}}r.active=K,r.offset=de,J&&K!==me&&t("change",g.value)},E=()=>{r.swiping=!0,r.active<=-1?y({pace:d.value}):r.active>=d.value&&y({pace:-d.value})},$=()=>{E(),a.reset(),Yi(()=>{r.swiping=!1,y({pace:-1,emitChange:!0})})},S=()=>{E(),a.reset(),Yi(()=>{r.swiping=!1,y({pace:1,emitChange:!0})})};let T;const A=()=>clearTimeout(T),w=()=>{A(),+e.autoplay>0&&d.value>1&&(T=setTimeout(()=>{S(),w()},+e.autoplay))},_=(ie=+e.initialSwipe)=>{if(!i.value)return;const q=()=>{var J,me;if(!Io(i)){const K={width:i.value.offsetWidth,height:i.value.offsetHeight};r.rect=K,r.width=+((J=e.width)!=null?J:K.width),r.height=+((me=e.height)!=null?me:K.height)}d.value&&(ie=Math.min(d.value-1,ie),ie===-1&&(ie=d.value-1)),r.active=ie,r.swiping=!0,r.offset=C(ie),l.forEach(K=>{K.setOffset(0)}),w()};Io(i)?Pe().then(q):q()},D=()=>_(r.active);let F;const H=ie=>{!e.touchable||ie.touches.length>1||(a.start(ie),s=!1,F=Date.now(),A(),E())},P=ie=>{e.touchable&&r.swiping&&(a.move(ie),x.value&&(!e.loop&&(r.active===0&&f.value>0||r.active===d.value-1&&f.value<0)||(et(ie,e.stopPropagation),y({offset:f.value}),s||(t("dragStart",{index:g.value}),s=!0))))},M=()=>{if(!e.touchable||!r.swiping)return;const ie=Date.now()-F,q=f.value/ie;if((Math.abs(q)>.25||Math.abs(f.value)>u.value/2)&&x.value){const me=e.vertical?a.offsetY.value:a.offsetX.value;let K=0;e.loop?K=me>0?f.value>0?-1:1:0:K=-Math[f.value>0?"ceil":"floor"](f.value/u.value),y({pace:K,emitChange:!0})}else f.value&&y({pace:0});s=!1,r.swiping=!1,t("dragEnd",{index:g.value}),w()},L=(ie,q={})=>{E(),a.reset(),Yi(()=>{let J;e.loop&&ie===d.value?J=r.active===0?0:ie:J=ie%d.value,q.immediate?Yi(()=>{r.swiping=!1}):r.swiping=!1,y({pace:J-r.active,emitChange:!0})})},ce=(ie,q)=>{const J=q===g.value,me=J?{backgroundColor:e.indicatorColor}:void 0;return h("i",{style:me,class:Aa("indicator",{active:J})},null)},fe=()=>{if(n.indicator)return n.indicator({active:g.value,total:d.value});if(e.showIndicators&&d.value>1)return h("div",{class:Aa("indicators",{vertical:e.vertical})},[Array(d.value).fill("").map(ce)])};return Fe({prev:$,next:S,state:r,resize:D,swipeTo:L}),c({size:u,props:e,count:d,activeIndicator:g}),le(()=>e.initialSwipe,ie=>_(+ie)),le(d,()=>_(r.active)),le(()=>e.autoplay,w),le([Bn,wn,()=>e.width,()=>e.height],D),le(oP(),ie=>{ie==="visible"?w():A()}),at(_),ri(()=>_(r.active)),Ic(()=>_(r.active)),si(A),ai(A),ft("touchmove",P,{target:o}),()=>{var ie;return h("div",{ref:i,class:Aa()},[h("div",{ref:o,style:v.value,class:Aa("track",{vertical:e.vertical}),onTouchstartPassive:H,onTouchend:M,onTouchcancel:M},[(ie=n.default)==null?void 0:ie.call(n)]),fe()])}}});const fh=re(k4),[S4,Og]=te("tabs");var C4=G({name:S4,props:{count:_t(Number),inited:Boolean,animated:Boolean,duration:_t(oe),swipeable:Boolean,lazyRender:Boolean,currentIndex:_t(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const i=V(),o=a=>t("change",a),r=()=>{var a;const l=(a=n.default)==null?void 0:a.call(n);return e.animated||e.swipeable?h(fh,{ref:i,loop:!1,class:Og("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:o},{default:()=>[l]}):l},s=a=>{const l=i.value;l&&l.state.active!==a&&l.swipeTo(a,{immediate:!e.inited})};return le(()=>e.currentIndex,s),at(()=>{s(e.currentIndex)}),Fe({swipeRef:i}),()=>h("div",{class:Og("content",{animated:e.animated||e.swipeable})},[r()])}});const[Vx,Oa]=te("tabs"),E4={type:se("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:be(0),duration:be(.3),animated:Boolean,ellipsis:Z,swipeable:Boolean,scrollspy:Boolean,offsetTop:be(0),background:String,lazyRender:Z,showHeader:Z,lineWidth:oe,lineHeight:oe,beforeChange:Function,swipeThreshold:be(5),titleActiveColor:String,titleInactiveColor:String},jx=Symbol(Vx);var $4=G({name:Vx,props:E4,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:t,slots:n}){let i,o,r,s,a;const l=V(),c=V(),d=V(),u=V(),f=Hr(),p=Dr(l),[b,m]=sa(),{children:g,linkChildren:x}=qt(jx),v=nt({inited:!1,position:"",lineStyle:{},currentIndex:-1}),k=N(()=>g.length>+e.swipeThreshold||!e.ellipsis||e.shrink),C=N(()=>({borderColor:e.color,background:e.background})),y=(K,de)=>{var O;return(O=K.name)!=null?O:de},E=N(()=>{const K=g[v.currentIndex];if(K)return y(K,v.currentIndex)}),$=N(()=>sh(e.offsetTop)),S=N(()=>e.sticky?$.value+i:0),T=K=>{const de=c.value,O=b.value;if(!k.value||!de||!O||!O[v.currentIndex])return;const Y=O[v.currentIndex].$el,j=Y.offsetLeft-(de.offsetWidth-Y.offsetWidth)/2;s&&s(),s=p4(de,j,K?0:+e.duration)},A=()=>{const K=v.inited;Pe(()=>{const de=b.value;if(!de||!de[v.currentIndex]||e.type!=="line"||Io(l.value))return;const O=de[v.currentIndex].$el,{lineWidth:Y,lineHeight:j}=e,Q=O.offsetLeft+O.offsetWidth/2,ye={width:Ae(Y),backgroundColor:e.color,transform:`translateX(${Q}px) translateX(-50%)`};if(K&&(ye.transitionDuration=`${e.duration}s`),qe(j)){const R=Ae(j);ye.height=R,ye.borderRadius=R}v.lineStyle=ye})},w=K=>{const de=K<v.currentIndex?-1:1;for(;K>=0&&K<g.length;){if(!g[K].disabled)return K;K+=de}},_=(K,de)=>{const O=w(K);if(!qe(O))return;const Y=g[O],j=y(Y,O),Q=v.currentIndex!==null;v.currentIndex!==O&&(v.currentIndex=O,de||T(),A()),j!==e.active&&(t("update:active",j),Q&&t("change",j,Y.title)),r&&!e.scrollspy&&Hs(Math.ceil(gg(l.value)-$.value))},D=(K,de)=>{const O=g.findIndex((Y,j)=>y(Y,j)===K);_(O===-1?0:O,de)},F=(K=!1)=>{if(e.scrollspy){const de=g[v.currentIndex].$el;if(de&&p.value){const O=gg(de,p.value)-S.value;o=!0,a&&a(),a=m4(p.value,O,K?0:+e.duration,()=>{o=!1})}}},H=(K,de,O)=>{const{title:Y,disabled:j}=g[de],Q=y(g[de],de);j||(oo(e.beforeChange,{args:[Q],done:()=>{_(de),F()}}),Tx(K)),t("clickTab",{name:Q,title:Y,event:O,disabled:j})},P=K=>{r=K.isFixed,t("scroll",K)},M=K=>{Pe(()=>{D(K),F(!0)})},L=()=>{for(let K=0;K<g.length;K++){const{top:de}=Ye(g[K].$el);if(de>S.value)return K===0?0:K-1}return g.length-1},ce=()=>{if(e.scrollspy&&!o){const K=L();_(K)}},fe=()=>{if(e.type==="line"&&g.length)return h("div",{class:Oa("line"),style:v.lineStyle},null)},ie=()=>{var K,de,O;const{type:Y,border:j,sticky:Q}=e,ye=[h("div",{ref:Q?void 0:d,class:[Oa("wrap"),{[Rc]:Y==="line"&&j}]},[h("div",{ref:c,role:"tablist",class:Oa("nav",[Y,{shrink:e.shrink,complete:k.value}]),style:C.value,"aria-orientation":"horizontal"},[(K=n["nav-left"])==null?void 0:K.call(n),g.map(R=>R.renderTitle(H)),fe(),(de=n["nav-right"])==null?void 0:de.call(n)])]),(O=n["nav-bottom"])==null?void 0:O.call(n)];return Q?h("div",{ref:d},[ye]):ye},q=()=>{A(),Pe(()=>{var K,de;T(!0),(de=(K=u.value)==null?void 0:K.swipeRef.value)==null||de.resize()})};le(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],A),le(Bn,q),le(()=>e.active,K=>{K!==E.value&&D(K)}),le(()=>g.length,()=>{v.inited&&(D(e.active),A(),Pe(()=>{T(!0)}))});const J=()=>{D(e.active,!0),Pe(()=>{v.inited=!0,d.value&&(i=Ye(d.value).height),T(!0)})},me=(K,de)=>t("rendered",K,de);return Fe({resize:q,scrollTo:M}),ri(A),Ic(A),Pr(J),Mx(l,A),ft("scroll",ce,{target:p,passive:!0}),x({id:f,props:e,setLine:A,scrollable:k,onRendered:me,currentName:E,setTitleRefs:m,scrollIntoView:T}),()=>h("div",{ref:l,class:Oa([e.type])},[e.showHeader?e.sticky?h(Fx,{container:l.value,offsetTop:$.value,onScroll:P},{default:()=>[ie()]}):ie():null,h(C4,{ref:u,count:g.length,inited:v.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:v.currentIndex,onChange:_},{default:()=>{var K;return[(K=n.default)==null?void 0:K.call(n)]}})])}});const qx=Symbol(),T4=()=>Qe(qx,null),[_4,Rg]=te("tab"),A4=G({name:_4,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:oe,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:Z},setup(e,{slots:t}){const n=N(()=>{const o={},{type:r,color:s,disabled:a,isActive:l,activeColor:c,inactiveColor:d}=e;s&&r==="card"&&(o.borderColor=s,a||(l?o.backgroundColor=s:o.color=s));const f=l?c:d;return f&&(o.color=f),o}),i=()=>{const o=h("span",{class:Rg("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||qe(e.badge)&&e.badge!==""?h(Bo,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[o]}):o};return()=>h("div",{id:e.id,role:"tab",class:[Rg([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:n.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":"attribute"},[i()])}}),[O4,R4]=te("swipe-item");var I4=G({name:O4,setup(e,{slots:t}){let n;const i=nt({offset:0,inited:!1,mounted:!1}),{parent:o,index:r}=Lt(Nx);if(!o)return;const s=N(()=>{const c={},{vertical:d}=o.props;return o.size.value&&(c[d?"height":"width"]=`${o.size.value}px`),i.offset&&(c.transform=`translate${d?"Y":"X"}(${i.offset}px)`),c}),a=N(()=>{const{loop:c,lazyRender:d}=o.props;if(!d||n)return!0;if(!i.mounted)return!1;const u=o.activeIndicator.value,f=o.count.value-1,p=u===0&&c?f:u-1,b=u===f&&c?0:u+1;return n=r.value===u||r.value===p||r.value===b,n}),l=c=>{i.offset=c};return at(()=>{Pe(()=>{i.mounted=!0})}),Fe({setOffset:l}),()=>{var c;return h("div",{class:R4(),style:s.value},[a.value?(c=t.default)==null?void 0:c.call(t):null])}}});const hh=re(I4),[P4,Dd]=te("tab"),D4=Ee({},ro,{dot:Boolean,name:oe,badge:oe,title:String,disabled:Boolean,titleClass:rt,titleStyle:[String,Object],showZeroBadge:Z});var B4=G({name:P4,props:D4,setup(e,{slots:t}){const n=Hr(),i=V(!1),o=sn(),{parent:r,index:s}=Lt(jx);if(!r)return;const a=()=>{var b;return(b=e.name)!=null?b:s.value},l=()=>{i.value=!0,r.props.lazyRender&&Pe(()=>{r.onRendered(a(),e.title)})},c=N(()=>{const b=a()===r.currentName.value;return b&&!i.value&&l(),b}),d=V(""),u=V("");Or(()=>{const{titleClass:b,titleStyle:m}=e;d.value=b?yy(b):"",u.value=m&&typeof m!="string"?jI(vy(m)):m});const f=b=>h(A4,De({key:n,id:`${r.id}-${s.value}`,ref:r.setTitleRefs(s.value),style:u.value,class:d.value,isActive:c.value,controls:n,scrollable:r.scrollable.value,activeColor:r.props.titleActiveColor,inactiveColor:r.props.titleInactiveColor,onClick:m=>b(o.proxy,s.value,m)},We(r.props,["type","color","shrink"]),We(e,["dot","badge","title","disabled","showZeroBadge"])),{title:t.title}),p=V(!c.value);return le(c,b=>{b?p.value=!1:Yi(()=>{p.value=!0})}),le(()=>e.title,()=>{r.setLine(),r.scrollIntoView()}),Pn(qx,c),Fe({id:n,renderTitle:f}),()=>{var b;const m=`${r.id}-${s.value}`,{animated:g,swipeable:x,scrollspy:v,lazyRender:k}=r.props;if(!t.default&&!g)return;const C=v||c.value;if(g||x)return h(hh,{id:n,role:"tabpanel",class:Dd("panel-wrapper",{inactive:p.value}),tabindex:c.value?0:-1,"aria-hidden":!c.value,"aria-labelledby":m,"data-allow-mismatch":"attribute"},{default:()=>{var $;return[h("div",{class:Dd("panel")},[($=t.default)==null?void 0:$.call(t)])]}});const E=i.value||v||!k?(b=t.default)==null?void 0:b.call(t):null;return At(h("div",{id:n,role:"tabpanel",class:Dd("panel"),tabindex:C?0:-1,"aria-labelledby":m,"data-allow-mismatch":"attribute"},[E]),[[Pt,C]])}}});const Ns=re(B4),Bc=re($4),[Ux,Bd]=te("picker-group"),Wx=Symbol(Ux),L4=Ee({tabs:it(),activeTab:be(0),nextStepText:String,showToolbar:Z},Dc);var z4=G({name:Ux,props:L4,emits:["confirm","cancel","update:activeTab"],setup(e,{emit:t,slots:n}){const i=uh(()=>e.activeTab,c=>t("update:activeTab",c)),{children:o,linkChildren:r}=qt(Wx);r();const s=()=>+i.value<e.tabs.length-1&&e.nextStepText,a=()=>{s()?i.value=+i.value+1:t("confirm",o.map(c=>c.confirm()))},l=()=>t("cancel");return()=>{var c,d;let u=(d=(c=n.default)==null?void 0:c.call(n))==null?void 0:d.filter(p=>p.type!==$t).map(p=>p.type===dt?p.children:p);u&&(u=XB(u));const f=s()?e.nextStepText:e.confirmButtonText;return h("div",{class:Bd()},[e.showToolbar?h(zx,{title:e.title,cancelButtonText:e.cancelButtonText,confirmButtonText:f,onConfirm:a,onCancel:l},We(n,Lx)):null,h(Bc,{active:i.value,"onUpdate:active":p=>i.value=p,class:Bd("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[e.tabs.map((p,b)=>h(Ns,{title:p,titleClass:Bd("tab-title")},{default:()=>[u==null?void 0:u[b]]}))]})])}}});const Lc=Ee({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:be(44),showToolbar:Z,swipeDuration:be(1e3),visibleOptionNum:be(6)},Dc),M4=Ee({},Lc,{columns:it(),modelValue:it(),toolbarPosition:se("top"),columnsFieldNames:Object});var F4=G({name:r4,props:M4,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(e,{emit:t,slots:n}){const i=V(),o=V(e.modelValue.slice(0)),{parent:r}=Lt(Wx),{children:s,linkChildren:a}=qt(Bx);a();const l=N(()=>c4(e.columnsFieldNames)),c=N(()=>sh(e.optionHeight)),d=N(()=>s4(e.columns,l.value)),u=N(()=>{const{columns:w}=e;switch(d.value){case"multiple":return w;case"cascade":return a4(w,l.value,o);default:return[w]}}),f=N(()=>u.value.some(w=>w.length)),p=N(()=>u.value.map((w,_)=>Xu(w,o.value[_],l.value))),b=N(()=>u.value.map((w,_)=>w.findIndex(D=>D[l.value.value]===o.value[_]))),m=(w,_)=>{if(o.value[w]!==_){const D=o.value.slice(0);D[w]=_,o.value=D}},g=()=>({selectedValues:o.value.slice(0),selectedOptions:p.value,selectedIndexes:b.value}),x=(w,_)=>{m(_,w),d.value==="cascade"&&o.value.forEach((D,F)=>{const H=u.value[F];Tg(H,D,l.value)||m(F,H.length?H[0][l.value.value]:void 0)}),Pe(()=>{t("change",Ee({columnIndex:_},g()))})},v=(w,_)=>{const D={columnIndex:_,currentOption:w};t("clickOption",Ee(g(),D)),t("scrollInto",D)},k=()=>{s.forEach(_=>_.stopMomentum());const w=g();return Pe(()=>{const _=g();t("confirm",_)}),w},C=()=>t("cancel",g()),y=()=>u.value.map((w,_)=>h(u4,{value:o.value[_],fields:l.value,options:w,readonly:e.readonly,allowHtml:e.allowHtml,optionHeight:c.value,swipeDuration:e.swipeDuration,visibleOptionNum:e.visibleOptionNum,onChange:D=>x(D,_),onClickOption:D=>v(D,_),onScrollInto:D=>{t("scrollInto",{currentOption:D,columnIndex:_})}},{option:n.option})),E=w=>{if(f.value){const _={height:`${c.value}px`},D={backgroundSize:`100% ${(w-c.value)/2}px`};return[h("div",{class:xi("mask"),style:D},null),h("div",{class:[fL,xi("frame")],style:_},null)]}},$=()=>{const w=c.value*+e.visibleOptionNum,_={height:`${w}px`};return!e.loading&&!f.value&&n.empty?n.empty():h("div",{ref:i,class:xi("columns"),style:_},[y(),E(w)])},S=()=>{if(e.showToolbar&&!r)return h(zx,De(We(e,h4),{onConfirm:k,onCancel:C}),We(n,Lx))};le(u,w=>{w.forEach((_,D)=>{_.length&&!Tg(_,o.value[D],l.value)&&m(D,Px(_)[l.value.value])})},{immediate:!0});let T;return le(()=>e.modelValue,w=>{!ni(w,o.value)&&!ni(w,T)&&(o.value=w.slice(0),T=w.slice(0))},{deep:!0}),le(o,w=>{ni(w,e.modelValue)||(T=w.slice(0),t("update:modelValue",T))},{immediate:!0}),ft("touchmove",et,{target:i}),Fe({confirm:k,getSelectedOptions:()=>p.value}),()=>{var w,_;return h("div",{class:xi()},[e.toolbarPosition==="top"?S():null,e.loading?h(Vn,{class:xi("loading")},null):null,(w=n["columns-top"])==null?void 0:w.call(n),$(),(_=n["columns-bottom"])==null?void 0:_.call(n),e.toolbarPosition==="bottom"?S():null])}}});const gr="000000",H4=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],Yx=["title","loading","readonly","optionHeight","swipeDuration","visibleOptionNum","cancelButtonText","confirmButtonText"],zi=(e="",t=gr,n=void 0)=>({text:e,value:t,children:n});function N4({areaList:e,columnsNum:t,columnsPlaceholder:n}){const{city_list:i={},county_list:o={},province_list:r={}}=e,s=+t>1,a=+t>2,l=()=>{if(s)return n.length>1?[zi(n[1],gr,a?[]:void 0)]:[]},c=new Map;Object.keys(r).forEach(f=>{c.set(f.slice(0,2),zi(r[f],f,l()))});const d=new Map;if(s){const f=()=>{if(a)return n.length>2?[zi(n[2])]:[]};Object.keys(i).forEach(p=>{const b=zi(i[p],p,f());d.set(p.slice(0,4),b);const m=c.get(p.slice(0,2));m&&m.children.push(b)})}a&&Object.keys(o).forEach(f=>{const p=d.get(f.slice(0,4));p&&p.children.push(zi(o[f],f))});const u=Array.from(c.values());if(n.length){const f=a?[zi(n[2])]:void 0,p=s?[zi(n[1],gr,f)]:void 0;u.unshift(zi(n[0],gr,p))}return u}const zc=re(F4),[V4,j4]=te("area"),q4=Ee({},We(Lc,Yx),{modelValue:String,columnsNum:be(3),columnsPlaceholder:it(),areaList:{type:Object,default:()=>({})}});var U4=G({name:V4,props:q4,emits:["change","confirm","cancel","update:modelValue"],setup(e,{emit:t,slots:n}){const i=V([]),o=V(),r=N(()=>N4(e)),s=(...c)=>t("change",...c),a=(...c)=>t("cancel",...c),l=(...c)=>t("confirm",...c);return le(i,c=>{const d=c.length?c[c.length-1]:"";d&&d!==e.modelValue&&t("update:modelValue",d)},{deep:!0}),le(()=>e.modelValue,c=>{if(c){const d=i.value.length?i.value[i.value.length-1]:"";c!==d&&(i.value=[`${c.slice(0,2)}0000`,`${c.slice(0,4)}00`,c].slice(0,+e.columnsNum))}else i.value=[]},{immediate:!0}),Fe({confirm:()=>{var c;return(c=o.value)==null?void 0:c.confirm()},getSelectedOptions:()=>{var c;return((c=o.value)==null?void 0:c.getSelectedOptions())||[]}}),()=>h(zc,De({ref:o,modelValue:i.value,"onUpdate:modelValue":c=>i.value=c,class:j4(),columns:r.value,onChange:s,onCancel:a,onConfirm:l},We(e,Yx)),We(n,H4))}});const Kx=re(U4),[W4,Ho]=te("cell"),Mc={tag:se("div"),icon:String,size:String,title:oe,value:oe,label:oe,center:Boolean,isLink:Boolean,border:Z,iconPrefix:String,valueClass:rt,labelClass:rt,titleClass:rt,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},Y4=Ee({},Mc,ro);var K4=G({name:W4,props:Y4,setup(e,{slots:t}){const n=Do(),i=()=>{if(t.label||qe(e.label))return h("div",{class:[Ho("label"),e.labelClass]},[t.label?t.label():e.label])},o=()=>{var l;if(t.title||qe(e.title)){const c=(l=t.title)==null?void 0:l.call(t);return Array.isArray(c)&&c.length===0?void 0:h("div",{class:[Ho("title"),e.titleClass],style:e.titleStyle},[c||h("span",null,[e.title]),i()])}},r=()=>{const l=t.value||t.default;if(l||qe(e.value))return h("div",{class:[Ho("value"),e.valueClass]},[l?l():h("span",null,[e.value])])},s=()=>{if(t.icon)return t.icon();if(e.icon)return h(Oe,{name:e.icon,class:Ho("left-icon"),classPrefix:e.iconPrefix},null)},a=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return h(Oe,{name:l,class:Ho("right-icon")},null)}};return()=>{var l;const{tag:c,size:d,center:u,border:f,isLink:p,required:b}=e,m=(l=e.clickable)!=null?l:p,g={center:u,required:!!b,clickable:m,borderless:!f};return d&&(g[d]=!!d),h(c,{class:Ho(g),role:m?"button":void 0,tabindex:m?0:void 0,onClick:n},{default:()=>{var x;return[s(),o(),r(),a(),(x=t.extra)==null?void 0:x.call(t)]}})}}});const qn=re(K4),[X4,G4]=te("form"),Z4={colon:Boolean,disabled:Boolean,readonly:Boolean,required:[Boolean,String],showError:Boolean,labelWidth:oe,labelAlign:String,inputAlign:String,scrollToError:Boolean,scrollToErrorPosition:String,validateFirst:Boolean,submitOnEnter:Z,showErrorMessage:Z,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};var J4=G({name:X4,props:Z4,emits:["submit","failed"],setup(e,{emit:t,slots:n}){const{children:i,linkChildren:o}=qt(wx),r=g=>g?i.filter(x=>g.includes(x.name)):i,s=g=>new Promise((x,v)=>{const k=[];r(g).reduce((y,E)=>y.then(()=>{if(!k.length)return E.validate().then($=>{$&&k.push($)})}),Promise.resolve()).then(()=>{k.length?v(k):x()})}),a=g=>new Promise((x,v)=>{const k=r(g);Promise.all(k.map(C=>C.validate())).then(C=>{C=C.filter(Boolean),C.length?v(C):x()})}),l=g=>{const x=i.find(v=>v.name===g);return x?new Promise((v,k)=>{x.validate().then(C=>{C?k(C):v()})}):Promise.reject()},c=g=>typeof g=="string"?l(g):e.validateFirst?s(g):a(g),d=g=>{typeof g=="string"&&(g=[g]),r(g).forEach(v=>{v.resetValidation()})},u=()=>i.reduce((g,x)=>(g[x.name]=x.getValidationStatus(),g),{}),f=(g,x)=>{i.some(v=>v.name===g?(v.$el.scrollIntoView(x),!0):!1)},p=()=>i.reduce((g,x)=>(x.name!==void 0&&(g[x.name]=x.formValue.value),g),{}),b=()=>{const g=p();c().then(()=>t("submit",g)).catch(x=>{t("failed",{values:g,errors:x});const{scrollToError:v,scrollToErrorPosition:k}=e;v&&x[0].name&&f(x[0].name,k?{block:k}:void 0)})},m=g=>{et(g),b()};return o({props:e}),Fe({submit:b,validate:c,getValues:p,scrollToField:f,resetValidation:d,getValidationStatus:u}),()=>{var g;return h("form",{class:G4(),onSubmit:m},[(g=n.default)==null?void 0:g.call(n)])}}});const ph=re(J4);function Xx(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function Q4(e,t){if(Xx(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function e3(e,t){return new Promise(n=>{const i=t.validator(e,t);if(oh(i)){i.then(n);return}n(i)})}function Ig(e,t){const{message:n}=t;return Tr(n)?n(e,t):n||""}function t3({target:e}){e.composing=!0}function Pg({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function n3(e,t){const n=Eo();e.style.height="auto";let i=e.scrollHeight;if(Hn(t)){const{maxHeight:o,minHeight:r}=t;o!==void 0&&(i=Math.min(i,o)),r!==void 0&&(i=Math.max(i,r))}i&&(e.style.height=`${i}px`,Hs(n))}function i3(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function fi(e){return[...e].length}function Ld(e,t){return[...e].slice(0,t).join("")}const[o3,bn]=te("field"),mh={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:oe,max:Number,min:Number,formatter:Function,clearIcon:se("clear"),modelValue:be(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:se("focus"),formatTrigger:se("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},r3=Ee({},Mc,mh,{rows:oe,type:se("text"),rules:Array,autosize:[Boolean,Object],labelWidth:oe,labelClass:rt,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var s3=G({name:o3,props:r3,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const i=Hr(),o=nt({status:"unvalidated",focused:!1,validateMessage:""}),r=V(),s=V(),a=V(),{parent:l}=Lt(wx),c=()=>{var O;return String((O=e.modelValue)!=null?O:"")},d=O=>{if(qe(e[O]))return e[O];if(l&&qe(l.props[O]))return l.props[O]},u=N(()=>{const O=d("readonly");if(e.clearable&&!O){const Y=c()!=="",j=e.clearTrigger==="always"||e.clearTrigger==="focus"&&o.focused;return Y&&j}return!1}),f=N(()=>a.value&&n.input?a.value():e.modelValue),p=N(()=>{var O;const Y=d("required");return Y==="auto"?(O=e.rules)==null?void 0:O.some(j=>j.required):Y}),b=O=>O.reduce((Y,j)=>Y.then(()=>{if(o.status==="failed")return;let{value:Q}=f;if(j.formatter&&(Q=j.formatter(Q,j)),!Q4(Q,j)){o.status="failed",o.validateMessage=Ig(Q,j);return}if(j.validator)return Xx(Q)&&j.validateEmpty===!1?void 0:e3(Q,j).then(ye=>{ye&&typeof ye=="string"?(o.status="failed",o.validateMessage=ye):ye===!1&&(o.status="failed",o.validateMessage=Ig(Q,j))})}),Promise.resolve()),m=()=>{o.status="unvalidated",o.validateMessage=""},g=()=>t("endValidate",{status:o.status,message:o.validateMessage}),x=(O=e.rules)=>new Promise(Y=>{m(),O?(t("startValidate"),b(O).then(()=>{o.status==="failed"?(Y({name:e.name,message:o.validateMessage}),g()):(o.status="passed",Y(),g())})):Y()}),v=O=>{if(l&&e.rules){const{validateTrigger:Y}=l.props,j=Il(Y).includes(O),Q=e.rules.filter(ye=>ye.trigger?Il(ye.trigger).includes(O):j);Q.length&&x(Q)}},k=O=>{var Y;const{maxlength:j}=e;if(qe(j)&&fi(O)>+j){const Q=c();if(Q&&fi(Q)===+j)return Q;const ye=(Y=r.value)==null?void 0:Y.selectionEnd;if(o.focused&&ye){const R=[...O],I=R.length-+j;return R.splice(ye-I,I),R.join("")}return Ld(O,+j)}return O},C=(O,Y="onChange")=>{var j,Q;const ye=O;O=k(O);const R=fi(ye)-fi(O);if(e.type==="number"||e.type==="digit"){const z=e.type==="number";if(O=Wu(O,z,z),Y==="onBlur"&&O!==""&&(e.min!==void 0||e.max!==void 0)){const X=Et(+O,(j=e.min)!=null?j:-1/0,(Q=e.max)!=null?Q:1/0);+O!==X&&(O=X.toString())}}let I=0;if(e.formatter&&Y===e.formatTrigger){const{formatter:z,maxlength:X}=e;if(O=z(O),qe(X)&&fi(O)>+X&&(O=Ld(O,+X)),r.value&&o.focused){const{selectionEnd:ne}=r.value,ee=Ld(ye,ne);I=fi(z(ee))-fi(ee)}}if(r.value&&r.value.value!==O)if(o.focused){let{selectionStart:z,selectionEnd:X}=r.value;if(r.value.value=O,qe(z)&&qe(X)){const ne=fi(O);R?(z-=R,X-=R):I&&(z+=I,X+=I),r.value.setSelectionRange(Math.min(z,ne),Math.min(X,ne))}}else r.value.value=O;O!==e.modelValue&&t("update:modelValue",O)},y=O=>{O.target.composing||C(O.target.value)},E=()=>{var O;return(O=r.value)==null?void 0:O.blur()},$=()=>{var O;return(O=r.value)==null?void 0:O.focus()},S=()=>{const O=r.value;e.type==="textarea"&&e.autosize&&O&&n3(O,e.autosize)},T=O=>{o.focused=!0,t("focus",O),Pe(S),d("readonly")&&E()},A=O=>{o.focused=!1,C(c(),"onBlur"),t("blur",O),!d("readonly")&&(v("onBlur"),Pe(S),px())},w=O=>t("clickInput",O),_=O=>t("clickLeftIcon",O),D=O=>t("clickRightIcon",O),F=O=>{et(O),t("update:modelValue",""),t("clear",O)},H=N(()=>{if(typeof e.error=="boolean")return e.error;if(l&&l.props.showError&&o.status==="failed")return!0}),P=N(()=>{const O=d("labelWidth"),Y=d("labelAlign");if(O&&Y!=="top")return{width:Ae(O)}}),M=O=>{O.keyCode===13&&(!(l&&l.props.submitOnEnter)&&e.type!=="textarea"&&et(O),e.type==="search"&&E()),t("keypress",O)},L=()=>e.id||`${i}-input`,ce=()=>o.status,fe=()=>{const O=bn("control",[d("inputAlign"),{error:H.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return h("div",{class:O,onClick:w},[n.input()]);const Y={id:L(),ref:r,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:O,disabled:d("disabled"),readonly:d("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${i}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:A,onFocus:T,onInput:y,onClick:w,onChange:Pg,onKeypress:M,onCompositionend:Pg,onCompositionstart:t3};return e.type==="textarea"?h("textarea",De(Y,{inputmode:e.inputmode}),null):h("input",De(i3(e.type,e.inputmode),Y),null)},ie=()=>{const O=n["left-icon"];if(e.leftIcon||O)return h("div",{class:bn("left-icon"),onClick:_},[O?O():h(Oe,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},q=()=>{const O=n["right-icon"];if(e.rightIcon||O)return h("div",{class:bn("right-icon"),onClick:D},[O?O():h(Oe,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},J=()=>{if(e.showWordLimit&&e.maxlength){const O=fi(c());return h("div",{class:bn("word-limit")},[h("span",{class:bn("word-num")},[O]),Ef("/"),e.maxlength])}},me=()=>{if(l&&l.props.showErrorMessage===!1)return;const O=e.errorMessage||o.validateMessage;if(O){const Y=n["error-message"],j=d("errorMessageAlign");return h("div",{class:bn("error-message",j)},[Y?Y({message:O}):O])}},K=()=>{const O=d("labelWidth"),Y=d("labelAlign"),j=d("colon")?":":"";if(n.label)return[n.label(),j];if(e.label)return h("label",{id:`${i}-label`,for:n.input?void 0:L(),"data-allow-mismatch":"attribute",onClick:Q=>{et(Q),$()},style:Y==="top"&&O?{width:Ae(O)}:void 0},[e.label+j])},de=()=>[h("div",{class:bn("body")},[fe(),u.value&&h(Oe,{ref:s,name:e.clearIcon,class:bn("clear")},null),q(),n.button&&h("div",{class:bn("button")},[n.button()])]),J(),me()];return Fe({blur:E,focus:$,validate:x,formValue:f,resetValidation:m,getValidationStatus:ce}),Pn(wy,{customValue:a,resetValidation:m,validateWithTrigger:v}),le(()=>e.modelValue,()=>{C(c()),m(),v("onChange"),Pe(S)}),at(()=>{C(c(),e.formatTrigger),Pe(S)}),ft("touchstart",F,{target:N(()=>{var O;return(O=s.value)==null?void 0:O.$el})}),()=>{const O=d("disabled"),Y=d("labelAlign"),j=ie(),Q=()=>{const ye=K();return Y==="top"?[j,ye].filter(Boolean):ye||[]};return h(qn,{size:e.size,class:bn({error:H.value,disabled:O,[`label-${Y}`]:Y}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:P.value,valueClass:bn("value"),titleClass:[bn("label",[Y,{required:p.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:j&&Y!=="top"?()=>j:null,title:Q,value:de,extra:n.extra})}}});const Si=re(s3);let Xr=0;function a3(e){e?(Xr||document.body.classList.add("van-toast--unclickable"),Xr++):Xr&&(Xr--,Xr||document.body.classList.remove("van-toast--unclickable"))}const[l3,No]=te("toast"),c3=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],d3={icon:String,show:Boolean,type:se("text"),overlay:Boolean,message:oe,iconSize:oe,duration:kt(2e3),position:se("middle"),teleport:[String,Object],wordBreak:String,className:rt,iconPrefix:String,transition:se("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:rt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:oe};var Gx=G({name:l3,props:d3,emits:["update:show"],setup(e,{emit:t,slots:n}){let i,o=!1;const r=()=>{const u=e.show&&e.forbidClick;o!==u&&(o=u,a3(o))},s=u=>t("update:show",u),a=()=>{e.closeOnClick&&s(!1)},l=()=>clearTimeout(i),c=()=>{const{icon:u,type:f,iconSize:p,iconPrefix:b,loadingType:m}=e;if(u||f==="success"||f==="fail")return h(Oe,{name:u||f,size:p,class:No("icon"),classPrefix:b},null);if(f==="loading")return h(Vn,{class:No("loading"),size:p,type:m},null)},d=()=>{const{type:u,message:f}=e;if(n.message)return h("div",{class:No("text")},[n.message()]);if(qe(f)&&f!=="")return u==="html"?h("div",{key:0,class:No("text"),innerHTML:String(f)},null):h("div",{class:No("text")},[f])};return le(()=>[e.show,e.forbidClick],r),le(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(i=setTimeout(()=>{s(!1)},e.duration))}),at(r),Po(r),()=>h(jn,De({class:[No([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:a,onClosed:l,"onUpdate:show":s},We(e,c3)),{default:()=>[c(),d()]})}});function Zx(){const e=nt({show:!1}),t=o=>{e.show=o},n=o=>{Ee(e,o,{transitionAppear:!0}),t(!0)},i=()=>t(!1);return Fe({open:n,close:i,toggle:t}),{open:n,close:i,state:e,toggle:t}}function Jx(e){const t=Mv(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const u3={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let Ra=[],f3=!1,Dg=Ee({},u3);const h3=new Map;function p3(e){return Hn(e)?e:{message:e}}function m3(){const{instance:e}=Jx({setup(){const t=V(""),{open:n,state:i,close:o,toggle:r}=Zx(),s=()=>{},a=()=>h(Gx,De(i,{onClosed:s,"onUpdate:show":r}),null);return le(t,l=>{i.message=l}),sn().render=a,{open:n,close:o,message:t}}});return e}function g3(){if(!Ra.length||f3){const e=m3();Ra.push(e)}return Ra[Ra.length-1]}function Gu(e={}){if(!kn)return{};const t=g3(),n=p3(e);return t.open(Ee({},Dg,h3.get(n.type||Dg.type),n)),t}const b3=re(Gx),[v3,zd]=te("switch"),y3={size:oe,loading:Boolean,disabled:Boolean,modelValue:rt,activeColor:String,inactiveColor:String,activeValue:{type:rt,default:!0},inactiveValue:{type:rt,default:!1}};var x3=G({name:v3,props:y3,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=()=>e.modelValue===e.activeValue,o=()=>{if(!e.disabled&&!e.loading){const s=i()?e.inactiveValue:e.activeValue;t("update:modelValue",s),t("change",s)}},r=()=>{if(e.loading){const s=i()?e.activeColor:e.inactiveColor;return h(Vn,{class:zd("loading"),color:s},null)}if(n.node)return n.node()};return io(()=>e.modelValue),()=>{var s;const{size:a,loading:l,disabled:c,activeColor:d,inactiveColor:u}=e,f=i(),p={fontSize:Ae(a),backgroundColor:f?d:u};return h("div",{role:"switch",class:zd({on:f,loading:l,disabled:c}),style:p,tabindex:c?void 0:0,"aria-checked":f,onClick:o},[h("div",{class:zd("node")},[r()]),(s=n.background)==null?void 0:s.call(n)])}}});const gh=re(x3),[w3,Bg]=te("address-edit-detail"),Lg=te("address-edit")[2];var k3=G({name:w3,props:{show:Boolean,rows:oe,value:String,rules:Array,focused:Boolean,maxlength:oe,searchResult:Array,showSearchResult:Boolean},emits:["blur","focus","input","selectSearch"],setup(e,{emit:t}){const n=V(),i=()=>e.focused&&e.searchResult&&e.showSearchResult,o=c=>{t("selectSearch",c),t("input",`${c.address||""} ${c.name||""}`.trim())},r=()=>{if(!i())return;const{searchResult:c}=e;return c.map(d=>h(qn,{clickable:!0,key:(d.name||"")+(d.address||""),icon:"location-o",title:d.name,label:d.address,class:Bg("search-item"),border:!1,onClick:()=>o(d)},null))},s=c=>t("blur",c),a=c=>t("focus",c),l=c=>t("input",c);return()=>{if(e.show)return h(dt,null,[h(Si,{autosize:!0,clearable:!0,ref:n,class:Bg(),rows:e.rows,type:"textarea",rules:e.rules,label:Lg("addressDetail"),border:!i(),maxlength:e.maxlength,modelValue:e.value,placeholder:Lg("addressDetail"),onBlur:s,onFocus:a,"onUpdate:modelValue":l},null),r()])}}});const[S3,Vo,Yt]=te("address-edit"),Qx={name:"",tel:"",city:"",county:"",province:"",areaCode:"",isDefault:!1,addressDetail:""},C3={areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showArea:Z,showDetail:Z,showDelete:Boolean,disableArea:Boolean,searchResult:Array,telMaxlength:oe,showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,detailRows:be(1),detailMaxlength:be(200),areaColumnsPlaceholder:it(),addressInfo:{type:Object,default:()=>Ee({},Qx)},telValidator:{type:Function,default:fx}};var E3=G({name:S3,props:C3,emits:["save","focus","change","delete","clickArea","changeArea","changeDetail","selectSearch","changeDefault"],setup(e,{emit:t,slots:n}){const i=V(),o=nt({}),r=V(!1),s=V(!1),a=N(()=>Hn(e.areaList)&&Object.keys(e.areaList).length),l=N(()=>{const{province:E,city:$,county:S,areaCode:T}=o;if(T){const A=[E,$,S];return E&&E===$&&A.splice(1,1),A.filter(Boolean).join("/")}return""}),c=N(()=>{var E;return((E=e.searchResult)==null?void 0:E.length)&&s.value}),d=E=>{s.value=E==="addressDetail",t("focus",E)},u=(E,$)=>{t("change",{key:E,value:$})},f=N(()=>{const{validator:E,telValidator:$}=e,S=(T,A)=>({validator:w=>{if(E){const _=E(T,w);if(_)return _}return w?!0:A}});return{name:[S("name",Yt("nameEmpty"))],tel:[S("tel",Yt("telInvalid")),{validator:$,message:Yt("telInvalid")}],areaCode:[S("areaCode",Yt("areaEmpty"))],addressDetail:[S("addressDetail",Yt("addressEmpty"))]}}),p=()=>t("save",o),b=E=>{o.addressDetail=E,t("changeDetail",E)},m=E=>{o.province=E[0].text,o.city=E[1].text,o.county=E[2].text},g=({selectedValues:E,selectedOptions:$})=>{E.some(S=>S===gr)?Gu(Yt("areaEmpty")):(r.value=!1,m($),t("changeArea",$))},x=()=>t("delete",o),v=E=>{o.areaCode=E||""},k=()=>{setTimeout(()=>{s.value=!1})},C=E=>{o.addressDetail=E},y=()=>{if(e.showSetDefault){const E={"right-icon":()=>h(gh,{modelValue:o.isDefault,"onUpdate:modelValue":$=>o.isDefault=$,onChange:$=>t("changeDefault",$)},null)};return At(h(qn,{center:!0,border:!1,title:Yt("defaultAddress"),class:Vo("default")},E),[[Pt,!c.value]])}};return Fe({setAreaCode:v,setAddressDetail:C}),le(()=>e.addressInfo,E=>{Ee(o,Qx,E),Pe(()=>{var $;const S=($=i.value)==null?void 0:$.getSelectedOptions();S&&S.every(T=>T&&T.value!==gr)&&m(S)})},{deep:!0,immediate:!0}),()=>{const{disableArea:E}=e;return h(ph,{class:Vo(),onSubmit:p},{default:()=>{var $;return[h("div",{class:Vo("fields")},[h(Si,{modelValue:o.name,"onUpdate:modelValue":[S=>o.name=S,S=>u("name",S)],clearable:!0,label:Yt("name"),rules:f.value.name,placeholder:Yt("name"),onFocus:()=>d("name")},null),h(Si,{modelValue:o.tel,"onUpdate:modelValue":[S=>o.tel=S,S=>u("tel",S)],clearable:!0,type:"tel",label:Yt("tel"),rules:f.value.tel,maxlength:e.telMaxlength,placeholder:Yt("tel"),onFocus:()=>d("tel")},null),At(h(Si,{readonly:!0,label:Yt("area"),"is-link":!E,modelValue:l.value,rules:e.showArea?f.value.areaCode:void 0,placeholder:e.areaPlaceholder||Yt("area"),onFocus:()=>d("areaCode"),onClick:()=>{t("clickArea"),r.value=!E}},null),[[Pt,e.showArea]]),h(k3,{show:e.showDetail,rows:e.detailRows,rules:f.value.addressDetail,value:o.addressDetail,focused:s.value,maxlength:e.detailMaxlength,searchResult:e.searchResult,showSearchResult:e.showSearchResult,onBlur:k,onFocus:()=>d("addressDetail"),onInput:b,onSelectSearch:S=>t("selectSearch",S)},null),($=n.default)==null?void 0:$.call(n)]),y(),At(h("div",{class:Vo("buttons")},[h(jt,{block:!0,round:!0,type:"primary",text:e.saveButtonText||Yt("save"),class:Vo("button"),loading:e.isSaving,nativeType:"submit"},null),e.showDelete&&h(jt,{block:!0,round:!0,class:Vo("button"),loading:e.isDeleting,text:e.deleteButtonText||Yt("delete"),onClick:x},null)]),[[Pt,!c.value]]),h(jn,{show:r.value,"onUpdate:show":S=>r.value=S,round:!0,teleport:"body",position:"bottom",lazyRender:!1},{default:()=>[h(Kx,{modelValue:o.areaCode,"onUpdate:modelValue":S=>o.areaCode=S,ref:i,loading:!a.value,areaList:e.areaList,columnsPlaceholder:e.areaColumnsPlaceholder,onConfirm:g,onCancel:()=>{r.value=!1}},null)]})]}})}}});const $3=re(E3),[ew,T3]=te("radio-group"),_3={shape:String,disabled:Boolean,iconSize:oe,direction:String,modelValue:rt,checkedColor:String},tw=Symbol(ew);var A3=G({name:ew,props:_3,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:i}=qt(tw),o=r=>t("update:modelValue",r);return le(()=>e.modelValue,r=>t("change",r)),i({props:e,updateValue:o}),io(()=>e.modelValue),()=>{var r;return h("div",{class:T3([e.direction]),role:"radiogroup"},[(r=n.default)==null?void 0:r.call(n)])}}});const bh=re(A3),[nw,O3]=te("checkbox-group"),R3={max:oe,shape:se("round"),disabled:Boolean,iconSize:oe,direction:String,modelValue:it(),checkedColor:String},iw=Symbol(nw);var I3=G({name:nw,props:R3,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{children:i,linkChildren:o}=qt(iw),r=a=>t("update:modelValue",a),s=(a={})=>{typeof a=="boolean"&&(a={checked:a});const{checked:l,skipDisabled:c}=a,u=i.filter(f=>f.props.bindGroup?f.props.disabled&&c?f.checked.value:l??!f.checked.value:!1).map(f=>f.name);r(u)};return le(()=>e.modelValue,a=>t("change",a)),Fe({toggleAll:s}),io(()=>e.modelValue),o({props:e,updateValue:r}),()=>{var a;return h("div",{class:O3([e.direction])},[(a=n.default)==null?void 0:a.call(n)])}}});const ow=re(I3),[P3,zg]=te("tag"),D3={size:String,mark:Boolean,show:Z,type:se("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var B3=G({name:P3,props:D3,emits:["close"],setup(e,{slots:t,emit:n}){const i=s=>{s.stopPropagation(),n("close",s)},o=()=>e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},r=()=>{var s;const{type:a,mark:l,plain:c,round:d,size:u,closeable:f}=e,p={mark:l,plain:c,round:d};u&&(p[u]=u);const b=f&&h(Oe,{name:"cross",class:[zg("close"),Vt],onClick:i},null);return h("span",{style:o(),class:zg([p,a])},[(s=t.default)==null?void 0:s.call(t),b])};return()=>h(Gl,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?r():null]})}});const Fc=re(B3),vh={name:rt,disabled:Boolean,iconSize:oe,modelValue:rt,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var rw=G({props:Ee({},vh,{bem:_t(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:Z,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:t,slots:n}){const i=V(),o=f=>{if(e.parent&&e.bindGroup)return e.parent.props[f]},r=N(()=>{if(e.parent&&e.bindGroup){const f=o("disabled")||e.disabled;if(e.role==="checkbox"){const p=o("modelValue").length,b=o("max"),m=b&&p>=+b;return f||m&&!e.checked}return f}return e.disabled}),s=N(()=>o("direction")),a=N(()=>{const f=e.checkedColor||o("checkedColor");if(f&&e.checked&&!r.value)return{borderColor:f,backgroundColor:f}}),l=N(()=>e.shape||o("shape")||"round"),c=f=>{const{target:p}=f,b=i.value,m=b===p||(b==null?void 0:b.contains(p));!r.value&&(m||!e.labelDisabled)&&t("toggle"),t("click",f)},d=()=>{var f,p;const{bem:b,checked:m,indeterminate:g}=e,x=e.iconSize||o("iconSize");return h("div",{ref:i,class:b("icon",[l.value,{disabled:r.value,checked:m,indeterminate:g}]),style:l.value!=="dot"?{fontSize:Ae(x)}:{width:Ae(x),height:Ae(x),borderColor:(f=a.value)==null?void 0:f.borderColor}},[n.icon?n.icon({checked:m,disabled:r.value}):l.value!=="dot"?h(Oe,{name:g?"minus":"success",style:a.value},null):h("div",{class:b("icon--dot__icon"),style:{backgroundColor:(p=a.value)==null?void 0:p.backgroundColor}},null)])},u=()=>{const{checked:f}=e;if(n.default)return h("span",{class:e.bem("label",[e.labelPosition,{disabled:r.value}])},[n.default({checked:f,disabled:r.value})])};return()=>{const f=e.labelPosition==="left"?[u(),d()]:[d(),u()];return h("div",{role:e.role,class:e.bem([{disabled:r.value,"label-disabled":e.labelDisabled},s.value]),tabindex:r.value?void 0:0,"aria-checked":e.checked,onClick:c},[f])}}});const L3=Ee({},vh,{shape:String}),[z3,M3]=te("radio");var F3=G({name:z3,props:L3,emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:i}=Lt(tw),o=()=>(i?i.props.modelValue:e.modelValue)===e.name,r=()=>{i?i.updateValue(e.name):t("update:modelValue",e.name)};return()=>h(rw,De({bem:M3,role:"radio",parent:i,checked:o(),onToggle:r},e),We(n,["default","icon"]))}});const yh=re(F3),[H3,N3]=te("checkbox"),V3=Ee({},vh,{shape:String,bindGroup:Z,indeterminate:{type:Boolean,default:null}});var j3=G({name:H3,props:V3,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:i}=Lt(iw),o=a=>{const{name:l}=e,{max:c,modelValue:d}=i.props,u=d.slice();if(a)!(c&&u.length>=+c)&&!u.includes(l)&&(u.push(l),e.bindGroup&&i.updateValue(u));else{const f=u.indexOf(l);f!==-1&&(u.splice(f,1),e.bindGroup&&i.updateValue(u))}},r=N(()=>i&&e.bindGroup?i.props.modelValue.indexOf(e.name)!==-1:!!e.modelValue),s=(a=!r.value)=>{i&&e.bindGroup?o(a):t("update:modelValue",a),e.indeterminate!==null&&t("change",a)};return le(()=>e.modelValue,a=>{e.indeterminate===null&&t("change",a)}),Fe({toggle:s,props:e,checked:r}),io(()=>e.modelValue),()=>h(rw,De({bem:N3,role:"checkbox",parent:i,checked:r.value,onToggle:s},e),We(n,["default","icon"]))}});const xh=re(j3),[q3,jo]=te("address-item");var U3=G({name:q3,props:{address:_t(Object),disabled:Boolean,switchable:Boolean,singleChoice:Boolean,defaultTagText:String,rightIcon:se("edit")},emits:["edit","click","select"],setup(e,{slots:t,emit:n}){const i=a=>{e.switchable&&n("select"),n("click",a)},o=()=>h(Oe,{name:e.rightIcon,class:jo("edit"),onClick:a=>{a.stopPropagation(),n("edit"),n("click",a)}},null),r=()=>{if(t.tag)return t.tag(e.address);if(e.address.isDefault&&e.defaultTagText)return h(Fc,{type:"primary",round:!0,class:jo("tag")},{default:()=>[e.defaultTagText]})},s=()=>{const{address:a,disabled:l,switchable:c,singleChoice:d}=e,u=[h("div",{class:jo("name")},[`${a.name} ${a.tel}`,r()]),h("div",{class:jo("address")},[a.address])];return c&&!l?d?h(yh,{name:a.id,iconSize:18},{default:()=>[u]}):h(xh,{name:a.id,iconSize:18},{default:()=>[u]}):u};return()=>{var a;const{disabled:l}=e;return h("div",{class:jo({disabled:l}),onClick:i},[h(qn,{border:!1,titleClass:jo("title")},{title:s,"right-icon":o}),(a=t.bottom)==null?void 0:a.call(t,Ee({},e.address,{disabled:l}))])}}});const[W3,Ia,Y3]=te("address-list"),K3={list:it(),modelValue:[...oe,Array],switchable:Z,disabledText:String,disabledList:it(),showAddButton:Z,addButtonText:String,defaultTagText:String,rightIcon:se("edit")};var X3=G({name:W3,props:K3,emits:["add","edit","select","clickItem","editDisabled","selectDisabled","update:modelValue"],setup(e,{slots:t,emit:n}){const i=N(()=>!Array.isArray(e.modelValue)),o=(a,l,c)=>{const d=()=>n(c?"editDisabled":"edit",a,l),u=p=>n("clickItem",a,l,{event:p}),f=()=>{if(n(c?"selectDisabled":"select",a,l),!c)if(i.value)n("update:modelValue",a.id);else{const p=e.modelValue;p.includes(a.id)?n("update:modelValue",p.filter(b=>b!==a.id)):n("update:modelValue",[...p,a.id])}};return h(U3,{key:a.id,address:a,disabled:c,switchable:e.switchable,singleChoice:i.value,defaultTagText:e.defaultTagText,rightIcon:e.rightIcon,onEdit:d,onClick:u,onSelect:f},{bottom:t["item-bottom"],tag:t.tag})},r=(a,l)=>{if(a)return a.map((c,d)=>o(c,d,l))},s=()=>e.showAddButton?h("div",{class:[Ia("bottom"),"van-safe-area-bottom"]},[h(jt,{round:!0,block:!0,type:"primary",text:e.addButtonText||Y3("add"),class:Ia("add"),onClick:()=>n("add")},null)]):void 0;return()=>{var a,l;const c=r(e.list),d=r(e.disabledList,!0),u=e.disabledText&&h("div",{class:Ia("disabled-text")},[e.disabledText]);return h("div",{class:Ia()},[(a=t.top)==null?void 0:a.call(t),!i.value&&Array.isArray(e.modelValue)?h(ow,{modelValue:e.modelValue},{default:()=>[c]}):h(bh,{modelValue:e.modelValue},{default:()=>[c]}),u,d,(l=t.default)==null?void 0:l.call(t),s()])}}});const G3=re(X3);function Z3(e,t){let n=null,i=0;return function(...o){if(n)return;const r=Date.now()-i,s=()=>{i=Date.now(),n=!1,e.apply(this,o)};r>=t?s():n=setTimeout(s,t)}}const[J3,Md]=te("back-top"),Q3={right:oe,bottom:oe,zIndex:oe,target:[String,Object],offset:be(200),immediate:Boolean,teleport:{type:[String,Object],default:"body"}};var e5=G({name:J3,inheritAttrs:!1,props:Q3,emits:["click"],setup(e,{emit:t,slots:n,attrs:i}){let o=!1;const r=V(!1),s=V(),a=V(),l=N(()=>Ee(Pi(e.zIndex),{right:Ae(e.right),bottom:Ae(e.bottom)})),c=p=>{var b;t("click",p),(b=a.value)==null||b.scrollTo({top:0,behavior:e.immediate?"auto":"smooth"})},d=()=>{r.value=a.value?Ti(a.value)>=+e.offset:!1},u=()=>{const{target:p}=e;if(typeof p=="string"){const b=document.querySelector(p);if(b)return b}else return p},f=()=>{kn&&Pe(()=>{a.value=e.target?u():Kf(s.value),d()})};return ft("scroll",Z3(d,100),{target:a}),at(f),ri(()=>{o&&(r.value=!0,o=!1)}),si(()=>{r.value&&e.teleport&&(r.value=!1,o=!0)}),le(()=>e.target,f),()=>{const p=h("div",De({ref:e.teleport?void 0:s,class:Md({active:r.value}),style:l.value,onClick:c},i),[n.default?n.default():h(Oe,{name:"back-top",class:Md("icon")},null)]);return e.teleport?[h("div",{ref:s,class:Md("placeholder")},null),h(to,{to:e.teleport},{default:()=>[p]})]:p}}});const t5=re(e5);var n5=(e,t,n)=>new Promise((i,o)=>{var r=l=>{try{a(n.next(l))}catch(c){o(c)}},s=l=>{try{a(n.throw(l))}catch(c){o(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,s);a((n=n.apply(e,t)).next())});const i5={top:be(10),rows:be(4),duration:be(4e3),autoPlay:Z,delay:kt(300),modelValue:it()},[o5,Mg]=te("barrage");var r5=G({name:o5,props:i5,emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const i=V(),o=Mg("item"),r=V(0),s=[],a=(m,g=e.delay)=>{const x=document.createElement("span");return x.className=o,x.innerText=String(m),x.style.animationDuration=`${e.duration}ms`,x.style.animationDelay=`${g}ms`,x.style.animationName="van-barrage",x.style.animationTimingFunction="linear",x},l=V(!0),c=V(e.autoPlay),d=({id:m,text:g},x)=>{var v;const k=a(g,l.value?x*e.delay:void 0);!e.autoPlay&&c.value===!1&&(k.style.animationPlayState="paused"),(v=i.value)==null||v.append(k),r.value++;const C=(r.value-1)%+e.rows*k.offsetHeight+ +e.top;k.style.top=`${C}px`,k.dataset.id=String(m),s.push(k),k.addEventListener("animationend",()=>{t("update:modelValue",[...e.modelValue].filter(y=>String(y.id)!==k.dataset.id))})},u=(m,g)=>{const x=new Map(g.map(v=>[v.id,v]));m.forEach((v,k)=>{x.has(v.id)?x.delete(v.id):d(v,k)}),x.forEach(v=>{const k=s.findIndex(C=>C.dataset.id===String(v.id));k>-1&&(s[k].remove(),s.splice(k,1))}),l.value=!1};le(()=>e.modelValue.slice(),(m,g)=>u(m??[],g??[]),{deep:!0});const f=V({});return at(()=>n5(this,null,function*(){var m;f.value["--move-distance"]=`-${(m=i.value)==null?void 0:m.offsetWidth}px`,yield Pe(),u(e.modelValue,[])})),Fe({play:()=>{c.value=!0,s.forEach(m=>{m.style.animationPlayState="running"})},pause:()=>{c.value=!1,s.forEach(m=>{m.style.animationPlayState="paused"})}}),()=>{var m;return h("div",{class:Mg(),ref:i,style:f.value},[(m=n.default)==null?void 0:m.call(n)])}}});const s5=re(r5),[a5,ct,Ci]=te("calendar"),l5=e=>Ci("monthTitle",e.getFullYear(),e.getMonth()+1);function xo(e,t){const n=e.getFullYear(),i=t.getFullYear();if(n===i){const o=e.getMonth(),r=t.getMonth();return o===r?0:o>r?1:-1}return n>i?1:-1}function en(e,t){const n=xo(e,t);if(n===0){const i=e.getDate(),o=t.getDate();return i===o?0:i>o?1:-1}return n}const _r=e=>new Date(e),Fg=e=>Array.isArray(e)?e.map(_r):_r(e);function wh(e,t){const n=_r(e);return n.setDate(n.getDate()+t),n}function kh(e,t){const n=_r(e);return n.setMonth(n.getMonth()+t),n.getDate()!==e.getDate()&&n.setDate(0),n}function sw(e,t){const n=_r(e);return n.setFullYear(n.getFullYear()+t),n.getDate()!==e.getDate()&&n.setDate(0),n}const Zu=e=>wh(e,-1),Ju=e=>wh(e,1),Hg=e=>kh(e,-1),Ng=e=>kh(e,1),Vg=e=>sw(e,-1),jg=e=>sw(e,1),Pa=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function c5(e){const t=e[0].getTime();return(e[1].getTime()-t)/(1e3*60*60*24)+1}function d5(e,t=0){const n=new Date(e.getFullYear(),e.getMonth()+1,0),i=t+e.getDate()-1,o=t+n.getDate()-1;return Math.floor(i/7)===Math.floor(o/7)}const aw=Ee({},Lc,{modelValue:it(),filter:Function,formatter:{type:Function,default:(e,t)=>t}}),lw=Object.keys(Lc);function u5(e,t){if(e<0)return[];const n=Array(e);let i=-1;for(;++i<e;)n[i]=t(i);return n}const cw=(e,t)=>32-new Date(e,t-1,32).getDate(),br=(e,t,n,i,o,r)=>{const s=u5(t-e+1,a=>{const l=Rn(e+a);return i(n,{text:l,value:l})});return o?o(n,s,r):s},dw=(e,t)=>e.map((n,i)=>{const o=t[i];if(o.length){const r=+o[0].value,s=+o[o.length-1].value;return Rn(Et(+n,r,s))}return n}),[f5]=te("calendar-day");var h5=G({name:f5,props:{item:_t(Object),color:String,index:Number,offset:kt(0),rowHeight:String},emits:["click","clickDisabledDate"],setup(e,{emit:t,slots:n}){const i=N(()=>{const{item:c,index:d,color:u,offset:f,rowHeight:p}=e,b={height:p};if(c.type==="placeholder")return b.width="100%",b;if(d===0&&(b.marginLeft=`${100*f/7}%`),u)switch(c.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":b.background=u;break;case"middle":b.color=u;break}return c.date&&d5(c.date,f)&&(b.marginBottom=0),b}),o=()=>{e.item.type!=="disabled"?t("click",e.item):t("clickDisabledDate",e.item)},r=()=>{const{topInfo:c}=e.item;if(c||n["top-info"])return h("div",{class:ct("top-info")},[n["top-info"]?n["top-info"](e.item):c])},s=()=>{const{bottomInfo:c}=e.item;if(c||n["bottom-info"])return h("div",{class:ct("bottom-info")},[n["bottom-info"]?n["bottom-info"](e.item):c])},a=()=>n.text?n.text(e.item):e.item.text,l=()=>{const{item:c,color:d,rowHeight:u}=e,{type:f}=c,p=[r(),a(),s()];return f==="selected"?h("div",{class:ct("selected-day"),style:{width:u,height:u,background:d}},[p]):p};return()=>{const{type:c,className:d}=e.item;return c==="placeholder"?h("div",{class:ct("day"),style:i.value},null):h("div",{role:"gridcell",style:i.value,class:[ct("day",c),d],tabindex:c==="disabled"?void 0:-1,onClick:o},[l()])}}});const[p5]=te("calendar-month"),m5={date:_t(Date),type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:oe,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var g5=G({name:p5,props:m5,emits:["click","clickDisabledDate"],setup(e,{emit:t,slots:n}){const[i,o]=XI(),r=V(),s=V(),a=Cx(s),l=N(()=>l5(e.date)),c=N(()=>Ae(e.rowHeight)),d=N(()=>{const A=e.date.getDate(),_=(e.date.getDay()-A%7+8)%7;return e.firstDayOfWeek?(_+7-e.firstDayOfWeek)%7:_}),u=N(()=>cw(e.date.getFullYear(),e.date.getMonth()+1)),f=N(()=>i.value||!e.lazyRender),p=()=>l.value,b=A=>{const w=_=>e.currentDate.some(D=>en(D,_)===0);if(w(A)){const _=Zu(A),D=Ju(A),F=w(_),H=w(D);return F&&H?"multiple-middle":F?"end":H?"start":"multiple-selected"}return""},m=A=>{const[w,_]=e.currentDate;if(!w)return"";const D=en(A,w);if(!_)return D===0?"start":"";const F=en(A,_);return e.allowSameDay&&D===0&&F===0?"start-end":D===0?"start":F===0?"end":D>0&&F<0?"middle":""},g=A=>{const{type:w,minDate:_,maxDate:D,currentDate:F}=e;if(_&&en(A,_)<0||D&&en(A,D)>0)return"disabled";if(F===null)return"";if(Array.isArray(F)){if(w==="multiple")return b(A);if(w==="range")return m(A)}else if(w==="single")return en(A,F)===0?"selected":"";return""},x=A=>{if(e.type==="range"){if(A==="start"||A==="end")return Ci(A);if(A==="start-end")return`${Ci("start")}/${Ci("end")}`}},v=()=>{if(e.showMonthTitle)return h("div",{class:ct("month-title")},[n["month-title"]?n["month-title"]({date:e.date,text:l.value}):l.value])},k=()=>{if(e.showMark&&f.value)return h("div",{class:ct("month-mark")},[e.date.getMonth()+1])},C=N(()=>{const A=Math.ceil((u.value+d.value)/7);return Array(A).fill({type:"placeholder"})}),y=N(()=>{const A=[],w=e.date.getFullYear(),_=e.date.getMonth();for(let D=1;D<=u.value;D++){const F=new Date(w,_,D),H=g(F);let P={date:F,type:H,text:D,bottomInfo:x(H)};e.formatter&&(P=e.formatter(P)),A.push(P)}return A}),E=N(()=>y.value.filter(A=>A.type==="disabled")),$=(A,w)=>{if(r.value){const _=Ye(r.value),D=C.value.length,H=(Math.ceil((w.getDate()+d.value)/7)-1)*_.height/D;Pl(A,_.top+H+A.scrollTop-Ye(A).top)}},S=(A,w)=>h(h5,{item:A,index:w,color:e.color,offset:d.value,rowHeight:c.value,onClick:_=>t("click",_),onClickDisabledDate:_=>t("clickDisabledDate",_)},We(n,["top-info","bottom-info","text"])),T=()=>h("div",{ref:r,role:"grid",class:ct("days")},[k(),(f.value?y:C).value.map(S)]);return Fe({getTitle:p,getHeight:()=>a.value,setVisible:o,scrollToDate:$,disabledDays:E}),()=>h("div",{class:ct("month"),ref:s},[v(),T()])}});const[b5]=te("calendar-header");var v5=G({name:b5,props:{date:Date,minDate:Date,maxDate:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number,switchMode:se("none")},emits:["clickSubtitle","panelChange"],setup(e,{slots:t,emit:n}){const i=N(()=>e.date&&e.minDate&&xo(Hg(e.date),e.minDate)<0),o=N(()=>e.date&&e.minDate&&xo(Vg(e.date),e.minDate)<0),r=N(()=>e.date&&e.maxDate&&xo(Ng(e.date),e.maxDate)>0),s=N(()=>e.date&&e.maxDate&&xo(jg(e.date),e.maxDate)>0),a=()=>{if(e.showTitle){const p=e.title||Ci("title"),b=t.title?t.title():p;return h("div",{class:ct("header-title")},[b])}},l=p=>n("clickSubtitle",p),c=p=>n("panelChange",p),d=p=>{const b=e.switchMode==="year-month",m=t[p?"next-month":"prev-month"],g=t[p?"next-year":"prev-year"],x=p?r.value:i.value,v=p?s.value:o.value,k=p?"arrow":"arrow-left",C=p?"arrow-double-right":"arrow-double-left",y=()=>c((p?Ng:Hg)(e.date)),E=()=>c((p?jg:Vg)(e.date)),$=h("view",{class:ct("header-action",{disabled:x}),onClick:x?void 0:y},[m?m({disabled:x}):h(Oe,{class:{[Vt]:!x},name:k},null)]),S=b&&h("view",{class:ct("header-action",{disabled:v}),onClick:v?void 0:E},[g?g({disabled:v}):h(Oe,{class:{[Vt]:!v},name:C},null)]);return p?[$,S]:[S,$]},u=()=>{if(e.showSubtitle){const p=t.subtitle?t.subtitle({date:e.date,text:e.subtitle}):e.subtitle,b=e.switchMode!=="none";return h("div",{class:ct("header-subtitle",{"with-switch":b}),onClick:l},[b?[d(),h("div",{class:ct("header-subtitle-text")},[p]),d(!0)]:p])}},f=()=>{const{firstDayOfWeek:p}=e,b=Ci("weekdays"),m=[...b.slice(p,7),...b.slice(0,p)];return h("div",{class:ct("weekdays")},[m.map(g=>h("span",{class:ct("weekday")},[g]))])};return()=>h("div",{class:ct("header")},[a(),u(),f()])}});const y5={show:Boolean,type:se("single"),switchMode:se("none"),title:String,color:String,round:Z,readonly:Boolean,poppable:Z,maxRange:be(null),position:se("bottom"),teleport:[String,Object],showMark:Z,showTitle:Z,formatter:Function,rowHeight:oe,confirmText:String,rangePrompt:String,lazyRender:Z,showConfirm:Z,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Z,closeOnPopstate:Z,showRangePrompt:Z,confirmDisabledText:String,closeOnClickOverlay:Z,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Z,minDate:{type:Date,validator:Fs},maxDate:{type:Date,validator:Fs},firstDayOfWeek:{type:oe,default:0,validator:e=>e>=0&&e<=6}};var x5=G({name:a5,props:y5,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle","clickDisabledDate","clickOverlay","panelChange"],setup(e,{emit:t,slots:n}){const i=N(()=>e.switchMode!=="none"),o=N(()=>!e.minDate&&!i.value?Pa():e.minDate),r=N(()=>!e.maxDate&&!i.value?kh(Pa(),6):e.maxDate),s=(q,J=o.value,me=r.value)=>J&&en(q,J)===-1?J:me&&en(q,me)===1?me:q,a=(q=e.defaultDate)=>{const{type:J,allowSameDay:me}=e;if(q===null)return q;const K=Pa();if(J==="range"){Array.isArray(q)||(q=[]),q.length===1&&en(q[0],K)===1&&(q=[]);const de=o.value,O=r.value,Y=s(q[0]||K,de,O?me?O:Zu(O):void 0),j=s(q[1]||(me?K:Ju(K)),de?me?de:Ju(de):void 0);return[Y,j]}return J==="multiple"?Array.isArray(q)?q.map(de=>s(de)):[s(K)]:((!q||Array.isArray(q))&&(q=K),s(q))},l=()=>{const q=Array.isArray(u.value)?u.value[0]:u.value;return q||s(Pa())};let c;const d=V(),u=V(a()),f=V(l()),p=V(),[b,m]=sa(),g=N(()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0),x=N(()=>{const q=[];if(!o.value||!r.value)return q;const J=new Date(o.value);J.setDate(1);do q.push(new Date(J)),J.setMonth(J.getMonth()+1);while(xo(J,r.value)!==1);return q}),v=N(()=>{if(u.value){if(e.type==="range")return!u.value[0]||!u.value[1];if(e.type==="multiple")return!u.value.length}return!u.value}),k=()=>u.value,C=()=>{const q=Ti(d.value),J=q+c,me=x.value.map((j,Q)=>b.value[Q].getHeight()),K=me.reduce((j,Q)=>j+Q,0);if(J>K&&q>0)return;let de=0,O;const Y=[-1,-1];for(let j=0;j<x.value.length;j++){const Q=b.value[j];de<=J&&de+me[j]>=q&&(Y[1]=j,O||(O=Q,Y[0]=j),b.value[j].showed||(b.value[j].showed=!0,t("monthShow",{date:Q.date,title:Q.getTitle()}))),de+=me[j]}x.value.forEach((j,Q)=>{const ye=Q>=Y[0]-1&&Q<=Y[1]+1;b.value[Q].setVisible(ye)}),O&&(p.value=O)},y=q=>{i.value?f.value=q:Ht(()=>{x.value.some((J,me)=>xo(J,q)===0?(d.value&&b.value[me].scrollToDate(d.value,q),!0):!1),C()})},E=()=>{if(!(e.poppable&&!e.show))if(u.value){const q=e.type==="single"?u.value:u.value[0];Fs(q)&&y(q)}else i.value||Ht(C)},$=()=>{e.poppable&&!e.show||(i.value||Ht(()=>{c=Math.floor(Ye(d).height)}),E())},S=(q=a())=>{u.value=q,E()},T=q=>{const{maxRange:J,rangePrompt:me,showRangePrompt:K}=e;return J&&c5(q)>+J?(K&&Gu(me||Ci("rangePrompt",J)),t("overRange"),!1):!0},A=q=>{f.value=q,t("panelChange",{date:q})},w=()=>{var q;return t("confirm",(q=u.value)!=null?q:Fg(u.value))},_=(q,J)=>{const me=K=>{u.value=K,t("select",Fg(K))};if(J&&e.type==="range"&&!T(q)){me([q[0],wh(q[0],+e.maxRange-1)]);return}me(q),J&&!e.showConfirm&&w()},D=(q,J,me)=>{var K;return(K=q.find(de=>en(J,de.date)===-1&&en(de.date,me)===-1))==null?void 0:K.date},F=N(()=>b.value.reduce((q,J)=>{var me,K;return q.push(...(K=(me=J.disabledDays)==null?void 0:me.value)!=null?K:[]),q},[])),H=q=>{if(e.readonly||!q.date)return;const{date:J}=q,{type:me}=e;if(me==="range"){if(!u.value){_([J]);return}const[K,de]=u.value;if(K&&!de){const O=en(J,K);if(O===1){const Y=D(F.value,K,J);if(Y){const j=Zu(Y);en(K,j)===-1?_([K,j]):_([J])}else _([K,J],!0)}else O===-1?_([J]):e.allowSameDay&&_([J,J],!0)}else _([J])}else if(me==="multiple"){if(!u.value){_([J]);return}const K=u.value,de=K.findIndex(O=>en(O,J)===0);if(de!==-1){const[O]=K.splice(de,1);t("unselect",_r(O))}else e.maxRange&&K.length>=+e.maxRange?Gu(e.rangePrompt||Ci("rangePrompt",e.maxRange)):_([...K,J])}else _(J,!0)},P=q=>t("clickOverlay",q),M=q=>t("update:show",q),L=(q,J)=>{const me=J!==0||!e.showSubtitle;return h(g5,De({ref:i.value?p:m(J),date:q,currentDate:u.value,showMonthTitle:me,firstDayOfWeek:g.value,lazyRender:i.value?!1:e.lazyRender,maxDate:r.value,minDate:o.value},We(e,["type","color","showMark","formatter","rowHeight","showSubtitle","allowSameDay"]),{onClick:H,onClickDisabledDate:K=>t("clickDisabledDate",K)}),We(n,["top-info","bottom-info","month-title","text"]))},ce=()=>{if(n.footer)return n.footer();if(e.showConfirm){const q=n["confirm-text"],J=v.value,me=J?e.confirmDisabledText:e.confirmText;return h(jt,{round:!0,block:!0,type:"primary",color:e.color,class:ct("confirm"),disabled:J,nativeType:"button",onClick:w},{default:()=>[q?q({disabled:J}):me||Ci("confirm")]})}},fe=()=>h("div",{class:[ct("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[ce()]),ie=()=>{var q,J;return h("div",{class:ct()},[h(v5,{date:(q=p.value)==null?void 0:q.date,maxDate:r.value,minDate:o.value,title:e.title,subtitle:(J=p.value)==null?void 0:J.getTitle(),showTitle:e.showTitle,showSubtitle:e.showSubtitle,switchMode:e.switchMode,firstDayOfWeek:g.value,onClickSubtitle:me=>t("clickSubtitle",me),onPanelChange:A},We(n,["title","subtitle","prev-month","prev-year","next-month","next-year"])),h("div",{ref:d,class:ct("body"),onScroll:i.value?void 0:C},[i.value?L(f.value,0):x.value.map(L)]),fe()])};return le(()=>e.show,$),le(()=>[e.type,e.minDate,e.maxDate,e.switchMode],()=>S(a(u.value))),le(()=>e.defaultDate,q=>{S(q)}),Fe({reset:S,scrollToDate:y,getSelectedDate:k}),Pr($),()=>e.poppable?h(jn,{show:e.show,class:ct("popup"),round:e.round,position:e.position,closeable:e.showTitle||e.showSubtitle,teleport:e.teleport,closeOnPopstate:e.closeOnPopstate,safeAreaInsetTop:e.safeAreaInsetTop,closeOnClickOverlay:e.closeOnClickOverlay,onClickOverlay:P,"onUpdate:show":M},{default:ie}):ie()}});const w5=re(x5),[k5,qo]=te("image"),S5={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:oe,height:oe,radius:oe,lazyLoad:Boolean,iconSize:oe,showError:Z,errorIcon:se("photo-fail"),iconPrefix:String,showLoading:Z,loadingIcon:se("photo"),crossorigin:String,referrerpolicy:String};var C5=G({name:k5,props:S5,emits:["load","error"],setup(e,{emit:t,slots:n}){const i=V(!1),o=V(!0),r=V(),{$Lazyload:s}=sn().proxy,a=N(()=>{const g={width:Ae(e.width),height:Ae(e.height)};return qe(e.radius)&&(g.overflow="hidden",g.borderRadius=Ae(e.radius)),g});le(()=>e.src,()=>{i.value=!1,o.value=!0});const l=g=>{o.value&&(o.value=!1,t("load",g))},c=()=>{const g=new Event("load");Object.defineProperty(g,"target",{value:r.value,enumerable:!0}),l(g)},d=g=>{i.value=!0,o.value=!1,t("error",g)},u=(g,x,v)=>v?v():h(Oe,{name:g,size:e.iconSize,class:x,classPrefix:e.iconPrefix},null),f=()=>{if(o.value&&e.showLoading)return h("div",{class:qo("loading")},[u(e.loadingIcon,qo("loading-icon"),n.loading)]);if(i.value&&e.showError)return h("div",{class:qo("error")},[u(e.errorIcon,qo("error-icon"),n.error)])},p=()=>{if(i.value||!e.src)return;const g={alt:e.alt,class:qo("img"),style:{objectFit:e.fit,objectPosition:e.position},crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy};return e.lazyLoad?At(h("img",De({ref:r},g),null),[[_k("lazy"),e.src]]):h("img",De({ref:r,src:e.src,onLoad:l,onError:d},g),null)},b=({el:g})=>{const x=()=>{g===r.value&&o.value&&c()};r.value?x():Pe(x)},m=({el:g})=>{g===r.value&&!i.value&&d()};return s&&kn&&(s.$on("loaded",b),s.$on("error",m),ai(()=>{s.$off("loaded",b),s.$off("error",m)})),at(()=>{Pe(()=>{var g;(g=r.value)!=null&&g.complete&&!e.lazyLoad&&c()})}),()=>{var g;return h("div",{class:qo({round:e.round,block:e.block}),style:a.value},[p(),f(),(g=n.default)==null?void 0:g.call(n)])}}});const Hc=re(C5),[E5,Kt]=te("card"),$5={tag:String,num:oe,desc:String,thumb:String,title:String,price:oe,centered:Boolean,lazyLoad:Boolean,currency:se("¥"),thumbLink:String,originPrice:oe};var T5=G({name:E5,props:$5,emits:["clickThumb"],setup(e,{slots:t,emit:n}){const i=()=>{if(t.title)return t.title();if(e.title)return h("div",{class:[Kt("title"),"van-multi-ellipsis--l2"]},[e.title])},o=()=>{if(t.tag||e.tag)return h("div",{class:Kt("tag")},[t.tag?t.tag():h(Fc,{mark:!0,type:"primary"},{default:()=>[e.tag]})])},r=()=>t.thumb?t.thumb():h(Hc,{src:e.thumb,fit:"cover",width:"100%",height:"100%",lazyLoad:e.lazyLoad},null),s=()=>{if(t.thumb||e.thumb)return h("a",{href:e.thumbLink,class:Kt("thumb"),onClick:c=>n("clickThumb",c)},[r(),o()])},a=()=>{if(t.desc)return t.desc();if(e.desc)return h("div",{class:[Kt("desc"),"van-ellipsis"]},[e.desc])},l=()=>{const c=e.price.toString().split(".");return h("div",null,[h("span",{class:Kt("price-currency")},[e.currency]),h("span",{class:Kt("price-integer")},[c[0]]),c.length>1&&h(dt,null,[Ef("."),h("span",{class:Kt("price-decimal")},[c[1]])])])};return()=>{var c,d,u;const f=t.num||qe(e.num),p=t.price||qe(e.price),b=t["origin-price"]||qe(e.originPrice),m=f||p||b||t.bottom,g=p&&h("div",{class:Kt("price")},[t.price?t.price():l()]),x=b&&h("div",{class:Kt("origin-price")},[t["origin-price"]?t["origin-price"]():`${e.currency} ${e.originPrice}`]),v=f&&h("div",{class:Kt("num")},[t.num?t.num():`x${e.num}`]),k=t.footer&&h("div",{class:Kt("footer")},[t.footer()]),C=m&&h("div",{class:Kt("bottom")},[(c=t["price-top"])==null?void 0:c.call(t),g,x,v,(d=t.bottom)==null?void 0:d.call(t)]);return h("div",{class:Kt()},[h("div",{class:Kt("header")},[s(),h("div",{class:Kt("content",{centered:e.centered})},[h("div",null,[i(),a(),(u=t.tags)==null?void 0:u.call(t)]),C])]),k])}}});const _5=re(T5),[A5,hi,O5]=te("cascader"),R5={title:String,options:it(),closeable:Z,swipeable:Z,closeIcon:se("cross"),showHeader:Z,modelValue:oe,fieldNames:Object,placeholder:String,activeColor:String};var I5=G({name:A5,props:R5,emits:["close","change","finish","clickTab","update:modelValue"],setup(e,{slots:t,emit:n}){const i=V([]),o=V(0),[r,s]=sa(),{text:a,value:l,children:c}=Ee({text:"text",value:"value",children:"children"},e.fieldNames),d=(y,E)=>{for(const $ of y){if($[l]===E)return[$];if($[c]){const S=d($[c],E);if(S)return[$,...S]}}},u=()=>{const{options:y,modelValue:E}=e;if(E!==void 0){const $=d(y,E);if($){let S=y;i.value=$.map(T=>{const A={options:S,selected:T},w=S.find(_=>_[l]===T[l]);return w&&(S=w[c]),A}),S&&i.value.push({options:S,selected:null}),Pe(()=>{o.value=i.value.length-1});return}}i.value=[{options:y,selected:null}]},f=(y,E)=>{if(y.disabled)return;if(i.value[E].selected=y,i.value.length>E+1&&(i.value=i.value.slice(0,E+1)),y[c]){const T={options:y[c],selected:null};i.value[E+1]?i.value[E+1]=T:i.value.push(T),Pe(()=>{o.value++})}const $=i.value.map(T=>T.selected).filter(Boolean);n("update:modelValue",y[l]);const S={value:y[l],tabIndex:E,selectedOptions:$};n("change",S),y[c]||n("finish",S)},p=()=>n("close"),b=({name:y,title:E})=>n("clickTab",y,E),m=()=>e.showHeader?h("div",{class:hi("header")},[h("h2",{class:hi("title")},[t.title?t.title():e.title]),e.closeable?h(Oe,{name:e.closeIcon,class:[hi("close-icon"),Vt],onClick:p},null):null]):null,g=(y,E,$)=>{const{disabled:S}=y,T=!!(E&&y[l]===E[l]),A=y.color||(T?e.activeColor:void 0),w=t.option?t.option({option:y,selected:T}):h("span",null,[y[a]]);return h("li",{ref:T?s($):void 0,role:"menuitemradio",class:[hi("option",{selected:T,disabled:S}),y.className],style:{color:A},tabindex:S?void 0:T?0:-1,"aria-checked":T,"aria-disabled":S||void 0,onClick:()=>f(y,$)},[w,T?h(Oe,{name:"success",class:hi("selected-icon")},null):null])},x=(y,E,$)=>h("ul",{role:"menu",class:hi("options")},[y.map(S=>g(S,E,$))]),v=(y,E)=>{const{options:$,selected:S}=y,T=e.placeholder||O5("select"),A=S?S[a]:T;return h(Ns,{title:A,titleClass:hi("tab",{unselected:!S})},{default:()=>{var w,_;return[(w=t["options-top"])==null?void 0:w.call(t,{tabIndex:E}),x($,S,E),(_=t["options-bottom"])==null?void 0:_.call(t,{tabIndex:E})]}})},k=()=>h(Bc,{active:o.value,"onUpdate:active":y=>o.value=y,shrink:!0,animated:!0,class:hi("tabs"),color:e.activeColor,swipeable:e.swipeable,onClickTab:b},{default:()=>[i.value.map(v)]}),C=y=>{const E=y.parentElement;E&&(E.scrollTop=y.offsetTop-(E.offsetHeight-y.offsetHeight)/2)};return u(),le(o,y=>{const E=r.value[y];E&&C(E)}),le(()=>e.options,u,{deep:!0}),le(()=>e.modelValue,y=>{y!==void 0&&i.value.map($=>{var S;return(S=$.selected)==null?void 0:S[l]}).includes(y)||u()}),()=>h("div",{class:hi()},[m(),k()])}});const P5=re(I5),[D5,qg]=te("cell-group"),B5={title:String,inset:Boolean,border:Z};var L5=G({name:D5,inheritAttrs:!1,props:B5,setup(e,{slots:t,attrs:n}){const i=()=>{var r;return h("div",De({class:[qg({inset:e.inset}),{[Rc]:e.border&&!e.inset}]},n,Bl()),[(r=t.default)==null?void 0:r.call(t)])},o=()=>h("div",{class:qg("title",{inset:e.inset})},[t.title?t.title():e.title]);return()=>e.title||t.title?h(dt,null,[o(),i()]):i()}});const z5=re(L5),[M5,Da]=te("circle");let F5=0;const Ug=e=>Math.min(Math.max(+e,0),100);function H5(e,t){const n=e?1:0;return`M ${t/2} ${t/2} m 0, -500 a 500, 500 0 1, ${n} 0, 1000 a 500, 500 0 1, ${n} 0, -1000`}const N5={text:String,size:oe,fill:se("none"),rate:be(100),speed:be(0),color:[String,Object],clockwise:Z,layerColor:String,currentRate:kt(0),strokeWidth:be(40),strokeLinecap:String,startPosition:se("top")};var V5=G({name:M5,props:N5,emits:["update:currentRate"],setup(e,{emit:t,slots:n}){const i=`van-circle-${F5++}`,o=N(()=>+e.strokeWidth+1e3),r=N(()=>H5(e.clockwise,o.value)),s=N(()=>{const f={top:0,right:90,bottom:180,left:270}[e.startPosition];if(f)return{transform:`rotate(${f}deg)`}});le(()=>e.rate,u=>{let f;const p=Date.now(),b=e.currentRate,m=Ug(u),g=Math.abs((b-m)*1e3/+e.speed),x=()=>{const v=Date.now(),C=Math.min((v-p)/g,1)*(m-b)+b;t("update:currentRate",Ug(parseFloat(C.toFixed(1)))),(m>b?C<m:C>m)&&(f=Ht(x))};e.speed?(f&&yc(f),f=Ht(x)):t("update:currentRate",m)},{immediate:!0});const a=()=>{const{strokeWidth:f,currentRate:p,strokeLinecap:b}=e,m=3140*p/100,g=Hn(e.color)?`url(#${i})`:e.color,x={stroke:g,strokeWidth:`${+f+1}px`,strokeLinecap:b,strokeDasharray:`${m}px 3140px`};return h("path",{d:r.value,style:x,class:Da("hover"),stroke:g},null)},l=()=>{const u={fill:e.fill,stroke:e.layerColor,strokeWidth:`${e.strokeWidth}px`};return h("path",{class:Da("layer"),style:u,d:r.value},null)},c=()=>{const{color:u}=e;if(!Hn(u))return;const f=Object.keys(u).sort((p,b)=>parseFloat(p)-parseFloat(b)).map((p,b)=>h("stop",{key:b,offset:p,"stop-color":u[p]},null));return h("defs",null,[h("linearGradient",{id:i,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[f])])},d=()=>{if(n.default)return n.default();if(e.text)return h("div",{class:Da("text")},[e.text])};return()=>h("div",{class:Da(),style:Ii(e.size)},[h("svg",{viewBox:`0 0 ${o.value} ${o.value}`,style:s.value},[c(),l(),a()]),d()])}});const j5=re(V5),[uw,q5]=te("row"),fw=Symbol(uw),U5={tag:se("div"),wrap:Z,align:String,gutter:{type:[String,Number,Array],default:0},justify:String};var W5=G({name:uw,props:U5,setup(e,{slots:t}){const{children:n,linkChildren:i}=qt(fw),o=N(()=>{const a=[[]];let l=0;return n.forEach((c,d)=>{l+=Number(c.span),l>24?(a.push([d]),l-=24):a[a.length-1].push(d)}),a}),r=N(()=>{let a=0;Array.isArray(e.gutter)?a=Number(e.gutter[0])||0:a=Number(e.gutter);const l=[];return a&&o.value.forEach(c=>{const d=a*(c.length-1)/c.length;c.forEach((u,f)=>{if(f===0)l.push({right:d});else{const p=a-l[u-1].right,b=d-p;l.push({left:p,right:b})}})}),l}),s=N(()=>{const{gutter:a}=e,l=[];if(Array.isArray(a)&&a.length>1){const c=Number(a[1])||0;if(c<=0)return l;o.value.forEach((d,u)=>{u!==o.value.length-1&&d.forEach(()=>{l.push({bottom:c})})})}return l});return i({spaces:r,verticalSpaces:s}),()=>{const{tag:a,wrap:l,align:c,justify:d}=e;return h(a,{class:q5({[`align-${c}`]:c,[`justify-${d}`]:d,nowrap:!l})},{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t)]}})}}});const[Y5,K5]=te("col"),X5={tag:se("div"),span:be(0),offset:oe};var G5=G({name:Y5,props:X5,setup(e,{slots:t}){const{parent:n,index:i}=Lt(fw),o=N(()=>{if(!n)return;const{spaces:r,verticalSpaces:s}=n;let a={};if(r&&r.value&&r.value[i.value]){const{left:c,right:d}=r.value[i.value];a={paddingLeft:c?`${c}px`:null,paddingRight:d?`${d}px`:null}}const{bottom:l}=s.value[i.value]||{};return Ee(a,{marginBottom:l?`${l}px`:null})});return()=>{const{tag:r,span:s,offset:a}=e;return h(r,{style:o.value,class:K5({[s]:s,[`offset-${a}`]:a})},{default:()=>{var l;return[(l=t.default)==null?void 0:l.call(t)]}})}}});const Z5=re(G5),[hw,J5]=te("collapse"),pw=Symbol(hw),Q5={border:Z,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var e6=G({name:hw,props:Q5,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:i,children:o}=qt(pw),r=c=>{t("change",c),t("update:modelValue",c)},s=(c,d)=>{const{accordion:u,modelValue:f}=e;r(u?c===f?"":c:d?f.concat(c):f.filter(p=>p!==c))},a=(c={})=>{if(e.accordion)return;typeof c=="boolean"&&(c={expanded:c});const{expanded:d,skipDisabled:u}=c,p=o.filter(b=>b.disabled&&u?b.expanded.value:d??!b.expanded.value).map(b=>b.itemName.value);r(p)},l=c=>{const{accordion:d,modelValue:u}=e;return d?u===c:u.includes(c)};return Fe({toggleAll:a}),i({toggle:s,isExpanded:l}),()=>{var c;return h("div",{class:[J5(),{[Rc]:e.border}]},[(c=n.default)==null?void 0:c.call(n)])}}});const t6=re(e6),[n6,Ba]=te("collapse-item"),i6=["icon","title","value","label","right-icon"],o6=Ee({},Mc,{name:oe,isLink:Z,disabled:Boolean,readonly:Boolean,lazyRender:Z});var r6=G({name:n6,props:o6,setup(e,{slots:t}){const n=V(),i=V(),{parent:o,index:r}=Lt(pw);if(!o)return;const s=N(()=>{var m;return(m=e.name)!=null?m:r.value}),a=N(()=>o.isExpanded(s.value)),l=V(a.value),c=dh(()=>l.value||!e.lazyRender),d=()=>{a.value?n.value&&(n.value.style.height=""):l.value=!1};le(a,(m,g)=>{if(g===null)return;m&&(l.value=!0),(m?Pe:Ht)(()=>{if(!i.value||!n.value)return;const{offsetHeight:v}=i.value;if(v){const k=`${v}px`;n.value.style.height=m?"0":k,Yi(()=>{n.value&&(n.value.style.height=m?k:"0")})}else d()})});const u=(m=!a.value)=>{o.toggle(s.value,m)},f=()=>{!e.disabled&&!e.readonly&&u()},p=()=>{const{border:m,disabled:g,readonly:x}=e,v=We(e,Object.keys(Mc));return x&&(v.isLink=!1),(g||x)&&(v.clickable=!1),h(qn,De({role:"button",class:Ba("title",{disabled:g,expanded:a.value,borderless:!m}),"aria-expanded":String(a.value),onClick:f},v),We(t,i6))},b=c(()=>{var m;return At(h("div",{ref:n,class:Ba("wrapper"),onTransitionend:d},[h("div",{ref:i,class:Ba("content")},[(m=t.default)==null?void 0:m.call(t)])]),[[Pt,l.value]])});return Fe({toggle:u,expanded:a,itemName:s}),()=>h("div",{class:[Ba({border:r.value&&e.border})]},[p(),b()])}});const s6=re(r6),a6=re(CL),[l6,Wg,Fd]=te("contact-card"),c6={tel:String,name:String,type:se("add"),addText:String,editable:Z};var d6=G({name:l6,props:c6,emits:["click"],setup(e,{emit:t}){const n=o=>{e.editable&&t("click",o)},i=()=>e.type==="add"?e.addText||Fd("addContact"):[h("div",null,[`${Fd("name")}:${e.name}`]),h("div",null,[`${Fd("tel")}:${e.tel}`])];return()=>h(qn,{center:!0,icon:e.type==="edit"?"contact":"add-square",class:Wg([e.type]),border:!1,isLink:e.editable,titleClass:Wg("title"),onClick:n},{title:i})}});const u6=re(d6),[f6,Uo,Mi]=te("contact-edit"),Qu={tel:"",name:""},h6={isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:()=>Ee({},Qu)},telValidator:{type:Function,default:fx}};var p6=G({name:f6,props:h6,emits:["save","delete","changeDefault"],setup(e,{emit:t}){const n=nt(Ee({},Qu,e.contactInfo)),i=()=>{e.isSaving||t("save",n)},o=()=>t("delete",n),r=()=>h("div",{class:Uo("buttons")},[h(jt,{block:!0,round:!0,type:"primary",text:Mi("save"),class:Uo("button"),loading:e.isSaving,nativeType:"submit"},null),e.isEdit&&h(jt,{block:!0,round:!0,text:Mi("delete"),class:Uo("button"),loading:e.isDeleting,onClick:o},null)]),s=()=>h(gh,{modelValue:n.isDefault,"onUpdate:modelValue":l=>n.isDefault=l,onChange:l=>t("changeDefault",l)},null),a=()=>{if(e.showSetDefault)return h(qn,{title:e.setDefaultLabel,class:Uo("switch-cell"),border:!1},{"right-icon":s})};return le(()=>e.contactInfo,l=>Ee(n,Qu,l)),()=>h(ph,{class:Uo(),onSubmit:i},{default:()=>[h("div",{class:Uo("fields")},[h(Si,{modelValue:n.name,"onUpdate:modelValue":l=>n.name=l,clearable:!0,label:Mi("name"),rules:[{required:!0,message:Mi("nameEmpty")}],maxlength:"30",placeholder:Mi("name")},null),h(Si,{modelValue:n.tel,"onUpdate:modelValue":l=>n.tel=l,clearable:!0,type:"tel",label:Mi("tel"),rules:[{validator:e.telValidator,message:Mi("telInvalid")}],placeholder:Mi("tel")},null)]),a(),r()]})}});const m6=re(p6),[g6,pi,b6]=te("contact-list"),v6={list:Array,addText:String,modelValue:rt,defaultTagText:String};var y6=G({name:g6,props:v6,emits:["add","edit","select","update:modelValue"],setup(e,{emit:t}){const n=(i,o)=>{const r=()=>{t("update:modelValue",i.id),t("select",i,o)},s=()=>h(yh,{class:pi("radio"),name:i.id,iconSize:18},null),a=()=>h(Oe,{name:"edit",class:pi("edit"),onClick:c=>{c.stopPropagation(),t("edit",i,o)}},null),l=()=>{const c=[`${i.name},${i.tel}`];return i.isDefault&&e.defaultTagText&&c.push(h(Fc,{type:"primary",round:!0,class:pi("item-tag")},{default:()=>[e.defaultTagText]})),c};return h(qn,{key:i.id,isLink:!0,center:!0,class:pi("item"),titleClass:pi("item-title"),onClick:r},{icon:a,title:l,"right-icon":s})};return()=>h("div",{class:pi()},[h(bh,{modelValue:e.modelValue,class:pi("group")},{default:()=>[e.list&&e.list.map(n)]}),h("div",{class:[pi("bottom"),"van-safe-area-bottom"]},[h(jt,{round:!0,block:!0,type:"primary",class:pi("add"),text:e.addText||b6("addContact"),onClick:()=>t("add")},null)])])}});const x6=re(y6);function w6(e,t){const{days:n}=t;let{hours:i,minutes:o,seconds:r,milliseconds:s}=t;if(e.includes("DD")?e=e.replace("DD",Rn(n)):i+=n*24,e.includes("HH")?e=e.replace("HH",Rn(i)):o+=i*60,e.includes("mm")?e=e.replace("mm",Rn(o)):r+=o*60,e.includes("ss")?e=e.replace("ss",Rn(r)):s+=r*1e3,e.includes("S")){const a=Rn(s,3);e.includes("SSS")?e=e.replace("SSS",a):e.includes("SS")?e=e.replace("SS",a.slice(0,2)):e=e.replace("S",a.charAt(0))}return e}const[k6,S6]=te("count-down"),C6={time:be(0),format:se("HH:mm:ss"),autoStart:Z,millisecond:Boolean};var E6=G({name:k6,props:C6,emits:["change","finish"],setup(e,{emit:t,slots:n}){const{start:i,pause:o,reset:r,current:s}=eP({time:+e.time,millisecond:e.millisecond,onChange:c=>t("change",c),onFinish:()=>t("finish")}),a=N(()=>w6(e.format,s.value)),l=()=>{r(+e.time),e.autoStart&&i()};return le(()=>e.time,l,{immediate:!0}),Fe({start:i,pause:o,reset:l}),()=>h("div",{role:"timer",class:S6()},[n.default?n.default(s.value):a.value])}});const $6=re(E6);function Yg(e){const t=new Date(e*1e3);return`${t.getFullYear()}.${Rn(t.getMonth()+1)}.${Rn(t.getDate())}`}const T6=e=>(e/10).toFixed(e%10===0?0:1),Kg=e=>(e/100).toFixed(e%100===0?0:e%10===0?1:2),[_6,Kn,Hd]=te("coupon");var A6=G({name:_6,props:{chosen:Boolean,coupon:_t(Object),disabled:Boolean,currency:se("¥")},setup(e){const t=N(()=>{const{startAt:o,endAt:r}=e.coupon;return`${Yg(o)} - ${Yg(r)}`}),n=N(()=>{const{coupon:o,currency:r}=e;if(o.valueDesc)return[o.valueDesc,h("span",null,[o.unitDesc||""])];if(o.denominations){const s=Kg(o.denominations);return[h("span",null,[r]),` ${s}`]}return o.discount?Hd("discount",T6(o.discount)):""}),i=N(()=>{const o=Kg(e.coupon.originCondition||0);return o==="0"?Hd("unlimited"):Hd("condition",o)});return()=>{const{chosen:o,coupon:r,disabled:s}=e,a=s&&r.reason||r.description;return h("div",{class:Kn({disabled:s})},[h("div",{class:Kn("content")},[h("div",{class:Kn("head")},[h("h2",{class:Kn("amount")},[n.value]),h("p",{class:Kn("condition")},[r.condition||i.value])]),h("div",{class:Kn("body")},[h("p",{class:Kn("name")},[r.name]),h("p",{class:Kn("valid")},[t.value]),!s&&h(xh,{class:Kn("corner"),modelValue:o},null)])]),a&&h("p",{class:Kn("description")},[a])])}}});const ef=re(A6),[O6,Xg,tf]=te("coupon-cell"),R6={title:String,border:Z,editable:Z,coupons:it(),currency:se("¥"),chosenCoupon:{type:[Number,Array],default:-1}},I6=e=>{const{value:t,denominations:n}=e;return qe(t)?t:qe(n)?n:0};function P6({coupons:e,chosenCoupon:t,currency:n}){let i=0,o=!1;return(Array.isArray(t)?t:[t]).forEach(r=>{const s=e[+r];s&&(o=!0,i+=I6(s))}),o?`-${n} ${(i/100).toFixed(2)}`:e.length===0?tf("noCoupon"):tf("count",e.length)}var D6=G({name:O6,props:R6,setup(e){return()=>{const t=Array.isArray(e.chosenCoupon)?e.chosenCoupon.length:e.coupons[+e.chosenCoupon];return h(qn,{class:Xg(),value:P6(e),title:e.title||tf("title"),border:e.border,isLink:e.editable,valueClass:Xg("value",{selected:t})},null)}}});const B6=re(D6),[L6,La]=te("empty"),z6={image:se("default"),imageSize:[Number,String,Array],description:String};var M6=G({name:L6,props:z6,setup(e,{slots:t}){const n=()=>{const x=t.description?t.description():e.description;if(x)return h("p",{class:La("description")},[x])},i=()=>{if(t.default)return h("div",{class:La("bottom")},[t.default()])},o=Hr(),r=x=>`${o}-${x}`,s=x=>`url(#${r(x)})`,a=(x,v,k)=>h("stop",{"stop-color":x,offset:`${v}%`,"stop-opacity":k},null),l=(x,v)=>[a(x,0),a(v,100)],c=x=>[h("defs",null,[h("radialGradient",{id:r(x),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)","data-allow-mismatch":"attribute"},[a("#EBEDF0",0),a("#F2F3F5",100,.3)])]),h("ellipse",{fill:s(x),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],d=()=>[h("defs",null,[h("linearGradient",{id:r("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[a("#FFF",0,.5),a("#F2F3F5",100)])]),h("g",{opacity:".8","data-allow-mismatch":"children"},[h("path",{d:"M36 131V53H16v20H2v58h34z",fill:s("a")},null),h("path",{d:"M123 15h22v14h9v77h-31V15z",fill:s("a")},null)])],u=()=>[h("defs",null,[h("linearGradient",{id:r("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[a("#F2F3F5",0,.3),a("#F2F3F5",100)])]),h("g",{opacity:".8","data-allow-mismatch":"children"},[h("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:s("b")},null),h("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:s("b")},null)])],f=()=>h("svg",{viewBox:"0 0 160 160"},[h("defs",{"data-allow-mismatch":"children"},[h("linearGradient",{id:r(1),x1:"64%",y1:"100%",x2:"64%"},[a("#FFF",0,.5),a("#F2F3F5",100)]),h("linearGradient",{id:r(2),x1:"50%",x2:"50%",y2:"84%"},[a("#EBEDF0",0),a("#DCDEE0",100,0)]),h("linearGradient",{id:r(3),x1:"100%",x2:"100%",y2:"100%"},[l("#EAEDF0","#DCDEE0")]),h("radialGradient",{id:r(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[a("#EBEDF0",0),a("#FFF",100,0)])]),h("g",{fill:"none"},[d(),h("path",{fill:s(4),d:"M0 139h160v21H0z","data-allow-mismatch":"attribute"},null),h("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:s(2),"data-allow-mismatch":"attribute"},null),h("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7","data-allow-mismatch":"children"},[h("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:s(3)},null),h("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:s(3)},null),h("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:s(3)},null),h("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:s(3)},null)]),h("g",{transform:"translate(31 105)"},[h("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),h("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),h("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),p=()=>h("svg",{viewBox:"0 0 160 160"},[h("defs",{"data-allow-mismatch":"children"},[h("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(5)},[l("#F2F3F5","#DCDEE0")]),h("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:r(6)},[l("#EAEDF1","#DCDEE0")]),h("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:r(7)},[l("#EAEDF1","#DCDEE0")])]),d(),u(),h("g",{transform:"translate(36 50)",fill:"none"},[h("g",{transform:"translate(8)"},[h("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),h("rect",{fill:s(5),width:"64",height:"66",rx:"2","data-allow-mismatch":"attribute"},null),h("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),h("g",{transform:"translate(15 17)",fill:s(6),"data-allow-mismatch":"attribute"},[h("rect",{width:"34",height:"6",rx:"1"},null),h("path",{d:"M0 14h34v6H0z"},null),h("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),h("rect",{fill:s(7),y:"61",width:"88",height:"28",rx:"1","data-allow-mismatch":"attribute"},null),h("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),b=()=>h("svg",{viewBox:"0 0 160 160"},[h("defs",null,[h("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(8),"data-allow-mismatch":"attribute"},[l("#EAEDF1","#DCDEE0")])]),d(),u(),c("c"),h("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:s(8),"data-allow-mismatch":"attribute"},null)]),m=()=>h("svg",{viewBox:"0 0 160 160"},[h("defs",{"data-allow-mismatch":"children"},[h("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:r(9)},[l("#EEE","#D8D8D8")]),h("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:r(10)},[l("#F2F3F5","#DCDEE0")]),h("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(11)},[l("#F2F3F5","#DCDEE0")]),h("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(12)},[l("#FFF","#F7F8FA")])]),d(),u(),c("d"),h("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[h("rect",{fill:s(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),h("rect",{fill:s(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),h("circle",{stroke:s(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),h("circle",{fill:s(12),cx:"27",cy:"27",r:"16"},null),h("path",{d:"M37 7c-8 0-15 5-16 12",stroke:s(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),g=()=>{var x;if(t.image)return t.image();const v={error:b,search:m,network:f,default:p};return((x=v[e.image])==null?void 0:x.call(v))||h("img",{src:e.image},null)};return()=>h("div",{class:La()},[h("div",{class:La("image"),style:Ii(e.imageSize)},[g()]),n(),i()])}});const mw=re(M6),[F6,Xn,Wo]=te("coupon-list"),H6={code:se(""),coupons:it(),currency:se("¥"),showCount:Z,emptyImage:String,enabledTitle:String,disabledTitle:String,disabledCoupons:it(),showExchangeBar:Z,showCloseButton:Z,closeButtonText:String,inputPlaceholder:String,exchangeMinLength:kt(1),exchangeButtonText:String,displayedCouponIndex:kt(-1),exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,chosenCoupon:{type:[Number,Array],default:-1}};var N6=G({name:F6,props:H6,emits:["change","exchange","update:code"],setup(e,{emit:t,slots:n}){const[i,o]=sa(),r=V(),s=V(),a=V(0),l=V(0),c=V(e.code),d=N(()=>!e.exchangeButtonLoading&&(e.exchangeButtonDisabled||!c.value||c.value.length<e.exchangeMinLength)),u=()=>{const k=Ye(r).height,C=Ye(s).height+44;l.value=(k>C?k:wn.value)-C},f=()=>{t("exchange",c.value),e.code||(c.value="")},p=v=>{Pe(()=>{var k;return(k=i.value[v])==null?void 0:k.scrollIntoView()})},b=()=>h(mw,{image:e.emptyImage},{default:()=>[h("p",{class:Xn("empty-tip")},[Wo("noCoupon")])]}),m=()=>{if(e.showExchangeBar)return h("div",{ref:s,class:Xn("exchange-bar")},[h(Si,{modelValue:c.value,"onUpdate:modelValue":v=>c.value=v,clearable:!0,border:!1,class:Xn("field"),placeholder:e.inputPlaceholder||Wo("placeholder"),maxlength:"20"},null),h(jt,{plain:!0,type:"primary",class:Xn("exchange"),text:e.exchangeButtonText||Wo("exchange"),loading:e.exchangeButtonLoading,disabled:d.value,onClick:f},null)])},g=()=>{const{coupons:v,chosenCoupon:k}=e,C=e.showCount?` (${v.length})`:"",y=(e.enabledTitle||Wo("enable"))+C,E=($=[],S=0)=>$.includes(S)?$.filter(T=>T!==S):[...$,S];return h(Ns,{title:y},{default:()=>{var $;return[h("div",{class:Xn("list",{"with-bottom":e.showCloseButton}),style:{height:`${l.value}px`}},[v.map((S,T)=>h(ef,{key:S.id,ref:o(T),coupon:S,chosen:Array.isArray(k)?k.includes(T):T===k,currency:e.currency,onClick:()=>t("change",Array.isArray(k)?E(k,T):T)},null)),!v.length&&b(),($=n["list-footer"])==null?void 0:$.call(n)])]}})},x=()=>{const{disabledCoupons:v}=e,k=e.showCount?` (${v.length})`:"",C=(e.disabledTitle||Wo("disabled"))+k;return h(Ns,{title:C},{default:()=>{var y;return[h("div",{class:Xn("list",{"with-bottom":e.showCloseButton}),style:{height:`${l.value}px`}},[v.map(E=>h(ef,{disabled:!0,key:E.id,coupon:E,currency:e.currency},null)),!v.length&&b(),(y=n["disabled-list-footer"])==null?void 0:y.call(n)])]}})};return le(()=>e.code,v=>{c.value=v}),le(wn,u),le(c,v=>t("update:code",v)),le(()=>e.displayedCouponIndex,p),at(()=>{u(),p(e.displayedCouponIndex)}),()=>h("div",{ref:r,class:Xn()},[m(),h(Bc,{active:a.value,"onUpdate:active":v=>a.value=v,class:Xn("tab")},{default:()=>[g(),x()]}),h("div",{class:Xn("bottom")},[n["list-button"]?n["list-button"]():At(h(jt,{round:!0,block:!0,type:"primary",class:Xn("close"),text:e.closeButtonText||Wo("close"),onClick:()=>t("change",Array.isArray(e.chosenCoupon)?[]:-1)},null),[[Pt,e.showCloseButton]])])])}});const V6=re(N6),Gg=new Date().getFullYear(),[j6]=te("date-picker"),q6=Ee({},aw,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(Gg-10,0,1),validator:Fs},maxDate:{type:Date,default:()=>new Date(Gg+10,11,31),validator:Fs}});var U6=G({name:j6,props:q6,emits:["confirm","cancel","change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=V(e.modelValue),o=V(!1),r=V(),s=N(()=>o.value?e.modelValue:i.value),a=y=>y===e.minDate.getFullYear(),l=y=>y===e.maxDate.getFullYear(),c=y=>y===e.minDate.getMonth()+1,d=y=>y===e.maxDate.getMonth()+1,u=y=>{const{minDate:E,columnsType:$}=e,S=$.indexOf(y),T=s.value[S];if(T)return+T;switch(y){case"year":return E.getFullYear();case"month":return E.getMonth()+1;case"day":return E.getDate()}},f=()=>{const y=e.minDate.getFullYear(),E=e.maxDate.getFullYear();return br(y,E,"year",e.formatter,e.filter,s.value)},p=()=>{const y=u("year"),E=a(y)?e.minDate.getMonth()+1:1,$=l(y)?e.maxDate.getMonth()+1:12;return br(E,$,"month",e.formatter,e.filter,s.value)},b=()=>{const y=u("year"),E=u("month"),$=a(y)&&c(E)?e.minDate.getDate():1,S=l(y)&&d(E)?e.maxDate.getDate():cw(y,E);return br($,S,"day",e.formatter,e.filter,s.value)},m=()=>{var y;return(y=r.value)==null?void 0:y.confirm()},g=()=>i.value,x=N(()=>e.columnsType.map(y=>{switch(y){case"year":return f();case"month":return p();case"day":return b();default:return[]}}));le(i,y=>{ni(y,e.modelValue)||t("update:modelValue",y)}),le(()=>e.modelValue,(y,E)=>{o.value=ni(E,i.value),y=dw(y,x.value),ni(y,i.value)||(i.value=y),o.value=!1},{immediate:!0});const v=(...y)=>t("change",...y),k=(...y)=>t("cancel",...y),C=(...y)=>t("confirm",...y);return Fe({confirm:m,getSelectedDate:g}),()=>h(zc,De({ref:r,modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,columns:x.value,onChange:v,onCancel:k,onConfirm:C},We(e,lw)),n)}});const W6=re(U6),[Y6,En,za]=te("dialog"),K6=Ee({},Fr,{title:String,theme:String,width:oe,message:[String,Function],callback:Function,allowHtml:Boolean,className:rt,transition:se("van-dialog-bounce"),messageAlign:String,closeOnPopstate:Z,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:Z,closeOnClickOverlay:Boolean,keyboardEnabled:Z,destroyOnClose:Boolean}),X6=[...ch,"transition","closeOnPopstate","destroyOnClose"];var G6=G({name:Y6,props:K6,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const i=V(),o=nt({confirm:!1,cancel:!1}),r=x=>t("update:show",x),s=x=>{var v;r(!1),(v=e.callback)==null||v.call(e,x)},a=x=>()=>{e.show&&(t(x),e.beforeClose?(o[x]=!0,oo(e.beforeClose,{args:[x],done(){s(x),o[x]=!1},canceled(){o[x]=!1}})):s(x))},l=a("cancel"),c=a("confirm"),d=iC(x=>{var v,k;if(!e.keyboardEnabled||x.target!==((k=(v=i.value)==null?void 0:v.popupRef)==null?void 0:k.value))return;({Enter:e.showConfirmButton?c:Uu,Escape:e.showCancelButton?l:Uu})[x.key](),t("keydown",x)},["enter","esc"]),u=()=>{const x=n.title?n.title():e.title;if(x)return h("div",{class:En("header",{isolated:!e.message&&!n.default})},[x])},f=x=>{const{message:v,allowHtml:k,messageAlign:C}=e,y=En("message",{"has-title":x,[C]:C}),E=Tr(v)?v():v;return k&&typeof E=="string"?h("div",{class:y,innerHTML:E},null):h("div",{class:y},[E])},p=()=>{if(n.default)return h("div",{class:En("content")},[n.default()]);const{title:x,message:v,allowHtml:k}=e;if(v){const C=!!(x||n.title);return h("div",{key:k?1:0,class:En("content",{isolated:!C})},[f(C)])}},b=()=>h("div",{class:[yx,En("footer")]},[e.showCancelButton&&h(jt,{size:"large",text:e.cancelButtonText||za("cancel"),class:En("cancel"),style:{color:e.cancelButtonColor},loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:l},null),e.showConfirmButton&&h(jt,{size:"large",text:e.confirmButtonText||za("confirm"),class:[En("confirm"),{[xx]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:c},null)]),m=()=>h($x,{class:En("footer")},{default:()=>[e.showCancelButton&&h(Ku,{type:"warning",text:e.cancelButtonText||za("cancel"),class:En("cancel"),color:e.cancelButtonColor,loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:l},null),e.showConfirmButton&&h(Ku,{type:"danger",text:e.confirmButtonText||za("confirm"),class:En("confirm"),color:e.confirmButtonColor,loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:c},null)]}),g=()=>n.footer?n.footer():e.theme==="round-button"?m():b();return()=>{const{width:x,title:v,theme:k,message:C,className:y}=e;return h(jn,De({ref:i,role:"dialog",class:[En([k]),y],style:{width:Ae(x)},tabindex:0,"aria-labelledby":v||C,onKeydown:d,"onUpdate:show":r},We(e,X6)),{default:()=>[u(),p(),g()]})}}});const Z6=re(G6),[J6,Q6]=te("divider"),ez={dashed:Boolean,hairline:Z,vertical:Boolean,contentPosition:se("center")};var tz=G({name:J6,props:ez,setup(e,{slots:t}){return()=>{var n;return h("div",{role:"separator",class:Q6({dashed:e.dashed,hairline:e.hairline,vertical:e.vertical,[`content-${e.contentPosition}`]:!!t.default&&!e.vertical})},[!e.vertical&&((n=t.default)==null?void 0:n.call(t))])}}});const nz=re(tz),[gw,Ma]=te("dropdown-menu"),iz={overlay:Z,zIndex:oe,duration:be(.2),direction:se("down"),activeColor:String,autoLocate:Boolean,closeOnClickOutside:Z,closeOnClickOverlay:Z,swipeThreshold:oe},bw=Symbol(gw);var oz=G({name:gw,props:iz,setup(e,{slots:t}){const n=Hr(),i=V(),o=V(),r=V(0),{children:s,linkChildren:a}=qt(bw),l=Dr(i),c=N(()=>s.some(v=>v.state.showWrapper)),d=N(()=>e.swipeThreshold&&s.length>+e.swipeThreshold),u=N(()=>{if(c.value&&qe(e.zIndex))return{zIndex:+e.zIndex+1}}),f=()=>{s.forEach(v=>{v.toggle(!1)})},p=()=>{e.closeOnClickOutside&&f()},b=()=>{if(o.value){const v=Ye(o);e.direction==="down"?r.value=v.bottom:r.value=wn.value-v.top}},m=()=>{c.value&&b()},g=v=>{s.forEach((k,C)=>{C===v?k.toggle():k.state.showPopup&&k.toggle(!1,{immediate:!0})})},x=(v,k)=>{const{showPopup:C}=v.state,{disabled:y,titleClass:E}=v;return h("div",{id:`${n}-${k}`,role:"button",tabindex:y?void 0:0,"data-allow-mismatch":"attribute",class:[Ma("item",{disabled:y,grow:d.value}),{[Vt]:!y}],onClick:()=>{y||g(k)}},[h("span",{class:[Ma("title",{down:C===(e.direction==="down"),active:C}),E],style:{color:C?e.activeColor:""}},[h("div",{class:"van-ellipsis"},[v.renderTitle()])])])};return Fe({close:f}),a({id:n,props:e,offset:r,updateOffset:b}),xc(i,p),ft("scroll",m,{target:l,passive:!0}),()=>{var v;return h("div",{ref:i,class:Ma()},[h("div",{ref:o,style:u.value,class:Ma("bar",{opened:c.value,scrollable:d.value})},[s.map(x)]),(v=t.default)==null?void 0:v.call(t)])}}});const[rz,Fa]=te("dropdown-item"),sz={title:String,options:it(),disabled:Boolean,teleport:[String,Object],lazyRender:Z,modelValue:rt,titleClass:rt};var az=G({name:rz,inheritAttrs:!1,props:sz,emits:["open","opened","close","closed","change","update:modelValue"],setup(e,{emit:t,slots:n,attrs:i}){const o=nt({showPopup:!1,transition:!0,showWrapper:!1}),r=V(),{parent:s,index:a}=Lt(bw);if(!s)return;const l=v=>()=>t(v),c=l("open"),d=l("close"),u=l("opened"),f=()=>{o.showWrapper=!1,t("closed")},p=v=>{e.teleport&&v.stopPropagation()},b=(v=!o.showPopup,k={})=>{v!==o.showPopup&&(o.showPopup=v,o.transition=!k.immediate,v&&(s.updateOffset(),o.showWrapper=!0))},m=()=>{if(n.title)return n.title();if(e.title)return e.title;const v=e.options.find(k=>k.value===e.modelValue);return v?v.text:""},g=v=>{const{activeColor:k}=s.props,{disabled:C}=v,y=v.value===e.modelValue,E=()=>{C||(o.showPopup=!1,v.value!==e.modelValue&&(t("update:modelValue",v.value),t("change",v.value)))},$=()=>{if(y)return h(Oe,{class:Fa("icon"),color:C?void 0:k,name:"success"},null)};return h(qn,{role:"menuitem",key:String(v.value),icon:v.icon,title:v.text,class:Fa("option",{active:y,disabled:C}),style:{color:y?k:""},tabindex:y?0:-1,clickable:!C,onClick:E},{value:$})},x=()=>{const{offset:v}=s,{autoLocate:k,zIndex:C,overlay:y,duration:E,direction:$,closeOnClickOverlay:S}=s.props,T=Pi(C);let A=v.value;if(k&&r.value){const w=JB(r.value);w&&(A-=Ye(w).top)}return $==="down"?T.top=`${A}px`:T.bottom=`${A}px`,At(h("div",De({ref:r,style:T,class:Fa([$]),onClick:p},i),[h(jn,{show:o.showPopup,"onUpdate:show":w=>o.showPopup=w,role:"menu",class:Fa("content"),overlay:y,position:$==="down"?"top":"bottom",duration:o.transition?E:0,lazyRender:e.lazyRender,overlayStyle:{position:"absolute"},"aria-labelledby":`${s.id}-${a.value}`,"data-allow-mismatch":"attribute",closeOnClickOverlay:S,onOpen:c,onClose:d,onOpened:u,onClosed:f},{default:()=>{var w;return[e.options.map(g),(w=n.default)==null?void 0:w.call(n)]}})]),[[Pt,o.showWrapper]])};return Fe({state:o,toggle:b,renderTitle:m}),()=>e.teleport?h(to,{to:e.teleport},{default:()=>[x()]}):x()}});const lz=re(az),cz=re(oz),dz={gap:{type:[Number,Object],default:24},icon:String,axis:se("y"),magnetic:String,offset:{type:Object,default:()=>({x:-1,y:-1})},teleport:{type:[String,Object],default:"body"}},[uz,Zg]=te("floating-bubble");var fz=G({name:uz,inheritAttrs:!1,props:dz,emits:["click","update:offset","offsetChange"],setup(e,{slots:t,emit:n,attrs:i}){const o=V(),r=V({x:0,y:0,width:0,height:0}),s=N(()=>Hn(e.gap)?e.gap.x:e.gap),a=N(()=>Hn(e.gap)?e.gap.y:e.gap),l=N(()=>({top:a.value,right:Bn.value-r.value.width-s.value,bottom:wn.value-r.value.height-a.value,left:s.value})),c=V(!1);let d=!1;const u=N(()=>{const y={},E=Ae(r.value.x),$=Ae(r.value.y);return y.transform=`translate3d(${E}, ${$}, 0)`,(c.value||!d)&&(y.transition="none"),y}),f=()=>{if(!C.value)return;const{width:y,height:E}=Ye(o.value),{offset:$}=e;r.value={x:$.x>-1?$.x:Bn.value-y-s.value,y:$.y>-1?$.y:wn.value-E-a.value,width:y,height:E}},p=Sn();let b=0,m=0;const g=y=>{p.start(y),c.value=!0,b=r.value.x,m=r.value.y};ft("touchmove",y=>{if(y.preventDefault(),p.move(y),e.axis!=="lock"&&!p.isTap.value){if(e.axis==="x"||e.axis==="xy"){let $=b+p.deltaX.value;$<l.value.left&&($=l.value.left),$>l.value.right&&($=l.value.right),r.value.x=$}if(e.axis==="y"||e.axis==="xy"){let $=m+p.deltaY.value;$<l.value.top&&($=l.value.top),$>l.value.bottom&&($=l.value.bottom),r.value.y=$}const E=We(r.value,["x","y"]);n("update:offset",E)}},{target:o});const v=()=>{c.value=!1,Pe(()=>{if(e.magnetic==="x"){const y=Dl([l.value.left,l.value.right],r.value.x);r.value.x=y}if(e.magnetic==="y"){const y=Dl([l.value.top,l.value.bottom],r.value.y);r.value.y=y}if(!p.isTap.value){const y=We(r.value,["x","y"]);n("update:offset",y),(b!==y.x||m!==y.y)&&n("offsetChange",y)}})},k=y=>{p.isTap.value?n("click",y):y.stopPropagation()};at(()=>{f(),Pe(()=>{d=!0})}),le([Bn,wn,s,a,()=>e.offset],f,{deep:!0});const C=V(!0);return ri(()=>{C.value=!0}),si(()=>{e.teleport&&(C.value=!1)}),()=>{const y=At(h("div",De({class:Zg(),ref:o,onTouchstartPassive:g,onTouchend:v,onTouchcancel:v,onClickCapture:k,style:u.value},i),[t.default?t.default():h(AL,{name:e.icon,class:Zg("icon")},null)]),[[Pt,C.value]]);return e.teleport?h(to,{to:e.teleport},{default:()=>[y]}):y}}});const hz=re(fz),pz={height:be(0),anchors:it(),duration:be(.3),contentDraggable:Z,lockScroll:Boolean,safeAreaInsetBottom:Z},[mz,Ha]=te("floating-panel");var gz=G({name:mz,props:pz,emits:["heightChange","update:height"],setup(e,{emit:t,slots:n}){const o=V(),r=V(),s=uh(()=>+e.height,k=>t("update:height",k)),a=N(()=>{var k,C;return{min:(k=e.anchors[0])!=null?k:100,max:(C=e.anchors[e.anchors.length-1])!=null?C:Math.round(wn.value*.6)}}),l=N(()=>e.anchors.length>=2?e.anchors:[a.value.min,a.value.max]),c=V(!1),d=N(()=>({height:Ae(a.value.max),transform:`translateY(calc(100% + ${Ae(-s.value)}))`,transition:c.value?"none":`transform ${e.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`})),u=k=>{const C=Math.abs(k),{min:y,max:E}=a.value;return C>E?-(E+(C-E)*.2):C<y?-(y-(y-C)*.2):k};let f,p=-1;const b=Sn(),m=k=>{b.start(k),c.value=!0,f=-s.value,p=-1},g=k=>{var C;b.move(k);const y=k.target;if(r.value===y||(C=r.value)!=null&&C.contains(y)){const{scrollTop:$}=r.value;if(p=Math.max(p,$),!e.contentDraggable)return;if(-f<a.value.max)et(k,!0);else if(!($<=0&&b.deltaY.value>0)||p>0)return}const E=b.deltaY.value+f;s.value=-u(E)},x=()=>{p=-1,c.value=!1,s.value=Dl(l.value,s.value),s.value!==-f&&t("heightChange",{height:s.value})};le(a,()=>{s.value=Dl(l.value,s.value)},{immediate:!0}),Rx(o,()=>e.lockScroll||c.value),ft("touchmove",g,{target:o});const v=()=>n.header?n.header():h("div",{class:Ha("header")},[h("div",{class:Ha("header-bar")},null)]);return()=>{var k;return h("div",{class:[Ha(),{"van-safe-area-bottom":e.safeAreaInsetBottom}],ref:o,style:d.value,onTouchstartPassive:m,onTouchend:x,onTouchcancel:x},[v(),h("div",{class:Ha("content"),ref:r},[(k=n.default)==null?void 0:k.call(n)])])}}});const bz=re(gz),[vw,vz]=te("grid"),yz={square:Boolean,center:Z,border:Z,gutter:oe,reverse:Boolean,iconSize:oe,direction:String,clickable:Boolean,columnNum:be(4)},yw=Symbol(vw);var xz=G({name:vw,props:yz,setup(e,{slots:t}){const{linkChildren:n}=qt(yw);return n({props:e}),()=>{var i;return h("div",{style:{paddingLeft:Ae(e.gutter)},class:[vz(),{[yx]:e.border&&!e.gutter}]},[(i=t.default)==null?void 0:i.call(t)])}}});const wz=re(xz),[kz,Na]=te("grid-item"),Sz=Ee({},ro,{dot:Boolean,text:String,icon:String,badge:oe,iconColor:String,iconPrefix:String,badgeProps:Object});var Cz=G({name:kz,props:Sz,setup(e,{slots:t}){const{parent:n,index:i}=Lt(yw),o=Do();if(!n)return;const r=N(()=>{const{square:d,gutter:u,columnNum:f}=n.props,p=`${100/+f}%`,b={flexBasis:p};if(d)b.paddingTop=p;else if(u){const m=Ae(u);b.paddingRight=m,i.value>=+f&&(b.marginTop=m)}return b}),s=N(()=>{const{square:d,gutter:u}=n.props;if(d&&u){const f=Ae(u);return{right:f,bottom:f,height:"auto"}}}),a=()=>{if(t.icon)return h(Bo,De({dot:e.dot,content:e.badge},e.badgeProps),{default:t.icon});if(e.icon)return h(Oe,{dot:e.dot,name:e.icon,size:n.props.iconSize,badge:e.badge,class:Na("icon"),color:e.iconColor,badgeProps:e.badgeProps,classPrefix:e.iconPrefix},null)},l=()=>{if(t.text)return t.text();if(e.text)return h("span",{class:Na("text")},[e.text])},c=()=>t.default?t.default():[a(),l()];return()=>{const{center:d,border:u,square:f,gutter:p,reverse:b,direction:m,clickable:g}=n.props,x=[Na("content",[m,{center:d,square:f,reverse:b,clickable:g,surround:u&&p}]),{[Di]:u}];return h("div",{class:[Na({square:f})],style:r.value},[h("div",{role:g?"button":void 0,class:x,style:s.value,tabindex:g?0:void 0,onClick:o},[c()])])}}});const Ez=re(Cz),[$z,Jg]=te("highlight"),Tz={autoEscape:Z,caseSensitive:Boolean,highlightClass:String,highlightTag:se("span"),keywords:_t([String,Array]),sourceString:se(""),tag:se("div"),unhighlightClass:String,unhighlightTag:se("span")};var _z=G({name:$z,props:Tz,setup(e){const t=N(()=>{const{autoEscape:i,caseSensitive:o,keywords:r,sourceString:s}=e,a=o?"g":"gi";let c=(Array.isArray(r)?r:[r]).filter(u=>u).reduce((u,f)=>{i&&(f=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));const p=new RegExp(f,a);let b;for(;b=p.exec(s);){const m=b.index,g=p.lastIndex;if(m>=g){p.lastIndex++;continue}u.push({start:m,end:g,highlight:!0})}return u},[]);c=c.sort((u,f)=>u.start-f.start).reduce((u,f)=>{const p=u[u.length-1];if(!p||f.start>p.end){const b=p?p.end:0,m=f.start;b!==m&&u.push({start:b,end:m,highlight:!1}),u.push(f)}else p.end=Math.max(p.end,f.end);return u},[]);const d=c[c.length-1];return d||c.push({start:0,end:s.length,highlight:!1}),d&&d.end<s.length&&c.push({start:d.end,end:s.length,highlight:!1}),c}),n=()=>{const{sourceString:i,highlightClass:o,unhighlightClass:r,highlightTag:s,unhighlightTag:a}=e;return t.value.map(l=>{const{start:c,end:d,highlight:u}=l,f=i.slice(c,d);return u?h(s,{class:[Jg("tag"),o]},{default:()=>[f]}):h(a,{class:r},{default:()=>[f]})})};return()=>{const{tag:i}=e;return h(i,{class:Jg()},{default:()=>[n()]})}}});const Az=re(_z),Qg=e=>Math.sqrt((e[0].clientX-e[1].clientX)**2+(e[0].clientY-e[1].clientY)**2),Oz=e=>({x:(e[0].clientX+e[1].clientX)/2,y:(e[0].clientY+e[1].clientY)/2}),Nd=te("image-preview")[1],eb=2.6,Rz={src:String,show:Boolean,active:Number,minZoom:_t(oe),maxZoom:_t(oe),rootWidth:_t(Number),rootHeight:_t(Number),disableZoom:Boolean,doubleScale:Boolean,closeOnClickImage:Boolean,closeOnClickOverlay:Boolean,vertical:Boolean};var Iz=G({props:Rz,emits:["scale","close","longPress"],setup(e,{emit:t,slots:n}){const i=nt({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,initializing:!1,imageRatio:0}),o=Sn(),r=V(),s=V(),a=V(!1),l=V(!1);let c=0;const d=N(()=>{const{scale:P,moveX:M,moveY:L,moving:ce,zooming:fe,initializing:ie}=i,q={transitionDuration:fe||ce||ie?"0s":".3s"};return(P!==1||l.value)&&(q.transform=`matrix(${P}, 0, 0, ${P}, ${M}, ${L})`),q}),u=N(()=>{if(i.imageRatio){const{rootWidth:P,rootHeight:M}=e,L=a.value?M/i.imageRatio:P;return Math.max(0,(i.scale*L-P)/2)}return 0}),f=N(()=>{if(i.imageRatio){const{rootWidth:P,rootHeight:M}=e,L=a.value?M:P*i.imageRatio;return Math.max(0,(i.scale*L-M)/2)}return 0}),p=(P,M)=>{var L;if(P=Et(P,+e.minZoom,+e.maxZoom+1),P!==i.scale){const ce=P/i.scale;if(i.scale=P,M){const fe=Ye((L=r.value)==null?void 0:L.$el),ie={x:fe.width*.5,y:fe.height*.5},q=i.moveX-(M.x-fe.left-ie.x)*(ce-1),J=i.moveY-(M.y-fe.top-ie.y)*(ce-1);i.moveX=Et(q,-u.value,u.value),i.moveY=Et(J,-f.value,f.value)}else i.moveX=0,i.moveY=l.value?c:0;t("scale",{scale:P,index:e.active})}},b=()=>{p(1)},m=()=>{const P=i.scale>1?1:2;p(P,P===2||l.value?{x:o.startX.value,y:o.startY.value}:void 0)};let g,x,v,k,C,y,E,$,S=!1;const T=P=>{const{touches:M}=P;if(g=M.length,g===2&&e.disableZoom)return;const{offsetX:L}=o;o.start(P),x=i.moveX,v=i.moveY,$=Date.now(),S=!1,i.moving=g===1&&(i.scale!==1||l.value),i.zooming=g===2&&!L.value,i.zooming&&(k=i.scale,C=Qg(M))},A=P=>{const{touches:M}=P;if(o.move(P),i.moving){const{deltaX:L,deltaY:ce}=o,fe=L.value+x,ie=ce.value+v;if((e.vertical?o.isVertical()&&Math.abs(ie)>f.value:o.isHorizontal()&&Math.abs(fe)>u.value)&&!S){i.moving=!1;return}S=!0,et(P,!0),i.moveX=Et(fe,-u.value,u.value),i.moveY=Et(ie,-f.value,f.value)}if(i.zooming&&(et(P,!0),M.length===2)){const L=Qg(M),ce=k*L/C;y=Oz(M),p(ce,y)}},w=P=>{var M;const L=(M=s.value)==null?void 0:M.$el;if(!L)return;const ce=L.firstElementChild,fe=P.target===L,ie=ce==null?void 0:ce.contains(P.target);!e.closeOnClickImage&&ie||!e.closeOnClickOverlay&&fe||t("close")},_=P=>{if(g>1)return;const M=Date.now()-$,L=250;o.isTap.value&&(M<L?e.doubleScale?E?(clearTimeout(E),E=null,m()):E=setTimeout(()=>{w(P),E=null},L):w(P):M>kx&&t("longPress"))},D=P=>{let M=!1;if((i.moving||i.zooming)&&(M=!0,i.moving&&x===i.moveX&&v===i.moveY&&(M=!1),!P.touches.length)){i.zooming&&(i.moveX=Et(i.moveX,-u.value,u.value),i.moveY=Et(i.moveY,-f.value,f.value),i.zooming=!1),i.moving=!1,x=0,v=0,k=1,i.scale<1&&b();const L=+e.maxZoom;i.scale>L&&p(L,y)}et(P,M),_(P),o.reset()},F=()=>{const{rootWidth:P,rootHeight:M}=e,L=M/P,{imageRatio:ce}=i;a.value=i.imageRatio>L&&ce<eb,l.value=i.imageRatio>L&&ce>=eb,l.value&&(c=(ce*P-M)/2,i.moveY=c,i.initializing=!0,Ht(()=>{i.initializing=!1})),b()},H=P=>{const{naturalWidth:M,naturalHeight:L}=P.target;i.imageRatio=L/M,F()};return le(()=>e.active,b),le(()=>e.show,P=>{P||b()}),le(()=>[e.rootWidth,e.rootHeight],F),ft("touchmove",A,{target:N(()=>{var P;return(P=s.value)==null?void 0:P.$el})}),Fe({resetScale:b}),()=>{const P={loading:()=>h(Vn,{type:"spinner"},null)};return h(hh,{ref:s,class:Nd("swipe-item"),onTouchstartPassive:T,onTouchend:D,onTouchcancel:D},{default:()=>[n.image?h("div",{class:Nd("image-wrap")},[n.image({src:e.src,onLoad:H,style:d.value})]):h(Hc,{ref:r,src:e.src,fit:"contain",class:Nd("image",{vertical:a.value}),style:d.value,onLoad:H},P)]})}}});const[Pz,Yo]=te("image-preview"),Dz=["show","teleport","transition","overlayStyle","closeOnPopstate"],Bz={show:Boolean,loop:Z,images:it(),minZoom:be(1/3),maxZoom:be(3),overlay:Z,vertical:Boolean,closeable:Boolean,showIndex:Z,className:rt,closeIcon:se("clear"),transition:String,beforeClose:Function,doubleScale:Z,overlayClass:rt,overlayStyle:Object,swipeDuration:be(300),startPosition:be(0),showIndicators:Boolean,closeOnPopstate:Z,closeOnClickImage:Z,closeOnClickOverlay:Z,closeIconPosition:se("top-right"),teleport:[String,Object]};var xw=G({name:Pz,props:Bz,emits:["scale","close","closed","change","longPress","update:show"],setup(e,{emit:t,slots:n}){const i=V(),o=V(),r=nt({active:0,rootWidth:0,rootHeight:0,disableZoom:!1}),s=()=>{if(i.value){const k=Ye(i.value.$el);r.rootWidth=k.width,r.rootHeight=k.height,i.value.resize()}},a=k=>t("scale",k),l=k=>t("update:show",k),c=()=>{oo(e.beforeClose,{args:[r.active],done:()=>l(!1)})},d=k=>{k!==r.active&&(r.active=k,t("change",k))},u=()=>{if(e.showIndex)return h("div",{class:Yo("index")},[n.index?n.index({index:r.active}):`${r.active+1} / ${e.images.length}`])},f=()=>{if(n.cover)return h("div",{class:Yo("cover")},[n.cover()])},p=()=>{r.disableZoom=!0},b=()=>{r.disableZoom=!1},m=()=>h(fh,{ref:i,lazyRender:!0,loop:e.loop,class:Yo("swipe"),vertical:e.vertical,duration:e.swipeDuration,initialSwipe:e.startPosition,showIndicators:e.showIndicators,indicatorColor:"white",onChange:d,onDragEnd:b,onDragStart:p},{default:()=>[e.images.map((k,C)=>h(Iz,{ref:y=>{C===r.active&&(o.value=y)},src:k,show:e.show,active:r.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:r.rootWidth,rootHeight:r.rootHeight,disableZoom:r.disableZoom,doubleScale:e.doubleScale,closeOnClickImage:e.closeOnClickImage,closeOnClickOverlay:e.closeOnClickOverlay,vertical:e.vertical,onScale:a,onClose:c,onLongPress:()=>t("longPress",{index:C})},{image:n.image}))]}),g=()=>{if(e.closeable)return h(Oe,{role:"button",name:e.closeIcon,class:[Yo("close-icon",e.closeIconPosition),Vt],onClick:c},null)},x=()=>t("closed"),v=(k,C)=>{var y;return(y=i.value)==null?void 0:y.swipeTo(k,C)};return Fe({resetScale:()=>{var k;(k=o.value)==null||k.resetScale()},swipeTo:v}),at(s),le([Bn,wn],s),le(()=>e.startPosition,k=>d(+k)),le(()=>e.show,k=>{const{images:C,startPosition:y}=e;k?(d(+y),Pe(()=>{s(),v(+y,{immediate:!0})})):t("close",{index:r.active,url:C[r.active]})}),()=>h(jn,De({class:[Yo(),e.className],overlayClass:[Yo("overlay"),e.overlayClass],onClosed:x,"onUpdate:show":l},We(e,Dz)),{default:()=>[g(),m(),u(),f()]})}});let al;const Lz={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,vertical:!1,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,doubleScale:!0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeOnClickOverlay:!0,closeIconPosition:"top-right"};function zz(){({instance:al}=Jx({setup(){const{state:e,toggle:t}=Zx(),n=()=>{e.images=[]};return()=>h(xw,De(e,{onClosed:n,"onUpdate:show":t}),null)}}))}const Mz=(e,t=0)=>{if(kn)return al||zz(),e=Array.isArray(e)?{images:e,startPosition:t}:e,al.open(Ee({},Lz,e)),al},Fz=re(xw);function Hz(){return Array(26).fill("").map((n,i)=>String.fromCharCode(65+i))}const[ww,Vd]=te("index-bar"),Nz={sticky:Z,zIndex:oe,teleport:[String,Object],highlightColor:String,stickyOffsetTop:kt(0),indexList:{type:Array,default:Hz}},kw=Symbol(ww);var Vz=G({name:ww,props:Nz,emits:["select","change"],setup(e,{emit:t,slots:n}){const i=V(),o=V(),r=V(""),s=Sn(),a=Dr(i),{children:l,linkChildren:c}=qt(kw);let d;c({props:e});const u=N(()=>{if(qe(e.zIndex))return{zIndex:+e.zIndex+1}}),f=N(()=>{if(e.highlightColor)return{color:e.highlightColor}}),p=(S,T)=>{for(let A=l.length-1;A>=0;A--){const w=A>0?T[A-1].height:0,_=e.sticky?w+e.stickyOffsetTop:0;if(S+_>=T[A].top)return A}return-1},b=S=>l.find(T=>String(T.index)===S),m=()=>{if(Io(i))return;const{sticky:S,indexList:T}=e,A=Ti(a.value),w=Ye(a),_=l.map(F=>F.getRect(a.value,w));let D=-1;if(d){const F=b(d);if(F){const H=F.getRect(a.value,w);e.sticky&&e.stickyOffsetTop?D=p(H.top-e.stickyOffsetTop,_):D=p(H.top,_)}}else D=p(A,_);r.value=T[D],S&&l.forEach((F,H)=>{const{state:P,$el:M}=F;if(H===D||H===D-1){const L=M.getBoundingClientRect();P.left=L.left,P.width=L.width}else P.left=null,P.width=null;if(H===D)P.active=!0,P.top=Math.max(e.stickyOffsetTop,_[H].top-A)+w.top;else if(H===D-1&&d===""){const L=_[D].top-A;P.active=L>0,P.top=L+w.top-_[H].height}else P.active=!1}),d=""},g=()=>{Pe(m)};ft("scroll",m,{target:a,passive:!0}),at(g),le(()=>e.indexList,g),le(r,S=>{S&&t("change",S)});const x=()=>e.indexList.map(S=>{const T=S===r.value;return h("span",{class:Vd("index",{active:T}),style:T?f.value:void 0,"data-index":S},[S])}),v=S=>{d=String(S);const T=b(d);if(T){const A=Ti(a.value),w=Ye(a),{offsetHeight:_}=document.documentElement;if(T.$el.scrollIntoView(),A===_-w.height){m();return}e.sticky&&e.stickyOffsetTop&&(Eo()===_-w.height?Hs(Eo()):Hs(Eo()-e.stickyOffsetTop)),t("select",T.index)}},k=S=>{const{index:T}=S.dataset;T&&v(T)},C=S=>{k(S.target)};let y;const E=S=>{if(s.move(S),s.isVertical()){et(S);const{clientX:T,clientY:A}=S.touches[0],w=document.elementFromPoint(T,A);if(w){const{index:_}=w.dataset;_&&y!==_&&(y=_,k(w))}}},$=()=>h("div",{ref:o,class:Vd("sidebar"),style:u.value,onClick:C,onTouchstartPassive:s.start},[x()]);return Fe({scrollTo:v}),ft("touchmove",E,{target:o}),()=>{var S;return h("div",{ref:i,class:Vd()},[e.teleport?h(to,{to:e.teleport},{default:()=>[$()]}):$(),(S=n.default)==null?void 0:S.call(n)])}}});const[jz,qz]=te("index-anchor"),Uz={index:oe};var Wz=G({name:jz,props:Uz,setup(e,{slots:t}){const n=nt({top:0,left:null,rect:{top:0,height:0},width:null,active:!1}),i=V(),{parent:o}=Lt(kw);if(!o)return;const r=()=>n.active&&o.props.sticky,s=N(()=>{const{zIndex:l,highlightColor:c}=o.props;if(r())return Ee(Pi(l),{left:n.left?`${n.left}px`:void 0,width:n.width?`${n.width}px`:void 0,transform:n.top?`translate3d(0, ${n.top}px, 0)`:void 0,color:c})});return Fe({state:n,getRect:(l,c)=>{const d=Ye(i);return n.rect.height=d.height,l===window||l===document.body?n.rect.top=d.top+Eo():n.rect.top=d.top+Ti(l)-c.top,n.rect}}),()=>{const l=r();return h("div",{ref:i,style:{height:l?`${n.rect.height}px`:void 0}},[h("div",{style:s.value,class:[qz({sticky:l}),{[ah]:l}]},[t.default?t.default():e.index])])}}});const Yz=re(Wz),Kz=re(Vz),[Xz,Ko,Gz]=te("list"),Zz={error:Boolean,offset:be(300),loading:Boolean,disabled:Boolean,finished:Boolean,scroller:Object,errorText:String,direction:se("down"),loadingText:String,finishedText:String,immediateCheck:Z};var Jz=G({name:Xz,props:Zz,emits:["load","update:error","update:loading"],setup(e,{emit:t,slots:n}){const i=V(e.loading),o=V(),r=V(),s=T4(),a=Dr(o),l=N(()=>e.scroller||a.value),c=()=>{Pe(()=>{if(i.value||e.finished||e.disabled||e.error||(s==null?void 0:s.value)===!1)return;const{direction:b}=e,m=+e.offset,g=Ye(l);if(!g.height||Io(o))return;let x=!1;const v=Ye(r);b==="up"?x=g.top-v.top<=m:x=v.bottom-g.bottom<=m,x&&(i.value=!0,t("update:loading",!0),t("load"))})},d=()=>{if(e.finished){const b=n.finished?n.finished():e.finishedText;if(b)return h("div",{class:Ko("finished-text")},[b])}},u=()=>{t("update:error",!1),c()},f=()=>{if(e.error){const b=n.error?n.error():e.errorText;if(b)return h("div",{role:"button",class:Ko("error-text"),tabindex:0,onClick:u},[b])}},p=()=>{if(i.value&&!e.finished&&!e.disabled)return h("div",{class:Ko("loading")},[n.loading?n.loading():h(Vn,{class:Ko("loading-icon")},{default:()=>[e.loadingText||Gz("loading")]})])};return le(()=>[e.loading,e.finished,e.error],c),s&&le(s,b=>{b&&c()}),dv(()=>{i.value=e.loading}),at(()=>{e.immediateCheck&&c()}),Fe({check:c}),ft("scroll",c,{target:l,passive:!0}),()=>{var b;const m=(b=n.default)==null?void 0:b.call(n),g=h("div",{ref:r,class:Ko("placeholder")},null);return h("div",{ref:o,role:"feed",class:Ko(),"aria-busy":i.value},[e.direction==="down"?m:g,p(),d(),f(),e.direction==="up"?m:g])}}});const Qz=re(Jz),[eM,mi]=te("nav-bar"),tM={title:String,fixed:Boolean,zIndex:oe,border:Z,leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:Z};var nM=G({name:eM,props:tM,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:n}){const i=V(),o=Pc(i,mi),r=d=>{e.leftDisabled||t("clickLeft",d)},s=d=>{e.rightDisabled||t("clickRight",d)},a=()=>n.left?n.left():[e.leftArrow&&h(Oe,{class:mi("arrow"),name:"arrow-left"},null),e.leftText&&h("span",{class:mi("text")},[e.leftText])],l=()=>n.right?n.right():h("span",{class:mi("text")},[e.rightText]),c=()=>{const{title:d,fixed:u,border:f,zIndex:p}=e,b=Pi(p),m=e.leftArrow||e.leftText||n.left,g=e.rightText||n.right;return h("div",{ref:i,style:b,class:[mi({fixed:u}),{[ah]:f,"van-safe-area-top":e.safeAreaInsetTop}]},[h("div",{class:mi("content")},[m&&h("div",{class:[mi("left",{disabled:e.leftDisabled}),e.clickable&&!e.leftDisabled?Vt:""],onClick:r},[a()]),h("div",{class:[mi("title"),"van-ellipsis"]},[n.title?n.title():d]),g&&h("div",{class:[mi("right",{disabled:e.rightDisabled}),e.clickable&&!e.rightDisabled?Vt:""],onClick:s},[l()])])])};return()=>e.fixed&&e.placeholder?o(c):c()}});const iM=re(nM),[oM,Gr]=te("notice-bar"),rM={text:String,mode:String,color:String,delay:be(1),speed:be(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};var sM=G({name:oM,props:rM,emits:["close","replay"],setup(e,{emit:t,slots:n}){let i=0,o=0,r;const s=V(),a=V(),l=nt({show:!0,offset:0,duration:0}),c=()=>{if(n["left-icon"])return n["left-icon"]();if(e.leftIcon)return h(Oe,{class:Gr("left-icon"),name:e.leftIcon},null)},d=()=>{if(e.mode==="closeable")return"cross";if(e.mode==="link")return"arrow"},u=g=>{e.mode==="closeable"&&(l.show=!1,t("close",g))},f=()=>{if(n["right-icon"])return n["right-icon"]();const g=d();if(g)return h(Oe,{name:g,class:Gr("right-icon"),onClick:u},null)},p=()=>{l.offset=i,l.duration=0,Ht(()=>{Yi(()=>{l.offset=-o,l.duration=(o+i)/+e.speed,t("replay")})})},b=()=>{const g=e.scrollable===!1&&!e.wrapable,x={transform:l.offset?`translateX(${l.offset}px)`:"",transitionDuration:`${l.duration}s`};return h("div",{ref:s,role:"marquee",class:Gr("wrap")},[h("div",{ref:a,style:x,class:[Gr("content"),{"van-ellipsis":g}],onTransitionend:p},[n.default?n.default():e.text])])},m=()=>{const{delay:g,speed:x,scrollable:v}=e,k=qe(g)?+g*1e3:0;i=0,o=0,l.offset=0,l.duration=0,clearTimeout(r),r=setTimeout(()=>{if(!s.value||!a.value||v===!1)return;const C=Ye(s).width,y=Ye(a).width;(v||y>C)&&Yi(()=>{i=C,o=y,l.offset=-o,l.duration=o/+x})},k)};return Ic(m),Pr(m),ft("pageshow",m),Fe({reset:m}),le(()=>[e.text,e.scrollable],m),()=>{const{color:g,wrapable:x,background:v}=e;return At(h("div",{role:"alert",class:Gr({wrapable:x}),style:{color:g,background:v}},[c(),b(),f()]),[[Pt,l.show]])}}});const aM=re(sM),[lM,cM]=te("notify"),dM=["lockScroll","position","show","teleport","zIndex"],uM=Ee({},Fr,{type:se("danger"),color:String,message:oe,position:se("top"),className:rt,background:String,lockScroll:Boolean});var fM=G({name:lM,props:uM,emits:["update:show"],setup(e,{emit:t,slots:n}){const i=o=>t("update:show",o);return()=>h(jn,De({class:[cM([e.type]),e.className],style:{color:e.color,background:e.background},overlay:!1,duration:.2,"onUpdate:show":i},We(e,dM)),{default:()=>[n.default?n.default():e.message]})}});const hM=re(fM),[pM,ys]=te("key"),mM=h("svg",{class:ys("collapse-icon"),viewBox:"0 0 30 24"},[h("path",{d:"M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",fill:"currentColor"},null)]),gM=h("svg",{class:ys("delete-icon"),viewBox:"0 0 32 22"},[h("path",{d:"M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",fill:"currentColor"},null)]);var jd=G({name:pM,props:{type:String,text:oe,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup(e,{emit:t,slots:n}){const i=V(!1),o=Sn(),r=c=>{o.start(c),i.value=!0},s=c=>{o.move(c),o.direction.value&&(i.value=!1)},a=c=>{i.value&&(n.default||et(c),i.value=!1,t("press",e.text,e.type))},l=()=>{if(e.loading)return h(Vn,{class:ys("loading-icon")},null);const c=n.default?n.default():e.text;switch(e.type){case"delete":return c||gM;case"extra":return c||mM;default:return c}};return()=>h("div",{class:ys("wrapper",{wider:e.wider}),onTouchstartPassive:r,onTouchmovePassive:s,onTouchend:a,onTouchcancel:a},[h("div",{role:"button",tabindex:0,class:ys([e.color,{large:e.large,active:i.value,delete:e.type==="delete"}])},[l()])])}});const[bM,Fi]=te("number-keyboard"),vM={show:Boolean,title:String,theme:se("default"),zIndex:oe,teleport:[String,Object],maxlength:be(1/0),modelValue:se(""),transition:Z,blurOnClose:Z,showDeleteKey:Z,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:Z,safeAreaInsetBottom:Z,extraKey:{type:[String,Array],default:""}};function yM(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),i=e[t];e[t]=e[n],e[n]=i}return e}var xM=G({name:bM,inheritAttrs:!1,props:vM,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup(e,{emit:t,slots:n,attrs:i}){const o=V(),r=()=>{const g=Array(9).fill("").map((x,v)=>({text:v+1}));return e.randomKeyOrder&&yM(g),g},s=()=>[...r(),{text:e.extraKey,type:"extra"},{text:0},{text:e.showDeleteKey?e.deleteButtonText:"",type:e.showDeleteKey?"delete":""}],a=()=>{const g=r(),{extraKey:x}=e,v=Array.isArray(x)?x:[x];return v.length===0?g.push({text:0,wider:!0}):v.length===1?g.push({text:0,wider:!0},{text:v[0],type:"extra"}):v.length===2&&g.push({text:v[0],type:"extra"},{text:0},{text:v[1],type:"extra"}),g},l=N(()=>e.theme==="custom"?a():s()),c=()=>{e.show&&t("blur")},d=()=>{t("close"),e.blurOnClose&&c()},u=()=>t(e.show?"show":"hide"),f=(g,x)=>{if(g===""){x==="extra"&&c();return}const v=e.modelValue;x==="delete"?(t("delete"),t("update:modelValue",v.slice(0,v.length-1))):x==="close"?d():v.length<+e.maxlength&&(t("input",g),t("update:modelValue",v+g))},p=()=>{const{title:g,theme:x,closeButtonText:v}=e,k=n["title-left"],C=v&&x==="default";if(g||C||k)return h("div",{class:Fi("header")},[k&&h("span",{class:Fi("title-left")},[k()]),g&&h("h2",{class:Fi("title")},[g]),C&&h("button",{type:"button",class:[Fi("close"),Vt],onClick:d},[v])])},b=()=>l.value.map(g=>{const x={};return g.type==="delete"&&(x.default=n.delete),g.type==="extra"&&(x.default=n["extra-key"]),h(jd,{key:g.text,text:g.text,type:g.type,wider:g.wider,color:g.color,onPress:f},x)}),m=()=>{if(e.theme==="custom")return h("div",{class:Fi("sidebar")},[e.showDeleteKey&&h(jd,{large:!0,text:e.deleteButtonText,type:"delete",onPress:f},{default:n.delete}),h(jd,{large:!0,text:e.closeButtonText,type:"close",color:"blue",loading:e.closeButtonLoading,onPress:f},null)])};return le(()=>e.show,g=>{e.transition||t(g?"show":"hide")}),e.hideOnClickOutside&&xc(o,c,{eventName:"touchstart"}),()=>{const g=p(),x=h(Gl,{name:e.transition?"van-slide-up":""},{default:()=>[At(h("div",De({ref:o,style:Pi(e.zIndex),class:Fi({unfit:!e.safeAreaInsetBottom,"with-title":!!g}),onAnimationend:u,onTouchstartPassive:rh},i),[g,h("div",{class:Fi("body")},[h("div",{class:Fi("keys")},[b()]),m()])]),[[Pt,e.show]])]});return e.teleport?h(to,{to:e.teleport},{default:()=>[x]}):x}}});const wM=re(xM),[kM,Xo,tb]=te("pagination"),qd=(e,t,n)=>({number:e,text:t,active:n}),SM={mode:se("multi"),prevText:String,nextText:String,pageCount:be(0),modelValue:kt(0),totalItems:be(0),showPageSize:be(5),itemsPerPage:be(10),forceEllipses:Boolean,showPrevButton:Z,showNextButton:Z};var CM=G({name:kM,props:SM,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=N(()=>{const{pageCount:d,totalItems:u,itemsPerPage:f}=e,p=+d||Math.ceil(+u/+f);return Math.max(1,p)}),o=N(()=>{const d=[],u=i.value,f=+e.showPageSize,{modelValue:p,forceEllipses:b}=e;let m=1,g=u;const x=f<u;x&&(m=Math.max(p-Math.floor(f/2),1),g=m+f-1,g>u&&(g=u,m=g-f+1));for(let v=m;v<=g;v++){const k=qd(v,v,v===p);d.push(k)}if(x&&f>0&&b){if(m>1){const v=qd(m-1,"...");d.unshift(v)}if(g<u){const v=qd(g+1,"...");d.push(v)}}return d}),r=(d,u)=>{d=Et(d,1,i.value),e.modelValue!==d&&(t("update:modelValue",d),u&&t("change",d))};Or(()=>r(e.modelValue));const s=()=>h("li",{class:Xo("page-desc")},[n.pageDesc?n.pageDesc():`${e.modelValue}/${i.value}`]),a=()=>{const{mode:d,modelValue:u,showPrevButton:f}=e;if(!f)return;const p=n["prev-text"],b=u===1;return h("li",{class:[Xo("item",{disabled:b,border:d==="simple",prev:!0}),bs]},[h("button",{type:"button",disabled:b,onClick:()=>r(u-1,!0)},[p?p():e.prevText||tb("prev")])])},l=()=>{const{mode:d,modelValue:u,showNextButton:f}=e;if(!f)return;const p=n["next-text"],b=u===i.value;return h("li",{class:[Xo("item",{disabled:b,border:d==="simple",next:!0}),bs]},[h("button",{type:"button",disabled:b,onClick:()=>r(u+1,!0)},[p?p():e.nextText||tb("next")])])},c=()=>o.value.map(d=>h("li",{class:[Xo("item",{active:d.active,page:!0}),bs]},[h("button",{type:"button","aria-current":d.active||void 0,onClick:()=>r(d.number,!0)},[n.page?n.page(d):d.text])]));return()=>h("nav",{role:"navigation",class:Xo()},[h("ul",{class:Xo("items")},[a(),e.mode==="simple"?s():c(),l()])])}});const EM=re(CM),[$M,Zr]=te("password-input"),TM={info:String,mask:Z,value:se(""),gutter:oe,length:be(6),focused:Boolean,errorInfo:String};var _M=G({name:$M,props:TM,emits:["focus"],setup(e,{emit:t}){const n=o=>{o.stopPropagation(),t("focus",o)},i=()=>{const o=[],{mask:r,value:s,gutter:a,focused:l}=e,c=+e.length;for(let d=0;d<c;d++){const u=s[d],f=d!==0&&!a,p=l&&d===s.length;let b;d!==0&&a&&(b={marginLeft:Ae(a)}),o.push(h("li",{class:[{[xx]:f},Zr("item",{focus:p})],style:b},[r?h("i",{style:{visibility:u?"visible":"hidden"}},null):u,p&&h("div",{class:Zr("cursor")},null)]))}return o};return()=>{const o=e.errorInfo||e.info;return h("div",{class:Zr()},[h("ul",{class:[Zr("security"),{[bs]:!e.gutter}],onTouchstartPassive:n},[i()]),o&&h("div",{class:Zr(e.errorInfo?"error-info":"info")},[o])])}}});const AM=re(_M),OM=re(z4);function Un(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sh(e){var t=Un(e).Element;return e instanceof t||e instanceof Element}function Ln(e){var t=Un(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Sw(e){if(typeof ShadowRoot>"u")return!1;var t=Un(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ar=Math.round;function nf(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function RM(){return!/^((?!chrome|android).)*safari/i.test(nf())}function Ll(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&Ln(e)&&(o=e.offsetWidth>0&&Ar(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Ar(i.height)/e.offsetHeight||1);var s=Sh(e)?Un(e):window,a=s.visualViewport,l=!RM()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/o,d=(i.top+(l&&a?a.offsetTop:0))/r,u=i.width/o,f=i.height/r;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function Cw(e){var t=Un(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function IM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function PM(e){return e===Un(e)||!Ln(e)?Cw(e):IM(e)}function _i(e){return e?(e.nodeName||"").toLowerCase():null}function Nc(e){return((Sh(e)?e.ownerDocument:e.document)||window.document).documentElement}function DM(e){return Ll(Nc(e)).left+Cw(e).scrollLeft}function Ai(e){return Un(e).getComputedStyle(e)}function Ch(e){var t=Ai(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function BM(e){var t=e.getBoundingClientRect(),n=Ar(t.width)/e.offsetWidth||1,i=Ar(t.height)/e.offsetHeight||1;return n!==1||i!==1}function LM(e,t,n){n===void 0&&(n=!1);var i=Ln(t),o=Ln(t)&&BM(t),r=Nc(t),s=Ll(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((_i(t)!=="body"||Ch(r))&&(a=PM(t)),Ln(t)?(l=Ll(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=DM(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function zM(e){var t=Ll(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Eh(e){return _i(e)==="html"?e:e.assignedSlot||e.parentNode||(Sw(e)?e.host:null)||Nc(e)}function Ew(e){return["html","body","#document"].indexOf(_i(e))>=0?e.ownerDocument.body:Ln(e)&&Ch(e)?e:Ew(Eh(e))}function ll(e,t){var n;t===void 0&&(t=[]);var i=Ew(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),r=Un(i),s=o?[r].concat(r.visualViewport||[],Ch(i)?i:[]):i,a=t.concat(s);return o?a:a.concat(ll(Eh(s)))}function MM(e){return["table","td","th"].indexOf(_i(e))>=0}function nb(e){return!Ln(e)||Ai(e).position==="fixed"?null:e.offsetParent}function FM(e){var t=/firefox/i.test(nf()),n=/Trident/i.test(nf());if(n&&Ln(e)){var i=Ai(e);if(i.position==="fixed")return null}var o=Eh(e);for(Sw(o)&&(o=o.host);Ln(o)&&["html","body"].indexOf(_i(o))<0;){var r=Ai(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function $w(e){for(var t=Un(e),n=nb(e);n&&MM(n)&&Ai(n).position==="static";)n=nb(n);return n&&(_i(n)==="html"||_i(n)==="body"&&Ai(n).position==="static")?t:n||FM(e)||t}var vr="top",zl="bottom",Vs="right",$o="left",Tw="auto",HM=[vr,zl,Vs,$o],_w="start",Ml="end",NM=[].concat(HM,[Tw]).reduce(function(e,t){return e.concat([t,t+"-"+_w,t+"-"+Ml])},[]),VM="beforeRead",jM="read",qM="afterRead",UM="beforeMain",WM="main",YM="afterMain",KM="beforeWrite",XM="write",GM="afterWrite",of=[VM,jM,qM,UM,WM,YM,KM,XM,GM];function ZM(e){var t=new Map,n=new Set,i=[];e.forEach(function(r){t.set(r.name,r)});function o(r){n.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),i.push(r)}return e.forEach(function(r){n.has(r.name)||o(r)}),i}function JM(e){var t=ZM(e);return of.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function QM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return[].concat(n).reduce(function(o,r){return o.replace(/%s/,r)},e)}var ho='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',eF='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',ib=["name","enabled","phase","fn","effect","requires","options"];function tF(e){e.forEach(function(t){[].concat(Object.keys(t),ib).filter(function(n,i,o){return o.indexOf(n)===i}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Hi(ho,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Hi(ho,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":of.indexOf(t.phase)<0&&console.error(Hi(ho,t.name,'"phase"',"either "+of.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Hi(ho,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Hi(ho,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Hi(ho,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Hi(ho,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+ib.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(i){e.find(function(o){return o.name===i})==null&&console.error(Hi(eF,String(t.name),i,i))})})})}function nF(e,t){var n=new Set;return e.filter(function(i){var o=t(i);if(!n.has(o))return n.add(o),!0})}function Vc(e){return e.split("-")[0]}function iF(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}function Aw(e){return e.split("-")[1]}function oF(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rF(e){var t=e.reference,n=e.element,i=e.placement,o=i?Vc(i):null,r=i?Aw(i):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case vr:l={x:s,y:t.y-n.height};break;case zl:l={x:s,y:t.y+t.height};break;case Vs:l={x:t.x+t.width,y:a};break;case $o:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?oF(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case _w:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Ml:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}var ob="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",sF="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",rb={placement:"bottom",modifiers:[],strategy:"absolute"};function sb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function aF(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,r=o===void 0?rb:o;return function(a,l,c){c===void 0&&(c=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},rb,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],f=!1,p={state:d,setOptions:function(x){var v=typeof x=="function"?x(d.options):x;m(),d.options=Object.assign({},r,d.options,v),d.scrollParents={reference:Sh(a)?ll(a):a.contextElement?ll(a.contextElement):[],popper:ll(l)};var k=JM(iF([].concat(i,d.options.modifiers)));d.orderedModifiers=k.filter(function(w){return w.enabled});{var C=nF([].concat(k,d.options.modifiers),function(w){var _=w.name;return _});if(tF(C),Vc(d.options.placement)===Tw){var y=d.orderedModifiers.find(function(w){var _=w.name;return _==="flip"});y||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var E=Ai(l),$=E.marginTop,S=E.marginRight,T=E.marginBottom,A=E.marginLeft;[$,S,T,A].some(function(w){return parseFloat(w)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return b(),p.update()},forceUpdate:function(){if(!f){var x=d.elements,v=x.reference,k=x.popper;if(!sb(v,k)){console.error(ob);return}d.rects={reference:LM(v,$w(k),d.options.strategy==="fixed"),popper:zM(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(w){return d.modifiersData[w.name]=Object.assign({},w.data)});for(var C=0,y=0;y<d.orderedModifiers.length;y++){if(C+=1,C>100){console.error(sF);break}if(d.reset===!0){d.reset=!1,y=-1;continue}var E=d.orderedModifiers[y],$=E.fn,S=E.options,T=S===void 0?{}:S,A=E.name;typeof $=="function"&&(d=$({state:d,options:T,name:A,instance:p})||d)}}},update:QM(function(){return new Promise(function(g){p.forceUpdate(),g(d)})}),destroy:function(){m(),f=!0}};if(!sb(a,l))return console.error(ob),p;p.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function b(){d.orderedModifiers.forEach(function(g){var x=g.name,v=g.options,k=v===void 0?{}:v,C=g.effect;if(typeof C=="function"){var y=C({state:d,name:x,instance:p,options:k}),E=function(){};u.push(y||E)}})}function m(){u.forEach(function(g){return g()}),u=[]}return p}}var Va={passive:!0};function lF(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=o===void 0?!0:o,s=i.resize,a=s===void 0?!0:s,l=Un(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",n.update,Va)}),a&&l.addEventListener("resize",n.update,Va),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Va)}),a&&l.removeEventListener("resize",n.update,Va)}}var cF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lF,data:{}};function dF(e){var t=e.state,n=e.name;t.modifiersData[n]=rF({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var uF={name:"popperOffsets",enabled:!0,phase:"read",fn:dF,data:{}},fF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hF(e){var t=e.x,n=e.y,i=window,o=i.devicePixelRatio||1;return{x:Ar(t*o)/o||0,y:Ar(n*o)/o||0}}function ab(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,f=s.x,p=f===void 0?0:f,b=s.y,m=b===void 0?0:b,g=typeof d=="function"?d({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var x=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),k=$o,C=vr,y=window;if(c){var E=$w(n),$="clientHeight",S="clientWidth";if(E===Un(n)&&(E=Nc(n),Ai(E).position!=="static"&&a==="absolute"&&($="scrollHeight",S="scrollWidth")),E=E,o===vr||(o===$o||o===Vs)&&r===Ml){C=zl;var T=u&&E===y&&y.visualViewport?y.visualViewport.height:E[$];m-=T-i.height,m*=l?1:-1}if(o===$o||(o===vr||o===zl)&&r===Ml){k=Vs;var A=u&&E===y&&y.visualViewport?y.visualViewport.width:E[S];p-=A-i.width,p*=l?1:-1}}var w=Object.assign({position:a},c&&fF),_=d===!0?hF({x:p,y:m}):{x:p,y:m};if(p=_.x,m=_.y,l){var D;return Object.assign({},w,(D={},D[C]=v?"0":"",D[k]=x?"0":"",D.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",D))}return Object.assign({},w,(t={},t[C]=v?m+"px":"",t[k]=x?p+"px":"",t.transform="",t))}function pF(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,r=n.adaptive,s=r===void 0?!0:r,a=n.roundOffsets,l=a===void 0?!0:a;{var c=Ai(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(u){return c.indexOf(u)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
196
|
+
*/let Yy;const _c=e=>Yy=e,Ky=Symbol();function Lu(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var gs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(gs||(gs={}));function zD(){const e=xb(!0),t=e.run(()=>V({}));let n=[],i=[];const o=hf({install(r){_c(o),o._a=r,r.provide(Ky,o),r.config.globalProperties.$pinia=o,i.forEach(s=>n.push(s)),i=[]},use(r){return this._a?n.push(r):i.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Xy=()=>{};function sg(e,t,n,i=Xy){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),i())};return!n&&wb()&&C1(o),o}function Mo(e,...t){e.slice().forEach(n=>{n(...t)})}const MD=e=>e(),ag=Symbol(),Td=Symbol();function zu(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,i)=>e.set(i,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const i=t[n],o=e[n];Lu(o)&&Lu(i)&&e.hasOwnProperty(n)&&!ut(i)&&!Xi(i)?e[n]=zu(o,i):e[n]=i}return e}const FD=Symbol();function HD(e){return!Lu(e)||!Object.prototype.hasOwnProperty.call(e,FD)}const{assign:Vi}=Object;function ND(e){return!!(ut(e)&&e.effect)}function VD(e,t,n,i){const{state:o,actions:r,getters:s}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=o?o():{});const d=W1(n.state.value[e]);return Vi(d,r,Object.keys(s||{}).reduce((u,f)=>(u[f]=hf(N(()=>{_c(n);const p=n._s.get(e);return s[f].call(p,p)})),u),{}))}return l=Gy(e,c,t,n,i,!0),l}function Gy(e,t,n={},i,o,r){let s;const a=Vi({actions:{}},n),l={deep:!0};let c,d,u=[],f=[],p;const b=i.state.value[e];!r&&!b&&(i.state.value[e]={}),V({});let m;function g(S){let T;c=d=!1,typeof S=="function"?(S(i.state.value[e]),T={type:gs.patchFunction,storeId:e,events:p}):(zu(i.state.value[e],S),T={type:gs.patchObject,payload:S,storeId:e,events:p});const A=m=Symbol();Pe().then(()=>{m===A&&(c=!0)}),d=!0,Mo(u,T,i.state.value[e])}const x=r?function(){const{state:T}=n,A=T?T():{};this.$patch(w=>{Vi(w,A)})}:Xy;function v(){s.stop(),u=[],f=[],i._s.delete(e)}const k=(S,T="")=>{if(ag in S)return S[Td]=T,S;const A=function(){_c(i);const w=Array.from(arguments),_=[],D=[];function F(M){_.push(M)}function H(M){D.push(M)}Mo(f,{args:w,name:A[Td],store:y,after:F,onError:H});let P;try{P=S.apply(this&&this.$id===e?this:y,w)}catch(M){throw Mo(D,M),M}return P instanceof Promise?P.then(M=>(Mo(_,M),M)).catch(M=>(Mo(D,M),Promise.reject(M))):(Mo(_,P),P)};return A[ag]=!0,A[Td]=T,A},C={_p:i,$id:e,$onAction:sg.bind(null,f),$patch:g,$reset:x,$subscribe(S,T={}){const A=sg(u,S,T.detached,()=>w()),w=s.run(()=>le(()=>i.state.value[e],_=>{(T.flush==="sync"?d:c)&&S({storeId:e,type:gs.direct,events:p},_)},Vi({},l,T)));return A},$dispose:v},y=nt(C);i._s.set(e,y);const $=(i._a&&i._a.runWithContext||MD)(()=>i._e.run(()=>(s=xb()).run(()=>t({action:k}))));for(const S in $){const T=$[S];if(ut(T)&&!ND(T)||Xi(T))r||(b&&HD(T)&&(ut(T)?T.value=b[S]:zu(T,b[S])),i.state.value[e][S]=T);else if(typeof T=="function"){const A=k(T,S);$[S]=A,a.actions[S]=T}}return Vi(y,$),Vi(Ue(y),$),Object.defineProperty(y,"$state",{get:()=>i.state.value[e],set:S=>{g(T=>{Vi(T,S)})}}),i._p.forEach(S=>{Vi(y,s.run(()=>S({store:y,app:i._a,pinia:i,options:a})))}),b&&r&&n.hydrate&&n.hydrate(y.$state,b),c=!0,d=!0,y}/*! #__NO_SIDE_EFFECTS__ */function jD(e,t,n){let i;const o=typeof t=="function";i=o?n:t;function r(s,a){const l=zk();return s=s||(l?Qe(Ky,null):null),s&&_c(s),s=Yy,s._s.has(e)||(o?Gy(e,t,i,s):VD(e,i,s)),s._s.get(e)}return r.$id=e,r}const oi=Object.create(null);oi.open="0";oi.close="1";oi.ping="2";oi.pong="3";oi.message="4";oi.upgrade="5";oi.noop="6";const tl=Object.create(null);Object.keys(oi).forEach(e=>{tl[oi[e]]=e});const Mu={type:"error",data:"parser error"},Zy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Jy=typeof ArrayBuffer=="function",Qy=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Jf=({type:e,data:t},n,i)=>Zy&&t instanceof Blob?n?i(t):lg(t,i):Jy&&(t instanceof ArrayBuffer||Qy(t))?n?i(t):lg(new Blob([t]),i):i(oi[e]+(t||"")),lg=(e,t)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];t("b"+(i||""))},n.readAsDataURL(e)};function cg(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let _d;function qD(e,t){if(Zy&&e.data instanceof Blob)return e.data.arrayBuffer().then(cg).then(t);if(Jy&&(e.data instanceof ArrayBuffer||Qy(e.data)))return t(cg(e.data));Jf(e,!1,n=>{_d||(_d=new TextEncoder),t(_d.encode(n))})}const dg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",is=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<dg.length;e++)is[dg.charCodeAt(e)]=e;const UD=e=>{let t=e.length*.75,n=e.length,i,o=0,r,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),d=new Uint8Array(c);for(i=0;i<n;i+=4)r=is[e.charCodeAt(i)],s=is[e.charCodeAt(i+1)],a=is[e.charCodeAt(i+2)],l=is[e.charCodeAt(i+3)],d[o++]=r<<2|s>>4,d[o++]=(s&15)<<4|a>>2,d[o++]=(a&3)<<6|l&63;return c},WD=typeof ArrayBuffer=="function",Qf=(e,t)=>{if(typeof e!="string")return{type:"message",data:ex(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:YD(e.substring(1),t)}:tl[n]?e.length>1?{type:tl[n],data:e.substring(1)}:{type:tl[n]}:Mu},YD=(e,t)=>{if(WD){const n=UD(e);return ex(n,t)}else return{base64:!0,data:e}},ex=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},tx="",KD=(e,t)=>{const n=e.length,i=new Array(n);let o=0;e.forEach((r,s)=>{Jf(r,!1,a=>{i[s]=a,++o===n&&t(i.join(tx))})})},XD=(e,t)=>{const n=e.split(tx),i=[];for(let o=0;o<n.length;o++){const r=Qf(n[o],t);if(i.push(r),r.type==="error")break}return i};function GD(){return new TransformStream({transform(e,t){qD(e,n=>{const i=n.length;let o;if(i<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,i);else if(i<65536){o=new Uint8Array(3);const r=new DataView(o.buffer);r.setUint8(0,126),r.setUint16(1,i)}else{o=new Uint8Array(9);const r=new DataView(o.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(i))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Ad;function $a(e){return e.reduce((t,n)=>t+n.length,0)}function Ta(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let i=0;for(let o=0;o<t;o++)n[o]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),n}function ZD(e,t){Ad||(Ad=new TextDecoder);const n=[];let i=0,o=-1,r=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(i===0){if($a(n)<1)break;const l=Ta(n,1);r=(l[0]&128)===128,o=l[0]&127,o<126?i=3:o===126?i=1:i=2}else if(i===1){if($a(n)<2)break;const l=Ta(n,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),i=3}else if(i===2){if($a(n)<8)break;const l=Ta(n,8),c=new DataView(l.buffer,l.byteOffset,l.length),d=c.getUint32(0);if(d>Math.pow(2,21)-1){a.enqueue(Mu);break}o=d*Math.pow(2,32)+c.getUint32(4),i=3}else{if($a(n)<o)break;const l=Ta(n,o);a.enqueue(Qf(r?l:Ad.decode(l),t)),i=0}if(o===0||o>e){a.enqueue(Mu);break}}}})}const nx=4;function bt(e){if(e)return JD(e)}function JD(e){for(var t in bt.prototype)e[t]=bt.prototype[t];return e}bt.prototype.on=bt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};bt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};bt.prototype.off=bt.prototype.removeListener=bt.prototype.removeAllListeners=bt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,o=0;o<n.length;o++)if(i=n[o],i===t||i.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};bt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,o=n.length;i<o;++i)n[i].apply(this,t)}return this};bt.prototype.emitReserved=bt.prototype.emit;bt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};bt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ac=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),yn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),QD="arraybuffer";function ix(e,...t){return t.reduce((n,i)=>(e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}const eB=yn.setTimeout,tB=yn.clearTimeout;function Oc(e,t){t.useNativeTimers?(e.setTimeoutFn=eB.bind(yn),e.clearTimeoutFn=tB.bind(yn)):(e.setTimeoutFn=yn.setTimeout.bind(yn),e.clearTimeoutFn=yn.clearTimeout.bind(yn))}const nB=1.33;function iB(e){return typeof e=="string"?oB(e):Math.ceil((e.byteLength||e.size)*nB)}function oB(e){let t=0,n=0;for(let i=0,o=e.length;i<o;i++)t=e.charCodeAt(i),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(i++,n+=4);return n}function ox(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function rB(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function sB(e){let t={},n=e.split("&");for(let i=0,o=n.length;i<o;i++){let r=n[i].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}class aB extends Error{constructor(t,n,i){super(t),this.description=n,this.context=i,this.type="TransportError"}}class eh extends bt{constructor(t){super(),this.writable=!1,Oc(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,i){return super.emitReserved("error",new aB(t,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Qf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=rB(t);return n.length?"?"+n:""}}class lB extends eh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};XD(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,KD(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=ox()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let rx=!1;try{rx=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const cB=rx;function dB(){}class uB extends lB{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,n){const i=this.request({method:"POST",data:t});i.on("success",n),i.on("error",(o,r)=>{this.onError("xhr post error",o,r)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=t}}let mr=class nl extends bt{constructor(t,n,i){super(),this.createRequest=t,Oc(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;const n=ix(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&i.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var o;i.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=nl.requestsCount++,nl.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=dB,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete nl.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};mr.requestsCount=0;mr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ug);else if(typeof addEventListener=="function"){const e="onpagehide"in yn?"pagehide":"unload";addEventListener(e,ug,!1)}}function ug(){for(let e in mr.requests)mr.requests.hasOwnProperty(e)&&mr.requests[e].abort()}const fB=(function(){const e=sx({xdomain:!1});return e&&e.responseType!==null})();class hB extends uB{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=fB&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new mr(sx,this.uri(),t)}}function sx(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||cB))return new XMLHttpRequest}catch{}if(!t)try{return new yn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ax=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class pB extends eh{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,i=ax?{}:ix(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,i)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],o=n===t.length-1;Jf(i,this.supportsBinary,r=>{try{this.doWrite(i,r)}catch{}o&&Ac(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=ox()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Od=yn.WebSocket||yn.MozWebSocket;class mB extends pB{createSocket(t,n,i){return ax?new Od(t,n,i):n?new Od(t,n):new Od(t)}doWrite(t,n){this.ws.send(n)}}class gB extends eh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=ZD(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=t.readable.pipeThrough(n).getReader(),o=GD();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const r=()=>{i.read().then(({done:a,value:l})=>{a||(this.onPacket(l),r())}).catch(a=>{})};r();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],o=n===t.length-1;this._writer.write(i).then(()=>{o&&Ac(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const bB={websocket:mB,webtransport:gB,polling:hB},vB=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,yB=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Fu(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),i=e.indexOf("]");n!=-1&&i!=-1&&(e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length));let o=vB.exec(e||""),r={},s=14;for(;s--;)r[yB[s]]=o[s]||"";return n!=-1&&i!=-1&&(r.source=t,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=xB(r,r.path),r.queryKey=wB(r,r.query),r}function xB(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&i.splice(0,1),t.slice(-1)=="/"&&i.splice(i.length-1,1),i}function wB(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,o,r){o&&(n[o]=r)}),n}const Hu=typeof addEventListener=="function"&&typeof removeEventListener=="function",il=[];Hu&&addEventListener("offline",()=>{il.forEach(e=>e())},!1);class Gi extends bt{constructor(t,n){if(super(),this.binaryType=QD,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const i=Fu(t);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=Fu(n.host).host);Oc(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(i=>{const o=i.prototype.name;this.transports.push(o),this._transportsByName[o]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=sB(this.opts.query)),Hu&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},il.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=nx,n.transport=t,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Gi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Gi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const o=this.writeBuffer[i].data;if(o&&(n+=iB(o)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Ac(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,i){return this._sendPacket("message",t,n,i),this}send(t,n,i){return this._sendPacket("message",t,n,i),this}_sendPacket(t,n,i,o){if(typeof n=="function"&&(o=n,n=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const r={type:t,data:n,options:i};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(Gi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Hu&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=il.indexOf(this._offlineEventListener);i!==-1&&il.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Gi.protocol=nx;class kB extends Gi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),i=!1;Gi.priorWebsocketSuccess=!1;const o=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!i)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Gi.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function r(){i||(i=!0,d(),n.close(),n=null)}const s=u=>{const f=new Error("probe error: "+u);f.transport=n.name,r(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function c(u){n&&u.name!==n.name&&r()}const d=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&n.push(t[i]);return n}}let SB=class extends kB{constructor(t,n={}){const i=typeof t=="object"?t:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(o=>bB[o]).filter(o=>!!o)),super(t,i)}};function CB(e,t="",n){let i=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),i=Fu(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const r=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port+t,i.href=i.protocol+"://"+r+(n&&n.port===i.port?"":":"+i.port),i}const EB=typeof ArrayBuffer=="function",$B=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,lx=Object.prototype.toString,TB=typeof Blob=="function"||typeof Blob<"u"&&lx.call(Blob)==="[object BlobConstructor]",_B=typeof File=="function"||typeof File<"u"&&lx.call(File)==="[object FileConstructor]";function th(e){return EB&&(e instanceof ArrayBuffer||$B(e))||TB&&e instanceof Blob||_B&&e instanceof File}function ol(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(ol(e[n]))return!0;return!1}if(th(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ol(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&ol(e[n]))return!0;return!1}function AB(e){const t=[],n=e.data,i=e;return i.data=Nu(n,t),i.attachments=t.length,{packet:i,buffers:t}}function Nu(e,t){if(!e)return e;if(th(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++)n[i]=Nu(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=Nu(e[i],t));return n}return e}function OB(e,t){return e.data=Vu(e.data,t),delete e.attachments,e}function Vu(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Vu(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Vu(e[n],t));return e}const RB=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],IB=5;var je;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(je||(je={}));class PB{constructor(t){this.replacer=t}encode(t){return(t.type===je.EVENT||t.type===je.ACK)&&ol(t)?this.encodeAsBinary({type:t.type===je.EVENT?je.BINARY_EVENT:je.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===je.BINARY_EVENT||t.type===je.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=AB(t),i=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(i),o}}function fg(e){return Object.prototype.toString.call(e)==="[object Object]"}class nh extends bt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const i=n.type===je.BINARY_EVENT;i||n.type===je.BINARY_ACK?(n.type=i?je.EVENT:je.ACK,this.reconstructor=new DB(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(th(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const i={type:Number(t.charAt(0))};if(je[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===je.BINARY_EVENT||i.type===je.BINARY_ACK){const r=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(r,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(s)}if(t.charAt(n+1)==="/"){const r=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););i.nsp=t.substring(r,n)}else i.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const r=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}i.id=Number(t.substring(r,n+1))}if(t.charAt(++n)){const r=this.tryParse(t.substr(n));if(nh.isPayloadValid(i.type,r))i.data=r;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case je.CONNECT:return fg(n);case je.DISCONNECT:return n===void 0;case je.CONNECT_ERROR:return typeof n=="string"||fg(n);case je.EVENT:case je.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&RB.indexOf(n[0])===-1);case je.ACK:case je.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class DB{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=OB(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const BB=Object.freeze(Object.defineProperty({__proto__:null,Decoder:nh,Encoder:PB,get PacketType(){return je},protocol:IB},Symbol.toStringTag,{value:"Module"}));function _n(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const LB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class cx extends bt{constructor(t,n,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[_n(t,"open",this.onopen.bind(this)),_n(t,"packet",this.onpacket.bind(this)),_n(t,"error",this.onerror.bind(this)),_n(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var i,o,r;if(LB.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:je.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,u=n.pop();this._registerAckCallback(d,u),s.id=d}const a=(o=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((r=this.io.engine)===null||r===void 0)&&r._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var i;const o=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},o),s=(...a)=>{this.io.clearTimeoutFn(r),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((i,o)=>{const r=(s,a)=>s?o(s):i(a);r.withError=!0,n.push(r),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...r)=>i!==this._queue[0]?void 0:(o!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...r)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:je.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(i=>String(i.id)===t)){const i=this.acks[t];delete this.acks[t],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case je.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case je.EVENT:case je.BINARY_EVENT:this.onevent(t);break;case je.ACK:case je.BINARY_ACK:this.onack(t);break;case je.DISCONNECT:this.ondisconnect();break;case je.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let i=!1;return function(...o){i||(i=!0,n.packet({type:je.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:je.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,t.data)}}}function zr(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}zr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};zr.prototype.reset=function(){this.attempts=0};zr.prototype.setMin=function(e){this.ms=e};zr.prototype.setMax=function(e){this.max=e};zr.prototype.setJitter=function(e){this.jitter=e};class ju extends bt{constructor(t,n){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Oc(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new zr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||BB;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new SB(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const o=_n(n,"open",function(){i.onopen(),t&&t()}),r=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=_n(n,"error",r);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),r(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(_n(t,"ping",this.onping.bind(this)),_n(t,"data",this.ondata.bind(this)),_n(t,"error",this.onerror.bind(this)),_n(t,"close",this.onclose.bind(this)),_n(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ac(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let i=this.nsps[t];return i?this._autoConnect&&!i.active&&i.connect():(i=new cx(this,t,n),this.nsps[t]=i),i}_destroy(t){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let i=0;i<n.length;i++)this.engine.write(n[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Yr={};function rl(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=CB(e,t.path||"/socket.io"),i=n.source,o=n.id,r=n.path,s=Yr[o]&&r in Yr[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new ju(i,t):(Yr[o]||(Yr[o]=new ju(i,t)),l=Yr[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(rl,{Manager:ju,Socket:cx,io:rl,connect:rl});function zB(e,t,n=(o,r)=>{console.log("socket handler",o,r)},i=()=>({"X-TOKEN":window.localStorage.getItem("X-TOKEN"),"X-UID":window.localStorage.getItem("X-UID"),"X-CODE":window.localStorage.getItem("X-CODE")})){return jD("socket",{state:()=>({chats:[],inService:!1,isUnread:!1,msgs:[],inGame:!1,ws:void 0,listeners:new Map}),getters:{},actions:{init(){if(this.ws)return;const o=i(),r=rl(window.xConfig.ws,{query:o,transports:["websocket"]});r.on("game",s=>{this.emit("game",s),this.inGame&&(s=JSON.parse(s),this.msgs.length>=200&&(this.msgs=this.msgs.slice(-50)),this.msgs.push(s.data))}),r.on("service",s=>{if(this.emit("service",s),!this.inService){this.isUnread=!0;return}s=JSON.parse(s),this.chats.length>=200&&(this.chats=this.chats.slice(-50)),this.chats.push(s.data)}),r.on("apply",s=>this.emit("apply",s)),r.on("forceDisconnect",s=>n("forceDisconnect",s)),r.on("authError",s=>n("authError",s)),this.ws=r},disconnect(){this.ws&&this.ws.disconnect(),this.chats=[],this.inService=!1,this.isUnread=!1,this.msgs=[],this.inGame=!1,this.ws=void 0},joinGame(o){this.inGame=!0,this.ws.emit("joinGame",o),e({gameId:o}).then(r=>{this.msgs=r.reverse()})},leaveGame(o){this.inGame=!1,this.ws.emit("leaveGame",o),this.msgs=[]},joinService(){this.inService=!0,this.isUnread=!1,t().then(o=>{this.chats=o.reverse()})},leaveService(){this.inService=!1,this.chats=[]},emit(o,r){const s=this.listeners.get(o);s&&s.forEach(a=>a(r))},on(o,r){return this.listeners.has(o)||this.listeners.set(o,new Set),this.listeners.get(o).add(r),()=>{this.listeners.get(o).delete(r)}}}})}const MB=e=>Yf(e,void 0,{backdropDismiss:!1,buttons:[{text:"返回登录",role:"cancel",handler:()=>{localStorage.clear(),Mr.push("/login")}}]}),FB=(e,t)=>{if(e==="forceDisconnect"){MB(t);return}if(e==="authError"){Mr.push("/login");return}},qu=zB(PI,DI,FB);function HB(e){return Ut({url:"/api/v1/app/game",method:"get",params:e})}function gj(){return Ut({url:"/api/v1/app/game/list",method:"get"})}function bj(){return Ut({url:"/api/v1/app/game/opens",method:"get"})}function vj(){return Ut({url:"/api/v1/app/game/onlines",method:"get"})}function NB(e){return Ut({url:"/api/v1/app/member",method:"get",params:e})}function yj(){return Ut({url:"/api/v1/app/member/amount",method:"get"})}function xj(e){return Ut({url:"/api/v1/app/member/updatePass",method:"post",data:e})}function wj(e){return Ut({url:"/api/v1/app/member/login",method:"post",data:e})}function kj(e){return Ut({url:"/api/v1/app/member/register",method:"post",data:e})}function Sj(e){return Ut({url:"/api/v1/app/member/updatePayInfo",method:"post",data:e})}function Cj(e){return Ut({url:"/api/v1/app/member/auto-bet/info",method:"get",params:{gameId:e}})}function Ej(e){return Ut({url:"/api/v1/app/member/auto-bet/update",method:"post",data:e})}async function hg(e,t,n){if((await NB()).isAgent)return n();await TI("您不是代理,暂无邀请好友权限,请联系客服申请代理"),n(t)}const VB=[{path:"/login",component:()=>Re(()=>import("./index-DYwtbQAS.js"),__vite__mapDeps([0,1,2,3,4,5]))},{path:"/search",component:()=>Re(()=>import("./search-Bm2OsnWZ.js"),__vite__mapDeps([6,1,2,3,4,7]))},{path:"/",component:()=>Re(()=>import("./TabsPage-ByCw-Plx.js"),[]),children:[{path:"",redirect:"/home"},{path:"/home",component:()=>Re(()=>import("./index-Cv-G3h2X.js"),__vite__mapDeps([8,9,2,10,11,12,13,4,14,15]))},{path:"/wallet",component:()=>Re(()=>import("./index-Do7j_-cS.js"),__vite__mapDeps([16,13,4,2,17]))},{path:"/service",component:()=>Re(()=>import("./index-3wrKkicp.js"),__vite__mapDeps([18,4,2,19]))},{path:"/mine",component:()=>Re(()=>import("./index-5jmhc_WJ.js"),__vite__mapDeps([20,9,2,10,21]))}]},{path:"/game/:gameId",component:()=>Re(()=>import("./index-D1_ewaYL.js"),__vite__mapDeps([22,13,4,2,23,24,25,11,12,26,27,28,29,30,31])),meta:{needKey:!0},beforeEnter:async(e,t,n)=>{const i=e.params.gameId;if(!i)return n("/home");const o=dx();try{const r=await HB({gameId:i});if(r===void 0)return Ga("游戏不存在"),n("/home");if(!r.isOpen)return Ga("游戏未开启"),n("/home")}catch{return Ga("进入游戏出错,请联系管理员"),n("/home")}finally{ux(o)}n()}},{path:"/rule",component:()=>Re(()=>import("./rule-C0Gxi65h.js"),__vite__mapDeps([32,2,33])),beforeEnter:(e,t,n)=>e.query.gameId?n():n(t)},{path:"/trend",component:()=>Re(()=>import("./index-C3PnqudL.js"),__vite__mapDeps([34,30,2,4,24,35,36])),beforeEnter:(e,t,n)=>!e.query.lotCode&&!e.query.gameType?n(t):n()},{path:"/auto-bet",component:()=>Re(()=>import("./index-CKBYPuNF.js"),__vite__mapDeps([37,26,2,27,28,38])),beforeEnter:(e,t,n)=>e.query.gameId?n():n(t)},{path:"/notice",component:()=>Re(()=>import("./index-bznbZtOH.js"),__vite__mapDeps([39,2,35,14,40]))},{path:"/wallet/amount",component:()=>Re(()=>import("./amount-DmZ2zkDA.js"),__vite__mapDeps([41,13,4,2,42]))},{path:"/wallet/pay-info/alipay",component:()=>Re(()=>import("./alipay-Ba2hVamm.js"),__vite__mapDeps([43,4,44,2,45,46]))},{path:"/wallet/pay-info/wechat-pay",component:()=>Re(()=>import("./wechat-pay-BaIOMe2A.js"),__vite__mapDeps([47,4,44,2,45,46]))},{path:"/wallet/pay-info/bank",component:()=>Re(()=>import("./bank-DTWXJUCo.js"),__vite__mapDeps([48,2,45,46]))},{path:"/wallet/pay-info/usdt",component:()=>Re(()=>import("./usdt-CWMFexEE.js"),__vite__mapDeps([49,2,45,46]))},{path:"/wallet/recharge",component:()=>Re(()=>import("./recharge-Cj1AnYB6.js"),__vite__mapDeps([50,51,4,2,45,46,52,13,27,53]))},{path:"/wallet/withdraw",component:()=>Re(()=>import("./withdraw-DlZ4PSq1.js"),__vite__mapDeps([54,2,51,4,45,46,52,13,27,53,55]))},{path:"/chat",component:()=>Re(()=>import("./chat-Cr-IZzh7.js"),__vite__mapDeps([56,4,2,23,57]))},{path:"/record/bet",component:()=>Re(()=>import("./BetRecord-CwxruTm5.js"),__vite__mapDeps([58,2,4,45,25,24,59,35,29,60]))},{path:"/record/money",component:()=>Re(()=>import("./MoneyRecord-D8MmP0h_.js"),__vite__mapDeps([61,2,4,35,62]))},{path:"/record/finance",component:()=>Re(()=>import("./FinanceRecord-BUZT7D9W.js"),__vite__mapDeps([63,2,4,35,53,64]))},{path:"/mine/invite",component:()=>Re(()=>import("./invite-Iwm3Plm-.js"),__vite__mapDeps([65,2,66]))},{path:"/mine/agent",component:()=>Re(()=>import("./agent-cQj33ON-.js"),__vite__mapDeps([67,68,13,4,2,59,69,45,52,46])),beforeEnter:hg},{path:"/mine/agent/members",component:()=>Re(()=>import("./agent-members-tRpCVBp9.js"),__vite__mapDeps([70,59,2,68,13,4,45,52,69,71,35,72])),beforeEnter:hg},{path:"/mine/statistics",component:()=>Re(()=>import("./statistics-Da_EW5Vx.js"),__vite__mapDeps([73,29,2,45,52,46,71,13,4,69,74]))},{path:"/mine/setting",component:()=>Re(()=>import("./setting-NZrw_xU6.js"),__vite__mapDeps([75,2,76]))},{path:"/mine/password",component:()=>Re(()=>import("./password-D03Xlmo2.js"),__vite__mapDeps([77,4,2,78]))},{path:"/:pathMatch(.*)",redirect:"/",hidden:!0}],Mr=RI({history:II(),routes:VB});Mr.beforeEach((e,t)=>window.localStorage.getItem("isLogin")!=="true"?(qu().disconnect(),e.path==="/login"?!0:{path:"/login"}):(qu().init(),e.path==="/login"?{path:"/home"}:!0));const ih=e=>Ga(e),jB=e=>ih(e),qB=e=>ih(e),pg=e=>Mr.push(e),dx=()=>$I(void 0),ux=e=>{e!==void 0&&typeof e.then=="function"&&e.then(t=>{t.dismiss()})},Ut=LD(window.xConfig,{WARN:ih,ERROR:jB,NOTIFY:qB,REDIRECT:pg,createLoading:dx,closeLoading:ux,errorHandler401(){localStorage.setItem("isLogin","false"),qu().disconnect(),pg("/login")}});function UB(e){return Ut({url:"/api/v1/app/room",method:"get",params:e})}const WB={setup(){},created(){},mounted(){UB().then(e=>{window.document.title=e.roomName,jm(e.expireTime).isBefore(jm())&&this.dialog()})},methods:{dialog(){Yf("服务暂停","当前服务已暂停,请联系客服",{backdropDismiss:!1,keyboardClose:!1,buttons:[{text:"好的",role:"test",disabled:!0,handler(){throw new Error("服务暂停,不允许关闭")}}]})}}},YB=Object.assign(WB,{__name:"App",setup(e){return(t,n)=>(ur(),fr(tn(hy),null,{default:Zb(()=>[t.$route.meta.needKey?(ur(),fr(tn(zm),{key:t.$route.fullPath})):(ur(),fr(tn(zm),{key:1}))]),_:1}))}});function Uu(){}const Ee=Object.assign,kn=typeof window<"u",Hn=e=>e!==null&&typeof e=="object",qe=e=>e!=null,Tr=e=>typeof e=="function",oh=e=>Hn(e)&&Tr(e.then)&&Tr(e.catch),Fs=e=>Object.prototype.toString.call(e)==="[object Date]"&&!Number.isNaN(e.getTime());function fx(e){return e=e.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(e)||/^0[0-9-]{10,13}$/.test(e)}const hx=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),KB=()=>kn?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function mg(e,t){const n=t.split(".");let i=e;return n.forEach(o=>{var r;i=Hn(i)&&(r=i[o])!=null?r:""}),i}function We(e,t,n){return t.reduce((i,o)=>((!n||e[o]!==void 0)&&(i[o]=e[o]),i),{})}const ni=(e,t)=>JSON.stringify(e)===JSON.stringify(t),Il=e=>Array.isArray(e)?e:[e],XB=e=>e.reduce((t,n)=>t.concat(n),[]),rt=null,oe=[Number,String],Z={type:Boolean,default:!0},_t=e=>({type:e,required:!0}),it=()=>({type:Array,default:()=>[]}),kt=e=>({type:Number,default:e}),be=e=>({type:oe,default:e}),se=e=>({type:String,default:e});function Ti(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function Pl(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function Eo(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Hs(e){Pl(window,e),Pl(document.body,e)}function gg(e,t){if(e===window)return 0;const n=t?Ti(t):Eo();return Ye(e).top+n}const GB=KB();function px(){GB&&Hs(Eo())}const rh=e=>e.stopPropagation();function et(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&rh(e)}function Io(e){const t=tn(e);if(!t)return!1;const n=window.getComputedStyle(t),i=n.display==="none",o=t.offsetParent===null&&n.position!=="fixed";return i||o}const{width:Bn,height:wn}=tP();function ZB(e){const t=window.getComputedStyle(e);return t.transform!=="none"||t.perspective!=="none"||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))}function JB(e){let t=e.parentElement;for(;t;){if(t&&t.tagName!=="HTML"&&t.tagName!=="BODY"&&ZB(t))return t;t=t.parentElement}return null}function Ae(e){if(qe(e))return hx(e)?`${e}px`:String(e)}function Ii(e){if(qe(e)){if(Array.isArray(e))return{width:Ae(e[0]),height:Ae(e[1])};const t=Ae(e);return{width:t,height:t}}}function Pi(e){const t={};return e!==void 0&&(t.zIndex=+e),t}let Rd;function QB(){if(!Rd){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;Rd=parseFloat(t)}return Rd}function eL(e){return e=e.replace(/rem/g,""),+e*QB()}function tL(e){return e=e.replace(/vw/g,""),+e*Bn.value/100}function nL(e){return e=e.replace(/vh/g,""),+e*wn.value/100}function sh(e){if(typeof e=="number")return e;if(kn){if(e.includes("rem"))return eL(e);if(e.includes("vw"))return tL(e);if(e.includes("vh"))return nL(e)}return parseFloat(e)}const iL=/-(\w)/g,mx=e=>e.replace(iL,(t,n)=>n.toUpperCase()),oL=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function Rn(e,t=2){let n=e+"";for(;n.length<t;)n="0"+n;return n}const Et=(e,t,n)=>Math.min(Math.max(e,t),n);function bg(e,t,n){const i=e.indexOf(t);return i===-1?e:t==="-"&&i!==0?e.slice(0,i):e.slice(0,i+1)+e.slice(i).replace(n,"")}function Wu(e,t=!0,n=!0){t?e=bg(e,".",/\./g):e=e.split(".")[0],n?e=bg(e,"-",/-/g):e=e.replace(/-/,"");const i=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(i,"")}function gx(e,t){return Math.round((e+t)*1e10)/1e10}const{hasOwnProperty:rL}=Object.prototype;function sL(e,t,n){const i=t[n];qe(i)&&(!rL.call(e,n)||!Hn(i)?e[n]=i:e[n]=bx(Object(e[n]),i))}function bx(e,t){return Object.keys(t).forEach(n=>{sL(e,t,n)}),e}var aL={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const vg=V("zh-CN"),yg=nt({"zh-CN":aL}),vx={messages(){return yg[vg.value]},use(e,t){vg.value=e,this.add({[e]:t})},add(e={}){bx(yg,e)}};var lL=vx;function cL(e){const t=mx(e)+".";return(n,...i)=>{const o=lL.messages(),r=mg(o,t+n)||mg(o,n);return Tr(r)?r(...i):r}}function Yu(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,i)=>n+Yu(e,i),""):Object.keys(t).reduce((n,i)=>n+(t[i]?Yu(e,i):""),""):""}function dL(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Yu(t,n)}`)}function te(e){const t=`van-${e}`;return[t,dL(t),cL(t)]}const Di="van-hairline",yx=`${Di}--top`,xx=`${Di}--left`,uL=`${Di}--right`,ah=`${Di}--bottom`,bs=`${Di}--surround`,Rc=`${Di}--top-bottom`,fL=`${Di}-unset--top-bottom`,Vt="van-haptics-feedback",wx=Symbol("van-form"),kx=500,xg=5;function oo(e,{args:t=[],done:n,canceled:i,error:o}){if(e){const r=e.apply(null,t);oh(r)?r.then(s=>{s?n():i&&i()}).catch(o||Uu):r?n():i&&i()}else n()}function re(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(mx(`-${n}`),e))},e}function Dl(e,t){return e.reduce((n,i)=>Math.abs(n-t)<Math.abs(i-t)?n:i)}const Sx=Symbol();function Ic(e){const t=Qe(Sx,null);t&&le(t,n=>{n&&e()})}const Cx=(e,t)=>{const n=V(),i=()=>{n.value=Ye(e).height};return at(()=>{if(Pe(i),t)for(let o=1;o<=3;o++)setTimeout(i,100*o)}),Ic(()=>Pe(i)),le([Bn,wn],i),n};function Pc(e,t){const n=Cx(e,!0);return i=>h("div",{class:t("placeholder"),style:{height:n.value?`${n.value}px`:void 0}},[i()])}const[Ex,wg]=te("action-bar"),lh=Symbol(Ex),hL={placeholder:Boolean,safeAreaInsetBottom:Z};var pL=G({name:Ex,props:hL,setup(e,{slots:t}){const n=V(),i=Pc(n,wg),{linkChildren:o}=qt(lh);o();const r=()=>{var s;return h("div",{ref:n,class:[wg(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[(s=t.default)==null?void 0:s.call(t)])};return()=>e.placeholder?i(r):r()}});const $x=re(pL);function Fe(e){const t=sn();t&&Ee(t.proxy,e)}const ro={to:[String,Object],url:String,replace:Boolean};function Tx({to:e,url:t,replace:n,$router:i}){e&&i?i[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function Do(){const e=sn().proxy;return()=>Tx(e)}const[mL,kg]=te("badge"),gL={dot:Boolean,max:oe,tag:se("div"),color:String,offset:Array,content:oe,showZero:Z,position:se("top-right")};var bL=G({name:mL,props:gL,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:a,showZero:l}=e;return qe(a)&&a!==""&&(l||a!==0&&a!=="0")},i=()=>{const{dot:a,max:l,content:c}=e;if(!a&&n())return t.content?t.content():qe(l)&&hx(c)&&+c>+l?`${l}+`:c},o=a=>a.startsWith("-")?a.replace("-",""):`-${a}`,r=N(()=>{const a={background:e.color};if(e.offset){const[l,c]=e.offset,{position:d}=e,[u,f]=d.split("-");t.default?(typeof c=="number"?a[u]=Ae(u==="top"?c:-c):a[u]=u==="top"?Ae(c):o(c),typeof l=="number"?a[f]=Ae(f==="left"?l:-l):a[f]=f==="left"?Ae(l):o(l)):(a.marginTop=Ae(c),a.marginLeft=Ae(l))}return a}),s=()=>{if(n()||e.dot)return h("div",{class:kg([e.position,{dot:e.dot,fixed:!!t.default}]),style:r.value},[i()])};return()=>{if(t.default){const{tag:a}=e;return h(a,{class:kg("wrapper")},{default:()=>[t.default(),s()]})}return s()}}});const Bo=re(bL);let _x=2e3;const vL=()=>++_x,yL=e=>{_x=e},[Ax,xL]=te("config-provider"),Ox=Symbol(Ax),wL={tag:se("div"),theme:se("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:se("local"),iconPrefix:String};function kL(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function SL(e){const t={};return Object.keys(e).forEach(n=>{const i=kL(oL(n));t[`--van-${i}`]=e[n]}),t}function _a(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}var CL=G({name:Ax,props:wL,setup(e,{slots:t}){const n=N(()=>SL(Ee({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(kn){const i=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},o=(r=e.theme)=>{document.documentElement.classList.remove(`van-theme-${r}`)};le(()=>e.theme,(r,s)=>{s&&o(s),i()},{immediate:!0}),ri(i),si(o),ai(o),le(n,(r,s)=>{e.themeVarsScope==="global"&&_a(r,s)}),le(()=>e.themeVarsScope,(r,s)=>{s==="global"&&_a({},n.value),r==="global"&&_a(n.value,{})}),e.themeVarsScope==="global"&&_a(n.value,{})}return Pn(Ox,e),Or(()=>{e.zIndex!==void 0&&yL(e.zIndex)}),()=>h(e.tag,{class:xL(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var i;return[(i=t.default)==null?void 0:i.call(t)]}})}});const[EL,Sg]=te("icon"),$L=e=>e==null?void 0:e.includes("/"),TL={dot:Boolean,tag:se("i"),name:String,size:oe,badge:oe,color:String,badgeProps:Object,classPrefix:String};var _L=G({name:EL,props:TL,setup(e,{slots:t}){const n=Qe(Ox,null),i=N(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Sg());return()=>{const{tag:o,dot:r,name:s,size:a,badge:l,color:c}=e,d=$L(s);return h(Bo,De({dot:r,tag:o,class:[i.value,d?"":`${i.value}-${s}`],style:{color:c,fontSize:Ae(a)},content:l},e.badgeProps),{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t),d&&h("img",{class:Sg("image"),src:s},null)]}})}}});const Oe=re(_L);var AL=Oe;const[OL,vs]=te("loading"),RL=Array(12).fill(null).map((e,t)=>h("i",{class:vs("line",String(t+1))},null)),IL=h("svg",{class:vs("circular"),viewBox:"25 25 50 50"},[h("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),PL={size:oe,type:se("circular"),color:String,vertical:Boolean,textSize:oe,textColor:String};var DL=G({name:OL,props:PL,setup(e,{slots:t}){const n=N(()=>Ee({color:e.color},Ii(e.size))),i=()=>{const r=e.type==="spinner"?RL:IL;return h("span",{class:vs("spinner",e.type),style:n.value},[t.icon?t.icon():r])},o=()=>{var r;if(t.default)return h("span",{class:vs("text"),style:{fontSize:Ae(e.textSize),color:(r=e.textColor)!=null?r:e.color}},[t.default()])};return()=>{const{type:r,vertical:s}=e;return h("div",{class:vs([r,{vertical:s}]),"aria-live":"polite","aria-busy":!0},[i(),o()])}}});const Vn=re(DL),[BL,Fo]=te("button"),LL=Ee({},ro,{tag:se("button"),text:String,icon:String,type:se("default"),size:se("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:se("button"),loadingSize:oe,loadingText:String,loadingType:String,iconPosition:se("left")});var zL=G({name:BL,props:LL,emits:["click"],setup(e,{emit:t,slots:n}){const i=Do(),o=()=>n.loading?n.loading():h(Vn,{size:e.loadingSize,type:e.loadingType,class:Fo("loading")},null),r=()=>{if(e.loading)return o();if(n.icon)return h("div",{class:Fo("icon")},[n.icon()]);if(e.icon)return h(Oe,{name:e.icon,class:Fo("icon"),classPrefix:e.iconPrefix},null)},s=()=>{let c;if(e.loading?c=e.loadingText:c=n.default?n.default():e.text,c)return h("span",{class:Fo("text")},[c])},a=()=>{const{color:c,plain:d}=e;if(c){const u={color:d?c:"white"};return d||(u.background=c),c.includes("gradient")?u.border=0:u.borderColor=c,u}},l=c=>{e.loading?et(c):e.disabled||(t("click",c),i())};return()=>{const{tag:c,type:d,size:u,block:f,round:p,plain:b,square:m,loading:g,disabled:x,hairline:v,nativeType:k,iconPosition:C}=e,y=[Fo([d,u,{plain:b,block:f,round:p,square:m,loading:g,disabled:x,hairline:v}]),{[bs]:v}];return h(c,{type:k,class:y,style:a(),disabled:x,onClick:l},{default:()=>[h("div",{class:Fo("content")},[C==="left"&&r(),s(),C==="right"&&r()])]})}}});const jt=re(zL),[ML,FL]=te("action-bar-button"),HL=Ee({},ro,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var NL=G({name:ML,props:HL,setup(e,{slots:t}){const n=Do(),{parent:i,index:o}=Lt(lh),r=N(()=>{if(i){const a=i.children[o.value-1];return!(a&&"isButton"in a)}}),s=N(()=>{if(i){const a=i.children[o.value+1];return!(a&&"isButton"in a)}});return Fe({isButton:!0}),()=>{const{type:a,icon:l,text:c,color:d,loading:u,disabled:f}=e;return h(jt,{class:FL([a,{last:s.value,first:r.value}]),size:"large",type:a,icon:l,color:d,loading:u,disabled:f,onClick:n},{default:()=>[t.default?t.default():c]})}}});const Ku=re(NL),[VL,Id]=te("action-bar-icon"),jL=Ee({},ro,{dot:Boolean,text:String,icon:String,color:String,badge:oe,iconClass:rt,badgeProps:Object,iconPrefix:String});var qL=G({name:VL,props:jL,setup(e,{slots:t}){const n=Do();Lt(lh);const i=()=>{const{dot:o,badge:r,icon:s,color:a,iconClass:l,badgeProps:c,iconPrefix:d}=e;return t.icon?h(Bo,De({dot:o,class:Id("icon"),content:r},c),{default:t.icon}):h(Oe,{tag:"div",dot:o,name:s,badge:r,color:a,class:[Id("icon"),l],badgeProps:c,classPrefix:d},null)};return()=>h("div",{role:"button",class:Id(),tabindex:0,onClick:n},[i(),t.default?t.default():e.text])}});const UL=re(qL),Fr={show:Boolean,zIndex:oe,overlay:Z,duration:oe,teleport:[String,Object],lockScroll:Z,lazyRender:Z,beforeClose:Function,overlayStyle:Object,overlayClass:rt,transitionAppear:Boolean,closeOnClickOverlay:Z},ch=Object.keys(Fr);function WL(e,t){return e>t?"horizontal":t>e?"vertical":""}function Sn(){const e=V(0),t=V(0),n=V(0),i=V(0),o=V(0),r=V(0),s=V(""),a=V(!0),l=()=>s.value==="vertical",c=()=>s.value==="horizontal",d=()=>{n.value=0,i.value=0,o.value=0,r.value=0,s.value="",a.value=!0};return{move:p=>{const b=p.touches[0];n.value=(b.clientX<0?0:b.clientX)-e.value,i.value=b.clientY-t.value,o.value=Math.abs(n.value),r.value=Math.abs(i.value);const m=10;(!s.value||o.value<m&&r.value<m)&&(s.value=WL(o.value,r.value)),a.value&&(o.value>xg||r.value>xg)&&(a.value=!1)},start:p=>{d(),e.value=p.touches[0].clientX,t.value=p.touches[0].clientY},reset:d,startX:e,startY:t,deltaX:n,deltaY:i,offsetX:o,offsetY:r,direction:s,isVertical:l,isHorizontal:c,isTap:a}}let Kr=0;const Cg="van-overflow-hidden";function Rx(e,t){const n=Sn(),i="01",o="10",r=d=>{n.move(d);const u=n.deltaY.value>0?o:i,f=Kf(d.target,e.value),{scrollHeight:p,offsetHeight:b,scrollTop:m}=f;let g="11";m===0?g=b>=p?"00":"01":m+b>=p&&(g="10"),g!=="11"&&n.isVertical()&&!(parseInt(g,2)&parseInt(u,2))&&et(d,!0)},s=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,{passive:!1}),Kr||document.body.classList.add(Cg),Kr++},a=()=>{Kr&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Kr--,Kr||document.body.classList.remove(Cg))},l=()=>t()&&s(),c=()=>t()&&a();Pr(l),si(c),ai(c),le(t,d=>{d?s():a()})}function dh(e){const t=V(!1);return le(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Bl=()=>{var e;const{scopeId:t}=((e=sn())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[YL,KL]=te("overlay"),XL={show:Boolean,zIndex:oe,duration:oe,className:rt,lockScroll:Z,lazyRender:Z,customStyle:Object,teleport:[String,Object]};var GL=G({name:YL,inheritAttrs:!1,props:XL,setup(e,{attrs:t,slots:n}){const i=V(),o=dh(()=>e.show||!e.lazyRender),r=a=>{e.lockScroll&&et(a,!0)},s=o(()=>{var a;const l=Ee(Pi(e.zIndex),e.customStyle);return qe(e.duration)&&(l.animationDuration=`${e.duration}s`),At(h("div",De({ref:i,style:l,class:[KL(),e.className]},t),[(a=n.default)==null?void 0:a.call(n)]),[[Pt,e.show]])});return ft("touchmove",r,{target:i}),()=>{const a=h(Gl,{name:"van-fade",appear:!0},{default:s});return e.teleport?h(to,{to:e.teleport},{default:()=>[a]}):a}}});const Ix=re(GL),ZL=Ee({},Fr,{round:Boolean,position:se("center"),closeIcon:se("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:se("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[JL,Eg]=te("popup");var QL=G({name:JL,inheritAttrs:!1,props:ZL,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:i}){let o,r;const s=V(),a=V(),l=dh(()=>e.show||!e.lazyRender),c=N(()=>{const E={zIndex:s.value};if(qe(e.duration)){const $=e.position==="center"?"animationDuration":"transitionDuration";E[$]=`${e.duration}s`}return E}),d=()=>{o||(o=!0,s.value=e.zIndex!==void 0?+e.zIndex:vL(),t("open"))},u=()=>{o&&oo(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},f=E=>{t("clickOverlay",E),e.closeOnClickOverlay&&u()},p=()=>{if(e.overlay)return h(Ix,De({show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},Bl(),{onClick:f}),{default:i["overlay-content"]})},b=E=>{t("clickCloseIcon",E),u()},m=()=>{if(e.closeable)return h(Oe,{role:"button",tabindex:0,name:e.closeIcon,class:[Eg("close-icon",e.closeIconPosition),Vt],classPrefix:e.iconPrefix,onClick:b},null)};let g;const x=()=>{g&&clearTimeout(g),g=setTimeout(()=>{t("opened")})},v=()=>t("closed"),k=E=>t("keydown",E),C=l(()=>{var E;const{destroyOnClose:$,round:S,position:T,safeAreaInsetTop:A,safeAreaInsetBottom:w,show:_}=e;if(!(!_&&$))return At(h("div",De({ref:a,style:c.value,role:"dialog",tabindex:0,class:[Eg({round:S,[T]:T}),{"van-safe-area-top":A,"van-safe-area-bottom":w}],onKeydown:k},n,Bl()),[(E=i.default)==null?void 0:E.call(i),m()]),[[Pt,_]])}),y=()=>{const{position:E,transition:$,transitionAppear:S}=e,T=E==="center"?"van-fade":`van-popup-slide-${E}`;return h(Gl,{name:$||T,appear:S,onAfterEnter:x,onAfterLeave:v},{default:C})};return le(()=>e.show,E=>{E&&!o&&(d(),n.tabindex===0&&Pe(()=>{var $;($=a.value)==null||$.focus()})),!E&&o&&(o=!1,t("close"))}),Fe({popupRef:a}),Rx(a,()=>e.show&&e.lockScroll),ft("popstate",()=>{e.closeOnPopstate&&(u(),r=!1)}),at(()=>{e.show&&d()}),ri(()=>{r&&(t("update:show",!0),r=!1)}),si(()=>{e.show&&e.teleport&&(u(),r=!0)}),Pn(Sx,()=>e.show),()=>e.teleport?h(to,{to:e.teleport},{default:()=>[p(),y()]}):h(dt,null,[p(),y()])}});const jn=re(QL),[e4,gn]=te("action-sheet"),t4=Ee({},Fr,{title:String,round:Z,actions:it(),closeIcon:se("cross"),closeable:Z,cancelText:String,description:String,closeOnPopstate:Z,closeOnClickAction:Boolean,safeAreaInsetBottom:Z}),n4=[...ch,"round","closeOnPopstate","safeAreaInsetBottom"];var i4=G({name:e4,props:t4,emits:["select","cancel","update:show"],setup(e,{slots:t,emit:n}){const i=u=>n("update:show",u),o=()=>{i(!1),n("cancel")},r=()=>{if(e.title)return h("div",{class:gn("header")},[e.title,e.closeable&&h(Oe,{name:e.closeIcon,class:[gn("close"),Vt],onClick:o},null)])},s=()=>{if(t.cancel||e.cancelText)return[h("div",{class:gn("gap")},null),h("button",{type:"button",class:gn("cancel"),onClick:o},[t.cancel?t.cancel():e.cancelText])]},a=u=>{if(u.icon)return h(Oe,{class:gn("item-icon"),name:u.icon},null)},l=(u,f)=>u.loading?h(Vn,{class:gn("loading-icon")},null):t.action?t.action({action:u,index:f}):[h("span",{class:gn("name")},[u.name]),u.subname&&h("div",{class:gn("subname")},[u.subname])],c=(u,f)=>{const{color:p,loading:b,callback:m,disabled:g,className:x}=u,v=()=>{g||b||(m&&m(u),e.closeOnClickAction&&i(!1),Pe(()=>n("select",u,f)))};return h("button",{type:"button",style:{color:p},class:[gn("item",{loading:b,disabled:g}),x],onClick:v},[a(u),l(u,f)])},d=()=>{if(e.description||t.description){const u=t.description?t.description():e.description;return h("div",{class:gn("description")},[u])}};return()=>h(jn,De({class:gn(),position:"bottom","onUpdate:show":i},We(e,n4)),{default:()=>{var u;return[r(),d(),h("div",{class:gn("content")},[e.actions.map(c),(u=t.default)==null?void 0:u.call(t)]),s()]}})}});const o4=re(i4),[r4,xi,$g]=te("picker"),Px=e=>e.find(t=>!t.disabled)||e[0];function s4(e,t){const n=e[0];if(n){if(Array.isArray(n))return"multiple";if(t.children in n)return"cascade"}return"default"}function sl(e,t){t=Et(t,0,e.length);for(let n=t;n<e.length;n++)if(!e[n].disabled)return n;for(let n=t-1;n>=0;n--)if(!e[n].disabled)return n;return 0}const Tg=(e,t,n)=>t!==void 0&&e.some(i=>i[n.value]===t);function Xu(e,t,n){const i=e.findIndex(r=>r[n.value]===t),o=sl(e,i);return e[o]}function a4(e,t,n){const i=[];let o={[t.children]:e},r=0;for(;o&&o[t.children];){const s=o[t.children],a=n.value[r];if(o=qe(a)?Xu(s,a,t):void 0,!o&&s.length){const l=Px(s)[t.value];o=Xu(s,l,t)}r++,i.push(s)}return i}function l4(e){const{transform:t}=window.getComputedStyle(e),n=t.slice(7,t.length-1).split(", ")[5];return Number(n)}function c4(e){return Ee({text:"text",value:"value",children:"children"},e)}const _g=200,Ag=300,d4=15,[Dx,Pd]=te("picker-column"),Bx=Symbol(Dx);var u4=G({name:Dx,props:{value:oe,fields:_t(Object),options:it(),readonly:Boolean,allowHtml:Boolean,optionHeight:_t(Number),swipeDuration:_t(oe),visibleOptionNum:_t(oe)},emits:["change","clickOption","scrollInto"],setup(e,{emit:t,slots:n}){let i,o,r,s,a;const l=V(),c=V(),d=V(0),u=V(0),f=Sn(),p=()=>e.options.length,b=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,m=A=>{let w=sl(e.options,A);const _=-w*e.optionHeight,D=()=>{w>p()-1&&(w=sl(e.options,A));const F=e.options[w][e.fields.value];F!==e.value&&t("change",F)};i&&_!==d.value?a=D:D(),d.value=_},g=()=>e.readonly||!e.options.length,x=A=>{i||g()||(a=null,u.value=_g,m(A),t("clickOption",e.options[A]))},v=A=>Et(Math.round(-A/e.optionHeight),0,p()-1),k=N(()=>v(d.value)),C=(A,w)=>{const _=Math.abs(A/w);A=d.value+_/.003*(A<0?-1:1);const D=v(A);u.value=+e.swipeDuration,m(D)},y=()=>{i=!1,u.value=0,a&&(a(),a=null)},E=A=>{if(!g()){if(f.start(A),i){const w=l4(c.value);d.value=Math.min(0,w-b())}u.value=0,o=d.value,r=Date.now(),s=o,a=null}},$=A=>{if(g())return;f.move(A),f.isVertical()&&(i=!0,et(A,!0));const w=Et(o+f.deltaY.value,-(p()*e.optionHeight),e.optionHeight),_=v(w);_!==k.value&&t("scrollInto",e.options[_]),d.value=w;const D=Date.now();D-r>Ag&&(r=D,s=w)},S=()=>{if(g())return;const A=d.value-s,w=Date.now()-r;if(w<Ag&&Math.abs(A)>d4){C(A,w);return}const D=v(d.value);u.value=_g,m(D),setTimeout(()=>{i=!1},0)},T=()=>{const A={height:`${e.optionHeight}px`};return e.options.map((w,_)=>{const D=w[e.fields.text],{disabled:F}=w,H=w[e.fields.value],P={role:"button",style:A,tabindex:F?-1:0,class:[Pd("item",{disabled:F,selected:H===e.value}),w.className],onClick:()=>x(_)},M={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:D};return h("li",P,[n.option?n.option(w,_):h("div",M,null)])})};return Lt(Bx),Fe({stopMomentum:y}),Or(()=>{const A=i?Math.floor(-d.value/e.optionHeight):e.options.findIndex(D=>D[e.fields.value]===e.value),w=sl(e.options,A),_=-w*e.optionHeight;i&&w<A&&y(),d.value=_}),ft("touchmove",$,{target:l}),()=>h("div",{ref:l,class:Pd(),onTouchstartPassive:E,onTouchend:S,onTouchcancel:S},[h("ul",{ref:c,style:{transform:`translate3d(0, ${d.value+b()}px, 0)`,transitionDuration:`${u.value}ms`,transitionProperty:u.value?"all":"none"},class:Pd("wrapper"),onTransitionend:y},[T()])])}});const[f4]=te("picker-toolbar"),Dc={title:String,cancelButtonText:String,confirmButtonText:String},Lx=["cancel","confirm","title","toolbar"],h4=Object.keys(Dc);var zx=G({name:f4,props:Dc,emits:["confirm","cancel"],setup(e,{emit:t,slots:n}){const i=()=>{if(n.title)return n.title();if(e.title)return h("div",{class:[xi("title"),"van-ellipsis"]},[e.title])},o=()=>t("cancel"),r=()=>t("confirm"),s=()=>{var l;const c=(l=e.cancelButtonText)!=null?l:$g("cancel");if(!(!n.cancel&&!c))return h("button",{type:"button",class:[xi("cancel"),Vt],onClick:o},[n.cancel?n.cancel():c])},a=()=>{var l;const c=(l=e.confirmButtonText)!=null?l:$g("confirm");if(!(!n.confirm&&!c))return h("button",{type:"button",class:[xi("confirm"),Vt],onClick:r},[n.confirm?n.confirm():c])};return()=>h("div",{class:xi("toolbar")},[n.toolbar?n.toolbar():[s(),i(),a()]])}});const uh=(e,t)=>{const n=V(e());return le(e,i=>{i!==n.value&&(n.value=i)}),le(n,i=>{i!==e()&&t(i)}),n};function p4(e,t,n){let i,o=0;const r=e.scrollLeft,s=n===0?1:Math.round(n*1e3/16);let a=r;function l(){yc(i)}function c(){a+=(t-r)/s,e.scrollLeft=a,++o<s&&(i=Ht(c))}return c(),l}function m4(e,t,n,i){let o,r=Ti(e);const s=r<t,a=n===0?1:Math.round(n*1e3/16),l=(t-r)/a;function c(){yc(o)}function d(){r+=l,(s&&r>t||!s&&r<t)&&(r=t),Pl(e,r),s&&r<t||!s&&r>t?o=Ht(d):i&&(o=Ht(i))}return d(),c}let g4=0;function Hr(){const e=sn(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++g4}`}function sa(){const e=V([]),t=[];return cv(()=>{e.value=[]}),[e,i=>(t[i]||(t[i]=o=>{e.value[i]=o}),t[i])]}function Mx(e,t){if(!kn||!window.IntersectionObserver)return;const n=new IntersectionObserver(r=>{t(r[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&n.observe(e.value)},o=()=>{e.value&&n.unobserve(e.value)};si(o),ai(o),Pr(i)}const[b4,v4]=te("sticky"),y4={zIndex:oe,position:se("top"),container:Object,offsetTop:be(0),offsetBottom:be(0)};var x4=G({name:b4,props:y4,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const i=V(),o=Dr(i),r=nt({fixed:!1,width:0,height:0,transform:0}),s=V(!1),a=N(()=>sh(e.position==="top"?e.offsetTop:e.offsetBottom)),l=N(()=>{if(s.value)return;const{fixed:f,height:p,width:b}=r;if(f)return{width:`${b}px`,height:`${p}px`}}),c=N(()=>{if(!r.fixed||s.value)return;const f=Ee(Pi(e.zIndex),{width:`${r.width}px`,height:`${r.height}px`,[e.position]:`${a.value}px`});return r.transform&&(f.transform=`translate3d(0, ${r.transform}px, 0)`),f}),d=f=>t("scroll",{scrollTop:f,isFixed:r.fixed}),u=()=>{if(!i.value||Io(i))return;const{container:f,position:p}=e,b=Ye(i),m=Ti(window);if(r.width=b.width,r.height=b.height,p==="top")if(f){const g=Ye(f),x=g.bottom-a.value-r.height;r.fixed=a.value>b.top&&g.bottom>0,r.transform=x<0?x:0}else r.fixed=a.value>b.top;else{const{clientHeight:g}=document.documentElement;if(f){const x=Ye(f),v=g-x.top-a.value-r.height;r.fixed=g-a.value<b.bottom&&g>x.top,r.transform=v<0?-v:0}else r.fixed=g-a.value<b.bottom}d(m)};return le(()=>r.fixed,f=>t("change",f)),ft("scroll",u,{target:o,passive:!0}),Mx(i,u),le([Bn,wn],()=>{!i.value||Io(i)||!r.fixed||(s.value=!0,Pe(()=>{const f=Ye(i);r.width=f.width,r.height=f.height,s.value=!1}))}),()=>{var f;return h("div",{ref:i,style:l.value},[h("div",{class:v4({fixed:r.fixed&&!s.value}),style:c.value},[(f=n.default)==null?void 0:f.call(n)])])}}});const Fx=re(x4),[Hx,Aa]=te("swipe"),w4={loop:Z,width:oe,height:oe,vertical:Boolean,autoplay:be(0),duration:be(500),touchable:Z,lazyRender:Boolean,initialSwipe:be(0),indicatorColor:String,showIndicators:Z,stopPropagation:Z},Nx=Symbol(Hx);var k4=G({name:Hx,props:w4,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const i=V(),o=V(),r=nt({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let s=!1;const a=Sn(),{children:l,linkChildren:c}=qt(Nx),d=N(()=>l.length),u=N(()=>r[e.vertical?"height":"width"]),f=N(()=>e.vertical?a.deltaY.value:a.deltaX.value),p=N(()=>r.rect?(e.vertical?r.rect.height:r.rect.width)-u.value*d.value:0),b=N(()=>u.value?Math.ceil(Math.abs(p.value)/u.value):d.value),m=N(()=>d.value*u.value),g=N(()=>(r.active+d.value)%d.value),x=N(()=>{const ie=e.vertical?"vertical":"horizontal";return a.direction.value===ie}),v=N(()=>{const ie={transitionDuration:`${r.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+r.offset.toFixed(2)}px)`};if(u.value){const q=e.vertical?"height":"width",J=e.vertical?"width":"height";ie[q]=`${m.value}px`,ie[J]=e[J]?`${e[J]}px`:""}return ie}),k=ie=>{const{active:q}=r;return ie?e.loop?Et(q+ie,-1,d.value):Et(q+ie,0,b.value):q},C=(ie,q=0)=>{let J=ie*u.value;e.loop||(J=Math.min(J,-p.value));let me=q-J;return e.loop||(me=Et(me,p.value,0)),me},y=({pace:ie=0,offset:q=0,emitChange:J})=>{if(d.value<=1)return;const{active:me}=r,K=k(ie),de=C(K,q);if(e.loop){if(l[0]&&de!==p.value){const O=de<p.value;l[0].setOffset(O?m.value:0)}if(l[d.value-1]&&de!==0){const O=de>0;l[d.value-1].setOffset(O?-m.value:0)}}r.active=K,r.offset=de,J&&K!==me&&t("change",g.value)},E=()=>{r.swiping=!0,r.active<=-1?y({pace:d.value}):r.active>=d.value&&y({pace:-d.value})},$=()=>{E(),a.reset(),Yi(()=>{r.swiping=!1,y({pace:-1,emitChange:!0})})},S=()=>{E(),a.reset(),Yi(()=>{r.swiping=!1,y({pace:1,emitChange:!0})})};let T;const A=()=>clearTimeout(T),w=()=>{A(),+e.autoplay>0&&d.value>1&&(T=setTimeout(()=>{S(),w()},+e.autoplay))},_=(ie=+e.initialSwipe)=>{if(!i.value)return;const q=()=>{var J,me;if(!Io(i)){const K={width:i.value.offsetWidth,height:i.value.offsetHeight};r.rect=K,r.width=+((J=e.width)!=null?J:K.width),r.height=+((me=e.height)!=null?me:K.height)}d.value&&(ie=Math.min(d.value-1,ie),ie===-1&&(ie=d.value-1)),r.active=ie,r.swiping=!0,r.offset=C(ie),l.forEach(K=>{K.setOffset(0)}),w()};Io(i)?Pe().then(q):q()},D=()=>_(r.active);let F;const H=ie=>{!e.touchable||ie.touches.length>1||(a.start(ie),s=!1,F=Date.now(),A(),E())},P=ie=>{e.touchable&&r.swiping&&(a.move(ie),x.value&&(!e.loop&&(r.active===0&&f.value>0||r.active===d.value-1&&f.value<0)||(et(ie,e.stopPropagation),y({offset:f.value}),s||(t("dragStart",{index:g.value}),s=!0))))},M=()=>{if(!e.touchable||!r.swiping)return;const ie=Date.now()-F,q=f.value/ie;if((Math.abs(q)>.25||Math.abs(f.value)>u.value/2)&&x.value){const me=e.vertical?a.offsetY.value:a.offsetX.value;let K=0;e.loop?K=me>0?f.value>0?-1:1:0:K=-Math[f.value>0?"ceil":"floor"](f.value/u.value),y({pace:K,emitChange:!0})}else f.value&&y({pace:0});s=!1,r.swiping=!1,t("dragEnd",{index:g.value}),w()},L=(ie,q={})=>{E(),a.reset(),Yi(()=>{let J;e.loop&&ie===d.value?J=r.active===0?0:ie:J=ie%d.value,q.immediate?Yi(()=>{r.swiping=!1}):r.swiping=!1,y({pace:J-r.active,emitChange:!0})})},ce=(ie,q)=>{const J=q===g.value,me=J?{backgroundColor:e.indicatorColor}:void 0;return h("i",{style:me,class:Aa("indicator",{active:J})},null)},fe=()=>{if(n.indicator)return n.indicator({active:g.value,total:d.value});if(e.showIndicators&&d.value>1)return h("div",{class:Aa("indicators",{vertical:e.vertical})},[Array(d.value).fill("").map(ce)])};return Fe({prev:$,next:S,state:r,resize:D,swipeTo:L}),c({size:u,props:e,count:d,activeIndicator:g}),le(()=>e.initialSwipe,ie=>_(+ie)),le(d,()=>_(r.active)),le(()=>e.autoplay,w),le([Bn,wn,()=>e.width,()=>e.height],D),le(oP(),ie=>{ie==="visible"?w():A()}),at(_),ri(()=>_(r.active)),Ic(()=>_(r.active)),si(A),ai(A),ft("touchmove",P,{target:o}),()=>{var ie;return h("div",{ref:i,class:Aa()},[h("div",{ref:o,style:v.value,class:Aa("track",{vertical:e.vertical}),onTouchstartPassive:H,onTouchend:M,onTouchcancel:M},[(ie=n.default)==null?void 0:ie.call(n)]),fe()])}}});const fh=re(k4),[S4,Og]=te("tabs");var C4=G({name:S4,props:{count:_t(Number),inited:Boolean,animated:Boolean,duration:_t(oe),swipeable:Boolean,lazyRender:Boolean,currentIndex:_t(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const i=V(),o=a=>t("change",a),r=()=>{var a;const l=(a=n.default)==null?void 0:a.call(n);return e.animated||e.swipeable?h(fh,{ref:i,loop:!1,class:Og("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:o},{default:()=>[l]}):l},s=a=>{const l=i.value;l&&l.state.active!==a&&l.swipeTo(a,{immediate:!e.inited})};return le(()=>e.currentIndex,s),at(()=>{s(e.currentIndex)}),Fe({swipeRef:i}),()=>h("div",{class:Og("content",{animated:e.animated||e.swipeable})},[r()])}});const[Vx,Oa]=te("tabs"),E4={type:se("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:be(0),duration:be(.3),animated:Boolean,ellipsis:Z,swipeable:Boolean,scrollspy:Boolean,offsetTop:be(0),background:String,lazyRender:Z,showHeader:Z,lineWidth:oe,lineHeight:oe,beforeChange:Function,swipeThreshold:be(5),titleActiveColor:String,titleInactiveColor:String},jx=Symbol(Vx);var $4=G({name:Vx,props:E4,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:t,slots:n}){let i,o,r,s,a;const l=V(),c=V(),d=V(),u=V(),f=Hr(),p=Dr(l),[b,m]=sa(),{children:g,linkChildren:x}=qt(jx),v=nt({inited:!1,position:"",lineStyle:{},currentIndex:-1}),k=N(()=>g.length>+e.swipeThreshold||!e.ellipsis||e.shrink),C=N(()=>({borderColor:e.color,background:e.background})),y=(K,de)=>{var O;return(O=K.name)!=null?O:de},E=N(()=>{const K=g[v.currentIndex];if(K)return y(K,v.currentIndex)}),$=N(()=>sh(e.offsetTop)),S=N(()=>e.sticky?$.value+i:0),T=K=>{const de=c.value,O=b.value;if(!k.value||!de||!O||!O[v.currentIndex])return;const Y=O[v.currentIndex].$el,j=Y.offsetLeft-(de.offsetWidth-Y.offsetWidth)/2;s&&s(),s=p4(de,j,K?0:+e.duration)},A=()=>{const K=v.inited;Pe(()=>{const de=b.value;if(!de||!de[v.currentIndex]||e.type!=="line"||Io(l.value))return;const O=de[v.currentIndex].$el,{lineWidth:Y,lineHeight:j}=e,Q=O.offsetLeft+O.offsetWidth/2,ye={width:Ae(Y),backgroundColor:e.color,transform:`translateX(${Q}px) translateX(-50%)`};if(K&&(ye.transitionDuration=`${e.duration}s`),qe(j)){const R=Ae(j);ye.height=R,ye.borderRadius=R}v.lineStyle=ye})},w=K=>{const de=K<v.currentIndex?-1:1;for(;K>=0&&K<g.length;){if(!g[K].disabled)return K;K+=de}},_=(K,de)=>{const O=w(K);if(!qe(O))return;const Y=g[O],j=y(Y,O),Q=v.currentIndex!==null;v.currentIndex!==O&&(v.currentIndex=O,de||T(),A()),j!==e.active&&(t("update:active",j),Q&&t("change",j,Y.title)),r&&!e.scrollspy&&Hs(Math.ceil(gg(l.value)-$.value))},D=(K,de)=>{const O=g.findIndex((Y,j)=>y(Y,j)===K);_(O===-1?0:O,de)},F=(K=!1)=>{if(e.scrollspy){const de=g[v.currentIndex].$el;if(de&&p.value){const O=gg(de,p.value)-S.value;o=!0,a&&a(),a=m4(p.value,O,K?0:+e.duration,()=>{o=!1})}}},H=(K,de,O)=>{const{title:Y,disabled:j}=g[de],Q=y(g[de],de);j||(oo(e.beforeChange,{args:[Q],done:()=>{_(de),F()}}),Tx(K)),t("clickTab",{name:Q,title:Y,event:O,disabled:j})},P=K=>{r=K.isFixed,t("scroll",K)},M=K=>{Pe(()=>{D(K),F(!0)})},L=()=>{for(let K=0;K<g.length;K++){const{top:de}=Ye(g[K].$el);if(de>S.value)return K===0?0:K-1}return g.length-1},ce=()=>{if(e.scrollspy&&!o){const K=L();_(K)}},fe=()=>{if(e.type==="line"&&g.length)return h("div",{class:Oa("line"),style:v.lineStyle},null)},ie=()=>{var K,de,O;const{type:Y,border:j,sticky:Q}=e,ye=[h("div",{ref:Q?void 0:d,class:[Oa("wrap"),{[Rc]:Y==="line"&&j}]},[h("div",{ref:c,role:"tablist",class:Oa("nav",[Y,{shrink:e.shrink,complete:k.value}]),style:C.value,"aria-orientation":"horizontal"},[(K=n["nav-left"])==null?void 0:K.call(n),g.map(R=>R.renderTitle(H)),fe(),(de=n["nav-right"])==null?void 0:de.call(n)])]),(O=n["nav-bottom"])==null?void 0:O.call(n)];return Q?h("div",{ref:d},[ye]):ye},q=()=>{A(),Pe(()=>{var K,de;T(!0),(de=(K=u.value)==null?void 0:K.swipeRef.value)==null||de.resize()})};le(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],A),le(Bn,q),le(()=>e.active,K=>{K!==E.value&&D(K)}),le(()=>g.length,()=>{v.inited&&(D(e.active),A(),Pe(()=>{T(!0)}))});const J=()=>{D(e.active,!0),Pe(()=>{v.inited=!0,d.value&&(i=Ye(d.value).height),T(!0)})},me=(K,de)=>t("rendered",K,de);return Fe({resize:q,scrollTo:M}),ri(A),Ic(A),Pr(J),Mx(l,A),ft("scroll",ce,{target:p,passive:!0}),x({id:f,props:e,setLine:A,scrollable:k,onRendered:me,currentName:E,setTitleRefs:m,scrollIntoView:T}),()=>h("div",{ref:l,class:Oa([e.type])},[e.showHeader?e.sticky?h(Fx,{container:l.value,offsetTop:$.value,onScroll:P},{default:()=>[ie()]}):ie():null,h(C4,{ref:u,count:g.length,inited:v.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:v.currentIndex,onChange:_},{default:()=>{var K;return[(K=n.default)==null?void 0:K.call(n)]}})])}});const qx=Symbol(),T4=()=>Qe(qx,null),[_4,Rg]=te("tab"),A4=G({name:_4,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:oe,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:Z},setup(e,{slots:t}){const n=N(()=>{const o={},{type:r,color:s,disabled:a,isActive:l,activeColor:c,inactiveColor:d}=e;s&&r==="card"&&(o.borderColor=s,a||(l?o.backgroundColor=s:o.color=s));const f=l?c:d;return f&&(o.color=f),o}),i=()=>{const o=h("span",{class:Rg("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||qe(e.badge)&&e.badge!==""?h(Bo,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[o]}):o};return()=>h("div",{id:e.id,role:"tab",class:[Rg([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:n.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":"attribute"},[i()])}}),[O4,R4]=te("swipe-item");var I4=G({name:O4,setup(e,{slots:t}){let n;const i=nt({offset:0,inited:!1,mounted:!1}),{parent:o,index:r}=Lt(Nx);if(!o)return;const s=N(()=>{const c={},{vertical:d}=o.props;return o.size.value&&(c[d?"height":"width"]=`${o.size.value}px`),i.offset&&(c.transform=`translate${d?"Y":"X"}(${i.offset}px)`),c}),a=N(()=>{const{loop:c,lazyRender:d}=o.props;if(!d||n)return!0;if(!i.mounted)return!1;const u=o.activeIndicator.value,f=o.count.value-1,p=u===0&&c?f:u-1,b=u===f&&c?0:u+1;return n=r.value===u||r.value===p||r.value===b,n}),l=c=>{i.offset=c};return at(()=>{Pe(()=>{i.mounted=!0})}),Fe({setOffset:l}),()=>{var c;return h("div",{class:R4(),style:s.value},[a.value?(c=t.default)==null?void 0:c.call(t):null])}}});const hh=re(I4),[P4,Dd]=te("tab"),D4=Ee({},ro,{dot:Boolean,name:oe,badge:oe,title:String,disabled:Boolean,titleClass:rt,titleStyle:[String,Object],showZeroBadge:Z});var B4=G({name:P4,props:D4,setup(e,{slots:t}){const n=Hr(),i=V(!1),o=sn(),{parent:r,index:s}=Lt(jx);if(!r)return;const a=()=>{var b;return(b=e.name)!=null?b:s.value},l=()=>{i.value=!0,r.props.lazyRender&&Pe(()=>{r.onRendered(a(),e.title)})},c=N(()=>{const b=a()===r.currentName.value;return b&&!i.value&&l(),b}),d=V(""),u=V("");Or(()=>{const{titleClass:b,titleStyle:m}=e;d.value=b?yy(b):"",u.value=m&&typeof m!="string"?jI(vy(m)):m});const f=b=>h(A4,De({key:n,id:`${r.id}-${s.value}`,ref:r.setTitleRefs(s.value),style:u.value,class:d.value,isActive:c.value,controls:n,scrollable:r.scrollable.value,activeColor:r.props.titleActiveColor,inactiveColor:r.props.titleInactiveColor,onClick:m=>b(o.proxy,s.value,m)},We(r.props,["type","color","shrink"]),We(e,["dot","badge","title","disabled","showZeroBadge"])),{title:t.title}),p=V(!c.value);return le(c,b=>{b?p.value=!1:Yi(()=>{p.value=!0})}),le(()=>e.title,()=>{r.setLine(),r.scrollIntoView()}),Pn(qx,c),Fe({id:n,renderTitle:f}),()=>{var b;const m=`${r.id}-${s.value}`,{animated:g,swipeable:x,scrollspy:v,lazyRender:k}=r.props;if(!t.default&&!g)return;const C=v||c.value;if(g||x)return h(hh,{id:n,role:"tabpanel",class:Dd("panel-wrapper",{inactive:p.value}),tabindex:c.value?0:-1,"aria-hidden":!c.value,"aria-labelledby":m,"data-allow-mismatch":"attribute"},{default:()=>{var $;return[h("div",{class:Dd("panel")},[($=t.default)==null?void 0:$.call(t)])]}});const E=i.value||v||!k?(b=t.default)==null?void 0:b.call(t):null;return At(h("div",{id:n,role:"tabpanel",class:Dd("panel"),tabindex:C?0:-1,"aria-labelledby":m,"data-allow-mismatch":"attribute"},[E]),[[Pt,C]])}}});const Ns=re(B4),Bc=re($4),[Ux,Bd]=te("picker-group"),Wx=Symbol(Ux),L4=Ee({tabs:it(),activeTab:be(0),nextStepText:String,showToolbar:Z},Dc);var z4=G({name:Ux,props:L4,emits:["confirm","cancel","update:activeTab"],setup(e,{emit:t,slots:n}){const i=uh(()=>e.activeTab,c=>t("update:activeTab",c)),{children:o,linkChildren:r}=qt(Wx);r();const s=()=>+i.value<e.tabs.length-1&&e.nextStepText,a=()=>{s()?i.value=+i.value+1:t("confirm",o.map(c=>c.confirm()))},l=()=>t("cancel");return()=>{var c,d;let u=(d=(c=n.default)==null?void 0:c.call(n))==null?void 0:d.filter(p=>p.type!==$t).map(p=>p.type===dt?p.children:p);u&&(u=XB(u));const f=s()?e.nextStepText:e.confirmButtonText;return h("div",{class:Bd()},[e.showToolbar?h(zx,{title:e.title,cancelButtonText:e.cancelButtonText,confirmButtonText:f,onConfirm:a,onCancel:l},We(n,Lx)):null,h(Bc,{active:i.value,"onUpdate:active":p=>i.value=p,class:Bd("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[e.tabs.map((p,b)=>h(Ns,{title:p,titleClass:Bd("tab-title")},{default:()=>[u==null?void 0:u[b]]}))]})])}}});const Lc=Ee({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:be(44),showToolbar:Z,swipeDuration:be(1e3),visibleOptionNum:be(6)},Dc),M4=Ee({},Lc,{columns:it(),modelValue:it(),toolbarPosition:se("top"),columnsFieldNames:Object});var F4=G({name:r4,props:M4,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(e,{emit:t,slots:n}){const i=V(),o=V(e.modelValue.slice(0)),{parent:r}=Lt(Wx),{children:s,linkChildren:a}=qt(Bx);a();const l=N(()=>c4(e.columnsFieldNames)),c=N(()=>sh(e.optionHeight)),d=N(()=>s4(e.columns,l.value)),u=N(()=>{const{columns:w}=e;switch(d.value){case"multiple":return w;case"cascade":return a4(w,l.value,o);default:return[w]}}),f=N(()=>u.value.some(w=>w.length)),p=N(()=>u.value.map((w,_)=>Xu(w,o.value[_],l.value))),b=N(()=>u.value.map((w,_)=>w.findIndex(D=>D[l.value.value]===o.value[_]))),m=(w,_)=>{if(o.value[w]!==_){const D=o.value.slice(0);D[w]=_,o.value=D}},g=()=>({selectedValues:o.value.slice(0),selectedOptions:p.value,selectedIndexes:b.value}),x=(w,_)=>{m(_,w),d.value==="cascade"&&o.value.forEach((D,F)=>{const H=u.value[F];Tg(H,D,l.value)||m(F,H.length?H[0][l.value.value]:void 0)}),Pe(()=>{t("change",Ee({columnIndex:_},g()))})},v=(w,_)=>{const D={columnIndex:_,currentOption:w};t("clickOption",Ee(g(),D)),t("scrollInto",D)},k=()=>{s.forEach(_=>_.stopMomentum());const w=g();return Pe(()=>{const _=g();t("confirm",_)}),w},C=()=>t("cancel",g()),y=()=>u.value.map((w,_)=>h(u4,{value:o.value[_],fields:l.value,options:w,readonly:e.readonly,allowHtml:e.allowHtml,optionHeight:c.value,swipeDuration:e.swipeDuration,visibleOptionNum:e.visibleOptionNum,onChange:D=>x(D,_),onClickOption:D=>v(D,_),onScrollInto:D=>{t("scrollInto",{currentOption:D,columnIndex:_})}},{option:n.option})),E=w=>{if(f.value){const _={height:`${c.value}px`},D={backgroundSize:`100% ${(w-c.value)/2}px`};return[h("div",{class:xi("mask"),style:D},null),h("div",{class:[fL,xi("frame")],style:_},null)]}},$=()=>{const w=c.value*+e.visibleOptionNum,_={height:`${w}px`};return!e.loading&&!f.value&&n.empty?n.empty():h("div",{ref:i,class:xi("columns"),style:_},[y(),E(w)])},S=()=>{if(e.showToolbar&&!r)return h(zx,De(We(e,h4),{onConfirm:k,onCancel:C}),We(n,Lx))};le(u,w=>{w.forEach((_,D)=>{_.length&&!Tg(_,o.value[D],l.value)&&m(D,Px(_)[l.value.value])})},{immediate:!0});let T;return le(()=>e.modelValue,w=>{!ni(w,o.value)&&!ni(w,T)&&(o.value=w.slice(0),T=w.slice(0))},{deep:!0}),le(o,w=>{ni(w,e.modelValue)||(T=w.slice(0),t("update:modelValue",T))},{immediate:!0}),ft("touchmove",et,{target:i}),Fe({confirm:k,getSelectedOptions:()=>p.value}),()=>{var w,_;return h("div",{class:xi()},[e.toolbarPosition==="top"?S():null,e.loading?h(Vn,{class:xi("loading")},null):null,(w=n["columns-top"])==null?void 0:w.call(n),$(),(_=n["columns-bottom"])==null?void 0:_.call(n),e.toolbarPosition==="bottom"?S():null])}}});const gr="000000",H4=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],Yx=["title","loading","readonly","optionHeight","swipeDuration","visibleOptionNum","cancelButtonText","confirmButtonText"],zi=(e="",t=gr,n=void 0)=>({text:e,value:t,children:n});function N4({areaList:e,columnsNum:t,columnsPlaceholder:n}){const{city_list:i={},county_list:o={},province_list:r={}}=e,s=+t>1,a=+t>2,l=()=>{if(s)return n.length>1?[zi(n[1],gr,a?[]:void 0)]:[]},c=new Map;Object.keys(r).forEach(f=>{c.set(f.slice(0,2),zi(r[f],f,l()))});const d=new Map;if(s){const f=()=>{if(a)return n.length>2?[zi(n[2])]:[]};Object.keys(i).forEach(p=>{const b=zi(i[p],p,f());d.set(p.slice(0,4),b);const m=c.get(p.slice(0,2));m&&m.children.push(b)})}a&&Object.keys(o).forEach(f=>{const p=d.get(f.slice(0,4));p&&p.children.push(zi(o[f],f))});const u=Array.from(c.values());if(n.length){const f=a?[zi(n[2])]:void 0,p=s?[zi(n[1],gr,f)]:void 0;u.unshift(zi(n[0],gr,p))}return u}const zc=re(F4),[V4,j4]=te("area"),q4=Ee({},We(Lc,Yx),{modelValue:String,columnsNum:be(3),columnsPlaceholder:it(),areaList:{type:Object,default:()=>({})}});var U4=G({name:V4,props:q4,emits:["change","confirm","cancel","update:modelValue"],setup(e,{emit:t,slots:n}){const i=V([]),o=V(),r=N(()=>N4(e)),s=(...c)=>t("change",...c),a=(...c)=>t("cancel",...c),l=(...c)=>t("confirm",...c);return le(i,c=>{const d=c.length?c[c.length-1]:"";d&&d!==e.modelValue&&t("update:modelValue",d)},{deep:!0}),le(()=>e.modelValue,c=>{if(c){const d=i.value.length?i.value[i.value.length-1]:"";c!==d&&(i.value=[`${c.slice(0,2)}0000`,`${c.slice(0,4)}00`,c].slice(0,+e.columnsNum))}else i.value=[]},{immediate:!0}),Fe({confirm:()=>{var c;return(c=o.value)==null?void 0:c.confirm()},getSelectedOptions:()=>{var c;return((c=o.value)==null?void 0:c.getSelectedOptions())||[]}}),()=>h(zc,De({ref:o,modelValue:i.value,"onUpdate:modelValue":c=>i.value=c,class:j4(),columns:r.value,onChange:s,onCancel:a,onConfirm:l},We(e,Yx)),We(n,H4))}});const Kx=re(U4),[W4,Ho]=te("cell"),Mc={tag:se("div"),icon:String,size:String,title:oe,value:oe,label:oe,center:Boolean,isLink:Boolean,border:Z,iconPrefix:String,valueClass:rt,labelClass:rt,titleClass:rt,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},Y4=Ee({},Mc,ro);var K4=G({name:W4,props:Y4,setup(e,{slots:t}){const n=Do(),i=()=>{if(t.label||qe(e.label))return h("div",{class:[Ho("label"),e.labelClass]},[t.label?t.label():e.label])},o=()=>{var l;if(t.title||qe(e.title)){const c=(l=t.title)==null?void 0:l.call(t);return Array.isArray(c)&&c.length===0?void 0:h("div",{class:[Ho("title"),e.titleClass],style:e.titleStyle},[c||h("span",null,[e.title]),i()])}},r=()=>{const l=t.value||t.default;if(l||qe(e.value))return h("div",{class:[Ho("value"),e.valueClass]},[l?l():h("span",null,[e.value])])},s=()=>{if(t.icon)return t.icon();if(e.icon)return h(Oe,{name:e.icon,class:Ho("left-icon"),classPrefix:e.iconPrefix},null)},a=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return h(Oe,{name:l,class:Ho("right-icon")},null)}};return()=>{var l;const{tag:c,size:d,center:u,border:f,isLink:p,required:b}=e,m=(l=e.clickable)!=null?l:p,g={center:u,required:!!b,clickable:m,borderless:!f};return d&&(g[d]=!!d),h(c,{class:Ho(g),role:m?"button":void 0,tabindex:m?0:void 0,onClick:n},{default:()=>{var x;return[s(),o(),r(),a(),(x=t.extra)==null?void 0:x.call(t)]}})}}});const qn=re(K4),[X4,G4]=te("form"),Z4={colon:Boolean,disabled:Boolean,readonly:Boolean,required:[Boolean,String],showError:Boolean,labelWidth:oe,labelAlign:String,inputAlign:String,scrollToError:Boolean,scrollToErrorPosition:String,validateFirst:Boolean,submitOnEnter:Z,showErrorMessage:Z,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};var J4=G({name:X4,props:Z4,emits:["submit","failed"],setup(e,{emit:t,slots:n}){const{children:i,linkChildren:o}=qt(wx),r=g=>g?i.filter(x=>g.includes(x.name)):i,s=g=>new Promise((x,v)=>{const k=[];r(g).reduce((y,E)=>y.then(()=>{if(!k.length)return E.validate().then($=>{$&&k.push($)})}),Promise.resolve()).then(()=>{k.length?v(k):x()})}),a=g=>new Promise((x,v)=>{const k=r(g);Promise.all(k.map(C=>C.validate())).then(C=>{C=C.filter(Boolean),C.length?v(C):x()})}),l=g=>{const x=i.find(v=>v.name===g);return x?new Promise((v,k)=>{x.validate().then(C=>{C?k(C):v()})}):Promise.reject()},c=g=>typeof g=="string"?l(g):e.validateFirst?s(g):a(g),d=g=>{typeof g=="string"&&(g=[g]),r(g).forEach(v=>{v.resetValidation()})},u=()=>i.reduce((g,x)=>(g[x.name]=x.getValidationStatus(),g),{}),f=(g,x)=>{i.some(v=>v.name===g?(v.$el.scrollIntoView(x),!0):!1)},p=()=>i.reduce((g,x)=>(x.name!==void 0&&(g[x.name]=x.formValue.value),g),{}),b=()=>{const g=p();c().then(()=>t("submit",g)).catch(x=>{t("failed",{values:g,errors:x});const{scrollToError:v,scrollToErrorPosition:k}=e;v&&x[0].name&&f(x[0].name,k?{block:k}:void 0)})},m=g=>{et(g),b()};return o({props:e}),Fe({submit:b,validate:c,getValues:p,scrollToField:f,resetValidation:d,getValidationStatus:u}),()=>{var g;return h("form",{class:G4(),onSubmit:m},[(g=n.default)==null?void 0:g.call(n)])}}});const ph=re(J4);function Xx(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function Q4(e,t){if(Xx(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function e3(e,t){return new Promise(n=>{const i=t.validator(e,t);if(oh(i)){i.then(n);return}n(i)})}function Ig(e,t){const{message:n}=t;return Tr(n)?n(e,t):n||""}function t3({target:e}){e.composing=!0}function Pg({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function n3(e,t){const n=Eo();e.style.height="auto";let i=e.scrollHeight;if(Hn(t)){const{maxHeight:o,minHeight:r}=t;o!==void 0&&(i=Math.min(i,o)),r!==void 0&&(i=Math.max(i,r))}i&&(e.style.height=`${i}px`,Hs(n))}function i3(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function fi(e){return[...e].length}function Ld(e,t){return[...e].slice(0,t).join("")}const[o3,bn]=te("field"),mh={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:oe,max:Number,min:Number,formatter:Function,clearIcon:se("clear"),modelValue:be(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:se("focus"),formatTrigger:se("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},r3=Ee({},Mc,mh,{rows:oe,type:se("text"),rules:Array,autosize:[Boolean,Object],labelWidth:oe,labelClass:rt,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var s3=G({name:o3,props:r3,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const i=Hr(),o=nt({status:"unvalidated",focused:!1,validateMessage:""}),r=V(),s=V(),a=V(),{parent:l}=Lt(wx),c=()=>{var O;return String((O=e.modelValue)!=null?O:"")},d=O=>{if(qe(e[O]))return e[O];if(l&&qe(l.props[O]))return l.props[O]},u=N(()=>{const O=d("readonly");if(e.clearable&&!O){const Y=c()!=="",j=e.clearTrigger==="always"||e.clearTrigger==="focus"&&o.focused;return Y&&j}return!1}),f=N(()=>a.value&&n.input?a.value():e.modelValue),p=N(()=>{var O;const Y=d("required");return Y==="auto"?(O=e.rules)==null?void 0:O.some(j=>j.required):Y}),b=O=>O.reduce((Y,j)=>Y.then(()=>{if(o.status==="failed")return;let{value:Q}=f;if(j.formatter&&(Q=j.formatter(Q,j)),!Q4(Q,j)){o.status="failed",o.validateMessage=Ig(Q,j);return}if(j.validator)return Xx(Q)&&j.validateEmpty===!1?void 0:e3(Q,j).then(ye=>{ye&&typeof ye=="string"?(o.status="failed",o.validateMessage=ye):ye===!1&&(o.status="failed",o.validateMessage=Ig(Q,j))})}),Promise.resolve()),m=()=>{o.status="unvalidated",o.validateMessage=""},g=()=>t("endValidate",{status:o.status,message:o.validateMessage}),x=(O=e.rules)=>new Promise(Y=>{m(),O?(t("startValidate"),b(O).then(()=>{o.status==="failed"?(Y({name:e.name,message:o.validateMessage}),g()):(o.status="passed",Y(),g())})):Y()}),v=O=>{if(l&&e.rules){const{validateTrigger:Y}=l.props,j=Il(Y).includes(O),Q=e.rules.filter(ye=>ye.trigger?Il(ye.trigger).includes(O):j);Q.length&&x(Q)}},k=O=>{var Y;const{maxlength:j}=e;if(qe(j)&&fi(O)>+j){const Q=c();if(Q&&fi(Q)===+j)return Q;const ye=(Y=r.value)==null?void 0:Y.selectionEnd;if(o.focused&&ye){const R=[...O],I=R.length-+j;return R.splice(ye-I,I),R.join("")}return Ld(O,+j)}return O},C=(O,Y="onChange")=>{var j,Q;const ye=O;O=k(O);const R=fi(ye)-fi(O);if(e.type==="number"||e.type==="digit"){const z=e.type==="number";if(O=Wu(O,z,z),Y==="onBlur"&&O!==""&&(e.min!==void 0||e.max!==void 0)){const X=Et(+O,(j=e.min)!=null?j:-1/0,(Q=e.max)!=null?Q:1/0);+O!==X&&(O=X.toString())}}let I=0;if(e.formatter&&Y===e.formatTrigger){const{formatter:z,maxlength:X}=e;if(O=z(O),qe(X)&&fi(O)>+X&&(O=Ld(O,+X)),r.value&&o.focused){const{selectionEnd:ne}=r.value,ee=Ld(ye,ne);I=fi(z(ee))-fi(ee)}}if(r.value&&r.value.value!==O)if(o.focused){let{selectionStart:z,selectionEnd:X}=r.value;if(r.value.value=O,qe(z)&&qe(X)){const ne=fi(O);R?(z-=R,X-=R):I&&(z+=I,X+=I),r.value.setSelectionRange(Math.min(z,ne),Math.min(X,ne))}}else r.value.value=O;O!==e.modelValue&&t("update:modelValue",O)},y=O=>{O.target.composing||C(O.target.value)},E=()=>{var O;return(O=r.value)==null?void 0:O.blur()},$=()=>{var O;return(O=r.value)==null?void 0:O.focus()},S=()=>{const O=r.value;e.type==="textarea"&&e.autosize&&O&&n3(O,e.autosize)},T=O=>{o.focused=!0,t("focus",O),Pe(S),d("readonly")&&E()},A=O=>{o.focused=!1,C(c(),"onBlur"),t("blur",O),!d("readonly")&&(v("onBlur"),Pe(S),px())},w=O=>t("clickInput",O),_=O=>t("clickLeftIcon",O),D=O=>t("clickRightIcon",O),F=O=>{et(O),t("update:modelValue",""),t("clear",O)},H=N(()=>{if(typeof e.error=="boolean")return e.error;if(l&&l.props.showError&&o.status==="failed")return!0}),P=N(()=>{const O=d("labelWidth"),Y=d("labelAlign");if(O&&Y!=="top")return{width:Ae(O)}}),M=O=>{O.keyCode===13&&(!(l&&l.props.submitOnEnter)&&e.type!=="textarea"&&et(O),e.type==="search"&&E()),t("keypress",O)},L=()=>e.id||`${i}-input`,ce=()=>o.status,fe=()=>{const O=bn("control",[d("inputAlign"),{error:H.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return h("div",{class:O,onClick:w},[n.input()]);const Y={id:L(),ref:r,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:O,disabled:d("disabled"),readonly:d("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${i}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:A,onFocus:T,onInput:y,onClick:w,onChange:Pg,onKeypress:M,onCompositionend:Pg,onCompositionstart:t3};return e.type==="textarea"?h("textarea",De(Y,{inputmode:e.inputmode}),null):h("input",De(i3(e.type,e.inputmode),Y),null)},ie=()=>{const O=n["left-icon"];if(e.leftIcon||O)return h("div",{class:bn("left-icon"),onClick:_},[O?O():h(Oe,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},q=()=>{const O=n["right-icon"];if(e.rightIcon||O)return h("div",{class:bn("right-icon"),onClick:D},[O?O():h(Oe,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},J=()=>{if(e.showWordLimit&&e.maxlength){const O=fi(c());return h("div",{class:bn("word-limit")},[h("span",{class:bn("word-num")},[O]),Ef("/"),e.maxlength])}},me=()=>{if(l&&l.props.showErrorMessage===!1)return;const O=e.errorMessage||o.validateMessage;if(O){const Y=n["error-message"],j=d("errorMessageAlign");return h("div",{class:bn("error-message",j)},[Y?Y({message:O}):O])}},K=()=>{const O=d("labelWidth"),Y=d("labelAlign"),j=d("colon")?":":"";if(n.label)return[n.label(),j];if(e.label)return h("label",{id:`${i}-label`,for:n.input?void 0:L(),"data-allow-mismatch":"attribute",onClick:Q=>{et(Q),$()},style:Y==="top"&&O?{width:Ae(O)}:void 0},[e.label+j])},de=()=>[h("div",{class:bn("body")},[fe(),u.value&&h(Oe,{ref:s,name:e.clearIcon,class:bn("clear")},null),q(),n.button&&h("div",{class:bn("button")},[n.button()])]),J(),me()];return Fe({blur:E,focus:$,validate:x,formValue:f,resetValidation:m,getValidationStatus:ce}),Pn(wy,{customValue:a,resetValidation:m,validateWithTrigger:v}),le(()=>e.modelValue,()=>{C(c()),m(),v("onChange"),Pe(S)}),at(()=>{C(c(),e.formatTrigger),Pe(S)}),ft("touchstart",F,{target:N(()=>{var O;return(O=s.value)==null?void 0:O.$el})}),()=>{const O=d("disabled"),Y=d("labelAlign"),j=ie(),Q=()=>{const ye=K();return Y==="top"?[j,ye].filter(Boolean):ye||[]};return h(qn,{size:e.size,class:bn({error:H.value,disabled:O,[`label-${Y}`]:Y}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:P.value,valueClass:bn("value"),titleClass:[bn("label",[Y,{required:p.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:j&&Y!=="top"?()=>j:null,title:Q,value:de,extra:n.extra})}}});const Si=re(s3);let Xr=0;function a3(e){e?(Xr||document.body.classList.add("van-toast--unclickable"),Xr++):Xr&&(Xr--,Xr||document.body.classList.remove("van-toast--unclickable"))}const[l3,No]=te("toast"),c3=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],d3={icon:String,show:Boolean,type:se("text"),overlay:Boolean,message:oe,iconSize:oe,duration:kt(2e3),position:se("middle"),teleport:[String,Object],wordBreak:String,className:rt,iconPrefix:String,transition:se("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:rt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:oe};var Gx=G({name:l3,props:d3,emits:["update:show"],setup(e,{emit:t,slots:n}){let i,o=!1;const r=()=>{const u=e.show&&e.forbidClick;o!==u&&(o=u,a3(o))},s=u=>t("update:show",u),a=()=>{e.closeOnClick&&s(!1)},l=()=>clearTimeout(i),c=()=>{const{icon:u,type:f,iconSize:p,iconPrefix:b,loadingType:m}=e;if(u||f==="success"||f==="fail")return h(Oe,{name:u||f,size:p,class:No("icon"),classPrefix:b},null);if(f==="loading")return h(Vn,{class:No("loading"),size:p,type:m},null)},d=()=>{const{type:u,message:f}=e;if(n.message)return h("div",{class:No("text")},[n.message()]);if(qe(f)&&f!=="")return u==="html"?h("div",{key:0,class:No("text"),innerHTML:String(f)},null):h("div",{class:No("text")},[f])};return le(()=>[e.show,e.forbidClick],r),le(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(i=setTimeout(()=>{s(!1)},e.duration))}),at(r),Po(r),()=>h(jn,De({class:[No([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:a,onClosed:l,"onUpdate:show":s},We(e,c3)),{default:()=>[c(),d()]})}});function Zx(){const e=nt({show:!1}),t=o=>{e.show=o},n=o=>{Ee(e,o,{transitionAppear:!0}),t(!0)},i=()=>t(!1);return Fe({open:n,close:i,toggle:t}),{open:n,close:i,state:e,toggle:t}}function Jx(e){const t=Mv(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const u3={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let Ra=[],f3=!1,Dg=Ee({},u3);const h3=new Map;function p3(e){return Hn(e)?e:{message:e}}function m3(){const{instance:e}=Jx({setup(){const t=V(""),{open:n,state:i,close:o,toggle:r}=Zx(),s=()=>{},a=()=>h(Gx,De(i,{onClosed:s,"onUpdate:show":r}),null);return le(t,l=>{i.message=l}),sn().render=a,{open:n,close:o,message:t}}});return e}function g3(){if(!Ra.length||f3){const e=m3();Ra.push(e)}return Ra[Ra.length-1]}function Gu(e={}){if(!kn)return{};const t=g3(),n=p3(e);return t.open(Ee({},Dg,h3.get(n.type||Dg.type),n)),t}const b3=re(Gx),[v3,zd]=te("switch"),y3={size:oe,loading:Boolean,disabled:Boolean,modelValue:rt,activeColor:String,inactiveColor:String,activeValue:{type:rt,default:!0},inactiveValue:{type:rt,default:!1}};var x3=G({name:v3,props:y3,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=()=>e.modelValue===e.activeValue,o=()=>{if(!e.disabled&&!e.loading){const s=i()?e.inactiveValue:e.activeValue;t("update:modelValue",s),t("change",s)}},r=()=>{if(e.loading){const s=i()?e.activeColor:e.inactiveColor;return h(Vn,{class:zd("loading"),color:s},null)}if(n.node)return n.node()};return io(()=>e.modelValue),()=>{var s;const{size:a,loading:l,disabled:c,activeColor:d,inactiveColor:u}=e,f=i(),p={fontSize:Ae(a),backgroundColor:f?d:u};return h("div",{role:"switch",class:zd({on:f,loading:l,disabled:c}),style:p,tabindex:c?void 0:0,"aria-checked":f,onClick:o},[h("div",{class:zd("node")},[r()]),(s=n.background)==null?void 0:s.call(n)])}}});const gh=re(x3),[w3,Bg]=te("address-edit-detail"),Lg=te("address-edit")[2];var k3=G({name:w3,props:{show:Boolean,rows:oe,value:String,rules:Array,focused:Boolean,maxlength:oe,searchResult:Array,showSearchResult:Boolean},emits:["blur","focus","input","selectSearch"],setup(e,{emit:t}){const n=V(),i=()=>e.focused&&e.searchResult&&e.showSearchResult,o=c=>{t("selectSearch",c),t("input",`${c.address||""} ${c.name||""}`.trim())},r=()=>{if(!i())return;const{searchResult:c}=e;return c.map(d=>h(qn,{clickable:!0,key:(d.name||"")+(d.address||""),icon:"location-o",title:d.name,label:d.address,class:Bg("search-item"),border:!1,onClick:()=>o(d)},null))},s=c=>t("blur",c),a=c=>t("focus",c),l=c=>t("input",c);return()=>{if(e.show)return h(dt,null,[h(Si,{autosize:!0,clearable:!0,ref:n,class:Bg(),rows:e.rows,type:"textarea",rules:e.rules,label:Lg("addressDetail"),border:!i(),maxlength:e.maxlength,modelValue:e.value,placeholder:Lg("addressDetail"),onBlur:s,onFocus:a,"onUpdate:modelValue":l},null),r()])}}});const[S3,Vo,Yt]=te("address-edit"),Qx={name:"",tel:"",city:"",county:"",province:"",areaCode:"",isDefault:!1,addressDetail:""},C3={areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showArea:Z,showDetail:Z,showDelete:Boolean,disableArea:Boolean,searchResult:Array,telMaxlength:oe,showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,detailRows:be(1),detailMaxlength:be(200),areaColumnsPlaceholder:it(),addressInfo:{type:Object,default:()=>Ee({},Qx)},telValidator:{type:Function,default:fx}};var E3=G({name:S3,props:C3,emits:["save","focus","change","delete","clickArea","changeArea","changeDetail","selectSearch","changeDefault"],setup(e,{emit:t,slots:n}){const i=V(),o=nt({}),r=V(!1),s=V(!1),a=N(()=>Hn(e.areaList)&&Object.keys(e.areaList).length),l=N(()=>{const{province:E,city:$,county:S,areaCode:T}=o;if(T){const A=[E,$,S];return E&&E===$&&A.splice(1,1),A.filter(Boolean).join("/")}return""}),c=N(()=>{var E;return((E=e.searchResult)==null?void 0:E.length)&&s.value}),d=E=>{s.value=E==="addressDetail",t("focus",E)},u=(E,$)=>{t("change",{key:E,value:$})},f=N(()=>{const{validator:E,telValidator:$}=e,S=(T,A)=>({validator:w=>{if(E){const _=E(T,w);if(_)return _}return w?!0:A}});return{name:[S("name",Yt("nameEmpty"))],tel:[S("tel",Yt("telInvalid")),{validator:$,message:Yt("telInvalid")}],areaCode:[S("areaCode",Yt("areaEmpty"))],addressDetail:[S("addressDetail",Yt("addressEmpty"))]}}),p=()=>t("save",o),b=E=>{o.addressDetail=E,t("changeDetail",E)},m=E=>{o.province=E[0].text,o.city=E[1].text,o.county=E[2].text},g=({selectedValues:E,selectedOptions:$})=>{E.some(S=>S===gr)?Gu(Yt("areaEmpty")):(r.value=!1,m($),t("changeArea",$))},x=()=>t("delete",o),v=E=>{o.areaCode=E||""},k=()=>{setTimeout(()=>{s.value=!1})},C=E=>{o.addressDetail=E},y=()=>{if(e.showSetDefault){const E={"right-icon":()=>h(gh,{modelValue:o.isDefault,"onUpdate:modelValue":$=>o.isDefault=$,onChange:$=>t("changeDefault",$)},null)};return At(h(qn,{center:!0,border:!1,title:Yt("defaultAddress"),class:Vo("default")},E),[[Pt,!c.value]])}};return Fe({setAreaCode:v,setAddressDetail:C}),le(()=>e.addressInfo,E=>{Ee(o,Qx,E),Pe(()=>{var $;const S=($=i.value)==null?void 0:$.getSelectedOptions();S&&S.every(T=>T&&T.value!==gr)&&m(S)})},{deep:!0,immediate:!0}),()=>{const{disableArea:E}=e;return h(ph,{class:Vo(),onSubmit:p},{default:()=>{var $;return[h("div",{class:Vo("fields")},[h(Si,{modelValue:o.name,"onUpdate:modelValue":[S=>o.name=S,S=>u("name",S)],clearable:!0,label:Yt("name"),rules:f.value.name,placeholder:Yt("name"),onFocus:()=>d("name")},null),h(Si,{modelValue:o.tel,"onUpdate:modelValue":[S=>o.tel=S,S=>u("tel",S)],clearable:!0,type:"tel",label:Yt("tel"),rules:f.value.tel,maxlength:e.telMaxlength,placeholder:Yt("tel"),onFocus:()=>d("tel")},null),At(h(Si,{readonly:!0,label:Yt("area"),"is-link":!E,modelValue:l.value,rules:e.showArea?f.value.areaCode:void 0,placeholder:e.areaPlaceholder||Yt("area"),onFocus:()=>d("areaCode"),onClick:()=>{t("clickArea"),r.value=!E}},null),[[Pt,e.showArea]]),h(k3,{show:e.showDetail,rows:e.detailRows,rules:f.value.addressDetail,value:o.addressDetail,focused:s.value,maxlength:e.detailMaxlength,searchResult:e.searchResult,showSearchResult:e.showSearchResult,onBlur:k,onFocus:()=>d("addressDetail"),onInput:b,onSelectSearch:S=>t("selectSearch",S)},null),($=n.default)==null?void 0:$.call(n)]),y(),At(h("div",{class:Vo("buttons")},[h(jt,{block:!0,round:!0,type:"primary",text:e.saveButtonText||Yt("save"),class:Vo("button"),loading:e.isSaving,nativeType:"submit"},null),e.showDelete&&h(jt,{block:!0,round:!0,class:Vo("button"),loading:e.isDeleting,text:e.deleteButtonText||Yt("delete"),onClick:x},null)]),[[Pt,!c.value]]),h(jn,{show:r.value,"onUpdate:show":S=>r.value=S,round:!0,teleport:"body",position:"bottom",lazyRender:!1},{default:()=>[h(Kx,{modelValue:o.areaCode,"onUpdate:modelValue":S=>o.areaCode=S,ref:i,loading:!a.value,areaList:e.areaList,columnsPlaceholder:e.areaColumnsPlaceholder,onConfirm:g,onCancel:()=>{r.value=!1}},null)]})]}})}}});const $3=re(E3),[ew,T3]=te("radio-group"),_3={shape:String,disabled:Boolean,iconSize:oe,direction:String,modelValue:rt,checkedColor:String},tw=Symbol(ew);var A3=G({name:ew,props:_3,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:i}=qt(tw),o=r=>t("update:modelValue",r);return le(()=>e.modelValue,r=>t("change",r)),i({props:e,updateValue:o}),io(()=>e.modelValue),()=>{var r;return h("div",{class:T3([e.direction]),role:"radiogroup"},[(r=n.default)==null?void 0:r.call(n)])}}});const bh=re(A3),[nw,O3]=te("checkbox-group"),R3={max:oe,shape:se("round"),disabled:Boolean,iconSize:oe,direction:String,modelValue:it(),checkedColor:String},iw=Symbol(nw);var I3=G({name:nw,props:R3,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{children:i,linkChildren:o}=qt(iw),r=a=>t("update:modelValue",a),s=(a={})=>{typeof a=="boolean"&&(a={checked:a});const{checked:l,skipDisabled:c}=a,u=i.filter(f=>f.props.bindGroup?f.props.disabled&&c?f.checked.value:l??!f.checked.value:!1).map(f=>f.name);r(u)};return le(()=>e.modelValue,a=>t("change",a)),Fe({toggleAll:s}),io(()=>e.modelValue),o({props:e,updateValue:r}),()=>{var a;return h("div",{class:O3([e.direction])},[(a=n.default)==null?void 0:a.call(n)])}}});const ow=re(I3),[P3,zg]=te("tag"),D3={size:String,mark:Boolean,show:Z,type:se("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var B3=G({name:P3,props:D3,emits:["close"],setup(e,{slots:t,emit:n}){const i=s=>{s.stopPropagation(),n("close",s)},o=()=>e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},r=()=>{var s;const{type:a,mark:l,plain:c,round:d,size:u,closeable:f}=e,p={mark:l,plain:c,round:d};u&&(p[u]=u);const b=f&&h(Oe,{name:"cross",class:[zg("close"),Vt],onClick:i},null);return h("span",{style:o(),class:zg([p,a])},[(s=t.default)==null?void 0:s.call(t),b])};return()=>h(Gl,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?r():null]})}});const Fc=re(B3),vh={name:rt,disabled:Boolean,iconSize:oe,modelValue:rt,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var rw=G({props:Ee({},vh,{bem:_t(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:Z,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:t,slots:n}){const i=V(),o=f=>{if(e.parent&&e.bindGroup)return e.parent.props[f]},r=N(()=>{if(e.parent&&e.bindGroup){const f=o("disabled")||e.disabled;if(e.role==="checkbox"){const p=o("modelValue").length,b=o("max"),m=b&&p>=+b;return f||m&&!e.checked}return f}return e.disabled}),s=N(()=>o("direction")),a=N(()=>{const f=e.checkedColor||o("checkedColor");if(f&&e.checked&&!r.value)return{borderColor:f,backgroundColor:f}}),l=N(()=>e.shape||o("shape")||"round"),c=f=>{const{target:p}=f,b=i.value,m=b===p||(b==null?void 0:b.contains(p));!r.value&&(m||!e.labelDisabled)&&t("toggle"),t("click",f)},d=()=>{var f,p;const{bem:b,checked:m,indeterminate:g}=e,x=e.iconSize||o("iconSize");return h("div",{ref:i,class:b("icon",[l.value,{disabled:r.value,checked:m,indeterminate:g}]),style:l.value!=="dot"?{fontSize:Ae(x)}:{width:Ae(x),height:Ae(x),borderColor:(f=a.value)==null?void 0:f.borderColor}},[n.icon?n.icon({checked:m,disabled:r.value}):l.value!=="dot"?h(Oe,{name:g?"minus":"success",style:a.value},null):h("div",{class:b("icon--dot__icon"),style:{backgroundColor:(p=a.value)==null?void 0:p.backgroundColor}},null)])},u=()=>{const{checked:f}=e;if(n.default)return h("span",{class:e.bem("label",[e.labelPosition,{disabled:r.value}])},[n.default({checked:f,disabled:r.value})])};return()=>{const f=e.labelPosition==="left"?[u(),d()]:[d(),u()];return h("div",{role:e.role,class:e.bem([{disabled:r.value,"label-disabled":e.labelDisabled},s.value]),tabindex:r.value?void 0:0,"aria-checked":e.checked,onClick:c},[f])}}});const L3=Ee({},vh,{shape:String}),[z3,M3]=te("radio");var F3=G({name:z3,props:L3,emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:i}=Lt(tw),o=()=>(i?i.props.modelValue:e.modelValue)===e.name,r=()=>{i?i.updateValue(e.name):t("update:modelValue",e.name)};return()=>h(rw,De({bem:M3,role:"radio",parent:i,checked:o(),onToggle:r},e),We(n,["default","icon"]))}});const yh=re(F3),[H3,N3]=te("checkbox"),V3=Ee({},vh,{shape:String,bindGroup:Z,indeterminate:{type:Boolean,default:null}});var j3=G({name:H3,props:V3,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:i}=Lt(iw),o=a=>{const{name:l}=e,{max:c,modelValue:d}=i.props,u=d.slice();if(a)!(c&&u.length>=+c)&&!u.includes(l)&&(u.push(l),e.bindGroup&&i.updateValue(u));else{const f=u.indexOf(l);f!==-1&&(u.splice(f,1),e.bindGroup&&i.updateValue(u))}},r=N(()=>i&&e.bindGroup?i.props.modelValue.indexOf(e.name)!==-1:!!e.modelValue),s=(a=!r.value)=>{i&&e.bindGroup?o(a):t("update:modelValue",a),e.indeterminate!==null&&t("change",a)};return le(()=>e.modelValue,a=>{e.indeterminate===null&&t("change",a)}),Fe({toggle:s,props:e,checked:r}),io(()=>e.modelValue),()=>h(rw,De({bem:N3,role:"checkbox",parent:i,checked:r.value,onToggle:s},e),We(n,["default","icon"]))}});const xh=re(j3),[q3,jo]=te("address-item");var U3=G({name:q3,props:{address:_t(Object),disabled:Boolean,switchable:Boolean,singleChoice:Boolean,defaultTagText:String,rightIcon:se("edit")},emits:["edit","click","select"],setup(e,{slots:t,emit:n}){const i=a=>{e.switchable&&n("select"),n("click",a)},o=()=>h(Oe,{name:e.rightIcon,class:jo("edit"),onClick:a=>{a.stopPropagation(),n("edit"),n("click",a)}},null),r=()=>{if(t.tag)return t.tag(e.address);if(e.address.isDefault&&e.defaultTagText)return h(Fc,{type:"primary",round:!0,class:jo("tag")},{default:()=>[e.defaultTagText]})},s=()=>{const{address:a,disabled:l,switchable:c,singleChoice:d}=e,u=[h("div",{class:jo("name")},[`${a.name} ${a.tel}`,r()]),h("div",{class:jo("address")},[a.address])];return c&&!l?d?h(yh,{name:a.id,iconSize:18},{default:()=>[u]}):h(xh,{name:a.id,iconSize:18},{default:()=>[u]}):u};return()=>{var a;const{disabled:l}=e;return h("div",{class:jo({disabled:l}),onClick:i},[h(qn,{border:!1,titleClass:jo("title")},{title:s,"right-icon":o}),(a=t.bottom)==null?void 0:a.call(t,Ee({},e.address,{disabled:l}))])}}});const[W3,Ia,Y3]=te("address-list"),K3={list:it(),modelValue:[...oe,Array],switchable:Z,disabledText:String,disabledList:it(),showAddButton:Z,addButtonText:String,defaultTagText:String,rightIcon:se("edit")};var X3=G({name:W3,props:K3,emits:["add","edit","select","clickItem","editDisabled","selectDisabled","update:modelValue"],setup(e,{slots:t,emit:n}){const i=N(()=>!Array.isArray(e.modelValue)),o=(a,l,c)=>{const d=()=>n(c?"editDisabled":"edit",a,l),u=p=>n("clickItem",a,l,{event:p}),f=()=>{if(n(c?"selectDisabled":"select",a,l),!c)if(i.value)n("update:modelValue",a.id);else{const p=e.modelValue;p.includes(a.id)?n("update:modelValue",p.filter(b=>b!==a.id)):n("update:modelValue",[...p,a.id])}};return h(U3,{key:a.id,address:a,disabled:c,switchable:e.switchable,singleChoice:i.value,defaultTagText:e.defaultTagText,rightIcon:e.rightIcon,onEdit:d,onClick:u,onSelect:f},{bottom:t["item-bottom"],tag:t.tag})},r=(a,l)=>{if(a)return a.map((c,d)=>o(c,d,l))},s=()=>e.showAddButton?h("div",{class:[Ia("bottom"),"van-safe-area-bottom"]},[h(jt,{round:!0,block:!0,type:"primary",text:e.addButtonText||Y3("add"),class:Ia("add"),onClick:()=>n("add")},null)]):void 0;return()=>{var a,l;const c=r(e.list),d=r(e.disabledList,!0),u=e.disabledText&&h("div",{class:Ia("disabled-text")},[e.disabledText]);return h("div",{class:Ia()},[(a=t.top)==null?void 0:a.call(t),!i.value&&Array.isArray(e.modelValue)?h(ow,{modelValue:e.modelValue},{default:()=>[c]}):h(bh,{modelValue:e.modelValue},{default:()=>[c]}),u,d,(l=t.default)==null?void 0:l.call(t),s()])}}});const G3=re(X3);function Z3(e,t){let n=null,i=0;return function(...o){if(n)return;const r=Date.now()-i,s=()=>{i=Date.now(),n=!1,e.apply(this,o)};r>=t?s():n=setTimeout(s,t)}}const[J3,Md]=te("back-top"),Q3={right:oe,bottom:oe,zIndex:oe,target:[String,Object],offset:be(200),immediate:Boolean,teleport:{type:[String,Object],default:"body"}};var e5=G({name:J3,inheritAttrs:!1,props:Q3,emits:["click"],setup(e,{emit:t,slots:n,attrs:i}){let o=!1;const r=V(!1),s=V(),a=V(),l=N(()=>Ee(Pi(e.zIndex),{right:Ae(e.right),bottom:Ae(e.bottom)})),c=p=>{var b;t("click",p),(b=a.value)==null||b.scrollTo({top:0,behavior:e.immediate?"auto":"smooth"})},d=()=>{r.value=a.value?Ti(a.value)>=+e.offset:!1},u=()=>{const{target:p}=e;if(typeof p=="string"){const b=document.querySelector(p);if(b)return b}else return p},f=()=>{kn&&Pe(()=>{a.value=e.target?u():Kf(s.value),d()})};return ft("scroll",Z3(d,100),{target:a}),at(f),ri(()=>{o&&(r.value=!0,o=!1)}),si(()=>{r.value&&e.teleport&&(r.value=!1,o=!0)}),le(()=>e.target,f),()=>{const p=h("div",De({ref:e.teleport?void 0:s,class:Md({active:r.value}),style:l.value,onClick:c},i),[n.default?n.default():h(Oe,{name:"back-top",class:Md("icon")},null)]);return e.teleport?[h("div",{ref:s,class:Md("placeholder")},null),h(to,{to:e.teleport},{default:()=>[p]})]:p}}});const t5=re(e5);var n5=(e,t,n)=>new Promise((i,o)=>{var r=l=>{try{a(n.next(l))}catch(c){o(c)}},s=l=>{try{a(n.throw(l))}catch(c){o(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,s);a((n=n.apply(e,t)).next())});const i5={top:be(10),rows:be(4),duration:be(4e3),autoPlay:Z,delay:kt(300),modelValue:it()},[o5,Mg]=te("barrage");var r5=G({name:o5,props:i5,emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const i=V(),o=Mg("item"),r=V(0),s=[],a=(m,g=e.delay)=>{const x=document.createElement("span");return x.className=o,x.innerText=String(m),x.style.animationDuration=`${e.duration}ms`,x.style.animationDelay=`${g}ms`,x.style.animationName="van-barrage",x.style.animationTimingFunction="linear",x},l=V(!0),c=V(e.autoPlay),d=({id:m,text:g},x)=>{var v;const k=a(g,l.value?x*e.delay:void 0);!e.autoPlay&&c.value===!1&&(k.style.animationPlayState="paused"),(v=i.value)==null||v.append(k),r.value++;const C=(r.value-1)%+e.rows*k.offsetHeight+ +e.top;k.style.top=`${C}px`,k.dataset.id=String(m),s.push(k),k.addEventListener("animationend",()=>{t("update:modelValue",[...e.modelValue].filter(y=>String(y.id)!==k.dataset.id))})},u=(m,g)=>{const x=new Map(g.map(v=>[v.id,v]));m.forEach((v,k)=>{x.has(v.id)?x.delete(v.id):d(v,k)}),x.forEach(v=>{const k=s.findIndex(C=>C.dataset.id===String(v.id));k>-1&&(s[k].remove(),s.splice(k,1))}),l.value=!1};le(()=>e.modelValue.slice(),(m,g)=>u(m??[],g??[]),{deep:!0});const f=V({});return at(()=>n5(this,null,function*(){var m;f.value["--move-distance"]=`-${(m=i.value)==null?void 0:m.offsetWidth}px`,yield Pe(),u(e.modelValue,[])})),Fe({play:()=>{c.value=!0,s.forEach(m=>{m.style.animationPlayState="running"})},pause:()=>{c.value=!1,s.forEach(m=>{m.style.animationPlayState="paused"})}}),()=>{var m;return h("div",{class:Mg(),ref:i,style:f.value},[(m=n.default)==null?void 0:m.call(n)])}}});const s5=re(r5),[a5,ct,Ci]=te("calendar"),l5=e=>Ci("monthTitle",e.getFullYear(),e.getMonth()+1);function xo(e,t){const n=e.getFullYear(),i=t.getFullYear();if(n===i){const o=e.getMonth(),r=t.getMonth();return o===r?0:o>r?1:-1}return n>i?1:-1}function en(e,t){const n=xo(e,t);if(n===0){const i=e.getDate(),o=t.getDate();return i===o?0:i>o?1:-1}return n}const _r=e=>new Date(e),Fg=e=>Array.isArray(e)?e.map(_r):_r(e);function wh(e,t){const n=_r(e);return n.setDate(n.getDate()+t),n}function kh(e,t){const n=_r(e);return n.setMonth(n.getMonth()+t),n.getDate()!==e.getDate()&&n.setDate(0),n}function sw(e,t){const n=_r(e);return n.setFullYear(n.getFullYear()+t),n.getDate()!==e.getDate()&&n.setDate(0),n}const Zu=e=>wh(e,-1),Ju=e=>wh(e,1),Hg=e=>kh(e,-1),Ng=e=>kh(e,1),Vg=e=>sw(e,-1),jg=e=>sw(e,1),Pa=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function c5(e){const t=e[0].getTime();return(e[1].getTime()-t)/(1e3*60*60*24)+1}function d5(e,t=0){const n=new Date(e.getFullYear(),e.getMonth()+1,0),i=t+e.getDate()-1,o=t+n.getDate()-1;return Math.floor(i/7)===Math.floor(o/7)}const aw=Ee({},Lc,{modelValue:it(),filter:Function,formatter:{type:Function,default:(e,t)=>t}}),lw=Object.keys(Lc);function u5(e,t){if(e<0)return[];const n=Array(e);let i=-1;for(;++i<e;)n[i]=t(i);return n}const cw=(e,t)=>32-new Date(e,t-1,32).getDate(),br=(e,t,n,i,o,r)=>{const s=u5(t-e+1,a=>{const l=Rn(e+a);return i(n,{text:l,value:l})});return o?o(n,s,r):s},dw=(e,t)=>e.map((n,i)=>{const o=t[i];if(o.length){const r=+o[0].value,s=+o[o.length-1].value;return Rn(Et(+n,r,s))}return n}),[f5]=te("calendar-day");var h5=G({name:f5,props:{item:_t(Object),color:String,index:Number,offset:kt(0),rowHeight:String},emits:["click","clickDisabledDate"],setup(e,{emit:t,slots:n}){const i=N(()=>{const{item:c,index:d,color:u,offset:f,rowHeight:p}=e,b={height:p};if(c.type==="placeholder")return b.width="100%",b;if(d===0&&(b.marginLeft=`${100*f/7}%`),u)switch(c.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":b.background=u;break;case"middle":b.color=u;break}return c.date&&d5(c.date,f)&&(b.marginBottom=0),b}),o=()=>{e.item.type!=="disabled"?t("click",e.item):t("clickDisabledDate",e.item)},r=()=>{const{topInfo:c}=e.item;if(c||n["top-info"])return h("div",{class:ct("top-info")},[n["top-info"]?n["top-info"](e.item):c])},s=()=>{const{bottomInfo:c}=e.item;if(c||n["bottom-info"])return h("div",{class:ct("bottom-info")},[n["bottom-info"]?n["bottom-info"](e.item):c])},a=()=>n.text?n.text(e.item):e.item.text,l=()=>{const{item:c,color:d,rowHeight:u}=e,{type:f}=c,p=[r(),a(),s()];return f==="selected"?h("div",{class:ct("selected-day"),style:{width:u,height:u,background:d}},[p]):p};return()=>{const{type:c,className:d}=e.item;return c==="placeholder"?h("div",{class:ct("day"),style:i.value},null):h("div",{role:"gridcell",style:i.value,class:[ct("day",c),d],tabindex:c==="disabled"?void 0:-1,onClick:o},[l()])}}});const[p5]=te("calendar-month"),m5={date:_t(Date),type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:oe,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var g5=G({name:p5,props:m5,emits:["click","clickDisabledDate"],setup(e,{emit:t,slots:n}){const[i,o]=XI(),r=V(),s=V(),a=Cx(s),l=N(()=>l5(e.date)),c=N(()=>Ae(e.rowHeight)),d=N(()=>{const A=e.date.getDate(),_=(e.date.getDay()-A%7+8)%7;return e.firstDayOfWeek?(_+7-e.firstDayOfWeek)%7:_}),u=N(()=>cw(e.date.getFullYear(),e.date.getMonth()+1)),f=N(()=>i.value||!e.lazyRender),p=()=>l.value,b=A=>{const w=_=>e.currentDate.some(D=>en(D,_)===0);if(w(A)){const _=Zu(A),D=Ju(A),F=w(_),H=w(D);return F&&H?"multiple-middle":F?"end":H?"start":"multiple-selected"}return""},m=A=>{const[w,_]=e.currentDate;if(!w)return"";const D=en(A,w);if(!_)return D===0?"start":"";const F=en(A,_);return e.allowSameDay&&D===0&&F===0?"start-end":D===0?"start":F===0?"end":D>0&&F<0?"middle":""},g=A=>{const{type:w,minDate:_,maxDate:D,currentDate:F}=e;if(_&&en(A,_)<0||D&&en(A,D)>0)return"disabled";if(F===null)return"";if(Array.isArray(F)){if(w==="multiple")return b(A);if(w==="range")return m(A)}else if(w==="single")return en(A,F)===0?"selected":"";return""},x=A=>{if(e.type==="range"){if(A==="start"||A==="end")return Ci(A);if(A==="start-end")return`${Ci("start")}/${Ci("end")}`}},v=()=>{if(e.showMonthTitle)return h("div",{class:ct("month-title")},[n["month-title"]?n["month-title"]({date:e.date,text:l.value}):l.value])},k=()=>{if(e.showMark&&f.value)return h("div",{class:ct("month-mark")},[e.date.getMonth()+1])},C=N(()=>{const A=Math.ceil((u.value+d.value)/7);return Array(A).fill({type:"placeholder"})}),y=N(()=>{const A=[],w=e.date.getFullYear(),_=e.date.getMonth();for(let D=1;D<=u.value;D++){const F=new Date(w,_,D),H=g(F);let P={date:F,type:H,text:D,bottomInfo:x(H)};e.formatter&&(P=e.formatter(P)),A.push(P)}return A}),E=N(()=>y.value.filter(A=>A.type==="disabled")),$=(A,w)=>{if(r.value){const _=Ye(r.value),D=C.value.length,H=(Math.ceil((w.getDate()+d.value)/7)-1)*_.height/D;Pl(A,_.top+H+A.scrollTop-Ye(A).top)}},S=(A,w)=>h(h5,{item:A,index:w,color:e.color,offset:d.value,rowHeight:c.value,onClick:_=>t("click",_),onClickDisabledDate:_=>t("clickDisabledDate",_)},We(n,["top-info","bottom-info","text"])),T=()=>h("div",{ref:r,role:"grid",class:ct("days")},[k(),(f.value?y:C).value.map(S)]);return Fe({getTitle:p,getHeight:()=>a.value,setVisible:o,scrollToDate:$,disabledDays:E}),()=>h("div",{class:ct("month"),ref:s},[v(),T()])}});const[b5]=te("calendar-header");var v5=G({name:b5,props:{date:Date,minDate:Date,maxDate:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number,switchMode:se("none")},emits:["clickSubtitle","panelChange"],setup(e,{slots:t,emit:n}){const i=N(()=>e.date&&e.minDate&&xo(Hg(e.date),e.minDate)<0),o=N(()=>e.date&&e.minDate&&xo(Vg(e.date),e.minDate)<0),r=N(()=>e.date&&e.maxDate&&xo(Ng(e.date),e.maxDate)>0),s=N(()=>e.date&&e.maxDate&&xo(jg(e.date),e.maxDate)>0),a=()=>{if(e.showTitle){const p=e.title||Ci("title"),b=t.title?t.title():p;return h("div",{class:ct("header-title")},[b])}},l=p=>n("clickSubtitle",p),c=p=>n("panelChange",p),d=p=>{const b=e.switchMode==="year-month",m=t[p?"next-month":"prev-month"],g=t[p?"next-year":"prev-year"],x=p?r.value:i.value,v=p?s.value:o.value,k=p?"arrow":"arrow-left",C=p?"arrow-double-right":"arrow-double-left",y=()=>c((p?Ng:Hg)(e.date)),E=()=>c((p?jg:Vg)(e.date)),$=h("view",{class:ct("header-action",{disabled:x}),onClick:x?void 0:y},[m?m({disabled:x}):h(Oe,{class:{[Vt]:!x},name:k},null)]),S=b&&h("view",{class:ct("header-action",{disabled:v}),onClick:v?void 0:E},[g?g({disabled:v}):h(Oe,{class:{[Vt]:!v},name:C},null)]);return p?[$,S]:[S,$]},u=()=>{if(e.showSubtitle){const p=t.subtitle?t.subtitle({date:e.date,text:e.subtitle}):e.subtitle,b=e.switchMode!=="none";return h("div",{class:ct("header-subtitle",{"with-switch":b}),onClick:l},[b?[d(),h("div",{class:ct("header-subtitle-text")},[p]),d(!0)]:p])}},f=()=>{const{firstDayOfWeek:p}=e,b=Ci("weekdays"),m=[...b.slice(p,7),...b.slice(0,p)];return h("div",{class:ct("weekdays")},[m.map(g=>h("span",{class:ct("weekday")},[g]))])};return()=>h("div",{class:ct("header")},[a(),u(),f()])}});const y5={show:Boolean,type:se("single"),switchMode:se("none"),title:String,color:String,round:Z,readonly:Boolean,poppable:Z,maxRange:be(null),position:se("bottom"),teleport:[String,Object],showMark:Z,showTitle:Z,formatter:Function,rowHeight:oe,confirmText:String,rangePrompt:String,lazyRender:Z,showConfirm:Z,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Z,closeOnPopstate:Z,showRangePrompt:Z,confirmDisabledText:String,closeOnClickOverlay:Z,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Z,minDate:{type:Date,validator:Fs},maxDate:{type:Date,validator:Fs},firstDayOfWeek:{type:oe,default:0,validator:e=>e>=0&&e<=6}};var x5=G({name:a5,props:y5,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle","clickDisabledDate","clickOverlay","panelChange"],setup(e,{emit:t,slots:n}){const i=N(()=>e.switchMode!=="none"),o=N(()=>!e.minDate&&!i.value?Pa():e.minDate),r=N(()=>!e.maxDate&&!i.value?kh(Pa(),6):e.maxDate),s=(q,J=o.value,me=r.value)=>J&&en(q,J)===-1?J:me&&en(q,me)===1?me:q,a=(q=e.defaultDate)=>{const{type:J,allowSameDay:me}=e;if(q===null)return q;const K=Pa();if(J==="range"){Array.isArray(q)||(q=[]),q.length===1&&en(q[0],K)===1&&(q=[]);const de=o.value,O=r.value,Y=s(q[0]||K,de,O?me?O:Zu(O):void 0),j=s(q[1]||(me?K:Ju(K)),de?me?de:Ju(de):void 0);return[Y,j]}return J==="multiple"?Array.isArray(q)?q.map(de=>s(de)):[s(K)]:((!q||Array.isArray(q))&&(q=K),s(q))},l=()=>{const q=Array.isArray(u.value)?u.value[0]:u.value;return q||s(Pa())};let c;const d=V(),u=V(a()),f=V(l()),p=V(),[b,m]=sa(),g=N(()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0),x=N(()=>{const q=[];if(!o.value||!r.value)return q;const J=new Date(o.value);J.setDate(1);do q.push(new Date(J)),J.setMonth(J.getMonth()+1);while(xo(J,r.value)!==1);return q}),v=N(()=>{if(u.value){if(e.type==="range")return!u.value[0]||!u.value[1];if(e.type==="multiple")return!u.value.length}return!u.value}),k=()=>u.value,C=()=>{const q=Ti(d.value),J=q+c,me=x.value.map((j,Q)=>b.value[Q].getHeight()),K=me.reduce((j,Q)=>j+Q,0);if(J>K&&q>0)return;let de=0,O;const Y=[-1,-1];for(let j=0;j<x.value.length;j++){const Q=b.value[j];de<=J&&de+me[j]>=q&&(Y[1]=j,O||(O=Q,Y[0]=j),b.value[j].showed||(b.value[j].showed=!0,t("monthShow",{date:Q.date,title:Q.getTitle()}))),de+=me[j]}x.value.forEach((j,Q)=>{const ye=Q>=Y[0]-1&&Q<=Y[1]+1;b.value[Q].setVisible(ye)}),O&&(p.value=O)},y=q=>{i.value?f.value=q:Ht(()=>{x.value.some((J,me)=>xo(J,q)===0?(d.value&&b.value[me].scrollToDate(d.value,q),!0):!1),C()})},E=()=>{if(!(e.poppable&&!e.show))if(u.value){const q=e.type==="single"?u.value:u.value[0];Fs(q)&&y(q)}else i.value||Ht(C)},$=()=>{e.poppable&&!e.show||(i.value||Ht(()=>{c=Math.floor(Ye(d).height)}),E())},S=(q=a())=>{u.value=q,E()},T=q=>{const{maxRange:J,rangePrompt:me,showRangePrompt:K}=e;return J&&c5(q)>+J?(K&&Gu(me||Ci("rangePrompt",J)),t("overRange"),!1):!0},A=q=>{f.value=q,t("panelChange",{date:q})},w=()=>{var q;return t("confirm",(q=u.value)!=null?q:Fg(u.value))},_=(q,J)=>{const me=K=>{u.value=K,t("select",Fg(K))};if(J&&e.type==="range"&&!T(q)){me([q[0],wh(q[0],+e.maxRange-1)]);return}me(q),J&&!e.showConfirm&&w()},D=(q,J,me)=>{var K;return(K=q.find(de=>en(J,de.date)===-1&&en(de.date,me)===-1))==null?void 0:K.date},F=N(()=>b.value.reduce((q,J)=>{var me,K;return q.push(...(K=(me=J.disabledDays)==null?void 0:me.value)!=null?K:[]),q},[])),H=q=>{if(e.readonly||!q.date)return;const{date:J}=q,{type:me}=e;if(me==="range"){if(!u.value){_([J]);return}const[K,de]=u.value;if(K&&!de){const O=en(J,K);if(O===1){const Y=D(F.value,K,J);if(Y){const j=Zu(Y);en(K,j)===-1?_([K,j]):_([J])}else _([K,J],!0)}else O===-1?_([J]):e.allowSameDay&&_([J,J],!0)}else _([J])}else if(me==="multiple"){if(!u.value){_([J]);return}const K=u.value,de=K.findIndex(O=>en(O,J)===0);if(de!==-1){const[O]=K.splice(de,1);t("unselect",_r(O))}else e.maxRange&&K.length>=+e.maxRange?Gu(e.rangePrompt||Ci("rangePrompt",e.maxRange)):_([...K,J])}else _(J,!0)},P=q=>t("clickOverlay",q),M=q=>t("update:show",q),L=(q,J)=>{const me=J!==0||!e.showSubtitle;return h(g5,De({ref:i.value?p:m(J),date:q,currentDate:u.value,showMonthTitle:me,firstDayOfWeek:g.value,lazyRender:i.value?!1:e.lazyRender,maxDate:r.value,minDate:o.value},We(e,["type","color","showMark","formatter","rowHeight","showSubtitle","allowSameDay"]),{onClick:H,onClickDisabledDate:K=>t("clickDisabledDate",K)}),We(n,["top-info","bottom-info","month-title","text"]))},ce=()=>{if(n.footer)return n.footer();if(e.showConfirm){const q=n["confirm-text"],J=v.value,me=J?e.confirmDisabledText:e.confirmText;return h(jt,{round:!0,block:!0,type:"primary",color:e.color,class:ct("confirm"),disabled:J,nativeType:"button",onClick:w},{default:()=>[q?q({disabled:J}):me||Ci("confirm")]})}},fe=()=>h("div",{class:[ct("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[ce()]),ie=()=>{var q,J;return h("div",{class:ct()},[h(v5,{date:(q=p.value)==null?void 0:q.date,maxDate:r.value,minDate:o.value,title:e.title,subtitle:(J=p.value)==null?void 0:J.getTitle(),showTitle:e.showTitle,showSubtitle:e.showSubtitle,switchMode:e.switchMode,firstDayOfWeek:g.value,onClickSubtitle:me=>t("clickSubtitle",me),onPanelChange:A},We(n,["title","subtitle","prev-month","prev-year","next-month","next-year"])),h("div",{ref:d,class:ct("body"),onScroll:i.value?void 0:C},[i.value?L(f.value,0):x.value.map(L)]),fe()])};return le(()=>e.show,$),le(()=>[e.type,e.minDate,e.maxDate,e.switchMode],()=>S(a(u.value))),le(()=>e.defaultDate,q=>{S(q)}),Fe({reset:S,scrollToDate:y,getSelectedDate:k}),Pr($),()=>e.poppable?h(jn,{show:e.show,class:ct("popup"),round:e.round,position:e.position,closeable:e.showTitle||e.showSubtitle,teleport:e.teleport,closeOnPopstate:e.closeOnPopstate,safeAreaInsetTop:e.safeAreaInsetTop,closeOnClickOverlay:e.closeOnClickOverlay,onClickOverlay:P,"onUpdate:show":M},{default:ie}):ie()}});const w5=re(x5),[k5,qo]=te("image"),S5={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:oe,height:oe,radius:oe,lazyLoad:Boolean,iconSize:oe,showError:Z,errorIcon:se("photo-fail"),iconPrefix:String,showLoading:Z,loadingIcon:se("photo"),crossorigin:String,referrerpolicy:String};var C5=G({name:k5,props:S5,emits:["load","error"],setup(e,{emit:t,slots:n}){const i=V(!1),o=V(!0),r=V(),{$Lazyload:s}=sn().proxy,a=N(()=>{const g={width:Ae(e.width),height:Ae(e.height)};return qe(e.radius)&&(g.overflow="hidden",g.borderRadius=Ae(e.radius)),g});le(()=>e.src,()=>{i.value=!1,o.value=!0});const l=g=>{o.value&&(o.value=!1,t("load",g))},c=()=>{const g=new Event("load");Object.defineProperty(g,"target",{value:r.value,enumerable:!0}),l(g)},d=g=>{i.value=!0,o.value=!1,t("error",g)},u=(g,x,v)=>v?v():h(Oe,{name:g,size:e.iconSize,class:x,classPrefix:e.iconPrefix},null),f=()=>{if(o.value&&e.showLoading)return h("div",{class:qo("loading")},[u(e.loadingIcon,qo("loading-icon"),n.loading)]);if(i.value&&e.showError)return h("div",{class:qo("error")},[u(e.errorIcon,qo("error-icon"),n.error)])},p=()=>{if(i.value||!e.src)return;const g={alt:e.alt,class:qo("img"),style:{objectFit:e.fit,objectPosition:e.position},crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy};return e.lazyLoad?At(h("img",De({ref:r},g),null),[[_k("lazy"),e.src]]):h("img",De({ref:r,src:e.src,onLoad:l,onError:d},g),null)},b=({el:g})=>{const x=()=>{g===r.value&&o.value&&c()};r.value?x():Pe(x)},m=({el:g})=>{g===r.value&&!i.value&&d()};return s&&kn&&(s.$on("loaded",b),s.$on("error",m),ai(()=>{s.$off("loaded",b),s.$off("error",m)})),at(()=>{Pe(()=>{var g;(g=r.value)!=null&&g.complete&&!e.lazyLoad&&c()})}),()=>{var g;return h("div",{class:qo({round:e.round,block:e.block}),style:a.value},[p(),f(),(g=n.default)==null?void 0:g.call(n)])}}});const Hc=re(C5),[E5,Kt]=te("card"),$5={tag:String,num:oe,desc:String,thumb:String,title:String,price:oe,centered:Boolean,lazyLoad:Boolean,currency:se("¥"),thumbLink:String,originPrice:oe};var T5=G({name:E5,props:$5,emits:["clickThumb"],setup(e,{slots:t,emit:n}){const i=()=>{if(t.title)return t.title();if(e.title)return h("div",{class:[Kt("title"),"van-multi-ellipsis--l2"]},[e.title])},o=()=>{if(t.tag||e.tag)return h("div",{class:Kt("tag")},[t.tag?t.tag():h(Fc,{mark:!0,type:"primary"},{default:()=>[e.tag]})])},r=()=>t.thumb?t.thumb():h(Hc,{src:e.thumb,fit:"cover",width:"100%",height:"100%",lazyLoad:e.lazyLoad},null),s=()=>{if(t.thumb||e.thumb)return h("a",{href:e.thumbLink,class:Kt("thumb"),onClick:c=>n("clickThumb",c)},[r(),o()])},a=()=>{if(t.desc)return t.desc();if(e.desc)return h("div",{class:[Kt("desc"),"van-ellipsis"]},[e.desc])},l=()=>{const c=e.price.toString().split(".");return h("div",null,[h("span",{class:Kt("price-currency")},[e.currency]),h("span",{class:Kt("price-integer")},[c[0]]),c.length>1&&h(dt,null,[Ef("."),h("span",{class:Kt("price-decimal")},[c[1]])])])};return()=>{var c,d,u;const f=t.num||qe(e.num),p=t.price||qe(e.price),b=t["origin-price"]||qe(e.originPrice),m=f||p||b||t.bottom,g=p&&h("div",{class:Kt("price")},[t.price?t.price():l()]),x=b&&h("div",{class:Kt("origin-price")},[t["origin-price"]?t["origin-price"]():`${e.currency} ${e.originPrice}`]),v=f&&h("div",{class:Kt("num")},[t.num?t.num():`x${e.num}`]),k=t.footer&&h("div",{class:Kt("footer")},[t.footer()]),C=m&&h("div",{class:Kt("bottom")},[(c=t["price-top"])==null?void 0:c.call(t),g,x,v,(d=t.bottom)==null?void 0:d.call(t)]);return h("div",{class:Kt()},[h("div",{class:Kt("header")},[s(),h("div",{class:Kt("content",{centered:e.centered})},[h("div",null,[i(),a(),(u=t.tags)==null?void 0:u.call(t)]),C])]),k])}}});const _5=re(T5),[A5,hi,O5]=te("cascader"),R5={title:String,options:it(),closeable:Z,swipeable:Z,closeIcon:se("cross"),showHeader:Z,modelValue:oe,fieldNames:Object,placeholder:String,activeColor:String};var I5=G({name:A5,props:R5,emits:["close","change","finish","clickTab","update:modelValue"],setup(e,{slots:t,emit:n}){const i=V([]),o=V(0),[r,s]=sa(),{text:a,value:l,children:c}=Ee({text:"text",value:"value",children:"children"},e.fieldNames),d=(y,E)=>{for(const $ of y){if($[l]===E)return[$];if($[c]){const S=d($[c],E);if(S)return[$,...S]}}},u=()=>{const{options:y,modelValue:E}=e;if(E!==void 0){const $=d(y,E);if($){let S=y;i.value=$.map(T=>{const A={options:S,selected:T},w=S.find(_=>_[l]===T[l]);return w&&(S=w[c]),A}),S&&i.value.push({options:S,selected:null}),Pe(()=>{o.value=i.value.length-1});return}}i.value=[{options:y,selected:null}]},f=(y,E)=>{if(y.disabled)return;if(i.value[E].selected=y,i.value.length>E+1&&(i.value=i.value.slice(0,E+1)),y[c]){const T={options:y[c],selected:null};i.value[E+1]?i.value[E+1]=T:i.value.push(T),Pe(()=>{o.value++})}const $=i.value.map(T=>T.selected).filter(Boolean);n("update:modelValue",y[l]);const S={value:y[l],tabIndex:E,selectedOptions:$};n("change",S),y[c]||n("finish",S)},p=()=>n("close"),b=({name:y,title:E})=>n("clickTab",y,E),m=()=>e.showHeader?h("div",{class:hi("header")},[h("h2",{class:hi("title")},[t.title?t.title():e.title]),e.closeable?h(Oe,{name:e.closeIcon,class:[hi("close-icon"),Vt],onClick:p},null):null]):null,g=(y,E,$)=>{const{disabled:S}=y,T=!!(E&&y[l]===E[l]),A=y.color||(T?e.activeColor:void 0),w=t.option?t.option({option:y,selected:T}):h("span",null,[y[a]]);return h("li",{ref:T?s($):void 0,role:"menuitemradio",class:[hi("option",{selected:T,disabled:S}),y.className],style:{color:A},tabindex:S?void 0:T?0:-1,"aria-checked":T,"aria-disabled":S||void 0,onClick:()=>f(y,$)},[w,T?h(Oe,{name:"success",class:hi("selected-icon")},null):null])},x=(y,E,$)=>h("ul",{role:"menu",class:hi("options")},[y.map(S=>g(S,E,$))]),v=(y,E)=>{const{options:$,selected:S}=y,T=e.placeholder||O5("select"),A=S?S[a]:T;return h(Ns,{title:A,titleClass:hi("tab",{unselected:!S})},{default:()=>{var w,_;return[(w=t["options-top"])==null?void 0:w.call(t,{tabIndex:E}),x($,S,E),(_=t["options-bottom"])==null?void 0:_.call(t,{tabIndex:E})]}})},k=()=>h(Bc,{active:o.value,"onUpdate:active":y=>o.value=y,shrink:!0,animated:!0,class:hi("tabs"),color:e.activeColor,swipeable:e.swipeable,onClickTab:b},{default:()=>[i.value.map(v)]}),C=y=>{const E=y.parentElement;E&&(E.scrollTop=y.offsetTop-(E.offsetHeight-y.offsetHeight)/2)};return u(),le(o,y=>{const E=r.value[y];E&&C(E)}),le(()=>e.options,u,{deep:!0}),le(()=>e.modelValue,y=>{y!==void 0&&i.value.map($=>{var S;return(S=$.selected)==null?void 0:S[l]}).includes(y)||u()}),()=>h("div",{class:hi()},[m(),k()])}});const P5=re(I5),[D5,qg]=te("cell-group"),B5={title:String,inset:Boolean,border:Z};var L5=G({name:D5,inheritAttrs:!1,props:B5,setup(e,{slots:t,attrs:n}){const i=()=>{var r;return h("div",De({class:[qg({inset:e.inset}),{[Rc]:e.border&&!e.inset}]},n,Bl()),[(r=t.default)==null?void 0:r.call(t)])},o=()=>h("div",{class:qg("title",{inset:e.inset})},[t.title?t.title():e.title]);return()=>e.title||t.title?h(dt,null,[o(),i()]):i()}});const z5=re(L5),[M5,Da]=te("circle");let F5=0;const Ug=e=>Math.min(Math.max(+e,0),100);function H5(e,t){const n=e?1:0;return`M ${t/2} ${t/2} m 0, -500 a 500, 500 0 1, ${n} 0, 1000 a 500, 500 0 1, ${n} 0, -1000`}const N5={text:String,size:oe,fill:se("none"),rate:be(100),speed:be(0),color:[String,Object],clockwise:Z,layerColor:String,currentRate:kt(0),strokeWidth:be(40),strokeLinecap:String,startPosition:se("top")};var V5=G({name:M5,props:N5,emits:["update:currentRate"],setup(e,{emit:t,slots:n}){const i=`van-circle-${F5++}`,o=N(()=>+e.strokeWidth+1e3),r=N(()=>H5(e.clockwise,o.value)),s=N(()=>{const f={top:0,right:90,bottom:180,left:270}[e.startPosition];if(f)return{transform:`rotate(${f}deg)`}});le(()=>e.rate,u=>{let f;const p=Date.now(),b=e.currentRate,m=Ug(u),g=Math.abs((b-m)*1e3/+e.speed),x=()=>{const v=Date.now(),C=Math.min((v-p)/g,1)*(m-b)+b;t("update:currentRate",Ug(parseFloat(C.toFixed(1)))),(m>b?C<m:C>m)&&(f=Ht(x))};e.speed?(f&&yc(f),f=Ht(x)):t("update:currentRate",m)},{immediate:!0});const a=()=>{const{strokeWidth:f,currentRate:p,strokeLinecap:b}=e,m=3140*p/100,g=Hn(e.color)?`url(#${i})`:e.color,x={stroke:g,strokeWidth:`${+f+1}px`,strokeLinecap:b,strokeDasharray:`${m}px 3140px`};return h("path",{d:r.value,style:x,class:Da("hover"),stroke:g},null)},l=()=>{const u={fill:e.fill,stroke:e.layerColor,strokeWidth:`${e.strokeWidth}px`};return h("path",{class:Da("layer"),style:u,d:r.value},null)},c=()=>{const{color:u}=e;if(!Hn(u))return;const f=Object.keys(u).sort((p,b)=>parseFloat(p)-parseFloat(b)).map((p,b)=>h("stop",{key:b,offset:p,"stop-color":u[p]},null));return h("defs",null,[h("linearGradient",{id:i,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[f])])},d=()=>{if(n.default)return n.default();if(e.text)return h("div",{class:Da("text")},[e.text])};return()=>h("div",{class:Da(),style:Ii(e.size)},[h("svg",{viewBox:`0 0 ${o.value} ${o.value}`,style:s.value},[c(),l(),a()]),d()])}});const j5=re(V5),[uw,q5]=te("row"),fw=Symbol(uw),U5={tag:se("div"),wrap:Z,align:String,gutter:{type:[String,Number,Array],default:0},justify:String};var W5=G({name:uw,props:U5,setup(e,{slots:t}){const{children:n,linkChildren:i}=qt(fw),o=N(()=>{const a=[[]];let l=0;return n.forEach((c,d)=>{l+=Number(c.span),l>24?(a.push([d]),l-=24):a[a.length-1].push(d)}),a}),r=N(()=>{let a=0;Array.isArray(e.gutter)?a=Number(e.gutter[0])||0:a=Number(e.gutter);const l=[];return a&&o.value.forEach(c=>{const d=a*(c.length-1)/c.length;c.forEach((u,f)=>{if(f===0)l.push({right:d});else{const p=a-l[u-1].right,b=d-p;l.push({left:p,right:b})}})}),l}),s=N(()=>{const{gutter:a}=e,l=[];if(Array.isArray(a)&&a.length>1){const c=Number(a[1])||0;if(c<=0)return l;o.value.forEach((d,u)=>{u!==o.value.length-1&&d.forEach(()=>{l.push({bottom:c})})})}return l});return i({spaces:r,verticalSpaces:s}),()=>{const{tag:a,wrap:l,align:c,justify:d}=e;return h(a,{class:q5({[`align-${c}`]:c,[`justify-${d}`]:d,nowrap:!l})},{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t)]}})}}});const[Y5,K5]=te("col"),X5={tag:se("div"),span:be(0),offset:oe};var G5=G({name:Y5,props:X5,setup(e,{slots:t}){const{parent:n,index:i}=Lt(fw),o=N(()=>{if(!n)return;const{spaces:r,verticalSpaces:s}=n;let a={};if(r&&r.value&&r.value[i.value]){const{left:c,right:d}=r.value[i.value];a={paddingLeft:c?`${c}px`:null,paddingRight:d?`${d}px`:null}}const{bottom:l}=s.value[i.value]||{};return Ee(a,{marginBottom:l?`${l}px`:null})});return()=>{const{tag:r,span:s,offset:a}=e;return h(r,{style:o.value,class:K5({[s]:s,[`offset-${a}`]:a})},{default:()=>{var l;return[(l=t.default)==null?void 0:l.call(t)]}})}}});const Z5=re(G5),[hw,J5]=te("collapse"),pw=Symbol(hw),Q5={border:Z,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var e6=G({name:hw,props:Q5,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:i,children:o}=qt(pw),r=c=>{t("change",c),t("update:modelValue",c)},s=(c,d)=>{const{accordion:u,modelValue:f}=e;r(u?c===f?"":c:d?f.concat(c):f.filter(p=>p!==c))},a=(c={})=>{if(e.accordion)return;typeof c=="boolean"&&(c={expanded:c});const{expanded:d,skipDisabled:u}=c,p=o.filter(b=>b.disabled&&u?b.expanded.value:d??!b.expanded.value).map(b=>b.itemName.value);r(p)},l=c=>{const{accordion:d,modelValue:u}=e;return d?u===c:u.includes(c)};return Fe({toggleAll:a}),i({toggle:s,isExpanded:l}),()=>{var c;return h("div",{class:[J5(),{[Rc]:e.border}]},[(c=n.default)==null?void 0:c.call(n)])}}});const t6=re(e6),[n6,Ba]=te("collapse-item"),i6=["icon","title","value","label","right-icon"],o6=Ee({},Mc,{name:oe,isLink:Z,disabled:Boolean,readonly:Boolean,lazyRender:Z});var r6=G({name:n6,props:o6,setup(e,{slots:t}){const n=V(),i=V(),{parent:o,index:r}=Lt(pw);if(!o)return;const s=N(()=>{var m;return(m=e.name)!=null?m:r.value}),a=N(()=>o.isExpanded(s.value)),l=V(a.value),c=dh(()=>l.value||!e.lazyRender),d=()=>{a.value?n.value&&(n.value.style.height=""):l.value=!1};le(a,(m,g)=>{if(g===null)return;m&&(l.value=!0),(m?Pe:Ht)(()=>{if(!i.value||!n.value)return;const{offsetHeight:v}=i.value;if(v){const k=`${v}px`;n.value.style.height=m?"0":k,Yi(()=>{n.value&&(n.value.style.height=m?k:"0")})}else d()})});const u=(m=!a.value)=>{o.toggle(s.value,m)},f=()=>{!e.disabled&&!e.readonly&&u()},p=()=>{const{border:m,disabled:g,readonly:x}=e,v=We(e,Object.keys(Mc));return x&&(v.isLink=!1),(g||x)&&(v.clickable=!1),h(qn,De({role:"button",class:Ba("title",{disabled:g,expanded:a.value,borderless:!m}),"aria-expanded":String(a.value),onClick:f},v),We(t,i6))},b=c(()=>{var m;return At(h("div",{ref:n,class:Ba("wrapper"),onTransitionend:d},[h("div",{ref:i,class:Ba("content")},[(m=t.default)==null?void 0:m.call(t)])]),[[Pt,l.value]])});return Fe({toggle:u,expanded:a,itemName:s}),()=>h("div",{class:[Ba({border:r.value&&e.border})]},[p(),b()])}});const s6=re(r6),a6=re(CL),[l6,Wg,Fd]=te("contact-card"),c6={tel:String,name:String,type:se("add"),addText:String,editable:Z};var d6=G({name:l6,props:c6,emits:["click"],setup(e,{emit:t}){const n=o=>{e.editable&&t("click",o)},i=()=>e.type==="add"?e.addText||Fd("addContact"):[h("div",null,[`${Fd("name")}:${e.name}`]),h("div",null,[`${Fd("tel")}:${e.tel}`])];return()=>h(qn,{center:!0,icon:e.type==="edit"?"contact":"add-square",class:Wg([e.type]),border:!1,isLink:e.editable,titleClass:Wg("title"),onClick:n},{title:i})}});const u6=re(d6),[f6,Uo,Mi]=te("contact-edit"),Qu={tel:"",name:""},h6={isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:()=>Ee({},Qu)},telValidator:{type:Function,default:fx}};var p6=G({name:f6,props:h6,emits:["save","delete","changeDefault"],setup(e,{emit:t}){const n=nt(Ee({},Qu,e.contactInfo)),i=()=>{e.isSaving||t("save",n)},o=()=>t("delete",n),r=()=>h("div",{class:Uo("buttons")},[h(jt,{block:!0,round:!0,type:"primary",text:Mi("save"),class:Uo("button"),loading:e.isSaving,nativeType:"submit"},null),e.isEdit&&h(jt,{block:!0,round:!0,text:Mi("delete"),class:Uo("button"),loading:e.isDeleting,onClick:o},null)]),s=()=>h(gh,{modelValue:n.isDefault,"onUpdate:modelValue":l=>n.isDefault=l,onChange:l=>t("changeDefault",l)},null),a=()=>{if(e.showSetDefault)return h(qn,{title:e.setDefaultLabel,class:Uo("switch-cell"),border:!1},{"right-icon":s})};return le(()=>e.contactInfo,l=>Ee(n,Qu,l)),()=>h(ph,{class:Uo(),onSubmit:i},{default:()=>[h("div",{class:Uo("fields")},[h(Si,{modelValue:n.name,"onUpdate:modelValue":l=>n.name=l,clearable:!0,label:Mi("name"),rules:[{required:!0,message:Mi("nameEmpty")}],maxlength:"30",placeholder:Mi("name")},null),h(Si,{modelValue:n.tel,"onUpdate:modelValue":l=>n.tel=l,clearable:!0,type:"tel",label:Mi("tel"),rules:[{validator:e.telValidator,message:Mi("telInvalid")}],placeholder:Mi("tel")},null)]),a(),r()]})}});const m6=re(p6),[g6,pi,b6]=te("contact-list"),v6={list:Array,addText:String,modelValue:rt,defaultTagText:String};var y6=G({name:g6,props:v6,emits:["add","edit","select","update:modelValue"],setup(e,{emit:t}){const n=(i,o)=>{const r=()=>{t("update:modelValue",i.id),t("select",i,o)},s=()=>h(yh,{class:pi("radio"),name:i.id,iconSize:18},null),a=()=>h(Oe,{name:"edit",class:pi("edit"),onClick:c=>{c.stopPropagation(),t("edit",i,o)}},null),l=()=>{const c=[`${i.name},${i.tel}`];return i.isDefault&&e.defaultTagText&&c.push(h(Fc,{type:"primary",round:!0,class:pi("item-tag")},{default:()=>[e.defaultTagText]})),c};return h(qn,{key:i.id,isLink:!0,center:!0,class:pi("item"),titleClass:pi("item-title"),onClick:r},{icon:a,title:l,"right-icon":s})};return()=>h("div",{class:pi()},[h(bh,{modelValue:e.modelValue,class:pi("group")},{default:()=>[e.list&&e.list.map(n)]}),h("div",{class:[pi("bottom"),"van-safe-area-bottom"]},[h(jt,{round:!0,block:!0,type:"primary",class:pi("add"),text:e.addText||b6("addContact"),onClick:()=>t("add")},null)])])}});const x6=re(y6);function w6(e,t){const{days:n}=t;let{hours:i,minutes:o,seconds:r,milliseconds:s}=t;if(e.includes("DD")?e=e.replace("DD",Rn(n)):i+=n*24,e.includes("HH")?e=e.replace("HH",Rn(i)):o+=i*60,e.includes("mm")?e=e.replace("mm",Rn(o)):r+=o*60,e.includes("ss")?e=e.replace("ss",Rn(r)):s+=r*1e3,e.includes("S")){const a=Rn(s,3);e.includes("SSS")?e=e.replace("SSS",a):e.includes("SS")?e=e.replace("SS",a.slice(0,2)):e=e.replace("S",a.charAt(0))}return e}const[k6,S6]=te("count-down"),C6={time:be(0),format:se("HH:mm:ss"),autoStart:Z,millisecond:Boolean};var E6=G({name:k6,props:C6,emits:["change","finish"],setup(e,{emit:t,slots:n}){const{start:i,pause:o,reset:r,current:s}=eP({time:+e.time,millisecond:e.millisecond,onChange:c=>t("change",c),onFinish:()=>t("finish")}),a=N(()=>w6(e.format,s.value)),l=()=>{r(+e.time),e.autoStart&&i()};return le(()=>e.time,l,{immediate:!0}),Fe({start:i,pause:o,reset:l}),()=>h("div",{role:"timer",class:S6()},[n.default?n.default(s.value):a.value])}});const $6=re(E6);function Yg(e){const t=new Date(e*1e3);return`${t.getFullYear()}.${Rn(t.getMonth()+1)}.${Rn(t.getDate())}`}const T6=e=>(e/10).toFixed(e%10===0?0:1),Kg=e=>(e/100).toFixed(e%100===0?0:e%10===0?1:2),[_6,Kn,Hd]=te("coupon");var A6=G({name:_6,props:{chosen:Boolean,coupon:_t(Object),disabled:Boolean,currency:se("¥")},setup(e){const t=N(()=>{const{startAt:o,endAt:r}=e.coupon;return`${Yg(o)} - ${Yg(r)}`}),n=N(()=>{const{coupon:o,currency:r}=e;if(o.valueDesc)return[o.valueDesc,h("span",null,[o.unitDesc||""])];if(o.denominations){const s=Kg(o.denominations);return[h("span",null,[r]),` ${s}`]}return o.discount?Hd("discount",T6(o.discount)):""}),i=N(()=>{const o=Kg(e.coupon.originCondition||0);return o==="0"?Hd("unlimited"):Hd("condition",o)});return()=>{const{chosen:o,coupon:r,disabled:s}=e,a=s&&r.reason||r.description;return h("div",{class:Kn({disabled:s})},[h("div",{class:Kn("content")},[h("div",{class:Kn("head")},[h("h2",{class:Kn("amount")},[n.value]),h("p",{class:Kn("condition")},[r.condition||i.value])]),h("div",{class:Kn("body")},[h("p",{class:Kn("name")},[r.name]),h("p",{class:Kn("valid")},[t.value]),!s&&h(xh,{class:Kn("corner"),modelValue:o},null)])]),a&&h("p",{class:Kn("description")},[a])])}}});const ef=re(A6),[O6,Xg,tf]=te("coupon-cell"),R6={title:String,border:Z,editable:Z,coupons:it(),currency:se("¥"),chosenCoupon:{type:[Number,Array],default:-1}},I6=e=>{const{value:t,denominations:n}=e;return qe(t)?t:qe(n)?n:0};function P6({coupons:e,chosenCoupon:t,currency:n}){let i=0,o=!1;return(Array.isArray(t)?t:[t]).forEach(r=>{const s=e[+r];s&&(o=!0,i+=I6(s))}),o?`-${n} ${(i/100).toFixed(2)}`:e.length===0?tf("noCoupon"):tf("count",e.length)}var D6=G({name:O6,props:R6,setup(e){return()=>{const t=Array.isArray(e.chosenCoupon)?e.chosenCoupon.length:e.coupons[+e.chosenCoupon];return h(qn,{class:Xg(),value:P6(e),title:e.title||tf("title"),border:e.border,isLink:e.editable,valueClass:Xg("value",{selected:t})},null)}}});const B6=re(D6),[L6,La]=te("empty"),z6={image:se("default"),imageSize:[Number,String,Array],description:String};var M6=G({name:L6,props:z6,setup(e,{slots:t}){const n=()=>{const x=t.description?t.description():e.description;if(x)return h("p",{class:La("description")},[x])},i=()=>{if(t.default)return h("div",{class:La("bottom")},[t.default()])},o=Hr(),r=x=>`${o}-${x}`,s=x=>`url(#${r(x)})`,a=(x,v,k)=>h("stop",{"stop-color":x,offset:`${v}%`,"stop-opacity":k},null),l=(x,v)=>[a(x,0),a(v,100)],c=x=>[h("defs",null,[h("radialGradient",{id:r(x),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)","data-allow-mismatch":"attribute"},[a("#EBEDF0",0),a("#F2F3F5",100,.3)])]),h("ellipse",{fill:s(x),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],d=()=>[h("defs",null,[h("linearGradient",{id:r("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[a("#FFF",0,.5),a("#F2F3F5",100)])]),h("g",{opacity:".8","data-allow-mismatch":"children"},[h("path",{d:"M36 131V53H16v20H2v58h34z",fill:s("a")},null),h("path",{d:"M123 15h22v14h9v77h-31V15z",fill:s("a")},null)])],u=()=>[h("defs",null,[h("linearGradient",{id:r("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[a("#F2F3F5",0,.3),a("#F2F3F5",100)])]),h("g",{opacity:".8","data-allow-mismatch":"children"},[h("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:s("b")},null),h("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:s("b")},null)])],f=()=>h("svg",{viewBox:"0 0 160 160"},[h("defs",{"data-allow-mismatch":"children"},[h("linearGradient",{id:r(1),x1:"64%",y1:"100%",x2:"64%"},[a("#FFF",0,.5),a("#F2F3F5",100)]),h("linearGradient",{id:r(2),x1:"50%",x2:"50%",y2:"84%"},[a("#EBEDF0",0),a("#DCDEE0",100,0)]),h("linearGradient",{id:r(3),x1:"100%",x2:"100%",y2:"100%"},[l("#EAEDF0","#DCDEE0")]),h("radialGradient",{id:r(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[a("#EBEDF0",0),a("#FFF",100,0)])]),h("g",{fill:"none"},[d(),h("path",{fill:s(4),d:"M0 139h160v21H0z","data-allow-mismatch":"attribute"},null),h("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:s(2),"data-allow-mismatch":"attribute"},null),h("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7","data-allow-mismatch":"children"},[h("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:s(3)},null),h("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:s(3)},null),h("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:s(3)},null),h("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:s(3)},null)]),h("g",{transform:"translate(31 105)"},[h("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),h("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),h("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),p=()=>h("svg",{viewBox:"0 0 160 160"},[h("defs",{"data-allow-mismatch":"children"},[h("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(5)},[l("#F2F3F5","#DCDEE0")]),h("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:r(6)},[l("#EAEDF1","#DCDEE0")]),h("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:r(7)},[l("#EAEDF1","#DCDEE0")])]),d(),u(),h("g",{transform:"translate(36 50)",fill:"none"},[h("g",{transform:"translate(8)"},[h("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),h("rect",{fill:s(5),width:"64",height:"66",rx:"2","data-allow-mismatch":"attribute"},null),h("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),h("g",{transform:"translate(15 17)",fill:s(6),"data-allow-mismatch":"attribute"},[h("rect",{width:"34",height:"6",rx:"1"},null),h("path",{d:"M0 14h34v6H0z"},null),h("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),h("rect",{fill:s(7),y:"61",width:"88",height:"28",rx:"1","data-allow-mismatch":"attribute"},null),h("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),b=()=>h("svg",{viewBox:"0 0 160 160"},[h("defs",null,[h("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(8),"data-allow-mismatch":"attribute"},[l("#EAEDF1","#DCDEE0")])]),d(),u(),c("c"),h("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:s(8),"data-allow-mismatch":"attribute"},null)]),m=()=>h("svg",{viewBox:"0 0 160 160"},[h("defs",{"data-allow-mismatch":"children"},[h("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:r(9)},[l("#EEE","#D8D8D8")]),h("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:r(10)},[l("#F2F3F5","#DCDEE0")]),h("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(11)},[l("#F2F3F5","#DCDEE0")]),h("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(12)},[l("#FFF","#F7F8FA")])]),d(),u(),c("d"),h("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[h("rect",{fill:s(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),h("rect",{fill:s(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),h("circle",{stroke:s(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),h("circle",{fill:s(12),cx:"27",cy:"27",r:"16"},null),h("path",{d:"M37 7c-8 0-15 5-16 12",stroke:s(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),g=()=>{var x;if(t.image)return t.image();const v={error:b,search:m,network:f,default:p};return((x=v[e.image])==null?void 0:x.call(v))||h("img",{src:e.image},null)};return()=>h("div",{class:La()},[h("div",{class:La("image"),style:Ii(e.imageSize)},[g()]),n(),i()])}});const mw=re(M6),[F6,Xn,Wo]=te("coupon-list"),H6={code:se(""),coupons:it(),currency:se("¥"),showCount:Z,emptyImage:String,enabledTitle:String,disabledTitle:String,disabledCoupons:it(),showExchangeBar:Z,showCloseButton:Z,closeButtonText:String,inputPlaceholder:String,exchangeMinLength:kt(1),exchangeButtonText:String,displayedCouponIndex:kt(-1),exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,chosenCoupon:{type:[Number,Array],default:-1}};var N6=G({name:F6,props:H6,emits:["change","exchange","update:code"],setup(e,{emit:t,slots:n}){const[i,o]=sa(),r=V(),s=V(),a=V(0),l=V(0),c=V(e.code),d=N(()=>!e.exchangeButtonLoading&&(e.exchangeButtonDisabled||!c.value||c.value.length<e.exchangeMinLength)),u=()=>{const k=Ye(r).height,C=Ye(s).height+44;l.value=(k>C?k:wn.value)-C},f=()=>{t("exchange",c.value),e.code||(c.value="")},p=v=>{Pe(()=>{var k;return(k=i.value[v])==null?void 0:k.scrollIntoView()})},b=()=>h(mw,{image:e.emptyImage},{default:()=>[h("p",{class:Xn("empty-tip")},[Wo("noCoupon")])]}),m=()=>{if(e.showExchangeBar)return h("div",{ref:s,class:Xn("exchange-bar")},[h(Si,{modelValue:c.value,"onUpdate:modelValue":v=>c.value=v,clearable:!0,border:!1,class:Xn("field"),placeholder:e.inputPlaceholder||Wo("placeholder"),maxlength:"20"},null),h(jt,{plain:!0,type:"primary",class:Xn("exchange"),text:e.exchangeButtonText||Wo("exchange"),loading:e.exchangeButtonLoading,disabled:d.value,onClick:f},null)])},g=()=>{const{coupons:v,chosenCoupon:k}=e,C=e.showCount?` (${v.length})`:"",y=(e.enabledTitle||Wo("enable"))+C,E=($=[],S=0)=>$.includes(S)?$.filter(T=>T!==S):[...$,S];return h(Ns,{title:y},{default:()=>{var $;return[h("div",{class:Xn("list",{"with-bottom":e.showCloseButton}),style:{height:`${l.value}px`}},[v.map((S,T)=>h(ef,{key:S.id,ref:o(T),coupon:S,chosen:Array.isArray(k)?k.includes(T):T===k,currency:e.currency,onClick:()=>t("change",Array.isArray(k)?E(k,T):T)},null)),!v.length&&b(),($=n["list-footer"])==null?void 0:$.call(n)])]}})},x=()=>{const{disabledCoupons:v}=e,k=e.showCount?` (${v.length})`:"",C=(e.disabledTitle||Wo("disabled"))+k;return h(Ns,{title:C},{default:()=>{var y;return[h("div",{class:Xn("list",{"with-bottom":e.showCloseButton}),style:{height:`${l.value}px`}},[v.map(E=>h(ef,{disabled:!0,key:E.id,coupon:E,currency:e.currency},null)),!v.length&&b(),(y=n["disabled-list-footer"])==null?void 0:y.call(n)])]}})};return le(()=>e.code,v=>{c.value=v}),le(wn,u),le(c,v=>t("update:code",v)),le(()=>e.displayedCouponIndex,p),at(()=>{u(),p(e.displayedCouponIndex)}),()=>h("div",{ref:r,class:Xn()},[m(),h(Bc,{active:a.value,"onUpdate:active":v=>a.value=v,class:Xn("tab")},{default:()=>[g(),x()]}),h("div",{class:Xn("bottom")},[n["list-button"]?n["list-button"]():At(h(jt,{round:!0,block:!0,type:"primary",class:Xn("close"),text:e.closeButtonText||Wo("close"),onClick:()=>t("change",Array.isArray(e.chosenCoupon)?[]:-1)},null),[[Pt,e.showCloseButton]])])])}});const V6=re(N6),Gg=new Date().getFullYear(),[j6]=te("date-picker"),q6=Ee({},aw,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(Gg-10,0,1),validator:Fs},maxDate:{type:Date,default:()=>new Date(Gg+10,11,31),validator:Fs}});var U6=G({name:j6,props:q6,emits:["confirm","cancel","change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=V(e.modelValue),o=V(!1),r=V(),s=N(()=>o.value?e.modelValue:i.value),a=y=>y===e.minDate.getFullYear(),l=y=>y===e.maxDate.getFullYear(),c=y=>y===e.minDate.getMonth()+1,d=y=>y===e.maxDate.getMonth()+1,u=y=>{const{minDate:E,columnsType:$}=e,S=$.indexOf(y),T=s.value[S];if(T)return+T;switch(y){case"year":return E.getFullYear();case"month":return E.getMonth()+1;case"day":return E.getDate()}},f=()=>{const y=e.minDate.getFullYear(),E=e.maxDate.getFullYear();return br(y,E,"year",e.formatter,e.filter,s.value)},p=()=>{const y=u("year"),E=a(y)?e.minDate.getMonth()+1:1,$=l(y)?e.maxDate.getMonth()+1:12;return br(E,$,"month",e.formatter,e.filter,s.value)},b=()=>{const y=u("year"),E=u("month"),$=a(y)&&c(E)?e.minDate.getDate():1,S=l(y)&&d(E)?e.maxDate.getDate():cw(y,E);return br($,S,"day",e.formatter,e.filter,s.value)},m=()=>{var y;return(y=r.value)==null?void 0:y.confirm()},g=()=>i.value,x=N(()=>e.columnsType.map(y=>{switch(y){case"year":return f();case"month":return p();case"day":return b();default:return[]}}));le(i,y=>{ni(y,e.modelValue)||t("update:modelValue",y)}),le(()=>e.modelValue,(y,E)=>{o.value=ni(E,i.value),y=dw(y,x.value),ni(y,i.value)||(i.value=y),o.value=!1},{immediate:!0});const v=(...y)=>t("change",...y),k=(...y)=>t("cancel",...y),C=(...y)=>t("confirm",...y);return Fe({confirm:m,getSelectedDate:g}),()=>h(zc,De({ref:r,modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,columns:x.value,onChange:v,onCancel:k,onConfirm:C},We(e,lw)),n)}});const W6=re(U6),[Y6,En,za]=te("dialog"),K6=Ee({},Fr,{title:String,theme:String,width:oe,message:[String,Function],callback:Function,allowHtml:Boolean,className:rt,transition:se("van-dialog-bounce"),messageAlign:String,closeOnPopstate:Z,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:Z,closeOnClickOverlay:Boolean,keyboardEnabled:Z,destroyOnClose:Boolean}),X6=[...ch,"transition","closeOnPopstate","destroyOnClose"];var G6=G({name:Y6,props:K6,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const i=V(),o=nt({confirm:!1,cancel:!1}),r=x=>t("update:show",x),s=x=>{var v;r(!1),(v=e.callback)==null||v.call(e,x)},a=x=>()=>{e.show&&(t(x),e.beforeClose?(o[x]=!0,oo(e.beforeClose,{args:[x],done(){s(x),o[x]=!1},canceled(){o[x]=!1}})):s(x))},l=a("cancel"),c=a("confirm"),d=iC(x=>{var v,k;if(!e.keyboardEnabled||x.target!==((k=(v=i.value)==null?void 0:v.popupRef)==null?void 0:k.value))return;({Enter:e.showConfirmButton?c:Uu,Escape:e.showCancelButton?l:Uu})[x.key](),t("keydown",x)},["enter","esc"]),u=()=>{const x=n.title?n.title():e.title;if(x)return h("div",{class:En("header",{isolated:!e.message&&!n.default})},[x])},f=x=>{const{message:v,allowHtml:k,messageAlign:C}=e,y=En("message",{"has-title":x,[C]:C}),E=Tr(v)?v():v;return k&&typeof E=="string"?h("div",{class:y,innerHTML:E},null):h("div",{class:y},[E])},p=()=>{if(n.default)return h("div",{class:En("content")},[n.default()]);const{title:x,message:v,allowHtml:k}=e;if(v){const C=!!(x||n.title);return h("div",{key:k?1:0,class:En("content",{isolated:!C})},[f(C)])}},b=()=>h("div",{class:[yx,En("footer")]},[e.showCancelButton&&h(jt,{size:"large",text:e.cancelButtonText||za("cancel"),class:En("cancel"),style:{color:e.cancelButtonColor},loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:l},null),e.showConfirmButton&&h(jt,{size:"large",text:e.confirmButtonText||za("confirm"),class:[En("confirm"),{[xx]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:c},null)]),m=()=>h($x,{class:En("footer")},{default:()=>[e.showCancelButton&&h(Ku,{type:"warning",text:e.cancelButtonText||za("cancel"),class:En("cancel"),color:e.cancelButtonColor,loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:l},null),e.showConfirmButton&&h(Ku,{type:"danger",text:e.confirmButtonText||za("confirm"),class:En("confirm"),color:e.confirmButtonColor,loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:c},null)]}),g=()=>n.footer?n.footer():e.theme==="round-button"?m():b();return()=>{const{width:x,title:v,theme:k,message:C,className:y}=e;return h(jn,De({ref:i,role:"dialog",class:[En([k]),y],style:{width:Ae(x)},tabindex:0,"aria-labelledby":v||C,onKeydown:d,"onUpdate:show":r},We(e,X6)),{default:()=>[u(),p(),g()]})}}});const Z6=re(G6),[J6,Q6]=te("divider"),ez={dashed:Boolean,hairline:Z,vertical:Boolean,contentPosition:se("center")};var tz=G({name:J6,props:ez,setup(e,{slots:t}){return()=>{var n;return h("div",{role:"separator",class:Q6({dashed:e.dashed,hairline:e.hairline,vertical:e.vertical,[`content-${e.contentPosition}`]:!!t.default&&!e.vertical})},[!e.vertical&&((n=t.default)==null?void 0:n.call(t))])}}});const nz=re(tz),[gw,Ma]=te("dropdown-menu"),iz={overlay:Z,zIndex:oe,duration:be(.2),direction:se("down"),activeColor:String,autoLocate:Boolean,closeOnClickOutside:Z,closeOnClickOverlay:Z,swipeThreshold:oe},bw=Symbol(gw);var oz=G({name:gw,props:iz,setup(e,{slots:t}){const n=Hr(),i=V(),o=V(),r=V(0),{children:s,linkChildren:a}=qt(bw),l=Dr(i),c=N(()=>s.some(v=>v.state.showWrapper)),d=N(()=>e.swipeThreshold&&s.length>+e.swipeThreshold),u=N(()=>{if(c.value&&qe(e.zIndex))return{zIndex:+e.zIndex+1}}),f=()=>{s.forEach(v=>{v.toggle(!1)})},p=()=>{e.closeOnClickOutside&&f()},b=()=>{if(o.value){const v=Ye(o);e.direction==="down"?r.value=v.bottom:r.value=wn.value-v.top}},m=()=>{c.value&&b()},g=v=>{s.forEach((k,C)=>{C===v?k.toggle():k.state.showPopup&&k.toggle(!1,{immediate:!0})})},x=(v,k)=>{const{showPopup:C}=v.state,{disabled:y,titleClass:E}=v;return h("div",{id:`${n}-${k}`,role:"button",tabindex:y?void 0:0,"data-allow-mismatch":"attribute",class:[Ma("item",{disabled:y,grow:d.value}),{[Vt]:!y}],onClick:()=>{y||g(k)}},[h("span",{class:[Ma("title",{down:C===(e.direction==="down"),active:C}),E],style:{color:C?e.activeColor:""}},[h("div",{class:"van-ellipsis"},[v.renderTitle()])])])};return Fe({close:f}),a({id:n,props:e,offset:r,updateOffset:b}),xc(i,p),ft("scroll",m,{target:l,passive:!0}),()=>{var v;return h("div",{ref:i,class:Ma()},[h("div",{ref:o,style:u.value,class:Ma("bar",{opened:c.value,scrollable:d.value})},[s.map(x)]),(v=t.default)==null?void 0:v.call(t)])}}});const[rz,Fa]=te("dropdown-item"),sz={title:String,options:it(),disabled:Boolean,teleport:[String,Object],lazyRender:Z,modelValue:rt,titleClass:rt};var az=G({name:rz,inheritAttrs:!1,props:sz,emits:["open","opened","close","closed","change","update:modelValue"],setup(e,{emit:t,slots:n,attrs:i}){const o=nt({showPopup:!1,transition:!0,showWrapper:!1}),r=V(),{parent:s,index:a}=Lt(bw);if(!s)return;const l=v=>()=>t(v),c=l("open"),d=l("close"),u=l("opened"),f=()=>{o.showWrapper=!1,t("closed")},p=v=>{e.teleport&&v.stopPropagation()},b=(v=!o.showPopup,k={})=>{v!==o.showPopup&&(o.showPopup=v,o.transition=!k.immediate,v&&(s.updateOffset(),o.showWrapper=!0))},m=()=>{if(n.title)return n.title();if(e.title)return e.title;const v=e.options.find(k=>k.value===e.modelValue);return v?v.text:""},g=v=>{const{activeColor:k}=s.props,{disabled:C}=v,y=v.value===e.modelValue,E=()=>{C||(o.showPopup=!1,v.value!==e.modelValue&&(t("update:modelValue",v.value),t("change",v.value)))},$=()=>{if(y)return h(Oe,{class:Fa("icon"),color:C?void 0:k,name:"success"},null)};return h(qn,{role:"menuitem",key:String(v.value),icon:v.icon,title:v.text,class:Fa("option",{active:y,disabled:C}),style:{color:y?k:""},tabindex:y?0:-1,clickable:!C,onClick:E},{value:$})},x=()=>{const{offset:v}=s,{autoLocate:k,zIndex:C,overlay:y,duration:E,direction:$,closeOnClickOverlay:S}=s.props,T=Pi(C);let A=v.value;if(k&&r.value){const w=JB(r.value);w&&(A-=Ye(w).top)}return $==="down"?T.top=`${A}px`:T.bottom=`${A}px`,At(h("div",De({ref:r,style:T,class:Fa([$]),onClick:p},i),[h(jn,{show:o.showPopup,"onUpdate:show":w=>o.showPopup=w,role:"menu",class:Fa("content"),overlay:y,position:$==="down"?"top":"bottom",duration:o.transition?E:0,lazyRender:e.lazyRender,overlayStyle:{position:"absolute"},"aria-labelledby":`${s.id}-${a.value}`,"data-allow-mismatch":"attribute",closeOnClickOverlay:S,onOpen:c,onClose:d,onOpened:u,onClosed:f},{default:()=>{var w;return[e.options.map(g),(w=n.default)==null?void 0:w.call(n)]}})]),[[Pt,o.showWrapper]])};return Fe({state:o,toggle:b,renderTitle:m}),()=>e.teleport?h(to,{to:e.teleport},{default:()=>[x()]}):x()}});const lz=re(az),cz=re(oz),dz={gap:{type:[Number,Object],default:24},icon:String,axis:se("y"),magnetic:String,offset:{type:Object,default:()=>({x:-1,y:-1})},teleport:{type:[String,Object],default:"body"}},[uz,Zg]=te("floating-bubble");var fz=G({name:uz,inheritAttrs:!1,props:dz,emits:["click","update:offset","offsetChange"],setup(e,{slots:t,emit:n,attrs:i}){const o=V(),r=V({x:0,y:0,width:0,height:0}),s=N(()=>Hn(e.gap)?e.gap.x:e.gap),a=N(()=>Hn(e.gap)?e.gap.y:e.gap),l=N(()=>({top:a.value,right:Bn.value-r.value.width-s.value,bottom:wn.value-r.value.height-a.value,left:s.value})),c=V(!1);let d=!1;const u=N(()=>{const y={},E=Ae(r.value.x),$=Ae(r.value.y);return y.transform=`translate3d(${E}, ${$}, 0)`,(c.value||!d)&&(y.transition="none"),y}),f=()=>{if(!C.value)return;const{width:y,height:E}=Ye(o.value),{offset:$}=e;r.value={x:$.x>-1?$.x:Bn.value-y-s.value,y:$.y>-1?$.y:wn.value-E-a.value,width:y,height:E}},p=Sn();let b=0,m=0;const g=y=>{p.start(y),c.value=!0,b=r.value.x,m=r.value.y};ft("touchmove",y=>{if(y.preventDefault(),p.move(y),e.axis!=="lock"&&!p.isTap.value){if(e.axis==="x"||e.axis==="xy"){let $=b+p.deltaX.value;$<l.value.left&&($=l.value.left),$>l.value.right&&($=l.value.right),r.value.x=$}if(e.axis==="y"||e.axis==="xy"){let $=m+p.deltaY.value;$<l.value.top&&($=l.value.top),$>l.value.bottom&&($=l.value.bottom),r.value.y=$}const E=We(r.value,["x","y"]);n("update:offset",E)}},{target:o});const v=()=>{c.value=!1,Pe(()=>{if(e.magnetic==="x"){const y=Dl([l.value.left,l.value.right],r.value.x);r.value.x=y}if(e.magnetic==="y"){const y=Dl([l.value.top,l.value.bottom],r.value.y);r.value.y=y}if(!p.isTap.value){const y=We(r.value,["x","y"]);n("update:offset",y),(b!==y.x||m!==y.y)&&n("offsetChange",y)}})},k=y=>{p.isTap.value?n("click",y):y.stopPropagation()};at(()=>{f(),Pe(()=>{d=!0})}),le([Bn,wn,s,a,()=>e.offset],f,{deep:!0});const C=V(!0);return ri(()=>{C.value=!0}),si(()=>{e.teleport&&(C.value=!1)}),()=>{const y=At(h("div",De({class:Zg(),ref:o,onTouchstartPassive:g,onTouchend:v,onTouchcancel:v,onClickCapture:k,style:u.value},i),[t.default?t.default():h(AL,{name:e.icon,class:Zg("icon")},null)]),[[Pt,C.value]]);return e.teleport?h(to,{to:e.teleport},{default:()=>[y]}):y}}});const hz=re(fz),pz={height:be(0),anchors:it(),duration:be(.3),contentDraggable:Z,lockScroll:Boolean,safeAreaInsetBottom:Z},[mz,Ha]=te("floating-panel");var gz=G({name:mz,props:pz,emits:["heightChange","update:height"],setup(e,{emit:t,slots:n}){const o=V(),r=V(),s=uh(()=>+e.height,k=>t("update:height",k)),a=N(()=>{var k,C;return{min:(k=e.anchors[0])!=null?k:100,max:(C=e.anchors[e.anchors.length-1])!=null?C:Math.round(wn.value*.6)}}),l=N(()=>e.anchors.length>=2?e.anchors:[a.value.min,a.value.max]),c=V(!1),d=N(()=>({height:Ae(a.value.max),transform:`translateY(calc(100% + ${Ae(-s.value)}))`,transition:c.value?"none":`transform ${e.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`})),u=k=>{const C=Math.abs(k),{min:y,max:E}=a.value;return C>E?-(E+(C-E)*.2):C<y?-(y-(y-C)*.2):k};let f,p=-1;const b=Sn(),m=k=>{b.start(k),c.value=!0,f=-s.value,p=-1},g=k=>{var C;b.move(k);const y=k.target;if(r.value===y||(C=r.value)!=null&&C.contains(y)){const{scrollTop:$}=r.value;if(p=Math.max(p,$),!e.contentDraggable)return;if(-f<a.value.max)et(k,!0);else if(!($<=0&&b.deltaY.value>0)||p>0)return}const E=b.deltaY.value+f;s.value=-u(E)},x=()=>{p=-1,c.value=!1,s.value=Dl(l.value,s.value),s.value!==-f&&t("heightChange",{height:s.value})};le(a,()=>{s.value=Dl(l.value,s.value)},{immediate:!0}),Rx(o,()=>e.lockScroll||c.value),ft("touchmove",g,{target:o});const v=()=>n.header?n.header():h("div",{class:Ha("header")},[h("div",{class:Ha("header-bar")},null)]);return()=>{var k;return h("div",{class:[Ha(),{"van-safe-area-bottom":e.safeAreaInsetBottom}],ref:o,style:d.value,onTouchstartPassive:m,onTouchend:x,onTouchcancel:x},[v(),h("div",{class:Ha("content"),ref:r},[(k=n.default)==null?void 0:k.call(n)])])}}});const bz=re(gz),[vw,vz]=te("grid"),yz={square:Boolean,center:Z,border:Z,gutter:oe,reverse:Boolean,iconSize:oe,direction:String,clickable:Boolean,columnNum:be(4)},yw=Symbol(vw);var xz=G({name:vw,props:yz,setup(e,{slots:t}){const{linkChildren:n}=qt(yw);return n({props:e}),()=>{var i;return h("div",{style:{paddingLeft:Ae(e.gutter)},class:[vz(),{[yx]:e.border&&!e.gutter}]},[(i=t.default)==null?void 0:i.call(t)])}}});const wz=re(xz),[kz,Na]=te("grid-item"),Sz=Ee({},ro,{dot:Boolean,text:String,icon:String,badge:oe,iconColor:String,iconPrefix:String,badgeProps:Object});var Cz=G({name:kz,props:Sz,setup(e,{slots:t}){const{parent:n,index:i}=Lt(yw),o=Do();if(!n)return;const r=N(()=>{const{square:d,gutter:u,columnNum:f}=n.props,p=`${100/+f}%`,b={flexBasis:p};if(d)b.paddingTop=p;else if(u){const m=Ae(u);b.paddingRight=m,i.value>=+f&&(b.marginTop=m)}return b}),s=N(()=>{const{square:d,gutter:u}=n.props;if(d&&u){const f=Ae(u);return{right:f,bottom:f,height:"auto"}}}),a=()=>{if(t.icon)return h(Bo,De({dot:e.dot,content:e.badge},e.badgeProps),{default:t.icon});if(e.icon)return h(Oe,{dot:e.dot,name:e.icon,size:n.props.iconSize,badge:e.badge,class:Na("icon"),color:e.iconColor,badgeProps:e.badgeProps,classPrefix:e.iconPrefix},null)},l=()=>{if(t.text)return t.text();if(e.text)return h("span",{class:Na("text")},[e.text])},c=()=>t.default?t.default():[a(),l()];return()=>{const{center:d,border:u,square:f,gutter:p,reverse:b,direction:m,clickable:g}=n.props,x=[Na("content",[m,{center:d,square:f,reverse:b,clickable:g,surround:u&&p}]),{[Di]:u}];return h("div",{class:[Na({square:f})],style:r.value},[h("div",{role:g?"button":void 0,class:x,style:s.value,tabindex:g?0:void 0,onClick:o},[c()])])}}});const Ez=re(Cz),[$z,Jg]=te("highlight"),Tz={autoEscape:Z,caseSensitive:Boolean,highlightClass:String,highlightTag:se("span"),keywords:_t([String,Array]),sourceString:se(""),tag:se("div"),unhighlightClass:String,unhighlightTag:se("span")};var _z=G({name:$z,props:Tz,setup(e){const t=N(()=>{const{autoEscape:i,caseSensitive:o,keywords:r,sourceString:s}=e,a=o?"g":"gi";let c=(Array.isArray(r)?r:[r]).filter(u=>u).reduce((u,f)=>{i&&(f=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));const p=new RegExp(f,a);let b;for(;b=p.exec(s);){const m=b.index,g=p.lastIndex;if(m>=g){p.lastIndex++;continue}u.push({start:m,end:g,highlight:!0})}return u},[]);c=c.sort((u,f)=>u.start-f.start).reduce((u,f)=>{const p=u[u.length-1];if(!p||f.start>p.end){const b=p?p.end:0,m=f.start;b!==m&&u.push({start:b,end:m,highlight:!1}),u.push(f)}else p.end=Math.max(p.end,f.end);return u},[]);const d=c[c.length-1];return d||c.push({start:0,end:s.length,highlight:!1}),d&&d.end<s.length&&c.push({start:d.end,end:s.length,highlight:!1}),c}),n=()=>{const{sourceString:i,highlightClass:o,unhighlightClass:r,highlightTag:s,unhighlightTag:a}=e;return t.value.map(l=>{const{start:c,end:d,highlight:u}=l,f=i.slice(c,d);return u?h(s,{class:[Jg("tag"),o]},{default:()=>[f]}):h(a,{class:r},{default:()=>[f]})})};return()=>{const{tag:i}=e;return h(i,{class:Jg()},{default:()=>[n()]})}}});const Az=re(_z),Qg=e=>Math.sqrt((e[0].clientX-e[1].clientX)**2+(e[0].clientY-e[1].clientY)**2),Oz=e=>({x:(e[0].clientX+e[1].clientX)/2,y:(e[0].clientY+e[1].clientY)/2}),Nd=te("image-preview")[1],eb=2.6,Rz={src:String,show:Boolean,active:Number,minZoom:_t(oe),maxZoom:_t(oe),rootWidth:_t(Number),rootHeight:_t(Number),disableZoom:Boolean,doubleScale:Boolean,closeOnClickImage:Boolean,closeOnClickOverlay:Boolean,vertical:Boolean};var Iz=G({props:Rz,emits:["scale","close","longPress"],setup(e,{emit:t,slots:n}){const i=nt({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,initializing:!1,imageRatio:0}),o=Sn(),r=V(),s=V(),a=V(!1),l=V(!1);let c=0;const d=N(()=>{const{scale:P,moveX:M,moveY:L,moving:ce,zooming:fe,initializing:ie}=i,q={transitionDuration:fe||ce||ie?"0s":".3s"};return(P!==1||l.value)&&(q.transform=`matrix(${P}, 0, 0, ${P}, ${M}, ${L})`),q}),u=N(()=>{if(i.imageRatio){const{rootWidth:P,rootHeight:M}=e,L=a.value?M/i.imageRatio:P;return Math.max(0,(i.scale*L-P)/2)}return 0}),f=N(()=>{if(i.imageRatio){const{rootWidth:P,rootHeight:M}=e,L=a.value?M:P*i.imageRatio;return Math.max(0,(i.scale*L-M)/2)}return 0}),p=(P,M)=>{var L;if(P=Et(P,+e.minZoom,+e.maxZoom+1),P!==i.scale){const ce=P/i.scale;if(i.scale=P,M){const fe=Ye((L=r.value)==null?void 0:L.$el),ie={x:fe.width*.5,y:fe.height*.5},q=i.moveX-(M.x-fe.left-ie.x)*(ce-1),J=i.moveY-(M.y-fe.top-ie.y)*(ce-1);i.moveX=Et(q,-u.value,u.value),i.moveY=Et(J,-f.value,f.value)}else i.moveX=0,i.moveY=l.value?c:0;t("scale",{scale:P,index:e.active})}},b=()=>{p(1)},m=()=>{const P=i.scale>1?1:2;p(P,P===2||l.value?{x:o.startX.value,y:o.startY.value}:void 0)};let g,x,v,k,C,y,E,$,S=!1;const T=P=>{const{touches:M}=P;if(g=M.length,g===2&&e.disableZoom)return;const{offsetX:L}=o;o.start(P),x=i.moveX,v=i.moveY,$=Date.now(),S=!1,i.moving=g===1&&(i.scale!==1||l.value),i.zooming=g===2&&!L.value,i.zooming&&(k=i.scale,C=Qg(M))},A=P=>{const{touches:M}=P;if(o.move(P),i.moving){const{deltaX:L,deltaY:ce}=o,fe=L.value+x,ie=ce.value+v;if((e.vertical?o.isVertical()&&Math.abs(ie)>f.value:o.isHorizontal()&&Math.abs(fe)>u.value)&&!S){i.moving=!1;return}S=!0,et(P,!0),i.moveX=Et(fe,-u.value,u.value),i.moveY=Et(ie,-f.value,f.value)}if(i.zooming&&(et(P,!0),M.length===2)){const L=Qg(M),ce=k*L/C;y=Oz(M),p(ce,y)}},w=P=>{var M;const L=(M=s.value)==null?void 0:M.$el;if(!L)return;const ce=L.firstElementChild,fe=P.target===L,ie=ce==null?void 0:ce.contains(P.target);!e.closeOnClickImage&&ie||!e.closeOnClickOverlay&&fe||t("close")},_=P=>{if(g>1)return;const M=Date.now()-$,L=250;o.isTap.value&&(M<L?e.doubleScale?E?(clearTimeout(E),E=null,m()):E=setTimeout(()=>{w(P),E=null},L):w(P):M>kx&&t("longPress"))},D=P=>{let M=!1;if((i.moving||i.zooming)&&(M=!0,i.moving&&x===i.moveX&&v===i.moveY&&(M=!1),!P.touches.length)){i.zooming&&(i.moveX=Et(i.moveX,-u.value,u.value),i.moveY=Et(i.moveY,-f.value,f.value),i.zooming=!1),i.moving=!1,x=0,v=0,k=1,i.scale<1&&b();const L=+e.maxZoom;i.scale>L&&p(L,y)}et(P,M),_(P),o.reset()},F=()=>{const{rootWidth:P,rootHeight:M}=e,L=M/P,{imageRatio:ce}=i;a.value=i.imageRatio>L&&ce<eb,l.value=i.imageRatio>L&&ce>=eb,l.value&&(c=(ce*P-M)/2,i.moveY=c,i.initializing=!0,Ht(()=>{i.initializing=!1})),b()},H=P=>{const{naturalWidth:M,naturalHeight:L}=P.target;i.imageRatio=L/M,F()};return le(()=>e.active,b),le(()=>e.show,P=>{P||b()}),le(()=>[e.rootWidth,e.rootHeight],F),ft("touchmove",A,{target:N(()=>{var P;return(P=s.value)==null?void 0:P.$el})}),Fe({resetScale:b}),()=>{const P={loading:()=>h(Vn,{type:"spinner"},null)};return h(hh,{ref:s,class:Nd("swipe-item"),onTouchstartPassive:T,onTouchend:D,onTouchcancel:D},{default:()=>[n.image?h("div",{class:Nd("image-wrap")},[n.image({src:e.src,onLoad:H,style:d.value})]):h(Hc,{ref:r,src:e.src,fit:"contain",class:Nd("image",{vertical:a.value}),style:d.value,onLoad:H},P)]})}}});const[Pz,Yo]=te("image-preview"),Dz=["show","teleport","transition","overlayStyle","closeOnPopstate"],Bz={show:Boolean,loop:Z,images:it(),minZoom:be(1/3),maxZoom:be(3),overlay:Z,vertical:Boolean,closeable:Boolean,showIndex:Z,className:rt,closeIcon:se("clear"),transition:String,beforeClose:Function,doubleScale:Z,overlayClass:rt,overlayStyle:Object,swipeDuration:be(300),startPosition:be(0),showIndicators:Boolean,closeOnPopstate:Z,closeOnClickImage:Z,closeOnClickOverlay:Z,closeIconPosition:se("top-right"),teleport:[String,Object]};var xw=G({name:Pz,props:Bz,emits:["scale","close","closed","change","longPress","update:show"],setup(e,{emit:t,slots:n}){const i=V(),o=V(),r=nt({active:0,rootWidth:0,rootHeight:0,disableZoom:!1}),s=()=>{if(i.value){const k=Ye(i.value.$el);r.rootWidth=k.width,r.rootHeight=k.height,i.value.resize()}},a=k=>t("scale",k),l=k=>t("update:show",k),c=()=>{oo(e.beforeClose,{args:[r.active],done:()=>l(!1)})},d=k=>{k!==r.active&&(r.active=k,t("change",k))},u=()=>{if(e.showIndex)return h("div",{class:Yo("index")},[n.index?n.index({index:r.active}):`${r.active+1} / ${e.images.length}`])},f=()=>{if(n.cover)return h("div",{class:Yo("cover")},[n.cover()])},p=()=>{r.disableZoom=!0},b=()=>{r.disableZoom=!1},m=()=>h(fh,{ref:i,lazyRender:!0,loop:e.loop,class:Yo("swipe"),vertical:e.vertical,duration:e.swipeDuration,initialSwipe:e.startPosition,showIndicators:e.showIndicators,indicatorColor:"white",onChange:d,onDragEnd:b,onDragStart:p},{default:()=>[e.images.map((k,C)=>h(Iz,{ref:y=>{C===r.active&&(o.value=y)},src:k,show:e.show,active:r.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:r.rootWidth,rootHeight:r.rootHeight,disableZoom:r.disableZoom,doubleScale:e.doubleScale,closeOnClickImage:e.closeOnClickImage,closeOnClickOverlay:e.closeOnClickOverlay,vertical:e.vertical,onScale:a,onClose:c,onLongPress:()=>t("longPress",{index:C})},{image:n.image}))]}),g=()=>{if(e.closeable)return h(Oe,{role:"button",name:e.closeIcon,class:[Yo("close-icon",e.closeIconPosition),Vt],onClick:c},null)},x=()=>t("closed"),v=(k,C)=>{var y;return(y=i.value)==null?void 0:y.swipeTo(k,C)};return Fe({resetScale:()=>{var k;(k=o.value)==null||k.resetScale()},swipeTo:v}),at(s),le([Bn,wn],s),le(()=>e.startPosition,k=>d(+k)),le(()=>e.show,k=>{const{images:C,startPosition:y}=e;k?(d(+y),Pe(()=>{s(),v(+y,{immediate:!0})})):t("close",{index:r.active,url:C[r.active]})}),()=>h(jn,De({class:[Yo(),e.className],overlayClass:[Yo("overlay"),e.overlayClass],onClosed:x,"onUpdate:show":l},We(e,Dz)),{default:()=>[g(),m(),u(),f()]})}});let al;const Lz={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,vertical:!1,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,doubleScale:!0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeOnClickOverlay:!0,closeIconPosition:"top-right"};function zz(){({instance:al}=Jx({setup(){const{state:e,toggle:t}=Zx(),n=()=>{e.images=[]};return()=>h(xw,De(e,{onClosed:n,"onUpdate:show":t}),null)}}))}const Mz=(e,t=0)=>{if(kn)return al||zz(),e=Array.isArray(e)?{images:e,startPosition:t}:e,al.open(Ee({},Lz,e)),al},Fz=re(xw);function Hz(){return Array(26).fill("").map((n,i)=>String.fromCharCode(65+i))}const[ww,Vd]=te("index-bar"),Nz={sticky:Z,zIndex:oe,teleport:[String,Object],highlightColor:String,stickyOffsetTop:kt(0),indexList:{type:Array,default:Hz}},kw=Symbol(ww);var Vz=G({name:ww,props:Nz,emits:["select","change"],setup(e,{emit:t,slots:n}){const i=V(),o=V(),r=V(""),s=Sn(),a=Dr(i),{children:l,linkChildren:c}=qt(kw);let d;c({props:e});const u=N(()=>{if(qe(e.zIndex))return{zIndex:+e.zIndex+1}}),f=N(()=>{if(e.highlightColor)return{color:e.highlightColor}}),p=(S,T)=>{for(let A=l.length-1;A>=0;A--){const w=A>0?T[A-1].height:0,_=e.sticky?w+e.stickyOffsetTop:0;if(S+_>=T[A].top)return A}return-1},b=S=>l.find(T=>String(T.index)===S),m=()=>{if(Io(i))return;const{sticky:S,indexList:T}=e,A=Ti(a.value),w=Ye(a),_=l.map(F=>F.getRect(a.value,w));let D=-1;if(d){const F=b(d);if(F){const H=F.getRect(a.value,w);e.sticky&&e.stickyOffsetTop?D=p(H.top-e.stickyOffsetTop,_):D=p(H.top,_)}}else D=p(A,_);r.value=T[D],S&&l.forEach((F,H)=>{const{state:P,$el:M}=F;if(H===D||H===D-1){const L=M.getBoundingClientRect();P.left=L.left,P.width=L.width}else P.left=null,P.width=null;if(H===D)P.active=!0,P.top=Math.max(e.stickyOffsetTop,_[H].top-A)+w.top;else if(H===D-1&&d===""){const L=_[D].top-A;P.active=L>0,P.top=L+w.top-_[H].height}else P.active=!1}),d=""},g=()=>{Pe(m)};ft("scroll",m,{target:a,passive:!0}),at(g),le(()=>e.indexList,g),le(r,S=>{S&&t("change",S)});const x=()=>e.indexList.map(S=>{const T=S===r.value;return h("span",{class:Vd("index",{active:T}),style:T?f.value:void 0,"data-index":S},[S])}),v=S=>{d=String(S);const T=b(d);if(T){const A=Ti(a.value),w=Ye(a),{offsetHeight:_}=document.documentElement;if(T.$el.scrollIntoView(),A===_-w.height){m();return}e.sticky&&e.stickyOffsetTop&&(Eo()===_-w.height?Hs(Eo()):Hs(Eo()-e.stickyOffsetTop)),t("select",T.index)}},k=S=>{const{index:T}=S.dataset;T&&v(T)},C=S=>{k(S.target)};let y;const E=S=>{if(s.move(S),s.isVertical()){et(S);const{clientX:T,clientY:A}=S.touches[0],w=document.elementFromPoint(T,A);if(w){const{index:_}=w.dataset;_&&y!==_&&(y=_,k(w))}}},$=()=>h("div",{ref:o,class:Vd("sidebar"),style:u.value,onClick:C,onTouchstartPassive:s.start},[x()]);return Fe({scrollTo:v}),ft("touchmove",E,{target:o}),()=>{var S;return h("div",{ref:i,class:Vd()},[e.teleport?h(to,{to:e.teleport},{default:()=>[$()]}):$(),(S=n.default)==null?void 0:S.call(n)])}}});const[jz,qz]=te("index-anchor"),Uz={index:oe};var Wz=G({name:jz,props:Uz,setup(e,{slots:t}){const n=nt({top:0,left:null,rect:{top:0,height:0},width:null,active:!1}),i=V(),{parent:o}=Lt(kw);if(!o)return;const r=()=>n.active&&o.props.sticky,s=N(()=>{const{zIndex:l,highlightColor:c}=o.props;if(r())return Ee(Pi(l),{left:n.left?`${n.left}px`:void 0,width:n.width?`${n.width}px`:void 0,transform:n.top?`translate3d(0, ${n.top}px, 0)`:void 0,color:c})});return Fe({state:n,getRect:(l,c)=>{const d=Ye(i);return n.rect.height=d.height,l===window||l===document.body?n.rect.top=d.top+Eo():n.rect.top=d.top+Ti(l)-c.top,n.rect}}),()=>{const l=r();return h("div",{ref:i,style:{height:l?`${n.rect.height}px`:void 0}},[h("div",{style:s.value,class:[qz({sticky:l}),{[ah]:l}]},[t.default?t.default():e.index])])}}});const Yz=re(Wz),Kz=re(Vz),[Xz,Ko,Gz]=te("list"),Zz={error:Boolean,offset:be(300),loading:Boolean,disabled:Boolean,finished:Boolean,scroller:Object,errorText:String,direction:se("down"),loadingText:String,finishedText:String,immediateCheck:Z};var Jz=G({name:Xz,props:Zz,emits:["load","update:error","update:loading"],setup(e,{emit:t,slots:n}){const i=V(e.loading),o=V(),r=V(),s=T4(),a=Dr(o),l=N(()=>e.scroller||a.value),c=()=>{Pe(()=>{if(i.value||e.finished||e.disabled||e.error||(s==null?void 0:s.value)===!1)return;const{direction:b}=e,m=+e.offset,g=Ye(l);if(!g.height||Io(o))return;let x=!1;const v=Ye(r);b==="up"?x=g.top-v.top<=m:x=v.bottom-g.bottom<=m,x&&(i.value=!0,t("update:loading",!0),t("load"))})},d=()=>{if(e.finished){const b=n.finished?n.finished():e.finishedText;if(b)return h("div",{class:Ko("finished-text")},[b])}},u=()=>{t("update:error",!1),c()},f=()=>{if(e.error){const b=n.error?n.error():e.errorText;if(b)return h("div",{role:"button",class:Ko("error-text"),tabindex:0,onClick:u},[b])}},p=()=>{if(i.value&&!e.finished&&!e.disabled)return h("div",{class:Ko("loading")},[n.loading?n.loading():h(Vn,{class:Ko("loading-icon")},{default:()=>[e.loadingText||Gz("loading")]})])};return le(()=>[e.loading,e.finished,e.error],c),s&&le(s,b=>{b&&c()}),dv(()=>{i.value=e.loading}),at(()=>{e.immediateCheck&&c()}),Fe({check:c}),ft("scroll",c,{target:l,passive:!0}),()=>{var b;const m=(b=n.default)==null?void 0:b.call(n),g=h("div",{ref:r,class:Ko("placeholder")},null);return h("div",{ref:o,role:"feed",class:Ko(),"aria-busy":i.value},[e.direction==="down"?m:g,p(),d(),f(),e.direction==="up"?m:g])}}});const Qz=re(Jz),[eM,mi]=te("nav-bar"),tM={title:String,fixed:Boolean,zIndex:oe,border:Z,leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:Z};var nM=G({name:eM,props:tM,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:n}){const i=V(),o=Pc(i,mi),r=d=>{e.leftDisabled||t("clickLeft",d)},s=d=>{e.rightDisabled||t("clickRight",d)},a=()=>n.left?n.left():[e.leftArrow&&h(Oe,{class:mi("arrow"),name:"arrow-left"},null),e.leftText&&h("span",{class:mi("text")},[e.leftText])],l=()=>n.right?n.right():h("span",{class:mi("text")},[e.rightText]),c=()=>{const{title:d,fixed:u,border:f,zIndex:p}=e,b=Pi(p),m=e.leftArrow||e.leftText||n.left,g=e.rightText||n.right;return h("div",{ref:i,style:b,class:[mi({fixed:u}),{[ah]:f,"van-safe-area-top":e.safeAreaInsetTop}]},[h("div",{class:mi("content")},[m&&h("div",{class:[mi("left",{disabled:e.leftDisabled}),e.clickable&&!e.leftDisabled?Vt:""],onClick:r},[a()]),h("div",{class:[mi("title"),"van-ellipsis"]},[n.title?n.title():d]),g&&h("div",{class:[mi("right",{disabled:e.rightDisabled}),e.clickable&&!e.rightDisabled?Vt:""],onClick:s},[l()])])])};return()=>e.fixed&&e.placeholder?o(c):c()}});const iM=re(nM),[oM,Gr]=te("notice-bar"),rM={text:String,mode:String,color:String,delay:be(1),speed:be(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};var sM=G({name:oM,props:rM,emits:["close","replay"],setup(e,{emit:t,slots:n}){let i=0,o=0,r;const s=V(),a=V(),l=nt({show:!0,offset:0,duration:0}),c=()=>{if(n["left-icon"])return n["left-icon"]();if(e.leftIcon)return h(Oe,{class:Gr("left-icon"),name:e.leftIcon},null)},d=()=>{if(e.mode==="closeable")return"cross";if(e.mode==="link")return"arrow"},u=g=>{e.mode==="closeable"&&(l.show=!1,t("close",g))},f=()=>{if(n["right-icon"])return n["right-icon"]();const g=d();if(g)return h(Oe,{name:g,class:Gr("right-icon"),onClick:u},null)},p=()=>{l.offset=i,l.duration=0,Ht(()=>{Yi(()=>{l.offset=-o,l.duration=(o+i)/+e.speed,t("replay")})})},b=()=>{const g=e.scrollable===!1&&!e.wrapable,x={transform:l.offset?`translateX(${l.offset}px)`:"",transitionDuration:`${l.duration}s`};return h("div",{ref:s,role:"marquee",class:Gr("wrap")},[h("div",{ref:a,style:x,class:[Gr("content"),{"van-ellipsis":g}],onTransitionend:p},[n.default?n.default():e.text])])},m=()=>{const{delay:g,speed:x,scrollable:v}=e,k=qe(g)?+g*1e3:0;i=0,o=0,l.offset=0,l.duration=0,clearTimeout(r),r=setTimeout(()=>{if(!s.value||!a.value||v===!1)return;const C=Ye(s).width,y=Ye(a).width;(v||y>C)&&Yi(()=>{i=C,o=y,l.offset=-o,l.duration=o/+x})},k)};return Ic(m),Pr(m),ft("pageshow",m),Fe({reset:m}),le(()=>[e.text,e.scrollable],m),()=>{const{color:g,wrapable:x,background:v}=e;return At(h("div",{role:"alert",class:Gr({wrapable:x}),style:{color:g,background:v}},[c(),b(),f()]),[[Pt,l.show]])}}});const aM=re(sM),[lM,cM]=te("notify"),dM=["lockScroll","position","show","teleport","zIndex"],uM=Ee({},Fr,{type:se("danger"),color:String,message:oe,position:se("top"),className:rt,background:String,lockScroll:Boolean});var fM=G({name:lM,props:uM,emits:["update:show"],setup(e,{emit:t,slots:n}){const i=o=>t("update:show",o);return()=>h(jn,De({class:[cM([e.type]),e.className],style:{color:e.color,background:e.background},overlay:!1,duration:.2,"onUpdate:show":i},We(e,dM)),{default:()=>[n.default?n.default():e.message]})}});const hM=re(fM),[pM,ys]=te("key"),mM=h("svg",{class:ys("collapse-icon"),viewBox:"0 0 30 24"},[h("path",{d:"M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",fill:"currentColor"},null)]),gM=h("svg",{class:ys("delete-icon"),viewBox:"0 0 32 22"},[h("path",{d:"M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",fill:"currentColor"},null)]);var jd=G({name:pM,props:{type:String,text:oe,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup(e,{emit:t,slots:n}){const i=V(!1),o=Sn(),r=c=>{o.start(c),i.value=!0},s=c=>{o.move(c),o.direction.value&&(i.value=!1)},a=c=>{i.value&&(n.default||et(c),i.value=!1,t("press",e.text,e.type))},l=()=>{if(e.loading)return h(Vn,{class:ys("loading-icon")},null);const c=n.default?n.default():e.text;switch(e.type){case"delete":return c||gM;case"extra":return c||mM;default:return c}};return()=>h("div",{class:ys("wrapper",{wider:e.wider}),onTouchstartPassive:r,onTouchmovePassive:s,onTouchend:a,onTouchcancel:a},[h("div",{role:"button",tabindex:0,class:ys([e.color,{large:e.large,active:i.value,delete:e.type==="delete"}])},[l()])])}});const[bM,Fi]=te("number-keyboard"),vM={show:Boolean,title:String,theme:se("default"),zIndex:oe,teleport:[String,Object],maxlength:be(1/0),modelValue:se(""),transition:Z,blurOnClose:Z,showDeleteKey:Z,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:Z,safeAreaInsetBottom:Z,extraKey:{type:[String,Array],default:""}};function yM(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),i=e[t];e[t]=e[n],e[n]=i}return e}var xM=G({name:bM,inheritAttrs:!1,props:vM,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup(e,{emit:t,slots:n,attrs:i}){const o=V(),r=()=>{const g=Array(9).fill("").map((x,v)=>({text:v+1}));return e.randomKeyOrder&&yM(g),g},s=()=>[...r(),{text:e.extraKey,type:"extra"},{text:0},{text:e.showDeleteKey?e.deleteButtonText:"",type:e.showDeleteKey?"delete":""}],a=()=>{const g=r(),{extraKey:x}=e,v=Array.isArray(x)?x:[x];return v.length===0?g.push({text:0,wider:!0}):v.length===1?g.push({text:0,wider:!0},{text:v[0],type:"extra"}):v.length===2&&g.push({text:v[0],type:"extra"},{text:0},{text:v[1],type:"extra"}),g},l=N(()=>e.theme==="custom"?a():s()),c=()=>{e.show&&t("blur")},d=()=>{t("close"),e.blurOnClose&&c()},u=()=>t(e.show?"show":"hide"),f=(g,x)=>{if(g===""){x==="extra"&&c();return}const v=e.modelValue;x==="delete"?(t("delete"),t("update:modelValue",v.slice(0,v.length-1))):x==="close"?d():v.length<+e.maxlength&&(t("input",g),t("update:modelValue",v+g))},p=()=>{const{title:g,theme:x,closeButtonText:v}=e,k=n["title-left"],C=v&&x==="default";if(g||C||k)return h("div",{class:Fi("header")},[k&&h("span",{class:Fi("title-left")},[k()]),g&&h("h2",{class:Fi("title")},[g]),C&&h("button",{type:"button",class:[Fi("close"),Vt],onClick:d},[v])])},b=()=>l.value.map(g=>{const x={};return g.type==="delete"&&(x.default=n.delete),g.type==="extra"&&(x.default=n["extra-key"]),h(jd,{key:g.text,text:g.text,type:g.type,wider:g.wider,color:g.color,onPress:f},x)}),m=()=>{if(e.theme==="custom")return h("div",{class:Fi("sidebar")},[e.showDeleteKey&&h(jd,{large:!0,text:e.deleteButtonText,type:"delete",onPress:f},{default:n.delete}),h(jd,{large:!0,text:e.closeButtonText,type:"close",color:"blue",loading:e.closeButtonLoading,onPress:f},null)])};return le(()=>e.show,g=>{e.transition||t(g?"show":"hide")}),e.hideOnClickOutside&&xc(o,c,{eventName:"touchstart"}),()=>{const g=p(),x=h(Gl,{name:e.transition?"van-slide-up":""},{default:()=>[At(h("div",De({ref:o,style:Pi(e.zIndex),class:Fi({unfit:!e.safeAreaInsetBottom,"with-title":!!g}),onAnimationend:u,onTouchstartPassive:rh},i),[g,h("div",{class:Fi("body")},[h("div",{class:Fi("keys")},[b()]),m()])]),[[Pt,e.show]])]});return e.teleport?h(to,{to:e.teleport},{default:()=>[x]}):x}}});const wM=re(xM),[kM,Xo,tb]=te("pagination"),qd=(e,t,n)=>({number:e,text:t,active:n}),SM={mode:se("multi"),prevText:String,nextText:String,pageCount:be(0),modelValue:kt(0),totalItems:be(0),showPageSize:be(5),itemsPerPage:be(10),forceEllipses:Boolean,showPrevButton:Z,showNextButton:Z};var CM=G({name:kM,props:SM,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=N(()=>{const{pageCount:d,totalItems:u,itemsPerPage:f}=e,p=+d||Math.ceil(+u/+f);return Math.max(1,p)}),o=N(()=>{const d=[],u=i.value,f=+e.showPageSize,{modelValue:p,forceEllipses:b}=e;let m=1,g=u;const x=f<u;x&&(m=Math.max(p-Math.floor(f/2),1),g=m+f-1,g>u&&(g=u,m=g-f+1));for(let v=m;v<=g;v++){const k=qd(v,v,v===p);d.push(k)}if(x&&f>0&&b){if(m>1){const v=qd(m-1,"...");d.unshift(v)}if(g<u){const v=qd(g+1,"...");d.push(v)}}return d}),r=(d,u)=>{d=Et(d,1,i.value),e.modelValue!==d&&(t("update:modelValue",d),u&&t("change",d))};Or(()=>r(e.modelValue));const s=()=>h("li",{class:Xo("page-desc")},[n.pageDesc?n.pageDesc():`${e.modelValue}/${i.value}`]),a=()=>{const{mode:d,modelValue:u,showPrevButton:f}=e;if(!f)return;const p=n["prev-text"],b=u===1;return h("li",{class:[Xo("item",{disabled:b,border:d==="simple",prev:!0}),bs]},[h("button",{type:"button",disabled:b,onClick:()=>r(u-1,!0)},[p?p():e.prevText||tb("prev")])])},l=()=>{const{mode:d,modelValue:u,showNextButton:f}=e;if(!f)return;const p=n["next-text"],b=u===i.value;return h("li",{class:[Xo("item",{disabled:b,border:d==="simple",next:!0}),bs]},[h("button",{type:"button",disabled:b,onClick:()=>r(u+1,!0)},[p?p():e.nextText||tb("next")])])},c=()=>o.value.map(d=>h("li",{class:[Xo("item",{active:d.active,page:!0}),bs]},[h("button",{type:"button","aria-current":d.active||void 0,onClick:()=>r(d.number,!0)},[n.page?n.page(d):d.text])]));return()=>h("nav",{role:"navigation",class:Xo()},[h("ul",{class:Xo("items")},[a(),e.mode==="simple"?s():c(),l()])])}});const EM=re(CM),[$M,Zr]=te("password-input"),TM={info:String,mask:Z,value:se(""),gutter:oe,length:be(6),focused:Boolean,errorInfo:String};var _M=G({name:$M,props:TM,emits:["focus"],setup(e,{emit:t}){const n=o=>{o.stopPropagation(),t("focus",o)},i=()=>{const o=[],{mask:r,value:s,gutter:a,focused:l}=e,c=+e.length;for(let d=0;d<c;d++){const u=s[d],f=d!==0&&!a,p=l&&d===s.length;let b;d!==0&&a&&(b={marginLeft:Ae(a)}),o.push(h("li",{class:[{[xx]:f},Zr("item",{focus:p})],style:b},[r?h("i",{style:{visibility:u?"visible":"hidden"}},null):u,p&&h("div",{class:Zr("cursor")},null)]))}return o};return()=>{const o=e.errorInfo||e.info;return h("div",{class:Zr()},[h("ul",{class:[Zr("security"),{[bs]:!e.gutter}],onTouchstartPassive:n},[i()]),o&&h("div",{class:Zr(e.errorInfo?"error-info":"info")},[o])])}}});const AM=re(_M),OM=re(z4);function Un(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sh(e){var t=Un(e).Element;return e instanceof t||e instanceof Element}function Ln(e){var t=Un(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Sw(e){if(typeof ShadowRoot>"u")return!1;var t=Un(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ar=Math.round;function nf(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function RM(){return!/^((?!chrome|android).)*safari/i.test(nf())}function Ll(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&Ln(e)&&(o=e.offsetWidth>0&&Ar(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Ar(i.height)/e.offsetHeight||1);var s=Sh(e)?Un(e):window,a=s.visualViewport,l=!RM()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/o,d=(i.top+(l&&a?a.offsetTop:0))/r,u=i.width/o,f=i.height/r;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function Cw(e){var t=Un(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function IM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function PM(e){return e===Un(e)||!Ln(e)?Cw(e):IM(e)}function _i(e){return e?(e.nodeName||"").toLowerCase():null}function Nc(e){return((Sh(e)?e.ownerDocument:e.document)||window.document).documentElement}function DM(e){return Ll(Nc(e)).left+Cw(e).scrollLeft}function Ai(e){return Un(e).getComputedStyle(e)}function Ch(e){var t=Ai(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function BM(e){var t=e.getBoundingClientRect(),n=Ar(t.width)/e.offsetWidth||1,i=Ar(t.height)/e.offsetHeight||1;return n!==1||i!==1}function LM(e,t,n){n===void 0&&(n=!1);var i=Ln(t),o=Ln(t)&&BM(t),r=Nc(t),s=Ll(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((_i(t)!=="body"||Ch(r))&&(a=PM(t)),Ln(t)?(l=Ll(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=DM(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function zM(e){var t=Ll(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Eh(e){return _i(e)==="html"?e:e.assignedSlot||e.parentNode||(Sw(e)?e.host:null)||Nc(e)}function Ew(e){return["html","body","#document"].indexOf(_i(e))>=0?e.ownerDocument.body:Ln(e)&&Ch(e)?e:Ew(Eh(e))}function ll(e,t){var n;t===void 0&&(t=[]);var i=Ew(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),r=Un(i),s=o?[r].concat(r.visualViewport||[],Ch(i)?i:[]):i,a=t.concat(s);return o?a:a.concat(ll(Eh(s)))}function MM(e){return["table","td","th"].indexOf(_i(e))>=0}function nb(e){return!Ln(e)||Ai(e).position==="fixed"?null:e.offsetParent}function FM(e){var t=/firefox/i.test(nf()),n=/Trident/i.test(nf());if(n&&Ln(e)){var i=Ai(e);if(i.position==="fixed")return null}var o=Eh(e);for(Sw(o)&&(o=o.host);Ln(o)&&["html","body"].indexOf(_i(o))<0;){var r=Ai(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function $w(e){for(var t=Un(e),n=nb(e);n&&MM(n)&&Ai(n).position==="static";)n=nb(n);return n&&(_i(n)==="html"||_i(n)==="body"&&Ai(n).position==="static")?t:n||FM(e)||t}var vr="top",zl="bottom",Vs="right",$o="left",Tw="auto",HM=[vr,zl,Vs,$o],_w="start",Ml="end",NM=[].concat(HM,[Tw]).reduce(function(e,t){return e.concat([t,t+"-"+_w,t+"-"+Ml])},[]),VM="beforeRead",jM="read",qM="afterRead",UM="beforeMain",WM="main",YM="afterMain",KM="beforeWrite",XM="write",GM="afterWrite",of=[VM,jM,qM,UM,WM,YM,KM,XM,GM];function ZM(e){var t=new Map,n=new Set,i=[];e.forEach(function(r){t.set(r.name,r)});function o(r){n.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),i.push(r)}return e.forEach(function(r){n.has(r.name)||o(r)}),i}function JM(e){var t=ZM(e);return of.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function QM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return[].concat(n).reduce(function(o,r){return o.replace(/%s/,r)},e)}var ho='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',eF='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',ib=["name","enabled","phase","fn","effect","requires","options"];function tF(e){e.forEach(function(t){[].concat(Object.keys(t),ib).filter(function(n,i,o){return o.indexOf(n)===i}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Hi(ho,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Hi(ho,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":of.indexOf(t.phase)<0&&console.error(Hi(ho,t.name,'"phase"',"either "+of.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Hi(ho,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Hi(ho,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Hi(ho,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Hi(ho,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+ib.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(i){e.find(function(o){return o.name===i})==null&&console.error(Hi(eF,String(t.name),i,i))})})})}function nF(e,t){var n=new Set;return e.filter(function(i){var o=t(i);if(!n.has(o))return n.add(o),!0})}function Vc(e){return e.split("-")[0]}function iF(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}function Aw(e){return e.split("-")[1]}function oF(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rF(e){var t=e.reference,n=e.element,i=e.placement,o=i?Vc(i):null,r=i?Aw(i):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case vr:l={x:s,y:t.y-n.height};break;case zl:l={x:s,y:t.y+t.height};break;case Vs:l={x:t.x+t.width,y:a};break;case $o:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?oF(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case _w:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Ml:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}var ob="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",sF="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",rb={placement:"bottom",modifiers:[],strategy:"absolute"};function sb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function aF(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,r=o===void 0?rb:o;return function(a,l,c){c===void 0&&(c=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},rb,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],f=!1,p={state:d,setOptions:function(x){var v=typeof x=="function"?x(d.options):x;m(),d.options=Object.assign({},r,d.options,v),d.scrollParents={reference:Sh(a)?ll(a):a.contextElement?ll(a.contextElement):[],popper:ll(l)};var k=JM(iF([].concat(i,d.options.modifiers)));d.orderedModifiers=k.filter(function(w){return w.enabled});{var C=nF([].concat(k,d.options.modifiers),function(w){var _=w.name;return _});if(tF(C),Vc(d.options.placement)===Tw){var y=d.orderedModifiers.find(function(w){var _=w.name;return _==="flip"});y||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var E=Ai(l),$=E.marginTop,S=E.marginRight,T=E.marginBottom,A=E.marginLeft;[$,S,T,A].some(function(w){return parseFloat(w)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return b(),p.update()},forceUpdate:function(){if(!f){var x=d.elements,v=x.reference,k=x.popper;if(!sb(v,k)){console.error(ob);return}d.rects={reference:LM(v,$w(k),d.options.strategy==="fixed"),popper:zM(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(w){return d.modifiersData[w.name]=Object.assign({},w.data)});for(var C=0,y=0;y<d.orderedModifiers.length;y++){if(C+=1,C>100){console.error(sF);break}if(d.reset===!0){d.reset=!1,y=-1;continue}var E=d.orderedModifiers[y],$=E.fn,S=E.options,T=S===void 0?{}:S,A=E.name;typeof $=="function"&&(d=$({state:d,options:T,name:A,instance:p})||d)}}},update:QM(function(){return new Promise(function(g){p.forceUpdate(),g(d)})}),destroy:function(){m(),f=!0}};if(!sb(a,l))return console.error(ob),p;p.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function b(){d.orderedModifiers.forEach(function(g){var x=g.name,v=g.options,k=v===void 0?{}:v,C=g.effect;if(typeof C=="function"){var y=C({state:d,name:x,instance:p,options:k}),E=function(){};u.push(y||E)}})}function m(){u.forEach(function(g){return g()}),u=[]}return p}}var Va={passive:!0};function lF(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=o===void 0?!0:o,s=i.resize,a=s===void 0?!0:s,l=Un(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",n.update,Va)}),a&&l.addEventListener("resize",n.update,Va),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Va)}),a&&l.removeEventListener("resize",n.update,Va)}}var cF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lF,data:{}};function dF(e){var t=e.state,n=e.name;t.modifiersData[n]=rF({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var uF={name:"popperOffsets",enabled:!0,phase:"read",fn:dF,data:{}},fF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hF(e){var t=e.x,n=e.y,i=window,o=i.devicePixelRatio||1;return{x:Ar(t*o)/o||0,y:Ar(n*o)/o||0}}function ab(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,f=s.x,p=f===void 0?0:f,b=s.y,m=b===void 0?0:b,g=typeof d=="function"?d({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var x=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),k=$o,C=vr,y=window;if(c){var E=$w(n),$="clientHeight",S="clientWidth";if(E===Un(n)&&(E=Nc(n),Ai(E).position!=="static"&&a==="absolute"&&($="scrollHeight",S="scrollWidth")),E=E,o===vr||(o===$o||o===Vs)&&r===Ml){C=zl;var T=u&&E===y&&y.visualViewport?y.visualViewport.height:E[$];m-=T-i.height,m*=l?1:-1}if(o===$o||(o===vr||o===zl)&&r===Ml){k=Vs;var A=u&&E===y&&y.visualViewport?y.visualViewport.width:E[S];p-=A-i.width,p*=l?1:-1}}var w=Object.assign({position:a},c&&fF),_=d===!0?hF({x:p,y:m}):{x:p,y:m};if(p=_.x,m=_.y,l){var D;return Object.assign({},w,(D={},D[C]=v?"0":"",D[k]=x?"0":"",D.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",D))}return Object.assign({},w,(t={},t[C]=v?m+"px":"",t[k]=x?p+"px":"",t.transform="",t))}function pF(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,r=n.adaptive,s=r===void 0?!0:r,a=n.roundOffsets,l=a===void 0?!0:a;{var c=Ai(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(u){return c.indexOf(u)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
197
197
|
|
|
198
198
|
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
199
199
|
|