wevu 6.6.13 → 6.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=Promise.resolve(),t=new Set;let n=!1,r=!1;function i(){r=!1,n=!0;try{t.forEach(e=>e())}finally{t.clear(),n=!1}}function a(a){t.add(a),!n&&!r&&(r=!0,e.then(i))}function o(t){return t?e.then(t):e}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l(e){var t=c(e,`string`);return s(t)==`symbol`?t:t+``}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=new WeakMap;let f=null;const p=[];let m=0;const h=new Set;function g(){m++}function _(){for(;h.size;){let e=Array.from(h);h.clear();for(let t of e)t()}}function v(){m!==0&&(m--,m===0&&_())}function y(e){g();try{return e()}finally{v()}}function b(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function x(e){var t;e.active&&(e.active=!1,b(e),(t=e.onStop)==null||t.call(e))}let S;var C=class{constructor(e=!1){if(this.detached=e,u(this,`active`,!0),u(this,`effects`,[]),u(this,`cleanups`,[]),u(this,`parent`,void 0),u(this,`scopes`,void 0),!e&&S){var t;this.parent=S,((t=S).scopes||(t.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=S;S=this;try{return e()}finally{S=t}}stop(){var e;if(this.active){this.active=!1;for(let e of this.effects)x(e);this.effects.length=0;for(let e of this.cleanups)e();if(this.cleanups.length=0,this.scopes){for(let e of this.scopes)e.stop();this.scopes.length=0}if((e=this.parent)!=null&&e.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0}}};function w(e=!1){return new C(e)}function T(){return S}function E(e){S!=null&&S.active&&S.cleanups.push(e)}function D(e){S!=null&&S.active&&S.effects.push(e)}function O(e,t={}){let n=function(){if(!n.active||n._running)return e();b(n);try{return n._running=!0,p.push(n),f=n,e()}finally{var t;p.pop(),f=(t=p[p.length-1])==null?null:t,n._running=!1}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n}function k(e,t={}){let n=O(e,t);return D(n),t.lazy||n(),n}function A(e,t){if(!f)return;let n=d.get(e);n||(n=new Map,d.set(e,n));let r=n.get(t);r||(r=new Set,n.set(t,r)),r.has(f)||(r.add(f),f.deps.push(r))}function j(e){if(e.scheduler){e.scheduler();return}if(m>0){h.add(e);return}e()}function M(e,t){let n=d.get(e);if(!n)return;let r=n.get(t);if(!r)return;let i=new Set;r.forEach(e=>{e!==f&&i.add(e)}),i.forEach(j)}function ee(e){f&&(e.has(f)||(e.add(f),f.deps.push(e)))}function N(e){new Set(e).forEach(j)}const P=new Set;function te(e){P.add(e)}function F(e){P.delete(e)}const I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakMap,B=new WeakSet,V=new WeakMap,ne=new WeakMap;function re(e){let t=ne.get(e);return t||(t=new Set,ne.set(e,t)),t}function ie(e,t){re(e).add(t)}function H(e){var t;L.set(e,((t=L.get(e))==null?0:t)+1)}function ae(e){var t;return(t=L.get(e))==null?0:t}function oe(e){let t=new Set,n=[e];for(let e=0;e<2e3&&n.length;e++){let e=n.pop(),r=z.get(e);if(r)for(let e of r.keys())t.has(e)||(t.add(e),H(e),n.push(e))}}function se(e){let t=z.get(e);if(!t){B.delete(e),R.delete(e);return}let n,r,i=0;for(let[e,a]of t){for(let t of a){if(i+=1,i>1)break;n=e,r=t}if(i>1)break}if(i===1&&n&&r){B.delete(e),R.set(e,{parent:n,key:r});return}B.add(e),R.delete(e)}function ce(e,t,n){if(typeof n!=`string`){B.add(e),R.delete(e);return}if(P.size){var r;let n=(r=I.get(t))==null?t:r;ie(n,t),ie(n,e)}let i=z.get(e);i||(i=new Map,z.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add(n),se(e)}function le(e,t,n){let r=z.get(e);if(!r)return;let i=r.get(t);i&&(i.delete(n),i.size||r.delete(t),r.size||z.delete(e),se(e))}function ue(e,t){if(t===e)return[];if(B.has(t))return;let n=[],r=t;for(let t=0;t<2e3;t++){if(r===e)return n.reverse();if(B.has(r))return;let t=R.get(r);if(!t||typeof t.key!=`string`)return;n.push(t.key),r=t.parent}}let U=function(e){return e.IS_REACTIVE=`__r_isReactive`,e.RAW=`__r_raw`,e.SKIP=`__r_skip`,e}({});function W(e){return typeof e==`object`&&!!e}const de=Symbol(`wevu.version`);function fe(e){if(!e)return!1;let t=e.charCodeAt(0);if(t<48||t>57)return!1;let n=Number(e);return Number.isInteger(n)&&n>=0&&String(n)===e}function G(e){var t;return(t=e==null?void 0:e[U.RAW])==null?e:t}const pe=new WeakMap,me=new WeakMap,he=new WeakMap;function ge(e,t){let n=G(e);V.set(n,``),ie(n,n);let r=t==null?void 0:t.shouldIncludeTopKey,i=typeof(t==null?void 0:t.maxDepth)==`number`?Math.max(0,Math.floor(t.maxDepth)):1/0,a=typeof(t==null?void 0:t.maxKeys)==`number`?Math.max(0,Math.floor(t.maxKeys)):1/0,o=new WeakSet,s=[{current:n,path:``,depth:0}],c=0;for(;s.length;){let e=s.pop();if(o.has(e.current)||(o.add(e.current),V.set(e.current,e.path),ie(n,e.current),c+=1,c>=a)||e.depth>=i||Array.isArray(e.current))continue;let t=Object.entries(e.current);for(let[i,a]of t){if(e.path===``&&r&&!r(i)||!W(a)||a[U.SKIP])continue;let t=G(a);if(I.has(t)||I.set(t,n),ce(t,e.current,i),!B.has(t)){let n=e.path?`${e.path}.${i}`:i;V.set(t,n)}ie(n,t),s.push({current:t,path:e.path?`${e.path}.${i}`:i,depth:e.depth+1})}}}function _e(e){let t=G(e),n=ne.get(t);if(!n){V.delete(t);return}for(let e of n)R.delete(e),z.delete(e),V.delete(e),B.delete(e),I.delete(e),L.delete(e);ne.delete(t)}function K(e){A(G(e),de)}const ve={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);return A(e,t),r},set(e,t,n,r){let i=Reflect.get(e,t,r),a=Reflect.set(e,t,n,r);return Object.is(i,n)||(M(e,t),M(e,de),H(e)),a},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return n&&r&&(M(e,t),M(e,de),H(e)),r},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function ye(e){if(!W(e))return e;let t=he.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,ve);return he.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),n}function be(e){let t=G(e);return he.has(t)}function xe(e){return ae(G(e))}function q(e,t,n){var r;if(!P.size||typeof t!=`string`||t.startsWith(`__r_`))return;let i=(r=I.get(e))==null?e:r,a=Array.isArray(e)&&(t===`length`||fe(t))?`array`:`property`,o=ue(i,e);if(!o){let r=new Set,o=z.get(e);if(o)for(let[e,t]of o){var s;let n=V.get(e),a=n?n.split(`.`,1)[0]:void 0,o=a||(s=ue(i,e))==null?void 0:s[0];for(let e of t){var c;typeof e==`string`&&r.add((c=a==null?o:a)==null?e:c)}}else r.add(t);for(let e of P)e({root:i,kind:a,op:n,path:void 0,fallbackTopKeys:r.size?Array.from(r):void 0});return}let l=o.findIndex(e=>fe(e));if(l!==-1){let e=o.slice(0,l).join(`.`)||void 0;for(let t of P)t({root:i,kind:`array`,op:n,path:e});return}let u=o.length?o.join(`.`):``,d=a===`array`?u||void 0:u?`${u}.${t}`:t;for(let e of P)e({root:i,kind:a,op:n,path:d})}const Se={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);if(A(e,t),W(r)){var i,a;if(r[U.SKIP])return r;let n=(i=I.get(e))==null?e:i,o=(a=r==null?void 0:r[U.RAW])==null?r:a;I.has(o)||I.set(o,n),ce(o,e,t);let s=V.get(e);if(P.size&&typeof t==`string`&&s!=null&&!B.has(o)){let e=s?`${s}.${t}`:t;V.set(o,e)}return Ce(r)}return r},set(e,t,n,r){let i=Array.isArray(e),a=i?e.length:0,o=Reflect.get(e,t,r),s=Reflect.set(e,t,n,r);if(!Object.is(o,n)){var c;let r=W(o)?(c=o==null?void 0:o[U.RAW])==null?o:c:void 0;if(r&&le(r,e,t),W(n)&&!n[U.SKIP]){var l,u;let r=(l=I.get(e))==null?e:l,i=(u=n==null?void 0:n[U.RAW])==null?n:u;I.has(i)||I.set(i,r),ce(i,e,t);let a=V.get(e);if(P.size&&typeof t==`string`&&a!=null&&!B.has(i)){let e=a?`${a}.${t}`:t;V.set(i,e)}}M(e,t),i&&typeof t==`string`&&fe(t)&&Number(t)>=a&&M(e,`length`),M(e,de),H(e),oe(e);let s=I.get(e);s&&s!==e&&(M(s,de),H(s)),q(e,t,`set`)}return s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=n?e[t]:void 0,i=Reflect.deleteProperty(e,t);if(n&&i){var a;let n=W(r)?(a=r==null?void 0:r[U.RAW])==null?r:a:void 0;n&&le(n,e,t),M(e,t),M(e,de),H(e),oe(e);let i=I.get(e);i&&i!==e&&(M(i,de),H(i)),q(e,t,`delete`)}return i},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function Ce(e){if(!W(e))return e;let t=pe.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,Se);return pe.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),I.has(e)||I.set(e,e),n}function J(e){return!!(e&&e[U.IS_REACTIVE])}function we(e){return W(e)?Ce(e):e}function Te(e){return W(e)&&Object.defineProperty(e,U.SKIP,{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function Ee(e){return W(e)&&U.SKIP in e}const De=`__v_isRef`;function Oe(e){try{Object.defineProperty(e,De,{value:!0,configurable:!0})}catch(t){e[De]=!0}return e}function Y(e){return!!(e&&typeof e==`object`&&e[De]===!0)}var ke=class{constructor(e){u(this,`_value`,void 0),u(this,`_rawValue`,void 0),u(this,`dep`,void 0),Oe(this),this._rawValue=e,this._value=we(e)}get value(){return this.dep||(this.dep=new Set),ee(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=we(e),this.dep&&N(this.dep))}};function Ae(e){return Y(e)?e:Te(new ke(e))}function je(e){return Y(e)?e.value:e}function Me(e){return typeof e==`function`?e():je(e)}var Ne=class{constructor(e,t){u(this,`_getValue`,void 0),u(this,`_setValue`,void 0),u(this,`dep`,void 0),Oe(this);let n=t,r=()=>{this.dep||(this.dep=new Set),ee(this.dep)},i=()=>{this.dep&&N(this.dep)},a=e=>e===void 0&&n!==void 0?n:e;if(typeof e==`function`){let t=e(r,i);this._getValue=()=>a(t.get()),this._setValue=e=>t.set(e);return}let o=e;this._getValue=()=>(r(),a(o.get())),this._setValue=e=>{o.set(e),i()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function Pe(e,t){return Te(new Ne(e,t))}function Fe(e){let t,n;typeof e==`function`?(t=e,n=()=>{throw Error(`计算属性是只读的`)}):(t=e.get,n=e.set);let r,i=!0,a,o={get value(){return i&&(r=a(),i=!1),A(o,`value`),r},set value(e){n(e)}};return Oe(o),a=k(t,{lazy:!0,scheduler:()=>{i||(i=!0,M(o,`value`))}}),o}function Ie(e){if(Y(e)){let t=e;return Oe({get value(){return t.value},set value(e){throw Error(`无法给只读 ref 赋值`)}})}return W(e)?new Proxy(e,{set(){throw Error(`无法在只读对象上设置属性`)},deleteProperty(){throw Error(`无法在只读对象上删除属性`)},defineProperty(){throw Error(`无法在只读对象上定义属性`)},get(e,t,n){return Reflect.get(e,t,n)}}):e}function Le(e,t){return Pe((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function Re(e){return Y(e)&&typeof e.value!=`function`}function ze(e){if(Y(e)){let t=e.dep;if(t){N(t);return}e.value=e.value}}function Be(e,t,n){let r=e[t];return Y(r)?r:Pe((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function Ve(e){J(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=Be(e,n);return t}function He(e,t=1/0,n=new Map){if(t<=0||!W(e))return e;if(Y(e))return He(e.value,t-1,n),e;if(e[U.SKIP])return e;let r=n.get(e);if(r!==void 0&&r>=t)return e;n.set(e,t);let i=t-1;if(Array.isArray(e)||e instanceof Map||e instanceof Set)return e.forEach(e=>He(e,i,n)),e;let a=J(e)&&t!==1/0?G(e):e;for(let t in a)He(e[t],i,n);return e}let Ue=`version`;function We(e){Ue=e}function Ge(){return Ue}function Ke(e,t,n={}){var r,i;let s,c=J(e),l=Array.isArray(e)&&!c,u=e=>{if(typeof e==`function`)return e();if(Y(e))return e.value;if(J(e))return e;throw Error(`无效的 watch 源`)};if(l){let t=e;s=()=>t.map(e=>u(e))}else if(typeof e==`function`)s=e;else if(Y(e))s=()=>e.value;else if(c)s=()=>e;else throw Error(`无效的 watch 源`);let d=l?e.some(e=>J(e)):c,f=(r=n.deep)==null?d:r,p=f===!0||typeof f==`number`,m=typeof f==`number`?f:f?1/0:0;if(p){let e=s;s=()=>{let t=e();return l&&Array.isArray(t)?t.map(e=>Ue===`version`&&J(e)?(K(e),e):He(e,m)):Ue===`version`&&J(t)?(K(t),t):He(t,m)}}let h,g=e=>{h=e},_,v,y=!1,b=0,S,C=n.once?(e,n,r)=>{t(e,n,r),S()}:t,w=(i=n.flush)==null?`pre`:i,T=b,D=e=>{if(!v.active||y||e!==b)return;let t=v();h==null||h(),C(t,_,g),_=t},O=()=>D(T),A=(e,t)=>{if(T=b,n.scheduler){let r=T;n.scheduler(()=>e(r),t);return}if(w===`sync`){O();return}if(w===`post`){o(()=>a(O));return}t?O():a(O)};v=k(()=>s(),{scheduler:()=>{y||A(D,!1)},lazy:!0});let j=()=>{h==null||h(),h=void 0,x(v)};return S=j,S.stop=j,S.pause=()=>{y||(y=!0,b+=1)},S.resume=()=>{!y||!v.active||(y=!1,_=v())},n.immediate?D(b):_=v(),E(S),S}function qe(e,t={}){var n;let r,i=e=>{r=e},s,c=!1,l=0,u=(n=t.flush)==null?`pre`:n,d=l,f=e=>{!s.active||c||e!==l||s()},p=()=>f(d),m=e=>{if(d=l,u===`sync`){p();return}if(u===`post`){o(()=>a(p));return}e?p():a(p)};s=k(()=>{r==null||r(),r=void 0,e(i)},{lazy:!0,scheduler:()=>{c||m(!1)}}),m(!0);let h=()=>{r==null||r(),r=void 0,x(s)},g=h;return g.stop=h,g.pause=()=>{c||(c=!0,l+=1)},g.resume=()=>{!c||!s.active||(c=!1,m(!0))},E(g),g}function Je(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Ye(e){if(e==null)return e;if(typeof e==`object`){if(`detail`in e&&e.detail&&`value`in e.detail)return e.detail.value;if(`target`in e&&e.target&&`value`in e.target)return e.target.value}return e}const Xe=`__wevu_native_bridge__`;function Ze(e){try{Object.defineProperty(e,Xe,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Xe]=!0}}function Qe(e){return typeof e==`function`&&!!e[Xe]}function $e(e){let t=Object.create(null),n=Object.create(null),r=new Set;return{computedRefs:t,computedSetters:n,dirtyComputedKeys:r,createTrackedComputed:(t,n,i)=>{let a,o=!0,s,c={get value(){return o&&(a=s(),o=!1),A(c,`value`),a},set value(e){if(!i)throw Error(`计算属性是只读的`);i(e)}};return Oe(c),s=k(n,{lazy:!0,scheduler:()=>{o||(o=!0,e.setDataStrategy===`patch`&&e.includeComputed&&r.add(t),M(c,`value`))}}),c},computedProxy:new Proxy({},{get(e,n){if(typeof n==`string`&&t[n])return t[n].value},has(e,n){return typeof n==`string`&&!!t[n]},ownKeys(){return Object.keys(t)},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&t[n])return{configurable:!0,enumerable:!0,value:t[n].value}}})}}function et(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:d,computedProxy:f}=$e({includeComputed:a,setDataStrategy:o}),p=Ae(0),m=(e,t)=>{let n=G(e),r=n.__wevuRuntime,i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Qe(n)},o=n=>!(!n||typeof n!=`object`||n===e||n===t||n===i||a(n,`triggerEvent`)||a(n,`createSelectorQuery`)||a(n,`setData`)),s=n.__wevuNativeInstance;if(o(s))return s;let c=r==null?void 0:r.instance;if(o(c))return c},h=e=>{if(Object.prototype.hasOwnProperty.call(s,e))return;let n=(...n)=>{let r=m(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};Ze(n),s[e]=n},g=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(p.value,n===`data`||n===`$state`)return t;if(n===`$computed`)return f;if(Object.prototype.hasOwnProperty.call(s,n))return s[n];if(c[n])return c[n].value;if(Object.prototype.hasOwnProperty.call(i.globalProperties,n))return i.globalProperties[n]}if(!Reflect.has(e,n)){let t=m(e,r);if(t&&Reflect.has(t,n)){let e=Reflect.get(t,n);return typeof e==`function`?e.bind(t):e}}return Reflect.get(e,n,r)},set(e,t,n,r){if(typeof t==`string`&&c[t])return Je(l,t,n),!0;if(Reflect.has(e,t))return Reflect.set(e,t,n,r);let i=m(e,r);return i&&Reflect.has(i,t)?Reflect.set(i,t,n):Reflect.set(e,t,n,r)},has(e,t){if(t===`data`||typeof t==`string`&&(c[t]||Object.prototype.hasOwnProperty.call(s,t)))return!0;let n=m(e,e);return n&&Reflect.has(n,t)?!0:Reflect.has(e,t)},ownKeys(e){let t=new Set;return Reflect.ownKeys(e).forEach(e=>{t.add(e)}),Object.keys(s).forEach(e=>t.add(e)),Object.keys(c).forEach(e=>t.add(e)),Array.from(t)},getOwnPropertyDescriptor(e,n){if(Reflect.has(e,n))return Object.getOwnPropertyDescriptor(e,n);if(typeof n==`string`){if(n===`data`)return{configurable:!0,enumerable:!1,get(){return t}};if(c[n])return{configurable:!0,enumerable:!0,get(){return c[n].value},set(e){Je(l,n,e)}};if(Object.prototype.hasOwnProperty.call(s,n))return{configurable:!0,enumerable:!1,value:s[n]}}}});return Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`){s[e]=(...e)=>t.apply(g,e);return}e===`__weapp_vite_inline_map`&&t&&typeof t==`object`&&(s[e]=t)}),h(`triggerEvent`),h(`createSelectorQuery`),h(`setData`),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=d(e,()=>t.call(g));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(g);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(g);a?(l[e]=a,c[e]=d(e,n,a)):c[e]=d(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:f,publicInstance:g,touchSetupMethodsVersion(){p.value+=1}}}const tt=Symbol(`wevu.noSetData`);function X(e){return Object.defineProperty(e,tt,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function nt(e){return typeof e==`object`&&!!e&&e[tt]===!0}function rt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function it(e,t=new WeakMap,n){var r,i;let a=je(e);if(typeof a==`bigint`){let e=Number(a);return Number.isSafeInteger(e)?e:a.toString()}if(typeof a==`symbol`)return a.toString();if(typeof a==`function`)return;if(typeof a!=`object`||!a)return a;if(nt(a))return;let o=J(a)?G(a):a,s=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,c=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i;if(s<=0||c.keys<=0)return o;let l=n==null?void 0:n.cache;if(l){let e=xe(o),t=l.get(o);if(t&&t.version===e)return t.value}if(t.has(o))return t.get(o);if(o instanceof Date)return o.getTime();if(o instanceof RegExp)return o.toString();if(o instanceof Map){let e=[];return t.set(o,e),o.forEach((n,r)=>{e.push([it(r,t),it(n,t)])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(it(n,t))}),e}if(typeof ArrayBuffer<`u`){if(o instanceof ArrayBuffer)return o.byteLength;if(ArrayBuffer.isView(o)){let e=o;if(typeof e[Symbol.iterator]==`function`){let n=Array.from(e);return t.set(o,n),n.map(e=>it(e,t))}let n=Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return t.set(o,n),n}}if(o instanceof Error)return{name:o.name,message:o.message};if(Array.isArray(o)){let e=[];return t.set(o,e),o.forEach((r,i)=>{let a=it(r,t,{...n,_depth:s-1,_budget:c});e[i]=a===void 0?null:a}),l&&l.set(o,{version:xe(o),value:e}),e}let u={};return t.set(o,u),Object.keys(o).forEach(e=>{if(--c.keys,c.keys<=0)return;let r=it(o[e],t,{...n,_depth:s-1,_budget:c});r!==void 0&&(u[e]=r)}),l&&l.set(o,{version:xe(o),value:u}),u}function at(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function ot(e,t,n){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||!n(e[i],t[i]))return!1;return!0}function st(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?at(e,t,st):rt(e)&&rt(t)?ot(e,t,st):!1}function ct(e){return e===void 0?null:e}function lt(e,t,n,r){if(!st(e,t)){if(rt(e)&&rt(t)){for(let i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i)){r[`${n}.${i}`]=ct(t[i]);continue}lt(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Object.prototype.hasOwnProperty.call(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){at(e,t,st)||(r[n]=ct(t));return}r[n]=ct(t)}}function ut(e,t){let n={};for(let r of Object.keys(t))lt(e[r],t[r],r,n);for(let r of Object.keys(e))Object.prototype.hasOwnProperty.call(t,r)||(n[r]=null);return n}function dt(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n=Object.create(null),r=[];for(let i of t){for(;r.length;){let e=r[r.length-1];if(i.startsWith(e))break;r.pop()}r.length||(n[i]=e[i],r.push(`${i}.`))}return n}function ft(e,t,n){if(t<=0)return t+1;if(e===null)return 4;let r=typeof e;if(r===`string`)return 2+e.length;if(r===`number`)return Number.isFinite(e)?String(e).length:4;if(r===`boolean`)return e?4:5;if(r===`undefined`||r===`function`||r===`symbol`||r!==`object`||n.has(e))return 4;if(n.add(e),Array.isArray(e)){let r=2;for(let i=0;i<e.length;i++)if(i&&(r+=1),r+=ft(e[i],t-r,n),r>t)return r;return r}let i=2;for(let[r,a]of Object.entries(e))if(i>2&&(i+=1),i+=2+r.length+1,i+=ft(a,t-i,n),i>t)return i;return i}function pt(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=ft(e,n+1,new WeakSet);if(i>n)return{fallback:!0,estimatedBytes:i,bytes:void 0};if(i>=n*.85&&r>2)try{let t=JSON.stringify(e).length;return{fallback:t>n,estimatedBytes:i,bytes:t}}catch(e){return{fallback:!1,estimatedBytes:i,bytes:void 0}}return{fallback:!1,estimatedBytes:i,bytes:void 0}}function mt(e){let{input:t,entryMap:n,getPlainByPath:r,mergeSiblingThreshold:i,mergeSiblingSkipArray:a,mergeSiblingMaxParentBytes:o,mergeSiblingMaxInflationRatio:s}=e;if(!i)return{out:t,merged:0};let c=Object.keys(t);if(c.length<i)return{out:t,merged:0};let l=new Map,u=new Set;for(let e of c){var d;let r=n.get(e);if(!r)continue;if(t[e]===null||r.op===`delete`){let t=e.lastIndexOf(`.`);t>0&&u.add(e.slice(0,t));continue}let i=e.lastIndexOf(`.`);if(i<=0)continue;let a=e.slice(0,i),o=(d=l.get(a))==null?[]:d;o.push(e),l.set(a,o)}let f=Array.from(l.entries()).filter(([e,t])=>t.length>=i&&!u.has(e)).sort((e,t)=>t[0].split(`.`).length-e[0].split(`.`).length);if(!f.length)return{out:t,merged:0};let p=Object.create(null);Object.assign(p,t);let m=0,h=new WeakMap,g=e=>{if(e&&typeof e==`object`){let t=h.get(e);if(t!==void 0)return t;let n=ft(e,1/0,new WeakSet);return h.set(e,n),n}return ft(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Object.prototype.hasOwnProperty.call(p,e))continue;let n=t.filter(e=>Object.prototype.hasOwnProperty.call(p,e));if(n.length<i)continue;let c=r(e);if(!(a&&Array.isArray(c))&&!(o!==1/0&&_(e,c)>o)){if(s!==1/0){let t=0;for(let e of n)t+=_(e,p[e]);if(_(e,c)>t*s)continue}p[e]=c;for(let e of n)delete p[e];m+=1}}return{out:p,merged:m}}function ht(e){return e===void 0?null:e}function gt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function _t(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}if(!gt(e)||!gt(t))return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function vt(e,t,n,r){if(Object.is(e,t))return!0;if(n<=0)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!vt(e[i],t[i],n-1,r))return!1;return!0}if(!gt(e)||!gt(t))return!1;let i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let a of i)if(--r.keys,r.keys<=0||!Object.prototype.hasOwnProperty.call(t,a)||!vt(e[a],t[a],n-1,r))return!1;return!0}function yt(e,t,n,r){let i=t.split(`.`).filter(Boolean);if(!i.length)return;let a=e;for(let e=0;e<i.length-1;e++){let t=i[e];(!Object.prototype.hasOwnProperty.call(a,t)||a[t]==null||typeof a[t]!=`object`)&&(a[t]=Object.create(null)),a=a[t]}let o=i[i.length-1];if(r===`delete`)try{delete a[o]}catch(e){a[o]=null}else a[o]=n}function bt(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l=Object.create(null),u=Number.isFinite(s)?{keys:s}:void 0,d=J(t)?G(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=it(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=it(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function xt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:a,computedCompareMaxDepth:o,computedCompareMaxKeys:s,currentAdapter:c,shouldIncludeKey:l,maxPatchKeys:u,maxPayloadBytes:d,mergeSiblingThreshold:f,mergeSiblingMaxInflationRatio:p,mergeSiblingMaxParentBytes:m,mergeSiblingSkipArray:h,elevateTopKeyThreshold:g,toPlainMaxDepth:_,toPlainMaxKeys:v,plainCache:y,pendingPatches:b,fallbackTopKeys:x,latestSnapshot:S,latestComputedSnapshot:C,needsFullSnapshot:w,emitDebug:T,runDiffUpdate:E}=e;if(b.size>u){w.value=!0;let e=b.size;b.clear(),r.clear(),T({mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}),E(`maxPatchKeys`);return}let D=new WeakMap,O=new Map,k=Object.create(null),A=Array.from(b.entries());if(Number.isFinite(g)&&g>0){let e=new Map;for(let[t]of A){var j;let n=t.split(`.`,1)[0];e.set(n,((j=e.get(n))==null?0:j)+1)}for(let[t,n]of e)n>=g&&x.add(t)}let M=A.filter(([e])=>{for(let t of x)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),ee=new Map(M);b.clear();let N=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},P=e=>{if(O.has(e))return O.get(e);let t=ht(it(N(e),D,{cache:y,maxDepth:_,maxKeys:v}));return O.set(e,t),t};if(x.size){for(let e of x)l(e)&&(k[e]=P(e),ee.set(e,{kind:`property`,op:`set`}));x.clear()}for(let[e,t]of M){if((t.kind===`array`?`set`:t.op)===`delete`){k[e]=null;continue}k[e]=P(e)}let te=0;if(i&&r.size){let e=Object.create(null),t=Array.from(r);r.clear(),te=t.length;for(let r of t){if(!l(r))continue;let t=it(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?vt(i,t,o,{keys:s}):a===`shallow`?_t(i,t):Object.is(i,t))||(e[r]=ht(t),C[r]=t)}Object.assign(k,e)}let F=dt(k),I=0;if(f){let e=mt({input:F,entryMap:ee,getPlainByPath:P,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});I=e.merged,F=dt(e.out)}let L=pt(F,d),R=L.fallback;if(T({mode:R?`diff`:`patch`,reason:R?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length,mergedSiblingParents:I||void 0,computedDirtyKeys:te||void 0,estimatedBytes:L.estimatedBytes,bytes:L.bytes}),R){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(F).length){for(let[e,t]of Object.entries(F)){let n=ee.get(e);n?yt(S,e,t,n.kind===`array`?`set`:n.op):yt(S,e,t,`set`)}if(typeof c.setData==`function`){let e=c.setData(F);e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length})}}function St(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,setDataStrategy:a,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,debug:b,debugWhen:x,debugSampleRate:S,runTracker:C,isMounted:w}=e,T=new WeakMap,E={},D=Object.create(null),O={value:a===`patch`},k=new Map,A=new Set,j=e=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=Y(i)?i.value:i;!a||typeof a!=`object`||G(a)===e&&n.push(r)}return n},M=e=>{if(!b)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(x===`fallback`&&!t)&&!(S<1&&Math.random()>S))try{b(e)}catch(e){}},ee=()=>bt({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:T,toPlainMaxDepth:v,toPlainMaxKeys:y}),N=(e=`diff`)=>{let t=ee(),o=ut(E,t);if(E=t,O.value=!1,k.clear(),a===`patch`&&i){D=Object.create(null);for(let e of Object.keys(n))u(e)&&(D[e]=t[e]);r.clear()}if(Object.keys(o).length){if(typeof l.setData==`function`){let e=l.setData(o);e&&typeof e.then==`function`&&e.catch(()=>{})}M({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(o).length})}};return{job:e=>{w()&&(C(),a===`patch`&&!O.value?xt({state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,plainCache:T,pendingPatches:k,fallbackTopKeys:A,latestSnapshot:E,latestComputedSnapshot:D,needsFullSnapshot:O,emitDebug:M,runDiffUpdate:N}):N(O.value?`needsFullSnapshot`:`diff`))},mutationRecorder:(e,t)=>{if(!w())return;if(e.root!==t){let t=j(e.root);if(t.length)for(let e of t)A.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)A.add(t);else O.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&k.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?ee():{...E},getLatestSnapshot:()=>E}}function Ct(e){var t,n,r,i,a;let o=(t=e==null?void 0:e.includeComputed)==null?!0:t,s=(n=e==null?void 0:e.strategy)==null?`diff`:n,c=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,l=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,u=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,d=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,f=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,p=(r=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:r,m=(i=e==null?void 0:e.computedCompare)==null?s===`patch`?`deep`:`reference`:i,h=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,g=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,_=e==null?void 0:e.prelinkMaxDepth,v=e==null?void 0:e.prelinkMaxKeys,y=e==null?void 0:e.debug,b=(a=e==null?void 0:e.debugWhen)==null?`fallback`:a,x=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,S=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,C=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,w=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,T=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,E=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:o,setDataStrategy:s,maxPatchKeys:c,maxPayloadBytes:l,mergeSiblingThreshold:u,mergeSiblingMaxInflationRatio:d,mergeSiblingMaxParentBytes:f,mergeSiblingSkipArray:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,prelinkMaxDepth:_,prelinkMaxKeys:v,debug:y,debugWhen:b,debugSampleRate:x,elevateTopKeyThreshold:S,toPlainMaxDepth:C,toPlainMaxKeys:w,pickSet:T,omitSet:E,shouldIncludeKey:e=>!(T&&!T.has(e)||E&&E.has(e))}}function wt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function Tt(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Et(e,t,n){let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];(r[n]==null||typeof r[n]!=`object`)&&(r[n]={}),r=r[n]}r[t[t.length-1]]=n}function Dt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Je(n,a,i);else{let t=e[a];Y(t)?t.value=i:e[a]=i}return}if(t[a]){Je(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Et(e[a],o,i)}function Ot(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function kt(e){return Ye(e)}function At(e,t,n,r){return(i,a)=>{let o=Tt(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Ot(e,o),c=e=>{Dt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:kt,formatter:e=>e,...a};return{get value(){return s()},set value(e){c(e)},update(e){c(e)},model(e){let t={...l,...e},n=`on${wt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}const jt=`__wevuDefaultsScope`;let Mt={};function Nt(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function Pt(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=Nt(e.setData),i=Nt(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=Nt(e.options),o=Nt(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Ft(e,t){return Pt(e,t)}function It(e,t){return{app:Pt(e.app,t.app),component:Pt(e.component,t.component)}}function Lt(e){Mt=It(Mt,e)}function Rt(){Mt={}}function zt(e){return Ft(Mt.app,e)}function Bt(e){return Ft(Mt.component,e)}function Vt(){if(!(typeof globalThis>`u`))return globalThis}function Ht(){var e;let t=Vt(),n=(e=import.meta.env)==null?void 0:e.PLATFORM;if(n===`tt`)return t==null?void 0:t.tt;if(n===`alipay`||n===`my`)return t==null?void 0:t.my;if(n===`weapp`||n===`wx`)return t==null?void 0:t.wx;if(t!=null&&t.wx)return t.wx;if(t!=null&&t.my)return t.my;if(t!=null&&t.tt)return t.tt}function Ut(){var e;return(e=Ht())==null?Vt():e}let Wt,Gt;function Kt(){return Wt}function qt(e){Wt=e}function Jt(){return Gt}function Yt(e){Gt=e}function Z(e){if(!Wt)throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return Wt}function Xt(e){return e.__wevuHooks||(e.__wevuHooks=Object.create(null)),e.__wevuHooks}function Q(e,t,n,{single:r=!1}={}){let i=Xt(e);if(r)i[t]=n;else{var a;((a=i[t])==null?i[t]=[]:a).push(n)}}function Zt(e,t){var n,r;let i=(r=(n=e).__wevuShareHookBridges)==null?n.__wevuShareHookBridges=Object.create(null):r;if(typeof i[t]==`function`)return;let a=e[t],o=function(...e){var n;let r=this.__wevuHooks,i=r==null?void 0:r[t],o=this.__wevu,s=(n=o==null?void 0:o.proxy)==null?this:n,c;if(typeof i==`function`)try{c=i.apply(s,e)}catch(e){c=void 0}else if(Array.isArray(i))for(let t of i)try{c=t.apply(s,e)}catch(e){}if(c!==void 0)return c;if(typeof a==`function`)return a.apply(this,e)};i[t]=o,e[t]=o}function Qt(e){var t;let n=Ht();if(!n||typeof n.showShareMenu!=`function`)return;let r=(t=e.__wevuHooks)==null?{}:t,i=typeof r.onShareAppMessage==`function`,a=typeof r.onShareTimeline==`function`;if(!i&&!a)return;let o=[`shareAppMessage`];a&&o.push(`shareTimeline`);try{n.showShareMenu({withShareTicket:!0,menus:o})}catch(e){}}function $(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(Array.isArray(a))for(let e of a)try{e.apply(s,n)}catch(e){}else if(typeof a==`function`)try{a.apply(s,n)}catch(e){}}function $t(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(typeof a==`function`)try{return a.apply(s,n)}catch(e){return}if(Array.isArray(a)){let e;for(let t of a)try{e=t.apply(s,n)}catch(e){}return e}}function en(e){Q(Z(`onLaunch`),`onLaunch`,e)}function tn(e){Q(Z(`onPageNotFound`),`onPageNotFound`,e)}function nn(e){Q(Z(`onUnhandledRejection`),`onUnhandledRejection`,e)}function rn(e){Q(Z(`onThemeChange`),`onThemeChange`,e)}function an(e){Q(Z(`onShow`),`onShow`,e)}function on(e){Q(Z(`onLoad`),`onLoad`,e)}function sn(e){Q(Z(`onHide`),`onHide`,e)}function cn(e){Q(Z(`onUnload`),`onUnload`,e)}function ln(e){Q(Z(`onReady`),`onReady`,e)}function un(e){Q(Z(`onPullDownRefresh`),`onPullDownRefresh`,e)}function dn(e){Q(Z(`onReachBottom`),`onReachBottom`,e)}function fn(e){Q(Z(`onPageScroll`),`onPageScroll`,e)}function pn(e){Q(Z(`onRouteDone`),`onRouteDone`,e)}function mn(e){Q(Z(`onTabItemTap`),`onTabItemTap`,e)}function hn(e){Q(Z(`onResize`),`onResize`,e)}function gn(e){Q(Z(`onMoved`),`onMoved`,e)}function _n(e){Q(Z(`onAttached`),`onAttached`,e)}function vn(e){Q(Z(`onDetached`),`onDetached`,e)}function yn(e){Q(Z(`onError`),`onError`,e)}function bn(e){Q(Z(`onSaveExitState`),`onSaveExitState`,e,{single:!0})}function xn(e){let t=Z(`onShareAppMessage`);Q(t,`onShareAppMessage`,e,{single:!0}),Zt(t,`onShareAppMessage`),Qt(t)}function Sn(e){let t=Z(`onShareTimeline`);Q(t,`onShareTimeline`,e,{single:!0}),Zt(t,`onShareTimeline`),Qt(t)}function Cn(e){let t=Z(`onAddToFavorites`);Q(t,`onAddToFavorites`,e,{single:!0}),Zt(t,`onAddToFavorites`)}function wn(e){Q(Z(`onMounted`),`onReady`,e)}function Tn(e){Q(Z(`onUpdated`),`__wevuOnUpdated`,e)}function En(e){Z(`onBeforeUnmount`),e()}function Dn(e){Q(Z(`onUnmounted`),`onUnload`,e)}function On(e){Z(`onBeforeMount`),e()}function kn(e){Q(Z(`onBeforeUpdate`),`__wevuOnBeforeUpdate`,e)}function An(e){let t=Z(`onErrorCaptured`);Q(t,`onError`,n=>e(n,t,``))}function jn(e){Q(Z(`onActivated`),`onShow`,e)}function Mn(e){Q(Z(`onDeactivated`),`onHide`,e)}function Nn(e){Z(`onServerPrefetch`)}function Pn(e,t){$(e,t===`before`?`__wevuOnBeforeUpdate`:`__wevuOnUpdated`)}function Fn(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function In(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t}}function Ln(e){return e.trim().replace(/[^a-z0-9]+/gi,`-`).replace(/^-+|-+$/g,``).toLowerCase()}function Rn(e,t){let n=Ln(typeof(t==null?void 0:t.type)==`string`?t.type:``);if(!n)return;let r=n.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase());if(r)return`${e}${r[0].toUpperCase()}${r.slice(1)}`}function zn(e,t,n){let r=Rn(t,n);return r&&(e==null?void 0:e[r])!==void 0?e[r]:e==null?void 0:e[t]}function Bn(e,t){let n=zn(e,`wvEventDetail`,t);return n===!0||n===1||n===`1`||n===`true`}function Vn(e,t){return!Bn(t,e)||!e||typeof e!=`object`||!(`detail`in e)||e.detail===void 0?e:e.detail}function Hn(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=Y(e)?e.value:e;for(let e of n){if(Y(r)&&(r=r.value),r==null)return;r=r[e]}return Y(r)?r.value:r}function Un(e){if(typeof e!=`object`||!e||Y(e)||J(e))return e;try{return Ce(e)}catch(t){return e}}function Wn(e,t,n,r){var i,a,o,s;let c=(i=(a=n==null||(o=n.currentTarget)==null?void 0:o.dataset)==null?n==null||(s=n.target)==null?void 0:s.dataset:a)==null?{}:i,l=Vn(n,c),u=zn(c,`wvInlineId`,n);if(u&&r){let t=r[u];if(t&&typeof t.fn==`function`){let n={},r=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<r.length;e+=1){let t=r[e];n[t]=c==null?void 0:c[`wvS${e}`]}let i=Array.isArray(t.indexKeys)?t.indexKeys:[];for(let e=0;e<i.length;e+=1){let t=i[e],r=In(c==null?void 0:c[`wvI${e}`]);r!==void 0&&(n[t]=r)}let a=Array.isArray(t.scopeResolvers)?t.scopeResolvers:[];for(let t=0;t<r.length;t+=1){let i=r[t],o=a[t];try{let t;if(typeof o==`function`)t=o(e,n,l);else if(o&&typeof o==`object`&&o.type===`for-item`){let r=n[o.indexKey],i=Hn(e,o.path);t=i==null?void 0:i[r]}else continue;t!==void 0&&(n[i]=Un(t))}catch(e){}}let o=t.fn(e,n,l);return typeof o==`function`?o.call(e,l):o}}let d=zn(c,`wvHandler`,n),f=typeof t==`string`&&t?t:typeof d==`string`?d:void 0;if(!f)return;let p=zn(c,`wvArgs`,n),m=[];if(Array.isArray(p))m=p;else if(typeof p==`string`)try{m=JSON.parse(p)}catch(e){try{m=JSON.parse(Fn(p))}catch(e){m=[]}}Array.isArray(m)||(m=[]);let h=m.map(e=>e===`$event`?l:e),g=e==null?void 0:e[f];if(typeof g==`function`)return g.apply(e,h)}const Gn=new Map;let Kn=0;function qn(){return Kn+=1,`wv${Kn}`}function Jn(e,t,n){var r;let i=(r=Gn.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,Gn.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function Yn(e){Gn.delete(e)}function Xn(e,t){var n;let r=(n=Gn.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),Gn.set(e,r),()=>{let n=Gn.get(e);n&&n.subscribers.delete(t)}}function Zn(e){var t;return(t=Gn.get(e))==null?void 0:t.proxy}function Qn(e){var t;return(t=Gn.get(e))==null?void 0:t.snapshot}function $n(e,t,n){var r;try{t.state.__wvOwnerId=n}catch(e){}try{e.__wvOwnerId=n}catch(e){}let i=typeof t.snapshot==`function`?t.snapshot():{},a=(r=e.__wevuProps)==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Jn(n,i,t.proxy)}function er(e){return e.kind===`component`}function tr(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return Y(r)?r.value:r},set(e,t,n,r){let i=e[t];return Y(i)&&!Y(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function nr(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=tr(t);try{Object.defineProperty(e,`__wevuExposeProxy`,{value:r,configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(e,`__wevuExposeRaw`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuExposeProxy=r,e.__wevuExposeRaw=t}return r}function rr(e,t){if(!t||typeof t!=`object`)return e;let n=t;return X(new Proxy(e,{get(e,t,r){return Reflect.has(e,t)?Reflect.get(e,t,r):n[t]},set(e,t,r,i){return t in n?(n[t]=r,!0):Reflect.set(e,t,r,i)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return Array.from(new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)]))},getOwnPropertyDescriptor(e,t){return Reflect.has(e,t)?Object.getOwnPropertyDescriptor(e,t):Object.getOwnPropertyDescriptor(n,t)}}))}function ir(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n.__wevuExposed;return r&&typeof r==`object`?nr(n,r):(t=n.__wevu)!=null&&t.proxy?n.__wevu.proxy:e}function ar(e){return e.__wevuTemplateRefMap}function or(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function sr(e,t){var n,r;let i=(n=(r=e.__wevu)==null?void 0:r.proxy)==null?e:n,a;if(t.get)try{a=t.get.call(i)}catch(e){a=void 0}return a==null&&t.name&&(a=t.name),typeof a==`function`?{type:`function`,fn:a}:Y(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function cr(e){var t,n;let r=(t=(n=e.__wevu)==null?void 0:n.state)==null?e:t,i=r.$refs;if(i&&typeof i==`object`)return i;let a=X(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function lr(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();let n=Ht();return n&&typeof n.createSelectorQuery==`function`?n.createSelectorQuery().in(t):null}function ur(e,t,n,r,i){let a=lr(e);return a?(r(n.multiple?a.selectAll(t):a.select(t)),new Promise(e=>{a.exec(t=>{var r;let a=Array.isArray(t)?t[0]:null;if(n.index!=null&&Array.isArray(a)){var o;a=(o=a[n.index])==null?null:o}if(i){var s;i((s=a)==null?null:s)}e((r=a)==null?null:r)})})):(i&&i(null),Promise.resolve(null))}function dr(e,t,n){return X({selector:t,boundingClientRect:r=>ur(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>ur(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>ur(e,t,n,e=>e.fields(r),i),node:r=>ur(e,t,n,e=>e.node(),r)})}function fr(e,t){let n=e;if(!n)return t.inFor?X([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return X((Array.isArray(r)?r:[]).map((n,r)=>rr(dr(e,t.selector,{multiple:!0,index:r}),ir(n))))}return X([])}let r=dr(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?rr(r,ir(n.selectComponent(t.selector))):r}function pr(e,t,n){return t.inFor?X((Array.isArray(n)?n:[]).map((n,r)=>dr(e,t.selector,{multiple:!0,index:r}))):n?dr(e,t.selector,{multiple:!1}):null}function mr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(!e.__wevuReadyCalled){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=ar(e),i=n.filter(e=>!er(e)),a=n.filter(e=>er(e)).map(t=>({binding:t,value:fr(e,t)})),o=n=>{var i,a;let o=cr(e),s=new Map,c=new Set,l=(i=(a=e.__wevu)==null?void 0:a.proxy)==null?e:i;n.forEach(t=>{let n=t.binding,r=t.value,i=sr(e,n);if(i.type===`function`){n.inFor&&Array.isArray(r)?r.length?r.forEach(e=>i.fn.call(l,e)):i.fn.call(l,null):i.fn.call(l,r==null?null:r);return}if(i.type===`ref`){i.ref.value=r;return}if(i.type===`name`){var a;c.add(i.name);let e=(a=s.get(i.name))==null?{values:[],count:0,hasFor:!1}:a;e.count+=1,e.hasFor=e.hasFor||n.inFor,n.inFor?Array.isArray(r)&&e.values.push(...r):r!=null&&e.values.push(r),s.set(i.name,e)}});for(let[e,t]of s){let n;n=t.values.length?t.hasFor||t.values.length>1||t.count>1?X(t.values):t.values[0]:t.hasFor?X([]):null,o[e]=n,or(r,e,n)}for(let e of Object.keys(o))c.has(e)||delete o[e];t==null||t()};if(!i.length){o(a);return}let s=lr(e);if(!s){o(a);return}let c=[];for(let e of i)(e.inFor?s.selectAll(e.selector):s.select(e.selector)).boundingClientRect(),c.push({binding:e});s.exec(t=>{let n=c.map((n,r)=>{let i=Array.isArray(t)?t[r]:null;return{binding:n.binding,value:pr(e,n.binding,i)}});o([...a,...n])})}function hr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e.__wevuTemplateRefsCallbacks)==null?[]:r;n.push(t),e.__wevuTemplateRefsCallbacks||Object.defineProperty(e,`__wevuTemplateRefsCallbacks`,{value:n,configurable:!0,enumerable:!1,writable:!0})}e.__wevuTemplateRefsPending||(e.__wevuTemplateRefsPending=!0,o(()=>{e.__wevuTemplateRefsPending=!1,mr(e,()=>{let t=e.__wevuTemplateRefsCallbacks;!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function gr(e){var t,n;let r=e.__wevuTemplateRefs;if(!r||!r.length)return;let i=cr(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=ar(e);for(let t of r){let n=sr(e,t),r=t.inFor?X([]):null;if(n.type===`function`){n.fn.call(a,null);continue}if(n.type===`ref`){n.ref.value=r;continue}n.type===`name`&&(o.add(n.name),i[n.name]=r,or(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}function _r(e,t,n){var r;if(typeof e!=`function`)return;let i=(r=n==null?void 0:n.runtime)==null?{methods:Object.create(null),state:{},proxy:{},watch:()=>()=>{},bindModel:()=>{}}:r;return n&&(n.runtime=i),e(t,{...n==null?{}:n,runtime:i})}function vr(e,t,n){if(typeof e==`function`)return{handler:e.bind(t.proxy),options:{}};if(typeof e==`string`){var r,i;let a=(r=(i=t.methods)==null?void 0:i[e])==null?n[e]:r;return typeof a==`function`?{handler:a.bind(t.proxy),options:{}}:void 0}if(!e||typeof e!=`object`)return;let a=vr(e.handler,t,n);if(!a)return;let o={...a.options};return e.immediate!==void 0&&(o.immediate=e.immediate),e.deep!==void 0&&(o.deep=e.deep),{handler:a.handler,options:o}}function yr(e,t){let n=t.split(`.`).map(e=>e.trim()).filter(Boolean);return n.length?()=>{let t=e;for(let e of n){if(t==null)return t;t=t[e]}return t}:()=>e}function br(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=vr(o,e,n);if(!t)continue;let s=yr(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function xr(){return Object.freeze(Object.create(null))}function Sr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function Cr(e){try{return X(e)}catch(t){return e}}function wr(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Object.prototype.hasOwnProperty.call(e,`bubbles`)||Object.prototype.hasOwnProperty.call(e,`composed`)||Object.prototype.hasOwnProperty.call(e,`capturePhase`)}function Tr(e){if(e.length===0)return{detail:void 0,options:void 0};if(e.length===1)return{detail:e[0],options:void 0};let t=e[e.length-1];if(wr(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}const Er=[`triggerEvent`,`createSelectorQuery`,`setData`],Dr=`__wevuSetupContextInstance`;function Or(e,t,n){let r=e==null?void 0:e.state,i=r&&typeof r==`object`?G(r):void 0,a=e==null?void 0:e.proxy,o=e=>{let r=e[n];if(typeof r!=`function`)return!1;if(Qe(r))return!0;let i=t[n];return typeof i==`function`&&r===i},s=e=>!e||typeof e!=`object`||e===t||e===a||o(e)?!1:typeof e[n]==`function`,c=i?i.__wevuNativeInstance:void 0;if(s(c))return c;let l=e==null?void 0:e.instance;if(s(l))return l}function kr(e,t,n){Ze(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function Ar(e,t){let n=e[Dr];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=Or(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Qe(i))return e};kr(r,`triggerEvent`,(...e)=>{let[t,n,r]=e,a=i(`triggerEvent`);a&&typeof a.triggerEvent==`function`&&(e.length>=3?a.triggerEvent(t,n,r):a.triggerEvent(t,n))}),kr(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=Ht();if(!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||typeof o.in!=`function`)return o;let s=(n=Or(t,e,`setData`))==null?e:n;return o.in(s)}),kr(r,`setData`,(e,n)=>{let r=i(`setData`);if(r&&typeof r.setData==`function`)return r.setData(e,n);let a=t==null?void 0:t.adapter,o=typeof(a==null?void 0:a.setData)==`function`?a.setData(e):void 0;return typeof n==`function`&&n(),o});let a=Cr(new Proxy(r,{get(t,n,r){if(Reflect.has(t,n))return Reflect.get(t,n,r);let i=e[n];return typeof i==`function`?i.bind(e):i},has(t,n){return Reflect.has(t,n)||n in e},set(t,n,r){return Reflect.has(t,n)?(t[n]=r,!0):(e[n]=r,!0)}}));try{Object.defineProperty(e,Dr,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[Dr]=a}return a}function jr(e,t){try{Object.defineProperty(e,`__wevuProps`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuProps=t}}function Mr(e,t){try{Object.defineProperty(e,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuNativeInstance=t}}function Nr(e,t){try{Object.defineProperty(e,`__wevuRuntime`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuRuntime=t}}function Pr(e,t){try{Object.defineProperty(e,`instance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function Fr(e){let t=e[Dr],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Qe(n))return n;let r=e.setData;if(typeof r==`function`&&!Qe(r))return r}function Ir(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function Lr(e,t,n){try{return t.call(e,n)}catch(t){let n=Ir(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function Rr(e,t){let n=Object.keys(e);for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function zr(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e.__wevu)return e.__wevu;Cr(e);let p=qn(),m=i!=null&&i.deferSetData?(e=>{let t,n=!1,r={setData(r){if(!n){var i;t={...(i=t)==null?{}:i,...r};return}let a=Fr(e);if(a)return Lr(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=Fr(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,Lr(e,r,n)}},r})(e):{setData(t){let n=Fr(e);if(n)return Lr(e,n,t)}},h,g=()=>{var t;if(!h||typeof h.snapshot!=`function`)return;let n=h.snapshot(),r=(t=e.__wevuProps)==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;Jn(p,n,h.proxy)},_={...m,setData(t){let n=m.setData(t);return g(),hr(e),n}},v=t.mount({..._});h=v,Pr(v,e);let y=(a=v==null?void 0:v.proxy)==null?{}:a,b=(o=v==null?void 0:v.state)==null?{}:o;b&&typeof b==`object`&&(Nr(b,v),Mr(b,e));let x=(s=v==null?void 0:v.computed)==null?Object.create(null):s;if(!(v!=null&&v.methods))try{v.methods=Object.create(null)}catch(e){}let S=(c=v==null?void 0:v.methods)==null?Object.create(null):c,C=(l=v==null?void 0:v.watch)==null?(()=>Sr()):l,w=(u=v==null?void 0:v.bindModel)==null?(()=>{}):u,T={...v==null?{}:v,state:b,proxy:y,methods:S,computed:x,watch:C,bindModel:w,snapshot:(d=v==null?void 0:v.snapshot)==null?(()=>Object.create(null)):d,unmount:(f=v==null?void 0:v.unmount)==null?(()=>{}):f};if(Object.defineProperty(e,`$wevu`,{value:T,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=T,$n(e,T,p),n){let t=br(T,n,e);t.length&&(e.__wevuWatchStops=t)}if(r){let t=e.properties||{},n=b&&typeof b==`object`?b.__wevuProps:void 0,i=n&&typeof n==`object`?n:ye({});Rr(i,t),b&&typeof b==`object`&&jr(b,i);try{Object.defineProperty(e,`__wevuProps`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuProps=i}let a=ye(Object.create(null)),o=new Set(Array.isArray(e.__wevuPropKeys)?e.__wevuPropKeys:[]),s=e=>typeof b==`object`&&!!b&&Object.prototype.hasOwnProperty.call(b,e);(()=>{let t=e.properties&&typeof e.properties==`object`?e.properties:void 0;for(let e of Object.keys(a))(!t||!Object.prototype.hasOwnProperty.call(t,e)||o.has(e)||s(e))&&delete a[e];if(t)for(let[e,n]of Object.entries(t))o.has(e)||s(e)||(a[e]=n)})();try{Object.defineProperty(e,`__wevuAttrs`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuAttrs=a}let c=Ar(e,T),l={props:i,runtime:T,state:b,proxy:y,bindModel:w.bind(T),watch:C.bind(T),instance:c,emit:(e,...t)=>{let{detail:n,options:r}=Tr(t);c.triggerEvent(e,n,r)},expose:t=>{e.__wevuExposed=t},attrs:a,slots:xr()};qt(e),Yt(l);try{let e=_r(r,i,l),t=!1;if(e&&typeof e==`object`){let n=J(v.state)?G(v.state):v.state;Object.keys(e).forEach(r=>{let i=e[r];if(typeof i==`function`)v.methods[r]=(...e)=>i.apply(v.proxy,e),t=!0;else{if(o.has(r)){let e=i;try{Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let t=n.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let i=n.__wevuProps;if(!(!i||typeof i!=`object`))try{i[r]=t}catch(e){}}})}catch(e){v.state[r]=i}return}v.state[r]=i}})}if(t){var E;(E=v.__wevu_touchSetupMethodsVersion)==null||E.call(v)}}finally{Yt(void 0),qt(void 0)}}try{let t=v.methods;for(let n of Object.keys(t))Er.includes(n)||typeof e[n]!=`function`&&(e[n]=function(...e){var t;let r=(t=this.$wevu)==null||(t=t.methods)==null?void 0:t[n];if(typeof r==`function`)return r.apply(this.$wevu.proxy,e)})}catch(e){}return v}function Br(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function Vr(e){let t=e.__wevu,n=e.__wvOwnerId;n&&Yn(n),gr(e),t&&e.__wevuHooks&&$(e,`onUnload`,[]),e.__wevuHooks&&(e.__wevuHooks=void 0);let r=e.__wevuWatchStops;if(Array.isArray(r))for(let e of r)try{e()}catch(e){}e.__wevuWatchStops=void 0,t&&t.unmount(),delete e.__wevu,`$wevu`in e&&delete e.$wevu}function Hr(e,t,n,r,i){var a;if(typeof App!=`function`)throw TypeError(`createApp 需要全局 App 构造器可用`);let o=Object.keys(t==null?{}:t),s={...i};s.globalData=(a=s.globalData)==null?{}:a,s.__weapp_vite_inline||(s.__weapp_vite_inline=function(e){var t,n;let r=this.__wevu;return Wn((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n.__weapp_vite_inline_map)});let c=s.onLaunch;s.onLaunch=function(...t){zr(this,e,n,r),$(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let l=s.onShow;s.onShow=function(...e){$(this,`onShow`,e),typeof l==`function`&&l.apply(this,e)};let u=s.onHide;s.onHide=function(...e){$(this,`onHide`,e),typeof u==`function`&&u.apply(this,e)};let d=s.onError;s.onError=function(...e){$(this,`onError`,e),typeof d==`function`&&d.apply(this,e)};let f=s.onPageNotFound;s.onPageNotFound=function(...e){$(this,`onPageNotFound`,e),typeof f==`function`&&f.apply(this,e)};let p=s.onUnhandledRejection;s.onUnhandledRejection=function(...e){$(this,`onUnhandledRejection`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onThemeChange;s.onThemeChange=function(...e){$(this,`onThemeChange`,e),typeof m==`function`&&m.apply(this,e)};for(let e of o){let t=s[e];s[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];return o&&(a=o.apply(i.proxy,n)),typeof t==`function`?t.apply(this,n):a}}App(s)}function Ur(e){let{features:t,userOnSaveExitState:n,userOnPullDownRefresh:r,userOnReachBottom:i,userOnPageScroll:a,userOnRouteDone:o,userOnTabItemTap:s,userOnResize:c,userOnShareAppMessage:l,userOnShareTimeline:u,userOnAddToFavorites:d}=e,f=typeof r==`function`||!!t.enableOnPullDownRefresh,p=typeof i==`function`||!!t.enableOnReachBottom,m=typeof a==`function`||!!t.enableOnPageScroll,h=typeof o==`function`||!!t.enableOnRouteDone,g=!!t.enableOnRouteDoneFallback,_=typeof s==`function`||!!t.enableOnTabItemTap,v=typeof c==`function`||!!t.enableOnResize,y=typeof u==`function`||!!t.enableOnShareTimeline,b=typeof l==`function`||!!t.enableOnShareAppMessage,x=typeof d==`function`||!!t.enableOnAddToFavorites,S=typeof n==`function`||!!t.enableOnSaveExitState,C=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnRouteDoneFallback:g,enableOnTabItemTap:_,enableOnResize:v,enableOnShareAppMessage:b,enableOnShareTimeline:y,enableOnAddToFavorites:x,enableOnSaveExitState:S,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:C,effectiveOnReachBottom:typeof i==`function`?i:C,effectiveOnPageScroll:typeof a==`function`?a:C,effectiveOnRouteDone:typeof o==`function`?o:C,effectiveOnTabItemTap:typeof s==`function`?s:C,effectiveOnResize:typeof c==`function`?c:C,effectiveOnShareAppMessage:typeof l==`function`?l:C,effectiveOnShareTimeline:typeof u==`function`?u:C,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}let Wr=!1,Gr;function Kr(e){let t=e.options;if(t&&typeof t==`object`)return t;if(typeof getCurrentPages==`function`){let e=getCurrentPages(),t=Array.isArray(e)?e[e.length-1]:void 0,n=t&&typeof t==`object`?t.options:void 0;if(n&&typeof n==`object`)return n}return{}}function qr(){if(Wr)return;Wr=!0;let e=Ht();if(!e||typeof e!=`object`)return;let t=e.startPullDownRefresh;typeof t==`function`&&(e.startPullDownRefresh=function(...e){let n=t.apply(this,e);return Gr&&$(Gr,`onPullDownRefresh`,[]),n});let n=e.pageScrollTo;typeof n==`function`&&(e.pageScrollTo=function(e,...t){let r=n.apply(this,[e,...t]);return Gr&&$(Gr,`onPageScroll`,[e==null?{}:e]),r})}function Jr(e){let{enableOnShareAppMessage:t,enableOnShareTimeline:n}=e;if(!t&&!n)return;let r=Ht();if(!r||typeof r.showShareMenu!=`function`)return;let i=e=>{try{r.showShareMenu(e)}catch(e){}};if(!(t||n))return;let a=[`shareAppMessage`];n&&a.push(`shareTimeline`),i({withShareTicket:!0,menus:a})}function Yr(e){let{runtimeApp:t,watch:n,setup:r,userOnLoad:i,userOnUnload:a,userOnShow:o,userOnHide:s,userOnReady:c,isPage:l,enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnRouteDoneFallback:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:v,enableOnShareTimeline:y,enableOnAddToFavorites:b,effectiveOnSaveExitState:x,effectiveOnPullDownRefresh:S,effectiveOnReachBottom:C,effectiveOnPageScroll:w,effectiveOnRouteDone:T,effectiveOnTabItemTap:E,effectiveOnResize:D,effectiveOnShareAppMessage:O,effectiveOnShareTimeline:k,effectiveOnAddToFavorites:A,hasHook:j}=e,M={onLoad(...e){if(!this.__wevuOnLoadCalled&&(this.__wevuOnLoadCalled=!0,zr(this,t,n,r),Br(this),l&&Jr({enableOnShareAppMessage:v,enableOnShareTimeline:y}),$(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&Gr===this&&(Gr=void 0),Vr(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(qr(),Gr=this,this.__wevuOnLoadCalled||M.onLoad.call(this,Kr(this)),Jr({enableOnShareAppMessage:v,enableOnShareTimeline:y}),this.__wevuRouteDoneCalled=!1),$(this,`onShow`,e),typeof o==`function`)return o.apply(this,e)},onHide(...e){if(l&&Gr===this&&(Gr=void 0),$(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this.__wevuOnLoadCalled||M.onLoad.call(this,Kr(this)),Jr({enableOnShareAppMessage:v,enableOnShareTimeline:y})),!this.__wevuReadyCalled){if(this.__wevuReadyCalled=!0,l&&m&&h){let e=this;setTimeout(()=>{if(!e.__wevuRouteDoneCalled){var t;(t=M.onRouteDone)==null||t.call(e)}},0)}hr(this,()=>{$(this,`onReady`,e),typeof c==`function`&&c.apply(this,e)});return}if(typeof c==`function`)return c.apply(this,e)}};return u&&(M.onSaveExitState=function(...e){let t=$t(this,`onSaveExitState`,e);return t===void 0?x.apply(this,e):t}),d&&(M.onPullDownRefresh=function(...e){if($(this,`onPullDownRefresh`,e),!j(this,`onPullDownRefresh`))return S.apply(this,e)}),f&&(M.onReachBottom=function(...e){if($(this,`onReachBottom`,e),!j(this,`onReachBottom`))return C.apply(this,e)}),p&&(M.onPageScroll=function(...e){if($(this,`onPageScroll`,e),!j(this,`onPageScroll`))return w.apply(this,e)}),m&&(M.onRouteDone=function(...e){if(!this.__wevuRouteDoneInTick&&(this.__wevuRouteDoneInTick=!0,Promise.resolve().then(()=>{this.__wevuRouteDoneInTick=!1}),this.__wevuRouteDoneCalled=!0,$(this,`onRouteDone`,e),!j(this,`onRouteDone`)))return T.apply(this,e)}),g&&(M.onTabItemTap=function(...e){if($(this,`onTabItemTap`,e),!j(this,`onTabItemTap`))return E.apply(this,e)}),_&&(M.onResize=function(...e){if($(this,`onResize`,e),!j(this,`onResize`))return D.apply(this,e)}),v&&(M.onShareAppMessage=function(...e){let t=$t(this,`onShareAppMessage`,e);return t===void 0?O.apply(this,e):t}),y&&(M.onShareTimeline=function(...e){let t=$t(this,`onShareTimeline`,e);return t===void 0?k.apply(this,e):t}),b&&(M.onAddToFavorites=function(...e){let t=$t(this,`onAddToFavorites`,e);return t===void 0?A.apply(this,e):t}),M}function Xr(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r.__weapp_vite_inline||(r.__weapp_vite_inline=function(e){var t,n;let r=this.__wevu;return Wn((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n.__weapp_vite_inline_map)}),r.__weapp_vite_model||(r.__weapp_vite_model=function(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvModel)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvModel:t;if(typeof i!=`string`||!i)return;let a=this.__wevu;if(!a||typeof a.bindModel!=`function`)return;let o=Ye(e);try{a.bindModel(i).update(o)}catch(e){}}),!r.__weapp_vite_owner&&typeof(n==null?void 0:n.__weapp_vite_owner)==`function`&&(r.__weapp_vite_owner=n.__weapp_vite_owner);let i=Object.keys(n==null?{}:n);function a(e){let t=e.__wevu;if(t)return t;let n=e.$state;if(n&&typeof n==`object`)return n.__wevuRuntime}function o(e,t){if((e==null?void 0:e.proxy)===t)return;let n=e==null?void 0:e.proxy,r=e=>{let r=t[e];if(typeof r!=`function`)return!1;let i=n==null?void 0:n[e];return typeof i==`function`&&r===i};if(r(`triggerEvent`)||r(`createSelectorQuery`)||r(`setData`)||!(typeof t.triggerEvent==`function`||typeof t.createSelectorQuery==`function`||typeof t.setData==`function`))return;let i=e==null?void 0:e.state;if(!(!i||typeof i!=`object`)&&t.$state!==i)try{Object.defineProperty(i,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i.__wevuNativeInstance=t}}for(let e of i){if(e.startsWith(`__weapp_vite_`))continue;let t=r[e];r[e]=function(...n){var r;let i=a(this);o(i,this);let s,c=i==null||(r=i.methods)==null?void 0:r[e];if(c&&(s=c.apply(i.proxy,n)),typeof t==`function`){let e=t.apply(this,n);return e===void 0?s:e}return s}}return{finalMethods:r}}function Zr(e){var t;let n=e.__wevu,r=e.__wvOwnerId;if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e.__wevuProps)==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Jn(r,i,n.proxy)}function Qr(e){let{restOptions:t,userObservers:n}=e,r=`__wevuPendingPropValues`,i=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],a=new Set(i),o=e=>{try{Object.defineProperty(e,`__wevuPropKeys`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuPropKeys=i}},s=e=>{let t=e.__wevuAttrs;if(!t||typeof t!=`object`)return;let n=t=>{var n;let r=(n=e.__wevu)==null?void 0:n.state;return typeof r==`object`&&!!r&&Object.prototype.hasOwnProperty.call(r,t)},r=e.properties,i=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!i||!Object.prototype.hasOwnProperty.call(i,e)||a.has(e)||n(e))try{delete t[e]}catch(e){}if(!i){Zr(e);return}for(let[e,r]of Object.entries(i))if(!(a.has(e)||n(e)))try{t[e]=r}catch(e){}Zr(e)},c=e=>{let t=e.__wevuProps,n=e.properties,i=e[r];if(t&&typeof t==`object`&&n&&typeof n==`object`){let r=n,a=Object.keys(t);for(let e of a)if(!Object.prototype.hasOwnProperty.call(r,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(r)){let r=i&&Object.prototype.hasOwnProperty.call(i,e)?i[e]:n;try{t[e]=r}catch(e){}}if(i){for(let[e,n]of Object.entries(i))if(!Object.prototype.hasOwnProperty.call(r,e))try{t[e]=n}catch(e){}}Zr(e)}i&&delete e[r],s(e)},l=(e,t,n)=>{var i,a;let o=e.__wevuProps;if(!o||typeof o!=`object`)return;try{o[t]=n}catch(e){}let c=(a=(i=e)[r])==null?i[r]=Object.create(null):a;c[t]=n,Zr(e),s(e)},u={};if(i.length)for(let e of i)u[e]=function(t){l(this,e,t)};let d={...n==null?{}:n};for(let[e,t]of Object.entries(u)){let n=d[e];typeof n==`function`?d[e]=function(...e){n.apply(this,e),t.apply(this,e)}:d[e]=t}let f=d[`**`];return d[`**`]=function(...e){typeof f==`function`&&f.apply(this,e),c(this)},{attachWevuPropKeys:o,syncWevuPropsFromInstance:c,finalObservers:d}}function $r(e,t,n,r,i){var a,o;let s=(e,t=new WeakMap)=>{if(!e||typeof e!=`object`)return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=[];t.set(e,n);for(let r of e)n.push(s(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=s(i,t);return n},c=e=>{let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`},{methods:l={},lifetimes:u={},pageLifetimes:d={},options:f={},...p}=i,m=p.onLoad,h=p.onUnload,g=p.onShow,_=p.onHide,v=p.onReady,y=p.onSaveExitState,b=p.onPullDownRefresh,x=p.onReachBottom,S=p.onPageScroll,C=p.onRouteDone,w=p.onTabItemTap,T=p.onResize,E=p.onShareAppMessage,D=p.onShareTimeline,O=p.onAddToFavorites,k=(a=p.features)==null?{}:a,A=[m,h,g,_,v,y,b,x,S,C,w,T,E,D,O].some(e=>typeof e==`function`),j=!!p.__wevu_isPage||Object.keys(k==null?{}:k).length>0||A,M={...p},ee=new Set([`behaviors`,`relations`,`externalClasses`,`options`,`properties`,`observers`,`pureDataPattern`,`virtualHost`,`definitionFilter`,`export`,`__wevuTemplateRefs`,`setupLifecycle`,`features`,`__wevu_isPage`]),N=[];for(let[e,t]of Object.entries(M))ee.has(e)||typeof t!=`function`&&(N.push([e,t]),delete M[e]);let P=e=>{if(N.length){for(let[t,n]of N)if(!Object.prototype.hasOwnProperty.call(e,t))try{e[t]=s(n)}catch(e){}}},te=new Set([`export`,`definitionFilter`,`onLoad`,`onUnload`,`onShow`,`onHide`,`onReady`,`onSaveExitState`,`onPullDownRefresh`,`onReachBottom`,`onPageScroll`,`onRouteDone`,`onTabItemTap`,`onResize`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]),F={};for(let[e,t]of Object.entries(M))typeof t!=`function`||te.has(e)||(F[e]=t,delete M[e]);let I=M.__wevuTemplateRefs;delete M.__wevuTemplateRefs;let L=M.observers,R=M.setupLifecycle===`created`?`created`:`attached`;delete M.setupLifecycle;let z=M.created;delete M.features,delete M.created,delete M.onLoad,delete M.onUnload,delete M.onShow,delete M.onHide,delete M.onReady;let{enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnRouteDoneFallback:ie,enableOnTabItemTap:H,enableOnResize:ae,enableOnShareAppMessage:oe,enableOnShareTimeline:se,enableOnAddToFavorites:ce,enableOnSaveExitState:le,effectiveOnSaveExitState:ue,effectiveOnPullDownRefresh:U,effectiveOnReachBottom:W,effectiveOnPageScroll:de,effectiveOnRouteDone:fe,effectiveOnTabItemTap:G,effectiveOnResize:pe,effectiveOnShareAppMessage:me,effectiveOnShareTimeline:he,effectiveOnAddToFavorites:ge}=Ur({features:k,userOnSaveExitState:y,userOnPullDownRefresh:b,userOnReachBottom:x,userOnPageScroll:S,userOnRouteDone:C,userOnTabItemTap:w,userOnResize:T,userOnShareAppMessage:E,userOnShareTimeline:D,userOnAddToFavorites:O}),_e=(e,t)=>{let n=e.__wevuHooks;if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=M.export;M.export=function(){var t;let n=(t=this.__wevuExposed)==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let K={multipleSlots:(o=f.multipleSlots)==null?!0:o,...f},{attachWevuPropKeys:ve,syncWevuPropsFromInstance:ye,finalObservers:be}=Qr({restOptions:M,userObservers:L}),{finalMethods:xe}=Xr({userMethods:{...F,...l},runtimeMethods:t}),q=Yr({runtimeApp:e,watch:n,setup:r,userOnLoad:m,userOnUnload:h,userOnShow:g,userOnHide:_,userOnReady:v,isPage:j,enableOnSaveExitState:le,enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnRouteDoneFallback:ie,enableOnTabItemTap:H,enableOnResize:ae,enableOnShareAppMessage:oe,enableOnShareTimeline:se,enableOnAddToFavorites:ce,effectiveOnSaveExitState:ue,effectiveOnPullDownRefresh:U,effectiveOnReachBottom:W,effectiveOnPageScroll:de,effectiveOnRouteDone:fe,effectiveOnTabItemTap:G,effectiveOnResize:pe,effectiveOnShareAppMessage:me,effectiveOnShareTimeline:he,effectiveOnAddToFavorites:ge,hasHook:_e}),Se={};if(j)for(let e of[`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=q[e];typeof t==`function`&&typeof xe[e]!=`function`&&(Se[e]=function(...e){return t.apply(this,e)})}Component({...M,...q,observers:be,lifetimes:{...u,created:function(...t){if(P(this),Array.isArray(I)&&I.length&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),ve(this),R===`created`){try{zr(this,e,n,r,{deferSetData:!0})}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in created (${t}): ${e instanceof Error?e.message:String(e)}`)}ye(this)}typeof z==`function`&&z.apply(this,t),typeof u.created==`function`&&u.created.apply(this,t)},moved:function(...e){$(this,`onMoved`,e),typeof u.moved==`function`&&u.moved.apply(this,e)},attached:function(...t){if(P(this),Array.isArray(I)&&I.length&&!this.__wevuTemplateRefs&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),ve(this),R!==`created`||!this.__wevu)try{zr(this,e,n,r)}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in attached (${t}): ${e instanceof Error?e.message:String(e)}`)}ye(this),R===`created`&&Br(this),$(this,`onAttached`,t),typeof u.attached==`function`&&u.attached.apply(this,t)},ready:function(...e){if(j&&typeof q.onReady==`function`){q.onReady.call(this,...e),typeof u.ready==`function`&&u.ready.apply(this,e);return}if(!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,ye(this),hr(this,()=>{$(this,`onReady`,e),typeof u.ready==`function`&&u.ready.apply(this,e)});return}typeof u.ready==`function`&&u.ready.apply(this,e)},detached:function(...e){if($(this,`onDetached`,e),j&&typeof q.onUnload==`function`){q.onUnload.call(this,...e),typeof u.detached==`function`&&u.detached.apply(this,e);return}gr(this),Vr(this),typeof u.detached==`function`&&u.detached.apply(this,e)},error:function(...e){$(this,`onError`,e),typeof u.error==`function`&&u.error.apply(this,e)}},pageLifetimes:{...d,show:function(...e){if(j&&typeof q.onShow==`function`){q.onShow.call(this,...e),typeof d.show==`function`&&d.show.apply(this,e);return}$(this,`onShow`,e),typeof d.show==`function`&&d.show.apply(this,e)},hide:function(...e){if(j&&typeof q.onHide==`function`){q.onHide.call(this,...e),typeof d.hide==`function`&&d.hide.apply(this,e);return}$(this,`onHide`,e),typeof d.hide==`function`&&d.hide.apply(this,e)},resize:function(...e){if(j&&typeof q.onResize==`function`){q.onResize.call(this,...e),typeof d.resize==`function`&&d.resize.apply(this,e);return}$(this,`onResize`,e),typeof d.resize==`function`&&d.resize.apply(this,e)},routeDone:function(...e){if(j&&typeof q.onRouteDone==`function`){q.onRouteDone.call(this,...e),typeof d.routeDone==`function`&&d.routeDone.apply(this,e);return}$(this,`onRouteDone`,e),typeof d.routeDone==`function`&&d.routeDone.apply(this,e)}},methods:{...Se,...xe},options:K})}function ei(e,t){let n=(()=>{e()});return n.stop=()=>n(),n.pause=()=>{var e;t==null||(e=t.pause)==null||e.call(t)},n.resume=()=>{var e;t==null||(e=t.resume)==null||e.call(t)},n}function ti(e){let{[jt]:t,data:n,computed:r,methods:i,setData:o,watch:s,setup:c,...l}=e[jt]===`component`?e:zt(e),u=i==null?{}:i,d=r==null?{}:r,f=new Set,p={globalProperties:{}},m={mount(e){let t=(n==null?(()=>({})):n)();if(t&&typeof t==`object`&&!Object.prototype.hasOwnProperty.call(t,`__wevuProps`))try{Object.defineProperty(t,`__wevuProps`,{value:ye(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let r=Ce(t),i=d,s=u,c=!0,l=[],{includeComputed:f,setDataStrategy:m,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,prelinkMaxDepth:T,prelinkMaxKeys:E,debug:D,debugWhen:O,debugSampleRate:A,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,shouldIncludeKey:N}=Ct(o),{boundMethods:P,computedRefs:I,computedSetters:L,dirtyComputedKeys:R,computedProxy:z,publicInstance:B,touchSetupMethodsVersion:V}=et({state:r,computedDefs:i,methodDefs:s,appConfig:p,includeComputed:f,setDataStrategy:m}),ne=e==null?{setData:()=>{}}:e,re=G(r),ie,H=St({state:r,computedRefs:I,dirtyComputedKeys:R,includeComputed:f,setDataStrategy:m,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,currentAdapter:ne,shouldIncludeKey:N,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,debug:D,debugWhen:O,debugSampleRate:A,runTracker:()=>ie==null?void 0:ie(),isMounted:()=>c}),ae=()=>H.job(re),oe=e=>H.mutationRecorder(e,re);ie=k(()=>{K(r);let e=r.__wevuProps;J(e)&&K(e);let t=r.__wevuAttrs;J(t)&&K(t),Object.keys(r).forEach(e=>{let t=r[e];if(Y(t)){let e=t.value;J(e)&&K(e)}else J(t)&&K(t)})},{lazy:!0,scheduler:()=>a(ae)}),ae(),l.push(ei(()=>x(ie))),m===`patch`&&(ge(r,{shouldIncludeTopKey:N,maxDepth:T,maxKeys:E}),te(oe),l.push(ei(()=>F(oe))),l.push(ei(()=>_e(r))));function se(e,t,n){let r=Ke(e,(e,n)=>t(e,n),n);return l.push(r),ei(()=>{r();let e=l.indexOf(r);e>=0&&l.splice(e,1)},r)}let ce={get state(){return r},get proxy(){return B},get methods(){return P},get computed(){return z},get adapter(){return ne},bindModel:At(B,r,I,L),watch:se,snapshot:()=>H.snapshot(),unmount:()=>{c&&(c=!1,l.forEach(e=>{try{e()}catch(e){}}),l.length=0)}};try{Object.defineProperty(ce,`__wevu_touchSetupMethodsVersion`,{value:V,configurable:!0,enumerable:!1,writable:!1})}catch(e){ce.__wevu_touchSetupMethodsVersion=V}return ce},use(e,...t){if(!e||f.has(e))return m;if(f.add(e),typeof e==`function`)e(m,...t);else if(typeof e.install==`function`)e.install(m,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return m},config:p};if(typeof App==`function`){let e=Ht(),t=(e==null?void 0:e.__wxConfig)!==void 0,n=`__wevuAppRegistered`;t&&e&&e[n]||(t&&e&&(e[n]=!0),Hr(m,i==null?{}:i,s,c,l))}return m}function ni(e,t,n){let r=e.properties,i=n==null?r&&typeof r==`object`?r:void 0:n,a=e=>{let t={...e==null?{}:e};return Object.prototype.hasOwnProperty.call(t,`__wvSlotOwnerId`)||(t.__wvSlotOwnerId={type:String,value:``}),Object.prototype.hasOwnProperty.call(t,`__wvSlotScope`)||(t.__wvSlotScope={type:null,value:null}),t};if(i||!t){let{properties:t,...n}=e;return{...n,properties:a(i)}}let o={};return Object.entries(t).forEach(([e,t])=>{if(t!=null){if(Array.isArray(t)||typeof t==`function`){o[e]={type:t};return}if(typeof t==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(t).length===0){o[e]={type:Object,value:{}};return}let n={};`type`in t&&t.type!==void 0&&(n.type=t.type);let r=`default`in t?t.default:t.value;r!==void 0&&(n.value=typeof r==`function`?r():r),o[e]=n}}}),{...e,properties:a(o)}}function ri(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function ii(e){var t,n,r,i;let a=zn((t=(n=e==null||(r=e.currentTarget)==null?void 0:r.dataset)==null?e==null||(i=e.target)==null?void 0:i.dataset:n)==null?{}:t,`wvArgs`,e),o=[];if(Array.isArray(a))o=a;else if(typeof a==`string`)try{o=JSON.parse(a)}catch(e){try{o=JSON.parse(ri(a))}catch(e){o=[]}}return Array.isArray(o)||(o=[]),o.map(t=>t===`$event`?e:t)}function ai(e){if(!e||typeof e!=`object`)return{};if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2){let r=e[n];typeof r==`string`&&r&&(t[r]=e[n+1])}return t}return e}function oi(e,t){var n,r;let i=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotScope`)?t.__wvSlotScope:e==null||(n=e.properties)==null?void 0:n.__wvSlotScope,a=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotProps`)?t.__wvSlotProps:e==null||(r=e.properties)==null?void 0:r.__wvSlotProps,o=ai(i),s=ai(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({__wvSlotPropsData:c})}function si(e){let t={properties:{__wvOwnerId:{type:String,value:``},__wvSlotProps:{type:null,value:null,observer(e){oi(this,{__wvSlotProps:e})}},__wvSlotScope:{type:null,value:null,observer(e){oi(this,{__wvSlotScope:e})}}},data:()=>({__wvOwner:{},__wvSlotPropsData:{}}),lifetimes:{attached(){var e,t;let n=(e=(t=this.properties)==null?void 0:t.__wvOwnerId)==null?``:e;if(oi(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({__wvOwner:e||{}})};this.__wvOwnerUnsub=Xn(n,r);let i=Qn(n);i&&r(i,Zn(n))},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerProxy=void 0}},methods:{__weapp_vite_owner(e){var t,n,r,i,a;let o=this.__wvOwnerProxy,s=Wn(o,void 0,e,(t=this.__wevu)==null||(t=t.methods)==null?void 0:t.__weapp_vite_inline_map);if(s!==void 0)return s;if(!o)return;let c=zn((n=(r=e==null||(i=e.currentTarget)==null?void 0:i.dataset)==null?e==null||(a=e.target)==null?void 0:a.dataset:r)==null?{}:n,`wvHandler`,e);if(typeof c!=`string`||!c)return;let l=o==null?void 0:o[c];if(typeof l!=`function`)return;let u=ii(e);return l.apply(o,u)}}};return e!=null&&e.computed&&Object.keys(e.computed).length>0&&(t.computed=e.computed),e!=null&&e.inlineMap&&Object.keys(e.inlineMap).length>0&&(t.methods={...t.methods,__weapp_vite_inline_map:e.inlineMap}),t}function ci(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function li(e){return typeof e!=`object`||!e||Y(e)||J(e)||Array.isArray(e)?!0:ci(e)}function ui(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t.__wevuPropKeys)?t.__wevuPropKeys:[]),o=(r=e==null?void 0:e.methods)==null?Object.create(null):r,s=(i=e==null?void 0:e.state)==null?Object.create(null):i,c=J(s)?G(s):s,l=!1;if(e&&!e.methods)try{e.methods=o}catch(e){}if(e&&!e.state)try{e.state=s}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`)o[r]=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)},l=!0;else{if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let n=c.__wevuProps;if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!li(i))try{Object.defineProperty(c,r,{value:i,configurable:!0,enumerable:!1,writable:!0})}catch(e){s[r]=i}else s[r]=i}}),e){var u,d;if(e.methods=(u=e.methods)==null?o:u,e.state=(d=e.state)==null?s:d,l){var f;(f=e.__wevu_touchSetupMethodsVersion)==null||f.call(e)}}}let di;function fi(){let e=Ut();if(!e)return;let t=e;!t.__weapp_vite_createScopedSlotComponent&&di&&(t.__weapp_vite_createScopedSlotComponent=di)}function pi(e){fi();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Bt(e),u=ti({data:n,computed:r,methods:i,setData:a,[jt]:`component`}),d=(e,t)=>{let n=_r(s,e,t);return n&&t&&ui(t.runtime,t.instance,n),n},f=ni(l,c),p={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:f};return $r(u,i==null?{}:i,o,d,f),{__wevu_runtime:u,__wevu_options:p}}function mi(e){fi();let{properties:t,props:n,...r}=e;pi(ni(r,n,t))}function hi(e){mi(si(e))}di=hi,fi();const gi=Symbol(`wevu.provideScope`),_i=new Map;function vi(e,t){let n=Kt();if(n){let r=n[gi];r||(r=new Map,n[gi]=r),r.set(e,t)}else _i.set(e,t)}function yi(e,t){let n=Kt();if(n){let t=n;for(;t;){let n=t[gi];if(n&&n.has(e))return n.get(e);t=null}}if(_i.has(e))return _i.get(e);if(arguments.length>=2)return t;throw Error(`wevu.inject:未找到对应 key 的值`)}function bi(e,t){_i.set(e,t)}function xi(e,t){if(_i.has(e))return _i.get(e);if(arguments.length>=2)return t;throw Error(`injectGlobal():未找到对应 key 的 provider:${String(e)}`)}const Si=/\B([A-Z])/g;function Ci(e){return e?e.startsWith(`--`)?e:e.replace(Si,`-$1`).toLowerCase():``}function wi(e,t){if(!t)return e;if(!e)return t;let n=e;n.endsWith(`;`)||(n+=`;`);let r=t.startsWith(`;`)?t.slice(1):t;return n+r}function Ti(e){let t=``;for(let n of Object.keys(e)){let r=je(e[n]);if(r==null)continue;let i=Ci(n);if(Array.isArray(r))for(let e of r){let n=je(e);n!=null&&(t=wi(t,`${i}:${n}`))}else t=wi(t,`${i}:${r}`)}return t}function Ei(e){let t=je(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=Ei(n);t&&(e=wi(e,t))}return e}return typeof t==`object`?Ti(t):``}function Di(e){let t=je(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=Di(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))je(t[e])&&(n+=`${e} `);return n.trim()}return n}const Oi=Object.freeze(Object.create(null));function ki(){var e;let t=Jt();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function Ai(){var e;let t=Jt();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?Oi:e}function ji(){let e=Jt();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}function Mi(e){let t=e.__wevuTemplateRefMap;if(t)return t;let n=new Map;try{Object.defineProperty(e,`__wevuTemplateRefMap`,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuTemplateRefMap=n}return n}function Ni(e){let t=Kt();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=Mi(t),i=r.get(n);if(i)return i;let a=Le(null);return r.set(n,a),a}const Pi=Object.freeze(Object.create(null));function Fi(e,t){let n=t===`modelValue`?`modelModifiers`:`${t}Modifiers`,r=e==null?void 0:e[n];return!r||typeof r!=`object`?Pi:r}function Ii(e,t){let n=e;try{Object.defineProperty(n,Symbol.iterator,{configurable:!0,value:()=>{let e=0;return{next:()=>e===0?(e+=1,{value:n,done:!1}):e===1?(e+=1,{value:t(),done:!1}):{value:void 0,done:!0}}}})}catch(e){}return n}function Li(e,t,n={}){let r=Jt();if(!r)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let i=r.emit,a=`update:${t}`,o=()=>Fi(e,t);return Ii(Pe({get:()=>{let r=e==null?void 0:e[t];return n.get?n.get(r,o()):r},set:e=>{let t=n.set?n.set(e,o()):e;i==null||i(a,t)}}),o)}function Ri(e){let t=Kt();if(!(t!=null&&t.__wevu)||typeof t.__wevu.bindModel!=`function`)throw Error(`useBindModel() 必须在 setup() 的同步阶段调用`);let n=t.__wevu.bindModel.bind(t.__wevu),r=((t,r)=>e?n(t,{...e,...r}):n(t,r));return r.model=(e,t)=>r(e).model(t),r.value=(t,n)=>{var i;let a={...e,...n},o=(i=a==null?void 0:a.valueProp)==null?`value`:i;return r.model(t,n)[o]},r.on=(t,n)=>{var i;let a={...e,...n},o=`on${wt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function zi(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?Array.from(new Set([...e,...t])):typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function Bi(e,t,n,r){return function(...i){let a=[],o=[],s=e=>a.push(e),c=e=>o.push(e);r.forEach(n=>{try{n({name:t,store:e,args:i,after:s,onError:c})}catch(e){}});let l;try{l=n.apply(e,i)}catch(e){throw o.forEach(t=>t(e)),e}let u=e=>(a.forEach(t=>t(e)),e);return l&&typeof l.then==`function`?l.then(e=>u(e),e=>(o.forEach(t=>t(e)),Promise.reject(e))):u(l)}}function Vi(e){return typeof e==`object`&&!!e}function Hi(e){if(!Vi(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Ui(e,t){for(let n in t)e[n]=t[n]}function Wi(e){if(Array.isArray(e))return e.map(e=>Wi(e));if(Hi(e)){let t={};for(let n in e)t[n]=Wi(e[n]);return t}return e}function Gi(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.length=0,t.forEach((t,n)=>{e[n]=Wi(t)});return}if(Vi(t)){for(let n in e)n in t||delete e[n];for(let n in t){let r=t[n],i=e[n];if(Array.isArray(r)&&Array.isArray(i)){Gi(i,r);continue}if(Hi(r)&&Hi(i)){Gi(i,r);continue}e[n]=Wi(r)}}}function Ki(e,t,n,r){let i={$id:e};Object.defineProperty(i,`$state`,{get(){return t},set(e){t&&Vi(e)&&(Ui(t,e),n(`patch object`))}}),i.$patch=e=>{if(!t){typeof e==`function`?(e(i),n(`patch function`)):(Ui(i,e),n(`patch object`));return}typeof e==`function`?(e(t),n(`patch function`)):(Ui(t,e),n(`patch object`))},r&&(i.$reset=()=>r());let a=new Set;i.$subscribe=(e,t)=>(a.add(e),()=>a.delete(e));let o=new Set;return i.$onAction=e=>(o.add(e),()=>o.delete(e)),{api:i,subs:a,actionSubs:o}}function qi(){let e={_stores:new Map,_plugins:[],install(e){},use(t){return typeof t==`function`&&e._plugins.push(t),e}};return qi._instance=e,e}const Ji=Object.prototype.hasOwnProperty;function Yi(e){return Y(e)&&Ji.call(e,`dep`)}function Xi(e){return J(e)?Wi(G(e)):Yi(e)?Wi(e.value):Wi(e)}function Zi(e,t,n){let r=!1;return i=>{if(!r){r=!0;try{let r=n();t.forEach(t=>{try{t({type:i,storeId:e},r)}catch(e){}})}finally{r=!1}}}}function Qi(e,t){let n,r=!1,i=qi._instance;return function(){var a,o,s;if(r&&n)return n;if(r=!0,typeof t==`function`){var c;let r=t(),a=()=>{},o=new Map;Object.keys(r).forEach(e=>{let t=r[e];typeof t==`function`||e.startsWith(`$`)||Y(t)&&!Yi(t)||o.set(e,Xi(t))});let s=Ki(e,void 0,e=>a(e),()=>{o.forEach((e,t)=>{let r=n[t];if(Yi(r)){r.value=Wi(e);return}if(J(r)){Gi(r,e);return}Y(r)||(n[t]=Wi(e))}),a(`patch object`)}),l=!1,u=s.api.$patch;if(s.api.$patch=e=>{l=!0;try{u(e)}finally{l=!1}},typeof s.api.$reset==`function`){let e=s.api.$reset;s.api.$reset=()=>{l=!0;try{e()}finally{l=!1}}}a=Zi(e,s.subs,()=>n),n=Object.assign({},r);for(let e of Object.getOwnPropertyNames(s.api)){let t=Object.getOwnPropertyDescriptor(s.api,e);t&&(e===`$state`?Object.defineProperty(n,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return s.api.$state},set(e){l=!0;try{s.api.$state=e}finally{l=!1}}}):Object.defineProperty(n,e,t))}let d=[];Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`&&!e.startsWith(`$`)){n[e]=Bi(n,e,t,s.actionSubs);return}if(Yi(t)){d.push(t);return}if(J(t)){d.push(t);return}if(!Y(t)&&!e.startsWith(`$`)){let r=t;Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get(){return r},set(e){r=e,l||a(`direct`)}})}});let f=!1;if(d.length>0){let e=!1;k(()=>{if(d.forEach(e=>{Yi(e)?e.value:K(e)}),!e){e=!0;return}if(!l&&!f){f=!0;try{a(`direct`)}finally{f=!1}}})}let p=(c=i==null?void 0:i._plugins)==null?[]:c;for(let e of p)try{e({store:n})}catch(e){}return n}let l=t,u=l.state?l.state():{},d=Ce(u),f=Wi(G(u)),p=()=>{},m=Ki(e,d,e=>p(e),()=>{Gi(d,f),p(`patch object`)}),h=!1,g=m.api.$patch;if(m.api.$patch=e=>{h=!0;try{g(e)}finally{h=!1}},typeof m.api.$reset==`function`){let e=m.api.$reset;m.api.$reset=()=>{h=!0;try{e()}finally{h=!1}}}p=Zi(e,m.subs,()=>d);let _={};for(let e of Object.getOwnPropertyNames(m.api)){let t=Object.getOwnPropertyDescriptor(m.api,e);t&&(e===`$state`?Object.defineProperty(_,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return m.api.$state},set(e){h=!0;try{m.api.$state=e}finally{h=!1}}}):Object.defineProperty(_,e,t))}let v=(a=l.getters)==null?{}:a,y={};Object.keys(v).forEach(e=>{let t=v[e];if(typeof t==`function`){let n=Fe(()=>t.call(_,d));y[e]=n,Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return n.value}})}});let b=(o=l.actions)==null?{}:o;Object.keys(b).forEach(e=>{let t=b[e];typeof t==`function`&&(_[e]=Bi(_,e,(...e)=>t.apply(_,e),m.actionSubs))}),Object.keys(d).forEach(e=>{Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return d[e]},set(t){d[e]=t}})});let x=!1,S=!1;k(()=>{if(K(d),!x){x=!0;return}if(!h&&!S){S=!0;try{p(`direct`)}finally{S=!1}}}),n=_;let C=(s=i==null?void 0:i._plugins)==null?[]:s;for(let e of C)try{e({store:n})}catch(e){}return n}}function $i(e){let t={};for(let n in e){let r=e[n];if(typeof r==`function`){t[n]=r;continue}Y(r)?t[n]=r:t[n]=Fe({get:()=>e[n],set:t=>{e[n]=t}})}return t}export{te as addMutationRecorder,y as batch,$ as callHookList,$t as callHookReturn,Pn as callUpdateHooks,Fe as computed,ti as createApp,qi as createStore,mi as createWevuComponent,hi as createWevuScopedSlotComponent,Pe as customRef,pi as defineComponent,Qi as defineStore,k as effect,w as effectScope,v as endBatch,Kt as getCurrentInstance,T as getCurrentScope,Jt as getCurrentSetupContext,Ge as getDeepWatchStrategy,xe as getReactiveVersion,yi as inject,xi as injectGlobal,nt as isNoSetData,Ee as isRaw,J as isReactive,Y as isRef,be as isShallowReactive,Re as isShallowRef,X as markNoSetData,Te as markRaw,zi as mergeModels,zr as mountRuntimeInstance,o as nextTick,Di as normalizeClass,Ei as normalizeStyle,jn as onActivated,Cn as onAddToFavorites,_n as onAttached,On as onBeforeMount,En as onBeforeUnmount,kn as onBeforeUpdate,Mn as onDeactivated,vn as onDetached,yn as onError,An as onErrorCaptured,sn as onHide,en as onLaunch,on as onLoad,wn as onMounted,gn as onMoved,tn as onPageNotFound,fn as onPageScroll,un as onPullDownRefresh,dn as onReachBottom,ln as onReady,hn as onResize,pn as onRouteDone,bn as onSaveExitState,E as onScopeDispose,Nn as onServerPrefetch,xn as onShareAppMessage,Sn as onShareTimeline,an as onShow,mn as onTabItemTap,rn as onThemeChange,nn as onUnhandledRejection,cn as onUnload,Dn as onUnmounted,Tn as onUpdated,ge as prelinkReactiveTree,vi as provide,bi as provideGlobal,Ce as reactive,Ie as readonly,Ae as ref,Hr as registerApp,$r as registerComponent,F as removeMutationRecorder,Rt as resetWevuDefaults,_r as runSetupFunction,qt as setCurrentInstance,Yt as setCurrentSetupContext,We as setDeepWatchStrategy,Lt as setWevuDefaults,ye as shallowReactive,Le as shallowRef,g as startBatch,x as stop,$i as storeToRefs,Vr as teardownRuntimeInstance,G as toRaw,Be as toRef,Ve as toRefs,Me as toValue,K as touchReactive,He as traverse,ze as triggerRef,je as unref,ki as useAttrs,Ri as useBindModel,Li as useModel,ji as useNativeInstance,Ai as useSlots,Ni as useTemplateRef,Ke as watch,qe as watchEffect};
|
|
1
|
+
const e=Promise.resolve(),t=new Set;let n=!1,r=!1;function i(){r=!1,n=!0;try{t.forEach(e=>e())}finally{t.clear(),n=!1}}function a(a){t.add(a),!n&&!r&&(r=!0,e.then(i))}function o(t){return t?e.then(t):e}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l(e){var t=c(e,`string`);return s(t)==`symbol`?t:t+``}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=new WeakMap;let f=null;const p=[];let m=0;const h=new Set;function g(){m++}function _(){for(;h.size;){let e=Array.from(h);h.clear();for(let t of e)t()}}function v(){m!==0&&(m--,m===0&&_())}function y(e){g();try{return e()}finally{v()}}function b(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function x(e){var t;e.active&&(e.active=!1,b(e),(t=e.onStop)==null||t.call(e))}let S;var C=class{constructor(e=!1){if(this.detached=e,u(this,`active`,!0),u(this,`effects`,[]),u(this,`cleanups`,[]),u(this,`parent`,void 0),u(this,`scopes`,void 0),!e&&S){var t;this.parent=S,((t=S).scopes||(t.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=S;S=this;try{return e()}finally{S=t}}stop(){var e;if(this.active){this.active=!1;for(let e of this.effects)x(e);this.effects.length=0;for(let e of this.cleanups)e();if(this.cleanups.length=0,this.scopes){for(let e of this.scopes)e.stop();this.scopes.length=0}if((e=this.parent)!=null&&e.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0}}};function w(e=!1){return new C(e)}function T(){return S}function E(e){S!=null&&S.active&&S.cleanups.push(e)}function D(e){S!=null&&S.active&&S.effects.push(e)}function O(e,t={}){let n=function(){if(!n.active||n._running)return e();b(n);try{return n._running=!0,p.push(n),f=n,e()}finally{var t;p.pop(),f=(t=p[p.length-1])==null?null:t,n._running=!1}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n}function k(e,t={}){let n=O(e,t);return D(n),t.lazy||n(),n}function A(e,t){if(!f)return;let n=d.get(e);n||(n=new Map,d.set(e,n));let r=n.get(t);r||(r=new Set,n.set(t,r)),r.has(f)||(r.add(f),f.deps.push(r))}function j(e){if(e.scheduler){e.scheduler();return}if(m>0){h.add(e);return}e()}function M(e,t){let n=d.get(e);if(!n)return;let r=n.get(t);if(!r)return;let i=new Set;r.forEach(e=>{e!==f&&i.add(e)}),i.forEach(j)}function ee(e){f&&(e.has(f)||(e.add(f),f.deps.push(e)))}function N(e){new Set(e).forEach(j)}const P=new Set;function te(e){P.add(e)}function F(e){P.delete(e)}const I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakMap,B=new WeakSet,V=new WeakMap,ne=new WeakMap;function re(e){let t=ne.get(e);return t||(t=new Set,ne.set(e,t)),t}function ie(e,t){re(e).add(t)}function H(e){var t;L.set(e,((t=L.get(e))==null?0:t)+1)}function ae(e){var t;return(t=L.get(e))==null?0:t}function oe(e){let t=new Set,n=[e];for(let e=0;e<2e3&&n.length;e++){let e=n.pop(),r=z.get(e);if(r)for(let e of r.keys())t.has(e)||(t.add(e),H(e),n.push(e))}}function se(e){let t=z.get(e);if(!t){B.delete(e),R.delete(e);return}let n,r,i=0;for(let[e,a]of t){for(let t of a){if(i+=1,i>1)break;n=e,r=t}if(i>1)break}if(i===1&&n&&r){B.delete(e),R.set(e,{parent:n,key:r});return}B.add(e),R.delete(e)}function ce(e,t,n){if(typeof n!=`string`){B.add(e),R.delete(e);return}if(P.size){var r;let n=(r=I.get(t))==null?t:r;ie(n,t),ie(n,e)}let i=z.get(e);i||(i=new Map,z.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add(n),se(e)}function le(e,t,n){let r=z.get(e);if(!r)return;let i=r.get(t);i&&(i.delete(n),i.size||r.delete(t),r.size||z.delete(e),se(e))}function ue(e,t){if(t===e)return[];if(B.has(t))return;let n=[],r=t;for(let t=0;t<2e3;t++){if(r===e)return n.reverse();if(B.has(r))return;let t=R.get(r);if(!t||typeof t.key!=`string`)return;n.push(t.key),r=t.parent}}let U=function(e){return e.IS_REACTIVE=`__r_isReactive`,e.RAW=`__r_raw`,e.SKIP=`__r_skip`,e}({});function W(e){return typeof e==`object`&&!!e}const de=Symbol(`wevu.version`);function fe(e){if(!e)return!1;let t=e.charCodeAt(0);if(t<48||t>57)return!1;let n=Number(e);return Number.isInteger(n)&&n>=0&&String(n)===e}function G(e){var t;return(t=e==null?void 0:e[U.RAW])==null?e:t}const pe=new WeakMap,me=new WeakMap,he=new WeakMap;function ge(e,t){let n=G(e);V.set(n,``),ie(n,n);let r=t==null?void 0:t.shouldIncludeTopKey,i=typeof(t==null?void 0:t.maxDepth)==`number`?Math.max(0,Math.floor(t.maxDepth)):1/0,a=typeof(t==null?void 0:t.maxKeys)==`number`?Math.max(0,Math.floor(t.maxKeys)):1/0,o=new WeakSet,s=[{current:n,path:``,depth:0}],c=0;for(;s.length;){let e=s.pop();if(o.has(e.current)||(o.add(e.current),V.set(e.current,e.path),ie(n,e.current),c+=1,c>=a)||e.depth>=i||Array.isArray(e.current))continue;let t=Object.entries(e.current);for(let[i,a]of t){if(e.path===``&&r&&!r(i)||!W(a)||a[U.SKIP])continue;let t=G(a);if(I.has(t)||I.set(t,n),ce(t,e.current,i),!B.has(t)){let n=e.path?`${e.path}.${i}`:i;V.set(t,n)}ie(n,t),s.push({current:t,path:e.path?`${e.path}.${i}`:i,depth:e.depth+1})}}}function _e(e){let t=G(e),n=ne.get(t);if(!n){V.delete(t);return}for(let e of n)R.delete(e),z.delete(e),V.delete(e),B.delete(e),I.delete(e),L.delete(e);ne.delete(t)}function K(e){A(G(e),de)}const ve={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);return A(e,t),r},set(e,t,n,r){let i=Reflect.get(e,t,r),a=Reflect.set(e,t,n,r);return Object.is(i,n)||(M(e,t),M(e,de),H(e)),a},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return n&&r&&(M(e,t),M(e,de),H(e)),r},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function ye(e){if(!W(e))return e;let t=he.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,ve);return he.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),n}function be(e){let t=G(e);return he.has(t)}function xe(e){return ae(G(e))}function q(e,t,n){var r;if(!P.size||typeof t!=`string`||t.startsWith(`__r_`))return;let i=(r=I.get(e))==null?e:r,a=Array.isArray(e)&&(t===`length`||fe(t))?`array`:`property`,o=ue(i,e);if(!o){let r=new Set,o=z.get(e);if(o)for(let[e,t]of o){var s;let n=V.get(e),a=n?n.split(`.`,1)[0]:void 0,o=a||(s=ue(i,e))==null?void 0:s[0];for(let e of t){var c;typeof e==`string`&&r.add((c=a==null?o:a)==null?e:c)}}else r.add(t);for(let e of P)e({root:i,kind:a,op:n,path:void 0,fallbackTopKeys:r.size?Array.from(r):void 0});return}let l=o.findIndex(e=>fe(e));if(l!==-1){let e=o.slice(0,l).join(`.`)||void 0;for(let t of P)t({root:i,kind:`array`,op:n,path:e});return}let u=o.length?o.join(`.`):``,d=a===`array`?u||void 0:u?`${u}.${t}`:t;for(let e of P)e({root:i,kind:a,op:n,path:d})}const Se={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);if(A(e,t),W(r)){var i,a;if(r[U.SKIP])return r;let n=(i=I.get(e))==null?e:i,o=(a=r==null?void 0:r[U.RAW])==null?r:a;I.has(o)||I.set(o,n),ce(o,e,t);let s=V.get(e);if(P.size&&typeof t==`string`&&s!=null&&!B.has(o)){let e=s?`${s}.${t}`:t;V.set(o,e)}return Ce(r)}return r},set(e,t,n,r){let i=Array.isArray(e),a=i?e.length:0,o=Reflect.get(e,t,r),s=Reflect.set(e,t,n,r);if(!Object.is(o,n)){var c;let r=W(o)?(c=o==null?void 0:o[U.RAW])==null?o:c:void 0;if(r&&le(r,e,t),W(n)&&!n[U.SKIP]){var l,u;let r=(l=I.get(e))==null?e:l,i=(u=n==null?void 0:n[U.RAW])==null?n:u;I.has(i)||I.set(i,r),ce(i,e,t);let a=V.get(e);if(P.size&&typeof t==`string`&&a!=null&&!B.has(i)){let e=a?`${a}.${t}`:t;V.set(i,e)}}M(e,t),i&&typeof t==`string`&&fe(t)&&Number(t)>=a&&M(e,`length`),M(e,de),H(e),oe(e);let s=I.get(e);s&&s!==e&&(M(s,de),H(s)),q(e,t,`set`)}return s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=n?e[t]:void 0,i=Reflect.deleteProperty(e,t);if(n&&i){var a;let n=W(r)?(a=r==null?void 0:r[U.RAW])==null?r:a:void 0;n&&le(n,e,t),M(e,t),M(e,de),H(e),oe(e);let i=I.get(e);i&&i!==e&&(M(i,de),H(i)),q(e,t,`delete`)}return i},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function Ce(e){if(!W(e))return e;let t=pe.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,Se);return pe.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),I.has(e)||I.set(e,e),n}function J(e){return!!(e&&e[U.IS_REACTIVE])}function we(e){return W(e)?Ce(e):e}function Te(e){return W(e)&&Object.defineProperty(e,U.SKIP,{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function Ee(e){return W(e)&&U.SKIP in e}const De=`__v_isRef`;function Oe(e){try{Object.defineProperty(e,De,{value:!0,configurable:!0})}catch(t){e[De]=!0}return e}function Y(e){return!!(e&&typeof e==`object`&&e[De]===!0)}var ke=class{constructor(e){u(this,`_value`,void 0),u(this,`_rawValue`,void 0),u(this,`dep`,void 0),Oe(this),this._rawValue=e,this._value=we(e)}get value(){return this.dep||(this.dep=new Set),ee(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=we(e),this.dep&&N(this.dep))}};function Ae(e){return Y(e)?e:Te(new ke(e))}function je(e){return Y(e)?e.value:e}function Me(e){return typeof e==`function`?e():je(e)}var Ne=class{constructor(e,t){u(this,`_getValue`,void 0),u(this,`_setValue`,void 0),u(this,`dep`,void 0),Oe(this);let n=t,r=()=>{this.dep||(this.dep=new Set),ee(this.dep)},i=()=>{this.dep&&N(this.dep)},a=e=>e===void 0&&n!==void 0?n:e;if(typeof e==`function`){let t=e(r,i);this._getValue=()=>a(t.get()),this._setValue=e=>t.set(e);return}let o=e;this._getValue=()=>(r(),a(o.get())),this._setValue=e=>{o.set(e),i()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function Pe(e,t){return Te(new Ne(e,t))}function Fe(e){let t,n;typeof e==`function`?(t=e,n=()=>{throw Error(`计算属性是只读的`)}):(t=e.get,n=e.set);let r,i=!0,a,o={get value(){return i&&(r=a(),i=!1),A(o,`value`),r},set value(e){n(e)}};return Oe(o),a=k(t,{lazy:!0,scheduler:()=>{i||(i=!0,M(o,`value`))}}),o}function Ie(e){if(Y(e)){let t=e;return Oe({get value(){return t.value},set value(e){throw Error(`无法给只读 ref 赋值`)}})}return W(e)?new Proxy(e,{set(){throw Error(`无法在只读对象上设置属性`)},deleteProperty(){throw Error(`无法在只读对象上删除属性`)},defineProperty(){throw Error(`无法在只读对象上定义属性`)},get(e,t,n){return Reflect.get(e,t,n)}}):e}function Le(e,t){return Pe((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function Re(e){return Y(e)&&typeof e.value!=`function`}function ze(e){if(Y(e)){let t=e.dep;if(t){N(t);return}e.value=e.value}}function Be(e,t,n){let r=e[t];return Y(r)?r:Pe((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function Ve(e){J(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=Be(e,n);return t}function He(e,t=1/0,n=new Map){if(t<=0||!W(e))return e;if(Y(e))return He(e.value,t-1,n),e;if(e[U.SKIP])return e;let r=n.get(e);if(r!==void 0&&r>=t)return e;n.set(e,t);let i=t-1;if(Array.isArray(e)||e instanceof Map||e instanceof Set)return e.forEach(e=>He(e,i,n)),e;let a=J(e)&&t!==1/0?G(e):e;for(let t in a)He(e[t],i,n);return e}let Ue=`version`;function We(e){Ue=e}function Ge(){return Ue}function Ke(e,t,n={}){var r,i;let s,c=J(e),l=Array.isArray(e)&&!c,u=e=>{if(typeof e==`function`)return e();if(Y(e))return e.value;if(J(e))return e;throw Error(`无效的 watch 源`)};if(l){let t=e;s=()=>t.map(e=>u(e))}else if(typeof e==`function`)s=e;else if(Y(e))s=()=>e.value;else if(c)s=()=>e;else throw Error(`无效的 watch 源`);let d=l?e.some(e=>J(e)):c,f=(r=n.deep)==null?d:r,p=f===!0||typeof f==`number`,m=typeof f==`number`?f:f?1/0:0;if(p){let e=s;s=()=>{let t=e();return l&&Array.isArray(t)?t.map(e=>Ue===`version`&&J(e)?(K(e),e):He(e,m)):Ue===`version`&&J(t)?(K(t),t):He(t,m)}}let h,g=e=>{h=e},_,v,y=!1,b=0,S,C=n.once?(e,n,r)=>{t(e,n,r),S()}:t,w=(i=n.flush)==null?`pre`:i,T=b,D=e=>{if(!v.active||y||e!==b)return;let t=v();h==null||h(),C(t,_,g),_=t},O=()=>D(T),A=(e,t)=>{if(T=b,n.scheduler){let r=T;n.scheduler(()=>e(r),t);return}if(w===`sync`){O();return}if(w===`post`){o(()=>a(O));return}t?O():a(O)};v=k(()=>s(),{scheduler:()=>{y||A(D,!1)},lazy:!0});let j=()=>{h==null||h(),h=void 0,x(v)};return S=j,S.stop=j,S.pause=()=>{y||(y=!0,b+=1)},S.resume=()=>{!y||!v.active||(y=!1,_=v())},n.immediate?D(b):_=v(),E(S),S}function qe(e,t={}){var n;let r,i=e=>{r=e},s,c=!1,l=0,u=(n=t.flush)==null?`pre`:n,d=l,f=e=>{!s.active||c||e!==l||s()},p=()=>f(d),m=e=>{if(d=l,u===`sync`){p();return}if(u===`post`){o(()=>a(p));return}e?p():a(p)};s=k(()=>{r==null||r(),r=void 0,e(i)},{lazy:!0,scheduler:()=>{c||m(!1)}}),m(!0);let h=()=>{r==null||r(),r=void 0,x(s)},g=h;return g.stop=h,g.pause=()=>{c||(c=!0,l+=1)},g.resume=()=>{!c||!s.active||(c=!1,m(!0))},E(g),g}function Je(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Ye(e){if(e==null)return e;if(typeof e==`object`){if(`detail`in e&&e.detail&&`value`in e.detail)return e.detail.value;if(`target`in e&&e.target&&`value`in e.target)return e.target.value}return e}const Xe=`__wevu_native_bridge__`;function Ze(e){try{Object.defineProperty(e,Xe,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Xe]=!0}}function Qe(e){return typeof e==`function`&&!!e[Xe]}function $e(e){let t=Object.create(null),n=Object.create(null),r=new Set;return{computedRefs:t,computedSetters:n,dirtyComputedKeys:r,createTrackedComputed:(t,n,i)=>{let a,o=!0,s,c={get value(){return o&&(a=s(),o=!1),A(c,`value`),a},set value(e){if(!i)throw Error(`计算属性是只读的`);i(e)}};return Oe(c),s=k(n,{lazy:!0,scheduler:()=>{o||(o=!0,e.setDataStrategy===`patch`&&e.includeComputed&&r.add(t),M(c,`value`))}}),c},computedProxy:new Proxy({},{get(e,n){if(typeof n==`string`&&t[n])return t[n].value},has(e,n){return typeof n==`string`&&!!t[n]},ownKeys(){return Object.keys(t)},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&t[n])return{configurable:!0,enumerable:!0,value:t[n].value}}})}}function et(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:d,computedProxy:f}=$e({includeComputed:a,setDataStrategy:o}),p=Ae(0),m=(e,t)=>{let n=G(e),r=n.__wevuRuntime,i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Qe(n)},o=n=>!(!n||typeof n!=`object`||n===e||n===t||n===i||a(n,`triggerEvent`)||a(n,`createSelectorQuery`)||a(n,`setData`)),s=n.__wevuNativeInstance;if(o(s))return s;let c=r==null?void 0:r.instance;if(o(c))return c},h=e=>{if(Object.prototype.hasOwnProperty.call(s,e))return;let n=(...n)=>{let r=m(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};Ze(n),s[e]=n},g=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(p.value,n===`data`||n===`$state`)return t;if(n===`$computed`)return f;if(Object.prototype.hasOwnProperty.call(s,n))return s[n];if(c[n])return c[n].value;if(Object.prototype.hasOwnProperty.call(i.globalProperties,n))return i.globalProperties[n]}if(!Reflect.has(e,n)){let t=m(e,r);if(t&&Reflect.has(t,n)){let e=Reflect.get(t,n);return typeof e==`function`?e.bind(t):e}}return Reflect.get(e,n,r)},set(e,t,n,r){if(typeof t==`string`&&c[t])return Je(l,t,n),!0;if(Reflect.has(e,t))return Reflect.set(e,t,n,r);let i=m(e,r);return i&&Reflect.has(i,t)?Reflect.set(i,t,n):Reflect.set(e,t,n,r)},has(e,t){if(t===`data`||typeof t==`string`&&(c[t]||Object.prototype.hasOwnProperty.call(s,t)))return!0;let n=m(e,e);return n&&Reflect.has(n,t)?!0:Reflect.has(e,t)},ownKeys(e){let t=new Set;return Reflect.ownKeys(e).forEach(e=>{t.add(e)}),Object.keys(s).forEach(e=>t.add(e)),Object.keys(c).forEach(e=>t.add(e)),Array.from(t)},getOwnPropertyDescriptor(e,n){if(Reflect.has(e,n))return Object.getOwnPropertyDescriptor(e,n);if(typeof n==`string`){if(n===`data`)return{configurable:!0,enumerable:!1,get(){return t}};if(c[n])return{configurable:!0,enumerable:!0,get(){return c[n].value},set(e){Je(l,n,e)}};if(Object.prototype.hasOwnProperty.call(s,n))return{configurable:!0,enumerable:!1,value:s[n]}}}});return Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`){s[e]=(...e)=>t.apply(g,e);return}e===`__weapp_vite_inline_map`&&t&&typeof t==`object`&&(s[e]=t)}),h(`triggerEvent`),h(`createSelectorQuery`),h(`setData`),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=d(e,()=>t.call(g));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(g);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(g);a?(l[e]=a,c[e]=d(e,n,a)):c[e]=d(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:f,publicInstance:g,touchSetupMethodsVersion(){p.value+=1}}}const tt=Symbol(`wevu.noSetData`);function X(e){return Object.defineProperty(e,tt,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function nt(e){return typeof e==`object`&&!!e&&e[tt]===!0}function rt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function it(e,t=new WeakMap,n){var r,i;let a=je(e);if(typeof a==`bigint`){let e=Number(a);return Number.isSafeInteger(e)?e:a.toString()}if(typeof a==`symbol`)return a.toString();if(typeof a==`function`)return;if(typeof a!=`object`||!a)return a;if(nt(a))return;let o=J(a)?G(a):a,s=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,c=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i;if(s<=0||c.keys<=0)return o;let l=n==null?void 0:n.cache;if(l){let e=xe(o),t=l.get(o);if(t&&t.version===e)return t.value}if(t.has(o))return t.get(o);if(o instanceof Date)return o.getTime();if(o instanceof RegExp)return o.toString();if(o instanceof Map){let e=[];return t.set(o,e),o.forEach((n,r)=>{e.push([it(r,t),it(n,t)])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(it(n,t))}),e}if(typeof ArrayBuffer<`u`){if(o instanceof ArrayBuffer)return o.byteLength;if(ArrayBuffer.isView(o)){let e=o;if(typeof e[Symbol.iterator]==`function`){let n=Array.from(e);return t.set(o,n),n.map(e=>it(e,t))}let n=Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return t.set(o,n),n}}if(o instanceof Error)return{name:o.name,message:o.message};if(Array.isArray(o)){let e=[];return t.set(o,e),o.forEach((r,i)=>{let a=it(r,t,{...n,_depth:s-1,_budget:c});e[i]=a===void 0?null:a}),l&&l.set(o,{version:xe(o),value:e}),e}let u={};return t.set(o,u),Object.keys(o).forEach(e=>{if(--c.keys,c.keys<=0)return;let r=it(o[e],t,{...n,_depth:s-1,_budget:c});r!==void 0&&(u[e]=r)}),l&&l.set(o,{version:xe(o),value:u}),u}function at(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function ot(e,t,n){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||!n(e[i],t[i]))return!1;return!0}function st(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?at(e,t,st):rt(e)&&rt(t)?ot(e,t,st):!1}function ct(e){return e===void 0?null:e}function lt(e,t,n,r){if(!st(e,t)){if(rt(e)&&rt(t)){for(let i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i)){r[`${n}.${i}`]=ct(t[i]);continue}lt(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Object.prototype.hasOwnProperty.call(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){at(e,t,st)||(r[n]=ct(t));return}r[n]=ct(t)}}function ut(e,t){let n={};for(let r of Object.keys(t))lt(e[r],t[r],r,n);for(let r of Object.keys(e))Object.prototype.hasOwnProperty.call(t,r)||(n[r]=null);return n}function dt(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n=Object.create(null),r=[];for(let i of t){for(;r.length;){let e=r[r.length-1];if(i.startsWith(e))break;r.pop()}r.length||(n[i]=e[i],r.push(`${i}.`))}return n}function ft(e,t,n){if(t<=0)return t+1;if(e===null)return 4;let r=typeof e;if(r===`string`)return 2+e.length;if(r===`number`)return Number.isFinite(e)?String(e).length:4;if(r===`boolean`)return e?4:5;if(r===`undefined`||r===`function`||r===`symbol`||r!==`object`||n.has(e))return 4;if(n.add(e),Array.isArray(e)){let r=2;for(let i=0;i<e.length;i++)if(i&&(r+=1),r+=ft(e[i],t-r,n),r>t)return r;return r}let i=2;for(let[r,a]of Object.entries(e))if(i>2&&(i+=1),i+=2+r.length+1,i+=ft(a,t-i,n),i>t)return i;return i}function pt(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=ft(e,n+1,new WeakSet);if(i>n)return{fallback:!0,estimatedBytes:i,bytes:void 0};if(i>=n*.85&&r>2)try{let t=JSON.stringify(e).length;return{fallback:t>n,estimatedBytes:i,bytes:t}}catch(e){return{fallback:!1,estimatedBytes:i,bytes:void 0}}return{fallback:!1,estimatedBytes:i,bytes:void 0}}function mt(e){let{input:t,entryMap:n,getPlainByPath:r,mergeSiblingThreshold:i,mergeSiblingSkipArray:a,mergeSiblingMaxParentBytes:o,mergeSiblingMaxInflationRatio:s}=e;if(!i)return{out:t,merged:0};let c=Object.keys(t);if(c.length<i)return{out:t,merged:0};let l=new Map,u=new Set;for(let e of c){var d;let r=n.get(e);if(!r)continue;if(t[e]===null||r.op===`delete`){let t=e.lastIndexOf(`.`);t>0&&u.add(e.slice(0,t));continue}let i=e.lastIndexOf(`.`);if(i<=0)continue;let a=e.slice(0,i),o=(d=l.get(a))==null?[]:d;o.push(e),l.set(a,o)}let f=Array.from(l.entries()).filter(([e,t])=>t.length>=i&&!u.has(e)).sort((e,t)=>t[0].split(`.`).length-e[0].split(`.`).length);if(!f.length)return{out:t,merged:0};let p=Object.create(null);Object.assign(p,t);let m=0,h=new WeakMap,g=e=>{if(e&&typeof e==`object`){let t=h.get(e);if(t!==void 0)return t;let n=ft(e,1/0,new WeakSet);return h.set(e,n),n}return ft(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Object.prototype.hasOwnProperty.call(p,e))continue;let n=t.filter(e=>Object.prototype.hasOwnProperty.call(p,e));if(n.length<i)continue;let c=r(e);if(!(a&&Array.isArray(c))&&!(o!==1/0&&_(e,c)>o)){if(s!==1/0){let t=0;for(let e of n)t+=_(e,p[e]);if(_(e,c)>t*s)continue}p[e]=c;for(let e of n)delete p[e];m+=1}}return{out:p,merged:m}}function ht(e){return e===void 0?null:e}function gt(e){if(Array.isArray(e))return e.map(e=>gt(e));if(!_t(e))return e;let t=Object.create(null);for(let n of Object.keys(e))t[n]=gt(e[n]);return t}function _t(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function vt(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}if(!_t(e)||!_t(t))return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function yt(e,t,n,r){if(Object.is(e,t))return!0;if(n<=0)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!yt(e[i],t[i],n-1,r))return!1;return!0}if(!_t(e)||!_t(t))return!1;let i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let a of i)if(--r.keys,r.keys<=0||!Object.prototype.hasOwnProperty.call(t,a)||!yt(e[a],t[a],n-1,r))return!1;return!0}function bt(e,t,n,r){let i=t.split(`.`).filter(Boolean);if(!i.length)return;let a=e;for(let e=0;e<i.length-1;e++){let t=i[e];(!Object.prototype.hasOwnProperty.call(a,t)||a[t]==null||typeof a[t]!=`object`)&&(a[t]=Object.create(null)),a=a[t]}let o=i[i.length-1];if(r===`delete`)try{delete a[o]}catch(e){a[o]=null}else a[o]=gt(n)}function xt(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l=Object.create(null),u=Number.isFinite(s)?{keys:s}:void 0,d=J(t)?G(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=it(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=it(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function St(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:a,computedCompareMaxDepth:o,computedCompareMaxKeys:s,currentAdapter:c,shouldIncludeKey:l,maxPatchKeys:u,maxPayloadBytes:d,mergeSiblingThreshold:f,mergeSiblingMaxInflationRatio:p,mergeSiblingMaxParentBytes:m,mergeSiblingSkipArray:h,elevateTopKeyThreshold:g,toPlainMaxDepth:_,toPlainMaxKeys:v,plainCache:y,pendingPatches:b,fallbackTopKeys:x,latestSnapshot:S,latestComputedSnapshot:C,needsFullSnapshot:w,emitDebug:T,runDiffUpdate:E}=e;if(b.size>u){w.value=!0;let e=b.size;b.clear(),r.clear(),T({mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}),E(`maxPatchKeys`);return}let D=new WeakMap,O=new Map,k=Object.create(null),A=Array.from(b.entries());if(Number.isFinite(g)&&g>0){let e=new Map;for(let[t]of A){var j;let n=t.split(`.`,1)[0];e.set(n,((j=e.get(n))==null?0:j)+1)}for(let[t,n]of e)n>=g&&x.add(t)}let M=A.filter(([e])=>{for(let t of x)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),ee=new Map(M);b.clear();let N=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},P=e=>{if(O.has(e))return O.get(e);let t=ht(it(N(e),D,{cache:y,maxDepth:_,maxKeys:v}));return O.set(e,t),t};if(x.size){for(let e of x)l(e)&&(k[e]=P(e),ee.set(e,{kind:`property`,op:`set`}));x.clear()}for(let[e,t]of M){if((t.kind===`array`?`set`:t.op)===`delete`){k[e]=null;continue}k[e]=P(e)}let te=0;if(i&&r.size){let e=Object.create(null),t=Array.from(r);r.clear(),te=t.length;for(let r of t){if(!l(r))continue;let t=it(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?yt(i,t,o,{keys:s}):a===`shallow`?vt(i,t):Object.is(i,t))||(e[r]=ht(t),C[r]=gt(t))}Object.assign(k,e)}let F=dt(k),I=0;if(f){let e=mt({input:F,entryMap:ee,getPlainByPath:P,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});I=e.merged,F=dt(e.out)}let L=pt(F,d),R=L.fallback;if(T({mode:R?`diff`:`patch`,reason:R?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length,mergedSiblingParents:I||void 0,computedDirtyKeys:te||void 0,estimatedBytes:L.estimatedBytes,bytes:L.bytes}),R){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(F).length){for(let[e,t]of Object.entries(F)){let n=ee.get(e);n?bt(S,e,t,n.kind===`array`?`set`:n.op):bt(S,e,t,`set`)}if(typeof c.setData==`function`){let e=c.setData(gt(F));e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length})}}function Ct(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,setDataStrategy:a,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,debug:b,debugWhen:x,debugSampleRate:S,runTracker:C,isMounted:w}=e,T=new WeakMap,E={},D=Object.create(null),O={value:a===`patch`},k=new Map,A=new Set,j=e=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=Y(i)?i.value:i;!a||typeof a!=`object`||G(a)===e&&n.push(r)}return n},M=e=>{if(!b)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(x===`fallback`&&!t)&&!(S<1&&Math.random()>S))try{b(e)}catch(e){}},ee=()=>xt({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:T,toPlainMaxDepth:v,toPlainMaxKeys:y}),N=(e=`diff`)=>{let t=ee(),o=ut(E,t);if(E=gt(t),O.value=!1,k.clear(),a===`patch`&&i){D=Object.create(null);for(let e of Object.keys(n))u(e)&&(D[e]=t[e]);r.clear()}if(Object.keys(o).length){if(typeof l.setData==`function`){let e=l.setData(gt(o));e&&typeof e.then==`function`&&e.catch(()=>{})}M({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(o).length})}};return{job:e=>{if(w())if(C(),a===`patch`&&!O.value){if(!(k.size>0||A.size>0||i&&r.size>0)){N(`diff`);return}St({state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,plainCache:T,pendingPatches:k,fallbackTopKeys:A,latestSnapshot:E,latestComputedSnapshot:D,needsFullSnapshot:O,emitDebug:M,runDiffUpdate:N})}else N(O.value?`needsFullSnapshot`:`diff`)},mutationRecorder:(e,t)=>{if(!w())return;if(e.root!==t){let t=j(e.root);if(t.length)for(let e of t)A.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)A.add(t);else O.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&k.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?ee():{...E},getLatestSnapshot:()=>E}}function wt(e){var t,n,r,i,a;let o=(t=e==null?void 0:e.includeComputed)==null?!0:t,s=(n=e==null?void 0:e.strategy)==null?`diff`:n,c=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,l=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,u=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,d=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,f=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,p=(r=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:r,m=(i=e==null?void 0:e.computedCompare)==null?s===`patch`?`deep`:`reference`:i,h=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,g=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,_=e==null?void 0:e.prelinkMaxDepth,v=e==null?void 0:e.prelinkMaxKeys,y=e==null?void 0:e.debug,b=(a=e==null?void 0:e.debugWhen)==null?`fallback`:a,x=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,S=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,C=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,w=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,T=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,E=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:o,setDataStrategy:s,maxPatchKeys:c,maxPayloadBytes:l,mergeSiblingThreshold:u,mergeSiblingMaxInflationRatio:d,mergeSiblingMaxParentBytes:f,mergeSiblingSkipArray:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,prelinkMaxDepth:_,prelinkMaxKeys:v,debug:y,debugWhen:b,debugSampleRate:x,elevateTopKeyThreshold:S,toPlainMaxDepth:C,toPlainMaxKeys:w,pickSet:T,omitSet:E,shouldIncludeKey:e=>!(T&&!T.has(e)||E&&E.has(e))}}function Tt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function Et(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Dt(e,t,n){let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];(r[n]==null||typeof r[n]!=`object`)&&(r[n]={}),r=r[n]}r[t[t.length-1]]=n}function Ot(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Je(n,a,i);else{let t=e[a];Y(t)?t.value=i:e[a]=i}return}if(t[a]){Je(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Dt(e[a],o,i)}function kt(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function At(e){return Ye(e)}function jt(e,t,n,r){return(i,a)=>{let o=Et(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>kt(e,o),c=e=>{Ot(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:At,formatter:e=>e,...a};return{get value(){return s()},set value(e){c(e)},update(e){c(e)},model(e){let t={...l,...e},n=`on${Tt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}const Mt=`__wevuDefaultsScope`;let Nt={};function Pt(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function Ft(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=Pt(e.setData),i=Pt(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=Pt(e.options),o=Pt(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function It(e,t){return Ft(e,t)}function Lt(e,t){return{app:Ft(e.app,t.app),component:Ft(e.component,t.component)}}function Rt(e){Nt=Lt(Nt,e)}function zt(){Nt={}}function Bt(e){return It(Nt.app,e)}function Vt(e){return It(Nt.component,e)}function Ht(){if(!(typeof globalThis>`u`))return globalThis}function Ut(){var e;let t=Ht(),n=(e=import.meta.env)==null?void 0:e.PLATFORM;if(n===`tt`)return t==null?void 0:t.tt;if(n===`alipay`||n===`my`)return t==null?void 0:t.my;if(n===`weapp`||n===`wx`)return t==null?void 0:t.wx;if(t!=null&&t.wx)return t.wx;if(t!=null&&t.my)return t.my;if(t!=null&&t.tt)return t.tt}function Wt(){var e;return(e=Ut())==null?Ht():e}let Gt,Kt;function qt(){return Gt}function Jt(e){Gt=e}function Yt(){return Kt}function Xt(e){Kt=e}function Z(e){if(!Gt)throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return Gt}function Zt(e){return e.__wevuHooks||(e.__wevuHooks=Object.create(null)),e.__wevuHooks}function Q(e,t,n,{single:r=!1}={}){let i=Zt(e);if(r)i[t]=n;else{var a;((a=i[t])==null?i[t]=[]:a).push(n)}}function Qt(e,t){var n,r;let i=(r=(n=e).__wevuShareHookBridges)==null?n.__wevuShareHookBridges=Object.create(null):r;if(typeof i[t]==`function`)return;let a=e[t],o=function(...e){var n;let r=this.__wevuHooks,i=r==null?void 0:r[t],o=this.__wevu,s=(n=o==null?void 0:o.proxy)==null?this:n,c;if(typeof i==`function`)try{c=i.apply(s,e)}catch(e){c=void 0}else if(Array.isArray(i))for(let t of i)try{c=t.apply(s,e)}catch(e){}if(c!==void 0)return c;if(typeof a==`function`)return a.apply(this,e)};i[t]=o,e[t]=o}function $t(e){var t;let n=Ut();if(!n||typeof n.showShareMenu!=`function`)return;let r=(t=e.__wevuHooks)==null?{}:t,i=typeof r.onShareAppMessage==`function`,a=typeof r.onShareTimeline==`function`;if(!i&&!a)return;let o=[`shareAppMessage`];a&&o.push(`shareTimeline`);try{n.showShareMenu({withShareTicket:!0,menus:o})}catch(e){}}function $(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(Array.isArray(a))for(let e of a)try{e.apply(s,n)}catch(e){}else if(typeof a==`function`)try{a.apply(s,n)}catch(e){}}function en(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(typeof a==`function`)try{return a.apply(s,n)}catch(e){return}if(Array.isArray(a)){let e;for(let t of a)try{e=t.apply(s,n)}catch(e){}return e}}function tn(e){Q(Z(`onLaunch`),`onLaunch`,e)}function nn(e){Q(Z(`onPageNotFound`),`onPageNotFound`,e)}function rn(e){Q(Z(`onUnhandledRejection`),`onUnhandledRejection`,e)}function an(e){Q(Z(`onThemeChange`),`onThemeChange`,e)}function on(e){Q(Z(`onShow`),`onShow`,e)}function sn(e){Q(Z(`onLoad`),`onLoad`,e)}function cn(e){Q(Z(`onHide`),`onHide`,e)}function ln(e){Q(Z(`onUnload`),`onUnload`,e)}function un(e){Q(Z(`onReady`),`onReady`,e)}function dn(e){Q(Z(`onPullDownRefresh`),`onPullDownRefresh`,e)}function fn(e){Q(Z(`onReachBottom`),`onReachBottom`,e)}function pn(e){Q(Z(`onPageScroll`),`onPageScroll`,e)}function mn(e){Q(Z(`onRouteDone`),`onRouteDone`,e)}function hn(e){Q(Z(`onTabItemTap`),`onTabItemTap`,e)}function gn(e){Q(Z(`onResize`),`onResize`,e)}function _n(e){Q(Z(`onMoved`),`onMoved`,e)}function vn(e){Q(Z(`onAttached`),`onAttached`,e)}function yn(e){Q(Z(`onDetached`),`onDetached`,e)}function bn(e){Q(Z(`onError`),`onError`,e)}function xn(e){Q(Z(`onSaveExitState`),`onSaveExitState`,e,{single:!0})}function Sn(e){let t=Z(`onShareAppMessage`);Q(t,`onShareAppMessage`,e,{single:!0}),Qt(t,`onShareAppMessage`),$t(t)}function Cn(e){let t=Z(`onShareTimeline`);Q(t,`onShareTimeline`,e,{single:!0}),Qt(t,`onShareTimeline`),$t(t)}function wn(e){let t=Z(`onAddToFavorites`);Q(t,`onAddToFavorites`,e,{single:!0}),Qt(t,`onAddToFavorites`)}function Tn(e){Q(Z(`onMounted`),`onReady`,e)}function En(e){Q(Z(`onUpdated`),`__wevuOnUpdated`,e)}function Dn(e){Z(`onBeforeUnmount`),e()}function On(e){Q(Z(`onUnmounted`),`onUnload`,e)}function kn(e){Z(`onBeforeMount`),e()}function An(e){Q(Z(`onBeforeUpdate`),`__wevuOnBeforeUpdate`,e)}function jn(e){let t=Z(`onErrorCaptured`);Q(t,`onError`,n=>e(n,t,``))}function Mn(e){Q(Z(`onActivated`),`onShow`,e)}function Nn(e){Q(Z(`onDeactivated`),`onHide`,e)}function Pn(e){Z(`onServerPrefetch`)}function Fn(e,t){$(e,t===`before`?`__wevuOnBeforeUpdate`:`__wevuOnUpdated`)}function In(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function Ln(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t}}function Rn(e){return e.trim().replace(/[^a-z0-9]+/gi,`-`).replace(/^-+|-+$/g,``).toLowerCase()}function zn(e,t){let n=Rn(typeof(t==null?void 0:t.type)==`string`?t.type:``);if(!n)return;let r=n.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase());if(r)return`${e}${r[0].toUpperCase()}${r.slice(1)}`}function Bn(e,t,n){let r=zn(t,n);return r&&(e==null?void 0:e[r])!==void 0?e[r]:e==null?void 0:e[t]}function Vn(e,t){let n=Bn(e,`wvEventDetail`,t);return n===!0||n===1||n===`1`||n===`true`}function Hn(e,t){return!Vn(t,e)||!e||typeof e!=`object`||!(`detail`in e)||e.detail===void 0?e:e.detail}function Un(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=Y(e)?e.value:e;for(let e of n){if(Y(r)&&(r=r.value),r==null)return;r=r[e]}return Y(r)?r.value:r}function Wn(e){if(typeof e!=`object`||!e||Y(e)||J(e))return e;try{return Ce(e)}catch(t){return e}}function Gn(e,t,n,r){var i,a,o,s;let c=(i=(a=n==null||(o=n.currentTarget)==null?void 0:o.dataset)==null?n==null||(s=n.target)==null?void 0:s.dataset:a)==null?{}:i,l=Hn(n,c),u=Bn(c,`wvInlineId`,n);if(u&&r){let t=r[u];if(t&&typeof t.fn==`function`){let n={},r=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<r.length;e+=1){let t=r[e];n[t]=c==null?void 0:c[`wvS${e}`]}let i=Array.isArray(t.indexKeys)?t.indexKeys:[];for(let e=0;e<i.length;e+=1){let t=i[e],r=Ln(c==null?void 0:c[`wvI${e}`]);r!==void 0&&(n[t]=r)}let a=Array.isArray(t.scopeResolvers)?t.scopeResolvers:[];for(let t=0;t<r.length;t+=1){let i=r[t],o=a[t];try{let t;if(typeof o==`function`)t=o(e,n,l);else if(o&&typeof o==`object`&&o.type===`for-item`){let r=n[o.indexKey],i=Un(e,o.path);t=i==null?void 0:i[r]}else continue;t!==void 0&&(n[i]=Wn(t))}catch(e){}}let o=t.fn(e,n,l);return typeof o==`function`?o.call(e,l):o}}let d=Bn(c,`wvHandler`,n),f=typeof t==`string`&&t?t:typeof d==`string`?d:void 0;if(!f)return;let p=Bn(c,`wvArgs`,n),m=[];if(Array.isArray(p))m=p;else if(typeof p==`string`)try{m=JSON.parse(p)}catch(e){try{m=JSON.parse(In(p))}catch(e){m=[]}}Array.isArray(m)||(m=[]);let h=m.map(e=>e===`$event`?l:e),g=e==null?void 0:e[f];if(typeof g==`function`)return g.apply(e,h)}const Kn=new Map;let qn=0;function Jn(){return qn+=1,`wv${qn}`}function Yn(e,t,n){var r;let i=(r=Kn.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,Kn.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function Xn(e){Kn.delete(e)}function Zn(e,t){var n;let r=(n=Kn.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),Kn.set(e,r),()=>{let n=Kn.get(e);n&&n.subscribers.delete(t)}}function Qn(e){var t;return(t=Kn.get(e))==null?void 0:t.proxy}function $n(e){var t;return(t=Kn.get(e))==null?void 0:t.snapshot}function er(e,t,n){var r;try{t.state.__wvOwnerId=n}catch(e){}try{e.__wvOwnerId=n}catch(e){}let i=typeof t.snapshot==`function`?t.snapshot():{},a=(r=e.__wevuProps)==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Yn(n,i,t.proxy)}function tr(e){return e.kind===`component`}function nr(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return Y(r)?r.value:r},set(e,t,n,r){let i=e[t];return Y(i)&&!Y(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function rr(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=nr(t);try{Object.defineProperty(e,`__wevuExposeProxy`,{value:r,configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(e,`__wevuExposeRaw`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuExposeProxy=r,e.__wevuExposeRaw=t}return r}function ir(e,t){if(!t||typeof t!=`object`)return e;let n=t;return X(new Proxy(e,{get(e,t,r){return Reflect.has(e,t)?Reflect.get(e,t,r):n[t]},set(e,t,r,i){return t in n?(n[t]=r,!0):Reflect.set(e,t,r,i)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return Array.from(new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)]))},getOwnPropertyDescriptor(e,t){return Reflect.has(e,t)?Object.getOwnPropertyDescriptor(e,t):Object.getOwnPropertyDescriptor(n,t)}}))}function ar(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n.__wevuExposed;return r&&typeof r==`object`?rr(n,r):(t=n.__wevu)!=null&&t.proxy?n.__wevu.proxy:e}function or(e){return e.__wevuTemplateRefMap}function sr(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function cr(e,t){var n,r;let i=(n=(r=e.__wevu)==null?void 0:r.proxy)==null?e:n,a;if(t.get)try{a=t.get.call(i)}catch(e){a=void 0}return a==null&&t.name&&(a=t.name),typeof a==`function`?{type:`function`,fn:a}:Y(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function lr(e){var t,n;let r=(t=(n=e.__wevu)==null?void 0:n.state)==null?e:t,i=r.$refs;if(i&&typeof i==`object`)return i;let a=X(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function ur(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();let n=Ut();return n&&typeof n.createSelectorQuery==`function`?n.createSelectorQuery().in(t):null}function dr(e,t,n,r,i){let a=ur(e);return a?(r(n.multiple?a.selectAll(t):a.select(t)),new Promise(e=>{a.exec(t=>{var r;let a=Array.isArray(t)?t[0]:null;if(n.index!=null&&Array.isArray(a)){var o;a=(o=a[n.index])==null?null:o}if(i){var s;i((s=a)==null?null:s)}e((r=a)==null?null:r)})})):(i&&i(null),Promise.resolve(null))}function fr(e,t,n){return X({selector:t,boundingClientRect:r=>dr(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>dr(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>dr(e,t,n,e=>e.fields(r),i),node:r=>dr(e,t,n,e=>e.node(),r)})}function pr(e,t){let n=e;if(!n)return t.inFor?X([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return X((Array.isArray(r)?r:[]).map((n,r)=>ir(fr(e,t.selector,{multiple:!0,index:r}),ar(n))))}return X([])}let r=fr(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?ir(r,ar(n.selectComponent(t.selector))):r}function mr(e,t,n){return t.inFor?X((Array.isArray(n)?n:[]).map((n,r)=>fr(e,t.selector,{multiple:!0,index:r}))):n?fr(e,t.selector,{multiple:!1}):null}function hr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(!e.__wevuReadyCalled){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=or(e),i=n.filter(e=>!tr(e)),a=n.filter(e=>tr(e)).map(t=>({binding:t,value:pr(e,t)})),o=n=>{var i,a;let o=lr(e),s=new Map,c=new Set,l=(i=(a=e.__wevu)==null?void 0:a.proxy)==null?e:i;n.forEach(t=>{let n=t.binding,r=t.value,i=cr(e,n);if(i.type===`function`){n.inFor&&Array.isArray(r)?r.length?r.forEach(e=>i.fn.call(l,e)):i.fn.call(l,null):i.fn.call(l,r==null?null:r);return}if(i.type===`ref`){i.ref.value=r;return}if(i.type===`name`){var a;c.add(i.name);let e=(a=s.get(i.name))==null?{values:[],count:0,hasFor:!1}:a;e.count+=1,e.hasFor=e.hasFor||n.inFor,n.inFor?Array.isArray(r)&&e.values.push(...r):r!=null&&e.values.push(r),s.set(i.name,e)}});for(let[e,t]of s){let n;n=t.values.length?t.hasFor||t.values.length>1||t.count>1?X(t.values):t.values[0]:t.hasFor?X([]):null,o[e]=n,sr(r,e,n)}for(let e of Object.keys(o))c.has(e)||delete o[e];t==null||t()};if(!i.length){o(a);return}let s=ur(e);if(!s){o(a);return}let c=[];for(let e of i)(e.inFor?s.selectAll(e.selector):s.select(e.selector)).boundingClientRect(),c.push({binding:e});s.exec(t=>{let n=c.map((n,r)=>{let i=Array.isArray(t)?t[r]:null;return{binding:n.binding,value:mr(e,n.binding,i)}});o([...a,...n])})}function gr(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e.__wevuTemplateRefsCallbacks)==null?[]:r;n.push(t),e.__wevuTemplateRefsCallbacks||Object.defineProperty(e,`__wevuTemplateRefsCallbacks`,{value:n,configurable:!0,enumerable:!1,writable:!0})}e.__wevuTemplateRefsPending||(e.__wevuTemplateRefsPending=!0,o(()=>{e.__wevuTemplateRefsPending=!1,hr(e,()=>{let t=e.__wevuTemplateRefsCallbacks;!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function _r(e){var t,n;let r=e.__wevuTemplateRefs;if(!r||!r.length)return;let i=lr(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=or(e);for(let t of r){let n=cr(e,t),r=t.inFor?X([]):null;if(n.type===`function`){n.fn.call(a,null);continue}if(n.type===`ref`){n.ref.value=r;continue}n.type===`name`&&(o.add(n.name),i[n.name]=r,sr(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}function vr(e,t,n){var r;if(typeof e!=`function`)return;let i=(r=n==null?void 0:n.runtime)==null?{methods:Object.create(null),state:{},proxy:{},watch:()=>()=>{},bindModel:()=>{}}:r;return n&&(n.runtime=i),e(t,{...n==null?{}:n,runtime:i})}function yr(e,t,n){if(typeof e==`function`)return{handler:e.bind(t.proxy),options:{}};if(typeof e==`string`){var r,i;let a=(r=(i=t.methods)==null?void 0:i[e])==null?n[e]:r;return typeof a==`function`?{handler:a.bind(t.proxy),options:{}}:void 0}if(!e||typeof e!=`object`)return;let a=yr(e.handler,t,n);if(!a)return;let o={...a.options};return e.immediate!==void 0&&(o.immediate=e.immediate),e.deep!==void 0&&(o.deep=e.deep),{handler:a.handler,options:o}}function br(e,t){let n=t.split(`.`).map(e=>e.trim()).filter(Boolean);return n.length?()=>{let t=e;for(let e of n){if(t==null)return t;t=t[e]}return t}:()=>e}function xr(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=yr(o,e,n);if(!t)continue;let s=br(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function Sr(){return Object.freeze(Object.create(null))}function Cr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function wr(e){try{return X(e)}catch(t){return e}}function Tr(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Object.prototype.hasOwnProperty.call(e,`bubbles`)||Object.prototype.hasOwnProperty.call(e,`composed`)||Object.prototype.hasOwnProperty.call(e,`capturePhase`)}function Er(e){if(e.length===0)return{detail:void 0,options:void 0};if(e.length===1)return{detail:e[0],options:void 0};let t=e[e.length-1];if(Tr(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}const Dr=[`triggerEvent`,`createSelectorQuery`,`setData`],Or=`__wevuSetupContextInstance`;function kr(e,t,n){let r=e==null?void 0:e.state,i=r&&typeof r==`object`?G(r):void 0,a=e==null?void 0:e.proxy,o=e=>{let r=e[n];if(typeof r!=`function`)return!1;if(Qe(r))return!0;let i=t[n];return typeof i==`function`&&r===i},s=e=>!e||typeof e!=`object`||e===t||e===a||o(e)?!1:typeof e[n]==`function`,c=i?i.__wevuNativeInstance:void 0;if(s(c))return c;let l=e==null?void 0:e.instance;if(s(l))return l}function Ar(e,t,n){Ze(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function jr(e,t){let n=e[Or];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=kr(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Qe(i))return e};Ar(r,`triggerEvent`,(...e)=>{let[t,n,r]=e,a=i(`triggerEvent`);a&&typeof a.triggerEvent==`function`&&(e.length>=3?a.triggerEvent(t,n,r):a.triggerEvent(t,n))}),Ar(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=Ut();if(!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||typeof o.in!=`function`)return o;let s=(n=kr(t,e,`setData`))==null?e:n;return o.in(s)}),Ar(r,`setData`,(e,n)=>{let r=i(`setData`);if(r&&typeof r.setData==`function`)return r.setData(e,n);let a=t==null?void 0:t.adapter,o=typeof(a==null?void 0:a.setData)==`function`?a.setData(e):void 0;return typeof n==`function`&&n(),o});let a=wr(new Proxy(r,{get(t,n,r){if(Reflect.has(t,n))return Reflect.get(t,n,r);let i=e[n];return typeof i==`function`?i.bind(e):i},has(t,n){return Reflect.has(t,n)||n in e},set(t,n,r){return Reflect.has(t,n)?(t[n]=r,!0):(e[n]=r,!0)}}));try{Object.defineProperty(e,Or,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[Or]=a}return a}function Mr(e,t){try{Object.defineProperty(e,`__wevuProps`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuProps=t}}function Nr(e,t){try{Object.defineProperty(e,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuNativeInstance=t}}function Pr(e,t){try{Object.defineProperty(e,`__wevuRuntime`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuRuntime=t}}function Fr(e,t){try{Object.defineProperty(e,`instance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function Ir(e){let t=e[Or],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Qe(n))return n;let r=e.setData;if(typeof r==`function`&&!Qe(r))return r}function Lr(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function Rr(e,t,n){try{return t.call(e,n)}catch(t){let n=Lr(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function zr(e,t){let n=Object.keys(e);for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function Br(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e.__wevu)return e.__wevu;wr(e);let p=Jn(),m=i!=null&&i.deferSetData?(e=>{let t,n=!1,r={setData(r){if(!n){var i;t={...(i=t)==null?{}:i,...r};return}let a=Ir(e);if(a)return Rr(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=Ir(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,Rr(e,r,n)}},r})(e):{setData(t){let n=Ir(e);if(n)return Rr(e,n,t)}},h,g=()=>{var t;if(!h||typeof h.snapshot!=`function`)return;let n=h.snapshot(),r=(t=e.__wevuProps)==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;Yn(p,n,h.proxy)},_={...m,setData(t){let n=m.setData(t);return g(),gr(e),n}},v=t.mount({..._});h=v,Fr(v,e);let y=(a=v==null?void 0:v.proxy)==null?{}:a,b=(o=v==null?void 0:v.state)==null?{}:o;b&&typeof b==`object`&&(Pr(b,v),Nr(b,e));let x=(s=v==null?void 0:v.computed)==null?Object.create(null):s;if(!(v!=null&&v.methods))try{v.methods=Object.create(null)}catch(e){}let S=(c=v==null?void 0:v.methods)==null?Object.create(null):c,C=(l=v==null?void 0:v.watch)==null?(()=>Cr()):l,w=(u=v==null?void 0:v.bindModel)==null?(()=>{}):u,T={...v==null?{}:v,state:b,proxy:y,methods:S,computed:x,watch:C,bindModel:w,snapshot:(d=v==null?void 0:v.snapshot)==null?(()=>Object.create(null)):d,unmount:(f=v==null?void 0:v.unmount)==null?(()=>{}):f};if(Object.defineProperty(e,`$wevu`,{value:T,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=T,er(e,T,p),n){let t=xr(T,n,e);t.length&&(e.__wevuWatchStops=t)}if(r){let t=e.properties||{},n=b&&typeof b==`object`?b.__wevuProps:void 0,i=n&&typeof n==`object`?n:ye({});zr(i,t),b&&typeof b==`object`&&Mr(b,i);try{Object.defineProperty(e,`__wevuProps`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuProps=i}let a=ye(Object.create(null)),o=new Set(Array.isArray(e.__wevuPropKeys)?e.__wevuPropKeys:[]),s=e=>typeof b==`object`&&!!b&&Object.prototype.hasOwnProperty.call(b,e);(()=>{let t=e.properties&&typeof e.properties==`object`?e.properties:void 0;for(let e of Object.keys(a))(!t||!Object.prototype.hasOwnProperty.call(t,e)||o.has(e)||s(e))&&delete a[e];if(t)for(let[e,n]of Object.entries(t))o.has(e)||s(e)||(a[e]=n)})();try{Object.defineProperty(e,`__wevuAttrs`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuAttrs=a}let c=jr(e,T),l={props:i,runtime:T,state:b,proxy:y,bindModel:w.bind(T),watch:C.bind(T),instance:c,emit:(e,...t)=>{let{detail:n,options:r}=Er(t);c.triggerEvent(e,n,r)},expose:t=>{e.__wevuExposed=t},attrs:a,slots:Sr()};Jt(e),Xt(l);try{let e=vr(r,i,l),t=!1;if(e&&typeof e==`object`){let n=J(v.state)?G(v.state):v.state;Object.keys(e).forEach(r=>{let i=e[r];if(typeof i==`function`)v.methods[r]=(...e)=>i.apply(v.proxy,e),t=!0;else{if(o.has(r)){let e=i;try{Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let t=n.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let i=n.__wevuProps;if(!(!i||typeof i!=`object`))try{i[r]=t}catch(e){}}})}catch(e){v.state[r]=i}return}v.state[r]=i}})}if(t){var E;(E=v.__wevu_touchSetupMethodsVersion)==null||E.call(v)}}finally{Xt(void 0),Jt(void 0)}}try{let t=v.methods;for(let n of Object.keys(t))Dr.includes(n)||typeof e[n]!=`function`&&(e[n]=function(...e){var t;let r=(t=this.$wevu)==null||(t=t.methods)==null?void 0:t[n];if(typeof r==`function`)return r.apply(this.$wevu.proxy,e)})}catch(e){}return v}function Vr(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function Hr(e){let t=e.__wevu,n=e.__wvOwnerId;n&&Xn(n),_r(e),t&&e.__wevuHooks&&$(e,`onUnload`,[]),e.__wevuHooks&&(e.__wevuHooks=void 0);let r=e.__wevuWatchStops;if(Array.isArray(r))for(let e of r)try{e()}catch(e){}e.__wevuWatchStops=void 0,t&&t.unmount(),delete e.__wevu,`$wevu`in e&&delete e.$wevu}function Ur(e,t,n,r,i){var a;if(typeof App!=`function`)throw TypeError(`createApp 需要全局 App 构造器可用`);let o=Object.keys(t==null?{}:t),s={...i};s.globalData=(a=s.globalData)==null?{}:a,s.__weapp_vite_inline||(s.__weapp_vite_inline=function(e){var t,n;let r=this.__wevu;return Gn((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n.__weapp_vite_inline_map)});let c=s.onLaunch;s.onLaunch=function(...t){Br(this,e,n,r),$(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let l=s.onShow;s.onShow=function(...e){$(this,`onShow`,e),typeof l==`function`&&l.apply(this,e)};let u=s.onHide;s.onHide=function(...e){$(this,`onHide`,e),typeof u==`function`&&u.apply(this,e)};let d=s.onError;s.onError=function(...e){$(this,`onError`,e),typeof d==`function`&&d.apply(this,e)};let f=s.onPageNotFound;s.onPageNotFound=function(...e){$(this,`onPageNotFound`,e),typeof f==`function`&&f.apply(this,e)};let p=s.onUnhandledRejection;s.onUnhandledRejection=function(...e){$(this,`onUnhandledRejection`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onThemeChange;s.onThemeChange=function(...e){$(this,`onThemeChange`,e),typeof m==`function`&&m.apply(this,e)};for(let e of o){let t=s[e];s[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];return o&&(a=o.apply(i.proxy,n)),typeof t==`function`?t.apply(this,n):a}}App(s)}function Wr(e){let{features:t,userOnSaveExitState:n,userOnPullDownRefresh:r,userOnReachBottom:i,userOnPageScroll:a,userOnRouteDone:o,userOnTabItemTap:s,userOnResize:c,userOnShareAppMessage:l,userOnShareTimeline:u,userOnAddToFavorites:d}=e,f=typeof r==`function`||!!t.enableOnPullDownRefresh,p=typeof i==`function`||!!t.enableOnReachBottom,m=typeof a==`function`||!!t.enableOnPageScroll,h=typeof o==`function`||!!t.enableOnRouteDone,g=!!t.enableOnRouteDoneFallback,_=typeof s==`function`||!!t.enableOnTabItemTap,v=typeof c==`function`||!!t.enableOnResize,y=typeof u==`function`||!!t.enableOnShareTimeline,b=typeof l==`function`||!!t.enableOnShareAppMessage,x=typeof d==`function`||!!t.enableOnAddToFavorites,S=typeof n==`function`||!!t.enableOnSaveExitState,C=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnRouteDoneFallback:g,enableOnTabItemTap:_,enableOnResize:v,enableOnShareAppMessage:b,enableOnShareTimeline:y,enableOnAddToFavorites:x,enableOnSaveExitState:S,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:C,effectiveOnReachBottom:typeof i==`function`?i:C,effectiveOnPageScroll:typeof a==`function`?a:C,effectiveOnRouteDone:typeof o==`function`?o:C,effectiveOnTabItemTap:typeof s==`function`?s:C,effectiveOnResize:typeof c==`function`?c:C,effectiveOnShareAppMessage:typeof l==`function`?l:C,effectiveOnShareTimeline:typeof u==`function`?u:C,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}let Gr=!1,Kr;function qr(e){let t=e.options;if(t&&typeof t==`object`)return t;if(typeof getCurrentPages==`function`){let e=getCurrentPages(),t=Array.isArray(e)?e[e.length-1]:void 0,n=t&&typeof t==`object`?t.options:void 0;if(n&&typeof n==`object`)return n}return{}}function Jr(){if(Gr)return;Gr=!0;let e=Ut();if(!e||typeof e!=`object`)return;let t=e.startPullDownRefresh;typeof t==`function`&&(e.startPullDownRefresh=function(...e){let n=t.apply(this,e);return Kr&&$(Kr,`onPullDownRefresh`,[]),n});let n=e.pageScrollTo;typeof n==`function`&&(e.pageScrollTo=function(e,...t){let r=n.apply(this,[e,...t]);return Kr&&$(Kr,`onPageScroll`,[e==null?{}:e]),r})}function Yr(e){let{enableOnShareAppMessage:t,enableOnShareTimeline:n}=e;if(!t&&!n)return;let r=Ut();if(!r||typeof r.showShareMenu!=`function`)return;let i=e=>{try{r.showShareMenu(e)}catch(e){}};if(!(t||n))return;let a=[`shareAppMessage`];n&&a.push(`shareTimeline`),i({withShareTicket:!0,menus:a})}function Xr(e){let{runtimeApp:t,watch:n,setup:r,userOnLoad:i,userOnUnload:a,userOnShow:o,userOnHide:s,userOnReady:c,isPage:l,enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnRouteDoneFallback:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:v,enableOnShareTimeline:y,enableOnAddToFavorites:b,effectiveOnSaveExitState:x,effectiveOnPullDownRefresh:S,effectiveOnReachBottom:C,effectiveOnPageScroll:w,effectiveOnRouteDone:T,effectiveOnTabItemTap:E,effectiveOnResize:D,effectiveOnShareAppMessage:O,effectiveOnShareTimeline:k,effectiveOnAddToFavorites:A,hasHook:j}=e,M={onLoad(...e){if(!this.__wevuOnLoadCalled&&(this.__wevuOnLoadCalled=!0,Br(this,t,n,r),Vr(this),l&&Yr({enableOnShareAppMessage:v,enableOnShareTimeline:y}),$(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&Kr===this&&(Kr=void 0),Hr(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(Jr(),Kr=this,this.__wevuOnLoadCalled||M.onLoad.call(this,qr(this)),Yr({enableOnShareAppMessage:v,enableOnShareTimeline:y}),this.__wevuRouteDoneCalled=!1),$(this,`onShow`,e),typeof o==`function`)return o.apply(this,e)},onHide(...e){if(l&&Kr===this&&(Kr=void 0),$(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this.__wevuOnLoadCalled||M.onLoad.call(this,qr(this)),Yr({enableOnShareAppMessage:v,enableOnShareTimeline:y})),!this.__wevuReadyCalled){if(this.__wevuReadyCalled=!0,l&&m&&h){let e=this;setTimeout(()=>{if(!e.__wevuRouteDoneCalled){var t;(t=M.onRouteDone)==null||t.call(e)}},0)}gr(this,()=>{$(this,`onReady`,e),typeof c==`function`&&c.apply(this,e)});return}if(typeof c==`function`)return c.apply(this,e)}};return u&&(M.onSaveExitState=function(...e){let t=en(this,`onSaveExitState`,e);return t===void 0?x.apply(this,e):t}),d&&(M.onPullDownRefresh=function(...e){if($(this,`onPullDownRefresh`,e),!j(this,`onPullDownRefresh`))return S.apply(this,e)}),f&&(M.onReachBottom=function(...e){if($(this,`onReachBottom`,e),!j(this,`onReachBottom`))return C.apply(this,e)}),p&&(M.onPageScroll=function(...e){if($(this,`onPageScroll`,e),!j(this,`onPageScroll`))return w.apply(this,e)}),m&&(M.onRouteDone=function(...e){if(!this.__wevuRouteDoneInTick&&(this.__wevuRouteDoneInTick=!0,Promise.resolve().then(()=>{this.__wevuRouteDoneInTick=!1}),this.__wevuRouteDoneCalled=!0,$(this,`onRouteDone`,e),!j(this,`onRouteDone`)))return T.apply(this,e)}),g&&(M.onTabItemTap=function(...e){if($(this,`onTabItemTap`,e),!j(this,`onTabItemTap`))return E.apply(this,e)}),_&&(M.onResize=function(...e){if($(this,`onResize`,e),!j(this,`onResize`))return D.apply(this,e)}),v&&(M.onShareAppMessage=function(...e){let t=en(this,`onShareAppMessage`,e);return t===void 0?O.apply(this,e):t}),y&&(M.onShareTimeline=function(...e){let t=en(this,`onShareTimeline`,e);return t===void 0?k.apply(this,e):t}),b&&(M.onAddToFavorites=function(...e){let t=en(this,`onAddToFavorites`,e);return t===void 0?A.apply(this,e):t}),M}function Zr(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r.__weapp_vite_inline||(r.__weapp_vite_inline=function(e){var t,n;let r=this.__wevu;return Gn((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n.__weapp_vite_inline_map)}),r.__weapp_vite_model||(r.__weapp_vite_model=function(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvModel)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvModel:t;if(typeof i!=`string`||!i)return;let a=this.__wevu;if(!a||typeof a.bindModel!=`function`)return;let o=Ye(e);try{a.bindModel(i).update(o)}catch(e){}}),!r.__weapp_vite_owner&&typeof(n==null?void 0:n.__weapp_vite_owner)==`function`&&(r.__weapp_vite_owner=n.__weapp_vite_owner);let i=Object.keys(n==null?{}:n);function a(e){let t=e.__wevu;if(t)return t;let n=e.$state;if(n&&typeof n==`object`)return n.__wevuRuntime}function o(e,t){if((e==null?void 0:e.proxy)===t)return;let n=e==null?void 0:e.proxy,r=e=>{let r=t[e];if(typeof r!=`function`)return!1;let i=n==null?void 0:n[e];return typeof i==`function`&&r===i};if(r(`triggerEvent`)||r(`createSelectorQuery`)||r(`setData`)||!(typeof t.triggerEvent==`function`||typeof t.createSelectorQuery==`function`||typeof t.setData==`function`))return;let i=e==null?void 0:e.state;if(!(!i||typeof i!=`object`)&&t.$state!==i)try{Object.defineProperty(i,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i.__wevuNativeInstance=t}}for(let e of i){if(e.startsWith(`__weapp_vite_`))continue;let t=r[e];r[e]=function(...n){var r;let i=a(this);o(i,this);let s,c=i==null||(r=i.methods)==null?void 0:r[e];if(c&&(s=c.apply(i.proxy,n)),typeof t==`function`){let e=t.apply(this,n);return e===void 0?s:e}return s}}return{finalMethods:r}}function Qr(e){var t;let n=e.__wevu,r=e.__wvOwnerId;if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e.__wevuProps)==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Yn(r,i,n.proxy)}function $r(e){let{restOptions:t,userObservers:n}=e,r=`__wevuPendingPropValues`,i=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],a=new Set(i),o=e=>{try{Object.defineProperty(e,`__wevuPropKeys`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuPropKeys=i}},s=e=>{let t=e.__wevuAttrs;if(!t||typeof t!=`object`)return;let n=t=>{var n;let r=(n=e.__wevu)==null?void 0:n.state;return typeof r==`object`&&!!r&&Object.prototype.hasOwnProperty.call(r,t)},r=e.properties,i=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!i||!Object.prototype.hasOwnProperty.call(i,e)||a.has(e)||n(e))try{delete t[e]}catch(e){}if(!i){Qr(e);return}for(let[e,r]of Object.entries(i))if(!(a.has(e)||n(e)))try{t[e]=r}catch(e){}Qr(e)},c=e=>{let t=e.__wevuProps,n=e.properties,i=e[r];if(t&&typeof t==`object`&&n&&typeof n==`object`){let r=n,a=Object.keys(t);for(let e of a)if(!Object.prototype.hasOwnProperty.call(r,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(r)){let r=i&&Object.prototype.hasOwnProperty.call(i,e)?i[e]:n;try{t[e]=r}catch(e){}}if(i){for(let[e,n]of Object.entries(i))if(!Object.prototype.hasOwnProperty.call(r,e))try{t[e]=n}catch(e){}}Qr(e)}i&&delete e[r],s(e)},l=(e,t,n)=>{var i,a;let o=e.__wevuProps;if(!o||typeof o!=`object`)return;try{o[t]=n}catch(e){}let c=(a=(i=e)[r])==null?i[r]=Object.create(null):a;c[t]=n,Qr(e),s(e)},u={};if(i.length)for(let e of i)u[e]=function(t){l(this,e,t)};let d={...n==null?{}:n};for(let[e,t]of Object.entries(u)){let n=d[e];typeof n==`function`?d[e]=function(...e){n.apply(this,e),t.apply(this,e)}:d[e]=t}let f=d[`**`];return d[`**`]=function(...e){typeof f==`function`&&f.apply(this,e),c(this)},{attachWevuPropKeys:o,syncWevuPropsFromInstance:c,finalObservers:d}}function ei(e,t,n,r,i){var a,o;let s=(e,t=new WeakMap)=>{if(!e||typeof e!=`object`)return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=[];t.set(e,n);for(let r of e)n.push(s(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=s(i,t);return n},c=e=>{let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`},{methods:l={},lifetimes:u={},pageLifetimes:d={},options:f={},...p}=i,m=p.onLoad,h=p.onUnload,g=p.onShow,_=p.onHide,v=p.onReady,y=p.onSaveExitState,b=p.onPullDownRefresh,x=p.onReachBottom,S=p.onPageScroll,C=p.onRouteDone,w=p.onTabItemTap,T=p.onResize,E=p.onShareAppMessage,D=p.onShareTimeline,O=p.onAddToFavorites,k=(a=p.features)==null?{}:a,A=[m,h,g,_,v,y,b,x,S,C,w,T,E,D,O].some(e=>typeof e==`function`),j=!!p.__wevu_isPage||Object.keys(k==null?{}:k).length>0||A,M={...p},ee=new Set([`behaviors`,`relations`,`externalClasses`,`options`,`properties`,`observers`,`pureDataPattern`,`virtualHost`,`definitionFilter`,`export`,`__wevuTemplateRefs`,`setupLifecycle`,`features`,`__wevu_isPage`]),N=[];for(let[e,t]of Object.entries(M))ee.has(e)||typeof t!=`function`&&(N.push([e,t]),delete M[e]);let P=e=>{if(N.length){for(let[t,n]of N)if(!Object.prototype.hasOwnProperty.call(e,t))try{e[t]=s(n)}catch(e){}}},te=new Set([`export`,`definitionFilter`,`onLoad`,`onUnload`,`onShow`,`onHide`,`onReady`,`onSaveExitState`,`onPullDownRefresh`,`onReachBottom`,`onPageScroll`,`onRouteDone`,`onTabItemTap`,`onResize`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]),F={};for(let[e,t]of Object.entries(M))typeof t!=`function`||te.has(e)||(F[e]=t,delete M[e]);let I=M.__wevuTemplateRefs;delete M.__wevuTemplateRefs;let L=M.observers,R=M.setupLifecycle===`created`?`created`:`attached`;delete M.setupLifecycle;let z=M.created;delete M.features,delete M.created,delete M.onLoad,delete M.onUnload,delete M.onShow,delete M.onHide,delete M.onReady;let{enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnRouteDoneFallback:ie,enableOnTabItemTap:H,enableOnResize:ae,enableOnShareAppMessage:oe,enableOnShareTimeline:se,enableOnAddToFavorites:ce,enableOnSaveExitState:le,effectiveOnSaveExitState:ue,effectiveOnPullDownRefresh:U,effectiveOnReachBottom:W,effectiveOnPageScroll:de,effectiveOnRouteDone:fe,effectiveOnTabItemTap:G,effectiveOnResize:pe,effectiveOnShareAppMessage:me,effectiveOnShareTimeline:he,effectiveOnAddToFavorites:ge}=Wr({features:k,userOnSaveExitState:y,userOnPullDownRefresh:b,userOnReachBottom:x,userOnPageScroll:S,userOnRouteDone:C,userOnTabItemTap:w,userOnResize:T,userOnShareAppMessage:E,userOnShareTimeline:D,userOnAddToFavorites:O}),_e=(e,t)=>{let n=e.__wevuHooks;if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=M.export;M.export=function(){var t;let n=(t=this.__wevuExposed)==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let K={multipleSlots:(o=f.multipleSlots)==null?!0:o,...f},{attachWevuPropKeys:ve,syncWevuPropsFromInstance:ye,finalObservers:be}=$r({restOptions:M,userObservers:L}),{finalMethods:xe}=Zr({userMethods:{...F,...l},runtimeMethods:t}),q=Xr({runtimeApp:e,watch:n,setup:r,userOnLoad:m,userOnUnload:h,userOnShow:g,userOnHide:_,userOnReady:v,isPage:j,enableOnSaveExitState:le,enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnRouteDoneFallback:ie,enableOnTabItemTap:H,enableOnResize:ae,enableOnShareAppMessage:oe,enableOnShareTimeline:se,enableOnAddToFavorites:ce,effectiveOnSaveExitState:ue,effectiveOnPullDownRefresh:U,effectiveOnReachBottom:W,effectiveOnPageScroll:de,effectiveOnRouteDone:fe,effectiveOnTabItemTap:G,effectiveOnResize:pe,effectiveOnShareAppMessage:me,effectiveOnShareTimeline:he,effectiveOnAddToFavorites:ge,hasHook:_e}),Se={};if(j)for(let e of[`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=q[e];typeof t==`function`&&typeof xe[e]!=`function`&&(Se[e]=function(...e){return t.apply(this,e)})}Component({...M,...q,observers:be,lifetimes:{...u,created:function(...t){if(P(this),Array.isArray(I)&&I.length&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),ve(this),R===`created`){try{Br(this,e,n,r,{deferSetData:!0})}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in created (${t}): ${e instanceof Error?e.message:String(e)}`)}ye(this)}typeof z==`function`&&z.apply(this,t),typeof u.created==`function`&&u.created.apply(this,t)},moved:function(...e){$(this,`onMoved`,e),typeof u.moved==`function`&&u.moved.apply(this,e)},attached:function(...t){if(P(this),Array.isArray(I)&&I.length&&!this.__wevuTemplateRefs&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),ve(this),R!==`created`||!this.__wevu)try{Br(this,e,n,r)}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in attached (${t}): ${e instanceof Error?e.message:String(e)}`)}ye(this),R===`created`&&Vr(this),$(this,`onAttached`,t),typeof u.attached==`function`&&u.attached.apply(this,t)},ready:function(...e){if(j&&typeof q.onReady==`function`){q.onReady.call(this,...e),typeof u.ready==`function`&&u.ready.apply(this,e);return}if(!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,ye(this),gr(this,()=>{$(this,`onReady`,e),typeof u.ready==`function`&&u.ready.apply(this,e)});return}typeof u.ready==`function`&&u.ready.apply(this,e)},detached:function(...e){if($(this,`onDetached`,e),j&&typeof q.onUnload==`function`){q.onUnload.call(this,...e),typeof u.detached==`function`&&u.detached.apply(this,e);return}_r(this),Hr(this),typeof u.detached==`function`&&u.detached.apply(this,e)},error:function(...e){$(this,`onError`,e),typeof u.error==`function`&&u.error.apply(this,e)}},pageLifetimes:{...d,show:function(...e){if(j&&typeof q.onShow==`function`){q.onShow.call(this,...e),typeof d.show==`function`&&d.show.apply(this,e);return}$(this,`onShow`,e),typeof d.show==`function`&&d.show.apply(this,e)},hide:function(...e){if(j&&typeof q.onHide==`function`){q.onHide.call(this,...e),typeof d.hide==`function`&&d.hide.apply(this,e);return}$(this,`onHide`,e),typeof d.hide==`function`&&d.hide.apply(this,e)},resize:function(...e){if(j&&typeof q.onResize==`function`){q.onResize.call(this,...e),typeof d.resize==`function`&&d.resize.apply(this,e);return}$(this,`onResize`,e),typeof d.resize==`function`&&d.resize.apply(this,e)},routeDone:function(...e){if(j&&typeof q.onRouteDone==`function`){q.onRouteDone.call(this,...e),typeof d.routeDone==`function`&&d.routeDone.apply(this,e);return}$(this,`onRouteDone`,e),typeof d.routeDone==`function`&&d.routeDone.apply(this,e)}},methods:{...Se,...xe},options:K})}function ti(e,t){let n=(()=>{e()});return n.stop=()=>n(),n.pause=()=>{var e;t==null||(e=t.pause)==null||e.call(t)},n.resume=()=>{var e;t==null||(e=t.resume)==null||e.call(t)},n}function ni(e){let{[Mt]:t,data:n,computed:r,methods:i,setData:o,watch:s,setup:c,...l}=e[Mt]===`component`?e:Bt(e),u=i==null?{}:i,d=r==null?{}:r,f=new Set,p={globalProperties:{}},m={mount(e){let t=(n==null?(()=>({})):n)();if(t&&typeof t==`object`&&!Object.prototype.hasOwnProperty.call(t,`__wevuProps`))try{Object.defineProperty(t,`__wevuProps`,{value:ye(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let r=Ce(t),i=d,s=u,c=!0,l=[],{includeComputed:f,setDataStrategy:m,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,prelinkMaxDepth:T,prelinkMaxKeys:E,debug:D,debugWhen:O,debugSampleRate:A,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,shouldIncludeKey:N}=wt(o),{boundMethods:P,computedRefs:I,computedSetters:L,dirtyComputedKeys:R,computedProxy:z,publicInstance:B,touchSetupMethodsVersion:V}=et({state:r,computedDefs:i,methodDefs:s,appConfig:p,includeComputed:f,setDataStrategy:m}),ne=e==null?{setData:()=>{}}:e,re=G(r),ie,H=Ct({state:r,computedRefs:I,dirtyComputedKeys:R,includeComputed:f,setDataStrategy:m,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,currentAdapter:ne,shouldIncludeKey:N,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,debug:D,debugWhen:O,debugSampleRate:A,runTracker:()=>ie==null?void 0:ie(),isMounted:()=>c}),ae=()=>H.job(re),oe=e=>H.mutationRecorder(e,re);ie=k(()=>{K(r);let e=r.__wevuProps;J(e)&&K(e);let t=r.__wevuAttrs;J(t)&&K(t),Object.keys(r).forEach(e=>{let t=r[e];if(Y(t)){let e=t.value;J(e)&&K(e)}else J(t)&&K(t)})},{lazy:!0,scheduler:()=>a(ae)}),ae(),l.push(ti(()=>x(ie))),m===`patch`&&(ge(r,{shouldIncludeTopKey:N,maxDepth:T,maxKeys:E}),te(oe),l.push(ti(()=>F(oe))),l.push(ti(()=>_e(r))));function se(e,t,n){let r=Ke(e,(e,n)=>t(e,n),n);return l.push(r),ti(()=>{r();let e=l.indexOf(r);e>=0&&l.splice(e,1)},r)}let ce={get state(){return r},get proxy(){return B},get methods(){return P},get computed(){return z},get adapter(){return ne},bindModel:jt(B,r,I,L),watch:se,snapshot:()=>H.snapshot(),unmount:()=>{c&&(c=!1,l.forEach(e=>{try{e()}catch(e){}}),l.length=0)}};try{Object.defineProperty(ce,`__wevu_touchSetupMethodsVersion`,{value:V,configurable:!0,enumerable:!1,writable:!1})}catch(e){ce.__wevu_touchSetupMethodsVersion=V}return ce},use(e,...t){if(!e||f.has(e))return m;if(f.add(e),typeof e==`function`)e(m,...t);else if(typeof e.install==`function`)e.install(m,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return m},config:p};if(typeof App==`function`){let e=Ut(),t=(e==null?void 0:e.__wxConfig)!==void 0,n=`__wevuAppRegistered`;t&&e&&e[n]||(t&&e&&(e[n]=!0),Ur(m,i==null?{}:i,s,c,l))}return m}function ri(e,t,n){let r=e.properties,i=n==null?r&&typeof r==`object`?r:void 0:n,a=e=>{let t={...e==null?{}:e};return Object.prototype.hasOwnProperty.call(t,`__wvSlotOwnerId`)||(t.__wvSlotOwnerId={type:String,value:``}),Object.prototype.hasOwnProperty.call(t,`__wvSlotScope`)||(t.__wvSlotScope={type:null,value:null}),t};if(i||!t){let{properties:t,...n}=e;return{...n,properties:a(i)}}let o={};return Object.entries(t).forEach(([e,t])=>{if(t!=null){if(Array.isArray(t)||typeof t==`function`){o[e]={type:t};return}if(typeof t==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(t).length===0){o[e]={type:Object,value:{}};return}let n={};`type`in t&&t.type!==void 0&&(n.type=t.type);let r=`default`in t?t.default:t.value;r!==void 0&&(n.value=typeof r==`function`?r():r),o[e]=n}}}),{...e,properties:a(o)}}function ii(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function ai(e){var t,n,r,i;let a=Bn((t=(n=e==null||(r=e.currentTarget)==null?void 0:r.dataset)==null?e==null||(i=e.target)==null?void 0:i.dataset:n)==null?{}:t,`wvArgs`,e),o=[];if(Array.isArray(a))o=a;else if(typeof a==`string`)try{o=JSON.parse(a)}catch(e){try{o=JSON.parse(ii(a))}catch(e){o=[]}}return Array.isArray(o)||(o=[]),o.map(t=>t===`$event`?e:t)}function oi(e){if(!e||typeof e!=`object`)return{};if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2){let r=e[n];typeof r==`string`&&r&&(t[r]=e[n+1])}return t}return e}function si(e,t){var n,r;let i=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotScope`)?t.__wvSlotScope:e==null||(n=e.properties)==null?void 0:n.__wvSlotScope,a=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotProps`)?t.__wvSlotProps:e==null||(r=e.properties)==null?void 0:r.__wvSlotProps,o=oi(i),s=oi(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({__wvSlotPropsData:c})}function ci(e){let t={properties:{__wvOwnerId:{type:String,value:``},__wvSlotProps:{type:null,value:null,observer(e){si(this,{__wvSlotProps:e})}},__wvSlotScope:{type:null,value:null,observer(e){si(this,{__wvSlotScope:e})}}},data:()=>({__wvOwner:{},__wvSlotPropsData:{}}),lifetimes:{attached(){var e,t;let n=(e=(t=this.properties)==null?void 0:t.__wvOwnerId)==null?``:e;if(si(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({__wvOwner:e||{}})};this.__wvOwnerUnsub=Zn(n,r);let i=$n(n);i&&r(i,Qn(n))},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerProxy=void 0}},methods:{__weapp_vite_owner(e){var t,n,r,i,a;let o=this.__wvOwnerProxy,s=Gn(o,void 0,e,(t=this.__wevu)==null||(t=t.methods)==null?void 0:t.__weapp_vite_inline_map);if(s!==void 0)return s;if(!o)return;let c=Bn((n=(r=e==null||(i=e.currentTarget)==null?void 0:i.dataset)==null?e==null||(a=e.target)==null?void 0:a.dataset:r)==null?{}:n,`wvHandler`,e);if(typeof c!=`string`||!c)return;let l=o==null?void 0:o[c];if(typeof l!=`function`)return;let u=ai(e);return l.apply(o,u)}}};return e!=null&&e.computed&&Object.keys(e.computed).length>0&&(t.computed=e.computed),e!=null&&e.inlineMap&&Object.keys(e.inlineMap).length>0&&(t.methods={...t.methods,__weapp_vite_inline_map:e.inlineMap}),t}function li(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ui(e){return typeof e!=`object`||!e||Y(e)||J(e)||Array.isArray(e)?!0:li(e)}function di(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t.__wevuPropKeys)?t.__wevuPropKeys:[]),o=(r=e==null?void 0:e.methods)==null?Object.create(null):r,s=(i=e==null?void 0:e.state)==null?Object.create(null):i,c=J(s)?G(s):s,l=!1;if(e&&!e.methods)try{e.methods=o}catch(e){}if(e&&!e.state)try{e.state=s}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`)o[r]=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)},l=!0;else{if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let n=c.__wevuProps;if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!ui(i))try{Object.defineProperty(c,r,{value:i,configurable:!0,enumerable:!1,writable:!0})}catch(e){s[r]=i}else s[r]=i}}),e){var u,d;if(e.methods=(u=e.methods)==null?o:u,e.state=(d=e.state)==null?s:d,l){var f;(f=e.__wevu_touchSetupMethodsVersion)==null||f.call(e)}}}let fi;function pi(){let e=Wt();if(!e)return;let t=e;!t.__weapp_vite_createScopedSlotComponent&&fi&&(t.__weapp_vite_createScopedSlotComponent=fi)}function mi(e){pi();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Vt(e),u=ni({data:n,computed:r,methods:i,setData:a,[Mt]:`component`}),d=(e,t)=>{let n=vr(s,e,t);return n&&t&&di(t.runtime,t.instance,n),n},f=ri(l,c),p={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:f};return ei(u,i==null?{}:i,o,d,f),{__wevu_runtime:u,__wevu_options:p}}function hi(e){pi();let{properties:t,props:n,...r}=e;mi(ri(r,n,t))}function gi(e){hi(ci(e))}fi=gi,pi();const _i=Symbol(`wevu.provideScope`),vi=new Map;function yi(e,t){let n=qt();if(n){let r=n[_i];r||(r=new Map,n[_i]=r),r.set(e,t)}else vi.set(e,t)}function bi(e,t){let n=qt();if(n){let t=n;for(;t;){let n=t[_i];if(n&&n.has(e))return n.get(e);t=null}}if(vi.has(e))return vi.get(e);if(arguments.length>=2)return t;throw Error(`wevu.inject:未找到对应 key 的值`)}function xi(e,t){vi.set(e,t)}function Si(e,t){if(vi.has(e))return vi.get(e);if(arguments.length>=2)return t;throw Error(`injectGlobal():未找到对应 key 的 provider:${String(e)}`)}const Ci=/\B([A-Z])/g;function wi(e){return e?e.startsWith(`--`)?e:e.replace(Ci,`-$1`).toLowerCase():``}function Ti(e,t){if(!t)return e;if(!e)return t;let n=e;n.endsWith(`;`)||(n+=`;`);let r=t.startsWith(`;`)?t.slice(1):t;return n+r}function Ei(e){let t=``;for(let n of Object.keys(e)){let r=je(e[n]);if(r==null)continue;let i=wi(n);if(Array.isArray(r))for(let e of r){let n=je(e);n!=null&&(t=Ti(t,`${i}:${n}`))}else t=Ti(t,`${i}:${r}`)}return t}function Di(e){let t=je(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=Di(n);t&&(e=Ti(e,t))}return e}return typeof t==`object`?Ei(t):``}function Oi(e){let t=je(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=Oi(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))je(t[e])&&(n+=`${e} `);return n.trim()}return n}const ki=Object.freeze(Object.create(null));function Ai(){var e;let t=Yt();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function ji(){var e;let t=Yt();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?ki:e}function Mi(){let e=Yt();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}function Ni(e){let t=e.__wevuTemplateRefMap;if(t)return t;let n=new Map;try{Object.defineProperty(e,`__wevuTemplateRefMap`,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuTemplateRefMap=n}return n}function Pi(e){let t=qt();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=Ni(t),i=r.get(n);if(i)return i;let a=Le(null);return r.set(n,a),a}const Fi=Object.freeze(Object.create(null));function Ii(e,t){let n=t===`modelValue`?`modelModifiers`:`${t}Modifiers`,r=e==null?void 0:e[n];return!r||typeof r!=`object`?Fi:r}function Li(e,t){let n=e;try{Object.defineProperty(n,Symbol.iterator,{configurable:!0,value:()=>{let e=0;return{next:()=>e===0?(e+=1,{value:n,done:!1}):e===1?(e+=1,{value:t(),done:!1}):{value:void 0,done:!0}}}})}catch(e){}return n}function Ri(e,t,n={}){let r=Yt();if(!r)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let i=r.emit,a=`update:${t}`,o=()=>Ii(e,t);return Li(Pe({get:()=>{let r=e==null?void 0:e[t];return n.get?n.get(r,o()):r},set:e=>{let t=n.set?n.set(e,o()):e;i==null||i(a,t)}}),o)}function zi(e){let t=qt();if(!(t!=null&&t.__wevu)||typeof t.__wevu.bindModel!=`function`)throw Error(`useBindModel() 必须在 setup() 的同步阶段调用`);let n=t.__wevu.bindModel.bind(t.__wevu),r=((t,r)=>e?n(t,{...e,...r}):n(t,r));return r.model=(e,t)=>r(e).model(t),r.value=(t,n)=>{var i;let a={...e,...n},o=(i=a==null?void 0:a.valueProp)==null?`value`:i;return r.model(t,n)[o]},r.on=(t,n)=>{var i;let a={...e,...n},o=`on${Tt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function Bi(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?Array.from(new Set([...e,...t])):typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function Vi(e,t,n,r){return function(...i){let a=[],o=[],s=e=>a.push(e),c=e=>o.push(e);r.forEach(n=>{try{n({name:t,store:e,args:i,after:s,onError:c})}catch(e){}});let l;try{l=n.apply(e,i)}catch(e){throw o.forEach(t=>t(e)),e}let u=e=>(a.forEach(t=>t(e)),e);return l&&typeof l.then==`function`?l.then(e=>u(e),e=>(o.forEach(t=>t(e)),Promise.reject(e))):u(l)}}function Hi(e){return typeof e==`object`&&!!e}function Ui(e){if(!Hi(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Wi(e,t){for(let n in t)e[n]=t[n]}function Gi(e){if(Array.isArray(e))return e.map(e=>Gi(e));if(Ui(e)){let t={};for(let n in e)t[n]=Gi(e[n]);return t}return e}function Ki(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.length=0,t.forEach((t,n)=>{e[n]=Gi(t)});return}if(Hi(t)){for(let n in e)n in t||delete e[n];for(let n in t){let r=t[n],i=e[n];if(Array.isArray(r)&&Array.isArray(i)){Ki(i,r);continue}if(Ui(r)&&Ui(i)){Ki(i,r);continue}e[n]=Gi(r)}}}function qi(e,t,n,r){let i={$id:e};Object.defineProperty(i,`$state`,{get(){return t},set(e){t&&Hi(e)&&(Wi(t,e),n(`patch object`))}}),i.$patch=e=>{if(!t){typeof e==`function`?(e(i),n(`patch function`)):(Wi(i,e),n(`patch object`));return}typeof e==`function`?(e(t),n(`patch function`)):(Wi(t,e),n(`patch object`))},r&&(i.$reset=()=>r());let a=new Set;i.$subscribe=(e,t)=>(a.add(e),()=>a.delete(e));let o=new Set;return i.$onAction=e=>(o.add(e),()=>o.delete(e)),{api:i,subs:a,actionSubs:o}}function Ji(){let e={_stores:new Map,_plugins:[],install(e){},use(t){return typeof t==`function`&&e._plugins.push(t),e}};return Ji._instance=e,e}const Yi=Object.prototype.hasOwnProperty;function Xi(e){return Y(e)&&Yi.call(e,`dep`)}function Zi(e){return J(e)?Gi(G(e)):Xi(e)?Gi(e.value):Gi(e)}function Qi(e,t,n){let r=!1;return i=>{if(!r){r=!0;try{let r=n();t.forEach(t=>{try{t({type:i,storeId:e},r)}catch(e){}})}finally{r=!1}}}}function $i(e,t){let n,r=!1,i=Ji._instance;return function(){var a,o,s;if(r&&n)return n;if(r=!0,typeof t==`function`){var c;let r=t(),a=()=>{},o=new Map;Object.keys(r).forEach(e=>{let t=r[e];typeof t==`function`||e.startsWith(`$`)||Y(t)&&!Xi(t)||o.set(e,Zi(t))});let s=qi(e,void 0,e=>a(e),()=>{o.forEach((e,t)=>{let r=n[t];if(Xi(r)){r.value=Gi(e);return}if(J(r)){Ki(r,e);return}Y(r)||(n[t]=Gi(e))}),a(`patch object`)}),l=!1,u=s.api.$patch;if(s.api.$patch=e=>{l=!0;try{u(e)}finally{l=!1}},typeof s.api.$reset==`function`){let e=s.api.$reset;s.api.$reset=()=>{l=!0;try{e()}finally{l=!1}}}a=Qi(e,s.subs,()=>n),n=Object.assign({},r);for(let e of Object.getOwnPropertyNames(s.api)){let t=Object.getOwnPropertyDescriptor(s.api,e);t&&(e===`$state`?Object.defineProperty(n,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return s.api.$state},set(e){l=!0;try{s.api.$state=e}finally{l=!1}}}):Object.defineProperty(n,e,t))}let d=[];Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`&&!e.startsWith(`$`)){n[e]=Vi(n,e,t,s.actionSubs);return}if(Xi(t)){d.push(t);return}if(J(t)){d.push(t);return}if(!Y(t)&&!e.startsWith(`$`)){let r=t;Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get(){return r},set(e){r=e,l||a(`direct`)}})}});let f=!1;if(d.length>0){let e=!1;k(()=>{if(d.forEach(e=>{Xi(e)?e.value:K(e)}),!e){e=!0;return}if(!l&&!f){f=!0;try{a(`direct`)}finally{f=!1}}})}let p=(c=i==null?void 0:i._plugins)==null?[]:c;for(let e of p)try{e({store:n})}catch(e){}return n}let l=t,u=l.state?l.state():{},d=Ce(u),f=Gi(G(u)),p=()=>{},m=qi(e,d,e=>p(e),()=>{Ki(d,f),p(`patch object`)}),h=!1,g=m.api.$patch;if(m.api.$patch=e=>{h=!0;try{g(e)}finally{h=!1}},typeof m.api.$reset==`function`){let e=m.api.$reset;m.api.$reset=()=>{h=!0;try{e()}finally{h=!1}}}p=Qi(e,m.subs,()=>d);let _={};for(let e of Object.getOwnPropertyNames(m.api)){let t=Object.getOwnPropertyDescriptor(m.api,e);t&&(e===`$state`?Object.defineProperty(_,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return m.api.$state},set(e){h=!0;try{m.api.$state=e}finally{h=!1}}}):Object.defineProperty(_,e,t))}let v=(a=l.getters)==null?{}:a,y={};Object.keys(v).forEach(e=>{let t=v[e];if(typeof t==`function`){let n=Fe(()=>t.call(_,d));y[e]=n,Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return n.value}})}});let b=(o=l.actions)==null?{}:o;Object.keys(b).forEach(e=>{let t=b[e];typeof t==`function`&&(_[e]=Vi(_,e,(...e)=>t.apply(_,e),m.actionSubs))}),Object.keys(d).forEach(e=>{Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return d[e]},set(t){d[e]=t}})});let x=!1,S=!1;k(()=>{if(K(d),!x){x=!0;return}if(!h&&!S){S=!0;try{p(`direct`)}finally{S=!1}}}),n=_;let C=(s=i==null?void 0:i._plugins)==null?[]:s;for(let e of C)try{e({store:n})}catch(e){}return n}}function ea(e){let t={};for(let n in e){let r=e[n];if(typeof r==`function`){t[n]=r;continue}Y(r)?t[n]=r:t[n]=Fe({get:()=>e[n],set:t=>{e[n]=t}})}return t}export{te as addMutationRecorder,y as batch,$ as callHookList,en as callHookReturn,Fn as callUpdateHooks,Fe as computed,ni as createApp,Ji as createStore,hi as createWevuComponent,gi as createWevuScopedSlotComponent,Pe as customRef,mi as defineComponent,$i as defineStore,k as effect,w as effectScope,v as endBatch,qt as getCurrentInstance,T as getCurrentScope,Yt as getCurrentSetupContext,Ge as getDeepWatchStrategy,xe as getReactiveVersion,bi as inject,Si as injectGlobal,nt as isNoSetData,Ee as isRaw,J as isReactive,Y as isRef,be as isShallowReactive,Re as isShallowRef,X as markNoSetData,Te as markRaw,Bi as mergeModels,Br as mountRuntimeInstance,o as nextTick,Oi as normalizeClass,Di as normalizeStyle,Mn as onActivated,wn as onAddToFavorites,vn as onAttached,kn as onBeforeMount,Dn as onBeforeUnmount,An as onBeforeUpdate,Nn as onDeactivated,yn as onDetached,bn as onError,jn as onErrorCaptured,cn as onHide,tn as onLaunch,sn as onLoad,Tn as onMounted,_n as onMoved,nn as onPageNotFound,pn as onPageScroll,dn as onPullDownRefresh,fn as onReachBottom,un as onReady,gn as onResize,mn as onRouteDone,xn as onSaveExitState,E as onScopeDispose,Pn as onServerPrefetch,Sn as onShareAppMessage,Cn as onShareTimeline,on as onShow,hn as onTabItemTap,an as onThemeChange,rn as onUnhandledRejection,ln as onUnload,On as onUnmounted,En as onUpdated,ge as prelinkReactiveTree,yi as provide,xi as provideGlobal,Ce as reactive,Ie as readonly,Ae as ref,Ur as registerApp,ei as registerComponent,F as removeMutationRecorder,zt as resetWevuDefaults,vr as runSetupFunction,Jt as setCurrentInstance,Xt as setCurrentSetupContext,We as setDeepWatchStrategy,Rt as setWevuDefaults,ye as shallowReactive,Le as shallowRef,g as startBatch,x as stop,ea as storeToRefs,Hr as teardownRuntimeInstance,G as toRaw,Be as toRef,Ve as toRefs,Me as toValue,K as touchReactive,He as traverse,ze as triggerRef,je as unref,Ai as useAttrs,zi as useBindModel,Ri as useModel,Mi as useNativeInstance,ji as useSlots,Pi as useTemplateRef,Ke as watch,qe as watchEffect};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wevu",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.6.
|
|
4
|
+
"version": "6.6.15",
|
|
5
5
|
"description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"vue": "^3.5.29",
|
|
70
|
-
"@wevu/compiler": "6.6.
|
|
70
|
+
"@wevu/compiler": "6.6.15"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"dev": "tsdown -w",
|