function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["assets/pages-login-login.BNhTzXgq.js","assets/nocheck.KbQOA3WK.js","assets/checked.cu3s1pHH.js","assets/base64.DbTIYEg2.js","assets/_commonjsHelpers.lGe4XDVY.js","assets/login-D6Pmdc9j.css","assets/pages-tab-index.DER3nP2q.js","assets/uni-icons.C1BHJOhS.js","assets/uni-icons-pnNqpnb9.css","assets/index-Da9LT34f.css","assets/customNav-DAV3r2OS.css","assets/pages-task-todotask.CIthLexT.js","assets/todotask-D87YuC5h.css","assets/pages-tab-office.D9QLcaJb.js","assets/office-CL2F7U0O.css","assets/pages-tab-my.k79wZG1d.js","assets/my-CSPoiL7o.css","assets/pages-task-index.DSY475P0.js","assets/tasklistCom.D51xlks4.js","assets/tasklistCom-Bs01sPUp.css","assets/index-DjmcDVff.css","assets/pages-task-handle.DRrXjoUu.js","assets/uni-popup.DERhYTfl.js","assets/uni-popup-D2ifNXOl.css","assets/customNav.ByZDnwTS.js","assets/handle-DYXkkReO.css","assets/pages-talk-message_list.6372c515.js","assets/system.CW-um8Go.js","assets/message_list-BA8cHr_0.css","assets/pages-talk-conversation.D7byETr5.js","assets/conversation-Ck9QAie6.css","assets/pages-talk-system.B_tX-kaZ.js","assets/system-CuiNgsW2.css","assets/pages-document-index.BrkzKRzt.js","assets/search.CZFzeEJF.js","assets/index-DHZB_9cW.css","assets/pages-document-detail.C4cITdx4.js","assets/detail-BAq0pKfC.css","assets/pages-document-onlinePreview.BK6fgFt2.js","assets/pages-meeting-index.0wqQuLEo.js","assets/index-Ddj58FqJ.css","assets/pages-meeting-detail.DGz5jZIy.js","assets/detail-CUmEXOhJ.css","assets/pages-leave-application.C9H4Fv9s.js","assets/application-CS1Y9j-U.css","assets/pages-checkin-index.CeZ1Xtbt.js","assets/index-D6qSyn8S.css","assets/pages-useredit-useredit.qCxKV7Zu.js","assets/useredit-CTqsB1CA.css","assets/pages-useredit-address.BVvsxXls.js","assets/address-2tVeKAb3.css","assets/pages-useredit-add_address.CJr6IdFt.js","assets/add_address-D8b0bPU3.css","assets/pages-useredit-addressbook.D0ON0YPy.js","assets/addressbook-DPAuWPYU.css","assets/pages-safe-manage.BYoMAgLM.js","assets/safeCom.B7Xuh5b-.js","assets/safeCom-DXKLxCeo.css","assets/manage-DTNL5uOO.css","assets/pages-product-index.DCow2AxC.js","assets/index-C6DHPs0m.css","assets/pages-userlist-index.D43mOlR8.js","assets/index-BGtm4gsy.css","assets/pages-safe-detail.GFg-POZa.js","assets/detail-CdDv_Zlj.css","assets/pages-zhiban-index.B6INNCuV.js","assets/index-Cb4xbdNh.css","assets/pages-task-self.D_tFmaNB.js"] } 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]"),s=(null==i?void 0:i.nonce)||(null==i?void 0:i.getAttribute("nonce"));r=Promise.all(n.map((n=>{if((n=function(e){return"/"+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 a=document.createElement("link");return a.rel=r?"stylesheet":"modulepreload",r||(a.as="script",a.crossOrigin=""),a.href=n,s&&a.setAttribute("nonce",s),document.head.appendChild(a),r?new Promise(((e,t)=>{a.addEventListener("load",e),a.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=()=>{},s=()=>!1,a=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,h=(e,t)=>d.call(e,t),f=Array.isArray,p=e=>"[object Map]"===T(e),g=e=>"[object Set]"===T(e),m=e=>"[object Date]"===T(e),y=e=>"function"==typeof e,v=e=>"string"==typeof e,_=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,w=e=>(b(e)||y(e))&&y(e.then)&&y(e.catch),x=Object.prototype.toString,T=e=>x.call(e),S=e=>"[object Object]"===T(e),k=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),E=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},P=/-(\w)/g,A=E((e=>e.replace(P,((e,t)=>t?t.toUpperCase():"")))),I=/\B([A-Z])/g,O=E((e=>e.replace(I,"-$1").toLowerCase())),L=E((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=E((e=>e?`on${L(e)}`:"")),$=(e,t)=>!Object.is(e,t),R=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let N;const F=()=>N||(N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function j(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(U);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;nX(e,t)))}const J=e=>v(e)?e:null==e?"":f(e)||b(e)&&(e.toString===x||!y(e.toString))?JSON.stringify(e,G,2):String(e),G=(e,t)=>t&&t.__v_isRef?G(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[Q(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>Q(e)))}:_(t)?Q(t):!b(t)||f(t)||S(t)?t:String(t),Q=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},Z=["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"].map((e=>"uni-"+e)),ee=["list-view","list-item","sticky-section","sticky-header","cloud-db-element"].map((e=>"uni-"+e)),te=["list-item"].map((e=>"uni-"+e));function ne(e){if(-1!==te.indexOf(e))return!1;const t="uni-"+e.replace("v-uni-","");return-1!==Z.indexOf(t)||-1!==ee.indexOf(t)}const oe=["%","%"],re=/^([a-z-]+:)?\/\//i,ie=/^data:.*,.*/;function se(e){return e&&(e.appContext?e.proxy:e)}function ae(e){if(!e)return;let t=e.type.name;for(;t&&ne(O(t));)t=(e=e.parent).type.name;return e.proxy}function le(e){return 1===e.nodeType}function ce(e){if(e instanceof Map){const t={};return e.forEach(((e,n)=>{t[n]=e})),j(t)}if(v(e))return z(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 ge=e=>e>9?e:"0"+e;function me({date:e=new Date,mode:t="date"}){return"time"===t?ge(e.getHours())+":"+ge(e.getMinutes()):e.getFullYear()+"-"+ge(e.getMonth()+1)+"-"+ge(e.getDate())}function ye(e){return A(e.substring(5))}const ve=pe((()=>{const e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(e,n){if(e.startsWith("data-")&&this.tagName.startsWith("UNI-")){(this.__uniDataset||(this.__uniDataset={}))[ye(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[ye(e)],n.call(this,e)}}));function _e(e){return c({},e.dataset,e.__uniDataset)}const be=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:_e(e),offsetTop:n,offsetLeft:o}}function Te(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Se(e={}){const t={};return Object.keys(e).forEach((n=>{try{t[n]=Te(e[n])}catch(bx){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 Pe{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(y(e._component.onError))return t(e)})),Me=function(){};Me.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 $e=Me;const Re={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function De(e,t={},n="light"){const o=t[n],r={};return o?(Object.keys(e).forEach((i=>{let s=e[i];r[i]=(()=>{if(S(s))return De(s,t,n);if(f(s))return s.map((e=>S(e)?De(e,t,n):e));if(v(s)&&s.startsWith("@")){const t=s.replace("@","");let n=o[t]||s;switch(i){case"titleColor":n="black"===n?"#000000":"#ffffff";break;case"borderStyle":n=(e=n)&&e in Re?Re[e]:e}return n}var e;return s})()})),r):e} /** * @dcloudio/uni-h5-vue v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Be,Ne;class Fe{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),Je()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=We,t=Ne;try{return We=!0,Ne=this,this._runnings++,Ve(this),this.fn()}finally{ze(this),this._runnings--,Ne=t,We=e}}stop(){var e;this.active&&(Ve(this),ze(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function Ve(e){e._trackId++,e._depsLength=0}function ze(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},ot=new WeakMap,rt=Symbol(""),it=Symbol("");function st(e,t,n){if(We&&Ne){let t=ot.get(e);t||ot.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=nt((()=>t.delete(n)))),Ze(Ne,o)}}function at(e,t,n,o,r,i){const s=ot.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&f(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!_(n)&&n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":f(e)?k(n)&&a.push(s.get("length")):(a.push(s.get(rt)),p(e)&&a.push(s.get(it)));break;case"delete":f(e)||(a.push(s.get(rt)),p(e)&&a.push(s.get(it)));break;case"set":p(e)&&a.push(s.get(rt))}Ge();for(const l of a)l&&tt(l,4);Qe()}const lt=n("__proto__,__v_isRef,__isVue"),ct=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(_)),ut=dt();function dt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Zt(this);for(let t=0,r=this.length;t{e[t]=function(...e){Ke(),Ge();const n=Zt(this)[t].apply(this,e);return Qe(),Je(),n}})),e}function ht(e){const t=Zt(this);return st(t,0,e),t.hasOwnProperty(e)}class ft{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?Vt:Ut:r?qt:jt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=f(e);if(!o){if(i&&h(ut,t))return Reflect.get(ut,t,n);if("hasOwnProperty"===t)return ht}const s=Reflect.get(e,t,n);return(_(t)?ct.has(t):lt(t))?s:(o||st(e,0,t),r?s:an(s)?i&&k(t)?s:s.value:b(s)?o?Yt(s):Ht(s):s)}}class pt extends ft{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Jt(r);if(Gt(n)||Jt(n)||(r=Zt(r),n=Zt(n)),!f(e)&&an(r)&&!an(n))return!t&&(r.value=n,!0)}const i=f(e)&&k(t)?Number(t)e,bt=e=>Reflect.getPrototypeOf(e);function wt(e,t,n=!1,o=!1){const r=Zt(e=e.__v_raw),i=Zt(t);n||($(t,i)&&st(r,0,t),st(r,0,i));const{has:s}=bt(r),a=o?_t:n?nn:tn;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function xt(e,t=!1){const n=this.__v_raw,o=Zt(n),r=Zt(e);return t||($(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(Zt(e),0,rt),Reflect.get(e,"size",e)}function St(e){e=Zt(e);const t=Zt(this);return bt(t).has.call(t,e)||(t.add(e),at(t,"add",e,e)),this}function kt(e,t){t=Zt(t);const n=Zt(this),{has:o,get:r}=bt(n);let i=o.call(n,e);i||(e=Zt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?$(t,s)&&at(n,"set",e,t):at(n,"add",e,t),this}function Ct(e){const t=Zt(this),{has:n,get:o}=bt(t);let r=n.call(t,e);r||(e=Zt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&at(t,"delete",e,void 0),i}function Et(){const e=Zt(this),t=0!==e.size,n=e.clear();return t&&at(e,"clear",void 0,void 0),n}function Pt(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Zt(i),a=t?_t:e?nn:tn;return!e&&st(s,0,rt),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function At(e,t,n){return function(...o){const r=this.__v_raw,i=Zt(r),s=p(i),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...o),u=n?_t:t?nn:tn;return!t&&st(i,0,l?it:rt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function It(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Ot(){const e={get(e){return wt(this,e)},get size(){return Tt(this)},has:xt,add:St,set:kt,delete:Ct,clear:Et,forEach:Pt(!1,!1)},t={get(e){return wt(this,e,!1,!0)},get size(){return Tt(this)},has:xt,add:St,set:kt,delete:Ct,clear:Et,forEach:Pt(!1,!0)},n={get(e){return wt(this,e,!0)},get size(){return Tt(this,!0)},has(e){return xt.call(this,e,!0)},add:It("add"),set:It("set"),delete:It("delete"),clear:It("clear"),forEach:Pt(!0,!1)},o={get(e){return wt(this,e,!0,!0)},get size(){return Tt(this,!0)},has(e){return xt.call(this,e,!0)},add:It("add"),set:It("set"),delete:It("delete"),clear:It("clear"),forEach:Pt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=At(r,!1,!1),n[r]=At(r,!0,!1),t[r]=At(r,!1,!0),o[r]=At(r,!0,!0)})),[e,n,t,o]}const[Lt,Mt,$t,Rt]=Ot();function Dt(e,t){const n=t?e?Rt:$t:e?Mt:Lt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(h(n,o)&&o in t?n:t,o,r)}const Bt={get:Dt(!1,!1)},Nt={get:Dt(!1,!0)},Ft={get:Dt(!0,!1)},jt=new WeakMap,qt=new WeakMap,Ut=new WeakMap,Vt=new WeakMap;function zt(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=>T(e).slice(8,-1))(e))}function Ht(e){return Jt(e)?e:Xt(e,!1,mt,Bt,jt)}function Wt(e){return Xt(e,!1,vt,Nt,qt)}function Yt(e){return Xt(e,!0,yt,Ft,Ut)}function Xt(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 s=zt(e);if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function Kt(e){return Jt(e)?Kt(e.__v_raw):!(!e||!e.__v_isReactive)}function Jt(e){return!(!e||!e.__v_isReadonly)}function Gt(e){return!(!e||!e.__v_isShallow)}function Qt(e){return Kt(e)||Jt(e)}function Zt(e){const t=e&&e.__v_raw;return t?Zt(t):e}function en(e){return Object.isExtensible(e)&&D(e,"__v_skip",!0),e}const tn=e=>b(e)?Ht(e):e,nn=e=>b(e)?Yt(e):e;class on{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 Ue((()=>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=Zt(this);return e._cacheable&&!e.effect.dirty||!$(e._value,e._value=e.effect.run())||sn(e,4),rn(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 rn(e){var t;We&&Ne&&(e=Zt(e),Ze(Ne,null!=(t=e.dep)?t:e.dep=nt((()=>e.dep=void 0),e instanceof on?e:void 0)))}function sn(e,t=4,n){const o=(e=Zt(e)).dep;o&&tt(o,t)}function an(e){return!(!e||!0!==e.__v_isRef)}function ln(e){return un(e,!1)}function cn(e){return un(e,!0)}function un(e,t){return an(e)?e:new dn(e,t)}class dn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Zt(e),this._value=t?e:tn(e)}get value(){return rn(this),this._value}set value(e){const t=this.__v_isShallow||Gt(e)||Jt(e);e=t?e:Zt(e),$(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:tn(e),sn(this,4))}}function hn(e){return an(e)?e.value:e}const fn={get:(e,t,n)=>hn(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return an(r)&&!an(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function pn(e){return Kt(e)?e:new Proxy(e,fn)}function gn(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=yn(e,n);return t}class mn{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=Zt(this._object),t=this._key,null==(n=ot.get(e))?void 0:n.get(t);var e,t,n}}function yn(e,t,n){const o=e[t];return an(o)?o:new mn(e,t,n)}function vn(e,t,n,o){try{return o?e(...o):e()}catch(r){bn(r,t,n)}}function _n(e,t,n,o){if(y(e)){const r=vn(e,t,n,o);return r&&w(r)&&r.catch((e=>{bn(e,t,n)})),r}const r=[];for(let i=0;i>>1,r=Tn[o],i=Rn(r);iRn(e)-Rn(t)));if(kn.length=0,Cn)return void Cn.push(...e);for(Cn=e,En=0;Ennull==e.id?1/0:e.id,Dn=(e,t)=>{const n=Rn(e)-Rn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Bn(e){xn=!1,wn=!0,Tn.sort(Dn);try{for(Sn=0;Snv(e)?e.trim():e))),t&&(i=n.map(B))}let l,c=r[l=M(t)]||r[l=M(A(t))];!c&&s&&(c=r[l=M(O(t))]),c&&_n(c,e,6,Fn(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,Fn(e,u,i))}}function Fn(e,t,n){if(1!==n.length)return n;if(y(t)){if(t.length<2)return n}else if(!t.find((e=>e.length>=2)))return n;const o=n[0];if(o&&h(o,"type")&&h(o,"timeStamp")&&h(o,"target")&&h(o,"currentTarget")&&h(o,"detail")){const t=e.proxy,o=t.$gcd(t,!0);o&&n.push(o)}return n}function jn(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},a=!1;if(!y(e)){const o=e=>{const n=jn(e,t,!0);n&&(a=!0,c(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(f(i)?i.forEach((e=>s[e]=null)):c(s,i),b(e)&&o.set(e,s),s):(b(e)&&o.set(e,null),null)}function qn(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),h(e,t[0].toLowerCase()+t.slice(1))||h(e,O(t))||h(e,t))}let Un=null,Vn=null;function zn(e){const t=Un;return Un=e,Vn=e&&e.type.__scopeId||null,t}function Hn(e,t=Un,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Qr(-1);const r=zn(t);let i;try{i=e(...n)}finally{zn(r),o._d&&Qr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Wn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:c,emit:u,render:d,renderCache:h,data:f,setupState:p,ctx:g,inheritAttrs:m}=e;let y,v;const _=zn(e);try{if(4&n.shapeFlag){const e=r||o,t=e;y=hi(d.call(t,e,h,i,p,f,g)),v=c}else{const e=t;0,y=hi(e.length>1?e(i,{attrs:c,slots:a,emit:u}):e(i,null)),v=t.props?c:Yn(c)}}catch(w){Xr.length=0,bn(w,e,1),y=li(Wr)}let b=y;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(s&&e.some(l)&&(v=Xn(v,s)),b=ci(b,v))}return n.dirs&&(b=ci(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),y=b,zn(_),y}const Yn=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Xn=(e,t)=>{const n={};for(const o in e)l(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Kn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;const no=Symbol.for("v-scx");function oo(e,t){return so(e,null,t)}const ro={};function io(e,t,n){return so(e,t,n)}function so(e,t,{immediate:n,deep:r,flush:s,once:a,onTrack:l,onTrigger:c}=o){if(t&&a){const e=t;t=(...t)=>{e(...t),C()}}const d=_i,h=e=>!0===r?e:co(e,!1===r?1:void 0);let p,g,m=!1,v=!1;if(an(e)?(p=()=>e.value,m=Gt(e)):Kt(e)?(p=()=>h(e),m=!0):f(e)?(v=!0,m=e.some((e=>Kt(e)||Gt(e))),p=()=>e.map((e=>an(e)?e.value:Kt(e)?h(e):y(e)?vn(e,d,2):void 0))):p=y(e)?t?()=>vn(e,d,2):()=>(g&&g(),_n(e,d,3,[b])):i,t&&r){const e=p;p=()=>co(e())}let _,b=e=>{g=S.onStop=()=>{vn(e,d,4),g=S.onStop=void 0}};if(Ci){if(b=i,t?n&&_n(t,d,3,[p(),v?[]:void 0,b]):p(),"sync"!==s)return i;{const e=Sr(no);_=e.__watcherHandles||(e.__watcherHandles=[])}}let w=v?new Array(e.length).fill(ro):ro;const x=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(r||m||(v?e.some(((e,t)=>$(e,w[t]))):$(e,w)))&&(g&&g(),_n(t,d,3,[e,w===ro?void 0:v&&w[0]===ro?[]:w,b]),w=e)}else S.run()};let T;x.allowRecurse=!!t,"sync"===s?T=x:"post"===s?T=()=>Nr(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),T=()=>On(x));const S=new Ue(p,i,T),k=qe(),C=()=>{S.stop(),k&&u(k.effects,S)};return t?n?x():w=S.run():"post"===s?Nr(S.run.bind(S),d&&d.suspense):S.run(),_&&_.push(C),C}function ao(e,t,n){const o=this.proxy,r=v(e)?e.includes(".")?lo(o,e):()=>o[e]:e.bind(o,o);let i;y(t)?i=t:(i=t.handler,n=t);const s=Ti(this),a=so(r,i.bind(o),n);return s(),a}function lo(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),an(e))co(e.value,t,n,o);else if(f(e))for(let r=0;r{co(e,t,n,o)}));else if(S(e))for(const r in e)co(e[r],t,n,o);return e}function uo(e,t){if(null===Un)return e;const n=Ai(Un)||Un.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0})),Yo((()=>{e.isUnmounting=!0})),e}();return()=>{const r=t.default&&To(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1)for(const e of r)if(e.type!==Wr){i=e;break}const s=Zt(e),{mode:a}=s;if(o.isLeaving)return bo(i);const l=wo(i);if(!l)return bo(i);const c=_o(l,s,o,n);xo(l,c);const u=n.subTree,d=u&&wo(u);if(d&&d.type!==Wr&&!oi(l,d)){const e=_o(d,s,o,n);if(xo(d,e),"out-in"===a)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},bo(i);"in-out"===a&&l.type!==Wr&&(e.delayLeave=(e,t,n)=>{vo(o,d)[String(d.key)]=d,e[fo]=()=>{t(),e[fo]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return i}}};function vo(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 _o(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:y,onAfterAppear:v,onAppearCancelled:_}=t,b=String(e.key),w=vo(n,e),x=(e,t)=>{e&&_n(e,o,9,t)},T=(e,t)=>{const n=t[1];x(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},S={mode:i,persisted:s,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=m||a}t[fo]&&t[fo](!0);const i=w[b];i&&oi(e,i)&&i.el[fo]&&i.el[fo](),x(o,[t])},enter(e){let t=l,o=c,i=u;if(!n.isMounted){if(!r)return;t=y||l,o=v||c,i=_||u}let s=!1;const a=e[po]=t=>{s||(s=!0,x(t?i:o,[e]),S.delayedLeave&&S.delayedLeave(),e[po]=void 0)};t?T(t,[e,a]):a()},leave(t,o){const r=String(e.key);if(t[po]&&t[po](!0),n.isUnmounting)return o();x(d,[t]);let i=!1;const s=t[fo]=n=>{i||(i=!0,o(),x(n?g:p,[t]),t[fo]=void 0,w[r]===e&&delete w[r])};w[r]=e,h?T(h,[t,s]):s()},clone:e=>_o(e,t,n,o)};return S}function bo(e){if(Po(e))return(e=ci(e)).children=null,e}function wo(e){return Po(e)?e.children?e.children[0]:void 0:e}function xo(e,t){6&e.shapeFlag&&e.component?xo(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 To(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 ko=e=>!!e.type.__asyncLoader /*! #__NO_SIDE_EFFECTS__ */;function Co(e){y(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:a}=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)),a)return new Promise(((t,n)=>{a(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 So({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=_i;if(l)return()=>Eo(l,e);const t=t=>{c=null,bn(t,e,13,!o)};if(s&&e.suspense||Ci)return d().then((t=>()=>Eo(t,e))).catch((e=>(t(e),()=>o?li(o,{error:e}):null)));const a=ln(!1),u=ln(),h=ln(!!r);return r&&setTimeout((()=>{h.value=!1}),r),null!=i&&setTimeout((()=>{if(!a.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{a.value=!0,e.parent&&Po(e.parent.vnode)&&(e.parent.effect.dirty=!0,On(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>a.value&&l?Eo(l,e):u.value&&o?li(o,{error:u.value}):n&&!h.value?li(n):void 0}})}function Eo(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=li(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Po=e=>e.type.__isKeepAlive;class Ao{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 Io={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=bi(),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 Ao(e.max);r.pruneCacheEntry=s;let i=null;function s(t){var o;!i||!oi(t,i)||"key"===e.matchBy&&t.key!==i.key?(Bo(o=t),u(o,n,a,!0)):i&&Bo(i)}const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=o,h=d("div");function f(t){r.forEach(((n,o)=>{const i=Fo(n,e.matchBy);!i||t&&t(i)||(r.delete(o),s(n))}))}o.activate=(e,t,n,o,r)=>{const i=e.component;if(i.ba){const e=i.isDeactivated;i.isDeactivated=!1,R(i.ba),i.isDeactivated=e}c(e,t,n,0,a),l(i.vnode,e,t,n,i,a,o,e.slotScopeIds,r),Nr((()=>{i.isDeactivated=!1,i.a&&R(i.a);const t=e.props&&e.props.onVnodeMounted;t&&mi(t,i.parent,e)}),a)},o.deactivate=e=>{const t=e.component;t.bda&&jo(t.bda),c(e,h,null,1,a),Nr((()=>{t.bda&&t.bda.forEach((e=>e.__called=!1)),t.da&&R(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&mi(n,t.parent,e),t.isDeactivated=!0}),a)},io((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&f((t=>Lo(e,t))),t&&f((e=>!Lo(t,e)))}),{flush:"post",deep:!0});let p=null;const g=()=>{null!=p&&r.set(p,No(n.subTree))};return zo(g),Wo(g),Yo((()=>{r.forEach(((t,o)=>{r.delete(o),s(t);const{subTree:i,suspense:a}=n,l=No(i);if(t.type!==l.type||"key"===e.matchBy&&t.key!==l.key);else{l.component.bda&&R(l.component.bda),Bo(l);const e=l.component.da;e&&Nr(e,a)}}))})),()=>{if(p=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!ni(o)||!(4&o.shapeFlag)&&!to(o.type))return i=null,o;let s=No(o);const a=s.type,l=Fo(s,e.matchBy),{include:c,exclude:u}=e;if(c&&(!l||!Lo(c,l))||u&&l&&Lo(u,l))return i=s,o;const d=null==s.key?a:s.key,h=r.get(d);return s.el&&(s=ci(s),to(o.type)&&(o.ssContent=s)),p=d,h&&(s.el=h.el,s.component=h.component,s.transition&&xo(s,s.transition),s.shapeFlag|=512),s.shapeFlag|=256,i=s,to(o.type)?o:s}}},Oo=Io;function Lo(e,t){return f(e)?e.some((e=>Lo(e,t))):v(e)?e.split(",").includes(t):"[object RegExp]"===T(e)&&e.test(t)}function Mo(e,t){Ro(e,"a",t)}function $o(e,t){Ro(e,"da",t)}function Ro(e,t,n=_i){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(o.__called=!1,qo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Po(e.parent.vnode)&&Do(o,t,n,e),e=e.parent}}function Do(e,t,n,o){const r=qo(t,e,o,!0);Xo((()=>{u(o[t],r)}),n)}function Bo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function No(e){return to(e.type)?e.ssContent:e}function Fo(e,t){if("name"===t){const t=e.type;return Ii(ko(e)?t.__asyncResolved||{}:t)}return String(e.key)}function jo(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]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Ke();const r=Ti(n),i=_n(t,n,e,o);return r(),Je(),i});return o?i.unshift(s):i.push(s),s}var r}const Uo=e=>(t,n=_i)=>(!Ci||"sp"===e)&&qo(e,((...e)=>t(...e)),n),Vo=Uo("bm"),zo=Uo("m"),Ho=Uo("bu"),Wo=Uo("u"),Yo=Uo("bum"),Xo=Uo("um"),Ko=Uo("sp"),Jo=Uo("rtg"),Go=Uo("rtc");function Qo(e,t=_i){qo("ec",e,t)}function Zo(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,s=n.length;o!ni(e)||e.type!==Wr&&!(e.type===zr&&!tr(e.children))))?e:null}const nr=e=>{if(!e)return null;if(ki(e)){return Ai(e)||e.proxy}return nr(e.parent)},or=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=>nr(e.parent),$root:e=>nr(e.root),$emit:e=>e.emit,$options:e=>dr(e),$forceUpdate:e=>e.f||(e.f=(e=>function(){e.effect.dirty=!0,On(e.update)})(e)),$nextTick:e=>e.n||(e.n=In.bind(e.proxy)),$watch:e=>ao.bind(e)}),rr=(e,t)=>e!==o&&!e.__isScriptSetup&&h(e,t),ir={get({_:e},t){const{ctx:n,setupState:r,data:i,props:s,accessCache:a,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=a[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 s[t]}else{if(rr(r,t))return a[t]=1,r[t];if(i!==o&&h(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&h(u,t))return a[t]=3,s[t];if(n!==o&&h(n,t))return a[t]=4,n[t];ar&&(a[t]=0)}}const d=or[t];let f,p;return d?("$attrs"===t&&st(e,0,t),d(e)):(f=l.__cssModules)&&(f=f[t])?f:n!==o&&h(n,t)?(a[t]=4,n[t]):(p=c.config.globalProperties,h(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return rr(i,t)?(i[t]=n,!0):r!==o&&h(r,t)?(r[t]=n,!0):!h(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},a){let l;return!!n[a]||e!==o&&h(e,a)||rr(t,a)||(l=s[0])&&h(l,a)||h(r,a)||h(or,a)||h(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:h(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function sr(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let ar=!0;function lr(e){const t=dr(e),n=e.proxy,o=e.ctx;ar=!1,t.beforeCreate&&cr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:a,watch:l,provide:c,inject:u,created:d,beforeMount:h,mounted:p,beforeUpdate:g,updated:m,activated:v,deactivated:_,beforeDestroy:w,beforeUnmount:x,destroyed:T,unmounted:S,render:k,renderTracked:C,renderTriggered:E,errorCaptured:P,serverPrefetch:A,expose:I,inheritAttrs:O,components:L,directives:M,filters:$}=t;if(u&&function(e,t,n=i){f(e)&&(e=gr(e));for(const o in e){const n=e[o];let r;r=b(n)?"default"in n?Sr(n.from||o,n.default,!0):Sr(n.from||o):Sr(n),an(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[o]=r}}(u,o,null),a)for(const i in a){const e=a[i];y(e)&&(o[i]=e.bind(n))}if(r){const t=r.call(n,n);b(t)&&(e.data=Ht(t))}if(ar=!0,s)for(const f in s){const e=s[f],t=y(e)?e.bind(n,n):y(e.get)?e.get.bind(n,n):i,r=!y(e)&&y(e.set)?e.set.bind(n):i,a=Oi({get:t,set:r});Object.defineProperty(o,f,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const i in l)ur(l[i],o,n,i);if(c){const e=y(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{Tr(t,e[t])}))}function R(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&cr(d,e,"c"),R(Vo,h),R(zo,p),R(Ho,g),R(Wo,m),R(Mo,v),R($o,_),R(Qo,P),R(Go,C),R(Jo,E),R(Yo,x),R(Xo,S),R(Ko,A),f(I))if(I.length){const t=e.exposed||(e.exposed={});I.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!=O&&(e.inheritAttrs=O),L&&(e.components=L),M&&(e.directives=M);const D=e.appContext.config.globalProperties.$applyOptions;D&&D(t,e,n)}function cr(e,t,n){_n(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ur(e,t,n,o){const r=o.includes(".")?lo(n,o):()=>n[o];if(v(e)){const n=t[e];y(n)&&io(r,n)}else if(y(e))io(r,e.bind(n));else if(b(e))if(f(e))e.forEach((e=>ur(e,t,n,o)));else{const o=y(e.handler)?e.handler.bind(n):t[e.handler];y(o)&&io(r,o,e)}}function dr(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:r.length||n||o?(l={},r.length&&r.forEach((e=>hr(l,e,s,!0))),hr(l,t,s)):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 s in t)if(o&&"expose"===s);else{const o=fr[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const fr={data:pr,props:vr,emits:vr,methods:yr,computed:yr,beforeCreate:mr,created:mr,beforeMount:mr,mounted:mr,beforeUpdate:mr,updated:mr,beforeDestroy:mr,beforeUnmount:mr,destroyed:mr,unmounted:mr,activated:mr,deactivated:mr,errorCaptured:mr,serverPrefetch:mr,components:yr,directives:yr,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]=mr(e[o],t[o]);return n},provide:pr,inject:function(e,t){return yr(gr(e),gr(t))}};function pr(e,t){return t?e?function(){return c(y(e)?e.call(this,this):e,y(t)?t.call(this,this):t)}:t:e}function gr(e){if(f(e)){const t={};for(let n=0;n(i.has(e)||(e&&y(e.install)?(i.add(e),e.install(a,...t)):y(e)&&(i.add(e),e(a,...t))),a),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),a),component:(e,t)=>t?(r.components[e]=t,a):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,a):r.directives[e],mount(i,l,c){if(!s){const u=li(n,o);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(u,i):e(u,i,c),s=!0,a._container=i,i.__vue_app__=a,a._instance=u.component,Ai(u.component)||u.component.proxy}},unmount(){s&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,a),runWithContext(e){const t=xr;xr=a;try{return e()}finally{xr=t}}};return a}}let xr=null;function Tr(e,t){if(_i){let n=_i.provides;const o=_i.parent&&_i.parent.provides;o===n&&(n=_i.provides=Object.create(o)),n[e]=t,"app"===_i.type.mpType&&_i.appContext.app.provide(e,t)}else;}function Sr(e,t,n=!1){const o=_i||Un;if(o||xr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:xr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&y(t)?t.call(o&&o.proxy):t}}function kr(e,t,n,r){const[i,s]=e.propsOptions;let a,l=!1;if(t)for(let o in t){if(C(o))continue;const c=t[o];let u;i&&h(i,u=A(o))?s&&s.includes(u)?(a||(a={}))[u]=c:n[u]=c:qn(e.emitsOptions,o)||o in r&&c===r[o]||(r[o]=c,l=!0)}if(s){const t=Zt(n),r=a||o;for(let o=0;o{d=!0;const[n,o]=Er(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(!a&&!d)return b(e)&&i.set(e,r),r;if(f(a))for(let r=0;r-1,n[1]=o<0||t-1||h(n,"default"))&&u.push(e)}}}const p=[l,u];return b(e)&&i.set(e,p),p}function Pr(e){return"$"!==e[0]&&!C(e)}function Ar(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 Ir(e,t){return Ar(e)===Ar(t)}function Or(e,t){return f(t)?t.findIndex((t=>Ir(t,e))):y(t)&&Ir(t,e)?0:-1}const Lr=e=>"_"===e[0]||"$stable"===e,Mr=e=>f(e)?e.map(hi):[hi(e)],$r=(e,t,n)=>{if(t._n)return t;const o=Hn(((...e)=>Mr(t(...e))),n);return o._c=!1,o},Rr=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Lr(r))continue;const n=e[r];if(y(n))t[r]=$r(0,n,o);else if(null!=n){const e=Mr(n);t[r]=()=>e}}},Dr=(e,t)=>{const n=Mr(t);e.slots.default=()=>n};function Br(e,t,n,r,i=!1){if(f(e))return void e.forEach(((e,o)=>Br(e,t&&(f(t)?t[o]:t),n,r,i)));if(ko(r)&&!i)return;const s=4&r.shapeFlag?Ai(r.component)||r.component.proxy:r.el,a=i?null:s,{i:l,r:c}=e,d=t&&t.r,p=l.refs===o?l.refs={}:l.refs,g=l.setupState;if(null!=d&&d!==c&&(v(d)?(p[d]=null,h(g,d)&&(g[d]=null)):an(d)&&(d.value=null)),y(c))vn(c,l,12,[a,p]);else{const t=v(c),o=an(c);if(t||o){const r=()=>{if(e.f){const n=t?h(g,c)?g[c]:p[c]:c.value;i?f(n)&&u(n,s):f(n)?n.includes(s)||n.push(s):t?(p[c]=[s],h(g,c)&&(g[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else t?(p[c]=a,h(g,c)&&(g[c]=a)):o&&(c.value=a,e.k&&(p[e.k]=a))};a?(r.id=-1,Nr(r,n)):r()}}}const Nr=function(e,t){var n;t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):(f(n=e)?kn.push(...n):Cn&&Cn.includes(n,n.allowRecurse?En+1:En)||kn.push(n),Ln())};function Fr(e){return function(e,t){F().__VUE__=!0;const{insert:n,remove:s,patchProp:a,forcePatchProp:l,createElement:u,createText:d,createComment:f,setText:p,setElementText:g,parentNode:m,nextSibling:y,setScopeId:v=i,insertStaticContent:_}=e,b=(e,t,n,o=null,r=null,i=null,s,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!oi(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 Hr:x(e,t,n,o);break;case Wr:T(e,t,n,o);break;case Yr:null==e&&S(t,n,o,s);break;case zr:j(e,t,n,o,r,i,s,a,l);break;default:1&d?P(e,t,n,o,r,i,s,a,l):6&d?q(e,t,n,o,r,i,s,a,l):(64&d||128&d)&&c.process(e,t,n,o,r,i,s,a,l,re)}null!=u&&r&&Br(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&&p(n,t.children)}},T=(e,t,o,r)=>{null==e?n(t.el=f(t.children||""),o,r):t.el=e.el},S=(e,t,n,o)=>{[e.el,e.anchor]=_(e.children,t,n,o,e.el,e.anchor)},k=({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=y(e),n(e,o,r),e=i;n(t,o,r)},E=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=y(e),s(e),e=n;s(t)},P=(e,t,n,o,r,i,s,a,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?I(t,n,o,r,i,s,a,l):$(e,t,r,i,s,a,l)},I=(e,t,o,r,i,s,l,c)=>{let d,h;const{props:f,shapeFlag:p,transition:m,dirs:y}=e;if(d=e.el=u(e.type,s,f&&f.is,f),8&p?g(d,e.children):16&p&&M(e.children,d,null,r,i,jr(e,s),l,c),y&&ho(e,null,r,"created"),L(d,e,e.scopeId,l,r),f){for(const t in f)"value"===t||C(t)||a(d,t,null,f[t],s,e.children,r,i,ee);"value"in f&&a(d,"value",null,f.value,s),(h=f.onVnodeBeforeMount)&&mi(h,r,e)}Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1}),y&&ho(e,null,r,"beforeMount");const v=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,m);v&&m.beforeEnter(d),n(d,t,o),((h=f&&f.onVnodeMounted)||v||y)&&Nr((()=>{h&&mi(h,r,e),v&&m.enter(d),y&&ho(e,null,r,"mounted")}),i)},L=(e,t,n,o,r)=>{if(n&&v(e,n),o)for(let i=0;i{for(let c=l;c{const u=t.el=e.el;let{patchFlag:d,dynamicChildren:h,dirs:f}=t;d|=16&e.patchFlag;const p=e.props||o,m=t.props||o;let y;if(n&&qr(n,!1),(y=m.onVnodeBeforeUpdate)&&mi(y,n,t,e),f&&ho(t,e,n,"beforeUpdate"),n&&qr(n,!0),h?B(e.dynamicChildren,h,u,n,r,jr(t,i),s):c||W(e,t,u,null,n,r,jr(t,i),s,!1),d>0){if(16&d)N(u,t,p,m,n,r,i);else if(2&d&&p.class!==m.class&&a(u,"class",null,m.class,i),4&d&&a(u,"style",p.style,m.style,i),8&d){const o=t.dynamicProps;for(let t=0;t{y&&mi(y,n,t,e),f&&ho(t,e,n,"updated")}),r)},B=(e,t,n,o,r,i,s)=>{for(let a=0;a{if(n!==r){if(n!==o)for(const o in n)C(o)||o in r||a(e,o,n[o],null,c,t.children,i,s,ee);for(const o in r){if(C(o))continue;const u=r[o],d=n[o];(u!==d&&"value"!==o||l&&l(e,o))&&a(e,o,d,u,c,t.children,i,s,ee)}"value"in r&&a(e,"value",n.value,r.value,c)}},j=(e,t,o,r,i,s,a,l,c)=>{const u=t.el=e?e.el:d(""),h=t.anchor=e?e.anchor:d("");let{patchFlag:f,dynamicChildren:p,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(n(u,o,r),n(h,o,r),M(t.children||[],o,h,i,s,a,l,c)):f>0&&64&f&&p&&e.dynamicChildren?(B(e.dynamicChildren,p,o,i,s,a,l),(null!=t.key||i&&t===i.subTree)&&Ur(e,t,!0)):W(e,t,o,h,i,s,a,l,c)},q=(e,t,n,o,r,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):U(t,n,o,r,i,s,l):V(e,t,l)},U=(e,t,n,r,i,s,a)=>{const l=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||yi,s={uid:vi++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Fe(!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:Er(r,i),emitsOptions:jn(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};s.ctx={_:s},s.root=t?t.root:s,s.emit=Nn.bind(null,s),s.$pageInstance=t&&t.$pageInstance,e.ce&&e.ce(s);return s}(e,r,i);if(Po(e)&&(l.ctx.renderer=re),function(e,t=!1){t&&xi(t);const{props:n,children:o}=e.vnode,r=ki(e);(function(e,t,n,o=!1){const r={},i={};D(i,ri,1),e.propsDefaults=Object.create(null),kr(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Wt(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=Zt(t),D(t,"_",n)):Rr(t,e.slots={})}else e.slots={},t&&Dr(e,t);D(e.slots,ri,1)})(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=en(new Proxy(e.ctx,ir));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=Ti(e);Ke();const i=vn(o,e,0,[e.props,n]);if(Je(),r(),w(i)){if(i.then(Si,Si),t)return i.then((n=>{Ei(e,n,t)})).catch((t=>{bn(t,e,0)}));e.asyncDep=i}else Ei(e,i,t)}else Pi(e,t)}(e,t):void 0;t&&xi(!1)}(l),l.asyncDep){if(i&&i.registerDep(l,z),!e.el){const e=l.subTree=li(Wr);T(null,e,t,n)}}else z(l,e,t,n,i,s,a)},V=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||o!==s&&(o?!s||Kn(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?Kn(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;tSn&&Tn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},z=(e,t,n,o,r,s,a)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:c}=e;{const n=Vr(e);if(n)return t&&(t.el=c.el,H(e,t,a)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let u,d=t;qr(e,!1),t?(t.el=c.el,H(e,t,a)):t=c,n&&R(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&mi(u,i,t,c),qr(e,!0);const h=Wn(e),f=e.subTree;e.subTree=h,b(f,h,m(f.el),te(f),e,r,s),t.el=h.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,h.el),o&&Nr(o,r),(u=t.props&&t.props.onVnodeUpdated)&&Nr((()=>mi(u,i,t,c)),r)}else{let i;const{el:a,props:l}=t,{bm:c,m:u,parent:d}=e,h=ko(t);if(qr(e,!1),c&&R(c),!h&&(i=l&&l.onVnodeBeforeMount)&&mi(i,d,t),qr(e,!0),a&&se){const n=()=>{e.subTree=Wn(e),se(a,e.subTree,e,r,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Wn(e);b(null,i,n,o,e,r,s),t.el=i.el}if(u&&Nr(u,r),!h&&(i=l&&l.onVnodeMounted)){const e=t;Nr((()=>mi(i,d,e)),r)}(256&t.shapeFlag||d&&ko(d.vnode)&&256&d.vnode.shapeFlag)&&(e.ba&&jo(e.ba),e.a&&Nr(e.a,r)),e.isMounted=!0,t=n=o=null}},c=e.effect=new Ue(l,i,(()=>On(u)),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.id=e.uid,qr(e,!0),u()},H=(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:s}}=e,a=Zt(r),[l]=e.propsOptions;let c=!1;if(!(o||s>0)||16&s){let o;kr(e,t,r,i)&&(c=!0);for(const i in a)t&&(h(t,i)||(o=O(i))!==i&&h(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Cr(l,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&h(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:r,slots:i}=e;let s=!0,a=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(c(i,t),n||1!==e||delete i._):(s=!t.$stable,Rr(t,i)),a=t}else t&&(Dr(e,t),a={default:1});if(s)for(const o in i)Lr(o)||null!=a[o]||delete i[o]})(e,t.children,n),Ke(),Mn(e),Je()},W=(e,t,n,o,r,i,s,a,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void X(c,d,n,o,r,i,s,a,l);if(256&h)return void Y(c,d,n,o,r,i,s,a,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,s,a,l):ee(c,r,i,!0):(8&u&&g(n,""),16&f&&M(d,n,o,r,i,s,a,l))},Y=(e,t,n,o,i,s,a,l,c)=>{t=t||r;const u=(e=e||r).length,d=t.length,h=Math.min(u,d);let f;for(f=0;fd?ee(e,i,s,!0,!1,h):M(t,n,o,i,s,a,l,c,h)},X=(e,t,n,o,i,s,a,l,c)=>{let u=0;const d=t.length;let h=e.length-1,f=d-1;for(;u<=h&&u<=f;){const o=e[u],r=t[u]=c?fi(t[u]):hi(t[u]);if(!oi(o,r))break;b(o,r,n,null,i,s,a,l,c),u++}for(;u<=h&&u<=f;){const o=e[h],r=t[f]=c?fi(t[f]):hi(t[f]);if(!oi(o,r))break;b(o,r,n,null,i,s,a,l,c),h--,f--}if(u>h){if(u<=f){const e=f+1,r=ef)for(;u<=h;)J(e[u],i,s,!0),u++;else{const p=u,g=u,m=new Map;for(u=g;u<=f;u++){const e=t[u]=c?fi(t[u]):hi(t[u]);null!=e.key&&m.set(e.key,u)}let y,v=0;const _=f-g+1;let w=!1,x=0;const T=new Array(_);for(u=0;u<_;u++)T[u]=0;for(u=p;u<=h;u++){const o=e[u];if(v>=_){J(o,i,s,!0);continue}let r;if(null!=o.key)r=m.get(o.key);else for(y=g;y<=f;y++)if(0===T[y-g]&&oi(o,t[y])){r=y;break}void 0===r?J(o,i,s,!0):(T[r-g]=u+1,r>=x?x=r:w=!0,b(o,t[r],n,null,i,s,a,l,c),v++)}const S=w?function(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(T):r;for(y=S.length-1,u=_-1;u>=0;u--){const e=g+u,r=t[e],h=e+1{const{el:s,type:a,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void K(e.component.subTree,t,o,r);if(128&u)return void e.suspense.move(t,o,r);if(64&u)return void a.move(e,t,o,re);if(a===zr){n(s,t,o);for(let e=0;el.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,a=()=>n(s,t,o),c=()=>{e(s,(()=>{a(),i&&i()}))};r?r(s,a,c):c()}else n(s,t,o)},J=(e,t,n,o=!1,r=!1)=>{const{type:i,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:h}=e;if(null!=a&&Br(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&h,p=!ko(e);let g;if(p&&(g=s&&s.onVnodeBeforeUnmount)&&mi(g,t,e),6&u)Z(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!==zr||d>0&&64&d)?ee(c,t,n,!1,!0):(i===zr&&384&d||!r&&16&u)&&ee(l,t,n),o&&G(e)}(p&&(g=s&&s.onVnodeUnmounted)||f)&&Nr((()=>{g&&mi(g,t,e),f&&ho(e,null,t,"unmounted")}),n)},G=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===zr)return void Q(n,o);if(t===Yr)return void E(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},Q=(e,t)=>{let n;for(;e!==t;)n=y(e),s(e),e=n;s(t)},Z=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:a}=e;o&&R(o),r.stop(),i&&(i.active=!1,J(s,e,t,n)),a&&Nr(a,t),Nr((()=>{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 s=i;s6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():y(e.anchor||e.el);let ne=!1;const oe=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),ne||(ne=!0,Mn(),$n(),ne=!1),t._vnode=e},re={p:b,um:J,m:K,r:G,mt:U,mc:M,pc:W,pbc:B,n:te,o:e};let ie,se;t&&([ie,se]=t(re));return{render:oe,hydrate:ie,createApp:wr(oe,ie)}}(e)}function jr({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 qr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ur(e,t,n=!1){const o=e.children,r=t.children;if(f(o)&&f(r))for(let i=0;i0?Kr||r:null,Xr.pop(),Kr=Xr[Xr.length-1]||null,Gr>0&&Kr&&Kr.push(e),e}function ei(e,t,n,o,r,i){return Zr(ai(e,t,n,o,r,i,!0))}function ti(e,t,n,o,r){return Zr(li(e,t,n,o,r,!0))}function ni(e){return!!e&&!0===e.__v_isVNode}function oi(e,t){return e.type===t.type&&e.key===t.key}const ri="__vInternal",ii=({key:e})=>null!=e?e:null,si=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||an(e)||y(e)?{i:Un,r:e,k:t,f:!!n}:e:null);function ai(e,t=null,n=null,o=0,r=null,i=(e===zr?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ii(t),ref:t&&si(t),scopeId:Vn,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:Un};return a?(pi(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=v(n)?8:16),Gr>0&&!s&&Kr&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&Kr.push(l),l}const li=function(e,t=null,n=null,o=0,r=null,i=!1){e&&e!==Gn||(e=Wr);if(ni(e)){const o=ci(e,t,!0);return n&&pi(o,n),Gr>0&&!i&&Kr&&(6&o.shapeFlag?Kr[Kr.indexOf(e)]=o:Kr.push(o)),o.patchFlag|=-2,o}s=e,y(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=function(e){return e?Qt(e)||ri in e?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=ue(e)),b(n)&&(Qt(n)&&!f(n)&&(n=c({},n)),t.style=ce(n))}const a=v(e)?1:to(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:y(e)?2:0;return ai(e,t,n,o,r,a,i,!0)};function ci(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?gi(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ii(a),ref:t&&t.ref?n&&r?f(r)?r.concat(si(t)):[r,si(t)]:si(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==zr?-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&&ci(e.ssContent),ssFallback:e.ssFallback&&ci(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ui(e=" ",t=0){return li(Hr,null,e,t)}function di(e="",t=!1){return t?(Jr(),ti(Wr,null,e)):li(Wr,null,e)}function hi(e){return null==e||"boolean"==typeof e?li(Wr):f(e)?li(zr,null,e.slice()):"object"==typeof e?fi(e):li(Hr,null,String(e))}function fi(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ci(e)}function pi(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),pi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||ri in t?3===o&&Un&&(1===Un.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Un}}else y(t)?(t={default:t,_ctx:Un},n=32):(t=String(t),64&o?(n=16,t=[ui(t)]):n=8);e.children=t,e.shapeFlag|=n}function gi(...e){const t={};for(let n=0;n_i||Un;let wi,xi;{const e=F(),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)}};wi=t("__VUE_INSTANCE_SETTERS__",(e=>_i=e)),xi=t("__VUE_SSR_SETTERS__",(e=>Ci=e))}const Ti=e=>{const t=_i;return wi(e),e.scope.on(),()=>{e.scope.off(),wi(t)}},Si=()=>{_i&&_i.scope.off(),wi(null)};function ki(e){return 4&e.vnode.shapeFlag}let Ci=!1;function Ei(e,t,n){y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=pn(t)),Pi(e,n)}function Pi(e,t,n){const o=e.type;e.render||(e.render=o.render||i);{const t=Ti(e);Ke();try{lr(e)}finally{Je(),t()}}}function Ai(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(pn(en(e.exposed)),{get:(t,n)=>n in t?t[n]:n in or?or[n](e):void 0,has:(e,t)=>t in e||t in or}))}function Ii(e,t=!0){return y(e)?e.displayName||e.name:e.name||t&&e.__name}const Oi=(e,t)=>{const n=function(e,t,n=!1){let o,r;const s=y(e);return s?(o=e,r=i):(o=e.get,r=e.set),new on(o,r,s||!r,n)}(e,0,Ci);return n};function Li(e,t,n){const o=arguments.length;return 2===o?b(t)&&!f(t)?ni(t)?li(e,null,[t]):li(e,t):li(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ni(n)&&(n=[n]),li(e,t,n))}const Mi="3.4.21",$i="undefined"!=typeof document?document:null,Ri=$i&&$i.createElement("template"),Di={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?$i.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?$i.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?$i.createElement(e,{is:n}):$i.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>$i.createTextNode(e),createComment:e=>$i.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$i.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Ri.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=Ri.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[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Bi="transition",Ni=Symbol("_vtc"),Fi=(e,{slots:t})=>Li(yo,function(e){const t={};for(const c in e)c in ji||(t[c]=e[c]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=s,appearToClass:d=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(b(e))return[Vi(e.enter),Vi(e.leave)];{const t=Vi(e);return[t,t]}}(r),m=g&&g[0],y=g&&g[1],{onBeforeEnter:v,onEnter:_,onEnterCancelled:w,onLeave:x,onLeaveCancelled:T,onBeforeAppear:S=v,onAppear:k=_,onAppearCancelled:C=w}=t,E=(e,t,n)=>{Hi(e,t?d:a),Hi(e,t?u:s),n&&n()},P=(e,t)=>{e._isLeaving=!1,Hi(e,h),Hi(e,p),Hi(e,f),t&&t()},A=e=>(t,n)=>{const r=e?k:_,s=()=>E(t,e,n);qi(r,[t,s]),Wi((()=>{Hi(t,e?l:i),zi(t,e?d:a),Ui(r)||Xi(t,o,m,s)}))};return c(t,{onBeforeEnter(e){qi(v,[e]),zi(e,i),zi(e,s)},onBeforeAppear(e){qi(S,[e]),zi(e,l),zi(e,u)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>P(e,t);zi(e,h),document.body.offsetHeight,zi(e,f),Wi((()=>{e._isLeaving&&(Hi(e,h),zi(e,p),Ui(x)||Xi(e,o,y,n))})),qi(x,[e,n])},onEnterCancelled(e){E(e,!1),qi(w,[e])},onAppearCancelled(e){E(e,!0),qi(C,[e])},onLeaveCancelled(e){P(e),qi(T,[e])}})}(e),t);Fi.displayName="Transition";const ji={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};Fi.props=c({},mo,ji);const qi=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},Ui=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function Vi(e){const t=(e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function zi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Ni]||(e[Ni]=new Set)).add(t)}function Hi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[Ni];n&&(n.delete(t),n.size||(e[Ni]=void 0))}function Wi(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Yi=0;function Xi(e,t,n,o){const r=e._endId=++Yi,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),i=o("transitionDuration"),s=Ki(r,i),a=o("animationDelay"),l=o("animationDuration"),c=Ki(a,l);let u=null,d=0,h=0;t===Bi?s>0&&(u=Bi,d=s,h=i.length):"animation"===t?c>0&&(u="animation",d=c,h=l.length):(d=Math.max(s,c),u=d>0?s>c?Bi:"animation":null,h=u?u===Bi?i.length:l.length:0);const f=u===Bi&&/\b(transform|all)(,|$)/.test(o("transitionProperty").toString());return{type:u,timeout:d,propCount:h,hasTransform:f}}(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,h),i()},h=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{uJi(t)+Ji(e[n]))))}function Ji(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}const Gi=Symbol("_vod"),Qi=Symbol("_vsh"),Zi={beforeMount(e,{value:t},{transition:n}){e[Gi]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):es(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),es(e,!0),o.enter(e)):o.leave(e,(()=>{es(e,!1)})):es(e,t))},beforeUnmount(e,{value:t}){es(e,t)}};function es(e,t){e.style.display=t?e[Gi]:"none",e[Qi]=!t}const ts=Symbol("");function ns(e){const t=bi();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>rs(e,n)))},o=()=>{const o=e(t.proxy);os(t.subTree,o),n(o)};so(o,null,{flush:"post"}),zo((()=>{const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),Xo((()=>e.disconnect()))}))}function os(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{os(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)rs(e.el,t);else if(e.type===zr)e.children.forEach((e=>os(e,t)));else if(e.type===Yr){let{el:n,anchor:o}=e;for(;n&&(rs(n,t),n!==o);)n=n.nextSibling}}function rs(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t){const r=ys(t[e]);n.setProperty(`--${e}`,r),o+=`--${e}: ${r};`}n[ts]=o}}const is=/(^|;)\s*display\s*:/;const ss=/\s*!important$/;function as(e,t,n){if(f(n))n.forEach((n=>as(e,t,n)));else if(null==n&&(n=""),n=ys(n),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=cs[t];if(n)return n;let o=A(t);if("filter"!==o&&o in e)return cs[t]=o;o=L(o);for(let r=0;re.replace(be,((e,t)=>{if(!t)return e;if(1===gs)return`${t}${ps}`;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)*gs,ms);return 0===n?"0":`${n}${ps}`})));var ps,gs,ms;const ys=e=>v(e)?fs(e):e,vs="http://www.w3.org/1999/xlink";function _s(e,t,n,o){e.addEventListener(t,n,o)}const bs=Symbol("_vei");function ws(e,t,n,o,r=null){const i=e[bs]||(e[bs]={}),s=i[t];if(o&&s)s.value=o;else{const[n,a]=function(e){let t;if(xs.test(e)){let n;for(t={};n=e.match(xs);)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 s=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=ks(e,i);for(let o=0;oTs||(Ss.then((()=>Ts=0)),Ts=Date.now()))(),n}(o,r);_s(e,n,s,a)}else s&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,a),i[t]=void 0)}}const xs=/(?:Once|Passive|Capture)$/;let Ts=0;const Ss=Promise.resolve();function ks(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 Cs=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Es=e=>{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>R(t,e):t};function Ps(e){e.target.composing=!0}function As(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Is=Symbol("_assign"),Os={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[Is]=Es(r);const i=o||r.props&&"number"===r.props.type;_s(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=B(o)),e[Is](o)})),n&&_s(e,"change",(()=>{e.value=e.value.trim()})),t||(_s(e,"compositionstart",Ps),_s(e,"compositionend",As),_s(e,"change",As))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[Is]=Es(i),e.composing)return;const s=null==t?"":t;if((r||"number"===e.type?B(e.value):e.value)!==s){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===s)return}e.value=s}}},Ls={deep:!0,created(e,t,n){e[Is]=Es(n),_s(e,"change",(()=>{const t=e._modelValue,n=Bs(e),o=e.checked,r=e[Is];if(f(t)){const e=K(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(g(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(Ns(e,o))}))},mounted:Ms,beforeUpdate(e,t,n){e[Is]=Es(n),Ms(e,t,n)}};function Ms(e,{value:t,oldValue:n},o){e._modelValue=t,f(t)?e.checked=K(t,o.props.value)>-1:g(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=X(t,Ns(e,!0)))}const $s={created(e,{value:t},n){e.checked=X(t,n.props.value),e[Is]=Es(n),_s(e,"change",(()=>{e[Is](Bs(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[Is]=Es(o),t!==n&&(e.checked=X(t,o.props.value))}},Rs={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=g(t);_s(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?B(Bs(e)):Bs(e)));e[Is](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,In((()=>{e._assigning=!1}))})),e[Is]=Es(o)},mounted(e,{value:t,modifiers:{number:n}}){Ds(e,t,n)},beforeUpdate(e,t,n){e[Is]=Es(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Ds(e,t,n)}};function Ds(e,t,n){const o=e.multiple,r=f(t);if(!o||r||g(t)){for(let i=0,s=e.options.length;i-1}else s.selected=t.has(a);else if(X(Bs(s),t))return void(e.selectedIndex!==i&&(e.selectedIndex=i))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Bs(e){return"_value"in e?e._value:e.value}function Ns(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Fs={created(e,t,n){js(e,t,n,null,"created")},mounted(e,t,n){js(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){js(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){js(e,t,n,o,"updated")}};function js(e,t,n,o,r){const i=function(e,t){switch(e){case"SELECT":return Rs;case"TEXTAREA":return Os;default:switch(t){case"checkbox":return Ls;case"radio":return $s;default:return Os}}}(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const qs=["ctrl","shift","alt","meta"],Us={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)=>qs.some((n=>e[`${n}Key`]&&!t.includes(n)))},Vs=(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,s=i[r],a=(e.__wxsProps||(e.__wxsProps={}))[r];if(a===s)return;e.__wxsProps[r]=s;const l=o.proxy;In((()=>{n(s,a,l.$gcd(l,!0),l.$gcd(l,!1))}))}(e,t,o,s);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[Ni];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]&&as(o,t,"")}else for(const e in t)null==n[e]&&as(o,e,"");for(const e in n)"display"===e&&(i=!0),as(o,e,n[e])}else if(r){if(t!==n){const e=o[ts];e&&(n+=";"+e),o.cssText=n,i=is.test(n)}}else t&&e.removeAttribute("style");Gi in e&&(e[Gi]=i?o.display:"",e[Qi]&&(o.display="none"));const{__wxsStyle:s}=e;if(s)for(const a in s)as(o,a,s[a])}(e,n,o):a(t)?l(t)||ws(e,t,0,o,s):("."===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&&Cs(t)&&y(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(Cs(t)&&v(n))return!1;return t in e}(e,t,o,d))?function(e,t,n,o,r,i,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,r,i),void(e[t]=null==n?"":n);const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const o=null==n?"":n;return("OPTION"===a?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=Y(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(bx){}l&&e.removeAttribute(t)}(e,t,o,i,s,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(vs,t.slice(6,t.length)):e.setAttributeNS(vs,t,n);else{const o=W(t);null==n||o&&!Y(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))},Di);let Hs;const Ws=(...e)=>{const t=(Hs||(Hs=Fr(zs))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(v(e)){return document.querySelector(e)}return e}(e);if(!o)return;const r=t._component;y(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 Ys=["{","}"];const Xs=/^(?:\d)+/,Ks=/^(?:\w)+/;const Js=Object.prototype.hasOwnProperty,Gs=(e,t)=>Js.call(e,t),Qs=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Ys){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 ea{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||Qs,this.messages=n||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=Zs(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=>{Gs(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=Zs(t,this.messages))&&(o=this.messages[t]):n=t,Gs(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 ta(e,t={},n,o){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&sh?sh():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const r=new ea({locale:e,fallbackLocale:n,messages:t,watcher:o});let i=(e,t)=>{{let e=!1;i=function(t,n){const o=Hg().$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 na(e,t){return e.indexOf(t[0])>-1} /*! * vue-router v4.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */const oa="undefined"!=typeof document;const ra=Object.assign;function ia(e,t){const n={};for(const o in t){const r=t[o];n[o]=aa(r)?r.map(e):e(r)}return n}const sa=()=>{},aa=Array.isArray,la=/#/g,ca=/&/g,ua=/\//g,da=/=/g,ha=/\?/g,fa=/\+/g,pa=/%5B/g,ga=/%5D/g,ma=/%5E/g,ya=/%60/g,va=/%7B/g,_a=/%7C/g,ba=/%7D/g,wa=/%20/g;function xa(e){return encodeURI(""+e).replace(_a,"|").replace(pa,"[").replace(ga,"]")}function Ta(e){return xa(e).replace(fa,"%2B").replace(wa,"+").replace(la,"%23").replace(ca,"%26").replace(ya,"`").replace(va,"{").replace(ba,"}").replace(ma,"^")}function Sa(e){return null==e?"":function(e){return xa(e).replace(la,"%23").replace(ha,"%3F")}(e).replace(ua,"%2F")}function ka(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Ca=/\/$/;function Ea(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,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,s,a=n.length-1;for(i=0;i1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:ka(s)}}function Pa(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Aa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ia(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Oa(e[n],t[n]))return!1;return!0}function Oa(e,t){return aa(e)?La(e,t):aa(t)?La(t,e):e===t}function La(e,t){return aa(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Ma,$a,Ra,Da;function Ba(e){if(!e)if(oa){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Ca,"")}($a=Ma||(Ma={})).pop="pop",$a.push="push",(Da=Ra||(Ra={})).back="back",Da.forward="forward",Da.unknown="";const Na=/^[^#]+#/;function Fa(e,t){return e.replace(Na,"#")+t}const ja=()=>({left:window.scrollX,top:window.scrollY});function qa(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 Ua(e,t){return(history.state?history.state.position-t:-1)+e}const Va=new Map;function za(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),Pa(n,"")}return Pa(n,e)+o+r}function Ha(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ja():null}}function Wa(e){const{history:t,location:n}=window,o={value:za(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[s?"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 s=ra({},r.value,t.state,{forward:e,scroll:ja()});i(s.current,s,!0),i(e,ra({},Ha(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,ra({},t.state,Ha(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function Ya(e){const t=Wa(e=Ba(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const a=({state:i})=>{const a=za(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);u=c?i.position-c.position:0}else o(a);r.forEach((e=>{e(n.value,l,{delta:u,type:Ma.pop,direction:u?u>0?Ra.forward:Ra.back:Ra.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(ra({},e.state,{scroll:ja()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=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",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=ra({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Fa.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 Xa(e){return"string"==typeof e||"symbol"==typeof e}const Ka={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ja=Symbol("");var Ga,Qa;function Za(e,t){return ra(new Error,{type:e,[Ja]:!0},t)}function el(e,t){return e instanceof Error&&Ja in e&&(null==t||!!(e.type&t))}(Qa=Ga||(Ga={}))[Qa.aborted=4]="aborted",Qa[Qa.cancelled=8]="cancelled",Qa[Qa.duplicated=16]="duplicated";const tl={sensitive:!1,strict:!1,start:!0,end:!0},nl=/[.+*?^${}()[\]/\\]/g;function ol(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function rl(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const sl={type:0,value:""},al=/[a-zA-Z0-9_]/;function ll(e,t,n){const o=function(e,t){const n=ra({},tl,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&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function h(){c+=a}for(;l{i(h)}:sa}function i(e){if(Xa(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 s(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!gl(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!hl(e)&&o.set(e.record.name,e)}return t=pl({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,a={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw Za(1,{location:e});s=r.record.name,a=ra(ul(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&ul(e.params,r.keys.map((e=>e.name)))),i=r.stringify(a)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(a=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw Za(1,{location:e,currentLocation:t});s=r.record.name,a=ra({},t.params,e.params),i=r.stringify(a)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:i,params:a,matched:l,meta:fl(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function ul(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function dl(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 hl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fl(e){return e.reduce(((e,t)=>ra(e,t.meta)),{})}function pl(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function gl(e,t){return t.children.some((t=>t===e||gl(e,t)))}function ml(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&Ta(e))):[o&&Ta(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function vl(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=aa(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const _l=Symbol(""),bl=Symbol(""),wl=Symbol(""),xl=Symbol(""),Tl=Symbol("");function Sl(){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 kl(e,t,n,o,r,i=(e=>e())){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,l)=>{const c=e=>{var i;!1===e?l(Za(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l(Za(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),a())},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 Cl(e,t,n,o,r=(e=>e())){const i=[];for(const a of e)for(const e in a.components){let l=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(s=l)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(l.__vccOpts||l)[t];s&&i.push(kl(s,n,o,a,e,r))}else{let s=l();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const s=(l=i).__esModule||"Module"===l[Symbol.toStringTag]?i.default:i;var l;a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&kl(c,n,o,a,e,r)()}))))}}var s;return i}function El(e){const t=Sr(wl),n=Sr(xl),o=Oi((()=>t.resolve(hn(e.to)))),r=Oi((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Aa.bind(null,r));if(s>-1)return s;const a=Al(e[t-2]);return t>1&&Al(r)===a&&i[i.length-1].path!==a?i.findIndex(Aa.bind(null,e[t-2])):s})),i=Oi((()=>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(!aa(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Oi((()=>r.value>-1&&r.value===n.matched.length-1&&Ia(n.params,o.value.params)));return{route:o,href:Oi((()=>o.value.href)),isActive:i,isExactActive:s,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[hn(e.replace)?"replace":"push"](hn(e.to)).catch(sa):Promise.resolve()}}}const Pl=So({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:El,setup(e,{slots:t}){const n=Ht(El(e)),{options:o}=Sr(wl),r=Oi((()=>({[Il(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Il(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Li("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Al(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Il=(e,t,n)=>null!=e?e:null!=t?t:n,Ol=So({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Sr(Tl),r=Oi((()=>e.route||o.value)),i=Sr(bl,0),s=Oi((()=>{let e=hn(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=Oi((()=>r.value.matched[s.value]));Tr(bl,Oi((()=>s.value+1))),Tr(_l,a),Tr(Tl,r);const l=ln();return io((()=>[l.value,a.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&&Aa(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=a.value,c=s&&s.components[i];if(!c)return Ll(n.default,{Component:c,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,h=Li(c,ra({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:l}));return Ll(n.default,{Component:h,route:o})||h}}});function Ll(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ml=Ol;function $l(e){const t=cl(e.routes,e),n=e.parseQuery||ml,o=e.stringifyQuery||yl,r=e.history,i=Sl(),s=Sl(),a=Sl(),l=cn(Ka);let c=Ka;oa&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ia.bind(null,(e=>""+e)),d=ia.bind(null,Sa),h=ia.bind(null,ka);function f(e,i){if(i=ra({},i||l.value),"string"==typeof e){const o=Ea(n,e,i.path),s=t.resolve({path:o.path},i),a=r.createHref(o.fullPath);return ra(o,s,{params:h(s.params),hash:ka(o.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=ra({},e,{path:Ea(n,e.path,i.path).path});else{const t=ra({},e.params);for(const e in t)null==t[e]&&delete t[e];s=ra({},e,{params:d(t)}),i.params=d(i.params)}const a=t.resolve(s,i),c=e.hash||"";a.params=u(h(a.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,ra({},e,{hash:(p=c,xa(p).replace(va,"{").replace(ba,"}").replace(ma,"^")),path:a.path}));var p;const g=r.createHref(f);return ra({fullPath:f,hash:c,query:o===yl?vl(e.query):e.query||{}},a,{redirectedFrom:void 0,href:g})}function p(e){return"string"==typeof e?Ea(n,e,l.value.path):ra({},e)}function g(e,t){if(c!==e)return Za(8,{from:t,to:e})}function m(e){return v(e)}function y(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=p(o):{path:o},o.params={}),ra({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function v(e,t){const n=c=f(e),r=l.value,i=e.state,s=e.force,a=!0===e.replace,u=y(n);if(u)return v(ra(p(u),{state:"object"==typeof u?ra({},i,u.state):i,force:s,replace:a}),t||n);const d=n;let h;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Aa(t.matched[o],n.matched[r])&&Ia(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(h=Za(16,{to:d,from:r}),O(r,r,!0,!1)),(h?Promise.resolve(h):w(d,r)).catch((e=>el(e)?el(e,2)?e:I(e):A(e,d,r))).then((e=>{if(e){if(el(e,2))return v(ra({replace:a},p(e.to),{state:"object"==typeof e.to?ra({},i,e.to.state):i,force:s}),t||d)}else e=T(d,r,!0,a,i);return x(d,r,e),e}))}function _(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function b(e){const t=$.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,r,a]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sAa(e,i)))?o.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>Aa(e,a)))||r.push(a))}return[n,o,r]}(e,t);n=Cl(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(kl(o,e,t))}));const l=_.bind(null,e,t);return n.push(l),D(n).then((()=>{n=[];for(const o of i.list())n.push(kl(o,e,t));return n.push(l),D(n)})).then((()=>{n=Cl(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(kl(o,e,t))}));return n.push(l),D(n)})).then((()=>{n=[];for(const o of a)if(o.beforeEnter)if(aa(o.beforeEnter))for(const r of o.beforeEnter)n.push(kl(r,e,t));else n.push(kl(o.beforeEnter,e,t));return n.push(l),D(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Cl(a,"beforeRouteEnter",e,t,b),n.push(l),D(n)))).then((()=>{n=[];for(const o of s.list())n.push(kl(o,e,t));return n.push(l),D(n)})).catch((e=>el(e,8)?e:Promise.reject(e)))}function x(e,t,n){a.list().forEach((o=>b((()=>o(e,t,n)))))}function T(e,t,n,o,i){const s=g(e,t);if(s)return s;const a=t===Ka,c=oa?history.state:{};n&&(o||a?r.replace(e.fullPath,ra({scroll:a&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,O(e,t,n,a),I()}let S;function k(){S||(S=r.listen(((e,t,n)=>{if(!R.listening)return;const o=f(e),i=y(o);if(i)return void v(ra(i,{replace:!0}),o).catch(sa);c=o;const s=l.value;var a,u;oa&&(a=Ua(s.fullPath,n.delta),u=ja(),Va.set(a,u)),w(o,s).catch((e=>el(e,12)?e:el(e,2)?(v(e.to,o).then((e=>{el(e,20)&&!n.delta&&n.type===Ma.pop&&r.go(-1,!1)})).catch(sa),Promise.reject()):(n.delta&&r.go(-n.delta,!1),A(e,o,s)))).then((e=>{(e=e||T(o,s,!1))&&(n.delta&&!el(e,8)?r.go(-n.delta,!1):n.type===Ma.pop&&el(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(sa)})))}let C,E=Sl(),P=Sl();function A(e,t,n){I(e);const o=P.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function I(e){return C||(C=!e,k(),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function O(t,n,o,r){const{scrollBehavior:i}=e;if(!oa||!i)return Promise.resolve();const s=!o&&function(e){const t=Va.get(e);return Va.delete(e),t}(Ua(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return In().then((()=>i(t,n,s))).then((e=>e&&qa(e))).catch((e=>A(e,t,n)))}const L=e=>r.go(e);let M;const $=new Set,R={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return Xa(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(ra(p(e),{replace:!0}))},go:L,back:()=>L(-1),forward:()=>L(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:P.add,isReady:function(){return C&&l.value!==Ka?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){e.component("RouterLink",Pl),e.component("RouterView",Ml),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>hn(l)}),oa&&!M&&l.value===Ka&&(M=!0,m(r.location).catch((e=>{})));const t={};for(const o in Ka)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(wl,this),e.provide(xl,Wt(t)),e.provide(Tl,l);const n=e.unmount;$.add(e),e.unmount=function(){$.delete(e),$.size<1&&(c=Ka,S&&S(),S=null,l.value=Ka,M=!1,C=!1),n()}}};function D(e){return e.reduce(((e,t)=>e.then((()=>b(t)))),Promise.resolve())}return R}function Rl(){return Sr(xl)}const Dl=pe((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let Bl;function Nl(e){return na(e,oe)?ql().f(e,function(){const e=sh(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),oe):e}function Fl(e,t){if(1===t.length){if(e){const n=e=>v(e)&&na(e,oe),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 Fl(e&&e[n],t)}function jl(e,t){const n=Fl(e,t);if(!n)return!1;const o=t[t.length-1];if(f(n))n.forEach((e=>jl(e,[o])));else{let e=n[o];Object.defineProperty(n,o,{get:()=>Nl(e),set(t){e=t}})}return!0}function ql(){if(!Bl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,Bl=ta(e),Dl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>Bl.add(e,__uniConfig.locales[e]))),Bl.setLocale(e)}}return Bl}function Ul(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const Vl=pe((()=>{const e="uni.async.",t=["error"];ql().add("en",Ul(e,t,["The connection timed out, click the screen to try again."]),!1),ql().add("es",Ul(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),ql().add("fr",Ul(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),ql().add("zh-Hans",Ul(e,t,["连接服务器超时,点击屏幕重试"]),!1),ql().add("zh-Hant",Ul(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),zl=pe((()=>{const e="uni.showToast.",t=["unpaired"];ql().add("en",Ul(e,t,["Please note showToast must be paired with hideToast"]),!1),ql().add("es",Ul(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),ql().add("fr",Ul(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),ql().add("zh-Hans",Ul(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),ql().add("zh-Hant",Ul(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),Hl=pe((()=>{const e="uni.showLoading.",t=["unpaired"];ql().add("en",Ul(e,t,["Please note showLoading must be paired with hideLoading"]),!1),ql().add("es",Ul(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),ql().add("fr",Ul(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),ql().add("zh-Hans",Ul(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),ql().add("zh-Hant",Ul(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),Wl=pe((()=>{const e="uni.showModal.",t=["cancel","confirm"];ql().add("en",Ul(e,t,["Cancel","OK"]),!1),ql().add("es",Ul(e,t,["Cancelar","OK"]),!1),ql().add("fr",Ul(e,t,["Annuler","OK"]),!1),ql().add("zh-Hans",Ul(e,t,["取消","确定"]),!1),ql().add("zh-Hant",Ul(e,t,["取消","確定"]),!1)})),Yl=pe((()=>{const e="uni.chooseFile.",t=["notUserActivation"];ql().add("en",Ul(e,t,["File chooser dialog can only be shown with a user activation"]),!1),ql().add("es",Ul(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),ql().add("fr",Ul(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),ql().add("zh-Hans",Ul(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),ql().add("zh-Hant",Ul(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),Xl=pe((()=>{const e="uni.picker.",t=["done","cancel"];ql().add("en",Ul(e,t,["Done","Cancel"]),!1),ql().add("es",Ul(e,t,["OK","Cancelar"]),!1),ql().add("fr",Ul(e,t,["OK","Annuler"]),!1),ql().add("zh-Hans",Ul(e,t,["完成","取消"]),!1),ql().add("zh-Hant",Ul(e,t,["完成","取消"]),!1)})),Kl=pe((()=>{const e="uni.video.",t=["danmu","volume"];ql().add("en",Ul(e,t,["Danmu","Volume"]),!1),ql().add("es",Ul(e,t,["Danmu","Volumen"]),!1),ql().add("fr",Ul(e,t,["Danmu","Le Volume"]),!1),ql().add("zh-Hans",Ul(e,t,["弹幕","音量"]),!1),ql().add("zh-Hant",Ul(e,t,["彈幕","音量"]),!1)}));function Jl(e){const t=new $e;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 Gl=1;const Ql=Object.create(null);function Zl(e,t){return e+"."+t}function ec(e,t,n){t=Zl(e,t),Ql[t]||(Ql[t]=n)}function tc({id:e,name:t,args:n},o){t=Zl(o,t);const r=t=>{e&&Cv.publishHandler("invokeViewApi."+e,t)},i=Ql[t];i?i(n,r):r({})}const nc=c(Jl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:r}=Cv,i=n?Gl++:0;n&&o("invokeServiceApi."+i,n,!0),r("invokeServiceApi",{id:i,name:e,args:t})}}),oc=we(!0);let rc;function ic(){rc&&(clearTimeout(rc),rc=null)}let sc=0,ac=0;function lc(e){if(ic(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];sc=t,ac=n,rc=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 cc(e){if(!rc)return;if(1!==e.touches.length)return ic();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-sc)>10||Math.abs(n-ac)>10?ic():void 0}function uc(e,t){const n=Number(e);return isNaN(n)?t:n}function dc(){const e=__uniConfig.globalStyle||{},t=uc(e.rpxCalcMaxDeviceWidth,960),n=uc(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 hc(){dc(),ve(),window.addEventListener("touchstart",lc,oc),window.addEventListener("touchmove",cc,oc),window.addEventListener("touchend",ic,oc),window.addEventListener("touchcancel",ic,oc)}function fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pc,gc,mc=["top","left","right","bottom"],yc={};function vc(){return gc="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 _c(){if(gc="string"==typeof gc?gc:vc()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(bx){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),mc.forEach((function(e){s(o,e)})),document.body.appendChild(o),i(),pc=!0}else mc.forEach((function(e){yc[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 s(e,n){var o=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:gc+"(safe-area-inset-"+n+")"};r(o,c),r(s,c),r(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(a),s.appendChild(l),e.appendChild(o),e.appendChild(s),i((function(){o.scrollTop=s.scrollTop=1e4;var e=o.scrollTop,r=s.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=s.scrollTop=1e4,e=o.scrollTop,r=s.scrollTop,function(e){wc.length||setTimeout((function(){var e={};wc.forEach((function(t){e[t]=yc[t]})),wc.length=0,xc.forEach((function(t){t(e)}))}),0);wc.push(e)}(n))}o.addEventListener("scroll",i,t),s.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(yc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function bc(e){return pc||_c(),yc[e]}var wc=[];var xc=[];const Tc=fc({get support(){return 0!=("string"==typeof gc?gc:vc()).length},get top(){return bc("top")},get left(){return bc("left")},get right(){return bc("right")},get bottom(){return bc("bottom")},onChange:function(e){vc()&&(pc||_c(),"function"==typeof e&&xc.push(e))},offChange:function(e){var t=xc.indexOf(e);t>=0&&xc.splice(t,1)}}),Sc=Vs((()=>{}),["prevent"]),kc=Vs((e=>{}),["stop"]);function Cc(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Ec(){const e=Cc(document.documentElement.style,"--window-top");return e?e+Tc.top:0}function Pc(){const e=document.documentElement.style,t=Ec(),n=Cc(e,"--window-bottom"),o=Cc(e,"--window-left"),r=Cc(e,"--window-right"),i=Cc(e,"--top-window-height");return{top:t,bottom:n?n+Tc.bottom:0,left:o?o+Tc.left:0,right:r?r+Tc.right:0,topWindowHeight:i||0}}function Ac(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function Ic(e){return Ac(e)}function Oc(e){return Symbol(e)}function Lc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Mc(e,t=!1){if(t)return function(e){if(!Lc(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 Lc(e)?Bd(t):t}return e}const $c="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",Rc="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",Dc="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 Bc(e,t="#000",n=27){return li("svg",{width:n,height:n,viewBox:"0 0 32 32"},[li("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Nc(){{const{$pageInstance:e}=bi();return e&&e.proxy.$page.id}}function Fc(){const e=wg(),t=e.length;if(t)return e[t-1]}function jc(){const e=Fc();if(e)return e.$page.meta}function qc(){const e=jc();return e?e.id:-1}function Uc(){const e=Fc();if(e)return e.$vm}const Vc=["navigationBar","pullToRefresh"];function zc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);Vc.forEach((t=>{o[t]=c({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function Hc(e,t,n){if(v(e))n=t,t=e,e=Uc();else if("number"==typeof e){const t=wg().find((t=>t.$page.id===e));e=t?t.$vm:Uc()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,s=Math.abs(e-Xc)>n;return!i||r&&!s?(!i&&r&&(r=!1),!1):(Xc=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(s()||(Yc=setTimeout(s,300))),o=!1};return function(){clearTimeout(Yc),o||requestAnimationFrame(s),o=!0}}function Jc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Jc(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),he(i.concat(n).join("/"))}function Gc(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(le(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&&le(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=nu(this.$el.querySelector(e));return t?Zc(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];y(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&Cv.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 Zc(e,t=!0){if(t&&e&&(e=ae(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Qc(e)),e.$el.__wxsComponentDescriptor}function eu(e,t){return Zc(e,t)}function tu(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>eu(n.proxy,!1)}));const r=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=ae(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}(t,n,o);if(r)return[e,eu(r,!1)]}}function nu(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function ou(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e;let s,a;s=xe(t?r:function(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}(r)),a=xe(i);const l={type:n,timeStamp:o,target:s,detail:{},currentTarget:a};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 ru(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function iu(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Ec();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[ru(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=Ec();i.touches=iu(e.touches,t),i.changedTouches=iu(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 tu(i,t,n)||[i]},createNativeEvent:ou},Symbol.toStringTag,{value:"Module"});function au(e){!function(e){const t=e.globalProperties;c(t,su),t.$gcd=eu}(e._context.config)}let lu=1;function cu(e){return(e||qc())+".invokeViewApi"}const uu=c(Jl("view"),{invokeOnCallback:(e,t)=>Ev.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=Ev,s=o?lu++:0;o&&r("invokeViewApi."+s,o,!0),i(cu(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:s}=Ev,a=lu++,l="invokeViewApi."+a;return r(l,n),s(cu(o),{id:a,name:e,args:t},o),()=>{i(l)}}});function du(e){Hc(Fc(),"onResize",e),Ev.invokeOnCallback("onWindowResize",e)}function hu(e){const t=Fc();Hc(Hg(),"onShow",e),Hc(t,"onShow")}function fu(){Hc(Hg(),"onHide"),Hc(Fc(),"onHide")}const pu=["onPageScroll","onReachBottom"];function gu(){pu.forEach((e=>Ev.subscribe(e,function(e){return(t,n)=>{Hc(parseInt(n),e,t)}}(e))))}function mu(){!function(){const{on:e}=Ev;e("onResize",du),e("onAppEnterForeground",hu),e("onAppEnterBackground",fu)}(),gu()}function yu(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Pe(this.$page.id)),e.eventChannel}}function vu(e){e._context.config.globalProperties.getOpenerEventChannel=yu}function _u(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function bu(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 wu(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],s=t.option.transition,a=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,s=e.option,a=s.transition,l={},c=[];return i.forEach((e=>{let i=e.type,s=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?s=s.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(s=s.map(bu)),n.indexOf(i)>=0&&(s.length=1),c.push(`${i}(${s.join(",")})`);else if(o.concat(r).includes(s[0])){i=s[0];const e=s[1];l[i]=r.includes(i)?bu(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)} ${a.duration}ms ${a.timingFunction} ${a.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(a).forEach((t=>{e.$el.style[t]=a[t]})),n+=1,n{i()}),0)}const xu={props:["animation"],watch:{animation:{deep:!0,handler(){wu(this)}}},mounted(){wu(this)}},Tu=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(xu),Su(e)},Su=e=>(e.__reserved=!0,e.compatConfig={MODE:3},So(e));function ku(e){return e.__wwe=!0,e}function Cu(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 Eu={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Pu(e){const t=ln(!1);let n,o,r=!1;function i(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function s(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 a(){r=!1,t.value&&i()}function l(){a(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:ku((function(e){e.touches.length>1||s(e)})),onMousedown:ku((function(e){r||(s(e),window.addEventListener("mouseup",l))})),onTouchend:ku((function(){a()})),onMouseup:ku((function(){r&&l()})),onTouchcancel:ku((function(){r=!1,t.value=!1,clearTimeout(n)}))}}}function Au(e,t){return v(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const Iu=Oc("uf"),Ou=Oc("ul");function Lu(e,t,n){const o=Nc();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&Cv.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?Cv.on(r,t[r]):e&&Cv.on(`uni-${r}-${o}-${e}`,t[r])}))}function Mu(e,t,n){const o=Nc();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&Cv.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?Cv.off(r,t[r]):e&&Cv.off(`uni-${r}-${o}-${e}`,t[r])}))}const $u=Tu({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=ln(null),o=Sr(Iu,!1),{hovering:r,binding:i}=Pu(e);ql();const s=ku(((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;})),a=Sr(Ou,!1);return a&&(a.addHandler(s),Yo((()=>{a.removeHandler(s)}))),function(e,t){Lu(e.id,t),io((()=>e.id),((e,n)=>{Mu(n,t,!0),Lu(e,t,!0)})),Xo((()=>{Mu(e.id,t)}))}(e,{"label-click":s}),()=>{const o=e.hoverClass,a=Au(e,"disabled"),l=Au(e,"loading"),c=Au(e,"plain"),u=o&&"none"!==o;return li("uni-button",gi({ref:n,onClick:s,id:e.id,class:u&&r.value?o:""},u&&i,a,l,c),[t.default&&t.default()],16,["onClick","id"])}}});function Ru(e){const{base:t}=__uniConfig.router;return 0===he(e).indexOf(t)?he(e):t+e}function Du(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0===e.indexOf("./static/")||n&&0===e.indexOf("./"+n+"/"))&&(e=e.slice(1)),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Ru(e.slice(1));e="https:"+e}if(re.test(e)||ie.test(e)||0===e.indexOf("blob:"))return e;const o=wg();return o.length?Ru(Jc(o[o.length-1].$page.route,e).slice(1)):e}const Bu=navigator.userAgent,Nu=/android/i.test(Bu),Fu=/iphone|ipad|ipod/i.test(Bu),ju=Bu.match(/Windows NT ([\d|\d.\d]*)/i),qu=/Macintosh|Mac/i.test(Bu),Uu=/Linux|X11/i.test(Bu),Vu=qu&&navigator.maxTouchPoints>0;function zu(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function Hu(e){return e&&90===Math.abs(window.orientation)}function Wu(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function Yu(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function Xu(e,t,n,o){Ev.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function Ku(e,t){const n={},{top:o,topWindowHeight:r}=Pc();if(t.node){const t=e.tagName.split("-")[1];t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=_e(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 Ju(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 Gu(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),s=i.parentElement;if(!s)return o?null:[];const{nodeType:a}=i,l=3===a||8===a;if(o){const e=l?s.querySelector(n):Ju(i,n)?i:i.querySelector(n);return e?Ku(e,r):null}{let e=[];const t=(l?s:i).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(Ku(t,r))})),!l&&Ju(i,n)&&e.unshift(Ku(i,r)),e}}(e,t,n,r,i))})),n(o)}const Qu=["original","compressed"],Zu=["album","camera"],ed=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function td(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function nd(e,t){return!f(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function od(e){return function(){try{return e.apply(e,arguments)}catch(bx){console.error(bx)}}}let rd=1;const id={};function sd(e,t,n){if("number"==typeof e){const o=id[e];if(o)return o.keepAlive||delete id[e],o.callback(t,n)}return t}const ad="success",ld="fail",cd="complete";function ud(e,t={},{beforeAll:n,beforeSuccess:o}={}){S(t)||(t={});const{success:r,fail:i,complete:s}=function(e){const t={};for(const n in e){const o=e[n];y(o)&&(t[n]=od(o),delete e[n])}return t}(t),a=y(r),l=y(i),c=y(s),u=rd++;return function(e,t,n,o=!1){id[e]={name:t,keepAlive:o,callback:n}}(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),y(n)&&n(u),u.errMsg===e+":ok"?(y(o)&&o(u,t),a&&r(u)):l&&i(u),c&&s(u)})),u}const dd="success",hd="fail",fd="complete",pd={},gd={};function md(e,t){return function(n){return e(n,t)||n}}function yd(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function vd(e,t={}){return[dd,hd,fd].forEach((n=>{const o=e[n];if(!f(o))return;const r=t[n];t[n]=function(e){yd(o,e,t).then((e=>y(r)&&r(e)||e))}})),t}function _d(e,t){const n=[];f(pd.returnValue)&&n.push(...pd.returnValue);const o=gd[e];return o&&f(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function bd(e){const t=Object.create(null);Object.keys(pd).forEach((e=>{"returnValue"!==e&&(t[e]=pd[e].slice())}));const n=gd[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function wd(e,t,n,o){const r=bd(e);if(r&&Object.keys(r).length){if(f(r.invoke)){return yd(r.invoke,n).then((n=>t(vd(bd(e),n),...o)))}return t(vd(r,n),...o)}return t(n,...o)}function xd(e,t){return(n={},...o)=>function(e){return!(!S(e)||![ad,ld,cd].find((t=>y(e[t]))))}(n)?_d(e,wd(e,t,n,o)):_d(e,new Promise(((r,i)=>{wd(e,t,c(n,{success:r,fail:i}),o)})))}function Td(e,t,n,o={}){const r=t+":fail"+(n?" "+n:"");return delete o.errCode,sd(e,c({errMsg:r},o))}function Sd(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||!S(t.formatArgs)&&S(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const r=ud(e,n,o),i=Sd(0,[n],0,o);return i?Td(r,e,i):t(n,{resolve:t=>function(e,t,n){return sd(e,c(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>Td(r,e,function(e){return!e||v(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function Cd(e,t,n,o){return xd(e,kd(e,t,0,o))}function Ed(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Sd(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Pd(e,t,n,o){return xd(e,function(e,t,n,o){return kd(e,t,0,o)}(e,t,0,o))}let Ad=!1,Id=0,Od=0,Ld=960,Md=375,$d=750;function Rd(){const{platform:e,pixelRatio:t,windowWidth:n}=function(){const e=zu(),t=Yu(Wu(e,Hu(e)));return{platform:Fu?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();Id=n,Od=t,Ad="ios"===e}function Dd(e,t){const n=Number(e);return isNaN(n)?t:n}const Bd=Ed(0,((e,t)=>{if(0===Id&&(Rd(),function(){const e=__uniConfig.globalStyle||{};Ld=Dd(e.rpxCalcMaxDeviceWidth,960),Md=Dd(e.rpxCalcBaseDeviceWidth,375),$d=Dd(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Id;n=e===$d||n<=Ld?n:Md;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Od&&Ad?.5:1),e<0?-o:o}));function Nd(e,t){Object.keys(t).forEach((n=>{y(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(gd[e]||(gd[e]={}),t):S(e)&&Nd(pd,e)})),jd=[.5,.8,1,1.25,1.5,2];const qd=(e,t,n,o)=>{!function(e,t,n,o,r){Ev.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)}))};const Ud={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 Vd(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(h(Ud,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(Ud[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 zd{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,Vd(t)])}}class Hd{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class Wd{constructor(e){this.width=e}}let Yd=0,Xd={};function Kd(e,t,n,o){const r={options:o},i=o&&("success"in o||"fail"in o||"complete"in o);if(i){const e=String(Yd++);r.callbackId=e,Xd[e]=o}Ev.invokeViewMethod(`editor.${e}`,{type:n,data:r},t,(({callbackId:e,data:t})=>{i&&(!function(e,t){e=e||{},v(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?y(e.success)&&e.success(t):y(e.fail)&&e.fail(t),y(e.complete)&&e.complete(t)}(Xd[e],t),delete Xd[e])}))}const Jd={canvas:class{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"}}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],function(e,t,n,o,r){Ev.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,(e=>{r&&r(e)}))}(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new zd("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new zd("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 Hd(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){let t=0;return t=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new Wd(t)}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],s=[];o.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&a()})),1===o.length&&a(),o=s.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 a(){s.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]})}},map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){qd(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){qd(this.id,this.pageId,"moveToLocation",e)}getScale(e){qd(this.id,this.pageId,"getScale",e)}getRegion(e){qd(this.id,this.pageId,"getRegion",e)}includePoints(e){qd(this.id,this.pageId,"includePoints",e)}translateMarker(e){qd(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){qd(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){qd(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){qd(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){qd(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){qd(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){qd(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){qd(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){qd(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){qd(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){qd(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){qd(this.id,this.pageId,"openMapApp",e)}on(e,t){qd(this.id,this.pageId,"on",{name:e,callback:t})}},video:class{constructor(e,t){this.id=e,this.pageId=t}play(){Xu(this.id,this.pageId,"play")}pause(){Xu(this.id,this.pageId,"pause")}stop(){Xu(this.id,this.pageId,"stop")}seek(e){Xu(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){Xu(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~jd.indexOf(e)||(e=1),Xu(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){Xu(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){Xu(this.id,this.pageId,"exitFullScreen")}showStatusBar(){Xu(this.id,this.pageId,"showStatusBar")}hideStatusBar(){Xu(this.id,this.pageId,"hideStatusBar")}},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){Kd(this.id,this.pageId,e,t)}}};function Gd(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,r=Jd[n];e.context=new r(t,o),delete e.contextInfo}}class Qd{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 Zd{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return Gu(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{f(e)?e.forEach(Gd):Gd(e);const o=n[t];y(o)&&o.call(this,e)})),y(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=se(e),this}select(e){return this._nodesRef=new Qd(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new Qd(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new Qd(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 eh=Ed(0,(e=>((e=se(e))&&!function(e){const t=se(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}(e)&&(e=null),new Zd(e||Uc())))),th={formatArgs:{}},nh={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class oh{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=c({},nh,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 rh=pe((()=>{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=>{oh.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}}))})),ih=Ed(0,(e=>(rh(),new oh(e))),0,th),sh=Ed(0,(()=>{const e=Hg();return e&&e.$vm?e.$vm.$locale:ql().getLocale()})),ah={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const lh=Ed(0,(()=>c({},Zh)));let ch,uh,dh;const hh=[];const fh=Pd("getPushClientId",((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{var e,o;void 0===dh&&(dh=!1,ch="",uh="uniPush is not enabled"),hh.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==ch&&(e=ch,o=uh,hh.forEach((t=>{t(e,o)})),hh.length=0)}))})),ph={formatArgs:{filePath(e,t){t.filePath=Du(e)}}},gh=["wgs84","gcj02"],mh={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===gh.indexOf(e)?t.type=gh[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},yh=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=nd(e,Qu)},sourceType(e,t){t.sourceType=nd(e,Zu)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),vh={formatArgs:{sourceType(e,t){t.sourceType=nd(e,Zu)},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=["*"])}}},_h=(Boolean,["all","image","video"]),bh={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=nd(e,Zu)},type(e,t){t.type=td(e,_h)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},wh={formatArgs:{src(e,t){t.src=Du(e)}}},xh={formatArgs:{urls(e,t){t.urls=e.map((e=>v(e)&&e?Du(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),s={};i.forEach((e=>{const t=e.split("=");s[t[0]]=t[1]}));for(const a in t)if(h(t,a)){let e=t[a];null==e?e="":S(e)&&(e=JSON.stringify(e)),s[kh(a)]=kh(e)}return r=Object.keys(s).map((e=>`${e}=${s[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==ed[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Th).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Sh.indexOf(t.responseType)&&(t.responseType="text")}}},Eh={formatArgs:{header(e,t){t.header=e||{}}}},Ph={formatArgs:{filePath(e,t){e&&(t.filePath=Du(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Ah={url:{type:String,required:!0}},Ih=(Rh(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Rh(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),Nh("navigateTo")),Oh=Nh("redirectTo"),Lh=Nh("reLaunch"),Mh=Nh("switchTab"),$h={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(wg().length-1,e)}}};function Rh(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let Dh;function Bh(){Dh=""}function Nh(e){return{formatArgs:{url:Fh(e)},beforeAll:Bh}}function Fh(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=wg();return n.length&&(t=n[n.length-1].$page.route),Jc(t,e)}(t)).split("?")[0],r=Gc(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(Dh===t&&"appLaunch"!==n.openType)return`${Dh} locked`;__uniConfig.ready&&(Dh=t)}else if(r.meta.isTabBar){const e=wg(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const jh={formatArgs:{animation(e,t){e||(e={duration:0,timingFunc:"linear"}),t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},qh=(Boolean,{formatArgs:{title:"",mask:!1}}),Uh=(Boolean,{beforeInvoke(){Wl()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!h(t,"cancelText")){const{t:e}=ql();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!h(t,"confirmText")){const{t:e}=ql();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),Vh=["success","loading","none","error"],zh=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=td(e,Vh)},image(e,t){t.image=e?Du(e):""},duration:1500,mask:!1}}),Hh={beforeInvoke(){const e=jc();if(e&&!e.isTabBar)return"not TabBar page"},formatArgs:{index(e){if(!__uniConfig.tabBar.list[e])return"tabbar item not found"}}},Wh=Hh,Yh={beforeInvoke:Hh.beforeInvoke,formatArgs:c({text(e,t){(function(e=""){return(""+e).replace(/[^\x00-\xff]/g,"**").length})(e)>=4&&(t.text="...")}},Hh.formatArgs)},Xh={};function Kh(e,t){const n=Xh[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 s=new Uint8Array(i);for(;i--;)s[i]=r.charCodeAt(i);return Jh(s,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 Jh(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 Gh(e){for(const n in Xh)if(h(Xh,n)){if(Xh[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Xh[t]=e,t}function Qh(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete Xh[e]}const Zh=_u(),ef=_u();const tf=Tu({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=ln(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=Ht({width:-1,height:-1});return io((()=>c({},o)),(e=>t("resize",e))),()=>{const t=e.value;o.width=t.offsetWidth,o.height=t.offsetHeight,n()}}(n,t,o);return function(e,t,n,o){Mo(o),zo((()=>{t.initial&&In(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,r,o),()=>li("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[li("div",{onScroll:r},[li("div",null,null)],40,["onScroll"]),li("div",{onScroll:r},[li("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function nf(){}const of={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 rf(e,t,n){function o(e){const t=Oi((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",nf,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",nf,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}io((()=>t.value),(e=>e&&o(e)))}var sf=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,af=/^<\/([-A-Za-z0-9_]+)[^>]*>/,lf=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,cf=gf("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),uf=gf("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"),df=gf("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"),hf=gf("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),ff=gf("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),pf=gf("script,style");function gf(e){for(var t={},n=e.split(","),o=0;oe/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},vf={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"]},_f=Tu({name:"Image",props:mf,setup(e,{emit:t}){const n=ln(null),o=function(e,t){const n=ln(""),o=Oi((()=>{let e="auto",o="";const r=vf[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=Ht({rootEl:e,src:Oi((()=>t.src?Du(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return zo((()=>{const t=e.value.style;r.origWidth=Number(t.width)||0,r.origHeight=Number(t.height)||0})),r}(n,e),r=Cu(n,t),{fixSize:i}=function(e,t,n){const o=()=>{const{mode:o}=t,r=yf[o];if(!r)return;const{origWidth:i,origHeight:s}=n,a=i&&s?i/s:0;if(!a)return;const l=e.value,c=l[r[0]];c&&(l.style[r[1]]=function(e){bf&&e>10&&(e=2*Math.round(e/2));return e}(r[2](c,a))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return io((()=>t.mode),((e,t)=>{yf[t]&&r(),yf[e]&&o()})),{fixSize:o,resetSize:r}}(n,e,o);return function(e,t,n,o,r){let i,s;const a=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void a();i=i||new Image,i.onload=e=>{const{width:u,height:d}=i;a(u,d,l),o(),i.draggable=t.draggable,s&&s.remove(),s=i,n.value.appendChild(i),c(),r("load",e,{width:u,height:d})},i.onerror=t=>{a(),c(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=l},c=()=>{i&&(i.onload=null,i.onerror=null,i=null)};io((()=>e.src),(e=>l(e))),io((()=>e.imgSrc),(e=>{!e&&s&&(s.remove(),s=null)})),zo((()=>l(e.src))),Yo((()=>c()))}(o,e,n,i,r),()=>li("uni-image",{ref:n},[li("div",{style:o.modeStyle},null,4),yf[e.mode]?li(tf,{onResize:i},null,8,["onResize"]):li("span",null,null)],512)}});const bf="Google Inc."===navigator.vendor;const wf=we(!0),xf=[];let Tf,Sf=0;const kf=e=>xf.forEach((t=>t.userAction=e));function Cf(e={userAction:!1}){if(!Tf){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!Sf&&kf(!0),Sf++,setTimeout((()=>{!--Sf&&kf(!1)}),0)}),wf)})),Tf=!0}xf.push(e)}const Ef=()=>!!Sf;function Pf(){const e=Ht({userAction:!1});return zo((()=>{Cf(e)})),Yo((()=>{!function(e){const t=xf.indexOf(e);t>=0&&xf.splice(t,1)}(e)})),{state:e}}function Af(){const e=Ht({attrs:{}});return zo((()=>{let t=bi();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function If(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 Of(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");const o=null===e?"":String(e);return null==n?o:o.slice(0,n)}const Lf=["none","text","decimal","numeric","tel","search","email","url"],Mf=c({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},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=>!!~Lf.indexOf(e)},cursorColor:{type:String,default:""}},of),$f=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Rf(e,t,n,o){const r=Ee((n=>{t.value=Of(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});io((()=>e.modelValue),r),io((()=>e.value),r);const i=function(e,t){let n,o,r=0;const i=function(...i){const s=Date.now();clearTimeout(n),o=()=>{o=null,r=s,e.apply(this,i)},s-r{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return Vo((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function Df(e,t){Pf();const n=Oi((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}io((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),zo((()=>{n.value&&In(o)}))}function Bf(e,t,n,o){ec(qc(),"getSelectedTextRange",If);const{fieldRef:r,state:i,trigger:s}=function(e,t,n){const o=ln(null),r=Cu(t,n),i=Oi((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),s=Oi((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),a=Oi((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=Oi((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),c=Of(e.modelValue,e.type)||Of(e.value,e.type),u=Ht({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:s,cursor:a});return io((()=>u.focus),(e=>n("update:focus",e))),io((()=>u.maxlength),(e=>u.value=u.value.slice(0,e)),{immediate:!1}),{fieldRef:o,state:u,trigger:r}}(e,t,n),{triggerInput:a}=Rf(e,i,n,s);Df(e,r),rf(0,r);const{state:l}=Af();!function(e,t){const n=Sr(Iu,!1);if(!n)return;const o=bi(),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),Yo((()=>{n.removeField(r)}))}("name",i),function(e,t,n,o,r,i){function s(){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 a(){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}io([()=>t.selectionStart,()=>t.selectionEnd],s),io((()=>t.cursor),a),io((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),y(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}),s(),a()})),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,s,a,o);return{fieldRef:r,state:i,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const Nf=Tu({name:"Input",props:c({},Mf,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...$f],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],r=["off","one-time-code"],i=Oi((()=>{let t="";switch(e.type){case"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})),s=Oi((()=>{const t=r.indexOf(e.textContentType),n=r.indexOf(O(e.textContentType));return r[-1!==t?t:-1!==n?n:0]}));let a,l=ln("");const c=ln(null),{fieldRef:u,state:d,scopedAttrsState:h,fixDisabledColor:f,trigger:p}=Bf(e,c,t,((e,t)=>{const n=e.target;if("number"===i.value){if(a&&(n.removeEventListener("blur",a),a=null),n.validity&&!n.validity.valid){if((!l.value||!n.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",a=()=>{l.value=n.value=""},n.addEventListener("blur",a),!1;if(l.value)if(-1!==l.value.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){const e=l.value.indexOf(".");return l.value=n.value=t.value=l.value.slice(0,e),!0}}else if("."===e.data)return l.value+=".",a=()=>{l.value=n.value=l.value.slice(0,-1)},n.addEventListener("blur",a),!1;return l.value=t.value=n.value="-"===l.value?"":l.value,!1}l.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}}));io((()=>d.value),(t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t)}));const g=["number","digit"],m=Oi((()=>g.includes(e.type)?e.step:""));function y(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),p("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?li("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"]):uo(li("input",{key:"input",ref:u,"onUpdate:modelValue":e=>d.value=e,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:s.value,onKeyup:y,inputmode:e.inputmode},null,44,["onUpdate:modelValue","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]),[[Fs,d.value]]);return li("uni-input",{ref:c},[li("div",{class:"uni-input-wrapper"},[uo(li("div",gi(h.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Zi,!(d.value.length||"-"===l.value)]]),"search"===e.confirmType?li("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Ff=["class","style"],jf=/^on[A-Z]+/,qf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=bi(),r=cn({}),i=cn({}),s=cn({}),a=n.concat(Ff);return o.attrs=Ht(o.attrs),oo((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(a.includes(n)?e.exclude[n]=o:jf.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,s.value=e.exclude})),{$attrs:r,$listeners:i,$excludeAttrs:s}};function Uf(e){const t=[];return f(e)&&e.forEach((e=>{ni(e)?e.type===zr?t.push(...Uf(e.children)):t.push(e):f(e)&&t.push(...Uf(e))})),t}const Vf=Tu({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=ln(null),o=ln(!1);let{setContexts:r,events:i}=function(e,t){const n=ln(0),o=ln(0),r=Ht({x:null,y:null}),i=ln(null);let s=null,a=[];function l(t){t&&1!==t&&(e.scaleArea?a.forEach((function(e){e._setScale(t)})):s&&s._setScale(t))}function c(e,n=a){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=zf(t),r.x=t.x,r.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);s=e&&e===t?e:null}}})),d=ku((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(zf(n)/i.value)}r.x=n.x,r.y=n.y}})),h=ku((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(r.x=0,r.y=0,i.value=null,e.scaleArea?a.forEach((function(e){e._endScale()})):s&&s._endScale())}));function f(){p(),a.forEach((function(e,t){e.setParent()}))}function p(){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 Tr("movableAreaWidth",n),Tr("movableAreaHeight",o),{setContexts(e){a=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:h,_resize:f}}}(e,n);const{$listeners:s,$attrs:a,$excludeAttrs:l}=qf(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=i[`_${e}`];c[e]=t?[].concat(t,n):n})),zo((()=>{i._resize(),o.value=!0}));let u=[];const d=[];function h(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(en(o))}r(e)}return Tr("_isMounted",o),Tr("movableAreaRootRef",n),Tr("addMovableViewContext",(e=>{d.push(e),h()})),Tr("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())})),()=>{const e=t.default&&t.default();return u=Uf(e),li("uni-movable-area",gi({ref:n},a.value,l.value,c),[li(tf,{onResize:i._resize},null,8,["onResize"]),u],16)}}});function zf(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Hf=function(e,t,n,o){e.addEventListener(t,(e=>{y(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Wf,Yf;function Xf(e,t,n){Yo((()=>{document.removeEventListener("mousemove",Wf),document.removeEventListener("mouseup",Yf)}));let o=0,r=0,i=0,s=0;const a=function(e,n,a,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:a,y:l,dx:a-o,dy:l-r,ddx:a-i,ddy:l-s,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;Hf(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=i=e.touches[0].pageX,r=s=e.touches[0].pageY,a(e,"start",o,r)})),Hf(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,o=i=e.pageX,r=s=e.pageY,a(e,"start",o,r)})),Hf(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=a(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,s=e.touches[0].pageY,t}}));const d=Wf=function(e){if(!l&&c&&u){const t=a(e,"move",e.pageX,e.pageY);return i=e.pageX,s=e.pageY,t}};document.addEventListener("mousemove",d),Hf(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,a(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const h=Yf=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),Hf(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,a(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Kf(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}},Qf.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}},Qf.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}},Qf.prototype.dt=function(){return-this._x_v/this._x_a},Qf.prototype.done=function(){const e=Kf(this.s().x,this._endPositionX)||Kf(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Qf.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Qf.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Zf.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,s=t/(r*e);return{x:function(e){return(i+s*e)*Math.pow(Math.E,r*e)},dx:function(e){const t=Math.pow(Math.E,r*e);return r*(i+s*e)*t+s*t}}}if(i>0){const r=(-n-Math.sqrt(i))/(2*o),s=(-n+Math.sqrt(i))/(2*o),a=(t-r*e)/(s-r),l=e-a;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,s*e)),l*t+a*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,s*e)),l*r*t+a*s*n}}}const s=Math.sqrt(4*o*r-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}},Zf.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Zf.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Zf.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Jf(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Jf(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Jf(t,.1)&&(t=0),Jf(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Jf(o-e,.1)&&Jf(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Zf.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Zf.prototype.done=function(e){return e||(e=(new Date).getTime()),Kf(this.x(),this._endPosition,.1)&&Jf(this.dx(),.1)},Zf.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())},Zf.prototype.springConstant=function(){return this._k},Zf.prototype.damping=function(){return this._c},Zf.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}]},ep.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},ep.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)}},ep.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},ep.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 tp(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const np=Tu({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=ln(null),r=Cu(o,n),{setParent:i}=function(e,t,n){const o=Sr("_isMounted",ln(!1)),r=Sr("addMovableViewContext",(()=>{})),i=Sr("removeMovableViewContext",(()=>{}));let s,a,l=ln(1),c=ln(1),u=ln(!1),d=ln(0),h=ln(0),f=null,p=null,g=!1,m=null,y=null;const v=new Gf,_=new Gf,b={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=Oi((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new Qf(1,w.value);io((()=>e.disabled),(()=>{H()}));const{_updateOldScale:T,_endScale:S,_setScale:k,scaleValueSync:C,_updateBoundary:E,_updateOffset:P,_updateWH:A,_scaleOffset:I,minX:O,minY:L,maxX:M,maxY:$,FAandSFACancel:R,_getLimitXY:D,_setTransform:B,_revise:N,dampingNumber:F,xMove:j,yMove:q,xSync:U,ySync:V,_STD:z}=function(e,t,n,o,r,i,s,a,l,c){const u=Oi((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),d=Oi((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),h=ln(Number(e.scaleValue)||1);io(h,(e=>{B(e)})),io(u,(()=>{D()})),io(d,(()=>{D()})),io((()=>e.scaleValue),(e=>{h.value=Number(e)||0}));const{_updateBoundary:f,_updateOffset:p,_updateWH:g,_scaleOffset:m,minX:y,minY:v,maxX:_,maxY:b}=function(e,t,n){const o=Sr("movableAreaWidth",ln(0)),r=Sr("movableAreaHeight",ln(0)),i=Sr("movableAreaRootRef"),s={x:0,y:0},a={x:0,y:0},l=ln(0),c=ln(0),u=ln(0),d=ln(0),h=ln(0),f=ln(0);function p(){let e=0-s.x+a.x,t=o.value-l.value-s.x-a.x;u.value=Math.min(e,t),h.value=Math.max(e,t);let n=0-s.y+a.y,i=r.value-c.value-s.y-a.y;d.value=Math.min(n,i),f.value=Math.max(n,i)}function g(){s.x=ip(e.value,i.value),s.y=sp(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,s=l.value*o;a.x=(s-l.value)/2,a.y=(i-c.value)/2}return{_updateBoundary:p,_updateOffset:g,_updateWH:m,_scaleOffset:a,minX:u,minY:d,maxX:h,maxY:f}}(t,o,R),{FAandSFACancel:w,_getLimitXY:x,_animationTo:T,_setTransform:S,_revise:k,dampingNumber:C,xMove:E,yMove:P,xSync:A,ySync:I,_STD:O}=function(e,t,n,o,r,i,s,a,l,c,u,d,h,f){const p=Oi((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),g=Oi((()=>"all"===t.direction||"horizontal"===t.direction)),m=Oi((()=>"all"===t.direction||"vertical"===t.direction)),y=ln(lp(t.x)),v=ln(lp(t.y));io((()=>t.x),(e=>{y.value=lp(e)})),io((()=>t.y),(e=>{v.value=lp(e)})),io(y,(e=>{k(e)})),io(v,(e=>{C(e)}));const _=new ep(1,9*Math.pow(p.value,2)/40,p.value);function b(e,t){let n=!1;return e>r.value?(e=r.value,n=!0):ei.value?(t=i.value,n=!0):t1?"htouchmove":"vtouchmove"),j.value&&(n=t.detail.dx+s,b.historyX.shift(),b.historyX.push(n),q.value||null!==m||(m=Math.abs(t.detail.dx/t.detail.dy)<1)),q.value&&(o=t.detail.dy+a,b.historyY.shift(),b.historyY.push(o),j.value||null!==m||(m=Math.abs(t.detail.dy/t.detail.dx)<1)),b.historyT.shift(),b.historyT.push(t.detail.timeStamp),!m){t.preventDefault();let r="touch";nM.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=M.value+v.x(n-M.value)):n=M.value),o$.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=$.value+_.x(o-$.value)):o=$.value),rp((function(){B(n,o,l.value,r)}))}}}function Y(){if(!u.value&&!e.disabled&&g&&(n.value.style.willChange="auto",g=!1,!m&&!N("out-of-bounds")&&e.inertia)){const e=1e3*(b.historyX[1]-b.historyX[0])/(b.historyT[1]-b.historyT[0]),t=1e3*(b.historyY[1]-b.historyY[0])/(b.historyT[1]-b.historyT[0]),n=d.value,o=h.value;x.setV(e,t),x.setS(n,o);const r=x.delta().x,i=x.delta().y;let s=r+n,a=i+o;sM.value&&(s=M.value,a=o+(M.value-n)*i/r),a$.value&&(a=$.value,s=n+($.value-o)*r/i),x.setEnd(s,a),p=ap(x,(function(){let e=x.s(),t=e.x,n=e.y;B(t,n,l.value,"friction")}),(function(){p.cancel()}))}e.outOfBounds||e.inertia||R()}function X(){if(!o.value)return;R();let t=e.scale?C.value:1;P(),A(t),E();let n=D(U.value+I.x,V.value+I.y),r=n.x,i=n.y;B(r,i,t,"",!0),T(t)}return zo((()=>{Xf(n.value,(e=>{switch(e.detail.state){case"start":H();break;case"move":W(e);break;case"end":Y()}})),X(),x.reconfigure(1,w.value),z.reconfigure(1,9*Math.pow(F.value,2)/40,F.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:X,_endScale:S,_setScale:k};r(e),Xo((()=>{i(e)}))})),Xo((()=>{R()})),{setParent:X}}(e,r,o);return()=>li("uni-movable-view",{ref:o},[li(tf,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let op=!1;function rp(e){op||(op=!0,requestAnimationFrame((function(){e(),op=!1})))}function ip(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=ip(e.offsetParent,t):0}function sp(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=sp(e.offsetParent,t):0}function ap(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 lp(e){return/\d+[ur]px$/i.test(e)?Bd(parseFloat(e)):Number(e)||0}const cp=["navigate","redirect","switchTab","reLaunch","navigateBack"],up=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],dp=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],hp={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~cp.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||up.concat(dp).includes(e)},animationDuration:{type:[String,Number],default:300}};c({},hp,{renderLink:{type:Boolean,default:!0}});const fp=Tu({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=ln(null),r=ln(null),i=Cu(o,n),s=function(e){const t=Ht([...e.value]),n=Ht({value:t,height:34});return io((()=>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),a=ln(null);zo((()=>{const e=a.value;e&&(s.height=e.$el.offsetHeight)}));let l=ln([]),c=ln([]);function u(e){let t=c.value;t=t.filter((e=>e.type!==Wr));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return Tr("getPickerViewColumn",(function(e){return Oi({get(){const t=u(e.vnode);return s.value[t]||0},set(t){const o=u(e.vnode);if(o<0)return;if(s.value[o]!==t){s.value[o]=t;const e=s.value.map((e=>e));n("update:value",e),i("change",{},{value:e})}}})})),Tr("pickerViewProps",e),Tr("pickerViewState",s),()=>{const e=t.default&&t.default();{const t=Uf(e);l.value=t,In((()=>{c.value=t}))}return li("uni-picker-view",{ref:o},[li(tf,{ref:a,onResize:({height:e})=>s.height=e},null,8,["onResize"]),li("div",{ref:r,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class pp{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 gp(e,t,n){return e>t-n&&e0){const r=(-n-Math.sqrt(i))/(2*o),s=(-n+Math.sqrt(i))/(2*o),a=(t-r*e)/(s-r),l=e-a;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,s*e)),l*t+a*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,s*e)),l*r*t+a*s*n}}}const s=Math.sqrt(4*o*r-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*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||!mp(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(mp(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),mp(t,.4)&&(t=0),mp(o,.4)&&(o=0),o+=this._endPosition),this._solution&&mp(o-e,.4)&&mp(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()),gp(this.x(),this._endPosition,.4)&&mp(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 vp{constructor(e,t,n){this._extent=e,this._friction=t||new pp(.01),this._spring=n||new yp(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 _p{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 vp(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()),y(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),y(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(y(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(),y(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}}let bp=0;const wp=Tu({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=ln(null),r=ln(null),i=Sr("getPickerViewColumn"),s=bi(),a=i?i(s):ln(0),l=Sr("pickerViewProps"),c=Sr("pickerViewState"),u=ln(34),d=ln(null);zo((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const h=Oi((()=>(c.height-u.value)/2)),{state:f}=Af(),p=function(e){const t="uni-picker-view-content-"+bp++;return io((()=>e.value),(function(){const n=document.createElement("style");n.innerText=`.uni-picker-view-content.${t}>*{height: ${e.value}px;overflow: hidden;}`,document.head.appendChild(n)})),t}(u);let g;const m=Ht({current:a.value,length:0});let y;function v(){g&&!y&&(y=!0,In((()=>{y=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),g.update(e*u.value,void 0,u.value)})))}io((()=>a.value),(e=>{e!==m.current&&(m.current=e,v())})),io((()=>m.current),(e=>a.value=e)),io([()=>u.value,()=>m.length,()=>c.height],v);let _=0;function b(e){const t=_+e.deltaY;if(Math.abs(t)>10){_=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),g.scrollTo(e*u.value)}else _=t;e.preventDefault()}function w({clientY:e}){const t=o.value;if(!g.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(m.current+t,m.length-1);m.current=r=Math.max(r,0),g.scrollTo(r*u.value)}}}const x=()=>{const e=o.value,t=r.value,{scroller:n,handleTouchStart:i,handleTouchMove:s,handleTouchEnd:a}=function(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new _p(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],s=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=(s-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 pp(1e-4),spring:new yp(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});g=n,Xf(e,(e=>{switch(e.detail.state){case"start":i(e);break;case"move":s(e),e.stopPropagation();break;case"end":case"cancel":a(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 zo(x),()=>{const e=t.default&&t.default();m.length=Uf(e).length;const n=`${h.value}px 0`;return li("uni-picker-view-column",{ref:o},[li("div",{onWheel:b,onClick:w,class:"uni-picker-view-group"},[li("div",gi(f.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${h.value}px;${l.maskStyle}`}),null,16),li("div",gi(f.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[li(tf,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),li("div",{ref:r,class:["uni-picker-view-content",p],style:{padding:n}},[e],6)],40,["onWheel","onClick"])],512)}}}),xp="#007aff",Tp="backwards",Sp=Tu({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:xp},activeColor:{type:String,default:xp},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:Tp},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=ln(null),n=function(e){const t=ln(0),n=Oi((()=>`background-color: ${e.backgroundColor}; height: ${e.strokeWidth}px;`)),o=Oi((()=>{const n=e.color!==xp&&e.activeColor===xp?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`})),r=Oi((()=>{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 Ht({outerBarStyle:n,innerBarStyle:o,realPercent:r,currentPercent:t,strokeTimer:0,lastPercent:0})}(e);return kp(n,e),io((()=>n.realPercent),((t,o)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=o||0,kp(n,e)})),()=>{const{showInfo:o}=e,{outerBarStyle:r,innerBarStyle:i,currentPercent:s}=n;return li("uni-progress",{class:"uni-progress",ref:t},[li("div",{style:r,class:"uni-progress-bar"},[li("div",{style:i,class:"uni-progress-inner-bar"},null,4)],4),o?li("p",{class:"uni-progress-info"},[s+"%"]):""],512)}}});function kp(e,t){t.active?(e.currentPercent=t.activeMode===Tp?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 Cp={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:""},Ep={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const Pp=(e,t,n)=>!n||f(n)&&!n.length?[]:n.map((n=>{var o;if(S(n)){if(!h(n,"type")||"node"===n.type){let r={[e]:""};const i=null==(o=n.name)?void 0:o.toLowerCase();if(!h(Cp,i))return;return function(e,t){if(S(t))for(const n in t)if(h(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=Du(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),Li(n.name,r,Pp(e,t,n.children))}return"text"===n.type&&v(n.text)&&""!==n.text?ui((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){return h(Ep,t)&&Ep[t]?Ep[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 Ap(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=[],s=e;for(i.last=function(){return this[this.length-1]};e;){if(o=!0,i.last()&&pf[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 Ip=Tu({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=bi(),o=n&&n.vnode.scopeId||"",r=ln(null),i=ln([]),s=Cu(r,t);function a(e,t={}){s("itemclick",e,t)}return io((()=>e.nodes),(function(){let t=e.nodes;v(t)&&(t=Ap(e.nodes)),i.value=Pp(o,a,t)}),{immediate:!0}),()=>Li("uni-rich-text",{ref:r},Li("div",{},i.value))}}),Op=Tu({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=ln(null),o=Oi((()=>{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=Oi((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:i,refresherDefaultStyle:s,refresherThreshold:a}=e;return li("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==s?li("div",{class:"uni-scroll-view-refresh"},[li("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==i?li("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"},[li("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),li("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==i?li("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[li("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===s?li("div",{class:"uni-scroll-view-refresher-container",style:{height:`${a}px`}},[t.default&&t.default()]):null],4)}}}),Lp=we(!0),Mp=Tu({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=ln(null),i=ln(null),s=ln(null),a=ln(null),l=Cu(r,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=Oi((()=>Number(e.scrollTop)||0)),n=Oi((()=>Number(e.scrollLeft)||0));return{state:Ht({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:h,realScrollY:f}=function(e,t,n,o,r,i,s,a,l){let c=!1,u=0,d=!1,h=()=>{};const f=Oi((()=>e.scrollX)),p=Oi((()=>e.scrollY)),g=Oi((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),m=Oi((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function y(e,t){const n=s.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=a.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",h),i.removeEventListener("webkitTransitionEnd",h),h=()=>x(e,t),i.addEventListener("transitionend",h),i.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),i.style.transform=r,i.style.webkitTransform=r}function v(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}),p.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 _(t){p.value&&(e.scrollWithAnimation?y(t,"y"):s.value.scrollTop=t)}function b(t){f.value&&(e.scrollWithAnimation?y(t,"x"):s.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=s.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(f.value){let n=o.left-t.left,r=s.value.scrollLeft+n;e.scrollWithAnimation?y(r,"x"):s.value.scrollLeft=r}if(p.value){let n=o.top-t.top,r=s.value.scrollTop+n;e.scrollWithAnimation?y(r,"y"):s.value.scrollTop=r}}}}function x(e,t){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let n=s.value;"x"===t?(n.style.overflowX=f.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=p.value?"auto":"hidden",n.scrollTop=e),a.value.removeEventListener("transitionend",h),a.value.removeEventListener("webkitTransitionEnd",h)}function T(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,r("refresherrefresh",{},{dy:k.y-S.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-S.y})),"refresherabort"===n&&d&&(d=!1,r("refresherabort",{},{dy:k.y-S.y}))}t.refreshState=n}}let S={x:0,y:0},k={x:0,y:e.refresherThreshold};return zo((()=>{In((()=>{_(n.value),b(o.value)})),w(e.scrollIntoView);let i=function(e){e.preventDefault(),e.stopPropagation(),v(e)},a=null,l=function(n){if(null===S)return;let o=n.touches[0].pageX,i=n.touches[0].pageY,l=s.value;if(Math.abs(o-S.x)>Math.abs(i-S.y))if(f.value){if(0===l.scrollLeft&&o>S.x)return void(a=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&oS.y)a=!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})))}},h=function(e){1===e.touches.length&&(S={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?T("refreshing"):T("refresherabort"),S={x:0,y:0},k={x:0,y:e.refresherThreshold}};s.value.addEventListener("touchstart",h,Lp),s.value.addEventListener("touchmove",l,we(!1)),s.value.addEventListener("scroll",i,we(!1)),s.value.addEventListener("touchend",g,Lp),Yo((()=>{s.value.removeEventListener("touchstart",h),s.value.removeEventListener("touchmove",l),s.value.removeEventListener("scroll",i),s.value.removeEventListener("touchend",g)}))})),Mo((()=>{p.value&&(s.value.scrollTop=t.lastScrollTop),f.value&&(s.value.scrollLeft=t.lastScrollLeft)})),io(n,(e=>{_(e)})),io(o,(e=>{b(e)})),io((()=>e.scrollIntoView),(e=>{w(e)})),io((()=>e.refresherTriggered),(e=>{!0===e?T("refreshing"):!1===e&&T("restore")})),{realScrollX:f,realScrollY:p}}(e,c,u,d,l,r,i,a,t),p=Oi((()=>{let e="";return h.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",f.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),g=Oi((()=>{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:h}=c;return li("uni-scroll-view",{ref:r},[li("div",{ref:s,class:"uni-scroll-view"},[li("div",{ref:i,style:p.value,class:g.value},[t?li(Op,{refreshState:h,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,li("div",{ref:a,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function $p(e,t,n,o,r,i){function s(){c&&(clearTimeout(c),c=null)}let a,l,c=null,u=!0,d=0,h=1,f=null,p=!1,g=0,m="";const y=Oi((()=>n.value.length>t.displayMultipleItems)),v=Oi((()=>e.circular&&y.value));function _(r){Math.floor(2*d)===Math.floor(2*r)&&Math.ceil(2*d)===Math.ceil(2*r)||v.value&&function(o){if(!u)for(let r=n.value,i=r.length,s=o+t.displayMultipleItems,a=0;a=c.length&&(r-=c.length),r=a%1>.5||a<0?r-1:r,i("transition",{},{dx:e.vertical?0:r*l.offsetWidth,dy:e.vertical?r*l.offsetHeight:0})}function b(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(v.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(p=!1);const e=f,o=e.toPos,r=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){_(o),f=null,p=!1,a=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}_(o+r*u*u/2),l=requestAnimationFrame(x)}function T(e,o,r){w();const i=t.duration,s=n.value.length;let a=d;if(v.value)if(r<0){for(;ae;)a-=s}else if(r>0){for(;a>e;)a-=s;for(;a+se;)a-=s;a+s-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,r=n.value;te.vertical,()=>v.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){s(),f&&(_(f.toPos),f=null);const r=n.value;for(let t=0;t0&&h<1||(h=1)}const a=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(_(a+l-g),g=l):(_(l),e.autoplay&&S())):(u=!0,_(-t.displayMultipleItems-1))})),io((()=>t.interval),(()=>{c&&(s(),S())})),io((()=>t.current),((e,o)=>{!function(e,o){const r=m;m="";const s=n.value;if(!r){const t=s.length;T(e,"",v.value&&o+(t-e)%t>t/2?1:0)}const a=s[e];if(a){const e=t.currentItemId=a.getItemId();i("change",{},{current:t.current,currentItemId:e,source:r})}}(e,o),r("update:current",e)})),io((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),io((()=>e.autoplay&&!t.userTracking),k),k(e.autoplay&&!t.userTracking),zo((()=>{let r=!1,i=0,a=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=b(d+o);e?_(g):(m="touch",t.current=r,T(r,"touch",0!==o?o:0===r&&v.value&&d>=1?1:0))}Xf(o.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,r=!1,s(),g=d,i=0,a=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&&S())}return function(r){const s=a;a=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,v.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),i=0),_(n)}const d=a-s||1,h=o.value;e.vertical?u(-r.dy/h.offsetHeight,-r.ddy/d):u(-r.dx/h.offsetWidth,-r.ddx/d)}(c.detail),!1}}}))})),Xo((()=>{s(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){T(t.current=e,m="click",v.value?1:0)},circularEnabled:v,swiperEnabled:y}}const Rp=Tu({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=ln(null),r=Cu(o,n),i=ln(null),s=ln(null),a=function(e){return Ht({interval:Oi((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:Oi((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:Oi((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=Oi((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:Mc(e.previousMargin,!0),bottom:Mc(e.nextMargin,!0)}:{top:0,bottom:0,left:Mc(e.previousMargin,!0),right:Mc(e.nextMargin,!0)}),t})),c=Oi((()=>{const t=Math.abs(100/a.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],h=ln([]);function f(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(en(o))}h.value=e}Tr("addSwiperContext",(function(e){d.push(e),f()}));Tr("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())}));const{onSwiperDotClick:p,circularEnabled:g,swiperEnabled:m}=$p(e,a,h,s,n,r);let y=()=>null;return y=Dp(o,e,a,p,h,g,m),()=>{const n=t.default&&t.default();return u=Uf(n),li("uni-swiper",{ref:o},[li("div",{ref:i,class:"uni-swiper-wrapper"},[li("div",{class:"uni-swiper-slides",style:l.value},[li("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&li("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map(((t,n,o)=>li("div",{onClick:()=>p(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=a.current||n{let a=!1,l=!1,u=!1,d=ln(!1);function h(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}oo((()=>{a="auto"===t.navigation,d.value=!0!==t.navigation||a,_()})),oo((()=>{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,s.value||(l=!0,u=!0,a&&(d.value=!0))}));const f={onMouseover:e=>h(e,"over"),onMouseout:e=>h(e,"out")};function p(e,t,s){if(e.stopPropagation(),s)return;const a=r.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&i.value&&(l=a-1);break;case"next":l++,l>=a&&i.value&&(l=0)}o(l)}const g=()=>Bc(Dc,t.navigationColor,26);let m;const y=n=>{clearTimeout(m);const{clientX:o,clientY:r}=n,{left:i,right:s,top:a,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let h=!1;if(h=t.vertical?!(r-a{d.value=h}),300);d.value=h},v=()=>{d.value=!0};function _(){e.value&&(e.value.removeEventListener("mousemove",y),e.value.removeEventListener("mouseleave",v),a&&(e.value.addEventListener("mousemove",y),e.value.addEventListener("mouseleave",v)))}return zo(_),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?li(zr,null,[li("div",gi({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>p(e,"prev",l)},f),[g()],16,["onClick"]),li("div",gi({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>p(e,"next",u)},f),[g()],16,["onClick"])]):null}},Bp=Tu({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=ln(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,s=`translate(${o},${r}) translateZ(0)`;i&&(i.style.webkitTransform=s,i.style.transform=s)}};return zo((()=>{const e=Sr("addSwiperContext");e&&e(o)})),Xo((()=>{const e=Sr("removeSwiperContext");e&&e(o)})),()=>li("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),Np={ensp:" ",emsp:" ",nbsp:" "};function Fp(e,t){return function(e,{space:t,decode:n}){let o="",r=!1;for(let i of e)t&&Np[t]&&" "===i&&(i=Np[t]),r?(o+="n"===i?"\n":"\\"===i?"\\":"\\"+i,r=!1):"\\"===i?r=!0:o+=i;return n?o.replace(/ /g,Np.nbsp).replace(/ /g,Np.ensp).replace(/ /g,Np.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split("\n")}const jp=Tu({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=ln(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Wr){const n=Fp(t.children,{space:e.space,decode:e.decode}),r=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(ui(e)),t!==r&&o.push(li("br"))}))}else o.push(t)})),li("uni-text",{ref:n,selectable:!!e.selectable||null},[li("span",null,o)],8,["selectable"])}}}),qp=c({},Mf,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>Vp.concat("return").includes(e)}});let Up=!1;const Vp=["done","go","next","search","send"];const zp=Tu({name:"Textarea",props:qp,emits:["confirm","linechange",...$f],setup(e,{emit:t,expose:n}){const o=ln(null),r=ln(null),{fieldRef:i,state:s,scopedAttrsState:a,fixDisabledColor:l,trigger:c}=Bf(e,o,t),u=Oi((()=>s.value.split("\n"))),d=Oi((()=>Vp.includes(e.confirmType))),h=ln(0),f=ln(null);function p({height:e}){h.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:s.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return io((()=>h.value),(t=>{const n=o.value,i=f.value,s=r.value;let a=parseFloat(getComputedStyle(n).lineHeight);isNaN(a)&&(a=i.offsetHeight);var l=Math.round(t/a);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(n.style.height="auto",s.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";Up=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),s.value=e.value}}),()=>{let t=e.disabled&&l?li("textarea",{key:"disabled-textarea",ref:i,value:s.value,tabindex:"-1",readonly:!!e.disabled,maxlength:s.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Up},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):li("textarea",{key:"textarea",ref:i,value:s.value,disabled:!!e.disabled,maxlength:s.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Up},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 li("uni-textarea",{ref:o},[li("div",{ref:r,class:"uni-textarea-wrapper"},[uo(li("div",gi(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Zi,!s.value.length]]),li("div",{ref:f,class:"uni-textarea-line"},[" "],512),li("div",{class:"uni-textarea-compute"},[u.value.map((e=>li("div",null,[e.trim()?e:"."]))),li(tf,{initial:!0,onResize:p},null,8,["initial","onResize"])]),"search"===e.confirmType?li("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),Hp=Tu({name:"View",props:c({},Eu),setup(e,{slots:t}){const n=ln(null),{hovering:o,binding:r}=Pu(e);return()=>{const i=e.hoverClass;return i&&"none"!==i?li("uni-view",gi({class:o.value?i:"",ref:n},r),[t.default&&t.default()],16):li("uni-view",{ref:n},[t.default&&t.default()],512)}}});function Wp(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Yp(e,t,n){e&&ec(n||qc(),e,(({type:e,data:n},o)=>{t(e,n,o)}))}function Xp(e,t){e&&function(e,t){t=Zl(e,t),delete Ql[t]}(t||qc(),e)}function Kp(e,t,n,o){const r=bi().proxy;zo((()=>{Yp(t||Wp(r),e,o),!n&&t||io((()=>r.id),((t,n)=>{Yp(Wp(r,t),e,o),Xp(n&&Wp(r,n))}))})),Yo((()=>{Xp(t||Wp(r),o)}))}let Jp=0;function Gp(e,t,n,o){y(t)&&qo(e,t.bind(n),o)}function Qp(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&&!y(t))&&(Ie.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const r=e[o];f(r)?r.forEach((e=>Gp(o,e,n,t))):Gp(o,r,n,t)}})),"page"===r)){t.__isVisible=!0;try{const e=t.attrs.__pageQuery;0,Hc(n,"onLoad",e),delete t.attrs.__pageQuery,"preloadPage"!==(null==(o=n.$page)?void 0:o.openType)&&Hc(n,"onShow")}catch(bx){console.error(bx.message+"\n"+bx.stack)}}}function Zp(e,t,n){Qp(e,t,n)}function eg(e,t,n){return e[t]=n}function tg(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function ng(e){return function(t,n,o){if(!n)throw t;const r=e._instance;if(!r||!r.proxy)throw t;Hc(r.proxy,"onError",t)}}function og(e,t){return e?[...new Set([].concat(e,t))]:t}function rg(e){const t=e._context.config;var n;t.errorHandler=Le(e,ng),n=t.optionMergeStrategies,Ie.forEach((e=>{n[e]=og}));const o=t.globalProperties;o.$set=eg,o.$applyOptions=Zp,o.$callMethod=tg,function(e){Oe.forEach((t=>t(e)))}(e)}const ig=Oc("upm");function sg(){return Sr(ig)}function ag(e){const t=function(e){return Ht(function(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=function(e){return e.offset&&(e.offset=Mc(e.offset)),e.height&&(e.height=Mc(e.height)),e.range&&(e.range=Mc(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+Tc.top),e.pullToRefresh=t}}{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:r}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=r||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==wg().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(zc(Rl().meta,e)))))}(e);return Tr(ig,t),t}function lg(){return Rl()}function cg(){return history.state&&history.state.__id__||1}let ug;function dg(){var e;return ug||(ug=__uniConfig.tabBar&&Ht((e=__uniConfig.tabBar,Dl()&&e.list&&e.list.forEach((e=>{jl(e,["text"])})),e))),ug}const hg=window.CSS&&window.CSS.supports;function fg(e){return hg&&(hg(e)||hg.apply(window.CSS,e.split(":")))}const pg=fg("top:env(a)"),gg=fg("top:constant(a)"),mg=fg("backdrop-filter:blur(10px)"),yg=(()=>pg?"env":gg?"constant":"")();function vg(e){return yg?`calc(${e}px + ${yg}(safe-area-inset-bottom))`:`${e}px`}const _g=new Map;function bg(){return _g}function wg(){const e=[],t=_g.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function xg(e,t=!0){const n=_g.get(e);n.$.__isUnload=!0,Hc(n,"onUnload"),_g.delete(e),t&&function(e){const t=Eg.get(e);t&&(Eg.delete(e),Pg.pruneCacheEntry(t))}(e)}let Tg=cg();function Sg(e){const t=sg();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:s,route:a}=o,l=De(o.navigationBar,__uniConfig.themeConfig,i).titleColor;return{id:s,path:he(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function kg(e){const t=Sg(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),_g.set(Cg(t.path,t.id),e)}function Cg(e,t){return e+"$$"+t}const Eg=new Map,Pg={get:e=>Eg.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Pg.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Pg.delete(n),Pg.pruneCacheEntry(e),In((()=>{_g.forEach(((e,t)=>{e.$.isUnmounted&&_g.delete(t)}))}))}}))}(e),Eg.set(e,t)},delete(e){Eg.get(e)&&Eg.delete(e)},forEach(e){Eg.forEach(e)}};function Ag(e,t){!function(e){const t=Og(e),{body:n}=document;Lg&&n.removeAttribute(Lg),t&&n.setAttribute(t,""),Lg=t}(e),function(e){let t=0,n=0;if("custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),e.isTabBar){const e=dg();e.shown&&(n=parseInt(e.height))}var o;Ic({"--window-top":(o=t,yg?`calc(${o}px + ${yg}(safe-area-inset-top))`:`${o}px`),"--window-bottom":vg(n)})}(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),function(e,t){document.removeEventListener("touchmove",Wc),Mg&&document.removeEventListener("scroll",Mg);if(t.disableScroll)return document.addEventListener("touchmove",Wc);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!n&&!o&&!r)return;const i={},s=e.proxy.$page.id;(n||r)&&(i.onPageScroll=function(e,t,n){return o=>{t&&Cv.publishHandler("onPageScroll",{scrollTop:o},e),n&&Cv.emit(e+".onPageScroll",{scrollTop:o})}}(s,n,r));o&&(i.onReachBottomDistance=t.onReachBottomDistance||50,i.onReachBottom=()=>Cv.publishHandler("onReachBottom",{},s));Mg=Kc(i),requestAnimationFrame((()=>document.addEventListener("scroll",Mg)))}(e,t)}function Ig(e){const t=Og(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Og(e){return e.type.__scopeId}let Lg,Mg;function $g(e){const t=$l({history:Dg(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:Rg});e.router=t,e.use(t)}const Rg=(e,t,n)=>{if(n)return n};function Dg(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),Ya(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=wg(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=t[r].$page;xg(Cg(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const Bg={install(e){rg(e),au(e),vu(e),e.config.warnHandler||(e.config.warnHandler=Ng),$g(e)}};function Ng(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 Fg={class:"uni-async-loading"},jg=li("i",{class:"uni-loading"},null,-1),qg=Su({name:"AsyncLoading",render:()=>(Jr(),ti("div",Fg,[jg]))});function Ug(){window.location.reload()}const Vg=Su({name:"AsyncError",setup(){Vl();const{t:e}=ql();return()=>li("div",{class:"uni-async-error",onClick:Ug},[e("uni.async.error")],8,["onClick"])}});let zg;function Hg(){return zg}function Wg(e){zg=e,Object.defineProperty(zg.$.ctx,"$children",{get:()=>wg().map((e=>e.$vm))});const t=zg.$.appContext.app;t.component(qg.name)||t.component(qg.name,qg),t.component(Vg.name)||t.component(Vg.name,Vg),function(e){e.$vm=e,e.$mpType="app";const t=ln(ql().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(zg),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}})}(zg),mu(),hc()}function Yg(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=bi();n(r.proxy);const s=o(r);if(i)return i(s||e,t)},e}function Xg(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?Yg(e.default,t):Yg(e,t)}function Kg(e){return Xg(e,{clone:!0,init:kg,setup(e){e.$pageInstance=e;const t=lg(),n=Se(t.query);e.attrs.__pageQuery=n,e.proxy.$page.options=n,e.proxy.options=n;const o=sg();var r,i,s;return Vo((()=>{Ag(e,o)})),zo((()=>{Ig(e);const{onReady:n}=e;n&&R(n),Zg(t)})),Ro((()=>{if(!e.__isVisible){Ag(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&R(n),In((()=>{Zg(t)}))}}),"ba",r),function(e,t){Ro(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&R(t)}})),i=o.id,Cv.subscribe(Zl(i,"invokeViewApi"),s?s(tc):tc),Yo((()=>{!function(e){Cv.unsubscribe(Zl(e,"invokeViewApi")),Object.keys(Ql).forEach((t=>{0===t.indexOf(e+".")&&delete Ql[t]}))}(o.id)})),n}})}function Jg(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Pm(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Ev.emit("onResize",{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function Gg(e){S(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Ev.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function Qg(){const{emit:e}=Ev;"visible"===document.visibilityState?e("onAppEnterForeground",c({},ef)):e("onAppEnterBackground")}function Zg(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&Hc("onTabItemTap",{index:n,text:t,pagePath:o})}function em(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 tm(e,t,n){const o=Ht({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 s(){i.stopPropagation(),i.preventDefault()}n.fullscreen&&s();const a=o.gestureType;if("stop"===a)return;const l=i.targetTouches[0],c=l.pageX,u=l.pageY,d=r,h=t.value;if("progress"===a?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"===a&&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"===a)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=h.currentTime,n.fullscreen||s()}else{if(!e.pageGesture)return void(o.gestureType="stop");o.gestureType="volume",o.volumeOld=h.volume,n.fullscreen||s()}},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"}}}function nm(e,t,n,o,r,i,s,a){const l={play:e,stop:n,pause:t,seek:o,sendDanmu:r,playbackRate:i,requestFullScreen:s,exitFullScreen:a};Kp(((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)}),function(e){const t=Nc(),n=bi().proxy,o=n.$options.name.toLowerCase(),r=e||n.id||"context"+Jp++;return zo((()=>{n.$el.__uniContextInfo={id:r,type:o,page:t}})),`${o}.${r}`}(),!0)}const om=Tu({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=ln(null),i=ln(null),s=Cu(r,t),{state:a}=Pf(),{$attrs:l}=qf({excludeListeners:!0}),{t:c}=ql();Kl();const{videoRef:u,state:d,play:h,pause:p,stop:g,seek:m,playbackRate:y,toggle:v,onDurationChange:_,onLoadedMetadata:b,onProgress:w,onWaiting:x,onVideoError:T,onPlay:S,onPause:k,onEnded:C,onTimeUpdate:E}=function(e,t,n){const o=ln(null),r=Oi((()=>Du(e.src))),i=Oi((()=>"true"===e.muted||!0===e.muted)),s=Ht({start:!1,src:r,playing:!1,currentTime:0,duration:0,progress:0,buffered:0,muted:i});function a(e){const t=e.target,n=t.buffered;n.length&&(s.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 io((()=>r.value),(()=>{s.playing=!1,s.currentTime=0})),io((()=>s.buffered),(e=>{n("progress",{},{buffered:e})})),io((()=>i.value),(e=>{o.value.muted=e})),{videoRef:o,state:s,play:function(){const e=o.value;s.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;s.playing?e.pause():e.play()},onDurationChange:function({target:e}){s.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}),a(t)},onProgress:a,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){s.playing=!1,n("error",e,{})},onPlay:function(e){s.start=!0,s.playing=!0,n("play",e,{})},onPause:function(e){s.playing=!1,n("pause",e,{})},onEnded:function(e){s.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target,o=s.currentTime=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,s),{state:P,danmuRef:A,updateDanmu:I,toggleDanmu:O,sendDanmu:L}=function(e,t){const n=ln(null),o=Ht({enable:Boolean(e.enableDanmu)});let r={time:0,index:-1};const i=f(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function s(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,a=r,l={time:n,index:a.index};if(n>a.time)for(let r=a.index+1;r=(e.time||0)))break;l.index=r,t.playing&&o.enable&&s(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:M,onFullscreenChange:$,emitFullscreenChange:R,toggleFullscreen:D,requestFullScreen:B,exitFullScreen:N}=function(e,t,n,o,r){const i=Ht({fullscreen:!1}),s=/^Apple/.test(navigator.vendor);function a(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||s&&!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&&a(e)}function c(){l(!1)}return Yo(c),{state:i,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||a(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:a,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:c}}(s,i,u,a,r),{state:F,onTouchstart:j,onTouchend:q,onTouchmove:U}=tm(e,u,M),{state:V,progressRef:z,ballRef:H,clickProgress:W,toggleControls:Y}=function(e,t,n){const o=ln(null),r=ln(null),i=Oi((()=>e.showCenterPlayBtn&&!t.start)),s=ln(!0),a=Oi((()=>!i.value&&e.controls&&s.value)),l=Ht({touching:!1,controlsTouching:!1,centerPlayBtnShow:i,controlsShow:a,controlsVisible:s});let c;function u(){c=setTimeout((()=>{l.controlsVisible=!1}),3e3)}function d(){c&&(clearTimeout(c),c=null)}return Yo((()=>{c&&clearTimeout(c)})),io((()=>l.controlsShow&&t.playing&&!l.controlsTouching),(e=>{e?u():d()})),io([()=>t.currentTime,()=>{e.duration}],(function(){l.touching||(t.progress=t.currentTime/t.duration*100)})),zo((()=>{const e=we(!1);let i,s,a,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 h(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,s=o.pageY,a=t.progress,c=!0,l.touching=!0,u.addEventListener("touchmove",d,e)})),u.addEventListener("touchend",h),u.addEventListener("touchcancel",h)})),{state:l,progressRef:o,ballRef:r,clickProgress:function(e){const r=o.value;let i=e.target,s=e.offsetX;for(;i&&i!==r;)s+=i.offsetLeft,i=i.parentNode;const a=r.offsetWidth;let l=0;s>=0&&s<=a&&(l=s/a,n(t.duration*l))},toggleControls:function(){l.controlsVisible=!l.controlsVisible},autoHideStart:u,autoHideEnd:d}}(e,d,m);return nm(h,p,g,m,L,y,B,N),()=>li("uni-video",{ref:r,id:e.id,onClick:Y},[li("div",{ref:i,class:"uni-video-container",onTouchstart:j,onTouchend:q,onTouchmove:U,onFullscreenchange:Vs($,["stop"]),onWebkitfullscreenchange:Vs((e=>$(e,!0)),["stop"])},[li("video",gi({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:_,onLoadedmetadata:b,onProgress:w,onWaiting:x,onError:T,onPlay:S,onPause:k,onEnded:C,onTimeupdate:e=>{E(e),I(e)},onWebkitbeginfullscreen:()=>R(!0),onX5videoenterfullscreen:()=>R(!0),onWebkitendfullscreen:()=>R(!1),onX5videoexitfullscreen:()=>R(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),uo(li("div",{class:"uni-video-bar uni-video-bar-full",onClick:Vs((()=>{}),["stop"])},[li("div",{class:"uni-video-controls"},[uo(li("div",{class:{"uni-video-control-button":!0,"uni-video-control-button-play":!d.playing,"uni-video-control-button-pause":d.playing},onClick:Vs(v,["stop"])},null,10,["onClick"]),[[Zi,e.showPlayBtn]]),uo(li("div",{class:"uni-video-current-time"},[em(d.currentTime)],512),[[Zi,e.showProgress]]),uo(li("div",{ref:z,class:"uni-video-progress-container",onClick:Vs(W,["stop"])},[li("div",{class:"uni-video-progress"},[li("div",{style:{width:d.buffered+"%"},class:"uni-video-progress-buffered"},null,4),li("div",{ref:H,style:{left:d.progress+"%"},class:"uni-video-ball"},[li("div",{class:"uni-video-inner"},null)],4)])],8,["onClick"]),[[Zi,e.showProgress]]),uo(li("div",{class:"uni-video-duration"},[em(Number(e.duration)||d.duration)],512),[[Zi,e.showProgress]])]),uo(li("div",{class:{"uni-video-danmu-button":!0,"uni-video-danmu-button-active":P.enable},onClick:Vs(O,["stop"])},[c("uni.video.danmu")],10,["onClick"]),[[Zi,e.danmuBtn]]),uo(li("div",{class:{"uni-video-fullscreen":!0,"uni-video-type-fullscreen":M.fullscreen},onClick:Vs((()=>D(!M.fullscreen)),["stop"])},null,10,["onClick"]),[[Zi,e.showFullscreenBtn]])],8,["onClick"]),[[Zi,V.controlsShow]]),uo(li("div",{ref:A,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[Zi,d.start&&P.enable]]),V.centerPlayBtnShow&&li("div",{class:"uni-video-cover",onClick:Vs((()=>{}),["stop"])},[li("div",{class:"uni-video-cover-play-button",onClick:Vs(h,["stop"])},null,8,["onClick"]),li("p",{class:"uni-video-cover-duration"},[em(Number(e.duration)||d.duration)])],8,["onClick"]),li("div",{class:{"uni-video-toast":!0,"uni-video-toast-volume":"volume"===F.gestureType}},[li("div",{class:"uni-video-toast-title"},[c("uni.video.volume")]),li("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"},[li("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)]),li("div",{class:"uni-video-toast-value"},[li("div",{style:{width:100*F.volumeNew+"%"},class:"uni-video-toast-value-content"},[li("div",{class:"uni-video-toast-volume-grids"},[Zo(10,(()=>li("div",{class:"uni-video-toast-volume-grids-item"},null)))])],4)])],2),li("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":"progress"===F.gestureType}},[li("div",{class:"uni-video-toast-title"},[em(F.currentTimeNew)," / ",em(d.duration)])],2),li("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}});let rm,im=0;function sm(e,t,n,o){var r,i=document.createElement("script"),s=t.callback||"callback",a="__uni_jsonp_callback_"+im++,l=t.timeout||3e4;function c(){clearTimeout(r),delete window[a],i.remove()}window[a]=e=>{y(n)&&n(e),c()},i.onerror=()=>{y(o)&&o(),c()},r=setTimeout((function(){y(o)&&o(),c()}),l),i.src=e+(e.indexOf("?")>=0?"&":"?")+s+"="+a,document.body.appendChild(i)}function am(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 s(){this.Text&&this.option.map.remove(this.Text)}class a{constructor(e={},a){this.createAMapText=o,this.removeAMapText=i,this.createBMapText=r,this.removeBMapText=s,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(gm())this.callback=a,this.visible&&this.createAMapText();else if(mm())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,gm()?this.visible&&this.createAMapText():mm()?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(!gm()&&!mm()){const t=new(e.OverlayView||e.Overlay);a.prototype.setMap=t.setMap,a.prototype.getMap=t.getMap,a.prototype.getPanes=t.getPanes,a.prototype.getProjection=t.getProjection,a.prototype.map_changed=t.map_changed,a.prototype.set=t.set,a.prototype.get=t.get,a.prototype.setOptions=t.setValues,a.prototype.bindTo=t.bindTo,a.prototype.bindsTo=t.bindsTo,a.prototype.notify=t.notify,a.prototype.setValues=t.setValues,a.prototype.unbind=t.unbind,a.prototype.unbindAll=t.unbindAll,a.prototype.addListener=t.addListener}return a}const lm={};function cm(e,t){const n=hm();if(!n.key)return void console.error("Map key not configured.");const o=lm[n.type]=lm[n.type]||[];if(rm)t(rm);else if(window[n.type]&&window[n.type].maps)rm=gm()||mm()?window[n.type]:window[n.type].maps,rm.Callout=rm.Callout||am(rm),t(rm);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],rm=gm()||mm()?window[n.type]:window[n.type].maps,rm.Callout=am(rm),o.forEach((e=>e(rm))),o.length=0},gm()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const s=document.createElement("script");let a=um(n.type);n.type===dm.QQ&&e.push("geometry"),e.length&&(a+=`libraries=${e.join("%2C")}&`),n.type===dm.BMAP?s.src=`${a}ak=${n.key}&callback=${i}`:s.src=`${a}key=${n.key}&callback=${i}`,s.onerror=function(){console.error("Map load failed.")},document.body.appendChild(s)}}const um=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]);var dm=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(dm||{});function hm(){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 fm=!1,pm=!1;const gm=()=>pm?fm:(pm=!0,fm="AMap"===hm().type),mm=()=>"BMapGL"===hm().type;const ym=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let vm;function _m(){if(vm=vm||ym.__DC_STAT_UUID,!vm){vm=Date.now()+""+Math.floor(1e7*Math.random());try{ym.__DC_STAT_UUID=vm}catch(e){}}return vm}function bm(){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 wm(){let e,t="0",n="",o="phone";const r=navigator.language;if(Fu){e="iOS";const o=Bu.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=Bu.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(Nu){e="Android";const o=Bu.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=Bu.match(/\((.+?)\)/),i=r?r[1].split(";"):Bu.split(" "),s=[/\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)a="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=zu(),n=Hu(t),o=Wu(t,n),r=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=Yu(o);let s=window.innerHeight;const a=Tc.top,l={left:Tc.left,right:i-Tc.right,top:Tc.top,bottom:s-Tc.bottom,width:i-Tc.left-Tc.right,height:s-Tc.top-Tc.bottom},{top:c,bottom:u}=Pc();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:i,windowHeight:s,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:a,safeArea:l,safeAreaInsets:{top:Tc.top,right:Tc.right,bottom:Tc.bottom,left:Tc.left},screenTop:r-s}}));let Tm,Sm=!0;function km(){Sm&&(Tm=wm())}const Cm=Ed(0,(()=>{km();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:s,deviceType:a}=Tm;return{brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:_m(),deviceOrientation:s,deviceType:a,model:o,platform:r,system:i}})),Em=Ed(0,(()=>{km();const{theme:e,language:t,browserName:n,browserVersion:o}=Tm;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:sh?sh():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:""}})),Pm=Ed(0,(()=>{Sm=!0,km(),Sm=!1;const e=xm(),t=Cm(),n=Em();Sm=!0;const{ua:o,browserName:r,browserVersion:i,osname:s,osversion:a}=Tm,l=c(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:s.toLocaleLowerCase(),osVersion:a,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)})),Am=Pd("getSystemInfo",((e,{resolve:t})=>t(Pm())));const Im=Ed(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}));function Om(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 Lm=Ed(0,(e=>{try{return Om(e)}catch(t){return""}})),Mm=Ed(0,(e=>{localStorage&&localStorage.removeItem(e)})),$m=Ed(0,(()=>{localStorage&&localStorage.clear()})),Rm=Pd("openDocument",(({filePath:e},{resolve:t})=>(window.open(e),t())),0,ph),Dm=Pd("hideKeyboard",((e,{resolve:t,reject:n})=>{const o=document.activeElement;!o||"TEXTAREA"!==o.tagName&&"INPUT"!==o.tagName||(o.blur(),t())}));const Bm=Pd("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,wh),Nm={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 Fm({count:e,sourceType:t,type:n,extension:o}){const r=document.createElement("input");return r.type="file",function(e,t){for(const n in t)e.style[n]=t[n]}(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}/${Nm[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}Cf();let jm=null;const qm=Pd("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:r,reject:i})=>{Yl();const{t:s}=ql();jm&&(document.body.removeChild(jm),jm=null),jm=Fm({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(jm),jm.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||Gh(t),i)}),re))},tempFiles:o})})),jm.click(),Ef()||console.warn(s("uni.chooseFile.notUserActivation"))}),0,bh);let Um=null;const Vm=Pd("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{Yl();const{t:i}=ql();Um&&(document.body.removeChild(Um),Um=null),Um=Fm({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(Um),Um.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||Gh(t),i)}),oe))},tempFiles:r})})),Um.click(),Ef()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,yh),zm={esc:["Esc","Escape"],enter:["Enter"]},Hm=Object.keys(zm);function Wm(){const e=ln(""),t=ln(!1),n=n=>{if(t.value)return;const o=Hm.find((e=>-1!==zm[e].indexOf(n.key)));o&&(e.value=o),In((()=>e.value=""))};return zo((()=>{document.addEventListener("keyup",n)})),Yo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const Ym=li("div",{class:"uni-mask"},null,-1);function Xm(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Ws(So({setup:()=>()=>(Jr(),ti(e,t,null,16))}))}function Km(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function Jm(e,{onEsc:t,onEnter:n}){const o=ln(e.visible),{key:r,disable:i}=Wm();return io((()=>e.visible),(e=>o.value=e)),io((()=>o.value),(e=>i.value=!e)),oo((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let Gm=0,Qm="";function Zm(e){let t=Gm;Gm+=e?1:-1,Gm=Math.max(0,Gm),Gm>0?0===t&&(Qm=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Qm,Qm="")}const ey=Su({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Ht({direction:"none"});let n=1,o=0,r=0,i=0,s=0;function a({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,s=t.height,d(e)}function u(e){const a=n*o>i,l=n*r>s;t.direction=a&&l?"all":a?"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 li(Vf,{style:n,onTouchstart:ku(c),onTouchmove:ku(d),onTouchend:ku(u)},{default:()=>[li(np,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:a},{default:()=>[li("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 ty(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const ny=Su({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){zo((()=>Zm(!0))),Xo((()=>Zm(!1)));const n=ln(null),o=ln(ty(e));let r;function i(){r||In((()=>{t("close")}))}function s(e){o.value=e.detail.current}io((()=>e.current),(()=>o.value=ty(e))),zo((()=>{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 a={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 li("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},[li(Rp,{navigation:"auto",current:o.value,onChange:s,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(r=t=e.urls.map((e=>li(Bp,null,{default:()=>[li(ey,{src:e},null,8,["src"])]}))),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!ni(r)?t:{default:()=>[t],_:1}),8,["current","onChange"]),li("div",{style:a},[Bc("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 oy,ry=null;const iy=()=>{ry=null,In((()=>{null==oy||oy.unmount(),oy=null}))},sy=Pd("previewImage",((e,{resolve:t})=>{ry?c(ry,e):(ry=Ht(e),In((()=>{oy=Xm(ny,ry,iy),oy.mount(Km("u-a-p"))}))),t()}),0,xh);let ay=null;const ly=Pd("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{Yl();const{t:r}=ql();ay&&(document.body.removeChild(ay),ay=null),ay=Fm({sourceType:e,extension:t,type:"video"}),document.body.appendChild(ay),ay.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||Gh(this.tempFile),o}});const i=document.createElement("video");if(void 0!==i.onloadedmetadata){const e=Gh(t);i.onloadedmetadata=function(){Qh(e),n(c(r,{duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0}))},setTimeout((()=>{i.onloadedmetadata=null,Qh(e),n(r)}),300),i.src=e}else n(r)})),ay.click(),Ef()||console.warn(r("uni.chooseFile.notUserActivation"))}),0,vh),cy=Cd("request",(({url:e,data:t,header:n={},method:o,dataType:r,responseType:i,withCredentials:s,timeout:a=__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)h(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));u=e.join("&")}else u=t.toString();const f=new XMLHttpRequest,p=new uy(f);f.open(o,e);for(const y in n)h(n,y)&&f.setRequestHeader(y,n[y]);const g=setTimeout((function(){f.onload=f.onabort=f.onerror=null,p.abort(),c("timeout",{errCode:5})}),a);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=s,f.send(u),p}),0,Ch);class uy{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 hy{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){y(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 fy=Cd("downloadFile",(({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:r})=>{var i,s=new XMLHttpRequest,a=new hy(s);return s.open("GET",e,!0),Object.keys(t).forEach((e=>{s.setRequestHeader(e,t[e])})),s.responseType="blob",s.onload=function(){clearTimeout(i);const t=s.status,n=this.response;let r;const a=s.getResponseHeader("content-disposition");if(a){const e=a.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:Gh(n)})},s.onabort=function(){clearTimeout(i),r("abort",{errCode:600003})},s.onerror=function(){clearTimeout(i),r("",{errCode:602001})},s.onprogress=function(e){a._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesWritten:n,totalBytesExpectedToWrite:o})}))},s.send(),i=setTimeout((function(){s.onprogress=s.onload=s.onabort=s.onerror=null,a.abort(),r("timeout",{errCode:5})}),n),a}),0,Eh);class py{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){y(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 gy=Cd("uploadFile",(({url:e,file:t,filePath:n,name:o,files:r,header:i={},formData:s={},timeout:a=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new py;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(Jh(e)):Kh(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(s).forEach((e=>{d.append(e,s[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})}),a),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Ph),my=Pd("getLocation",(({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:r,reject:i})=>{const s=hm();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)=>{s.type===dm.QQ?sm(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${s.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")))):s.type===dm.GOOGLE?cy({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${s.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"))}}):s.type===dm.AMAP?cm([],(()=>{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=hm();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise((e=>{sm(`https://apis.map.qq.com/jsapi?qt=translate&type=1&points=${t.longitude},${t.latitude}&key=${o.key}&output=jsonp&pf=jsapi&ref=jsapi`,{callback:"cb"},(n=>{if("detail"in n&&"points"in n.detail&&n.detail.points.length){const{lng:o,lat:r}=n.detail.points[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=>{cm([],(()=>{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,mh),yy=Pd("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===Hc("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(Hg().$router.go(-e.delta),t()):n("onBackPress")}),0,$h);function vy({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:r},i){const s=Hg().$router,{path:a,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||++Tg,__type__:e}}(e,i);s["navigateTo"===e?"push":"replace"]({path:a,query:l,state:u,force:!0}).then((i=>{if(el(i))return c(i.message);if("switchTab"===e&&(s.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=s.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 Pe(u.__id__,o),t(r?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return r?t({__id__:u.__id__}):t()}))}))}const _y=Pd("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:r})=>vy({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(r)),0,Ih);const by=Pd("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>(function(){const e=Fc();if(!e)return;const t=e.$page;xg(Cg(t.path,t.id))}(),vy({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(o))),0,Oh);const wy=Pd("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>(function(){const e=bg().keys();for(const t of e)xg(t)}(),vy({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o))),0,Lh);function xy(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}const Ty=Pd("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:r})=>(function(){const e=Uc();if(!e)return;const t=bg(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:xg(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,Hc(e,"onHide"))}(),vy({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},function(e){const t=bg().values();for(const n of t){const t=n.$page;if(xy(e,t))return n.$.__isActive=!0,t.id}}(e)).then(o).catch(r))),0,Mh);function Sy(e){__uniConfig.darkmode&&Ev.on("onThemeChange",e)}function ky(e){Ev.off("onThemeChange",e)}function Cy(e){let t={};return __uniConfig.darkmode&&(t=De(e,__uniConfig.themeConfig,bm())),__uniConfig.darkmode?t:e}function Ey(e,t){const n=Kt(e),o=n?Ht(Cy(e)):Cy(e);return __uniConfig.darkmode&&n&&io(e,(e=>{const t=Cy(e);for(const n in t)o[n]=t[n]})),t&&Sy(t),o}const Py={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Ay=So({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=ln(""),o=()=>s.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),s=Jm(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}}),a=function(e){const t=ln(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Py[e].cancelColor})(e,t)};return oo((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===bm()&&n({theme:"dark"}),Sy(n))):ky(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:h}=e;return n.value=o,li(Fi,{name:"uni-fade"},{default:()=>[uo(li("uni-modal",{onTouchmove:Sc},[Ym,li("div",{class:"uni-modal"},[t?li("div",{class:"uni-modal__hd"},[li("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?li("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:h,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):li("div",{class:"uni-modal__bd",onTouchmovePassive:kc,textContent:o},null,40,["onTouchmovePassive","textContent"]),li("div",{class:"uni-modal__ft"},[l&&li("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),li("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[Zi,s.value]])]})}}});let Iy;const Oy=pe((()=>{Ev.on("onHidePopup",(()=>Iy.visible=!1))}));let Ly;function My(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&Iy.editable&&(o.content=t),Ly&&Ly(o)}const $y=Pd("showModal",((e,{resolve:t})=>{Oy(),Ly=t,Iy?(c(Iy,e),Iy.visible=!0):(Iy=Ht(e),In((()=>(Xm(Ay,Iy,My).mount(Km("u-a-m")),In((()=>Iy.visible=!0))))))}),0,Uh),Ry={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==Vh.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Dy={light:"#fff",dark:"rgba(255,255,255,0.9)"},By=e=>Dy[e],Ny=So({name:"Toast",props:Ry,setup(e){zl(),Hl();const{Icon:t}=function(e){const t=ln(By(bm())),n=({theme:e})=>t.value=By(e);oo((()=>{e.visible?Sy(n):ky(n)}));return{Icon:Oi((()=>{switch(e.icon){case"success":return li(Bc($c,t.value,38),{class:"uni-toast__icon"});case"error":return li(Bc(Rc,t.value,38),{class:"uni-toast__icon"});case"loading":return li("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=Jm(e,{});return()=>{const{mask:o,duration:r,title:i,image:s}=e;return li(Fi,{name:"uni-fade"},{default:()=>[uo(li("uni-toast",{"data-duration":r},[o?li("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Sc},null,40,["onTouchmove"]):"",s||t.value?li("div",{class:"uni-toast"},[s?li("img",{src:s,class:"uni-toast__icon"},null,10,["src"]):t.value,li("p",{class:"uni-toast__content"},[i])]):li("div",{class:"uni-sample-toast"},[li("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[Zi,n.value]])]})}}});let Fy,jy,qy="";const Uy=je();function Vy(e){Fy?c(Fy,e):(Fy=Ht(c(e,{visible:!1})),In((()=>{Uy.run((()=>{io([()=>Fy.visible,()=>Fy.duration],(([e,t])=>{if(e){if(jy&&clearTimeout(jy),"onShowLoading"===qy)return;jy=setTimeout((()=>{Xy("onHideToast")}),t)}else jy&&clearTimeout(jy)}))})),Ev.on("onHidePopup",(()=>Xy("onHidePopup"))),Xm(Ny,Fy,(()=>{})).mount(Km("u-a-t"))}))),setTimeout((()=>{Fy.visible=!0}),10)}const zy=Pd("showToast",((e,{resolve:t,reject:n})=>{Vy(e),qy="onShowToast",t()}),0,zh),Hy={icon:"loading",duration:1e8,image:""},Wy=Pd("showLoading",((e,{resolve:t,reject:n})=>{c(e,Hy),Vy(e),qy="onShowLoading",t()}),0,qh),Yy=Pd("hideLoading",((e,{resolve:t,reject:n})=>{Xy("onHideLoading"),t()}));function Xy(e){const{t:t}=ql();if(!qy)return;let n="";if("onHideToast"===e&&"onShowToast"!==qy?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==qy&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);qy="",setTimeout((()=>{Fy.visible=!1}),10)}const Ky=Pd("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:s,featureSettings:a}=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}`),s&&i.push(`font-variant:${s}`),a&&i.push(`font-feature-settings:${a}`)}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('${Du(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${Du(t.substring(4,t.length-1))}')`:Du(t),n).then((()=>{o()})).catch((e=>{r(`loadFontFace:fail ${e}`)}))}));function Jy(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Ev.emit("onNavigationBarChange",{titleText:t})}oo(t),Mo(t)}const Gy=Pd("setNavigationBarColor",((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:s}=o;e&&(i.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(i.backgroundColor=t),i.duration=r+"ms",i.timingFunc=s;break;case"showNavigationBarLoading":i.loading=!0;break;case"hideNavigationBarLoading":i.loading=!1;break;case"setNavigationBarTitle":const{title:a}=n;i.titleText=a}o()}(jc(),"setNavigationBarColor",e,t,n)}),0,jh),Qy=Pd("stopPullDownRefresh",((e,{resolve:t})=>{Ev.invokeViewMethod("stopPullDownRefresh",{},qc()),t()})),Zy=["text","iconPath","iconfont","selectedIconPath","visible"],ev=["color","selectedColor","backgroundColor","borderStyle","midButton"],tv=["badge","redDot"];function nv(e,t,n){t.forEach((function(t){h(n,t)&&(e[t]=n[t])}))}function ov(e,t,n){const o=dg();switch(e){case"showTabBar":o.shown=!0;break;case"hideTabBar":o.shown=!1;break;case"setTabBarItem":const{index:e}=t,n=o.list[e],r=n.pagePath;nv(n,Zy,t);const{pagePath:i}=t;if(i){const t=he(i);t!==r&&function(e,t,n){const o=Gc(he(t));if(o){const{meta:e}=o;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const r=Gc(he(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=fe(n))}}(e,r,t)}break;case"setTabBarStyle":nv(o,ev,t);break;case"showTabBarRedDot":nv(o.list[t.index],tv,{badge:"",redDot:!0});break;case"setTabBarBadge":nv(o.list[t.index],tv,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":nv(o.list[t.index],tv,{badge:"",redDot:!1})}n()}const rv=Pd("removeTabBarBadge",((e,{resolve:t})=>{ov("removeTabBarBadge",e,t)}),0,Wh),iv=Pd("setTabBarBadge",((e,{resolve:t})=>{ov("setTabBarBadge",e,t)}),0,Yh),sv=Su({name:"TabBar",setup(){const e=ln([]),t=dg(),n=Ey(t,(()=>{const e=Cy(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,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}ln(c({type:"midButton"},e.midButton)),oo(n)}(n,e),function(e){io((()=>e.shown),(t=>{Ic({"--window-bottom":vg(t?parseInt(e.height):0)})}))}(n);const o=function(e,t,n){return oo((()=>{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=he(o);i===__uniRoutes[0].alias&&(i="/"),e.path!==i?Ty({from:"tabBar",url:i,tabBarText:r}):Hc("onTabItemTap",{index:n,text:r,pagePath:o})}}(Rl(),n,e),{style:r,borderStyle:i,placeholderStyle:s}=function(e){const t=Oi((()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||mg&&n&&"none"!==n&&(t=av[n]),{backgroundColor:t||"#f7f7fa",backdropFilter:"none"!==n?"blur(10px)":n}})),n=Oi((()=>{const{borderStyle:t}=e;return{backgroundColor:lv[t]||t}})),o=Oi((()=>({height:e.height})));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return zo((()=>{n.iconfontSrc&&Ky({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,s)=>{const a=o===s;return function(e,t,n,o,r,i,s,a){return li("div",{key:s,class:"uni-tabbar__item",onClick:a(r,s)},[cv(e,t||"",n,o,r,i)],8,["onClick"])}(a?r:i,a&&n.selectedIconPath||n.iconPath||"",n.iconfont?a&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?a&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,s,t)}))}(n,o,e);return li("uni-tabbar",{class:"uni-tabbar-"+n.position},[li("div",{class:"uni-tabbar",style:r.value},[li("div",{class:"uni-tabbar-border",style:i.value},null,4),t],4),li("div",{class:"uni-placeholder",style:s.value},null,4)],2)}}});const av={dark:"rgb(0, 0, 0, 0.8)",light:"rgb(250, 250, 250, 0.8)",extralight:"rgb(250, 250, 250, 0.8)"},lv={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function cv(e,t,n,o,r,i){const{height:s}=i;return li("div",{class:"uni-tabbar__bd",style:{height:s}},[n?dv(n,o||"rgb(0, 0, 0, 0.8)",r,i):t&&uv(t,r,i),r.text&&hv(e,r,i),r.redDot&&fv(r.badge)],4)}function uv(e,t,n){const{type:o,text:r}=t,{iconWidth:i}=n;return li("div",{class:"uni-tabbar__icon"+(r?" uni-tabbar__icon__diff":""),style:{width:i,height:i}},["midButton"!==o&&li("img",{src:Du(e)},null,8,["src"])],6)}function dv(e,t,n,o){var r;const{type:i,text:s}=n,{iconWidth:a}=o,l="uni-tabbar__icon"+(s?" uni-tabbar__icon__diff":""),c={width:a,height:a},u={fontSize:(null==(r=n.iconfont)?void 0:r.fontSize)||a,color:t};return li("div",{class:l,style:c},["midButton"!==i&&li("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function hv(e,t,n){const{iconPath:o,text:r}=t,{fontSize:i,spacing:s}=n;return li("div",{class:"uni-tabbar__label",style:{color:e,fontSize:i,lineHeight:o?"normal":1.8,marginTop:o?s:"inherit"}},[r],4)}function fv(e){return li("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const pv=Su({name:"Layout",setup(e,{emit:t}){const n=ln(null);Ac({"--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=Rl();return{routeKey:Oi((()=>Cg("/"+e.meta.route,cg()))),isTabBar:Oi((()=>e.meta.isTabBar)),routeCache:Pg}}(),{layoutState:r,windowState:i}=function(){lg();{const e=Ht({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return io((()=>e.marginWidth),(e=>Ac({"--window-margin":e+"px"}))),io((()=>e.leftWindowWidth+e.marginWidth),(e=>{Ac({"--window-left":e+"px"})})),io((()=>e.rightWindowWidth+e.marginWidth),(e=>{Ac({"--window-right":e+"px"})})),{layoutState:e,windowState:Oi((()=>({})))}}}();!function(e,t){const n=lg();function o(){const o=document.body.clientWidth,r=wg();let i={};if(r.length>0){i=r[r.length-1].$page.meta}else{const e=Gc(n.path,!0);e&&(i=e.meta)}const s=parseInt(String((h(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,In((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")}))):(e.marginWidth=0,In((()=>{const e=t.value;e&&e.removeAttribute("style")})))}io([()=>n.path],o),zo((()=>{o(),window.addEventListener("resize",o)}))}(r,n);const s=function(e){const t=lg(),n=dg(),o=Oi((()=>t.meta.isTabBar&&n.shown));return Ac({"--tab-bar-height":n.height}),o}(),a=function(e){const t=ln(!1);return Oi((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(s);return()=>{const e=function(e,t,n,o,r,i){return function({routeKey:e,isTabBar:t,routeCache:n}){return li(Ml,null,{default:Hn((({Component:o})=>[(Jr(),ti(Oo,{matchBy:"key",cache:n},[(Jr(),ti(Qn(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o),t=function(e){return uo(li(sv,null,null,512),[[Zi,e.value]])}(s);return li("uni-app",{ref:n,class:a.value},[e,t],2)}}});const gv=Pd("scanCode",(mv="scanCode",(e,{reject:t})=>t(function(e){return`method 'uni.${e}' not supported`}(mv))));var mv;function yv(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!ni(e)}function vv(e){if(e.mode===wv.TIME)return"00:00";if(e.mode===wv.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case xv.YEAR:return t.toString();case xv.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function _v(e){if(e.mode===wv.TIME)return"23:59";if(e.mode===wv.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case xv.YEAR:return t.toString();case xv.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function bv(e,t,n,o){const r=e.mode===wv.DATE?"-":":",i=e.mode===wv.DATE?t.dateArray:t.timeArray;let s;if(e.mode===wv.TIME)s=2;else switch(e.fields){case xv.YEAR:s=1;break;case xv.MONTH:s=2;break;default:s=3}const a=String(n).split(r);let l=[];for(let c=0;c=0&&(l=o?bv(e,t,o):l.map((()=>0))),l}const wv={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},xv={YEAR:"year",MONTH:"month",DAY:"day"},Tv={PICKER:"picker",SELECT:"select"},Sv=Tu({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:wv.SELECTOR,validator:e=>Object.values(wv).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>vv(e)},end:{type:String,default:e=>_v(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){Xl();const{t:o}=ql(),r=ln(null),i=ln(null),s=ln(null),a=ln(null),l=ln(!1),{state:u,rangeArray:d}=function(e){const t=Ht({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=Oi((()=>{let n=e.range;switch(e.mode){case wv.SELECTOR:return[n];case wv.MULTISELECTOR:return n;case wv.TIME:return t.timeArray;case wv.DATE:{const n=t.dateArray;switch(e.fields){case xv.YEAR:return[n[0]];case xv.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]}));return{state:t,rangeArray:n}}(e),h=Cu(r,t),{system:p,selectorTypeComputed:g,_show:m,_l10nColumn:y,_l10nItem:v,_input:_,_fixInputPosition:b,_pickerViewChange:w,_cancel:x,_change:T,_resetFormData:S,_getFormData:k,_createTime:C,_createDate:E,_setValueSync:P}=function(e,t,n,o,r,i,s){const a=function(){const e=ln(!1);return e.value=(()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0)(),e}(),l=function(){const e=ln("");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=Oi((()=>{const t=e.selectorType;return Object.values(Tv).includes(t)?t:a.value?Tv.PICKER:Tv.SELECT})),u=Oi((()=>e.mode===wv.DATE&&!Object.values(xv).includes(e.fields)&&t.isDesktop?l.value:"")),d=Oi((()=>bv(e,t,e.start,vv(e)))),h=Oi((()=>bv(e,t,e.end,_v(e))));function p(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 s=i.getBoundingClientRect();t.popover={top:s.top,left:s.left,width:s.width,height:s.height},setTimeout((()=>{t.visible=!0}),20)}function g(){return{value:t.valueSync,key:e.name}}function m(){switch(e.mode){case wv.SELECTOR:t.valueSync=0;break;case wv.MULTISELECTOR:t.valueSync=e.value.map((e=>0));break;case wv.DATE:case wv.TIME:t.valueSync=""}}function y(){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 v(){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 _(){let e=[];const n=v();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 b(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;na?0:s)}}break;case wv.TIME:case wv.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function S(){let n,o=t.valueSync;switch(e.mode){case wv.MULTISELECTOR:n=[...o];break;case wv.TIME:n=bv(e,t,o,me({mode:wv.TIME}));break;case wv.DATE:n=bv(e,t,o,me({mode:wv.DATE}));break;default:n=[o]}t.oldValueArray=[...n],t.valueArray=[...n]}function k(){let n=t.valueArray;switch(e.mode){case wv.SELECTOR:return n[0];case wv.MULTISELECTOR:return n.map((e=>e));case wv.TIME:return t.valueArray.map(((e,n)=>t.timeArray[n][e])).join(":");case wv.DATE:return t.valueArray.map(((e,n)=>t.dateArray[n][e])).join("-")}}function C(){P(),t.valueChangeSource="click";const e=k();t.valueSync=f(e)?e.map((e=>e)):e,n("change",{},{value:e})}function E(e){if("firefox"===u.value&&e){const{top:n,left:o,width:r,height:i}=t.popover,{pageX:s,pageY:a}=e;if(s>o&&sn&&a{let e=r.value;e.remove(),o.value.prepend(e),e.style.display="none"}),260)}function A(){e.mode===wv.SELECTOR&&c.value===Tv.SELECT&&(i.value.scrollTop=34*t.valueArray[0])}function I(e){const n=e.target;t.valueSync=n.value,In((()=>{C()}))}function O(e){if("chrome"===u.value){const t=o.value.getBoundingClientRect(),n=32;s.value.style.left=e.clientX-t.left-1.5*n+"px",s.value.style.top=e.clientY-t.top-.5*n+"px"}}function L(e){t.valueArray=M(e.detail.value,!0)}function M(t,n){const{getLocale:o}=ql();if(e.mode===wv.DATE){const r=o();if(!r.startsWith("zh"))switch(e.fields){case xv.YEAR:return t;case xv.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 $(t,n){const{getLocale:o}=ql();if(e.mode===wv.DATE){const r=o();if(r.startsWith("zh")){return t+["年","月","日"][n]}if(e.fields!==xv.YEAR&&n===(e.fields===xv.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 io((()=>t.visible),(e=>{e?(clearTimeout(kv),t.contentVisible=e,A()):kv=setTimeout((()=>{t.contentVisible=e}),300)})),io([()=>e.mode,()=>e.value,()=>e.range],T,{deep:!0}),io((()=>t.valueSync),S,{deep:!0}),io((()=>t.valueArray),(o=>{if(e.mode===wv.TIME||e.mode===wv.DATE){const n=e.mode===wv.TIME?b:w,o=t.valueArray,r=d.value,i=h.value;if(e.mode===wv.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===wv.MULTISELECTOR&&n("columnchange",{},{column:r,value:o}))}))})),{selectorTypeComputed:c,system:u,_show:p,_cancel:E,_change:C,_l10nColumn:M,_l10nItem:$,_input:I,_resetFormData:m,_getFormData:g,_createTime:y,_createDate:_,_setValueSync:T,_fixInputPosition:O,_pickerViewChange:L}}(e,u,h,r,i,s,a);!function(e,t,n){const{key:o,disable:r}=Wm();oo((()=>{r.value=!e.visible})),io(o,(e=>{"esc"===e?t():"enter"===e&&n()}))}(u,x,T),function(e,t){const n=Sr(Iu,!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),Yo((()=>{n.removeField(o)}))}}(S,k),C(),E(),P();const A=function(e){const t=ln(0),n=ln(0),o=Oi((()=>t.value>=500&&n.value>=500)),r=Oi((()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},r=t.content,i=t.triangle,s=e.popover;function a(e){return Number(e)||0}if(o.value&&s){c(i,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=a(s.left),t=a(s.width),o=a(s.top),l=a(s.height),u=e+t/2;r.transform="none !important";const d=Math.max(0,u-150);r.left=`${d}px`;let h=Math.max(12,u-d);h=Math.min(288,h),i.left=`${h}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 zo((()=>{const e=()=>{const{windowWidth:e,windowHeight:o,windowTop:r}=Pm();t.value=e,n.value=o+(r||0)};window.addEventListener("resize",e),e(),Xo((()=>{window.removeEventListener("resize",e)}))})),{isDesktop:o,popupStyle:r}}(u);return oo((()=>{u.isDesktop=A.isDesktop.value,u.popupStyle=A.popupStyle.value})),Yo((()=>{i.value&&i.value.remove()})),zo((()=>{l.value=!0})),()=>{let t;const{visible:c,contentVisible:h,valueArray:f,popupStyle:S,valueSync:k}=u,{rangeKey:C,mode:E,start:P,end:A}=e,I=Au(e,"disabled");return li("uni-picker",gi({ref:r},I,{onClick:ku(m)}),[l.value?li("div",{ref:i,class:["uni-picker-container",`uni-${E}-${g.value}`],onWheel:Sc,onTouchmove:Sc},[li(Fi,{name:"uni-fade"},{default:()=>[uo(li("div",{class:"uni-mask uni-picker-mask",onClick:ku(x),onMousemove:b},null,40,["onClick","onMousemove"]),[[Zi,c]])]}),p.value?null:li("div",{class:[{"uni-picker-toggle":c},"uni-picker-custom"],style:S.content},[li("div",{class:"uni-picker-header",onClick:kc},[li("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:ku(x)},[o("uni.picker.cancel")],8,["onClick"]),li("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:T},[o("uni.picker.done")],8,["onClick"])],8,["onClick"]),h?li(fp,{value:y(f),class:"uni-picker-content",onChange:w},yv(t=Zo(y(d.value),((e,t)=>{let n;return li(wp,{key:t},yv(n=Zo(e,((e,n)=>li("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[C]||"":v(e,t)]))))?n:{default:()=>[n],_:1})})))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,li("div",{ref:s,class:"uni-picker-select",onWheel:kc,onTouchmove:kc},[Zo(d.value[0],((e,t)=>li("div",{key:t,class:["uni-picker-item",{selected:f[0]===t}],onClick:()=>{f[0]=t,T()}},["object"==typeof e?e[C]||"":e],10,["onClick"])))],40,["onWheel","onTouchmove"]),li("div",{style:S.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,li("div",null,[n.default&&n.default()]),p.value?li("div",{class:"uni-picker-system",onMousemove:ku(b)},[li("input",{class:["uni-picker-system_input",p.value],ref:a,value:k,type:E,tabindex:"-1",min:P,max:A,onChange:e=>{_(e),kc(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});let kv;const Cv=c(nc,{publishHandler(e,t,n){Ev.subscribeHandler(e,t,n)}}),Ev=c(uu,{publishHandler(e,t,n){Cv.subscribeHandler(e,t,n)}}),Pv=Su({name:"PageHead",setup(){const e=ln(null),t=sg(),n=Ey(t.navigationBar,(()=>{const e=Cy(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),{clazz:o,style:r}=function(e){const t=Oi((()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,r={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(r[`uni-page-head-shadow-${o}`]=!0),r})),n=Oi((()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc})));return{clazz:t,style:n}}(n);return()=>{const i=function(e,t){if(!t)return li("div",{class:"uni-page-head-btn",onClick:Iv},[Bc(Dc,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),s=n.type||"default",a="transparent"!==s&&"float"!==s&&li("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return li("uni-page-head",{"uni-page-head-type":s},[li("div",{ref:e,class:o.value,style:r.value},[li("div",{class:"uni-page-head-hd"},[i]),Av(n),li("div",{class:"uni-page-head-ft"},[])],6),a],8,["uni-page-head-type"])}}});function Av(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:r}){return li("div",{class:"uni-page-head-bd"},[li("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?li("i",{class:"uni-loading"},null):r?li("img",{src:r,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function Iv(){1===wg().length?wy({url:"/"}):yy({from:"backbutton",success(){}})}const Ov={name:"PageRefresh",setup(){const{pullToRefresh:e}=sg();return{offset:e.offset,color:e.color}}},Lv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mv={class:"uni-page-refresh-inner"},$v=["fill"],Rv=[ai("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),ai("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],Dv={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},Bv=["stroke"];const Nv=Lv(Ov,[["render",function(e,t,n,o,r,i){return Jr(),ei("uni-page-refresh",null,[ai("div",{style:ce({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[ai("div",Mv,[(Jr(),ei("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},Rv,8,$v)),(Jr(),ei("svg",Dv,[ai("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,Bv)]))])],4)])}]]);function Fv(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 jv="aborting",qv="refreshing",Uv="restoring";function Vv(e){const t=sg(),{id:n,pullToRefresh:o}=t,{range:r,height:i}=o;let s,a,l,c,u,d,h,f;Kp((()=>{t.enablePullDownRefresh&&(f||(f=qv,y(),setTimeout((()=>{x()}),50)))}),"startPullDownRefresh",!1,n),Kp((()=>{t.enablePullDownRefresh&&f===qv&&(v(),f=Uv,y(),function(e){if(!a)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),a.removeEventListener("webkitTransitionEnd",t),l.transition="",l.transform="translate3d(-50%, 0, 0)",e()};a.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}((()=>{v(),f=p=g=null})))}),"stopPullDownRefresh",!1,n),zo((()=>{s=e.value.$el,a=s.querySelector(".uni-page-refresh"),l=a.style,c=a.querySelector(".uni-page-refresh-inner").style}));let p=null,g=null;function m(e){f&&s&&s.classList[e]("uni-page-refresh--"+f)}function y(){m("add")}function v(){m("remove")}const _=ku((e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];u=n.identifier,d=n.pageY,h=!([jv,qv,Uv].indexOf(f)>=0)})),b=ku((e=>{if(!t.enablePullDownRefresh)return;if(!h)return;if(!Fv(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.preventDefault(),null===p&&(g=n,f="pulling",y()),n-=g,n<0&&(n=0),p=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=ku((e=>{t.enablePullDownRefresh&&Fv(e,u,d)&&null!==f&&("pulling"===f?(v(),f=jv,y(),function(e){if(!a)return;if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),a.removeEventListener("webkitTransitionEnd",t),l.transition="",e()};a.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}((()=>{v(),f=p=g=null}))):"reached"===f&&(v(),f=qv,y(),x()))}));function x(){a&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+i+"px, 0)",Hc(n,"onPullDownRefresh"))}return{onTouchstartPassive:_,onTouchmove:b,onTouchend:w,onTouchcancel:w}}const zv=Su({name:"PageBody",setup(e,t){const n=sg(),o=ln(null),r=n.enablePullDownRefresh?Vv(o):null,i=ln(null);return io((()=>n.enablePullDownRefresh),(()=>{i.value=n.enablePullDownRefresh?r:null}),{immediate:!0}),()=>{const e=function(e,t){if(!t.enablePullDownRefresh)return null;return li(Nv,{ref:e},null,512)}(o,n);return li(zr,null,[e,li("uni-page-wrapper",i.value,[li("uni-page-body",null,[er(t.slots,"default")])],16)])}}});const Hv=Su({name:"Page",setup(e,t){const n=ag(cg()),o=n.navigationBar,r={};return Jy(n),()=>li("uni-page",{"data-page":n.route,style:r},"custom"!==o.style?[li(Pv),Wv(t)]:[Wv(t)])}});function Wv(e){return Jr(),ti(zv,{key:0},{default:Hn((()=>[er(e.slots,"page")])),_:3})}const Yv={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=Bd;const Xv=Object.assign({}),Kv=Object.assign;window.__uniConfig=Kv({tabBar:{position:"bottom",color:"#333333",selectedColor:"#01508B",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#FFFFFF",list:[{text:"首页",pagePath:"pages/tab/index",iconPath:"/static/tab/index1.png",selectedIconPath:"/static/tab/index2.png"},{text:"任务",pagePath:"pages/task/todotask",iconPath:"/static/tab/office1.png",selectedIconPath:"/static/tab/office2.png"},{text:"办公",pagePath:"pages/tab/office",iconPath:"/static/tab/product1.png",selectedIconPath:"/static/tab/product2.png"},{text:"我的",pagePath:"pages/tab/my",iconPath:"/static/tab/user1.png",selectedIconPath:"/static/tab/user2.png"}],selectedIndex:0,shown:!0},globalStyle:{navigationBar:{type:"default",backgroundImage:"linear-gradient(to left , #256FBC, #044D87)"},isNVue:!1},uniIdRouter:{},compilerVersion:"4.15"},{appId:"__UNI__9F097F0",appName:"数智产销",appVersion:"1.0.0",appVersionCode:20241024,async:Yv,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(Xv).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return Kv(e[n]||(e[n]={}),Xv[t].default),e}),{}),router:{mode:"hash",base:"/",assets:"assets",routerBase:"/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const Jv={delay:Yv.delay,timeout:Yv.timeout,suspensible:Yv.suspensible};Yv.loading&&(Jv.loadingComponent={name:"SystemAsyncLoading",render:()=>li(Jn(Yv.loading))}),Yv.error&&(Jv.errorComponent={name:"SystemAsyncError",render:()=>li(Jn(Yv.error))});const Gv=()=>t((()=>import("./pages-login-login.BNhTzXgq.js")),__vite__mapDeps([0,1,2,3,4,5])).then((e=>Kg(e.default||e))),Qv=Co(Kv({loader:Gv},Jv)),Zv=()=>t((()=>import("./pages-tab-index.DER3nP2q.js")),__vite__mapDeps([6,7,8,9,10])).then((e=>Kg(e.default||e))),e_=Co(Kv({loader:Zv},Jv)),t_=()=>t((()=>import("./pages-task-todotask.CIthLexT.js")),__vite__mapDeps([11,12])).then((e=>Kg(e.default||e))),n_=Co(Kv({loader:t_},Jv)),o_=()=>t((()=>import("./pages-tab-office.D9QLcaJb.js")),__vite__mapDeps([13,14])).then((e=>Kg(e.default||e))),r_=Co(Kv({loader:o_},Jv)),i_=()=>t((()=>import("./pages-tab-my.k79wZG1d.js")),__vite__mapDeps([15,16])).then((e=>Kg(e.default||e))),s_=Co(Kv({loader:i_},Jv)),a_=()=>t((()=>import("./pages-task-index.DSY475P0.js")),__vite__mapDeps([17,18,19,20])).then((e=>Kg(e.default||e))),l_=Co(Kv({loader:a_},Jv)),c_=()=>t((()=>import("./pages-task-handle.DRrXjoUu.js")),__vite__mapDeps([21,7,8,22,23,2,1,24,10,25])).then((e=>Kg(e.default||e))),u_=Co(Kv({loader:c_},Jv)),d_=()=>t((()=>import("./pages-talk-message_list.6372c515.js")),__vite__mapDeps([26,27,28])).then((e=>Kg(e.default||e))),h_=Co(Kv({loader:d_},Jv)),f_=()=>t((()=>import("./pages-talk-conversation.D7byETr5.js")),__vite__mapDeps([29,27,30])).then((e=>Kg(e.default||e))),p_=Co(Kv({loader:f_},Jv)),g_=()=>t((()=>import("./pages-talk-system.B_tX-kaZ.js")),__vite__mapDeps([31,27,32])).then((e=>Kg(e.default||e))),m_=Co(Kv({loader:g_},Jv)),y_=()=>t((()=>import("./pages-document-index.BrkzKRzt.js")),__vite__mapDeps([33,7,8,34,24,10,35])).then((e=>Kg(e.default||e))),v_=Co(Kv({loader:y_},Jv)),__=()=>t((()=>import("./pages-document-detail.C4cITdx4.js")),__vite__mapDeps([36,37])).then((e=>Kg(e.default||e))),b_=Co(Kv({loader:__},Jv)),w_=()=>t((()=>import("./pages-document-onlinePreview.BK6fgFt2.js")),__vite__mapDeps([38,3,4])).then((e=>Kg(e.default||e))),x_=Co(Kv({loader:w_},Jv)),T_=()=>t((()=>import("./pages-meeting-index.0wqQuLEo.js")),__vite__mapDeps([39,7,8,34,24,10,40])).then((e=>Kg(e.default||e))),S_=Co(Kv({loader:T_},Jv)),k_=()=>t((()=>import("./pages-meeting-detail.DGz5jZIy.js")),__vite__mapDeps([41,42])).then((e=>Kg(e.default||e))),C_=Co(Kv({loader:k_},Jv)),E_=()=>t((()=>import("./pages-leave-application.C9H4Fv9s.js")),__vite__mapDeps([43,7,8,22,23,44])).then((e=>Kg(e.default||e))),P_=Co(Kv({loader:E_},Jv)),A_=()=>t((()=>import("./pages-checkin-index.CeZ1Xtbt.js")),__vite__mapDeps([45,7,8,24,10,46])).then((e=>Kg(e.default||e))),I_=Co(Kv({loader:A_},Jv)),O_=()=>t((()=>import("./pages-useredit-useredit.qCxKV7Zu.js")),__vite__mapDeps([47,7,8,48])).then((e=>Kg(e.default||e))),L_=Co(Kv({loader:O_},Jv)),M_=()=>t((()=>import("./pages-useredit-address.BVvsxXls.js")),__vite__mapDeps([49,1,50])).then((e=>Kg(e.default||e))),$_=Co(Kv({loader:M_},Jv)),R_=()=>t((()=>import("./pages-useredit-add_address.CJr6IdFt.js")),__vite__mapDeps([51,2,52])).then((e=>Kg(e.default||e))),D_=Co(Kv({loader:R_},Jv)),B_=()=>t((()=>import("./pages-useredit-addressbook.D0ON0YPy.js")),__vite__mapDeps([53,54])).then((e=>Kg(e.default||e))),N_=Co(Kv({loader:B_},Jv)),F_=()=>t((()=>import("./pages-safe-manage.BYoMAgLM.js")),__vite__mapDeps([55,7,8,34,56,57,24,10,58])).then((e=>Kg(e.default||e))),j_=Co(Kv({loader:F_},Jv)),q_=()=>t((()=>import("./pages-product-index.DCow2AxC.js")),__vite__mapDeps([59,7,8,60])).then((e=>Kg(e.default||e))),U_=Co(Kv({loader:q_},Jv)),V_=()=>t((()=>import("./pages-userlist-index.D43mOlR8.js")),__vite__mapDeps([61,7,8,2,1,62])).then((e=>Kg(e.default||e))),z_=Co(Kv({loader:V_},Jv)),H_=()=>t((()=>import("./pages-safe-detail.GFg-POZa.js")),__vite__mapDeps([63,56,57,64])).then((e=>Kg(e.default||e))),W_=Co(Kv({loader:H_},Jv)),Y_=()=>t((()=>import("./pages-zhiban-index.B6INNCuV.js")),__vite__mapDeps([65,4,66])).then((e=>Kg(e.default||e))),X_=Co(Kv({loader:Y_},Jv)),K_=()=>t((()=>import("./pages-task-self.D_tFmaNB.js")),__vite__mapDeps([67,18,19])).then((e=>Kg(e.default||e))),J_=Co(Kv({loader:K_},Jv));function G_(e,t){return Jr(),ti(Hv,null,{page:Hn((()=>[li(e,Kv({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/login/login",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(Qv,t)}},loader:Gv,meta:{isQuit:!0,isEntry:!0,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/tab/index",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(e_,t)}},loader:Zv,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:0,enablePullDownRefresh:!0,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/task/todotask",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(n_,t)}},loader:t_,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,enablePullDownRefresh:!0,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/tab/office",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(r_,t)}},loader:o_,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:2,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/tab/my",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(s_,t)}},loader:i_,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:3,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/task/index",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(l_,t)}},loader:a_,meta:{enablePullDownRefresh:!0,navigationBar:{type:"default",titleText:"我的任务",titleColor:"#fff"},isNVue:!1}},{path:"/pages/task/handle",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(u_,t)}},loader:c_,meta:{navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/talk/message_list",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(h_,t)}},loader:d_,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"消息",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/talk/conversation",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(p_,t)}},loader:f_,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"昵称",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/talk/system",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(m_,t)}},loader:g_,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"系统通知",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/document/index",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(v_,t)}},loader:y_,meta:{enablePullDownRefresh:!0,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/document/detail",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(b_,t)}},loader:__,meta:{navigationBar:{titleText:"详情",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/document/onlinePreview",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(x_,t)}},loader:w_,meta:{navigationBar:{titleText:"在线预览",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/meeting/index",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(S_,t)}},loader:T_,meta:{navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/meeting/detail",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(C_,t)}},loader:k_,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"详情",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/leave/application",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(P_,t)}},loader:E_,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"请假申请",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/checkin/index",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(I_,t)}},loader:A_,meta:{navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/useredit/useredit",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(L_,t)}},loader:O_,meta:{navigationBar:{titleText:"资料编辑",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/useredit/address",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_($_,t)}},loader:M_,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"地址",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/useredit/add_address",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(D_,t)}},loader:R_,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"添加地址",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/useredit/addressbook",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(N_,t)}},loader:B_,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"通讯录",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/safe/manage",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(j_,t)}},loader:F_,meta:{navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/product/index",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(U_,t)}},loader:q_,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"生产数据",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/userlist/index",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(z_,t)}},loader:V_,meta:{navigationBar:{titleText:"",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/safe/detail",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(W_,t)}},loader:H_,meta:{navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/zhiban/index",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(X_,t)}},loader:Y_,meta:{navigationBar:{titleText:"值班信息",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/task/self",component:{setup(){const e=Hg(),t=e&&e.$route&&e.$route.query||{};return()=>G_(J_,t)}},loader:K_,meta:{navigationBar:{titleText:"本人发起",type:"default",titleColor:"#ffffff"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e))); /*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT */ let Q_;const Z_=e=>Q_=e,eb=Symbol();function tb(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var nb,ob;(ob=nb||(nb={})).direct="direct",ob.patchObject="patch object",ob.patchFunction="patch function";const rb=()=>{};function ib(e,t,n,o=rb){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};var i;return!n&&qe()&&(i=r,Be&&Be.cleanups.push(i)),r}function sb(e,...t){e.slice().forEach((e=>{e(...t)}))}const ab=e=>e();function lb(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];tb(r)&&tb(o)&&e.hasOwnProperty(n)&&!an(o)&&!Kt(o)?e[n]=lb(r,o):e[n]=o}return e}const cb=Symbol();const{assign:ub}=Object;function db(e,t,n={},o,r,i){let s;const a=ub({actions:{}},n),l={deep:!0};let c,u,d,h=[],f=[];const p=o.state.value[e];let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:nb.patchFunction,storeId:e,events:d}):(lb(o.state.value[e],t),n={type:nb.patchObject,payload:t,storeId:e,events:d});const r=g=Symbol();In().then((()=>{g===r&&(c=!0)})),u=!0,sb(h,n,o.state.value[e])}i||p||(o.state.value[e]={}),ln({});const y=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{ub(e,t)}))}:rb;function v(t,n){return function(){Z_(o);const r=Array.from(arguments),i=[],s=[];function a(e){i.push(e)}function l(e){s.push(e)}let c;sb(f,{args:r,name:t,store:_,after:a,onError:l});try{c=n.apply(this&&this.$id===e?this:_,r)}catch(u){throw sb(s,u),u}return c instanceof Promise?c.then((e=>(sb(i,e),e))).catch((e=>(sb(s,e),Promise.reject(e)))):(sb(i,c),c)}}const _=Ht({_p:o,$id:e,$onAction:ib.bind(null,f),$patch:m,$reset:y,$subscribe(t,n={}){const r=ib(h,t,n.detached,(()=>i())),i=s.run((()=>io((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:c)&&t({storeId:e,type:nb.direct,events:d},o)}),ub({},l,n))));return r},$dispose:function(){s.stop(),h=[],f=[],o._s.delete(e)}});o._s.set(e,_);const b=(o._a&&o._a.runWithContext||ab)((()=>o._e.run((()=>(s=je()).run(t)))));for(const T in b){const t=b[T];if(an(t)&&(!an(x=t)||!x.effect)||Kt(t))i||(!p||tb(w=t)&&w.hasOwnProperty(cb)||(an(t)?t.value=p[T]:lb(t,p[T])),o.state.value[e][T]=t);else if("function"==typeof t){const e=v(T,t);b[T]=e,a.actions[T]=t}}var w,x;return ub(_,b),ub(Zt(_),b),Object.defineProperty(_,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{ub(t,e)}))}}),o._p.forEach((e=>{ub(_,s.run((()=>e({store:_,app:o._a,pinia:o,options:a}))))})),p&&i&&n.hydrate&&n.hydrate(_.$state,p),c=!0,u=!0,_}function hb(e,t,n){let o,r;const i="function"==typeof t;function s(e,n){(e=e||(!!(_i||Un||xr)?Sr(eb,null):null))&&Z_(e),(e=Q_)._s.has(o)||(i?db(o,t,r,e):function(e,t,n,o){const{state:r,actions:i,getters:s}=t,a=n.state.value[e];let l;l=db(e,(function(){a||(n.state.value[e]=r?r():{});const t=gn(n.state.value[e]);return ub(t,i,Object.keys(s||{}).reduce(((t,o)=>(t[o]=en(Oi((()=>{Z_(n);const t=n._s.get(e);return s[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),s.$id=o,s}let fb=!1;function pb(e){if(fb)return;if(Lm("logintime")&&Lm("logintime")+36e5<=Date.now())return fb=!0,console.log("token超时"),Mm("logintime"),_y({url:"/pages/login/login"}),void(fb=!1);e.url="https://36.112.48.190/jeecg-boot"+e.url;let t=Lm("token")||"";return e.header={"content-type":"application/json;charset=utf-8","X-Access-Token":t},new Promise((function(t,n){cy(e).then((e=>{if(Yy(),e[0])zy({title:"数据获取失败",icon:"none",duration:1500}),t(!1);else{let n=e.data;if(t(n),fb)return;500==n.code&&zy({title:n.message,icon:"none",duration:1500}),510==n.code&&(fb=!0,zy({title:n.message,icon:"none",duration:1500}),Mm("token"),Mm("user"),Mm("role"),_y({url:"/pages/login/login"}),Mm("logintime"),fb=!1)}})).catch((e=>{Yy(),n(e)}))}))}function gb(e){return pb({url:"/act/task/list",method:"get",data:e})}function mb(e){return pb({url:"/act/task/taskHistoryList",method:"get",data:e})}function yb(e){return pb({url:"/act/task/myApplyProcessList",method:"get",data:e})}function vb(e){return pb({url:"/act/task/taskEntrust",method:"put",data:e})}function _b(e){return pb({url:"/process/extActProcessNode/getProcessNodeInfo",method:"get",data:e})}function bb(e){return pb({url:"/process/extActProcessNode/getHisProcessNodeInfo",method:"get",data:e})}function wb(e){return pb({url:"/sys/sysDepart/queryTreeList",method:"get",data:e})}function xb(e){return pb({url:"/sys/user/queryUserByDepId",method:"get",data:e})}function Tb(e){return pb({url:"/cxcoagwfb/cxcOaGwfb/bpmlist",method:"get",data:e})}function Sb(e){return pb({url:"/cxctz/cxcTz/list",method:"get",data:e})}function kb(e){return pb({url:"/zhgl_zbgl/zhglZbglZbb/list",method:"get",data:e})}function Cb(e){return pb({url:"/zhgl_zbgl/zhglZbglZbb/homepageList",method:"get",data:e})}function Eb(e){return pb({url:"/cxcoaflgf/cxcOaFlgf/zslist",method:"get",data:e})}function Pb(e){return pb({url:"/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist",method:"get",data:e})}function Ab(e){return pb({url:"/cxczd/cxcZdgl/list",method:"get",data:e})}function Ib(e){return pb({url:"/zhgl_hygl/zhglHyglHyyc/listbymainid",method:"get",data:e})}function Ob(e){return pb({url:"/sys/user/editApp",method:"PUT",data:e})}function Lb(e){return pb({url:"/process/extActFlowData/getProcessInfo",method:"get",data:e})}function Mb(e){return pb({url:"/act/task/processHistoryList",method:"get",data:e})}function $b(e){return pb({url:"/process/extActProcess/startMutilProcess",method:"post",data:e})}function Rb(e){return pb({url:"/act/task/processComplete",method:"post",data:e})}function Db(e){return pb({url:"/act/task/claim",method:"put",data:e})}function Bb(e){return pb({url:"/act/task/callBackProcess",method:"put",data:e})}function Nb(e){return pb({url:"/act/task/invalidProcess",method:"put",data:e})}function Fb(e){return pb({url:"/sys/category/findtree",method:"get",data:{pid:e}})}function jb(e){return pb({url:"/act/task/getProcessTaskTransInfo",method:"get",data:e})}function qb(e){return pb({url:"/CxcDaping/cxcDaping/list",method:"get",data:e})}const Ub=hb("user",{state:()=>({userinfo:Lm("user")&&JSON.parse(Lm("user"))||{},token:Lm("token")||null,role:Lm("role")||null,allowPage:Lm("allowPage")||null,position:Lm("position")||null,positionSwitch:Lm("positionSwitch")||null,wendu:Lm("wendu")||null,wenduIcon:Lm("wenduIcon")||null,isgray:Lm("isgray")||0}),getters:{},actions:{setUserInfo(e){this.userinfo=e},setToken(e){this.token=e},setRole(e){this.role=e},setPosition(e){this.position=e},setPositionSwitch(e){this.positionSwitch=e},setWeather(e,t){this.wendu=e,this.wenduIcon=t},setAllowPage(e){this.allowPage=e},setIsgray(e){this.isgray=e}}});function Vb(e){return pb({url:"/sys/sinopecLogin",method:"post",data:e})}function zb(e){return pb({url:"/appConnet/app/queryRoleByRoleIds",method:"get",data:e})}function Hb(e){return pb({url:"/sys/permission/getUserPermissionByToken",method:"get",data:e})}const Wb="https://36.112.48.190/jeecg-boot/sys/common/static/",Yb=(e,t,n)=>{zy({title:e,icon:t||"none",duration:n||2e3})},Xb=(e,t)=>{Hb({token:Ub().token,type:"mobile"}).then((n=>{var o;if(n.success){Kb((null==(o=n.result)?void 0:o.menu)||[]).some((t=>-1!==e.indexOf(t)))?t():Yb("无查看权限!")}})).catch((e=>{console.log("err@",e)}))},Kb=(e,t=[])=>e.length?(e.forEach((e=>{e.children&&t.push(...Kb(e.children)),t.push(e.path)})),t):[];const Jb=()=>{let e=new Date;return(new Date).getTime(),`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,0)}-${e.getDate().toString().padStart(2,0)}`},Gb=()=>{const e=Ub();e.positionSwitch?(Yb("定位刷新中"),my({type:"wgs84",success:function(t){cy({url:"http://api.tianditu.gov.cn/geocoder",method:"GET",data:{postStr:JSON.stringify({lon:t.longitude,lat:t.latitude,ver:1}),type:"geocode",tk:"30fe0f0c1b2320e112bde797f3ddaff4"},success:function(n){let o=n.data;if(0==o.status){const n=o.result.addressComponent;let r=n.city?n.city:n.province;Im("position",r),e.setPosition(r),Qb(t.latitude,t.longitude)}else console.log(o.message)},fail:function(e){Yb("获取定位失败")}})}})):(Im("position","濮阳市"),e.setPosition("濮阳市"),Qb())},Qb=(e,t)=>{let n={};Ub().positionSwitch?(n.lat=e,n.lon=t,Zb(n)):(n.q="濮阳市",Zb(n))},Zb=e=>{const t=Ub();cy({url:"https://api.openweathermap.org/data/2.5/weather",method:"GET",data:{...e,appid:"600a60694b0e453dfbaafa862f1d1482",lang:"zh_cn"},success:function(e){Im("wendu",Math.round(e.data.main.temp-273.15)),Im("wenduIcon",e.data.weather[0].icon),t.setWeather(Math.round(e.data.main.temp-273.15),e.data.weather[0].icon)},fail:function(e){Yb("天气获取失败")}})},ew=e=>{fy({url:Wb+e,success:function(e){var t=e.tempFilePath;Rm({filePath:t,showMenu:!0,fail:function(e){Yb(e.errMsg)}})},fail:function(e){console.error("文件下载失败",e)}})},tw=e=>`https://36.112.48.190/jeecg-boot/sys/common/static//${e}`,nw="https://36.112.48.190/jeecg-boot/sys/common/static/",ow=hb("updateApp",(()=>{const e=Ht({force:!1,hasNew:!1,content:"",url:"",wgtUrl:""}),t=Pm();return{checkAppUpdate:function(n=!1){try{pb({url:"/sys/common/upDateApp",method:"get",data:o}).then((async n=>{let{result:o}=n;o.apkUrl=nw+o.apkUrl,o.wgtUrl=nw+o.wgtUrl,e.wgtUrl=o.wgtUrl,"android"===t.osName?e.apkUrl=o.apkUrl:e.url="itms-apps://itunes.apple.com/cn/app/id123456?mt=8",e.hasNew&&$y({title:"更新",content:"发现新版本,请更新",success(e){e.confirm?o.update:plus.runtime.quit()}})}))}catch(r){e.hasNew=!1}var o},...gn(e),systemInfo:t}}));function rw(e,t){return"string"==typeof e?t:e}const iw=e=>(t,n=bi())=>{!Ci&&qo(e,t,n)},sw=iw("onShow"),aw=iw("onLaunch"),lw=iw("onLoad"),cw=iw("onReachBottom"),uw=iw("onPullDownRefresh"),dw={__name:"App",setup(e){aw((()=>{ow().checkAppUpdate(),Gb()})),sw((()=>{t()}));const t=()=>{var e;(e={id:"1827997127165677570"},pb({url:"/CxcJurisdiction/cxcJurisdiction/queryById",method:"get",data:e})).then((e=>{if(console.log(e),e.success){const t=Ub();Im("isgray",e.result.value),t.setIsgray(e.result.value)}}))};return()=>{}}};Xg(dw,{init:Wg,setup(e){const t=lg(),n=()=>{var n;n=e,Object.keys(ah).forEach((e=>{ah[e].forEach((t=>{qo(e,t,n)}))}));const{onLaunch:o,onShow:r,onPageNotFound:i,onError:s}=e,a=function({path:e,query:t}){return c(Zh,{path:e,query:t}),c(ef,Zh),c({},Zh)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:Se(t.query)});if(o&&R(o,a),r&&R(r,a),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};i&&R(i,e)}s&&(e.appContext.config.errorHandler=e=>{R(s,e)})};return Sr(wl).isReady().then(n),zo((()=>{window.addEventListener("resize",Ee(Jg,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",Gg),document.addEventListener("visibilitychange",Qg),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Ev.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=()=>(Jr(),ti(pv));e.setup=(e,o)=>{const r=t&&t(e,o);return y(r)?n:r},e.render=n}});const hw={pages:[{path:"pages/login/login",style:{navigationStyle:"custom"}},{path:"pages/tab/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/task/todotask",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/tab/office",style:{navigationStyle:"custom"}},{path:"pages/tab/my",style:{navigationStyle:"custom"}},{path:"pages/task/index",style:{enablePullDownRefresh:!0,"app-plus":{titleNView:{titleText:"我的任务",titleColor:"#fff"}}}},{path:"pages/task/handle",style:{navigationStyle:"custom"}},{path:"pages/talk/message_list",style:{navigationBarTitleText:"消息",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/conversation",style:{navigationBarTitleText:"昵称",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/system",style:{navigationBarTitleText:"系统通知",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/document/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/document/detail",style:{navigationBarTitleText:"详情",navigationBarTextStyle:"white"}},{path:"pages/document/onlinePreview",style:{navigationBarTitleText:"在线预览",navigationBarTextStyle:"white"}},{path:"pages/meeting/index",style:{navigationStyle:"custom"}},{path:"pages/meeting/detail",style:{navigationBarTitleText:"详情",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/leave/application",style:{navigationBarTitleText:"请假申请",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/checkin/index",style:{navigationStyle:"custom"}},{path:"pages/useredit/useredit",style:{navigationBarTitleText:"资料编辑",navigationBarTextStyle:"white"}},{path:"pages/useredit/address",style:{navigationBarTitleText:"地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/add_address",style:{navigationBarTitleText:"添加地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/addressbook",style:{navigationBarTitleText:"通讯录",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/safe/manage",style:{navigationStyle:"custom"}},{path:"pages/product/index",style:{navigationBarTitleText:"生产数据",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/userlist/index",style:{navigationBarTitleText:"",navigationBarTextStyle:"white"}},{path:"pages/safe/detail",style:{navigationStyle:"custom"}},{path:"pages/zhiban/index",style:{navigationBarTitleText:"值班信息",navigationBarTextStyle:"white"}},{path:"pages/task/self",style:{navigationBarTitleText:"本人发起",navigationBarTextStyle:"white"}}],tabBar:{color:"#333333",selectedColor:"#01508B",borderStyle:"black",backgroundColor:"#FFFFFF",list:[{text:"首页",pagePath:"pages/tab/index",iconPath:"static/tab/index1.png",selectedIconPath:"static/tab/index2.png"},{text:"任务",pagePath:"pages/task/todotask",iconPath:"static/tab/office1.png",selectedIconPath:"static/tab/office2.png"},{text:"办公",pagePath:"pages/tab/office",iconPath:"static/tab/product1.png",selectedIconPath:"static/tab/product2.png"},{text:"我的",pagePath:"pages/tab/my",iconPath:"static/tab/user1.png",selectedIconPath:"static/tab/user2.png"}]},globalStyle:{"app-plus":{titleNView:{backgroundImage:"linear-gradient(to left , #256FBC, #044D87)"}}},uniIdRouter:{}};function fw(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var pw=fw((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},r=o.lib={},i=r.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=r.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,o=this.sigBytes,r=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[o+i>>>2]|=s<<24-(o+i)%4*8}else for(i=0;i>>2]=n[i>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,o=[],r=function(t){var n=987654321,o=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&o)<<16)+(t=18e3*(65535&t)+(t>>16)&o)&o;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},i=0;i>>2]>>>24-r%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new s.init(n,t/2)}},c=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],r=0;r>>2]>>>24-r%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new s.init(n,t)}},u=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,o=n.words,r=n.sigBytes,i=this.blockSize,a=r/(4*i),l=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*i,c=e.min(4*l,r);if(l){for(var u=0;u>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,s=e[t+0],l=e[t+1],f=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],v=e[t+7],_=e[t+8],b=e[t+9],w=e[t+10],x=e[t+11],T=e[t+12],S=e[t+13],k=e[t+14],C=e[t+15],E=i[0],P=i[1],A=i[2],I=i[3];E=c(E,P,A,I,s,7,a[0]),I=c(I,E,P,A,l,12,a[1]),A=c(A,I,E,P,f,17,a[2]),P=c(P,A,I,E,p,22,a[3]),E=c(E,P,A,I,g,7,a[4]),I=c(I,E,P,A,m,12,a[5]),A=c(A,I,E,P,y,17,a[6]),P=c(P,A,I,E,v,22,a[7]),E=c(E,P,A,I,_,7,a[8]),I=c(I,E,P,A,b,12,a[9]),A=c(A,I,E,P,w,17,a[10]),P=c(P,A,I,E,x,22,a[11]),E=c(E,P,A,I,T,7,a[12]),I=c(I,E,P,A,S,12,a[13]),A=c(A,I,E,P,k,17,a[14]),E=u(E,P=c(P,A,I,E,C,22,a[15]),A,I,l,5,a[16]),I=u(I,E,P,A,y,9,a[17]),A=u(A,I,E,P,x,14,a[18]),P=u(P,A,I,E,s,20,a[19]),E=u(E,P,A,I,m,5,a[20]),I=u(I,E,P,A,w,9,a[21]),A=u(A,I,E,P,C,14,a[22]),P=u(P,A,I,E,g,20,a[23]),E=u(E,P,A,I,b,5,a[24]),I=u(I,E,P,A,k,9,a[25]),A=u(A,I,E,P,p,14,a[26]),P=u(P,A,I,E,_,20,a[27]),E=u(E,P,A,I,S,5,a[28]),I=u(I,E,P,A,f,9,a[29]),A=u(A,I,E,P,v,14,a[30]),E=d(E,P=u(P,A,I,E,T,20,a[31]),A,I,m,4,a[32]),I=d(I,E,P,A,_,11,a[33]),A=d(A,I,E,P,x,16,a[34]),P=d(P,A,I,E,k,23,a[35]),E=d(E,P,A,I,l,4,a[36]),I=d(I,E,P,A,g,11,a[37]),A=d(A,I,E,P,v,16,a[38]),P=d(P,A,I,E,w,23,a[39]),E=d(E,P,A,I,S,4,a[40]),I=d(I,E,P,A,s,11,a[41]),A=d(A,I,E,P,p,16,a[42]),P=d(P,A,I,E,y,23,a[43]),E=d(E,P,A,I,b,4,a[44]),I=d(I,E,P,A,T,11,a[45]),A=d(A,I,E,P,C,16,a[46]),E=h(E,P=d(P,A,I,E,f,23,a[47]),A,I,s,6,a[48]),I=h(I,E,P,A,v,10,a[49]),A=h(A,I,E,P,k,15,a[50]),P=h(P,A,I,E,m,21,a[51]),E=h(E,P,A,I,T,6,a[52]),I=h(I,E,P,A,p,10,a[53]),A=h(A,I,E,P,w,15,a[54]),P=h(P,A,I,E,l,21,a[55]),E=h(E,P,A,I,_,6,a[56]),I=h(I,E,P,A,C,10,a[57]),A=h(A,I,E,P,y,15,a[58]),P=h(P,A,I,E,S,21,a[59]),E=h(E,P,A,I,g,6,a[60]),I=h(I,E,P,A,x,10,a[61]),A=h(A,I,E,P,f,15,a[62]),P=h(P,A,I,E,b,21,a[63]),i[0]=i[0]+E|0,i[1]=i[1]+P|0,i[2]=i[2]+A|0,i[3]=i[3]+I|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var i=e.floor(o/4294967296),s=o;n[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,l=a.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,o,r,i,s){var a=e+(t&n|~t&o)+r+s;return(a<>>32-i)+t}function u(e,t,n,o,r,i,s){var a=e+(t&o|n&~o)+r+s;return(a<>>32-i)+t}function d(e,t,n,o,r,i,s){var a=e+(t^n^o)+r+s;return(a<>>32-i)+t}function h(e,t,n,o,r,i,s){var a=e+(n^(t|~o))+r+s;return(a<>>32-i)+t}t.MD5=i._createHelper(l),t.HmacMD5=i._createHmacHelper(l)}(Math),n.MD5)})),fw((function(e,t){var n,o,r;e.exports=(o=(n=gw).lib.Base,r=n.enc.Utf8,void(n.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,l=s.words,c=0;c>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a>>6*(3-a)&63));var l=o.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>6-s%4*2;o[i>>>2]|=(a|l)<<24-i%4*8,i++}return r.create(o,i)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const _w="FUNCTION",bw="pending",ww="rejected";function xw(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Tw(e){return"object"===xw(e)}function Sw(e){return"function"==typeof e}function kw(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const Cw="REJECTED",Ew="NOT_PENDING";class Pw{constructor({createPromise:e,retryRule:t=Cw}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Cw:return this.status===ww;case Ew:return this.status!==bw}}exec(){return this.needRetry?(this.status=bw,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=ww,Promise.reject(e)))),this.promise):this.promise}}function Aw(e){return e&&"string"==typeof e?JSON.parse(e):e}const Iw=Aw([]);Aw("");const Ow=Aw("[]")||[];let Lw="";try{Lw="__UNI__9F097F0"}catch(bx){}let Mw={};function $w(e,t={}){var n,o;return n=Mw,o=e,Object.prototype.hasOwnProperty.call(n,o)||(Mw[e]=t),Mw[e]}const Rw=["invoke","success","fail","complete"],Dw=$w("_globalUniCloudInterceptor");function Bw(e,t){Dw[e]||(Dw[e]={}),Tw(t)&&Object.keys(t).forEach((n=>{Rw.indexOf(n)>-1&&function(e,t,n){let o=Dw[e][t];o||(o=Dw[e][t]=[]),-1===o.indexOf(n)&&Sw(n)&&o.push(n)}(e,n,t[n])}))}function Nw(e,t){Dw[e]||(Dw[e]={}),Tw(t)?Object.keys(t).forEach((n=>{Rw.indexOf(n)>-1&&function(e,t,n){const o=Dw[e][t];if(!o)return;const r=o.indexOf(n);r>-1&&o.splice(r,1)}(e,n,t[n])})):delete Dw[e]}function Fw(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function jw(e,t){return Dw[e]&&Dw[e][t]||[]}function qw(e){Bw("callObject",e)}const Uw=$w("_globalUniCloudListener"),Vw="response",zw="needLogin",Hw="refreshToken",Ww="clientdb",Yw="cloudfunction",Xw="cloudobject";function Kw(e){return Uw[e]||(Uw[e]=[]),Uw[e]}function Jw(e,t){const n=Kw(e);n.includes(t)||n.push(t)}function Gw(e,t){const n=Kw(e),o=n.indexOf(t);-1!==o&&n.splice(o,1)}function Qw(e,t){const n=Kw(e);for(let o=0;o{ex&&e(),function t(){{const t=wg();t&&t[0]&&(ex=!0,e())}ex||setTimeout((()=>{t()}),30)}()})),Zw)}function nx(e){const t={};for(const n in e){const o=e[n];Sw(o)&&(t[n]=kw(o))}return t}class ox extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var rx={request:e=>cy(e),uploadFile:e=>gy(e),setStorageSync:(e,t)=>Im(e,t),getStorageSync:e=>Lm(e),removeStorageSync:e=>Mm(e),clearStorageSync:()=>$m()};function ix(e){return e&&ix(e.__v_raw)||e}function sx(){return{token:rx.getStorageSync("uni_id_token")||rx.getStorageSync("uniIdToken"),tokenExpired:rx.getStorageSync("uni_id_token_expired")}}function ax({token:e,tokenExpired:t}={}){e&&rx.setStorageSync("uni_id_token",e),t&&rx.setStorageSync("uni_id_token_expired",t)}let lx,cx;function ux(){return lx||(lx=Pm()),lx}function dx(){let e,t;try{if(lh){if(lh.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:o}=lh();e=o,t=n}}catch(n){}return{channel:e,scene:t}}function hx(){const e=sh&&sh()||"en";if(cx)return{...cx,locale:e,LOCALE:e};const t=ux(),{deviceId:n,osName:o,uniPlatform:r,appId:i}=t,s=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let a=0;a{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",r=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return o(new ox({code:n,message:r,requestId:t}))}const r=e.data;if(r.error)return o(new ox({code:r.error.code,message:r.error.message,requestId:t}));r.result=r.data,r.requestId=t,delete r.data,n(r)}}))}))},gx=function(e){return vw.stringify(yw.parse(e))},mx=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=rx,this._getAccessTokenPromiseHub=new Pw({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new ox({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:Ew})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return px(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=fx(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),o={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,o["x-basement-token"]=this.accessToken),o["x-serverless-sign"]=fx(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:o}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:o,fileType:r,onUploadProgress:i}){return new Promise(((s,a)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:o,fileType:r,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?s(e):a(new ox({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new ox({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:o=!1,onUploadProgress:r,config:i}){if("string"!==xw(t))throw new ox({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new ox({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new ox({code:"INVALID_PARAM",message:"cloudPath不合法"});const s=i&&i.envType||this.config.envType;if(o&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new ox({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const a=(await this.getOSSUploadOptionsFromPath({env:s,filename:o?t.split("/").pop():t,fileId:o?t:void 0})).result,l="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:c,accessKeyId:u,signature:d,host:h,ossPath:f,id:p,policy:g,ossCallbackUrl:m}=a,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:d,host:h,id:p,key:f,policy:g,success_action_status:200};if(c&&(y["x-oss-security-token"]=c),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:p,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=gx(e)}const v={url:"https://"+a.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},v,{onUploadProgress:r})),m)return{success:!0,filePath:e,fileID:l};if((await this.reportOSSUpload({id:p})).success)return{success:!0,filePath:e,fileID:l};throw new ox({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new ox({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new ox({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},yx={init(e){const t=new mx(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const vx="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var _x,bx;(bx=_x||(_x={})).local="local",bx.none="none",bx.session="session";var xx=function(){},Tx=fw((function(e,t){var n;e.exports=(n=gw,function(e){var t=n,o=t.lib,r=o.WordArray,i=o.Hasher,s=t.algo,a=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),o=2;o<=n;o++)if(!(t%o))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var o=2,r=0;r<64;)t(o)&&(r<8&&(a[r]=n(e.pow(o,.5))),l[r]=n(e.pow(o,1/3)),r++),o++}();var c=[],u=s.SHA256=i.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],r=n[1],i=n[2],s=n[3],a=n[4],u=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var p=c[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[f-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[f]=g+c[f-7]+y+c[f-16]}var v=o&r^o&i^r&i,_=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),b=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&d)+l[f]+c[f];h=d,d=u,u=a,a=s+b|0,s=i,i=r,r=o,o=b+(_+v)|0}n[0]=n[0]+o|0,n[1]=n[1]+r|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(o/4294967296),n[15+(r+64>>>9<<4)]=o,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(u),t.HmacSHA256=i._createHmacHelper(u)}(Math),n.SHA256)})),Sx=Tx,kx=fw((function(e,t){e.exports=gw.HmacSHA256}));const Cx=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new ox({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,o)=>e?n(e):t(o)}));return e.promise=t,e};function Ex(e){return void 0===e}function Px(e){return"[object Null]"===Object.prototype.toString.call(e)}var Ax;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Ax||(Ax={}));const Ix={adapter:null,runtime:void 0},Ox=["anonymousUuidKey"];class Lx extends xx{constructor(){super(),Ix.adapter.root.tcbObject||(Ix.adapter.root.tcbObject={})}setItem(e,t){Ix.adapter.root.tcbObject[e]=t}getItem(e){return Ix.adapter.root.tcbObject[e]}removeItem(e){delete Ix.adapter.root.tcbObject[e]}clear(){delete Ix.adapter.root.tcbObject}}function Mx(e,t){switch(e){case"local":return t.localStorage||new Lx;case"none":return new Lx;default:return t.sessionStorage||new Lx}}class $x{constructor(e){if(!this._storage){this._persistence=Ix.adapter.primaryStorage||e.persistence,this._storage=Mx(this._persistence,Ix.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,o=`refresh_token_${e.env}`,r=`anonymous_uuid_${e.env}`,i=`login_type_${e.env}`,s=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:o,anonymousUuidKey:r,loginTypeKey:i,userInfoKey:s}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=Mx(e,Ix.adapter);for(const o in this.keys){const e=this.keys[o];if(t&&Ox.includes(o))continue;const r=this._storage.getItem(e);Ex(r)||Px(r)||(n.setItem(e,r),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const o={version:n||"localCachev1",content:t},r=JSON.stringify(o);try{this._storage.setItem(e,r)}catch(i){throw i}}getStore(e,t){try{if(!this._storage)return}catch(o){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const Rx={},Dx={};function Bx(e){return Rx[e]}class Nx{constructor(e,t){this.data=t||null,this.name=e}}class Fx extends Nx{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const jx=new class{constructor(){this._listeners={}}on(e,t){return n=e,o=t,(r=this._listeners)[n]=r[n]||[],r[n].push(o),this;var n,o,r}off(e,t){return function(e,t,n){if(n&&n[e]){const o=n[e].indexOf(t);-1!==o&&n[e].splice(o,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Fx)return console.error(e.error),this;const n="string"==typeof e?new Nx(e,t||{}):e,o=n.name;if(this._listens(o)){n.target=this;const e=this._listeners[o]?[...this._listeners[o]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function qx(e,t){jx.on(e,t)}function Ux(e,t={}){jx.fire(e,t)}function Vx(e,t){jx.off(e,t)}const zx="loginStateChanged",Hx="loginStateExpire",Wx="loginTypeChanged",Yx="anonymousConverted",Xx="refreshAccessToken";var Kx;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Kx||(Kx={}));const Jx=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Gx={"X-SDK-Version":"1.3.5"};function Qx(e,t,n){const o=e[t];e[t]=function(t){const r={},i={};n.forEach((n=>{const{data:o,headers:s}=n.call(e,t);Object.assign(r,o),Object.assign(i,s)}));const s=t.data;return s&&(()=>{var e;if(e=s,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...s,...r};else for(const t in r)s.append(t,r[t])})(),t.headers={...t.headers||{},...i},o.call(e,t)}}function Zx(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Gx,"x-seqid":e}}}class eT{constructor(e={}){var t;this.config=e,this._reqClass=new Ix.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Bx(this.config.env),this._localCache=(t=this.config.env,Dx[t]),Qx(this._reqClass,"post",[Zx]),Qx(this._reqClass,"upload",[Zx]),Qx(this._reqClass,"download",[Zx])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:o,anonymousUuidKey:r}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let i=this._cache.getStore(n);if(!i)throw new ox({message:"未登录CloudBase"});const s={refresh_token:i},a=await this.request("auth.fetchAccessTokenWithRefreshToken",s);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(o)===Kx.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(r),t=this._cache.getStore(n),o=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(o.refresh_token),this._refreshAccessToken()}Ux(Hx),this._cache.removeStore(n)}throw new ox({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return Ux(Xx),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new ox({message:"refresh token不存在,登录状态异常"});let o=this._cache.getStore(e),r=this._cache.getStore(t),i=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(o,r))&&(i=!1),(!o||!r||r{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:o,province:r,country:i,city:s}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:o,province:r,country:i,city:s});this.setLocalUserInfo(a)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class iT{constructor(e){if(!e)throw new ox({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Bx(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:o}=this._cache.keys,r=this._cache.getStore(t),i=this._cache.getStore(n),s=this._cache.getStore(o);this.credential={refreshToken:r,accessToken:i,accessTokenExpire:s},this.user=new rT(e)}get isAnonymousAuth(){return this.loginType===Kx.ANONYMOUS}get isCustomAuth(){return this.loginType===Kx.CUSTOM}get isWeixinAuth(){return this.loginType===Kx.WECHAT||this.loginType===Kx.WECHAT_OPEN||this.loginType===Kx.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class sT extends oT{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,o=this._cache.getStore(t)||void 0,r=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:o});if(r.uuid&&r.refresh_token){this._setAnonymousUUID(r.uuid),this.setRefreshToken(r.refresh_token),await this._request.refreshAccessToken(),Ux(zx),Ux(Wx,{env:this.config.env,loginType:Kx.ANONYMOUS,persistence:"local"});const e=new iT(this.config.env);return await e.user.refresh(),e}throw new ox({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,o=this._cache.getStore(t),r=this._cache.getStore(n),i=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:r,ticket:e});if(i.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),Ux(Yx,{env:this.config.env}),Ux(Wx,{loginType:Kx.CUSTOM,persistence:"local"}),{credential:{refreshToken:i.refresh_token}};throw new ox({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Kx.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class aT extends oT{async signIn(e){if("string"!=typeof e)throw new ox({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),Ux(zx),Ux(Wx,{env:this.config.env,loginType:Kx.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new iT(this.config.env);throw new ox({message:"自定义登录失败"})}}class lT extends oT{async signIn(e,t){if("string"!=typeof e)throw new ox({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,o=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:r,access_token:i,access_token_expire:s}=o;if(r)return this.setRefreshToken(r),i&&s?this.setAccessToken(i,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ux(zx),Ux(Wx,{env:this.config.env,loginType:Kx.EMAIL,persistence:this.config.persistence}),new iT(this.config.env);throw o.code?new ox({code:o.code,message:`邮箱登录失败: ${o.message}`}):new ox({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class cT extends oT{async signIn(e,t){if("string"!=typeof e)throw new ox({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,o=await this._request.send("auth.signIn",{loginType:Kx.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:r,access_token_expire:i,access_token:s}=o;if(r)return this.setRefreshToken(r),s&&i?this.setAccessToken(s,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ux(zx),Ux(Wx,{env:this.config.env,loginType:Kx.USERNAME,persistence:this.config.persistence}),new iT(this.config.env);throw o.code?new ox({code:o.code,message:`用户名密码登录失败: ${o.message}`}):new ox({message:"用户名密码登录失败"})}}class uT{constructor(e){this.config=e,this._cache=Bx(e.env),this._request=nT(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),qx(Wx,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new sT(this.config)}customAuthProvider(){return new aT(this.config)}emailAuthProvider(){return new lT(this.config)}usernameAuthProvider(){return new cT(this.config)}async signInAnonymously(){return new sT(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new lT(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new cT(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new sT(this.config)),qx(Yx,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Kx.ANONYMOUS)throw new ox({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,o=this._cache.getStore(e);if(!o)return;const r=await this._request.send("auth.logout",{refresh_token:o});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),Ux(zx),Ux(Wx,{env:this.config.env,loginType:Kx.NULL,persistence:this.config.persistence}),r}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){qx(zx,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){qx(Hx,e.bind(this))}onAccessTokenRefreshed(e){qx(Xx,e.bind(this))}onAnonymousConverted(e){qx(Yx,e.bind(this))}onLoginTypeChanged(e){qx(Wx,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new iT(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new ox({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new aT(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:o}=e.data;o===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const dT=function(e,t){t=t||Cx();const n=nT(this.config.env),{cloudPath:o,filePath:r,onUploadProgress:i,fileType:s="image"}=e;return n.send("storage.getUploadMetadata",{path:o}).then((e=>{const{data:{url:a,authorization:l,token:c,fileId:u,cosFileId:d},requestId:h}=e,f={key:o,signature:l,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":c};n.upload({url:a,data:f,file:r,name:o,fileType:s,onUploadProgress:i}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:h}):t(new ox({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},hT=function(e,t){t=t||Cx();const n=nT(this.config.env),{cloudPath:o}=e;return n.send("storage.getUploadMetadata",{path:o}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},fT=function({fileList:e},t){if(t=t||Cx(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let o of e)if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return nT(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},pT=function({fileList:e},t){t=t||Cx(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let r of e)"object"==typeof r?(r.hasOwnProperty("fileID")&&r.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:r.fileID,max_age:r.maxAge})):"string"==typeof r?n.push({fileid:r}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const o={file_list:n};return nT(this.config.env).send("storage.batchGetDownloadUrl",o).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},gT=async function({fileID:e},t){const n=(await pT.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const o=nT(this.config.env);let r=n.download_url;if(r=encodeURI(r),!t)return o.download({url:r});t(await o.download({url:r}))},mT=function({name:e,data:t,query:n,parse:o,search:r},i){const s=i||Cx();let a;try{a=t?JSON.stringify(t):""}catch(c){return Promise.reject(c)}if(!e)return Promise.reject(new ox({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:o,search:r,function_name:e,request_data:a};return nT(this.config.env).send("functions.invokeFunction",l).then((e=>{if(e.code)s(null,e);else{let n=e.data.response_data;if(o)s(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),s(null,{result:n,requestId:e.requestId})}catch(t){s(new ox({message:"response data must be json"}))}}return s.promise})).catch((e=>{s(e)})),s.promise},yT={timeout:15e3,persistence:"session"},vT={};class _T{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Ix.adapter||(this.requestClient=new Ix.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...yT,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new _T(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Ix.adapter.primaryStorage||yT.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Rx[t]=new $x(e),Dx[t]=new $x({...e,persistence:"local"})}(this.config),n=this.config,tT[n.env]=new eT(n),this.authObj=new uT(this.config),this.authObj}on(e,t){return qx.apply(this,[e,t])}off(e,t){return Vx.apply(this,[e,t])}callFunction(e,t){return mT.apply(this,[e,t])}deleteFile(e,t){return fT.apply(this,[e,t])}getTempFileURL(e,t){return pT.apply(this,[e,t])}downloadFile(e,t){return gT.apply(this,[e,t])}uploadFile(e,t){return dT.apply(this,[e,t])}getUploadMetadata(e,t){return hT.apply(this,[e,t])}registerExtension(e){vT[e.name]=e}async invokeExtension(e,t){const n=vT[e];if(!n)throw new ox({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const o of t){const{isMatch:e,genAdapter:t,runtime:n}=o;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(Ix.adapter=t),n&&(Ix.runtime=n)}}var bT=new _T;function wT(e,t,n){void 0===n&&(n={});var o=/\?/.test(t),r="";for(var i in n)""===r?!o&&(t+="?"):r+="&",r+=i+"="+encodeURIComponent(n[i]);return/^http(s)?:\/\//.test(t+=r)?t:""+e+t}class xT{post(e){const{url:t,data:n,headers:o}=e;return new Promise(((e,r)=>{rx.request({url:wT("https:",t),data:n,method:"POST",header:o,success(t){e(t)},fail(e){r(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:o,file:r,data:i,headers:s,fileType:a}=e,l=rx.uploadFile({url:wT("https:",o),name:"file",formData:Object.assign({},i),filePath:r,fileType:a,header:s,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(n.statusCode=parseInt(i.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const TT={setItem(e,t){rx.setStorageSync(e,t)},getItem:e=>rx.getStorageSync(e),removeItem(e){rx.removeStorageSync(e)},clear(){rx.clearStorageSync()}};var ST={genAdapter:function(){return{root:{},reqClass:xT,localStorage:TT,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};bT.useAdapters(ST);const kT=bT,CT=kT.init;kT.init=function(e){e.env=e.spaceId;const t=CT.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:o,complete:r}=nx(e);if(!(t||o||r))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),r&&r(e)}),(e=>{o&&o(e),r&&r(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var ET=kT,PT=class extends mx{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),o={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,o["x-basement-token"]=this.accessToken),o["x-serverless-sign"]=fx(n,this.config.clientSecret);const r=hx();o["x-client-info"]=encodeURIComponent(JSON.stringify(r));const{token:i}=sx();return o["x-client-token"]=i,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(o))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:o,fileType:r,onUploadProgress:i}){return new Promise(((s,a)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:o,fileType:r,success(e){e&&e.statusCode<400?s(e):a(new ox({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new ox({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:o}){if(!t)throw new ox({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let r;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:i,formData:s,name:a}=t.result;r=t.result.fileUrl;const l={url:i,formData:s,name:a,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},l,{onUploadProgress:o}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,o)=>{t.success?n({success:!0,filePath:e,fileID:r}):o(new ox({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new ox({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new ox({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(n)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new ox({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},AT={init(e){const t=new PT(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},IT=fw((function(e,t){e.exports=gw.enc.Hex}));function OT(e="",t={}){const{data:n,functionName:o,method:r,headers:i,signHeaderKeys:s=[],config:a}=t,l=Date.now(),c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),u=Object.assign({},i,{"x-from-app-id":a.spaceAppId,"x-from-env-id":a.spaceId,"x-to-env-id":a.spaceId,"x-from-instance-id":l,"x-from-function-name":o,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),[h="",f=""]=e.split("?")||[],p=function(e){const t=e.signedHeaders.join(";"),n=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),o=Sx(e.body).toString(IT),r=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${n}\n${t}\n${o}\n`,i=Sx(r).toString(IT),s=`HMAC-SHA256\n${e.timestamp}\n${i}\n`,a=kx(s,e.secretKey).toString(IT);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${a}`}({path:h,query:f,method:r,headers:u,timestamp:l,body:JSON.stringify(n),secretId:a.accessKey,secretKey:a.secretKey,signedHeaders:d.sort()});return{url:`${a.endpoint}${e}`,headers:Object.assign({},u,{Authorization:p})}}function LT({url:e,data:t,method:n="POST",headers:o={}}){return new Promise(((r,i)=>{rx.request({url:e,method:n,data:t,header:o,dataType:"json",complete:(e={})=>{const t=o["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:o,trace_id:r}=e.data||{};return i(new ox({code:"SYS_ERR",message:n||o||"request:fail",requestId:r||t}))}r({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function MT(e,t){const{path:n,data:o,method:r="GET"}=e,{url:i,headers:s}=OT(n,{functionName:"",data:o,method:r,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return LT({url:i,data:o,method:r,headers:s}).then((e=>{const t=e.data||{};if(!t.success)throw new ox({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new ox({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function $T(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new ox({code:"INVALID_PARAM",message:"fileID不合法"});const o=t.substring(0,n),r=t.substring(n+1);return o!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),r}function RT(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var DT={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:n,data:o}=e,r="POST",{url:i,headers:s}=OT("/functions/invokeFunction",{functionName:n,data:o,method:r,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t});return LT({url:i,data:o,method:r,headers:s}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new ox({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:o,onUploadProgress:r}){return new Promise(((i,s)=>{const a=rx.uploadFile({url:e,filePath:t,fileType:n,formData:o,name:"file",success(e){e&&e.statusCode<400?i(e):s(new ox({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){s(new ox({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&a&&"function"==typeof a.onProgressUpdate&&a.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:o}){if("string"!==xw(t))throw new ox({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new ox({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new ox({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=await MT({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:i,upload_url:s,form_data:a}=r,l=a&&a.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:s,filePath:e,fileType:n,formData:l,onUploadProgress:o}).then((()=>({fileID:i})))}async getTempFileURL({fileList:e}){return new Promise(((t,n)=>{(!e||e.length<0)&&n(new ox({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&n(new ox({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const o=[];for(const r of e){"string"!==xw(r)&&n(new ox({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=$T.call(this,r);o.push({file_id:e,expire:600})}MT({path:"/?download_url",data:{file_list:o},method:"POST"},this.config).then((e=>{const{file_list:n=[]}=e;t({fileList:n.map((e=>({fileID:RT.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>n(e)))}))}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function BT({data:e}){let t;t=hx();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=sx();e&&(n.uniIdToken=e)}return n}const NT=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var FT=/[\\^$.*+?()[\]{}|]/g,jT=RegExp(FT.source);function qT(e,t,n){return e.replace(new RegExp((o=t)&&jT.test(o)?o.replace(FT,"\\$&"):o,"g"),n);var o}const UT=2e4,VT={code:20101,message:"Invalid client"};function zT(e){const{errSubject:t,subject:n,errCode:o,errMsg:r,code:i,message:s,cause:a}=e||{};return new ox({subject:t||n||"uni-secure-network",code:o||i||UT,message:r||s,cause:a})}let HT;function WT({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function YT({functionName:e,result:t,logPvd:n}){}function XT(e){const t=e.callFunction,n=function(n){const o=n.name;n.data=BT.call(e,{data:n.data});const r={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],i=WT(n)||false;return t.call(this,n).then((e=>(e.errCode=0,!i&&YT.call(this,{functionName:o,result:e,logPvd:r}),Promise.resolve(e))),(e=>(!i&&YT.call(this,{functionName:o,result:e,logPvd:r}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let o=0;on.provider===e&&n.spaceId===t));return o&&o.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const l=a.accessControl.function||{},c=Object.keys(l);if(0===c.length)return!0;const u=function(e,t){let n,o,r;for(let i=0;ie.trim())).indexOf(t)>-1&&(o=s):r=s:n=s}return n||o||r}(c,n);if(!u)return!1;if((l[u]||[]).find(((e={})=>e.appId===o&&(e.platform||"").toLowerCase()===s.toLowerCase())))return!0;throw console.error(`此应用[appId: ${o}, platform: ${s}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),zT(VT)}({provider:o,spaceId:r,functionName:i})?new HT({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):s(t),Object.defineProperty(a,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}HT=class{constructor(){throw zT({message:"Platform web is not supported by secure network"})}};const KT=Symbol("CLIENT_DB_INTERNAL");function JT(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=KT,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,o){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,o)}})}function GT(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const o=e[t].indexOf(n);-1!==o&&e[t].splice(o,1)}}}const QT=["db.Geo","db.command","command.aggregate"];function ZT(e,t){return QT.indexOf(`${e}.${t}`)>-1}function eS(e){switch(xw(e=ix(e))){case"array":return e.map((e=>eS(e)));case"object":return e._internalType===KT||Object.keys(e).forEach((t=>{e[t]=eS(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function tS(e){return e&&e.content&&e.content.$method}class nS{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:eS(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=tS(e),n=tS(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===tS(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=tS(e),n=tS(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return oS({$method:e,$param:eS(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),o=this.getCommand();return o.$db.push({$method:e,$param:eS(t)}),this._database._callCloudFunction({action:n,command:o})}}function oS(e,t,n){return JT(new nS(e,t,n),{get(e,t){let o="db";return e&&e.content&&(o=e.content.$method),ZT(o,t)?oS({$method:t},e,n):function(){return oS({$method:t,$param:eS(Array.from(arguments))},e,n)}}})}function rS({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function iS(e,t={}){return JT(new e(t),{get:(e,t)=>ZT("db",t)?oS({$method:t},null,e):function(){return oS({$method:t,$param:eS(Array.from(arguments))},null,e)}})}class sS extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=$w("_globalUniCloudDatabaseCallback")),t||(this.auth=GT(this._authCallBacks)),this._isJQL=t,Object.assign(this,GT(this._dbCallBacks)),this.env=JT({},{get:(e,t)=>({$env:t})}),this.Geo=JT({},{get:(e,t)=>rS({path:["Geo"],method:t})}),this.serverDate=rS({path:[],method:"serverDate"}),this.RegExp=rS({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:o}){function r(e,t){if(n&&o)for(let n=0;nFw(jw(s,"complete"),e))).then((()=>(r(null,e),Qw(Vw,{type:Ww,content:e}),Promise.reject(e))))}const l=Fw(jw(s,"invoke")),c=this._uniClient;return l.then((()=>c.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:o,tokenExpired:l,systemInfo:c=[]}=e.result;if(c)for(let r=0;r(console.warn(n),o)})}}return d=e,Fw(jw(s,"success"),d).then((()=>Fw(jw(s,"complete"),d))).then((()=>{r(d,null);const e=i._parseResult(d);return Qw(Vw,{type:Ww,content:e}),Promise.resolve(e)}));var d}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),a(new ox({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const aS="token无效,跳转登录页面",lS="token过期,跳转登录页面",cS={TOKEN_INVALID_TOKEN_EXPIRED:lS,TOKEN_INVALID_INVALID_CLIENTID:aS,TOKEN_INVALID:aS,TOKEN_INVALID_WRONG_TOKEN:aS,TOKEN_INVALID_ANONYMOUS_USER:aS},uS={"uni-id-token-expired":lS,"uni-id-check-token-failed":aS,"uni-id-token-not-exist":aS,"uni-id-check-device-feature-failed":aS};function dS(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function hS(e=[],t=""){const n=[],o=[];return e.forEach((e=>{!0===e.needLogin?n.push(dS(t,e.path)):!1===e.needLogin&&o.push(dS(t,e.path))})),{needLoginPage:n,notNeedLoginPage:o}}function fS(e){return e.split("?")[0].replace(/^\//,"")}function pS(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=wg();return e[e.length-1]}())}function gS(){return fS(pS())}function mS(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,o=fS(e);return n.some((e=>e.pagePath===o))}const yS=!!hw.uniIdRouter,{loginPage:vS,routerNeedLogin:_S,resToLogin:bS,needLoginPage:wS,notNeedLoginPage:xS,loginPageInTabBar:TS}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:o={}}=hw){const{loginPage:r,needLogin:i=[],resToLogin:s=!0}=n,{needLoginPage:a,notNeedLoginPage:l}=hS(e),{needLoginPage:c,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:o,pages:r=[]}=e,{needLoginPage:i,notNeedLoginPage:s}=hS(r,o);t.push(...i),n.push(...s)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:r,routerNeedLogin:i,resToLogin:s,needLoginPage:[...a,...c],notNeedLoginPage:[...l,...u],loginPageInTabBar:mS(r,o)}}();if(wS.indexOf(vS)>-1)throw new Error(`Login page [${vS}] should not be "needLogin", please check your pages.json`);function SS(e){const t=gS();if("/"===e.charAt(0))return e;const[n,o]=e.split("?"),r=n.replace(/^\//,"").split("/"),i=t.split("/");i.pop();for(let s=0;s-1?o+`&uniIdRedirectUrl=${encodeURIComponent(r)}`:o+`?uniIdRedirectUrl=${encodeURIComponent(r)}`:o);var o,r;TS?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const i={navigateTo:_y,redirectTo:by,switchTab:Ty,reLaunch:wy};setTimeout((()=>{i[e]({url:n})}),0)}function ES({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=sx();let n;if(e){if(t-1)&&(wS.indexOf(t)>-1||_S.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,Kw(zw).length>0)return setTimeout((()=>{Qw(zw,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function PS(){!function(){const e=pS(),{abortLoginPageJump:t,autoToLoginPage:n}=ES({url:e});t||n&&CS({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:n}=e;let o=!1;switch(t){case"cloudobject":o=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in uS}(n);break;case"clientdb":o=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in cS}(n)}o&&function(e={}){const t=Kw(zw);tx().then((()=>{const n=pS();if(n&&kS({redirect:n}))return t.length>0?Qw(zw,Object.assign({uniIdRedirectUrl:n},e)):void(vS&&CS({api:"navigateTo",redirect:n}))}))}(n)}))}function IS(e){var t;(t=e).onResponse=function(e){Jw(Vw,e)},t.offResponse=function(e){Gw(Vw,e)},function(e){e.onNeedLogin=function(e){Jw(zw,e)},e.offNeedLogin=function(e){Gw(zw,e)},yS&&($w("_globalUniCloudStatus").needLoginInit||($w("_globalUniCloudStatus").needLoginInit=!0,tx().then((()=>{PS.call(e)})),bS&&AS.call(e)))}(e),function(e){e.onRefreshToken=function(e){Jw(Hw,e)},e.offRefreshToken=function(e){Gw(Hw,e)}}(e)}let OS;const LS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",MS=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function $S(){const e=sx().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((o=t[1],decodeURIComponent(OS(o).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}var o;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}OS="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!MS.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,o,r="",i=0;i>16&255):64===o?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;var RS=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(fw((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function r(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function i(e,t,{onChooseFile:o,onUploadProgress:r}){return t.then((e=>{if(o){const t=o(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,o=5,r){(t=Object.assign({},t)).errMsg=n;const i=t.tempFiles,s=i.length;let a=0;return new Promise((n=>{for(;a=s)return void(!i.find((e=>!e.url&&!e.errMsg))&&n(t));const c=i[o];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress(e){e.index=o,e.tempFile=c,e.tempFilePath=c.path,r&&r(e)}}).then((e=>{c.url=e.fileID,o{c.errMsg=e.errMsg||e.message,o{Vm({count:t,sizeType:n,sourceType:i,extension:s,success(t){e(r(t,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",o)})}})}))}(t),t):"video"===t.type?i(e,function(e){const{camera:t,compressed:n,maxDuration:i,sourceType:s=["album","camera"],extension:a}=e;return new Promise(((e,l)=>{ly({camera:t,compressed:n,maxDuration:i,sourceType:s,extension:a,success(t){const{tempFilePath:n,duration:o,size:i,height:s,width:a}=t;e(r({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:a,height:s,duration:o,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",o)})}})}))}(t),t):i(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,i)=>{let s=qm;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(s=wx.chooseMessageFile),"function"!=typeof s)return i({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:n,success(t){e(r(t))},fail(e){i({errMsg:e.errMsg.replace("chooseFile:fail",o)})}})}))}(t),t)}}})));function DS(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let n=!1;const o=[];for(let r=2;r{this.mixinDatacomLoading=!1;const{data:o,count:r}=n.result;this.getcount&&(this.mixinDatacomPage.count=r),this.mixinDatacomHasMore=o.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,n&&n(e)})))},mixinDatacomGet(t={}){let n;t=t||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const o=t.action||this.action;o&&(n=n.action(o));const r=t.collection||this.collection;n=Array.isArray(r)?n.collection(...r):n.collection(r);const i=t.where||this.where;i&&Object.keys(i).length&&(n=n.where(i));const s=t.field||this.field;s&&(n=n.field(s));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const l=t.groupby||this.groupby;l&&(n=n.groupBy(l));const c=t.groupField||this.groupField;c&&(n=n.groupField(c)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const d=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,f=void 0!==t.getcount?t.getcount:this.getcount,p=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:f},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return p&&(m.getTree=y),g&&(m.getTreePath=y),n=n.skip(h*(d-1)).limit(h).get(m),n}}}}function BS(e){return $w("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function NS({openid:e,callLoginByWeixin:t=!1}={}){throw BS(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `web`")}async function FS(e){const t=BS(this);return t.initPromise||(t.initPromise=NS.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function jS(e){const t={getSystemInfo:Am,getPushClientId:fh};return function(n){return new Promise(((o,r)=>{t[e]({...n,success(e){o(e)},fail(e){r(e)}})}))}}class qS extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const o=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(o,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let o=0;o{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:o,message:r}=t;this._payloadQueue.push({action:n,messageId:o,message:r}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:o}=e;"end"===t?this._end({messageId:n,message:o}):"message"===t&&this._appendMessage({messageId:n,message:o})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){this._uniPushMessageCallback}_destroy(){this._uniPushMessageCallback}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const US={tcb:ET,tencent:ET,aliyun:yx,private:AT,alipay:DT};let VS=new class{init(e){let t={};const n=US[e.provider];if(!n)throw new Error("未提供正确的provider参数");var o;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new Pw({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),XT(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(o=t).database=function(e){if(e&&Object.keys(e).length>0)return o.init(e).database();if(this._database)return this._database;const t=iS(sS,{uniClient:o});return this._database=t,t},o.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return o.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=iS(sS,{uniClient:o,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=$S,e.chooseAndUploadFile=RS.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return DS(e)}}),e.SSEChannel=qS,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return FS.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.importObject=function(t){return function(n,o={}){o=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},o);const{customUI:r,loadingOptions:i,errorOptions:s,parseSystemError:a}=o,l=!r;return new Proxy({},{get(r,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...o){const r=n?n({params:o}):{};let i,s;try{return await Fw(jw(t,"invoke"),{...r}),i=await e(...o),await Fw(jw(t,"success"),{...r,result:i}),i}catch(a){throw s=a,await Fw(jw(t,"fail"),{...r,error:s}),s}finally{await Fw(jw(t,"complete"),s?{...r,error:s}:{...r,result:i})}}}({fn:async function r(...u){let d;l&&Wy({title:i.title,mask:i.mask});const h={name:n,type:"OBJECT",data:{method:c,params:u}};"object"==typeof o.secretMethods&&function(e,t){const n=t.data.method,o=e.secretMethods||{},r=o[n]||o["*"];r&&(t.secretType=r)}(o,h);let f=!1;try{d=await t.callFunction(h)}catch(e){f=!0,d={result:new ox(e)}}const{errSubject:p,errCode:g,errMsg:m,newToken:y}=d.result||{};if(l&&Yy(),y&&y.token&&y.tokenExpired&&(ax(y),Qw(Hw,{...y})),g){let e=m;if(f&&a&&(e=(await a({objectName:n,methodName:c,params:u,errSubject:p,errCode:g,errMsg:m})).errMsg||m),l)if("toast"===s.type)zy({title:e,icon:"none"});else{if("modal"!==s.type)throw new Error(`Invalid errorOptions.type: ${s.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:o,confirmText:r}={}){return new Promise(((i,s)=>{$y({title:e,content:t,showCancel:n,cancelText:o,confirmText:r,success(e){i(e)},fail(){i({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});if(s.retry&&t)return r(...u)}}const t=new ox({subject:p,code:g,message:m,requestId:d.requestId});throw t.detail=d.result,Qw(Vw,{type:Xw,content:t}),t}return Qw(Vw,{type:Xw,content:d.result}),d.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:c,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){let o=!1;if("callFunction"===t){const e=n&&n.type||_w;o=e!==_w}const r="callFunction"===t&&!o,i=this._initPromiseHub.exec();n=n||{};const{success:s,fail:a,complete:l}=nx(n),c=i.then((()=>o?Promise.resolve():Fw(jw(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>o?Promise.resolve(e):Fw(jw(t,"success"),e).then((()=>Fw(jw(t,"complete"),e))).then((()=>(r&&Qw(Vw,{type:Yw,content:e}),Promise.resolve(e))))),(e=>o?Promise.reject(e):Fw(jw(t,"fail"),e).then((()=>Fw(jw(t,"complete"),e))).then((()=>(Qw(Vw,{type:Yw,content:e}),Promise.reject(e))))));if(!(s||a||l))return c;c.then((e=>{s&&s(e),l&&l(e),r&&Qw(Vw,{type:Yw,content:e})}),(e=>{a&&a(e),l&&l(e),r&&Qw(Vw,{type:Yw,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=Ow;let t={};if(e&&1===e.length)t=e[0],VS=VS.init(t),VS._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{VS[e]=function(){return console.error(n),Promise.reject(new ox({code:"SYS_ERR",message:n}))}}))}Object.assign(VS,{get mixinDatacom(){return DS(VS)}}),IS(VS),VS.addInterceptor=Bw,VS.removeInterceptor=Nw,VS.interceptObject=qw})();var zS=VS;const HS="chooseAndUploadFile:fail";function WS(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function YS(e,t=5,n){const o=(e=JSON.parse(JSON.stringify(e))).length;let r=0,i=this;return new Promise((s=>{for(;r=o)return void(!e.find((e=>!e.url&&!e.errMsg))&&s(e));const l=e[t],c=i.files.findIndex((e=>e.uuid===l.uuid));l.url="",delete l.errMsg,zS.uploadFile({filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,onUploadProgress:e=>{e.index=c,n&&n(e)}}).then((e=>{l.url=e.fileID,l.index=c,t{l.errMsg=e.errMsg||e.message,l.index=c,t{if(t){const n=t(e);if(void 0!==n)return Promise.resolve(n).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function KS(e={type:"all"}){return"image"===e.type?XS(function(e){const{count:t,sizeType:n=["original","compressed"],sourceType:o,extension:r}=e;return new Promise(((e,i)=>{Vm({count:t,sizeType:n,sourceType:o,extension:r,success(t){e(WS(t,"image"))},fail(e){i({errMsg:e.errMsg.replace("chooseImage:fail",HS)})}})}))}(e),e):"video"===e.type?XS(function(e){const{count:t,camera:n,compressed:o,maxDuration:r,sourceType:i,extension:s}=e;return new Promise(((e,t)=>{ly({camera:n,compressed:o,maxDuration:r,sourceType:i,extension:s,success(t){const{tempFilePath:n,duration:o,size:r,height:i,width:s}=t;e(WS({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:r,type:t.tempFile&&t.tempFile.type||"",width:s,height:i,duration:o,fileType:"video",cloudPath:""}]},"video"))},fail(e){t({errMsg:e.errMsg.replace("chooseVideo:fail",HS)})}})}))}(e),e):XS(function(e){const{count:t,extension:n}=e;return new Promise(((e,o)=>{let r=qm;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(r=wx.chooseMessageFile),"function"!=typeof r)return o({errMsg:HS+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});r({type:"all",count:t,extension:n,success(t){e(WS(t))},fail(e){o({errMsg:e.errMsg.replace("chooseFile:fail",HS)})}})}))}(e),e)}const JS=e=>{const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},GS=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},QS=async(e,t="image")=>{const n=JS(e.name).ext.toLowerCase();let o={name:e.name,uuid:e.uuid,extname:n||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(r=e.path,new Promise(((e,t)=>{Bm({src:r,success(t){e(t)},fail(e){t(e)}})})));delete o.video,o.image.width=t.width,o.image.height=t.height,o.image.location=t.path}else delete o.image;var r;return o},ZS=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const ek={name:"uniFilePicker",components:{uploadImage:ZS({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let n={};"auto"===t?"auto"!==e?(n.height=this.value2px(e),n["padding-top"]=0):n.height=0:(n.height=this.value2px(t),n["padding-top"]=0),n.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let o="";for(let r in n)o+=`${r}:${n[r]};`;return o},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let n=e&&e.width||1;n=this.value2px(n);let o=e&&e.radius||3;o=this.value2px(o),t={"border-width":n,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":o}}let n="";for(let o in t)n+=`${o}:${t[o]};`;return n}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let n=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{n.push(e.url)})),sy({urls:n,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(e,t,n,o,r,i){const s=_f,a=Hp,l=Sp;return Jr(),ti(a,{class:"uni-file-picker__container"},{default:Hn((()=>[(Jr(!0),ei(zr,null,Zo(n.filesList,((e,t)=>(Jr(),ti(a,{class:"file-picker__box",key:t,style:ce(i.boxStyle)},{default:Hn((()=>[li(a,{class:"file-picker__box-content",style:ce(i.borderStyle)},{default:Hn((()=>[li(s,{class:"file-image",src:e.url,mode:"aspectFill",onClick:Vs((n=>i.prviewImage(e,t)),["stop"])},null,8,["src","onClick"]),n.delIcon&&!n.readonly?(Jr(),ti(a,{key:0,class:"icon-del-box",onClick:Vs((e=>i.delFile(t)),["stop"])},{default:Hn((()=>[li(a,{class:"icon-del"}),li(a,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):di("",!0),e.progress&&100!==e.progress||0===e.progress?(Jr(),ti(a,{key:1,class:"file-picker__progress"},{default:Hn((()=>[li(l,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):di("",!0),e.errMsg?(Jr(),ti(a,{key:2,class:"file-picker__mask",onClick:Vs((n=>i.uploadFiles(e,t)),["stop"])},{default:Hn((()=>[ui(" 点击重试 ")])),_:2},1032,["onClick"])):di("",!0)])),_:2},1032,["style"])])),_:2},1032,["style"])))),128)),n.filesList.length[li(a,{class:"file-picker__box-content is-add",style:ce(i.borderStyle),onClick:i.choose},{default:Hn((()=>[er(e.$slots,"default",{},(()=>[li(a,{class:"icon-add"}),li(a,{class:"icon-add rotate"})]),!0)])),_:3},8,["style","onClick"])])),_:3},8,["style"])):di("",!0)])),_:3})}],["__scopeId","data-v-86b162f5"]]),uploadFile:ZS({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,n={};if(t){let t=e&&e.width||1;t=this.value2px(t);let o=e&&e.radius||5;o=this.value2px(o),n={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":o}}else n.border="none";let o="";for(let r in n)o+=`${r}:${n[r]};`;return o},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let n=t&&t.width||1,o=t&&t.style||0;"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-width"]=n,"number"==typeof o?o+="px":o=o.indexOf("px")?o:o+"px",e["border-top-style"]=o}let n="";for(let o in e)n+=`${o}:${e[o]};`;return n}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(e,t,n,o,r,i){const s=Hp,a=Sp;return Jr(),ti(s,{class:"uni-file-picker__files"},{default:Hn((()=>[n.readonly?di("",!0):(Jr(),ti(s,{key:0,class:"files-button",onClick:i.choose},{default:Hn((()=>[er(e.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"])),i.list.length>0?(Jr(),ti(s,{key:1,class:"uni-file-picker__lists is-text-box",style:ce(i.borderStyle)},{default:Hn((()=>[(Jr(!0),ei(zr,null,Zo(i.list,((e,t)=>(Jr(),ti(s,{class:ue(["uni-file-picker__lists-box",{"files-border":0!==t&&i.styles.dividline}]),key:t,style:ce(0!==t&&i.styles.dividline&&i.borderLineStyle)},{default:Hn((()=>[li(s,{class:"uni-file-picker__item"},{default:Hn((()=>[li(s,{class:"files__name"},{default:Hn((()=>[ui(J(e.name),1)])),_:2},1024),n.delIcon&&!n.readonly?(Jr(),ti(s,{key:0,class:"icon-del-box icon-files",onClick:e=>i.delFile(t)},{default:Hn((()=>[li(s,{class:"icon-del icon-files"}),li(s,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):di("",!0)])),_:2},1024),e.progress&&100!==e.progress||0===e.progress?(Jr(),ti(s,{key:0,class:"file-picker__progress"},{default:Hn((()=>[li(a,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):di("",!0),"error"===e.status?(Jr(),ti(s,{key:1,class:"file-picker__mask",onClick:Vs((n=>i.uploadFiles(e,t)),["stop"])},{default:Hn((()=>[ui(" 点击重试 ")])),_:2},1032,["onClick"])):di("",!0)])),_:2},1032,["class","style"])))),128))])),_:1},8,["style"])):di("",!0)])),_:3})}],["__scopeId","data-v-5d376bd5"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},value:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""}},data:()=>({files:[],localValue:[]}),watch:{value:{handler(e,t){this.setValue(e,t)},immediate:!0},modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){zS.config&&zS.config.provider||(this.noSpace=!0,zS.chooseAndUploadFile=KS),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,n)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const n=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await n(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(o)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?zy({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=GS(this.fileExtname);zS.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{console.log("选择失败",e)}))},async chooseFileCallback(e){const t=GS(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:n,files:o}=((e,t)=>{let n=[],o=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const r=JS(e.name).ext.toLowerCase();-1!==t.indexOf(r)&&(o.push(e),n.push(e.path))})),o.length!==e.tempFiles.length&&zy({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-o.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:n,files:o}):{filePaths:n,files:o}})(e,t);t&&t.length>0||(n=e.tempFilePaths,o=e.tempFiles);let r=[];for(let i=0;i{this.provider&&(e.provider=this.provider);const n=e.name.split("."),o=n.pop(),r=n.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");e.cloudPath=r+"_"+Date.now()+"_"+t+"."+o}))},uploadFiles(e){return e=[].concat(e),YS.call(this,e,5,(e=>{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{console.log(e)}))},async setSuccessAndError(e,t){let n=[],o=[],r=[],i=[];for(let s=0;se.uuid===t.uuid)):t.index;if(-1===a||!this.files)break;if("request:fail"===t.errMsg)this.files[a].url=t.path,this.files[a].status="error",this.files[a].errMsg=t.errMsg,o.push(this.files[a]),i.push(this.files[a].url);else{this.files[a].errMsg="",this.files[a].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[a].url=await this.getTempFileURL(t.url):this.files[a].url=t.url,this.files[a].status="success",this.files[a].progress+=1,n.push(this.files[a]),r.push(this.files[a].fileID)}}n.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(n),tempFilePaths:r})),o.length>0&&this.$emit("fail",{tempFiles:this.backObject(o),tempFilePaths:i})},setProgress(e,t,n){this.files.length;const o=Math.round(100*e.loaded/e.total);let r=t;n||(r=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==r&&this.files[r]&&(this.files[r].progress=o-1,this.$emit("progress",{index:r,progress:parseInt(o),tempFile:this.files[r]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await zS.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};const tk=ZS(ek,[["render",function(e,t,n,o,r,i){const s=jp,a=Hp,l=Jn("upload-image"),c=$u,u=Jn("upload-file");return Jr(),ti(a,{class:"uni-file-picker"},{default:Hn((()=>[n.title?(Jr(),ti(a,{key:0,class:"uni-file-picker__header"},{default:Hn((()=>[li(s,{class:"file-title"},{default:Hn((()=>[ui(J(n.title),1)])),_:1}),li(s,{class:"file-count"},{default:Hn((()=>[ui(J(i.filesList.length)+"/"+J(i.limitLength),1)])),_:1})])),_:1})):di("",!0),"image"===n.fileMediatype&&"grid"===i.showType?(Jr(),ti(l,{key:1,readonly:n.readonly,"image-styles":n.imageStyles,"files-list":i.filesList,limit:i.limitLength,disablePreview:n.disablePreview,delIcon:n.delIcon,onUploadFiles:i.uploadFiles,onChoose:i.choose,onDelFile:i.delFile},{default:Hn((()=>[er(e.$slots,"default",{},(()=>[li(a,{class:"is-add"},{default:Hn((()=>[li(a,{class:"icon-add"}),li(a,{class:"icon-add rotate"})])),_:1})]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):di("",!0),"image"!==n.fileMediatype||"grid"!==i.showType?(Jr(),ti(u,{key:2,readonly:n.readonly,"list-styles":n.listStyles,"files-list":i.filesList,showType:i.showType,delIcon:n.delIcon,onUploadFiles:i.uploadFiles,onChoose:i.choose,onDelFile:i.delFile},{default:Hn((()=>[er(e.$slots,"default",{},(()=>[li(c,{type:"primary",size:"mini"},{default:Hn((()=>[ui("选择文件")])),_:1})]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):di("",!0)])),_:3})}],["__scopeId","data-v-5e9fcb2e"]]);function nk(e){return pb({url:"/CxcQxj/cxcQxj/add",method:"post",data:e})}function ok(e){return pb({url:"/CxcQxj/cxcQxj/queryZwmcByUsername",method:"get",data:{username:e}})}const rk={__name:"index",props:{dataId:{type:String,default:""}},setup(e){const t=e,n=ln([]),o={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}},r=ln({}),i=()=>{var e;(e={id:t.dataId},pb({url:"/CxcQxj/cxcQxj/queryById",method:"get",data:e})).then((e=>{e.success&&(r.value=e.result.records[0],n.value=r.value.path.split(",").map((e=>{const t=e.split("/").pop(),n=t.split(".").pop();return{name:t,extname:n,url:tw(e)}})))}))},s=ln([]),a=e=>{Mb({processInstanceId:e}).then((e=>{e.success&&(s.value=e.result.records)}))};return zo((()=>{i(),Lb({flowCode:"dev_cxc_qxj",dataId:t.dataId}).then((e=>{e.success&&a(e.result.processInstanceId)}))})),(e,t)=>{const i=Hp,a=jp,l=rw(Qn("uni-file-picker"),tk);return Jr(),ei(zr,null,[li(i,{class:"f-col aic"},{default:Hn((()=>[li(i,{class:"info_box"},{default:Hn((()=>[li(i,{class:"title"},{default:Hn((()=>[ui(" 申请信息 ")])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 请假职工: ")])),_:1}),li(a,null,{default:Hn((()=>[ui(J(r.value.username_dictText),1)])),_:1})])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 所属单位: ")])),_:1}),li(a,null,{default:Hn((()=>[ui(J(r.value.sysOrgCode_dictText),1)])),_:1})])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 联系方式: ")])),_:1}),li(a,null,{default:Hn((()=>[ui(J(r.value.phone),1)])),_:1})])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 请假类型: ")])),_:1}),li(a,null,{default:Hn((()=>[ui(J(r.value.type),1)])),_:1})])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 请假开始时间: ")])),_:1}),li(a,null,{default:Hn((()=>[ui(J(r.value.begintime),1)])),_:1})])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 请假结束时间: ")])),_:1}),li(a,null,{default:Hn((()=>[ui(J(r.value.endtime),1)])),_:1})])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 请假天数: ")])),_:1}),li(a,null,{default:Hn((()=>[ui(J(r.value.days),1)])),_:1})])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 审批人: ")])),_:1}),li(a,null,{default:Hn((()=>[ui(J(r.value.examineleader_dictText),1)])),_:1})])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 请假地点: ")])),_:1}),li(a,null,{default:Hn((()=>[ui(J(r.value.address),1)])),_:1})])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 请假原因: ")])),_:1}),li(a,null,{default:Hn((()=>[ui(J(r.value.reason),1)])),_:1})])),_:1}),li(i,{class:"info f-row aic jcb"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(" 附件: ")])),_:1}),li(l,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),"image-styles":o},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),li(i,{class:"f-col aic"},{default:Hn((()=>[li(i,{class:"progress"},{default:Hn((()=>[li(i,{class:"title"},{default:Hn((()=>[ui(" 审批流程 ")])),_:1}),li(i,{class:"progress_box"},{default:Hn((()=>[(Jr(!0),ei(zr,null,Zo(s.value,((e,t)=>(Jr(),ti(i,{class:"box",key:t},{default:Hn((()=>[li(i,{class:"topic f-row aic"},{default:Hn((()=>[li(i,null,{default:Hn((()=>[ui(J(e.name),1)])),_:2},1024),li(i,{class:ue(["status",{complete:"已完成"==e.deleteReason},{refuse:"已拒绝"==e.deleteReason}])},{default:Hn((()=>[ui(J(e.deleteReason),1)])),_:2},1032,["class"])])),_:2},1024),li(i,{class:"name_time"},{default:Hn((()=>[ui(J(e.assigneeName)+" | "+J(e.endTime),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})],64)}}},ik=ZS(rk,[["__scopeId","data-v-4dc4d50b"]]),sk=ZS({__name:"processCom",props:{info:{type:Array,default:()=>[]}},setup:e=>(t,n)=>{const o=Hp,r=Ip,i=jp;return Jr(),ti(o,{class:"f-col aic"},{default:Hn((()=>[li(o,{class:"info_box"},{default:Hn((()=>[li(o,{class:"title"},{default:Hn((()=>[ui(" 申请信息 ")])),_:1}),(Jr(!0),ei(zr,null,Zo(e.info,((e,t)=>(Jr(),ti(o,{class:"",key:t},{default:Hn((()=>[li(o,{class:"info f-row aic jcb"},{default:Hn((()=>[li(o,{class:""},{default:Hn((()=>[ui(J(e.title)+": ",1)])),_:2},1024),"事项内容"==e.title?(Jr(),ti(r,{key:0,nodes:e.data},null,8,["nodes"])):(Jr(),ti(i,{key:1},{default:Hn((()=>[ui(J(e.data),1)])),_:2},1024))])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})}},[["__scopeId","data-v-8f3f5a9f"]]),ak=ZS({__name:"supervise",props:{dataId:{type:String,default:""}},setup(e){const t=e,n=[{title:"基本信息",id:1},{title:"事项详情",id:2},{title:"添加下级",id:3},{title:"节点顺序",id:4},{title:"运行计划",id:5}],o=ln(1),r=ln([]),i=()=>{var e;(e={id:t.dataId},pb({url:"/cxcdbxt/dbSxxq/queryById",method:"get",data:e})).then((e=>{if(e.success&&(1==o.value&&s(e.result.jbxxid),2==o.value)){let t=e.result;r.value=[{title:"承办部门",data:t.zbdw},{title:"协办部门",data:t.xbdw},{title:"部门领导",data:t.fgld},{title:"办理人员",data:t.dbry},{title:"要求反馈时间",data:t.yqfksj},{title:"节点名称",data:""},{title:"预计完成时间",data:""},{title:"实际反馈时间",data:t.sjfksj},{title:"自评价",data:t.zpj},{title:"发起时间",data:t.fqsj},{title:"序号",data:""},{title:"概述",data:""},{title:"时间进度",data:""},{title:"事项内容",data:t.sxnr}]}}))},s=e=>{var t;(t={id:e},pb({url:"/cxcdbxt/dbJbxx/queryById",method:"get",data:t})).then((e=>{if(e.success){let t=e.result;r.value=[{title:"督办分类",data:t.fl},{title:"协办部门",data:t.xbbm},{title:"督办部门",data:t.cbbm},{title:"督办人员",data:t.dbry},{title:"督办部门负责人",data:t.zrr},{title:"是否涉密",data:t.sfsm},{title:"计划完成时间",data:t.jhwcsj},{title:"实际完成时间",data:t.wcsj},{title:"完成状态",data:t.wczt},{title:"备注",data:t.bz},{title:"督办事项",data:t.dbsx},{title:"时间进度",data:t.sjjd}]}}))},a=ln([]),l=e=>{console.log("000",e),Mb({processInstanceId:e}).then((e=>{console.log("0088800",e),e.success&&(a.value=e.result.records)}))};return zo((()=>{i(),Lb({flowCode:"dev_db_sxxq_001",dataId:t.dataId}).then((e=>{e.success&&l(e.result.processInstanceId)}))})),(e,t)=>{const s=Hp;return Jr(),ti(s,{class:""},{default:Hn((()=>[li(s,{class:"tab f-row aic"},{default:Hn((()=>[(Jr(),ei(zr,null,Zo(n,((e,t)=>li(s,{class:ue({active:o.value==e.id}),key:t,onClick:t=>{return n=e.id,o.value=n,void i();var n}},{default:Hn((()=>[ui(J(e.title),1)])),_:2},1032,["class","onClick"]))),64))])),_:1}),li(sk,{info:r.value},null,8,["info"]),li(s,{class:"f-col aic"},{default:Hn((()=>[li(s,{class:"progress"},{default:Hn((()=>[li(s,{class:"title"},{default:Hn((()=>[ui(" 审批流程 ")])),_:1}),li(s,{class:"progress_box"},{default:Hn((()=>[(Jr(!0),ei(zr,null,Zo(a.value,((e,t)=>(Jr(),ti(s,{class:"box",key:t},{default:Hn((()=>[li(s,{class:"topic f-row aic"},{default:Hn((()=>[li(s,{class:""},{default:Hn((()=>[ui(J(e.name),1)])),_:2},1024),li(s,{class:ue(["status",{complete:"已完成"==e.deleteReason},{refuse:"已拒绝"==e.deleteReason}])},{default:Hn((()=>[ui(J(e.deleteReason),1)])),_:2},1032,["class"])])),_:2},1024),li(s,{class:"name_time"},{default:Hn((()=>[ui(J(e.assigneeName)+" | "+J(e.endTime),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-b8ec89d4"]]),lk=function(){const e=je(!0),t=e.run((()=>ln({})));let n=[],o=[];const r=en({install(e){Z_(r),r._a=e,e.provide(eb,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}();(function(){const e=Ws(dw);return e.use(lk),e.component("leaveApplication",ik),e.component("supervise",ak),e.config.globalProperties.$toast=Yb,{app:e}})().app.use(Bg).mount("#app");export{Pb as $,er as A,ce as B,ei as C,Zo as D,fp as E,zr as F,Jn as G,rw as H,Nf as I,Qn as J,Vs as K,Sv as L,Pm as M,eh as N,uo as O,wp as P,Zi as Q,ns as R,qb as S,Cb as T,uw as U,Qy as V,Tb as W,Sb as X,Eb as Y,Ab as Z,ZS as _,Jr as a,Jb as a0,ew as a1,Xb as a2,Rp as a3,_y as a4,Bp as a5,io as a6,In as a7,sw as a8,mb as a9,Fb as aA,ok as aB,tk as aC,gy as aD,nk as aE,$b as aF,ih as aG,Ht as aH,Gy as aI,$y as aJ,Mm as aK,wy as aL,Vm as aM,Ob as aN,zS as aO,wb as aP,xb as aQ,vb as aR,om as aS,kb as aT,Db as aU,by as aV,Bb as aW,Nb as aX,yb as aa,Hb as ab,tw as ac,gv as ad,Yb as ae,Gb as af,cw as ag,_b as ah,jb as ai,bb as aj,yy as ak,Rb as al,zp as am,ai as an,Ib as ao,pb as ap,So as aq,Sr as ar,oo as as,Tr as at,Oi as au,zo as av,Dm as aw,zy as ax,$u as ay,Mp as az,hn as b,ti as c,li as d,ui as e,Im as f,Lm as g,Ty as h,Hp as i,iv as j,rv as k,Vb as l,_f as m,ue as n,lw as o,jp as p,zb as q,ln as r,Wy as s,gb as t,Ub as u,bi as v,Hn as w,di as x,J as y,ta as z};