function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.Df99u5_U.js","assets/s-block.Df21UP3e.js","assets/s-layout.eWmtGu02.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/s-layout-DCIDNnOg.css","assets/uni-list.pZHagFmE.js","assets/uni-list-CPN0TP0k.css","assets/su-image.BZSZQEbO.js","assets/su-image-D2l0Ia-p.css","assets/su-swiper.YNGetnQ6.js","assets/su-swiper-Dmk6ouZY.css","assets/s-goods-column.C3h1kDjs.js","assets/useGoods.CeLGMtqT.js","assets/index.OCAPzm9g.js","assets/s-goods-column-BdNLKbq5.css","assets/spu.CzZOl66L.js","assets/combination.H9LeR2pq.js","assets/seckill.2OCkX-mS.js","assets/point.VouF7Lka.js","assets/mp-html.Bn_z6dQC.js","assets/mp-html-BptKdGbR.css","assets/article.CKQOLICO.js","assets/s-block-DM-D3NZS.css","assets/pages-index-user.BnADRR0G.js","assets/pages-index-category.40l2dTMj.js","assets/uni-load-more.B68FXPXI.js","assets/uni-load-more-CZjV53zS.css","assets/category.Cbn6AXbu.js","assets/lodash.default.D_y2Co6H.js","assets/min.BjsomBC-.js","assets/category-Ch3uqEKT.css","assets/pages-customerService-index.Bybx_321.js","assets/index-DeOmsD5j.css","assets/pages-ai-index.Br7D2b2u.js","assets/index-b1lUJNfw.css","assets/pages-index-search.b9O465Ob.js","assets/search-Bmu0p1xj.css","assets/pages-index-page.CmGAxecX.js","assets/pages-goods-index.CVYpJDSJ.js","assets/s-empty.CnuPhNtn.js","assets/s-empty-BdzJmjr3.css","assets/su-number-box.DVh76MUE.js","assets/su-number-box-B83QzXe_.css","assets/favorite.DiJOmpE2.js","assets/rewardActivity.DJ1C1qiw.js","assets/detail-content-card.DgPtT_AJ.js","assets/comment-item.Tg2ZORJf.js","assets/uni-rate.CXeBDDxM.js","assets/uni-rate-DR8DaIUk.css","assets/comment-item-Dg4eq8bk.css","assets/detail-content-card-DcZnt33B.css","assets/index-sjSVO_R3.css","assets/pages-goods-groupon.BH0vkbKK.js","assets/s-select-groupon-sku.C-CXy-7p.js","assets/s-select-groupon-sku-BLFhVeg_.css","assets/groupon-DXReAkHO.css","assets/pages-goods-seckill.DSliLXEb.js","assets/s-select-seckill-sku.iSinCGC7.js","assets/s-select-seckill-sku-C1viULfS.css","assets/seckill-B0crTZXi.css","assets/pages-goods-point.C3cTYJel.js","assets/point-BsU8NlE_.css","assets/pages-goods-list.C8_idhOH.js","assets/su-tabs.dCfZcxzC.js","assets/su-tabs-CW3PH1Wt.css","assets/su-sticky.aWnlrscg.js","assets/su-sticky-B_SY1GJM.css","assets/list-DdoVYvWQ.css","assets/pages-goods-comment-add.DWDgVkmw.js","assets/s-goods-item.BcGK3sEA.js","assets/s-goods-item-D3HV1pzZ.css","assets/s-uploader.BJfW9t1e.js","assets/s-uploader-C1KR1lwY.css","assets/add-CQNheT4d.css","assets/pages-goods-comment-list.CMbmKExL.js","assets/list-DWgJwEe_.css","assets/pages-order-detail.CvYU0tsV.js","assets/delivery.CSRoIRgl.js","assets/detail-DVYbrXBG.css","assets/pages-order-confirm.XDl1mHLv.js","assets/s-coupon-list.CxNY1f5G.js","assets/s-coupon-list-OBmB23vd.css","assets/config.BVLuK1_n.js","assets/confirm-B9fmRvuz.css","assets/pages-order-list.PRLrLVDi.js","assets/list-veoa2V8x.css","assets/pages-order-aftersale-apply.BiVFei4W.js","assets/afterSale.CteARUlI.js","assets/apply-B4JyL6Nr.css","assets/pages-order-aftersale-return-delivery.DiLNjjJ_.js","assets/return-delivery-Bfn2Mck3.css","assets/pages-order-aftersale-list.Dkgzj5kG.js","assets/list-BT2sp0zv.css","assets/pages-order-aftersale-detail.C7dSXwfK.js","assets/detail-DLdCDJzp.css","assets/pages-order-aftersale-log.BytL0H61.js","assets/log-8p2Y5Ooo.css","assets/pages-order-express-log.uJ8pWX8A.js","assets/log-B9Sj7RwC.css","assets/pages-user-info.B2GJCfSm.js","assets/info-CVVNHwTM.css","assets/pages-user-goods-collect.B-2M3ljx.js","assets/goods-collect-BJZZslkp.css","assets/pages-user-goods-log.CGzY8wLi.js","assets/history.m7QQUc5x.js","assets/goods-log-CXSAg-rf.css","assets/pages-user-address-list.DJbO-l_-.js","assets/address.x6PgBY0t.js","assets/list-7UQPmnPj.css","assets/pages-user-address-edit.iw5KX_N3.js","assets/edit-CbspVHKk.css","assets/pages-user-goods_details_store-index.BrHKSg0F.js","assets/index-D6YoDn2B.css","assets/pages-user-wallet-money.D-cOSHO8.js","assets/uni-datetime-picker.Bd2LQRkX.js","assets/uni-datetime-picker-CXJdlLKs.css","assets/money-DUu4Ifnr.css","assets/pages-user-wallet-score.B0iAYv0m.js","assets/score-D3WY13fE.css","assets/pages-commission-index._S1zIHi7.js","assets/index-CGhHu6Eo.css","assets/pages-commission-wallet.BAvEYaB8.js","assets/wallet-Bgd_SR0y.css","assets/pages-commission-goods.DvC9X8Zp.js","assets/goods-DFMxo_11.css","assets/pages-commission-order.B-6EGLmw.js","assets/order-Nuqn0x5Q.css","assets/pages-commission-team.CkXHUvlg.js","assets/team-CcrhK6eW.css","assets/pages-commission-promoter.Dy39R13b.js","assets/promoter-CP7YOrrB.css","assets/pages-commission-commission-ranking.MI73d31U.js","assets/commission-ranking-DA5oE0T8.css","assets/pages-commission-withdraw.CclYDbbS.js","assets/withdraw-Dyy3tDTM.css","assets/pages-app-sign.Dv1aJitZ.js","assets/sign-mIEdj8ZR.css","assets/pages-public-setting.DpecLLU7.js","assets/setting-gvJUdqss.css","assets/pages-public-richtext.CQy10l6t.js","assets/richtext-CoO2gMG5.css","assets/pages-public-faq.DppYsNB1.js","assets/uni-collapse.DmVpZGL3.js","assets/uni-collapse-c_h2wof5.css","assets/faq-D_M-ATNl.css","assets/pages-public-error.Cg_aYba1.js","assets/error-vyDoK5vy.css","assets/pages-coupon-list.CNob4KTD.js","assets/list-BfDMsGGQ.css","assets/pages-coupon-detail.DvnjgNFB.js","assets/detail-CMmIkATJ.css","assets/pages-chat-index.CVwtOYSx.js","assets/index-CHplpoCN.css","assets/pages-pay-index.Bo_HNubV.js","assets/index-BEIXLzRv.css","assets/pages-pay-result.BAY3yoW7.js","assets/result-DXvpL0oj.css","assets/pages-pay-recharge.Cu5gRa1i.js","assets/recharge-Dl2Lx1j6.css","assets/pages-pay-recharge-log.C4dC1Ku5.js","assets/recharge-log-Cd9NuAx6.css","assets/pages-activity-groupon-detail.Dk4K0lCI.js","assets/detail-sv2gTZ4U.css","assets/pages-activity-groupon-order.COhZGNxq.js","assets/order-CeBnHgIU.css","assets/pages-activity-index.DEVWYrGo.js","assets/index-D0Nql3jl.css","assets/pages-activity-groupon-list.CJbsUvhg.js","assets/list-CYRDLasX.css","assets/pages-activity-seckill-list.C85ewJIe.js","assets/list-CRWvR3zM.css","assets/pages-activity-point-list.CuSaieIj.js","assets/list-Bv0FhX5E.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } !function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const e={},t=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){const t=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),a=(null==i?void 0:i.nonce)||(null==i?void 0:i.getAttribute("nonce"));r=Promise.all(n.map((n=>{if((n=function(e){return"/mail/"+e}(n))in e)return;e[n]=!0;const r=n.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(!!o)for(let e=t.length-1;e>=0;e--){const o=t[e];if(o.href===n&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${n}"]${i}`))return;const s=document.createElement("link");return s.rel=r?"stylesheet":"modulepreload",r||(s.as="script",s.crossOrigin=""),s.href=n,a&&s.setAttribute("nonce",a),document.head.appendChild(s),r?new Promise(((e,t)=>{s.addEventListener("load",e),s.addEventListener("error",(()=>t(new Error(`Unable to preload CSS for ${n}`))))})):void 0})))}return r.then((()=>t())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))}; /** * @vue/shared v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const o={},r=[],i=()=>{},a=()=>!1,s=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),f=Array.isArray,h=e=>"[object Map]"===x(e),g=e=>"[object Set]"===x(e),m=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,_=e=>(b(e)||m(e))&&m(e.then)&&m(e.catch),w=Object.prototype.toString,x=e=>w.call(e),S=e=>"[object Object]"===x(e),T=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,k=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,E=C((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),M=/\B([A-Z])/g,O=C((e=>e.replace(M,"-$1").toLowerCase())),P=C((e=>e.charAt(0).toUpperCase()+e.slice(1))),$=C((e=>e?`on${P(e)}`:"")),L=(e,t)=>!Object.is(e,t),I=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let R;const B=()=>R||(R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function N(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(q);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function H(e){let t="";if(v(e))t=e;else if(f(e))for(let n=0;nv(e)?e:null==e?"":f(e)||b(e)&&(e.toString===w||!m(e.toString))?JSON.stringify(e,X,2):String(e),X=(e,t)=>t&&t.__v_isRef?X(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[G(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>G(e)))}:y(t)?G(t):!b(t)||f(t)||S(t)?t:String(t),G=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},J=["ad","ad-content-page","ad-draw","audio","button","camera","canvas","checkbox","checkbox-group","cover-image","cover-view","editor","form","functional-page-navigator","icon","image","input","label","live-player","live-pusher","map","movable-area","movable-view","navigator","official-account","open-data","picker","picker-view","picker-view-column","progress","radio","radio-group","rich-text","scroll-view","slider","swiper","swiper-item","switch","text","textarea","video","view","web-view","location-picker","location-view"].map((e=>"uni-"+e)),K=["list-view","list-item","sticky-section","sticky-header","cloud-db-element"].map((e=>"uni-"+e)),Z=["list-item"].map((e=>"uni-"+e));function Q(e){if(-1!==Z.indexOf(e))return!1;const t="uni-"+e.replace("v-uni-","");return-1!==J.indexOf(t)||-1!==K.indexOf(t)}const ee=["%","%"],te=/^([a-z-]+:)?\/\//i,ne=/^data:.*,.*/;function oe(e){return e&&(e.appContext?e.proxy:e)}function re(e){if(!e)return;let t=e.type.name;for(;t&&Q(O(t));)t=(e=e.parent).type.name;return e.proxy}function ie(e){return 1===e.nodeType}function ae(e){if(e instanceof Map){const t={};return e.forEach(((e,n)=>{t[n]=e})),N(t)}if(v(e))return F(e);if(f(e)){const t={};for(let n=0;n{e&&(t+=n+" ")}));else if(f(e))for(let n=0;n(e&&(n=e.apply(t,o),e=null),n)}const he=e=>e>9?e:"0"+e;function ge({date:e=new Date,mode:t="date"}){return"time"===t?he(e.getHours())+":"+he(e.getMinutes()):e.getFullYear()+"-"+he(e.getMonth()+1)+"-"+he(e.getDate())}function me(e,t){e=e||{},v(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?m(e.success)&&e.success(t):m(e.fail)&&e.fail(t),m(e.complete)&&e.complete(t)}function ve(e){return E(e.substring(5))}const ye=fe((()=>{const e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(e,n){if(e.startsWith("data-")&&this.tagName.startsWith("UNI-")){(this.__uniDataset||(this.__uniDataset={}))[ve(e)]=n}t.call(this,e,n)};const n=e.removeAttribute;e.removeAttribute=function(e){this.__uniDataset&&e.startsWith("data-")&&this.tagName.startsWith("UNI-")&&delete this.__uniDataset[ve(e)],n.call(this,e)}}));function be(e){return c({},e.dataset,e.__uniDataset)}const _e=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function we(e){return{passive:e}}function xe(e){const{id:t,offsetTop:n,offsetLeft:o}=e;return{id:t,dataset:be(e),offsetTop:n,offsetLeft:o}}function Se(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Te(e={}){const t={};return Object.keys(e).forEach((n=>{try{t[n]=Se(e[n])}catch(cC){t[n]=e[n]}})),t}const ke=/\+/g;function Ce(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe.apply(this,arguments);r=o(i,t)};return i.cancel=function(){n(r)},i}class Ee{constructor(e,t){this.id=e,this.listener={},this.emitCache=[],t&&Object.keys(t).forEach((e=>{this.on(e,t[e])}))}emit(e,...t){const n=this.listener[e];if(!n)return this.emitCache.push({eventName:e,args:t});n.forEach((e=>{e.fn.apply(e.fn,t)})),this.listener[e]=n.filter((e=>"once"!==e.type))}on(e,t){this._addListener(e,"on",t),this._clearCache(e)}once(e,t){this._addListener(e,"once",t),this._clearCache(e)}off(e,t){const n=this.listener[e];if(n)if(t)for(let o=0;o{if(m(e._component.onError))return t(e)})),Le=function(){};Le.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o=0;i--)if(o[i].fn===t||o[i].fn._===t){o.splice(i,1);break}r=o}return r.length?n[e]=r:delete n[e],this}};var Ie=Le;const De={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function je(e,t,n){if(v(t)&&t.startsWith("@")){let r=e[t.replace("@","")]||t;switch(n){case"titleColor":r="black"===r?"#000000":"#ffffff";break;case"borderStyle":r=(o=r)&&o in De?De[o]:o}return r}var o;return t}function Re(e,t={},n="light"){const o=t[n],r={};return void 0!==o&&e?(Object.keys(e).forEach((i=>{const a=e[i];r[i]=S(a)?Re(a,t,n):f(a)?a.map((e=>"object"==typeof e?Re(e,t,n):je(o,e))):je(o,a,i)})),r):e} /** * @dcloudio/uni-h5-vue v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Be,Ne;class ze{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Be,!e&&Be&&(this.index=(Be.scopes||(Be.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Be;try{return Be=this,e()}finally{Be=t}}}on(){Be=this}off(){Be=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Ke()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ye,t=Ne;try{return Ye=!0,Ne=this,this._runnings++,He(this),this.fn()}finally{We(this),this._runnings--,Ne=t,Ye=e}}stop(){var e;this.active&&(He(this),We(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function He(e){e._trackId++,e._depsLength=0}function We(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},rt=new WeakMap,it=Symbol(""),at=Symbol("");function st(e,t,n){if(Ye&&Ne){let t=rt.get(e);t||rt.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=ot((()=>t.delete(n)))),et(Ne,o)}}function lt(e,t,n,o,r,i){const a=rt.get(e);if(!a)return;let s=[];if("clear"===t)s=[...a.values()];else if("length"===n&&f(e)){const e=Number(o);a.forEach(((t,n)=>{("length"===n||!y(n)&&n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(a.get(n)),t){case"add":f(e)?T(n)&&s.push(a.get("length")):(s.push(a.get(it)),h(e)&&s.push(a.get(at)));break;case"delete":f(e)||(s.push(a.get(it)),h(e)&&s.push(a.get(at)));break;case"set":h(e)&&s.push(a.get(it))}Ze();for(const l of s)l&&nt(l,4);Qe()}const ct=n("__proto__,__v_isRef,__isVue"),ut=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(y)),dt=pt();function pt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=en(this);for(let t=0,r=this.length;t{e[t]=function(...e){Je(),Ze();const n=en(this)[t].apply(this,e);return Qe(),Ke(),n}})),e}function ft(e){const t=en(this);return st(t,0,e),t.hasOwnProperty(e)}class ht{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?Ht:Ft:r?Vt:qt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=f(e);if(!o){if(i&&p(dt,t))return Reflect.get(dt,t,n);if("hasOwnProperty"===t)return ft}const a=Reflect.get(e,t,n);return(y(t)?ut.has(t):ct(t))?a:(o||st(e,0,t),r?a:ln(a)?i&&T(t)?a:a.value:b(a)?o?Xt(a):Ut(a):a)}}class gt extends ht{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Kt(r);if(Zt(n)||Kt(n)||(r=en(r),n=en(n)),!f(e)&&ln(r)&&!ln(n))return!t&&(r.value=n,!0)}const i=f(e)&&T(t)?Number(t)e,wt=e=>Reflect.getPrototypeOf(e);function xt(e,t,n=!1,o=!1){const r=en(e=e.__v_raw),i=en(t);n||(L(t,i)&&st(r,0,t),st(r,0,i));const{has:a}=wt(r),s=o?_t:n?on:nn;return a.call(r,t)?s(e.get(t)):a.call(r,i)?s(e.get(i)):void(e!==r&&e.get(t))}function St(e,t=!1){const n=this.__v_raw,o=en(n),r=en(e);return t||(L(e,r)&&st(o,0,e),st(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function Tt(e,t=!1){return e=e.__v_raw,!t&&st(en(e),0,it),Reflect.get(e,"size",e)}function kt(e){e=en(e);const t=en(this);return wt(t).has.call(t,e)||(t.add(e),lt(t,"add",e,e)),this}function Ct(e,t){t=en(t);const n=en(this),{has:o,get:r}=wt(n);let i=o.call(n,e);i||(e=en(e),i=o.call(n,e));const a=r.call(n,e);return n.set(e,t),i?L(t,a)&<(n,"set",e,t):lt(n,"add",e,t),this}function At(e){const t=en(this),{has:n,get:o}=wt(t);let r=n.call(t,e);r||(e=en(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&<(t,"delete",e,void 0),i}function Et(){const e=en(this),t=0!==e.size,n=e.clear();return t&<(e,"clear",void 0,void 0),n}function Mt(e,t){return function(n,o){const r=this,i=r.__v_raw,a=en(i),s=t?_t:e?on:nn;return!e&&st(a,0,it),i.forEach(((e,t)=>n.call(o,s(e),s(t),r)))}}function Ot(e,t,n){return function(...o){const r=this.__v_raw,i=en(r),a=h(i),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=r[e](...o),u=n?_t:t?on:nn;return!t&&st(i,0,l?at:it),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Pt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function $t(){const e={get(e){return xt(this,e)},get size(){return Tt(this)},has:St,add:kt,set:Ct,delete:At,clear:Et,forEach:Mt(!1,!1)},t={get(e){return xt(this,e,!1,!0)},get size(){return Tt(this)},has:St,add:kt,set:Ct,delete:At,clear:Et,forEach:Mt(!1,!0)},n={get(e){return xt(this,e,!0)},get size(){return Tt(this,!0)},has(e){return St.call(this,e,!0)},add:Pt("add"),set:Pt("set"),delete:Pt("delete"),clear:Pt("clear"),forEach:Mt(!0,!1)},o={get(e){return xt(this,e,!0,!0)},get size(){return Tt(this,!0)},has(e){return St.call(this,e,!0)},add:Pt("add"),set:Pt("set"),delete:Pt("delete"),clear:Pt("clear"),forEach:Mt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Ot(r,!1,!1),n[r]=Ot(r,!0,!1),t[r]=Ot(r,!1,!0),o[r]=Ot(r,!0,!0)})),[e,n,t,o]}const[Lt,It,Dt,jt]=$t();function Rt(e,t){const n=t?e?jt:Dt:e?It:Lt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const Bt={get:Rt(!1,!1)},Nt={get:Rt(!1,!0)},zt={get:Rt(!0,!1)},qt=new WeakMap,Vt=new WeakMap,Ft=new WeakMap,Ht=new WeakMap;function Wt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>x(e).slice(8,-1))(e))}function Ut(e){return Kt(e)?e:Gt(e,!1,vt,Bt,qt)}function Yt(e){return Gt(e,!1,bt,Nt,Vt)}function Xt(e){return Gt(e,!0,yt,zt,Ft)}function Gt(e,t,n,o,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=Wt(e);if(0===a)return e;const s=new Proxy(e,2===a?o:n);return r.set(e,s),s}function Jt(e){return Kt(e)?Jt(e.__v_raw):!(!e||!e.__v_isReactive)}function Kt(e){return!(!e||!e.__v_isReadonly)}function Zt(e){return!(!e||!e.__v_isShallow)}function Qt(e){return Jt(e)||Kt(e)}function en(e){const t=e&&e.__v_raw;return t?en(t):e}function tn(e){return Object.isExtensible(e)&&D(e,"__v_skip",!0),e}const nn=e=>b(e)?Ut(e):e,on=e=>b(e)?Xt(e):e;class rn{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Fe((()=>e(this._value)),(()=>sn(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=en(this);return e._cacheable&&!e.effect.dirty||!L(e._value,e._value=e.effect.run())||sn(e,4),an(e),e.effect._dirtyLevel>=2&&sn(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function an(e){var t;Ye&&Ne&&(e=en(e),et(Ne,null!=(t=e.dep)?t:e.dep=ot((()=>e.dep=void 0),e instanceof rn?e:void 0)))}function sn(e,t=4,n){const o=(e=en(e)).dep;o&&nt(o,t)}function ln(e){return!(!e||!0!==e.__v_isRef)}function cn(e){return dn(e,!1)}function un(e){return dn(e,!0)}function dn(e,t){return ln(e)?e:new pn(e,t)}class pn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:en(e),this._value=t?e:nn(e)}get value(){return an(this),this._value}set value(e){const t=this.__v_isShallow||Zt(e)||Kt(e);e=t?e:en(e),L(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:nn(e),sn(this,4))}}function fn(e){return ln(e)?e.value:e}const hn={get:(e,t,n)=>fn(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return ln(r)&&!ln(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function gn(e){return Jt(e)?e:new Proxy(e,hn)}function mn(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=yn(e,n);return t}class vn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=en(this._object),t=this._key,null==(n=rt.get(e))?void 0:n.get(t);var e,t,n}}function yn(e,t,n){const o=e[t];return ln(o)?o:new vn(e,t,n)}function bn(e,t,n,o){try{return o?e(...o):e()}catch(r){wn(r,t,n)}}function _n(e,t,n,o){if(m(e)){const r=bn(e,t,n,o);return r&&_(r)&&r.catch((e=>{wn(e,t,n)})),r}const r=[];for(let i=0;i>>1,r=Tn[o],i=jn(r);ijn(e)-jn(t)));if(Cn.length=0,An)return void An.push(...e);for(An=e,En=0;Ennull==e.id?1/0:e.id,Rn=(e,t)=>{const n=jn(e)-jn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Bn(e){Sn=!1,xn=!0,Tn.sort(Rn);try{for(kn=0;knv(e)?e.trim():e))),t&&(i=n.map(j))}let l,c=r[l=$(t)]||r[l=$(E(t))];!c&&a&&(c=r[l=$(O(t))]),c&&_n(c,e,6,zn(e,c,i));const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,_n(u,e,6,zn(e,u,i))}}function zn(e,t,n){if(1!==n.length)return n;if(m(t)){if(t.length<2)return n}else if(!t.find((e=>e.length>=2)))return n;const o=n[0];if(o&&p(o,"type")&&p(o,"timeStamp")&&p(o,"target")&&p(o,"currentTarget")&&p(o,"detail")){const t=e.proxy,o=t.$gcd(t,!0);o&&n.push(o)}return n}function qn(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let a={},s=!1;if(!m(e)){const o=e=>{const n=qn(e,t,!0);n&&(s=!0,c(a,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||s?(f(i)?i.forEach((e=>a[e]=null)):c(a,i),b(e)&&o.set(e,a),a):(b(e)&&o.set(e,null),null)}function Vn(e,t){return!(!e||!s(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,O(t))||p(e,t))}let Fn=null,Hn=null;function Wn(e){const t=Fn;return Fn=e,Hn=e&&e.type.__scopeId||null,t}function Un(e,t=Fn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&ei(-1);const r=Wn(t);let i;try{i=e(...n)}finally{Wn(r),o._d&&ei(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Yn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[a],slots:s,attrs:c,emit:u,render:d,renderCache:p,data:f,setupState:h,ctx:g,inheritAttrs:m}=e;let v,y;const b=Wn(e);try{if(4&n.shapeFlag){const e=r||o,t=e;v=gi(d.call(t,e,p,i,h,f,g)),y=c}else{const e=t;0,v=gi(e.length>1?e(i,{attrs:c,slots:s,emit:u}):e(i,null)),y=t.props?c:Xn(c)}}catch(w){Jr.length=0,wn(w,e,1),v=ui(Xr)}let _=v;if(y&&!1!==m){const e=Object.keys(y),{shapeFlag:t}=_;e.length&&7&t&&(a&&e.some(l)&&(y=Gn(y,a)),_=pi(_,y))}return n.dirs&&(_=pi(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),v=_,Wn(b),v}const Xn=e=>{let t;for(const n in e)("class"===n||"style"===n||s(n))&&((t||(t={}))[n]=e[n]);return t},Gn=(e,t)=>{const n={};for(const o in e)l(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Jn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;const oo=Symbol.for("v-scx");function ro(e,t){return lo(e,null,t)}function io(e,t){return lo(e,null,{flush:"post"})}const ao={};function so(e,t,n){return lo(e,t,n)}function lo(e,t,{immediate:n,deep:r,flush:a,once:s,onTrack:l,onTrigger:c}=o){if(t&&s){const e=t;t=(...t)=>{e(...t),C()}}const d=xi,p=e=>!0===r?e:po(e,!1===r?1:void 0);let h,g,v=!1,y=!1;if(ln(e)?(h=()=>e.value,v=Zt(e)):Jt(e)?(h=()=>p(e),v=!0):f(e)?(y=!0,v=e.some((e=>Jt(e)||Zt(e))),h=()=>e.map((e=>ln(e)?e.value:Jt(e)?p(e):m(e)?bn(e,d,2):void 0))):h=m(e)?t?()=>bn(e,d,2):()=>(g&&g(),_n(e,d,3,[_])):i,t&&r){const e=h;h=()=>po(e())}let b,_=e=>{g=T.onStop=()=>{bn(e,d,4),g=T.onStop=void 0}};if(Mi){if(_=i,t?n&&_n(t,d,3,[h(),y?[]:void 0,_]):h(),"sync"!==a)return i;{const e=Cr(oo);b=e.__watcherHandles||(e.__watcherHandles=[])}}let w=y?new Array(e.length).fill(ao):ao;const x=()=>{if(T.active&&T.dirty)if(t){const e=T.run();(r||v||(y?e.some(((e,t)=>L(e,w[t]))):L(e,w)))&&(g&&g(),_n(t,d,3,[e,w===ao?void 0:y&&w[0]===ao?[]:w,_]),w=e)}else T.run()};let S;x.allowRecurse=!!t,"sync"===a?S=x:"post"===a?S=()=>zr(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),S=()=>$n(x));const T=new Fe(h,i,S),k=Ve(),C=()=>{T.stop(),k&&u(k.effects,T)};return t?n?x():w=T.run():"post"===a?zr(T.run.bind(T),d&&d.suspense):T.run(),b&&b.push(C),C}function co(e,t,n){const o=this.proxy,r=v(e)?e.includes(".")?uo(o,e):()=>o[e]:e.bind(o,o);let i;m(t)?i=t:(i=t.handler,n=t);const a=Ci(this),s=lo(r,i.bind(o),n);return a(),s}function uo(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),ln(e))po(e.value,t,n,o);else if(f(e))for(let r=0;r{po(e,t,n,o)}));else if(S(e))for(const r in e)po(e[r],t,n,o);return e}function fo(e,t){if(null===Fn)return e;const n=$i(Fn)||Fn.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0})),Go((()=>{e.isUnmounting=!0})),e}();return()=>{const r=t.default&&ko(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1)for(const e of r)if(e.type!==Xr){i=e;break}const a=en(e),{mode:s}=a;if(o.isLeaving)return xo(i);const l=So(i);if(!l)return xo(i);const c=wo(l,a,o,n);To(l,c);const u=n.subTree,d=u&&So(u);if(d&&d.type!==Xr&&!ii(l,d)){const e=wo(d,a,o,n);if(To(d,e),"out-in"===s)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},xo(i);"in-out"===s&&l.type!==Xr&&(e.delayLeave=(e,t,n)=>{_o(o,d)[String(d.key)]=d,e[go]=()=>{t(),e[go]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return i}}};function _o(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function wo(e,t,n,o){const{appear:r,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,_=String(e.key),w=_o(n,e),x=(e,t)=>{e&&_n(e,o,9,t)},S=(e,t)=>{const n=t[1];x(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},T={mode:i,persisted:a,beforeEnter(t){let o=s;if(!n.isMounted){if(!r)return;o=m||s}t[go]&&t[go](!0);const i=w[_];i&&ii(e,i)&&i.el[go]&&i.el[go](),x(o,[t])},enter(e){let t=l,o=c,i=u;if(!n.isMounted){if(!r)return;t=v||l,o=y||c,i=b||u}let a=!1;const s=e[mo]=t=>{a||(a=!0,x(t?i:o,[e]),T.delayedLeave&&T.delayedLeave(),e[mo]=void 0)};t?S(t,[e,s]):s()},leave(t,o){const r=String(e.key);if(t[mo]&&t[mo](!0),n.isUnmounting)return o();x(d,[t]);let i=!1;const a=t[go]=n=>{i||(i=!0,o(),x(n?g:h,[t]),t[go]=void 0,w[r]===e&&delete w[r])};w[r]=e,p?S(p,[t,a]):a()},clone:e=>wo(e,t,n,o)};return T}function xo(e){if(Oo(e))return(e=pi(e)).children=null,e}function So(e){return Oo(e)?e.children?e.children[0]:void 0:e}function To(e,t){6&e.shapeFlag&&e.component?To(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ko(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;ic({name:e.name},t,{setup:e}))():e}const Ao=e=>!!e.type.__asyncLoader /*! #__NO_SIDE_EFFECTS__ */;function Eo(e){m(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:a=!0,onError:s}=e;let l,c=null,u=0;const d=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{s(e,(()=>t((u++,c=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return Co({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=xi;if(l)return()=>Mo(l,e);const t=t=>{c=null,wn(t,e,13,!o)};if(a&&e.suspense||Mi)return d().then((t=>()=>Mo(t,e))).catch((e=>(t(e),()=>o?ui(o,{error:e}):null)));const s=cn(!1),u=cn(),p=cn(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!s.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{s.value=!0,e.parent&&Oo(e.parent.vnode)&&(e.parent.effect.dirty=!0,$n(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>s.value&&l?Mo(l,e):u.value&&o?ui(o,{error:u.value}):n&&!p.value?ui(n):void 0}})}function Mo(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,a=ui(e,o,r);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const Oo=e=>e.type.__isKeepAlive;class Po{constructor(e){this.max=e,this._cache=new Map,this._keys=new Set,this._max=parseInt(e,10)}get(e){const{_cache:t,_keys:n,_max:o}=this,r=t.get(e);if(r)n.delete(e),n.add(e);else if(n.add(e),o&&n.size>o){const e=n.values().next().value;this.pruneCacheEntry(t.get(e)),this.delete(e)}return r}set(e,t){this._cache.set(e,t)}delete(e){this._cache.delete(e),this._keys.delete(e)}forEach(e,t){this._cache.forEach(e.bind(t))}}const $o={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number],matchBy:{type:String,default:"name"},cache:Object},setup(e,{slots:t}){const n=Si(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=e.cache||new Po(e.max);r.pruneCacheEntry=a;let i=null;function a(t){var o;!i||!ii(t,i)||"key"===e.matchBy&&t.key!==i.key?(No(o=t),u(o,n,s,!0)):i&&No(i)}const s=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=o,p=d("div");function f(t){r.forEach(((n,o)=>{const i=qo(n,e.matchBy);!i||t&&t(i)||(r.delete(o),a(n))}))}o.activate=(e,t,n,o,r)=>{const i=e.component;if(i.ba){const e=i.isDeactivated;i.isDeactivated=!1,I(i.ba),i.isDeactivated=e}c(e,t,n,0,s),l(i.vnode,e,t,n,i,s,o,e.slotScopeIds,r),zr((()=>{i.isDeactivated=!1,i.a&&I(i.a);const t=e.props&&e.props.onVnodeMounted;t&&bi(t,i.parent,e)}),s)},o.deactivate=e=>{const t=e.component;t.bda&&Vo(t.bda),c(e,p,null,1,s),zr((()=>{t.bda&&t.bda.forEach((e=>e.__called=!1)),t.da&&I(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&bi(n,t.parent,e),t.isDeactivated=!0}),s)},so((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&f((t=>Io(e,t))),t&&f((e=>!Io(t,e)))}),{flush:"post",deep:!0});let h=null;const g=()=>{null!=h&&r.set(h,zo(n.subTree))};return Uo(g),Xo(g),Go((()=>{r.forEach(((t,o)=>{r.delete(o),a(t);const{subTree:i,suspense:s}=n,l=zo(i);if(t.type!==l.type||"key"===e.matchBy&&t.key!==l.key);else{l.component.bda&&I(l.component.bda),No(l);const e=l.component.da;e&&zr(e,s)}}))})),()=>{if(h=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!ri(o)||!(4&o.shapeFlag)&&!no(o.type))return i=null,o;let a=zo(o);const s=a.type,l=qo(a,e.matchBy),{include:c,exclude:u}=e;if(c&&(!l||!Io(c,l))||u&&l&&Io(u,l))return i=a,o;const d=null==a.key?s:a.key,p=r.get(d);return a.el&&(a=pi(a),no(o.type)&&(o.ssContent=a)),h=d,p&&(a.el=p.el,a.component=p.component,a.transition&&To(a,a.transition),a.shapeFlag|=512),a.shapeFlag|=256,i=a,no(o.type)?o:a}}},Lo=$o;function Io(e,t){return f(e)?e.some((e=>Io(e,t))):v(e)?e.split(",").includes(t):"[object RegExp]"===x(e)&&e.test(t)}function Do(e,t){Ro(e,"a",t)}function jo(e,t){Ro(e,"da",t)}function Ro(e,t,n=xi){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(o.__called=!1,Fo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Oo(e.parent.vnode)&&Bo(o,t,n,e),e=e.parent}}function Bo(e,t,n,o){const r=Fo(t,e,o,!0);Jo((()=>{u(o[t],r)}),n)}function No(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function zo(e){return no(e.type)?e.ssContent:e}function qo(e,t){if("name"===t){const t=e.type;return Li(Ao(e)?t.__asyncResolved||{}:t)}return String(e.key)}function Vo(e){for(let t=0;t-1&&n.$pageInstance){if(n.type.__reserved)return;if(n!==n.$pageInstance&&(n=n.$pageInstance,function(e){return["onLoad","onShow"].indexOf(e)>-1}(e))){const o=n.proxy;_n(t.bind(o),n,e,"onLoad"===e?[o.$page.options]:[])}}const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Je();const r=Ci(n),i=_n(t,n,e,o);return r(),Ke(),i});return o?i.unshift(a):i.push(a),a}var r}const Ho=e=>(t,n=xi)=>(!Mi||"sp"===e)&&Fo(e,((...e)=>t(...e)),n),Wo=Ho("bm"),Uo=Ho("m"),Yo=Ho("bu"),Xo=Ho("u"),Go=Ho("bum"),Jo=Ho("um"),Ko=Ho("sp"),Zo=Ho("rtg"),Qo=Ho("rtc");function er(e,t=xi){Fo("ec",e,t)}function tr(e,t,n,o){let r;const i=n&&n[o];if(f(e)||v(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,a=n.length;o!ri(e)||e.type!==Xr&&!(e.type===Ur&&!or(e.children))))?e:null}const rr=e=>{if(!e)return null;if(Ei(e)){return $i(e)||e.proxy}return rr(e.parent)},ir=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>rr(e.parent),$root:e=>rr(e.root),$emit:e=>e.emit,$options:e=>fr(e),$forceUpdate:e=>e.f||(e.f=(e=>function(){e.effect.dirty=!0,$n(e.update)})(e)),$nextTick:e=>e.n||(e.n=Pn.bind(e.proxy)),$watch:e=>co.bind(e)}),ar=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),sr={get({_:e},t){const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(ar(r,t))return s[t]=1,r[t];if(i!==o&&p(i,t))return s[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return s[t]=3,a[t];if(n!==o&&p(n,t))return s[t]=4,n[t];cr&&(s[t]=0)}}const d=ir[t];let f,h;return d?("$attrs"===t&&st(e,0,t),d(e)):(f=l.__cssModules)&&(f=f[t])?f:n!==o&&p(n,t)?(s[t]=4,n[t]):(h=c.config.globalProperties,p(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return ar(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!p(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let l;return!!n[s]||e!==o&&p(e,s)||ar(t,s)||(l=a[0])&&p(l,s)||p(r,s)||p(ir,s)||p(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function lr(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let cr=!0;function ur(e){const t=fr(e),n=e.proxy,o=e.ctx;cr=!1,t.beforeCreate&&dr(t.beforeCreate,e,"bc");const{data:r,computed:a,methods:s,watch:l,provide:c,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:g,updated:v,activated:y,deactivated:_,beforeDestroy:w,beforeUnmount:x,destroyed:S,unmounted:T,render:k,renderTracked:C,renderTriggered:A,errorCaptured:E,serverPrefetch:M,expose:O,inheritAttrs:P,components:$,directives:L,filters:I}=t;if(u&&function(e,t,n=i){f(e)&&(e=vr(e));for(const o in e){const n=e[o];let r;r=b(n)?"default"in n?Cr(n.from||o,n.default,!0):Cr(n.from||o):Cr(n),ln(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[o]=r}}(u,o,null),s)for(const i in s){const e=s[i];m(e)&&(o[i]=e.bind(n))}if(r){const t=r.call(n,n);b(t)&&(e.data=Ut(t))}if(cr=!0,a)for(const f in a){const e=a[f],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):i,r=!m(e)&&m(e.set)?e.set.bind(n):i,s=Ii({get:t,set:r});Object.defineProperty(o,f,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(l)for(const i in l)pr(l[i],o,n,i);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{kr(t,e[t])}))}function D(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&dr(d,e,"c"),D(Wo,p),D(Uo,h),D(Yo,g),D(Xo,v),D(Do,y),D(jo,_),D(er,E),D(Qo,C),D(Zo,A),D(Go,x),D(Jo,T),D(Ko,M),f(O))if(O.length){const t=e.exposed||(e.exposed={});O.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});k&&e.render===i&&(e.render=k),null!=P&&(e.inheritAttrs=P),$&&(e.components=$),L&&(e.directives=L);const j=e.appContext.config.globalProperties.$applyOptions;j&&j(t,e,n)}function dr(e,t,n){_n(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function pr(e,t,n,o){const r=o.includes(".")?uo(n,o):()=>n[o];if(v(e)){const n=t[e];m(n)&&so(r,n)}else if(m(e))so(r,e.bind(n));else if(b(e))if(f(e))e.forEach((e=>pr(e,t,n,o)));else{const o=m(e.handler)?e.handler.bind(n):t[e.handler];m(o)&&so(r,o,e)}}function fr(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:r.length||n||o?(l={},r.length&&r.forEach((e=>hr(l,e,a,!0))),hr(l,t,a)):l=t,b(t)&&i.set(t,l),l}function hr(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&hr(e,i,n,!0),r&&r.forEach((t=>hr(e,t,n,!0)));for(const a in t)if(o&&"expose"===a);else{const o=gr[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const gr={data:mr,props:_r,emits:_r,methods:br,computed:br,beforeCreate:yr,created:yr,beforeMount:yr,mounted:yr,beforeUpdate:yr,updated:yr,beforeDestroy:yr,beforeUnmount:yr,destroyed:yr,unmounted:yr,activated:yr,deactivated:yr,errorCaptured:yr,serverPrefetch:yr,components:br,directives:br,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const o in t)n[o]=yr(e[o],t[o]);return n},provide:mr,inject:function(e,t){return br(vr(e),vr(t))}};function mr(e,t){return t?e?function(){return c(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function vr(e){if(f(e)){const t={};for(let n=0;n(i.has(e)||(e&&m(e.install)?(i.add(e),e.install(s,...t)):m(e)&&(i.add(e),e(s,...t))),s),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),s),component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(i,l,c){if(!a){const u=ui(n,o);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(u,i):e(u,i,c),a=!0,s._container=i,i.__vue_app__=s,s._instance=u.component,$i(u.component)||u.component.proxy}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s),runWithContext(e){const t=Tr;Tr=s;try{return e()}finally{Tr=t}}};return s}}let Tr=null;function kr(e,t){if(xi){let n=xi.provides;const o=xi.parent&&xi.parent.provides;o===n&&(n=xi.provides=Object.create(o)),n[e]=t,"app"===xi.type.mpType&&xi.appContext.app.provide(e,t)}else;}function Cr(e,t,n=!1){const o=xi||Fn;if(o||Tr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Tr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&m(t)?t.call(o&&o.proxy):t}}function Ar(e,t,n,r){const[i,a]=e.propsOptions;let s,l=!1;if(t)for(let o in t){if(k(o))continue;const c=t[o];let u;i&&p(i,u=E(o))?a&&a.includes(u)?(s||(s={}))[u]=c:n[u]=c:Vn(e.emitsOptions,o)||o in r&&c===r[o]||(r[o]=c,l=!0)}if(a){const t=en(n),r=s||o;for(let o=0;o{d=!0;const[n,o]=Mr(e,t,!0);c(l,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!d)return b(e)&&i.set(e,r),r;if(f(s))for(let r=0;r-1,n[1]=o<0||t-1||p(n,"default"))&&u.push(e)}}}const h=[l,u];return b(e)&&i.set(e,h),h}function Or(e){return"$"!==e[0]&&!k(e)}function Pr(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function $r(e,t){return Pr(e)===Pr(t)}function Lr(e,t){return f(t)?t.findIndex((t=>$r(t,e))):m(t)&&$r(t,e)?0:-1}const Ir=e=>"_"===e[0]||"$stable"===e,Dr=e=>f(e)?e.map(gi):[gi(e)],jr=(e,t,n)=>{if(t._n)return t;const o=Un(((...e)=>Dr(t(...e))),n);return o._c=!1,o},Rr=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ir(r))continue;const n=e[r];if(m(n))t[r]=jr(0,n,o);else if(null!=n){const e=Dr(n);t[r]=()=>e}}},Br=(e,t)=>{const n=Dr(t);e.slots.default=()=>n};function Nr(e,t,n,r,i=!1){if(f(e))return void e.forEach(((e,o)=>Nr(e,t&&(f(t)?t[o]:t),n,r,i)));if(Ao(r)&&!i)return;const a=4&r.shapeFlag?$i(r.component)||r.component.proxy:r.el,s=i?null:a,{i:l,r:c}=e,d=t&&t.r,h=l.refs===o?l.refs={}:l.refs,g=l.setupState;if(null!=d&&d!==c&&(v(d)?(h[d]=null,p(g,d)&&(g[d]=null)):ln(d)&&(d.value=null)),m(c))bn(c,l,12,[s,h]);else{const t=v(c),o=ln(c);if(t||o){const r=()=>{if(e.f){const n=t?p(g,c)?g[c]:h[c]:c.value;i?f(n)&&u(n,a):f(n)?n.includes(a)||n.push(a):t?(h[c]=[a],p(g,c)&&(g[c]=h[c])):(c.value=[a],e.k&&(h[e.k]=c.value))}else t?(h[c]=s,p(g,c)&&(g[c]=s)):o&&(c.value=s,e.k&&(h[e.k]=s))};s?(r.id=-1,zr(r,n)):r()}}}const zr=function(e,t){var n;t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):(f(n=e)?Cn.push(...n):An&&An.includes(n,n.allowRecurse?En+1:En)||Cn.push(n),Ln())};function qr(e){return function(e,t){B().__VUE__=!0;const{insert:n,remove:a,patchProp:s,forcePatchProp:l,createElement:u,createText:d,createComment:f,setText:h,setElementText:g,parentNode:m,nextSibling:v,setScopeId:y=i,insertStaticContent:b}=e,w=(e,t,n,o=null,r=null,i=null,a,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ii(e,t)&&(o=te(e),J(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Yr:x(e,t,n,o);break;case Xr:S(e,t,n,o);break;case Gr:null==e&&T(t,n,o,a);break;case Ur:z(e,t,n,o,r,i,a,s,l);break;default:1&d?M(e,t,n,o,r,i,a,s,l):6&d?q(e,t,n,o,r,i,a,s,l):(64&d||128&d)&&c.process(e,t,n,o,r,i,a,s,l,re)}null!=u&&r&&Nr(u,e&&e.ref,i,t||e,!t)},x=(e,t,o,r)=>{if(null==e)n(t.el=d(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=f(t.children||""),o,r):t.el=e.el},T=(e,t,n,o)=>{[e.el,e.anchor]=b(e.children,t,n,o,e.el,e.anchor)},C=({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=v(e),n(e,o,r),e=i;n(t,o,r)},A=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=v(e),a(e),e=n;a(t)},M=(e,t,n,o,r,i,a,s,l)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?P(t,n,o,r,i,a,s,l):j(e,t,r,i,a,s,l)},P=(e,t,o,r,i,a,l,c)=>{let d,p;const{props:f,shapeFlag:h,transition:m,dirs:v}=e;if(d=e.el=u(e.type,a,f&&f.is,f),8&h?g(d,e.children):16&h&&L(e.children,d,null,r,i,Vr(e,a),l,c),v&&ho(e,null,r,"created"),$(d,e,e.scopeId,l,r),f){for(const t in f)"value"===t||k(t)||s(d,t,null,f[t],a,e.children,r,i,ee);"value"in f&&s(d,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&bi(p,r,e)}Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1}),v&&ho(e,null,r,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,m);y&&m.beforeEnter(d),n(d,t,o),((p=f&&f.onVnodeMounted)||y||v)&&zr((()=>{p&&bi(p,r,e),y&&m.enter(d),v&&ho(e,null,r,"mounted")}),i)},$=(e,t,n,o,r)=>{if(n&&y(e,n),o)for(let i=0;i{for(let c=l;c{const u=t.el=e.el;let{patchFlag:d,dynamicChildren:p,dirs:f}=t;d|=16&e.patchFlag;const h=e.props||o,m=t.props||o;let v;if(n&&Fr(n,!1),(v=m.onVnodeBeforeUpdate)&&bi(v,n,t,e),f&&ho(t,e,n,"beforeUpdate"),n&&Fr(n,!0),p?R(e.dynamicChildren,p,u,n,r,Vr(t,i),a):c||U(e,t,u,null,n,r,Vr(t,i),a,!1),d>0){if(16&d)N(u,t,h,m,n,r,i);else if(2&d&&h.class!==m.class&&s(u,"class",null,m.class,i),4&d&&s(u,"style",h.style,m.style,i),8&d){const o=t.dynamicProps;for(let t=0;t{v&&bi(v,n,t,e),f&&ho(t,e,n,"updated")}),r)},R=(e,t,n,o,r,i,a)=>{for(let s=0;s{if(n!==r){if(n!==o)for(const o in n)k(o)||o in r||s(e,o,n[o],null,c,t.children,i,a,ee);for(const o in r){if(k(o))continue;const u=r[o],d=n[o];(u!==d&&"value"!==o||l&&l(e,o))&&s(e,o,d,u,c,t.children,i,a,ee)}"value"in r&&s(e,"value",n.value,r.value,c)}},z=(e,t,o,r,i,a,s,l,c)=>{const u=t.el=e?e.el:d(""),p=t.anchor=e?e.anchor:d("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(n(u,o,r),n(p,o,r),L(t.children||[],o,p,i,a,s,l,c)):f>0&&64&f&&h&&e.dynamicChildren?(R(e.dynamicChildren,h,o,i,a,s,l),(null!=t.key||i&&t===i.subTree)&&Hr(e,t,!0)):U(e,t,o,p,i,a,s,l,c)},q=(e,t,n,o,r,i,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,a,l):V(t,n,o,r,i,a,l):F(e,t,l)},V=(e,t,n,r,i,a,s)=>{const l=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||_i,a={uid:wi++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new ze(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Mr(r,i),emitsOptions:qn(r,i),emit:null,emitted:null,propsDefaults:o,inheritAttrs:r.inheritAttrs,ctx:o,data:o,props:o,attrs:o,slots:o,refs:o,setupState:o,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,bda:null,da:null,ba:null,a:null,rtg:null,rtc:null,ec:null,sp:null};a.ctx={_:a},a.root=t?t.root:a,a.emit=Nn.bind(null,a),a.$pageInstance=t&&t.$pageInstance,e.ce&&e.ce(a);return a}(e,r,i);if(Oo(e)&&(l.ctx.renderer=re),function(e,t=!1){t&&ki(t);const{props:n,children:o}=e.vnode,r=Ei(e);(function(e,t,n,o=!1){const r={},i={};D(i,ai,1),e.propsDefaults=Object.create(null),Ar(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=o?r:Yt(r):e.type.props?e.props=r:e.props=i,e.attrs=i})(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=en(t),D(t,"_",n)):Rr(t,e.slots={})}else e.slots={},t&&Br(e,t);D(e.slots,ai,1)})(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=tn(new Proxy(e.ctx,sr));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(st(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null,r=Ci(e);Je();const i=bn(o,e,0,[e.props,n]);if(Ke(),r(),_(i)){if(i.then(Ai,Ai),t)return i.then((n=>{Oi(e,n,t)})).catch((t=>{wn(t,e,0)}));e.asyncDep=i}else Oi(e,i,t)}else Pi(e,t)}(e,t):void 0;t&&ki(!1)}(l),l.asyncDep){if(i&&i.registerDep(l,H),!e.el){const e=l.subTree=ui(Xr);S(null,e,t,n)}}else H(l,e,t,n,i,a,s)},F=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||o!==a&&(o?!a||Jn(o,a,c):!!a);if(1024&l)return!0;if(16&l)return o?Jn(o,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;tkn&&Tn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},H=(e,t,n,o,r,a,s)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:c}=e;{const n=Wr(e);if(n)return t&&(t.el=c.el,W(e,t,s)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let u,d=t;Fr(e,!1),t?(t.el=c.el,W(e,t,s)):t=c,n&&I(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&bi(u,i,t,c),Fr(e,!0);const p=Yn(e),f=e.subTree;e.subTree=p,w(f,p,m(f.el),te(f),e,r,a),t.el=p.el,null===d&&function({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,p.el),o&&zr(o,r),(u=t.props&&t.props.onVnodeUpdated)&&zr((()=>bi(u,i,t,c)),r)}else{let i;const{el:s,props:l}=t,{bm:c,m:u,parent:d}=e,p=Ao(t);if(Fr(e,!1),c&&I(c),!p&&(i=l&&l.onVnodeBeforeMount)&&bi(i,d,t),Fr(e,!0),s&&ae){const n=()=>{e.subTree=Yn(e),ae(s,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Yn(e);w(null,i,n,o,e,r,a),t.el=i.el}if(u&&zr(u,r),!p&&(i=l&&l.onVnodeMounted)){const e=t;zr((()=>bi(i,d,e)),r)}(256&t.shapeFlag||d&&Ao(d.vnode)&&256&d.vnode.shapeFlag)&&(e.ba&&Vo(e.ba),e.a&&zr(e.a,r)),e.isMounted=!0,t=n=o=null}},c=e.effect=new Fe(l,i,(()=>$n(u)),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.id=e.uid,Fr(e,!0),u()},W=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,s=en(r),[l]=e.propsOptions;let c=!1;if(!(o||a>0)||16&a){let o;Ar(e,t,r,i)&&(c=!0);for(const i in s)t&&(p(t,i)||(o=O(i))!==i&&p(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Er(l,s,i,void 0,e,!0)):delete r[i]);if(i!==s)for(const e in i)t&&p(t,e)||(delete i[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:r,slots:i}=e;let a=!0,s=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:(c(i,t),n||1!==e||delete i._):(a=!t.$stable,Rr(t,i)),s=t}else t&&(Br(e,t),s={default:1});if(a)for(const o in i)Ir(o)||null!=s[o]||delete i[o]})(e,t.children,n),Je(),In(e),Ke()},U=(e,t,n,o,r,i,a,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void X(c,d,n,o,r,i,a,s,l);if(256&p)return void Y(c,d,n,o,r,i,a,s,l)}8&f?(16&u&&ee(c,r,i),d!==c&&g(n,d)):16&u?16&f?X(c,d,n,o,r,i,a,s,l):ee(c,r,i,!0):(8&u&&g(n,""),16&f&&L(d,n,o,r,i,a,s,l))},Y=(e,t,n,o,i,a,s,l,c)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let f;for(f=0;fd?ee(e,i,a,!0,!1,p):L(t,n,o,i,a,s,l,c,p)},X=(e,t,n,o,i,a,s,l,c)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const o=e[u],r=t[u]=c?mi(t[u]):gi(t[u]);if(!ii(o,r))break;w(o,r,n,null,i,a,s,l,c),u++}for(;u<=p&&u<=f;){const o=e[p],r=t[f]=c?mi(t[f]):gi(t[f]);if(!ii(o,r))break;w(o,r,n,null,i,a,s,l,c),p--,f--}if(u>p){if(u<=f){const e=f+1,r=ef)for(;u<=p;)J(e[u],i,a,!0),u++;else{const h=u,g=u,m=new Map;for(u=g;u<=f;u++){const e=t[u]=c?mi(t[u]):gi(t[u]);null!=e.key&&m.set(e.key,u)}let v,y=0;const b=f-g+1;let _=!1,x=0;const S=new Array(b);for(u=0;u=b){J(o,i,a,!0);continue}let r;if(null!=o.key)r=m.get(o.key);else for(v=g;v<=f;v++)if(0===S[v-g]&&ii(o,t[v])){r=v;break}void 0===r?J(o,i,a,!0):(S[r-g]=u+1,r>=x?x=r:_=!0,w(o,t[r],n,null,i,a,s,l,c),y++)}const T=_?function(e){const t=e.slice(),n=[0];let o,r,i,a,s;const l=e.length;for(o=0;o>1,e[n[s]]0&&(t[o]=n[i-1]),n[i]=o)}}i=n.length,a=n[i-1];for(;i-- >0;)n[i]=a,a=t[a];return n}(S):r;for(v=T.length-1,u=b-1;u>=0;u--){const e=g+u,r=t[e],p=e+1{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void G(e.component.subTree,t,o,r);if(128&u)return void e.suspense.move(t,o,r);if(64&u)return void s.move(e,t,o,re);if(s===Ur){n(a,t,o);for(let e=0;el.enter(a)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,s=()=>n(a,t,o),c=()=>{e(a,(()=>{s(),i&&i()}))};r?r(a,s,c):c()}else n(a,t,o)},J=(e,t,n,o=!1,r=!1)=>{const{type:i,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=s&&Nr(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,h=!Ao(e);let g;if(h&&(g=a&&a.onVnodeBeforeUnmount)&&bi(g,t,e),6&u)Q(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&ho(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,re,o):c&&(i!==Ur||d>0&&64&d)?ee(c,t,n,!1,!0):(i===Ur&&384&d||!r&&16&u)&&ee(l,t,n),o&&K(e)}(h&&(g=a&&a.onVnodeUnmounted)||f)&&zr((()=>{g&&bi(g,t,e),f&&ho(e,null,t,"unmounted")}),n)},K=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Ur)return void Z(n,o);if(t===Gr)return void A(e);const i=()=>{a(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,a=()=>t(n,i);o?o(e.el,i,a):a()}else i()},Z=(e,t)=>{let n;for(;e!==t;)n=v(e),a(e),e=n;a(t)},Q=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:a,um:s}=e;o&&I(o),r.stop(),i&&(i.active=!1,J(a,e,t,n)),s&&zr(s,t),zr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,o=!1,r=!1,i=0)=>{for(let a=i;a6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():v(e.anchor||e.el);let ne=!1;const oe=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):w(t._vnode||null,e,t,null,null,null,n),ne||(ne=!0,In(),Dn(),ne=!1),t._vnode=e},re={p:w,um:J,m:G,r:K,mt:V,mc:L,pc:U,pbc:R,n:te,o:e};let ie,ae;t&&([ie,ae]=t(re));return{render:oe,hydrate:ie,createApp:Sr(oe,ie)}}(e)}function Vr({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Fr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Hr(e,t,n=!1){const o=e.children,r=t.children;if(f(o)&&f(r))for(let i=0;i0?Kr||r:null,Jr.pop(),Kr=Jr[Jr.length-1]||null,Qr>0&&Kr&&Kr.push(e),e}function ni(e,t,n,o,r,i){return ti(ci(e,t,n,o,r,i,!0))}function oi(e,t,n,o,r){return ti(ui(e,t,n,o,r,!0))}function ri(e){return!!e&&!0===e.__v_isVNode}function ii(e,t){return e.type===t.type&&e.key===t.key}const ai="__vInternal",si=({key:e})=>null!=e?e:null,li=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||ln(e)||m(e)?{i:Fn,r:e,k:t,f:!!n}:e:null);function ci(e,t=null,n=null,o=0,r=null,i=(e===Ur?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&si(t),ref:t&&li(t),scopeId:Hn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Fn};return s?(vi(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=v(n)?8:16),Qr>0&&!a&&Kr&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&Kr.push(l),l}const ui=function(e,t=null,n=null,o=0,r=null,i=!1){e&&e!==Zn||(e=Xr);if(ri(e)){const o=pi(e,t,!0);return n&&vi(o,n),Qr>0&&!i&&Kr&&(6&o.shapeFlag?Kr[Kr.indexOf(e)]=o:Kr.push(o)),o.patchFlag|=-2,o}a=e,m(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=di(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=se(e)),b(n)&&(Qt(n)&&!f(n)&&(n=c({},n)),t.style=ae(n))}const s=v(e)?1:no(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:m(e)?2:0;return ci(e,t,n,o,r,s,i,!0)};function di(e){return e?Qt(e)||ai in e?c({},e):e:null}function pi(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:a}=e,s=t?yi(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&si(s),ref:t&&t.ref?n&&r?f(r)?r.concat(li(t)):[r,li(t)]:li(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ur?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pi(e.ssContent),ssFallback:e.ssFallback&&pi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function fi(e=" ",t=0){return ui(Yr,null,e,t)}function hi(e="",t=!1){return t?(Zr(),oi(Xr,null,e)):ui(Xr,null,e)}function gi(e){return null==e||"boolean"==typeof e?ui(Xr):f(e)?ui(Ur,null,e.slice()):"object"==typeof e?mi(e):ui(Yr,null,String(e))}function mi(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:pi(e)}function vi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),vi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||ai in t?3===o&&Fn&&(1===Fn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Fn}}else m(t)?(t={default:t,_ctx:Fn},n=32):(t=String(t),64&o?(n=16,t=[fi(t)]):n=8);e.children=t,e.shapeFlag|=n}function yi(...e){const t={};for(let n=0;nxi||Fn;let Ti,ki;{const e=B(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};Ti=t("__VUE_INSTANCE_SETTERS__",(e=>xi=e)),ki=t("__VUE_SSR_SETTERS__",(e=>Mi=e))}const Ci=e=>{const t=xi;return Ti(e),e.scope.on(),()=>{e.scope.off(),Ti(t)}},Ai=()=>{xi&&xi.scope.off(),Ti(null)};function Ei(e){return 4&e.vnode.shapeFlag}let Mi=!1;function Oi(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=gn(t)),Pi(e,n)}function Pi(e,t,n){const o=e.type;e.render||(e.render=o.render||i);{const t=Ci(e);Je();try{ur(e)}finally{Ke(),t()}}}function $i(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gn(tn(e.exposed)),{get:(t,n)=>n in t?t[n]:n in ir?ir[n](e):void 0,has:(e,t)=>t in e||t in ir}))}function Li(e,t=!0){return m(e)?e.displayName||e.name:e.name||t&&e.__name}const Ii=(e,t)=>{const n=function(e,t,n=!1){let o,r;const a=m(e);return a?(o=e,r=i):(o=e.get,r=e.set),new rn(o,r,a||!r,n)}(e,0,Mi);return n};function Di(e,t,n){const o=arguments.length;return 2===o?b(t)&&!f(t)?ri(t)?ui(e,null,[t]):ui(e,t):ui(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ri(n)&&(n=[n]),ui(e,t,n))}const ji="3.4.21",Ri="undefined"!=typeof document?document:null,Bi=Ri&&Ri.createElement("template"),Ni={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?Ri.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Ri.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Ri.createElement(e,{is:n}):Ri.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ri.createTextNode(e),createComment:e=>Ri.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ri.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const a=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Bi.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=Bi.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},zi="transition",qi=Symbol("_vtc"),Vi=(e,{slots:t})=>Di(bo,function(e){const t={};for(const c in e)c in Fi||(t[c]=e[c]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:d=s,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(b(e))return[Ui(e.enter),Ui(e.leave)];{const t=Ui(e);return[t,t]}}(r),m=g&&g[0],v=g&&g[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:w,onLeave:x,onLeaveCancelled:S,onBeforeAppear:T=y,onAppear:k=_,onAppearCancelled:C=w}=t,A=(e,t,n)=>{Xi(e,t?d:s),Xi(e,t?u:a),n&&n()},E=(e,t)=>{e._isLeaving=!1,Xi(e,p),Xi(e,h),Xi(e,f),t&&t()},M=e=>(t,n)=>{const r=e?k:_,a=()=>A(t,e,n);Hi(r,[t,a]),Gi((()=>{Xi(t,e?l:i),Yi(t,e?d:s),Wi(r)||Ki(t,o,m,a)}))};return c(t,{onBeforeEnter(e){Hi(y,[e]),Yi(e,i),Yi(e,a)},onBeforeAppear(e){Hi(T,[e]),Yi(e,l),Yi(e,u)},onEnter:M(!1),onAppear:M(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);Yi(e,p),document.body.offsetHeight,Yi(e,f),Gi((()=>{e._isLeaving&&(Xi(e,p),Yi(e,h),Wi(x)||Ki(e,o,v,n))})),Hi(x,[e,n])},onEnterCancelled(e){A(e,!1),Hi(w,[e])},onAppearCancelled(e){A(e,!0),Hi(C,[e])},onLeaveCancelled(e){E(e),Hi(S,[e])}})}(e),t);Vi.displayName="Transition";const Fi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Vi.props=c({},yo,Fi);const Hi=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},Wi=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function Ui(e){const t=(e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function Yi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[qi]||(e[qi]=new Set)).add(t)}function Xi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[qi];n&&(n.delete(t),n.size||(e[qi]=void 0))}function Gi(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Ji=0;function Ki(e,t,n,o){const r=e._endId=++Ji,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),i=o("transitionDuration"),a=Zi(r,i),s=o("animationDelay"),l=o("animationDuration"),c=Zi(s,l);let u=null,d=0,p=0;t===zi?a>0&&(u=zi,d=a,p=i.length):"animation"===t?c>0&&(u="animation",d=c,p=l.length):(d=Math.max(a,c),u=d>0?a>c?zi:"animation":null,p=u?u===zi?i.length:l.length:0);const f=u===zi&&/\b(transform|all)(,|$)/.test(o("transitionProperty").toString());return{type:u,timeout:d,propCount:p,hasTransform:f}}(e,t);if(!a)return o();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{uQi(t)+Qi(e[n]))))}function Qi(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}const ea=Symbol("_vod"),ta=Symbol("_vsh"),na={beforeMount(e,{value:t},{transition:n}){e[ea]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):oa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),oa(e,!0),o.enter(e)):o.leave(e,(()=>{oa(e,!1)})):oa(e,t))},beforeUnmount(e,{value:t}){oa(e,t)}};function oa(e,t){e.style.display=t?e[ea]:"none",e[ta]=!t}const ra=Symbol("");function ia(e){const t=Si();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>sa(e,n)))},o=()=>{const o=e(t.proxy);aa(t.subTree,o),n(o)};io(o),Uo((()=>{const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),Jo((()=>e.disconnect()))}))}function aa(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{aa(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)sa(e.el,t);else if(e.type===Ur)e.children.forEach((e=>aa(e,t)));else if(e.type===Gr){let{el:n,anchor:o}=e;for(;n&&(sa(n,t),n!==o);)n=n.nextSibling}}function sa(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t){const r=_a(t[e]);n.setProperty(`--${e}`,r),o+=`--${e}: ${r};`}n[ra]=o}}const la=/(^|;)\s*display\s*:/;const ca=/\s*!important$/;function ua(e,t,n){if(f(n))n.forEach((n=>ua(e,t,n)));else if(null==n&&(n=""),n=_a(n),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=pa[t];if(n)return n;let o=E(t);if("filter"!==o&&o in e)return pa[t]=o;o=P(o);for(let r=0;re.replace(_e,((e,t)=>{if(!t)return e;if(1===ya)return`${t}${va}`;const n=function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(parseFloat(t)*ya,ba);return 0===n?"0":`${n}${va}`})));var va,ya,ba;const _a=e=>v(e)?ma(e):e,wa="http://www.w3.org/1999/xlink";const xa=Symbol("_vei");function Sa(e,t,n,o,r=null){const i=e[xa]||(e[xa]={}),a=i[t];if(o&&a)a.value=o;else{const[n,s]=function(e){let t;if(Ta.test(e)){let n;for(t={};n=e.match(Ta);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):O(e.slice(2)),t]}(t);if(o){const a=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const o=t&&t.proxy,r=o&&o.$nne,{value:i}=n;if(r&&f(i)){const n=Aa(e,i);for(let o=0;oka||(Ca.then((()=>ka=0)),ka=Date.now()))(),n}(o,r);!function(e,t,n,o){e.addEventListener(t,n,o)}(e,n,a,s)}else a&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,a,s),i[t]=void 0)}}const Ta=/(?:Once|Passive|Capture)$/;let ka=0;const Ca=Promise.resolve();function Aa(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>{const t=t=>!t._stopped&&e&&e(t);return t.__wwe=e.__wwe,t}))}return t}const Ea=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Ma=["ctrl","shift","alt","meta"],Oa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ma.some((n=>e[`${n}Key`]&&!t.includes(n)))},Pa=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{if(0===t.indexOf("change:"))return function(e,t,n,o=null){if(!n||!o)return;const r=t.replace("change:",""),{attrs:i}=o,a=i[r],s=(e.__wxsProps||(e.__wxsProps={}))[r];if(s===a)return;e.__wxsProps[r]=a;const l=o.proxy;Pn((()=>{n(a,s,l.$gcd(l,!0),l.$gcd(l,!1))}))}(e,t,o,a);const d="svg"===r;"class"===t?function(e,t,n){const{__wxsAddClass:o,__wxsRemoveClass:r}=e;r&&r.length&&(t=(t||"").split(/\s+/).filter((e=>-1===r.indexOf(e))).join(" "),r.length=0),o&&o.length&&(t=(t||"")+" "+o.join(" "));const i=e[qi];i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,d):"style"===t?function(e,t,n){const o=e.style,r=v(n);let i=!1;if(n&&!r){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&ua(o,t,"")}else for(const e in t)null==n[e]&&ua(o,e,"");for(const e in n)"display"===e&&(i=!0),ua(o,e,n[e])}else if(r){if(t!==n){const e=o[ra];e&&(n+=";"+e),o.cssText=n,i=la.test(n)}}else t&&e.removeAttribute("style");ea in e&&(e[ea]=i?o.display:"",e[ta]&&(o.display="none"));const{__wxsStyle:a}=e;if(a)for(const s in a)ua(o,s,a[s])}(e,n,o):s(t)?l(t)||Sa(e,t,0,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ea(t)&&m(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Ea(t)&&v(n))return!1;return t in e}(e,t,o,d))?function(e,t,n,o,r,i,a){if("innerHTML"===t||"textContent"===t)return o&&a(o,r,i),void(e[t]=null==n?"":n);const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const o=null==n?"":n;return("OPTION"===s?e.getAttribute("value")||"":e.value)===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=U(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(cC){}l&&e.removeAttribute(t)}(e,t,o,i,a,c,u):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(wa,t.slice(6,t.length)):e.setAttributeNS(wa,t,n);else{const o=W(t);null==n||o&&!U(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,d))},forcePatchProp:(e,t)=>0===t.indexOf("change:")||("class"===t&&e.__wxsClassChanged?(e.__wxsClassChanged=!1,!0):!("style"!==t||!e.__wxsStyleChanged)&&(e.__wxsStyleChanged=!1,!0))},Ni);let La;const Ia=(...e)=>{const t=(La||(La=qr($a))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(v(e)){return document.querySelector(e)}return e} /*! * vue-router v4.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */(e);if(!o)return;const r=t._component;m(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};const Da="undefined"!=typeof document;const ja=Object.assign;function Ra(e,t){const n={};for(const o in t){const r=t[o];n[o]=Na(r)?r.map(e):e(r)}return n}const Ba=()=>{},Na=Array.isArray,za=/#/g,qa=/&/g,Va=/\//g,Fa=/=/g,Ha=/\?/g,Wa=/\+/g,Ua=/%5B/g,Ya=/%5D/g,Xa=/%5E/g,Ga=/%60/g,Ja=/%7B/g,Ka=/%7C/g,Za=/%7D/g,Qa=/%20/g;function es(e){return encodeURI(""+e).replace(Ka,"|").replace(Ua,"[").replace(Ya,"]")}function ts(e){return es(e).replace(Wa,"%2B").replace(Qa,"+").replace(za,"%23").replace(qa,"%26").replace(Ga,"`").replace(Ja,"{").replace(Za,"}").replace(Xa,"^")}function ns(e){return null==e?"":function(e){return es(e).replace(za,"%23").replace(Ha,"%3F")}(e).replace(Va,"%2F")}function os(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const rs=/\/$/;function is(e,t,n="/"){let o,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),r=e(i)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,a,s=n.length-1;for(i=0;i1&&s--}return n.slice(0,s).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+a,path:o,query:r,hash:os(a)}}function as(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function ss(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ls(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!cs(e[n],t[n]))return!1;return!0}function cs(e,t){return Na(e)?us(e,t):Na(t)?us(t,e):e===t}function us(e,t){return Na(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var ds,ps,fs,hs;function gs(e){if(!e)if(Da){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(rs,"")}(ps=ds||(ds={})).pop="pop",ps.push="push",(hs=fs||(fs={})).back="back",hs.forward="forward",hs.unknown="";const ms=/^[^#]+#/;function vs(e,t){return e.replace(ms,"#")+t}const ys=()=>({left:window.scrollX,top:window.scrollY});function bs(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function _s(e,t){return(history.state?history.state.position-t:-1)+e}const ws=new Map;function xs(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),as(n,"")}return as(n,e)+o+r}function Ss(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ys():null}}function Ts(e){const{history:t,location:n}=window,o={value:xs(e,n)},r={value:t.state};function i(o,i,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:location.protocol+"//"+location.host+e+o;try{t[a?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[a?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const a=ja({},r.value,t.state,{forward:e,scroll:ys()});i(a.current,a,!0),i(e,ja({},Ss(o.value,e,null),{position:a.position+1},n),!1),o.value=e},replace:function(e,n){i(e,ja({},t.state,Ss(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function ks(e){const t=Ts(e=gs(e)),n=function(e,t,n,o){let r=[],i=[],a=null;const s=({state:i})=>{const s=xs(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=s,t.value=i,a&&a===l)return void(a=null);u=c?i.position-c.position:0}else o(s);r.forEach((e=>{e(n.value,l,{delta:u,type:ds.pop,direction:u?u>0?fs.forward:fs.back:fs.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(ja({},e.state,{scroll:ys()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=ja({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:vs.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Cs(e){return"string"==typeof e||"symbol"==typeof e}const As={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Es=Symbol("");var Ms,Os;function Ps(e,t){return ja(new Error,{type:e,[Es]:!0},t)}function $s(e,t){return e instanceof Error&&Es in e&&(null==t||!!(e.type&t))}(Os=Ms||(Ms={}))[Os.aborted=4]="aborted",Os[Os.cancelled=8]="cancelled",Os[Os.duplicated=16]="duplicated";const Ls={sensitive:!1,strict:!1,start:!0,end:!0},Is=/[.+*?^${}()[\]/\\]/g;function Ds(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function js(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Bs={type:0,value:""},Ns=/[a-zA-Z0-9_]/;function zs(e,t,n){const o=function(e,t){const n=ja({},Ls,t),o=[];let r=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let t=0;t1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function p(){c+=s}for(;l{i(p)}:Ba}function i(e){if(Cs(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function a(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Ys(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Hs(e)&&o.set(e.record.name,e)}return t=Us({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,a,s={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw Ps(1,{location:e});a=r.record.name,s=ja(Vs(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Vs(e.params,r.keys.map((e=>e.name)))),i=r.stringify(s)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(s=r.parse(i),a=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw Ps(1,{location:e,currentLocation:t});a=r.record.name,s=ja({},t.params,e.params),i=r.stringify(s)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:i,params:s,matched:l,meta:Ws(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function Vs(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Fs(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function Hs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ws(e){return e.reduce(((e,t)=>ja(e,t.meta)),{})}function Us(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Ys(e,t){return t.children.some((t=>t===e||Ys(e,t)))}function Xs(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&ts(e))):[o&&ts(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Js(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Na(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Ks=Symbol(""),Zs=Symbol(""),Qs=Symbol(""),el=Symbol(""),tl=Symbol("");function nl(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function ol(e,t,n,o,r,i=(e=>e())){const a=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((s,l)=>{const c=e=>{var i;!1===e?l(Ps(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l(Ps(2,{from:t,to:e})):(a&&o.enterCallbacks[r]===a&&"function"==typeof e&&a.push(e),s())},u=i((()=>e.call(o&&o.instances[r],t,n,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function rl(e,t,n,o,r=(e=>e())){const i=[];for(const s of e)for(const e in s.components){let l=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(a=l)||"displayName"in a||"props"in a||"__vccOpts"in a){const a=(l.__vccOpts||l)[t];a&&i.push(ol(a,n,o,s,e,r))}else{let a=l();i.push((()=>a.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const a=(l=i).__esModule||"Module"===l[Symbol.toStringTag]?i.default:i;var l;s.components[e]=a;const c=(a.__vccOpts||a)[t];return c&&ol(c,n,o,s,e,r)()}))))}}var a;return i}function il(e){const t=Cr(Qs),n=Cr(el),o=Ii((()=>t.resolve(fn(e.to)))),r=Ii((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const a=i.findIndex(ss.bind(null,r));if(a>-1)return a;const s=sl(e[t-2]);return t>1&&sl(r)===s&&i[i.length-1].path!==s?i.findIndex(ss.bind(null,e[t-2])):a})),i=Ii((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Na(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),a=Ii((()=>r.value>-1&&r.value===n.matched.length-1&&ls(n.params,o.value.params)));return{route:o,href:Ii((()=>o.value.href)),isActive:i,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[fn(e.replace)?"replace":"push"](fn(e.to)).catch(Ba):Promise.resolve()}}}const al=Co({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:il,setup(e,{slots:t}){const n=Ut(il(e)),{options:o}=Cr(Qs),r=Ii((()=>({[ll(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[ll(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Di("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function sl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ll=(e,t,n)=>null!=e?e:null!=t?t:n,cl=Co({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Cr(tl),r=Ii((()=>e.route||o.value)),i=Cr(Zs,0),a=Ii((()=>{let e=fn(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=Ii((()=>r.value.matched[a.value]));kr(Zs,Ii((()=>a.value+1))),kr(Ks,s),kr(tl,r);const l=cn();return so((()=>[l.value,s.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&ss(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,a=s.value,c=a&&a.components[i];if(!c)return ul(n.default,{Component:c,route:o});const u=a.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,p=Di(c,ja({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:l}));return ul(n.default,{Component:p,route:o})||p}}});function ul(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const dl=cl;function pl(e){const t=qs(e.routes,e),n=e.parseQuery||Xs,o=e.stringifyQuery||Gs,r=e.history,i=nl(),a=nl(),s=nl(),l=un(As);let c=As;Da&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ra.bind(null,(e=>""+e)),d=Ra.bind(null,ns),p=Ra.bind(null,os);function f(e,i){if(i=ja({},i||l.value),"string"==typeof e){const o=is(n,e,i.path),a=t.resolve({path:o.path},i),s=r.createHref(o.fullPath);return ja(o,a,{params:p(a.params),hash:os(o.hash),redirectedFrom:void 0,href:s})}let a;if(null!=e.path)a=ja({},e,{path:is(n,e.path,i.path).path});else{const t=ja({},e.params);for(const e in t)null==t[e]&&delete t[e];a=ja({},e,{params:d(t)}),i.params=d(i.params)}const s=t.resolve(a,i),c=e.hash||"";s.params=u(p(s.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,ja({},e,{hash:(h=c,es(h).replace(Ja,"{").replace(Za,"}").replace(Xa,"^")),path:s.path}));var h;const g=r.createHref(f);return ja({fullPath:f,hash:c,query:o===Gs?Js(e.query):e.query||{}},s,{redirectedFrom:void 0,href:g})}function h(e){return"string"==typeof e?is(n,e,l.value.path):ja({},e)}function g(e,t){if(c!==e)return Ps(8,{from:t,to:e})}function m(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),ja({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=c=f(e),r=l.value,i=e.state,a=e.force,s=!0===e.replace,u=v(n);if(u)return y(ja(h(u),{state:"object"==typeof u?ja({},i,u.state):i,force:a,replace:s}),t||n);const d=n;let p;return d.redirectedFrom=t,!a&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&ss(t.matched[o],n.matched[r])&&ls(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=Ps(16,{to:d,from:r}),P(r,r,!0,!1)),(p?Promise.resolve(p):w(d,r)).catch((e=>$s(e)?$s(e,2)?e:O(e):M(e,d,r))).then((e=>{if(e){if($s(e,2))return y(ja({replace:s},h(e.to),{state:"object"==typeof e.to?ja({},i,e.to.state):i,force:a}),t||d)}else e=S(d,r,!0,s,i);return x(d,r,e),e}))}function b(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=I.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,r,s]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;ass(e,i)))?o.push(i):n.push(i));const s=e.matched[a];s&&(t.matched.find((e=>ss(e,s)))||r.push(s))}return[n,o,r]}(e,t);n=rl(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(ol(o,e,t))}));const l=b.bind(null,e,t);return n.push(l),j(n).then((()=>{n=[];for(const o of i.list())n.push(ol(o,e,t));return n.push(l),j(n)})).then((()=>{n=rl(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(ol(o,e,t))}));return n.push(l),j(n)})).then((()=>{n=[];for(const o of s)if(o.beforeEnter)if(Na(o.beforeEnter))for(const r of o.beforeEnter)n.push(ol(r,e,t));else n.push(ol(o.beforeEnter,e,t));return n.push(l),j(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=rl(s,"beforeRouteEnter",e,t,_),n.push(l),j(n)))).then((()=>{n=[];for(const o of a.list())n.push(ol(o,e,t));return n.push(l),j(n)})).catch((e=>$s(e,8)?e:Promise.reject(e)))}function x(e,t,n){s.list().forEach((o=>_((()=>o(e,t,n)))))}function S(e,t,n,o,i){const a=g(e,t);if(a)return a;const s=t===As,c=Da?history.state:{};n&&(o||s?r.replace(e.fullPath,ja({scroll:s&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,P(e,t,n,s),O()}let T;function k(){T||(T=r.listen(((e,t,n)=>{if(!D.listening)return;const o=f(e),i=v(o);if(i)return void y(ja(i,{replace:!0}),o).catch(Ba);c=o;const a=l.value;var s,u;Da&&(s=_s(a.fullPath,n.delta),u=ys(),ws.set(s,u)),w(o,a).catch((e=>$s(e,12)?e:$s(e,2)?(y(e.to,o).then((e=>{$s(e,20)&&!n.delta&&n.type===ds.pop&&r.go(-1,!1)})).catch(Ba),Promise.reject()):(n.delta&&r.go(-n.delta,!1),M(e,o,a)))).then((e=>{(e=e||S(o,a,!1))&&(n.delta&&!$s(e,8)?r.go(-n.delta,!1):n.type===ds.pop&&$s(e,20)&&r.go(-1,!1)),x(o,a,e)})).catch(Ba)})))}let C,A=nl(),E=nl();function M(e,t,n){O(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function O(e){return C||(C=!e,k(),A.list().forEach((([t,n])=>e?n(e):t())),A.reset()),e}function P(t,n,o,r){const{scrollBehavior:i}=e;if(!Da||!i)return Promise.resolve();const a=!o&&function(e){const t=ws.get(e);return ws.delete(e),t}(_s(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return Pn().then((()=>i(t,n,a))).then((e=>e&&bs(e))).catch((e=>M(e,t,n)))}const $=e=>r.go(e);let L;const I=new Set,D={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return Cs(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:m,replace:function(e){return m(ja(h(e),{replace:!0}))},go:$,back:()=>$(-1),forward:()=>$(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:E.add,isReady:function(){return C&&l.value!==As?Promise.resolve():new Promise(((e,t)=>{A.add([e,t])}))},install(e){e.component("RouterLink",al),e.component("RouterView",dl),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>fn(l)}),Da&&!L&&l.value===As&&(L=!0,m(r.location).catch((e=>{})));const t={};for(const o in As)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(Qs,this),e.provide(el,Yt(t)),e.provide(tl,l);const n=e.unmount;I.add(e),e.unmount=function(){I.delete(e),I.size<1&&(c=As,T&&T(),T=null,l.value=As,L=!1,C=!1),n()}}};function j(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return D}function fl(){return Cr(el)}const hl=["{","}"];const gl=/^(?:\d)+/,ml=/^(?:\w)+/;const vl=Object.prototype.hasOwnProperty,yl=(e,t)=>vl.call(e,t),bl=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=hl){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let r=0,i="";for(;r-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?"zh-Hant":"zh-Hans");var n;let o=["en","fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));const r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return r||void 0}class wl{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:r}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=r||bl,this.messages=n||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=_l(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{yl(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=_l(t,this.messages))&&(o=this.messages[t]):n=t,yl(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function xl(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&$p?$p():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const r=new wl({locale:e,fallbackLocale:n,messages:t,watcher:o});let i=(e,t)=>{{let e=!1;i=function(t,n){const o=Jm().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,r))),r.t(t,n)}}return i(e,t)};return{i18n:r,f:(e,t,n)=>r.f(e,t,n),t:(e,t)=>i(e,t),add:(e,t,n=!0)=>r.add(e,t,n),watch:e=>r.watchLocale(e),getLocale:()=>r.getLocale(),setLocale:e=>r.setLocale(e)}}function Sl(e,t){return e.indexOf(t[0])>-1}const Tl=fe((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let kl;function Cl(e){return Sl(e,ee)?Ml().f(e,function(){const e=$p(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),ee):e}function Al(e,t){if(1===t.length){if(e){const n=e=>v(e)&&Sl(e,ee),o=t[0];let r=[];if(f(e)&&(r=e.filter((e=>n(e[o])))).length)return r;const i=e[t[0]];if(n(i))return e}return}const n=t.shift();return Al(e&&e[n],t)}function El(e,t){const n=Al(e,t);if(!n)return!1;const o=t[t.length-1];if(f(n))n.forEach((e=>El(e,[o])));else{let e=n[o];Object.defineProperty(n,o,{get:()=>Cl(e),set(t){e=t}})}return!0}function Ml(){if(!kl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,kl=xl(e),Tl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>kl.add(e,__uniConfig.locales[e]))),kl.setLocale(e)}}return kl}function Ol(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const Pl=fe((()=>{const e="uni.async.",t=["error"];Ml().add("en",Ol(e,t,["The connection timed out, click the screen to try again."]),!1),Ml().add("es",Ol(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),Ml().add("fr",Ol(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),Ml().add("zh-Hans",Ol(e,t,["连接服务器超时,点击屏幕重试"]),!1),Ml().add("zh-Hant",Ol(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),$l=fe((()=>{const e="uni.showToast.",t=["unpaired"];Ml().add("en",Ol(e,t,["Please note showToast must be paired with hideToast"]),!1),Ml().add("es",Ol(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),Ml().add("fr",Ol(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),Ml().add("zh-Hans",Ol(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),Ml().add("zh-Hant",Ol(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),Ll=fe((()=>{const e="uni.showLoading.",t=["unpaired"];Ml().add("en",Ol(e,t,["Please note showLoading must be paired with hideLoading"]),!1),Ml().add("es",Ol(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),Ml().add("fr",Ol(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),Ml().add("zh-Hans",Ol(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),Ml().add("zh-Hant",Ol(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),Il=fe((()=>{const e="uni.showModal.",t=["cancel","confirm"];Ml().add("en",Ol(e,t,["Cancel","OK"]),!1),Ml().add("es",Ol(e,t,["Cancelar","OK"]),!1),Ml().add("fr",Ol(e,t,["Annuler","OK"]),!1),Ml().add("zh-Hans",Ol(e,t,["取消","确定"]),!1),Ml().add("zh-Hant",Ol(e,t,["取消","確定"]),!1)})),Dl=fe((()=>{const e="uni.chooseFile.",t=["notUserActivation"];Ml().add("en",Ol(e,t,["File chooser dialog can only be shown with a user activation"]),!1),Ml().add("es",Ol(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),Ml().add("fr",Ol(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),Ml().add("zh-Hans",Ol(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),Ml().add("zh-Hant",Ol(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),jl=fe((()=>{const e="uni.picker.",t=["done","cancel"];Ml().add("en",Ol(e,t,["Done","Cancel"]),!1),Ml().add("es",Ol(e,t,["OK","Cancelar"]),!1),Ml().add("fr",Ol(e,t,["OK","Annuler"]),!1),Ml().add("zh-Hans",Ol(e,t,["完成","取消"]),!1),Ml().add("zh-Hant",Ol(e,t,["完成","取消"]),!1)})),Rl=fe((()=>{const e="uni.video.",t=["danmu","volume"];Ml().add("en",Ol(e,t,["Danmu","Volume"]),!1),Ml().add("es",Ol(e,t,["Danmu","Volumen"]),!1),Ml().add("fr",Ol(e,t,["Danmu","Le Volume"]),!1),Ml().add("zh-Hans",Ol(e,t,["弹幕","音量"]),!1),Ml().add("zh-Hant",Ol(e,t,["彈幕","音量"]),!1)}));function Bl(e){const t=new Ie;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}let Nl=1;const zl=Object.create(null);function ql(e,t){return e+"."+t}function Vl(e,t,n){t=ql(e,t),zl[t]||(zl[t]=n)}function Fl({id:e,name:t,args:n},o){t=ql(o,t);const r=t=>{e&&r_.publishHandler("invokeViewApi."+e,t)},i=zl[t];i?i(n,r):r({})}const Hl=c(Bl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:r}=r_,i=n?Nl++:0;n&&o("invokeServiceApi."+i,n,!0),r("invokeServiceApi",{id:i,name:e,args:t})}}),Wl=we(!0);let Ul;function Yl(){Ul&&(clearTimeout(Ul),Ul=null)}let Xl=0,Gl=0;function Jl(e){if(Yl(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Xl=t,Gl=n,Ul=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function Kl(e){if(!Ul)return;if(1!==e.touches.length)return Yl();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Xl)>10||Math.abs(n-Gl)>10?Yl():void 0}function Zl(e,t){const n=Number(e);return isNaN(n)?t:n}function Ql(){const e=__uniConfig.globalStyle||{},t=Zl(e.rpxCalcMaxDeviceWidth,960),n=Zl(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function ec(){Ql(),ye(),window.addEventListener("touchstart",Jl,Wl),window.addEventListener("touchmove",Kl,Wl),window.addEventListener("touchend",Yl,Wl),window.addEventListener("touchcancel",Yl,Wl)}function tc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nc,oc,rc=["top","left","right","bottom"],ic={};function ac(){return oc="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function sc(){if(oc="string"==typeof oc?oc:ac()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(cC){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),rc.forEach((function(e){a(o,e)})),document.body.appendChild(o),i(),nc=!0}else rc.forEach((function(e){ic[e]=0}));function r(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}function a(e,n){var o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:oc+"(safe-area-inset-"+n+")"};r(o,c),r(a,c),r(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(s),a.appendChild(l),e.appendChild(o),e.appendChild(a),i((function(){o.scrollTop=a.scrollTop=1e4;var e=o.scrollTop,r=a.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=a.scrollTop=1e4,e=o.scrollTop,r=a.scrollTop,function(e){cc.length||setTimeout((function(){var e={};cc.forEach((function(t){e[t]=ic[t]})),cc.length=0,uc.forEach((function(t){t(e)}))}),0);cc.push(e)}(n))}o.addEventListener("scroll",i,t),a.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(ic,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function lc(e){return nc||sc(),ic[e]}var cc=[];var uc=[];const dc=tc({get support(){return 0!=("string"==typeof oc?oc:ac()).length},get top(){return lc("top")},get left(){return lc("left")},get right(){return lc("right")},get bottom(){return lc("bottom")},onChange:function(e){ac()&&(nc||sc(),"function"==typeof e&&uc.push(e))},offChange:function(e){var t=uc.indexOf(e);t>=0&&uc.splice(t,1)}}),pc=Pa((()=>{}),["prevent"]),fc=Pa((e=>{}),["stop"]);function hc(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function gc(){const e=hc(document.documentElement.style,"--window-top");return e?e+dc.top:0}function mc(){const e=document.documentElement.style,t=gc(),n=hc(e,"--window-bottom"),o=hc(e,"--window-left"),r=hc(e,"--window-right"),i=hc(e,"--top-window-height");return{top:t,bottom:n?n+dc.bottom:0,left:o?o+dc.left:0,right:r?r+dc.right:0,topWindowHeight:i||0}}function vc(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function yc(e){return vc(e)}function bc(e){return Symbol(e)}function _c(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function wc(e,t=!1){if(t)return function(e){if(!_c(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>Bd(parseFloat(t))+"px"))}(e);if(v(e)){const t=parseInt(e)||0;return _c(e)?Bd(t):t}return e}const xc="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",Sc="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",Tc="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function kc(e,t="#000",n=27){return ui("svg",{width:n,height:n,viewBox:"0 0 32 32"},[ui("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Cc(){{const{$pageInstance:e}=Si();return e&&e.proxy.$page.id}}function Ac(e){const t=oe(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}function Ec(){const e=Tm(),t=e.length;if(t)return e[t-1]}function Mc(){const e=Ec();if(e)return e.$page.meta}function Oc(){const e=Mc();return e?e.id:-1}function Pc(){const e=Ec();if(e)return e.$vm}const $c=["navigationBar","pullToRefresh"];function Lc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);$c.forEach((t=>{o[t]=c({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function Ic(e,t,n){if(v(e))n=t,t=e,e=Pc();else if("number"==typeof e){const t=Tm().find((t=>t.$page.id===e));e=t?t.$vm:Pc()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,a=Math.abs(e-Rc)>n;return!i||r&&!a?(!i&&r&&(r=!1),!1):(Rc=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(a()||(jc=setTimeout(a,300))),o=!1};return function(){clearTimeout(jc),o||requestAnimationFrame(a),o=!0}}function Nc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Nc(e,t.slice(2));const n=t.split("/"),o=n.length;let r=0;for(;r0?e.split("/"):[];return i.splice(i.length-r-1,r+1),ue(i.concat(n).join("/"))}function zc(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}class qc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(ie(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&ie(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=Wc(this.$el.querySelector(e));return t?Vc(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];m(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&r_.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Vc(e,t=!0){if(t&&e&&(e=re(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new qc(e)),e.$el.__wxsComponentDescriptor}function Fc(e,t){return Vc(e,t)}function Hc(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Fc(n.proxy,!1)}));const r=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=re(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}(t,n,o);if(r)return[e,Fc(r,!1)]}}function Wc(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Uc(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e;let a,s;a=xe(t?r:function(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}(r)),s=xe(i);const l={type:n,timeStamp:o,target:a,detail:{},currentTarget:s};return e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Yc(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Xc(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=gc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Yc(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=gc();i.touches=Xc(e.touches,t),i.changedTouches=Xc(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(i,t,{get:()=>e[t]})}))}return Hc(i,t,n)||[i]},createNativeEvent:Uc},Symbol.toStringTag,{value:"Module"});function Jc(e){!function(e){const t=e.globalProperties;c(t,Gc),t.$gcd=Fc}(e._context.config)}let Kc=1;function Zc(e){return(e||Oc())+".invokeViewApi"}const Qc=c(Bl("view"),{invokeOnCallback:(e,t)=>i_.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=i_,a=o?Kc++:0;o&&r("invokeViewApi."+a,o,!0),i(Zc(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:a}=i_,s=Kc++,l="invokeViewApi."+s;return r(l,n),a(Zc(o),{id:s,name:e,args:t},o),()=>{i(l)}}});function eu(e){Ic(Ec(),"onResize",e),i_.invokeOnCallback("onWindowResize",e)}function tu(e){const t=Ec();Ic(Jm(),"onShow",e),Ic(t,"onShow")}function nu(){Ic(Jm(),"onHide"),Ic(Ec(),"onHide")}const ou=["onPageScroll","onReachBottom"];function ru(){ou.forEach((e=>i_.subscribe(e,function(e){return(t,n)=>{Ic(parseInt(n),e,t)}}(e))))}function iu(){!function(){const{on:e}=i_;e("onResize",eu),e("onAppEnterForeground",tu),e("onAppEnterBackground",nu)}(),ru()}function au(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Ee(this.$page.id)),e.eventChannel}}function su(e){e._context.config.globalProperties.getOpenerEventChannel=au}function lu(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function cu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${Bd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function uu(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,r=t.actions.length;function i(){const t=o[n],a=t.option.transition,s=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],r=["width","height","left","right","top","bottom"],i=e.animates,a=e.option,s=a.transition,l={},c=[];return i.forEach((e=>{let i=e.type,a=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?a=a.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(a=a.map(cu)),n.indexOf(i)>=0&&(a.length=1),c.push(`${i}(${a.join(",")})`);else if(o.concat(r).includes(a[0])){i=a[0];const e=a[1];l[i]=r.includes(i)?cu(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=a.transformOrigin,l}(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),n+=1,n{i()}),0)}const du={props:["animation"],watch:{animation:{deep:!0,handler(){uu(this)}}},mounted(){uu(this)}},pu=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(du),fu(e)},fu=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Co(e));function hu(e){return e.__wwe=!0,e}function gu(e,t){return(n,o,r)=>{e.value&&t(n,function(e,t,n,o){let r;return r=xe(n),{type:o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}(n,o,e.value,r||{}))}}const mu={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function vu(e){const t=cn(!1);let n,o,r=!1;function i(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function a(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),r=!0,n=setTimeout((()=>{t.value=!0,r||i()}),parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&i()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:hu((function(e){e.touches.length>1||a(e)})),onMousedown:hu((function(e){r||(a(e),window.addEventListener("mouseup",l))})),onTouchend:hu((function(){s()})),onMouseup:hu((function(){r&&l()})),onTouchcancel:hu((function(){r=!1,t.value=!1,clearTimeout(n)}))}}}function yu(e,t){return v(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const bu=bc("uf"),_u=pu({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=cn(null);return function(e){const t=[];kr(bu,{addField(e){t.push(e)},removeField(e){t.splice(t.indexOf(e),1)},submit(n){e("submit",n,{value:t.reduce(((e,t)=>{if(t.submit){const[n,o]=t.submit();n&&(e[n]=o)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}})}(gu(o,n)),()=>ui("uni-form",{ref:o},[ui("span",null,[t.default&&t.default()])],512)}});const wu={for:{type:String,default:""}},xu=bc("ul");const Su=pu({name:"Label",props:wu,setup(e,{slots:t}){const n=cn(null),o=Cc(),r=function(){const e=[];return kr(xu,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),i=Ii((()=>e.for||t.default&&t.default.length)),a=hu((t=>{const n=t.target;let i=/^uni-(checkbox|radio|switch)-/.test(n.className);i||(i=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),i||(e.for?r_.emit("uni-label-click-"+o+"-"+e.for,t,!0):r.length&&r[0](t,!0))}));return()=>ui("uni-label",{ref:n,class:{"uni-label-pointer":i},onClick:a},[t.default&&t.default()],10,["onClick"])}});function Tu(e,t){ku(e.id,t),so((()=>e.id),((e,n)=>{Cu(n,t,!0),ku(e,t,!0)})),Jo((()=>{Cu(e.id,t)}))}function ku(e,t,n){const o=Cc();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&r_.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?r_.on(r,t[r]):e&&r_.on(`uni-${r}-${o}-${e}`,t[r])}))}function Cu(e,t,n){const o=Cc();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&r_.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?r_.off(r,t[r]):e&&r_.off(`uni-${r}-${o}-${e}`,t[r])}))}const Au=pu({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=cn(null),o=Cr(bu,!1),{hovering:r,binding:i}=vu(e),a=hu(((t,r)=>{if(e.disabled)return t.stopImmediatePropagation();r&&n.value.click();const i=e.formType;if(i){if(!o)return;"submit"===i?o.submit(t):"reset"===i&&o.reset(t)}else;})),s=Cr(xu,!1);return s&&(s.addHandler(a),Go((()=>{s.removeHandler(a)}))),Tu(e,{"label-click":a}),()=>{const o=e.hoverClass,s=yu(e,"disabled"),l=yu(e,"loading"),c=yu(e,"plain"),u=o&&"none"!==o;return ui("uni-button",yi({ref:n,onClick:a,id:e.id,class:u&&r.value?o:""},u&&i,s,l,c),[t.default&&t.default()],16,["onClick","id"])}}});function Eu(e){return e.$el}function Mu(e){const{base:t}=__uniConfig.router;return 0===ue(e).indexOf(t)?ue(e):t+e}function Ou(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Mu(e.slice(1));e="https:"+e}if(te.test(e)||ne.test(e)||0===e.indexOf("blob:"))return e;const o=Tm();return o.length?Mu(Nc(o[o.length-1].$page.route,e).slice(1)):e}const Pu=navigator.userAgent,$u=/android/i.test(Pu),Lu=/iphone|ipad|ipod/i.test(Pu),Iu=Pu.match(/Windows NT ([\d|\d.\d]*)/i),Du=/Macintosh|Mac/i.test(Pu),ju=/Linux|X11/i.test(Pu),Ru=Du&&navigator.maxTouchPoints>0;function Bu(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function Nu(e){return e&&90===Math.abs(window.orientation)}function zu(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function qu(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function Vu(e,t,n,o){i_.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function Fu(e,t){const n={},{top:o,topWindowHeight:r}=mc();if(t.node){const t=e.tagName.replace("uni-","");t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=be(e)),t.rect||t.size){const i=e.getBoundingClientRect();t.rect&&(n.left=i.left,n.right=i.right,n.top=i.top-o-r,n.bottom=i.bottom-o-r),t.size&&(n.width=i.width,n.height=i.height)}if(f(t.properties)&&t.properties.forEach((e=>{e=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))})),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){const t=e.children[0].children[0];n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,n.scrollHeight=t.scrollHeight,n.scrollWidth=t.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(f(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=o[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function Hu(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}function Wu(e,t,n){const o=[];t.forEach((({component:t,selector:n,single:r,fields:i})=>{null===t?o.push(function(e){const t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(i)):o.push(function(e,t,n,o,r){const i=function(e,t){return e?e.$el:t.$el}(t,e),a=i.parentElement;if(!a)return o?null:[];const{nodeType:s}=i,l=3===s||8===s;if(o){const e=l?a.querySelector(n):Hu(i,n)?i:i.querySelector(n);return e?Fu(e,r):null}{let e=[];const t=(l?a:i).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(Fu(t,r))})),!l&&Hu(i,n)&&e.unshift(Fu(i,r)),e}}(e,t,n,r,i))})),n(o)}const Uu=["original","compressed"],Yu=["album","camera"],Xu=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function Gu(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Ju(e,t){return!f(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function Ku(e){return function(){try{return e.apply(e,arguments)}catch(cC){console.error(cC)}}}let Zu=1;const Qu={};function ed(e,t,n,o=!1){return Qu[e]={name:t,keepAlive:o,callback:n},e}function td(e,t,n){if("number"==typeof e){const o=Qu[e];if(o)return o.keepAlive||delete Qu[e],o.callback(t,n)}return t}function nd(e){for(const t in Qu)if(Qu[t].name===e)return!0;return!1}const od="success",rd="fail",id="complete";function ad(e,t={},{beforeAll:n,beforeSuccess:o}={}){S(t)||(t={});const{success:r,fail:i,complete:a}=function(e){const t={};for(const n in e){const o=e[n];m(o)&&(t[n]=Ku(o),delete e[n])}return t}(t),s=m(r),l=m(i),c=m(a),u=Zu++;return ed(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),m(n)&&n(u),u.errMsg===e+":ok"?(m(o)&&o(u,t),s&&r(u)):l&&i(u),c&&a(u)})),u}const sd="success",ld="fail",cd="complete",ud={},dd={};function pd(e,t){return function(n){return e(n,t)||n}}function fd(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function hd(e,t={}){return[sd,ld,cd].forEach((n=>{const o=e[n];if(!f(o))return;const r=t[n];t[n]=function(e){fd(o,e,t).then((e=>m(r)&&r(e)||e))}})),t}function gd(e,t){const n=[];f(ud.returnValue)&&n.push(...ud.returnValue);const o=dd[e];return o&&f(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function md(e){const t=Object.create(null);Object.keys(ud).forEach((e=>{"returnValue"!==e&&(t[e]=ud[e].slice())}));const n=dd[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function vd(e,t,n,o){const r=md(e);if(r&&Object.keys(r).length){if(f(r.invoke)){return fd(r.invoke,n).then((n=>t(hd(md(e),n),...o)))}return t(hd(r,n),...o)}return t(n,...o)}function yd(e,t){return(n={},...o)=>function(e){return!(!S(e)||![od,rd,id].find((t=>m(e[t]))))}(n)?gd(e,vd(e,t,n,o)):gd(e,new Promise(((r,i)=>{vd(e,t,c(n,{success:r,fail:i}),o)})))}function bd(e,t,n,o={}){const r=t+":fail"+(n?" "+n:"");return delete o.errCode,td(e,c({errMsg:r},o))}function _d(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(v(e))return e}const r=function(e,t){const n=e[0];if(!t||!t.formatArgs||!S(t.formatArgs)&&S(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{wd(o);const r=_d(0,[o],0,n);if(r)throw new Error(r);const i=!nd(e);!function(e,t){ed(Zu++,e,t,!0)}(e,o),i&&(!function(e){i_.on("api."+e,(t=>{for(const n in Qu){const o=Qu[n];o.name===e&&o.callback(t)}}))}(e),t())}}function Sd(e,t,n){return o=>{wd(o);const r=_d(0,[o],0,n);if(r)throw new Error(r);!function(e,t){for(const n in Qu){const o=Qu[n];o.callback===t&&o.name===e&&delete Qu[n]}}(e=e.replace("off","on"),o);nd(e)||(!function(e){i_.off("api."+e)}(e),t())}}function Td(e,t,n,o){return n=>{const r=ad(e,n,o),i=_d(0,[n],0,o);return i?bd(r,e,i):t(n,{resolve:t=>function(e,t,n){return td(e,c(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>bd(r,e,function(e){return!e||v(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function kd(e,t,n){return xd(e,t,n)}function Cd(e,t,n){return Sd(e,t,n)}function Ad(e,t,n,o){return yd(e,Td(e,t,0,o))}function Ed(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=_d(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Md(e,t,n,o){return yd(e,function(e,t,n,o){return Td(e,t,0,o)}(e,t,0,o))}let Od=!1,Pd=0,$d=0,Ld=960,Id=375,Dd=750;function jd(){const{platform:e,pixelRatio:t,windowWidth:n}=function(){const e=Bu(),t=qu(zu(e,Nu(e)));return{platform:Lu?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();Pd=n,$d=t,Od="ios"===e}function Rd(e,t){const n=Number(e);return isNaN(n)?t:n}const Bd=Ed(0,((e,t)=>{if(0===Pd&&(jd(),function(){const e=__uniConfig.globalStyle||{};Ld=Rd(e.rpxCalcMaxDeviceWidth,960),Id=Rd(e.rpxCalcBaseDeviceWidth,375),Dd=Rd(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Pd;n=e===Dd||n<=Ld?n:Id;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==$d&&Od?.5:1),e<0?-o:o}));function Nd(e,t){Object.keys(t).forEach((n=>{m(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):f(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n{v(e)&&S(t)?Nd(dd[e]||(dd[e]={}),t):S(e)&&Nd(ud,e)})),qd=new Ie,Vd=Ed(0,((e,t)=>(qd.on(e,t),()=>qd.off(e,t)))),Fd=Ed(0,((e,t)=>(qd.once(e,t),()=>qd.off(e,t)))),Hd=Ed(0,((e,t)=>{e?(f(e)||(e=[e]),e.forEach((e=>qd.off(e,t)))):qd.e={}})),Wd=Ed(0,((e,...t)=>{qd.emit(e,...t)})),Ud=[.5,.8,1,1.25,1.5,2];class Yd{constructor(e,t){this.id=e,this.pageId=t}play(){Vu(this.id,this.pageId,"play")}pause(){Vu(this.id,this.pageId,"pause")}stop(){Vu(this.id,this.pageId,"stop")}seek(e){Vu(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){Vu(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~Ud.indexOf(e)||(e=1),Vu(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){Vu(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){Vu(this.id,this.pageId,"exitFullScreen")}showStatusBar(){Vu(this.id,this.pageId,"showStatusBar")}hideStatusBar(){Vu(this.id,this.pageId,"hideStatusBar")}}const Xd=Ed(0,((e,t)=>new Yd(e,Ac(t||Pc())))),Gd=(e,t,n,o)=>{!function(e,t,n,o,r){i_.invokeViewMethod("map."+e,{type:n,data:o},t,r)}(e,t,n,o,(e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)}))};function Jd(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const Kd=Jd("width"),Zd=Jd("height"),Qd={PNG:"png",JPG:"jpg",JPEG:"jpg"},ep={formatArgs:{x:Jd("x",0),y:Jd("y",0),width:Kd,height:Zd,destWidth:Jd("destWidth"),destHeight:Jd("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=Qd[e];n||(n=Qd.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function tp(e,t,n,o,r){i_.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,(e=>{r&&r(e)}))}var np=["scale","rotate","translate","setTransform","transform"],op=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],rp=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const ip={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function ap(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var n=e.toLowerCase();if(p(ip,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(ip[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),r=parseInt(t[1].slice(4,6),16);let i=parseInt(t[1].slice(6,8),16);return i=i>=0?i:255,[e,o,r,i]}return console.error("unsupported color:"+e),[0,0,0,255]}class sp{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,ap(t)])}}class lp{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class cp{constructor(e){this.width=e}}class up{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(e){console.log("initCanvasContextProperty implemented.")}setShadow(e,t,n,o){console.log("initCanvasContextProperty implemented.")}addColorStop(e,t){console.log("initCanvasContextProperty implemented.")}setLineWidth(e){console.log("initCanvasContextProperty implemented.")}setLineCap(e){console.log("initCanvasContextProperty implemented.")}setLineJoin(e){console.log("initCanvasContextProperty implemented.")}setLineDash(e,t){console.log("initCanvasContextProperty implemented.")}setMiterLimit(e){console.log("initCanvasContextProperty implemented.")}fillRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}strokeRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}clearRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(e,t){console.log("initCanvasContextProperty implemented.")}rotate(e){console.log("initCanvasContextProperty implemented.")}translate(e,t){console.log("initCanvasContextProperty implemented.")}setFontSize(e){console.log("initCanvasContextProperty implemented.")}fillText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTextAlign(e){console.log("initCanvasContextProperty implemented.")}setTextBaseline(e){console.log("initCanvasContextProperty implemented.")}drawImage(e,t,n,o,r,i,a,s,l){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(e){console.log("initCanvasContextProperty implemented.")}strokeText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTransform(e,t,n,o,r,i){console.log("initCanvasContextProperty implemented.")}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],tp(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new sp("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new sp("radial",[e,t,n])}createPattern(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new lp(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new cp(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,r,i){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,r,i]}),this.subpath.push([r,i])}arc(e,t,n,o,r,i=!1){this.path.push({method:"arc",data:[e,t,n,o,r,i]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,r){this.path.push({method:"arcTo",data:[e,t,n,o,r]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),r=parseFloat(n[3]),i=n[7],a=[];o.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(a.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(a.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(a.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&s()})),1===o.length&&s(),o=a.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=r,this.state.fontFamily=i,this.actions.push({method:"setFont",data:[`${o} ${r}px ${i}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function s(){a.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const dp=fe((()=>{[...np,...op].forEach((function(e){up.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,r){var i=[t.toString(),n,o];"number"==typeof r&&i.push(r),this.actions.push({method:e,data:i})};case"drawImage":return function(t,n,o,r,i,a,s,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(a=n,s=o,l=r,c=i,n=void 0,o=void 0,r=void 0,i=void 0),u=d(n)&&d(o)&&d(r)&&d(i)?[t,a,s,l,c,n,o,r,i]:d(l)&&d(c)?[t,a,s,l,c]:[t,a,s],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),rp.forEach((function(e){up.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",ap(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,r){r=ap(r),this.actions.push({method:e,data:[t,n,o,r]}),this.state.shadowBlur=o,this.state.shadowColor=r,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}))})),pp=Ed(0,((e,t)=>{if(dp(),t)return new up(e,Ac(t));const n=Ac(Pc());if(n)return new up(e,n);i_.emit("onError","createCanvasContext:fail")})),fp=Md("canvasToTempFilePath",(({x:e=0,y:t=0,width:n,height:o,destWidth:r,destHeight:i,canvasId:a,fileType:s,quality:l},{resolve:c,reject:u})=>{var d=Ac(Pc());if(!d)return void u();tp(a,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:r,destHeight:i,fileType:s,quality:l,dirname:"/canvas"},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):c(e)}))}),0,ep),hp={thresholds:[0],initialRatio:0,observeAll:!1},gp=["top","right","bottom","left"];let mp=1;function vp(e={}){return gp.map((t=>`${Number(e[t])||0}px`)).join(" ")}class yp{constructor(e,t){this._pageId=Ac(e),this._component=e,this._options=c({},hp,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=vp(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=vp(e),this}observe(e,t){m(t)&&(this._options.selector=e,this._reqId=mp++,function({reqId:e,component:t,options:n,callback:o},r){const i=Eu(t);(i.__io||(i.__io={}))[e]=function(e,t,n){!function(){if("object"!=typeof window)return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return void("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));function e(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(cC){return null}}var t=function(t){for(var n=window.document,o=e(n);o;)o=e(n=o.ownerDocument);return n}(),n=[],o=null,r=null;function i(e){this.time=e.time,this.target=e.target,this.rootBounds=h(e.rootBounds),this.boundingClientRect=h(e.boundingClientRect),this.intersectionRect=h(e.intersectionRect||f()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,r=o.width*o.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(){return window.performance&&performance.now&&performance.now()}function l(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}function c(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function u(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function d(e,t){var n=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),r=Math.max(e.left,t.left),i=Math.min(e.right,t.right),a=i-r,s=o-n;return a>=0&&s>=0&&{top:n,bottom:o,left:r,right:i,width:a,height:s}||null}function p(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):f()}function f(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function g(e,t){var n=t.top-e.top,o=t.left-e.left;return{top:n,left:o,height:t.height,width:t.width,bottom:n+t.height,right:o+t.width}}function m(e,t){for(var n=t;n;){if(n==e)return!0;n=v(n)}return!1}function v(n){var o=n.parentNode;return 9==n.nodeType&&n!=t?e(n):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function y(e){return e&&9===e.nodeType}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return o||(o=function(e,t){r=e&&t?g(e,t):f(),n.forEach((function(e){e._checkForIntersections()}))}),o},a._resetCrossOriginUpdater=function(){o=null,r=null},a.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(n){var o=n.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(n)){var r=this._checkForIntersections,i=null,a=null;this.POLL_INTERVAL?i=o.setInterval(r,this.POLL_INTERVAL):(c(o,"resize",r,!0),c(n,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(a=new o.MutationObserver(r)).observe(n,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(n),this._monitoringUnsubscribes.push((function(){var e=n.defaultView;e&&(i&&e.clearInterval(i),u(e,"resize",r,!0)),u(n,"scroll",r,!0),a&&a.disconnect()}));var s=this.root&&(this.root.ownerDocument||this.root)||t;if(n!=s){var l=e(n);l&&this._monitorIntersections(l.ownerDocument)}}},a.prototype._unmonitorIntersections=function(n){var o=this._monitoringDocuments.indexOf(n);if(-1!=o){var r=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==n)return!0;for(;o&&o!=r;){var i=e(o);if((o=i&&i.ownerDocument)==n)return!0}return!1}))){var i=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),i(),n!=r){var a=e(n);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t{e.forEach((e=>{n({intersectionRatio:xf(e),intersectionRect:wf(e.intersectionRect),boundingClientRect:wf(e.boundingClientRect),relativeRect:wf(e.rootBounds),time:Date.now(),dataset:be(e.target),id:e.target.id})}))}),{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){r.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e((e=oe(e))&&!Ac(e)&&(t=e,e=null),new yp(e||Pc(),t))));let _p=0,wp={};const xp={canvas:up,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){Gd(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){Gd(this.id,this.pageId,"moveToLocation",e)}getScale(e){Gd(this.id,this.pageId,"getScale",e)}getRegion(e){Gd(this.id,this.pageId,"getRegion",e)}includePoints(e){Gd(this.id,this.pageId,"includePoints",e)}translateMarker(e){Gd(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){Gd(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){Gd(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){Gd(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){Gd(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){Gd(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){Gd(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){Gd(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){Gd(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){Gd(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){Gd(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){Gd(this.id,this.pageId,"openMapApp",e)}on(e,t){Gd(this.id,this.pageId,"on",{name:e,callback:t})}},video:Yd,editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){!function(e,t,n,o){const r={options:o},i=o&&("success"in o||"fail"in o||"complete"in o);if(i){const e=String(_p++);r.callbackId=e,wp[e]=o}i_.invokeViewMethod(`editor.${e}`,{type:n,data:r},t,(({callbackId:e,data:t})=>{i&&(me(wp[e],t),delete wp[e])}))}(this.id,this.pageId,e,t)}}};function Sp(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,r=xp[n];e.context=new r(t,o),delete e.contextInfo}}class Tp{constructor(e,t,n,o){this._selectorQuery=e,this._component=t,this._selector=n,this._single=o}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},e),this._selectorQuery}}class kp{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return Wu(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{f(e)?e.forEach(Sp):Sp(e);const o=n[t];m(o)&&o.call(this,e)})),m(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=oe(e),this}select(e){return this._nodesRef=new Tp(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new Tp(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new Tp(this,null,"",!0)}_push(e,t,n,o,r){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(r)}}const Cp=Ed(0,(e=>((e=oe(e))&&!Ac(e)&&(e=null),new kp(e||Pc())))),Ap={formatArgs:{}},Ep={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class Mp{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=c({},Ep,e)}_getOption(e){const t={transition:c({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach((e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const Op=fe((()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach((n=>{Mp.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}}))})),Pp=Ed(0,(e=>(Op(),new Mp(e))),0,Ap),$p=Ed(0,(()=>{const e=Jm();return e&&e.$vm?e.$vm.$locale:Ml().getLocale()})),Lp={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const Ip=Ed(0,(()=>c({},Ef)));let Dp,jp,Rp;const Bp=[];const Np=Md("getPushClientId",((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{var e,o;void 0===Rp&&(Rp=!1,Dp="",jp="uniPush is not enabled"),Bp.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==Dp&&(e=Dp,o=jp,Bp.forEach((t=>{t(e,o)})),Bp.length=0)}))})),zp=e=>{},qp=e=>{},Vp=["wgs84","gcj02"],Fp={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===Vp.indexOf(e)?t.type=Vp[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},Hp=(Boolean,(e,t)=>{if(void 0===t)return`${e} should not be empty.`;if("number"!=typeof t){let e=typeof t;return e=e[0].toUpperCase()+e.substring(1),`Expected Number, got ${e} with value ${JSON.stringify(t)}.`}}),Wp={formatArgs:{latitude(e,t){const n=Hp("latitude",e);if(n)return n;t.latitude=e},longitude(e,t){const n=Hp("longitude",e);if(n)return n;t.longitude=e},scale(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18}}},Up={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Ju(e,Uu)},sourceType(e,t){t.sourceType=Ju(e,Yu)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Yp={formatArgs:{sourceType(e,t){t.sourceType=Ju(e,Yu)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Xp=(Boolean,["all","image","video"]),Gp={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Ju(e,Yu)},type(e,t){t.type=Gu(e,Xp)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},Jp={formatArgs:{src(e,t){t.src=Ou(e)}}},Kp={formatArgs:{urls(e,t){t.urls=e.map((e=>v(e)&&e?Ou(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),a={};i.forEach((e=>{const t=e.split("=");a[t[0]]=t[1]}));for(const s in t)if(p(t,s)){let e=t[s];null==e?e="":S(e)&&(e=JSON.stringify(e)),a[ef(s)]=ef(e)}return r=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==Xu[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Zp).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Qp.indexOf(t.responseType)&&(t.responseType="text")}}},nf={formatArgs:{header(e,t){t.header=e||{}}}},of={formatArgs:{filePath(e,t){e&&(t.filePath=Ou(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},rf={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=Gu((e||"").toUpperCase(),Xu)},protocols(e,t){v(e)&&(t.protocols=[e])}}};const af={url:{type:String,required:!0}};sf=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"];var sf;const lf=hf("navigateTo"),cf=hf("redirectTo"),uf=hf("reLaunch"),df=hf("switchTab");let pf;function ff(){pf=""}function hf(e){return{formatArgs:{url:gf(e)},beforeAll:ff}}function gf(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/"))return e;let t="";const n=Tm();return n.length&&(t=n[n.length-1].$page.route),Nc(t,e)}(t)).split("?")[0],r=zc(o,!0);if(!r)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!r.meta.isTabBar||"appLaunch"===n.openType||(t=o),r.meta.isEntry&&(t=t.replace(r.alias,"/")),n.url=function(e){if(!v(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),r=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(r))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(pf===t&&"appLaunch"!==n.openType)return`${pf} locked`;__uniConfig.ready&&(pf=t)}else if(r.meta.isTabBar){const e=Tm(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const mf={formatArgs:{duration:300}},vf=(Boolean,{formatArgs:{title:"",mask:!1}}),yf=(Boolean,{beforeInvoke(){Il()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!p(t,"cancelText")){const{t:e}=Ml();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!p(t,"confirmText")){const{t:e}=Ml();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),bf=["success","loading","none","error"],_f=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Gu(e,bf)},image(e,t){t.image=e?Ou(e):""},duration:1500,mask:!1}});function wf(e){const{bottom:t,height:n,left:o,right:r,top:i,width:a}=e||{};return{bottom:t,height:n,left:o,right:r,top:i,width:a}}function xf(e){const{intersectionRatio:t,boundingClientRect:{height:n,width:o},intersectionRect:{height:r,width:i}}=e;return 0!==t?t:r===n?i/o:r/n}const Sf={};function Tf(e,t){const n=Sf[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",r=atob(t[1]);let i=r.length;const a=new Uint8Array(i);for(;i--;)a[i]=r.charCodeAt(i);return kf(a,o)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function kf(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const r=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],r,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||r}}return n}function Cf(e){for(const n in Sf)if(p(Sf,n)){if(Sf[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Sf[t]=e,t}function Af(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete Sf[e]}const Ef=lu(),Mf=lu();const Of=pu({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=cn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),r=function(e,t,n){const o=Ut({width:-1,height:-1});return so((()=>c({},o)),(e=>t("resize",e))),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){Do(o),Uo((()=>{t.initial&&Pn(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,r,o),()=>ui("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[ui("div",{onScroll:r},[ui("div",null,null)],40,["onScroll"]),ui("div",{onScroll:r},[ui("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const Pf=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function $f(e,t=!0){const n=t?Pf:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let Lf=!1;function If(){if(Lf)return;Lf=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=function(e){return function(t,n,o,r,i,a,s,l,c,u){if(!this.__hidpi__)return e.apply(this,arguments);n*=Pf,o*=Pf,r*=Pf,i*=Pf,a*=Pf,s*=Pf,l=u?l*Pf:l,c=u?c*Pf:c,e.call(this,t,n,o,r,i,a,s,l,c)}}(t.drawImage),1!==Pf&&(!function(e,t){for(const n in e)p(e,n)&&t(e[n],n)}(e,(function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*Pf}));else if(Array.isArray(e))for(let t=0;tIf()));function jf(e){return e?Ou(e):e}function Rf(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Bf(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let Nf;function zf(e=0,t=0){return Nf||(Nf=document.createElement("canvas")),Nf.width=e,Nf.height=t,Nf}const qf=pu({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){Df();const o=cn(null),r=cn(null),i=cn(null),a=cn(!1),s=function(e){return(t,n)=>{e(t,Uc(n))}}(t),{$attrs:l,$excludeAttrs:u,$listeners:d}=Oh({excludeListeners:!0}),{_listeners:f}=function(e,t,n){const o=Ii((()=>{let o=["onTouchstart","onTouchmove","onTouchend"],r=t.value,i=c({},(()=>{let e={};for(const t in r)if(p(r,t)){const n=r[t];e[t]=n}return e})());return o.forEach((t=>{let o=[];i[t]&&o.push(hu((e=>{const o=e.currentTarget.getBoundingClientRect();Bf(o,e.touches),Bf(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&o.push(pc),i[t]=o})),i}));return{_listeners:o}}(e,d,s),{_handleSubscribe:h,_resize:g}=function(e,t,n){let o=[],r={};const i=Ii((()=>e.hidpi?Pf:1));function a(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*i.value)||o.height!==Math.floor(n.height*i.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);$f(o,e.hidpi),t.putImageData(n,0,0)}else $f(o,e.hidpi)}function s({actions:e,reserve:i},a){if(!e)return;if(n.value)return void o.push([e,i]);let s=t.value,c=s.getContext("2d");i||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,s.width,s.height)),l(e);for(let t=0;t{e.src=t})).catch((()=>{e.src=o}))}"drawImage"===t?(o=n[0],o=jf(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=jf(o),n[1]=o),o&&!r[o]&&i()}))}function u(e,t,i,a){let l=r[e];return l.ready?(a(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,a(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)s({actions:t[0],reserve:t[1]},i),t=e.shift()},!1)}function d({x:e=0,y:n=0,width:o,height:r,destWidth:a,destHeight:s,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},p){const f=t.value;let h;const g=f.offsetWidth-e;o=o?Math.min(o,g):g;const m=f.offsetHeight-n;r=r?Math.min(r,m):m,l?(a=o,s=r):a||s?a?s||(s=Math.round(r/o*a)):(s||(s=Math.round(r*i.value)),a=Math.round(o/r*s)):(a=Math.round(o*i.value),s=Math.round(r*i.value));const v=zf(a,s),y=v.getContext("2d");let b;"jpeg"!==d&&"jpg"!==d||(d="jpeg",y.fillStyle="#fff",y.fillRect(0,0,a,s)),y.__hidpi__=!0,y.drawImageByCanvas(f,e,n,o,r,0,0,a,s,!1);try{let e;if("base64"===c)h=v.toDataURL(`image/${d}`,u);else{const e=y.getImageData(0,0,a,s);h=Array.prototype.slice.call(e.data)}b={data:h,compressed:e,width:a,height:s}}catch(_){b={errMsg:`canvasGetImageData:fail ${_}`}}if(v.height=v.width=0,y.__hidpi__=!1,!p)return b;p(b)}function p({data:e,x:n,y:o,width:r,height:i,compressed:a},s){try{0,i||(i=Math.round(e.length/4/r));const a=zf(r,i);a.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),r,i),0,0),t.value.getContext("2d").drawImage(a,n,o,r,i),a.height=a.width=0}catch(l){return void s({errMsg:"canvasPutImageData:fail"})}s({errMsg:"canvasPutImageData:ok"})}function f({x:e=0,y:t=0,width:n,height:o,destWidth:r,destHeight:i,fileType:a,quality:s,dirname:l},c){const u=d({x:e,y:t,width:n,height:o,destWidth:r,destHeight:i,hidpi:!1,dataType:"base64",type:a,quality:s});var p;u.errMsg?c({errMsg:u.errMsg.replace("canvasPutImageData","toTempFilePath")}):(p=u.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,p))}const h={actionsChanged:s,getImageData:d,putImageData:p,toTempFilePath:f};function g(e,t,n){let o=h[e];0!==e.indexOf("_")&&m(o)&&o(t,n)}return c(h,{_resize:a,_handleSubscribe:g})}(e,r,a);return Rg(h,Ng(e.canvasId),!0),Uo((()=>{g()})),()=>{const{canvasId:t,disableScroll:a}=e;return ui("uni-canvas",yi({ref:o,"canvas-id":t,"disable-scroll":a},l.value,u.value,f.value),[ui("canvas",{ref:r,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),ui("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),ui(Of,{ref:i,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});const Vf=bc("ucg"),Ff=pu({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const o=cn(null);return function(e,t){const n=[],o=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);kr(Vf,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:o()})}});const r=Cr(bu,!1);r&&r.addField({submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=o()),t}})}(e,gu(o,t)),()=>ui("uni-checkbox-group",{ref:o},[n.default&&n.default()],512)}});const Hf=pu({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=cn(null),o=cn(e.checked),r=Ii((()=>"true"===o.value||!0===o.value)),i=cn(e.value);const a=Ii((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(r.value)));so([()=>e.checked,()=>e.value],(([e,t])=>{o.value=e,i.value=t}));const{uniCheckGroup:s,uniLabel:l}=function(e,t,n){const o=Ii((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),r={reset:n},i=Cr(Vf,!1);i&&i.addField(o);const a=Cr(bu,!1);a&&a.addField(r);const s=Cr(xu,!1);return Go((()=>{i&&i.removeField(o),a&&a.removeField(r)})),{uniCheckGroup:i,uniForm:a,uniLabel:s}}(o,i,(()=>{o.value=!1})),c=t=>{e.disabled||(o.value=!o.value,s&&s.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(c),Go((()=>{l.removeHandler(c)}))),Tu(e,{"label-click":c}),()=>{const r=yu(e,"disabled");let i;return i=o.value,ui("uni-checkbox",yi(r,{id:e.id,onClick:c,ref:n}),[ui("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[ui("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:a.value},[i?kc(xc,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function Wf(){}const Uf={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function Yf(e,t,n){function o(e){const t=Ii((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",Wf,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",Wf,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}so((()=>t.value),(e=>e&&o(e)))}var Xf=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Gf=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Jf=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Kf=oh("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Zf=oh("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Qf=oh("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),eh=oh("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),th=oh("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),nh=oh("script,style");function oh(e){for(var t={},n=e.split(","),o=0;oe/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},ah={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},sh=pu({name:"Image",props:rh,setup(e,{emit:t}){const n=cn(null),o=function(e,t){const n=cn(""),o=Ii((()=>{let e="auto",o="";const r=ah[t.mode];return r?(r[0]&&(o=r[0]),r[1]&&(e=r[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),r=Ut({rootEl:e,src:Ii((()=>t.src?Ou(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Uo((()=>{const t=e.value;r.origWidth=t.clientWidth||0,r.origHeight=t.clientHeight||0})),r}(n,e),r=gu(n,t),{fixSize:i}=function(e,t,n){const o=()=>{const{mode:o}=t,r=ih[o];if(!r)return;const{origWidth:i,origHeight:a}=n,s=i&&a?i/a:0;if(!s)return;const l=e.value,c=l[r[0]];c&&(l.style[r[1]]=function(e){lh&&e>10&&(e=2*Math.round(e/2));return e}(r[2](c,s))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return so((()=>t.mode),((e,t)=>{ih[t]&&r(),ih[e]&&o()})),{fixSize:o,resetSize:r}}(n,e,o);return function(e,t,n,o,r){let i,a;const s=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void s();i=i||new Image,i.onload=e=>{const{width:u,height:d}=i;s(u,d,l),Pn((()=>{o()})),i.draggable=t.draggable,a&&a.remove(),a=i,n.value.appendChild(i),c(),r("load",e,{width:u,height:d})},i.onerror=t=>{s(),c(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=l},c=()=>{i&&(i.onload=null,i.onerror=null,i=null)};so((()=>e.src),(e=>l(e))),so((()=>e.imgSrc),(e=>{!e&&a&&(a.remove(),a=null)})),Uo((()=>l(e.src))),Go((()=>c()))}(o,e,n,i,r),()=>ui("uni-image",{ref:n},[ui("div",{style:o.modeStyle},null,4),ih[e.mode]?ui(Of,{onResize:i},null,8,["onResize"]):ui("span",null,null)],512)}});const lh="Google Inc."===navigator.vendor;const ch=we(!0),uh=[];let dh=0,ph=!1;const fh=e=>uh.forEach((t=>t.userAction=e));function hh(e={userAction:!1}){if(!ph){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!dh&&fh(!0),dh++,setTimeout((()=>{!--dh&&fh(!1)}),0)}),ch)})),ph=!0}uh.push(e)}const gh=()=>!!dh;function mh(){const e=Ut({userAction:!1});return Uo((()=>{hh(e)})),Go((()=>{!function(e){const t=uh.indexOf(e);t>=0&&uh.splice(t,1)}(e)})),{state:e}}function vh(){const e=Ut({attrs:{}});return Uo((()=>{let t=Si();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function yh(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function bh(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");const o=null==e?"":String(e);return null==n?o:o.slice(0,n)}const _h=["none","text","decimal","numeric","tel","search","email","url"],wh=c({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~_h.indexOf(e)},cursorColor:{type:String,default:""}},Uf),xh=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Sh(e,t,n,o){let r=null;r=Ae((n=>{t.value=bh(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),so((()=>e.modelValue),r),so((()=>e.value),r);const i=function(e,t){let n,o,r=0;const i=function(...i){const a=Date.now();clearTimeout(n),o=()=>{o=null,r=a,e.apply(this,i)},a-r{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return Wo((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function Th(e,t){mh();const n=Ii((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}so((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),Uo((()=>{n.value&&Pn(o)}))}function kh(e,t,n,o){Vl(Oc(),"getSelectedTextRange",yh);const{fieldRef:r,state:i,trigger:a}=function(e,t,n){const o=cn(null),r=gu(t,n),i=Ii((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),a=Ii((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=Ii((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=Ii((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t}));let c="";c=bh(e.modelValue,e.type)||bh(e.value,e.type);const u=Ut({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:a,cursor:s});return so((()=>u.focus),(e=>n("update:focus",e))),so((()=>u.maxlength),(e=>u.value=u.value.slice(0,e)),{immediate:!1}),{fieldRef:o,state:u,trigger:r}}(e,t,n),{triggerInput:s}=Sh(e,i,n,a);Th(e,r),Yf(0,r);const{state:l}=vh();!function(e,t){const n=Cr(bu,!1);if(!n)return;const o=Si(),r={submit(){const n=o.proxy;return[n[e],v(t)?n[t]:t.value]},reset(){v(t)?o.proxy[t]="":t.value=""}};n.addField(r),Go((()=>{n.removeField(r)}))}("name",i),function(e,t,n,o,r,i){function a(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function s(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}so([()=>t.selectionStart,()=>t.selectionEnd],a),so((()=>t.cursor),s),so((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),m(i)&&!1===i(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||r(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),a(),s()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",u),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),c.addEventListener("compositionupdate",d)}))}(r,i,e,a,s,o);return{fieldRef:r,state:i,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}function Ch(e,t,n,o,r){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",r&&(r.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",r.fn)},o.addEventListener("blur",r.fn)),!1}else if("deleteContentBackward"===e.inputType&&navigator.userAgent.includes("iPhone OS 16")&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}const Ah=pu({name:"Input",props:c({},wh,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...xh],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],r=["off","one-time-code"],i=Ii((()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~o.includes(e.type)?e.type:"text"}return e.password?"password":t})),a=Ii((()=>{const t=r.indexOf(e.textContentType),n=r.indexOf(O(e.textContentType));return r[-1!==t?t:-1!==n?n:0]}));let s=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=cn(null!=t?t.toLocaleString():"");return so((()=>e.modelValue),(e=>{n.value=null!=e?e.toLocaleString():""})),so((()=>e.value),(e=>{n.value=null!=e?e.toLocaleString():""})),n}return cn("")}(e,i),l={fn:null};const c=cn(null),{fieldRef:u,state:d,scopedAttrsState:p,fixDisabledColor:f,trigger:h}=kh(e,c,t,((e,t)=>{const n=e.target;if("number"===i.value){if(l.fn&&(n.removeEventListener("blur",l.fn),l.fn=null),n.validity&&!n.validity.valid){if((!s.value||!n.value)&&"-"===e.data||"-"===s.value[0]&&"deleteContentBackward"===e.inputType)return s.value="-",t.value="",l.fn=()=>{s.value=n.value=""},n.addEventListener("blur",l.fn),!1;const o=Ch(e,s,t,n,l);return"boolean"==typeof o?o:(s.value=t.value=n.value="-"===s.value?"":s.value,!1)}{const o=Ch(e,s,t,n,l);if("boolean"==typeof o)return o;s.value=n.value}const o=t.maxlength;if(o>0&&n.value.length>o)return n.value=n.value.slice(0,o),t.value=n.value,!1}}));so((()=>d.value),(t=>{"number"!==e.type||"-"===s.value&&""===t||(s.value=t.toString())}));const g=["number","digit"],m=Ii((()=>g.includes(e.type)?e.step:""));function v(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),h("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),d.value=e.value}}),()=>{let t=e.disabled&&f?ui("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:i.value,maxlength:d.maxlength,step:m.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):ui("input",{key:"input",ref:u,value:d.value,onInput:e=>{d.value=e.target.value.toString()},disabled:!!e.disabled,type:i.value,maxlength:d.maxlength,step:m.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:a.value,onKeyup:v,inputmode:e.inputmode},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return ui("uni-input",{ref:c},[ui("div",{class:"uni-input-wrapper"},[fo(ui("div",yi(p.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[na,!(d.value.length||"-"===s.value||s.value.includes("."))]]),"search"===e.confirmType?ui("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Eh=["class","style"],Mh=/^on[A-Z]+/,Oh=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Si(),r=un({}),i=un({}),a=un({}),s=n.concat(Eh);return o.attrs=Ut(o.attrs),ro((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(s.includes(n)?e.exclude[n]=o:Mh.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});var n;r.value=e.attrs,i.value=e.listeners,a.value=e.exclude})),{$attrs:r,$listeners:i,$excludeAttrs:a}};function Ph(e){const t=[];return f(e)&&e.forEach((e=>{ri(e)?e.type===Ur?t.push(...Ph(e.children)):t.push(e):f(e)&&t.push(...Ph(e))})),t}const $h=pu({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=cn(null),o=cn(!1);let{setContexts:r,events:i}=function(e,t){const n=cn(0),o=cn(0),r=Ut({x:null,y:null}),i=cn(null);let a=null,s=[];function l(t){t&&1!==t&&(e.scaleArea?s.forEach((function(e){e._setScale(t)})):a&&a._setScale(t))}function c(e,n=s){let o=t.value;function r(e){for(let t=0;t{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(i.value=Lh(t),r.x=t.x,r.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);a=e&&e===t?e:null}}})),d=hu((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==r.x&&i.value&&i.value>0){l(Lh(n)/i.value)}r.x=n.x,r.y=n.y}})),p=hu((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(r.x=0,r.y=0,i.value=null,e.scaleArea?s.forEach((function(e){e._endScale()})):a&&a._endScale())}));function f(){h(),s.forEach((function(e,t){e.setParent()}))}function h(){let e=window.getComputedStyle(t.value),r=t.value.getBoundingClientRect();n.value=r.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=r.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return kr("movableAreaWidth",n),kr("movableAreaHeight",o),{setContexts(e){s=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:p,_resize:f}}}(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:l}=Oh(),c=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=i[`_${e}`];c[e]=t?[].concat(t,n):n})),Uo((()=>{i._resize(),o.value=!0}));let u=[];const d=[];function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(tn(o))}r(e)}return kr("_isMounted",o),kr("movableAreaRootRef",n),kr("addMovableViewContext",(e=>{d.push(e),p()})),kr("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())})),()=>{const e=t.default&&t.default();return u=Ph(e),ui("uni-movable-area",yi({ref:n},s.value,l.value,c),[ui(Of,{onResize:i._resize},null,8,["onResize"]),u],16)}}});function Lh(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Ih=function(e,t,n,o){e.addEventListener(t,(e=>{m(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Dh,jh;function Rh(e,t,n){Go((()=>{document.removeEventListener("mousemove",Dh),document.removeEventListener("mouseup",jh)}));let o=0,r=0,i=0,a=0;const s=function(e,n,s,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:s,y:l,dx:s-o,dy:l-r,ddx:s-i,ddy:l-a,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;Ih(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=i=e.touches[0].pageX,r=a=e.touches[0].pageY,s(e,"start",o,r)})),Ih(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,o=i=e.pageX,r=a=e.pageY,s(e,"start",o,r)})),Ih(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=s(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,a=e.touches[0].pageY,t}}));const d=Dh=function(e){if(!l&&c&&u){const t=s(e,"move",e.pageX,e.pageY);return i=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",d),Ih(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,s(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const p=jh=function(e){if(c=!1,!l&&u)return u=null,s(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",p),Ih(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,s(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Bh(e,t,n){return e>t-n&&ethis._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},qh.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},qh.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},qh.prototype.dt=function(){return-this._x_v/this._x_a},qh.prototype.done=function(){const e=Bh(this.s().x,this._endPositionX)||Bh(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},qh.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},qh.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Vh.prototype._solve=function(e,t){const n=this._c,o=this._m,r=this._k,i=n*n-4*o*r;if(0===i){const r=-n/(2*o),i=e,a=t/(r*e);return{x:function(e){return(i+a*e)*Math.pow(Math.E,r*e)},dx:function(e){const t=Math.pow(Math.E,r*e);return r*(i+a*e)*t+a*t}}}if(i>0){const r=(-n-Math.sqrt(i))/(2*o),a=(-n+Math.sqrt(i))/(2*o),s=(t-r*e)/(a-r),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*r*t+s*a*n}}}const a=Math.sqrt(4*o*r-n*n)/(2*o),s=-n/2*o,l=e,c=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+c*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(c*a*n-l*a*o)+s*t*(c*o+l*n)}}},Vh.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Vh.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Vh.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Nh(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Nh(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Nh(t,.1)&&(t=0),Nh(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Nh(o-e,.1)&&Nh(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Vh.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Vh.prototype.done=function(e){return e||(e=(new Date).getTime()),Bh(this.x(),this._endPosition,.1)&&Nh(this.dx(),.1)},Vh.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Vh.prototype.springConstant=function(){return this._k},Vh.prototype.damping=function(){return this._c},Vh.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Fh.prototype.setEnd=function(e,t,n,o){const r=(new Date).getTime();this._springX.setEnd(e,o,r),this._springY.setEnd(t,o,r),this._springScale.setEnd(n,o,r),this._startTime=r},Fh.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Fh.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Fh.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Hh(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Wh=pu({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=cn(null),r=gu(o,n),{setParent:i}=function(e,t,n){const o=Cr("_isMounted",cn(!1)),r=Cr("addMovableViewContext",(()=>{})),i=Cr("removeMovableViewContext",(()=>{}));let a,s,l=cn(1),c=cn(1),u=cn(!1),d=cn(0),p=cn(0),f=null,h=null,g=!1,m=null,v=null;const y=new zh,b=new zh,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=Ii((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new qh(1,w.value);so((()=>e.disabled),(()=>{W()}));const{_updateOldScale:S,_endScale:T,_setScale:k,scaleValueSync:C,_updateBoundary:A,_updateOffset:E,_updateWH:M,_scaleOffset:O,minX:P,minY:$,maxX:L,maxY:I,FAandSFACancel:D,_getLimitXY:j,_setTransform:R,_revise:B,dampingNumber:N,xMove:z,yMove:q,xSync:V,ySync:F,_STD:H}=function(e,t,n,o,r,i,a,s,l,c){const u=Ii((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),d=Ii((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),p=cn(Number(e.scaleValue)||1);so(p,(e=>{R(e)})),so(u,(()=>{j()})),so(d,(()=>{j()})),so((()=>e.scaleValue),(e=>{p.value=Number(e)||0}));const{_updateBoundary:f,_updateOffset:h,_updateWH:g,_scaleOffset:m,minX:v,minY:y,maxX:b,maxY:_}=function(e,t,n){const o=Cr("movableAreaWidth",cn(0)),r=Cr("movableAreaHeight",cn(0)),i=Cr("movableAreaRootRef"),a={x:0,y:0},s={x:0,y:0},l=cn(0),c=cn(0),u=cn(0),d=cn(0),p=cn(0),f=cn(0);function h(){let e=0-a.x+s.x,t=o.value-l.value-a.x-s.x;u.value=Math.min(e,t),p.value=Math.max(e,t);let n=0-a.y+s.y,i=r.value-c.value-a.y-s.y;d.value=Math.min(n,i),f.value=Math.max(n,i)}function g(){a.x=Xh(e.value,i.value),a.y=Gh(e.value,i.value)}function m(o){o=o||t.value,o=n(o);let r=e.value.getBoundingClientRect();c.value=r.height/t.value,l.value=r.width/t.value;let i=c.value*o,a=l.value*o;s.x=(a-l.value)/2,s.y=(i-c.value)/2}return{_updateBoundary:h,_updateOffset:g,_updateWH:m,_scaleOffset:s,minX:u,minY:d,maxX:p,maxY:f}}(t,o,D),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:T,_revise:k,dampingNumber:C,xMove:A,yMove:E,xSync:M,ySync:O,_STD:P}=function(e,t,n,o,r,i,a,s,l,c,u,d,p,f){const h=Ii((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),g=Ii((()=>"all"===t.direction||"horizontal"===t.direction)),m=Ii((()=>"all"===t.direction||"vertical"===t.direction)),v=cn(Kh(t.x)),y=cn(Kh(t.y));so((()=>t.x),(e=>{v.value=Kh(e)})),so((()=>t.y),(e=>{y.value=Kh(e)})),so(v,(e=>{k(e)})),so(y,(e=>{C(e)}));const b=new Fh(1,9*Math.pow(h.value,2)/40,h.value);function _(e,t){let n=!1;return e>r.value?(e=r.value,n=!0):ei.value?(t=i.value,n=!0):t1?"htouchmove":"vtouchmove"),z.value&&(n=t.detail.dx+a,_.historyX.shift(),_.historyX.push(n),q.value||null!==m||(m=Math.abs(t.detail.dx/t.detail.dy)<1)),q.value&&(o=t.detail.dy+s,_.historyY.shift(),_.historyY.push(o),z.value||null!==m||(m=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!m){t.preventDefault();let r="touch";nL.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=L.value+y.x(n-L.value)):n=L.value),o<$.value?e.outOfBounds?(r="touch-out-of-bounds",o=$.value-b.x($.value-o)):o=$.value:o>I.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=I.value+b.x(o-I.value)):o=I.value),Yh((function(){R(n,o,l.value,r)}))}}}function Y(){if(!u.value&&!e.disabled&&g&&(n.value.style.willChange="auto",g=!1,!m&&!B("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,o=p.value;x.setV(e,t),x.setS(n,o);const r=x.delta().x,i=x.delta().y;let a=r+n,s=i+o;aL.value&&(a=L.value,s=o+(L.value-n)*i/r),s<$.value?(s=$.value,a=n+($.value-o)*r/i):s>I.value&&(s=I.value,a=n+(I.value-o)*r/i),x.setEnd(a,s),h=Jh(x,(function(){let e=x.s(),t=e.x,n=e.y;R(t,n,l.value,"friction")}),(function(){h.cancel()}))}e.outOfBounds||e.inertia||D()}function X(){if(!o.value)return;D();let t=e.scale?C.value:1;E(),M(t),A();let n=j(V.value+O.x,F.value+O.y),r=n.x,i=n.y;R(r,i,t,"",!0),S(t)}return Uo((()=>{Rh(n.value,(e=>{switch(e.detail.state){case"start":W();break;case"move":U(e);break;case"end":Y()}})),X(),x.reconfigure(1,w.value),H.reconfigure(1,9*Math.pow(N.value,2)/40,N.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:X,_endScale:T,_setScale:k};r(e),Jo((()=>{i(e)}))})),Jo((()=>{D()})),{setParent:X}}(e,r,o);return()=>ui("uni-movable-view",{ref:o},[ui(Of,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let Uh=!1;function Yh(e){Uh||(Uh=!0,requestAnimationFrame((function(){e(),Uh=!1})))}function Xh(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Xh(e.offsetParent,t):0}function Gh(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Gh(e.offsetParent,t):0}function Jh(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function Kh(e){return/\d+[ur]px$/i.test(e)?Bd(parseFloat(e)):Number(e)||0}const Zh=pu({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return f(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=cn(null),r=cn(null),i=gu(o,n),a=function(e){const t=Ut([...e.value]),n=Ut({value:t,height:34});return so((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}(e),s=cn(null);Uo((()=>{const e=s.value;e&&(a.height=e.$el.offsetHeight)}));let l=cn([]),c=cn([]);function u(e){let t=c.value;t=t.filter((e=>e.type!==Xr));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return kr("getPickerViewColumn",(function(e){return Ii({get(){const t=u(e.vnode);return a.value[t]||0},set(t){const o=u(e.vnode);if(o<0)return;if(a.value[o]!==t){a.value[o]=t;const e=a.value.map((e=>e));n("update:value",e),i("change",{},{value:e})}}})})),kr("pickerViewProps",e),kr("pickerViewState",a),()=>{const e=t.default&&t.default();{const t=Ph(e);l.value=t,Pn((()=>{c.value=t}))}return ui("uni-picker-view",{ref:o},[ui(Of,{ref:s,onResize:({height:e})=>a.height=e},null,8,["onResize"]),ui("div",{ref:r,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class Qh{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function eg(e,t,n){return e>t-n&&e0){const r=(-n-Math.sqrt(i))/(2*o),a=(-n+Math.sqrt(i))/(2*o),s=(t-r*e)/(a-r),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*r*t+s*a*n}}}const a=Math.sqrt(4*o*r-n*n)/(2*o),s=-n/2*o,l=e,c=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+c*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(c*a*n-l*a*o)+s*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!tg(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(tg(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),tg(t,.4)&&(t=0),tg(o,.4)&&(o=0),o+=this._endPosition),this._solution&&tg(o-e,.4)&&tg(t,.4)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),eg(this.x(),this._endPosition,.4)&&tg(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class og{constructor(e,t,n){this._extent=e,this._friction=t||new Qh(.01),this._spring=n||new ng(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class rg{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new og(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);const i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,(()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)}),(()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1}))}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(m(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let o=0;const r=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=o,this._scroll._extent=o}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}const ig=pu({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=cn(null),r=cn(null),i=Cr("getPickerViewColumn"),a=Si(),s=i?i(a):cn(0),l=Cr("pickerViewProps"),c=Cr("pickerViewState"),u=cn(34),d=cn(null);Uo((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const p=Ii((()=>(c.height-u.value)/2)),{state:f}=vh();let h;const g=Ut({current:s.value,length:0});let m;function v(){h&&!m&&(m=!0,Pn((()=>{m=!1;let e=Math.min(g.current,g.length-1);e=Math.max(e,0),h.update(e*u.value,void 0,u.value)})))}so((()=>s.value),(e=>{e!==g.current&&(g.current=e,v())})),so((()=>g.current),(e=>s.value=e)),so([()=>u.value,()=>g.length,()=>c.height],v);let y=0;function b(e){const t=y+e.deltaY;if(Math.abs(t)>10){y=0;let e=Math.min(g.current+(t<0?-1:1),g.length-1);g.current=e=Math.max(e,0),h.scrollTo(e*u.value)}else y=t;e.preventDefault()}function _({clientY:e}){const t=o.value;if(!h.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,o=u.value/2;if(!(Math.abs(n)<=o)){const e=Math.ceil((Math.abs(n)-o)/u.value),t=n<0?-e:e;let r=Math.min(g.current+t,g.length-1);g.current=r=Math.max(r,0),h.scrollTo(r*u.value)}}}const w=()=>{const e=o.value,t=r.value,{scroller:n,handleTouchStart:i,handleTouchMove:a,handleTouchEnd:s}=function(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new rg(e,t);function r(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,r=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=r.screenX,n.y=r.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||r.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const i=r(e);if(i){for(n.maxDy=Math.max(n.maxDy,Math.abs(i.y)),n.maxDx=Math.max(n.maxDx,Math.abs(i.x)),n.historyX.push(i.x),n.historyY.push(i.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(i.x,i.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=r(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,r=n.historyTime[t],i=n.historyX[t],a=n.historyY[t];t>0;){t--;const e=r-n.historyTime[t];if(e>30&&e<50){o.x=(i-n.historyX[t])/(e/1e3),o.y=(a-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new Qh(1e-4),spring:new ng(2,90,20),onSnap:e=>{isNaN(e)||e===g.current||(g.current=e)}});h=n,Rh(e,(e=>{switch(e.detail.state){case"start":i(e);break;case"move":a(e),e.stopPropagation();break;case"end":case"cancel":s(e)}}),!0),function(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const o=e.changedTouches[0];t=o.clientX,n=o.clientY})),e.addEventListener("touchend",(e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-t)<20&&Math.abs(o.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{n[e]=o[e]})),e.target.dispatchEvent(n)}}))}(e),v()};return Uo(w),()=>{const e=t.default&&t.default();g.length=Ph(e).length;const n=`${p.value}px 0`;return ui("uni-picker-view-column",{ref:o},[ui("div",{onWheel:b,onClick:_,class:"uni-picker-view-group"},[ui("div",yi(f.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${p.value}px;${l.maskStyle}`}),null,16),ui("div",yi(f.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[ui(Of,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),ui("div",{ref:r,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${u.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),ag="#007aff",sg="backwards",lg=pu({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:ag},activeColor:{type:String,default:ag},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:sg},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=cn(null),n=function(e){const t=cn(0),n=Ii((()=>`background-color: ${e.backgroundColor}; height: ${e.strokeWidth}px;`)),o=Ii((()=>{const n=e.color!==ag&&e.activeColor===ag?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`})),r=Ii((()=>{if("string"==typeof e.percent&&!/^-?\d*\.?\d*$/.test(e.percent))return 0;let t=parseFloat(e.percent);return Number.isNaN(t)||t<0?t=0:t>100&&(t=100),t}));return Ut({outerBarStyle:n,innerBarStyle:o,realPercent:r,currentPercent:t,strokeTimer:0,lastPercent:0})}(e);return cg(n,e),so((()=>n.realPercent),((t,o)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=o||0,cg(n,e)})),()=>{const{showInfo:o}=e,{outerBarStyle:r,innerBarStyle:i,currentPercent:a}=n;return ui("uni-progress",{class:"uni-progress",ref:t},[ui("div",{style:r,class:"uni-progress-bar"},[ui("div",{style:i,class:"uni-progress-inner-bar"},null,4)],4),o?ui("p",{class:"uni-progress-info"},[a+"%"]):""],512)}}});function cg(e,t){t.active?(e.currentPercent=t.activeMode===sg?0:e.lastPercent,e.strokeTimer=setInterval((()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(t.duration))):e.currentPercent=e.realPercent}const ug=bc("ucg"),dg=pu({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,{emit:t,slots:n}){const o=cn(null);return function(e,t){const n=[];Uo((()=>{s(n.length-1)}));const o=()=>{var e;return null==(e=n.find((e=>e.value.radioChecked)))?void 0:e.value.value};kr(ug,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},radioChange(e,r){s(n.indexOf(r),!0),t("change",e,{value:o()})}});const r=Cr(bu,!1),i={submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=o()),t}};r&&(r.addField(i),Go((()=>{r.removeField(i)})));function a(e,t){e.value={radioChecked:t,value:e.value.value}}function s(e,t){n.forEach(((o,r)=>{r!==e&&(t?a(n[r],!1):n.forEach(((e,t)=>{r>=t||n[t].value.radioChecked&&a(n[r],!1)})))}))}}(e,gu(o,t)),()=>ui("uni-radio-group",{ref:o},[n.default&&n.default()],512)}});const pg=pu({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:"#ffffff"}},setup(e,{slots:t}){const n=cn(null),o=cn(e.checked),r=cn(e.value);const i=Ii((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return o.value?(n.backgroundColor=e.activeBackgroundColor||e.color,n.borderColor=e.activeBorderColor||n.backgroundColor):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(o.value)));so([()=>e.checked,()=>e.value],(([e,t])=>{o.value=e,r.value=t}));const{uniCheckGroup:a,uniLabel:s,field:l}=function(e,t,n){const o=Ii({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:t})=>{e.value=t}}),r={reset:n},i=Cr(ug,!1);i&&i.addField(o);const a=Cr(bu,!1);a&&a.addField(r);const s=Cr(xu,!1);return Go((()=>{i&&i.removeField(o),a&&a.removeField(r)})),{uniCheckGroup:i,uniForm:a,uniLabel:s,field:o}}(o,r,(()=>{o.value=!1})),c=t=>{e.disabled||o.value||(o.value=!0,a&&a.radioChange(t,l),t.stopPropagation())};return s&&(s.addHandler(c),Go((()=>{s.removeHandler(c)}))),Tu(e,{"label-click":c}),()=>{const r=yu(e,"disabled");let a;return a=o.value,ui("uni-radio",yi(r,{id:e.id,onClick:c,ref:n}),[ui("div",{class:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":o.value?i.value.borderColor:e.activeBorderColor}},[ui("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:i.value},[a?kc(xc,e.disabled?"#ADADAD":e.iconColor,18):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});const fg={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},hg={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const gg=(e,t,n)=>!n||f(n)&&!n.length?[]:n.map((n=>{var o;if(S(n)){if(!p(n,"type")||"node"===n.type){let r={[e]:""};const i=null==(o=n.name)?void 0:o.toLowerCase();if(!p(fg,i))return;return function(e,t){if(S(t))for(const n in t)if(p(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=Ou(o))}}(i,n.attrs),r=c(r,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClick:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),Di(n.name,r,gg(e,t,n.children))}return"text"===n.type&&v(n.text)&&""!==n.text?fi((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){return p(hg,t)&&hg[t]?hg[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e}))):void 0}}));function mg(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}(e);const t=[],n={node:"root",children:[]};return function(e,t){var n,o,r,i=[],a=e;for(i.last=function(){return this[this.length-1]};e;){if(o=!0,i.last()&&nh[i.last()])e=e.replace(new RegExp("([\\s\\S]*?)]*>"),(function(e,n){return n=n.replace(/|/g,"$1$2"),t.chars&&t.chars(n),""})),c("",i.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1):0==e.indexOf("=0&&i[o]!=n;o--);else var o=0;if(o>=0){for(var r=i.length-1;r>=o;r--)t.end&&t.end(i[r]);i.length=o}}c()}(e,{start:function(e,o,r){const i={name:e};if(0!==o.length&&(i.attrs=function(e){return e.reduce((function(e,t){let n=t.value;const o=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(o)&&(n=n.split(" ")),e[o]?Array.isArray(e[o])?e[o].push(n):e[o]=[e[o],n]:e[o]=n,e}),{})}(o)),r){const e=t[0]||n;e.children||(e.children=[]),e.children.push(i)}else t.unshift(i)},end:function(e){const o=t.shift();if(o.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},chars:function(e){const o={type:"text",text:e};if(0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},comment:function(e){const n={node:"comment",text:e},o=t[0];o&&(o.children||(o.children=[]),o.children.push(n))}}),n.children}const vg=pu({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["click","touchstart","touchmove","touchcancel","touchend","longpress","itemclick"],setup(e,{emit:t}){const n=Si(),o=n&&n.vnode.scopeId||"",r=cn(null),i=cn([]),a=gu(r,t);function s(e,t={}){a("itemclick",e,t)}return so((()=>e.nodes),(function(){let t=e.nodes;v(t)&&(t=mg(e.nodes)),i.value=gg(o,s,t)}),{immediate:!0}),()=>Di("uni-rich-text",{ref:r},Di("div",{},i.value))}}),yg=pu({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=cn(null),o=Ii((()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t})),r=Ii((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:i,refresherDefaultStyle:a,refresherThreshold:s}=e;return ui("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==a?ui("div",{class:"uni-scroll-view-refresh"},[ui("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==i?ui("svg",{key:"refresh__icon",style:{transform:"rotate("+r.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[ui("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),ui("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==i?ui("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[ui("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===a?ui("div",{class:"uni-scroll-view-refresher-container",style:{height:`${s}px`}},[t.default&&t.default()]):null],4)}}}),bg=we(!0),_g=pu({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const r=cn(null),i=cn(null),a=cn(null),s=cn(null),l=gu(r,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=Ii((()=>Number(e.scrollTop)||0)),n=Ii((()=>Number(e.scrollLeft)||0));return{state:Ut({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:p,realScrollY:f,_scrollLeftChanged:h,_scrollTopChanged:g}=function(e,t,n,o,r,i,a,s,l){let c=!1,u=0,d=!1,p=()=>{};const f=Ii((()=>e.scrollX)),h=Ii((()=>e.scrollY)),g=Ii((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),m=Ii((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function v(e,t){const n=a.value;let o=0,r="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let i=s.value;i.style.transition="transform .3s ease-out",i.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?r="translateX("+o+"px) translateZ(0)":"y"===t&&(r="translateY("+o+"px) translateZ(0)"),i.removeEventListener("transitionend",p),i.removeEventListener("webkitTransitionEnd",p),p=()=>x(e,t),i.addEventListener("transitionend",p),i.addEventListener("webkitTransitionEnd",p),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),i.style.transform=r,i.style.webkitTransform=r}function y(e){const n=e.target;r("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),h.value&&(n.scrollTop<=g.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+m.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),f.value&&(n.scrollLeft<=g.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+m.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function b(t){h.value&&(e.scrollWithAnimation?v(t,"y"):a.value.scrollTop=t)}function _(t){f.value&&(e.scrollWithAnimation?v(t,"x"):a.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=i.value.querySelector("#"+t);if(n){let t=a.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(f.value){let n=o.left-t.left,r=a.value.scrollLeft+n;e.scrollWithAnimation?v(r,"x"):a.value.scrollLeft=r}if(h.value){let n=o.top-t.top,r=a.value.scrollTop+n;e.scrollWithAnimation?v(r,"y"):a.value.scrollTop=r}}}}function x(e,t){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";let n=a.value;"x"===t?(n.style.overflowX=f.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=h.value?"auto":"hidden",n.scrollTop=e),s.value.removeEventListener("transitionend",p),s.value.removeEventListener("webkitTransitionEnd",p)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,r("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),r("refresherrefresh",{},{dy:k.y-T.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,r("refresherrestore",{},{dy:k.y-T.y})),"refresherabort"===n&&d&&(d=!1,r("refresherabort",{},{dy:k.y-T.y}))}t.refreshState=n}}let T={x:0,y:0},k={x:0,y:e.refresherThreshold};return Uo((()=>{Pn((()=>{b(n.value),_(o.value)})),w(e.scrollIntoView);let i=function(e){e.preventDefault(),e.stopPropagation(),y(e)},s=null,l=function(n){if(null===T)return;let o=n.touches[0].pageX,i=n.touches[0].pageY,l=a.value;if(Math.abs(o-T.x)>Math.abs(i-T.y))if(f.value){if(0===l.scrollLeft&&o>T.x)return void(s=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&oT.y)s=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&i0&&(d=!0,r("refresherpulling",n,{deltaY:o,dy:o})))}},p=function(e){1===e.touches.length&&(T={x:e.touches[0].pageX,y:e.touches[0].pageY})},g=function(n){k={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),T={x:0,y:0},k={x:0,y:e.refresherThreshold}};a.value.addEventListener("touchstart",p,bg),a.value.addEventListener("touchmove",l,we(!1)),a.value.addEventListener("scroll",i,we(!1)),a.value.addEventListener("touchend",g,bg),Go((()=>{a.value.removeEventListener("touchstart",p),a.value.removeEventListener("touchmove",l),a.value.removeEventListener("scroll",i),a.value.removeEventListener("touchend",g)}))})),Do((()=>{h.value&&(a.value.scrollTop=t.lastScrollTop),f.value&&(a.value.scrollLeft=t.lastScrollLeft)})),so(n,(e=>{b(e)})),so(o,(e=>{_(e)})),so((()=>e.scrollIntoView),(e=>{w(e)})),so((()=>e.refresherTriggered),(e=>{!0===e?S("refreshing"):!1===e&&S("restore")})),{realScrollX:f,realScrollY:h,_scrollTopChanged:b,_scrollLeftChanged:_}}(e,c,u,d,l,r,i,s,t),m=Ii((()=>{let e="";return p.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",f.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),v=Ii((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return o({$getMain:()=>i.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:p}=c;return ui("uni-scroll-view",{ref:r},[ui("div",{ref:a,class:"uni-scroll-view"},[ui("div",{ref:i,style:m.value,class:v.value},[t?ui(yg,{refreshState:p,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,ui("div",{ref:s,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function wg(e,t,n,o,r,i){function a(){c&&(clearTimeout(c),c=null)}let s,l,c=null,u=!0,d=0,p=1,f=null,h=!1,g=0,m="";const v=Ii((()=>n.value.length>t.displayMultipleItems)),y=Ii((()=>e.circular&&v.value));function b(r){Math.floor(2*d)===Math.floor(2*r)&&Math.ceil(2*d)===Math.ceil(2*r)||y.value&&function(o){if(!u)for(let r=n.value,i=r.length,a=o+t.displayMultipleItems,s=0;s=c.length&&(r-=c.length),r=s%1>.5||s<0?r-1:r,i("transition",{},{dx:e.vertical?0:r*l.offsetWidth,dy:e.vertical?r*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(y.value){if(o<=t.displayMultipleItems)return 0}else if(r>o-t.displayMultipleItems)return o-t.displayMultipleItems;return r}function w(){f=null}function x(){if(!f)return void(h=!1);const e=f,o=e.toPos,r=e.acc,a=e.endTime,c=e.source,u=a-Date.now();if(u<=0){b(o),f=null,h=!1,s=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}b(o+r*u*u/2),l=requestAnimationFrame(x)}function S(e,o,r){w();const i=t.duration,a=n.value.length;let s=d;if(y.value)if(r<0){for(;se;)s-=a}else if(r>0){for(;s>e;)s-=a;for(;s+ae;)s-=a;s+a-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,r=n.value;te.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){a(),f&&(b(f.toPos),f=null);const r=n.value;for(let t=0;t0&&p<1||(p=1)}const s=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(b(s+l-g),g=l):(b(l),e.autoplay&&T())):(u=!0,b(-t.displayMultipleItems-1))})),so((()=>t.interval),(()=>{c&&(a(),T())})),so((()=>t.current),((e,o)=>{!function(e,o){const r=m;m="";const a=n.value;if(!r){const t=a.length;S(e,"",y.value&&o+(t-e)%t>t/2?1:0)}const s=a[e];if(s){const e=t.currentItemId=s.getItemId();i("change",{},{current:t.current,currentItemId:e,source:r})}}(e,o),r("update:current",e)})),so((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),so((()=>e.autoplay&&!t.userTracking),k),k(e.autoplay&&!t.userTracking),Uo((()=>{let r=!1,i=0,s=0;function l(e){t.userTracking=!1;const n=i/Math.abs(i);let o=0;!e&&Math.abs(i)>.2&&(o=.5*n);const r=_(d+o);e?b(g):(m="touch",t.current=r,S(r,"touch",0!==o?o:0===r&&y.value&&d>=1?1:0))}Rh(o.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,r=!1,a(),g=d,i=0,s=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!r){r=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&T())}return function(r){const a=s;s=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=g+e;i=.6*i+.4*t,y.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),i=0),b(n)}const d=s-a||1,p=o.value;e.vertical?u(-r.dy/p.offsetHeight,-r.ddy/d):u(-r.dx/p.offsetWidth,-r.ddx/d)}(c.detail),!1}}}))})),Jo((()=>{a(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,m="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const xg=pu({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=cn(null),r=gu(o,n),i=cn(null),a=cn(null),s=function(e){return Ut({interval:Ii((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:Ii((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:Ii((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=Ii((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:wc(e.previousMargin,!0),bottom:wc(e.nextMargin,!0)}:{top:0,bottom:0,left:wc(e.previousMargin,!0),right:wc(e.nextMargin,!0)}),t})),c=Ii((()=>{const t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],p=cn([]);function f(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(tn(o))}p.value=e}kr("addSwiperContext",(function(e){d.push(e),f()}));kr("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())}));const{onSwiperDotClick:h,circularEnabled:g,swiperEnabled:m}=wg(e,s,p,a,n,r);let v=()=>null;return v=Sg(o,e,s,h,p,g,m),()=>{const n=t.default&&t.default();return u=Ph(n),ui("uni-swiper",{ref:o},[ui("div",{ref:i,class:"uni-swiper-wrapper"},[ui("div",{class:"uni-swiper-slides",style:l.value},[ui("div",{ref:a,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&ui("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[p.value.map(((t,n,o)=>ui("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=s.current||n{let s=!1,l=!1,u=!1,d=cn(!1);function p(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}ro((()=>{s="auto"===t.navigation,d.value=!0!==t.navigation||s,b()})),ro((()=>{const e=r.value.length,t=!i.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,a.value||(l=!0,u=!0,s&&(d.value=!0))}));const f={onMouseover:e=>p(e,"over"),onMouseout:e=>p(e,"out")};function h(e,t,a){if(e.stopPropagation(),a)return;const s=r.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&i.value&&(l=s-1);break;case"next":l++,l>=s&&i.value&&(l=0)}o(l)}const g=()=>kc(Tc,t.navigationColor,26);let m;const v=n=>{clearTimeout(m);const{clientX:o,clientY:r}=n,{left:i,right:a,top:s,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let p=!1;if(p=t.vertical?!(r-s{d.value=p}),300);d.value=p},y=()=>{d.value=!0};function b(){e.value&&(e.value.removeEventListener("mousemove",v),e.value.removeEventListener("mouseleave",y),s&&(e.value.addEventListener("mousemove",v),e.value.addEventListener("mouseleave",y)))}return Uo(b),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?ui(Ur,null,[ui("div",yi({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>h(e,"prev",l)},f),[g()],16,["onClick"]),ui("div",yi({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>h(e,"next",u)},f),[g()],16,["onClick"])]):null}},Tg=pu({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=cn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",r=t?100*e+"%":"0",i=n.value,a=`translate(${o},${r}) translateZ(0)`;i&&(i.style.webkitTransform=a,i.style.transform=a)}};return Uo((()=>{const e=Cr("addSwiperContext");e&&e(o)})),Jo((()=>{const e=Cr("removeSwiperContext");e&&e(o)})),()=>ui("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),kg=pu({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){const n=cn(null),o=cn(e.checked),r=function(e,t){const n=Cr(bu,!1),o=Cr(xu,!1),r={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(r),Jo((()=>{n.removeField(r)})));return o}(e,o),i=gu(n,t);so((()=>e.checked),(e=>{o.value=e}));const a=t=>{e.disabled||(o.value=!o.value,i("change",t,{value:o.value}))};return r&&(r.addHandler(a),Go((()=>{r.removeHandler(a)}))),Tu(e,{"label-click":a}),()=>{const{color:t,type:r}=e,i=yu(e,"disabled"),s={};let l;return t&&o.value&&(s.backgroundColor=t,s.borderColor=t),l=o.value,ui("uni-switch",yi({id:e.id,ref:n},i,{onClick:a}),[ui("div",{class:"uni-switch-wrapper"},[fo(ui("div",{class:["uni-switch-input",[o.value?"uni-switch-input-checked":""]],style:s},null,6),[[na,"switch"===r]]),fo(ui("div",{class:"uni-checkbox-input"},[l?kc(xc,e.color,22):""],512),[[na,"checkbox"===r]])])],16,["id","onClick"])}}});const Cg={ensp:" ",emsp:" ",nbsp:" "};function Ag(e,t){return function(e,{space:t,decode:n}){let o="",r=!1;for(let i of e)t&&Cg[t]&&" "===i&&(i=Cg[t]),r?(o+="n"===i?"\n":"\\"===i?"\\":"\\"+i,r=!1):"\\"===i?r=!0:o+=i;return n?o.replace(/ /g,Cg.nbsp).replace(/ /g,Cg.ensp).replace(/ /g,Cg.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split("\n")}const Eg=pu({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=cn(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Xr){const n=Ag(t.children,{space:e.space,decode:e.decode}),r=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(fi(e)),t!==r&&o.push(ui("br"))}))}else o.push(t)})),ui("uni-text",{ref:n,selectable:!!e.selectable||null},[ui("span",null,o)],8,["selectable"])}}}),Mg=c({},wh,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>Pg.concat("return").includes(e)}});let Og=!1;const Pg=["done","go","next","search","send"];const $g=pu({name:"Textarea",props:Mg,emits:["confirm","linechange",...xh],setup(e,{emit:t,expose:n}){const o=cn(null),r=cn(null),{fieldRef:i,state:a,scopedAttrsState:s,fixDisabledColor:l,trigger:c}=kh(e,o,t),u=Ii((()=>a.value.split("\n"))),d=Ii((()=>Pg.includes(e.confirmType))),p=cn(0),f=cn(null);function h({height:e}){p.value=e}function g(e){"Enter"===e.key&&d.value&&e.preventDefault()}function m(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:a.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return so((()=>p.value),(t=>{const n=o.value,i=f.value,a=r.value;let s=parseFloat(getComputedStyle(n).lineHeight);isNaN(s)&&(s=i.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(n.style.height="auto",a.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";Og=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),a.value=e.value}}),()=>{let t=e.disabled&&l?ui("textarea",{key:"disabled-textarea",ref:i,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Og},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):ui("textarea",{key:"textarea",ref:i,value:a.value,disabled:!!e.disabled,maxlength:a.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Og},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:g,onKeyup:m},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return ui("uni-textarea",{ref:o},[ui("div",{ref:r,class:"uni-textarea-wrapper"},[fo(ui("div",yi(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[na,!a.value.length]]),ui("div",{ref:f,class:"uni-textarea-line"},[" "],512),ui("div",{class:"uni-textarea-compute"},[u.value.map((e=>ui("div",null,[e.trim()?e:"."]))),ui(Of,{initial:!0,onResize:h},null,8,["initial","onResize"])]),"search"===e.confirmType?ui("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),Lg=pu({name:"View",props:c({},mu),setup(e,{slots:t}){const n=cn(null),{hovering:o,binding:r}=vu(e);return()=>{const i=e.hoverClass;return i&&"none"!==i?ui("uni-view",yi({class:o.value?i:"",ref:n},r),[t.default&&t.default()],16):ui("uni-view",{ref:n},[t.default&&t.default()],512)}}});function Ig(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Dg(e,t,n){e&&Vl(n||Oc(),e,(({type:e,data:n},o)=>{t(e,n,o)}))}function jg(e,t){e&&function(e,t){t=ql(e,t),delete zl[t]}(t||Oc(),e)}function Rg(e,t,n,o){const r=Si().proxy;Uo((()=>{Dg(t||Ig(r),e,o),!n&&t||so((()=>r.id),((t,n)=>{Dg(Ig(r,t),e,o),jg(n&&Ig(r,n))}))})),Go((()=>{jg(t||Ig(r),o)}))}let Bg=0;function Ng(e){const t=Cc(),n=Si().proxy,o=n.$options.name.toLowerCase(),r=e||n.id||"context"+Bg++;return Uo((()=>{n.$el.__uniContextInfo={id:r,type:o,page:t}})),`${o}.${r}`}function zg(e,t,n,o){m(t)&&Fo(e,t.bind(n),o)}function qg(e,t,n){var o;const r=e.mpType||n.$mpType;if(r&&"component"!==r&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!m(t))&&(Oe.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const r=e[o];f(r)?r.forEach((e=>zg(o,e,n,t))):zg(o,r,n,t)}})),"page"===r)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,Ic(n,"onLoad",e),delete t.attrs.__pageQuery,"preloadPage"!==(null==(o=n.$page)?void 0:o.openType)&&Ic(n,"onShow")}catch(cC){console.error(cC.message+"\n"+cC.stack)}}}function Vg(e,t,n){qg(e,t,n)}function Fg(e,t,n){return e[t]=n}function Hg(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Wg(e){return function(t,n,o){if(!n)throw t;const r=e._instance;if(!r||!r.proxy)throw t;Ic(r.proxy,"onError",t)}}function Ug(e,t){return e?[...new Set([].concat(e,t))]:t}function Yg(e){const t=e._context.config;var n;t.errorHandler=$e(e,Wg),n=t.optionMergeStrategies,Oe.forEach((e=>{n[e]=Ug}));const o=t.globalProperties;o.$set=Fg,o.$applyOptions=Vg,o.$callMethod=Hg,function(e){Pe.forEach((t=>t(e)))}(e)}const Xg=bc("upm");function Gg(){return Cr(Xg)}function Jg(e){const t=function(e){return Ut(function(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=function(e){return e.offset&&(e.offset=wc(e.offset)),e.height&&(e.height=wc(e.height)),e.range&&(e.range=wc(e.range)),e}(c({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:o,style:r}=n;"custom"!==r&&"transparent"!==o&&(t.offset+=44+dc.top),e.pullToRefresh=t}}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Tm().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(Lc(fl().meta,e)))))}(e);return kr(Xg,t),t}function Kg(){return fl()}function Zg(){return history.state&&history.state.__id__||1}function Qg(){const e=Pc();if(!e)return;const t=Sm(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:km(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,Ic(e,"onHide"))}function em(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function tm(e){const t=Sm().values();for(const n of t){const t=n.$page;if(em(e,t))return n.$.__isActive=!0,t.id}}const nm=Md("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:r})=>{if(ym.handledBeforeEntryPageRoutes)return Qg(),sm({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},tm(e)).then(o).catch(r);_m.push({args:{type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:r})}),0,df);function om(){const e=Ec();if(!e)return;const t=e.$page;km(Mm(t.path,t.id))}const rm=Md("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(ym.handledBeforeEntryPageRoutes)return om(),sm({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(o);wm.push({args:{type:"redirectTo",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,cf);function im(){const e=Sm().keys();for(const t of e)km(t)}const am=Md("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(ym.handledBeforeEntryPageRoutes)return im(),sm({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o);xm.push({args:{type:"reLaunch",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,uf);function sm({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:r},i){const a=Jm().$router,{path:s,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:Ce(n||"")}}(t);return new Promise(((t,c)=>{const u=function(e,t){return{__id__:t||++Cm,__type__:e}}(e,i);a["navigateTo"===e?"push":"replace"]({path:s,query:l,state:u,force:!0}).then((i=>{if($s(i))return c(i.message);if("switchTab"===e&&(a.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=a.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new Ee(u.__id__,o),t(r?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return r?t({__id__:u.__id__}):t()}))}))}let lm;function cm(){var e;return lm||(lm=__uniConfig.tabBar&&Ut((e=__uniConfig.tabBar,Tl()&&e.list&&e.list.forEach((e=>{El(e,["text"])})),e))),lm}const um=window.CSS&&window.CSS.supports;function dm(e){return um&&(um(e)||um.apply(window.CSS,e.split(":")))}const pm=dm("top:env(a)"),fm=dm("top:constant(a)"),hm=dm("backdrop-filter:blur(10px)"),gm=(()=>pm?"env":fm?"constant":"")();function mm(e){return gm?`calc(${e}px + ${gm}(safe-area-inset-bottom))`:`${e}px`}const vm=new Map,ym={handledBeforeEntryPageRoutes:!1},bm=[],_m=[],wm=[],xm=[];function Sm(){return vm}function Tm(){const e=[],t=vm.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function km(e,t=!0){const n=vm.get(e);n.$.__isUnload=!0,Ic(n,"onUnload"),vm.delete(e),t&&function(e){const t=Om.get(e);t&&(Om.delete(e),Pm.pruneCacheEntry(t))}(e)}let Cm=Zg();function Am(e){const t=Gg();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,r,i){const{id:a,route:s}=o,l=Re(o.navigationBar,__uniConfig.themeConfig,i).titleColor;return{id:a,path:ue(s),route:s,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function Em(e){const t=Am(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),vm.set(Mm(t.path,t.id),e),1===vm.size&&setTimeout((()=>{!function(){if(ym.handledBeforeEntryPageRoutes)return;ym.handledBeforeEntryPageRoutes=!0;const e=[...bm];bm.length=0,e.forEach((({args:e,resolve:t,reject:n})=>sm(e).then(t).catch(n)));const t=[..._m];_m.length=0,t.forEach((({args:e,resolve:t,reject:n})=>(Qg(),sm(e,tm(e.url)).then(t).catch(n))));const n=[...wm];wm.length=0,n.forEach((({args:e,resolve:t,reject:n})=>(om(),sm(e).then(t).catch(n))));const o=[...xm];xm.length=0,o.forEach((({args:e,resolve:t,reject:n})=>(im(),sm(e).then(t).catch(n))))}()}),0)}function Mm(e,t){return e+"$$"+t}const Om=new Map,Pm={get:e=>Om.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Pm.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Pm.delete(n),Pm.pruneCacheEntry(e),Pn((()=>{vm.forEach(((e,t)=>{e.$.isUnmounted&&vm.delete(t)}))}))}}))}(e),Om.set(e,t)},delete(e){Om.get(e)&&Om.delete(e)},forEach(e){Om.forEach(e)}};function $m(e,t){!function(e){const t=Im(e),{body:n}=document;Dm&&n.removeAttribute(Dm),t&&n.setAttribute(t,""),Dm=t}(e),function(e){let t=0;if(e.isTabBar){const e=cm();e.shown&&(t=parseInt(e.height))}var n;yc({"--window-top":(n=0,gm?`calc(${n}px + ${gm}(safe-area-inset-top))`:`${n}px`),"--window-bottom":mm(t)})}(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),Rm(e,t)}function Lm(e){const t=Im(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Im(e){return e.type.__scopeId}let Dm,jm;function Rm(e,t){if(document.removeEventListener("touchmove",Dc),jm&&document.removeEventListener("scroll",jm),t.disableScroll)return document.addEventListener("touchmove",Dc);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!r)return;const i={},a=e.proxy.$page.id;(n||r)&&(i.onPageScroll=function(e,t,n){return o=>{t&&r_.publishHandler("onPageScroll",{scrollTop:o},e),n&&r_.emit(e+".onPageScroll",{scrollTop:o})}}(a,n,r)),(null==o?void 0:o.length)&&(i.onReachBottomDistance=t.onReachBottomDistance||50,i.onReachBottom=()=>r_.publishHandler("onReachBottom",{},a)),jm=Bc(i),requestAnimationFrame((()=>document.addEventListener("scroll",jm)))}function Bm(e){const t=pl({history:qm(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:zm});t.beforeEach(((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(Nm[n]={left:window.pageXOffset,top:window.pageYOffset}))})),e.router=t,e.use(t)}let Nm=Object.create(null);const zm=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,Nm[o]);if(t)return t}return{left:0,top:0};var o};function qm(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=ks(e);return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Tm(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=t[r].$page;km(Mm(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const Vm={install(e){Yg(e),Jc(e),su(e),e.config.warnHandler||(e.config.warnHandler=Fm),Bm(e)}};function Fm(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const Hm={class:"uni-async-loading"},Wm=ui("i",{class:"uni-loading"},null,-1),Um=fu({name:"AsyncLoading",render:()=>(Zr(),oi("div",Hm,[Wm]))});function Ym(){window.location.reload()}const Xm=fu({name:"AsyncError",setup(){Pl();const{t:e}=Ml();return()=>ui("div",{class:"uni-async-error",onClick:Ym},[e("uni.async.error")],8,["onClick"])}});let Gm;function Jm(){return Gm}function Km(e){Gm=e,Object.defineProperty(Gm.$.ctx,"$children",{get:()=>Tm().map((e=>e.$vm))});const t=Gm.$.appContext.app;t.component(Um.name)||t.component(Um.name,Um),t.component(Xm.name)||t.component(Xm.name,Xm),function(e){e.$vm=e,e.$mpType="app";const t=cn(Ml().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(Gm),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(Gm),iu(),ec()}function Zm(e,{clone:t,init:n,setup:o,before:r}){t&&(e=c({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=Si();n(r.proxy);const a=o(r);if(i)return i(a||e,t)},e}function Qm(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?Zm(e.default,t):Zm(e,t)}function ev(e){return Qm(e,{clone:!0,init:Em,setup(e){e.$pageInstance=e;const t=Kg(),n=Te(t.query);e.attrs.__pageQuery=n,e.proxy.$page.options=n,e.proxy.options=n;const o=Gg();var r,i,a;return e.onReachBottom=Ut([]),e.onPageScroll=Ut([]),so([e.onReachBottom,e.onPageScroll],(()=>{e.proxy===Ec()&&Rm(e,o)}),{once:!0}),Wo((()=>{$m(e,o)})),Uo((()=>{Lm(e);const{onReady:n}=e;n&&I(n),rv(t)})),Ro((()=>{if(!e.__isVisible){$m(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&I(n),Pn((()=>{rv(t)}))}}),"ba",r),function(e,t){Ro(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&I(t)}})),i=o.id,r_.subscribe(ql(i,"invokeViewApi"),a?a(Fl):Fl),Go((()=>{!function(e){r_.unsubscribe(ql(e,"invokeViewApi")),Object.keys(zl).forEach((t=>{0===t.indexOf(e+".")&&delete zl[t]}))}(o.id)})),n}})}function tv(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Fv(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";i_.emit("onResize",{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function nv(e){S(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&i_.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function ov(){const{emit:e}=i_;"visible"===document.visibilityState?e("onAppEnterForeground",c({},Mf)):e("onAppEnterBackground")}function rv(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&Ic("onTabItemTap",{index:n,text:t,pagePath:o})}function iv(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),r=(t<10?"0":"")+t;let i=(n<10?"0":"")+n+":"+((o<10?"0":"")+o);return"00"!==r&&(i=r+":"+i),i}function av(e,t,n){const o=Ut({gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0}),r={x:0,y:0};return{state:o,onTouchstart:function(e){const t=e.targetTouches[0];r.x=t.pageX,r.y=t.pageY,o.gestureType="none",o.volumeOld=0,o.currentTimeOld=o.currentTimeNew=0},onTouchmove:function(i){function a(){i.stopPropagation(),i.preventDefault()}n.fullscreen&&a();const s=o.gestureType;if("stop"===s)return;const l=i.targetTouches[0],c=l.pageX,u=l.pageY,d=r,p=t.value;if("progress"===s?function(e){const n=t.value.duration;let r=e/600*n+o.currentTimeOld;r<0?r=0:r>n&&(r=n);o.currentTimeNew=r}(c-d.x):"volume"===s&&function(e){const n=t.value,r=o.volumeOld;let i;"number"==typeof r&&(i=r-e/200,i<0?i=0:i>1&&(i=1),n.volume=i,o.volumeNew=i)}(u-d.y),"none"===s)if(Math.abs(c-d.x)>Math.abs(u-d.y)){if(!e.enableProgressGesture)return void(o.gestureType="stop");o.gestureType="progress",o.currentTimeOld=o.currentTimeNew=p.currentTime,n.fullscreen||a()}else{if(!e.pageGesture)return void(o.gestureType="stop");o.gestureType="volume",o.volumeOld=p.volume,n.fullscreen||a()}},onTouchend:function(e){const n=t.value;"none"!==o.gestureType&&"stop"!==o.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===o.gestureType&&o.currentTimeOld!==o.currentTimeNew&&(n.currentTime=o.currentTimeNew),o.gestureType="none"}}}const sv=pu({name:"Video",props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const r=cn(null),i=cn(null),a=gu(r,t),{state:s}=mh(),{$attrs:l}=Oh({excludeListeners:!0}),{t:c}=Ml();Rl();const{videoRef:u,state:d,play:p,pause:h,stop:g,seek:m,playbackRate:v,toggle:y,onDurationChange:b,onLoadedMetadata:_,onProgress:w,onWaiting:x,onVideoError:S,onPlay:T,onPause:k,onEnded:C,onTimeUpdate:A}=function(e,t,n){const o=cn(null),r=Ii((()=>Ou(e.src))),i=Ii((()=>"true"===e.muted||!0===e.muted)),a=Ut({start:!1,src:r,playing:!1,currentTime:0,duration:0,progress:0,buffered:0,muted:i});function s(e){const t=e.target,n=t.buffered;n.length&&(a.buffered=n.end(n.length-1)/t.duration*100)}function l(){o.value.pause()}function c(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return so((()=>r.value),(()=>{a.playing=!1,a.currentTime=0})),so((()=>a.buffered),(e=>{n("progress",{},{buffered:e})})),so((()=>i.value),(e=>{o.value.muted=e})),{videoRef:o,state:a,play:function(){const e=o.value;a.start=!0,e.play()},pause:l,stop:function(){c(0),l()},seek:c,playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;a.playing?e.pause():e.play()},onDurationChange:function({target:e}){a.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,r=t.target;o>0&&(r.currentTime=o),n("loadedmetadata",t,{width:r.videoWidth,height:r.videoHeight,duration:r.duration}),s(t)},onProgress:s,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){a.playing=!1,n("error",e,{})},onPlay:function(e){a.start=!0,a.playing=!0,n("play",e,{})},onPause:function(e){a.playing=!1,n("pause",e,{})},onEnded:function(e){a.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target,o=a.currentTime=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,a),{state:E,danmuRef:M,updateDanmu:O,toggleDanmu:P,sendDanmu:$}=function(e,t){const n=cn(null),o=Ut({enable:Boolean(e.enableDanmu)});let r={time:0,index:-1};const i=f(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function a(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let o=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",o),n.value.appendChild(t),setTimeout((function(){o+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",o),setTimeout((function(){t.remove()}),4e3)}),17)}return i.sort((function(e,t){return(e.time||0)-(t.time||0)})),{state:o,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,s=r,l={time:n,index:s.index};if(n>s.time)for(let r=s.index+1;r=(e.time||0)))break;l.index=r,t.playing&&o.enable&&a(e)}else if(n-1&&n<=(i[t].time||0);t--)l.index=t-1;r=l},toggleDanmu:function(){o.enable=!o.enable},sendDanmu:function(e){i.splice(r.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,d),{state:L,onFullscreenChange:I,emitFullscreenChange:D,toggleFullscreen:j,requestFullScreen:R,exitFullScreen:B}=function(e,t,n,o,r){const i=Ut({fullscreen:!1}),a=/^Apple/.test(navigator.vendor);function s(t){i.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const i=r.value,l=t.value,c=n.value;let u;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||a&&!o.userAction?c.webkitEnterFullScreen?c.webkitEnterFullScreen():(u=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():c.webkitExitFullScreen?c.webkitExitFullScreen():(u=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),i.appendChild(l)),u&&s(e)}function c(){l(!1)}return Go(c),{state:i,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||s(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:s,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:c}}(a,i,u,s,r),{state:N,onTouchstart:z,onTouchend:q,onTouchmove:V}=av(e,u,L),{state:F,progressRef:H,ballRef:W,clickProgress:U,toggleControls:Y}=function(e,t,n){const o=cn(null),r=cn(null),i=Ii((()=>e.showCenterPlayBtn&&!t.start)),a=cn(!0),s=Ii((()=>!i.value&&e.controls&&a.value)),l=Ut({touching:!1,controlsTouching:!1,centerPlayBtnShow:i,controlsShow:s,controlsVisible:a});let c;function u(){c=setTimeout((()=>{l.controlsVisible=!1}),3e3)}function d(){c&&(clearTimeout(c),c=null)}return Go((()=>{c&&clearTimeout(c)})),so((()=>l.controlsShow&&t.playing&&!l.controlsTouching),(e=>{e?u():d()})),so([()=>t.currentTime,()=>{e.duration}],(function(){l.touching||(t.progress=t.currentTime/t.duration*100)})),Uo((()=>{const e=we(!1);let i,a,s,c=!0;const u=r.value;function d(e){const n=e.targetTouches[0],r=n.pageX,l=n.pageY;if(c&&Math.abs(r-i)100&&(d=100),t.progress=d,e.preventDefault(),e.stopPropagation()}function p(o){l.controlsTouching=!1,l.touching&&(u.removeEventListener("touchmove",d,e),c||(o.preventDefault(),o.stopPropagation(),n(t.duration*t.progress/100)),l.touching=!1)}u.addEventListener("touchstart",(n=>{l.controlsTouching=!0;const o=n.targetTouches[0];i=o.pageX,a=o.pageY,s=t.progress,c=!0,l.touching=!0,u.addEventListener("touchmove",d,e)})),u.addEventListener("touchend",p),u.addEventListener("touchcancel",p)})),{state:l,progressRef:o,ballRef:r,clickProgress:function(e){const r=o.value;let i=e.target,a=e.offsetX;for(;i&&i!==r;)a+=i.offsetLeft,i=i.parentNode;const s=r.offsetWidth;let l=0;a>=0&&a<=s&&(l=a/s,n(t.duration*l))},toggleControls:function(){l.controlsVisible=!l.controlsVisible},autoHideStart:u,autoHideEnd:d}}(e,d,m);return function(e,t,n,o,r,i,a,s){const l={play:e,stop:n,pause:t,seek:o,sendDanmu:r,playbackRate:i,requestFullScreen:a,exitFullScreen:s};Rg(((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in l&&l[e](n)}),Ng(),!0)}(p,h,g,m,$,v,R,B),()=>ui("uni-video",{ref:r,id:e.id,onClick:Y},[ui("div",{ref:i,class:"uni-video-container",onTouchstart:z,onTouchend:q,onTouchmove:V,onFullscreenchange:Pa(I,["stop"]),onWebkitfullscreenchange:Pa((e=>I(e,!0)),["stop"])},[ui("video",yi({ref:u,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:d.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:"uni-video-video","webkit-playsinline":!0,playsinline:!0,onDurationchange:b,onLoadedmetadata:_,onProgress:w,onWaiting:x,onError:S,onPlay:T,onPause:k,onEnded:C,onTimeupdate:e=>{A(e),O(e)},onWebkitbeginfullscreen:()=>D(!0),onX5videoenterfullscreen:()=>D(!0),onWebkitendfullscreen:()=>D(!1),onX5videoexitfullscreen:()=>D(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),fo(ui("div",{class:"uni-video-bar uni-video-bar-full",onClick:Pa((()=>{}),["stop"])},[ui("div",{class:"uni-video-controls"},[fo(ui("div",{class:{"uni-video-control-button":!0,"uni-video-control-button-play":!d.playing,"uni-video-control-button-pause":d.playing},onClick:Pa(y,["stop"])},null,10,["onClick"]),[[na,e.showPlayBtn]]),fo(ui("div",{class:"uni-video-current-time"},[iv(d.currentTime)],512),[[na,e.showProgress]]),fo(ui("div",{ref:H,class:"uni-video-progress-container",onClick:Pa(U,["stop"])},[ui("div",{class:"uni-video-progress"},[ui("div",{style:{width:d.buffered+"%"},class:"uni-video-progress-buffered"},null,4),ui("div",{ref:W,style:{left:d.progress+"%"},class:"uni-video-ball"},[ui("div",{class:"uni-video-inner"},null)],4)])],8,["onClick"]),[[na,e.showProgress]]),fo(ui("div",{class:"uni-video-duration"},[iv(Number(e.duration)||d.duration)],512),[[na,e.showProgress]])]),fo(ui("div",{class:{"uni-video-danmu-button":!0,"uni-video-danmu-button-active":E.enable},onClick:Pa(P,["stop"])},[c("uni.video.danmu")],10,["onClick"]),[[na,e.danmuBtn]]),fo(ui("div",{class:{"uni-video-fullscreen":!0,"uni-video-type-fullscreen":L.fullscreen},onClick:Pa((()=>j(!L.fullscreen)),["stop"])},null,10,["onClick"]),[[na,e.showFullscreenBtn]])],8,["onClick"]),[[na,F.controlsShow]]),fo(ui("div",{ref:M,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[na,d.start&&E.enable]]),F.centerPlayBtnShow&&ui("div",{class:"uni-video-cover",onClick:Pa((()=>{}),["stop"])},[ui("div",{class:"uni-video-cover-play-button",onClick:Pa(p,["stop"])},null,8,["onClick"]),ui("p",{class:"uni-video-cover-duration"},[iv(Number(e.duration)||d.duration)])],8,["onClick"]),ui("div",{class:{"uni-video-toast":!0,"uni-video-toast-volume":"volume"===N.gestureType}},[ui("div",{class:"uni-video-toast-title"},[c("uni.video.volume")]),ui("svg",{class:"uni-video-toast-icon",width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[ui("path",{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"},null)]),ui("div",{class:"uni-video-toast-value"},[ui("div",{style:{width:100*N.volumeNew+"%"},class:"uni-video-toast-value-content"},[ui("div",{class:"uni-video-toast-volume-grids"},[tr(10,(()=>ui("div",{class:"uni-video-toast-volume-grids-item"},null)))])],4)])],2),ui("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":"progress"===N.gestureType}},[ui("div",{class:"uni-video-toast-title"},[iv(N.currentTimeNew)," / ",iv(d.duration)])],2),ui("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}}),lv=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},cv=fe((()=>i_.on("onWebInvokeAppService",lv))),uv=pu({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},setup(e){cv();const t=cn(null),n=cn(null),{$attrs:o,$excludeAttrs:r,$listeners:i}=Oh({excludeListeners:!0});let a;return(()=>{const r=document.createElement("iframe");ro((()=>{for(const e in o.value)if(p(o.value,e)){const t=o.value[e];r[e]=t}})),ro((()=>{r.src=Ou(e.src)})),n.value=r,a=function(e,t,n){return()=>{var o,r;if(n){const{top:n,left:o,width:r,height:i}=e.value.getBoundingClientRect();pe(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:r+"px",height:i+"px"})}else pe(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(r=e.value)?void 0:r.style.height)||"150px"})}}(t,n,e.fullscreen),e.fullscreen&&document.body.appendChild(r)})(),Uo((()=>{var o;a(),!e.fullscreen&&(null==(o=t.value)||o.appendChild(n.value))})),Do((()=>{e.fullscreen&&(n.value.style.display="block")})),jo((()=>{e.fullscreen&&(n.value.style.display="none")})),Go((()=>{e.fullscreen&&document.body.removeChild(n.value)})),()=>ui(Ur,null,[ui("uni-web-view",yi({class:e.fullscreen?"uni-webview--fullscreen":""},i.value,r.value,{ref:t}),[ui(Of,{onResize:a},null,8,["onResize"])],16)])}});let dv,pv=0;function fv(e,t,n,o){var r,i=document.createElement("script"),a=t.callback||"callback",s="__uni_jsonp_callback_"+pv++,l=t.timeout||3e4;function c(){clearTimeout(r),delete window[s],i.remove()}window[s]=e=>{m(n)&&n(e),c()},i.onerror=()=>{m(o)&&o(),c()},r=setTimeout((function(){m(o)&&o(),c()}),l),i.src=e+(e.indexOf("?")>=0?"&":"?")+a+"="+s,document.body.appendChild(i)}function hv(e){function t(){const e=this.div;this.getPanes().floatPane.appendChild(e)}function n(){const e=this.div.parentNode;e&&e.removeChild(this.div)}function o(){const t=this.option;this.Text=new e.Text({text:t.content,anchor:"bottom-center",offset:new e.Pixel(0,t.offsetY-16),style:{padding:(t.padding||8)+"px","line-height":(t.fontSize||14)+"px","border-radius":(t.borderRadius||0)+"px","border-color":`${t.bgColor||"#fff"} transparent transparent`,"background-color":t.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(t.fontSize||14)+"px",color:t.color||"#000"},position:t.position});(e.event||e.Event).addListener(this.Text,"click",(()=>{this.callback()})),this.Text.setMap(t.map)}function r(){}function i(){this.Text&&this.option.map.remove(this.Text)}function a(){this.Text&&this.option.map.remove(this.Text)}class s{constructor(e={},s){this.createAMapText=o,this.removeAMapText=i,this.createBMapText=r,this.removeBMapText=a,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=e||{};const l=this.visible=this.alwaysVisible="ALWAYS"===e.display;if(Sv())this.callback=s,this.visible&&this.createAMapText();else if(Tv())this.visible&&this.createBMapText();else{const t=e.map;this.position=e.position,this.index=1;const n=this.div=document.createElement("div"),o=n.style;o.position="absolute",o.whiteSpace="nowrap",o.transform="translateX(-50%) translateY(-100%)",o.zIndex="1",o.boxShadow=e.boxShadow||"none",o.display=l?"block":"none";const r=this.triangle=document.createElement("div");r.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(e),n.appendChild(r),t&&this.setMap(t)}}set onclick(e){this.div.onclick=e}get onclick(){return this.div.onclick}setOption(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,Sv()?this.visible&&this.createAMapText():Tv()?this.visible&&this.createBMapText():(this.setPosition(e.position),this.setStyle(e))}setStyle(e){const t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor=`${e.bgColor||"#fff"} transparent transparent`}setPosition(e){this.position=e,this.draw()}draw(){const e=this.getProjection();if(!this.position||!this.div||!e)return;const t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}changed(){this.div.style.display=this.visible?"block":"none"}}if(!Sv()&&!Tv()){const t=new(e.OverlayView||e.Overlay);s.prototype.setMap=t.setMap,s.prototype.getMap=t.getMap,s.prototype.getPanes=t.getPanes,s.prototype.getProjection=t.getProjection,s.prototype.map_changed=t.map_changed,s.prototype.set=t.set,s.prototype.get=t.get,s.prototype.setOptions=t.setValues,s.prototype.bindTo=t.bindTo,s.prototype.bindsTo=t.bindsTo,s.prototype.notify=t.notify,s.prototype.setValues=t.setValues,s.prototype.unbind=t.unbind,s.prototype.unbindAll=t.unbindAll,s.prototype.addListener=t.addListener}return s}const gv={};function mv(e,t){const n=_v();if(!n.key)return void console.error("Map key not configured.");const o=gv[n.type]=gv[n.type]||[];if(dv)t(dv);else if(window[n.type]&&window[n.type].maps)dv=Sv()||Tv()?window[n.type]:window[n.type].maps,dv.Callout=dv.Callout||hv(dv),t(dv);else if(o.length)o.push(t);else{o.push(t);const r=window,i="__map_callback__"+n.type;r[i]=function(){delete r[i],dv=Sv()||Tv()?window[n.type]:window[n.type].maps,dv.Callout=hv(dv),o.forEach((e=>e(dv))),o.length=0},Sv()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const a=document.createElement("script");let s=vv(n.type);n.type===bv.QQ&&e.push("geometry"),e.length&&(s+=`libraries=${e.join("%2C")}&`),n.type===bv.BMAP?a.src=`${s}ak=${n.key}&callback=${i}`:a.src=`${s}key=${n.key}&callback=${i}`,a.onerror=function(){console.error("Map load failed.")},document.body.appendChild(a)}}const vv=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"}[e]);const yv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII=";var bv=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(bv||{});function _v(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let wv=!1,xv=!1;const Sv=()=>xv?wv:(xv=!0,wv="AMap"===_v().type),Tv=()=>"BMapGL"===_v().type;const kv=fu({name:"MapMarker",props:{id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}},setup(e){const t=String(isNaN(Number(e.id))?"":e.id),n=Cr("onMapReady"),o=function(e){const t="uni-map-marker-label-"+e,n=document.createElement("style");return n.id=t,document.head.appendChild(n),Jo((()=>{n.remove()})),function(e){const o=Object.assign({},e,{position:"absolute",top:"70px",borderStyle:"solid"}),r=document.createElement("div");return Object.keys(o).forEach((e=>{r.style[e]=o[e]||""})),n.innerText=`.${t}{${r.getAttribute("style")}}`,t}}(t);let r;function i(e){Sv()?e.removeAMapText():e.setMap(null)}if(n(((n,a,s)=>{function l(e){const l=e.title;let c;c=Sv()?new a.LngLat(e.longitude,e.latitude):Tv()?new a.Point(e.longitude,e.latitude):new a.LatLng(e.latitude,e.longitude);const u=new Image;let d=0;u.onload=()=>{const p=e.anchor||{};let f,h,g,m,v="number"==typeof p.x?p.x:.5,y="number"==typeof p.y?p.y:1;e.iconPath&&(e.width||e.height)?(h=e.width||u.width/u.height*e.height,g=e.height||u.height/u.width*e.width):(h=u.width/2,g=u.height/2),d=g,m=g-(g-y*g),f="MarkerImage"in a?new a.MarkerImage(u.src,null,null,new a.Point(v*h,y*g),new a.Size(h,g)):"Icon"in a?new a.Icon({image:u.src,size:new a.Size(h,g),imageSize:new a.Size(h,g),imageOffset:new a.Pixel(v*h,y*g)}):{url:u.src,anchor:new a.Point(v,y),size:new a.Size(h,g)},Tv()?(r=new a.Marker(new a.Point(c.lng,c.lat)),n.addOverlay(r)):(r.setPosition(c),r.setIcon(f)),"setRotation"in r&&r.setRotation(e.rotate||0);const b=e.label||{};let _;if("label"in r&&(r.label.setMap(null),delete r.label),b.content){const e={borderColor:b.borderColor,borderWidth:(Number(b.borderWidth)||0)+"px",padding:(Number(b.padding)||0)+"px",borderRadius:(Number(b.borderRadius)||0)+"px",backgroundColor:b.bgColor,color:b.color,fontSize:(b.fontSize||14)+"px",lineHeight:(b.fontSize||14)+"px",marginLeft:(Number(b.anchorX||b.x)||0)+"px",marginTop:(Number(b.anchorY||b.y)||0)+"px"};if("Label"in a)_=new a.Label({position:c,map:n,clickable:!1,content:b.content,style:e}),r.label=_;else if("setLabel"in r)if(Sv()){const t=`
\n ${b.content}\n
`;r.setLabel({content:t,direction:"bottom-right"})}else{const t=o(e);r.setLabel({text:b.content,color:e.color,fontSize:e.fontSize,className:t})}}const w=e.callout||{};let x,S=r.callout;if(w.content||l){Sv()&&w.content&&(w.content=w.content.replaceAll("\n","
"));const o="0px 0px 3px 1px rgba(0,0,0,0.5)";let i=-d/2;if((e.width||e.height)&&(i+=14-d/2),x=w.content?{position:c,map:n,top:m,offsetY:i,content:w.content,color:w.color,fontSize:w.fontSize,borderRadius:w.borderRadius,bgColor:w.bgColor,padding:w.padding,boxShadow:w.boxShadow||o,display:w.display}:{position:c,map:n,top:m,offsetY:i,content:l,boxShadow:o},S)S.setOption(x);else if(Sv()){const e=()=>{""!==t&&s("callouttap",{},{markerId:Number(t)})};S=r.callout=new a.Callout(x,e)}else S=r.callout=new a.Callout(x),S.div.onclick=function(e){""!==t&&s("callouttap",e,{markerId:Number(t)}),e.stopPropagation(),e.preventDefault()},_v().type===bv.GOOGLE&&(S.div.ontouchstart=function(e){e.stopPropagation()},S.div.onpointerdown=function(e){e.stopPropagation()})}else S&&(i(S),delete r.callout)},e.iconPath?u.src=Ou(e.iconPath):console.error("Marker.iconPath is required.")}!function(e){Tv()||(r=new a.Marker({map:n,flat:!0,autoRotation:!1})),l(e);const o=a.event||a.Event;Tv()||o.addListener(r,"click",(()=>{const n=r.callout;if(n&&!n.alwaysVisible)if(Sv())n.visible=!n.visible,n.visible?r.callout.createAMapText():r.callout.removeAMapText();else if(n.set("visible",!n.visible),n.visible){const e=n.div,t=e.parentNode;t.removeChild(e),t.appendChild(e)}t&&s("markertap",{},{markerId:Number(t),latitude:e.latitude,longitude:e.longitude})}))}(e),so(e,l)})),t){const e=Cr("addMapChidlContext"),o=Cr("removeMapChidlContext"),i={id:t,translate(e){n(((t,n,o)=>{const i=e.destination,a=e.duration,s=!!e.autoRotate;let l=Number(e.rotate)||0,c=0;"getRotation"in r&&(c=r.getRotation());const u=r.getPosition(),d=new n.LatLng(i.latitude,i.longitude),p=n.geometry.spherical.computeDistanceBetween(u,d)/1e3/(("number"==typeof a?a:1e3)/36e5),f=n.event||n.Event,h=f.addListener(r,"moving",(e=>{const t=e.latLng,n=r.label;n&&n.setPosition(t);const o=r.callout;o&&o.setPosition(t)})),g=f.addListener(r,"moveend",(()=>{g.remove(),h.remove(),r.lastPosition=u,r.setPosition(d);const t=r.label;t&&t.setPosition(d);const n=r.callout;n&&n.setPosition(d);const o=e.animationEnd;m(o)&&o()}));let v=0;s&&(r.lastPosition&&(v=n.geometry.spherical.computeHeading(r.lastPosition,u)),l=n.geometry.spherical.computeHeading(u,d)-v),"setRotation"in r&&r.setRotation(c+l),"moveTo"in r?r.moveTo(d,p):(r.setPosition(d),f.trigger(r,"moveend",{}))}))}};e(i),Jo((()=>o(i)))}return Jo((function(){r&&(r.label&&"setMap"in r.label&&r.label.setMap(null),r.callout&&i(r.callout),r.setMap(null))})),()=>null}});function Cv(e){if(!e)return{r:0,g:0,b:0,a:0};let t=e.slice(1);const n=t.length;if(![3,4,6,8].includes(n))return{r:0,g:0,b:0,a:0};3!==n&&4!==n||(t=t.replace(/(\w{1})/g,"$1$1"));let[o,r,i,a]=t.match(/(\w{2})/g);const s=parseInt(o,16),l=parseInt(r,16),c=parseInt(i,16);return a?{r:s,g:l,b:c,a:(`0x100${a}`-65536)/255}:{r:s,g:l,b:c,a:1}}const Av={points:{type:Array,require:!0},color:{type:String,default:"#000000"},width:{type:[Number,String],default:""},dottedLine:{type:[Boolean,String],default:!1},arrowLine:{type:[Boolean,String],default:!1},arrowIconPath:{type:String,default:""},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:""},colorList:{type:Array,default:()=>[]},level:{type:String,default:""}},Ev=fu({name:"MapPolyline",props:Av,setup(e){let t,n;function o(){t&&t.setMap(null),n&&n.setMap(null)}return Cr("onMapReady")(((r,i)=>{function a(e){const o=[];e.points.forEach((e=>{let t;t=Sv()?[e.longitude,e.latitude]:Tv()?new i.Point(e.longitude,e.latitude):new i.LatLng(e.latitude,e.longitude),o.push(t)}));const a=Number(e.width)||1,{r:s,g:l,b:c,a:u}=Cv(e.color),{r:d,g:p,b:f,a:h}=Cv(e.borderColor),g={map:r,clickable:!1,path:o,strokeWeight:a,strokeColor:e.color||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"},m=Number(e.borderWidth)||0,v={map:r,clickable:!1,path:o,strokeWeight:a+2*m,strokeColor:e.borderColor||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"};"Color"in i?(g.strokeColor=new i.Color(s,l,c,u),v.strokeColor=new i.Color(d,p,f,h)):(g.strokeColor=`rgb(${s}, ${l}, ${c})`,g.strokeOpacity=u,v.strokeColor=`rgb(${d}, ${p}, ${f})`,v.strokeOpacity=h),m&&(n=new i.Polyline(v)),Tv()?(t=new i.Polyline(g.path,g),r.addOverlay(t)):t=new i.Polyline(g)}a(e),so(e,(function(e){o(),a(e)}))})),Jo(o),()=>null}}),Mv=fu({name:"MapCircle",props:{latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},color:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},radius:{type:[Number,String],require:!0},strokeWidth:{type:[Number,String],default:""},level:{type:String,default:""}},setup(e){let t;function n(){t&&t.setMap(null)}return Cr("onMapReady")(((o,r)=>{function i(e){const n=Sv()||Tv()?[e.longitude,e.latitude]:new r.LatLng(e.latitude,e.longitude),i={map:o,center:n,clickable:!1,radius:e.radius,strokeWeight:Number(e.strokeWidth)||1,strokeDashStyle:"solid"};if(Tv())i.strokeColor=e.color,i.fillColor=e.fillColor||"#000",i.fillOpacity=1;else{const{r:t,g:n,b:o,a:a}=Cv(e.fillColor),{r:s,g:l,b:c,a:u}=Cv(e.color);"Color"in r?(i.fillColor=new r.Color(t,n,o,a),i.strokeColor=new r.Color(s,l,c,u)):(i.fillColor=`rgb(${t}, ${n}, ${o})`,i.fillOpacity=a,i.strokeColor=`rgb(${s}, ${l}, ${c})`,i.strokeOpacity=u)}if(Tv()){let e=new r.Point(i.center[0],i.center[1]);t=new r.Circle(e,i.radius,i),o.addOverlay(t)}else t=new r.Circle(i),Sv()&&o.add(t)}i(e),so(e,(function(e){n(),i(e)}))})),Jo(n),()=>null}}),Ov={id:{type:[Number,String],default:""},position:{type:Object,required:!0},iconPath:{type:String,required:!0},clickable:{type:[Boolean,String],default:""},trigger:{type:Function,required:!0}},Pv=fu({name:"MapControl",props:Ov,setup(e){const t=Ii((()=>Ou(e.iconPath))),n=Ii((()=>{let t=`top:${e.position.top||0}px;left:${e.position.left||0}px;`;return e.position.width&&(t+=`width:${e.position.width}px;`),e.position.height&&(t+=`height:${e.position.height}px;`),t})),o=t=>{e.clickable&&e.trigger("controltap",t,{controlId:e.id})};return()=>ui("div",{class:"uni-map-control"},[ui("img",{src:t.value,style:n.value,class:"uni-map-control-icon",onClick:o},null,12,["src","onClick"])])}}),$v=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Lv;function Iv(){if(Lv=Lv||$v.__DC_STAT_UUID,!Lv){Lv=Date.now()+""+Math.floor(1e7*Math.random());try{$v.__DC_STAT_UUID=Lv}catch(e){}}return Lv}function Dv(){if(!0!==__uniConfig.darkmode)return v(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function jv(){let e,t="0",n="",o="phone";const r=navigator.language;if(Lu){e="iOS";const o=Pu.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=Pu.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if($u){e="Android";const o=Pu.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=Pu.match(/\((.+?)\)/),i=r?r[1].split(";"):Pu.split(" "),a=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)s="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=Bu(),n=Nu(t),o=zu(t,n),r=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=qu(o);let a=window.innerHeight;const s=dc.top,l={left:dc.left,right:i-dc.right,top:dc.top,bottom:a-dc.bottom,width:i-dc.left-dc.right,height:a-dc.top-dc.bottom},{top:c,bottom:u}=mc();return a-=c,a-=u,{windowTop:c,windowBottom:u,windowWidth:i,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:s,safeArea:l,safeAreaInsets:{top:dc.top,right:dc.right,bottom:dc.bottom,left:dc.left},screenTop:r-a}}));let Bv,Nv=!0;function zv(){Nv&&(Bv=jv())}const qv=Ed(0,(()=>{zv();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:a,deviceType:s,osname:l,osversion:u}=Bv;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Iv(),deviceOrientation:a,deviceType:s,model:o,platform:r,system:i},{})})),Vv=Ed(0,(()=>{zv();const{theme:e,language:t,browserName:n,browserVersion:o}=Bv;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:$p?$p():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:""},{})})),Fv=Ed(0,(()=>{Nv=!0,zv(),Nv=!1;const e=Rv(),t=qv(),n=Vv();Nv=!0;const{ua:o,browserName:r,browserVersion:i,osname:a,osversion:s}=Bv,l=c(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLocaleLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return S(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}(l)})),Hv=Md("getSystemInfo",((e,{resolve:t})=>t(Fv())));const Wv=Md("getNetworkType",((e,{resolve:t})=>{const n=navigator.connection||navigator.webkitConnection||navigator.mozConnection;let o="unknown";return n?(o=n.type,"cellular"===o&&n.effectiveType?o=n.effectiveType.replace("slow-",""):!o&&n.effectiveType?o=n.effectiveType:["none","wifi"].includes(o)||(o="unknown")):!1===navigator.onLine&&(o="none"),t({networkType:o})}));let Uv=null;const Yv=kd("onCompass",(()=>{Gv()})),Xv=Cd("offCompass",(()=>{Jv()})),Gv=Md("startCompass",((e,{resolve:t,reject:n})=>{if(window.DeviceOrientationEvent){if(!Uv){if(DeviceOrientationEvent.requestPermission)return void DeviceOrientationEvent.requestPermission().then((e=>{"granted"===e?(o(),t()):n(`${e}`)})).catch((e=>{n(`${e}`)}));o()}t()}else n();function o(){Uv=function(e){const t=360-(null!==e.alpha?e.alpha:360);i_.invokeOnCallback("onCompass",{direction:t})},window.addEventListener("deviceorientation",Uv,!1)}})),Jv=Md("stopCompass",((e,{resolve:t})=>{Uv&&(window.removeEventListener("deviceorientation",Uv,!1),Uv=null),t()}));const Kv=Ed(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)})),Zv=Md("setStorage",(({key:e,data:t},{resolve:n,reject:o})=>{try{Kv(e,t),n()}catch(r){o(r.message)}}));function Qv(e){const t=localStorage&&localStorage.getItem(e);if(!v(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=v(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const ey=Ed(0,(e=>{try{return Qv(e)}catch(t){return""}})),ty=Ed(0,(e=>{localStorage&&localStorage.removeItem(e)})),ny=Md("removeStorage",(({key:e},{resolve:t})=>{ty(e),t()})),oy=Ed(0,(()=>{localStorage&&localStorage.clear()})),ry=Ed(0,(()=>{const e=localStorage&&localStorage.length||0,t=[];let n=0;for(let o=0;o{const o=document.activeElement;!o||"TEXTAREA"!==o.tagName&&"INPUT"!==o.tagName||(o.blur(),t())}));const ay=Md("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e}),0,Jp),sy={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function ly({count:e,sourceType:t,type:n,extension:o}){hh();const r=document.createElement("input");return r.type="file",pe(r,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),r.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${sy[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(r.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&r.setAttribute("capture","camera"),r}let cy=null;const uy=Md("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:r,reject:i})=>{Dl();const{t:a}=Ml();cy&&(document.body.removeChild(cy),cy=null),cy=ly({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(cy),cy.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let r=0;r(i=i||Cf(t),i)}),re))},tempFiles:o})})),cy.click(),gh()||console.warn(a("uni.chooseFile.notUserActivation"))}),0,Gp);let dy=null;const py=Md("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{Dl();const{t:i}=Ml();dy&&(document.body.removeChild(dy),dy=null),dy=ly({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(dy),dy.addEventListener("change",(function(t){const n=t.target,r=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(i=i||Cf(t),i)}),oe))},tempFiles:r})})),dy.click(),gh()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,Up),fy={esc:["Esc","Escape"],enter:["Enter"]},hy=Object.keys(fy);function gy(){const e=cn(""),t=cn(!1),n=n=>{if(t.value)return;const o=hy.find((e=>-1!==fy[e].indexOf(n.key)));o&&(e.value=o),Pn((()=>e.value=""))};return Uo((()=>{document.addEventListener("keyup",n)})),Go((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const my=ui("div",{class:"uni-mask"},null,-1);function vy(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Ia(Co({setup:()=>()=>(Zr(),oi(e,t,null,16))}))}function yy(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function by(e,{onEsc:t,onEnter:n}){const o=cn(e.visible),{key:r,disable:i}=gy();return so((()=>e.visible),(e=>o.value=e)),so((()=>o.value),(e=>i.value=!e)),ro((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let _y=0,wy="";function xy(e){let t=_y;_y+=e?1:-1,_y=Math.max(0,_y),_y>0?0===t&&(wy=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=wy,wy="")}function Sy(){Uo((()=>xy(!0))),Jo((()=>xy(!1)))}const Ty=fu({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Ut({direction:"none"});let n=1,o=0,r=0,i=0,a=0;function s({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,r=t.height}function c(e){const t=e.target.getBoundingClientRect();i=t.width,a=t.height,d(e)}function u(e){const s=n*o>i,l=n*r>a;t.direction=s&&l?"all":s?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return ui($h,{style:n,onTouchstart:hu(c),onTouchmove:hu(d),onTouchend:hu(u)},{default:()=>[ui(Wh,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[ui("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function ky(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const Cy=fu({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Sy();const n=cn(null),o=cn(ky(e));let r;function i(){r||Pn((()=>{t("close")}))}function a(e){o.value=e.detail.current}so((()=>e.current),(()=>o.value=ky(e))),Uo((()=>{const e=n.value;let t=0,o=0;e.addEventListener("mousedown",(e=>{r=!1,t=e.clientX,o=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-o)>20)&&(r=!0)}))}));const s={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return ui("div",{ref:n,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:i},[ui(xg,{navigation:"auto",current:o.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(r=t=e.urls.map((e=>ui(Tg,null,{default:()=>[ui(Ty,{src:e},null,8,["src"])]}))),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!ri(r)?t:{default:()=>[t],_:1}),8,["current","onChange"]),ui("div",{style:s},[kc("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var r}}});let Ay,Ey=null;const My=()=>{Ey=null,Pn((()=>{null==Ay||Ay.unmount(),Ay=null}))},Oy=Md("previewImage",((e,{resolve:t})=>{Ey?c(Ey,e):(Ey=Ut(e),Pn((()=>{Ay=vy(Cy,Ey,My),Ay.mount(yy("u-a-p"))}))),t()}),0,Kp);let Py=null;const $y=Md("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{Dl();const{t:r}=Ml();Py&&(document.body.removeChild(Py),Py=null),Py=ly({sourceType:e,extension:t,type:"video"}),document.body.appendChild(Py),Py.addEventListener("change",(function(e){const t=e.target.files[0];let o="";const r={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(r,"tempFilePath",{get(){return o=o||Cf(this.tempFile),o}});const i=document.createElement("video");if(void 0!==i.onloadedmetadata){const e=Cf(t);i.onloadedmetadata=function(){Af(e),n(c(r,{duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0}))},setTimeout((()=>{i.onloadedmetadata=null,Af(e),n(r)}),300),i.src=e}else n(r)})),Py.click(),gh()||console.warn(r("uni.chooseFile.notUserActivation"))}),0,Yp),Ly=Ad("request",(({url:e,data:t,header:n={},method:o,dataType:r,responseType:i,withCredentials:a,timeout:s=__uniConfig.networkTimeout.request},{resolve:l,reject:c})=>{let u=null;const d=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(v(t)||t instanceof ArrayBuffer)u=t;else if("json"===d)try{u=JSON.stringify(t)}catch(m){u=t.toString()}else if("urlencoded"===d){const e=[];for(const n in t)p(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));u=e.join("&")}else u=t.toString();const f=new XMLHttpRequest,h=new Iy(f);f.open(o,e);for(const v in n)p(n,v)&&f.setRequestHeader(v,n[v]);const g=setTimeout((function(){f.onload=f.onabort=f.onerror=null,h.abort(),c("timeout",{errCode:5})}),s);return f.responseType=i,f.onload=function(){clearTimeout(g);const e=f.status;let t="text"===i?f.responseText:f.response;if("text"===i&&"json"===r)try{t=JSON.parse(t)}catch(m){}l({data:t,statusCode:e,header:Dy(f.getAllResponseHeaders()),cookies:[]})},f.onabort=function(){clearTimeout(g),c("abort",{errCode:600003})},f.onerror=function(){clearTimeout(g),c(void 0,{errCode:5})},f.withCredentials=a,f.send(u),h}),0,tf);class Iy{constructor(e){this._xhr=e}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}function Dy(e){const t={};return e.split("\n").forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}class jy{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){m(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const Ry=Ad("downloadFile",(({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:r})=>{var i,a=new XMLHttpRequest,s=new jy(a);return a.open("GET",e,!0),Object.keys(t).forEach((e=>{a.setRequestHeader(e,t[e])})),a.responseType="blob",a.onload=function(){clearTimeout(i);const t=a.status,n=this.response;let r;const s=a.getResponseHeader("content-disposition");if(s){const e=s.match(/filename="?(\S+)"?\b/);e&&(r=e[1])}n.name=r||function(e){const t=(e=e.split("#")[0].split("?")[0]).split("/");return t[t.length-1]}(e),o({statusCode:t,tempFilePath:Cf(n)})},a.onabort=function(){clearTimeout(i),r("abort",{errCode:600003})},a.onerror=function(){clearTimeout(i),r("",{errCode:602001})},a.onprogress=function(e){s._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesWritten:n,totalBytesExpectedToWrite:o})}))},a.send(),i=setTimeout((function(){a.onprogress=a.onload=a.onabort=a.onerror=null,s.abort(),r("timeout",{errCode:5})}),n),s}),0,nf);class By{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){m(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const Ny=Ad("uploadFile",(({url:e,file:t,filePath:n,name:o,files:r,header:i={},formData:a={},timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new By;return f(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(kf(e)):Tf(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(a).forEach((e=>{d.append(e,a[e])})),Object.values(r).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(i).forEach((e=>{o.setRequestHeader(e,i[e])})),o.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})}),s),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,of),zy=[],qy={open:"",close:"",error:"",message:""};class Vy{constructor(e,t,n){let o;this._callbacks={open:[],close:[],error:[],message:[]};try{const n=this._webSocket=new WebSocket(e,t);n.binaryType="arraybuffer";["open","close","error","message"].forEach((e=>{this._callbacks[e]=[],n.addEventListener(e,(t=>{const{data:n,code:o,reason:r}=t,i="message"===e?{data:n}:"close"===e?{code:o,reason:r}:{};if(this._callbacks[e].forEach((t=>{try{t(i)}catch(cC){console.error(`thirdScriptError\n${cC};at socketTask.on${P(e)} callback function\n`,cC)}})),this===zy[0]&&qy[e]&&i_.invokeOnCallback(qy[e],i),"error"===e||"close"===e){const e=zy.indexOf(this);e>=0&&zy.splice(e,1)}}))}));["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach((e=>{Object.defineProperty(this,e,{get:()=>n[e]})}))}catch(cC){o=cC}n&&n(o,this)}send(e){const t=(e||{}).data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw me(e,{errMsg:"sendSocketMessage:fail SocketTask.readyState is not OPEN",errCode:10002}),new Error("SocketTask.readyState is not OPEN");n.send(t),me(e,"sendSocketMessage:ok")}catch(o){me(e,{errMsg:`sendSocketMessage:fail ${o}`,errCode:602001})}}close(e={}){const t=this._webSocket;try{const n=e.code||1e3,o=e.reason;v(o)?t.close(n,o):t.close(n),me(e,"closeSocket:ok")}catch(n){me(e,`closeSocket:fail ${n}`)}}onOpen(e){this._callbacks.open.push(e)}onMessage(e){this._callbacks.message.push(e)}onError(e){this._callbacks.error.push(e)}onClose(e){this._callbacks.close.push(e)}}const Fy=Ad("connectSocket",(({url:e,protocols:t},{resolve:n,reject:o})=>new Vy(e,t,((e,t)=>{e?o(e.toString(),{errCode:600009}):(zy.push(t),n())}))),0,rf),Hy=Md("getLocation",(({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:r,reject:i})=>{const a=_v();new Promise(((e,r)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition((t=>e({coords:t.coords})),r,{enableHighAccuracy:o||t,timeout:n||1e5}):r(new Error("device nonsupport geolocation"))})).catch((e=>new Promise(((t,n)=>{a.type===bv.QQ?fv(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${a.key}`,{callback:"callback"},(e=>{if("result"in e&&e.result.location){const n=e.result.location;t({coords:{latitude:n.lat,longitude:n.lng},skip:!0})}else n(new Error(e.message||JSON.stringify(e)))}),(()=>n(new Error("network error")))):a.type===bv.GOOGLE?Ly({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${a.key}`,success(e){const o=e.data;"location"in o?t({coords:{latitude:o.location.lat,longitude:o.location.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.error&&o.error.message||JSON.stringify(e)))},fail(){n(new Error("network error"))}}):a.type===bv.AMAP?mv([],(()=>{window.AMap.plugin("AMap.Geolocation",(()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition(((e,o)=>{"complete"===e?t({coords:{latitude:o.position.lat,longitude:o.position.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.message))}))}))})):n(e)})))).then((({coords:t,skip:n})=>{(function(e,t,n){const o=_v();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise((e=>{fv(`https://apis.map.qq.com/ws/coord/v1/translate?type=1&locations=${t.latitude},${t.longitude}&key=${o.key}&output=jsonp`,{callback:"callback"},(n=>{if("locations"in n&&n.locations.length){const{lng:o,lat:r}=n.locations[0];e({longitude:o,latitude:r,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)}),(()=>e(t)))})):"AMap"===o.type?new Promise((e=>{mv([],(()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",((n,o)=>{if("ok"===o.info&&o.locations.length){const{lat:n,lng:r}=o.locations[0];e({longitude:r,latitude:n,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)}))}))})):Promise.reject(new Error("translate coordinate system faild"))})(e,t,n).then((e=>{r({latitude:e.latitude,longitude:e.longitude,accuracy:e.accuracy,speed:e.altitude||0,altitude:e.altitude||0,verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy||0})})).catch((e=>{i(e.message)}))})).catch((e=>{i(e.message||JSON.stringify(e))}))}),0,Fp);const Wy=fu({name:"LocationView",props:{latitude:{type:Number},longitude:{type:Number},scale:{type:Number,default:18},name:{type:String,default:""},address:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=function(e){const t=Ut({center:{latitude:0,longitude:0},marker:{id:1,latitude:0,longitude:0,iconPath:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC",width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:yv,width:44,height:44}});function n(){e.latitude&&e.longitude&&(t.center.latitude=e.latitude,t.center.longitude=e.longitude,t.marker.latitude=e.latitude,t.marker.longitude=e.longitude)}return so([()=>e.latitude,()=>e.longitude],n),n(),t}(e);function o(e){const t=e.detail.centerLocation;t&&(n.center.latitude=t.latitude,n.center.longitude=t.longitude)}function r(){const t=_v();let o="";if(t.type===bv.GOOGLE){o=`https://www.google.com/maps/dir/?api=1${n.location.latitude?`&origin=${n.location.latitude}%2C${n.location.longitude}`:""}&destination=${e.latitude}%2C${e.longitude}`}else if(t.type===bv.QQ){o=`https://apis.map.qq.com/uri/v1/routeplan?type=drive${n.location.latitude?`&fromcoord=${n.location.latitude}%2C${n.location.longitude}&from=${encodeURIComponent("我的位置")}`:""}&tocoord=${e.latitude}%2C${e.longitude}&to=${encodeURIComponent(e.name||"目的地")}&ref=${t.key}`}else if(t.type===bv.AMAP){o=`https://uri.amap.com/navigation?${n.location.latitude?`from=${n.location.longitude},${n.location.latitude},${encodeURIComponent("我的位置")}&`:""}to=${e.longitude},${e.latitude},${encodeURIComponent(e.name||"目的地")}`}window.open(o)}function i(){t("close")}function a({latitude:e,longitude:t}){n.center.latitude=e,n.center.longitude=t}return Sy(),Hy({type:"gcj02",success:({latitude:e,longitude:t})=>{n.location.latitude=e,n.location.longitude=t}}),()=>ui("div",{class:"uni-system-open-location"},[ui(Xb,{latitude:n.center.latitude,longitude:n.center.longitude,class:"map",markers:[n.marker,n.location],onRegionchange:o},{default:()=>[ui("div",{class:"map-move",onClick:()=>a(n.location)},[kc("M13.3334375 16 q0.033125 1.1334375 0.783125 1.8834375 q0.75 0.75 1.8834375 0.75 q1.1334375 0 1.8834375 -0.75 q0.75 -0.75 0.75 -1.8834375 q0 -1.1334375 -0.75 -1.8834375 q-0.75 -0.75 -1.8834375 -0.75 q-1.1334375 0 -1.8834375 0.75 q-0.75 0.75 -0.783125 1.8834375 ZM30.9334375 14.9334375 l-1.1334375 0 q-0.5 -5.2 -4.0165625 -8.716875 q-3.516875 -3.5165625 -8.716875 -4.0165625 l0 -1.1334375 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 1.1334375 q-5.2 0.5 -8.716875 4.0165625 q-3.5165625 3.516875 -4.0165625 8.716875 l-1.1334375 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l1.1334375 0 q0.5 5.2 4.0165625 8.716875 q3.516875 3.5165625 8.716875 4.0165625 l0 1.1334375 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -1.1334375 q5.2 -0.5 8.716875 -4.0165625 q3.5165625 -3.516875 4.0165625 -8.716875 l1.1334375 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 ZM17.0665625 27.6665625 l0 -2.0665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 2.0665625 q-4.3 -0.4665625 -7.216875 -3.383125 q-2.916875 -2.916875 -3.3834375 -7.216875 l2.0665625 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 l-2.0665625 0 q0.4665625 -4.3 3.3834375 -7.216875 q2.9165625 -2.916875 7.216875 -3.3834375 l0 2.0665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -2.0665625 q4.3 0.4665625 7.216875 3.3834375 q2.9165625 2.9165625 3.383125 7.216875 l-2.0665625 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l2.0665625 0 q-0.4665625 4.3 -3.383125 7.216875 q-2.916875 2.9165625 -7.216875 3.383125 Z","#000000",24)],8,["onClick"])]},8,["latitude","longitude","markers","onRegionchange"]),ui("div",{class:"info"},[ui("div",{class:"name",onClick:()=>a(n.marker)},[e.name],8,["onClick"]),ui("div",{class:"address",onClick:()=>a(n.marker)},[e.address],8,["onClick"]),ui("div",{class:"nav",onClick:r},[kc("M28 17c-6.49396875 0-12.13721875 2.57040625-15 6.34840625V5.4105l6.29859375 6.29859375c0.387875 0.387875 1.02259375 0.387875 1.4105 0 0.387875-0.387875 0.387875-1.02259375 0-1.4105L12.77853125 2.36803125a0.9978125 0.9978125 0 0 0-0.0694375-0.077125c-0.1944375-0.1944375-0.45090625-0.291375-0.70721875-0.290875l-0.00184375-0.0000625-0.00184375 0.0000625c-0.2563125-0.0005-0.51278125 0.09640625-0.70721875 0.290875a0.9978125 0.9978125 0 0 0-0.0694375 0.077125l-7.930625 7.9305625c-0.387875 0.387875-0.387875 1.02259375 0 1.4105 0.387875 0.387875 1.02259375 0.387875 1.4105 0L11 5.4105V29c0 0.55 0.45 1 1 1s1-0.45 1-1c0-5.52284375 6.71571875-10 15-10 0.55228125 0 1-0.44771875 1-1 0-0.55228125-0.44771875-1-1-1z","#ffffff",26)],8,["onClick"])]),ui("div",{class:"nav-btn-back",onClick:i},[kc(Tc,"#ffffff",26)],8,["onClick"])])}});let Uy=null;const Yy=Md("openLocation",((e,{resolve:t})=>{Uy?c(Uy,e):(Uy=Ut(e),Pn((()=>{const e=vy(Wy,Uy,(()=>{Uy=null,Pn((()=>{e.unmount()}))}));e.mount(yy("u-a-o"))}))),t()}),0,Wp),Xy=Md("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:r})=>{if(ym.handledBeforeEntryPageRoutes)return sm({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(r);bm.push({args:{type:"navigateTo",url:e,events:t,isAutomatedTesting:n},resolve:o,reject:r})}),0,lf);function Gy(e){__uniConfig.darkmode&&i_.on("onThemeChange",e)}function Jy(e){i_.off("onThemeChange",e)}function Ky(e){let t={};return __uniConfig.darkmode&&(t=Re(e,__uniConfig.themeConfig,Dv())),__uniConfig.darkmode?t:e}const Zy={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Qy=Co({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=cn(""),o=()=>a.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),a=by(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}}),s=function(e){const t=cn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Zy[e].cancelColor})(e,t)};return ro((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Dv()&&n({theme:"dark"}),Gy(n))):Jy(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:p}=e;return n.value=o,ui(Vi,{name:"uni-fade"},{default:()=>[fo(ui("uni-modal",{onTouchmove:pc},[my,ui("div",{class:"uni-modal"},[t?ui("div",{class:"uni-modal__hd"},[ui("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?ui("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:p,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):ui("div",{class:"uni-modal__bd",onTouchmovePassive:fc,textContent:o},null,40,["onTouchmovePassive","textContent"]),ui("div",{class:"uni-modal__ft"},[l&&ui("div",{style:{color:s.value},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),ui("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[na,a.value]])]})}}});let eb;const tb=fe((()=>{i_.on("onHidePopup",(()=>eb.visible=!1))}));let nb;function ob(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&eb.editable&&(o.content=t),nb&&nb(o)}const rb=Md("showModal",((e,{resolve:t})=>{tb(),nb=t,eb?(c(eb,e),eb.visible=!0):(eb=Ut(e),Pn((()=>(vy(Qy,eb,ob).mount(yy("u-a-m")),Pn((()=>eb.visible=!0))))))}),0,yf),ib={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==bf.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},ab={light:"#fff",dark:"rgba(255,255,255,0.9)"},sb=e=>ab[e],lb=Co({name:"Toast",props:ib,setup(e){$l(),Ll();const{Icon:t}=function(e){const t=cn(sb(Dv())),n=({theme:e})=>t.value=sb(e);ro((()=>{e.visible?Gy(n):Jy(n)}));return{Icon:Ii((()=>{switch(e.icon){case"success":return ui(kc(xc,t.value,38),{class:"uni-toast__icon"});case"error":return ui(kc(Sc,t.value,38),{class:"uni-toast__icon"});case"loading":return ui("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=by(e,{});return()=>{const{mask:o,duration:r,title:i,image:a}=e;return ui(Vi,{name:"uni-fade"},{default:()=>[fo(ui("uni-toast",{"data-duration":r},[o?ui("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:pc},null,40,["onTouchmove"]):"",a||t.value?ui("div",{class:"uni-toast"},[a?ui("img",{src:a,class:"uni-toast__icon"},null,10,["src"]):t.value,ui("p",{class:"uni-toast__content"},[i])]):ui("div",{class:"uni-sample-toast"},[ui("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[na,n.value]])]})}}});let cb,ub,db="";const pb=qe();function fb(e){cb?c(cb,e):(cb=Ut(c(e,{visible:!1})),Pn((()=>{pb.run((()=>{so([()=>cb.visible,()=>cb.duration],(([e,t])=>{if(e){if(ub&&clearTimeout(ub),"onShowLoading"===db)return;ub=setTimeout((()=>{yb("onHideToast")}),t)}else ub&&clearTimeout(ub)}))})),i_.on("onHidePopup",(()=>yb("onHidePopup"))),vy(lb,cb,(()=>{})).mount(yy("u-a-t"))}))),setTimeout((()=>{cb.visible=!0}),10)}const hb=Md("showToast",((e,{resolve:t,reject:n})=>{fb(e),db="onShowToast",t()}),0,_f),gb={icon:"loading",duration:1e8,image:""},mb=Md("showLoading",((e,{resolve:t,reject:n})=>{c(e,gb),fb(e),db="onShowLoading",t()}),0,vf),vb=Md("hideLoading",((e,{resolve:t,reject:n})=>{yb("onHideLoading"),t()}));function yb(e){const{t:t}=Ml();if(!db)return;let n="";if("onHideToast"===e&&"onShowToast"!==db?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==db&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);db="",setTimeout((()=>{cb.visible=!1}),10)}const bb=Md("loadFontFace",(({family:e,source:t,desc:n},{resolve:o,reject:r})=>{(function(e,t,n){const o=document.fonts;if(o){const r=new FontFace(e,t,n);return r.load().then((()=>{o.add&&o.add(r)}))}return new Promise((o=>{const r=document.createElement("style"),i=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:r,variant:a,featureSettings:s}=n;e&&i.push(`font-style:${e}`),t&&i.push(`font-weight:${t}`),o&&i.push(`font-stretch:${o}`),r&&i.push(`unicode-range:${r}`),a&&i.push(`font-variant:${a}`),s&&i.push(`font-feature-settings:${s}`)}r.innerText=`@font-face{font-family:"${e}";src:${t};${i.join(";")}}`,document.head.appendChild(r),o()}))})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${Ou(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${Ou(t.substring(4,t.length-1))}')`:Ou(t),n).then((()=>{o()})).catch((e=>{r(`loadFontFace:fail ${e}`)}))}));function _b(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,i_.emit("onNavigationBarChange",{titleText:t})}ro(t),Do(t)}const wb=Md("setNavigationBarTitle",((e,{resolve:t,reject:n})=>{!function(e,t,n,o,r){if(!e)return r("page not found");const{navigationBar:i}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:r,timingFunc:a}=o;e&&(i.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(i.backgroundColor=t),i.duration=r+"ms",i.timingFunc=a;break;case"showNavigationBarLoading":i.loading=!0;break;case"hideNavigationBarLoading":i.loading=!1;break;case"setNavigationBarTitle":const{title:s}=n;i.titleText=s}o()}(Mc(),"setNavigationBarTitle",e,t,n)})),xb=Md("pageScrollTo",(({scrollTop:e,selector:t,duration:n},{resolve:o})=>{!function(e,t,n){if(v(e)){const t=document.querySelector(e);if(t){const{top:n}=t.getBoundingClientRect();e=n+window.pageYOffset;const o=document.querySelector("uni-page-head");o&&(e-=o.offsetHeight)}}e<0&&(e=0);const o=document.documentElement,{clientHeight:r,scrollHeight:i}=o;if(e=Math.min(e,i-r),0===t)return void(o.scrollTop=document.body.scrollTop=e);if(window.scrollY===e)return;const a=t=>{if(t<=0)return void window.scrollTo(0,e);const n=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/t*10),a(t-10)}))};a(t)}(t||e||0,n),o()}),0,mf),Sb=Md("stopPullDownRefresh",((e,{resolve:t})=>{i_.invokeViewMethod("stopPullDownRefresh",{},Oc()),t()})),Tb=["text","iconPath","iconfont","selectedIconPath","visible"],kb=["color","selectedColor","backgroundColor","borderStyle","borderColor","midButton"],Cb=["badge","redDot"];function Ab(e,t,n){t.forEach((function(t){p(n,t)&&(e[t]=n[t])}))}function Eb(e,t,n,o){var r;let i=!1;const a=Tm();if(a.length&&a[a.length-1].$page.meta.isTabBar&&(i=!0),!i)return o("not TabBar page");const{index:s}=t;if("number"==typeof s){const e=null==(r=null==__uniConfig?void 0:__uniConfig.tabBar)?void 0:r.list.length;if(!e||s>=e)return o("tabbar item not found")}const l=cm();switch(e){case"showTabBar":l.shown=!0;break;case"hideTabBar":l.shown=!1;break;case"setTabBarItem":const e=l.list[s],n=e.pagePath;Ab(e,Tb,t);const{pagePath:o}=t;if(o){const e=ue(o);e!==n&&function(e,t,n){const o=zc(ue(t));if(o){const{meta:e}=o;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const r=zc(ue(n));if(r){const{meta:t}=r;t.tabBarIndex=e,t.isQuit=t.isTabBar=!0;const o=__uniConfig.tabBar;o&&o.list&&o.list[e]&&(o.list[e].pagePath=de(n))}}(s,n,e)}break;case"setTabBarStyle":Ab(l,kb,t);break;case"showTabBarRedDot":Ab(l.list[s],Cb,{badge:"",redDot:!0});break;case"setTabBarBadge":Ab(l.list[s],Cb,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Ab(l.list[s],Cb,{badge:"",redDot:!1})}n()}const Mb=Md("hideTabBar",((e,{resolve:t,reject:n})=>{Eb("hideTabBar",e||{},t,n)})),Ob=fu({name:"TabBar",setup(){const e=cn([]),t=cm(),n=function(e,t){const n=Jt(e),o=n?Ut(Ky(e)):Ky(e);return __uniConfig.darkmode&&n&&so(e,(e=>{const t=Ky(e);for(const n in t)o[n]=t[n]})),t&&Gy(t),o}(t,(()=>{const e=Ky(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach(((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath}))}));!function(e,t){function n(){let n=[];n=e.list.filter((e=>!1!==e.visible)),t.value=n}cn(c({type:"midButton"},e.midButton)),ro(n)}(n,e),function(e){so((()=>e.shown),(t=>{yc({"--window-bottom":mm(t?parseInt(e.height):0)})}))}(n);const o=function(e,t,n){return ro((()=>{const o=e.meta;if(o.isTabBar){const e=o.route,r=n.value.findIndex((t=>t.pagePath===e));t.selectedIndex=r}})),(t,n)=>()=>{const{pagePath:o,text:r}=t;let i=ue(o);i===__uniRoutes[0].alias&&(i="/"),e.path!==i?nm({from:"tabBar",url:i,tabBarText:r}):Ic("onTabItemTap",{index:n,text:r,pagePath:o})}}(fl(),n,e),{style:r,borderStyle:i,placeholderStyle:a}=function(e){const t=Ii((()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||hm&&n&&"none"!==n&&(t=Pb[n]),{backgroundColor:t||"#f7f7fa",backdropFilter:"none"!==n?"blur(10px)":n}})),n=Ii((()=>{const{borderStyle:t,borderColor:n}=e;return n&&v(n)?{backgroundColor:n}:{backgroundColor:$b[t]||$b.black}})),o=Ii((()=>({height:e.height})));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return Uo((()=>{n.iconfontSrc&&bb({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})})),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:r,color:i}=e;return n.value.map(((n,a)=>{const s=o===a;return function(e,t,n,o,r,i,a,s){return ui("div",{key:a,class:"uni-tabbar__item",onClick:s(r,a)},[Lb(e,t||"",n,o,r,i)],8,["onClick"])}(s?r:i,s&&n.selectedIconPath||n.iconPath||"",n.iconfont?s&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?s&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,a,t)}))}(n,o,e);return ui("uni-tabbar",{class:"uni-tabbar-"+n.position},[ui("div",{class:"uni-tabbar",style:r.value},[ui("div",{class:"uni-tabbar-border",style:i.value},null,4),t],4),ui("div",{class:"uni-placeholder",style:a.value},null,4)],2)}}});const Pb={dark:"rgb(0, 0, 0, 0.8)",light:"rgb(250, 250, 250, 0.8)",extralight:"rgb(250, 250, 250, 0.8)"},$b={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function Lb(e,t,n,o,r,i){const{height:a}=i;return ui("div",{class:"uni-tabbar__bd",style:{height:a}},[n?Db(n,o||"rgb(0, 0, 0, 0.8)",r,i):t&&Ib(t,r,i),r.text&&jb(e,r,i),r.redDot&&Rb(r.badge)],4)}function Ib(e,t,n){const{type:o,text:r}=t,{iconWidth:i}=n;return ui("div",{class:"uni-tabbar__icon"+(r?" uni-tabbar__icon__diff":""),style:{width:i,height:i}},["midButton"!==o&&ui("img",{src:Ou(e)},null,8,["src"])],6)}function Db(e,t,n,o){var r;const{type:i,text:a}=n,{iconWidth:s}=o,l="uni-tabbar__icon"+(a?" uni-tabbar__icon__diff":""),c={width:s,height:s},u={fontSize:(null==(r=n.iconfont)?void 0:r.fontSize)||s,color:t};return ui("div",{class:l,style:c},["midButton"!==i&&ui("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function jb(e,t,n){const{iconPath:o,text:r}=t,{fontSize:i,spacing:a}=n;return ui("div",{class:"uni-tabbar__label",style:{color:e,fontSize:i,lineHeight:o?"normal":1.8,marginTop:o?a:"inherit"}},[r],4)}function Rb(e){return ui("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const Bb=fu({name:"Layout",setup(e,{emit:t}){const n=cn(null);vc({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const o=function(){const e=fl();return{routeKey:Ii((()=>Mm("/"+e.meta.route,Zg()))),isTabBar:Ii((()=>e.meta.isTabBar)),routeCache:Pm}}(),{layoutState:r,windowState:i}=function(){Kg();{const e=Ut({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return so((()=>e.marginWidth),(e=>vc({"--window-margin":e+"px"}))),so((()=>e.leftWindowWidth+e.marginWidth),(e=>{vc({"--window-left":e+"px"})})),so((()=>e.rightWindowWidth+e.marginWidth),(e=>{vc({"--window-right":e+"px"})})),{layoutState:e,windowState:Ii((()=>({})))}}}();!function(e,t){const n=Kg();function o(){const o=document.body.clientWidth,r=Tm();let i={};if(r.length>0){i=r[r.length-1].$page.meta}else{const e=zc(n.path,!0);e&&(i=e.meta)}const a=parseInt(String((p(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let s=!1;s=o>a,s&&a?(e.marginWidth=(o-a)/2,Pn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+a+"px;margin:0 auto;")}))):(e.marginWidth=0,Pn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}so([()=>n.path],o),Uo((()=>{o(),window.addEventListener("resize",o)}))}(r,n);const a=function(e){const t=Kg(),n=cm(),o=Ii((()=>t.meta.isTabBar&&n.shown));return vc({"--tab-bar-height":n.height}),o}(),s=function(e){const t=cn(!1);return Ii((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(a);return()=>{const e=function(e,t,n,o,r,i){return function({routeKey:e,isTabBar:t,routeCache:n}){return ui(dl,null,{default:Un((({Component:o})=>[(Zr(),oi(Lo,{matchBy:"key",cache:n},[(Zr(),oi(Qn(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o),t=function(e){return fo(ui(Ob,null,null,512),[[na,e.value]])}(a);return ui("uni-app",{ref:n,class:s.value},[e,t],2)}}});const Nb=Md("saveImageToPhotosAlbum",(zb="saveImageToPhotosAlbum",(e,{reject:t})=>t(function(e){return`method 'uni.${e}' not supported`}(zb))));var zb;const qb=fu({name:"MapLocation",setup(){const e=Ut({latitude:0,longitude:0,rotate:0});{let t=function(t){e.rotate=t.direction},n=function(){Hy({type:"gcj02",success:t=>{e.latitude=t.latitude,e.longitude=t.longitude},complete:()=>{i=setTimeout(n,3e4)}})},o=function(){i&&clearTimeout(i),Xv(t)};const r=Cr("onMapReady");let i;Yv(t),r(n),Jo(o);const a=Cr("addMapChidlContext"),s=Cr("removeMapChidlContext"),l={id:"MAP_LOCATION",state:e};a(l),Jo((()=>s(l)))}return()=>e.latitude?ui(kv,yi({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:yv},e),null,16,["iconPath"]):null}}),Vb=fu({name:"MapPolygon",props:{dashArray:{type:Array,default:()=>[0,0]},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},setup(e){let t;return Cr("onMapReady")(((n,o,r)=>{function i(){const{points:r,strokeWidth:i,strokeColor:a,dashArray:s,fillColor:l,zIndex:c}=e,u=r.map((e=>{const{latitude:t,longitude:n}=e;return Sv()?[n,t]:Tv()?new o.Point(n,t):new o.LatLng(t,n)})),{r:d,g:p,b:f,a:h}=Cv(l),{r:g,g:m,b:v,a:y}=Cv(a),b={clickable:!0,cursor:"crosshair",editable:!1,map:n,fillColor:"",path:u,strokeColor:"",strokeDashStyle:s.some((e=>e>0))?"dash":"solid",strokeWeight:i,visible:!0,zIndex:c};o.Color?(b.fillColor=new o.Color(d,p,f,h),b.strokeColor=new o.Color(g,m,v,y)):(b.fillColor=`rgb(${d}, ${p}, ${f})`,b.fillOpacity=h,b.strokeColor=`rgb(${g}, ${m}, ${v})`,b.strokeOpacity=y),t?t.setOptions(b):Tv()?(t=new o.Polygon(b.path,b),n.addOverlay(t)):t=new o.Polygon(b)}i(),so(e,i)})),Jo((()=>{t.setMap(null)})),()=>null}});function Fb(e){const t=[];return f(e)&&e.forEach((e=>{e&&e.latitude&&e.longitude&&t.push({latitude:e.latitude,longitude:e.longitude})})),t}function Hb(e,t,n){return Tv()?function(e,t,n){return new e.Point(n,t)}(e,t,n):Sv()?function(e,t,n){return new e.LngLat(n,t)}(e,t,n):function(e,t,n){return new e.LatLng(t,n)}(e,t,n)}function Wb(e){return"getLat"in e?e.getLat():Tv()?e.lat:e.lat()}function Ub(e){return"getLng"in e?e.getLng():Tv()?e.lng:e.lng()}function Yb(e,t,n){const o=gu(t,n),r=cn(null);let i,a;const s=Ut({latitude:Number(e.latitude),longitude:Number(e.longitude),includePoints:Fb(e.includePoints)}),l=[];let u,d;function p(e){u?e(a,i,o):l.push(e)}const f=[];function h(e){d?e():l.push(e)}const g={};function m(){const e=a.getCenter();return{scale:a.getZoom(),centerLocation:{latitude:Wb(e),longitude:Ub(e)}}}function v(){if(Sv()){const e=[];s.includePoints.forEach((t=>{e.push([t.longitude,t.latitude])}));const t=new i.Bounds(...e);a.setBounds(t)}else if(Tv());else{const e=new i.LatLngBounds;s.includePoints.forEach((({latitude:t,longitude:n})=>{const o=new i.LatLng(t,n);e.extend(o)})),a.fitBounds(e)}}function y(){const t=r.value,l=Hb(i,s.latitude,s.longitude),u=i.event||i.Event,p=new i.Map(t,{center:l,zoom:Number(e.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0});if(Tv()&&(p.centerAndZoom(l,Number(e.scale)),p.enableScrollWheelZoom(),p._printLog&&p._printLog("uniapp")),so((()=>e.scale),(e=>{p.setZoom(Number(e)||16)})),h((()=>{s.includePoints.length&&(v(),function(){const e=Hb(i,s.latitude,s.longitude);a.setCenter(e)}())})),Tv())p.addEventListener("click",(()=>{o("tap",{},{}),o("click",{},{})})),p.addEventListener("dragstart",(()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})})),p.addEventListener("dragend",(()=>{o("regionchange",{},c({type:"end",causedBy:"drag"},m()))}));else{const e=u.addListener(p,"bounds_changed",(()=>{e.remove(),d=!0,f.forEach((e=>e())),f.length=0}));u.addListener(p,"click",(()=>{o("tap",{},{}),o("click",{},{})})),u.addListener(p,"dragstart",(()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})})),u.addListener(p,"dragend",(()=>{o("regionchange",{},c({type:"end",causedBy:"drag"},m()))}));const t=()=>{n("update:scale",p.getZoom()),o("regionchange",{},c({type:"end",causedBy:"scale"},m()))};u.addListener(p,"zoom_changed",t),u.addListener(p,"zoomend",t),u.addListener(p,"center_changed",(()=>{const e=p.getCenter(),t=Wb(e),o=Ub(e);n("update:latitude",t),n("update:longitude",o)}))}return p}so([()=>e.latitude,()=>e.longitude],(([e,t])=>{const n=Number(e),o=Number(t);if((n!==s.latitude||o!==s.longitude)&&(s.latitude=n,s.longitude=o,a)){const e=Hb(i,s.latitude,s.longitude);a.setCenter(e)}})),so((()=>e.includePoints),(e=>{s.includePoints=Fb(e),d&&v()}),{deep:!0});try{Rg(((e,t={})=>{switch(e){case"getCenterLocation":p((()=>{const n=a.getCenter();me(t,{latitude:Wb(n),longitude:Ub(n),errMsg:`${e}:ok`})}));break;case"moveToLocation":{let n=Number(t.latitude),o=Number(t.longitude);if(!n||!o){const e=g.MAP_LOCATION;e&&(n=e.state.latitude,o=e.state.longitude)}if(n&&o){if(s.latitude=n,s.longitude=o,a){const e=Hb(i,n,o);a.setCenter(e)}p((()=>{me(t,`${e}:ok`)}))}else me(t,`${e}:fail`)}break;case"translateMarker":p((()=>{const n=g[t.markerId];if(n){try{n.translate(t)}catch(o){me(t,`${e}:fail ${o.message}`)}me(t,`${e}:ok`)}else me(t,`${e}:fail not found`)}));break;case"includePoints":s.includePoints=Fb(t.includePoints),(d||Sv())&&v(),h((()=>{me(t,`${e}:ok`)}));break;case"getRegion":h((()=>{const n=a.getBounds(),o=n.getSouthWest(),r=n.getNorthEast();me(t,{southwest:{latitude:Wb(o),longitude:Ub(o)},northeast:{latitude:Wb(r),longitude:Ub(r)},errMsg:`${e}:ok`})}));break;case"getScale":p((()=>{me(t,{scale:a.getZoom(),errMsg:`${e}:ok`})}))}}),Ng(),!0)}catch(b){}return Uo((()=>{mv(e.libraries,(e=>{i=e,a=y(),u=!0,l.forEach((e=>e(a,i,o))),l.length=0,o("updated",{},{})}))})),kr("onMapReady",p),kr("addMapChidlContext",(function(e){g[e.id]=e})),kr("removeMapChidlContext",(function(e){delete g[e.id]})),{state:s,mapRef:r,trigger:o}}const Xb=pu({name:"Map",props:{id:{type:String,default:""},latitude:{type:[String,Number],default:0},longitude:{type:[String,Number],default:0},scale:{type:[String,Number],default:16},markers:{type:Array,default:()=>[]},includePoints:{type:Array,default:()=>[]},polyline:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},controls:{type:Array,default:()=>[]},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]}},emits:["markertap","labeltap","callouttap","controltap","regionchange","tap","click","updated","update:scale","update:latitude","update:longitude"],setup(e,{emit:t,slots:n}){const o=cn(null),{mapRef:r,trigger:i}=Yb(e,o,t);return()=>ui("uni-map",{ref:o,id:e.id},[ui("div",{ref:r,style:"width: 100%; height: 100%; position: relative; overflow: hidden"},null,512),e.markers.map((e=>ui(kv,yi({key:e.id},e),null,16))),e.polyline.map((e=>ui(Ev,e,null,16))),e.circles.map((e=>ui(Mv,e,null,16))),e.controls.map((e=>ui(Pv,yi(e,{trigger:i}),null,16,["trigger"]))),e.showLocation&&ui(qb,null,null),e.polygons.map((e=>ui(Vb,e,null,16))),ui("div",{style:"position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;"},[n.default&&n.default()])],8,["id"])}});function Gb(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!ri(e)}function Jb(e){if(e.mode===Qb.TIME)return"00:00";if(e.mode===Qb.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case e_.YEAR:return t.toString();case e_.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function Kb(e){if(e.mode===Qb.TIME)return"23:59";if(e.mode===Qb.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case e_.YEAR:return t.toString();case e_.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function Zb(e,t,n,o){const r=e.mode===Qb.DATE?"-":":",i=e.mode===Qb.DATE?t.dateArray:t.timeArray;let a;if(e.mode===Qb.TIME)a=2;else switch(e.fields){case e_.YEAR:a=1;break;case e_.MONTH:a=2;break;default:a=3}const s=String(n).split(r);let l=[];for(let c=0;c=0&&(l=o?Zb(e,t,o):l.map((()=>0))),l}const Qb={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},e_={YEAR:"year",MONTH:"month",DAY:"day"},t_={PICKER:"picker",SELECT:"select"},n_=pu({name:"Picker",compatConfig:{MODE:3},props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Qb.SELECTOR,validator:e=>Object.values(Qb).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>Jb(e)},end:{type:String,default:e=>Kb(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){jl();const{t:o}=Ml(),r=cn(null),i=cn(null),a=cn(null),s=cn(null),l=cn(!1),{state:u,rangeArray:d}=function(e){const t=Ut({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=Ii((()=>{let n=e.range;switch(e.mode){case Qb.SELECTOR:return[n];case Qb.MULTISELECTOR:return n;case Qb.TIME:return t.timeArray;case Qb.DATE:{const n=t.dateArray;switch(e.fields){case e_.YEAR:return[n[0]];case e_.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]}));return{state:t,rangeArray:n}}(e),p=gu(r,t),{system:h,selectorTypeComputed:g,_show:m,_l10nColumn:v,_l10nItem:y,_input:b,_fixInputPosition:_,_pickerViewChange:w,_cancel:x,_change:S,_resetFormData:T,_getFormData:k,_createTime:C,_createDate:A,_setValueSync:E}=function(e,t,n,o,r,i,a){const s=function(){const e=cn(!1);return e.value=(()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0)(),e}(),l=function(){const e=cn("");return e.value=(()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""})(),e}(),c=Ii((()=>{const t=e.selectorType;return Object.values(t_).includes(t)?t:s.value?t_.PICKER:t_.SELECT})),u=Ii((()=>e.mode===Qb.DATE&&!Object.values(e_).includes(e.fields)&&t.isDesktop?l.value:"")),d=Ii((()=>Zb(e,t,e.start,Jb(e)))),p=Ii((()=>Zb(e,t,e.end,Kb(e))));function h(n){if(e.disabled)return;t.valueChangeSource="";let o=r.value,i=n.currentTarget;o.remove(),(document.querySelector("uni-app")||document.body).appendChild(o),o.style.display="block";const a=i.getBoundingClientRect();t.popover={top:a.top,left:a.left,width:a.width,height:a.height},setTimeout((()=>{t.visible=!0}),20)}function g(){return{value:t.valueSync,key:e.name}}function m(){switch(e.mode){case Qb.SELECTOR:t.valueSync=0;break;case Qb.MULTISELECTOR:t.valueSync=e.value.map((e=>0));break;case Qb.DATE:case Qb.TIME:t.valueSync=""}}function v(){let e=[],n=[];for(let t=0;t<24;t++)e.push((t<10?"0":"")+t);for(let t=0;t<60;t++)n.push((t<10?"0":"")+t);t.timeArray.push(e,n)}function y(){let t=(new Date).getFullYear(),n=t-150,o=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&to&&(o=t)}return{start:n,end:o}}function b(){let e=[];const n=y();for(let t=n.start,i=n.end;t<=i;t++)e.push(String(t));let o=[];for(let t=1;t<=12;t++)o.push((t<10?"0":"")+t);let r=[];for(let t=1;t<=31;t++)r.push((t<10?"0":"")+t);t.dateArray.push(e,o,r)}function _(e){return 60*e[0]+e[1]}function w(e){const t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)}function x(e,t){for(let n=0;ns?0:a)}}break;case Qb.TIME:case Qb.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function T(){let n,o=t.valueSync;switch(e.mode){case Qb.MULTISELECTOR:n=[...o];break;case Qb.TIME:n=Zb(e,t,o,ge({mode:Qb.TIME}));break;case Qb.DATE:n=Zb(e,t,o,ge({mode:Qb.DATE}));break;default:n=[o]}t.oldValueArray=[...n],t.valueArray=[...n]}function k(){let n=t.valueArray;switch(e.mode){case Qb.SELECTOR:return n[0];case Qb.MULTISELECTOR:return n.map((e=>e));case Qb.TIME:return t.valueArray.map(((e,n)=>t.timeArray[n][e])).join(":");case Qb.DATE:return t.valueArray.map(((e,n)=>t.dateArray[n][e])).join("-")}}function C(){E(),t.valueChangeSource="click";const e=k();t.valueSync=f(e)?e.map((e=>e)):e,n("change",{},{value:e})}function A(e){if("firefox"===u.value&&e){const{top:n,left:o,width:r,height:i}=t.popover,{pageX:a,pageY:s}=e;if(a>o&&an&&s{let e=r.value;e.remove(),o.value.prepend(e),e.style.display="none"}),260)}function M(){e.mode===Qb.SELECTOR&&c.value===t_.SELECT&&(i.value.scrollTop=34*t.valueArray[0])}function O(e){const n=e.target;t.valueSync=n.value,Pn((()=>{C()}))}function P(e){if("chrome"===u.value){const t=o.value.getBoundingClientRect(),n=32;a.value.style.left=e.clientX-t.left-1.5*n+"px",a.value.style.top=e.clientY-t.top-.5*n+"px"}}function $(e){t.valueArray=L(e.detail.value,!0)}function L(t,n){const{getLocale:o}=Ml();if(e.mode===Qb.DATE){const r=o();if(!r.startsWith("zh"))switch(e.fields){case e_.YEAR:return t;case e_.MONTH:return[t[1],t[0]];default:switch(r){case"es":case"fr":return[t[2],t[1],t[0]];default:return n?[t[2],t[0],t[1]]:[t[1],t[2],t[0]]}}}return t}function I(t,n){const{getLocale:o}=Ml();if(e.mode===Qb.DATE){const r=o();if(r.startsWith("zh")){return t+["年","月","日"][n]}if(e.fields!==e_.YEAR&&n===(e.fields===e_.MONTH||"es"!==r&&"fr"!==r?0:1)){let e;switch(r){case"es":e=["enero","febrero","marzo","abril","mayo","junio","​​julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":e=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:e=["January","February","March","April","May","June","July","August","September","October","November","December"]}return e[Number(t)-1]}}return t}return so((()=>t.visible),(e=>{e?(clearTimeout(o_),t.contentVisible=e,M()):o_=setTimeout((()=>{t.contentVisible=e}),300)})),so([()=>e.mode,()=>e.value,()=>e.range],S,{deep:!0}),so((()=>t.valueSync),T,{deep:!0}),so((()=>t.valueArray),(o=>{if(e.mode===Qb.TIME||e.mode===Qb.DATE){const n=e.mode===Qb.TIME?_:w,o=t.valueArray,r=d.value,i=p.value;if(e.mode===Qb.DATE){const e=t.dateArray,n=e[2].length,r=Number(e[2][o[2]])||1,i=new Date(`${e[0][o[0]]}/${e[1][o[1]]}/${r}`).getDate();in(i)&&x(o,i)}o.forEach(((o,r)=>{o!==t.oldValueArray[r]&&(t.oldValueArray[r]=o,e.mode===Qb.MULTISELECTOR&&n("columnchange",{},{column:r,value:o}))}))})),{selectorTypeComputed:c,system:u,_show:h,_cancel:A,_change:C,_l10nColumn:L,_l10nItem:I,_input:O,_resetFormData:m,_getFormData:g,_createTime:v,_createDate:b,_setValueSync:S,_fixInputPosition:P,_pickerViewChange:$}}(e,u,p,r,i,a,s);!function(e,t,n){const{key:o,disable:r}=gy();ro((()=>{r.value=!e.visible})),so(o,(e=>{"esc"===e?t():"enter"===e&&n()}))}(u,x,S),function(e,t){const n=Cr(bu,!1);if(n){const o={reset:e,submit:()=>{const e=["",null],{key:n,value:o}=t();return""!==n&&(e[0]=n,e[1]=o),e}};n.addField(o),Go((()=>{n.removeField(o)}))}}(T,k),C(),A(),E();const M=function(e){const t=cn(0),n=cn(0),o=Ii((()=>t.value>=500&&n.value>=500)),r=Ii((()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},r=t.content,i=t.triangle,a=e.popover;function s(e){return Number(e)||0}if(o.value&&a){c(i,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=s(a.left),t=s(a.width),o=s(a.top),l=s(a.height),u=e+t/2;r.transform="none !important";const d=Math.max(0,u-150);r.left=`${d}px`;let p=Math.max(12,u-d);p=Math.min(288,p),i.left=`${p}px`;const f=n.value/2;o+l-f>f-o?(r.top="auto",r.bottom=n.value-o+6+"px",i.bottom="-6px",i["border-width"]="6px 6px 0 6px",i["border-color"]="#fcfcfd transparent transparent transparent"):(r.top=`${o+l+6}px`,i.top="-6px",i["border-width"]="0 6px 6px 6px",i["border-color"]="transparent transparent #fcfcfd transparent")}return t}));return Uo((()=>{const e=()=>{const{windowWidth:e,windowHeight:o,windowTop:r}=Fv();t.value=e,n.value=o+(r||0)};window.addEventListener("resize",e),e(),Jo((()=>{window.removeEventListener("resize",e)}))})),{isDesktop:o,popupStyle:r}}(u);return ro((()=>{u.isDesktop=M.isDesktop.value,u.popupStyle=M.popupStyle.value})),Go((()=>{i.value&&i.value.remove()})),Uo((()=>{l.value=!0})),()=>{let t;const{visible:c,contentVisible:p,valueArray:f,popupStyle:T,valueSync:k}=u,{rangeKey:C,mode:A,start:E,end:M}=e,O=yu(e,"disabled");return ui("uni-picker",yi({ref:r},O,{onClick:hu(m)}),[l.value?ui("div",{ref:i,class:["uni-picker-container",`uni-${A}-${g.value}`],onWheel:pc,onTouchmove:pc},[ui(Vi,{name:"uni-fade"},{default:()=>[fo(ui("div",{class:"uni-mask uni-picker-mask",onClick:hu(x),onMousemove:_},null,40,["onClick","onMousemove"]),[[na,c]])]}),h.value?null:ui("div",{class:[{"uni-picker-toggle":c},"uni-picker-custom"],style:T.content},[ui("div",{class:"uni-picker-header",onClick:fc},[ui("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:hu(x)},[o("uni.picker.cancel")],8,["onClick"]),ui("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:S},[o("uni.picker.done")],8,["onClick"])],8,["onClick"]),p?ui(Zh,{value:v(f),class:"uni-picker-content",onChange:w},Gb(t=tr(v(d.value),((e,t)=>{let n;return ui(ig,{key:t},Gb(n=tr(e,((e,n)=>ui("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[C]||"":y(e,t)]))))?n:{default:()=>[n],_:1})})))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,ui("div",{ref:a,class:"uni-picker-select",onWheel:fc,onTouchmove:fc},[tr(d.value[0],((e,t)=>ui("div",{key:t,class:["uni-picker-item",{selected:f[0]===t}],onClick:()=>{f[0]=t,S()}},["object"==typeof e?e[C]||"":e],10,["onClick"])))],40,["onWheel","onTouchmove"]),ui("div",{style:T.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,ui("div",null,[n.default&&n.default()]),h.value?ui("div",{class:"uni-picker-system",onMousemove:hu(_)},[ui("input",{class:["uni-picker-system_input",h.value],ref:s,value:k,type:A,tabindex:"-1",min:E,max:M,onChange:e=>{b(e),fc(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});let o_;const r_=c(Hl,{publishHandler(e,t,n){i_.subscribeHandler(e,t,n)}}),i_=c(Qc,{publishHandler(e,t,n){r_.subscribeHandler(e,t,n)}}),a_={name:"PageRefresh",setup(){const{pullToRefresh:e}=Gg();return{offset:e.offset,color:e.color}}},s_=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},l_={class:"uni-page-refresh-inner"},c_=["fill"],u_=[ci("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),ci("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],d_={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},p_=["stroke"];const f_=s_(a_,[["render",function(e,t,n,o,r,i){return Zr(),ni("uni-page-refresh",null,[ci("div",{style:ae({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[ci("div",l_,[(Zr(),ni("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},u_,8,c_)),(Zr(),ni("svg",d_,[ci("circle",{stroke:o.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,p_)]))])],4)])}]]);function h_(e,t,n){const o=Array.prototype.slice.call(e.changedTouches).filter((e=>e.identifier===t))[0];return!!o&&(e.deltaY=o.pageY-n,!0)}const g_="aborting",m_="refreshing",v_="restoring";function y_(e){const t=Gg(),{id:n,pullToRefresh:o}=t,{range:r,height:i}=o;let a,s,l,c,u,d,p,f;Rg((()=>{t.enablePullDownRefresh&&(f||(f=m_,v(),setTimeout((()=>{x()}),50)))}),"startPullDownRefresh",!1,n),Rg((()=>{t.enablePullDownRefresh&&f===m_&&(y(),f=v_,v(),function(e){if(!s)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),s.removeEventListener("webkitTransitionEnd",t),l.transition="",l.transform="translate3d(-50%, 0, 0)",e()};s.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}((()=>{y(),f=h=g=null})))}),"stopPullDownRefresh",!1,n),Uo((()=>{a=e.value.$el,s=a.querySelector(".uni-page-refresh"),l=s.style,c=s.querySelector(".uni-page-refresh-inner").style}));let h=null,g=null;function m(e){f&&a&&a.classList[e]("uni-page-refresh--"+f)}function v(){m("add")}function y(){m("remove")}const b=hu((e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];u=n.identifier,d=n.pageY,p=!([g_,m_,v_].indexOf(f)>=0)})),_=hu((e=>{if(!t.enablePullDownRefresh)return;if(!p)return;if(!h_(e,u,d))return;let{deltaY:n}=e;if(0!==(document.documentElement.scrollTop||document.body.scrollTop))return void(u=null);if(n<0&&!f)return;e.cancelable&&e.preventDefault(),null===h&&(g=n,f="pulling",v()),n-=g,n<0&&(n=0),h=n;(n>=r&&"reached"!==f||n1?t=1:t*=t*t;const n=Math.round(e/(r/i))||0;c.transform="rotate("+360*t+"deg)",l.clip="rect("+(45-n)+"px,45px,45px,-5px)",l.transform="translate3d(-50%, "+n+"px, 0)"}(n)})),w=hu((e=>{t.enablePullDownRefresh&&h_(e,u,d)&&null!==f&&("pulling"===f?(y(),f=g_,v(),function(e){if(!s)return;if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),s.removeEventListener("webkitTransitionEnd",t),l.transition="",e()};s.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}((()=>{y(),f=h=g=null}))):"reached"===f&&(y(),f=m_,v(),x()))}));function x(){s&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+i+"px, 0)",Ic(n,"onPullDownRefresh"))}return{onTouchstartPassive:b,onTouchmove:_,onTouchend:w,onTouchcancel:w}}const b_=fu({name:"PageBody",setup(e,t){const n=Gg(),o=cn(null),r=n.enablePullDownRefresh?y_(o):null,i=cn(null);return so((()=>n.enablePullDownRefresh),(()=>{i.value=n.enablePullDownRefresh?r:null}),{immediate:!0}),()=>{const e=function(e,t){if(!t.enablePullDownRefresh)return null;return ui(f_,{ref:e},null,512)}(o,n);return ui(Ur,null,[e,ui("uni-page-wrapper",i.value,[ui("uni-page-body",null,[nr(t.slots,"default")])],16)])}}});const __=fu({name:"Page",setup(e,t){const n=Jg(Zg());n.navigationBar;const o={};return _b(n),()=>ui("uni-page",{"data-page":n.route,style:o},[w_(t)])}});function w_(e){return Zr(),oi(b_,{key:0},{default:Un((()=>[nr(e.slots,"page")])),_:3})}const x_={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:2e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=Bd;const S_=Object.assign({}),T_=Object.assign;window.__uniConfig=T_({easycom:{autoscan:!0,custom:{"^s-(.*)":"@/sheep/components/s-$1/s-$1.vue","^su-(.*)":"@/sheep/ui/su-$1/su-$1.vue"}},globalStyle:{backgroundColor:"#FFFFFF",navigationBar:{backgroundColor:"#FFFFFF",titleText:"江苏赢伟达资产管理有限公司",style:"custom",type:"default",titleColor:"#000000"},isNVue:!1},tabBar:{position:"bottom",color:"#999",selectedColor:"#007aff",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{pagePath:"pages/index/index"},{pagePath:"pages/index/user"}],selectedIndex:0,shown:!0},compilerVersion:"4.29"},{appId:"__UNI__F082C69",appName:"江苏赢伟达资产管理有限公司",appVersion:"2.1.0",appVersionCode:"183",async:x_,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{maps:{}},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"zh-Hans",fallbackLocale:"",locales:Object.keys(S_).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return T_(e[n]||(e[n]={}),S_[t].default),e}),{}),router:{mode:"history",base:"/mail",assets:"assets",routerBase:"/mail"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const k_={delay:x_.delay,timeout:x_.timeout,suspensible:x_.suspensible};x_.loading&&(k_.loadingComponent={name:"SystemAsyncLoading",render:()=>ui(Kn(x_.loading))}),x_.error&&(k_.errorComponent={name:"SystemAsyncError",render:()=>ui(Kn(x_.error))});const C_=()=>t((()=>import("./pages-index-index.Df99u5_U.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22])).then((e=>ev(e.default||e))),A_=Eo(T_({loader:C_},k_)),E_=()=>t((()=>import("./pages-index-user.BnADRR0G.js")),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22])).then((e=>ev(e.default||e))),M_=Eo(T_({loader:E_},k_)),O_=()=>t((()=>import("./pages-index-category.40l2dTMj.js")),__vite__mapDeps([24,25,3,26,2,4,11,12,13,14,27,15,28,29,30])).then((e=>ev(e.default||e))),P_=Eo(T_({loader:O_},k_)),$_=()=>t((()=>import("./pages-index-login.BquDAPKY.js")),[]).then((e=>ev(e.default||e))),L_=Eo(T_({loader:$_},k_)),I_=()=>t((()=>import("./pages-customerService-index.Bybx_321.js")),__vite__mapDeps([31,2,3,4,32])).then((e=>ev(e.default||e))),D_=Eo(T_({loader:I_},k_)),j_=()=>t((()=>import("./pages-ai-index.Br7D2b2u.js")),__vite__mapDeps([33,2,3,4,21,34])).then((e=>ev(e.default||e))),R_=Eo(T_({loader:j_},k_)),B_=()=>t((()=>import("./pages-index-search.b9O465Ob.js")),__vite__mapDeps([35,2,3,4,36])).then((e=>ev(e.default||e))),N_=Eo(T_({loader:B_},k_)),z_=()=>t((()=>import("./pages-index-page.CmGAxecX.js")),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22])).then((e=>ev(e.default||e))),q_=Eo(T_({loader:z_},k_)),V_=()=>t((()=>import("./pages-goods-index.CVYpJDSJ.js")),__vite__mapDeps([38,39,3,40,9,10,41,42,2,4,12,13,43,44,45,46,47,48,7,8,49,19,20,50,15,51])).then((e=>ev(e.default||e))),F_=Eo(T_({loader:V_},k_)),H_=()=>t((()=>import("./pages-goods-groupon.BH0vkbKK.js")),__vite__mapDeps([52,39,3,40,9,10,53,41,42,2,4,12,13,54,45,43,46,47,48,7,8,49,19,20,50,16,15,55])).then((e=>ev(e.default||e))),W_=Eo(T_({loader:H_},k_)),U_=()=>t((()=>import("./pages-goods-seckill.DSliLXEb.js")),__vite__mapDeps([56,39,3,40,9,10,57,41,42,2,4,12,13,29,58,45,43,46,47,48,7,8,49,19,20,50,17,15,59])).then((e=>ev(e.default||e))),Y_=Eo(T_({loader:U_},k_)),X_=()=>t((()=>import("./pages-goods-point.C3cTYJel.js")),__vite__mapDeps([60,39,3,40,9,10,57,41,42,2,4,12,13,29,58,45,43,46,47,48,7,8,49,19,20,50,15,18,61])).then((e=>ev(e.default||e))),G_=Eo(T_({loader:X_},k_)),J_=()=>t((()=>import("./pages-goods-list.C8_idhOH.js")),__vite__mapDeps([62,63,3,64,65,66,2,4,11,12,13,14,25,26,39,40,15,28,29,67])).then((e=>ev(e.default||e))),K_=Eo(T_({loader:J_},k_)),Z_=()=>t((()=>import("./pages-goods-comment-add.DWDgVkmw.js")),__vite__mapDeps([68,69,12,13,3,70,47,2,4,48,71,72,73])).then((e=>ev(e.default||e))),Q_=Eo(T_({loader:Z_},k_)),ew=()=>t((()=>import("./pages-goods-comment-list.CMbmKExL.js")),__vite__mapDeps([74,63,3,64,39,40,25,26,2,4,46,47,48,7,8,49,28,29,75])).then((e=>ev(e.default||e))),tw=Eo(T_({loader:ew},k_)),nw=()=>t((()=>import("./pages-order-detail.CvYU0tsV.js")),__vite__mapDeps([76,69,12,13,3,70,2,4,77,78])).then((e=>ev(e.default||e))),ow=Eo(T_({loader:nw},k_)),rw=()=>t((()=>import("./pages-order-confirm.XDl1mHLv.js")),__vite__mapDeps([79,69,12,13,3,70,2,4,80,81,82,83])).then((e=>ev(e.default||e))),iw=Eo(T_({loader:rw},k_)),aw=()=>t((()=>import("./pages-order-list.PRLrLVDi.js")),__vite__mapDeps([84,63,3,64,65,66,39,40,69,12,13,70,25,26,2,4,28,29,85])).then((e=>ev(e.default||e))),sw=Eo(T_({loader:aw},k_)),lw=()=>t((()=>import("./pages-order-aftersale-apply.BiVFei4W.js")),__vite__mapDeps([86,69,12,13,3,70,2,4,71,72,82,87,88])).then((e=>ev(e.default||e))),cw=Eo(T_({loader:lw},k_)),uw=()=>t((()=>import("./pages-order-aftersale-return-delivery.DiLNjjJ_.js")),__vite__mapDeps([89,2,3,4,87,77,90])).then((e=>ev(e.default||e))),dw=Eo(T_({loader:uw},k_)),pw=()=>t((()=>import("./pages-order-aftersale-list.Dkgzj5kG.js")),__vite__mapDeps([91,63,3,64,65,66,39,40,69,12,13,70,25,26,2,4,87,28,29,92])).then((e=>ev(e.default||e))),fw=Eo(T_({loader:pw},k_)),hw=()=>t((()=>import("./pages-order-aftersale-detail.C7dSXwfK.js")),__vite__mapDeps([93,69,12,13,3,70,39,40,2,4,87,94])).then((e=>ev(e.default||e))),gw=Eo(T_({loader:hw},k_)),mw=()=>t((()=>import("./pages-order-aftersale-log.BytL0H61.js")),__vite__mapDeps([95,2,3,4,87,96])).then((e=>ev(e.default||e))),vw=Eo(T_({loader:mw},k_)),yw=()=>t((()=>import("./pages-order-express-log.uJ8pWX8A.js")),__vite__mapDeps([97,3,2,4,98])).then((e=>ev(e.default||e))),bw=Eo(T_({loader:yw},k_)),_w=()=>t((()=>import("./pages-user-info.B2GJCfSm.js")),__vite__mapDeps([99,7,3,8,2,4,5,6,100])).then((e=>ev(e.default||e))),ww=Eo(T_({loader:_w},k_)),xw=()=>t((()=>import("./pages-user-goods-collect.B-2M3ljx.js")),__vite__mapDeps([101,69,12,13,3,70,2,4,25,26,39,40,43,28,29,102])).then((e=>ev(e.default||e))),Sw=Eo(T_({loader:xw},k_)),Tw=()=>t((()=>import("./pages-user-goods-log.CGzY8wLi.js")),__vite__mapDeps([103,69,12,13,3,70,2,4,25,26,39,40,104,28,29,105])).then((e=>ev(e.default||e))),kw=Eo(T_({loader:Tw},k_)),Cw=()=>t((()=>import("./pages-user-address-list.DJbO-l_-.js")),__vite__mapDeps([106,3,2,4,39,40,107,108])).then((e=>ev(e.default||e))),Aw=Eo(T_({loader:Cw},k_)),Ew=()=>t((()=>import("./pages-user-address-edit.iw5KX_N3.js")),__vite__mapDeps([109,2,3,4,107,28,29,110])).then((e=>ev(e.default||e))),Mw=Eo(T_({loader:Ew},k_)),Ow=()=>t((()=>import("./pages-user-goods_details_store-index.BrHKSg0F.js")),__vite__mapDeps([111,2,3,4,77,112])).then((e=>ev(e.default||e))),Pw=Eo(T_({loader:Ow},k_)),$w=()=>t((()=>import("./pages-user-wallet-money.D-cOSHO8.js")),__vite__mapDeps([113,114,2,3,4,115,63,64,65,66,39,40,25,26,12,13,28,29,116])).then((e=>ev(e.default||e))),Lw=Eo(T_({loader:$w},k_)),Iw=()=>t((()=>import("./pages-user-wallet-score.B0iAYv0m.js")),__vite__mapDeps([117,114,2,3,4,115,63,64,65,66,39,40,25,26,13,28,29,118])).then((e=>ev(e.default||e))),Dw=Eo(T_({loader:Iw},k_)),jw=()=>t((()=>import("./pages-commission-index._S1zIHi7.js")),__vite__mapDeps([119,2,3,4,12,13,25,26,28,29,120])).then((e=>ev(e.default||e))),Rw=Eo(T_({loader:jw},k_)),Bw=()=>t((()=>import("./pages-commission-wallet.BAvEYaB8.js")),__vite__mapDeps([121,114,2,3,4,115,63,64,65,66,39,40,25,26,12,13,28,29,122])).then((e=>ev(e.default||e))),Nw=Eo(T_({loader:Bw},k_)),zw=()=>t((()=>import("./pages-commission-goods.DvC9X8Zp.js")),__vite__mapDeps([123,69,12,13,3,70,39,40,25,26,2,4,15,28,29,124])).then((e=>ev(e.default||e))),qw=Eo(T_({loader:zw},k_)),Vw=()=>t((()=>import("./pages-commission-order.B-6EGLmw.js")),__vite__mapDeps([125,63,3,64,65,66,39,40,25,26,2,4,13,12,28,29,126])).then((e=>ev(e.default||e))),Fw=Eo(T_({loader:Vw},k_)),Hw=()=>t((()=>import("./pages-commission-team.CkXHUvlg.js")),__vite__mapDeps([127,2,3,4,12,13,28,29,128])).then((e=>ev(e.default||e))),Ww=Eo(T_({loader:Hw},k_)),Uw=()=>t((()=>import("./pages-commission-promoter.Dy39R13b.js")),__vite__mapDeps([129,25,3,26,2,4,13,28,29,130])).then((e=>ev(e.default||e))),Yw=Eo(T_({loader:Uw},k_)),Xw=()=>t((()=>import("./pages-commission-commission-ranking.MI73d31U.js")),__vite__mapDeps([131,25,3,26,2,4,12,13,28,29,132])).then((e=>ev(e.default||e))),Gw=Eo(T_({loader:Xw},k_)),Jw=()=>t((()=>import("./pages-commission-withdraw.CclYDbbS.js")),__vite__mapDeps([133,2,3,4,71,72,12,13,82,134])).then((e=>ev(e.default||e))),Kw=Eo(T_({loader:Jw},k_)),Zw=()=>t((()=>import("./pages-app-sign.Dv1aJitZ.js")),__vite__mapDeps([135,39,3,40,2,4,136])).then((e=>ev(e.default||e))),Qw=Eo(T_({loader:Zw},k_)),ex=()=>t((()=>import("./pages-public-setting.DpecLLU7.js")),__vite__mapDeps([137,5,2,3,4,6,138])).then((e=>ev(e.default||e))),tx=Eo(T_({loader:ex},k_)),nx=()=>t((()=>import("./pages-public-richtext.CQy10l6t.js")),__vite__mapDeps([139,19,3,20,2,4,21,140])).then((e=>ev(e.default||e))),ox=Eo(T_({loader:nx},k_)),rx=()=>t((()=>import("./pages-public-faq.DppYsNB1.js")),__vite__mapDeps([141,142,2,3,4,143,39,40,144])).then((e=>ev(e.default||e))),ix=Eo(T_({loader:rx},k_)),ax=()=>t((()=>import("./pages-public-error.Cg_aYba1.js")),__vite__mapDeps([145,39,3,40,146])).then((e=>ev(e.default||e))),sx=Eo(T_({loader:ax},k_)),lx=()=>t((()=>import("./pages-public-webview.K5tP-KQk.js")),[]).then((e=>ev(e.default||e))),cx=Eo(T_({loader:lx},k_)),ux=()=>t((()=>import("./pages-coupon-list.CNob4KTD.js")),__vite__mapDeps([147,63,3,64,65,66,39,40,80,12,13,81,25,26,2,4,28,29,148])).then((e=>ev(e.default||e))),dx=Eo(T_({loader:ux},k_)),px=()=>t((()=>import("./pages-coupon-detail.DvnjgNFB.js")),__vite__mapDeps([149,142,2,3,4,143,63,64,65,66,11,12,13,14,25,26,39,40,15,27,28,29,150])).then((e=>ev(e.default||e))),fx=Eo(T_({loader:px},k_)),hx=()=>t((()=>import("./pages-chat-index.CVwtOYSx.js")),__vite__mapDeps([151,2,3,4,19,20,7,8,13,69,12,70,71,72,25,26,104,28,29,152])).then((e=>ev(e.default||e))),gx=Eo(T_({loader:hx},k_)),mx=()=>t((()=>import("./pages-pay-index.Bo_HNubV.js")),__vite__mapDeps([153,2,3,4,12,13,154])).then((e=>ev(e.default||e))),vx=Eo(T_({loader:mx},k_)),yx=()=>t((()=>import("./pages-pay-result.BAY3yoW7.js")),__vite__mapDeps([155,2,3,4,12,13,156])).then((e=>ev(e.default||e))),bx=Eo(T_({loader:yx},k_)),_x=()=>t((()=>import("./pages-pay-recharge.Cu5gRa1i.js")),__vite__mapDeps([157,2,3,4,12,13,158])).then((e=>ev(e.default||e))),xx=Eo(T_({loader:_x},k_)),Sx=()=>t((()=>import("./pages-pay-recharge-log.C4dC1Ku5.js")),__vite__mapDeps([159,39,3,40,25,26,2,4,12,13,28,29,160])).then((e=>ev(e.default||e))),Tx=Eo(T_({loader:Sx},k_)),kx=()=>t((()=>import("./pages-activity-groupon-detail.Dk4K0lCI.js")),__vite__mapDeps([161,69,12,13,3,70,53,41,42,2,4,54,39,40,16,15,162])).then((e=>ev(e.default||e))),Cx=Eo(T_({loader:kx},k_)),Ax=()=>t((()=>import("./pages-activity-groupon-order.COhZGNxq.js")),__vite__mapDeps([163,63,3,64,65,66,39,40,69,12,13,70,25,26,2,4,16,28,29,164])).then((e=>ev(e.default||e))),Ex=Eo(T_({loader:Ax},k_)),Mx=()=>t((()=>import("./pages-activity-index.DEVWYrGo.js")),__vite__mapDeps([165,65,3,66,11,12,13,14,25,26,2,4,44,15,28,29,166])).then((e=>ev(e.default||e))),Ox=Eo(T_({loader:Mx},k_)),Px=()=>t((()=>import("./pages-activity-groupon-list.CJbsUvhg.js")),__vite__mapDeps([167,11,12,13,3,14,25,26,2,4,16,168])).then((e=>ev(e.default||e))),$x=Eo(T_({loader:Px},k_)),Lx=()=>t((()=>import("./pages-activity-seckill-list.C85ewJIe.js")),__vite__mapDeps([169,3,11,12,13,14,25,26,2,4,17,170])).then((e=>ev(e.default||e))),Ix=Eo(T_({loader:Lx},k_)),Dx=()=>t((()=>import("./pages-activity-point-list.CuSaieIj.js")),__vite__mapDeps([171,11,12,13,3,14,15,39,40,25,26,18,2,4,172])).then((e=>ev(e.default||e))),jx=Eo(T_({loader:Dx},k_));function Rx(e,t){return Zr(),oi(__,null,{page:Un((()=>[ui(e,T_({},t,{ref:"page"}),null,512)])),_:1})}function Bx(e,t){return"string"==typeof e?t:e}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(A_,t)}},loader:C_,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,enablePullDownRefresh:!0,navigationBar:{titleText:"首页",type:"default"},isNVue:!1}},{path:"/pages/index/user",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(M_,t)}},loader:E_,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,enablePullDownRefresh:!0,navigationBar:{titleText:"个人中心",type:"default"},isNVue:!1}},{path:"/pages/index/category",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(P_,t)}},loader:O_,meta:{navigationBar:{titleText:"产品大纲",type:"default"},isNVue:!1}},{path:"/pages/index/login",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(L_,t)}},loader:$_,meta:{navigationBar:{titleText:"登录",type:"default"},isNVue:!1}},{path:"/pages/customerService/index",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(D_,t)}},loader:I_,meta:{navigationBar:{titleText:"客服",type:"default"},isNVue:!1}},{path:"/pages/ai/index",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(R_,t)}},loader:j_,meta:{navigationBar:{titleText:"ai",type:"default"},isNVue:!1}},{path:"/pages/index/search",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(N_,t)}},loader:B_,meta:{navigationBar:{titleText:"搜索",type:"default"},isNVue:!1}},{path:"/pages/index/page",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(q_,t)}},loader:z_,meta:{navigationBar:{titleText:"",type:"default"},isNVue:!1}},{path:"/pages/goods/index",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(F_,t)}},loader:V_,meta:{navigationBar:{titleText:"产品详情",type:"default"},isNVue:!1}},{path:"/pages/goods/groupon",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(W_,t)}},loader:H_,meta:{navigationBar:{titleText:"拼团产品",type:"default"},isNVue:!1}},{path:"/pages/goods/seckill",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Y_,t)}},loader:U_,meta:{navigationBar:{titleText:"秒杀产品",type:"default"},isNVue:!1}},{path:"/pages/goods/point",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(G_,t)}},loader:X_,meta:{navigationBar:{titleText:"积分产品",type:"default"},isNVue:!1}},{path:"/pages/goods/list",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(K_,t)}},loader:J_,meta:{navigationBar:{titleText:"产品列表",type:"default"},isNVue:!1}},{path:"/pages/goods/comment/add",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Q_,t)}},loader:Z_,meta:{navigationBar:{titleText:"评价产品",type:"default"},isNVue:!1}},{path:"/pages/goods/comment/list",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(tw,t)}},loader:ew,meta:{navigationBar:{titleText:"产品评价",type:"default"},isNVue:!1}},{path:"/pages/order/detail",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(ow,t)}},loader:nw,meta:{navigationBar:{titleText:"订单详情",type:"default"},isNVue:!1}},{path:"/pages/order/confirm",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(iw,t)}},loader:rw,meta:{navigationBar:{titleText:"确认订单",type:"default"},isNVue:!1}},{path:"/pages/order/list",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(sw,t)}},loader:aw,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"我的订单",type:"default"},isNVue:!1}},{path:"/pages/order/aftersale/apply",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(cw,t)}},loader:lw,meta:{navigationBar:{titleText:"申请售后",type:"default"},isNVue:!1}},{path:"/pages/order/aftersale/return-delivery",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(dw,t)}},loader:uw,meta:{navigationBar:{titleText:"退货物流",type:"default"},isNVue:!1}},{path:"/pages/order/aftersale/list",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(fw,t)}},loader:pw,meta:{navigationBar:{titleText:"售后列表",type:"default"},isNVue:!1}},{path:"/pages/order/aftersale/detail",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(gw,t)}},loader:hw,meta:{navigationBar:{titleText:"售后详情",type:"default"},isNVue:!1}},{path:"/pages/order/aftersale/log",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(vw,t)}},loader:mw,meta:{navigationBar:{titleText:"售后进度",type:"default"},isNVue:!1}},{path:"/pages/order/express/log",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(bw,t)}},loader:yw,meta:{navigationBar:{titleText:"物流轨迹",type:"default"},isNVue:!1}},{path:"/pages/user/info",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(ww,t)}},loader:_w,meta:{navigationBar:{titleText:"我的信息",type:"default"},isNVue:!1}},{path:"/pages/user/goods-collect",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Sw,t)}},loader:xw,meta:{navigationBar:{titleText:"我的收藏",type:"default"},isNVue:!1}},{path:"/pages/user/goods-log",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(kw,t)}},loader:Tw,meta:{navigationBar:{titleText:"我的足迹",type:"default"},isNVue:!1}},{path:"/pages/user/address/list",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Aw,t)}},loader:Cw,meta:{navigationBar:{titleText:"收货地址",type:"default"},isNVue:!1}},{path:"/pages/user/address/edit",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Mw,t)}},loader:Ew,meta:{navigationBar:{titleText:"编辑地址",type:"default"},isNVue:!1}},{path:"/pages/user/goods_details_store/index",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Pw,t)}},loader:Ow,meta:{navigationBar:{titleText:"自提门店",type:"default"},isNVue:!1}},{path:"/pages/user/wallet/money",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Lw,t)}},loader:$w,meta:{navigationBar:{titleText:"我的余额",type:"default"},isNVue:!1}},{path:"/pages/user/wallet/score",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Dw,t)}},loader:Iw,meta:{navigationBar:{titleText:"我的积分",type:"default"},isNVue:!1}},{path:"/pages/commission/index",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Rw,t)}},loader:jw,meta:{navigationBar:{titleText:"分销",type:"default"},isNVue:!1}},{path:"/pages/commission/wallet",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Nw,t)}},loader:Bw,meta:{navigationBar:{titleText:"我的佣金",type:"default"},isNVue:!1}},{path:"/pages/commission/goods",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(qw,t)}},loader:zw,meta:{navigationBar:{titleText:"推广产品",type:"default"},isNVue:!1}},{path:"/pages/commission/order",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Fw,t)}},loader:Vw,meta:{navigationBar:{titleText:"分销订单",type:"default"},isNVue:!1}},{path:"/pages/commission/team",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Ww,t)}},loader:Hw,meta:{navigationBar:{titleText:"我的团队",type:"default"},isNVue:!1}},{path:"/pages/commission/promoter",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Yw,t)}},loader:Uw,meta:{navigationBar:{titleText:"推广人排行榜",type:"default"},isNVue:!1}},{path:"/pages/commission/commission-ranking",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Gw,t)}},loader:Xw,meta:{navigationBar:{titleText:"佣金排行榜",type:"default"},isNVue:!1}},{path:"/pages/commission/withdraw",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Kw,t)}},loader:Jw,meta:{navigationBar:{titleText:"申请提现",type:"default"},isNVue:!1}},{path:"/pages/app/sign",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Qw,t)}},loader:Zw,meta:{navigationBar:{titleText:"签到中心",type:"default"},isNVue:!1}},{path:"/pages/public/setting",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(tx,t)}},loader:ex,meta:{navigationBar:{titleText:"系统设置",type:"default"},isNVue:!1}},{path:"/pages/public/richtext",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(ox,t)}},loader:nx,meta:{navigationBar:{titleText:"富文本",type:"default"},isNVue:!1}},{path:"/pages/public/faq",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(ix,t)}},loader:rx,meta:{navigationBar:{titleText:"常见问题",type:"default"},isNVue:!1}},{path:"/pages/public/error",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(sx,t)}},loader:ax,meta:{navigationBar:{titleText:"错误页面",type:"default"},isNVue:!1}},{path:"/pages/public/webview",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(cx,t)}},loader:lx,meta:{navigationBar:{titleText:"",type:"default"},isNVue:!1}},{path:"/pages/coupon/list",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(dx,t)}},loader:ux,meta:{navigationBar:{titleText:"领券中心",type:"default"},isNVue:!1}},{path:"/pages/coupon/detail",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(fx,t)}},loader:px,meta:{navigationBar:{titleText:"优惠券",type:"default"},isNVue:!1}},{path:"/pages/chat/index",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(gx,t)}},loader:hx,meta:{navigationBar:{titleText:"客服",type:"default"},isNVue:!1}},{path:"/pages/pay/index",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(vx,t)}},loader:mx,meta:{navigationBar:{titleText:"收银台",type:"default"},isNVue:!1}},{path:"/pages/pay/result",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(bx,t)}},loader:yx,meta:{navigationBar:{titleText:"支付结果",type:"default"},isNVue:!1}},{path:"/pages/pay/recharge",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(xx,t)}},loader:_x,meta:{navigationBar:{titleText:"充值余额",type:"default"},isNVue:!1}},{path:"/pages/pay/recharge-log",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Tx,t)}},loader:Sx,meta:{navigationBar:{titleText:"充值记录",type:"default"},isNVue:!1}},{path:"/pages/activity/groupon/detail",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Cx,t)}},loader:kx,meta:{navigationBar:{titleText:"拼团详情",type:"default"},isNVue:!1}},{path:"/pages/activity/groupon/order",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Ex,t)}},loader:Ax,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"我的拼团",type:"default"},isNVue:!1}},{path:"/pages/activity/index",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Ox,t)}},loader:Mx,meta:{navigationBar:{titleText:"营销产品",type:"default"},isNVue:!1}},{path:"/pages/activity/groupon/list",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx($x,t)}},loader:Px,meta:{navigationBar:{titleText:"拼团活动",type:"default"},isNVue:!1}},{path:"/pages/activity/seckill/list",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(Ix,t)}},loader:Lx,meta:{navigationBar:{titleText:"秒杀活动",type:"default"},isNVue:!1}},{path:"/pages/activity/point/list",component:{setup(){const e=Jm(),t=e&&e.$route&&e.$route.query||{};return()=>Rx(jx,t)}},loader:Dx,meta:{navigationBar:{titleText:"积分商城",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const Nx=e=>(t,n=Si())=>{!Mi&&Fo(e,t,n)},zx=Nx("onShow"),qx=Nx("onHide"),Vx=Nx("onLaunch"),Fx=Nx("onLoad"),Hx=Nx("onReady"),Wx=Nx("onBackPress"),Ux=Nx("onPageScroll"),Yx=Nx("onReachBottom"),Xx=Nx("onPullDownRefresh");var Gx=Object.prototype.toString;function Jx(e){return"[object Array]"===Gx.call(e)}function Kx(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Jx(e))for(var n=0,o=e.length;n{let n={};return e.forEach((e=>{Qx(t[e])||(n[e]=t[e])})),n},oS=e=>(e=>new Promise(((t,n)=>{let o=tS((r=e.baseURL,i=e.url,r&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(r,i):i),e.params,e.paramsSerializer);var r,i;const a={url:o,header:e.header,complete:r=>{e.fullPath=o,r.config=e,r.rawData=r.data;try{let t=!1;const n=typeof e.forcedJSONParsing;"boolean"===n?t=e.forcedJSONParsing:"object"===n&&(t=(e.forcedJSONParsing.include||[]).includes(e.method)),t&&"string"==typeof r.data&&(r.data=JSON.parse(r.data))}catch(cC){}!function(e,t,n){const o=n.config.validateStatus,r=n.statusCode;!r||o&&!o(r)?t(n):e(n)}(t,n,r)}};let s;if("UPLOAD"===e.method){delete a.header["content-type"],delete a.header["Content-Type"];let t={filePath:e.filePath,name:e.name};const n=["files","file","timeout","formData"];s=Ny({...a,...t,...nS(n,e)})}else if("DOWNLOAD"===e.method){const t=["timeout"];s=Ry({...a,...nS(t,e)})}else{const t=["data","method","timeout","dataType","responseType","withCredentials"];s=Ly({...a,...nS(t,e)})}e.getTask&&e.getTask(s,e)})))(e);function rS(){this.handlers=[]}rS.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},rS.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},rS.prototype.forEach=function(e){this.handlers.forEach((t=>{null!==t&&e(t)}))};const iS=(e,t,n)=>{let o={};return e.forEach((e=>{Qx(n[e])?Qx(t[e])||(o[e]=t[e]):o[e]=n[e]})),o},aS={baseURL:"",header:{},method:"GET",dataType:"json",paramsSerializer:null,responseType:"text",custom:{},timeout:6e4,withCredentials:!1,validateStatus:function(e){return e>=200&&e<300},forcedJSONParsing:!0};var sS=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch(s){t=function(){}}try{n=Set}catch(s){n=function(){}}try{o=Promise}catch(s){o=function(){}}function r(i,s,l,c,u){"object"==typeof s&&(l=s.depth,c=s.prototype,u=s.includeNonEnumerable,s=s.circular);var d=[],p=[],f="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===l&&(l=1/0),function i(l,h){if(null===l)return null;if(0===h)return l;var g,m;if("object"!=typeof l)return l;if(e(l,t))g=new t;else if(e(l,n))g=new n;else if(e(l,o))g=new o((function(e,t){l.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(l))g=[];else if(r.__isRegExp(l))g=new RegExp(l.source,a(l)),l.lastIndex&&(g.lastIndex=l.lastIndex);else if(r.__isDate(l))g=new Date(l.getTime());else{if(f&&Buffer.isBuffer(l))return Buffer.from?g=Buffer.from(l):(g=new Buffer(l.length),l.copy(g)),g;e(l,Error)?g=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),g=Object.create(m)):(g=Object.create(c),m=c)}if(s){var v=d.indexOf(l);if(-1!=v)return p[v];d.push(l),p.push(g)}for(var y in e(l,t)&&l.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);g.set(n,o)})),e(l,n)&&l.forEach((function(e){var t=i(e,h-1);g.add(t)})),l){Object.getOwnPropertyDescriptor(l,y)&&(g[y]=i(l[y],h-1));try{if("undefined"===Object.getOwnPropertyDescriptor(l,y).set)continue;g[y]=i(l[y],h-1)}catch(cC){if(cC instanceof TypeError)continue;if(cC instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(l);for(y=0;y-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function yT(e){return null!=e&&vT(e.length)&&!HS(e)}var bT=Object.prototype;function _T(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||bT)}function wT(e,t){for(var n=-1,o=Array(e);++n-1},nk.prototype.set=function(e,t){var n=this.__data__,o=ek(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var ok=oT(mS,"Map");function rk(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function ik(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function uk(e){var t=this.__data__=new nk(e);this.size=t.size}function dk(e,t){return e&&mT(t,UT(t),e)}uk.prototype.clear=function(){this.__data__=new nk,this.size=0},uk.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},uk.prototype.get=function(e){return this.__data__.get(e)},uk.prototype.has=function(e){return this.__data__.has(e)},uk.prototype.set=function(e,t){var n=this.__data__;if(n instanceof nk){var o=n.__data__;if(!ok||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new ik(o)}return n.set(e,t),this.size=n.size,this};var pk="object"==typeof exports&&exports&&!exports.nodeType&&exports,fk=pk&&"object"==typeof module&&module&&!module.nodeType&&module,hk=fk&&fk.exports===pk?mS.Buffer:void 0,gk=hk?hk.allocUnsafe:void 0;function mk(e,t){if(t)return e.slice();var n=e.length,o=gk?gk(n):new e.constructor(n);return e.copy(o),o}function vk(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n=0},range:function(e,t){return e>=t[0]&&e<=t[1]},rangeLength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},empty:fC,isEmpty:fC,isNumber:pC,jsonString:function(e){if("string"==typeof e)try{const t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(cC){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:function(e){return"[object Object]"===Object.prototype.toString.call(e)},array:function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},code:function(e,t=6){return new RegExp(`^\\d{${t}}$`).test(e)}};function gC(e,t=15){return+parseFloat(Number(e).toPrecision(t))}function mC(e){const t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function vC(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));const t=mC(e);return t>0?gC(Number(e)*Math.pow(10,t)):Number(e)}function yC(e){(e>Number.MAX_SAFE_INTEGER||e{i=t(i,e)})),i}function _C(...e){if(e.length>2)return bC(e,_C);const[t,n]=e,o=vC(t),r=vC(n),i=mC(t)+mC(n),a=o*r;return yC(a),a/Math.pow(10,i)}function wC(...e){if(e.length>2)return bC(e,wC);const[t,n]=e,o=vC(t),r=vC(n);return yC(o),yC(r),_C(o/r,gC(Math.pow(10,mC(n)-mC(t))))}function xC(e,t=!1){return hC.number(e)?t?`${e}px`:Number(e):/(rpx|upx)$/.test(e)?t?`${Bd(parseInt(e))}px`:Number(Bd(parseInt(e))):t?`${parseInt(e)}px`:parseInt(e)}function SC(e=30){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function TC(){return Fv().platform.toLowerCase()}function kC(){return Fv()}function CC(e=32,t=!0,n=null){const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(n=n||o.length,e)for(let i=0;i=e)return String(n);const o=e-n.length;let r=Math.ceil(o/t.length);for(;r>>=1;)t+=t,1===r&&(t+=t);return t.slice(0,o)+n});const jC={range:function(e=0,t=0,n=0){return Math.max(e,Math.min(t,Number(n)))},getPx:xC,sleep:SC,os:TC,sys:kC,random:function(e,t){if(e>=0&&t>0&&t>=e){const n=t-e+1;return Math.floor(Math.random()*n+e)}return 0},guid:CC,$parent:AC,addStyle:EC,addUnit:MC,deepClone:OC,deepMerge:PC,error:function(e){},randomArray:function(e=[]){return e.sort((()=>Math.random()-.5))},timeFormat:$C,timeFrom:function(e=null,t="yyyy-mm-dd"){null==e&&(e=Number(new Date)),10==(e=parseInt(e)).toString().length&&(e*=1e3);let n=(new Date).getTime()-e;n=parseInt(n/1e3);let o="";switch(!0){case n<300:o="刚刚";break;case n>=300&&n<3600:o=`${parseInt(n/60)}分钟前`;break;case n>=3600&&n<86400:o=`${parseInt(n/3600)}小时前`;break;case n>=86400&&n<2592e3:o=`${parseInt(n/86400)}天前`;break;default:o=!1===t?n>=2592e3&&n<31536e3?`${parseInt(n/2592e3)}个月前`:`${parseInt(n/31536e3)}年前`:$C(e,t)}return o},trim:LC,queryParams:function(e={},t=!0,n="brackets"){const o=t?"?":"",r=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");for(const i in e){const t=e[i];if(!(["",void 0,null].indexOf(t)>=0))if(t.constructor===Array)switch(n){case"indices":for(let n=0;n{r.push(`${i}[]=${e}`)}));break;case"repeat":t.forEach((e=>{r.push(`${i}=${e}`)}));break;case"comma":let e="";t.forEach((t=>{e+=(e?",":"")+t})),r.push(`${i}=${e}`)}else r.push(`${i}=${t}`)}return r.length?o+r.join("&"):""},toast:IC,type2icon:function(e="success",t=!1){-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");let n="";switch(e){case"primary":case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;default:n="checkmark-circle"}return t&&(n+="-fill"),n},priceFormat:function(e,t=0,n=".",o=","){e=`${e}`.replace(/[^0-9+-Ee.]/g,"");const r=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,a=void 0===o?",":o,s=void 0===n?".":n;let l="";l=(i?function(e,t){const n=Math.pow(10,t);let o=wC(Math.round(Math.abs(_C(e,n))),n);return e<0&&0!==o&&(o=_C(o,-1)),o}(r,i)+"":`${Math.round(r)}`).split(".");const c=/(-?\d+)(\d{3})/;for(;c.test(l[0]);)l[0]=l[0].replace(c,`$1${a}$2`);return(l[1]||"").length30?`${e}ms`:`${e}s`:/ms$/.test(e)?n:/s$/.test(e)?n>30?n:1e3*n:n},padZero:function(e){return`00${e}`.slice(-2)},getProperty:function(e,t){if(e){if("string"!=typeof t||""===t)return"";if(-1!==t.indexOf(".")){const n=t.split(".");let o=e[n[0]]||{};for(let e=1;e1;){const r=t[0];e[r]&&"object"==typeof e[r]||(e[r]={}),t.shift(),o(e[r],t,n)}else e[t[0]]=n};if("string"!=typeof t||""===t);else if(-1!==t.indexOf(".")){const r=t.split(".");o(e,r,n)}else e[t]=n},page:function(){var e;const t=Tm();return`/${(null==(e=t[t.length-1])?void 0:e.route)||""}`},pages:function(){return Tm()},test:hC,getRootUrl:DC,copyText:function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),t.className="createInput",t.style.display="none",IC("复制成功")}},RC={login:e=>oE({url:"/member/auth/login",method:"POST",data:e,custom:{showSuccess:!0,loadingMsg:"登录中",successMsg:"登录成功"}}),smsLogin:e=>oE({url:"/member/auth/sms-login",method:"POST",data:e,custom:{showSuccess:!0,loadingMsg:"登录中",successMsg:"登录成功"}}),sendSmsCode:(e,t)=>oE({url:"/member/auth/send-sms-code",method:"POST",data:{mobile:e,scene:t},custom:{loadingMsg:"发送中",showSuccess:!0,successMsg:"发送成功"}}),logout:()=>oE({url:"/member/auth/logout",method:"POST"}),refreshToken:e=>oE({url:"/member/auth/refresh-token",method:"POST",params:{refreshToken:e},custom:{loading:!1,showError:!1}}),socialAuthRedirect:(e,t)=>oE({url:"/member/auth/social-auth-redirect",method:"GET",params:{type:e,redirectUri:t},custom:{showSuccess:!0,loadingMsg:"登陆中"}}),socialLogin:(e,t,n)=>oE({url:"/member/auth/social-login",method:"POST",data:{type:e,code:t,state:n},custom:{showSuccess:!0,loadingMsg:"登陆中"}}),weixinMiniAppLogin:(e,t,n)=>oE({url:"/member/auth/weixin-mini-app-login",method:"POST",data:{phoneCode:e,loginCode:t,state:n},custom:{showSuccess:!0,loadingMsg:"登陆中",successMsg:"登录成功"}}),createWeixinMpJsapiSignature:e=>oE({url:"/member/auth/create-weixin-jsapi-signature",method:"POST",params:{url:e},custom:{showError:!1,showLoading:!1}})};let BC=!1;const NC={isWechat:()=>"micromessenger"==window.navigator.userAgent.toLowerCase().match(/micromessenger/i),isReady(e){dC.ready(e)},async init(e){if(!this.isWechat())return void jC.toast("请使用微信网页浏览器打开");const t=location.href.split("#")[0],{code:n,data:o}=await RC.createWeixinMpJsapiSignature(t);0===n&&dC.config({debug:!1,appId:o.appId,timestamp:o.timestamp,nonceStr:o.nonceStr,signature:o.signature,jsApiList:["chooseWXPay","openLocation","getLocation","updateTimelineShareData","scanQRCode"],openTagList:o.openTagList}),BC=!0,dC.error((e=>{BC=!1,console.error("微信 JSSDK 初始化失败",e)})),dC.ready((()=>{BC&&console.log("微信 JSSDK 初始化成功")})),e&&e(o)},getLocation(e){this.isReady((()=>{dC.getLocation({type:"gcj02",success:function(t){e(t)},fail:function(e){console.log("%c微信H5sdk,getLocation失败:","color:green;background:yellow")}})}))},openAddress(e){this.isReady((()=>{dC.openAddress({success:function(t){e.success&&e.success(t)},fail:function(t){e.error&&e.error(t),console.log("%c微信H5sdk,openAddress失败:","color:green;background:yellow")},complete:function(e){}})}))},scanQRCode(e){this.isReady((()=>{dC.scanQRCode({needResult:1,scanType:["qrCode","barCode"],success:function(t){e(t)},fail:function(e){console.log("%c微信H5sdk,scanQRCode失败:","color:green;background:yellow")}})}))},updateShareInfo(e,t=null){this.isReady((()=>{const n={title:e.title,desc:e.desc,link:e.link,imgUrl:e.image,success:function(e){t&&t(e)},cancel:function(e){}};dC.updateAppMessageShareData(n),dC.updateTimelineShareData(n)}))},openLocation(e,t){this.isReady((()=>{dC.openLocation({...e,success:function(e){console.log(e)}})}))},chooseImage(e){this.isReady((()=>{dC.chooseImage({count:1,sizeType:["compressed"],sourceType:["album"],success:function(t){e(t)}})}))},wxpay(e,t){this.isReady((()=>{dC.chooseWXPay({timestamp:e.timeStamp,nonceStr:e.nonceStr,package:e.packageValue,signType:e.signType,paySign:e.paySign,success:function(e){t.success&&t.success(e)},fail:function(e){t.fail&&t.fail(e)},cancel:function(e){t.cancel&&t.cancel(e)}})}))}},zC={getSocialUser:e=>oE({url:"/member/social-user/get",method:"GET",params:{type:e},custom:{showLoading:!1}}),socialBind:(e,t,n)=>oE({url:"/member/social-user/bind",method:"POST",data:{type:e,code:t,state:n},custom:{custom:{showSuccess:!0,loadingMsg:"绑定中",successMsg:"绑定成功"}}}),socialUnbind:(e,t)=>oE({url:"/member/social-user/unbind",method:"DELETE",data:{type:e,openid:t},custom:{showLoading:!1,loadingMsg:"解除绑定",successMsg:"解绑成功"}}),getSubscribeTemplateList:()=>oE({url:"/member/social-user/get-subscribe-template-list",method:"GET",custom:{showError:!1,showLoading:!1}}),getWxaQrcode:async(e,t)=>await oE({url:"/member/social-user/wxa-qrcode",method:"POST",data:{scene:t,path:e,checkPath:!1}})};async function qC(e="login"){const t=DC()+"pages/index/login?event="+e,{code:n,data:o}=await RC.socialAuthRedirect(31,t);if(0===n)return o}function VC(e){Kv("openid",e)}async function FC(){const{code:e,data:t}=await zC.getSocialUser(31);if(0===e)return t}const HC={load:async function(){NC.init()},login:async function(e="",t=""){if(e){const n=await RC.socialLogin(31,e,t);if(0===n.code)return VC(n.data.openid),n}else{const e=await qC();e&&(Kv("returnUrl",location.href),window.location=e)}return!1},bind:async function(e="",t=""){if(""===e){const e=await qC("bind");e&&(Kv("returnUrl",location.href),window.location=e)}else{const n=await zC.socialBind(31,e,t);if(0===n.code)return VC(n.data),n}return!1},unbind:async e=>{const{code:t}=await zC.socialUnbind(31,e);return 0===t},getInfo:FC,getOpenid:async function(e=!1){let t=ey("openid");if(!t&&e){const e=await FC();e&&e.openid&&(t=e.openid,VC(t))}return t},jsWxSdk:NC};let WC={};"undefined"!=typeof service&&(WC=service);const UC=WC;var YC={exports:{}},XC=YC.exports=function(){var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+v(o,2,"0")+":"+v(r,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;_[s]=t,r=s}return!o&&r&&(b=r),r||!o&&b},T=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=y;k.l=S,k.i=x,k.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(h);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e){t.$patch((t=>{t.auth=e}))}),500),KC()):t.$patch((t=>{t.auth=e}))}function KC(){KE("modal").$patch((e=>{e.auth=""}))}function ZC(){KE("modal").$patch((e=>{e.share=!0}))}function QC(){KE("modal").$patch((e=>{e.share=!1}))}function eA(){KE("modal").$patch((e=>{e.menu=!0}))}function tA(){KE("modal").$patch((e=>{e.menu=!1}))}function nA(e,t){const n=KE("modal"),o=n.lastTimer[e];if(void 0===o)return void jC.toast("短信发送事件错误");if(!(GC().unix()-o>=60))return void jC.toast("请稍后再试");if(t&&!hC.mobile(t))return void jC.toast("手机号码格式不正确");let r=-1;switch(e){case"resetPassword":r=4;break;case"changePassword":r=3;break;case"changeMobile":r=2;break;case"smsLogin":r=1}RC.sendSmsCode(t,r).then((t=>{0===t.code&&n.$patch((t=>{t.lastTimer[e]=GC().unix()}))}))}function oA(e,t=""){const n=KE("modal").lastTimer[e];if(void 0===n)return void jC.toast("短信发送事件错误");const o=cn(GC().unix()-n-60),r=o.value>=0;return r?"获取验证码":r?void 0:(setTimeout((()=>{o.value++}),1e3),-o.value.toString()+" 秒")}function rA(e){KE("modal").$patch((t=>{t.advHistory.includes(e.imgUrl)||t.advHistory.push(e.imgUrl)}))}let iA;function aA(e,t=500,n=!0){n?iA||(iA=!0,"function"==typeof e&&e(),setTimeout((()=>{iA=!1}),t)):iA||(iA=!0,setTimeout((()=>{iA=!1,"function"==typeof e&&e()}),t))}var sA={"/pages/index/index":{path:"/pages/index/index",aliasPath:"/",meta:{auth:!1,sync:!0,title:"首页",group:"商城"}},"/pages/index/user":{path:"/pages/index/user",meta:{sync:!0,title:"个人中心",group:"商城"}},"/pages/index/category":{path:"/pages/index/category",meta:{sync:!0,title:"产品大纲",group:"商城"}},"/pages/index/login":{path:"/pages/index/login"},"/pages/customerService/index":{path:"/pages/customerService/index",meta:{sync:!0,title:"客服",group:"客服"}},"/pages/ai/index":{path:"/pages/ai/index",meta:{sync:!0,title:"ai",group:"ai"}},"/pages/index/search":{path:"/pages/index/search",meta:{sync:!0,title:"搜索",group:"商城"}},"/pages/index/page":{path:"/pages/index/page",meta:{auth:!1,sync:!0,title:"自定义页面",group:"商城"}},"/pages/goods/index":{path:"/pages/goods/index",meta:{sync:!0,title:"普通产品",group:"产品"}},"/pages/goods/groupon":{path:"/pages/goods/groupon",meta:{sync:!0,title:"拼团产品",group:"产品"}},"/pages/goods/seckill":{path:"/pages/goods/seckill",meta:{sync:!0,title:"秒杀产品",group:"产品"}},"/pages/goods/point":{path:"/pages/goods/point",meta:{sync:!0,title:"积分产品",group:"产品"}},"/pages/goods/list":{path:"/pages/goods/list",meta:{sync:!0,title:"产品列表",group:"产品"}},"/pages/goods/comment/add":{path:"/pages/goods/comment/add",meta:{auth:!0}},"/pages/goods/comment/list":{path:"/pages/goods/comment/list"},"/pages/order/detail":{path:"/pages/order/detail",meta:{auth:!0,title:"订单详情"}},"/pages/order/confirm":{path:"/pages/order/confirm",meta:{auth:!0,title:"确认订单"}},"/pages/order/list":{path:"/pages/order/list",meta:{auth:!0,sync:!0,title:"用户订单",group:"订单中心"}},"/pages/order/aftersale/apply":{path:"/pages/order/aftersale/apply",meta:{auth:!0,title:"申请售后"}},"/pages/order/aftersale/return-delivery":{path:"/pages/order/aftersale/return-delivery",meta:{auth:!0,title:"退货物流"}},"/pages/order/aftersale/list":{path:"/pages/order/aftersale/list",meta:{auth:!0,sync:!0,title:"售后订单",group:"订单中心"}},"/pages/order/aftersale/detail":{path:"/pages/order/aftersale/detail",meta:{auth:!0,title:"售后详情"}},"/pages/order/aftersale/log":{path:"/pages/order/aftersale/log",meta:{auth:!0,title:"售后进度"}},"/pages/order/express/log":{path:"/pages/order/express/log",meta:{auth:!0,title:"物流轨迹"}},"/pages/user/info":{path:"/pages/user/info",meta:{auth:!0,sync:!0,title:"用户信息",group:"用户中心"}},"/pages/user/goods-collect":{path:"/pages/user/goods-collect",meta:{auth:!0,sync:!0,title:"产品收藏",group:"用户中心"}},"/pages/user/goods-log":{path:"/pages/user/goods-log",meta:{auth:!0,sync:!0,title:"浏览记录",group:"用户中心"}},"/pages/user/address/list":{path:"/pages/user/address/list",meta:{auth:!0,sync:!0,title:"地址管理",group:"用户中心"}},"/pages/user/address/edit":{path:"/pages/user/address/edit",meta:{auth:!0,title:"编辑地址"}},"/pages/user/goods_details_store/index":{path:"/pages/user/goods_details_store/index",meta:{auth:!0,sync:!0,title:"地址管理",group:"用户中心"}},"/pages/user/wallet/money":{path:"/pages/user/wallet/money",meta:{auth:!0,sync:!0,title:"用户余额",group:"用户中心"}},"/pages/user/wallet/score":{path:"/pages/user/wallet/score",meta:{auth:!0,sync:!0,title:"用户积分",group:"用户中心"}},"/pages/commission/index":{path:"/pages/commission/index",meta:{auth:!0,sync:!0,title:"分销中心",group:"分销商城"}},"/pages/commission/wallet":{path:"/pages/commission/wallet",meta:{auth:!0,sync:!0,title:"用户佣金",group:"分销中心"}},"/pages/commission/goods":{path:"/pages/commission/goods",meta:{auth:!0,sync:!0,title:"推广产品",group:"分销商城"}},"/pages/commission/order":{path:"/pages/commission/order",meta:{auth:!0,sync:!0,title:"分销订单",group:"分销商城"}},"/pages/commission/team":{path:"/pages/commission/team",meta:{auth:!0,sync:!0,title:"我的团队",group:"分销商城"}},"/pages/commission/promoter":{path:"/pages/commission/promoter",meta:{auth:!0,sync:!0,title:"推广人排行榜",group:"分销商城"}},"/pages/commission/commission-ranking":{path:"/pages/commission/commission-ranking",meta:{auth:!0,sync:!0,title:"佣金排行榜",group:"分销商城"}},"/pages/commission/withdraw":{path:"/pages/commission/withdraw",meta:{auth:!0,sync:!0,title:"申请提现",group:"分销商城"}},"/pages/app/sign":{path:"/pages/app/sign",meta:{auth:!0,sync:!0,title:"签到中心",group:"应用"}},"/pages/public/setting":{path:"/pages/public/setting",meta:{sync:!0,title:"系统设置",group:"通用"}},"/pages/public/richtext":{path:"/pages/public/richtext",meta:{sync:!0,title:"富文本",group:"通用"}},"/pages/public/faq":{path:"/pages/public/faq",meta:{sync:!0,title:"常见问题",group:"通用"}},"/pages/public/error":{path:"/pages/public/error"},"/pages/public/webview":{path:"/pages/public/webview"},"/pages/coupon/list":{path:"/pages/coupon/list",meta:{sync:!0,title:"领券中心",group:"优惠券"}},"/pages/coupon/detail":{path:"/pages/coupon/detail",meta:{auth:!1,sync:!0,title:"优惠券详情",group:"优惠券"}},"/pages/chat/index":{path:"/pages/chat/index",meta:{auth:!0,sync:!0,title:"客服",group:"客服"}},"/pages/pay/index":{path:"/pages/pay/index"},"/pages/pay/result":{path:"/pages/pay/result"},"/pages/pay/recharge":{path:"/pages/pay/recharge",meta:{auth:!0,sync:!0,title:"充值余额",group:"支付"}},"/pages/pay/recharge-log":{path:"/pages/pay/recharge-log",meta:{auth:!0,sync:!0,title:"充值记录",group:"支付"}},"/pages/activity/groupon/detail":{path:"/pages/activity/groupon/detail"},"/pages/activity/groupon/order":{path:"/pages/activity/groupon/order",meta:{auth:!0,sync:!0,title:"拼团订单",group:"营销活动"}},"/pages/activity/index":{path:"/pages/activity/index",meta:{sync:!0,title:"营销产品",group:"营销活动"}},"/pages/activity/groupon/list":{path:"/pages/activity/groupon/list",meta:{sync:!0,title:"拼团活动",group:"营销活动"}},"/pages/activity/seckill/list":{path:"/pages/activity/seckill/list",meta:{sync:!0,title:"秒杀活动",group:"营销活动"}},"/pages/activity/point/list":{path:"/pages/activity/point/list",meta:{sync:!0,title:"积分商城",group:"营销活动"}}},lA=["/pages/index/index","/pages/index/user"];const cA=(e,t={},n={redirect:!1})=>{var o;let r="",i="",a="";if(Qk(e)){if(oC(e,"http"))return void(window.location=e);if(oC(e,"action:"))return void function(e){if("showShareModal"===e.split(":")[1])ZC()}(e);if([r,i]=e.split("?"),!tC(t)){let e=dA(t);tC(i)?i=e:i+="&"+e}}jS(e)&&(r=e.url,nC(e.params)||(i=dA(e.params)));const s=sA[r];s?!(null==(o=s.meta)?void 0:o.auth)||KE("user").isLogin?(a=r,tC(i)||(a+=`?${i}`),lA.includes(r)?nm({url:a}):n.redirect?rm({url:a}):Xy({url:a})):JC():console.log(`%c跳转路径参数错误<${r||"EMPTY"}>`,"color:red;background:yellow")};function uA(...e){aA((()=>{cA(...e)}))}function dA(e){if(tC(e))return"";let t=[];for(let n in e)t.push(n+"="+e[n]);return t.join("&")}function pA(e,t={}){uA(e,t,{redirect:!0})}function fA(){let e=Tm();return e[e.length-1]}const hA={go:uA,back:function(){history.back()},hasHistory:function(){return!!history.state.back},redirect:pA,getCurrentPage:fA,getCurrentRoute:function(e=""){let t=fA();return""!==e?t.$page[e]:t.$page},error:function(e,t=""){pA("/pages/public/error",{errCode:e,errMsg:t})}},gA={bindBrokerageUser:e=>oE({url:"/trade/brokerage-user/bind",method:"PUT",data:e}),getBrokerageUser:()=>oE({url:"/trade/brokerage-user/get",method:"GET"}),getBrokerageUserSummary:()=>oE({url:"/trade/brokerage-user/get-summary",method:"GET"}),getBrokerageRecordPage:e=>{void 0===e.status&&delete e.status;const t=Object.keys(e).map((t=>encodeURIComponent(t)+"="+e[t])).join("&");return oE({url:`/trade/brokerage-record/page?${t}`,method:"GET"})},createBrokerageWithdraw:e=>oE({url:"/trade/brokerage-withdraw/create",method:"POST",data:e}),getProductBrokeragePrice:e=>oE({url:"/trade/brokerage-record/get-product-brokerage-price",method:"GET",params:{spuId:e}}),getRankByPrice:e=>{const t=`times=${e.times[0]}×=${e.times[1]}`;return oE({url:`/trade/brokerage-user/get-rank-by-price?${t}`,method:"GET"})},getBrokerageUserChildSummaryPageByPrice:e=>{const t=Object.keys(e).map((t=>encodeURIComponent(t)+"="+e[t])).join("&");return oE({url:`/trade/brokerage-user/rank-page-by-price?${t}`,method:"GET"})},getBrokerageUserRankPageByUserCount:e=>{const t=Object.keys(e).map((t=>encodeURIComponent(t)+"="+e[t])).join("&");return oE({url:`/trade/brokerage-user/rank-page-by-user-count?${t}`,method:"GET"})},getBrokerageUserChildSummaryPage:e=>oE({url:"/trade/brokerage-user/child-summary-page",method:"GET",params:e})},mA=0,vA=10,yA=20,bA=31,_A={PRICE:{type:1,name:"满减"},PERCENT:{type:2,name:"折扣"}},wA={DATE:{type:1,name:"固定日期可用"},TERM:{type:2,name:"领取之后可用"}},xA={WAIT_START:"即将开始",STARTED:"进行中",END:"已结束"},SA={NORMAL:{type:0,name:"普通"},SECKILL:{type:1,name:"秒杀"},BARGAIN:{type:2,name:"砍价"},COMBINATION:{type:3,name:"拼团"},POINT:{type:4,name:"积分商城"}},TA={EXPRESS:{type:1,name:"快递发货"},PICK_UP:{type:2,name:"用户自提"}},kA=(e,t)=>{const n=GC();return n.isBefore(e)?xA.WAIT_START:n.isAfter(t)?xA.END:xA.STARTED},CA={HOME:{name:"首页",page:"/pages/index/index",value:"1"},GOODS:{name:"普通产品页",page:"/pages/goods/index",value:"2"},GROUPON:{name:"拼团产品页",page:"/pages/goods/groupon",value:"3"},SECKILL:{name:"秒杀产品页",page:"/pages/goods/seckill",value:"4"},GROUPON_DETAIL:{name:"参与拼团页",page:"/pages/activity/groupon/detail",value:"5"},POINT:{name:"积分产品页",page:"/pages/goods/point",value:"6"}},AA=["H5","WechatOfficialAccount","WechatMiniProgram","App"],EA=["forward","poster","link"],MA=e=>{const t=KE("user");let n="0";void 0===e.shareId&&t.isLogin&&(n=t.userInfo.id);let o=CA.HOME.value;void 0!==e.page&&(o=e.page);let r="0";void 0!==e.query&&(r=e.query);let i=AA.indexOf(UA.name)+1,a="1";return void 0!==e.from&&(a=AA.indexOf(e.from)+1),`spm=${n}.${o}.${r}.${i}.${a}`},OA=e=>void 0===e?"pages/index/index":`pages/index/index?${e}`,PA=(e,t="")=>`${t}?${e}`,$A=async e=>{try{const t=e||ey("shareId");if(!t)return;const{data:n}=await gA.bindBrokerageUser({bindUserId:t});n&&ty("shareId")}catch(cC){console.error(cC)}},LA={getShareInfo:(e={title:"",desc:"",image:"",params:{}},t={type:"user"})=>{const n={title:"",desc:"",image:"",path:"",link:"",query:"",poster:t,forward:{}};n.title=e.title,n.image=QE.cdn(e.image),n.desc=e.desc;const o=KE("app").platform.share,r=MA(e.params);return n.query=r,n.link=PA(r,o.linkAddress),n.path=OA(),o.methods.includes("forward")&&(n.forward.path=OA(r)),n},updateShareInfo:e=>{"WechatOfficialAccount"===UA.name&&NC.updateShareInfo(e)},decryptSpm:e=>{const t=KE("user");let n=e.split("."),o={spm:e,shareId:0,page:"",query:{},platform:"",from:""};switch(o.shareId=n[0],n[1]){case CA.HOME.value:o.page=CA.HOME.page;break;case CA.GOODS.value:o.page=CA.GOODS.page,o.query={id:n[2]};break;case CA.GROUPON.value:o.page=CA.GROUPON.page,o.query={id:n[2]};break;case CA.SECKILL.value:o.page=CA.SECKILL.page,o.query={id:n[2]};break;case CA.GROUPON_DETAIL.value:o.page=CA.GROUPON_DETAIL.page,o.query={id:n[2]};break;case CA.POINT.value:o.page=CA.POINT.page,o.query={id:n[2]}}return o.platform=AA[n[3]-1],o.from=EA[n[4]-1],0!==o.shareId&&(Kv("shareId",o.shareId),t.isLogin&&$A(o.shareId)),o.page!==CA.HOME.page&&hA.go(o.page,o.query),o},bindBrokerageUser:$A},IA={getOrder:(e,t)=>oE({url:"/pay/order/get",method:"GET",params:{id:e,sync:t}}),submitOrder:e=>oE({url:"/pay/order/submit",method:"POST",data:e})};class DA{constructor(e,t,n){this.payment=e,this.id=n,this.orderType=t,this.payAction()}payAction(){return{WechatOfficialAccount:{wechat:()=>{this.wechatOfficialAccountPay()},alipay:()=>{this.redirectPay()},wallet:()=>{this.walletPay()},mock:()=>{this.mockPay()}},WechatMiniProgram:{wechat:()=>{this.wechatMiniProgramPay()},alipay:()=>{this.copyPayLink()},wallet:()=>{this.walletPay()},mock:()=>{this.mockPay()}},App:{wechat:()=>{this.wechatAppPay()},alipay:()=>{this.alipay()},wallet:()=>{this.walletPay()},mock:()=>{this.mockPay()}},H5:{wechat:()=>{this.wechatWapPay()},alipay:()=>{this.redirectPay()},wallet:()=>{this.walletPay()},mock:()=>{this.mockPay()}}}[aM.$platform.name][this.payment]()}prepay(e){return new Promise((async(t,n)=>{let o={id:this.id,channelCode:e,channelExtras:{}};if(["wx_pub","wx_lite"].includes(e)){const e=await aM.$platform.useProvider("wechat").getOpenid();if(!e)return void this.bindWeixin();o.channelExtras.openid=e}IA.submitOrder(o).then((e=>{0===e.code&&t(e),0!==e.code&&e.msg.indexOf("无效的openid")>=0&&(e.msg.indexOf("无效的openid")>=0||e.msg.indexOf("下单账号与支付账号不一致")>=0)&&this.bindWeixin()}))}))}async wechatOfficialAccountPay(){let{code:e,data:t}=await this.prepay("wx_pub");if(0!==e)return;const n=JSON.parse(t.displayContent);NC.wxpay(n,{success:()=>{this.payResult("success")},cancel:()=>{aM.$helper.toast("支付已手动取消")},fail:e=>{e.errMsg.indexOf("chooseWXPay:没有此SDK或暂不支持此SDK模拟")>=0?aM.$helper.toast("发起微信支付失败,原因:可能是微信开发者工具不支持,建议使用微信打开网页后支付"):this.payResult("fail")}})}async wechatWapPay(){const{error:e,data:t}=await this.prepay();if(0===e){const e=`${DC()}pages/pay/result?id=${this.id}&payment=${this.payment}&orderType=${this.orderType}`;location.href=`${t.pay_data.h5_url}&redirect_url=${encodeURIComponent(e)}`}}async redirectPay(){let{code:e,data:t}=await this.prepay("alipay_wap");0===e&&(location.href=t.displayContent)}async wechatMiniProgramPay(){let{code:e,data:t}=await this.prepay("wx_lite");if(0!==e)return;const n=JSON.parse(t.displayContent);uni.requestPayment({provider:"wxpay",timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.packageValue,signType:n.signType,paySign:n.paySign,success:e=>{this.payResult("success")},fail:e=>{"requestPayment:fail cancel"===e.errMsg?aM.$helper.toast("支付已手动取消"):this.payResult("fail")}})}async walletPay(){const{code:e}=await this.prepay("wallet");0===e&&this.payResult("success")}async mockPay(){const{code:e}=await this.prepay("mock");0===e&&this.payResult("success")}async copyPayLink(){let{code:e,data:t}=await this.prepay("alipay_wap");0===e&&rb({title:"支付宝支付",content:"复制链接到外部浏览器",confirmText:"复制链接",success:e=>{e.confirm&&aM.$helper.copyText(t.displayContent)}})}async alipay(){let e=this;const{code:t,data:n}=await this.prepay("alipay_app");0===t&&uni.requestPayment({provider:"alipay",orderInfo:n.displayContent,success:t=>{e.payResult("success")},fail:t=>{"requestPayment:fail [paymentAlipay:62001]user cancel"===t.errMsg?aM.$helper.toast("支付已手动取消"):e.payResult("fail")}})}async wechatAppPay(){let e=this,{code:t,data:n}=await this.prepay("wx_app");if(0!==t)return void aM.$helper.toast("获取支付信息失败");const o=JSON.parse(n.displayContent);uni.requestPayment({provider:"wxpay",timeStamp:o.timeStamp,nonceStr:o.nonceStr,package:o.packageValue,signType:o.signType,paySign:o.paySign,success:t=>{e.payResult("success")},fail:t=>{"requestPayment:fail cancel"===t.errMsg?aM.$helper.toast("支付已手动取消"):(aM.$helper.toast("支付失败:"+t.errMsg),e.payResult("fail"))}})}payResult(e){RA(this.id,this.orderType,e)}bindWeixin(){rb({title:"微信支付",content:"请先绑定微信再使用微信支付",success:function(e){e.confirm&&aM.$platform.useProvider("wechat").bind()}})}}function jA(e){const t=[{icon:"/static/img/shop/pay/wechat.png",title:"微信支付",value:"wechat",disabled:!0},{icon:"/static/img/shop/pay/alipay.png",title:"支付宝支付",value:"alipay",disabled:!0},{icon:"/static/img/shop/pay/wallet.png",title:"余额支付",value:"wallet",disabled:!0},{icon:"/static/img/shop/pay/apple.png",title:"Apple Pay",value:"apple",disabled:!0},{icon:"/static/img/shop/pay/wallet.png",title:"模拟支付",value:"mock",disabled:!0}],n=aM.$platform.name,o=t[0];("WechatOfficialAccount"===n&&e.includes("wx_pub")||"WechatMiniProgram"===n&&e.includes("wx_lite")||"App"===n&&e.includes("wx_app"))&&(o.disabled=!1);const r=t[1];("H5"===n&&e.includes("alipay_wap")||"WechatOfficialAccount"===n&&e.includes("alipay_wap")||"WechatMiniProgram"===n&&e.includes("alipay_wap")||"App"===n&&e.includes("alipay_app"))&&(r.disabled=!1);const i=t[2];e.includes("wallet")&&(i.disabled=!1);const a=t[4];return e.includes("mock")&&(a.disabled=!1),t}function RA(e,t,n){aM.$router.redirect("/pages/pay/result",{id:e,orderType:t,payState:n})}const BA=Fv(),NA=BA.platform;let zA="",qA="",VA="";"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)?(zA="WechatOfficialAccount",qA="wechat",VA="officialAccount"):(zA="H5",VA="h5"),tC(zA)&&hb({title:"暂不支持该平台",icon:"none"});const FA={bottom:56,height:32,left:278,right:365,top:24,width:87},HA=BA.statusBarHeight+44;const WA=function(){let e="";return e=location.href.split("?")[0],e}(),UA={name:zA,device:BA,os:NA,provider:qA,platform:VA,useProvider:(e="")=>(""===e&&(e=qA),"wechat"===e?HC:"apple"===e?UC:void 0),checkUpdate:(e=!1)=>{},checkNetwork:async function(){return"none"==(await Wv()).networkType?Promise.resolve(!1):Promise.resolve(!0)},pay:(e,t,n)=>new DA(e,t,n),share:LA,load:()=>{"wechat"===qA&&HC.load()},capsule:FA,navbar:HA,landingPage:WA,isWechatInstalled:!0};let YA={target:null,count:0};function XA(){YA.count>0&&YA.count--,0===YA.count&&vb()}const GA=new class{constructor(e={}){var t;t=e,"[object Object]"!==Object.prototype.toString.call(t)&&(e={},console.warn("设置全局参数必须接收一个Object")),this.config=sS({...aS,...e}),this.interceptors={request:new rS,response:new rS}}setConfig(e){this.config=e(this.config)}middleware(e){e=((e,t={})=>{const n=t.method||e.method||"GET";let o={baseURL:t.baseURL||e.baseURL||"",method:n,url:t.url||"",params:t.params||{},custom:{...e.custom||{},...t.custom||{}},header:Zx(e.header||{},t.header||{})};if(o={...o,...iS(["getTask","validateStatus","paramsSerializer","forcedJSONParsing"],e,t)},"DOWNLOAD"===n){const n=["timeout"];o={...o,...iS(n,e,t)}}else if("UPLOAD"===n)delete o.header["content-type"],delete o.header["Content-Type"],["files","file","filePath","name","timeout","formData"].forEach((e=>{Qx(t[e])||(o[e]=t[e])})),Qx(o.timeout)&&!Qx(e.timeout)&&(o.timeout=e.timeout);else{const n=["data","timeout","dataType","responseType","withCredentials"];o={...o,...iS(n,e,t)}}return o})(this.config,e);let t=[oS,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n}request(e={}){return this.middleware(e)}get(e,t={}){return this.middleware({url:e,method:"GET",...t})}post(e,t,n={}){return this.middleware({url:e,data:t,method:"POST",...n})}put(e,t,n={}){return this.middleware({url:e,data:t,method:"PUT",...n})}delete(e,t,n={}){return this.middleware({url:e,data:t,method:"DELETE",...n})}connect(e,t,n={}){return this.middleware({url:e,data:t,method:"CONNECT",...n})}head(e,t,n={}){return this.middleware({url:e,data:t,method:"HEAD",...n})}options(e,t,n={}){return this.middleware({url:e,data:t,method:"OPTIONS",...n})}trace(e,t,n={}){return this.middleware({url:e,data:t,method:"TRACE",...n})}upload(e,t={}){return t.url=e,t.method="UPLOAD",this.middleware(t)}download(e,t={}){return t.url=e,t.method="DOWNLOAD",this.middleware(t)}get version(){return"3.1.0"}}({baseURL:lS+"/app-api",timeout:8e3,method:"GET",header:{Accept:"text/json","Content-Type":"application/json;charset=UTF-8",platform:UA.name},withCredentials:!1,custom:{showSuccess:!1,successMsg:"",showError:!0,errorMsg:"",showLoading:!0,loadingMsg:"加载中",auth:!1}});GA.interceptors.request.use((e=>{if(e.custom.auth&&!KE("user").isLogin)return JC(),Promise.reject();e.custom.showLoading&&(YA.count++,1===YA.count&&mb({title:e.custom.loadingMsg,mask:!0,fail:()=>{vb()}}));const t=eE();return t&&(e.header.Authorization=t),e.header.terminal=(()=>{switch(Fv().uniPlatform){case"app":return bA;case"web":return yA;case"mp-weixin":return vA;default:return mA}})(),e.header.Accept="*/*",e.header["tenant-id"]="1",e}),(e=>Promise.reject(e))),GA.interceptors.response.use((e=>{var t,n;if(e.config.url.indexOf("/member/auth/")>=0&&(null==(n=null==(t=e.data)?void 0:t.data)?void 0:n.accessToken)&&KE("user").setToken(e.data.data.accessToken,e.data.data.refreshToken),e.config.custom.showLoading&&XA(),0!==e.data.code){if(401===e.data.code)return ZA(e.config);(e.data.code+"").includes("1011007")?console.error(`分销用户绑定失败,原因:${e.data.msg}`):e.config.custom.showError&&hb({title:e.data.msg||"服务器开小差啦,请稍后再试~",icon:"none",mask:!0})}return e.config.custom.showSuccess&&""!==e.config.custom.successMsg&&0===e.data.code&&hb({title:e.config.custom.successMsg,icon:"none"}),Promise.resolve(e.data)}),(e=>{var t;const n=KE("user").isLogin;let o="网络请求出错";if(void 0!==e){switch(e.statusCode){case 400:o="请求错误";break;case 401:o=n?"您的登陆已过期":"请先登录";break;case 403:o="拒绝访问";break;case 404:o="请求出错";break;case 408:o="请求超时";break;case 429:o="请求频繁, 请稍后再访问";break;case 500:o="服务器开小差啦,请稍后再试~";break;case 501:o="服务未实现";break;case 502:o="网络错误";break;case 503:o="服务不可用";break;case 504:o="网络超时";break;case 505:o="HTTP 版本不受支持"}e.errMsg.includes("timeout")&&(o="请求超时"),e.errMsg.includes("Network")&&(o=window.navigator.onLine?"服务器异常":"请检查您的网络连接")}return e&&e.config&&(!1===e.config.custom.showError&&hb({title:(null==(t=e.data)?void 0:t.msg)||o,icon:"none",mask:!0}),e.config.custom.showLoading&&XA()),!1}));let JA=[],KA=!1;const ZA=async e=>{if(e.url.indexOf("/member/auth/refresh-token")>=0)return Promise.reject("error");if(KA)return new Promise((t=>{JA.push((()=>{e.header.Authorization="Bearer "+eE(),t(nE(e))}))}));{KA=!0;const t=tE();if(!t)return QA();try{if(0!==(await RC.refreshToken(t)).code)throw new Error("刷新令牌失败");return e.header.Authorization="Bearer "+eE(),JA.forEach((e=>{e()})),JA=[],nE(e)}catch(cC){return JA.forEach((e=>{e()})),QA()}finally{JA=[],KA=!1}}},QA=()=>{const e=KE("user");return e.logout(!0),JC(),Promise.reject({code:401,msg:e.isLogin?"您的登陆已过期":"请先登录"})},eE=()=>ey("token"),tE=()=>ey("refresh-token"),nE=e=>GA.middleware(e),oE=nE,rE={getUsedDiyTemplate:()=>oE({url:"/promotion/diy-template/used",method:"GET",custom:{showError:!1,showLoading:!1}}),getDiyTemplate:e=>oE({url:"/promotion/diy-template/get",method:"GET",params:{id:e},custom:{showError:!1,showLoading:!1}}),getDiyPage:e=>oE({url:"/promotion/diy-page/get",method:"GET",params:{id:e}})}; /*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT */ let iE;const aE=e=>iE=e,sE=Symbol();function lE(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var cE,uE;(uE=cE||(cE={})).direct="direct",uE.patchObject="patch object",uE.patchFunction="patch function";const dE=()=>{};function pE(e,t,n,o=dE){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};var i;return!n&&Ve()&&(i=r,Be&&Be.cleanups.push(i)),r}function fE(e,...t){e.slice().forEach((e=>{e(...t)}))}const hE=e=>e();function gE(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];lE(r)&&lE(o)&&e.hasOwnProperty(n)&&!ln(o)&&!Jt(o)?e[n]=gE(r,o):e[n]=o}return e}const mE=Symbol();const{assign:vE}=Object;function yE(e,t,n={},o,r,i){let a;const s=vE({actions:{}},n),l={deep:!0};let c,u,d,p=[],f=[];const h=o.state.value[e];let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:cE.patchFunction,storeId:e,events:d}):(gE(o.state.value[e],t),n={type:cE.patchObject,payload:t,storeId:e,events:d});const r=g=Symbol();Pn().then((()=>{g===r&&(c=!0)})),u=!0,fE(p,n,o.state.value[e])}i||h||(o.state.value[e]={}),cn({});const v=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{vE(e,t)}))}:dE;function y(t,n){return function(){aE(o);const r=Array.from(arguments),i=[],a=[];function s(e){i.push(e)}function l(e){a.push(e)}let c;fE(f,{args:r,name:t,store:b,after:s,onError:l});try{c=n.apply(this&&this.$id===e?this:b,r)}catch(u){throw fE(a,u),u}return c instanceof Promise?c.then((e=>(fE(i,e),e))).catch((e=>(fE(a,e),Promise.reject(e)))):(fE(i,c),c)}}const b=Ut({_p:o,$id:e,$onAction:pE.bind(null,f),$patch:m,$reset:v,$subscribe(t,n={}){const r=pE(p,t,n.detached,(()=>i())),i=a.run((()=>so((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:c)&&t({storeId:e,type:cE.direct,events:d},o)}),vE({},l,n))));return r},$dispose:function(){a.stop(),p=[],f=[],o._s.delete(e)}});o._s.set(e,b);const _=(o._a&&o._a.runWithContext||hE)((()=>o._e.run((()=>(a=qe()).run(t)))));for(const S in _){const t=_[S];if(ln(t)&&(!ln(x=t)||!x.effect)||Jt(t))i||(!h||lE(w=t)&&w.hasOwnProperty(mE)||(ln(t)?t.value=h[S]:gE(t,h[S])),o.state.value[e][S]=t);else if("function"==typeof t){const e=y(S,t);_[S]=e,s.actions[S]=t}}var w,x;return vE(b,_),vE(en(b),_),Object.defineProperty(b,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{vE(t,e)}))}}),o._p.forEach((e=>{vE(b,a.run((()=>e({store:b,app:o._a,pinia:o,options:s}))))})),h&&i&&n.hydrate&&n.hydrate(b.$state,h),c=!0,u=!0,b}function bE(e,t,n){let o,r;const i="function"==typeof t;function a(e,n){(e=e||(!!(xi||Fn||Tr)?Cr(sE,null):null))&&aE(e),(e=iE)._s.has(o)||(i?yE(o,t,r,e):function(e,t,n,o){const{state:r,actions:i,getters:a}=t,s=n.state.value[e];let l;l=yE(e,(function(){s||(n.state.value[e]=r?r():{});const t=mn(n.state.value[e]);return vE(t,i,Object.keys(a||{}).reduce(((t,o)=>(t[o]=tn(Ii((()=>{aE(n);const t=n._s.get(e);return a[o].call(t,t)}))),t)),{}))}),t,n,0,!0)}(o,r,e));return e._s.get(o)}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),a.$id=o,a}const _E=e=>oE({url:"/trade/cart/add",method:"POST",data:e,custom:{showSuccess:!0,successMsg:"已添加到购物车~"}}),wE=e=>oE({url:"/trade/cart/update-count",method:"PUT",data:e}),xE=e=>oE({url:"/trade/cart/update-selected",method:"PUT",data:e}),SE=e=>oE({url:"/trade/cart/delete",method:"DELETE",params:{ids:e}}),TE=()=>oE({url:"/trade/cart/list",method:"GET",custom:{showLoading:!1,auth:!0}}),kE=bE({id:"cart",state:()=>({list:[],selectedIds:[],isAllSelected:!1,totalPriceSelected:0}),actions:{async getList(){const{data:e,code:t}=await TE();0===t&&(this.list=e.validList,this.selectedIds=[],this.isAllSelected=!0,this.totalPriceSelected=0,this.list.forEach((e=>{e.selected?(this.selectedIds.push(e.id),this.totalPriceSelected+=e.count*e.sku.price):this.isAllSelected=!1})))},async add(e){const{code:t}=await _E({skuId:e.id,count:e.goods_num});0===t&&await this.getList()},async update(e){const{code:t}=await wE({id:e.goods_id,count:e.goods_num});0===t&&await this.getList()},async delete(e){let t="";t=Array.isArray(e)?e.join(","):e;const{code:n}=await SE(t);0===n&&await this.getList()},async selectSingle(e){const{code:t}=await xE({ids:[e],selected:!this.selectedIds.includes(e)});0===t&&await this.getList()},async selectAll(e){const{code:t}=await xE({ids:this.list.map((e=>e.id)),selected:e});0===t&&await this.getList()},emptyList(){this.list=[],this.selectedIds=[],this.isAllSelected=!0,this.totalPriceSelected=0}},persist:{enabled:!0,strategies:[{key:"cart-store"}]}}),CE=Object.freeze(Object.defineProperty({__proto__:null,default:kE},Symbol.toStringTag,{value:"Module"})),AE={getUserInfo:()=>oE({url:"/member/user/get",method:"GET",custom:{showLoading:!1,auth:!0}}),updateUser:e=>oE({url:"/member/user/update",method:"PUT",data:e,custom:{auth:!0,showSuccess:!0,successMsg:"更新成功"}}),updateUserMobile:e=>oE({url:"/member/user/update-mobile",method:"PUT",data:e,custom:{loadingMsg:"验证中",showSuccess:!0,successMsg:"修改成功"}}),updateUserMobileByWeixin:e=>oE({url:"/member/user/update-mobile-by-weixin",method:"PUT",data:{code:e},custom:{showSuccess:!0,loadingMsg:"获取中",successMsg:"修改成功"}}),updateUserPassword:e=>oE({url:"/member/user/update-password",method:"PUT",data:e,custom:{loadingMsg:"验证中",showSuccess:!0,successMsg:"修改成功"}}),resetUserPassword:e=>oE({url:"/member/user/reset-password",method:"PUT",data:e,custom:{loadingMsg:"验证中",showSuccess:!0,successMsg:"修改成功"}})},EE={getPayWallet:()=>oE({url:"/pay/wallet/get",method:"GET",custom:{showLoading:!1,auth:!0}}),getWalletTransactionPage:e=>{const t=Object.keys(e).map((t=>encodeURIComponent(t)+"="+e[t])).join("&");return oE({url:`/pay/wallet-transaction/page?${t}`,method:"GET"})},getWalletTransactionSummary:e=>{const t=`createTime=${e.createTime[0]}&createTime=${e.createTime[1]}`;return oE({url:`/pay/wallet-transaction/get-summary?${t}`,method:"GET"})},getWalletRechargePackageList:()=>oE({url:"/pay/wallet-recharge-package/list",method:"GET",custom:{showError:!1,showLoading:!1}}),createWalletRecharge:e=>oE({url:"/pay/wallet-recharge/create",method:"POST",data:e}),getWalletRechargePage:e=>oE({url:"/pay/wallet-recharge/page",method:"GET",params:e,custom:{showError:!1,showLoading:!1}})},ME={settlementOrder:e=>{const t={...e};e.couponId>0||delete t.couponId,e.addressId>0||delete t.addressId,e.pickUpStoreId>0||delete t.pickUpStoreId,aC(e.receiverName)&&delete t.receiverName,aC(e.receiverMobile)&&delete t.receiverMobile,e.combinationActivityId>0||delete t.combinationActivityId,e.combinationHeadId>0||delete t.combinationHeadId,e.seckillActivityId>0||delete t.seckillActivityId,e.pointActivityId>0||delete t.pointActivityId,e.deliveryType>0||delete t.deliveryType,delete t.items;for(let o=0;oe+"="+t[e])).join("&");return oE({url:`/trade/order/settlement?${n}`,method:"GET",custom:{showError:!0,showLoading:!0}})},getSettlementProduct:e=>oE({url:"/trade/order/settlement-product",method:"GET",params:{spuIds:e},custom:{showLoading:!1,showError:!1}}),createOrder:e=>oE({url:"/trade/order/create",method:"POST",data:e}),getOrderDetail:(e,t)=>oE({url:"/trade/order/get-detail",method:"GET",params:{id:e,sync:t},custom:{showLoading:!1}}),getOrderPage:e=>oE({url:"/trade/order/page",method:"GET",params:e,custom:{showLoading:!1}}),receiveOrder:e=>oE({url:"/trade/order/receive",method:"PUT",params:{id:e}}),cancelOrder:e=>oE({url:"/trade/order/cancel",method:"DELETE",params:{id:e}}),deleteOrder:e=>oE({url:"/trade/order/delete",method:"DELETE",params:{id:e}}),getOrderExpressTrackList:e=>oE({url:"/trade/order/get-express-track-list",method:"GET",params:{id:e}}),getOrderCount:()=>oE({url:"/trade/order/get-count",method:"GET",custom:{showLoading:!1,auth:!0}}),createOrderItemComment:e=>oE({url:"/trade/order/item/create-comment",method:"POST",data:e})},OE={getCouponTemplateListByIds:e=>oE({url:"/promotion/coupon-template/list-by-ids",method:"GET",params:{ids:e},custom:{showLoading:!1,showError:!1}}),getCouponTemplateList:(e,t,n)=>oE({url:"/promotion/coupon-template/list",method:"GET",params:{spuId:e,productScope:t,count:n}}),getCouponTemplatePage:e=>oE({url:"/promotion/coupon-template/page",method:"GET",params:e}),getCouponTemplate:e=>oE({url:"/promotion/coupon-template/get",method:"GET",params:{id:e}}),getCouponPage:e=>oE({url:"/promotion/coupon/page",method:"GET",params:e}),takeCoupon:e=>oE({url:"/promotion/coupon/take",method:"POST",data:{templateId:e},custom:{auth:!0,showLoading:!0,loadingMsg:"领取中",showSuccess:!0,successMsg:"领取成功"}}),getCoupon:e=>oE({url:"/promotion/coupon/get",method:"GET",params:{id:e}}),getUnusedCouponCount:()=>oE({url:"/promotion/coupon/get-unused-count",method:"GET",custom:{showLoading:!1,auth:!0}})},PE={avatar:"",nickname:"",gender:0,mobile:"",point:0},$E={balance:0},LE={unusedCouponCount:0,orderCount:{allCount:0,unpaidCount:0,undeliveredCount:0,deliveredCount:0,uncommentedCount:0,afterSaleCount:0}},IE=bE({id:"user",state:()=>({userInfo:Kk(PE),userWallet:Kk($E),isLogin:!!ey("token"),numData:Zk(LE),lastUpdateTime:0}),actions:{async getInfo(){const{code:e,data:t}=await AE.getUserInfo();if(0===e)return this.userInfo=t,Promise.resolve(t)},async getWallet(){const{code:e,data:t}=await EE.getPayWallet();0===e&&(this.userWallet=t)},getNumData(){ME.getOrderCount().then((e=>{0===e.code&&(this.numData.orderCount=e.data)})),OE.getUnusedCouponCount().then((e=>{0===e.code&&(this.numData.unusedCouponCount=e.data)}))},setToken(e="",t=""){return""===e?(this.isLogin=!1,ty("token"),ty("refresh-token")):(this.isLogin=!0,Kv("token",e),Kv("refresh-token",t),this.loginAfter()),this.isLogin},async updateUserData(){if(!this.isLogin)return void this.resetUserData();const e=(new Date).getTime();return this.lastUpdateTime+5e3>e?void 0:(this.lastUpdateTime=e,await this.getInfo(),this.getWallet(),this.getNumData(),this.userInfo)},resetUserData(){this.setToken(),this.userInfo=Kk(PE),this.userWallet=Kk($E),this.numData=Zk(LE),kE().emptyList()},async loginAfter(){await this.updateUserData(),kE().getList(),LA.getShareInfo(),BE().platform.bind_mobile&&!this.userInfo.mobile&&JC("changeMobile"),LA.bindBrokerageUser()},async logout(){return this.resetUserData(),!this.isLogin}},persist:{enabled:!0,strategies:[{key:"user-store"}]}}),DE=Object.freeze(Object.defineProperty({__proto__:null,default:IE},Symbol.toStringTag,{value:"Module"})),jE=bE({id:"sys",state:()=>({theme:"",mode:"light",modeAuto:!1,fontSize:1}),getters:{},actions:{setTheme(e=""){var t;this.theme=""===e?(null==(t=BE().template)?void 0:t.basic.theme)||"orange":e}},persist:{enabled:!0,strategies:[{key:"sys-store"}]}}),RE=Object.freeze(Object.defineProperty({__proto__:null,default:jE},Symbol.toStringTag,{value:"Module"})),BE=bE({id:"app",state:()=>({info:{name:"",logo:"",version:"",copyright:"",copytime:"",cdnurl:"",filesystem:""},platform:{share:{methods:[],forwardInfo:{},posterInfo:{},linkAddress:""},bind_mobile:0},template:{basic:{},home:{style:{},data:[]},user:{style:{},data:[]}},shareInfo:{},has_wechat_trade_managed:0}),actions:{async init(e=null){await UA.checkNetwork()||hA.error("NetworkError"),await NE(this.template,e);{this.info={name:"江苏赢伟达资产管理有限公司",logo:"https://static.iocoder.cn/ruoyi-vue-pro-logo.png",version:"2.4.0",copyright:"全部开源,个人与企业可 100% 免费使用",copytime:"Copyright© 2018-2024",cdnurl:"https://file.sheepjs.com",filesystem:"qcloud"},this.platform={share:{methods:["forward","poster","link"],linkAddress:"http://127.0.0.1:3000",posterInfo:{user_bg:"/static/img/shop/config/user-poster-bg.png",goods_bg:"/static/img/shop/config/goods-poster-bg.png",groupon_bg:"/static/img/shop/config/groupon-poster-bg.png"},forwardInfo:{title:"",image:"",desc:""}},bind_mobile:0},this.has_wechat_trade_managed=0;jE().setTheme();const e=IE();return e.isLogin&&e.loginAfter(),Promise.resolve(!0)}}},persist:{enabled:!0,strategies:[{key:"app-store"}]}}),NE=async(e,t)=>{var n;const{data:o}=t?await rE.getDiyTemplate(t):await rE.getUsedDiyTemplate();if(!o)return void hA.error("TemplateError");const r=null==(n=null==o?void 0:o.property)?void 0:n.tabBar;r&&(e.basic.tabbar=r,(null==r?void 0:r.theme)&&(e.basic.theme=null==r?void 0:r.theme)),e.home=null==o?void 0:o.home,e.user=null==o?void 0:o.user},zE=Object.freeze(Object.defineProperty({__proto__:null,default:BE},Symbol.toStringTag,{value:"Module"})),qE=bE({id:"modal",state:()=>({auth:"",share:!1,menu:!1,advHistory:[],lastTimer:{smsLogin:0,changeMobile:0,resetPassword:0,changePassword:0}}),persist:{enabled:!0,strategies:[{key:"modal-store",paths:["lastTimer","advHistory"]}]}}),VE=Object.freeze(Object.defineProperty({__proto__:null,default:qE},Symbol.toStringTag,{value:"Module"}));var FE,HE;const WE="undefined"==typeof uni||["web","h5",void 0].includes(null==(HE=null==(FE=null==uni?void 0:Fv())?void 0:FE.uniPlatform)?void 0:HE.toLocaleLowerCase()),UE=(e,t,n)=>{const o=e.storage,r=e.key||t.$id,i=WE||(null==n?void 0:n.enforceCustomStorage);if(e.paths){const n=e.paths.reduce(((e,n)=>(e[n]=t.$state[n],e)),{});i&&o?o.setItem(r,JSON.stringify(n)):Zv({key:r,data:JSON.stringify(n)})}else i&&o?o.setItem(r,JSON.stringify(t.$state)):Zv({key:r,data:JSON.stringify(t.$state)})};var YE=({options:e,store:t})=>{var n,o,r,i,a,s;if(null==(n=e.persist)?void 0:n.enabled){const n=[{key:t.$id,storage:(null==(o=e.persist)?void 0:o.H5Storage)||(null==window?void 0:window.sessionStorage)}],l=(null==(i=null==(r=e.persist)?void 0:r.strategies)?void 0:i.length)?null==(a=e.persist)?void 0:a.strategies:n;l.forEach((n=>{var o,r;const i=n.storage||(null==(o=e.persist)?void 0:o.H5Storage)||(null==window?void 0:window.sessionStorage),a=n.key||t.$id;let s;s=WE||(null==(r=e.persist)?void 0:r.enforceCustomStorage)?i.getItem(a):ey(a),s&&(t.$patch(JSON.parse(s)),UE(n,t,e.persist))})),t.$subscribe((()=>{l.forEach((n=>{UE(n,t,e.persist)}))}),{detached:!!(null==(s=e.persist)?void 0:s.detached)})}};const XE=Object.assign({"./app.js":zE,"./cart.js":CE,"./modal.js":VE,"./sys.js":RE,"./user.js":DE}),GE={};Object.keys(XE).forEach((e=>{GE[e.replace(/(.*\/)*([^.]+).*/gi,"$2")]=XE[e].default}));const JE=e=>{const t=function(){const e=qe(!0),t=e.run((()=>cn({})));let n=[],o=[];const r=tn({install(e){aE(r),r._a=e,e.provide(sE,r),e.config.globalProperties.$pinia=r,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}();t.use(YE),e.use(t)},KE=e=>GE[e](),ZE=(e="",t="")=>e?0===e.indexOf("http")?e:(""===t&&(t=KE("app").info.cdnurl),t+e):"",QE={cdn:ZE,thumb:(e="",t)=>function(e,t){const n=KE("app").info.filesystem;if("public"===n)return e;let o=t.width||"200",r=t.height||"200",i=t.mode||"lfit",a=t.quality||90,s=t.gravity||"center",l="",c="",u="",d=o+"x"+r;switch(n){case"aliyun":s||"center"==s||(i="mfit",c="/crop,g_"+eM("aliyun",s)+",w_"+o+",h_"+r),a>0&&a<100&&(u="/quality,q_"+a),l="x-oss-process=image/resize,m_"+i+",w_"+o+",h_"+r,l+=c+u;break;case"qcloud":let e="thumbnail";switch(("fill"==i||!s&&"center"!=s)&&(e="crop",i="fill",c="/gravity/"+eM("qcloud",s)),a>0&&a<100&&(u="/rquality/"+a),i){case"lfit":d+=">";break;case"mfit":d="!"+d+"r";case"fill":break;case"pad":d+="/pad/1";break;case"fixed":d+="!"}l="imageMogr2/"+e+"/"+d+c+u;break;case"qiniu":switch(("fill"==i||!s&&"center"!=s)&&(i="mfit",c="/gravity/"+eM("qiniu",s)+"/crop/"+d),a>0&&a<100&&(u="/quality/"+a),i){case"lfit":case"pad":d+=">";break;case"mfit":d="!"+d+"r";break;case"fill":break;case"fixed":d+="!"}l="imageMogr2/thumbnail/"+d+c+u}return e+"?"+l}(e=ZE(e),t),static:(e="",t="")=>(""===t&&(t=dS),"local"!==t&&(e=ZE(e,t)),e),css:(e="",t="")=>(""===t&&(t=dS),"local"!==t&&(e=ZE(e,t)),`url(${e})`)};function eM(e,t){return{aliyun:{north_west:"nw",north:"north",north_east:"ne",west:"west",center:"center",east:"east",south_west:"sw",south:"south",south_east:"se"},qcloud:{northwest:"nw",north:"north",northeast:"ne",west:"west",center:"center",east:"east",southwest:"sw",south:"south",southeast:"se"},qiniu:{NorthWest:"nw",North:"north",NorthEast:"ne",West:"west",Center:"center",East:"east",SouthWest:"sw",South:"south",SouthEast:"se"}}[e][t]}var tM={exports:{}};const nM=lC(tM.exports=function(e,t,n){e=e||{};var o=t.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,n,r){return o.fromToBase(e,t,n,r)}n.en.relativeTime=r,o.fromToBase=function(t,o,i,a,s){for(var l,c,u,d=i.$locale().relativeTime||r,p=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=p.length,h=0;h0,m<=g.r||!g.r){m<=1&&h>0&&(g=p[h-1]);var v=d[g.l];s&&(m=s(""+m)),c="string"==typeof v?v.replace("%d",m):v(m,o,g.l,u);break}}if(o)return c;var y=u?d.future:d.past;return"function"==typeof y?y(c):y.replace("%s",c)},o.to=function(e,t){return i(e,t,this,!0)},o.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?n.utc():n()};o.toNow=function(e){return this.to(a(this),e)},o.fromNow=function(e){return this.from(a(this),e)}});var oM={exports:{}};const rM=lC(oM.exports=function(){var e,t,n=1e3,o=6e4,r=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,l=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:l,days:i,hours:r,minutes:o,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof y},p=function(e,t,n){return new y(e,n,t.$l)},f=function(e){return t.p(e)+"s"},h=function(e){return e<0},g=function(e){return h(e)?Math.ceil(e):Math.floor(e)},m=function(e){return Math.abs(e)},v=function(e,t){return e?h(e)?{negative:!0,format:""+m(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},y=function(){function h(e,t,n){var o=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*u[f(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){o.$d[f(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var r=e.match(c);if(r){var i=r.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var m=h.prototype;return m.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},m.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/s),e%=s,this.$d.months=g(e/l),e%=l,this.$d.days=g(e/i),e%=i,this.$d.hours=g(e/r),e%=r,this.$d.minutes=g(e/o),e%=o,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},m.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var o=v(n,"D"),r=v(this.$d.hours,"H"),i=v(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=v(a,"S"),l=e.negative||t.negative||o.negative||r.negative||i.negative||s.negative,c=r.format||i.format||s.format?"T":"",u=(l?"-":"")+"P"+e.format+t.format+o.format+c+r.format+i.format+s.format;return"P"===u||"-P"===u?"P0D":u},m.toJSON=function(){return this.toISOString()},m.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",o={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(e,t){return t||String(o[e])}))},m.as=function(e){return this.$ms/u[f(e)]},m.get=function(e){var t=this.$ms,n=f(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?g(t/u[n]):this.$d[n],t||0},m.add=function(e,t,n){var o;return o=t?e*u[f(t)]:d(e)?e.$ms:p(e,this).$ms,p(this.$ms+o*(n?-1:1),this)},m.subtract=function(e,t){return this.add(e,t,!0)},m.locale=function(e){var t=this.clone();return t.$l=e,t},m.clone=function(){return p(this.$ms,this)},m.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},m.valueOf=function(){return this.asMilliseconds()},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},h}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,o,r){e=r,t=r().$utils(),r.duration=function(e,t){var n=r.locale();return p(e,{$l:n},t)},r.isDuration=d;var i=o.prototype.add,a=o.prototype.subtract;o.prototype.add=function(e,t){return d(e)?b(this,e,1):i.bind(this)(e,t)},o.prototype.subtract=function(e,t){return d(e)?b(this,e,-1):a.bind(this)(e,t)}}}());!function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};n.default.locale(o,null,!0)}(XC),GC.locale("zh-cn"),GC.extend(nM),GC.extend(rM);async function iM(){await KE("app").init(),UA.load()}const aM={$store:KE,$url:QE,$router:hA,$platform:UA,$helper:jC,$zIndex:{toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965,popover:960}},sM={__name:"App",setup:e=>(Vx((()=>{setTimeout((()=>{Mb()}),200),iM()})),zx((e=>{})),()=>{})};Qm(sM,{init:Km,setup(e){const t=Kg(),n=()=>{var n;n=e,Object.keys(Lp).forEach((e=>{Lp[e].forEach((t=>{Fo(e,t,n)}))}));const{onLaunch:o,onShow:r,onPageNotFound:i,onError:a}=e,s=function({path:e,query:t}){return c(Ef,{path:e,query:t}),c(Mf,Ef),c({},Ef)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:Te(t.query)});if(o&&I(o,s),r&&I(r,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};i&&I(i,e)}a&&(e.appContext.config.errorHandler=e=>{I(a,e)})};return Cr(Qs).isReady().then(n),Uo((()=>{window.addEventListener("resize",Ae(tv,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",nv),document.addEventListener("visibilitychange",ov),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{i_.emit("onThemeChange",{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(Zr(),oi(Bb));e.setup=(e,o)=>{const r=t&&t(e,o);return m(r)?n:r},e.render=n}}),function(){const e=Ia(sM);return JE(e),{app:e}}().app.use(Vm).mount("#app");export{LA as $,ny as A,nm as B,Eg as C,cn as D,wb as E,Ur as F,ci as G,Kv as H,rb as I,ty as J,Au as K,rE as L,Cp as M,nr as N,Tg as O,xg as P,rA as Q,Pa as R,_g as S,Wx as T,CC as U,le as V,di as W,Uo as X,ME as Y,SA as Z,ia as _,Xx as a,Ny as a$,_A as a0,wA as a1,OE as a2,hb as a3,Kn as a4,ZC as a5,JC as a6,so as a7,oE as a8,tC as a9,_u as aA,io as aB,py as aC,AE as aD,sC as aE,Wd as aF,ig as aG,Zh as aH,Hy as aI,GC as aJ,EE as aK,xl as aL,iy as aM,Pp as aN,Pn as aO,EC as aP,AC as aQ,PC as aR,SC as aS,$g as aT,Jm as aU,hC as aV,RC as aW,KC as aX,nA as aY,oA as aZ,mb as a_,CA as aa,kA as ab,xA as ac,aA as ad,fo as ae,na as af,eA as ag,xb as ah,Wo as ai,Xd as aj,sv as ak,Si as al,Kk as am,Oy as an,Yx as ao,Hf as ap,Su as aq,Ff as ar,Yy as as,pg as at,Fd as au,TA as av,ln as aw,dg as ax,n_ as ay,Ah as az,Sb as b,mk as b$,lS as b0,uS as b1,pS as b2,vb as b3,Fv as b4,Bd as b5,ay as b6,Ry as b7,zd as b8,fp as b9,yT as bA,fT as bB,_T as bC,mT as bD,UT as bE,gT as bF,GT as bG,ik as bH,ak as bI,vS as bJ,CT as bK,sk as bL,TS as bM,lk as bN,pT as bO,qS as bP,ck as bQ,Jk as bR,Rk as bS,Tk as bT,Dk as bU,PT as bV,uk as bW,NT as bX,vT as bY,AS as bZ,dk as b_,pp as ba,qf as bb,zC as bc,Nb as bd,QC as be,tA as bf,Xy as bg,am as bh,rm as bi,kg as bj,ES as bk,QE as bl,bp as bm,vg as bn,CS as bo,PS as bp,FS as bq,rT as br,aT as bs,jS as bt,mS as bu,sT as bv,kS as bw,lT as bx,cT as by,dT as bz,Ii as c,Vk as c0,HS as c1,Hk as c2,LT as c3,vk as c4,VS as c5,Qk as c6,RT as c7,US as c8,AT as c9,Np as cA,$p as cB,Ip as cC,lg as cD,gA as cE,Hx as cF,ry as cG,iM as cH,uv as cI,Vd as cJ,Hd as cK,aC as cL,fS as cM,tE as cN,Go as cO,mn as cP,IA as cQ,jA as cR,RA as cS,qx as cT,nT as ca,kk as cb,WT as cc,wT as cd,DS as ce,LS as cf,Ek as cg,Zk as ch,Uk as ci,nC as cj,Xk as ck,oC as cl,yk as cm,MC as cn,xC as co,kC as cp,TC as cq,$y as cr,Tm as cs,uy as ct,zp as cu,qp as cv,Ly as cw,oy as cx,Fy as cy,Hv as cz,Ux as d,Qn as e,oi as f,hi as g,Mb as h,Lg as i,Zr as j,ui as k,ni as l,tr as m,zx as n,Fx as o,fi as p,sh as q,Bx as r,aM as s,Y as t,fn as u,Ut as v,Un as w,ae as x,se as y,ey as z};