!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){if(!n||0===n.length)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map((t=>{if(t=function(e,t){return new URL(e,t).href}(t,o),t in e)return;e[t]=!0;const n=t.endsWith(".css"),i=n?'[rel="stylesheet"]':"";if(!!o)for(let e=r.length-1;e>=0;e--){const o=r[e];if(o.href===t&&(!n||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;const s=document.createElement("link");return s.rel=n?"stylesheet":"modulepreload",n||(s.as="script",s.crossOrigin=""),s.href=t,document.head.appendChild(s),n?new Promise(((e,n)=>{s.addEventListener("load",e),s.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0}))).then((()=>t()))};function n(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r!!n[e.toLowerCase()]:e=>!!n[e]}function o(e){if(C(e)){const t={};for(let n=0;n{if(e){const n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function l(e){let t="";if(L(e))t=e;else if(C(e))for(let n=0;nd(e,t)))}const p=e=>L(e)?e:null==e?"":C(e)||M(e)&&(e.toString===B||!$(e.toString))?JSON.stringify(e,h,2):String(e),h=(e,t)=>t&&t.__v_isRef?h(e,t.value):E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:O(t)?{[`Set(${t.size})`]:[...t.values()]}:!M(t)||C(t)||N(t)?t:String(t),g={},m=[],v=()=>{},y=()=>!1,b=/^on[^a-z]/,_=e=>b.test(e),w=e=>e.startsWith("onUpdate:"),x=Object.assign,S=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},T=Object.prototype.hasOwnProperty,k=(e,t)=>T.call(e,t),C=Array.isArray,E=e=>"[object Map]"===R(e),O=e=>"[object Set]"===R(e),I=e=>"[object Date]"===R(e),$=e=>"function"==typeof e,L=e=>"string"==typeof e,P=e=>"symbol"==typeof e,M=e=>null!==e&&"object"==typeof e,A=e=>M(e)&&$(e.then)&&$(e.catch),B=Object.prototype.toString,R=e=>B.call(e),N=e=>"[object Object]"===R(e),F=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,j=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},q=/-(\w)/g,V=D((e=>e.replace(q,((e,t)=>t?t.toUpperCase():"")))),H=/\B([A-Z])/g,U=D((e=>e.replace(H,"-$1").toLowerCase())),z=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),W=D((e=>e?`on${z(e)}`:"")),Y=(e,t)=>!Object.is(e,t),X=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},K=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let J;const 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));const Q=["%","%"],ee=/^([a-z-]+:)?\/\//i,te=/^data:.*,.*/;function ne(e){return e&&(e.appContext?e.proxy:e)}function oe(e){if(!e)return;let t=e.type.name;for(;t&&(n=U(t),-1!==Z.indexOf("uni-"+n.replace("v-uni-","")));)t=(e=e.parent).type.name;var n;return e.proxy}function re(e){return 1===e.nodeType}function ie(e){return 0===e.indexOf("/")}function se(e){return ie(e)?e:"/"+e}function ae(e){return ie(e)?e.slice(1):e}function le(e,t){for(const n in t)e.style[n]=t[n]}function ce(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}function ue(e,t){e=e||{},L(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?$(e.success)&&e.success(t):$(e.fail)&&e.fail(t),$(e.complete)&&e.complete(t)}function de(e){return V(e.substring(5))}const fe=ce((()=>{const e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(e,n){if(e.startsWith("data-")&&this.tagName.startsWith("UNI-")){(this.__uniDataset||(this.__uniDataset={}))[de(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[de(e)],n.call(this,e)}}));function pe(e){return x({},e.dataset,e.__uniDataset)}const he=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function ge(e){return{passive:e}}function me(e){const{id:t,offsetTop:n,offsetLeft:o}=e;return{id:t,dataset:pe(e),offsetTop:n,offsetLeft:o}}function ve(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function ye(e={}){const t={};return Object.keys(e).forEach((n=>{try{t[n]=ve(e[n])}catch(o){t[n]=e[n]}})),t}const be=/\+/g;function _e(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 xe{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($(e._component.onError))return t(e)})),Oe=function(){};Oe.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{let s=e[i];r[i]=(()=>{if(N(s))return Le(s,t,n);if(C(s))return s.map((e=>N(e)?Le(e,t,n):e));if(L(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 $e?$e[e]:e}return n}var e;return s})()})),r):e}let Pe;class Me{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pe,!e&&Pe&&(this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Pe;try{return Pe=this,e()}finally{Pe=t}}}on(){Pe=this}off(){Pe=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},Ne=e=>(e.w&qe)>0,Fe=e=>(e.n&qe)>0,je=new WeakMap;let De=0,qe=1;let Ve;const He=Symbol(""),Ue=Symbol("");class ze{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=Pe){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Ve,t=Ye;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Ve,Ve=this,Ye=!0,qe=1<<++De,De<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===n||n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":C(e)?F(n)&&a.push(s.get("length")):(a.push(s.get(He)),E(e)&&a.push(s.get(Ue)));break;case"delete":C(e)||(a.push(s.get(He)),E(e)&&a.push(s.get(Ue)));break;case"set":E(e)&&a.push(s.get(He))}if(1===a.length)a[0]&&et(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);et(Re(e))}}function et(e,t){const n=C(e)?e:[...e];for(const o of n)o.computed&&tt(o);for(const o of n)o.computed||tt(o)}function tt(e,t){(e!==Ve||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const nt=n("__proto__,__v_isRef,__isVue"),ot=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(P)),rt=ut(),it=ut(!1,!0),st=ut(!0),at=lt();function lt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Xt(this);for(let t=0,r=this.length;t{e[t]=function(...e){Ge();const n=Xt(this)[t].apply(this,e);return Ke(),n}})),e}function ct(e){const t=Xt(this);return Je(t,0,e),t.hasOwnProperty(e)}function ut(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?jt:Ft:t?Nt:Rt).get(n))return n;const i=C(n);if(!e){if(i&&k(at,o))return Reflect.get(at,o,r);if("hasOwnProperty"===o)return ct}const s=Reflect.get(n,o,r);return(P(o)?ot.has(o):nt(o))?s:(e||Je(n,0,o),t?s:en(s)?i&&F(o)?s:s.value:M(s)?e?Vt(s):qt(s):s)}}function dt(e=!1){return function(t,n,o,r){let i=t[n];if(zt(i)&&en(i)&&!en(o))return!1;if(!e&&(Wt(o)||zt(o)||(i=Xt(i),o=Xt(o)),!C(t)&&en(i)&&!en(o)))return i.value=o,!0;const s=C(t)&&F(n)?Number(n)!0,deleteProperty:(e,t)=>!0},ht=x({},ft,{get:it,set:dt(!0)}),gt=e=>e,mt=e=>Reflect.getPrototypeOf(e);function vt(e,t,n=!1,o=!1){const r=Xt(e=e.__v_raw),i=Xt(t);n||(t!==i&&Je(r,0,t),Je(r,0,i));const{has:s}=mt(r),a=o?gt:n?Jt:Kt;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function yt(e,t=!1){const n=this.__v_raw,o=Xt(n),r=Xt(e);return t||(e!==r&&Je(o,0,e),Je(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function bt(e,t=!1){return e=e.__v_raw,!t&&Je(Xt(e),0,He),Reflect.get(e,"size",e)}function _t(e){e=Xt(e);const t=Xt(this);return mt(t).has.call(t,e)||(t.add(e),Qe(t,"add",e,e)),this}function wt(e,t){t=Xt(t);const n=Xt(this),{has:o,get:r}=mt(n);let i=o.call(n,e);i||(e=Xt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?Y(t,s)&&Qe(n,"set",e,t):Qe(n,"add",e,t),this}function xt(e){const t=Xt(this),{has:n,get:o}=mt(t);let r=n.call(t,e);r||(e=Xt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&Qe(t,"delete",e,void 0),i}function St(){const e=Xt(this),t=0!==e.size,n=e.clear();return t&&Qe(e,"clear",void 0,void 0),n}function Tt(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Xt(i),a=t?gt:e?Jt:Kt;return!e&&Je(s,0,He),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function kt(e,t,n){return function(...o){const r=this.__v_raw,i=Xt(r),s=E(i),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...o),u=n?gt:t?Jt:Kt;return!t&&Je(i,0,l?Ue:He),{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 Ct(e){return function(...t){return"delete"!==e&&this}}function Et(){const e={get(e){return vt(this,e)},get size(){return bt(this)},has:yt,add:_t,set:wt,delete:xt,clear:St,forEach:Tt(!1,!1)},t={get(e){return vt(this,e,!1,!0)},get size(){return bt(this)},has:yt,add:_t,set:wt,delete:xt,clear:St,forEach:Tt(!1,!0)},n={get(e){return vt(this,e,!0)},get size(){return bt(this,!0)},has(e){return yt.call(this,e,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:Tt(!0,!1)},o={get(e){return vt(this,e,!0,!0)},get size(){return bt(this,!0)},has(e){return yt.call(this,e,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:Tt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=kt(r,!1,!1),n[r]=kt(r,!0,!1),t[r]=kt(r,!1,!0),o[r]=kt(r,!0,!0)})),[e,n,t,o]}const[Ot,It,$t,Lt]=Et();function Pt(e,t){const n=t?e?Lt:$t:e?It:Ot;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(k(n,o)&&o in t?n:t,o,r)}const Mt={get:Pt(!1,!1)},At={get:Pt(!1,!0)},Bt={get:Pt(!0,!1)},Rt=new WeakMap,Nt=new WeakMap,Ft=new WeakMap,jt=new WeakMap;function Dt(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=>R(e).slice(8,-1))(e))}function qt(e){return zt(e)?e:Ht(e,!1,ft,Mt,Rt)}function Vt(e){return Ht(e,!0,pt,Bt,Ft)}function Ht(e,t,n,o,r){if(!M(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Dt(e);if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function Ut(e){return zt(e)?Ut(e.__v_raw):!(!e||!e.__v_isReactive)}function zt(e){return!(!e||!e.__v_isReadonly)}function Wt(e){return!(!e||!e.__v_isShallow)}function Yt(e){return Ut(e)||zt(e)}function Xt(e){const t=e&&e.__v_raw;return t?Xt(t):e}function Gt(e){return G(e,"__v_skip",!0),e}const Kt=e=>M(e)?qt(e):e,Jt=e=>M(e)?Vt(e):e;function Zt(e){Ye&&Ve&&Ze((e=Xt(e)).dep||(e.dep=Re()))}function Qt(e,t){const n=(e=Xt(e)).dep;n&&et(n)}function en(e){return!(!e||!0!==e.__v_isRef)}function tn(e){return on(e,!1)}function nn(e){return on(e,!0)}function on(e,t){return en(e)?e:new rn(e,t)}class rn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Xt(e),this._value=t?e:Kt(e)}get value(){return Zt(this),this._value}set value(e){const t=this.__v_isShallow||Wt(e)||zt(e);e=t?e:Xt(e),Y(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Kt(e),Qt(this))}}function sn(e){return en(e)?e.value:e}const an={get:(e,t,n)=>sn(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return en(r)&&!en(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ln(e){return Ut(e)?e:new Proxy(e,an)}class cn{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=Xt(this._object),t=this._key,null===(n=je.get(e))||void 0===n?void 0:n.get(t);var e,t,n}}function un(e,t,n){const o=e[t];return en(o)?o:new cn(e,t,n)}var dn;class fn{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[dn]=!1,this._dirty=!0,this.effect=new ze(e,(()=>{this._dirty||(this._dirty=!0,Qt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Xt(this);return Zt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function pn(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){gn(i,t,n)}return r}function hn(e,t,n,o){if($(e)){const r=pn(e,t,n,o);return r&&A(r)&&r.catch((e=>{gn(e,t,n)})),r}const r=[];for(let i=0;i>>1;$n(yn[o])$n(e)-$n(t))),xn=0;xnnull==e.id?1/0:e.id,Ln=(e,t)=>{const n=$n(e)-$n(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Pn(e){vn=!1,mn=!0,yn.sort(Ln);try{for(bn=0;bnL(e)?e.trim():e))),t&&(r=n.map(K))}let a,l=o[a=W(t)]||o[a=W(V(t))];!l&&i&&(l=o[a=W(U(t))]),l&&hn(l,e,6,An(e,l,r));const c=o[a+"Once"];if(c){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,hn(c,e,6,An(e,c,r))}}function An(e,t,n){if(1!==n.length)return n;if($(t)){if(t.length<2)return n}else if(!t.find((e=>e.length>=2)))return n;const o=n[0];if(o&&k(o,"type")&&k(o,"timeStamp")&&k(o,"target")&&k(o,"currentTarget")&&k(o,"detail")){const t=e.proxy,o=t.$gcd(t,!0);o&&n.push(o)}return n}function Bn(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(!$(e)){const o=e=>{const n=Bn(e,t,!0);n&&(a=!0,x(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(C(i)?i.forEach((e=>s[e]=null)):x(s,i),M(e)&&o.set(e,s),s):(M(e)&&o.set(e,null),null)}function Rn(e,t){return!(!e||!_(t))&&(t=t.slice(2).replace(/Once$/,""),k(e,t[0].toLowerCase()+t.slice(1))||k(e,U(t))||k(e,t))}let Nn=null,Fn=null;function jn(e){const t=Nn;return Nn=e,Fn=e&&e.type.__scopeId||null,t}function Dn(e,t=Nn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&qr(-1);const r=jn(t);let i;try{i=e(...n)}finally{jn(r),o._d&&qr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function qn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:p,ctx:h,inheritAttrs:g}=e;let m,v;const y=jn(e);try{if(4&n.shapeFlag){const e=r||o;m=ti(u.call(e,e,d,i,p,f,h)),v=l}else{const e=t;0,m=ti(e.length>1?e(i,{attrs:l,slots:a,emit:c}):e(i,null)),v=t.props?l:Vn(l)}}catch(_){Nr.length=0,gn(_,e,1),m=Jr(Br)}let b=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(s&&e.some(w)&&(v=Hn(v,s)),b=Zr(b,v))}return n.dirs&&(b=Zr(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,jn(y),m}const Vn=e=>{let t;for(const n in e)("class"===n||"style"===n||_(n))&&((t||(t={}))[n]=e[n]);return t},Hn=(e,t)=>{const n={};for(const o in e)w(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Un(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;function Wn(e,t){if(li){let n=li.provides;const o=li.parent&&li.parent.provides;o===n&&(n=li.provides=Object.create(o)),n[e]=t,"app"===li.type.mpType&&li.appContext.app.provide(e,t)}else;}function Yn(e,t,n=!1){const o=li||Nn;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&$(t)?t.call(o.proxy):t}}function Xn(e,t){return Jn(e,null,t)}const Gn={};function Kn(e,t,n){return Jn(e,t,n)}function Jn(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=g){const a=Be()===(null==li?void 0:li.scope)?li:null;let l,c,u=!1,d=!1;if(en(e)?(l=()=>e.value,u=Wt(e)):Ut(e)?(l=()=>e,o=!0):C(e)?(d=!0,u=e.some((e=>Ut(e)||Wt(e))),l=()=>e.map((e=>en(e)?e.value:Ut(e)?eo(e):$(e)?pn(e,a,2):void 0))):l=$(e)?t?()=>pn(e,a,2):()=>{if(!a||!a.isUnmounted)return c&&c(),hn(e,a,3,[p])}:v,t&&o){const e=l;l=()=>eo(e())}let f,p=e=>{c=b.onStop=()=>{pn(e,a,4)}};if(pi){if(p=v,t?n&&hn(t,a,3,[l(),d?[]:void 0,p]):l(),"sync"!==r)return v;{const e=wi();f=e.__watcherHandles||(e.__watcherHandles=[])}}let h=d?new Array(e.length).fill(Gn):Gn;const m=()=>{if(b.active)if(t){const e=b.run();(o||u||(d?e.some(((e,t)=>Y(e,h[t]))):Y(e,h)))&&(c&&c(),hn(t,a,3,[e,h===Gn?void 0:d&&h[0]===Gn?[]:h,p]),h=e)}else b.run()};let y;m.allowRecurse=!!t,"sync"===r?y=m:"post"===r?y=()=>Ir(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),y=()=>Cn(m));const b=new ze(l,y);t?n?m():h=b.run():"post"===r?Ir(b.run.bind(b),a&&a.suspense):b.run();const _=()=>{b.stop(),a&&a.scope&&S(a.scope.effects,b)};return f&&f.push(_),_}function Zn(e,t,n){const o=this.proxy,r=L(e)?e.includes(".")?Qn(o,e):()=>o[e]:e.bind(o,o);let i;$(t)?i=t:(i=t.handler,n=t);const s=li;ui(this);const a=Jn(r,i.bind(o),n);return s?ui(s):di(),a}function Qn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{eo(e,t)}));else if(N(e))for(const n in e)eo(e[n],t);return e}const to=[Function,Array],no={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:to,onEnter:to,onAfterEnter:to,onEnterCancelled:to,onBeforeLeave:to,onLeave:to,onAfterLeave:to,onLeaveCancelled:to,onBeforeAppear:to,onAppear:to,onAfterAppear:to,onAppearCancelled:to},oo={name:"BaseTransition",props:no,setup(e,{slots:t}){const n=ci(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Po((()=>{e.isMounted=!0})),Bo((()=>{e.isUnmounting=!0})),e}();let r;return()=>{const i=t.default&&co(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1)for(const e of i)if(e.type!==Br){s=e;break}const a=Xt(e),{mode:l}=a;if(o.isLeaving)return so(s);const c=ao(s);if(!c)return so(s);const u=io(c,a,o,n);lo(c,u);const d=n.subTree,f=d&&ao(d);let p=!1;const{getTransitionKey:h}=c.type;if(h){const e=h();void 0===r?r=e:e!==r&&(r=e,p=!0)}if(f&&f.type!==Br&&(!Wr(c,f)||p)){const e=io(f,a,o,n);if(lo(f,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&n.update()},so(s);"in-out"===l&&c.type!==Br&&(e.delayLeave=(e,t,n)=>{ro(o,f)[String(f.key)]=f,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function ro(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 io(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:g,onAppear:m,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),_=ro(n,e),w=(e,t)=>{e&&hn(e,o,9,t)},x=(e,t)=>{const n=t[1];w(e,t),C(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=g||a}t._leaveCb&&t._leaveCb(!0);const i=_[b];i&&Wr(e,i)&&i.el._leaveCb&&i.el._leaveCb(),w(o,[t])},enter(e){let t=l,o=c,i=u;if(!n.isMounted){if(!r)return;t=m||l,o=v||c,i=y||u}let s=!1;const a=e._enterCb=t=>{s||(s=!0,w(t?i:o,[e]),S.delayedLeave&&S.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,a]):a()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();w(d,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,o(),w(n?h:p,[t]),t._leaveCb=void 0,_[r]===e&&delete _[r])};_[r]=e,f?x(f,[t,s]):s()},clone:e=>io(e,t,n,o)};return S}function so(e){if(go(e))return(e=Zr(e)).children=null,e}function ao(e){return go(e)?e.children?e.children[0]:void 0:e}function lo(e,t){6&e.shapeFlag&&e.component?lo(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 co(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function po(e){$(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 uo({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=li;if(l)return()=>ho(l,e);const t=t=>{c=null,gn(t,e,13,!o)};if(s&&e.suspense||pi)return d().then((t=>()=>ho(t,e))).catch((e=>(t(e),()=>o?Jr(o,{error:e}):null)));const a=tn(!1),u=tn(),f=tn(!!r);return r&&setTimeout((()=>{f.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&&go(e.parent.vnode)&&Cn(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>a.value&&l?ho(l,e):u.value&&o?Jr(o,{error:u.value}):n&&!f.value?Jr(n):void 0}})}function ho(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=Jr(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const go=e=>e.type.__isKeepAlive;class mo{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 vo={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=ci(),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 mo(e.max);r.pruneCacheEntry=s;let i=null;function s(t){var o;!i||!Wr(t,i)||"key"===e.matchBy&&t.key!==i.key?(To(o=t),u(o,n,a,!0)):i&&To(i)}const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=o,f=d("div");function p(t){r.forEach(((n,o)=>{const i=Co(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,X(i.ba),i.isDeactivated=e}c(e,t,n,0,a),l(i.vnode,e,t,n,i,a,o,e.slotScopeIds,r),Ir((()=>{i.isDeactivated=!1,i.a&&X(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ii(t,i.parent,e)}),a)},o.deactivate=e=>{const t=e.component;t.bda&&Eo(t.bda),c(e,f,null,1,a),Ir((()=>{t.bda&&Oo(t.bda),t.da&&X(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ii(n,t.parent,e),t.isDeactivated=!0}),a)},Kn((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&p((t=>bo(e,t))),t&&p((e=>!bo(t,e)))}),{flush:"post",deep:!0});let h=null;const g=()=>{null!=h&&r.set(h,ko(n.subTree))};return Po(g),Ao(g),Bo((()=>{r.forEach(((t,o)=>{r.delete(o),s(t);const{subTree:i,suspense:a}=n,l=ko(i);if(t.type!==l.type||"key"===e.matchBy&&t.key!==l.key);else{l.component.bda&&X(l.component.bda),To(l);const e=l.component.da;e&&Ir(e,a)}}))})),()=>{if(h=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!zr(o)||!(4&o.shapeFlag)&&!zn(o.type))return i=null,o;let s=ko(o);const a=s.type,l=Co(s,e.matchBy),{include:c,exclude:u}=e;if(c&&(!l||!bo(c,l))||u&&l&&bo(u,l))return i=s,o;const d=null==s.key?a:s.key,f=r.get(d);return s.el&&(s=Zr(s),zn(o.type)&&(o.ssContent=s)),h=d,f&&(s.el=f.el,s.component=f.component,s.transition&&lo(s,s.transition),s.shapeFlag|=512),s.shapeFlag|=256,i=s,zn(o.type)?o:s}}},yo=vo;function bo(e,t){return C(e)?e.some((e=>bo(e,t))):L(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function _o(e,t){xo(e,"a",t)}function wo(e,t){xo(e,"da",t)}function xo(e,t,n=li){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(o.__called=!1,Io(t,o,n),n){let e=n.parent;for(;e&&e.parent;)go(e.parent.vnode)&&So(o,t,n,e),e=e.parent}}function So(e,t,n,o){const r=Io(t,e,o,!0);Ro((()=>{S(o[t],r)}),n)}function To(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ko(e){return zn(e.type)?e.ssContent:e}function Co(e,t){if("name"===t){const t=e.type;return vi(fo(e)?t.__asyncResolved||{}:t)}return String(e.key)}function Eo(e){for(let t=0;te.__called=!1))}function Io(e,t,n=li,o=!1){if(n){if(r=e,Se.indexOf(r)>-1&&n.$pageInstance){if(n.type.__reserved)return;if(n!==n.$pageInstance&&(n=n.$pageInstance,function(e){return Te.indexOf(e)>-1}(e))){const o=n.proxy;hn(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;Ge(),ui(n);const r=hn(t,n,e,o);return di(),Ke(),r});return o?i.unshift(s):i.push(s),s}var r}const $o=e=>(t,n=li)=>(!pi||"sp"===e)&&Io(e,((...e)=>t(...e)),n),Lo=$o("bm"),Po=$o("m"),Mo=$o("bu"),Ao=$o("u"),Bo=$o("bum"),Ro=$o("um"),No=$o("sp"),Fo=$o("rtg"),jo=$o("rtc");function Do(e,t=li){Io("ec",e,t)}function qo(e,t){const n=Nn;if(null===n)return e;const o=mi(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;it(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!zr(e)||e.type!==Br&&!(e.type===Mr&&!Ko(e.children))))?e:null}const Jo=e=>e?fi(e)?mi(e)||e.proxy:Jo(e.parent):null,Zo=x(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=>Jo(e.parent),$root:e=>Jo(e.root),$emit:e=>e.emit,$options:e=>ir(e),$forceUpdate:e=>e.f||(e.f=()=>Cn(e.update)),$nextTick:e=>e.n||(e.n=kn.bind(e.proxy)),$watch:e=>Zn.bind(e)}),Qo=(e,t)=>e!==g&&!e.__isScriptSetup&&k(e,t),er={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let c;if("$"!==t[0]){const a=s[t];if(void 0!==a)switch(a){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Qo(o,t))return s[t]=1,o[t];if(r!==g&&k(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&k(c,t))return s[t]=3,i[t];if(n!==g&&k(n,t))return s[t]=4,n[t];tr&&(s[t]=0)}}const u=Zo[t];let d,f;return u?("$attrs"===t&&Je(e,0,t),u(e)):(d=a.__cssModules)&&(d=d[t])?d:n!==g&&k(n,t)?(s[t]=4,n[t]):(f=l.config.globalProperties,k(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Qo(r,t)?(r[t]=n,!0):o!==g&&k(o,t)?(o[t]=n,!0):!k(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return!!n[s]||e!==g&&k(e,s)||Qo(t,s)||(a=i[0])&&k(a,s)||k(o,s)||k(Zo,s)||k(r.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:k(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let tr=!0;function nr(e){const t=ir(e),n=e.proxy,o=e.ctx;tr=!1,t.beforeCreate&&or(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:h,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:_,unmounted:w,render:x,renderTracked:S,renderTriggered:T,errorCaptured:k,serverPrefetch:E,expose:O,inheritAttrs:I,components:L,directives:P,filters:A}=t;if(c&&function(e,t,n=v,o=!1){C(e)&&(e=cr(e));for(const r in e){const n=e[r];let i;i=M(n)?"default"in n?Yn(n.from||r,n.default,!0):Yn(n.from||r):Yn(n),en(i)&&o?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[r]=i}}(c,o,null,e.appContext.config.unwrapInjectedRef),s)for(const v in s){const e=s[v];$(e)&&(o[v]=e.bind(n))}if(r){const t=r.call(n,n);M(t)&&(e.data=qt(t))}if(tr=!0,i)for(const C in i){const e=i[C],t=$(e)?e.bind(n,n):$(e.get)?e.get.bind(n,n):v,r=!$(e)&&$(e.set)?e.set.bind(n):v,s=yi({get:t,set:r});Object.defineProperty(o,C,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(a)for(const v in a)rr(a[v],o,n,v);if(l){const e=$(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{Wn(t,e[t])}))}function B(e,t){C(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&or(u,e,"c"),B(Lo,d),B(Po,f),B(Mo,p),B(Ao,h),B(_o,g),B(wo,m),B(Do,k),B(jo,S),B(Fo,T),B(Bo,b),B(Ro,w),B(No,E),C(O))if(O.length){const t=e.exposed||(e.exposed={});O.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===v&&(e.render=x),null!=I&&(e.inheritAttrs=I),L&&(e.components=L),P&&(e.directives=P);const R=e.appContext.config.globalProperties.$applyOptions;R&&R(t,e,n)}function or(e,t,n){hn(C(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function rr(e,t,n,o){const r=o.includes(".")?Qn(n,o):()=>n[o];if(L(e)){const n=t[e];$(n)&&Kn(r,n)}else if($(e))Kn(r,e.bind(n));else if(M(e))if(C(e))e.forEach((e=>rr(e,t,n,o)));else{const o=$(e.handler)?e.handler.bind(n):t[e.handler];$(o)&&Kn(r,o,e)}}function ir(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=>sr(l,e,s,!0))),sr(l,t,s)):l=t,M(t)&&i.set(t,l),l}function sr(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&sr(e,i,n,!0),r&&r.forEach((t=>sr(e,t,n,!0)));for(const s in t)if(o&&"expose"===s);else{const o=ar[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const ar={data:lr,props:dr,emits:dr,methods:dr,computed:dr,beforeCreate:ur,created:ur,beforeMount:ur,mounted:ur,beforeUpdate:ur,updated:ur,beforeDestroy:ur,beforeUnmount:ur,destroyed:ur,unmounted:ur,activated:ur,deactivated:ur,errorCaptured:ur,serverPrefetch:ur,components:dr,directives:dr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=x(Object.create(null),e);for(const o in t)n[o]=ur(e[o],t[o]);return n},provide:lr,inject:function(e,t){return dr(cr(e),cr(t))}};function lr(e,t){return t?e?function(){return x($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function cr(e){if(C(e)){const t={};for(let n=0;n{l=!0;const[n,o]=gr(e,t,!0);x(s,n),o&&a.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!l)return M(e)&&o.set(e,m),m;if(C(i))for(let u=0;u-1,n[1]=o<0||t-1||k(n,"default"))&&a.push(e)}}}const c=[s,a];return M(e)&&o.set(e,c),c}function mr(e){return"$"!==e[0]}function vr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function yr(e,t){return vr(e)===vr(t)}function br(e,t){return C(t)?t.findIndex((t=>yr(t,e))):$(t)&&yr(t,e)?0:-1}const _r=e=>"_"===e[0]||"$stable"===e,wr=e=>C(e)?e.map(ti):[ti(e)],xr=(e,t,n)=>{if(t._n)return t;const o=Dn(((...e)=>wr(t(...e))),n);return o._c=!1,o},Sr=(e,t,n)=>{const o=e._ctx;for(const r in e){if(_r(r))continue;const n=e[r];if($(n))t[r]=xr(0,n,o);else if(null!=n){const e=wr(n);t[r]=()=>e}}},Tr=(e,t)=>{const n=wr(t);e.slots.default=()=>n};function kr(){return{app:null,config:{isNativeTag:y,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Cr=0;function Er(e,t){return function(n,o=null){$(n)||(n=Object.assign({},n)),null==o||M(o)||(o=null);const r=kr(),i=new Set;let s=!1;const a=r.app={_uid:Cr++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:xi,get config(){return r.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&$(e.install)?(i.add(e),e.install(a,...t)):$(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=Jr(n,o);return u.appContext=r,l&&t?t(u,i):e(u,i,c),s=!0,a._container=i,i.__vue_app__=a,a._instance=u.component,mi(u.component)||u.component.proxy}},unmount(){s&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,a)};return a}}function Or(e,t,n,o,r=!1){if(C(e))return void e.forEach(((e,i)=>Or(e,t&&(C(t)?t[i]:t),n,o,r)));if(fo(o)&&!r)return;const i=4&o.shapeFlag?mi(o.component)||o.component.proxy:o.el,s=r?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===g?a.refs={}:a.refs,d=a.setupState;if(null!=c&&c!==l&&(L(c)?(u[c]=null,k(d,c)&&(d[c]=null)):en(c)&&(c.value=null)),$(l))pn(l,a,12,[s,u]);else{const t=L(l),o=en(l);if(t||o){const a=()=>{if(e.f){const n=t?k(d,l)?d[l]:u[l]:l.value;r?C(n)&&S(n,i):C(n)?n.includes(i)||n.push(i):t?(u[l]=[i],k(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else t?(u[l]=s,k(d,l)&&(d[l]=s)):o&&(l.value=s,e.k&&(u[e.k]=s))};s?(a.id=-1,Ir(a,n)):a()}}}const Ir=function(e,t){var n;t&&t.pendingBranch?C(e)?t.effects.push(...e):t.effects.push(e):(C(n=e)?_n.push(...n):wn&&wn.includes(n,n.allowRecurse?xn+1:xn)||_n.push(n),En())};function $r(e){return function(e,t){(J||(J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:o,patchProp:r,forcePatchProp:i,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=v,insertStaticContent:h}=e,y=(e,t,n,o=null,r=null,i=null,s=!1,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Wr(e,t)&&(o=te(e),Y(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 Ar:b(e,t,n,o);break;case Br:_(e,t,n,o);break;case Rr:null==e&&w(t,n,o,s);break;case Mr:M(e,t,n,o,r,i,s,a,l);break;default:1&d?C(e,t,n,o,r,i,s,a,l):6&d?B(e,t,n,o,r,i,s,a,l):(64&d||128&d)&&c.process(e,t,n,o,r,i,s,a,l,oe)}null!=u&&r&&Or(u,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},_=(e,t,o,r)=>{null==e?n(t.el=l(t.children||""),o,r):t.el=e.el},w=(e,t,n,o)=>{[e.el,e.anchor]=h(e.children,t,n,o,e.el,e.anchor)},S=({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=f(e),n(e,o,r),e=i;n(t,o,r)},T=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),o(e),e=n;o(t)},C=(e,t,n,o,r,i,s,a,l)=>{s=s||"svg"===t.type,null==e?E(t,n,o,r,i,s,a,l):$(e,t,r,i,s,a,l)},E=(e,t,o,i,a,l,c,d)=>{let f,p;const{type:h,props:g,shapeFlag:m,transition:v,dirs:y}=e;if(f=e.el=s(e.type,l,g&&g.is,g),8&m?u(f,e.children):16&m&&I(e.children,f,null,i,a,l&&"foreignObject"!==h,c,d),y&&Vo(e,null,i,"created"),O(f,e,e.scopeId,c,i),g){for(const t in g)"value"===t||j(t)||r(f,t,null,g[t],l,e.children,i,a,ee);"value"in g&&r(f,"value",null,g.value),(p=g.onVnodeBeforeMount)&&ii(p,i,e)}Object.defineProperty(f,"__vueParentComponent",{value:i,enumerable:!1}),y&&Vo(e,null,i,"beforeMount");const b=(!a||a&&!a.pendingBranch)&&v&&!v.persisted;b&&v.beforeEnter(f),n(f,t,o),((p=g&&g.onVnodeMounted)||b||y)&&Ir((()=>{p&&ii(p,i,e),b&&v.enter(f),y&&Vo(e,null,i,"mounted")}),a)},O=(e,t,n,o,r)=>{if(n&&p(e,n),o)for(let i=0;i{for(let c=l;c{const c=t.el=e.el;let{patchFlag:d,dynamicChildren:f,dirs:p}=t;d|=16&e.patchFlag;const h=e.props||g,m=t.props||g;let v;n&&Lr(n,!1),(v=m.onVnodeBeforeUpdate)&&ii(v,n,t,e),p&&Vo(t,e,n,"beforeUpdate"),n&&Lr(n,!0);const y=s&&"foreignObject"!==t.type;if(f?L(e.dynamicChildren,f,c,n,o,y,a):l||q(e,t,c,null,n,o,y,a,!1),d>0){if(16&d)P(c,t,h,m,n,o,s);else if(2&d&&h.class!==m.class&&r(c,"class",null,m.class,s),4&d&&r(c,"style",h.style,m.style,s),8&d){const a=t.dynamicProps;for(let t=0;t{v&&ii(v,n,t,e),p&&Vo(t,e,n,"updated")}),o)},L=(e,t,n,o,r,i,s)=>{for(let a=0;a{if(n!==o){if(n!==g)for(const i in n)j(i)||i in o||r(e,i,n[i],null,l,t.children,s,a,ee);for(const c in o){if(j(c))continue;const u=o[c],d=n[c];(u!==d&&"value"!==c||i&&i(e,c))&&r(e,c,d,u,l,t.children,s,a,ee)}"value"in o&&r(e,"value",n.value,o.value)}},M=(e,t,o,r,i,s,l,c,u)=>{const d=t.el=e?e.el:a(""),f=t.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(d,o,r),n(f,o,r),I(t.children,o,f,i,s,l,c,u)):p>0&&64&p&&h&&e.dynamicChildren?(L(e.dynamicChildren,h,o,i,s,l,c),(null!=t.key||i&&t===i.subTree)&&Pr(e,t,!0)):q(e,t,o,f,i,s,l,c,u)},B=(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):R(t,n,o,r,i,s,l):N(e,t,l)},R=(e,t,n,o,r,i,s)=>{const a=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||si,i={uid:ai++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Me(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:gr(o,r),emitsOptions:Bn(o,r),emit:null,emitted:null,propsDefaults:g,inheritAttrs:o.inheritAttrs,ctx:g,data:g,props:g,attrs:g,slots:g,refs:g,setupState:g,setupContext: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};i.ctx={_:i},i.root=t?t.root:i,i.emit=Mn.bind(null,i),i.$pageInstance=t&&t.$pageInstance,e.ce&&e.ce(i);return i}(e,o,r);if(go(e)&&(a.ctx.renderer=oe),function(e,t=!1){pi=t;const{props:n,children:o}=e.vnode,r=fi(e);fr(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Xt(t),G(t,"_",n)):Sr(t,e.slots={})}else e.slots={},t&&Tr(e,t);G(e.slots,Yr,1)})(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Gt(new Proxy(e.ctx,er));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Je(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;ui(e),Ge();const r=pn(o,e,0,[e.props,n]);if(Ke(),di(),A(r)){if(r.then(di,di),t)return r.then((n=>{hi(e,n,t)})).catch((t=>{gn(t,e,0)}));e.asyncDep=r}else hi(e,r,t)}else gi(e,t)}(e,t):void 0;pi=!1}(a),a.asyncDep){if(r&&r.registerDep(a,F),!e.el){const e=a.subTree=Jr(Br);_(null,e,t,n)}}else F(a,e,t,n,r,i,s)},N=(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||Un(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?Un(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;tbn&&yn.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},F=(e,t,n,o,r,i,s)=>{const a=()=>{if(e.isMounted){let t,{next:n,bu:o,u:a,parent:l,vnode:c}=e,u=n;Lr(e,!1),n?(n.el=c.el,D(e,n,s)):n=c,o&&X(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ii(t,l,n,c),Lr(e,!0);const f=qn(e),p=e.subTree;e.subTree=f,y(p,f,d(p.el),te(p),e,r,i),n.el=f.el,null===u&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,f.el),a&&Ir(a,r),(t=n.props&&n.props.onVnodeUpdated)&&Ir((()=>ii(t,l,n,c)),r)}else{let s;const{el:a,props:l}=t,{bm:c,m:u,parent:d}=e,f=fo(t);if(Lr(e,!1),c&&X(c),!f&&(s=l&&l.onVnodeBeforeMount)&&ii(s,d,t),Lr(e,!0),a&&ie){const n=()=>{e.subTree=qn(e),ie(a,e.subTree,e,r,null)};f?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=qn(e);y(null,s,n,o,e,r,i),t.el=s.el}if(u&&Ir(u,r),!f&&(s=l&&l.onVnodeMounted)){const e=t;Ir((()=>ii(s,d,e)),r)}const{ba:p,a:h}=e;(256&t.shapeFlag||d&&fo(d.vnode)&&256&d.vnode.shapeFlag)&&(p&&Eo(p),h&&Ir(h,r),p&&Ir((()=>Oo(p)),r)),e.isMounted=!0,t=n=o=null}},l=e.effect=new ze(a,(()=>Cn(c)),e.scope),c=e.update=()=>l.run();c.id=e.uid,Lr(e,!0),c()},D=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=Xt(r),[l]=e.propsOptions;let c=!1;if(!(o||s>0)||16&s){let o;pr(e,t,r,i)&&(c=!0);for(const i in a)t&&(k(t,i)||(o=U(i))!==i&&k(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(r[i]=hr(l,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&k(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:o,slots:r}=e;let i=!0,s=g;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:(x(r,t),n||1!==e||delete r._):(i=!t.$stable,Sr(t,r)),s=t}else t&&(Tr(e,t),s={default:1});if(i)for(const a in r)_r(a)||a in s||delete r[a]})(e,t.children,n),Ge(),On(),Ke()},q=(e,t,n,o,r,i,s,a,l=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void z(c,f,n,o,r,i,s,a,l);if(256&p)return void H(c,f,n,o,r,i,s,a,l)}8&h?(16&d&&ee(c,r,i),f!==c&&u(n,f)):16&d?16&h?z(c,f,n,o,r,i,s,a,l):ee(c,r,i,!0):(8&d&&u(n,""),16&h&&I(f,n,o,r,i,s,a,l))},H=(e,t,n,o,r,i,s,a,l)=>{t=t||m;const c=(e=e||m).length,u=t.length,d=Math.min(c,u);let f;for(f=0;fu?ee(e,r,i,!0,!1,d):I(t,n,o,r,i,s,a,l,d)},z=(e,t,n,o,r,i,s,a,l)=>{let c=0;const u=t.length;let d=e.length-1,f=u-1;for(;c<=d&&c<=f;){const o=e[c],u=t[c]=l?ni(t[c]):ti(t[c]);if(!Wr(o,u))break;y(o,u,n,null,r,i,s,a,l),c++}for(;c<=d&&c<=f;){const o=e[d],c=t[f]=l?ni(t[f]):ti(t[f]);if(!Wr(o,c))break;y(o,c,n,null,r,i,s,a,l),d--,f--}if(c>d){if(c<=f){const e=f+1,d=ef)for(;c<=d;)Y(e[c],r,i,!0),c++;else{const p=c,h=c,g=new Map;for(c=h;c<=f;c++){const e=t[c]=l?ni(t[c]):ti(t[c]);null!=e.key&&g.set(e.key,c)}let v,b=0;const _=f-h+1;let w=!1,x=0;const S=new Array(_);for(c=0;c<_;c++)S[c]=0;for(c=p;c<=d;c++){const o=e[c];if(b>=_){Y(o,r,i,!0);continue}let u;if(null!=o.key)u=g.get(o.key);else for(v=h;v<=f;v++)if(0===S[v-h]&&Wr(o,t[v])){u=v;break}void 0===u?Y(o,r,i,!0):(S[u-h]=c+1,u>=x?x=u:w=!0,y(o,t[u],n,null,r,i,s,a,l),b++)}const T=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}(S):m;for(v=T.length-1,c=_-1;c>=0;c--){const e=h+c,d=t[e],f=e+1{const{el:s,type:a,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void W(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,oe);if(a===Mr){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)},Y=(e,t,n,o=!1,r=!1)=>{const{type:i,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:f}=e;if(null!=a&&Or(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&f,h=!fo(e);let g;if(h&&(g=s&&s.onVnodeBeforeUnmount)&&ii(g,t,e),6&u)Q(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);p&&Vo(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,oe,o):c&&(i!==Mr||d>0&&64&d)?ee(c,t,n,!1,!0):(i===Mr&&384&d||!r&&16&u)&&ee(l,t,n),o&&K(e)}(h&&(g=s&&s.onVnodeUnmounted)||p)&&Ir((()=>{g&&ii(g,t,e),p&&Vo(e,null,t,"unmounted")}),n)},K=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Mr)return void Z(n,r);if(t===Rr)return void T(e);const s=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:o}=i,r=()=>t(n,s);o?o(e.el,s,r):r()}else s()},Z=(e,t)=>{let n;for(;e!==t;)n=f(e),o(e),e=n;o(t)},Q=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:a}=e;o&&X(o),r.stop(),i&&(i.active=!1,Y(s,e,t,n)),a&&Ir(a,t),Ir((()=>{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():f(e.anchor||e.el),ne=(e,t,n)=>{null==e?t._vnode&&Y(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),On(),In(),t._vnode=e},oe={p:y,um:Y,m:W,r:K,mt:R,mc:I,pc:q,pbc:L,n:te,o:e};let re,ie;t&&([re,ie]=t(oe));return{render:ne,hydrate:re,createApp:Er(ne,re)}}(e)}function Lr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Pr(e,t,n=!1){const o=e.children,r=t.children;if(C(o)&&C(r))for(let i=0;i0?Fr||m:null,Nr.pop(),Fr=Nr[Nr.length-1]||null,Dr>0&&Fr&&Fr.push(e),e}function Hr(e,t,n,o,r,i){return Vr(Kr(e,t,n,o,r,i,!0))}function Ur(e,t,n,o,r){return Vr(Jr(e,t,n,o,r,!0))}function zr(e){return!!e&&!0===e.__v_isVNode}function Wr(e,t){return e.type===t.type&&e.key===t.key}const Yr="__vInternal",Xr=({key:e})=>null!=e?e:null,Gr=({ref:e,ref_key:t,ref_for:n})=>null!=e?L(e)||en(e)||$(e)?{i:Nn,r:e,k:t,f:!!n}:e:null;function Kr(e,t=null,n=null,o=0,r=null,i=(e===Mr?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xr(t),ref:t&&Gr(t),scopeId:Fn,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:Nn};return a?(oi(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=L(n)?8:16),Dr>0&&!s&&Fr&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&Fr.push(l),l}const Jr=function(e,t=null,n=null,r=0,i=null,s=!1){e&&e!==Uo||(e=Br);if(zr(e)){const o=Zr(e,t,!0);return n&&oi(o,n),Dr>0&&!s&&Fr&&(6&o.shapeFlag?Fr[Fr.indexOf(e)]=o:Fr.push(o)),o.patchFlag|=-2,o}a=e,$(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=function(e){return e?Yt(e)||Yr in e?x({},e):e:null}(t);let{class:e,style:n}=t;e&&!L(e)&&(t.class=l(e)),M(n)&&(Yt(n)&&!C(n)&&(n=x({},n)),t.style=o(n))}const c=L(e)?1:zn(e)?128:(e=>e.__isTeleport)(e)?64:M(e)?4:$(e)?2:0;return Kr(e,t,n,r,i,c,s,!0)};function Zr(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?ri(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Xr(a),ref:t&&t.ref?n&&r?C(r)?r.concat(Gr(t)):[r,Gr(t)]:Gr(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!==Mr?-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&&Zr(e.ssContent),ssFallback:e.ssFallback&&Zr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Qr(e=" ",t=0){return Jr(Ar,null,e,t)}function ei(e="",t=!1){return t?(jr(),Ur(Br,null,e)):Jr(Br,null,e)}function ti(e){return null==e||"boolean"==typeof e?Jr(Br):C(e)?Jr(Mr,null,e.slice()):"object"==typeof e?ni(e):Jr(Ar,null,String(e))}function ni(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Zr(e)}function oi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(C(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),oi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Yr in t?3===o&&Nn&&(1===Nn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Nn}}else $(t)?(t={default:t,_ctx:Nn},n=32):(t=String(t),64&o?(n=16,t=[Qr(t)]):n=8);e.children=t,e.shapeFlag|=n}function ri(...e){const t={};for(let n=0;nli||Nn,ui=e=>{li=e,e.scope.on()},di=()=>{li&&li.scope.off(),li=null};function fi(e){return 4&e.vnode.shapeFlag}let pi=!1;function hi(e,t,n){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:M(t)&&(e.setupState=ln(t)),gi(e,n)}function gi(e,t,n){const o=e.type;e.render||(e.render=o.render||v),ui(e),Ge(),nr(e),Ke(),di()}function mi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ln(Gt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Zo?Zo[n](e):void 0,has:(e,t)=>t in e||t in Zo}))}function vi(e,t=!0){return $(e)?e.displayName||e.name:e.name||t&&e.__name}const yi=(e,t)=>function(e,t,n=!1){let o,r;const i=$(e);return i?(o=e,r=v):(o=e.get,r=e.set),new fn(o,r,i||!r,n)}(e,0,pi);function bi(e,t,n){const o=arguments.length;return 2===o?M(t)&&!C(t)?zr(t)?Jr(e,null,[t]):Jr(e,t):Jr(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&zr(n)&&(n=[n]),Jr(e,t,n))}const _i=Symbol(""),wi=()=>Yn(_i),xi="3.2.47",Si="undefined"!=typeof document?document:null,Ti=Si&&Si.createElement("template"),ki={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=t?Si.createElementNS("http://www.w3.org/2000/svg",e):Si.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Si.createTextNode(e),createComment:e=>Si.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Si.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{Ti.innerHTML=o?`${e}`:e;const r=Ti.content;if(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]}};const Ci=/\s*!important$/;function Ei(e,t,n){if(C(n))n.forEach((n=>Ei(e,t,n)));else if(null==n&&(n=""),n=Ni(n),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ii[t];if(n)return n;let o=V(t);if("filter"!==o&&o in e)return Ii[t]=o;o=z(o);for(let r=0;re.replace(he,((e,t)=>{if(!t)return e;if(1===Bi)return`${t}${Ai}`;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)*Bi,Ri);return 0===n?"0":`${n}${Ai}`})));var Ai,Bi,Ri;const Ni=e=>L(e)?Mi(e):e,Fi="http://www.w3.org/1999/xlink";function ji(e,t,n,o){e.addEventListener(t,n,o)}function Di(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[n,a]=function(e){let t;if(qi.test(e)){let n;for(t={};n=e.match(qi);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):U(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&&C(i)){const n=Ui(e,i);for(let o=0;oVi||(Hi.then((()=>Vi=0)),Vi=Date.now()))(),n}(o,r);ji(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 qi=/(?:Once|Passive|Capture)$/;let Vi=0;const Hi=Promise.resolve();function Ui(e,t){if(C(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 zi=/^on[a-z]/;const Wi="transition",Yi=(e,{slots:t})=>bi(oo,function(e){const t={};for(const x in e)x in Xi||(t[x]=e[x]);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:c=s,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if(M(e))return[Ji(e.enter),Ji(e.leave)];{const t=Ji(e);return[t,t]}}(r),g=h&&h[0],m=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:_,onLeaveCancelled:w,onBeforeAppear:S=v,onAppear:T=y,onAppearCancelled:k=b}=t,C=(e,t,n)=>{Qi(e,t?u:a),Qi(e,t?c:s),n&&n()},E=(e,t)=>{e._isLeaving=!1,Qi(e,d),Qi(e,p),Qi(e,f),t&&t()},O=e=>(t,n)=>{const r=e?T:y,s=()=>C(t,e,n);Gi(r,[t,s]),es((()=>{Qi(t,e?l:i),Zi(t,e?u:a),Ki(r)||ns(t,o,g,s)}))};return x(t,{onBeforeEnter(e){Gi(v,[e]),Zi(e,i),Zi(e,s)},onBeforeAppear(e){Gi(S,[e]),Zi(e,l),Zi(e,c)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);Zi(e,d),document.body.offsetHeight,Zi(e,f),es((()=>{e._isLeaving&&(Qi(e,d),Zi(e,p),Ki(_)||ns(e,o,m,n))})),Gi(_,[e,n])},onEnterCancelled(e){C(e,!1),Gi(b,[e])},onAppearCancelled(e){C(e,!0),Gi(k,[e])},onLeaveCancelled(e){E(e),Gi(w,[e])}})}(e),t);Yi.displayName="Transition";const Xi={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};Yi.props=x({},no,Xi);const Gi=(e,t=[])=>{C(e)?e.forEach((e=>e(...t))):e&&e(...t)},Ki=e=>!!e&&(C(e)?e.some((e=>e.length>1)):e.length>1);function Ji(e){const t=(e=>{const t=L(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._vtc||(e._vtc=new Set)).add(t)}function Qi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function es(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ts=0;function ns(e,t,n,o){const r=e._endId=++ts,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=os(r,i),a=o("animationDelay"),l=o("animationDuration"),c=os(a,l);let u=null,d=0,f=0;t===Wi?s>0&&(u=Wi,d=s,f=i.length):"animation"===t?c>0&&(u="animation",d=c,f=l.length):(d=Math.max(s,c),u=d>0?s>c?Wi:"animation":null,f=u?u===Wi?i.length:l.length:0);const p=u===Wi&&/\b(transform|all)(,|$)/.test(o("transitionProperty").toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{urs(t)+rs(e[n]))))}function rs(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const is=e=>{const t=e.props["onUpdate:modelValue"]||!1;return C(t)?e=>X(t,e):t};function ss(e){e.target.composing=!0}function as(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ls={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=is(r);const i=o||r.props&&"number"===r.props.type;ji(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=K(o)),e._assign(o)})),n&&ji(e,"change",(()=>{e.value=e.value.trim()})),t||(ji(e,"compositionstart",ss),ji(e,"compositionend",as),ji(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._assign=is(i),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&K(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},cs={deep:!0,created(e,t,n){e._assign=is(n),ji(e,"change",(()=>{const t=e._modelValue,n=hs(e),o=e.checked,r=e._assign;if(C(t)){const e=f(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(O(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(gs(e,o))}))},mounted:us,beforeUpdate(e,t,n){e._assign=is(n),us(e,t,n)}};function us(e,{value:t,oldValue:n},o){e._modelValue=t,C(t)?e.checked=f(t,o.props.value)>-1:O(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=d(t,gs(e,!0)))}const ds={created(e,{value:t},n){e.checked=d(t,n.props.value),e._assign=is(n),ji(e,"change",(()=>{e._assign(hs(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=is(o),t!==n&&(e.checked=d(t,o.props.value))}},fs={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=O(t);ji(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?K(hs(e)):hs(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=is(o)},mounted(e,{value:t}){ps(e,t)},beforeUpdate(e,t,n){e._assign=is(n)},updated(e,{value:t}){ps(e,t)}};function ps(e,t){const n=e.multiple;if(!n||C(t)||O(t)){for(let o=0,r=e.options.length;o-1:r.selected=t.has(i);else if(d(hs(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function hs(e){return"_value"in e?e._value:e.value}function gs(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ms={created(e,t,n){vs(e,t,n,null,"created")},mounted(e,t,n){vs(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){vs(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){vs(e,t,n,o,"updated")}};function vs(e,t,n,o,r){const i=function(e,t){switch(e){case"SELECT":return fs;case"TEXTAREA":return ls;default:switch(t){case"checkbox":return cs;case"radio":return ds;default:return ls}}}(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const ys=["ctrl","shift","alt","meta"],bs={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)=>ys.some((n=>e[`${n}Key`]&&!t.includes(n)))},_s=(e,t)=>(n,...o)=>{for(let e=0;e{xs(e,!1)})):xs(e,t))},beforeUnmount(e,{value:t}){xs(e,t)}};function xs(e,t){e.style.display=t?e._vod:"none"}const Ss=x({patchProp:(e,t,n,o,r=!1,i,s,a,l)=>{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;kn((()=>{n(s,a,l.$gcd(l,!0),l.$gcd(l,!1))}))}(e,t,o,s);"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._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=L(n);if(n&&!r){if(t&&!L(t))for(const e in t)null==n[e]&&Ei(o,e,"");for(const e in n)Ei(o,e,n[e])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}const{__wxsStyle:i}=e;if(i)for(const s in i)Ei(o,s,i[s])}(e,n,o):_(t)?w(t)||Di(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&&zi.test(t)&&$(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(zi.test(t)&&L(n))return!1;return t in e}(e,t,o,r))?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);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}let a=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=u(n):null==n&&"string"===o?(n="",a=!0):"number"===o&&(n=0,a=!0)}try{e[t]=n}catch(l){}a&&e.removeAttribute(t)}(e,t,o,i,s,a,l):("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(Fi,t.slice(6,t.length)):e.setAttributeNS(Fi,t,n);else{const o=c(t);null==n||o&&!u(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))},forcePatchProp:(e,t)=>0===t.indexOf("change:")||("class"===t&&e.__wxsClassChanged?(e.__wxsClassChanged=!1,!0):!("style"!==t||!e.__wxsStyleChanged)&&(e.__wxsStyleChanged=!1,!0))},ki);let Ts;const ks=(...e)=>{const t=(Ts||(Ts=$r(Ss))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(L(e)){return document.querySelector(e)}return e}(e);if(!o)return;const r=t._component;$(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};const Cs=["{","}"];const Es=/^(?:\d)+/,Os=/^(?:\w)+/;const Is=Object.prototype.hasOwnProperty,$s=(e,t)=>Is.call(e,t),Ls=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Cs){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 Ms{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||Ls,this.messages=n||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=Ps(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=>{$s(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=Ps(t,this.messages))&&(o=this.messages[t]):n=t,$s(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 As(e,t={},n,o){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&Cf?Cf():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const r=new Ms({locale:e,fallbackLocale:n,messages:t,watcher:o});let i=(e,t)=>{{let e=!1;i=function(t,n){const o=mm().$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 Bs(e,t){return e.indexOf(t[0])>-1} /*! * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT */const Rs="undefined"!=typeof window;const Ns=Object.assign;function Fs(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ds(r)?r.map(e):e(r)}return n}const js=()=>{},Ds=Array.isArray,qs=/\/$/;function Vs(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("/");let r,i,s=n.length-1;for(r=0;r1&&s--}return n.slice(0,s).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:s}}function Hs(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Us(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zs(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ws(e[n],t[n]))return!1;return!0}function Ws(e,t){return Ds(e)?Ys(e,t):Ds(t)?Ys(t,e):e===t}function Ys(e,t){return Ds(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Xs,Gs,Ks,Js;function Zs(e){if(!e)if(Rs){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(qs,"")}(Gs=Xs||(Xs={})).pop="pop",Gs.push="push",(Js=Ks||(Ks={})).back="back",Js.forward="forward",Js.unknown="";const Qs=/^[^#]+#/;function ea(e,t){return e.replace(Qs,"#")+t}const ta=()=>({left:window.pageXOffset,top:window.pageYOffset});function na(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.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function oa(e,t){return(history.state?history.state.position-t:-1)+e}const ra=new Map;function ia(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),Hs(n,"")}return Hs(n,e)+o+r}function sa(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ta():null}}function aa(e){const{history:t,location:n}=window,o={value:ia(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=Ns({},r.value,t.state,{forward:e,scroll:ta()});i(s.current,s,!0),i(e,Ns({},sa(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ns({},t.state,sa(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function la(e){const t=aa(e=Zs(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const a=({state:i})=>{const a=ia(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:Xs.pop,direction:u?u>0?Ks.forward:Ks.back:Ks.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Ns({},e.state,{scroll:ta()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l),{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=Ns({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:ea.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 ca(e){return"string"==typeof e||"symbol"==typeof e}const ua={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},da=Symbol("");var fa,pa;function ha(e,t){return Ns(new Error,{type:e,[da]:!0},t)}function ga(e,t){return e instanceof Error&&da in e&&(null==t||!!(e.type&t))}(pa=fa||(fa={}))[pa.aborted=4]="aborted",pa[pa.cancelled=8]="cancelled",pa[pa.duplicated=16]="duplicated";const ma={sensitive:!1,strict:!1,start:!0,end:!0},va=/[.+*?^${}()[\]/\\]/g;function ya(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ba(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const wa={type:0,value:""},xa=/[a-zA-Z0-9_]/;function Sa(e,t,n){const o=function(e,t){const n=Ns({},ma,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 f(){c+=a}for(;l{i(f)}:js}function i(e){if(ca(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||!$a(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Ea(e)&&o.set(e.record.name,e)}return t=Ia({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 ha(1,{location:e});s=r.record.name,a=Ns(ka(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&ka(e.params,r.keys.map((e=>e.name)))),i=r.stringify(a)}else if("path"in e)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 ha(1,{location:e,currentLocation:t});s=r.record.name,a=Ns({},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:Oa(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function ka(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Ca(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="boolean"==typeof n?n:n[o];return t}function Ea(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Oa(e){return e.reduce(((e,t)=>Ns(e,t.meta)),{})}function Ia(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function $a(e,t){return t.children.some((t=>t===e||$a(e,t)))}const La=/#/g,Pa=/&/g,Ma=/\//g,Aa=/=/g,Ba=/\?/g,Ra=/\+/g,Na=/%5B/g,Fa=/%5D/g,ja=/%5E/g,Da=/%60/g,qa=/%7B/g,Va=/%7C/g,Ha=/%7D/g,Ua=/%20/g;function za(e){return encodeURI(""+e).replace(Va,"|").replace(Na,"[").replace(Fa,"]")}function Wa(e){return za(e).replace(Ra,"%2B").replace(Ua,"+").replace(La,"%23").replace(Pa,"%26").replace(Da,"`").replace(qa,"{").replace(Ha,"}").replace(ja,"^")}function Ya(e){return null==e?"":function(e){return za(e).replace(La,"%23").replace(Ba,"%3F")}(e).replace(Ma,"%2F")}function Xa(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Ga(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&Wa(e))):[o&&Wa(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ja(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ds(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Za=Symbol(""),Qa=Symbol(""),el=Symbol(""),tl=Symbol(""),nl=Symbol("");function ol(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function rl(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((s,a)=>{const l=e=>{var l;!1===e?a(ha(4,{from:n,to:t})):e instanceof Error?a(e):"string"==typeof(l=e)||l&&"object"==typeof l?a(ha(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),s())},c=e.call(o&&o.instances[r],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch((e=>a(e)))}))}function il(e,t,n,o){const r=[];for(const s of e)for(const e in s.components){let a=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(i=a)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(a.__vccOpts||a)[t];i&&r.push(rl(i,n,o,s,e))}else{let i=a();r.push((()=>i.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const i=(a=r).__esModule||"Module"===a[Symbol.toStringTag]?r.default:r;var a;s.components[e]=i;const l=(i.__vccOpts||i)[t];return l&&rl(l,n,o,s,e)()}))))}}var i;return r}function sl(e){const t=Yn(el),n=Yn(tl),o=yi((()=>t.resolve(sn(e.to)))),r=yi((()=>{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(Us.bind(null,r));if(s>-1)return s;const a=ll(e[t-2]);return t>1&&ll(r)===a&&i[i.length-1].path!==a?i.findIndex(Us.bind(null,e[t-2])):s})),i=yi((()=>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(!Ds(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=yi((()=>r.value>-1&&r.value===n.matched.length-1&&zs(n.params,o.value.params)));return{route:o,href:yi((()=>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[sn(e.replace)?"replace":"push"](sn(e.to)).catch(js):Promise.resolve()}}}const al=uo({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:sl,setup(e,{slots:t}){const n=qt(sl(e)),{options:o}=Yn(el),r=yi((()=>({[cl(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[cl(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:bi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function ll(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const cl=(e,t,n)=>null!=e?e:null!=t?t:n;function ul(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const dl=uo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Yn(nl),r=yi((()=>e.route||o.value)),i=Yn(Qa,0),s=yi((()=>{let e=sn(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=yi((()=>r.value.matched[s.value]));Wn(Qa,yi((()=>s.value+1))),Wn(Za,a),Wn(nl,r);const l=tn();return Kn((()=>[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&&Us(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 ul(n.default,{Component:c,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,f=bi(c,Ns({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:l}));return ul(n.default,{Component:f,route:o})||f}}});function fl(e){const t=Ta(e.routes,e),n=e.parseQuery||Ga,o=e.stringifyQuery||Ka,r=e.history,i=ol(),s=ol(),a=ol(),l=nn(ua);let c=ua;Rs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Fs.bind(null,(e=>""+e)),d=Fs.bind(null,Ya),f=Fs.bind(null,Xa);function p(e,i){if(i=Ns({},i||l.value),"string"==typeof e){const o=Vs(n,e,i.path),s=t.resolve({path:o.path},i),a=r.createHref(o.fullPath);return Ns(o,s,{params:f(s.params),hash:Xa(o.hash),redirectedFrom:void 0,href:a})}let s;if("path"in e)s=Ns({},e,{path:Vs(n,e.path,i.path).path});else{const t=Ns({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Ns({},e,{params:d(e.params)}),i.params=d(i.params)}const a=t.resolve(s,i),c=e.hash||"";a.params=u(f(a.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ns({},e,{hash:(h=c,za(h).replace(qa,"{").replace(Ha,"}").replace(ja,"^")),path:a.path}));var h;const g=r.createHref(p);return Ns({fullPath:p,hash:c,query:o===Ka?Ja(e.query):e.query||{}},a,{redirectedFrom:void 0,href:g})}function h(e){return"string"==typeof e?Vs(n,e,l.value.path):Ns({},e)}function g(e,t){if(c!==e)return ha(8,{from:t,to:e})}function m(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),Ns({query:e.query,hash:e.hash,params:"path"in o?{}:e.params},o)}}function y(e,t){const n=c=p(e),r=l.value,i=e.state,s=e.force,a=!0===e.replace,u=v(n);if(u)return y(Ns(h(u),{state:"object"==typeof u?Ns({},i,u.state):i,force:s,replace:a}),t||n);const d=n;let f;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&&Us(t.matched[o],n.matched[r])&&zs(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(f=ha(16,{to:d,from:r}),$(r,r,!0,!1)),(f?Promise.resolve(f):_(d,r)).catch((e=>ga(e)?ga(e,2)?e:I(e):O(e,d,r))).then((e=>{if(e){if(ga(e,2))return y(Ns({replace:a},h(e.to),{state:"object"==typeof e.to?Ns({},i,e.to.state):i,force:s}),t||d)}else e=x(d,r,!0,a,i);return w(d,r,e),e}))}function b(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function _(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;sUs(e,i)))?o.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>Us(e,a)))||r.push(a))}return[n,o,r]}(e,t);n=il(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(rl(o,e,t))}));const l=b.bind(null,e,t);return n.push(l),pl(n).then((()=>{n=[];for(const o of i.list())n.push(rl(o,e,t));return n.push(l),pl(n)})).then((()=>{n=il(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(rl(o,e,t))}));return n.push(l),pl(n)})).then((()=>{n=[];for(const o of e.matched)if(o.beforeEnter&&!t.matched.includes(o))if(Ds(o.beforeEnter))for(const r of o.beforeEnter)n.push(rl(r,e,t));else n.push(rl(o.beforeEnter,e,t));return n.push(l),pl(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=il(a,"beforeRouteEnter",e,t),n.push(l),pl(n)))).then((()=>{n=[];for(const o of s.list())n.push(rl(o,e,t));return n.push(l),pl(n)})).catch((e=>ga(e,8)?e:Promise.reject(e)))}function w(e,t,n){for(const o of a.list())o(e,t,n)}function x(e,t,n,o,i){const s=g(e,t);if(s)return s;const a=t===ua,c=Rs?history.state:{};n&&(o||a?r.replace(e.fullPath,Ns({scroll:a&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,$(e,t,n,a),I()}let S;function T(){S||(S=r.listen(((e,t,n)=>{if(!A.listening)return;const o=p(e),i=v(o);if(i)return void y(Ns(i,{replace:!0}),o).catch(js);c=o;const s=l.value;var a,u;Rs&&(a=oa(s.fullPath,n.delta),u=ta(),ra.set(a,u)),_(o,s).catch((e=>ga(e,12)?e:ga(e,2)?(y(e.to,o).then((e=>{ga(e,20)&&!n.delta&&n.type===Xs.pop&&r.go(-1,!1)})).catch(js),Promise.reject()):(n.delta&&r.go(-n.delta,!1),O(e,o,s)))).then((e=>{(e=e||x(o,s,!1))&&(n.delta&&!ga(e,8)?r.go(-n.delta,!1):n.type===Xs.pop&&ga(e,20)&&r.go(-1,!1)),w(o,s,e)})).catch(js)})))}let k,C=ol(),E=ol();function O(e,t,n){I(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function I(e){return k||(k=!e,T(),C.list().forEach((([t,n])=>e?n(e):t())),C.reset()),e}function $(t,n,o,r){const{scrollBehavior:i}=e;if(!Rs||!i)return Promise.resolve();const s=!o&&function(e){const t=ra.get(e);return ra.delete(e),t}(oa(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return kn().then((()=>i(t,n,s))).then((e=>e&&na(e))).catch((e=>O(e,t,n)))}const L=e=>r.go(e);let P;const M=new Set,A={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return ca(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:p,options:e,push:m,replace:function(e){return m(Ns(h(e),{replace:!0}))},go:L,back:()=>L(-1),forward:()=>L(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:E.add,isReady:function(){return k&&l.value!==ua?Promise.resolve():new Promise(((e,t)=>{C.add([e,t])}))},install(e){e.component("RouterLink",al),e.component("RouterView",dl),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>sn(l)}),Rs&&!P&&l.value===ua&&(P=!0,m(r.location).catch((e=>{})));const t={};for(const o in ua)t[o]=yi((()=>l.value[o]));e.provide(el,this),e.provide(tl,qt(t)),e.provide(nl,l);const n=e.unmount;M.add(e),e.unmount=function(){M.delete(e),M.size<1&&(c=ua,S&&S(),S=null,l.value=ua,P=!1,k=!1),n()}}};return A}function pl(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function hl(){return Yn(tl)}const gl=ce((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let ml;function vl(e){return Bs(e,Q)?_l().f(e,function(){const e=Cf(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),Q):e}function yl(e,t){if(1===t.length){if(e){const n=e=>L(e)&&Bs(e,Q),o=t[0];let r=[];if(C(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 yl(e&&e[n],t)}function bl(e,t){const n=yl(e,t);if(!n)return!1;const o=t[t.length-1];if(C(n))n.forEach((e=>bl(e,[o])));else{let e=n[o];Object.defineProperty(n,o,{get:()=>vl(e),set(t){e=t}})}return!0}function _l(){if(!ml){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,ml=As(e),gl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>ml.add(e,__uniConfig.locales[e]))),ml.setLocale(e)}}return ml}function wl(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const xl=ce((()=>{const e="uni.async.",t=["error"];_l().add("en",wl(e,t,["The connection timed out, click the screen to try again."]),!1),_l().add("es",wl(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),_l().add("fr",wl(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),_l().add("zh-Hans",wl(e,t,["连接服务器超时,点击屏幕重试"]),!1),_l().add("zh-Hant",wl(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),Sl=ce((()=>{const e="uni.showToast.",t=["unpaired"];_l().add("en",wl(e,t,["Please note showToast must be paired with hideToast"]),!1),_l().add("es",wl(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),_l().add("fr",wl(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),_l().add("zh-Hans",wl(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),_l().add("zh-Hant",wl(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),Tl=ce((()=>{const e="uni.showLoading.",t=["unpaired"];_l().add("en",wl(e,t,["Please note showLoading must be paired with hideLoading"]),!1),_l().add("es",wl(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),_l().add("fr",wl(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),_l().add("zh-Hans",wl(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),_l().add("zh-Hant",wl(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),kl=ce((()=>{const e="uni.showModal.",t=["cancel","confirm"];_l().add("en",wl(e,t,["Cancel","OK"]),!1),_l().add("es",wl(e,t,["Cancelar","OK"]),!1),_l().add("fr",wl(e,t,["Annuler","OK"]),!1),_l().add("zh-Hans",wl(e,t,["取消","确定"]),!1),_l().add("zh-Hant",wl(e,t,["取消","確定"]),!1)})),Cl=ce((()=>{const e="uni.chooseFile.",t=["notUserActivation"];_l().add("en",wl(e,t,["File chooser dialog can only be shown with a user activation"]),!1),_l().add("es",wl(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),_l().add("fr",wl(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),_l().add("zh-Hans",wl(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),_l().add("zh-Hant",wl(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),El=ce((()=>{const e="uni.setClipboardData.",t=["success","fail"];_l().add("en",wl(e,t,["Content copied","Copy failed, please copy manually"]),!1),_l().add("es",wl(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),_l().add("fr",wl(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),_l().add("zh-Hans",wl(e,t,["内容已复制","复制失败,请手动复制"]),!1),_l().add("zh-Hant",wl(e,t,["內容已復制","復制失敗,請手動復製"]),!1)})),Ol=ce((()=>{const e="uni.video.",t=["danmu","volume"];_l().add("en",wl(e,t,["Danmu","Volume"]),!1),_l().add("es",wl(e,t,["Danmu","Volumen"]),!1),_l().add("fr",wl(e,t,["Danmu","Le Volume"]),!1),_l().add("zh-Hans",wl(e,t,["弹幕","音量"]),!1),_l().add("zh-Hant",wl(e,t,["彈幕","音量"]),!1)}));function Il(e){const t=new Ie;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}let $l=1;const Ll=Object.create(null);function Pl(e,t){return e+"."+t}function Ml(e,t,n){t=Pl(e,t),Ll[t]||(Ll[t]=n)}function Al({id:e,name:t,args:n},o){t=Pl(o,t);const r=t=>{e&&By.publishHandler("invokeViewApi."+e,t)},i=Ll[t];i?i(n,r):r({})}const Bl=x(Il("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:r}=By,i=n?$l++:0;n&&o("invokeServiceApi."+i,n,!0),r("invokeServiceApi",{id:i,name:e,args:t})}}),Rl=ge(!0);let Nl;function Fl(){Nl&&(clearTimeout(Nl),Nl=null)}let jl=0,Dl=0;function ql(e){if(Fl(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];jl=t,Dl=n,Nl=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 Vl(e){if(!Nl)return;if(1!==e.touches.length)return Fl();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-jl)>10||Math.abs(n-Dl)>10?Fl():void 0}function Hl(e,t){const n=Number(e);return isNaN(n)?t:n}function Ul(){const e=__uniConfig.globalStyle||{},t=Hl(e.rpxCalcMaxDeviceWidth,960),n=Hl(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 zl(){Ul(),fe(),window.addEventListener("touchstart",ql,Rl),window.addEventListener("touchmove",Vl,Rl),window.addEventListener("touchend",Fl,Rl),window.addEventListener("touchcancel",Fl,Rl)}function Wl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yl,Xl,Gl=["top","left","right","bottom"],Kl={};function Jl(){return Xl="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 Zl(){if(Xl="string"==typeof Xl?Xl:Jl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(a){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Gl.forEach((function(e){s(o,e)})),document.body.appendChild(o),i(),Yl=!0}else Gl.forEach((function(e){Kl[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:Xl+"(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){ec.length||setTimeout((function(){var e={};ec.forEach((function(t){e[t]=Kl[t]})),ec.length=0,tc.forEach((function(t){t(e)}))}),0);ec.push(e)}(n))}o.addEventListener("scroll",i,t),s.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(Kl,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Ql(e){return Yl||Zl(),Kl[e]}var ec=[];var tc=[];const nc=Wl({get support(){return 0!=("string"==typeof Xl?Xl:Jl()).length},get top(){return Ql("top")},get left(){return Ql("left")},get right(){return Ql("right")},get bottom(){return Ql("bottom")},onChange:function(e){Jl()&&(Yl||Zl(),"function"==typeof e&&tc.push(e))},offChange:function(e){var t=tc.indexOf(e);t>=0&&tc.splice(t,1)}}),oc=_s((()=>{}),["prevent"]),rc=_s((()=>{}),["stop"]);function ic(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function sc(){const e=ic(document.documentElement.style,"--window-top");return e?e+nc.top:0}function ac(){const e=document.documentElement.style,t=sc(),n=ic(e,"--window-bottom"),o=ic(e,"--window-left"),r=ic(e,"--window-right"),i=ic(e,"--top-window-height");return{top:t,bottom:n?n+nc.bottom:0,left:o?o+nc.left:0,right:r?r+nc.right:0,topWindowHeight:i||0}}function lc(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function cc(e){return lc(e)}function uc(e){return Symbol(e)}function dc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function fc(e,t=!1){if(t)return function(e){if(!dc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>kd(parseFloat(t))+"px"))}(e);if(L(e)){const t=parseInt(e)||0;return dc(e)?kd(t):t}return e}const pc="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",hc="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";function gc(e,t="#000",n=27){return Jr("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Jr("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function mc(){{const{$pageInstance:e}=ci();return e&&e.proxy.$page.id}}function vc(e){const t=ne(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}function yc(){const e=Wg(),t=e.length;if(t)return e[t-1]}function bc(){const e=yc();if(e)return e.$page.meta}function _c(){const e=bc();return e?e.id:-1}function wc(){const e=yc();if(e)return e.$vm}const xc=["navigationBar","pullToRefresh"];function Sc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=x({id:t},n,e);xc.forEach((t=>{o[t]=x({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function Tc(e,t,n){if(L(e))n=t,t=e,e=wc();else if("number"==typeof e){const t=Wg().find((t=>t.$page.id===e));e=t?t.$vm:wc()}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-Ec)>n;return!i||r&&!s?(!i&&r&&(r=!1),!1):(Ec=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(s()||(Cc=setTimeout(s,300))),o=!1};return function(){clearTimeout(Cc),o||requestAnimationFrame(s),o=!0}}function Ic(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Ic(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),se(i.concat(n).join("/"))}function $c(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}class Lc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(re(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&&re(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=Bc(this.$el.querySelector(e));return t?Pc(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];$(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&By.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 Pc(e,t=!0){if(t&&e&&(e=oe(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Lc(e)),e.$el.__wxsComponentDescriptor}function Mc(e,t){return Pc(e,t)}function Ac(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Mc(n.proxy,!1)}));const r=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=oe(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}(t,n,o);if(r)return[e,Mc(r,!1)]}}function Bc(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Rc(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}function Nc(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e,s={type:n,timeStamp:o,target:me(t?r:Rc(r)),detail:{},currentTarget:me(i)};return e._stopped&&(s._stopped=!0),e.type.startsWith("touch")&&(s.touches=e.touches,s.changedTouches=e.changedTouches),function(e,t){x(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(s,e),s}function Fc(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function jc(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=sc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Fc(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=sc();i.touches=jc(e.touches,t),i.changedTouches=jc(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 Ac(i,t,n)||[i]},createNativeEvent:Nc},Symbol.toStringTag,{value:"Module"});function qc(e){!function(e){const t=e.globalProperties;x(t,Dc),t.$gcd=Mc}(e._context.config)}let Vc=1;function Hc(e){return(e||_c())+".invokeViewApi"}const Uc=x(Il("view"),{invokeOnCallback:(e,t)=>Ry.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=Ry,s=o?Vc++:0;o&&r("invokeViewApi."+s,o,!0),i(Hc(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:s}=Ry,a=Vc++,l="invokeViewApi."+a;return r(l,n),s(Hc(o),{id:a,name:e,args:t},o),()=>{i(l)}}});function zc(e){Tc(yc(),"onResize",e),Ry.invokeOnCallback("onWindowResize",e)}function Wc(e){const t=yc();Tc(mm(),"onShow",e),Tc(t,"onShow")}function Yc(){Tc(mm(),"onHide"),Tc(yc(),"onHide")}const Xc=["onPageScroll","onReachBottom"];function Gc(){Xc.forEach((e=>Ry.subscribe(e,function(e){return(t,n)=>{Tc(parseInt(n),e,t)}}(e))))}function Kc(){!function(){const{on:e}=Ry;e("onResize",zc),e("onAppEnterForeground",Wc),e("onAppEnterBackground",Yc)}(),Gc()}function Jc(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new xe(this.$page.id)),e.eventChannel}}function Zc(e){e._context.config.globalProperties.getOpenerEventChannel=Jc}function Qc(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function eu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${kd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function tu(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(eu)),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)?eu(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 nu={props:["animation"],watch:{animation:{deep:!0,handler(){tu(this)}}},mounted(){tu(this)}},ou=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(nu),ru(e)},ru=e=>(e.__reserved=!0,e.compatConfig={MODE:3},uo(e)),iu={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function su(e){const t=tn(!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:function(e){e.touches.length>1||s(e)},onMousedown:function(e){r||(s(e),window.addEventListener("mouseup",l))},onTouchend:function(){a()},onMouseup:function(){r&&l()},onTouchcancel:function(){r=!1,t.value=!1,clearTimeout(n)}}}}function au(e,t){return L(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}function lu(e){return e.__wwe=!0,e}function cu(e,t){return(n,o,r)=>{e.value&&t(n,function(e,t,n,o){const r=me(n);return{type:o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}(n,o,e.value,r||{}))}}const uu=uc("uf"),du=ou({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=tn(null);return function(e){const t=[];Wn(uu,{addField(e){t.push(e)},removeField(e){t.splice(t.indexOf(e),1)},submit(n){e("submit",n,{value:t.reduce(((e,t)=>{if(t.submit){const[n,o]=t.submit();n&&(e[n]=o)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}})}(cu(o,n)),()=>Jr("uni-form",{ref:o},[Jr("span",null,[t.default&&t.default()])],512)}});const fu={for:{type:String,default:""}},pu=uc("ul");const hu=ou({name:"Label",props:fu,setup(e,{slots:t}){const n=mc(),o=function(){const e=[];return Wn(pu,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),r=yi((()=>e.for||t.default&&t.default.length)),i=lu((t=>{const r=t.target;let i=/^uni-(checkbox|radio|switch)-/.test(r.className);i||(i=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(r.tagName)),i||(e.for?By.emit("uni-label-click-"+n+"-"+e.for,t,!0):o.length&&o[0](t,!0))}));return()=>Jr("uni-label",{class:{"uni-label-pointer":r},onClick:i},[t.default&&t.default()],10,["onClick"])}});function gu(e,t){mu(e.id,t),Kn((()=>e.id),((e,n)=>{vu(n,t,!0),mu(e,t,!0)})),Ro((()=>{vu(e.id,t)}))}function mu(e,t,n){const o=mc();n&&!e||N(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&By.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?By.on(r,t[r]):e&&By.on(`uni-${r}-${o}-${e}`,t[r])}))}function vu(e,t,n){const o=mc();n&&!e||N(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&By.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?By.off(r,t[r]):e&&By.off(`uni-${r}-${o}-${e}`,t[r])}))}const yu=ou({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=tn(null),o=Yn(uu,!1),{hovering:r,binding:i}=su(e);_l();const s=lu(((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=Yn(pu,!1);return a&&(a.addHandler(s),Bo((()=>{a.removeHandler(s)}))),gu(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 Jr("uni-button",ri({ref:n,onClick:s,class:u&&r.value?o:""},u&&i,a,l,c),[t.default&&t.default()],16,["onClick"])}}});function bu(e){return e.$el}function _u(e){const{base:t}=__uniConfig.router;return 0===se(e).indexOf(t)?se(e):t+e}function wu(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 _u(e.slice(1));e="https:"+e}if(ee.test(e)||te.test(e)||0===e.indexOf("blob:"))return e;const o=Wg();return o.length?_u(Ic(o[o.length-1].$page.route,e).slice(1)):e}const xu=navigator.userAgent,Su=/android/i.test(xu),Tu=/iphone|ipad|ipod/i.test(xu),ku=xu.match(/Windows NT ([\d|\d.\d]*)/i),Cu=/Macintosh|Mac/i.test(xu),Eu=/Linux|X11/i.test(xu),Ou=Cu&&navigator.maxTouchPoints>0;function Iu(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function $u(e){return e&&90===Math.abs(window.orientation)}function Lu(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function Pu(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function Mu(e,t,n,o){Ry.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function Au(e,t){const n={},{top:o,topWindowHeight:r}=ac();if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=pe(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(C(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(C(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 Bu(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 Ru(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):Bu(i,n)?i:i.querySelector(n);return e?Au(e,r):null}{let e=[];const t=(l?s:i).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(Au(t,r))})),!l&&Bu(i,n)&&e.unshift(Au(i,r)),e}}(e,t,n,r,i))})),n(o)}const Nu=["original","compressed"],Fu=["album","camera"],ju=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function Du(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function qu(e,t){return!C(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function Vu(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Hu=1;const Uu={};function zu(e,t,n,o=!1){return Uu[e]={name:t,keepAlive:o,callback:n},e}function Wu(e,t,n){if("number"==typeof e){const o=Uu[e];if(o)return o.keepAlive||delete Uu[e],o.callback(t,n)}return t}const Yu="success",Xu="fail",Gu="complete";function Ku(e,t={},{beforeAll:n,beforeSuccess:o}={}){N(t)||(t={});const{success:r,fail:i,complete:s}=function(e){const t={};for(const n in e){const o=e[n];$(o)&&(t[n]=Vu(o),delete e[n])}return t}(t),a=$(r),l=$(i),c=$(s),u=Hu++;return zu(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),$(n)&&n(u),u.errMsg===e+":ok"?($(o)&&o(u,t),a&&r(u)):l&&i(u),c&&s(u)})),u}const Ju="success",Zu="fail",Qu="complete",ed={},td={};function nd(e,t){return function(n){return e(n,t)||n}}function od(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function rd(e,t={}){return[Ju,Zu,Qu].forEach((n=>{const o=e[n];if(!C(o))return;const r=t[n];t[n]=function(e){od(o,e,t).then((e=>$(r)&&r(e)||e))}})),t}function id(e,t){const n=[];C(ed.returnValue)&&n.push(...ed.returnValue);const o=td[e];return o&&C(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function sd(e){const t=Object.create(null);Object.keys(ed).forEach((e=>{"returnValue"!==e&&(t[e]=ed[e].slice())}));const n=td[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function ad(e,t,n,o){const r=sd(e);if(r&&Object.keys(r).length){if(C(r.invoke)){return od(r.invoke,n).then((n=>t(rd(sd(e),n),...o)))}return t(rd(r,n),...o)}return t(n,...o)}function ld(e,t){return(n={},...o)=>function(e){return!(!N(e)||![Yu,Xu,Gu].find((t=>$(e[t]))))}(n)?id(e,ad(e,t,n,o)):id(e,new Promise(((r,i)=>{ad(e,t,x(n,{success:r,fail:i}),o)})))}function cd(e,t,n,o){return Wu(e,x({errMsg:t+":fail"+(n?" "+n:"")},o))}function ud(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(L(e))return e}const r=function(e,t){const n=e[0];if(!t||!N(t.formatArgs)&&N(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{!function(e){if(!$(e))throw new Error('Invalid args: type check failed for args "callback". Expected Function')}(o);const r=ud(0,[o],0,n);if(r)throw new Error(r);const i=!function(e){for(const t in Uu)if(Uu[t].name===e)return!0;return!1}(e);!function(e,t){zu(Hu++,e,t,!0)}(e,o),i&&(!function(e){Ry.on("api."+e,(t=>{for(const n in Uu){const o=Uu[n];o.name===e&&o.callback(t)}}))}(e),t())}}function fd(e,t,n,o){return n=>{const r=Ku(e,n,o),i=ud(0,[n],0,o);return i?cd(r,e,i):t(n,{resolve:t=>function(e,t,n){return Wu(e,x(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>cd(r,e,function(e){return!e||L(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function pd(e,t,n){return dd(e,t,n)}function hd(e,t,n,o){return ld(e,fd(e,t,0,o))}function gd(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=ud(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function md(e,t,n,o){return ld(e,function(e,t,n,o){return fd(e,t,0,o)}(e,t,0,o))}let vd=!1,yd=0,bd=0,_d=960,wd=375,xd=750;function Sd(){const{platform:e,pixelRatio:t,windowWidth:n}=function(){const e=Iu(),t=Pu(Lu(e,$u(e)));return{platform:Tu?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();yd=n,bd=t,vd="ios"===e}function Td(e,t){const n=Number(e);return isNaN(n)?t:n}const kd=gd(0,((e,t)=>{if(0===yd&&(Sd(),function(){const e=__uniConfig.globalStyle||{};_d=Td(e.rpxCalcMaxDeviceWidth,960),wd=Td(e.rpxCalcBaseDeviceWidth,375),xd=Td(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||yd;n=e===xd||n<=_d?n:wd;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==bd&&vd?.5:1),e<0?-o:o}));function Cd(e,t){Object.keys(t).forEach((n=>{$(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):C(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n{L(e)&&N(t)?Cd(td[e]||(td[e]={}),t):N(e)&&Cd(ed,e)})),Od=new Ie,Id=gd(0,((e,t)=>(Od.on(e,t),()=>Od.off(e,t)))),$d=gd(0,((e,t)=>{e?(C(e)||(e=[e]),e.forEach((e=>Od.off(e,t)))):Od.e={}})),Ld=gd(0,((e,...t)=>{Od.emit(e,...t)})),Pd=[.5,.8,1,1.25,1.5,2];class Md{constructor(e,t){this.id=e,this.pageId=t}play(){Mu(this.id,this.pageId,"play")}pause(){Mu(this.id,this.pageId,"pause")}stop(){Mu(this.id,this.pageId,"stop")}seek(e){Mu(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){Mu(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~Pd.indexOf(e)||(e=1),Mu(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){Mu(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){Mu(this.id,this.pageId,"exitFullScreen")}showStatusBar(){Mu(this.id,this.pageId,"showStatusBar")}hideStatusBar(){Mu(this.id,this.pageId,"hideStatusBar")}}const Ad=gd(0,((e,t)=>new Md(e,vc(t||wc())))),Bd=(e,t,n,o)=>{!function(e,t,n,o,r){Ry.invokeViewMethod("map."+e,{type:n,data:o},t,r)}(e,t,n,o,(e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)}))};function Rd(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const Nd=Rd("width"),Fd=Rd("height"),jd={formatArgs:{x:Rd("x"),y:Rd("y"),width:Nd,height:Fd}},Dd={canvasId:{type:String,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},qd=jd,Vd=(Uint8ClampedArray,{PNG:"png",JPG:"jpg",JPEG:"jpg"}),Hd={formatArgs:{x:Rd("x",0),y:Rd("y",0),width:Nd,height:Fd,destWidth:Rd("destWidth"),destHeight:Rd("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=Vd[e];n||(n=Vd.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function Ud(e,t,n,o,r){Ry.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,(e=>{r&&r(e)}))}var zd=["scale","rotate","translate","setTransform","transform"],Wd=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],Yd=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const Xd={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 Gd(e){var 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(k(Xd,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(Xd[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 Kd{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,Gd(t)])}}class Jd{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class Zd{constructor(e){this.width=e}}class Qd{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=[],Ud(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new Kd("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new Kd("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 Jd(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 Zd(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]})}}const ef=ce((()=>{[...zd,...Wd].forEach((function(e){Qd.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,r){var i=[t.toString(),n,o];"number"==typeof r&&i.push(r),this.actions.push({method:e,data:i})};case"drawImage":return function(t,n,o,r,i,s,a,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(s=n,a=o,l=r,c=i,n=void 0,o=void 0,r=void 0,i=void 0),u=d(n)&&d(o)&&d(r)&&d(i)?[t,s,a,l,c,n,o,r,i]:d(l)&&d(c)?[t,s,a,l,c]:[t,s,a],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),Yd.forEach((function(e){Qd.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",Gd(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,r){r=Gd(r),this.actions.push({method:e,data:[t,n,o,r]}),this.state.shadowBlur=o,this.state.shadowColor=r,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}))})),tf=gd(0,((e,t)=>{if(ef(),t)return new Qd(e,vc(t));const n=vc(wc());if(n)return new Qd(e,n);Ry.emit("onError","createCanvasContext:fail")})),nf=md("canvasGetImageData",(({canvasId:e,x:t,y:n,width:o,height:r},{resolve:i,reject:s})=>{const a=vc(wc());a?Ud(e,a,"getImageData",{x:t,y:n,width:o,height:r},(function(e){if(e.errMsg&&-1!==e.errMsg.indexOf("fail"))return void s("",e);let t=e.data;t&&t.length&&(e.data=new Uint8ClampedArray(t)),delete e.compressed,i(e)})):s()}),0,jd),of=md("canvasPutImageData",(({canvasId:e,data:t,x:n,y:o,width:r,height:i},{resolve:s,reject:a})=>{var l=vc(wc());if(!l)return void a();t=Array.prototype.slice.call(t),Ud(e,l,"putImageData",{data:t,x:n,y:o,width:r,height:i,compressed:void 0},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?a():s(e)}))}),0,qd),rf=md("canvasToTempFilePath",(({x:e=0,y:t=0,width:n,height:o,destWidth:r,destHeight:i,canvasId:s,fileType:a,quality:l},{resolve:c,reject:u})=>{var d=vc(wc());if(!d)return void u();Ud(s,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:r,destHeight:i,fileType:a,quality:l,dirname:`${pp}/canvas`},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):c(e)}))}),0,Hd),sf=["onCanplay","onPlay","onPause","onStop","onEnded","onTimeUpdate","onError","onWaiting","onSeeking","onSeeked"],af=["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"],lf={thresholds:[0],initialRatio:0,observeAll:!1},cf=["top","right","bottom","left"];let uf=1;function df(e={}){return cf.map((t=>`${Number(e[t])||0}px`)).join(" ")}class ff{constructor(e,t){this._pageId=vc(e),this._component=e,this._options=x({},lf,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=df(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=df(e),this}observe(e,t){$(t)&&(this._options.selector=e,this._reqId=uf++,function({reqId:e,component:t,options:n,callback:o},r){const i=bu(t);(i.__io||(i.__io={}))[e]=function(e,t,n){!function(){if("object"!=typeof window)return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return void("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));function e(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}var t=function(t){for(var n=window.document,o=e(n);o;)o=e(n=o.ownerDocument);return n}(),n=[],o=null,r=null;function i(e){this.time=e.time,this.target=e.target,this.rootBounds=h(e.rootBounds),this.boundingClientRect=h(e.boundingClientRect),this.intersectionRect=h(e.intersectionRect||p()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,r=o.width*o.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function s(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(){return window.performance&&performance.now&&performance.now()}function l(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}function c(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function u(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function d(e,t){var n=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),r=Math.max(e.left,t.left),i=Math.min(e.right,t.right),s=i-r,a=o-n;return s>=0&&a>=0&&{top:n,bottom:o,left:r,right:i,width:s,height:a}||null}function f(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function g(e,t){var n=t.top-e.top,o=t.left-e.left;return{top:n,left:o,height:t.height,width:t.width,bottom:n+t.height,right:o+t.width}}function m(e,t){for(var n=t;n;){if(n==e)return!0;n=v(n)}return!1}function v(n){var o=n.parentNode;return 9==n.nodeType&&n!=t?e(n):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function y(e){return e&&9===e.nodeType}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(e,t){r=e&&t?g(e,t):p(),n.forEach((function(e){e._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,r=null},s.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},s.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},s.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},s.prototype._monitorIntersections=function(n){var o=n.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(n)){var r=this._checkForIntersections,i=null,s=null;this.POLL_INTERVAL?i=o.setInterval(r,this.POLL_INTERVAL):(c(o,"resize",r,!0),c(n,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(r)).observe(n,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(n),this._monitoringUnsubscribes.push((function(){var e=n.defaultView;e&&(i&&e.clearInterval(i),u(e,"resize",r,!0)),u(n,"scroll",r,!0),s&&s.disconnect()}));var a=this.root&&(this.root.ownerDocument||this.root)||t;if(n!=a){var l=e(n);l&&this._monitorIntersections(l.ownerDocument)}}},s.prototype._unmonitorIntersections=function(n){var o=this._monitoringDocuments.indexOf(n);if(-1!=o){var r=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==n)return!0;for(;o&&o!=r;){var i=e(o);if((o=i&&i.ownerDocument)==n)return!0}return!1}))){var i=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),i(),n!=r){var s=e(n);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t{e.forEach((e=>{n({intersectionRatio:fp(e),intersectionRect:dp(e.intersectionRect),boundingClientRect:dp(e.boundingClientRect),relativeRect:dp(e.rootBounds),time:Date.now(),dataset:pe(e.target),id:e.target.id})}))}),{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){r.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e((e=ne(e))&&!vc(e)&&(t=e,e=null),new ff(e||wc(),t))));let hf=0,gf={};const mf={canvas:Qd,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){Bd(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){Bd(this.id,this.pageId,"moveToLocation",e)}getScale(e){Bd(this.id,this.pageId,"getScale",e)}getRegion(e){Bd(this.id,this.pageId,"getRegion",e)}includePoints(e){Bd(this.id,this.pageId,"includePoints",e)}translateMarker(e){Bd(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){Bd(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){Bd(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){Bd(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){Bd(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){Bd(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){Bd(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){Bd(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){Bd(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){Bd(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){Bd(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){Bd(this.id,this.pageId,"openMapApp",e)}on(e){Bd(this.id,this.pageId,"on",e)}},video:Md,editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){!function(e,t,n,o){const r={options:o},i=o&&("success"in o||"fail"in o||"complete"in o);if(i){const e=String(hf++);r.callbackId=e,gf[e]=o}Ry.invokeViewMethod(`editor.${e}`,{type:n,data:r},t,(({callbackId:e,data:t})=>{i&&(ue(gf[e],t),delete gf[e])}))}(this.id,this.pageId,e,t)}}};function vf(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,r=mf[n];e.context=new r(t,o),delete e.contextInfo}}class yf{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}}class bf{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return Ru(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{C(e)?e.forEach(vf):vf(e);const o=n[t];$(o)&&o.call(this,e)})),$(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=ne(e),this}select(e){return this._nodesRef=new yf(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new yf(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new yf(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 _f=gd(0,(e=>((e=ne(e))&&!vc(e)&&(e=null),new bf(e||wc())))),wf={formatArgs:{}},xf={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class Sf{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=x({},xf,e)}_getOption(e){const t={transition:x({},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 Tf=ce((()=>{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=>{Sf.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}}))})),kf=gd(0,(e=>(Tf(),new Sf(e))),0,wf),Cf=gd(0,(()=>{const e=mm();return e&&e.$vm?e.$vm.$locale:_l().getLocale()})),Ef={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const Of=gd(0,(()=>x({},bp)));let If,$f,Lf;const Pf=[];const Mf=md("getPushClientId",((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{var e,o;void 0===Lf&&(Lf=!1,If="",$f="uniPush is not enabled"),Pf.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==If&&(e=If,o=$f,Pf.forEach((t=>{t(e,o)})),Pf.length=0)}))})),Af=e=>{},Bf=e=>{},Rf={formatArgs:{showToast:!0},beforeInvoke(){El()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=_l(),o=n("uni.setClipboardData.success");o&&uy({title:o,icon:"success",mask:!1})}},Nf=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=qu(e,Nu)},sourceType(e,t){t.sourceType=qu(e,Fu)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),Ff={formatArgs:{sourceType(e,t){t.sourceType=qu(e,Fu)},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=["*"])}}},jf=(Boolean,["all","image","video"]),Df={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=qu(e,Fu)},type(e,t){t.type=Du(e,jf)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},qf={formatArgs:{src(e,t){t.src=wu(e)}}},Vf={formatArgs:{urls(e,t){t.urls=e.map((e=>L(e)&&e?wu(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(k(t,a)){let e=t[a];null==e?e="":N(e)&&(e=JSON.stringify(e)),s[zf(a)]=zf(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!==ju[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Hf).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Uf.indexOf(t.responseType)&&(t.responseType="text")}}},Yf={formatArgs:{filePath(e,t){e&&(t.filePath=wu(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},Xf={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=Du((e||"").toUpperCase(),ju)},protocols(e,t){L(e)&&(t.protocols=[e])}}};const Gf={url:{type:String,required:!0}},Kf=(tp(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),tp(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),rp("navigateTo")),Jf=rp("redirectTo"),Zf=rp("reLaunch"),Qf=rp("switchTab"),ep={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Wg().length-1,e)}}};function tp(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 np;function op(){np=""}function rp(e){return{formatArgs:{url:ip(e)},beforeAll:op}}function ip(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),Ic(t,e)}(t)).split("?")[0],r=$c(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(!L(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(np===t&&"appLaunch"!==n.openType)return`${np} locked`;__uniConfig.ready&&(np=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 sp={formatArgs:{duration:300}},ap=(Boolean,{formatArgs:{title:"",mask:!1}}),lp=(Boolean,{beforeInvoke(){kl()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!k(t,"cancelText")){const{t:e}=_l();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!k(t,"confirmText")){const{t:e}=_l();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),cp=["success","loading","none","error"],up=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Du(e,cp)},image(e,t){t.image=e?wu(e):""},duration:1500,mask:!1}});function dp(e){const{bottom:t,height:n,left:o,right:r,top:i,width:s}=e||{};return{bottom:t,height:n,left:o,right:r,top:i,width:s}}function fp(e){const{intersectionRatio:t,boundingClientRect:{height:n,width:o},intersectionRect:{height:r,width:i}}=e;return 0!==t?t:r===n?i/o:r/n}const pp="",hp={};function gp(e,t){const n=hp[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 mp(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 mp(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 vp(e){for(const n in hp)if(k(hp,n)){if(hp[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return hp[t]=e,t}function yp(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete hp[e]}const bp=Qc(),_p=Qc();const wp=ou({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=tn(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=qt({width:-1,height:-1});return Kn((()=>x({},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){_o(o),Po((()=>{t.initial&&kn(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,r,o),()=>Jr("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[Jr("div",{onScroll:r},[Jr("div",null,null)],40,["onScroll"]),Jr("div",{onScroll:r},[Jr("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const xp=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function Sp(e,t=!0){e.width=e.offsetWidth*(t?xp:1),e.height=e.offsetHeight*(t?xp:1),e.getContext("2d").__hidpi__=t}let Tp=!1;function kp(){if(Tp)return;Tp=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;var n;t.drawImageByCanvas=(n=t.drawImage,function(e,t,o,r,i,s,a,l,c,u){if(!this.__hidpi__)return n.apply(this,arguments);t*=xp,o*=xp,r*=xp,i*=xp,s*=xp,a*=xp,l=u?l*xp:l,c=u?c*xp:c,n.call(this,e,t,o,r,i,s,a,l,c)}),1!==xp&&(!function(e,t){for(const n in e)k(e,n)&&t(e[n],n)}(e,(function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*xp}));else if(Array.isArray(e))for(let t=0;tkp()));function Ep(e){return e?wu(e):e}function Op(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Ip(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let $p;function Lp(e=0,t=0){return $p||($p=document.createElement("canvas")),$p.width=e,$p.height=t,$p}const Pp=ou({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){Cp();const o=tn(null),r=tn(null),i=tn(!1),s=function(e){return(t,n)=>{e(t,Nc(n))}}(t),{$attrs:a,$excludeAttrs:l,$listeners:c}=bh({excludeListeners:!0}),{_listeners:u}=function(e,t,n){const o=yi((()=>{let o=["onTouchstart","onTouchmove","onTouchend"],r=t.value,i=x({},(()=>{let e={};for(const t in r)if(k(r,t)){const n=r[t];e[t]=n}return e})());return o.forEach((t=>{let o=[];i[t]&&o.push(lu((e=>{const o=e.currentTarget.getBoundingClientRect();Ip(o,e.touches),Ip(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&o.push(oc),i[t]=o})),i}));return{_listeners:o}}(e,c,s),{_handleSubscribe:d,_resize:f}=function(e,t,n){let o=[],r={};const i=yi((()=>e.hidpi?xp:1));function s(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*i.value)||o.height!==Math.floor(n.height*i.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);Sp(o,e.hidpi),t.putImageData(n,0,0)}else Sp(o,e.hidpi)}function a({actions:e,reserve:i},s){if(!e)return;if(n.value)return void o.push([e,i]);let a=t.value,u=a.getContext("2d");i||(u.fillStyle="#000000",u.strokeStyle="#000000",u.shadowColor="#000000",u.shadowBlur=0,u.shadowOffsetX=0,u.shadowOffsetY=0,u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,a.width,a.height)),l(e);for(let t=0;t{e.src=t})).catch((()=>{e.src=o}))}"drawImage"===t?(o=n[0],o=Ep(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=Ep(o),n[1]=o),o&&!r[o]&&i()}))}function c(e,t,i,s){let l=r[e];return l.ready?(s(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,s(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)a({actions:t[0],reserve:t[1]},i),t=e.shift()},!1)}function u({x:e=0,y:n=0,width:o,height:r,destWidth:s,destHeight:a,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},f){const p=t.value;let h;const g=p.offsetWidth-e;o=o?Math.min(o,g):g;const m=p.offsetHeight-n;r=r?Math.min(r,m):m,l?(s=o,a=r):s||a?s?a||(a=Math.round(r/o*s)):s=Math.round(o/r*a):(s=Math.round(o*i.value),a=Math.round(r*i.value));const v=Lp(s,a),y=v.getContext("2d");let b;"jpeg"!==d&&"jpg"!==d||(d="jpeg",y.fillStyle="#fff",y.fillRect(0,0,s,a)),y.__hidpi__=!0,y.drawImageByCanvas(p,e,n,o,r,0,0,s,a,!1);try{let e;if("base64"===c)h=v.toDataURL(`image/${d}`,u);else{const e=y.getImageData(0,0,s,a);h=Array.prototype.slice.call(e.data)}b={data:h,compressed:e,width:s,height:a}}catch(_){b={errMsg:`canvasGetImageData:fail ${_}`}}if(v.height=v.width=0,y.__hidpi__=!1,!f)return b;f(b)}function d({data:e,x:n,y:o,width:r,height:i,compressed:s},a){try{0,i||(i=Math.round(e.length/4/r));const s=Lp(r,i);s.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),r,i),0,0),t.value.getContext("2d").drawImage(s,n,o,r,i),s.height=s.width=0}catch(l){return void a({errMsg:"canvasPutImageData:fail"})}a({errMsg:"canvasPutImageData:ok"})}function f({x:e=0,y:t=0,width:n,height:o,destWidth:r,destHeight:i,fileType:s,quality:a,dirname:l},c){const d=u({x:e,y:t,width:n,height:o,destWidth:r,destHeight:i,hidpi:!1,dataType:"base64",type:s,quality:a});var f;d.data&&d.data.length?(f=d.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,f)):c({errMsg:d.errMsg.replace("canvasPutImageData","toTempFilePath")})}const p={actionsChanged:a,getImageData:u,putImageData:d,toTempFilePath:f};function h(e,t,n){let o=p[e];0!==e.indexOf("_")&&$(o)&&o(t,n)}return x(p,{_resize:s,_handleSubscribe:h})}(e,o,i);return _g(d,xg(e.canvasId),!0),Po((()=>{f()})),()=>{const{canvasId:t,disableScroll:i}=e;return Jr("uni-canvas",ri({"canvas-id":t,"disable-scroll":i},a.value,l.value,u.value),[Jr("canvas",{ref:o,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),Jr("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),Jr(wp,{ref:r,onResize:f},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});const Mp=uc("ucg"),Ap=ou({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const o=tn(null);return function(e,t){const n=[],o=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);Wn(Mp,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:o()})}});const r=Yn(uu,!1);r&&r.addField({submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=o()),t}})}(e,cu(o,t)),()=>Jr("uni-checkbox-group",{ref:o},[n.default&&n.default()],512)}});const Bp=ou({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},setup(e,{slots:t}){const n=tn(e.checked),o=tn(e.value);Kn([()=>e.checked,()=>e.value],(([e,t])=>{n.value=e,o.value=t}));const{uniCheckGroup:r,uniLabel:i}=function(e,t,n){const o=yi((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),r={reset:n},i=Yn(Mp,!1);i&&i.addField(o);const s=Yn(uu,!1);s&&s.addField(r);const a=Yn(pu,!1);return Bo((()=>{i&&i.removeField(o),s&&s.removeField(r)})),{uniCheckGroup:i,uniForm:s,uniLabel:a}}(n,o,(()=>{n.value=!1})),s=t=>{e.disabled||(n.value=!n.value,r&&r.checkboxChange(t),t.stopPropagation())};return i&&(i.addHandler(s),Bo((()=>{i.removeHandler(s)}))),gu(e,{"label-click":s}),()=>{const o=au(e,"disabled");return Jr("uni-checkbox",ri(o,{onClick:s}),[Jr("div",{class:"uni-checkbox-wrapper"},[Jr("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[n.value?gc(pc,e.color,22):""],2),t.default&&t.default()])],16,["onClick"])}}});function Rp(){}const Np={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 Fp(e,t,n){function o(e){const t=yi((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",Rp,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",Rp,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}Kn((()=>t.value),(e=>e&&o(e)))}var jp=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Dp=/^<\/([-A-Za-z0-9_]+)[^>]*>/,qp=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Vp=Xp("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Hp=Xp("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"),Up=Xp("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"),zp=Xp("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Wp=Xp("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Yp=Xp("script,style");function Xp(e){for(var t={},n=e.split(","),o=0;oe/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},Jp={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"]},Zp=ou({name:"Image",props:Gp,setup(e,{emit:t}){const n=tn(null),o=function(e,t){const n=tn(""),o=yi((()=>{let e="auto",o="";const r=Jp[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=qt({rootEl:e,src:yi((()=>t.src?wu(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Po((()=>{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=Kp[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){Qp&&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 Kn((()=>t.mode),((e,t)=>{Kp[t]&&r(),Kp[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)};Kn((()=>e.src),(e=>l(e))),Kn((()=>e.imgSrc),(e=>{!e&&s&&(s.remove(),s=null)})),Po((()=>l(e.src))),Bo((()=>c()))}(o,e,n,i,r),()=>Jr("uni-image",{ref:n},[Jr("div",{style:o.modeStyle},null,4),Kp[e.mode]?Jr(wp,{onResize:i},null,8,["onResize"]):Jr("span",null,null)],512)}});const Qp="Google Inc."===navigator.vendor;const eh=ge(!0),th=[];let nh,oh=0;const rh=e=>th.forEach((t=>t.userAction=e));function ih(e={userAction:!1}){if(!nh){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!oh&&rh(!0),oh++,setTimeout((()=>{!--oh&&rh(!1)}),0)}),eh)})),nh=!0}th.push(e)}const sh=()=>!!oh;function ah(){const e=qt({userAction:!1});return Po((()=>{ih(e)})),Bo((()=>{!function(e){const t=th.indexOf(e);t>=0&&th.splice(t,1)}(e)})),{state:e}}function lh(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 ch(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)}const uh=["none","text","decimal","numeric","tel","search","email","url"],dh=x({},{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=>!!~uh.indexOf(e)}},Np),fh=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function ph(e,t,n,o){const r=we((n=>{t.value=ch(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});Kn((()=>e.modelValue),r),Kn((()=>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 Lo((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function hh(e,t){ah();const n=yi((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}Kn((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),Po((()=>{n.value&&kn(o)}))}function gh(e,t,n,o){Ml(_c(),"getSelectedTextRange",lh);const{fieldRef:r,state:i,trigger:s}=function(e,t,n){const o=tn(null),r=cu(t,n),i=yi((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),s=yi((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),a=yi((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=yi((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),c=ch(e.modelValue,e.type)||ch(e.value,e.type),u=qt({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:s,cursor:a});return Kn((()=>u.focus),(e=>n("update:focus",e))),Kn((()=>u.maxlength),(e=>u.value=u.value.slice(0,e))),{fieldRef:o,state:u,trigger:r}}(e,t,n),{triggerInput:a}=ph(e,i,n,s);hh(e,r),Fp(0,r);const{state:l}=function(){const e=qt({attrs:{}});return Po((()=>{let t=ci();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}();!function(e,t){const n=Yn(uu,!1);if(!n)return;const o=ci(),r={submit(){const n=o.proxy;return[n[e],L(t)?n[t]:t.value]},reset(){L(t)?o.proxy[t]="":t.value=""}};n.addField(r),Bo((()=>{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}Kn([()=>t.selectionStart,()=>t.selectionEnd],s),Kn((()=>t.cursor),a),Kn((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),$(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 mh=ou({name:"Input",props:x({},dh,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...fh],setup(e,{emit:t}){const n=["text","number","idcard","digit","password","tel"],o=["off","one-time-code"],r=yi((()=>{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=~n.includes(e.type)?e.type:"text"}return e.password?"password":t})),i=yi((()=>{const t=o.indexOf(e.textContentType),n=o.indexOf(U(e.textContentType));return o[-1!==t?t:-1!==n?n:0]}));let s,a=tn("");const l=tn(null),{fieldRef:c,state:u,scopedAttrsState:d,fixDisabledColor:f,trigger:p}=gh(e,l,t,((e,t)=>{const n=e.target;if("number"===r.value){if(s&&(n.removeEventListener("blur",s),s=null),n.validity&&!n.validity.valid){if((!a.value||!n.value)&&"-"===e.data||"-"===a.value[0]&&"deleteContentBackward"===e.inputType)return a.value="-",t.value="",s=()=>{a.value=n.value=""},n.addEventListener("blur",s),!1;if(a.value)if(-1!==a.value.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){const e=a.value.indexOf(".");return a.value=n.value=t.value=a.value.slice(0,e),!0}}else if("."===e.data)return a.value+=".",s=()=>{a.value=n.value=a.value.slice(0,-1)},n.addEventListener("blur",s),!1;return a.value=t.value=n.value="-"===a.value?"":a.value,!1}a.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}}));Kn((()=>u.value),(t=>{"number"!==e.type||"-"===a.value&&""===t||(a.value=t)}));const h=["number","digit"],g=yi((()=>h.includes(e.type)?e.step:""));function m(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),p("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return()=>{let t=e.disabled&&f?Jr("input",{key:"disabled-input",ref:c,value:u.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:u.maxlength,step:g.value,class:"uni-input-input",onFocus:e=>e.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):qo(Jr("input",{key:"input",ref:c,"onUpdate:modelValue":e=>u.value=e,disabled:!!e.disabled,type:r.value,maxlength:u.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",autocomplete:i.value,onKeyup:m,inputmode:e.inputmode},null,40,["onUpdate:modelValue","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]),[[ms,u.value]]);return Jr("uni-input",{ref:l},[Jr("div",{class:"uni-input-wrapper"},[qo(Jr("div",ri(d.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[ws,!(u.value.length||"-"===a.value)]]),"search"===e.confirmType?Jr("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const vh=["class","style"],yh=/^on[A-Z]+/,bh=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=ci(),r=nn({}),i=nn({}),s=nn({}),a=n.concat(vh);return o.attrs=qt(o.attrs),Xn((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(a.includes(n)?e.exclude[n]=o:yh.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 _h(e){const t=[];return C(e)&&e.forEach((e=>{zr(e)?e.type===Mr?t.push(..._h(e.children)):t.push(e):C(e)&&t.push(..._h(e))})),t}const wh=ou({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=tn(null),o=tn(!1);let{setContexts:r,events:i}=function(e,t){const n=tn(0),o=tn(0),r=qt({x:null,y:null}),i=tn(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=xh(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=lu((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(xh(n)/i.value)}r.x=n.x,r.y=n.y}})),f=lu((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 p(){h(),a.forEach((function(e,t){e.setParent()}))}function h(){let e=window.getComputedStyle(t.value),r=t.value.getBoundingClientRect();n.value=r.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=r.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return Wn("movableAreaWidth",n),Wn("movableAreaHeight",o),{setContexts(e){a=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:f,_resize:p}}}(e,n);const{$listeners:s,$attrs:a,$excludeAttrs:l}=bh(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=i[`_${e}`];c[e]=t?[].concat(t,n):n})),Po((()=>{i._resize(),o.value=!0}));let u=[];const d=[];function f(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Gt(o))}r(e)}return Wn("_isMounted",o),Wn("movableAreaRootRef",n),Wn("addMovableViewContext",(e=>{d.push(e),f()})),Wn("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())})),()=>{const e=t.default&&t.default();return u=_h(e),Jr("uni-movable-area",ri({ref:n},a.value,l.value,c),[Jr(wp,{onResize:i._resize},null,8,["onResize"]),u],16)}}});function xh(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Sh=function(e,t,n,o){e.addEventListener(t,(e=>{$(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Th,kh;function Ch(e,t,n){Bo((()=>{document.removeEventListener("mousemove",Th),document.removeEventListener("mouseup",kh)}));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;Sh(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)})),Sh(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)})),Sh(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=Th=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),Sh(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 f=kh=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),Sh(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 Eh(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}},$h.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}},$h.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}},$h.prototype.dt=function(){return-this._x_v/this._x_a},$h.prototype.done=function(){const e=Eh(this.s().x,this._endPositionX)||Eh(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},$h.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},$h.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Lh.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)}}},Lh.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Lh.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Lh.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Oh(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Oh(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Oh(t,.1)&&(t=0),Oh(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Oh(o-e,.1)&&Oh(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Lh.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Lh.prototype.done=function(e){return e||(e=(new Date).getTime()),Eh(this.x(),this._endPosition,.1)&&Oh(this.dx(),.1)},Lh.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())},Lh.prototype.springConstant=function(){return this._k},Lh.prototype.damping=function(){return this._c},Lh.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}]},Ph.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},Ph.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)}},Ph.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Ph.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 Mh(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Ah=ou({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=tn(null),r=cu(o,n),{setParent:i}=function(e,t,n){const o=Yn("_isMounted",tn(!1)),r=Yn("addMovableViewContext",(()=>{})),i=Yn("removeMovableViewContext",(()=>{}));let s,a,l=tn(1),c=tn(1),u=tn(!1),d=tn(0),f=tn(0),p=null,h=null,g=!1,m=null,v=null;const y=new Ih,b=new Ih,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=yi((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new $h(1,w.value);Kn((()=>e.disabled),(()=>{z()}));const{_updateOldScale:S,_endScale:T,_setScale:k,scaleValueSync:C,_updateBoundary:E,_updateOffset:O,_updateWH:I,_scaleOffset:$,minX:L,minY:P,maxX:M,maxY:A,FAandSFACancel:B,_getLimitXY:R,_setTransform:N,_revise:F,dampingNumber:j,xMove:D,yMove:q,xSync:V,ySync:H,_STD:U}=function(e,t,n,o,r,i,s,a,l,c){const u=yi((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),d=yi((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),f=tn(Number(e.scaleValue)||1);Kn(f,(e=>{N(e)})),Kn(u,(()=>{R()})),Kn(d,(()=>{R()})),Kn((()=>e.scaleValue),(e=>{f.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:h,_updateWH:g,_scaleOffset:m,minX:v,minY:y,maxX:b,maxY:_}=function(e,t,n){const o=Yn("movableAreaWidth",tn(0)),r=Yn("movableAreaHeight",tn(0)),i=Yn("movableAreaRootRef"),s={x:0,y:0},a={x:0,y:0},l=tn(0),c=tn(0),u=tn(0),d=tn(0),f=tn(0),p=tn(0);function h(){let e=0-s.x+a.x,t=o.value-l.value-s.x-a.x;u.value=Math.min(e,t),f.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),p.value=Math.max(n,i)}function g(){s.x=Nh(e.value,i.value),s.y=Fh(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:h,_updateOffset:g,_updateWH:m,_scaleOffset:a,minX:u,minY:d,maxX:f,maxY:p}}(t,o,B),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:T,_revise:k,dampingNumber:C,xMove:E,yMove:O,xSync:I,ySync:$,_STD:L}=function(e,t,n,o,r,i,s,a,l,c,u,d,f,p){const h=yi((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),g=yi((()=>"all"===t.direction||"horizontal"===t.direction)),m=yi((()=>"all"===t.direction||"vertical"===t.direction)),v=tn(Dh(t.x)),y=tn(Dh(t.y));Kn((()=>t.x),(e=>{v.value=Dh(e)})),Kn((()=>t.y),(e=>{y.value=Dh(e)})),Kn(v,(e=>{k(e)})),Kn(y,(e=>{C(e)}));const b=new Ph(1,9*Math.pow(h.value,2)/40,h.value);function _(e,t){let n=!1;return e>r.value?(e=r.value,n=!0):ei.value?(t=i.value,n=!0):t1?"htouchmove":"vtouchmove"),D.value&&(n=t.detail.dx+s,_.historyX.shift(),_.historyX.push(n),q.value||null!==m||(m=Math.abs(t.detail.dx/t.detail.dy)<1)),q.value&&(o=t.detail.dy+a,_.historyY.shift(),_.historyY.push(o),D.value||null!==m||(m=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!m){t.preventDefault();let r="touch";nM.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=M.value+y.x(n-M.value)):n=M.value),oA.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=A.value+b.x(o-A.value)):o=A.value),Rh((function(){N(n,o,l.value,r)}))}}}function Y(){if(!u.value&&!e.disabled&&g&&(n.value.style.willChange="auto",g=!1,!m&&!F("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,o=f.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),aA.value&&(a=A.value,s=n+(A.value-o)*r/i),x.setEnd(s,a),h=jh(x,(function(){let e=x.s(),t=e.x,n=e.y;N(t,n,l.value,"friction")}),(function(){h.cancel()}))}e.outOfBounds||e.inertia||B()}function X(){if(!o.value)return;B();let t=e.scale?C.value:1;O(),I(t),E();let n=R(V.value+$.x,H.value+$.y),r=n.x,i=n.y;N(r,i,t,"",!0),S(t)}return Po((()=>{Ch(n.value,(e=>{switch(e.detail.state){case"start":z();break;case"move":W(e);break;case"end":Y()}})),X(),x.reconfigure(1,w.value),U.reconfigure(1,9*Math.pow(j.value,2)/40,j.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:X,_endScale:T,_setScale:k};r(e),Ro((()=>{i(e)}))})),Ro((()=>{B()})),{setParent:X}}(e,r,o);return()=>Jr("uni-movable-view",{ref:o},[Jr(wp,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let Bh=!1;function Rh(e){Bh||(Bh=!0,requestAnimationFrame((function(){e(),Bh=!1})))}function Nh(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Nh(e.offsetParent,t):0}function Fh(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Fh(e.offsetParent,t):0}function jh(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function Dh(e){return/\d+[ur]px$/i.test(e)?kd(parseFloat(e)):Number(e)||0}const qh=["navigate","redirect","switchTab","reLaunch","navigateBack"],Vh=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],Hh=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],Uh={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~qh.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||Vh.concat(Hh).includes(e)},animationDuration:{type:[String,Number],default:300}};const zh=ou({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:x({},Uh,{renderLink:{type:Boolean,default:!0}}),setup(e,{slots:t}){const n=ci(),o=n&&n.vnode.scopeId||"",{hovering:r,binding:i}=su(e),s=function(e){return()=>{if("navigateBack"!==e.openType&&!e.url)return void console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":Dv({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":qv({url:e.url,exists:e.exists});break;case"switchTab":Uv({url:e.url});break;case"reLaunch":Vv({url:e.url});break;case"navigateBack":Fv({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}}(e);return()=>{const{hoverClass:a,url:l}=e,c=e.hoverClass&&"none"!==e.hoverClass,u=Jr("uni-navigator",ri({class:c&&r.value?a:""},c&&i,n?n.attrs:{},{[o]:""},{onClick:s}),[t.default&&t.default()],16,["onClick"]);return e.renderLink?Jr("a",{class:"navigator-wrap",href:l,onClick:oc,onMousedown:oc},[u],40,["href","onClick","onMousedown"]):u}}}),Wh=uc("ucg"),Yh=ou({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,{emit:t,slots:n}){const o=tn(null);return function(e,t){const n=[];Po((()=>{a(n.length-1)}));const o=()=>{var e;return null==(e=n.find((e=>e.value.radioChecked)))?void 0:e.value.value};Wn(Wh,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},radioChange(e,r){a(n.indexOf(r),!0),t("change",e,{value:o()})}});const r=Yn(uu,!1),i={submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=o()),t}};r&&(r.addField(i),Bo((()=>{r.removeField(i)})));function s(e,t){e.value={radioChecked:t,value:e.value.value}}function a(e,t){n.forEach(((o,r)=>{r!==e&&(t?s(n[r],!1):n.forEach(((e,t)=>{r>=t||n[t].value.radioChecked&&s(n[r],!1)})))}))}}(e,cu(o,t)),()=>Jr("uni-radio-group",{ref:o},[n.default&&n.default()],512)}});const Xh=ou({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},setup(e,{slots:t}){const n=tn(e.checked),o=tn(e.value),r=yi((()=>e.disabled?"background-color: #E1E1E1;border-color: ##D1D1D1;":`background-color: ${e.color};border-color: ${e.color};`));Kn([()=>e.checked,()=>e.value],(([e,t])=>{n.value=e,o.value=t}));const{uniCheckGroup:i,uniLabel:s,field:a}=function(e,t,n){const o=yi({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:t})=>{e.value=t}}),r={reset:n},i=Yn(Wh,!1);i&&i.addField(o);const s=Yn(uu,!1);s&&s.addField(r);const a=Yn(pu,!1);return Bo((()=>{i&&i.removeField(o),s&&s.removeField(r)})),{uniCheckGroup:i,uniForm:s,uniLabel:a,field:o}}(n,o,(()=>{n.value=!1})),l=t=>{e.disabled||n.value||(n.value=!0,i&&i.radioChange(t,a),t.stopPropagation())};return s&&(s.addHandler(l),Bo((()=>{s.removeHandler(l)}))),gu(e,{"label-click":l}),()=>{const o=au(e,"disabled");return Jr("uni-radio",ri(o,{onClick:l}),[Jr("div",{class:"uni-radio-wrapper"},[Jr("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:n.value?r.value:""},[n.value?gc(pc,e.disabled?"#ADADAD":"#fff",18):""],6),t.default&&t.default()])],16,["onClick"])}}});const Gh={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:""},Kh={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const Jh=(e,t,n)=>!n||C(n)&&!n.length?[]:n.map((n=>{if(N(n)){if(!k(n,"type")||"node"===n.type){let o={[e]:""};const r=n.name.toLowerCase();if(!k(Gh,r))return;return function(e,t){if(N(t))for(const n in t)if(k(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=wu(o))}}(r,n.attrs),o=x(o,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),bi(n.name,o,Jh(e,t,n.children))}return"text"===n.type&&L(n.text)&&""!==n.text?Qr((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){return k(Kh,t)&&Kh[t]?Kh[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 Zh(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()&&Yp[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.children||(o.children=[]),o.children.push(n)}}),n.children}const Qh=ou({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=ci(),o=n&&n.vnode.scopeId||"",r=tn(null),i=tn([]),s=cu(r,t);function a(e,t={}){s("itemclick",e,t)}return Kn((()=>e.nodes),(function(){let t=e.nodes;L(t)&&(t=Zh(e.nodes)),i.value=Jh(o,a,t)}),{immediate:!0}),()=>bi("uni-rich-text",{ref:r},bi("div",{},i.value))}}),eg=ge(!0),tg=ou({name:"ScrollView",compatConfig:{MODE:3},props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},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:"back"},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}){const o=tn(null),r=tn(null),i=tn(null),s=tn(null),a=tn(null),l=cu(o,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=yi((()=>Number(e.scrollTop)||0)),n=yi((()=>Number(e.scrollLeft)||0));return{state:qt({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e);!function(e,t,n,o,r,i,s,a,l){let c=!1,u=0,d=!1,f=()=>{};const p=yi((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),h=yi((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function g(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",f),i.removeEventListener("webkitTransitionEnd",f),f=()=>_(e,t),i.addEventListener("transitionend",f),i.addEventListener("webkitTransitionEnd",f),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),i.style.transform=r,i.style.webkitTransform=r}function m(n){const o=n.target;r("scroll",n,{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollHeight:o.scrollHeight,scrollWidth:o.scrollWidth,deltaX:t.lastScrollLeft-o.scrollLeft,deltaY:t.lastScrollTop-o.scrollTop}),e.scrollY&&(o.scrollTop<=p.value&&t.lastScrollTop-o.scrollTop>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",n,{direction:"top"}),t.lastScrollToUpperTime=n.timeStamp),o.scrollTop+o.offsetHeight+h.value>=o.scrollHeight&&t.lastScrollTop-o.scrollTop<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",n,{direction:"bottom"}),t.lastScrollToLowerTime=n.timeStamp)),e.scrollX&&(o.scrollLeft<=p.value&&t.lastScrollLeft-o.scrollLeft>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",n,{direction:"left"}),t.lastScrollToUpperTime=n.timeStamp),o.scrollLeft+o.offsetWidth+h.value>=o.scrollWidth&&t.lastScrollLeft-o.scrollLeft<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",n,{direction:"right"}),t.lastScrollToLowerTime=n.timeStamp)),t.lastScrollTop=o.scrollTop,t.lastScrollLeft=o.scrollLeft}function v(t){e.scrollY&&(e.scrollWithAnimation?g(t,"y"):s.value.scrollTop=t)}function y(t){e.scrollX&&(e.scrollWithAnimation?g(t,"x"):s.value.scrollLeft=t)}function b(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(e.scrollX){let n=o.left-t.left,r=s.value.scrollLeft+n;e.scrollWithAnimation?g(r,"x"):s.value.scrollLeft=r}if(e.scrollY){let n=o.top-t.top,r=s.value.scrollTop+n;e.scrollWithAnimation?g(r,"y"):s.value.scrollTop=r}}}}function _(t,n){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let o=s.value;"x"===n?(o.style.overflowX=e.scrollX?"auto":"hidden",o.scrollLeft=t):"y"===n&&(o.style.overflowY=e.scrollY?"auto":"hidden",o.scrollTop=t),a.value.removeEventListener("transitionend",f),a.value.removeEventListener("webkitTransitionEnd",f)}function w(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,r("refresherrefresh",{},{}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,r("refresherrestore",{},{})),"refresherabort"===n&&d&&(d=!1,r("refresherabort",{},{}))}t.refreshState=n}}Po((()=>{kn((()=>{v(n.value),y(o.value)})),b(e.scrollIntoView);let i=function(e){e.preventDefault(),e.stopPropagation(),m(e)},a={x:0,y:0},l=null,f=function(n){if(null===a)return;let o=n.touches[0].pageX,i=n.touches[0].pageY,f=s.value;if(Math.abs(o-a.x)>Math.abs(i-a.y))if(e.scrollX){if(0===f.scrollLeft&&o>a.x)return void(l=!1);if(f.scrollWidth===f.offsetWidth+f.scrollLeft&&oa.y)l=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(f.scrollHeight===f.offsetHeight+f.scrollTop&&i0&&(d=!0,r("refresherpulling",n,{deltaY:o})));const s=t.refresherHeight/e.refresherThreshold;t.refreshRotate=360*(s>1?1:s)}},p=function(e){1===e.touches.length&&(a={x:e.touches[0].pageX,y:e.touches[0].pageY})},h=function(n){a=null,t.refresherHeight>=e.refresherThreshold?w("refreshing"):w("refresherabort")};s.value.addEventListener("touchstart",p,eg),s.value.addEventListener("touchmove",f,ge(!1)),s.value.addEventListener("scroll",i,ge(!1)),s.value.addEventListener("touchend",h,eg),Bo((()=>{s.value.removeEventListener("touchstart",p),s.value.removeEventListener("touchmove",f),s.value.removeEventListener("scroll",i),s.value.removeEventListener("touchend",h)}))})),_o((()=>{e.scrollY&&(s.value.scrollTop=t.lastScrollTop),e.scrollX&&(s.value.scrollLeft=t.lastScrollLeft)})),Kn(n,(e=>{v(e)})),Kn(o,(e=>{y(e)})),Kn((()=>e.scrollIntoView),(e=>{b(e)})),Kn((()=>e.refresherTriggered),(e=>{!0===e?w("refreshing"):!1===e&&w("restore")}))}(e,c,u,d,l,o,r,s,t);const f=yi((()=>{let t="";return e.scrollX?t+="overflow-x:auto;":t+="overflow-x:hidden;",e.scrollY?t+="overflow-y:auto;":t+="overflow-y:hidden;",t}));return()=>{const{refresherEnabled:t,refresherBackground:l,refresherDefaultStyle:u}=e,{refresherHeight:d,refreshState:p,refreshRotate:h}=c;return Jr("uni-scroll-view",{ref:o},[Jr("div",{ref:i,class:"uni-scroll-view"},[Jr("div",{ref:r,style:f.value,class:"uni-scroll-view"},[Jr("div",{ref:s,class:"uni-scroll-view-content"},[t?Jr("div",{ref:a,style:{backgroundColor:l,height:d+"px"},class:"uni-scroll-view-refresher"},["none"!==u?Jr("div",{class:"uni-scroll-view-refresh"},[Jr("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==p?Jr("svg",{key:"refresh__icon",style:{transform:"rotate("+h+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[Jr("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),Jr("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==p?Jr("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[Jr("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"==u?n.refresher&&n.refresher():null],4):null,n.default&&n.default()],512)],4)],512)],512)}}});const ng=ou({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,{emit:t}){const n=tn(null),o=tn(null),r=tn(null),i=tn(Number(e.value));Kn((()=>e.value),(e=>{i.value=Number(e)}));const s=cu(n,t),a=function(e,t){const n=()=>{const n=Number(e.max),o=Number(e.min);return 100*(t.value-o)/(n-o)+"%"},o=()=>"#e9e9e9"!==e.backgroundColor?e.backgroundColor:"#007aff"!==e.color?e.color:"#007aff",r=()=>"#007aff"!==e.activeColor?e.activeColor:"#e9e9e9"!==e.selectedColor?e.selectedColor:"#e9e9e9";return{setBgColor:yi((()=>({backgroundColor:o()}))),setBlockBg:yi((()=>({left:n()}))),setActiveColor:yi((()=>({backgroundColor:r(),width:n()}))),setBlockStyle:yi((()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor})))}}(e,i),{_onClick:l,_onTrack:c}=function(e,t,n,o,r){const i=n=>{e.disabled||(a(n),r("change",n,{value:t.value}))},s=t=>{const n=Number(e.max),o=Number(e.min),r=Number(e.step);return tn?n:og.mul.call(Math.round((t-o)/r),r)+o},a=r=>{const i=Number(e.max),a=Number(e.min),l=o.value,c=getComputedStyle(l,null).marginLeft;let u=l.offsetWidth;u+=parseInt(c);const d=n.value,f=d.offsetWidth-(e.showValue?u:0),p=d.getBoundingClientRect().left,h=(r.x-p)*(i-a)/f+a;t.value=s(h)},l=n=>{if(!e.disabled)return"move"===n.detail.state?(a({x:n.detail.x}),r("changing",n,{value:t.value}),!1):"end"===n.detail.state&&r("change",n,{value:t.value})},c=Yn(uu,!1);if(c){const n={reset:()=>t.value=Number(e.min),submit:()=>{const n=["",null];return""!==e.name&&(n[0]=e.name,n[1]=t.value),n}};c.addField(n),Bo((()=>{c.removeField(n)}))}return{_onClick:i,_onTrack:l}}(e,i,n,o,s);return Po((()=>{Ch(r.value,c)})),()=>{const{setBgColor:t,setBlockBg:s,setActiveColor:c,setBlockStyle:u}=a;return Jr("uni-slider",{ref:n,onClick:lu(l)},[Jr("div",{class:"uni-slider-wrapper"},[Jr("div",{class:"uni-slider-tap-area"},[Jr("div",{style:t.value,class:"uni-slider-handle-wrapper"},[Jr("div",{ref:r,style:s.value,class:"uni-slider-handle"},null,4),Jr("div",{style:u.value,class:"uni-slider-thumb"},null,4),Jr("div",{style:c.value,class:"uni-slider-track"},null,4)],4)]),qo(Jr("span",{ref:o,class:"uni-slider-value"},[i.value],512),[[ws,e.showValue]])]),Jr("slot",null,null)],8,["onClick"])}}});var og={mul:function(e){let t=0,n=this.toString(),o=e.toString();try{t+=n.split(".")[1].length}catch(r){}try{t+=o.split(".")[1].length}catch(r){}return Number(n.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,t)}};function rg(e,t,n,o,r,i){function s(){c&&(clearTimeout(c),c=null)}let a,l,c=null,u=!0,d=0,f=1,p=null,h=!1,g=0,m="";const v=yi((()=>n.value.length>t.displayMultipleItems)),y=yi((()=>e.circular&&v.value));function b(r){Math.floor(2*d)===Math.floor(2*r)&&Math.ceil(2*d)===Math.ceil(2*r)||y.value&&function(o){if(!u)for(let r=n.value,i=r.length,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 _(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(y.value){if(o<=t.displayMultipleItems)return 0}else if(r>o-t.displayMultipleItems)return o-t.displayMultipleItems;return r}function w(){p=null}function x(){if(!p)return void(h=!1);const e=p,o=e.toPos,r=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){b(o),p=null,h=!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}b(o+r*u*u/2),l=requestAnimationFrame(x)}function S(e,o,r){w();const i=t.duration,s=n.value.length;let a=d;if(y.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,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){s(),p&&(b(p.toPos),p=null);const r=n.value;for(let t=0;t0&&f<1||(f=1)}const a=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(b(a+l-g),g=l):(b(l),e.autoplay&&T())):(u=!0,b(-t.displayMultipleItems-1))})),Kn((()=>t.interval),(()=>{c&&(s(),T())})),Kn((()=>t.current),((e,o)=>{!function(e,o){const r=m;m="";const s=n.value;if(!r){const t=s.length;S(e,"",y.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)})),Kn((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),Kn((()=>e.autoplay&&!t.userTracking),k),k(e.autoplay&&!t.userTracking),Po((()=>{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=_(d+o);e?b(g):(m="touch",t.current=r,S(r,"touch",0!==o?o:0===r&&y.value&&d>=1?1:0))}Ch(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&&T())}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,y.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),i=0),b(n)}const d=a-s||1,f=o.value;e.vertical?u(-r.dy/f.offsetHeight,-r.ddy/d):u(-r.dx/f.offsetWidth,-r.ddx/d)}(c.detail),!1}}}))})),Ro((()=>{s(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,m="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const ig=ou({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=tn(null),r=cu(o,n),i=tn(null),s=tn(null),a=function(e){return qt({interval:yi((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:yi((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:yi((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=yi((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:fc(e.previousMargin,!0),bottom:fc(e.nextMargin,!0)}:{top:0,bottom:0,left:fc(e.previousMargin,!0),right:fc(e.nextMargin,!0)}),t})),c=yi((()=>{const t=Math.abs(100/a.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],f=tn([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Gt(o))}f.value=e}Wn("addSwiperContext",(function(e){d.push(e),p()}));Wn("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:h,circularEnabled:g,swiperEnabled:m}=rg(e,a,f,s,n,r);let v=()=>null;return v=sg(o,e,a,h,f,g,m),()=>{const n=t.default&&t.default();return u=_h(n),Jr("uni-swiper",{ref:o},[Jr("div",{ref:i,class:"uni-swiper-wrapper"},[Jr("div",{class:"uni-swiper-slides",style:l.value},[Jr("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&Jr("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map(((t,n,o)=>Jr("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=a.current||n{let a=!1,l=!1,c=!1,u=tn(!1);function d(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Xn((()=>{a="auto"===t.navigation,u.value=!0!==t.navigation||a,y()})),Xn((()=>{const e=r.value.length,t=!i.value;l=0===n.current&&t,c=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,s.value||(l=!0,c=!0,a&&(u.value=!0))}));const f={onMouseover:e=>d(e,"over"),onMouseout:e=>d(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 h=()=>gc("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",t.navigationColor,26);let g;const m=n=>{clearTimeout(g);const{clientX:o,clientY:r}=n,{left:i,right:s,top:a,bottom:l,width:c,height:d}=e.value.getBoundingClientRect();let f=!1;if(f=t.vertical?!(r-a{u.value=f}),300);u.value=f},v=()=>{u.value=!0};function y(){e.value&&(e.value.removeEventListener("mousemove",m),e.value.removeEventListener("mouseleave",v),a&&(e.value.addEventListener("mousemove",m),e.value.addEventListener("mouseleave",v)))}return Po(y),function(){const e={"uni-swiper-navigation-hide":u.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?Jr(Mr,null,[Jr("div",ri({class:["uni-swiper-navigation uni-swiper-navigation-prev",x({"uni-swiper-navigation-disabled":l},e)],onClick:e=>p(e,"prev",l)},f),[h()],16,["onClick"]),Jr("div",ri({class:["uni-swiper-navigation uni-swiper-navigation-next",x({"uni-swiper-navigation-disabled":c},e)],onClick:e=>p(e,"next",c)},f),[h()],16,["onClick"])]):null}},ag=ou({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=tn(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 Po((()=>{const e=Yn("addSwiperContext");e&&e(o)})),Ro((()=>{const e=Yn("removeSwiperContext");e&&e(o)})),()=>Jr("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),lg=ou({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){const n=tn(null),o=tn(e.checked),r=function(e,t){const n=Yn(uu,!1),o=Yn(pu,!1),r={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(r),Ro((()=>{n.removeField(r)})));return o}(e,o),i=cu(n,t);Kn((()=>e.checked),(e=>{o.value=e}));const s=t=>{e.disabled||(o.value=!o.value,i("change",t,{value:o.value}))};return r&&(r.addHandler(s),Bo((()=>{r.removeHandler(s)}))),gu(e,{"label-click":s}),()=>{const{color:t,type:r}=e,i=au(e,"disabled"),a={};return t&&o.value&&(a.backgroundColor=t,a.borderColor=t),Jr("uni-switch",ri({ref:n},i,{onClick:s}),[Jr("div",{class:"uni-switch-wrapper"},[qo(Jr("div",{class:["uni-switch-input",[o.value?"uni-switch-input-checked":""]],style:a},null,6),[[ws,"switch"===r]]),qo(Jr("div",{class:"uni-checkbox-input"},[o.value?gc(pc,e.color,22):""],512),[[ws,"checkbox"===r]])])],16,["onClick"])}}});const cg={ensp:" ",emsp:" ",nbsp:" "};function ug(e,t){return e.replace(/\\n/g,"\n").split("\n").map((e=>function(e,{space:t,decode:n}){if(!e)return e;t&&cg[t]&&(e=e.replace(/ /g,cg[t]));if(!n)return e;return e.replace(/ /g,cg.nbsp).replace(/ /g,cg.ensp).replace(/ /g,cg.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")}(e,t)))}const dg=ou({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=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Br){const o=ug(t.children,{space:e.space,decode:e.decode}),r=o.length-1;o.forEach(((e,t)=>{(0!==t||e)&&n.push(Qr(e)),t!==r&&n.push(Jr("br"))}))}else n.push(t)})),Jr("uni-text",{selectable:!!e.selectable||null},[Jr("span",null,n)],8,["selectable"])}}),fg=x({},dh,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>hg.concat("return").includes(e)}});let pg=!1;const hg=["done","go","next","search","send"];const gg=ou({name:"Textarea",props:fg,emits:["confirm","linechange",...fh],setup(e,{emit:t}){const n=tn(null),o=tn(null),{fieldRef:r,state:i,scopedAttrsState:s,fixDisabledColor:a,trigger:l}=gh(e,n,t),c=yi((()=>i.value.split("\n"))),u=yi((()=>hg.includes(e.confirmType))),d=tn(0),f=tn(null);function p({height:e}){d.value=e}function h(e){"Enter"===e.key&&u.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&u.value){!function(e){l("confirm",e,{value:i.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return Kn((()=>d.value),(t=>{const r=n.value,i=f.value,s=o.value;let a=parseFloat(getComputedStyle(r).lineHeight);isNaN(a)&&(a=i.offsetHeight);var c=Math.round(t/a);l("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:c}),e.autoHeight&&(r.style.height="auto",s.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";pg=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),()=>{let t=e.disabled&&a?Jr("textarea",{key:"disabled-textarea",ref:r,value:i.value,tabindex:"-1",readonly:!!e.disabled,maxlength:i.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":pg},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):Jr("textarea",{key:"textarea",ref:r,value:i.value,disabled:!!e.disabled,maxlength:i.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":pg},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:h,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return Jr("uni-textarea",{ref:n},[Jr("div",{ref:o,class:"uni-textarea-wrapper"},[qo(Jr("div",ri(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[ws,!i.value.length]]),Jr("div",{ref:f,class:"uni-textarea-line"},[" "],512),Jr("div",{class:"uni-textarea-compute"},[c.value.map((e=>Jr("div",null,[e.trim()?e:"."]))),Jr(wp,{initial:!0,onResize:p},null,8,["initial","onResize"])]),"search"===e.confirmType?Jr("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),mg=ou({name:"View",props:x({},iu),setup(e,{slots:t}){const{hovering:n,binding:o}=su(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?Jr("uni-view",ri({class:n.value?r:""},o),[t.default&&t.default()],16):Jr("uni-view",null,[t.default&&t.default()])}}});function vg(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function yg(e,t,n){e&&Ml(n||_c(),e,(({type:e,data:n},o)=>{t(e,n,o)}))}function bg(e,t){e&&function(e,t){t=Pl(e,t),delete Ll[t]}(t||_c(),e)}function _g(e,t,n,o){const r=ci().proxy;Po((()=>{yg(t||vg(r),e,o),!n&&t||Kn((()=>r.id),((t,n)=>{yg(vg(r,t),e,o),bg(n&&vg(r,n))}))})),Bo((()=>{bg(t||vg(r),o)}))}let wg=0;function xg(e){const t=mc(),n=ci().proxy,o=n.$options.name.toLowerCase(),r=e||n.id||"context"+wg++;return Po((()=>{n.$el.__uniContextInfo={id:r,type:o,page:t}})),`${o}.${r}`}function Sg(e,t,n,o){$(t)&&Io(e,t.bind(n),o)}function Tg(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&&!$(t))&&(ke.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const r=e[o];C(r)?r.forEach((e=>Sg(o,e,n,t))):Sg(o,r,n,t)}})),"page"===r)){t.__isVisible=!0;try{Tc(n,"onLoad",t.attrs.__pageQuery),delete t.attrs.__pageQuery,"preloadPage"!==(null==(o=n.$page)?void 0:o.openType)&&Tc(n,"onShow")}catch(i){console.error(i.message+"\n"+i.stack)}}}function kg(e,t,n){Tg(e,t,n)}function Cg(e,t,n){return e[t]=n}function Eg(e){return function(t,n,o){if(!n)throw t;const r=e._instance;if(!r||!r.proxy)throw t;Tc(r.proxy,"onError",t)}}function Og(e,t){return e?[...new Set([].concat(e,t))]:t}function Ig(e){const t=e._context.config;var n;t.errorHandler=Ee(e,Eg),n=t.optionMergeStrategies,ke.forEach((e=>{n[e]=Og}));const o=t.globalProperties;o.$set=Cg,o.$applyOptions=kg,function(e){Ce.forEach((t=>t(e)))}(e)}const $g=uc("upm");function Lg(){return Yn($g)}function Pg(e){const t=function(e){return qt(function(e){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(Sc(hl().meta,e)))))}(e);return Wn($g,t),t}function Mg(){return hl()}function Ag(){return history.state&&history.state.__id__||1}let Bg;function Rg(){var e;return Bg||(Bg=__uniConfig.tabBar&&qt((e=__uniConfig.tabBar,gl()&&e.list&&e.list.forEach((e=>{bl(e,["text"])})),e))),Bg}const Ng=window.CSS&&window.CSS.supports;function Fg(e){return Ng&&(Ng(e)||Ng.apply(window.CSS,e.split(":")))}const jg=Fg("top:env(a)"),Dg=Fg("top:constant(a)"),qg=Fg("backdrop-filter:blur(10px)"),Vg=(()=>jg?"env":Dg?"constant":"")();function Hg(e){return Vg?`calc(${e}px + ${Vg}(safe-area-inset-bottom))`:`${e}px`}const Ug=new Map;function zg(){return Ug}function Wg(){const e=[],t=Ug.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Yg(e,t=!0){const n=Ug.get(e);n.$.__isUnload=!0,Tc(n,"onUnload"),Ug.delete(e),t&&function(e){const t=Zg.get(e);t&&(Zg.delete(e),Qg.pruneCacheEntry(t))}(e)}let Xg=Ag();function Gg(e){const t=Lg();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=Le(o.navigationBar,__uniConfig.themeConfig,i).titleColor;return{id:s,path:se(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=Gg(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),Ug.set(Jg(t.path,t.id),e)}function Jg(e,t){return e+"$$"+t}const Zg=new Map,Qg={get:e=>Zg.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Qg.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Qg.delete(n),Qg.pruneCacheEntry(e),kn((()=>{Ug.forEach(((e,t)=>{e.$.isUnmounted&&Ug.delete(t)}))}))}}))}(e),Zg.set(e,t)},delete(e){Zg.get(e)&&Zg.delete(e)},forEach(e){Zg.forEach(e)}};function em(e,t){!function(e){const t=nm(e),{body:n}=document;om&&n.removeAttribute(om),t&&n.setAttribute(t,""),om=t}(e),function(e){let t=0;if(e.isTabBar){const e=Rg();e.shown&&(t=parseInt(e.height))}var n;cc({"--window-top":(n=0,Vg?`calc(${n}px + ${Vg}(safe-area-inset-top))`:`${n}px`),"--window-bottom":Hg(t)})}(t),function(e){const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}(t),function(e,t){document.removeEventListener("touchmove",kc),rm&&document.removeEventListener("scroll",rm);if(t.disableScroll)return document.addEventListener("touchmove",kc);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&&By.publishHandler("onPageScroll",{scrollTop:o},e),n&&By.emit(e+".onPageScroll",{scrollTop:o})}}(s,n,r));o&&(i.onReachBottomDistance=t.onReachBottomDistance||50,i.onReachBottom=()=>By.publishHandler("onReachBottom",{},s));rm=Oc(i),requestAnimationFrame((()=>document.addEventListener("scroll",rm)))}(e,t)}function tm(e){const t=nm(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function nm(e){return e.type.__scopeId}let om,rm;function im(e){const t=fl({history:am(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:sm});e.router=t,e.use(t)}const sm=(e,t,n)=>{if(n)return n};function am(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),la(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;Yg(Jg(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const lm={install(e){Ig(e),qc(e),Zc(e),e.config.warnHandler||(e.config.warnHandler=cm),im(e)}};function cm(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 um={class:"uni-async-loading"},dm=Jr("i",{class:"uni-loading"},null,-1),fm=ru({name:"AsyncLoading",render:()=>(jr(),Ur("div",um,[dm]))});function pm(){window.location.reload()}const hm=ru({name:"AsyncError",setup(){xl();const{t:e}=_l();return()=>Jr("div",{class:"uni-async-error",onClick:pm},[e("uni.async.error")],8,["onClick"])}});let gm;function mm(){return gm}function vm(e){gm=e,Object.defineProperty(gm.$.ctx,"$children",{get:()=>Wg().map((e=>e.$vm))});const t=gm.$.appContext.app;t.component(fm.name)||t.component(fm.name,fm),t.component(hm.name)||t.component(hm.name,hm),function(e){e.$vm=e,e.$mpType="app";const t=tn(_l().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(gm),function(e,t){const n=e.$options||{};n.globalData=x(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(gm),Kc(),zl()}function ym(e,{clone:t,init:n,setup:o,before:r}){t&&(e=x({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=ci();n(r.proxy);const s=o(r);if(i)return i(s||e,t)},e}function bm(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?ym(e.default,t):ym(e,t)}function _m(e){return bm(e,{clone:!0,init:Kg,setup(e){e.$pageInstance=e;const t=Mg(),n=ye(t.query);e.attrs.__pageQuery=n,e.proxy.$page.options=n;const o=Lg();var r,i,s;return Lo((()=>{em(e,o)})),Po((()=>{tm(e);const{onReady:n}=e;n&&X(n),Tm(t)})),xo((()=>{if(!e.__isVisible){em(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&X(n),kn((()=>{Tm(t)}))}}),"ba",r),function(e,t){xo(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&X(t)}})),i=o.id,By.subscribe(Pl(i,"invokeViewApi"),s?s(Al):Al),Bo((()=>{!function(e){By.unsubscribe(Pl(e,"invokeViewApi")),Object.keys(Ll).forEach((t=>{0===t.indexOf(e+".")&&delete Ll[t]}))}(o.id)})),n}})}function wm(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Wm(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Ry.emit("onResize",{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function xm(e){N(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Ry.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function Sm(){const{emit:e}=Ry;"visible"===document.visibilityState?e("onAppEnterForeground",x({},_p)):e("onAppEnterBackground")}function Tm(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&Tc("onTabItemTap",{index:n,text:t,pagePath:o})}function km(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 Cm(e,t,n){const o=qt({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,f=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=f.currentTime,n.fullscreen||s()}else{if(!e.pageGesture)return void(o.gestureType="stop");o.gestureType="volume",o.volumeOld=f.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"}}}const Em=ou({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=tn(null),i=tn(null),s=cu(r,t),{state:a}=ah(),{$attrs:l}=bh({excludeListeners:!0}),{t:c}=_l();Ol();const{videoRef:u,state:d,play:f,pause:p,seek:h,playbackRate:g,toggle:m,onDurationChange:v,onLoadedMetadata:y,onProgress:b,onWaiting:_,onVideoError:w,onPlay:x,onPause:S,onEnded:T,onTimeUpdate:k}=function(e,t,n){const o=tn(null),r=yi((()=>wu(e.src))),i=qt({start:!1,src:r,playing:!1,currentTime:0,duration:0,progress:0,buffered:0});function s(e){const t=e.target,n=t.buffered;n.length&&(i.buffered=n.end(n.length-1)/t.duration*100)}return Kn((()=>r.value),(()=>{i.playing=!1,i.currentTime=0})),Kn((()=>i.buffered),(e=>{n("progress",{},{buffered:e})})),{videoRef:o,state:i,play:function(){const e=o.value;i.start=!0,e.play()},pause:function(){o.value.pause()},seek:function(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)},playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;i.playing?e.pause():e.play()},onDurationChange:function({target:e}){i.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,r=t.target;o>0&&(r.currentTime=o),n("loadedmetadata",t,{width:r.videoWidth,height:r.videoHeight,duration:r.duration}),s(t)},onProgress:s,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){i.playing=!1,n("error",e,{})},onPlay:function(e){i.start=!0,i.playing=!0,n("play",e,{})},onPause:function(e){i.playing=!1,n("pause",e,{})},onEnded:function(e){i.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target,o=i.currentTime=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,s),{state:E,danmuRef:O,updateDanmu:I,toggleDanmu:$,sendDanmu:L}=function(e,t){const n=tn(null),o=qt({enable:Boolean(e.enableDanmu)});let r={time:0,index:-1};const i=C(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:P,onFullscreenChange:M,emitFullscreenChange:A,toggleFullscreen:B,requestFullScreen:R,exitFullScreen:N}=function(e,t,n,o,r){const i=qt({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 Bo(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:D,onTouchmove:q}=Cm(e,u,P),{state:V,progressRef:H,ballRef:U,clickProgress:z,toggleControls:W}=function(e,t,n){const o=tn(null),r=tn(null),i=yi((()=>e.showCenterPlayBtn&&!t.start)),s=tn(!0),a=yi((()=>!i.value&&e.controls&&s.value)),l=qt({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 Bo((()=>{c&&clearTimeout(c)})),Kn((()=>l.controlsShow&&t.playing&&!l.controlsTouching),(e=>{e?u():d()})),Kn([()=>t.currentTime,()=>{e.duration}],(function(){l.touching||(t.progress=t.currentTime/t.duration*100)})),Po((()=>{const e=ge(!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 f(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",f),u.addEventListener("touchcancel",f)})),{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,h);return function(e,t,n,o,r,i,s){const a={play:e,pause:t,seek:n,sendDanmu:o,playbackRate:r,requestFullScreen:i,exitFullScreen:s};_g(((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in a&&a[e](n)}),xg(),!0)}(f,p,h,L,g,R,N),()=>Jr("uni-video",{ref:r,id:e.id},[Jr("div",{ref:i,class:"uni-video-container",onTouchstart:j,onTouchend:D,onTouchmove:q,onFullscreenchange:_s(M,["stop"]),onWebkitfullscreenchange:_s((e=>M(e,!0)),["stop"])},[Jr("video",ri({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,onClick:W,onDurationchange:v,onLoadedmetadata:y,onProgress:b,onWaiting:_,onError:w,onPlay:x,onPause:S,onEnded:T,onTimeupdate:e=>{k(e),I(e)},onWebkitbeginfullscreen:()=>A(!0),onX5videoenterfullscreen:()=>A(!0),onWebkitendfullscreen:()=>A(!1),onX5videoexitfullscreen:()=>A(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onClick","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),qo(Jr("div",{class:"uni-video-bar uni-video-bar-full",onClick:_s((()=>{}),["stop"])},[Jr("div",{class:"uni-video-controls"},[qo(Jr("div",{class:{"uni-video-control-button":!0,"uni-video-control-button-play":!d.playing,"uni-video-control-button-pause":d.playing},onClick:_s(m,["stop"])},null,10,["onClick"]),[[ws,e.showPlayBtn]]),qo(Jr("div",{class:"uni-video-current-time"},[km(d.currentTime)],512),[[ws,e.showProgress]]),qo(Jr("div",{ref:H,class:"uni-video-progress-container",onClick:_s(z,["stop"])},[Jr("div",{class:"uni-video-progress"},[Jr("div",{style:{width:d.buffered+"%"},class:"uni-video-progress-buffered"},null,4),Jr("div",{ref:U,style:{left:d.progress+"%"},class:"uni-video-ball"},[Jr("div",{class:"uni-video-inner"},null)],4)])],8,["onClick"]),[[ws,e.showProgress]]),qo(Jr("div",{class:"uni-video-duration"},[km(Number(e.duration)||d.duration)],512),[[ws,e.showProgress]])]),qo(Jr("div",{class:{"uni-video-danmu-button":!0,"uni-video-danmu-button-active":E.enable},onClick:_s($,["stop"])},[c("uni.video.danmu")],10,["onClick"]),[[ws,e.danmuBtn]]),qo(Jr("div",{class:{"uni-video-fullscreen":!0,"uni-video-type-fullscreen":P.fullscreen},onClick:_s((()=>B(!P.fullscreen)),["stop"])},null,10,["onClick"]),[[ws,e.showFullscreenBtn]])],8,["onClick"]),[[ws,V.controlsShow]]),qo(Jr("div",{ref:O,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[ws,d.start&&E.enable]]),V.centerPlayBtnShow&&Jr("div",{class:"uni-video-cover",onClick:_s((()=>{}),["stop"])},[Jr("div",{class:"uni-video-cover-play-button",onClick:_s(f,["stop"])},null,8,["onClick"]),Jr("p",{class:"uni-video-cover-duration"},[km(Number(e.duration)||d.duration)])],8,["onClick"]),Jr("div",{class:{"uni-video-toast":!0,"uni-video-toast-volume":"volume"===F.gestureType}},[Jr("div",{class:"uni-video-toast-title"},[c("uni.video.volume")]),Jr("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"},[Jr("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)]),Jr("div",{class:"uni-video-toast-value"},[Jr("div",{style:{width:100*F.volumeNew+"%"},class:"uni-video-toast-value-content"},[Jr("div",{class:"uni-video-toast-volume-grids"},[Xo(10,(()=>Jr("div",{class:"uni-video-toast-volume-grids-item"},null)))])],4)])],2),Jr("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":"progress"===F.gestureType}},[Jr("div",{class:"uni-video-toast-title"},[km(F.currentTimeNew)," / ",km(d.duration)])],2),Jr("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id"])}}),Om=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},Im=ce((()=>Ry.on("onWebInvokeAppService",Om))),$m=ou({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},setup(e){Im();const t=tn(null),n=tn(null),{$attrs:o,$excludeAttrs:r,$listeners:i}=bh({excludeListeners:!0});let s;return(()=>{const r=document.createElement("iframe");Xn((()=>{for(const e in o.value)if(k(o.value,e)){const t=o.value[e];r[e]=t}})),Xn((()=>{r.src=wu(e.src)})),n.value=r,s=function(e,t,n){return()=>{var o,r;if(n){const{top:n,left:o,width:r,height:i}=e.value.getBoundingClientRect();le(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:r+"px",height:i+"px"})}else le(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(r=e.value)?void 0:r.style.height)||"150px"})}}(t,n,e.fullscreen),e.fullscreen&&document.body.appendChild(r)})(),Po((()=>{var o;s(),!e.fullscreen&&(null==(o=t.value)||o.appendChild(n.value))})),_o((()=>{e.fullscreen&&(n.value.style.display="block")})),wo((()=>{e.fullscreen&&(n.value.style.display="none")})),Bo((()=>{e.fullscreen&&document.body.removeChild(n.value)})),()=>Jr(Mr,null,[Jr("uni-web-view",ri({class:e.fullscreen?"uni-webview--fullscreen":""},i.value,r.value,{ref:t}),[Jr(wp,{onResize:s},null,8,["onResize"])],16)])}});const Lm=ce((()=>{sf.forEach((e=>{Pm.prototype[e]=function(t){$(t)&&this._events[e].push(t)}})),af.forEach((e=>{Pm.prototype[e]=function(t){var n=this._events[e.replace("off","on")],o=n.indexOf(t);o>=0&&n.splice(o,1)}}))}));class Pm{constructor(){this._src="";var e=this._audio=new Audio;this._stoping=!1;["src","autoplay","loop","duration","currentTime","paused","volume"].forEach((t=>{Object.defineProperty(this,t,{set:"src"===t?t=>(e.src=wu(t),this._src=t,t):n=>(e[t]=n,n),get:"src"===t?()=>this._src:()=>e[t]})})),this.startTime=0,Object.defineProperty(this,"obeyMuteSwitch",{set:()=>!1,get:()=>!1}),Object.defineProperty(this,"buffered",{get(){var t=e.buffered;return t.length?t.end(t.length-1):0}}),this._events={},sf.forEach((e=>{this._events[e]=[]})),e.addEventListener("loadedmetadata",(()=>{var t=Number(this.startTime)||0;t>0&&(e.currentTime=t)}));var t=["canplay","pause","seeking","seeked","timeUpdate"];t.concat(["play","ended","error","waiting"]).forEach((n=>{e.addEventListener(n.toLowerCase(),(()=>{if(this._stoping&&t.indexOf(n)>=0)return;const e=`on${n.slice(0,1).toUpperCase()}${n.slice(1)}`;this._events[e].forEach((e=>{e()}))}),!1)})),Lm()}play(){this._stoping=!1,this._audio.play()}pause(){this._audio.pause()}stop(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach((e=>{e()}))}seek(e){this._stoping=!1,"number"!=typeof(e=Number(e))||isNaN(e)||(this._audio.currentTime=e)}destroy(){this.stop()}}const Mm=gd(0,(()=>new Pm)),Am=md("makePhoneCall",(({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t()))),Bm=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Rm;function Nm(){if(Rm=Rm||Bm.__DC_STAT_UUID,!Rm){Rm=Date.now()+""+Math.floor(1e7*Math.random());try{Bm.__DC_STAT_UUID=Rm}catch(e){}}return Rm}function Fm(){if(!0!==__uniConfig.darkmode)return L(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function jm(){let e,t="0",n="",o="phone";const r=navigator.language;if(Tu){e="iOS";const o=xu.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=xu.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(Su){e="Android";const o=xu.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=xu.match(/\((.+?)\)/),i=r?r[1].split(";"):xu.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=Iu(),n=$u(t),o=Lu(t,n),r=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=Pu(o);let s=window.innerHeight;const a=nc.top,l={left:nc.left,right:i-nc.right,top:nc.top,bottom:s-nc.bottom,width:i-nc.left-nc.right,height:s-nc.top-nc.bottom},{top:c,bottom:u}=ac();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:nc.top,right:nc.right,bottom:nc.bottom,left:nc.left},screenTop:r-s}}));let qm,Vm=!0;function Hm(){Vm&&(qm=jm())}const Um=gd(0,(()=>{Hm();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:s,deviceType:a}=qm;return{brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Nm(),deviceOrientation:s,deviceType:a,model:o,platform:r,system:i}})),zm=gd(0,(()=>{Hm();const{theme:e,language:t,browserName:n,browserVersion:o}=qm;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Cf?Cf():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:""}})),Wm=gd(0,(()=>{Vm=!0,Hm(),Vm=!1;const e=Dm(),t=Um(),n=zm();Vm=!0;const{ua:o,browserName:r,browserVersion:i,osname:s,osversion:a}=qm,l=x(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 N(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}(l)})),Ym=md("getSystemInfo",((e,{resolve:t})=>t(Wm()))),Xm=!!window.navigator.vibrate,Gm=md("vibrateLong",((e,{resolve:t,reject:n})=>{Xm&&window.navigator.vibrate(400)?t():n("vibrateLong:fail")}));const Km=md("setClipboardData",((e,t)=>{return n=void 0,o=[e,t],r=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const r=document.createElement("textarea");r.id="#clipboard",r.style.position="fixed",r.style.top="-9999px",r.style.zIndex="-9999",document.body.appendChild(r),r.value=e,r.select(),r.setSelectionRange(0,r.value.length);const i=document.execCommand("Copy",!1);r.blur(),i?t():n()}(e,t,n)}},new Promise(((e,t)=>{var i=e=>{try{a(r.next(e))}catch(n){t(n)}},s=e=>{try{a(r.throw(e))}catch(n){t(n)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,s);a((r=r.apply(n,o)).next())}));var n,o,r}),0,Rf);const Jm=gd(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}));function Zm(e){const t=localStorage&&localStorage.getItem(e);if(!L(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=L(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 Qm=gd(0,(e=>{try{return Zm(e)}catch(t){return""}})),ev=gd(0,(e=>{localStorage&&localStorage.removeItem(e)})),tv=gd(0,(()=>{localStorage&&localStorage.clear()}));const nv=md("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e}),0,qf),ov={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 rv({count:e,sourceType:t,type:n,extension:o}){const r=document.createElement("input");return r.type="file",le(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}/${ov[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}ih();let iv=null;const sv=md("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:r,reject:i})=>{Cl();const{t:s}=_l();iv&&(document.body.removeChild(iv),iv=null),iv=rv({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(iv),iv.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||vp(t),i)}),re))},tempFiles:o})})),iv.click(),sh()||console.warn(s("uni.chooseFile.notUserActivation"))}),0,Df);let av=null;const lv=md("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{Cl();const{t:i}=_l();av&&(document.body.removeChild(av),av=null),av=rv({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(av),av.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||vp(t),i)}),oe))},tempFiles:r})})),av.click(),sh()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,Nf),cv={esc:["Esc","Escape"],enter:["Enter"]},uv=Object.keys(cv);const dv=Jr("div",{class:"uni-mask"},null,-1);function fv(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),ks(uo({setup:()=>()=>(jr(),Ur(e,t,null,16))}))}function pv(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function hv(e,{onEsc:t,onEnter:n}){const o=tn(e.visible),{key:r,disable:i}=function(){const e=tn(""),t=tn(!1),n=n=>{if(t.value)return;const o=uv.find((e=>-1!==cv[e].indexOf(n.key)));o&&(e.value=o),kn((()=>e.value=""))};return Po((()=>{document.addEventListener("keyup",n)})),Bo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}();return Kn((()=>e.visible),(e=>o.value=e)),Kn((()=>o.value),(e=>i.value=!e)),Xn((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let gv=0,mv="";function vv(e){let t=gv;gv+=e?1:-1,gv=Math.max(0,gv),gv>0?0===t&&(mv=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=mv,mv="")}const yv=ru({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=qt({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 Jr(wh,{style:n,onTouchstart:lu(c),onTouchmove:lu(d),onTouchend:lu(u)},{default:()=>[Jr(Ah,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:a},{default:()=>[Jr("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 bv(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const _v=ru({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Po((()=>vv(!0))),Ro((()=>vv(!1)));const n=tn(null),o=tn(bv(e));let r;function i(){r||kn((()=>{t("close")}))}function s(e){o.value=e.detail.current}Kn((()=>e.current),(()=>o.value=bv(e))),Po((()=>{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 Jr("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},[Jr(ig,{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=>Jr(ag,null,{default:()=>[Jr(yv,{src:e},null,8,["src"])]}))),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!zr(r)?t:{default:()=>[t],_:1}),8,["current","onChange"]),Jr("div",{style:a},[gc("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 wv,xv=null;const Sv=()=>{xv=null,kn((()=>{null==wv||wv.unmount(),wv=null}))},Tv=md("previewImage",((e,{resolve:t})=>{xv?x(xv,e):(xv=qt(e),kn((()=>{wv=fv(_v,xv,Sv),wv.mount(pv("u-a-p"))}))),t()}),0,Vf);let kv=null;const Cv=md("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{Cl();const{t:r}=_l();kv&&(document.body.removeChild(kv),kv=null),kv=rv({sourceType:e,extension:t,type:"video"}),document.body.appendChild(kv),kv.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||vp(this.tempFile),o}});const i=document.createElement("video");if(void 0!==i.onloadedmetadata){const e=vp(t);i.onloadedmetadata=function(){yp(e),n(x(r,{duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0}))},setTimeout((()=>{i.onloadedmetadata=null,yp(e),n(r)}),300),i.src=e}else n(r)})),kv.click(),sh()||console.warn(r("uni.chooseFile.notUserActivation"))}),0,Ff),Ev=hd("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(L(t)||t instanceof ArrayBuffer)u=t;else if("json"===d)try{u=JSON.stringify(t)}catch(g){u=t.toString()}else if("urlencoded"===d){const e=[];for(const n in t)k(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));u=e.join("&")}else u=t.toString();const f=new XMLHttpRequest,p=new Ov(f);f.open(o,e);for(const m in n)k(n,m)&&f.setRequestHeader(m,n[m]);const h=setTimeout((function(){f.onload=f.onabort=f.onerror=null,p.abort(),c("timeout")}),a);return f.responseType=i,f.onload=function(){clearTimeout(h);const e=f.status;let t="text"===i?f.responseText:f.response;if("text"===i&&"json"===r)try{t=JSON.parse(t)}catch(g){}l({data:t,statusCode:e,header:Iv(f.getAllResponseHeaders()),cookies:[]})},f.onabort=function(){clearTimeout(h),c("abort")},f.onerror=function(){clearTimeout(h),c()},f.withCredentials=s,f.send(u),p}),0,Wf);class Ov{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 Iv(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 $v{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){$(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 Lv=hd("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 $v;return C(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(mp(e)):gp(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()},o.onabort=function(){clearTimeout(n),c("abort")},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort"):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout")}),a),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Yf),Pv=[],Mv={open:"",close:"",error:"",message:""};class Av{constructor(e,t,n){let o;this._callbacks={open:[],close:[],error:[],message:[]};try{const n=this._webSocket=new WebSocket(e,t);n.binaryType="arraybuffer";["open","close","error","message"].forEach((e=>{this._callbacks[e]=[],n.addEventListener(e,(t=>{const{data:n,code:o,reason:r}=t,i="message"===e?{data:n}:"close"===e?{code:o,reason:r}:{};if(this._callbacks[e].forEach((t=>{try{t(i)}catch(n){console.error(`thirdScriptError\n${n};at socketTask.on${z(e)} callback function\n`,n)}})),this===Pv[0]&&Mv[e]&&Ry.invokeOnCallback(Mv[e],i),"error"===e||"close"===e){const e=Pv.indexOf(this);e>=0&&Pv.splice(e,1)}}))}));["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach((e=>{Object.defineProperty(this,e,{get:()=>n[e]})}))}catch(r){o=r}n&&n(o,this)}send(e){const t=(e||{}).data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw new Error("SocketTask.readyState is not OPEN");n.send(t),ue(e,"sendSocketMessage:ok")}catch(o){ue(e,`sendSocketMessage:fail ${o}`)}}close(e={}){const t=this._webSocket;try{const n=e.code||1e3,o=e.reason;L(o)?t.close(n,o):t.close(n),ue(e,"closeSocket:ok")}catch(n){ue(e,`closeSocket:fail ${n}`)}}onOpen(e){this._callbacks.open.push(e)}onMessage(e){this._callbacks.message.push(e)}onError(e){this._callbacks.error.push(e)}onClose(e){this._callbacks.close.push(e)}}const Bv=hd("connectSocket",(({url:e,protocols:t},{resolve:n,reject:o})=>new Av(e,t,((e,t)=>{e?o(e.toString()):(Pv.push(t),n())}))),0,Xf);function Rv(e){const t=`onSocket${z(e)}`;return pd(t,(()=>{Mv[e]=t}))}const Nv=Rv("error"),Fv=md("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===Tc("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(mm().$router.go(-e.delta),t()):n("onBackPress")}),0,ep);function jv({type:e,url:t,tabBarText:n,events:o},r){const i=mm().$router,{path:s,query:a}=function(e){const[t,n]=e.split("?",2);return{path:t,query:_e(n||"")}}(t);return new Promise(((t,l)=>{const c=function(e,t){return{__id__:t||++Xg,__type__:e}}(e,r);i["navigateTo"===e?"push":"replace"]({path:s,query:a,state:c,force:!0}).then((r=>{if(ga(r))return l(r.message);if("switchTab"===e&&(i.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=i.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 xe(c.__id__,o),t({eventChannel:e.eventChannel})}return t()}))}))}const Dv=md("navigateTo",(({url:e,events:t},{resolve:n,reject:o})=>jv({type:"navigateTo",url:e,events:t}).then(n).catch(o)),0,Kf);const qv=md("redirectTo",(({url:e},{resolve:t,reject:n})=>(function(){const e=yc();if(!e)return;const t=e.$page;Yg(Jg(t.path,t.id))}(),jv({type:"redirectTo",url:e}).then(t).catch(n))),0,Jf);const Vv=md("reLaunch",(({url:e},{resolve:t,reject:n})=>(function(){const e=zg().keys();for(const t of e)Yg(t)}(),jv({type:"reLaunch",url:e}).then(t).catch(n))),0,Zf);function Hv(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}const Uv=md("switchTab",(({url:e,tabBarText:t},{resolve:n,reject:o})=>(function(){const e=wc();if(!e)return;const t=zg(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Yg(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,Tc(e,"onHide"))}(),jv({type:"switchTab",url:e,tabBarText:t},function(e){const t=zg().values();for(const n of t){const t=n.$page;if(Hv(e,t))return n.$.__isActive=!0,t.id}}(e)).then(n).catch(o))),0,Qf);function zv(e){__uniConfig.darkmode&&Ry.on("onThemeChange",e)}function Wv(e){Ry.off("onThemeChange",e)}function Yv(e){let t={};return __uniConfig.darkmode&&(t=Le(e,__uniConfig.themeConfig,Fm())),__uniConfig.darkmode?t:e}const Xv={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Gv=uo({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=tn(""),o=()=>s.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),s=hv(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}}),a=function(e){const t=tn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Xv[e].cancelColor})(e,t)};return Xn((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Fm()&&n({theme:"dark"}),zv(n))):Wv(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:f}=e;return n.value=o,Jr(Yi,{name:"uni-fade"},{default:()=>[qo(Jr("uni-modal",{onTouchmove:oc},[dv,Jr("div",{class:"uni-modal"},[t&&Jr("div",{class:"uni-modal__hd"},[Jr("strong",{class:"uni-modal__title",textContent:t},null,8,["textContent"])]),d?Jr("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:f,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):Jr("div",{class:"uni-modal__bd",onTouchmovePassive:rc,textContent:o},null,40,["onTouchmovePassive","textContent"]),Jr("div",{class:"uni-modal__ft"},[l&&Jr("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),Jr("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[ws,s.value]])]})}}});let Kv;const Jv=ce((()=>{Ry.on("onHidePopup",(()=>Kv.visible=!1))}));let Zv;function Qv(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&Kv.editable&&(o.content=t),Zv&&Zv(o)}const ey=md("showModal",((e,{resolve:t})=>{Jv(),Zv=t,Kv?(x(Kv,e),Kv.visible=!0):(Kv=qt(e),kn((()=>(fv(Gv,Kv,Qv).mount(pv("u-a-m")),kn((()=>Kv.visible=!0))))))}),0,lp),ty={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==cp.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},ny={light:"#fff",dark:"rgba(255,255,255,0.9)"},oy=e=>ny[e],ry=uo({name:"Toast",props:ty,setup(e){Sl(),Tl();const{Icon:t}=function(e){const t=tn(oy(Fm())),n=({theme:e})=>t.value=oy(e);Xn((()=>{e.visible?zv(n):Wv(n)}));return{Icon:yi((()=>{switch(e.icon){case"success":return Jr(gc(pc,t.value,38),{class:"uni-toast__icon"});case"error":return Jr(gc(hc,t.value,38),{class:"uni-toast__icon"});case"loading":return Jr("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=hv(e,{});return()=>{const{mask:o,duration:r,title:i,image:s}=e;return Jr(Yi,{name:"uni-fade"},{default:()=>[qo(Jr("uni-toast",{"data-duration":r},[o?Jr("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:oc},null,40,["onTouchmove"]):"",s||t.value?Jr("div",{class:"uni-toast"},[s?Jr("img",{src:s,class:"uni-toast__icon"},null,10,["src"]):t.value,Jr("p",{class:"uni-toast__content"},[i])]):Jr("div",{class:"uni-sample-toast"},[Jr("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[ws,n.value]])]})}}});let iy,sy,ay="";const ly=Ae();function cy(e){iy?x(iy,e):(iy=qt(x(e,{visible:!1})),kn((()=>{ly.run((()=>{Kn([()=>iy.visible,()=>iy.duration],(([e,t])=>{if(e){if(sy&&clearTimeout(sy),"onShowLoading"===ay)return;sy=setTimeout((()=>{hy("onHideToast")}),t)}else sy&&clearTimeout(sy)}))})),Ry.on("onHidePopup",(()=>hy("onHidePopup"))),fv(ry,iy,(()=>{})).mount(pv("u-a-t"))}))),setTimeout((()=>{iy.visible=!0}),10)}const uy=md("showToast",((e,{resolve:t,reject:n})=>{cy(e),ay="onShowToast",t()}),0,up),dy={icon:"loading",duration:1e8,image:""},fy=md("showLoading",((e,{resolve:t,reject:n})=>{x(e,dy),cy(e),ay="onShowLoading",t()}),0,ap),py=md("hideLoading",((e,{resolve:t,reject:n})=>{hy("onHideLoading"),t()}));function hy(e){const{t:t}=_l();if(!ay)return;let n="";if("onHideToast"===e&&"onShowToast"!==ay?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==ay&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);ay="",setTimeout((()=>{iy.visible=!1}),10)}const gy=md("loadFontFace",(({family:e,source:t,desc:n},{resolve:o,reject:r})=>{(function(e,t,n){const o=document.fonts;if(o){const r=new FontFace(e,t,n);return r.load().then((()=>{o.add&&o.add(r)}))}return new Promise((o=>{const r=document.createElement("style"),i=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:r,variant: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,n).then((()=>{o()})).catch((e=>{r(`loadFontFace:fail ${e}`)}))}));function my(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Ry.emit("onNavigationBarChange",{titleText:t})}Xn(t),_o(t)}const vy=md("setNavigationBarTitle",((e,{resolve:t,reject:n})=>{!function(e,t,n,o,r){if(!e)return r("page not found");const{navigationBar:i}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:r,timingFunc: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()}(bc(),"setNavigationBarTitle",e,t,n)})),yy=md("pageScrollTo",(({scrollTop:e,selector:t,duration:n},{resolve:o})=>{!function(e,t,n){if(L(e)){const t=document.querySelector(e);if(t){const{height:o,top:r}=t.getBoundingClientRect();e=r+window.pageYOffset,n&&(e-=o)}}e<0&&(e=0);const o=document.documentElement,{clientHeight:r,scrollHeight:i}=o;if(e=Math.min(e,i-r),0===t)return void(o.scrollTop=document.body.scrollTop=e);if(window.scrollY===e)return;const s=t=>{if(t<=0)return void window.scrollTo(0,e);const n=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/t*10),s(t-10)}))};s(t)}(t||e||0,n,!0),o()}),0,sp),by=["text","iconPath","iconfont","selectedIconPath","visible"],_y=["color","selectedColor","backgroundColor","borderStyle","midButton"],wy=["badge","redDot"];function xy(e,t,n){t.forEach((function(t){k(n,t)&&(e[t]=n[t])}))}function Sy(e,t,n){const o=Rg();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;xy(n,by,t);const{pagePath:i}=t;if(i){const t=se(i);t!==r&&function(e,t,n){const o=$c(se(t));if(o){const{meta:e}=o;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const r=$c(se(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=ae(n))}}(e,r,t)}break;case"setTabBarStyle":xy(o,_y,t);break;case"showTabBarRedDot":xy(o.list[t.index],wy,{badge:"",redDot:!0});break;case"setTabBarBadge":xy(o.list[t.index],wy,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":xy(o.list[t.index],wy,{badge:"",redDot:!1})}n()}const Ty=md("hideTabBar",((e,{resolve:t})=>{Sy("hideTabBar",e||{},t)})),ky=md("showTabBar",((e,{resolve:t})=>{Sy("showTabBar",e||{},t)})),Cy=ru({name:"TabBar",setup(){const e=tn([]),t=Rg(),n=function(e,t){const n=Ut(e),o=n?qt(Yv(e)):Yv(e);return __uniConfig.darkmode&&n&&Kn(e,(e=>{const t=Yv(e);for(const n in t)o[n]=t[n]})),t&&zv(t),o}(t,(()=>{const e=Yv(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}tn(x({type:"midButton"},e.midButton)),Xn(n)}(n,e),function(e){Kn((()=>e.shown),(t=>{cc({"--window-bottom":Hg(t?parseInt(e.height):0)})}))}(n);const o=function(e,t,n){return Xn((()=>{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=se(o);i===__uniRoutes[0].alias&&(i="/"),e.path!==i?Uv({from:"tabBar",url:i,tabBarText:r}):Tc("onTabItemTap",{index:n,text:r,pagePath:o})}}(hl(),n,e),{style:r,borderStyle:i,placeholderStyle:s}=function(e){const t=yi((()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||qg&&n&&"none"!==n&&(t=Ey[n]),{backgroundColor:t||"#f7f7fa",backdropFilter:"none"!==n?"blur(10px)":n}})),n=yi((()=>{const{borderStyle:t}=e;return{backgroundColor:Oy[t]||t}})),o=yi((()=>({height:e.height})));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return Po((()=>{n.iconfontSrc&&gy({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 Jr("div",{key:s,class:"uni-tabbar__item",onClick:a(r,s)},[Iy(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 Jr("uni-tabbar",{class:"uni-tabbar-"+n.position},[Jr("div",{class:"uni-tabbar",style:r.value},[Jr("div",{class:"uni-tabbar-border",style:i.value},null,4),t],4),Jr("div",{class:"uni-placeholder",style:s.value},null,4)],2)}}});const Ey={dark:"rgb(0, 0, 0, 0.8)",light:"rgb(250, 250, 250, 0.8)",extralight:"rgb(250, 250, 250, 0.8)"},Oy={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function Iy(e,t,n,o,r,i){const{height:s}=i;return Jr("div",{class:"uni-tabbar__bd",style:{height:s}},[n?Ly(n,o||"rgb(0, 0, 0, 0.8)",r,i):t&&$y(t,r,i),r.text&&Py(e,r,i),r.redDot&&My(r.badge)],4)}function $y(e,t,n){const{type:o,text:r}=t,{iconWidth:i}=n;return Jr("div",{class:"uni-tabbar__icon"+(r?" uni-tabbar__icon__diff":""),style:{width:i,height:i}},["midButton"!==o&&Jr("img",{src:wu(e)},null,8,["src"])],6)}function Ly(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 Jr("div",{class:l,style:c},["midButton"!==i&&Jr("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function Py(e,t,n){const{iconPath:o,text:r}=t,{fontSize:i,spacing:s}=n;return Jr("div",{class:"uni-tabbar__label",style:{color:e,fontSize:i,lineHeight:o?"normal":1.8,marginTop:o?s:"inherit"}},[r],4)}function My(e){return Jr("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const Ay=ru({name:"Layout",setup(e,{emit:t}){const n=tn(null);lc({"--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=hl();return{routeKey:yi((()=>Jg("/"+e.meta.route,Ag()))),isTabBar:yi((()=>e.meta.isTabBar)),routeCache:Qg}}(),{layoutState:r,windowState:i}=function(){Mg();{const e=qt({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Kn((()=>e.marginWidth),(e=>lc({"--window-margin":e+"px"}))),Kn((()=>e.leftWindowWidth+e.marginWidth),(e=>{lc({"--window-left":e+"px"})})),Kn((()=>e.rightWindowWidth+e.marginWidth),(e=>{lc({"--window-right":e+"px"})})),{layoutState:e,windowState:yi((()=>({})))}}}();!function(e,t){const n=Mg();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=$c(n.path,!0);e&&(i=e.meta)}const s=parseInt(String((k(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,kn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")}))):(e.marginWidth=0,kn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}Kn([()=>n.path],o),Po((()=>{o(),window.addEventListener("resize",o)}))}(r,n);const s=function(e){const t=Mg(),n=Rg(),o=yi((()=>t.meta.isTabBar&&n.shown));return lc({"--tab-bar-height":n.height}),o}(),a=function(e){const t=tn(!1);return yi((()=>({"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 Jr(dl,null,{default:Dn((({Component:o})=>[(jr(),Ur(yo,{matchBy:"key",cache:n},[(jr(),Ur(zo(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o),t=function(e){return qo(Jr(Cy,null,null,512),[[ws,e.value]])}(s);return Jr("uni-app",{ref:n,class:a.value},[e,t],2)}}});const By=x(Bl,{publishHandler(e,t,n){Ry.subscribeHandler(e,t,n)}}),Ry=x(Uc,{publishHandler(e,t,n){By.subscribeHandler(e,t,n)}}),Ny=ru({name:"PageBody",setup:(e,t)=>()=>Jr(Mr,null,[!1,Jr("uni-page-wrapper",null,[Jr("uni-page-body",null,[Go(t.slots,"default")])],16)])}),Fy=ru({name:"Page",setup(e,t){const n=Pg(Ag());return n.navigationBar,my(n),()=>Jr("uni-page",{"data-page":n.route},[jy(t)])}});function jy(e){return jr(),Ur(Ny,{key:0},{default:Dn((()=>[Go(e.slots,"page")])),_:3})}const Dy={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=kd;const qy=Object.assign({}),Vy=Object.assign;window.__uniConfig=Vy({globalStyle:{backgroundColor:"#F8F8F8",background:"#efeff4",navigationBar:{backgroundColor:"#F8F8F8",titleText:"uni-app",style:"custom",type:"default",titleColor:"#000000"},isNVue:!1},tabBar:{position:"bottom",color:"#333",selectedColor:"#1AAD19",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",custom:!0,backgroundColor:"#FFFFFF",list:[{pagePath:"pages/index/index",iconPath:"/static/image/tabbar/demo.png",selectedIconPath:"/static/image/tabbar/demo.png",text:"首页"},{pagePath:"pages/contacts/index",iconPath:"/static/image/tabbar/demo.png",selectedIconPath:"/static/image/tabbar/demo.png",text:"通讯录"}],selectedIndex:0,shown:!0},compilerVersion:"3.8.12"},{appId:"__UNI__D1E78EC",appName:"raingad-IM",appVersion:"3.0.4",appVersionCode:20230914,async:Dy,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(qy).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return Vy(e[n]||(e[n]={}),qy[t].default),e}),{}),router:{mode:"hash",base:"./",assets:"assets",routerBase:"/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const Hy={delay:Dy.delay,timeout:Dy.timeout,suspensible:Dy.suspensible};Dy.loading&&(Hy.loadingComponent={name:"SystemAsyncLoading",render:()=>Jr(Ho(Dy.loading))}),Dy.error&&(Hy.errorComponent={name:"SystemAsyncError",render:()=>Jr(Ho(Dy.error))});const Uy=()=>t((()=>import("./pages-index-index.504a4005.js")),["./pages-index-index.504a4005.js","./emoji.c33868a4.js","./emoji-28a951a7.css","./uni-app.es.06715d18.js","./status.1eeec7ff.js","./status-37c4efbf.css","./pages-contacts-index.fbcd4de6.js","./index-a5863e3a.css","./scan.9bf28f6f.js","./index-abb9c4b1.css"],import.meta.url).then((e=>_m(e.default||e))),zy=po(Vy({loader:Uy},Hy)),Wy=()=>t((()=>import("./pages-message-chat.70bf6178.js")),["./pages-message-chat.70bf6178.js","./uni-load-more.e389ae51.js","./uni-load-more-45eaeab2.css","./uni-app.es.06715d18.js","./emoji.c33868a4.js","./emoji-28a951a7.css","./status.1eeec7ff.js","./status-37c4efbf.css","./chat-8b66616c.css"],import.meta.url).then((e=>_m(e.default||e))),Yy=po(Vy({loader:Wy},Hy)),Xy=()=>t((()=>import("./pages-contacts-index.fbcd4de6.js")),["./pages-contacts-index.fbcd4de6.js","./status.1eeec7ff.js","./status-37c4efbf.css","./index-a5863e3a.css"],import.meta.url).then((e=>_m(e.default||e))),Gy=po(Vy({loader:Xy},Hy)),Ky=()=>t((()=>import("./pages-message-detail.811c30b9.js")),["./pages-message-detail.811c30b9.js","./uni-app.es.06715d18.js","./detail-309ea775.css"],import.meta.url).then((e=>_m(e.default||e))),Jy=po(Vy({loader:Ky},Hy)),Zy=()=>t((()=>import("./pages-contacts-detail.a24a3a93.js")),[],import.meta.url).then((e=>_m(e.default||e))),Qy=po(Vy({loader:Zy},Hy)),eb=()=>t((()=>import("./pages-contacts-friend.d6b1e343.js")),["./pages-contacts-friend.d6b1e343.js","./uni-app.es.06715d18.js","./friend-43d738de.css"],import.meta.url).then((e=>_m(e.default||e))),tb=po(Vy({loader:eb},Hy)),nb=()=>t((()=>import("./pages-contacts-search.f9b10685.js")),[],import.meta.url).then((e=>_m(e.default||e))),ob=po(Vy({loader:nb},Hy)),rb=()=>t((()=>import("./pages-login-index.409bd32e.js")),["./pages-login-index.409bd32e.js","./package.355e977b.js","./index-03b10b57.css"],import.meta.url).then((e=>_m(e.default||e))),ib=po(Vy({loader:rb},Hy)),sb=()=>t((()=>import("./pages-login-register.4cc905b3.js")),["./pages-login-register.4cc905b3.js","./package.355e977b.js","./register-6d2506c7.css"],import.meta.url).then((e=>_m(e.default||e))),ab=po(Vy({loader:sb},Hy)),lb=()=>t((()=>import("./pages-message-call.65404725.js")),["./pages-message-call.65404725.js","./call-c9a706b8.css"],import.meta.url).then((e=>_m(e.default||e))),cb=po(Vy({loader:lb},Hy)),ub=()=>t((()=>import("./pages-index-userSelection.33f83baa.js")),["./pages-index-userSelection.33f83baa.js","./uni-load-more.e389ae51.js","./uni-load-more-45eaeab2.css","./uni-app.es.06715d18.js","./userSelection-66bb985e.css"],import.meta.url).then((e=>_m(e.default||e))),db=po(Vy({loader:ub},Hy)),fb=()=>t((()=>import("./pages-message-group-groupUser.38447d9d.js")),["./pages-message-group-groupUser.38447d9d.js","./groupUser-795de428.css"],import.meta.url).then((e=>_m(e.default||e))),pb=po(Vy({loader:fb},Hy)),hb=()=>t((()=>import("./pages-index-qrcode.c533b911.js")),["./pages-index-qrcode.c533b911.js","./uni-app.es.06715d18.js","./qrcode-7c5b6ce9.css"],import.meta.url).then((e=>_m(e.default||e))),gb=po(Vy({loader:hb},Hy)),mb=()=>t((()=>import("./pages-message-group-info.0a7bff72.js")),["./pages-message-group-info.0a7bff72.js","./info-19601c67.css"],import.meta.url).then((e=>_m(e.default||e))),vb=po(Vy({loader:mb},Hy)),yb=()=>t((()=>import("./pages-contacts-group.5ac67036.js")),[],import.meta.url).then((e=>_m(e.default||e))),bb=po(Vy({loader:yb},Hy)),_b=()=>t((()=>import("./pages-index-search.649d5b90.js")),[],import.meta.url).then((e=>_m(e.default||e))),wb=po(Vy({loader:_b},Hy)),xb=()=>t((()=>import("./pages-index-scan.1e435862.js")),["./pages-index-scan.1e435862.js","./scan.9bf28f6f.js","./scan-e355ee9b.css"],import.meta.url).then((e=>_m(e.default||e))),Sb=po(Vy({loader:xb},Hy)),Tb=()=>t((()=>import("./pages-mine-webview.3681f645.js")),[],import.meta.url).then((e=>_m(e.default||e))),kb=po(Vy({loader:Tb},Hy)),Cb=()=>t((()=>import("./pages-mine-profile.20977e2d.js")),["./pages-mine-profile.20977e2d.js","./profile-6b36f2ce.css"],import.meta.url).then((e=>_m(e.default||e))),Eb=po(Vy({loader:Cb},Hy)),Ob=()=>t((()=>import("./pages-mine-secure.3d6aef1a.js")),["./pages-mine-secure.3d6aef1a.js","./secure-3e0d41b5.css"],import.meta.url).then((e=>_m(e.default||e))),Ib=po(Vy({loader:Ob},Hy)),$b=()=>t((()=>import("./pages-mine-about.d01b3e70.js")),["./pages-mine-about.d01b3e70.js","./package.355e977b.js","./about-dc784dba.css"],import.meta.url).then((e=>_m(e.default||e))),Lb=po(Vy({loader:$b},Hy)),Pb=()=>t((()=>import("./pages-mine-setting.98c5611b.js")),[],import.meta.url).then((e=>_m(e.default||e))),Mb=po(Vy({loader:Pb},Hy));function Ab(e,t){return jr(),Ur(Fy,null,{page:Dn((()=>[Jr(e,Vy({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(zy,t)}},loader:Uy,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"首页",type:"default"},isNVue:!1}},{path:"/pages/message/chat",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(Yy,t)}},loader:Wy,meta:{navigationBar:{titleText:"聊天",type:"default"},isNVue:!1}},{path:"/pages/contacts/index",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(Gy,t)}},loader:Xy,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"联系人",type:"default"},isNVue:!1}},{path:"/pages/message/detail",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(Jy,t)}},loader:Ky,meta:{navigationBar:{titleText:"聊天信息",type:"default"},isNVue:!1}},{path:"/pages/contacts/detail",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(Qy,t)}},loader:Zy,meta:{navigationBar:{titleText:"用户信息",type:"default"},isNVue:!1}},{path:"/pages/contacts/friend",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(tb,t)}},loader:eb,meta:{navigationBar:{titleText:"新朋友",type:"default"},isNVue:!1}},{path:"/pages/contacts/search",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(ob,t)}},loader:nb,meta:{navigationBar:{titleText:"搜索朋友",type:"default"},isNVue:!1}},{path:"/pages/login/index",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(ib,t)}},loader:rb,meta:{navigationBar:{titleText:"登录",type:"default"},isNVue:!1}},{path:"/pages/login/register",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(ab,t)}},loader:sb,meta:{navigationBar:{titleText:"注册",type:"default"},isNVue:!1}},{path:"/pages/message/call",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(cb,t)}},loader:lb,meta:{navigationBar:{titleText:"通话",type:"default"},isNVue:!1}},{path:"/pages/index/userSelection",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(db,t)}},loader:ub,meta:{navigationBar:{titleText:"用户选择",type:"default"},isNVue:!1}},{path:"/pages/message/group/groupUser",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(pb,t)}},loader:fb,meta:{navigationBar:{titleText:"群聊成员管理",type:"default"},isNVue:!1}},{path:"/pages/index/qrcode",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(gb,t)}},loader:hb,meta:{navigationBar:{titleText:"群二维码",type:"default"},isNVue:!1}},{path:"/pages/message/group/info",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(vb,t)}},loader:mb,meta:{navigationBar:{titleText:"群信息",type:"default"},isNVue:!1}},{path:"/pages/contacts/group",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(bb,t)}},loader:yb,meta:{navigationBar:{titleText:"群聊列表",type:"default"},isNVue:!1}},{path:"/pages/index/search",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(wb,t)}},loader:_b,meta:{navigationBar:{titleText:"搜索",type:"default"},isNVue:!1}},{path:"/pages/index/scan",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(Sb,t)}},loader:xb,meta:{navigationBar:{titleText:"扫描",type:"default"},isNVue:!1}},{path:"/pages/mine/webview",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(kb,t)}},loader:Tb,meta:{navigationBar:{titleText:"webview",type:"default"},isNVue:!1}},{path:"/pages/mine/profile",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(Eb,t)}},loader:Cb,meta:{navigationBar:{titleText:"个人信息",type:"default"},isNVue:!1}},{path:"/pages/mine/secure",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(Ib,t)}},loader:Ob,meta:{navigationBar:{titleText:"安全",type:"default"},isNVue:!1}},{path:"/pages/mine/about",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(Lb,t)}},loader:$b,meta:{navigationBar:{titleText:"关于",type:"default"},isNVue:!1}},{path:"/pages/mine/setting",component:{setup(){const e=mm(),t=e&&e.$route&&e.$route.query||{};return()=>Ab(Mb,t)}},loader:Pb,meta:{navigationBar:{titleText:"设置",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e))); /*! * pinia v2.0.33 * (c) 2023 Eduardo San Martin Morote * @license MIT */ let Bb;const Rb=e=>Bb=e,Nb=Symbol();function Fb(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var jb,Db;(Db=jb||(jb={})).direct="direct",Db.patchObject="patch object",Db.patchFunction="patch function";const qb=()=>{};function Vb(e,t,n,o=qb){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};var i;return!n&&Be()&&(i=r,Pe&&Pe.cleanups.push(i)),r}function Hb(e,...t){e.slice().forEach((e=>{e(...t)}))}function Ub(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];Fb(r)&&Fb(o)&&e.hasOwnProperty(n)&&!en(o)&&!Ut(o)?e[n]=Ub(r,o):e[n]=o}return e}const zb=Symbol();const{assign:Wb}=Object;function Yb(e,t,n,o){const{state:r,actions:i,getters:s}=t,a=n.state.value[e];let l;return l=Xb(e,(function(){a||(n.state.value[e]=r?r():{});const t=function(e){const t=C(e)?new Array(e.length):{};for(const n in e)t[n]=un(e,n);return t}(n.state.value[e]);return Wb(t,i,Object.keys(s||{}).reduce(((t,o)=>(t[o]=Gt(yi((()=>{Rb(n);const t=n._s.get(e);return s[o].call(t,t)}))),t)),{}))}),t,n,o,!0),l}function Xb(e,t,n={},o,r,i){let s;const a=Wb({actions:{}},n),l={deep:!0};let c,u,d,f=Gt([]),p=Gt([]);const h=o.state.value[e];let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:jb.patchFunction,storeId:e,events:d}):(Ub(o.state.value[e],t),n={type:jb.patchObject,payload:t,storeId:e,events:d});const r=g=Symbol();kn().then((()=>{g===r&&(c=!0)})),u=!0,Hb(f,n,o.state.value[e])}i||h||(o.state.value[e]={}),tn({});const v=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{Wb(e,t)}))}:qb;function y(t,n){return function(){Rb(o);const r=Array.from(arguments),i=[],s=[];function a(e){i.push(e)}function l(e){s.push(e)}let c;Hb(p,{args:r,name:t,store:b,after:a,onError:l});try{c=n.apply(this&&this.$id===e?this:b,r)}catch(u){throw Hb(s,u),u}return c instanceof Promise?c.then((e=>(Hb(i,e),e))).catch((e=>(Hb(s,e),Promise.reject(e)))):(Hb(i,c),c)}}const b=qt({_p:o,$id:e,$onAction:Vb.bind(null,p),$patch:m,$reset:v,$subscribe(t,n={}){const r=Vb(f,t,n.detached,(()=>i())),i=s.run((()=>Kn((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:c)&&t({storeId:e,type:jb.direct,events:d},o)}),Wb({},l,n))));return r},$dispose:function(){s.stop(),f=[],p=[],o._s.delete(e)}});o._s.set(e,b);const _=o._e.run((()=>(s=Ae(),s.run((()=>t())))));for(const S in _){const t=_[S];if(en(t)&&(!en(x=t)||!x.effect)||Ut(t))i||(!h||Fb(w=t)&&w.hasOwnProperty(zb)||(en(t)?t.value=h[S]:Ub(t,h[S])),o.state.value[e][S]=t);else if("function"==typeof t){const e=y(S,t);_[S]=e,a.actions[S]=t}}var w,x;return Wb(b,_),Wb(Xt(b),_),Object.defineProperty(b,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{Wb(t,e)}))}}),o._p.forEach((e=>{Wb(b,s.run((()=>e({store:b,app:o._a,pinia:o,options:a}))))})),h&&i&&n.hydrate&&n.hydrate(b.$state,h),c=!0,u=!0,b}function Gb(e,t,n){let o,r;const i="function"==typeof t;function s(e,n){const s=ci();(e=e||s&&Yn(Nb,null))&&Rb(e),(e=Bb)._s.has(o)||(i?Xb(o,t,r,e):Yb(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}function Kb(e){{e=Xt(e);const t={};for(const n in e){const o=e[n];(en(o)||Ut(o))&&(t[n]=un(e,n))}return t}}const Jb=function(){const e=Ae(!0),t=e.run((()=>tn({})));let n=[],o=[];const r=Gt({install(e){Rb(r),r._a=e,e.provide(Nb,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}(),Zb=e=>{var t,n,o=new Array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖"),r=new Array("","拾","佰","仟"),i=new Array("","万","亿","兆"),s=new Array("角","分","毫","厘"),a="";if(!e)return"";if((e=parseFloat(e))>=1e15)return"超出最大处理数字";if(0==e)return a=o[0]+"元整";if(t=(e=Math.round(100*e).toString()).substr(0,e.length-2),n=e.substr(e.length-2),parseInt(t,10)>0){for(var l=0,c=t.length,u=0;u0&&(a+=o[0]),l=0,a+=o[parseInt(g)]+r[p]),0==p&&l<4&&(a+=i[f])}a+="元"}if(""!=n){var h=n.length;for(u=0;u{t<9e10&&(t*=1e3);var n=t?new Date(t):new Date,o=function(e,t){return(e+="").length>0},W:function(){var e,t=a.z(),o=364+a.L()-t,r=(new Date(n.getFullYear()+"/1/1").getDay()||7)-1;return o<=2&&(n.getDay()||7)-1<=2-o?1:t<=2&&r>=4&&t>=6-r?(e=new Date(n.getFullYear()-1+"/12/31"),Qb("W",Math.round(e.getTime()/1e3))):1+(r<=3?(t+r)/7:(t-(7-r))/7)>>0},F:function(){return s[a.n()]},m:function(){return o(a.n(),2)},M:function(){return a.F().substr(0,3)},n:function(){return n.getMonth()+1},t:function(){var e;return 2===(e=n.getMonth()+1)?28+a.L():1&e&&e<8||!(1&e)&&e>7?31:30},L:function(){var e=a.Y();return 3&e||!(e%100)&&e%400?0:1},Y:function(){return n.getFullYear()},y:function(){return(n.getFullYear()+"").slice(2)},a:function(){return n.getHours()>11?"pm":"am"},A:function(){return a.a().toUpperCase()},B:function(){var e=60*(n.getTimezoneOffset()+60),t=3600*n.getHours()+60*n.getMinutes()+n.getSeconds()+e,o=Math.floor(t/86.4);return o>1e3&&(o-=1e3),o<0&&(o+=1e3),1===String(o).length&&(o="00"+o),2===String(o).length&&(o="0"+o),o},g:function(){return n.getHours()%12||12},G:function(){return n.getHours()},h:function(){return o(a.g(),2)},H:function(){return o(n.getHours(),2)},i:function(){return o(n.getMinutes(),2)},s:function(){return o(n.getSeconds(),2)},O:function(){var e=o(Math.abs(n.getTimezoneOffset()/60*100),4);return e=n.getTimezoneOffset()>0?"-"+e:"+"+e},P:function(){var e=a.O();return e.substr(0,3)+":"+e.substr(3,2)},c:function(){return a.Y()+"-"+a.m()+"-"+a.d()+"T"+a.h()+":"+a.i()+":"+a.s()+a.P()},U:function(){return Math.round(n.getTime()/1e3)}};let l="";return e.replace(/[\\]?([a-zA-Z])/g,(function(e,t){return l=e!==t?t:a[t]?a[t]():t,l}))},e_={bgAvatar:e=>1!==e&&e?2===e?"bg-orange":3===e?"bg-red":4===e?"bg-green":5===e?"bg-grey":void 0:"bg-blue",fromTime:e=>{e>9e10&&(e/=1e3);let t=new Date;t.getDate();let n=60*t.getHours()*60+60*t.getMinutes()+t.getSeconds();Qb("H",e),Qb("i",e);let o=(new Date).getTime(),r=parseInt(o/1e3-e);return r<60?"刚刚":r>=60&&r<3600?Math.floor(r/60)+"分钟前":r>=3600&&r<=n?Math.floor(r/3600)+"小时前":r>n&&r=86400&&r<2592e3?parseInt(r/86400)+"天前":Qb("Y/m/d",e)},overTime:e=>{for(var t=(e+"").split(""),n=0;n<13;n++)t[n]||(t[n]="0");e=1*t.join("");var o=36e5,r=24*o,i=(new Date).getTime()-e;if(i<0)return"不久前";var s,a=i/2592e6,l=i/(7*r),c=i/r,u=i/o,d=i/6e4,f=function(e){return e<10?"0"+e:e};if(a>12)return(s=new Date(e)).getFullYear()+"年"+f(s.getMonth()+1)+"月"+f(s.getDate())+"日";if(a>=1)return"已过期"+parseInt(a)+"月";if(l>=1)return"已过期"+parseInt(l)+"周";if(c>=1)return"已过期"+parseInt(c)+"天";if(u>=1)return"已过期"+parseInt(u)+"小时";if(d>=1)return"已过期";if(d<1)return parseInt(d)+"分钟后过期";if(u<1)return parseInt(u)+"小时后过期";if(c<1)return parseInt(c)+"天后过期";if(l<1){var p=new Date(e);return p.getFullYear()+"年"+f(p.getMonth()+1)+"月"+f(p.getDate())+"日"}},setFrom:(e,t,n,o)=>(e.forEach((e=>{if(e.rules={errMess:`${e.name}不能为空`},e.relevant&&e.form_type==e.relevant&&(e.disabled=!0),"money"===e.form_type&&(e.default_value?e.capitalize=Zb(e.default_value):e.capitalize=null),"tags"!==e.form_type&&"select"!==e.form_type&&"invoice_info"!==e.form_type&&"pm_type"!==e.form_type&&"finance_type"!==e.form_type&&"visit_user"!==e.form_type&&"area"!==e.form_type||(e.show=!1),e.setting)if(e.list=[],e.setting instanceof Array)e.setting.forEach(((t,n)=>{e.list.push({value:n,label:t})}));else for(let t in e.setting)e.list.push({value:t,label:e.setting[t]});if("select"===e.form_type&&e.default_value&&e.setting&&e.list.forEach((t=>{t.value==e.default_value&&(e.value=t.label)})),"business"==e.form_type&&"add"==n&&(e.default_value=t.leads_id,e.value=t.name,e.disabled=!0),"customer"==e.form_type&&t&&"add"==n?(e.default_value=t.name,e.value=t.leads_id,e.disabled=!0):("business"==e.form_type&&"edit"==n||"customer"==e.form_type&&t&&"add"==n||"customer"==e.form_type&&t&&"edit"==n)&&(e.default_value=e.value,e.value=e.default_value,e.disabled=!0),"company"==e.field&&"edit"==n&&(e.disabled=!0),"project"!=e.form_type||"add"!=n||t||(e.disabled=!0),"project"==e.form_type&&"add"==n&&o&&(console.log(o),e.disabled=!0,e.default_value=o.project_id,e.value=o.title),"receivable"==e.form_type&&("add"!=n||o||(e.disabled=!0),""!=e.default_value)){let t=e.value.map((e=>e.receivables_id));Jm("relationReceivableId",t),e.default_value=t.join(""),e.value=e.value.map((e=>e.number))}"user_receivables"==e.form_type&&(e.value&&e.value.forEach(((t,n)=>{e.default_value[n].realname=e.value[n].user_id_info.realname})),e.value||(e.default_value=[],e.default_value.push({realname:"",user_id:"",proportion:""})))})),e),setPmType:e=>{let t=[];return e.forEach(((e,n)=>{t.push({label:e.name,value:e.type_id}),e.children&&(t[n].children=[],e.children.forEach(((o,r)=>{t[n].children.push({label:o.name,value:o.type_id}),e.children[r].children&&(t[n].children[r].children=[],e.children[r].children.forEach(((e,o)=>{t[n].children[r].children.push({label:e.name,value:e.type_id})})))})))})),t},judgeListComplete:e=>{let t="";return e.every((e=>{for(let n in e)t=""!=e[n]||""})),t},judgeobjduplicate:e=>{let t="",n=0;return e.forEach((e=>{n+=parseInt(e.proportion)})),t=!(n>=100),t},getUuid:()=>{var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))},findArray:(e,t)=>e.find((function(e){var n=e.id;return t==n})),sortContacts:e=>{const t=JSON.parse(JSON.stringify(e));return t.sort((function(e,t){return parseInt(t.lastSendTime)-parseInt(e.lastSendTime)})),t},menoyToUppercase:Zb,filterValue:(e,t,n)=>{n=void 0!==n&&n;for(var o=[],r=0;r{const t=new Date,n=new Date(e),o=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(o-864e5),i=new Date(o-24*(o.getDay()-1)*60*60*1e3),s=new Date(t.getFullYear(),0,1);if(n>=o)return Qb("H:i",e/1e3);if(n>=r&&n=i&&n=s&&n(new Date).getTime()-e<864e5,getFileSize:e=>{let t=new Array(" B"," KB"," MB"," GB"," TB"),n=e+"B";for(let o=0;e>=1024&&o<4;o++)n=(e/=1024).toFixed(2)+t[o+1];return n},parseUrl:e=>{var t=e.substring(e.indexOf("?")+1).split("&"),n={};for(let o=0;o{let n={};const o=_f().in(e);return setTimeout((()=>{o.select(t).boundingClientRect(),o.exec((e=>{n=e[0]}))}),10),n},findObjectByField:(e,t,n,o)=>{const r=e.find((e=>e.field==n));return r?o?r[o]:r:null},searchObject:(e,t,n)=>{if("object"!=typeof e)return!1;for(var o=[],r=0;e.length>r;r++){if("object"==typeof t)for(var i=0;t.length>i;i++){var s=t[i];if(-1!=e[r][s].indexOf(n)){o.push(e[r]);break}}else-1!=e[r][t].indexOf(n)&&o.push(e[r])}return o},mergeArrays:(e,t)=>{const n=e.concat(t),o=new Set(n.map(JSON.stringify));return Array.from(o).map(JSON.parse)},intersection:(e,t)=>{const n=new Set(e.map(JSON.stringify));return t.filter((e=>n.has(JSON.stringify(e))))},difference:(e,t)=>{const n=new Set(t.map(JSON.stringify));return e.filter((e=>!n.has(JSON.stringify(e))))}},t_=Gb({id:"message",state:()=>({pushSocket:"",chatSocket:"",instantSocket:"",webrtc:"",topContacts:[],contacts:[],wsSendData:"",unread:0,sysUnread:0,newMessage:{},msgList:[],webrtcLock:!1}),actions:{catchSocketAction(e){this.chatSocket=e,2==e.is_group&&(this.unread+=1)},updateUnread(e){this.unread=parseInt(e)},setLastContent(e){switch(e.type){case"image":e.lastContent="[图片]";break;case"video":e.lastContent="[视频]";break;case"file":e.lastContent="[文件]";break;case"voice":e.lastContent="[语音]";break;case"webrtc":e.lastContent="[音视频通话]"}return e},initContacts(e){let t=e_.sortContacts(e),n=[],o=[];t.forEach(((e,t)=>{"群聊"==(e=this.setLastContent(e)).index&&(e.index="#"),1==e.is_top?n.push(e):o.push(e)})),this.contacts=n.concat(o),Jm("allContacts",this.contacts)},updateContacts(e){const t=this.contacts;t.forEach(((n,o)=>{let r=t[o];n.id==e.id&&(t[o]=Object.assign(r,e))})),this.initContacts(t)},appendContacts(e){const t=this.contacts;if(t.filter((t=>t.id==e.id)).length>0)return this.updateContacts(e);t.push(e),this.initContacts(t)},deleteContacts(e){const t=JSON.parse(JSON.stringify(this.contacts)).filter((t=>t.id!=e.id));this.contacts=t,Jm("allContacts",this.contacts)},initMsg(e){this.msgList=e},checkMsg(e){let t=this.msgList,n=!1;t.forEach(((t,o)=>{t.id==e.id&&(n=!0)})),n||this.msgList.push(e)},getContact:e=>Qm("allContacts").find((t=>t.id==e)),appendMsg(e){this.newMessage=e},wsSend(e){this.wsSendData=e}}});class n_{constructor(){this.handlers=[],this.forEach={asc:e=>{for(let t=0,n=this.handlers.length;t{for(let t=this.handlers.length-1;t>=0;t--)null!==this.handlers[t]&&e(this.handlers[t])}}}use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}}const o_=Object.prototype.toString;function r_(e){return"[object Array]"===o_.call(e)}function i_(e){return"[object Object]"===o_.call(e)}function s_(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),r_(e))for(let n=0,o=e.length;n{t[n]=l_(t[n],e)}));return t}function l_(e,t){return i_(e)&&i_(t)?a_(e,t):i_(t)?a_({},t):r_(t)?t.slice():t}function c_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function u_(e,t){let n;const o=[];if(s_(t,((e,t)=>{null!=e&&(r_(e)?t+="[]":e=[e],s_(e,(e=>{null!==e&&"object"==typeof e&&(e=JSON.stringify(e)),o.push(c_(t)+"="+c_(e))})))})),n=o.join("&"),n){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}function d_({baseURL:e,url:t,params:n,query:o}={}){let r=function(e="",t=""){return/^https?:\/\//.test(t)?t:t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t);return n||o?(n&&(/\/:/.test(r)?s_(n,((e,t)=>{r=r.replace(`/:${t}`,`/${c_(String(e))}`)})):o||(r=u_(r,n))),o&&(r=u_(r,o)),r):r}function f_(e){return["success","fail","complete"].includes(e)}function p_(e,t,n){let o=null;const r={},i="object"==typeof e;return s_(i?e:{...n,url:e,data:t},((e,t)=>{var n;i&&f_(t)?(o||(o={}))[t]=(n=e,function(...e){try{return n.apply(n,e)}catch(t){console.error(t)}}):r[t]=e})),{callback:o,config:r}}function h_(e={},t={}){const n={};return s_(Object.keys({...e,...t}),(o=>{void 0!==t[o]?n[o]=l_(e[o],t[o]):void 0!==e[o]&&(n[o]=l_(void 0,e[o]))})),n}async function g_(...e){let t={};for(let n=0,o=e.length;n{var r;if(t.aborted)return o({config:e,errMsg:"request:fail abort"});t.task=Ev({...e,complete:t=>{const r={config:e,...t};!e.validateStatus||e.validateStatus(t.statusCode)?n(r):o(r)}}),t.onHeadersReceived(),t.offHeadersReceived(),null==(r=e.xhr)||r.call(e,t.task,e)}))},header:{},method:"GET",validateStatus:e=>e>=200&&e<300};function b_(e){return t=>(t.url=d_(t),t.method=(t.method||"get").toUpperCase(),t.header=a_(t.header.common,t.header[t.method.toLowerCase()],t.header),s_(v_,(e=>i_(t.header[e])&&delete t.header[e])),s_(t,((e,n)=>f_(n)&&delete t[n])),t.adapter(t,e))}s_(v_,(e=>y_.header[e]={}));const __=Symbol("$$cancel");function w_(e){return null!=e&&Object.prototype.hasOwnProperty.call(e,__)}function x_(e){return Promise.reject({[__]:e})}function S_(e){return Promise.reject(w_(e)?e[__]:e)}function T_(e){const t="object"==typeof e?a_(e):e;function n(...t){const{callback:o,config:r}=p_(...t),i=function(){const e=function e(t){return Reflect.construct(Promise,[t],e)};return Object.setPrototypeOf(e,Promise),(e.prototype=Object.create(Promise.prototype)).constructor=e,e.task=null,e.aborted=!1,e.onHeadersReceivedCallback=null,e.offHeadersReceivedCallback=null,e.onHeadersReceived=function(t){var n,o;"function"==typeof t&&(e.onHeadersReceivedCallback=t),e.onHeadersReceivedCallback&&e.task&&(null==(o=(n=e.task).onHeadersReceived)||o.call(n,e.onHeadersReceivedCallback))},e.offHeadersReceived=function(t){var n,o;"function"==typeof t&&(e.offHeadersReceivedCallback=t),e.offHeadersReceivedCallback&&e.task&&(null==(o=(n=e.task).offHeadersReceived)||o.call(n,e.offHeadersReceivedCallback))},e.prototype.abort=function(){var t;return e.aborted=!0,null==(t=e.task)||t.abort(),this},e.prototype.onHeadersReceived=function(t){return e.onHeadersReceived(t),this},e.prototype.offHeadersReceived=function(t){return e.offHeadersReceived(t),this},e}(),s=[b_(i),x_];n.interceptors.request.forEach.desc((({fulfilled:e,rejected:t})=>s.unshift(e,t))),n.interceptors.response.forEach.asc((({fulfilled:e,rejected:t})=>s.push(e,function(e){return e&&(t=>w_(t)?Promise.reject(t):e(t))}(t)))),s.unshift((t=>g_(y_,e,t)),void 0),s.push(void 0,S_),s.push((e=>{var t,n;if(!o)return e;null==(t=o.success)||t.call(o,e),null==(n=o.complete)||n.call(o,e)}),(e=>{var t,n;if(!o)return Promise.reject(e);null==(t=o.fail)||t.call(o,e),null==(n=o.complete)||n.call(o,e)}));let a=i.resolve(r);for(;s.length;)a=a.then(s.shift(),s.shift());return a}return n.config=Object.freeze(t),n.defaults=y_,n.interceptors={request:new n_,response:new n_},n.getURL=async function(t){return d_(await g_(y_,e,t)).replace(/^\?/,"")},s_(m_,(e=>{n[e]=function(t,o,r){return"string"==typeof t?n(t,o,{...r,method:e}):n({...t,method:e})}})),n}const k_=T_();k_.create=function(e){return T_(e)};const C_={apiUrl:"https://im.raingad.com",wssUrl:"wss://im.raingad.com/wss",now:Date.now||function(){return(new Date).getTime()},isArray:Array.isArray||function(e){return e instanceof Array}},E_=k_.create({baseURL:C_.apiUrl,timeout:1e4});E_.interceptors.request.use((e=>e),(e=>(uy({title:"网络超时!",icon:"none"}),e))),E_.interceptors.response.use((e=>{const t=e.data;let n=t.msg;return n&&([400,401,402,403,404,405,502,500].includes(t.code)||0==t.code?uy({title:n,icon:"none",duration:2500}):-1==t.code&&uy({title:n,icon:"none",duration:2500,success(){setTimeout((()=>{Vv({url:"/pages/login/index"})}),1e3)}})),t}),(e=>{switch(e.statusCode){case 401:ey({title:"提示",content:"授权信息已经失效,请重新登录!",success:e=>{e.confirm&&Vv({url:"/pages/login/index"})},fail:e=>{console.log("fail")}});break;case 500:uy({title:"服务器返回错误!",icon:"none",duration:2500});break;default:uy({title:e.errMsg,icon:"none",duration:2500})}return e}));const O_=C_.apiUrl,I_=(e,t)=>E_({method:"post",url:`${e}`,data:t,header:{"Content-Type":"application/json",Authorization:Qm("authToken"),clientId:Qm("client_id")}});let $_={login:e=>I_("/common/Pub/login",e),logout:e=>I_("/common/Pub/logout",e),register:e=>I_("/common/pub/register",e),bindUid:e=>I_("/common/Pub/bindUid",e),bindGroup:e=>I_("common/pub/bindGroup",e),getSystemInfo:e=>I_("/common/pub/getSystemInfo",e),sendCode:e=>I_("/common/pub/sendCode",e)};const L_=Gb({id:"login",state:()=>({userInfo:Qm("userInfo")?Qm("userInfo"):{},globalConfig:Qm("globalConfig")?Qm("globalConfig"):[],appSetting:Qm("appSetting")?Qm("appSetting"):[],multiport:!1}),actions:{login(e){Jm("userInfo",e),this.userInfo=e},logout(){ev("userInfo"),ev("authToken"),this.userInfo={},Vv({url:"/pages/login/index"})},getGlobalConfig(){$_.getSystemInfo().then((e=>{this.globalConfig=e.data,Jm("globalConfig",e.data)}))},setAppSetting(e){Jm("appSetting",e),this.appSetting=e}}}),P_=t_(Jb),M_=L_(Jb),A_={onLaunch:function(){let e=Qm("appSetting")??"";e?M_.setAppSetting(e):M_.setAppSetting({voiceStatus:!0,vibrateStatus:!1,circleAvatar:!1}),M_.getGlobalConfig(),Ym({success:function(e){let t=0;const{appContext:n}=ci();n.config.globalProperties.StatusBar=e.statusBarHeight,"android"==e.platform?n.config.globalProperties.CustomBar=e.statusBarHeight+50:n.config.globalProperties.CustomBar=e.statusBarHeight+45,t=kd(100),n.config.globalProperties.inlineTools=t,n.config.globalProperties.navBarHeight=kd(100)}})},onUnload(){this.scoketClose(),this.socketIo.traderDetailIndex=100},onShow:function(){this.socketIo.checkStatus()||(console.log("ws断线了,重新链接!"),Ld("socketStatus",!1),this.getWebsocketData()),console.log("App Show")},methods:{scoketClose(){this.socketIo.connectNum=1;this.socketIo.send({type:"close"}),this.socketIo.Close()},getWebsocketData(){Qm("userInfo");this.socketIo.connectSocketInit({type:"ping"}),$d("getPositonsOrder"),Id("getPositonsOrder",(e=>{var t=Qm("userInfo");let n=e.data;switch(this.connect=!0,e.type){case"ping":this.socketIo.send({type:"pong"});break;case"pong":M_.$patch({multiport:e.multiport});break;case"init":Jm("client_id",e.client_id),t&&this.$api.LoginApi.bindUid({client_id:e.client_id,user_id:t.user_id}).then((e=>{this.socketIo.send({type:"bindUid",user_id:t.user_id,token:Qm("authToken")})})).catch((e=>{}));break;case"isOnline":P_.updateContacts({id:n.id,is_online:n.is_online});break;case"offline":let o=Qm("client_id");n.id==t.user_id&&n.client_id!=o&&n.isMobile&&(uy({title:"您的账号在其他地方登录,已被迫下线!",icon:"none",duration:2500}),M_.logout());break;case"simple":case"group":if(n.fromUser.id!=t.user_id){const e=P_.getContact(n.toContactId);"system"!=n.toContactId&&1!=e.is_notice||this.playSound()}this.appendMessage(e);break;case"setChatTop":P_.updateContacts({id:n.id,is_top:n.is_top});break;case"setIsNotice":P_.updateContacts({id:n.id,is_notice:n.is_notice});break;case"addGroup":P_.appendContacts(n),this.$api.LoginApi.bindGroup({client_id:Qm("client_id"),group_id:n.id});break;case"setManager":case"addGroupUser":case"removeUser":P_.updateContacts({id:n.group_id,avatar:n.avatar}),Ld("updateGroup",e);break;case"editGroupName":P_.updateContacts({id:n.id,displayName:n.displayName});break;case"removeGroup":P_.deleteContacts({id:n.group_id});break;case"setNotice":P_.updateContact({id:n.group_id,notice:n.notice});break;case"groupSetting":P_.updateContact({id:n.group_id,setting:n.setting});break;case"appendContact":P_.appendContacts(n);break;case"webrtc":if(n.fromUser.id==t.user_id&&([902,903,905,906,907].includes(parseInt(n.extends.code))&&(P_.webrtcLock=!1),1==n.extends.isMobile||"calling"==n.extends.event))return void("calling"==n.extends.event&&this.appendMessage(e));if("offer"==n.extends.event||"answer"==n.extends.event?P_.webrtcLock=!0:"hangup"==n.extends.event&&(P_.webrtcLock=!1),"calling"==n.extends.event){this.appendMessage(e);const t=Wg();"pages/message/call"==t[t.length-1].route?this.$api.msgApi.sendToMsg({toContactId:n.fromUser.user_id,type:n.extends.type,event:"busy",status:n.extends.status,code:907,id:n.id,msg_id:n.msg_id}):Dv({url:"/pages/message/call?msg_id="+n.id+"&type="+n.extends.type+"&status="+n.extends.status+"&id="+n.fromUser.user_id+"&name="+n.fromUser.realname+"&avatar="+encodeURI(n.fromUser.avatar)})}else Ld("webrtcConn",n)}})),Id("connectError",(()=>{this.connect=!1,this.scoketError=!0,Ld("socketStatus",!1)}))},appendMessage(e){let t=e.data;if("system"==t.toContactId)P_.$patch({sysUnread:P_.sysUnread+=1});else{let o=P_.contacts,r=t.toContactId;var n=Qm("userInfo");let i=1;t.fromUser.id==n.user_id&&(i=0),t.toContactId==n.user_id&&(r=t.toUser);let s=this.$util.findArray(o,r);if(s)s.lastContent=t.content,s.lastSendTime=1e3*t.sendTime,s.type=t.type,s.unread+=i,P_.updateContacts(s);else{let e={id:t.toContactId,displayName:t.fromUser.displayName,avatar:t.fromUser.avatar,lastContent:t.content,lastSendTime:1e3*t.sendTime,is_group:t.is_group,unread:i,is_top:0,dep_id:0};o.push(e),P_.initContacts(o)}P_.$patch({unread:P_.unread+=i}),P_.catchSocketAction(e)}},playSound(){let e=Qm("appSetting")??"";if(e.voiceStatus){let e=this;const t=Mm();t.autoplay=!0,t.src="https://file.lcoce.com/static/v5/voice/notice.wav",t.onError((e=>{})),t.onStop((t=>{e.$forceUpdate()}))}e.vibrateStatus&&Gm({success:function(){console.log("手机震动")}})}},onHide:function(){console.log("App Hide")}};bm(A_,{init:vm,setup(e){const t=Mg(),n=()=>{var n;n=e,Object.keys(Ef).forEach((e=>{Ef[e].forEach((t=>{Io(e,t,n)}))}));const{onLaunch:o,onShow:r,onPageNotFound:i,onError:s}=e,a=function({path:e,query:t}){return x(bp,{path:e,query:t}),x(_p,bp),x({},bp)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:ye(t.query)});if(o&&X(o,a),r&&X(r,a),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};i&&X(i,e)}s&&(e.appContext.config.errorHandler=e=>{X(s,e)})};return Yn(el).isReady().then(n),Po((()=>{window.addEventListener("resize",we(wm,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",xm),document.addEventListener("visibilitychange",Sm),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Ry.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(),Ur(Ay));e.setup=(e,o)=>{const r=t&&t(e,o);return $(r)?n:r},e.render=n}});const B_=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const R_=B_({data(){return{StatusBar:this.StatusBar,CustomBar:this.CustomBar}},name:"custom",computed:{style(){var e=this.StatusBar,t=this.CustomBar,n=this.bgImage,o=`height:${t}px;padding-top:${e}px;`;return this.bgImage&&(o=`${o}background-image:url(${n});`),o}},props:{bgColor:{type:String,default:""},isBack:{type:[Boolean,String],default:!1},bgImage:{type:String,default:""}},methods:{BackPage(){const e=Wg();if("pages/message/chat"!=e[e.length-1].route){if(e.length<2&&"undefined"!=typeof __wxConfig){let e="/"+__wxConfig.pages[0];return qv({url:e})}Fv({delta:1})}else Vv({url:"/pages/index/index"})}}},[["render",function(e,t,n,r,i,s){const a=dg,c=mg;return jr(),Ur(c,null,{default:Dn((()=>[Jr(c,{class:"cu-custom",style:o([{height:i.CustomBar+"px"}])},{default:Dn((()=>[Jr(c,{class:l(["cu-bar fixed",[""!=n.bgImage?"none-bg text-white bg-img":"",n.bgColor]]),style:o(s.style)},{default:Dn((()=>[n.isBack?(jr(),Ur(c,{key:0,class:"action",onClick:s.BackPage},{default:Dn((()=>[Jr(a,{class:"cuIcon-back"}),Go(e.$slots,"backText")])),_:3},8,["onClick"])):(jr(),Ur(c,{key:1,class:"action"},{default:Dn((()=>[Go(e.$slots,"backText")])),_:3})),Jr(c,{class:"content",style:o([{top:i.StatusBar+"px"}])},{default:Dn((()=>[Go(e.$slots,"content")])),_:3},8,["style"]),Jr(c,{class:"right"},{default:Dn((()=>[Go(e.$slots,"right")])),_:3})])),_:3},8,["style","class"])])),_:3},8,["style"])])),_:3})}]]);let N_={};N_.uploadUrl=O_+"/common/upload/uploadFile",N_.uploadAvatar=O_+"/common/upload/uploadAvatar",N_.initContacts=e=>I_("/enterprise/im/getContacts",e),N_.getMessageList=e=>I_("/enterprise/im/getMessageList",e),N_.setChatTopAPI=e=>I_("/enterprise/im/setChatTop",e),N_.delChatAPI=e=>I_("/enterprise/im/delChat",e),N_.sendMessage=e=>I_("/enterprise/im/sendMessage",e),N_.forwardMessage=e=>I_("/enterprise/im/forwardMessage",e),N_.setMsgIsRead=e=>I_("/enterprise/im/setMsgIsRead",e),N_.undoMessage=e=>I_("/enterprise/im/undoMessage",e),N_.sendToMsg=e=>I_("/enterprise/im/sendToMsg",e),N_.isNoticeAPI=e=>I_("/enterprise/im/isNotice",e),N_.updateCard=e=>I_("/enterprise/im/updateCard",e),N_.joinGroup=e=>I_("/enterprise/group/joinGroup",e),N_.groupUserList=e=>I_("/enterprise/group/groupUserList",e),N_.setNotice=e=>I_("/enterprise/group/setNotice",e),N_.groupInfo=e=>I_("/enterprise/group/groupInfo",e),N_.joinGroup=e=>I_("/enterprise/group/joinGroup",e),N_.groupSetting=e=>I_("/enterprise/group/groupSetting",e),N_.changeOwner=e=>I_("/enterprise/group/changeOwner",e),N_.getAllUser=e=>I_("/enterprise/group/getAllUser",e),N_.addGroup=e=>I_("/enterprise/group/add",e),N_.bindGroup=e=>I_("/common/index/bindGroup",e),N_.editGroupName=e=>I_("/enterprise/group/editGroupName",e),N_.addGroupUser=e=>I_("/enterprise/group/addGroupUser",e),N_.removeUser=e=>I_("/enterprise/group/removeUser",e),N_.removeGroup=e=>I_("/enterprise/group/removeGroup",e),N_.setManager=e=>I_("/enterprise/group/setManager",e),N_.getUserInfo=e=>I_("/enterprise/im/getUserInfo",e),N_.searchUser=e=>I_("enterprise/im/searchUser",e),N_.updateUserInfo=e=>I_("enterprise/im/updateUserInfo",e),N_.editAccount=e=>I_("enterprise/im/editAccount",e),N_.editPassword=e=>I_("enterprise/im/editPassword",e);let F_={delFriend:e=>I_("/enterprise/friend/del",e),addFriend:e=>I_("/enterprise/friend/add",e),applyList:e=>I_("/enterprise/friend/index",e),acceptApply:e=>I_("/enterprise/friend/update",e),setNickname:e=>I_("/enterprise/friend/setNickname",e)};const j_={msgApi:N_,LoginApi:$_,friendApi:F_};class D_{constructor(e,t,n){this.socketTask=null,this.is_open_socket=!1,this.url=n||C_.wssUrl,this.data=e||null,this.connectNum=1,this.traderDetailIndex=100,this.accountStateIndex=100,this.followFlake=!1,this.init=!1,this.timeout=t||2e4,this.heartbeatInterval=null,this.reconnectTimeOut=null}connectSocketInit(e){this.data=e,this.socketTask=Bv({url:this.url,success:()=>(console.log("正准备建立websocket中..."),this.socketTask)}),this.socketTask.onOpen((t=>{Ld("socketStatus",!0),this.connectNum=1,console.log("WebSocket连接正常!"),this.send(e),clearInterval(this.reconnectTimeOut),clearInterval(this.heartbeatInterval),this.is_open_socket=!0,this.start(),this.socketTask.onMessage((e=>{let t=JSON.parse(e.data);t&&Ld("getPositonsOrder",t)}))})),this.init||(Nv((e=>{console.log("WebSocket连接打开失败,请检查!"),this.socketTask=null,this.is_open_socket=!1,clearInterval(this.heartbeatInterval),clearInterval(this.reconnectTimeOut),this.connectNum<6?(this.traderDetailIndex,this.reconnect(),this.connectNum+=1):(Ld("connectError"),this.connectNum=1)})),this.init=!0),this.socketTask.onClose((()=>{console.log("已经被关闭了-------"),clearInterval(this.heartbeatInterval),clearInterval(this.reconnectTimeOut),this.is_open_socket=!1,this.socketTask=null,this.connectNum<6?this.reconnect():(Ld("connectError"),this.connectNum=1)}))}Close(){this.is_open_socket&&this.socketTask.close({success(){uy({title:"SocketTask 关闭成功",icon:"none"})}})}send(e){this.socketTask&&this.socketTask.send({data:JSON.stringify(e),async success(){}})}checkStatus(){return console.log("检查状态"),clearInterval(this.reconnectTimeOut),!(!this.socketTask||[2,3].includes(this.socketTask.readyState))||(console.log("未链接!"),!1)}start(){this.heartbeatInterval=setInterval((()=>{this.send({type:"ping"})}),this.timeout)}reconnect(){clearInterval(this.heartbeatInterval),this.is_open_socket||2!=this.traderDetailIndex&&0!=this.accountStateIndex&&!this.followFlake||(console.log("5秒后重新连接..."),this.reconnectTimeOut=setInterval((()=>{this.connectSocketInit(this.data)}),5e3))}arrayFilter(e,t="normal",n=0){let o=[],r=[],i={arr1:[],arr2:[]};return o=e.filter((e=>1==e.flwsig)),r=e.filter((e=>0==e.flwsig)),"normal"==t?n?(o=e.filter((e=>1==e.flwsig&&e.sigtraderid==n)),o):o.concat(r):(n>0?(o=e.filter((e=>1==e.flwsig&&e.sigtraderid==n)),i.arr1=o):i.arr1=o,i.arr2=r,i)}}const q_=B_({name:"Empty",props:{src:{type:String,default:"/static/image/empty.png"},showImage:{type:Boolean,default:!0},noDatatext:{type:String,default:()=>"暂无数据"},textcolor:{type:String,default:"#333333"}},data:()=>({})},[["render",function(e,t,n,r,i,s){const a=Zp,c=mg,u=dg;return jr(),Ur(c,{class:"lz-empty-box"},{default:Dn((()=>[n.showImage?(jr(),Ur(c,{key:0,class:"im-flex im-align-items-center im-justify-content-center"},{default:Dn((()=>[Jr(a,{class:"empty-img",src:n.src},null,8,["src"])])),_:1})):ei("",!0),Jr(c,{class:"text-center"},{default:Dn((()=>[Jr(u,{class:l(n.showImage?" mt-20":""),style:o({color:n.textcolor})},{default:Dn((()=>[Qr(p(n.noDatatext),1)])),_:1},8,["class","style"])])),_:1})])),_:1})}],["__scopeId","data-v-2abb5e1d"]]);const V_=B_({name:"tags",props:{size:{type:String,default:"mini"},type:{type:String,default:"primary"},text:{type:String,default:()=>"暂无"}},data:()=>({})},[["render",function(e,t,n,o,r,i){const s=mg;return jr(),Ur(s,{class:l(["mr-5 radius-6 im-tags lh-15x",["mini"==n.size?"im-tags-mini":"","small"==n.size?"im-tags-samll":"","medium"==n.size?"im-tags-medium":"","info"==n.type?"im-tags-info":"","success"==n.type?"im-tags-success":"","warning"==n.type?"im-tags-warning":"","danger"==n.type?"im-tags-danger":""]])},{default:Dn((()=>[Qr(p(n.text),1)])),_:1},8,["class"])}],["__scopeId","data-v-94e516c1"]]);(function(){const e=ks(A_);return e.config.globalProperties.$util=e_,e.config.globalProperties.$api=j_,e.config.globalProperties.$store=Jb,e.config.globalProperties.socketIo=new D_,e.component("cu-custom",R_),e.component("Empty",q_),e.component("Tags",V_),e.use(Jb),{app:e}})().app.use(lm).mount("#app");export{Id as $,yu as A,Ty as B,Mm as C,ng as D,Ym as E,Mr as F,uy as G,lv as H,Cv as I,sv as J,_s as K,qo as L,ws as M,mh as N,Wm as O,_f as P,Wg as Q,Vv as R,tg as S,Km as T,Lv as U,Tv as V,Em as W,pf as X,Ad as Y,Uv as Z,B_ as _,kd as a,Qh as a0,vy as a1,yy as a2,Go as a3,zh as a4,As as a5,kf as a6,lg as a7,gg as a8,Yh as a9,I_ as aA,ky as aB,nv as aC,nf as aD,of as aE,Xh as aa,Am as ab,Jm as ac,ev as ad,du as ae,$d as af,Fv as ag,$m as ah,Ed as ai,Af as aj,Bf as ak,Ev as al,tv as am,qv as an,Mf as ao,Cf as ap,Of as aq,Bp as ar,hu as as,Ap as at,Kr as au,tf as av,rf as aw,Pp as ax,L as ay,O_ as az,zo as b,Ur as c,Hr as d,Xo as e,l as f,Jr as g,ei as h,Qr as i,mg as j,dg as k,t_ as l,Kb as m,o as n,jr as o,ey as p,Dv as q,Ho as r,Jb as s,p as t,L_ as u,fy as v,Dn as w,py as x,Zp as y,Qm as z};