Files
zyt/TongjiUniApp/dist/build/mp-weixin/common/vendor.js
T
2026-08-11 17:41:36 +08:00

9 lines
106 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";var e=Object.defineProperty,t=(t,n,o)=>((t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o)(t,"symbol"!=typeof n?n+"":n,o);
/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
function n(e,t){const n=new Set(e.split(","));return e=>n.has(e)}const o={},r=[],s=()=>{},i=()=>!1,c=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),l=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,d=(e,t)=>f.call(e,t),p=Array.isArray,h=e=>"[object Map]"===w(e),m=e=>"[object Set]"===w(e),g=e=>"function"==typeof e,v=e=>"string"==typeof e,_=e=>"symbol"==typeof e,y=e=>null!==e&&"object"==typeof e,x=e=>(y(e)||g(e))&&g(e.then)&&g(e.catch),b=Object.prototype.toString,w=e=>b.call(e),S=e=>"[object Object]"===w(e),k=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,$=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),O=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,E=O(e=>e.replace(A,(e,t)=>t?t.toUpperCase():"")),P=/\B([A-Z])/g,C=O(e=>e.replace(P,"-$1").toLowerCase()),I=O(e=>e.charAt(0).toUpperCase()+e.slice(1)),M=O(e=>e?`on${I(e)}`:""),j=(e,t)=>!Object.is(e,t),T=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},R=e=>{const t=parseFloat(e);return isNaN(t)?e:t},L=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};function D(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=v(o)?z(o):D(o);if(r)for(const e in r)t[e]=r[e]}return t}if(v(e)||y(e))return e}const U=/;(?![^(]*\))/g,N=/:([^]+)/,V=/\/\*[^]*?\*\//g;function z(e){const t={};return e.replace(V,"").split(U).forEach(e=>{if(e){const n=e.split(N);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function H(e){let t="";if(v(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const o=H(e[n]);o&&(t+=o+" ")}else if(y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const B=(e,t)=>t&&t.__v_isRef?B(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[W(t,o)+" =>"]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>W(e))}:_(t)?W(t):!y(t)||p(t)||S(t)?t:String(t),W=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},F="zh-Hans",G="zh-Hant",q="en";function K(e,t){if(!e)return;if("chinese"===(e=(e=e.trim().replace(/_/g,"-")).toLowerCase()))return F;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?F:e.indexOf("-hant")>-1?G:(n=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==n.indexOf(e))?G:F);var n;const o=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,[q,"fr","es"]);return o||void 0}const J="onShow",Z="onHide",X="onLaunch",Q="onError",Y="onThemeChange",ee="onPageNotFound",te="onUnhandledRejection",ne="onLoad",oe="onReady",re="onUnload",se="onInit",ie="onSaveExitState",ce="onResize",ae="onBackPress",le="onPageScroll",ue="onTabItemTap",fe="onReachBottom",de="onPullDownRefresh",pe="onShareTimeline",he="onShareChat",me="onAddToFavorites",ge="onShareAppMessage",ve="onNavigationBarButtonTap",_e="onNavigationBarSearchInputClicked",ye="onNavigationBarSearchInputChanged",xe="onNavigationBarSearchInputConfirmed",be="onNavigationBarSearchInputFocusChanged",we="virtualHostId";function Se(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}function ke(e,t){if(!v(t))return;const n=(t=t.replace(/\[(\d+)\]/g,".$1")).split(".");let o=n[0];return e||(e={}),1===n.length?e[o]:ke(e[o],n.slice(1).join("."))}function $e(e){let t={};return S(e)&&Object.keys(e).sort().forEach(n=>{const o=n;t[o]=e[o]}),Object.keys(t)?t:e}const Oe=/:/g;const Ae=encodeURIComponent;function Ee(e,t=Ae){const n=e?Object.keys(e).map(n=>{let o=e[n];return void 0===typeof o||null===o?o="":S(o)&&(o=JSON.stringify(o)),t(n)+"="+t(o)}).filter(e=>e.length>0).join("&"):null;return n?`?${n}`:""}const Pe=[se,ne,J,Z,re,ae,le,ue,fe,de,pe,ge,he,me,ie,ve,_e,ye,xe,be];const Ce=[J,Z,X,Q,Y,ee,te,"onExit",se,ne,oe,re,ce,ae,le,ue,fe,de,pe,me,ge,he,ie,ve,_e,ye,xe,be],Ie=(()=>({onPageScroll:1,onShareAppMessage:2,onShareTimeline:4}))();function Me(e,t,n=!0){return!(n&&!g(t))&&(Ce.indexOf(e)>-1||0===e.indexOf("on"))}let je;const Te=[];const Re=Se((e,t)=>t(e)),Le=function(){};Le.prototype={_id:1,on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n,_id:this._id}),this._id++},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<r;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],r=[];if(o&&t){for(var s=o.length-1;s>=0;s--)if(o[s].fn===t||o[s].fn._===t||o[s]._id===t){o.splice(s,1);break}r=o}return r.length?n[e]=r:delete n[e],this}};var De=Le;let Ue,Ne;class Ve{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ue,!e&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Ue;try{return Ue=this,e()}finally{Ue=t}}}on(){Ue=this}off(){Ue=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}class ze{constructor(e,t,n,o){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=Ue){t&&t.active&&t.effects.push(e)}(this,o)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,Je();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(He(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Ze()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ge,t=Ne;try{return Ge=!0,Ne=this,this._runnings++,Be(this),this.fn()}finally{We(this),this._runnings--,Ne=t,Ge=e}}stop(){var e;this.active&&(Be(this),We(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function He(e){return e.value}function Be(e){e._trackId++,e._depsLength=0}function We(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Fe(e.deps[t],e);e.deps.length=e._depsLength}}function Fe(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let Ge=!0,qe=0;const Ke=[];function Je(){Ke.push(Ge),Ge=!1}function Ze(){const e=Ke.pop();Ge=void 0===e||e}function Xe(){qe++}function Qe(){for(qe--;!qe&&et.length;)et.shift()()}function Ye(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&Fe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const et=[];function tt(e,t,n){Xe();for(const o of e.keys()){let n;o._dirtyLevel<t&&(null!=n?n:n=e.get(o)===o._trackId)&&(o._shouldSchedule||(o._shouldSchedule=0===o._dirtyLevel),o._dirtyLevel=t),o._shouldSchedule&&(null!=n?n:n=e.get(o)===o._trackId)&&(o.trigger(),o._runnings&&!o.allowRecurse||2===o._dirtyLevel||(o._shouldSchedule=!1,o.scheduler&&et.push(o.scheduler)))}Qe()}const nt=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ot=new WeakMap,rt=Symbol(""),st=Symbol("");function it(e,t,n){if(Ge&&Ne){let t=ot.get(e);t||ot.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=nt(()=>t.delete(n))),Ye(Ne,o)}}function ct(e,t,n,o,r,s){const i=ot.get(e);if(!i)return;let c=[];if("clear"===t)c=[...i.values()];else if("length"===n&&p(e)){const e=Number(o);i.forEach((t,n)=>{("length"===n||!_(n)&&n>=e)&&c.push(t)})}else switch(void 0!==n&&c.push(i.get(n)),t){case"add":p(e)?k(n)&&c.push(i.get("length")):(c.push(i.get(rt)),h(e)&&c.push(i.get(st)));break;case"delete":p(e)||(c.push(i.get(rt)),h(e)&&c.push(i.get(st)));break;case"set":h(e)&&c.push(i.get(rt))}Xe();for(const a of c)a&&tt(a,4);Qe()}const at=n("__proto__,__v_isRef,__isVue"),lt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(_)),ut=ft();function ft(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Xt(this);for(let t=0,r=this.length;t<r;t++)it(n,0,t+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Xt)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){Je(),Xe();const n=Xt(this)[t].apply(this,e);return Qe(),Ze(),n}}),e}function dt(e){const t=Xt(this);return it(t,0,e),t.hasOwnProperty(e)}class pt{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?Bt:Ht:r?zt:Vt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=p(e);if(!o){if(s&&d(ut,t))return Reflect.get(ut,t,n);if("hasOwnProperty"===t)return dt}const i=Reflect.get(e,t,n);return(_(t)?lt.has(t):at(t))?i:(o||it(e,0,t),r?i:rn(i)?s&&k(t)?i:i.value:y(i)?o?Gt(i):Ft(i):i)}}class ht extends pt{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Jt(r);if(Zt(n)||Jt(n)||(r=Xt(r),n=Xt(n)),!p(e)&&rn(r)&&!rn(n))return!t&&(r.value=n,!0)}const s=p(e)&&k(t)?Number(t)<e.length:d(e,t),i=Reflect.set(e,t,n,o);return e===Xt(o)&&(s?j(n,r)&&ct(e,"set",t,n):ct(e,"add",t,n)),i}deleteProperty(e,t){const n=d(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ct(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return _(t)&&lt.has(t)||it(e,0,t),n}ownKeys(e){return it(e,0,p(e)?"length":rt),Reflect.ownKeys(e)}}class mt extends pt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const gt=new ht,vt=new mt,_t=new ht(!0),yt=e=>e,xt=e=>Reflect.getPrototypeOf(e);function bt(e,t,n=!1,o=!1){const r=Xt(e=e.__v_raw),s=Xt(t);n||(j(t,s)&&it(r,0,t),it(r,0,s));const{has:i}=xt(r),c=o?yt:n?en:Yt;return i.call(r,t)?c(e.get(t)):i.call(r,s)?c(e.get(s)):void(e!==r&&e.get(t))}function wt(e,t=!1){const n=this.__v_raw,o=Xt(n),r=Xt(e);return t||(j(e,r)&&it(o,0,e),it(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function St(e,t=!1){return e=e.__v_raw,!t&&it(Xt(e),0,rt),Reflect.get(e,"size",e)}function kt(e){e=Xt(e);const t=Xt(this);return xt(t).has.call(t,e)||(t.add(e),ct(t,"add",e,e)),this}function $t(e,t){t=Xt(t);const n=Xt(this),{has:o,get:r}=xt(n);let s=o.call(n,e);s||(e=Xt(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?j(t,i)&&ct(n,"set",e,t):ct(n,"add",e,t),this}function Ot(e){const t=Xt(this),{has:n,get:o}=xt(t);let r=n.call(t,e);r||(e=Xt(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&ct(t,"delete",e,void 0),s}function At(){const e=Xt(this),t=0!==e.size,n=e.clear();return t&&ct(e,"clear",void 0,void 0),n}function Et(e,t){return function(n,o){const r=this,s=r.__v_raw,i=Xt(s),c=t?yt:e?en:Yt;return!e&&it(i,0,rt),s.forEach((e,t)=>n.call(o,c(e),c(t),r))}}function Pt(e,t,n){return function(...o){const r=this.__v_raw,s=Xt(r),i=h(s),c="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,l=r[e](...o),u=n?yt:t?en:Yt;return!t&&it(s,0,a?st:rt),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:c?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ct(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function It(){const e={get(e){return bt(this,e)},get size(){return St(this)},has:wt,add:kt,set:$t,delete:Ot,clear:At,forEach:Et(!1,!1)},t={get(e){return bt(this,e,!1,!0)},get size(){return St(this)},has:wt,add:kt,set:$t,delete:Ot,clear:At,forEach:Et(!1,!0)},n={get(e){return bt(this,e,!0)},get size(){return St(this,!0)},has(e){return wt.call(this,e,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:Et(!0,!1)},o={get(e){return bt(this,e,!0,!0)},get size(){return St(this,!0)},has(e){return wt.call(this,e,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:Et(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Pt(r,!1,!1),n[r]=Pt(r,!0,!1),t[r]=Pt(r,!1,!0),o[r]=Pt(r,!0,!0)}),[e,n,t,o]}const[Mt,jt,Tt,Rt]=It();function Lt(e,t){const n=t?e?Rt:Tt:e?jt:Mt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(d(n,o)&&o in t?n:t,o,r)}const Dt={get:Lt(!1,!1)},Ut={get:Lt(!1,!0)},Nt={get:Lt(!0,!1)},Vt=new WeakMap,zt=new WeakMap,Ht=new WeakMap,Bt=new WeakMap;function Wt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>w(e).slice(8,-1))(e))}function Ft(e){return Jt(e)?e:qt(e,!1,gt,Dt,Vt)}function Gt(e){return qt(e,!0,vt,Nt,Ht)}function qt(e,t,n,o,r){if(!y(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Wt(e);if(0===i)return e;const c=new Proxy(e,2===i?o:n);return r.set(e,c),c}function Kt(e){return Jt(e)?Kt(e.__v_raw):!(!e||!e.__v_isReactive)}function Jt(e){return!(!e||!e.__v_isReadonly)}function Zt(e){return!(!e||!e.__v_isShallow)}function Xt(e){const t=e&&e.__v_raw;return t?Xt(t):e}function Qt(e){return Object.isExtensible(e)&&((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}const Yt=e=>y(e)?Ft(e):e,en=e=>y(e)?Gt(e):e;class tn{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ze(()=>e(this._value),()=>on(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Xt(this);return e._cacheable&&!e.effect.dirty||!j(e._value,e._value=e.effect.run())||on(e,4),nn(e),e.effect._dirtyLevel>=2&&on(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function nn(e){var t;Ge&&Ne&&(e=Xt(e),Ye(Ne,null!=(t=e.dep)?t:e.dep=nt(()=>e.dep=void 0,e instanceof tn?e:void 0)))}function on(e,t=4,n){const o=(e=Xt(e)).dep;o&&tt(o,t)}function rn(e){return!(!e||!0!==e.__v_isRef)}function sn(e){return function(e,t){if(rn(e))return e;return new cn(e,t)}(e,!1)}class cn{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:Yt(e)}get value(){return nn(this),this._value}set value(e){const t=this.__v_isShallow||Zt(e)||Jt(e);e=t?e:Xt(e),j(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Yt(e),on(this,4))}}function an(e){return rn(e)?e.value:e}const ln={get:(e,t,n)=>an(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return rn(r)&&!rn(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function un(e){return Kt(e)?e:new Proxy(e,ln)}function fn(e,t,n,o){try{return o?e(...o):e()}catch(r){pn(r,t,n)}}function dn(e,t,n,o){if(g(e)){const r=fn(e,t,n,o);return r&&x(r)&&r.catch(e=>{pn(e,t,n)}),r}const r=[];for(let s=0;s<e.length;s++)r.push(dn(e[s],t,n,o));return r}function pn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,s))return;o=o.parent}const i=t.appContext.config.errorHandler;if(i)return void fn(i,null,10,[e,r,s])}hn(e,n,r,o)}function hn(e,t,n,o=!0){console.error(e)}let mn=!1,gn=!1;const vn=[];let _n=0;const yn=[];let xn=null,bn=0;const wn=Promise.resolve();let Sn=null;function kn(e){const t=Sn||wn;return e?t.then(this?e.bind(this):e):t}function $n(e){vn.length&&vn.includes(e,mn&&e.allowRecurse?_n+1:_n)||(null==e.id?vn.push(e):vn.splice(function(e){let t=_n+1,n=vn.length;for(;t<n;){const o=t+n>>>1,r=vn[o],s=Pn(r);s<e||s===e&&r.pre?t=o+1:n=o}return t}(e.id),0,e),On())}function On(){mn||gn||(gn=!0,Sn=wn.then(In))}function An(e){p(e)?yn.push(...e):xn&&xn.includes(e,e.allowRecurse?bn+1:bn)||yn.push(e),On()}function En(e,t,n=(mn?_n+1:0)){for(;n<vn.length;n++){const e=vn[n];e&&e.pre&&(vn.splice(n,1),n--,e())}}const Pn=e=>null==e.id?1/0:e.id,Cn=(e,t)=>{const n=Pn(e)-Pn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function In(e){gn=!1,mn=!0,vn.sort(Cn);try{for(_n=0;_n<vn.length;_n++){const e=vn[_n];e&&!1!==e.active&&fn(e,null,14)}}finally{_n=0,vn.length=0,function(){if(yn.length){const e=[...new Set(yn)].sort((e,t)=>Pn(e)-Pn(t));if(yn.length=0,xn)return void xn.push(...e);for(xn=e,bn=0;bn<xn.length;bn++)xn[bn]();xn=null,bn=0}}(),mn=!1,Sn=null,(vn.length||yn.length)&&In()}}function Mn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;let s=n;const i=t.startsWith("update:"),c=i&&t.slice(7);if(c&&c in r){const e=`${"modelValue"===c?"model":c}Modifiers`,{number:t,trim:i}=r[e]||o;i&&(s=n.map(e=>v(e)?e.trim():e)),t&&(s=n.map(R))}let a,l=r[a=M(t)]||r[a=M(E(t))];!l&&i&&(l=r[a=M(C(t))]),l&&dn(l,e,6,s);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,dn(u,e,6,s)}}function jn(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let i={},c=!1;if(!g(e)){const o=e=>{const n=jn(e,t,!0);n&&(c=!0,l(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||c?(p(s)?s.forEach(e=>i[e]=null):l(i,s),y(e)&&o.set(e,i),i):(y(e)&&o.set(e,null),null)}function Tn(e,t){return!(!e||!c(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,C(t))||d(e,t))}let Rn=null;function Ln(e){const t=Rn;return Rn=e,e&&e.type.__scopeId,t}function Dn(e,t){return e&&(e[t]||e[E(t)]||e[I(E(t))])}const Un={};function Nn(e,t,n){return Vn(e,t,n)}function Vn(e,t,{immediate:n,deep:r,flush:i,once:c,onTrack:a,onTrigger:l}=o){if(t&&c){const e=t;t=(...t)=>{e(...t),$()}}const f=Ho,d=e=>!0===r?e:Bn(e,!1===r?1:void 0);let h,m,v=!1,_=!1;if(rn(e)?(h=()=>e.value,v=Zt(e)):Kt(e)?(h=()=>d(e),v=!0):p(e)?(_=!0,v=e.some(e=>Kt(e)||Zt(e)),h=()=>e.map(e=>rn(e)?e.value:Kt(e)?d(e):g(e)?fn(e,f,2):void 0)):h=g(e)?t?()=>fn(e,f,2):()=>(m&&m(),dn(e,f,3,[y])):s,t&&r){const e=h;h=()=>Bn(e())}let y=e=>{m=S.onStop=()=>{fn(e,f,4),m=S.onStop=void 0}},x=_?new Array(e.length).fill(Un):Un;const b=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(r||v||(_?e.some((e,t)=>j(e,x[t])):j(e,x)))&&(m&&m(),dn(t,f,3,[e,x===Un?void 0:_&&x[0]===Un?[]:x,y]),x=e)}else S.run()};let w;b.allowRecurse=!!t,"sync"===i?w=b:"post"===i?w=()=>Do(b,f&&f.suspense):(b.pre=!0,f&&(b.id=f.uid),w=()=>$n(b));const S=new ze(h,s,w),k=Ue,$=()=>{S.stop(),k&&u(k.effects,S)};return t?n?b():x=S.run():"post"===i?Do(S.run.bind(S),f&&f.suspense):S.run(),$}function zn(e,t,n){const o=this.proxy,r=v(e)?e.includes(".")?Hn(o,e):()=>o[e]:e.bind(o,o);let s;g(t)?s=t:(s=t.handler,n=t);const i=Go(this),c=Vn(r,s.bind(o),n);return i(),c}function Hn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Bn(e,t,n=0,o){if(!y(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),rn(e))Bn(e.value,t,n,o);else if(p(e))for(let r=0;r<e.length;r++)Bn(e[r],t,n,o);else if(m(e)||h(e))e.forEach(e=>{Bn(e,t,n,o)});else if(S(e))for(const r in e)Bn(e[r],t,n,o);return e}function Wn(){return{app:null,config:{isNativeTag:i,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 Fn=0;let Gn=null;function qn(e,t,n=!1){const o=Ho||Rn;if(o||Gn){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Gn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&g(t)?t.call(o&&o.proxy):t}}
/*! #__NO_SIDE_EFFECTS__ */const Kn=e=>e.type.__isKeepAlive;function Jn(e,t){Xn(e,"a",t)}function Zn(e,t){Xn(e,"da",t)}function Xn(e,t,n=Ho){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Yn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Kn(e.parent.vnode)&&Qn(o,t,n,e),e=e.parent}}function Qn(e,t,n,o){const r=Yn(t,e,o,!0);io(()=>{u(o[t],r)},n)}function Yn(e,t,n=Ho,o=!1){if(n){r=e,Pe.indexOf(r)>-1&&(n=n.root);const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Je();const r=Go(n),s=dn(t,n,e,o);return r(),Ze(),s});return o?s.unshift(i):s.push(i),i}var r}const eo=e=>(t,n=Ho)=>(!Jo||"sp"===e)&&Yn(e,(...e)=>t(...e),n),to=eo("bm"),no=eo("m"),oo=eo("bu"),ro=eo("u"),so=eo("bum"),io=eo("um"),co=eo("sp"),ao=eo("rtg"),lo=eo("rtc");function uo(e,t=Ho){Yn("ec",e,t)}const fo=e=>e?Ko(e)?Qo(e)||e.proxy:fo(e.parent):null,po=l(Object.create(null),{$:e=>e,$el:e=>e.__$el||(e.__$el={}),$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>fo(e.parent),$root:e=>fo(e.root),$emit:e=>e.emit,$options:e=>bo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,$n(e.update)}),$watch:e=>zn.bind(e)}),ho=(e,t)=>e!==o&&!e.__isScriptSetup&&d(e,t),mo={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:c,type:a,appContext:l}=e;let u;if("$"!==t[0]){const a=c[t];if(void 0!==a)switch(a){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ho(r,t))return c[t]=1,r[t];if(s!==o&&d(s,t))return c[t]=2,s[t];if((u=e.propsOptions[0])&&d(u,t))return c[t]=3,i[t];if(n!==o&&d(n,t))return c[t]=4,n[t];vo&&(c[t]=0)}}const f=po[t];let p,h;return f?("$attrs"===t&&it(e,0,t),f(e)):(p=a.__cssModules)&&(p=p[t])?p:n!==o&&d(n,t)?(c[t]=4,n[t]):(h=l.config.globalProperties,d(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ho(s,t)?(s[t]=n,!0):r!==o&&d(r,t)?(r[t]=n,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},c){let a;return!!n[c]||e!==o&&d(e,c)||ho(t,c)||(a=i[0])&&d(a,c)||d(r,c)||d(po,c)||d(s.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function go(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let vo=!0;function _o(e){const t=bo(e),n=e.proxy,o=e.ctx;vo=!1,t.beforeCreate&&yo(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:c,watch:a,provide:l,inject:u,created:f,beforeMount:d,mounted:h,beforeUpdate:m,updated:v,activated:_,deactivated:x,beforeDestroy:b,beforeUnmount:w,destroyed:S,unmounted:k,render:$,renderTracked:O,renderTriggered:A,errorCaptured:E,serverPrefetch:P,expose:C,inheritAttrs:I,components:M,directives:j,filters:T}=t;if(u&&function(e,t){p(e)&&(e=$o(e));for(const n in e){const o=e[n];let r;r=y(o)?"default"in o?qn(o.from||n,o.default,!0):qn(o.from||n):qn(o),rn(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),c)for(const s in c){const e=c[s];g(e)&&(o[s]=e.bind(n))}if(r){const t=r.call(n,n);y(t)&&(e.data=Ft(t))}if(vo=!0,i)for(const p in i){const e=i[p],t=g(e)?e.bind(n,n):g(e.get)?e.get.bind(n,n):s,r=!g(e)&&g(e.set)?e.set.bind(n):s,c=Yo({get:t,set:r});Object.defineProperty(o,p,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(a)for(const s in a)xo(a[s],o,n,s);function R(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(function(){if(l){const e=g(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(Ho){let n=Ho.provides;const o=Ho.parent&&Ho.parent.provides;o===n&&(n=Ho.provides=Object.create(o)),n[e]=t,"app"===Ho.type.mpType&&Ho.appContext.app.provide(e,t)}}(t,e[t])})}}(),f&&yo(f,e,"c"),R(to,d),R(no,h),R(oo,m),R(ro,v),R(Jn,_),R(Zn,x),R(uo,E),R(lo,O),R(ao,A),R(so,w),R(io,k),R(co,P),p(C))if(C.length){const t=e.exposed||(e.exposed={});C.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});$&&e.render===s&&(e.render=$),null!=I&&(e.inheritAttrs=I),M&&(e.components=M),j&&(e.directives=j),e.ctx.$onApplyOptions&&e.ctx.$onApplyOptions(t,e,n)}function yo(e,t,n){dn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function xo(e,t,n,o){const r=o.includes(".")?Hn(n,o):()=>n[o];if(v(e)){const n=t[e];g(n)&&Nn(r,n)}else if(g(e))Nn(r,e.bind(n));else if(y(e))if(p(e))e.forEach(e=>xo(e,t,n,o));else{const o=g(e.handler)?e.handler.bind(n):t[e.handler];g(o)&&Nn(r,o,e)}}function bo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let a;return c?a=c:r.length||n||o?(a={},r.length&&r.forEach(e=>wo(a,e,i,!0)),wo(a,t,i)):a=t,y(t)&&s.set(t,a),a}function wo(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&wo(e,s,n,!0),r&&r.forEach(t=>wo(e,t,n,!0));for(const i in t)if(o&&"expose"===i);else{const o=So[i]||n&&n[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const So={data:ko,props:Eo,emits:Eo,methods:Ao,computed:Ao,beforeCreate:Oo,created:Oo,beforeMount:Oo,mounted:Oo,beforeUpdate:Oo,updated:Oo,beforeDestroy:Oo,beforeUnmount:Oo,destroyed:Oo,unmounted:Oo,activated:Oo,deactivated:Oo,errorCaptured:Oo,serverPrefetch:Oo,components:Ao,directives:Ao,watch:function(e,t){if(!e)return t;if(!t)return e;const n=l(Object.create(null),e);for(const o in t)n[o]=Oo(e[o],t[o]);return n},provide:ko,inject:function(e,t){return Ao($o(e),$o(t))}};function ko(e,t){return t?e?function(){return l(g(e)?e.call(this,this):e,g(t)?t.call(this,this):t)}:t:e}function $o(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Oo(e,t){return e?[...new Set([].concat(e,t))]:t}function Ao(e,t){return e?l(Object.create(null),e,t):t}function Eo(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),go(e),go(null!=t?t:{})):t}function Po(e,t,n,o=!1){const r={},s={};e.propsDefaults=Object.create(null),Co(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:qt(r,!1,_t,Ut,zt):e.type.props?e.props=r:e.props=s,e.attrs=s}function Co(e,t,n,r){const[s,i]=e.propsOptions;let c,a=!1;if(t)for(let o in t){if($(o))continue;const l=t[o];let u;s&&d(s,u=E(o))?i&&i.includes(u)?(c||(c={}))[u]=l:n[u]=l:Tn(e.emitsOptions,o)||o in r&&l===r[o]||(r[o]=l,a=!0)}if(i){const t=Xt(n),r=c||o;for(let o=0;o<i.length;o++){const c=i[o];n[c]=Io(s,t,c,r[c],e,!d(r,c))}}return a}function Io(e,t,n,o,r,s){const i=e[n];if(null!=i){const e=d(i,"default");if(e&&void 0===o){const e=i.default;if(i.type!==Function&&!i.skipFactory&&g(e)){const{propsDefaults:s}=r;if(n in s)o=s[n];else{const i=Go(r);o=s[n]=e.call(null,t),i()}}else o=e}i[0]&&(s&&!e?o=!1:!i[1]||""!==o&&o!==C(n)||(o=!0))}return o}function Mo(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const c=e.props,a={},u=[];let f=!1;if(!g(e)){const o=e=>{f=!0;const[n,o]=Mo(e,t,!0);l(a,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!c&&!f)return y(e)&&s.set(e,r),r;if(p(c))for(let r=0;r<c.length;r++){const e=E(c[r]);jo(e)&&(a[e]=o)}else if(c)for(const o in c){const e=E(o);if(jo(e)){const t=c[o],n=a[e]=p(t)||g(t)?{type:t}:l({},t);if(n){const t=Lo(Boolean,n.type),o=Lo(String,n.type);n[0]=t>-1,n[1]=o<0||t<o,(t>-1||d(n,"default"))&&u.push(e)}}}const h=[a,u];return y(e)&&s.set(e,h),h}function jo(e){return"$"!==e[0]&&!$(e)}function To(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function Ro(e,t){return To(e)===To(t)}function Lo(e,t){return p(t)?t.findIndex(t=>Ro(t,e)):g(t)&&Ro(t,e)?0:-1}const Do=An;function Uo(e){return e?Kt(t=e)||Jt(t)||"__vInternal"in e?l({},e):e:null;var t}const No=Wn();let Vo=0;function zo(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||No,i={uid:Vo++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ve(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Mo(r,s),emitsOptions:jn(r,s),emit:null,emitted:null,propsDefaults:o,inheritAttrs:r.inheritAttrs,ctx:o,data:o,props:o,attrs:o,slots:o,refs:o,setupState:o,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null,$uniElements:new Map,$templateUniElementRefs:[],$templateUniElementStyles:{},$eS:{},$eA:{}};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Mn.bind(null,i),e.ce&&e.ce(i),i}let Ho=null;const Bo=()=>Ho||Rn;let Wo,Fo;Wo=e=>{Ho=e},Fo=e=>{Jo=e};const Go=e=>{const t=Ho;return Wo(e),e.scope.on(),()=>{e.scope.off(),Wo(t)}},qo=()=>{Ho&&Ho.scope.off(),Wo(null)};function Ko(e){return 4&e.vnode.shapeFlag}let Jo=!1;function Zo(e,t=!1){t&&Fo(t);const{props:n}=e.vnode,o=Ko(e);Po(e,n,o,t);const r=o?function(e){const t=e.type;e.accessCache=Object.create(null),e.proxy=Qt(new Proxy(e.ctx,mo));const{setup:n}=t;if(n){const t=e.setupContext=n.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(it(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null,o=Go(e);Je();const r=fn(n,e,0,[e.props,t]);Ze(),o(),x(r)?r.then(qo,qo):function(e,t){g(t)?e.render=t:y(t)&&(e.setupState=un(t));Xo(e)}(e,r)}else Xo(e)}(e):void 0;return t&&Fo(!1),r}function Xo(e,t,n){const o=e.type;e.render||(e.render=o.render||s);{const t=Go(e);Je();try{_o(e)}finally{Ze(),t()}}}function Qo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(un(Qt(e.exposed)),{get:(t,n)=>n in t?t[n]:e.proxy[n],has:(e,t)=>t in e||t in po}))}const Yo=(e,t)=>{const n=function(e,t,n=!1){let o,r;const i=g(e);return i?(o=e,r=s):(o=e.get,r=e.set),new tn(o,r,i||!r,n)}(e,0,Jo);return n},er="3.4.21";function tr(e){return an(e)}const nr="[object Array]",or="[object Object]";function rr(e,t){const n={};return sr(e,t),ir(e,t,"",n),n}function sr(e,t){if((e=tr(e))===t)return;const n=w(e),o=w(t);if(n==or&&o==or)for(let r in t){const n=e[r];void 0===n?e[r]=null:sr(n,t[r])}else n==nr&&o==nr&&e.length>=t.length&&t.forEach((t,n)=>{sr(e[n],t)})}function ir(e,t,n,o){if((e=tr(e))===t)return;const r=w(e),s=w(t);if(r==or)if(s!=or||Object.keys(e).length<Object.keys(t).length)cr(o,n,e);else for(let i in e){const r=tr(e[i]),s=t[i],c=w(r),a=w(s);if(c!=nr&&c!=or)r!=s&&cr(o,(""==n?"":n+".")+i,r);else if(c==nr)a!=nr||r.length<s.length?cr(o,(""==n?"":n+".")+i,r):r.forEach((e,t)=>{ir(e,s[t],(""==n?"":n+".")+i+"["+t+"]",o)});else if(c==or)if(a!=or||Object.keys(r).length<Object.keys(s).length)cr(o,(""==n?"":n+".")+i,r);else for(let e in r)ir(r[e],s[e],(""==n?"":n+".")+i+"."+e,o)}else r==nr?s!=nr||e.length<t.length?cr(o,n,e):e.forEach((e,r)=>{ir(e,t[r],n+"["+r+"]",o)}):cr(o,n,e)}function cr(e,t,n){e[t]=n}function ar(e){const t=e.ctx.__next_tick_callbacks;if(t&&t.length){const e=t.slice(0);t.length=0;for(let t=0;t<e.length;t++)e[t]()}}function lr(e,t){const n=e.ctx;if(!n.__next_tick_pending&&!function(e){return vn.includes(e.update)}(e))return kn(t&&t.bind(e.proxy));let o;return n.__next_tick_callbacks||(n.__next_tick_callbacks=[]),n.__next_tick_callbacks.push(()=>{t?fn(t.bind(e.proxy),e,14):o&&o(e.proxy)}),new Promise(e=>{o=e})}function ur(e,t){const n=typeof(e=tr(e));if("object"===n&&null!==e){let n=t.get(e);if(void 0!==n)return n;if(p(e)){const o=e.length;n=new Array(o),t.set(e,n);for(let r=0;r<o;r++)n[r]=ur(e[r],t)}else{n={},t.set(e,n);for(const o in e)d(e,o)&&(n[o]=ur(e[o],t))}return n}if("symbol"!==n)return e}function fr(e){return ur(e,"undefined"!=typeof WeakMap?new WeakMap:new Map)}function dr(e,t,n){if(!t)return;(t=fr(t)).$eS=e.$eS||{},t.$eA=e.$eA||{};const o=e.ctx,r=o.mpType;if("page"===r||"component"===r){t.r0=1;const n=o.$scope,r=rr(t,function(e,t){const n=e.data,o=Object.create(null);return t.forEach(e=>{o[e]=n[e]}),o}(n,Object.keys(t)));Object.keys(r).length?(o.__next_tick_pending=!0,n.setData(r,()=>{o.__next_tick_pending=!1,ar(e)}),En()):ar(e)}}function pr(e,t,n){t.appContext.config.globalProperties.$applyOptions(e,t,n);const o=e.computed;if(o){const e=Object.keys(o);if(e.length){const n=t.ctx;n.$computedKeys||(n.$computedKeys=[]),n.$computedKeys.push(...e)}}delete t.ctx.$onApplyOptions}function hr(e,t=!1){const{setupState:n,$templateRefs:o,$templateUniElementRefs:r,ctx:{$scope:s,$mpPlatform:i}}=e;if("mp-alipay"===i)return;if(!s||!o&&!r)return;if(t)return o&&o.forEach(e=>mr(e,null,n)),void(r&&r.forEach(e=>mr(e,null,n)));const c="mp-baidu"===i||"mp-toutiao"===i,a=e=>{if(0===e.length)return[];const t=(s.selectAllComponents(".r")||[]).concat(s.selectAllComponents(".r-i-f")||[]);return e.filter(e=>{const o=function(e,t){const n=e.find(e=>e&&(e.properties||e.props).uI===t);if(n){const e=n.$vm;return e?Qo(e.$)||e:function(e){y(e)&&Qt(e);return e}(n)}return null}(t,e.i);return!(!c||null!==o)||(mr(e,o,n),!1)})},l=()=>{if(o){const t=a(o);t.length&&e.proxy&&e.proxy.$scope&&e.proxy.$scope.setData({r1:1},()=>{a(t)})}};r&&r.length&&lr(e,()=>{r.forEach(e=>{p(e.v)?e.v.forEach(t=>{mr(e,t,n)}):mr(e,e.v,n)})}),s._$setRef?s._$setRef(l):lr(e,l)}function mr({r:e,f:t},n,o){if(g(e))e(n,{});else{const r=v(e),s=rn(e);if(r||s)if(t){if(!s)return;p(e.value)||(e.value=[]);const t=e.value;if(-1===t.indexOf(n)){if(t.push(n),!n)return;n.$&&so(()=>u(t,n),n.$)}}else r?d(o,e)&&(o[e]=n):rn(e)&&(e.value=n)}}const gr=An;function vr(e,t){const n=e.component=zo(e,t.parentComponent,null);return n.ctx.$onApplyOptions=pr,n.ctx.$children=[],"app"===t.mpType&&(n.render=s),t.onBeforeSetup&&t.onBeforeSetup(n,t),Zo(n),t.parentComponent&&n.proxy&&t.parentComponent.ctx.$children.push(Qo(n)||n.proxy),function(e){const t=wr.bind(e);e.$updateScopedSlots=()=>kn(()=>$n(t));const n=()=>{if(e.isMounted){const{next:t,bu:n,u:o}=e;Sr(e,!1),br(),n&&T(n),Sr(e,!0),dr(e,yr(e)),o&&gr(o)}else so(()=>{hr(e,!0)},e),dr(e,yr(e))},o=e.effect=new ze(n,s,()=>$n(r),e.scope),r=e.update=()=>{o.dirty&&o.run()};r.id=e.uid,Sr(e,!0),r()}(n),n.proxy}const _r=e=>{let t;for(const n in e)("class"===n||"style"===n||c(n))&&((t||(t={}))[n]=e[n]);return t};function yr(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:c,attrs:a,emit:l,render:u,renderCache:f,data:d,setupState:p,ctx:h,uid:m,appContext:{app:{config:{globalProperties:{pruneComponentPropsCache:g}}}},inheritAttrs:v}=e;let _;e.$uniElementIds=new Map,e.$templateRefs=[],e.$templateUniElementRefs=[],e.$templateUniElementStyles={},e.$ei=0,g(m),e.__counter=0===e.__counter?1:0;const y=Ln(e);try{if(4&n.shapeFlag){xr(v,s,i,a);const e=r||o;_=u.call(e,e,f,s,p,d,h)}else{xr(v,s,i,t.props?a:_r(a));const e=t;_=e.length>1?e(s,{attrs:a,slots:c,emit:l}):e(s,null)}}catch(x){pn(x,e,1),_=!1}return hr(e),Ln(y),_}function xr(e,t,n,o){if(t&&o&&!1!==e){const e=Object.keys(o).filter(e=>"class"!==e&&"style"!==e);if(!e.length)return;n&&e.some(a)?e.forEach(e=>{a(e)&&e.slice(9)in n||(t[e]=o[e])}):e.forEach(e=>t[e]=o[e])}}const br=e=>{Je(),En(),Ze()};function wr(){const e=this.$scopedSlotsData;if(!e||0===e.length)return;const t=this.ctx.$scope,n=t.data,o=Object.create(null);e.forEach(({path:e,index:t,data:r})=>{const s=ke(n,e),i=v(t)?`${e}.${t}`:`${e}[${t}]`;if(void 0===s||void 0===s[t])o[i]=r;else{const e=rr(r,s[t]);Object.keys(e).forEach(t=>{o[i+"."+t]=e[t]})}}),e.length=0,Object.keys(o).length&&t.setData(o)}function Sr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}const kr=function(e,t=null){g(e)||(e=l({},e)),null==t||y(t)||(t=null);const n=Wn(),o=new WeakSet,r=n.app={_uid:Fn++,_component:e,_props:t,_container:null,_context:n,_instance:null,version:er,get config(){return n.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&g(e.install)?(o.add(e),e.install(r,...t)):g(e)&&(o.add(e),e(r,...t))),r),mixin:e=>(n.mixins.includes(e)||n.mixins.push(e),r),component:(e,t)=>t?(n.components[e]=t,r):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,r):n.directives[e],mount(){},unmount(){},provide:(e,t)=>(n.provides[e]=t,r),runWithContext(e){const t=Gn;Gn=r;try{return e()}finally{Gn=t}}};return r};function $r(e,t=null){("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof my?my:void 0).__VUE__=!0;const n=kr(e,t),o=n._context;o.config.globalProperties.$nextTick=function(e){return lr(this.$,e)};const r=e=>(e.appContext=o,e.shapeFlag=6,e),i=function(e,t){return vr(r(e),t)},c=function(e){return e&&function(e){const{bum:t,scope:n,update:o,um:r}=e;t&&T(t);{const t=e.parent;if(t){const n=t.ctx.$children,o=Qo(e)||e.proxy,r=n.indexOf(o);r>-1&&n.splice(r,1)}}n.stop(),o&&(o.active=!1),r&&gr(r),gr(()=>{e.isUnmounted=!0})}(e.$)};return n.mount=function(){e.render=s;const t=vr(r({type:e}),{mpType:"app",mpInstance:null,parentComponent:null,slots:[],props:null});return n._instance=t.$,t.$app=n,t.$createComponent=i,t.$destroyComponent=c,o.$appInstance=t,t},n.unmount=function(){},n}function Or(e,t,n,o){g(t)&&Yn(e,t.bind(n),o)}function Ar(e,t,n){!function(e,t,n){const o=e.mpType||n.$mpType;o&&"component"!==o&&Object.keys(e).forEach(o=>{if(Me(o,e[o],!1)){const r=e[o];p(r)?r.forEach(e=>Or(o,e,n,t)):Or(o,r,n,t)}})}(e,t,n)}function Er(e,t,n){return e[t]=n}function Pr(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Cr(e){const t=e.config.errorHandler;return function(n,o,r){t&&t(n,o,r);const s=e._instance;if(!s||!s.proxy)throw n;s[Q]?s.proxy.$callHook(Q,n):hn(n,0,o&&o.$.vnode,!1)}}function Ir(e,t){return e?[...new Set([].concat(e,t))]:t}let Mr;const jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Tr=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Rr(){const e=Ri.getStorageSync("uni_id_token")||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((o=t[1],decodeURIComponent(Mr(o).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}var o;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}function Lr(e){const t=e.config;var n;t.errorHandler=Re(e,Cr),n=t.optionMergeStrategies,Ce.forEach(e=>{n[e]=Ir});const o=t.globalProperties;!function(e){e.uniIDHasRole=function(e){const{role:t}=Rr();return t.indexOf(e)>-1},e.uniIDHasPermission=function(e){const{permission:t}=Rr();return this.uniIDHasRole("admin")||t.indexOf(e)>-1},e.uniIDTokenValid=function(){const{tokenExpired:e}=Rr();return e>Date.now()}}(o),o.$set=Er,o.$applyOptions=Ar,o.$callMethod=Pr,Ri.invokeCreateVueAppHook(e)}Mr="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Tr.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,o,r="",s=0;s<e.length;)t=jr.indexOf(e.charAt(s++))<<18|jr.indexOf(e.charAt(s++))<<12|(n=jr.indexOf(e.charAt(s++)))<<6|(o=jr.indexOf(e.charAt(s++))),r+=64===n?String.fromCharCode(t>>16&255):64===o?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;const Dr=Object.create(null);function Ur(e){delete Dr[e]}function Nr(e){if(!e)return;const[t,n]=e.split(",");return Dr[t]?Dr[t][parseInt(n)]:void 0}var Vr={install(e){Lr(e),e.config.globalProperties.pruneComponentPropsCache=Ur;const t=e.mount;e.mount=function(n){const o=t.call(e,n),r=function(){const e="createApp";if("undefined"!=typeof global&&void 0!==global[e])return global[e];if("undefined"!=typeof my)return my[e]}();return r?r(o):"undefined"!=typeof createMiniProgramApp&&createMiniProgramApp(o),o}}};function zr(e){return v(e)?e:function(e){let t="";if(!e||v(e))return t;for(const n in e)t+=`${n.startsWith("--")?n:C(n)}:${e[n]};`;return t}(D(e))}function Hr(e,t){const n=Bo(),o=n.ctx,r=void 0===t||"mp-weixin"!==o.$mpPlatform&&"mp-qq"!==o.$mpPlatform&&"mp-xhs"!==o.$mpPlatform||!v(t)&&"number"!=typeof t?"":"_"+t,i="e"+n.$ei+++r,c=o.$scope;if(!e)return delete c[i],i;const a=c[i];return a?a.value=e:c[i]=function(e,t){const n=e=>{var o;(o=e).type&&o.target&&(o.preventDefault=s,o.stopPropagation=s,o.stopImmediatePropagation=s,d(o,"detail")||(o.detail={}),d(o,"markerId")&&(o.detail="object"==typeof o.detail?o.detail:{},o.detail.markerId=o.markerId),S(o.detail)&&d(o.detail,"checked")&&!d(o.detail,"value")&&(o.detail.value=o.detail.checked),S(o.detail)&&(o.target=l({},o.target,o.detail)));let r=[e];t&&t.ctx.$getTriggerEventDetail&&"number"==typeof e.detail&&(e.detail=t.ctx.$getTriggerEventDetail(e.detail)),e.detail&&e.detail.__args__&&(r=e.detail.__args__);const i=n.value,c=()=>dn(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n&&n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e(t))}return t}(e,i),t,5,r),a=e.target,u=!!a&&(!!a.dataset&&"true"===String(a.dataset.eventsync));if(!Br.includes(e.type)||u){const t=c();if("input"===e.type&&(p(t)||x(t)))return;return t}setTimeout(c)};return n.value=e,n}(e,n),i}const Br=["tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend","touchforcechange"];const Wr=function(e,t=null){return e&&(e.mpType="app"),$r(e,t).use(Vr)};function Fr(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Gr=1;const qr={};function Kr(e,t,n){if("number"==typeof e){const o=qr[e];if(o)return o.keepAlive||delete qr[e],o.callback(t,n)}return t}const Jr="success",Zr="fail",Xr="complete";function Qr(e,t={},{beforeAll:n,beforeSuccess:o}={}){S(t)||(t={});const{success:r,fail:s,complete:i}=function(e){const t={};for(const n in e){const o=e[n];g(o)&&(t[n]=Fr(o),delete e[n])}return t}(t),c=g(r),a=g(s),l=g(i),u=Gr++;return function(e,t,n,o=!1){qr[e]={name:t,keepAlive:o,callback:n}}(u,e,u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),g(n)&&n(u),u.errMsg===e+":ok"?(g(o)&&o(u,t),c&&r(u)):a&&s(u),l&&i(u)}),u}const Yr="success",es="fail",ts="complete",ns={},os={};function rs(e,t){return function(n){return e(n,t)||n}}function ss(e,t,n){let o=!1;for(let r=0;r<e.length;r++){const s=e[r];if(o)o=Promise.resolve(rs(s,n));else{const e=s(t,n);if(x(e)&&(o=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return o||{then:e=>e(t),catch(){}}}function is(e,t={}){return[Yr,es,ts].forEach(n=>{const o=e[n];if(!p(o))return;const r=t[n];t[n]=function(e){ss(o,e,t).then(e=>g(r)&&r(e)||e)}}),t}function cs(e,t){const n=[];p(ns.returnValue)&&n.push(...ns.returnValue);const o=os[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach(e=>{t=e(t)||t}),t}function as(e){const t=Object.create(null);Object.keys(ns).forEach(e=>{"returnValue"!==e&&(t[e]=ns[e].slice())});const n=os[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function ls(e,t,n,o){const r=as(e);if(r&&Object.keys(r).length){if(p(r.invoke)){return ss(r.invoke,n).then(n=>t(is(as(e),n),...o))}return t(is(r,n),...o)}return t(n,...o)}function us(e,t){return(n={},...o)=>function(e){return!(!S(e)||![Jr,Zr,Xr].find(t=>g(e[t])))}(n)?cs(e,ls(e,t,n,o)):cs(e,new Promise((r,s)=>{ls(e,t,l(n,{success:r,fail:s}),o)}))}function fs(e,t,n,o={}){const r=t+":fail";let s="";return s=n?0===n.indexOf(r)?n:r+" "+n:r,delete o.errCode,Kr(e,l({errMsg:s},o))}function ds(e,t,n,o){const r=function(e){e[0]}(t);if(r)return r}function ps(e,t,n,o){return n=>{const r=Qr(e,n,o),s=ds(0,[n]);return s?fs(r,e,s):t(n,{resolve:t=>function(e,t,n){return Kr(e,l(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>fs(r,e,function(e){return!e||v(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function hs(e,t,n,o){return function(e,t){return(...e)=>{const n=ds(0,e);if(n)throw new Error(n);return t.apply(null,e)}}(0,t)}let ms=!1,gs=0,vs=0;const _s=hs(0,(e,t)=>{if(0===gs&&function(){var e,t;let n,o,r;{const s=(null===(e=wx.getWindowInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync(),i=(null===(t=wx.getDeviceInfo)||void 0===t?void 0:t.call(wx))||wx.getSystemInfoSync();n=s.windowWidth,o=s.pixelRatio,r=i.platform}gs=n,vs=o,ms="ios"===r}(),0===(e=Number(e)))return 0;let n=e/750*(t||gs);return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==vs&&ms?.5:1),e<0?-n:n});function ys(e,t){Object.keys(t).forEach(n=>{g(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):p(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))})}function xs(e,t){e&&t&&Object.keys(t).forEach(n=>{const o=e[n],r=t[n];p(o)&&g(r)&&u(o,r)})}const bs=hs(0,(e,t)=>{v(e)&&S(t)?ys(os[e]||(os[e]={}),t):S(e)&&ys(ns,e)}),ws=hs(0,(e,t)=>{v(e)?S(t)?xs(os[e],t):delete os[e]:S(e)&&xs(ns,e)});const Ss=new class{constructor(){this.$emitter=new De}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},ks=hs(0,(e,t)=>(Ss.on(e,t),()=>Ss.off(e,t))),$s=hs(0,(e,t)=>(Ss.once(e,t),()=>Ss.off(e,t))),Os=hs(0,(e,t)=>{p(e)||(e=e?[e]:[]),e.forEach(e=>{Ss.off(e,t)})}),As=hs(0,(e,...t)=>{Ss.emit(e,...t)});let Es,Ps,Cs;function Is(e){try{return JSON.parse(e)}catch(t){}return e}const Ms=[];function js(e,t){Ms.forEach(n=>{n(e,t)}),Ms.length=0}const Ts=us(Rs="getPushClientId",function(e,t,n,o){return ps(e,t,0,o)}(Rs,(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{void 0===Cs&&(Cs=!1,Es="",Ps="uniPush is not enabled"),Ms.push((e,o)=>{e?t({cid:e}):n(o)}),void 0!==Es&&js(Es,Ps)})},0,Ls));var Rs,Ls;const Ds=[],Us=/^\$|__f__|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|rpx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,Ns=/^create|Manager$/,Vs=["createBLEConnection"],zs=["request","downloadFile","uploadFile","connectSocket"],Hs=["createBLEConnection"],Bs=/^on|^off/;function Ws(e){return Ns.test(e)&&-1===Vs.indexOf(e)}function Fs(e){return Us.test(e)&&-1===Hs.indexOf(e)}function Gs(e){return-1!==zs.indexOf(e)}function qs(e){return!(Ws(e)||Fs(e)||function(e){return Bs.test(e)&&"onPush"!==e}(e))}function Ks(e,t){return qs(e)&&g(t)?function(n={},...o){return g(n.success)||g(n.fail)||g(n.complete)?cs(e,ls(e,t,n,o)):cs(e,new Promise((r,s)=>{ls(e,t,l({},n,{success:r,fail:s}),o)}))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then(n=>t.resolve(e&&e()).then(()=>n),n=>t.resolve(e&&e()).then(()=>{throw n}))});const Js=["success","fail","cancel","complete"];const Zs=()=>{const e=g(getApp)&&getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:function(){var e;let t="";{const n=(null===(e=wx.getAppBaseInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync();t=K(n&&n.language?n.language:q)||q}return t}()},Xs=[];"undefined"!=typeof global&&(global.getLocale=Zs);const Qs="__DC_STAT_UUID";let Ys;function ei(e=wx){return function(t,n){Ys=Ys||e.getStorageSync(Qs),Ys||(Ys=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:Qs,data:Ys})),n.deviceId=Ys}}function ti(e,t){if(e.safeArea){const n=e.safeArea;t.safeAreaInsets={top:n.top,left:n.left,right:e.windowWidth-n.right,bottom:e.screenHeight-n.bottom}}}function ni(e,t){let n="",o="";switch(n=e.split(" ")[0]||t,o=e.split(" ")[1]||"",n=n.toLocaleLowerCase(),n){case"harmony":case"ohos":case"openharmony":n="harmonyos";break;case"iphone os":n="ios";break;case"mac":case"darwin":n="macos";break;case"windows_nt":n="windows"}return{osName:n,osVersion:o}}function oi(e,t){let n=e.deviceType||"phone";{const e={ipad:"pad",windows:"pc",mac:"pc"},o=Object.keys(e),r=t.toLocaleLowerCase();for(let t=0;t<o.length;t++){const s=o[t];if(-1!==r.indexOf(s)){n=e[s];break}}}return n}function ri(e){let t=e;return t&&(t=t.toLocaleLowerCase()),t}function si(e){return Zs?Zs():e}function ii(e){let t=e.hostName||"WeChat";return e.environment?t=e.environment:e.host&&e.host.env&&(t=e.host.env),t}const ci={returnValue:(e,t)=>{ti(e,t),ei()(e,t),function(e,t){const{brand:n="",model:o="",system:r="",language:s="",theme:i,version:c,platform:a,fontSizeSetting:u,SDKVersion:f,pixelRatio:d,deviceOrientation:p}=e,{osName:h,osVersion:m}=ni(r,a);let g=c,v=oi(e,o),_=ri(n),y=ii(e),x=p,b=d,w=f;const S=(s||"").replace(/_/g,"-"),k={appId:"__UNI__TONGJI01",appName:"tongji-uniapp",appVersion:"1.0.0",appVersionCode:"100",appLanguage:si(S),uniCompileVersion:"4.66",uniCompilerVersion:"4.66",uniRuntimeVersion:"4.66",uniPlatform:"mp-weixin",deviceBrand:_,deviceModel:o,deviceType:v,devicePixelRatio:b,deviceOrientation:x,osName:h,osVersion:m,hostTheme:i,hostVersion:g,hostLanguage:S,hostName:y,hostSDKVersion:w,hostFontSizeSetting:u,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0,isUniAppX:!1};l(t,k)}(e,t)}},ai=ci,li={args(e,t){let n=parseInt(e.current);if(isNaN(n))return;const o=e.urls;if(!p(o))return;const r=o.length;return r?(n<0?n=0:n>=r&&(n=r-1),n>0?(t.current=o[n],t.urls=o.filter((e,t)=>!(t<n)||e!==o[n])):t.current=o[0],{indicator:!1,loop:!1}):void 0}},ui={args(e,t){t.alertText=e.title}},fi={returnValue:(e,t)=>{const{brand:n,model:o,system:r="",platform:s=""}=e;let i=oi(e,o),c=ri(n);ei()(e,t);const{osName:a,osVersion:u}=ni(r,s);t=$e(l(t,{deviceType:i,deviceBrand:c,deviceModel:o,osName:a,osVersion:u}))}},di={returnValue:(e,t)=>{const{version:n,language:o,SDKVersion:r,theme:s}=e;let i=ii(e),c=(o||"").replace(/_/g,"-");const a={hostVersion:n,hostLanguage:c,hostName:i,hostSDKVersion:r,hostTheme:s,appId:"__UNI__TONGJI01",appName:"tongji-uniapp",appVersion:"1.0.0",appVersionCode:"100",appLanguage:si(c),isUniAppX:!1,uniPlatform:"mp-weixin",uniCompileVersion:"4.66",uniCompilerVersion:"4.66",uniRuntimeVersion:"4.66"};l(t,a)}},pi={returnValue:(e,t)=>{ti(e,t),t=$e(l(t,{windowTop:0,windowBottom:0}))}},hi={args(e){const t=getApp({allowDefault:!0})||{};t.$vm?Yn(Q,e,t.$vm.$):(wx.$onErrorHandlers||(wx.$onErrorHandlers=[]),wx.$onErrorHandlers.push(e))}},mi={args(e){const t=getApp({allowDefault:!0})||{};if(t.$vm){if(e.__weh){const n=t.$vm.$[Q];if(n){const t=n.indexOf(e.__weh);t>-1&&n.splice(t,1)}}}else{if(!wx.$onErrorHandlers)return;const t=wx.$onErrorHandlers.findIndex(t=>t===e);-1!==t&&wx.$onErrorHandlers.splice(t,1)}}},gi={args(){if(wx.__uni_console__){if(wx.__uni_console_warned__)return;wx.__uni_console_warned__=!0,console.warn("开发模式下小程序日志回显会使用 socket 连接,为了避免冲突,建议使用 SocketTask 的方式去管理 WebSocket 或手动关闭日志回显功能。[详情](https://uniapp.dcloud.net.cn/tutorial/run/mp-log.html)")}}},vi=gi,_i={$on:ks,$off:Os,$once:$s,$emit:As,upx2px:_s,rpx2px:_s,interceptors:{},addInterceptor:bs,removeInterceptor:ws,onCreateVueApp:function(e){if(je)return e(je);Te.push(e)},invokeCreateVueAppHook:function(e){je=e,Te.forEach(t=>t(e))},getLocale:Zs,setLocale:e=>{const t=g(getApp)&&getApp();if(!t)return!1;return t.$vm.$locale!==e&&(t.$vm.$locale=e,Xs.forEach(t=>t({locale:e})),!0)},onLocaleChange:e=>{-1===Xs.indexOf(e)&&Xs.push(e)},getPushClientId:Ts,onPushMessage:e=>{-1===Ds.indexOf(e)&&Ds.push(e)},offPushMessage:e=>{if(e){const t=Ds.indexOf(e);t>-1&&Ds.splice(t,1)}else Ds.length=0},invokePushCallback:function(e){if("enabled"===e.type)Cs=!0;else if("clientId"===e.type)Es=e.cid,Ps=e.errMsg,js(Es,e.errMsg);else if("pushMsg"===e.type){const t={type:"receive",data:Is(e.message)};for(let e=0;e<Ds.length;e++){if((0,Ds[e])(t),t.stopped)break}}else"click"===e.type&&Ds.forEach(t=>{t({type:"click",data:Is(e.message)})})},__f__:function(e,t,...n){t&&n.push(t),console[e].apply(console,n)}};const yi=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],xi=["lanDebug","router","worklet"],bi=wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():null;function wi(e){return(!bi||1154!==bi.scene||!xi.includes(e))&&(yi.indexOf(e)>-1||"function"==typeof wx[e])}function Si(){const e={};for(const t in wx)wi(t)&&(e[t]=wx[t]);return"undefined"!=typeof globalThis&&"undefined"==typeof requireMiniProgram&&(globalThis.wx=e),e}const ki=["__route__","__wxExparserNodeId__","__wxWebviewId__"],$i=(Oi={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]},function({service:e,success:t,fail:n,complete:o}){let r;Oi[e]?(r={errMsg:"getProvider:ok",service:e,provider:Oi[e]},g(t)&&t(r)):(r={errMsg:"getProvider:fail:服务["+e+"]不存在"},g(n)&&n(r)),g(o)&&o(r)});var Oi;const Ai=Si();Ai.canIUse("getAppBaseInfo")||(Ai.getAppBaseInfo=Ai.getSystemInfoSync),Ai.canIUse("getWindowInfo")||(Ai.getWindowInfo=Ai.getSystemInfoSync),Ai.canIUse("getDeviceInfo")||(Ai.getDeviceInfo=Ai.getSystemInfoSync);let Ei=Ai.getAppBaseInfo&&Ai.getAppBaseInfo();Ei||(Ei=Ai.getSystemInfoSync());const Pi=Ei?Ei.host:null,Ci=Pi&&"SAAASDK"===Pi.env?Ai.miniapp.shareVideoMessage:Ai.shareVideoMessage;var Ii=Object.freeze({__proto__:null,createSelectorQuery:function(){const e=Ai.createSelectorQuery(),t=e.in;return e.in=function(e){return e.$scope?t.call(this,e.$scope):t.call(this,function(e){const t=Object.create(null);return ki.forEach(n=>{t[n]=e[n]}),t}(e))},e},getProvider:$i,shareVideoMessage:Ci});const Mi={args(e,t){e.compressedHeight&&!t.compressHeight&&(t.compressHeight=e.compressedHeight),e.compressedWidth&&!t.compressWidth&&(t.compressWidth=e.compressedWidth)}};var ji=Object.freeze({__proto__:null,compressImage:Mi,getAppAuthorizeSetting:{returnValue:function(e,t){const{locationReducedAccuracy:n}=e;t.locationAccuracy="unsupported",!0===n?t.locationAccuracy="reduced":!1===n&&(t.locationAccuracy="full")}},getAppBaseInfo:di,getDeviceInfo:fi,getSystemInfo:ci,getSystemInfoSync:ai,getWindowInfo:pi,offError:mi,onError:hi,onSocketMessage:vi,onSocketOpen:gi,previewImage:li,redirectTo:{},showActionSheet:ui});const Ti=Si();var Ri=function(e,t,n=wx){const o=function(e){function t(e,t,n){return function(r){return t(o(e,r,n))}}function n(e,n,o={},r={},s=!1){if(S(n)){const i=!0===s?n:{};g(o)&&(o=o(n,i)||{});for(const c in n)if(d(o,c)){let t=o[c];g(t)&&(t=t(n[c],n,i)),t?v(t)?i[t]=n[c]:S(t)&&(i[t.name?t.name:c]=t.value):console.warn(`微信小程序 ${e} 暂不支持 ${c}`)}else if(-1!==Js.indexOf(c)){const o=n[c];g(o)&&(i[c]=t(e,o,r))}else s||d(i,c)||(i[c]=n[c]);return i}return g(n)&&(g(o)&&o(n,{}),n=t(e,n,r)),n}function o(t,o,r,s=!1){return g(e.returnValue)&&(o=e.returnValue(t,o)),n(t,o,r,{},s||!1)}return function(t,r){const s=d(e,t);if(!s&&"function"!=typeof wx[t])return r;const i=s||g(e.returnValue)||Ws(t)||Gs(t),c=s||g(r);if(!s&&!r)return function(){console.error(`微信小程序 暂不支持${t}`)};if(!i||!c)return r;const a=e[t];return function(e,r){let s=a||{};g(a)&&(s=a(e));const i=[e=n(t,e,s.args,s.returnValue)];void 0!==r&&i.push(r);const c=wx[s.name||t].apply(wx,i);return(Ws(t)||Gs(t))&&c&&!c.__v_skip&&(c.__v_skip=!0),Fs(t)?o(t,c,s.returnValue,Ws(t)):c}}}(t);return new Proxy({},{get:(t,r)=>d(t,r)?t[r]:d(e,r)?Ks(r,e[r]):d(_i,r)?Ks(r,_i[r]):Ks(r,o(r,n[r]))})}(Ii,ji,Ti);const Li=["externalClasses"];const Di=/_(.*)_worklet_factory_/;function Ui(e,t){const n=e.$children;for(let r=n.length-1;r>=0;r--){const e=n[r];if(e.$scope._$vueId===t)return e}let o;for(let r=n.length-1;r>=0;r--)if(o=Ui(n[r],t),o)return o}const Ni=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Vi(e,t){const n=e.ctx;n.mpType=t.mpType,n.$mpType=t.mpType,n.$mpPlatform="mp-weixin",n.$scope=t.mpInstance,Object.defineProperties(n,{[we]:{get(){const e=this.$scope.data[we];return void 0===e?"":e}}}),n.$mp={},n._self={},e.slots={},p(t.slots)&&t.slots.length&&(t.slots.forEach(t=>{e.slots[t]=!0}),e.slots.d&&(e.slots.default=!0)),n.getOpenerEventChannel=function(){return t.mpInstance.getOpenerEventChannel()},n.$hasHook=zi,n.$callHook=Hi,e.emit=function(e,t){return function(n,...o){const r=t.$scope;if(r&&n){const e={__args__:o};r.triggerEvent(n,e)}return e.apply(this,[n,...o])}}(e.emit,n)}function zi(e){const t=this.$[e];return!(!t||!t.length)}function Hi(e,t){"mounted"===e&&(Hi.call(this,"bm"),this.$.isMounted=!0,e="m");const n=this.$[e];return n&&((e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n})(n,t)}const Bi=[ne,J,Z,re,ce,ue,fe,de,me];function Wi(e,t=new Set){if(e){Object.keys(e).forEach(n=>{Me(n,e[n])&&t.add(n)});{const{extends:n,mixins:o}=e;o&&o.forEach(e=>Wi(e,t)),n&&Wi(n,t)}}return t}function Fi(e,t,n){-1!==n.indexOf(t)||d(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.$callHook(t,e)})}const Gi=[oe];function qi(e,t,n=Gi){t.forEach(t=>Fi(e,t,n))}function Ki(e,t,n=Gi){Wi(t).forEach(t=>Fi(e,t,n))}const Ji=Se(()=>{const e=[],t=g(getApp)&&getApp({allowDefault:!0});if(t&&t.$vm&&t.$vm.$){const n=t.$vm.$.appContext.mixins;if(p(n)){const t=Object.keys(Ie);n.forEach(n=>{t.forEach(t=>{d(n,t)&&!e.includes(t)&&e.push(t)})})}}return e});const Zi=[J,Z,Q,Y,ee,te];function Xi(e,t){const n=e.$,o={globalData:e.$options&&e.$options.globalData||{},$vm:e,onLaunch(t){this.$vm=e;const o=n.ctx;this.$vm&&o.$scope&&o.$callHook||(Vi(n,{mpType:"app",mpInstance:this,slots:[]}),o.globalData=this.globalData,e.$callHook(X,t))}},r=wx.$onErrorHandlers;r&&(r.forEach(e=>{Yn(Q,e,n)}),r.length=0),function(e){const t=sn(function(){var e;let t="";{const n=(null===(e=wx.getAppBaseInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync();t=K(n&&n.language?n.language:q)||q}return t}());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(e);const s=e.$.type;qi(o,Zi),Ki(o,s);{const e=s.methods;e&&l(o,e)}return o}function Qi(e,t){if(g(e.onLaunch)){const t=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.onLaunch(t)}g(e.onShow)&&wx.onAppShow&&wx.onAppShow(e=>{t.$callHook("onShow",e)}),g(e.onHide)&&wx.onAppHide&&wx.onAppHide(e=>{t.$callHook("onHide",e)})}const Yi=["eO","uR","uRIF","uI","uT","uP","uS"];function ec(e){e.properties||(e.properties={}),l(e.properties,function(e,t=!1){const n={};if(!t){let e=function(e){const t=Object.create(null);e&&e.forEach(e=>{t[e]=!0}),this.setData({$slots:t})};Yi.forEach(e=>{n[e]={type:null,value:""}}),n.uS={type:null,value:[]},n.uS.observer=e}return e.behaviors&&e.behaviors.includes("wx://form-field")&&(e.properties&&e.properties.name||(n.name={type:null,value:""}),e.properties&&e.properties.value||(n.value={type:null,value:""})),n}(e),function(e){const t={};return e&&e.virtualHost&&(t.virtualHostStyle={type:null,value:""},t.virtualHostClass={type:null,value:""},t.virtualHostHidden={type:null,value:""},t[we]={type:null,value:""}),t}(e.options))}const tc=[String,Number,Boolean,Object,Array,null];function nc(e,t){const n=function(e){return p(e)&&1===e.length?e[0]:e}(e);return-1!==tc.indexOf(n)?n:null}function oc(e,t){return(t?function(e){const t={};S(e)&&Object.keys(e).forEach(n=>{-1===Yi.indexOf(n)&&(t[n]=e[n])});return t}(e):Nr(e.uP))||{}}function rc(e){const t=function(){const e=this.properties.uP;e&&(this.$vm?function(e,t){const n=Xt(t.props),o=Nr(e)||{};sc(n,o)&&(!function(e,t,n){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,i=Xt(o),[c]=e.propsOptions;let a=!1;if(s>0&&!(16&s)){if(8&s){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let l=n[s];if(Tn(e.emitsOptions,l))continue;const u=t[l];if(c)if(d(r,l))u!==r[l]&&(r[l]=u,a=!0);else{const t=E(l);o[t]=Io(c,i,t,u,e,!1)}else u!==r[l]&&(r[l]=u,a=!0)}}}else{let s;Co(e,t,o,r)&&(a=!0);for(const r in i)t&&(d(t,r)||(s=C(r))!==r&&d(t,s))||(c?!n||void 0===n[r]&&void 0===n[s]||(o[r]=Io(c,i,r,void 0,e,!0)):delete o[r]);if(r!==i)for(const e in r)t&&d(t,e)||(delete r[e],a=!0)}a&&ct(e,"set","$attrs")}(t,o,n),r=t.update,vn.indexOf(r)>-1&&function(e){const t=vn.indexOf(e);t>_n&&vn.splice(t,1)}(t.update),t.update());var r}(e,this.$vm.$):"m"===this.properties.uT&&function(e,t){const n=t.properties,o=Nr(e)||{};sc(n,o,!1)&&t.setData(o)}(e,this))};e.observers||(e.observers={}),e.observers.uP=t}function sc(e,t,n=!0){const o=Object.keys(t);if(n&&o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const n=o[r];if(t[n]!==e[n])return!0}return!1}function ic(e,t){e.data={},e.behaviors=function(e){const t=e.behaviors;let n=e.props;n||(e.props=n=[]);const o=[];return p(t)&&t.forEach(e=>{o.push(e.replace("uni://","wx://")),"uni://form-field"===e&&(p(n)?(n.push("name"),n.push("modelValue")):(n.name={type:String,default:""},n.modelValue={type:[String,Number,Boolean,Array,Object,Date],default:""}))}),o}(t)}function cc(e,{parse:t,mocks:n,isPage:o,isPageInProject:r,initRelation:s,handleLink:i,initLifetimes:c}){e=e.default||e;const a={multipleSlots:!0,addGlobalClass:!0,pureDataPattern:/^uP$/};p(e.mixins)&&e.mixins.forEach(e=>{y(e.options)&&l(a,e.options)}),e.options&&l(a,e.options);const u={options:a,lifetimes:c({mocks:n,isPage:o,initRelation:s,vueOptions:e}),pageLifetimes:{show(){this.$vm&&this.$vm.$callHook("onPageShow")},hide(){this.$vm&&this.$vm.$callHook("onPageHide")},resize(e){this.$vm&&this.$vm.$callHook("onPageResize",e)}},methods:{__l:i}};var f,h,m,g;return ic(u,e),ec(u),rc(u),function(e,t){Li.forEach(n=>{d(t,n)&&(e[n]=t[n])})}(u,e),f=u.methods,h=e.wxsCallMethods,p(h)&&h.forEach(e=>{f[e]=function(t){return this.$vm[e](t)}}),m=u.methods,(g=e.methods)&&Object.keys(g).forEach(e=>{const t=e.match(Di);if(t){const n=t[1];m[e]=g[e],m[n]=g[n]}}),t&&t(u,{handleLink:i}),u}let ac,lc;function uc(){return getApp().$vm}function fc(e,t){const{parse:n,mocks:o,isPage:r,initRelation:s,handleLink:i,initLifetimes:c}=t,a=cc(e,{mocks:o,isPage:r,isPageInProject:!0,initRelation:s,handleLink:i,initLifetimes:c});!function({properties:e},t){p(t)?t.forEach(t=>{e[t]={type:String,value:""}}):S(t)&&Object.keys(t).forEach(n=>{const o=t[n];if(S(o)){let t=o.default;g(t)&&(t=t());const r=o.type;o.type=nc(r),e[n]={type:o.type,value:t}}else e[n]={type:nc(o)}})}(a,(e.default||e).props);const l=a.methods;return l.onLoad=function(e){var t;return this.options=e,this.$page={fullPath:(t=this.route+Ee(e),function(e){return 0===e.indexOf("/")}(t)?t:"/"+t)},this.$vm&&this.$vm.$callHook(ne,e)},qi(l,Bi),Ki(l,e),function(e,t){if(!t)return;Object.keys(Ie).forEach(n=>{t&Ie[n]&&Fi(e,n,[])})}(l,e.__runtimeHooks),qi(l,Ji()),n&&n(a,{handleLink:i}),a}const dc=Page,pc=Component;function hc(e){const t=e.triggerEvent,n=function(n,...o){return t.apply(e,[(r=n,E(r.replace(Oe,"-"))),...o]);var r};try{e.triggerEvent=n}catch(o){e._triggerEvent=n}}function mc(e,t,n){const o=t[e];t[e]=o?function(...e){return hc(this),o.apply(this,e)}:function(){hc(this)}}Page=function(e){return mc(ne,e),dc(e)},Component=function(e){mc("created",e);return e.properties&&e.properties.uP||(ec(e),rc(e)),pc(e)};var gc=Object.freeze({__proto__:null,handleLink:function(e){const t=e.detail||e.value,n=t.vuePid;let o;n&&(o=Ui(this.$vm,n)),o||(o=this.$vm),t.parent=o},initLifetimes:function({mocks:e,isPage:t,initRelation:n,vueOptions:o}){return{attached(){let r=this.properties;!function(e,t){if(!e)return;const n=e.split(","),o=n.length;1===o?t._$vueId=n[0]:2===o&&(t._$vueId=n[0],t._$vuePid=n[1])}(r.uI,this);const s={vuePid:this._$vuePid};n(this,s);const i=this,c=t(i);let a=r;this.$vm=function(e,t){ac||(ac=uc().$createComponent);const n=ac(e,t);return Qo(n.$)||n}({type:o,props:oc(a,c)},{mpType:c?"page":"component",mpInstance:i,slots:r.uS||{},parentComponent:s.parent&&s.parent.$,onBeforeSetup(t,n){!function(e,t){Object.defineProperty(e,"refs",{get(){const e={};return function(e,t,n){e.selectAllComponents(t).forEach(e=>{const t=e.properties.uR;n[t]=e.$vm||e})}(t,".r",e),t.selectAllComponents(".r-i-f").forEach(t=>{const n=t.properties.uR;n&&(e[n]||(e[n]=[]),e[n].push(t.$vm||t))}),e}})}(t,i),function(e,t,n){const o=e.ctx;n.forEach(n=>{d(t,n)&&(e[n]=o[n]=t[n])})}(t,i,e),function(e,t){Vi(e,t);const n=e.ctx;Ni.forEach(e=>{n[e]=function(...t){const o=n.$scope;if(o&&o[e])return o[e].apply(o,t)}})}(t,n)}}),c||function(e){const t=e.$options;p(t.behaviors)&&t.behaviors.includes("uni://form-field")&&e.$watch("modelValue",()=>{e.$scope&&e.$scope.setData({name:e.name,value:e.modelValue})},{immediate:!0})}(this.$vm)},ready(){this.$vm&&(this.$vm.$callHook("mounted"),this.$vm.$callHook(oe))},detached(){var e;this.$vm&&(Ur(this.$vm.$.uid),e=this.$vm,lc||(lc=uc().$destroyComponent),lc(e))}}},initRelation:function(e,t){e.triggerEvent("__l",t)},isPage:function(e){return!!e.route},mocks:["__route__","__wxExparserNodeId__","__wxWebviewId__"]});const vc=function(e){return App(Xi(e))},_c=(yc=gc,function(e){return Component(fc(e,yc))});var yc;const xc=function(e){return function(t){return Component(cc(t,e))}}(gc),bc=function(e){Qi(Xi(e),e)},wc=function(e){const t=Xi(e),n=g(getApp)&&getApp({allowDefault:!0});if(!n)return;e.$.ctx.$scope=n;const o=n.globalData;o&&Object.keys(t.globalData).forEach(e=>{d(o,e)||(o[e]=t.globalData[e])}),Object.keys(t).forEach(e=>{d(n,e)||(n[e]=t[e])}),Qi(t,e)};wx.createApp=global.createApp=vc,wx.createPage=_c,wx.createComponent=xc,wx.createPluginApp=global.createPluginApp=bc,wx.createSubpackageApp=global.createSubpackageApp=wc,Math;const Sc=e=>(t,n=Bo())=>{!Jo&&Yn(e,t,n)},kc=Sc(J),$c=Sc(Z),Oc=Sc(X),Ac=Sc(ne),Ec=Sc(re),Pc=Sc(de),Cc=Sc(pe),Ic=Sc(ge),Mc={__name:"App",setup(e){const{proxy:t}=Bo();Oc(()=>{try{Ri.setInnerAudioOption({obeyMuteSwitch:!1,mixWithOther:!0})}catch(e){console.warn("setInnerAudioOption failed:",e)}Ri.login({provider:"weixin",success:function(e){Ri.getStorageSync("token")?o(e.code):n(e.code)}})});const n=async e=>{try{const n=await t.apiUrl({url:"/api/login/mnpLogin",method:"POST",data:{code:e}},!1);n&&n.data&&n.data.token&&(Ri.setStorageSync("token",n.data.token),Ri.setStorageSync("userData",n.data))}catch(n){}},o=async e=>{try{const o=await t.apiUrl({url:"/api/user/info",method:"POST"},!1);if(-1==o.code)return void n(e);o&&o.data&&Ri.setStorageSync("userData",o.data)}catch(o){}};return()=>{}}};var jc="https://admin.zhenyangtang.com.cn/";function Tc(e,t=!0){const n={token:Ri.getStorageSync("token"),"content-type":"application/x-www-form-urlencoded",...e.header||{}},o=e.data||{},r=function(e,t){const n=String(e).replace(/\/+$/,""),o=String(t||"").replace(/^\/+/,"");return o?`${n}/${o}`:n}(jc,e.url||"");return new Promise((s,i)=>{t&&Ri.showLoading({title:"加载中...",mask:!0}),Ri.request({url:r,data:o,timeout:null!=e.timeout?e.timeout:15e3,method:e.method||"POST",header:n,sslVerify:!1,success:e=>{const t=e.data;-1===t.code&&Ri.removeStorageSync("token"),s(t)},fail:e=>{i(e)},complete:e=>{t&&Ri.hideLoading()}})})}function Rc(e){const t={};if(!e)return t;if(e.scene)try{decodeURIComponent(e.scene).split("&").forEach(e=>{const[n,o]=e.split("=");n&&o&&(t[n]=o)})}catch(n){console.error("解析scene参数失败:",n)}return Object.keys(e).forEach(n=>{"scene"!==n&&e[n]&&(t[n]=e[n])}),t}function Lc(){const e=Wr(Mc);return e.config.globalProperties.$url=jc,e.config.globalProperties.apiUrl=Tc,e.config.globalProperties.$parsePageParams=Rc,{app:e}}function Dc(e){if("string"==typeof e)return e;if(!e)return"";if("undefined"!=typeof TextDecoder&&e instanceof ArrayBuffer)return new TextDecoder("utf-8").decode(new Uint8Array(e));if(e instanceof ArrayBuffer){const n=new Uint8Array(e);let o="";for(let e=0;e<n.length;e++)o+=String.fromCharCode(n[e]);try{return decodeURIComponent(escape(o))}catch(t){return o}}return""}function Uc(e,t){let n=e,o=n.indexOf("\n\n");for(;-1!==o;){const e=n.slice(0,o);n=n.slice(o+2);let s="message",i="";if(e.split("\n").forEach(e=>{e.startsWith("event:")?s=e.slice(6).trim():e.startsWith("data:")&&(i+=e.slice(5).trim())}),i)try{t(s,JSON.parse(i))}catch(r){t(s,i)}o=n.indexOf("\n\n")}return n}function Nc(e){const t={};if(!e)return t;const n=/^(早餐|喝的|午餐|晚餐|提示|少碰)[:]\s*(.*)$/gm;let o;for(;null!==(o=n.exec(e));){const e={"早餐":"breakfast","喝的":"drinks","午餐":"lunch","晚餐":"dinner","提示":"tips","少碰":"avoid"}[o[1]],n=(o[2]||"").trim();"avoid"===e?t.avoid=n.split(/[、,;\s]+/).map(e=>e.trim()).filter(Boolean):t[e]=n}const r=e.match(/(?:^|\n)(早餐|喝的|午餐|晚餐|提示|少碰)[:]\s*([^\n]*)$/);if(r){const e={"早餐":"breakfast","喝的":"drinks","午餐":"lunch","晚餐":"dinner","提示":"tips","少碰":"avoid"}[r[1]],n=(r[2]||"").trim();"avoid"===e?n&&(t.avoid=n.split(/[、,;\s]+/).map(e=>e.trim()).filter(Boolean)):t[e]=n}return t}function Vc(e){const{baseUrl:t,url:n,method:o="GET",data:r={},onEvent:s,fallback:i}=e;return new Promise((e,c)=>{const a=Ri.getStorageSync("token")||"";let l="",u=function(e,t){const n=String(e||"").replace(/\/+$/,""),o=String(t||"").replace(/^\/+/,"");return o?`${n}/${o}`:n}(t,n);"GET"===o&&(u=function(e,t){if(!t||"object"!=typeof t)return e;const n=Object.keys(t);if(!n.length)return e;const o=n.map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e]??"")}`).join("&");return e+(e.includes("?")?"&":"?")+o}(u,r));const f=Ti.request({url:u,method:o,data:"POST"===o?r:{},enableChunked:!0,timeout:6e4,header:{token:a,"content-type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"},success:t=>{t&&t.data&&(l+=Dc(t.data),l=Uc(l,s)),e(t)},fail:e=>c(e)});f&&"function"==typeof f.onChunkReceived?f.onChunkReceived(e=>{l+=Dc(e.data),l=Uc(l,s)}):"function"==typeof i?i().then(e).catch(c):c(new Error("当前环境不支持流式请求"))})}Lc().app.mount("#app");const zc="tongji_diet_ai_prefill";function Hc(e,t){const n=String(e||"").toLowerCase();if(/internal voice data failed/i.test(n))return!0;if(/voice data failed/i.test(n))return!0;if(/recordfailed|record failed|record manager/i.test(n))return!0;if(/please stop after start/i.test(n))return!0;if(/no recognition|not start|未开始|无识别/i.test(n))return!0;const o=Number(t);return-30002===o||-30003===o||-30012===o}let Bc=null,Wc=!1,Fc=!1,Gc=null;const qc=50,Kc=[{level:0,name:"种子眠",emoji:"🫘",mood:"困困",desc:"稳糖种子在土里打盹"},{level:1,name:"破土芽",emoji:"🌱",mood:"探头",desc:"探出第一抹新绿"},{level:2,name:"展两叶",emoji:"🌿",mood:"好奇",desc:"两片嫩叶迎风展"},{level:3,name:"小树苗",emoji:"🪴",mood:"精神",desc:"身子骨硬朗起来"},{level:4,name:"青枝繁",emoji:"🌳",mood:"茁壮",desc:"枝叶渐密,元气足"},{level:5,name:"拔节高",emoji:"🌲",mood:"挺拔",desc:"一节一节往上蹿"},{level:6,name:"稳糖冠",emoji:"💚",mood:"沉稳",desc:"树冠成形,习惯成自然"},{level:7,name:"初绽香",emoji:"🌸",mood:"开心",desc:"枝头冒出第一朵花"},{level:8,name:"漫开花",emoji:"🌺",mood:"灿烂",desc:"花开满枝,越记越稳"},{level:9,name:"圆满树",emoji:"🏆",mood:"荣耀",desc:"满级大树,习惯大师"}],Jc={0:["种子在睡觉,记一笔就醒啦。","今天浇第一滴水,芽就要冒出来。"],1:["破土啦!再坚持几天就长高。","小芽最喜欢规律的记录了。"],2:["两片叶子为你鼓掌。","空腹餐后都记全,我会长得更快。"],3:["我已经是一棵小树啦。","家人点赞的时候,我也会发光。"],4:["枝叶越来越密,您真棒。","连续记录,我会开出更多叶子。"],5:["拔节中!习惯比完美更重要。","再浇一点水,我就更高啦。"],6:["习惯成自然,树冠成形啦。","您今天的坚持,小树都记得。"],7:["开花啦!闻到春天的味道了吗?","稳糖花只开给坚持的人。"],8:["满树花香,您已是控糖达人。","明天继续来,花儿会更艳。"],9:["满级大树陪您一路稳糖。","圆满不是终点,习惯才是。"]};const Zc=[{id:"classic",name:"稳糖灵树",tagline:"经典路线,从种子到圆满",stages:Kc.map(e=>e.emoji)},{id:"bonsai",name:"雅韵盆景",tagline:"小巧精致,书桌旁的温柔陪伴",stages:["🫘","🌱","🪴","🎋","🪴","🌳","🎍","🌸","🏵️","🏆"]},{id:"pine",name:"苍劲青松",tagline:"挺拔向上,越记越稳",stages:["🫘","🌱","🌿","🌲","🌲","🌲","⛰️","🌲","🏔️","🏆"]},{id:"sakura",name:"樱花小树",tagline:"坚持打卡,枝头渐开",stages:["🫘","🌱","🌿","🌳","🌸","🌸","🌸","🌸","🌺","🏆"]},{id:"ginkgo",name:"金秋银杏",tagline:"叶色渐变,见证每一天",stages:["🫘","🌱","🍃","🌳","🍂","🍂","🌳","🍁","🌟","🏆"]}];function Xc(e){return Zc.find(t=>t.id===e)||Zc[0]}const Qc={"零":0,"":0,"一":1,"壹":1,"幺":1,"二":2,"贰":2,"两":2,"三":3,"叁":3,"四":4,"肆":4,"五":5,"伍":5,"六":6,"陆":6,"七":7,"柒":7,"八":8,"捌":8,"九":9,"玖":9},Yc={"十":10,"拾":10,"百":100,"佰":100,"千":1e3,"仟":1e3,"万":1e4,"亿":1e8};function ea(e){let t=0,n=0,o=0,r=!1,s=0,i=!1;for(const c of e)if(void 0!==Qc[c])o=Qc[c],0===o&&(i=!0);else if(void 0!==Yc[c]){r=!0;const e=Yc[c];s=e,i=!1,e>=1e4?(n=(n+o)*e,t+=n,n=0):(0===o&&(o=1),n+=o*e),o=0}if(!r&&e.length>1){let t="";for(const n of e)void 0!==Qc[n]&&(t+=Qc[n]);if(t)return Number(t)}return o>0&&s>=100&&!i&&(o*=s/10),t+n+o}function ta(e){return String(e||"").replace(/[零〇一壹幺二贰两三叁四肆五伍六陆七柒八捌九玖十拾百佰千仟万亿点]+/g,e=>{if(!function(e){for(const t of e)if(void 0!==Qc[t]||void 0!==Yc[t])return!0;return!1}(e))return e;const t=function(e){if(e.includes("点")){const t=e.split("点"),n=t[0],o=t.slice(1).join(""),r=n?ea(n):0;let s="";for(const e of o)void 0!==Qc[e]&&(s+=Qc[e]);return s?Number(`${r}.${s}`):r}return ea(e)}(e);return Number.isFinite(t)?String(t):e})}function na(e,t){for(const n of t){const t=e.indexOf(n);if(t>=0){const o=e.slice(t+n.length).match(/-?\d+(?:\.\d+)?/);if(o)return o[0]}}return""}function oa(e,t,n=[]){for(const o of t){const t=e.indexOf(o);if(t>=0){let r=e.slice(t+o.length);r=r.replace(/^[是为吃了喝了吃的喝的有打了用了::,,、。\s]+/,"");let s=r.length;const i=r.match(/[,。.;!?\n]/);i&&i.index<s&&(s=i.index);for(const e of n){const t=r.indexOf(e);t>=0&&t<s&&(s=t)}const c=r.slice(0,s).trim();if(c)return c}}return""}const ra=[{keys:["早餐","早饭","早上","早点","早晨"],field:"breakfast_foods"},{keys:["午餐","午饭","中午"],field:"lunch_foods"},{keys:["晚餐","晚饭","晚上","夜宵","夜里"],field:"dinner_foods"}];function sa(e){return String(e||"").replace(/^[是为吃了吃的喝了喝的有::,,、。\s]+/,"").replace(/[。.\s]+$/,"").trim()}const ia=["今天","我","做了","做","进行了","进行","运动了","运动","锻炼了","锻炼","了","大概","左右","持续","差不多","一共","总共","的","走了","打了","跑了"];const ca={fasting_blood_sugar:"空腹",postprandial_blood_sugar:"餐后",other_blood_sugar:"其他血糖",systolic_pressure:"高压",diastolic_pressure:"低压",western_medicine:"西药",insulin:"胰岛素",breakfast_foods:"早餐",lunch_foods:"午餐",dinner_foods:"晚餐",note:"备注",exercise_type:"运动",duration:"时长",intensity:"强度"},aa={1:"低强度",2:"中强度",3:"高强度"};const la="tongji_game_sfx_enabled",ua="https://gz-1349751149.cos.ap-guangzhou.myqcloud.com/uploads/file",fa={tap:`${ua}/20260526/20260526105128557ef8669.mp3`,swoosh:`${ua}/20260527/202605271539371ebe13672.mp3`,pop:`${ua}/20260526/202605261051282a0a94508.mp3`,buzz:`${ua}/20260527/202605271539376ff628472.mp3`,chime:`${ua}/20260528/202605280937077bad76716.mp3`,fanfare:`${ua}/20260528/20260528093707b021f5794.mp3`,blast:`${ua}/20260528/20260528093707ebd4d5733.mp3`,sparkle:`${ua}/20260528/20260528093707016f07427.mp3`,stinger:`${ua}/20260528/20260528093709c669f4659.mp3`},da={tap:{src:fa.tap,volume:.32,rate:1,pool:3},pop:{src:fa.pop,volume:.3,rate:1,pool:4},fanfare:{src:fa.fanfare,volume:.56,rate:1,pool:2},blast:{src:fa.blast,volume:.62,rate:1,pool:2},sparkle:{src:fa.sparkle,volume:.5,rate:1,pool:2},select:{src:fa.tap,volume:.32,rate:1.05,pool:3},deselect:{src:fa.tap,volume:.22,rate:.82,pool:2},hint:{src:fa.tap,volume:.26,rate:1.28,pool:2},swap:{src:fa.swoosh,volume:.38,rate:1,pool:3},swapFail:{src:fa.buzz,volume:.36,rate:1.18,pool:2},drop:{src:fa.pop,volume:.3,rate:.88,pool:4},dropLight:{src:fa.pop,volume:.22,rate:1.22,pool:2},match3:{src:fa.chime,volume:.48,rate:1,pool:4},match4:{src:fa.fanfare,volume:.54,rate:1.06,pool:3},match5:{src:fa.blast,volume:.62,rate:1,pool:3},matchLowGi:{src:fa.chime,volume:.42,rate:.86,pool:2},matchMidGi:{src:fa.chime,volume:.46,rate:1.02,pool:2},matchHighGi:{src:fa.buzz,volume:.44,rate:.92,pool:2},combo2:{src:fa.fanfare,volume:.56,rate:1.12,pool:2},combo3:{src:fa.blast,volume:.64,rate:1.08,pool:2},comboMega:{src:fa.blast,volume:.72,rate:1.22,pool:2},insulin:{src:fa.sparkle,volume:.5,rate:1.15,pool:2},fiber:{src:fa.swoosh,volume:.48,rate:1.32,pool:2},meal:{src:fa.stinger,volume:.42,rate:1.35,pool:1},reshuffle:{src:fa.swoosh,volume:.46,rate:.72,pool:2},score:{src:fa.tap,volume:.28,rate:1.38,pool:2},goalTick:{src:fa.chime,volume:.36,rate:1.45,pool:2},meterWarn:{src:fa.buzz,volume:.5,rate:1,pool:2},meterDanger:{src:fa.buzz,volume:.58,rate:.78,pool:2},meterStable:{src:fa.pop,volume:.24,rate:1.05,pool:1},win:{src:fa.fanfare,volume:.66,rate:1,pool:1},winStinger:{src:fa.stinger,volume:.38,rate:1.5,pool:1},lose:{src:fa.buzz,volume:.52,rate:.68,pool:1},match:{src:fa.chime,volume:.48,rate:1,pool:4},combo:{src:fa.fanfare,volume:.56,rate:1.1,pool:3},heal:{src:fa.pop,volume:.44,rate:1.18,pool:2},boost:{src:fa.sparkle,volume:.52,rate:1,pool:2},invalid:{src:fa.buzz,volume:.4,rate:1.15,pool:2},danger:{src:fa.blast,volume:.58,rate:.95,pool:2}},pa=["select","swap","swapFail","drop","dropLight","match3","match4","match5","combo2","combo3","comboMega","insulin","sparkle","reshuffle","lose"];class ha{constructor(e,t,n,o=1){this.src=e,this.size=t,this.volume=n,this.rate=o,this.list=[],this.cursor=0,this.warmedUp=!1}createOne(){const e=function(){if("undefined"!=typeof Audio){const e=new Audio;return e.preload="auto",{get src(){return e.src},set src(t){e.src=t},get volume(){return e.volume},set volume(t){e.volume=t},get playbackRate(){return e.playbackRate},set playbackRate(t){e.playbackRate=t},play(){const t=e.play();(null==t?void 0:t.catch)&&t.catch(()=>{})},stop(){e.pause();try{e.currentTime=0}catch(t){}},seek(t){try{e.currentTime=t}catch(n){}},destroy(){e.pause(),e.removeAttribute("src")}}}return Ri.createInnerAudioContext()}();e.src=this.src,e.obeyMuteSwitch=!1,e.autoplay=!1,e.volume=this.volume;try{e.playbackRate=this.rate}catch(t){}return this.list.push(e),e}create(){for(;this.list.length<this.size;)this.createOne()}warmUp(){if(this.warmedUp)return;const e=this.list[0]||this.createOne();try{e.volume=0,e.play(),setTimeout(()=>{try{e.stop(),e.volume=this.volume}catch(t){}},60)}catch(t){}this.size>1&&(this.cursor=1),this.warmedUp=!0}play(e=1,t=1){this.list.length<this.size&&this.create();const n=this.list[this.cursor%this.list.length];this.cursor+=1;const o=Math.min(1,this.volume*e),r=Math.min(2,Math.max(.5,this.rate*t));try{n.volume=o;try{n.playbackRate=r}catch(s){}n.stop(),n.seek(0),n.play()}catch(s){try{n.play()}catch(i){}}}destroy(){this.list.forEach(e=>{try{e.stop(),e.destroy()}catch(t){}}),this.list=[],this.warmedUp=!1}}const ma={week_start:"",week_end:"",sex_label:"同行",group_size:7,member_count:0,players:[],me:{count:0,rank:1,best_score:0,distance:0,is_first:!0},invite_code:""},ga="tongji_endless_pending_sync_v1";function va(){const e=Math.random().toString(36).slice(2,12);return`game_${Date.now().toString(36)}_${e}`}class _a{constructor(e,n,o=1){t(this,"list",[]),t(this,"cursor",0),t(this,"warmedUp",!1),t(this,"targetVolume",1),this.src=e,this.size=n,this.targetVolume=o}create(){for(let e=0;e<this.size;e++){const e=Ri.createInnerAudioContext();e.src=this.src,e.obeyMuteSwitch=!1,e.autoplay=!1,e.volume=this.targetVolume,this.list.push(e)}}setVolume(e){this.targetVolume=Math.max(0,Math.min(1,e)),this.list.forEach(e=>{try{e.volume=this.targetVolume}catch(t){}})}warmUp(){this.warmedUp||(0===this.list.length&&this.create(),this.list.forEach(e=>{try{e.volume=0,e.play(),setTimeout(()=>{try{e.stop(),e.volume=this.targetVolume}catch(t){}},60)}catch(t){}}),this.warmedUp=!0)}play(){0===this.list.length&&(this.create(),this.warmUp());const e=this.list[this.cursor];this.cursor=(this.cursor+1)%this.list.length;try{this.list.forEach(e=>{try{e.stop()}catch(t){}}),e.play()}catch(t){try{e.play()}catch(n){}}}destroy(){this.list.forEach(e=>{var t;try{null==(t=e.destroy)||t.call(e)}catch(n){}}),this.list=[],this.warmedUp=!1}}const ya="https://gz-1349751149.cos.ap-guangzhou.myqcloud.com/uploads/file/20260526/20260526105128557ef8669.mp3";exports.TREE_LEVELS=Kc,exports.TREE_MAX_LEVEL=9,exports.TREE_SPECIES_LIST=Zc,exports.TREE_XP_PER_LEVEL=qc,exports._export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},exports.calcTreeFromPoints=function(e){const t=Math.max(0,Number(e)||0),n=Math.min(9,Math.floor(t/qc)),o=n>=9?qc:t%qc,r=n>=9?100:Math.round(o/qc*100),s=Kc[n]||Kc[0],i=n<9?Kc[n+1]:null,c=n>=9?0:qc-o;return{level:n,progress:r,name:s.name,emoji:s.emoji,mood:s.mood,desc:s.desc,xpInLevel:o,xpNeed:qc,pointsToNext:c,nextName:(null==i?void 0:i.name)||"",isMax:n>=9}},exports.computed=Yo,exports.consumeDietAiPrefill=function(){try{const e=Ri.getStorageSync(zc);if(Ri.removeStorageSync(zc),e&&"object"==typeof e&&e.breakfast)return e}catch(e){}return null},exports.createApp=Lc,exports.defineComponent=function(e,t){return g(e)?(()=>l({name:e.name},t,{setup:e}))():e},exports.e=(e,...t)=>l(e,...t),exports.estimateDaysToMaxLevel=function(){return Math.max(1,Math.ceil(11.25))},exports.f=(e,t)=>function(e,t){let n;if(p(e)||v(e)){n=new Array(e.length);for(let o=0,r=e.length;o<r;o++)n[o]=t(e[o],o,o)}else if("number"==typeof e){n=new Array(e);for(let o=0;o<e;o++)n[o]=t(o+1,o,o)}else if(y(e))if(e[Symbol.iterator])n=Array.from(e,(e,n)=>t(e,n,n));else{const o=Object.keys(e);n=new Array(o.length);for(let r=0,s=o.length;r<s;r++){const s=o[r];n[r]=t(e[s],s,r)}}else n=[];return n}(e,t),exports.fontData=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}],exports.getCurrentInstance=Bo,exports.getTreeSpecies=Xc,exports.index=Ri,exports.isBenignSttError=Hc,exports.m=(e,t,n=!1)=>function(e,{number:t,trim:n},o=!1){return o?(...o)=>(n?o=o.map(e=>e.trim()):t&&(o=o.map(L)),e(...o)):o=>{const r=o.detail.value;return n?o.detail.value=r.trim():t&&(o.detail.value=L(r)),e(o)}}(e,t,n),exports.n=e=>H(e),exports.nextTick$1=kn,exports.normalizeNumbers=ta,exports.o=(e,t)=>Hr(e,t),exports.onBeforeUnmount=so,exports.onHide=$c,exports.onLoad=Ac,exports.onMounted=no,exports.onPullDownRefresh=Pc,exports.onShareAppMessage=Ic,exports.onShareTimeline=Cc,exports.onShow=kc,exports.onUnload=Ec,exports.onUnmounted=io,exports.p=e=>function(e){const{uid:t,__counter:n}=Bo();return t+","+((Dr[t]||(Dr[t]=[])).push(Uo(e))-1)+","+n}(e),exports.parseBloodPressure=function(e){const t=ta(e),n={};let o=na(t,["高压","收缩压","收缩"]),r=na(t,["低压","舒张压","舒张"]);if(!o||!r){const e=(t.match(/\d{2,3}/g)||[]).map(Number).filter(e=>e>=30&&e<=300);!o&&!r&&e.length>=2?(o=String(e[0]),r=String(e[1])):!o&&1===e.length&&e[0]>=90&&(o=String(e[0]))}if(o&&r&&Number(o)<Number(r)){const e=o;o=r,r=e}o&&(n.systolic_pressure=o),r&&(n.diastolic_pressure=r);const s=oa(e,["胰岛素"],["高压","低压","血压","西药","备注"]);s&&(n.insulin=s);const i=oa(e,["西药","降糖药","口服药"],["胰岛素","高压","低压","血压","备注"]);return i&&(n.western_medicine=i),n},exports.parseDiet=function(e){const t=String(e||"").trim(),n={},o=[];if(ra.forEach(e=>{for(const n of e.keys){const r=t.indexOf(n);if(r>=0){o.push({idx:r,field:e.field,klen:n.length});break}}}),!o.length)return t&&(n.note=t),n;o.sort((e,t)=>e.idx-t.idx),o.forEach((e,r)=>{const s=e.idx+e.klen,i=r+1<o.length?o[r+1].idx:t.length,c=sa(t.slice(s,i));c&&!n[e.field]&&(n[e.field]=c)});const r=sa(t.slice(0,o[0].idx));return r&&(n.note=r),n},exports.parseExercise=function(e){const t=ta(e),n={},o=t.match(/(\d+(?:\.\d+)?)\s*(个小时|小时|钟头|时|分钟|分)/);if(o){const e=parseFloat(o[1]),t=/个小时|小时|钟头|时/.test(o[2]);n.duration=String(Math.round(t?60*e:e))}/高强度|剧烈|很累|大汗|气喘/.test(t)?n.intensity=3:/中强度|中等强度|中等|有点累|微微出汗|微汗/.test(t)?n.intensity=2:/低强度|轻松|轻微|溜达|缓慢/.test(t)&&(n.intensity=1);let r=t;return o&&(r=r.replace(o[0],"")),r=r.replace(/高强度|中强度|中等强度|低强度|剧烈|很累|大汗|气喘|有点累|微微出汗|微汗|轻松|轻微|缓慢/g,"").replace(/\d+(?:\.\d+)?/g,"").replace(/[,。.;、\s]+/g,""),ia.forEach(e=>{r=r.split(e).join("")}),r=r.trim(),r&&r.length<=20&&(n.exercise_type=r),n},exports.parseGlucose=function(e){const t=ta(e),n={},o=na(t,["空腹"]),r=na(t,["餐后","饭后"]),s=na(t,["其他","随机","睡前","凌晨","夜间","晚上"]);if(o&&(n.fasting_blood_sugar=o),r&&(n.postprandial_blood_sugar=r),s&&(n.other_blood_sugar=s),!o&&!r&&!s){const e=t.match(/\d+(?:\.\d+)?/g);e&&1===e.length&&(n.other_blood_sugar=e[0])}return n},exports.pickTreeWhisper=function(e){const t=Math.min(9,Math.max(0,Number(e)||0)),n=Jc[t]||Jc[0];return n[Math.floor(Math.random()*n.length)]},exports.reactive=Ft,exports.ref=sn,exports.resolveComponent=function(e,t){return function(e,t,n=!0,o=!1){const r=Rn||Ho;if(r){const n=r.type;{const e=function(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===E(t)||e===I(E(t))))return n}const s=Dn(r[e]||n[e],t)||Dn(r.appContext[e],t);return!s&&o?n:s}}("components",e,!0,t)||e},exports.s=e=>zr(e),exports.speciesEmojiAtLevel=function(e,t){const n=Xc(e),o=Math.min(9,Math.max(0,Number(t)||0));return n.stages[o]||n.stages[0]||"🌱"},exports.speciesGrowthRoadmap=function(e){const t=Xc(e);return Kc.map((e,n)=>{const o=n*qc,r=0===n?0:Math.max(1,Math.ceil(o/40));return{level:n,name:e.name,emoji:t.stages[n]||e.emoji,desc:e.desc,xpTotal:o,daysHint:r}})},exports.sr=(e,t,n)=>function(e,t,n={}){const{$templateRefs:o}=Bo();o.push({i:t,r:e,k:n.k,f:n.f})}(e,t,n),exports.summarizeParsed=function(e){const t=[];return Object.keys(e).forEach(n=>{const o=ca[n]||n;let r=e[n];"intensity"===n&&(r=aa[r]||r),t.push(`${o}${r}`)}),t.join(" · ")},exports.svgToDataUrl=function(e){const t=String(e||"").trim();return t?`data:image/svg+xml;base64,${function(e){if(void 0!==Ri&&"function"==typeof Ri.arrayBufferToBase64)return Ri.arrayBufferToBase64(e.buffer);if("undefined"!=typeof btoa){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";let n="";for(let o=0;o<e.length;o+=3){const r=e[o],s=o+1<e.length?e[o+1]:0,i=o+2<e.length?e[o+2]:0;n+=t[r>>2],n+=t[(3&r)<<4|s>>4],n+=o+1<e.length?t[(15&s)<<2|i>>6]:"=",n+=o+2<e.length?t[63&i]:"="}return n}(function(e){const t=encodeURIComponent(e),n=[];for(let o=0;o<t.length;o++)37===t.charCodeAt(o)?(n.push(parseInt(t.substring(o+1,o+3),16)),o+=2):n.push(t.charCodeAt(o));return new Uint8Array(n)}(t))}`:""},exports.t=e=>(e=>v(e)?e:null==e?"":p(e)||y(e)&&(e.toString===b||!g(e.toString))?JSON.stringify(e,B,2):String(e))(e),exports.unref=an,exports.useDietAi=function(e,{diagnosisId:t,showUserToast:n,formatUserMessage:o}){const r=sn({breakfast:"",drinks:"",lunch:"",dinner:"",tips:"",avoid:[],analysis:[],exercise:null,disclaimer:"",rules_summary:"",source:"",date:""}),s=sn(!1),i=sn(!1),c=sn(!1),a=sn("");let l="";const u=sn(""),f=sn(!1),d=sn({advice:"",level:"",level_label:"",portion:"",food:""}),p=Yo(()=>{const e=r.value;return!!(e.breakfast||e.drinks||e.lunch||e.dinner||e.tips)});function h(){const e=Nc(l),t={...r.value};for(const n of["breakfast","drinks","lunch","dinner","tips"])null!=e[n]&&(t[n]=e[n]);Array.isArray(e.avoid)&&(t.avoid=e.avoid),r.value=t,a.value=function(e){const t=String(e||"").match(/(?:^|\n)(早餐|喝的|午餐|晚餐|提示|少碰)[:]\s*([^\n]*)$/);return t&&{"早餐":"breakfast","喝的":"drinks","午餐":"lunch","晚餐":"dinner","提示":"tips","少碰":"tips"}[t[1]]||"breakfast"}(l)}function m(e){if(!e)return;const t=r.value.analysis,n=r.value.exercise;r.value={breakfast:"",drinks:"",lunch:"",dinner:"",tips:"",avoid:[],analysis:[],exercise:null,disclaimer:"",rules_summary:"",source:"",date:"",...e,avoid:Array.isArray(e.avoid)?e.avoid:[],analysis:Array.isArray(e.analysis)&&e.analysis.length?e.analysis:Array.isArray(t)?t:[],exercise:e.exercise&&"object"==typeof e.exercise?e.exercise:n||null}}function g(e,t){"analysis"===e?Array.isArray(null==t?void 0:t.analysis)&&(r.value={...r.value,analysis:t.analysis}):"exercise"===e?(null==t?void 0:t.exercise)&&"object"==typeof t.exercise&&(r.value={...r.value,exercise:t.exercise}):"delta"===e?(i.value=!0,null!=t.buffer?l=t.buffer:l+=t.text||"",h()):"done"===e?(m(function(e){if(!e)return e;if("rule"!==e.source||!l)return e;const t=Nc(l);return t.breakfast?{breakfast:"",drinks:"",lunch:"",dinner:"",tips:"",avoid:[],analysis:[],exercise:null,disclaimer:"",rules_summary:"",source:"",date:"",...e,breakfast:t.breakfast,drinks:t.drinks||e.drinks||"",lunch:t.lunch||e.lunch||"",dinner:t.dinner||e.dinner||"",tips:t.tips||e.tips||"",avoid:Array.isArray(t.avoid)&&t.avoid.length?t.avoid:e.avoid||[],source:"ai",disclaimer:"AI 建议供参考,仍请结合医嘱与血糖监测。"}:e}(t)),l="",a.value=""):"error"===e&&n(o(null==t?void 0:t.message,"饮食建议加载失败"))}async function v(o){const r=await e.apiUrl({url:"/api/tcm/dailyDietAiRecommend",method:"GET",timeout:35e3,data:{diagnosis_id:t.value,refresh:o?1:0,...o?{_t:Date.now()}:{}}},!1);1===(null==r?void 0:r.code)&&r.data?m(r.data):(null==r?void 0:r.msg)&&n(r.msg)}async function _(o=!1){if(t.value&&!s.value){s.value=!0,i.value=!1,c.value=!!o,l="",a.value="",o&&m({breakfast:"",drinks:"",lunch:"",dinner:"",tips:"",avoid:[],analysis:[],exercise:null,disclaimer:"",rules_summary:"",source:"",date:""});try{await Vc({baseUrl:e.$url,url:"/api/tcm/dailyDietAiRecommendStream",method:"GET",data:{diagnosis_id:t.value,refresh:o?1:0,...o?{_t:Date.now()}:{}},onEvent:g,fallback:()=>v(o)})}catch(r){try{await v(o)}catch(u){n("饮食建议加载失败")}}finally{s.value=!1,i.value=!1,c.value=!1,a.value=""}}}async function y(r){const s=await e.apiUrl({url:"/api/tcm/dailyDietAiAsk",method:"POST",timeout:35e3,data:{diagnosis_id:t.value,question:r}},!1);1===(null==s?void 0:s.code)&&s.data?d.value={advice:s.data.advice||"",level:s.data.level||"",level_label:s.data.level_label||"",portion:s.data.portion||"",food:s.data.food||r}:n(o(null==s?void 0:s.msg,"咨询失败"))}function x(e=!1){e&&function(){const e=r.value;if(e.breakfast)try{Ri.setStorageSync(zc,{breakfast:e.breakfast,drinks:e.drinks||"",lunch:e.lunch,dinner:e.dinner,tips:e.tips||""})}catch(t){}}(),Ri.navigateTo({url:"/tongji/pages/more?openDiet=1"})}return{dietAiRecommend:r,dietAiLoading:s,dietAiStreaming:i,dietAiReplacing:c,dietAiStreamField:a,dietAiAskText:u,dietAiAsking:f,dietAiAskResult:d,hasDietAiMealContent:p,fetchDietAiRecommend:_,refreshDietAiRecommend:function(){s.value||_(!0)},askDietAiFood:async function(){const r=String(u.value||"").trim();if(r){if(t.value){u.value="",f.value=!0,d.value={advice:"",level:"",level_label:"",portion:"",food:""};try{await Vc({baseUrl:e.$url,url:"/api/tcm/dailyDietAiAskStream",method:"POST",data:{diagnosis_id:t.value,question:r},onEvent:(e,t)=>{"start"!==e||d.value.advice?"delta"===e?d.value={...d.value,advice:t.advice||d.value.advice}:"done"===e?d.value={advice:t.advice||"",level:t.level||"",level_label:t.level_label||"",portion:t.portion||"",food:t.food||r}:"error"===e&&n(o(null==t?void 0:t.message,"咨询失败")):d.value={...d.value,advice:t.message||"正在想…"}},fallback:()=>y(r)})}catch(s){try{await y(r)}catch(i){n("网络异常,请稍后再试")}}finally{f.value=!1}}}else n("请输入想咨询的食物")},onDietAiAskInput:function(e){var t;u.value=(null==(t=null==e?void 0:e.detail)?void 0:t.value)??""},applyDietAiToForm:async function(){r.value.breakfast||await _(!1),x(!0)},openDietForm:function(){x(!1)}}},exports.useGameAuth=function(e){let t=null;function n(){Ri.removeStorageSync("token")}async function o(){if(String(Ri.getStorageSync("token")||"").trim()){try{const t=await e.apiUrl({url:"/api/user/info",method:"POST"},!1);if(1===(null==t?void 0:t.code)&&t.data)return Ri.setStorageSync("userData",t.data),!0;if(-1!==(null==t?void 0:t.code))return!0}catch(t){return!0}n()}return async function(t){var o;const r=await e.apiUrl({url:"/api/login/mnpLogin",method:"POST",data:{code:t}},!1);if(1!==(null==r?void 0:r.code)||!(null==(o=r.data)?void 0:o.token))throw n(),new Error((null==r?void 0:r.msg)||"登录失败");return Ri.setStorageSync("token",r.data.token),Ri.setStorageSync("userData",r.data),!0}(await new Promise((e,t)=>{Ri.login({provider:"weixin",success:n=>(null==n?void 0:n.code)?e(n.code):t(new Error("微信登录未返回 code")),fail:t})}))}return{ensureLoggedIn:async function(){return t||(t=o().then(e=>!!e).catch(()=>!1).finally(()=>{t=null}),t)}}},exports.useGamePlatform=function(e,t){const n=sn(!1),o=sn(!1),r=sn("idle"),s=sn({...ma}),i=sn(0);let c=va(),a=null,l=!1,u=function(){try{const e=Ri.getStorageSync(ga);return Array.isArray(e)?e.filter(e=>e&&/^[A-Za-z0-9_-]{16,64}$/.test(String(e.session_key||""))&&Number(e.learned_count)>=0).slice(-8):[]}catch(e){return[]}}(),f=null;function d(){try{Ri.setStorageSync(ga,u.slice(-8))}catch(e){}}async function p(t){if(!(null==e?void 0:e.apiUrl))throw new Error("平台接口未初始化");return e.apiUrl(t,!1)}function h(e,t=""){if(!e||!Array.isArray(e.players))return;t&&t!==c||(s.value={...ma,...e,me:{...ma.me,...e.me||{}},players:e.players}),t===c&&null!=e.confirmed_session_learned&&(i.value=Number(e.confirmed_session_learned)||0),n.value=!0,r.value="synced"}async function m(){const e=await p({url:"/api/tcm/gameWeeklyLeaderboard",method:"GET"});if(1!==(null==e?void 0:e.code)||!e.data)throw new Error((null==e?void 0:e.msg)||"同行榜加载失败");return h(e.data),e.data}async function g(e=""){return f||(f=(async()=>{o.value=!0;try{if(!(await t()))throw new Error("登录失败");return await async function(e){const t=String(e||"").trim().toUpperCase();if(t)try{await p({url:"/api/tcm/gameAcceptShare",method:"POST",data:{invite_code:t}})}catch(n){}}(e),await m(),u.length&&_(),!0}catch(s){return n.value=!1,r.value="offline",!1}finally{o.value=!1,f=null}})(),f)}function v(e,t,n=!1){const o={session_key:c,learned_count:Math.max(0,Number(e)||0),score:Math.max(0,Number(t)||0),ended:n?1:0},s=u.findIndex(e=>e.session_key===c);if(s>=0){const e=u[s];u[s]={...o,learned_count:Math.max(e.learned_count,o.learned_count),score:Math.max(e.score,o.score),ended:Math.max(e.ended,o.ended)}}else u.push(o);d(),r.value="pending",a&&clearTimeout(a),n?_():a=setTimeout(_,1e3)}async function _(){if(a&&clearTimeout(a),a=null,l||!u.length)return;const e=u[0];l=!0,r.value="syncing";try{if(!n.value){if(!(await t()))throw new Error("未登录")}const o=await p({url:"/api/tcm/gameSubmitProgress",method:"POST",data:e});if(1!==(null==o?void 0:o.code)||!o.data)throw new Error((null==o?void 0:o.msg)||"成绩保存失败");h(o.data,e.session_key),u=u.filter(t=>t.session_key!==e.session_key||Number(t.learned_count)>Number(e.learned_count)||Number(t.score)>Number(e.score)||Number(t.ended)>Number(e.ended)),d()}catch(o){n.value=!1,r.value="offline",d()}finally{l=!1,u.length&&n.value&&setTimeout(_,80)}}return{connected:n,loading:o,syncStatus:r,leaderboard:s,confirmedSessionLearned:i,connect:g,beginSession:function(){return a&&clearTimeout(a),c=va(),i.value=0,r.value=u.length?"pending":n.value?"synced":"offline",c},queueProgress:v,flushProgress:_,syncAndRefresh:async function(e,t){if(v(e,t,!1),await _(),n.value)try{await m()}catch(o){}else await g(),u.length&&await _()},refreshLeaderboard:m,recordShare:async function(){var e;try{if(!n.value&&!(await g()))return;const t=await p({url:"/api/tcm/gameRecordShare",method:"POST"});1===(null==t?void 0:t.code)&&(null==(e=t.data)?void 0:e.invite_code)&&(s.value={...s.value,invite_code:t.data.invite_code})}catch(t){}},dispose:function(){a&&clearTimeout(a),a=null,d()}}},exports.useGameSfx=function(){const e=sn(!0),t={};try{const t=Ri.getStorageSync(la);!1!==t&&"0"!==t&&0!==t||(e.value=!1)}catch(c){}function n(e){const n=da[e];return n?(t[e]||(t[e]=new ha(n.src,n.pool,n.volume,n.rate??1)),t[e]):null}function o(){if(!e.value)return;!function(){try{Ri.setInnerAudioOption({obeyMuteSwitch:!1,mixWithOther:!0})}catch(c){}}();("undefined"!=typeof Audio?["select"]:pa).forEach(e=>{var t;null==(t=n(e))||t.warmUp()})}function r(t,o=1,r=1){var s;e.value&&(null==(s=n(t))||s.play(o,r))}function s(e,t,n=70,o=.6){r(e),t&&setTimeout(()=>r(t,o),n)}function i(){Object.keys(t).forEach(e=>{var n;null==(n=t[e])||n.destroy(),delete t[e]})}return io(()=>{i()}),{enabled:e,play:r,playLayer:s,playMatch:function({matchCount:t=3,chain:n=0,tiles:o=[]}={}){if(!e.value)return;const i=(()=>{const e=function(e=[]){const t={low:0,mid:0,high:0};e.forEach(e=>{var n;const o=null==(n=null==e?void 0:e.type)?void 0:n.gi;o&&void 0!==t[o]&&(t[o]+=1)});let n="mid",o=0;return Object.entries(t).forEach(([e,t])=>{t>o&&(o=t,n=e)}),n}(o);return"low"===e?"matchLowGi":"high"===e?"matchHighGi":"matchMidGi"})();n>=3?s("comboMega",i,90,.55):2!==n?1!==n?t>=5?s("match5","matchHighGi",85,.5):t>=4?s("match4",i,65,.48):(r(i,1,1),setTimeout(()=>r("match3",.85),40)):s("combo2",i,70,.45):s("combo3",i,80,.5)},playDrop:function(t=1){if(!e.value||t<=0)return;r(t>=4?"drop":"dropLight",Math.min(1.2,.85+.04*t),t>=6?.9:1)},playMeter:function(t,n){e.value&&(n>70?r("meterDanger",1+.02*(n-70)):n<30?r("meterWarn",.9,.95):t>8?r("meterWarn",.75):t<-5&&r("meterStable",1.1))},warmUp:o,toggleEnabled:function(){e.value=!e.value;try{Ri.setStorageSync(la,e.value?"1":"0")}catch(c){}e.value&&(o(),r("select"))},destroyAll:i}},exports.useMetronome=function(e={}){const{initialBpm:t=80,bpmMin:n=40,bpmMax:o=240,clickSrc:r=ya,accentSrc:s,poolSize:i=4,volume:c=1,silent:a=!1,onBeat:l}=e,u=sn(t),f=sn(!1),d=sn(0),p=sn(!1),h=sn(e.accentEvery??4),m=Yo(()=>6e4/u.value);let g=null,v=null,_=null,y=0;const x=()=>{a||(g||(g=new _a(r,i,c),g.warmUp()),s&&!v&&(v=new _a(s,Math.max(2,Math.ceil(i/2)),c),v.warmUp()))},b=()=>{if(!f.value)return;const e=Math.max(1,h.value),t=d.value%e===0;p.value=t,(e=>{e&&v?v.play():g&&g.play()})(t),null==l||l(d.value,t),d.value++,y+=m.value;const n=Math.max(0,y-Date.now());_=setTimeout(b,n)},w=()=>{f.value||(x(),f.value=!0,d.value=0,y=Date.now(),b())},S=()=>{f.value=!1,_&&(clearTimeout(_),_=null)};return io(()=>{S(),null==g||g.destroy(),null==v||v.destroy(),g=null,v=null}),{bpm:u,isPlaying:f,beatIndex:d,isAccent:p,intervalMs:m,accentEvery:h,start:w,stop:S,setBpm:e=>{u.value=Math.max(n,Math.min(o,Math.round(e)))},setAccentEvery:e=>{h.value=Math.max(1,Math.min(16,Math.round(e))),d.value=0},updateAudioSrc:(e,t)=>{const n=f.value;n&&S(),null==g||g.destroy(),null==v||v.destroy(),g=null,v=null,g=new _a(e,i),t&&(v=new _a(t,Math.max(2,Math.ceil(i/2))));const o=Ri.createInnerAudioContext();o.src=e,o.obeyMuteSwitch=!1,o.volume=.4;try{o.play(),setTimeout(()=>{var e;try{null==(e=o.destroy)||e.call(o)}catch(t){}},500)}catch(r){}n&&w()},preload:()=>{try{Ri.setInnerAudioOption({obeyMuteSwitch:!1,mixWithOther:!0})}catch(e){}x()}}},exports.useSpeechToText=function({onResult:e,onSettle:t,onPartial:n,onError:o,showToast:r}={}){const s=sn(!1),i=sn(!1),c=sn(!1);let a=null,l=0,u=0,f=!1,d=null,p=0;function h(e){e&&("function"!=typeof r?Ri.showToast({title:e,icon:"none",duration:2e3}):r(e))}function m(){const e=Fc&&Gc===_;if(a&&(s.value||e))try{a.stop()}catch(t){}f=!1,i.value=!1,s.value=!1}function g(e){if(a&&e===u&&i.value)try{f=!0,a.start({duration:6e4,lang:"zh_CN"})}catch(t){f=!1,Fc=!1,i.value=!1,h("无法开始录音")}}function v(e=!1){let t=!1;if(t=Fc&&Gc===_,e||i.value||s.value||f||t){if(i.value=!1,p=0,!s.value&&!t)return f?(f=!1,void(u+=1)):void(u+=1);m()}}const _={handleStart(){if(!i.value)return f=!1,void(s.value=!1);f=!1,s.value=!0},handleRecognize(e){if("function"!=typeof n)return;const t=String((null==e?void 0:e.result)||"").trim();t&&n(t)},handleStop(n){if(s.value=!1,f=!1,p&&p===u&&i.value){const e=p;return p=0,void g(e)}p=0,function(n){const o=String(n||"").trim(),r=Date.now()-l;if("function"==typeof t&&!0===t(o,{heldMs:r}))return;if(o)"function"==typeof e&&e(o);else{if(r<280)return;h("没听清,请再试一次")}}(null==n?void 0:n.result)},handleError(e){s.value=!1,f=!1;const t=e&&e.msg||"",n=e&&(e.retcode??e.errCode??e.code);if(/please stop after start/i.test(t)){try{a.stop()}catch(d){}return void(p=i.value?u:0)}p=0,i.value=!1;const r=Date.now()-l;if(Hc(t,n)||r<280)return void("function"==typeof o&&o(t||""));if("function"==typeof o){if(!0===o(t||""))return}const c=function(e){const t=String(e||"").trim();return!t||Hc(t)?"":/not allowed|auth|permission|权限|麦克风/i.test(t)?"请允许使用麦克风":/network|网络|timeout/i.test(t)?"网络异常,请稍后再试":"语音识别失败,请重试"}(t);c&&h(c)}};return a=function(){if(Wc)return Bc;Wc=!0;try{const e=requirePlugin("WechatSI");Bc=e.getRecordRecognitionManager()}catch(e){return console.warn("WechatSI record recognition not available",e),Bc=null,null}return Bc?(Bc.onStart=()=>{Fc=!0,Gc&&Gc.handleStart()},Bc.onRecognize=e=>{Gc&&Gc.handleRecognize(e)},Bc.onStop=e=>{Fc=!1,Gc&&Gc.handleStop(e)},Bc.onError=e=>{Fc=!1,Gc&&Gc.handleError(e)},Bc):null}(),c.value=!!a,io(()=>{i.value=!1,u+=1,p=0,m(),Gc===_&&(Gc=null)}),{sttListening:s,sttHolding:i,sttSupported:c,beginHoldSpeech:function(){if(!c.value)return void h("当前环境不支持语音输入");if(i.value)return;const e=++u;var t;l=Date.now(),i.value=!0,Gc=_,t=()=>function(e){if(a&&e===u&&i.value)if(Fc||f){p=e;try{a.stop()}catch(t){}}else g(e)}(e),!0!==d?Ri.authorize({scope:"scope.record",success(){d=!0,t()},fail(){d=!1,i.value=!1,Ri.showModal({title:"需要麦克风权限",content:"请在设置中允许使用麦克风,以便长按说话",confirmText:"去设置",success(e){e.confirm&&Ri.openSetting({})}})}}):t()},endHoldSpeech:v,stopSpeechToText:v}},exports.watch=Nn;