wevu 6.16.13 → 6.16.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.
@@ -1 +1 @@
1
- import"./chunk-CbfVNrr-.mjs";import{A as e,C as t,D as n,M as r,N as i,P as a,a as o,b as s,d as c,g as l,h as u,i as d,j as f,k as p,l as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,v as S,w as C,x as w,y as T}from"./ref-B6CIXciv.mjs";import{i as E}from"./store-C-7rPMM3.mjs";import{C as D,D as O,E as k,H as A,M as j,N as M,O as N,S as P,T as F,V as I,X as L,_t as R,at as z,b as ee,ct as te,dt as B,et as V,ft as H,it as U,k as ne,lt as re,mt as ie,nt as W,ot as G,pt as ae,rt as oe,st as se,tt as K,ut as ce,w as le,x as ue,y as de}from"./router-Cm3FUnTw.mjs";import{WEVU_ATTRS_KEY as fe,WEVU_EFFECT_SCOPE_KEY as q,WEVU_EXPOSED_KEY as pe,WEVU_HOOKS_KEY as me,WEVU_INLINE_HANDLER as he,WEVU_INLINE_MAP_KEY as J,WEVU_IS_APP_INSTANCE_KEY as ge,WEVU_LAYOUT_BRIDGE_PAGE_KEYS as _e,WEVU_LAYOUT_HOST_BRIDGE_KEY as ve,WEVU_MODEL_HANDLER as ye,WEVU_NATIVE_INSTANCE_KEY as Y,WEVU_ON_BEFORE_UPDATE_HOOK as be,WEVU_ON_LOAD_CALLED_KEY as xe,WEVU_ON_UPDATED_HOOK as Se,WEVU_OWNER_HANDLER as Ce,WEVU_PAGE_LAYOUT_NAME_KEY as we,WEVU_PAGE_LAYOUT_NONE as Te,WEVU_PAGE_LAYOUT_PROPS_KEY as Ee,WEVU_PAGE_LAYOUT_SETTER_KEY as De,WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY as Oe,WEVU_PARENT_INSTANCE_KEY as ke,WEVU_PENDING_PROP_VALUES_KEY as Ae,WEVU_PROPS_KEY as X,WEVU_PROP_KEYS_KEY as je,WEVU_PUBLIC_RUNTIME_KEY as Z,WEVU_READY_CALLED_KEY as Me,WEVU_RESERVED_METHOD_PREFIX as Ne,WEVU_ROUTE_DONE_CALLED_KEY as Pe,WEVU_ROUTE_DONE_IN_TICK_KEY as Fe,WEVU_RUNTIME_APP_KEY as Ie,WEVU_RUNTIME_KEY as Le,WEVU_SCOPED_SLOT_CREATOR_KEY as Re,WEVU_SCOPED_SLOT_OWNER_SEED_KEY as ze,WEVU_SCOPED_SLOT_OWNER_STORE_KEY as Be,WEVU_SETUP_CONTEXT_INSTANCE_KEY as Ve,WEVU_SLOT_NAMES_PROP as He,WEVU_SLOT_OWNER_ID_KEY as Ue,WEVU_SLOT_OWNER_ID_PROP as We,WEVU_SLOT_OWNER_KEY as Ge,WEVU_SLOT_OWNER_PROXY_KEY as Ke,WEVU_SLOT_PROPS_DATA_KEY as qe,WEVU_SLOT_PROPS_KEY as Je,WEVU_SLOT_SCOPE_KEY as Ye,WEVU_TEMPLATE_REFS_CALLBACKS_KEY as Xe,WEVU_TEMPLATE_REFS_KEY as Ze,WEVU_TEMPLATE_REFS_PENDING_KEY as Qe,WEVU_TEMPLATE_REF_MAP_KEY as $e,WEVU_WATCH_STOPS_KEY as et}from"@weapp-core/constants";import{resolveMiniProgramPageKeys as tt}from"@weapp-core/shared";import{wpi as nt}from"@wevu/api";function rt(e,t){return x((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function it(e){return g(e)&&typeof e.value!=`function`}function at(e){if(g(e)){let t=e.dep;if(t){r(t);return}e.value=e.value}}function ot(e,t,n){let r=e[t];return g(r)?r:x((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function st(e){m(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=ot(e,n);return t}function ct(e,t=1/0,n=new Map){if(t<=0||!S(e))return e;if(g(e))return ct(e.value,t-1,n),e;if(e.__r_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=>ct(e,i,n)),e;let a=m(e)&&t!==1/0?T(e):e;for(let t in a)ct(e[t],i,n);return e}function lt(e){G(K(`onMounted`),`onReady`,e)}function ut(e){G(K(`onUpdated`),Se,e)}function dt(e){K(`onBeforeUnmount`),e()}function ft(e){G(K(`onUnmounted`),`onUnload`,e)}function pt(e){K(`onBeforeMount`),e()}function mt(e){G(K(`onBeforeUpdate`),be,e)}function ht(e){let t=K(`onErrorCaptured`);G(t,`onError`,n=>e(n,t,``))}function gt(e){G(K(`onActivated`),`onShow`,e)}function _t(e){G(K(`onDeactivated`),`onHide`,e)}function vt(e){K(`onServerPrefetch`)}function yt(e,t){W(e,t===`before`?be:Se)}let bt=`version`;function xt(e){bt=e}function St(){return bt}function Ct(e){if(typeof e==`function`)return e();if(g(e))return e.value;if(m(e))return e;throw Error(`无效的 watch 源`)}function wt(e){let t=m(e),n=Array.isArray(e)&&!t,r;if(n){let t=e;r=()=>t.map(e=>Ct(e))}else if(typeof e==`function`)r=e;else if(g(e))r=()=>e.value;else if(t)r=()=>e;else throw Error(`无效的 watch 源`);return{getter:r,isMultiSource:n,isReactiveSource:t}}function Tt(e,t,n,r,i){let a=n?t.some(e=>m(e)):r,o=i==null?a:i;if(!(o===!0||typeof o==`number`))return e;let s=typeof o==`number`?o:o?1/0:0;return()=>{let t=e(),r=St();return n&&Array.isArray(t)?t.map(e=>r===`version`&&m(e)?(l(e),e):ct(e,s)):r===`version`&&m(t)?(l(t),t):ct(t,s)}}function Et(e,t,n,r){if(r){r(e,n);return}if(t===`sync`){e();return}if(t===`post`){i(()=>a(e));return}n?e():a(e)}function Dt(e,r,i={}){var a;let o=U(),s=wt(e),c=Tt(s.getter,e,s.isMultiSource,s.isReactiveSource,i.deep),l,u=e=>{l=e},d,f,m=!1,h=0,g=h,_,v=i.once?(e,t,n)=>{r(e,t,n),_()}:r,y=(a=i.flush)==null?`pre`:a,b=e=>{if(!f.active||m||e!==h)return;let t=f();l==null||l();let n=U();se(o);try{v(t,d,u)}finally{se(n)}d=t},x=()=>b(g),S=e=>{g=h,Et(x,y,e,i.scheduler)};f=t(()=>c(),{scheduler:()=>{m||S(!1)},lazy:!0});let C=()=>{l==null||l(),l=void 0,p(f)};return _=C,_.stop=C,_.pause=()=>{m||(m=!0,h+=1)},_.resume=()=>{!m||!f.active||(m=!1,d=f())},i.immediate?b(h):d=f(),n(_),_}function Ot(e,r={}){var i;let a=U(),o,s=e=>{o=e},c,l=!1,u=0,d=u,f=(i=r.flush)==null?`pre`:i,m=e=>{!c.active||l||e!==u||c()},h=()=>m(d),g=e=>{d=u,Et(h,f,e)};c=t(()=>{o==null||o(),o=void 0;let t=U();se(a);try{e(s)}finally{se(t)}},{lazy:!0,scheduler:()=>{l||g(!1)}}),g(!0);let _=()=>{o==null||o(),o=void 0,p(c)},v=_;return v.stop=_,v.pause=()=>{l||(l=!0,u+=1)},v.resume=()=>{!l||!c.active||(l=!1,g(!0))},n(v),v}function kt(e,t={}){return Ot(e,{...t,flush:`post`})}function At(e,t={}){return Ot(e,{...t,flush:`sync`})}const jt=`6.16.13`;function Mt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function Nt(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pt(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Ft(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}function It(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 Lt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Pt(n,a,i);else{let t=e[a];g(t)?t.value=i:e[a]=i}return}if(t[a]){Pt(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),It(e[a],o,i)}function Rt(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function zt(e){return Ft(e)}function Bt(e,t,n,r){return(i,a)=>{let o=Nt(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Rt(e,o),c=e=>{Lt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:zt,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${Mt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}function Vt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ht(e){return Array.isArray(e)||Vt(e)}function Ut(e){if(Array.isArray(e))return e;let t=[];for(let n of Object.keys(e)){let r=Object.getOwnPropertyDescriptor(e,n);!r||typeof r.get==`function`||t.push(r.value)}return t}function Wt(e,t=new WeakSet){return g(e)||m(e)?!0:!e||typeof e!=`object`||t.has(e)||(t.add(e),!Ht(e))?!1:Ut(e).some(e=>Wt(e,t))}function Gt(e,t=new WeakSet){if(g(e)){let n=e.value;m(n)&&l(n),Gt(n,t);return}if(m(e)){l(e),Gt(T(e),t);return}!e||typeof e!=`object`||t.has(e)||!Ht(e)||(t.add(e),Ut(e).forEach(e=>Gt(e,t)))}const Kt=`__wevu_native_bridge__`;function qt(e){try{Object.defineProperty(e,Kt,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Kt]=!0}}function Jt(e){return typeof e==`function`&&!!e[Kt]}function Yt(n){let r=Object.create(null),i=Object.create(null),a=new Set;return{computedRefs:r,computedSetters:i,dirtyComputedKeys:a,createTrackedComputed:(r,i,o)=>{let s,c=!0,l,u={get value(){return c&&(s=l(),c=!1),e(u,`value`),s},set value(e){if(!o)throw Error(`计算属性是只读的`);o(e)}};return y(u),l=t(i,{lazy:!0,scheduler:()=>{c||(c=!0,n.setDataStrategy===`patch`&&n.includeComputed&&a.add(r),f(u,`value`))}}),u},computedProxy:new Proxy({},{get(e,t){if(typeof t==`string`&&r[t])return r[t].value},has(e,t){return typeof t==`string`&&!!r[t]},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(e,t){if(typeof t==`string`&&r[t])return{configurable:!0,enumerable:!0,value:r[t].value}}})}}function Xt(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:f,computedProxy:p}=Yt({includeComputed:a,setDataStrategy:o}),m=d(0),h=(e,t)=>{let n=T(e),r=n[Le],i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Jt(n)},o=n=>!(!n||typeof n!=`object`||n===e||n===t||n===i||a(n,`triggerEvent`)||a(n,`createSelectorQuery`)||a(n,`createIntersectionObserver`)||a(n,`setData`)),s=n[Y];if(o(s))return s;let c=r==null?void 0:r.instance;if(o(c))return c},_=e=>{if(Q(s,e))return;let n=(...n)=>{let r=h(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};qt(n),s[e]=n},v=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(m.value,n===`data`||n===`$state`)return t;if(n===`$computed`)return p;if(Q(s,n))return s[n];if(c[n])return c[n].value;if(Q(i.globalProperties,n))return i.globalProperties[n]}if(!Reflect.has(e,n)){let t=h(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 Pt(l,t,n),!0;if(Reflect.has(e,t)){let i=Reflect.get(e,t,r);return g(i)&&!g(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}let i=h(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]||Q(s,t)))return!0;let n=h(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)),[...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){Pt(l,n,e)}};if(Q(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(v,e);return}e===J&&t&&typeof t==`object`&&(s[e]=t)}),_(`triggerEvent`),_(`createSelectorQuery`),_(`createIntersectionObserver`),_(`setData`),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=f(e,()=>t.call(v));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(v);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(v);a?(l[e]=a,c[e]=f(e,n,a)):c[e]=f(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:p,publicInstance:v,touchSetupMethodsVersion(){m.value+=1}}}function Zt(e){return e!==`patch`&&e!==`diff`}function Qt(e){if(e!==`off`)return t=>{if(e===`fallback`&&!Zt(t.reason))return;let n=typeof t.bytes==`number`?t.bytes:t.estimatedBytes,r=typeof n==`number`?`${n}B`:`unknown`,i=[`mode=${t.mode}`,`reason=${t.reason}`,`pending=${t.pendingPatchKeys}`,`keys=${t.payloadKeys}`,`bytes=${r}`];typeof t.mergedSiblingParents==`number`&&i.push(`mergedParents=${t.mergedSiblingParents}`),typeof t.computedDirtyKeys==`number`&&i.push(`computedDirty=${t.computedDirtyKeys}`);let a=`[wevu:setData] ${i.join(` `)}`;if(Zt(t.reason)){console.warn(a);return}console.info(a)}}const $t=Symbol(`wevu.noSetData`);function $(e){return Object.defineProperty(e,$t,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function en(e){return typeof e==`object`&&!!e&&e[$t]===!0}function tn(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function nn(e,t,n,r,i){let a=_(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(en(a))return;let o=m(a)?T(a):a,s=n&&(m(a)||!Wt(o))?n:void 0;if(r<=0||i.keys<=0)return o;if(s){let e=b(o),t=s.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([nn(r,t,void 0,1/0,{keys:1/0}),nn(n,t,void 0,1/0,{keys:1/0})])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(nn(n,t,void 0,1/0,{keys:1/0}))}),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=[...e];return t.set(o,n),n.map(e=>nn(e,t,void 0,1/0,{keys:1/0}))}let n=[...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=[];t.set(o,e);let a=r-1;for(let r=0;r<o.length;r+=1){let s=nn(o[r],t,n,a,i);e[r]=s===void 0?null:s}return s&&s.set(o,{version:b(o),value:e}),e}let c={};t.set(o,c);let l=r-1;for(let e of Object.keys(o)){if(--i.keys,i.keys<=0)break;let r=nn(o[e],t,n,l,i);r!==void 0&&(c[e]=r)}return s&&s.set(o,{version:b(o),value:c}),c}function rn(e,t=new WeakMap,n){var r,i;let a=(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,o=(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;return nn(e,t,n==null?void 0:n.cache,a,o)}function an(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 on(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(!Q(t,i)||!n(e[i],t[i]))return!1;return!0}function sn(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?an(e,t,sn):tn(e)&&tn(t)?on(e,t,sn):!1}function cn(e){return e===void 0?null:e}function ln(e,t,n,r){if(!sn(e,t)){if(tn(e)&&tn(t)){for(let i of Object.keys(t)){if(!Q(e,i)){r[`${n}.${i}`]=cn(t[i]);continue}ln(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Q(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){an(e,t,sn)||(r[n]=cn(t));return}r[n]=cn(t)}}function un(e,t,n){let r={},i=n==null?void 0:n.skipKeys;for(let n of Object.keys(t))i!=null&&i.has(n)||ln(e[n],t[n],n,r);for(let n of Object.keys(e))i!=null&&i.has(n)||Q(t,n)||(r[n]=null);return r}function dn(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n={},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 fn(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+=fn(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+=fn(a,t-i,n),i>t)return i;return i}function pn(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=fn(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 mn(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=[...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.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=fn(e,1/0,new WeakSet);return h.set(e,n),n}return fn(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Q(p,e))continue;let n=t.filter(e=>Q(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 hn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function gn(e){return e===void 0?null:e}function _n(e){if(Array.isArray(e))return e.map(e=>_n(e));if(!hn(e))return e;let t={};for(let n of Object.keys(e))t[n]=_n(e[n]);return t}function vn(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(!hn(e)||!hn(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(!Q(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function yn(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(!yn(e[i],t[i],n-1,r))return!1;return!0}if(!hn(e)||!hn(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||!Q(t,a)||!yn(e[a],t[a],n-1,r))return!1;return!0}function bn(e,t,n,r,i){var a;let o=(a=i==null?void 0:i.cloneValue)==null?!0:a,s=t.split(`.`).filter(Boolean);if(!s.length)return;let c=e;for(let e=0;e<s.length-1;e++){let t=s[e];(!Q(c,t)||c[t]==null||typeof c[t]!=`object`)&&(c[t]={}),c=c[t]}let l=s[s.length-1];if(r===`delete`)try{delete c[l]}catch(e){c[l]=null}else c[l]=o?_n(n):n}function xn(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l={},u=Number.isFinite(s)?{keys:s}:void 0,d=m(t)?T(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=rn(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=rn(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function Sn(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=[...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}),N=new Map(M);b.clear();let P=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},F=e=>{if(O.has(e))return O.get(e);let t=gn(rn(P(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]=F(e),N.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]=F(e)}let I=0;if(i&&r.size){let e=Object.create(null),t=[...r];r.clear(),I=t.length;for(let r of t){if(!l(r))continue;let t=rn(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?yn(i,t,o,{keys:s}):a===`shallow`?vn(i,t):Object.is(i,t))||(e[r]=gn(t),C[r]=_n(t))}Object.assign(k,e)}let L=dn(k),R=0;if(f){let e=mn({input:L,entryMap:N,getPlainByPath:F,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});R=e.merged,L=dn(e.out)}let z=pn(L,d),ee=z.fallback;if(T({mode:ee?`diff`:`patch`,reason:ee?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(L).length,mergedSiblingParents:R||void 0,computedDirtyKeys:I||void 0,estimatedBytes:z.estimatedBytes,bytes:z.bytes}),ee){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(L).length){for(let[e,t]of Object.entries(L)){let n=N.get(e);n?bn(S,e,t,n.kind===`array`?`set`:n.op,{cloneValue:!1}):bn(S,e,t,`set`,{cloneValue:!1})}if(typeof c.setData==`function`){let e=c.setData(L);e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(L).length})}}function Cn(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:h,mergeSiblingMaxParentBytes:_,mergeSiblingSkipArray:v,elevateTopKeyThreshold:y,toPlainMaxDepth:x,toPlainMaxKeys:S,debug:C,debugWhen:w,debugSampleRate:E,runTracker:D,isMounted:O}=e,k=new WeakMap,A={},j=Object.create(null),M=Object.create(null),N=Object.create(null),P={value:a===`patch`},F=new Map,I=new Set,L=e=>{if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},R=(e,t)=>{if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length?e.every((e,n)=>R(e,t[n])):!1;if(L(e)&&L(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?n.every(n=>Q(t,n)&&R(e[n],t[n])):!1}return!1},z=e=>{let t=g(e)?e.value:e;if(typeof t!=`object`||!t)return t;if(!m(t)&&Wt(t))return{snapshot:rn(t,new WeakMap,{maxDepth:x,maxKeys:S})};let n=m(t)?T(t):t;return{raw:n,version:b(n)}},ee=(e,t)=>Object.is(e,t)?!0:!e||!t||typeof e!=`object`||typeof t!=`object`||!Q(e,`raw`)||!Q(t,`raw`)?e&&t&&typeof e==`object`&&typeof t==`object`&&Q(e,`snapshot`)&&Q(t,`snapshot`)?R(e.snapshot,t.snapshot):!1:e.raw===t.raw&&e.version===t.version,te=e=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=g(i)?i.value:i;!a||typeof a!=`object`||T(a)===e&&n.push(r)}return n},B=e=>{if(!C)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(w===`fallback`&&!t)&&!(E<1&&Math.random()>E))try{C(e)}catch(e){}},V=()=>xn({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:k,toPlainMaxDepth:x,toPlainMaxKeys:S}),H=()=>{let e=m(t)?T(t):t,r={...A},a=new WeakMap,o=new Set,s=new Set,c=new Set;for(let t of Object.keys(e)){if(!u(t))continue;o.add(t);let n=z(e[t]),i=M[t];i&&n&&typeof i==`object`&&typeof n==`object`&&Q(i,`raw`)&&Q(n,`raw`)&&Array.isArray(i.raw)&&Array.isArray(n.raw)&&i.raw!==n.raw&&c.add(t),(!ee(i,n)||!Q(A,t))&&(r[t]=rn(e[t],a,{cache:k,maxDepth:x,maxKeys:S})),M[t]=n}for(let e of Object.keys(M))o.has(e)||(delete M[e],(!i||!Q(n,e))&&delete r[e]);if(!i){for(let e of Object.keys(N))delete N[e];return{snapshot:r,replacedTopLevelKeys:c}}for(let e of Object.keys(n)){if(!u(e))continue;s.add(e);let t=n[e].value,i=z(t);(!ee(N[e],i)||!Q(A,e))&&(r[e]=rn(t,a,{cache:k,maxDepth:x,maxKeys:S})),N[e]=i}for(let t of Object.keys(N))s.has(t)||(delete N[t],(!Q(e,t)||!u(t))&&delete r[t]);return{snapshot:r,replacedTopLevelKeys:c}},U=(e=`diff`)=>{var t;let o=a===`diff`?H():void 0,s=(t=o==null?void 0:o.snapshot)==null?V():t,c=o?(()=>{let e={};for(let t of o.replacedTopLevelKeys)e[t]=s[t];return{...un(A,s,{skipKeys:o.replacedTopLevelKeys}),...e}})():un(A,s);if(A=s,P.value=!1,F.clear(),a===`patch`&&i){j=Object.create(null);for(let e of Object.keys(n))u(e)&&(j[e]=s[e]);r.clear()}if(Object.keys(c).length){if(typeof l.setData==`function`){let e=l.setData(c);e&&typeof e.then==`function`&&e.catch(()=>{})}B({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(c).length})}};return{job:e=>{if(O())if(D(),a===`patch`&&!P.value){if(!(F.size>0||I.size>0||i&&r.size>0)){U(`diff`);return}Sn({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:h,mergeSiblingMaxParentBytes:_,mergeSiblingSkipArray:v,elevateTopKeyThreshold:y,toPlainMaxDepth:x,toPlainMaxKeys:S,plainCache:k,pendingPatches:F,fallbackTopKeys:I,latestSnapshot:A,latestComputedSnapshot:j,needsFullSnapshot:P,emitDebug:B,runDiffUpdate:U})}else U(P.value?`needsFullSnapshot`:`diff`)},mutationRecorder:(e,t)=>{if(!O())return;if(e.root!==t){let t=te(e.root);if(t.length)for(let e of t)I.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)I.add(t);else P.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&F.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?V():{...A},cloneLatestSnapshot:()=>({...A}),getLatestSnapshot:()=>A}}function wn(e){var t,n,r,i,a,o,s;let c=(t=e==null?void 0:e.includeComputed)==null?!0:t,l=(n=e==null?void 0:e.suspendWhenHidden)==null?!1:n,u=(r=e==null?void 0:e.strategy)==null?`diff`:r,d=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,f=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,p=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,m=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,h=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,g=(i=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:i,_=(a=e==null?void 0:e.computedCompare)==null?u===`patch`?`deep`:`reference`:a,v=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,y=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,b=e==null?void 0:e.prelinkMaxDepth,x=e==null?void 0:e.prelinkMaxKeys,S=e==null?void 0:e.debug,C=(o=e==null?void 0:e.diagnostics)==null?`off`:o,w=(s=e==null?void 0:e.debugWhen)==null?`fallback`:s,T=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,E=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,D=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,O=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,k=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,A=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:c,suspendWhenHidden:l,setDataStrategy:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,computedCompare:_,computedCompareMaxDepth:v,computedCompareMaxKeys:y,prelinkMaxDepth:b,prelinkMaxKeys:x,debug:S,diagnostics:C,debugWhen:w,debugSampleRate:T,elevateTopKeyThreshold:E,toPlainMaxDepth:D,toPlainMaxKeys:O,pickSet:k,omitSet:A,shouldIncludeKey:e=>!(k&&!k.has(e)||A&&A.has(e))}}function Tn(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 En(e){return typeof e==`function`?e():e==null?{}:e}function Dn(e){let{data:n,resolvedComputed:r,resolvedMethods:i,appConfig:o,setDataOptions:d}=e;return e=>{let f=En(n);if(f&&typeof f==`object`&&!Q(f,X))try{Object.defineProperty(f,X,{value:v(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let g=c(f),_=r,y=i,b=!0,x=[],S=new Set;Object.keys(g).forEach(e=>{let t=g[e];Wt(t)&&S.add(e)});let{includeComputed:C,setDataStrategy:E,maxPatchKeys:D,maxPayloadBytes:O,mergeSiblingThreshold:k,mergeSiblingMaxInflationRatio:A,mergeSiblingMaxParentBytes:j,mergeSiblingSkipArray:M,computedCompare:N,computedCompareMaxDepth:P,computedCompareMaxKeys:F,prelinkMaxDepth:I,prelinkMaxKeys:L,debug:R,diagnostics:z,debugWhen:ee,debugSampleRate:te,elevateTopKeyThreshold:B,toPlainMaxDepth:V,toPlainMaxKeys:H,shouldIncludeKey:U}=wn(d),ne=Qt(z),re=R||ne?e=>{typeof R==`function`&&R(e),ne==null||ne(e)}:void 0,ie=z===`always`?`always`:ee,{boundMethods:W,computedRefs:G,computedSetters:ae,dirtyComputedKeys:oe,computedProxy:se,publicInstance:K,touchSetupMethodsVersion:ce}=Xt({state:g,computedDefs:_,methodDefs:y,appConfig:o,includeComputed:C,setDataStrategy:E}),le=e==null?{setData:()=>{}}:e,ue=T(g),de,q=Cn({state:g,computedRefs:G,dirtyComputedKeys:oe,includeComputed:C,setDataStrategy:E,computedCompare:N,computedCompareMaxDepth:P,computedCompareMaxKeys:F,currentAdapter:le,shouldIncludeKey:U,maxPatchKeys:D,maxPayloadBytes:O,mergeSiblingThreshold:k,mergeSiblingMaxInflationRatio:A,mergeSiblingMaxParentBytes:j,mergeSiblingSkipArray:M,elevateTopKeyThreshold:B,toPlainMaxDepth:V,toPlainMaxKeys:H,debug:re,debugWhen:ie,debugSampleRate:te,runTracker:()=>de==null?void 0:de(),isMounted:()=>b}),pe=()=>q.job(ue),me=e=>q.mutationRecorder(e,ue);de=t(()=>{l(g);let e=g[X];m(e)&&l(e);let t=g[fe];m(t)&&l(t),S.forEach(e=>{let t=g[e];Gt(t)})},{lazy:!0,scheduler:()=>a(pe)}),pe(),x.push(Tn(()=>p(de))),E===`patch`&&(u(g,{shouldIncludeTopKey:U,maxDepth:I,maxKeys:L}),s(me),x.push(Tn(()=>w(me))),x.push(Tn(()=>h(g))));function he(e,t,n){let r=Dt(e,(e,n)=>t(e,n),n);return x.push(r),Tn(()=>{r();let e=x.indexOf(r);e>=0&&x.splice(e,1)},r)}let J={get state(){return g},get proxy(){return K},get methods(){return W},get computed(){return se},get adapter(){return le},bindModel:Bt(K,g,G,ae),watch:he,snapshot:()=>q.snapshot(),unmount:()=>{b&&(b=!1,x.forEach(e=>{try{e()}catch(e){}}),x.length=0)}};try{Object.defineProperty(J,`__wevu_touchSetupMethodsVersion`,{value:ce,configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_touchSetupMethodsVersion=ce}try{Object.defineProperty(J,`__wevu_flushSetupSnapshotSync`,{value:pe,configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_flushSetupSnapshotSync=pe}try{Object.defineProperty(J,`__wevu_cloneLatestSnapshot`,{value:q.cloneLatestSnapshot,configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_cloneLatestSnapshot=q.cloneLatestSnapshot}try{Object.defineProperty(J,`__wevu_trackSetupReactiveKey`,{value:e=>{S.add(e)},configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_trackSetupReactiveKey=e=>{S.add(e)}}return J}}const On=`__wevuDefaultsScope`;let kn={};function An(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function jn(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=An(e.setData),i=An(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=An(e.options),o=An(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Mn(e,t){return jn(e,t)}function Nn(e,t){return{app:jn(e.app,t.app),component:jn(e.component,t.component)}}function Pn(e){kn=Nn(kn,e)}function Fn(){kn={}}function In(e){return Mn(kn.app,e)}function Ln(e){return Mn(kn.component,e)}const Rn=/&amp;/g,zn=/&quot;/g,Bn=/&#34;/g,Vn=/&apos;/g,Hn=/&#39;/g,Un=/&lt;/g,Wn=/&gt;/g;function Gn(e){return e.replace(Rn,`&`).replace(zn,`"`).replace(Bn,`"`).replace(Vn,`'`).replace(Hn,`'`).replace(Un,`<`).replace(Wn,`>`)}function Kn(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}}const qn=/[^a-z0-9]+/gi,Jn=/^-+|-+$/g;function Yn(e){return e.trim().replace(qn,`-`).replace(Jn,``).toLowerCase()}const Xn=/-([a-z0-9])/g;function Zn(e,t){let n=Yn(typeof(t==null?void 0:t.type)==`string`?t.type:``);if(!n)return;let r=n.replace(Xn,(e,t)=>t.toUpperCase());if(r)return`${e}${r[0].toUpperCase()}${r.slice(1)}`}const Qn={wvEventDetail:[`wd`,`wvEventDetail`],wvHandler:[`wh`,`wvHandler`],wvInlineId:[`wi`,`wvInlineId`]};function $n(e,t,n){var r;let i=(r=Qn[t])==null?[t]:r;for(let t of i){let r=Zn(t,n);if(r&&(e==null?void 0:e[r])!==void 0)return e[r]}for(let t of i)if((e==null?void 0:e[t])!==void 0)return e[t]}function er(e,t,n){return $n(e,t,n)}function tr(e,t){let n=er(e,`wvEventDetail`,t);return n===!0||n===1||n===`1`||n===`true`}function nr(e,t){if(!tr(t,e))return e;if(!(!e||typeof e!=`object`||!(`detail`in e)))return e.detail}function rr(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=g(e)?e.value:e;for(let e of n){if(g(r)&&(r=r.value),r==null)return;r=r[e]}return g(r)?r.value:r}function ir(e){if(typeof e!=`object`||!e||g(e)||m(e))return e;try{return c(e)}catch(t){return e}}function ar(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=nr(n,c),u=er(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=Kn(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=rr(e,o.path);t=i==null?void 0:i[r]}else continue;t!==void 0&&(n[i]=ir(t))}catch(e){}}let o=t.fn(e,n,l);return typeof o==`function`?o.call(e,l):o}}let d=er(c,`wvHandler`,n),f=typeof t==`string`&&t?t:typeof d==`string`?d:void 0;if(!f)return;let p=er(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(Gn(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)}function or(){let e=P();if(e)return e;let t=ce();return t[t.length-1]}function sr(e){return e===Te?!1:e}function cr(){var e,t;if(!z())throw Error(`usePageLayout() 必须在 setup() 的同步阶段调用`);let n=U(),r=n==null||(e=n.__wevu)==null?void 0:e.state,i=c({name:sr(r==null?void 0:r[we]),props:{...(t=r==null?void 0:r[Ee])==null?{}:t}});return n&&(n.__wevuPageLayoutState=i),R(i)}function lr(e,t,n){let r=e.__wevuPageLayoutState;r&&(r.name=t,r.props={...n})}function ur(e){var t,n;let r=e.__wevuPageLayoutState,i=(t=e.__wevu)==null?void 0:t.state;!r||!i||(r.name=sr(i[we]),r.props={...(n=i[Ee])==null?{}:n})}function dr(e,t){let n=U(),r=n==null?void 0:n[De];if(typeof r==`function`){r(e,t);return}let i=or(),a=i==null?void 0:i[De];if(typeof a==`function`){a(e,t);return}throw Error(`setPageLayout() 未找到当前页面实例。请在页面 setup()、事件回调或当前页面上下文中调用。`)}function fr(e){return e===!1?Te:e}function pr(){let e=globalThis;return e[Be]instanceof Map||(e[Be]=new Map),typeof e[ze]!=`number`&&(e[ze]=0),{globalObject:e,ownerStore:e[Be]}}function mr(){let{globalObject:e}=pr();return e[ze]+=1,`wv${e[ze]}`}function hr(e,t,n){var r;let{ownerStore:i}=pr(),a=(r=i.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(a.snapshot=t,a.proxy=n,i.set(e,a),a.subscribers.size)for(let e of a.subscribers)try{e(t,n)}catch(e){}}function gr(e){let{ownerStore:t}=pr();t.delete(e)}function _r(e,t){var n;let{ownerStore:r}=pr(),i=(n=r.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return i.subscribers.add(t),r.set(e,i),()=>{let n=r.get(e);n&&n.subscribers.delete(t)}}function vr(e){var t;let{ownerStore:n}=pr();return(t=n.get(e))==null?void 0:t.proxy}function yr(e){var t;let{ownerStore:n}=pr();return(t=n.get(e))==null?void 0:t.snapshot}function br(e){let t=e.__wevu_cloneLatestSnapshot;return typeof t==`function`?t():typeof e.snapshot==`function`?e.snapshot():{}}function xr(e,t,n){var r;try{t.state[Ue]=n}catch(e){}try{e[Ue]=n}catch(e){}try{let t=e.data;t&&typeof t==`object`&&(t[Ue]=n)}catch(e){}let i=br(t),a=(r=e[X])==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;hr(n,i,t.proxy)}function Sr(e){return e.kind===`component`}function Cr(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return g(r)?r.value:r},set(e,t,n,r){let i=e[t];return g(i)&&!g(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function wr(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=Cr(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 Tr(e,t){if(!t||typeof t!=`object`)return e;let n=t;return $(new Proxy(e,{get(e,t,r){if(Reflect.has(e,t))return Reflect.get(e,t,r);let i=n[t];return typeof i==`function`?i.bind(n):i},set(e,t,r,i){return Reflect.has(e,t)?Reflect.set(e,t,r,i):(t in n,n[t]=r,!0)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return[...new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)])]},getOwnPropertyDescriptor(e,t){if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);let r=Object.getOwnPropertyDescriptor(n,t);return r&&{...r,configurable:!0}}}))}function Er(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n[pe];return r&&typeof r==`object`?wr(n,r):(t=n[Z])!=null&&t.proxy?n[Z].proxy:e}function Dr(e){return e[$e]}function Or(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function kr(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}:g(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function Ar(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=$(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function jr(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();if(!ie(`globalCreateSelectorQuery`))return null;let n=H();if(n&&typeof n.createSelectorQuery==`function`){let e=n.createSelectorQuery();return e?B().selectorQueryScopeByIn&&typeof e.in==`function`?e.in(t):e:null}return null}function Mr(e,t,n,r,i){let a=jr(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 Nr(e,t,n){return $({selector:t,boundingClientRect:r=>Mr(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>Mr(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>Mr(e,t,n,e=>e.fields(r),i),node:r=>Mr(e,t,n,e=>e.node(),r)})}function Pr(e,t){let n=e;if(!n)return t.inFor?$([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return $((Array.isArray(r)?r:[]).map((n,r)=>Tr(Nr(e,t.selector,{multiple:!0,index:r}),Er(n))))}return $([])}let r=Nr(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?Tr(r,Er(n.selectComponent(t.selector))):r}function Fr(e,t,n){return t.inFor?$((Array.isArray(n)?n:[]).map((n,r)=>Nr(e,t.selector,{multiple:!0,index:r}))):n?Nr(e,t.selector,{multiple:!1}):null}function Ir(e,t){let n=e[Ze];if(!n||!n.length){t==null||t();return}if(!e[Me]){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=Dr(e),i=n.filter(e=>!Sr(e)),a=n.filter(e=>Sr(e)).map(t=>({binding:t,value:Pr(e,t)})),o=n=>{var i,a;let o=Ar(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=kr(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?$(t.values):t.values[0]:t.hasFor?$([]):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=jr(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:Fr(e,n.binding,i)}});o([...a,...n])})}function Lr(e,t){let n=e[Ze];if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e[Xe])==null?[]:r;n.push(t),e[Xe]||Object.defineProperty(e,Xe,{value:n,configurable:!0,enumerable:!1,writable:!0})}e[Qe]||(e[Qe]=!0,i(()=>{e[Qe]=!1,Ir(e,()=>{let t=e[Xe];!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function Rr(e){var t,n;let r=e[Ze];if(!r||!r.length)return;let i=Ar(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=Dr(e);for(let t of r){let n=kr(e,t),r=t.inFor?$([]):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]}const zr=[`triggerEvent`,`createSelectorQuery`,`createIntersectionObserver`,`setData`,`setUpdatePerformanceListener`];function Br(){return Object.freeze(Object.create(null))}const Vr=()=>[];function Hr(e){return Array.isArray(e)?[...new Set(e.filter(e=>typeof e==`string`&&e.length>0))]:!e||typeof e!=`object`?[]:Object.entries(e).filter(([,e])=>!!e).map(([e])=>e)}function Ur(e){if(!Q(e,He))return Br();let t=()=>Hr(e[He]),n=e=>typeof e==`string`&&t().includes(e);return new Proxy(Object.create(null),{get(e,t){if(n(t))return Vr},has(e,t){return n(t)},ownKeys(){return t()},getOwnPropertyDescriptor(e,t){if(n(t))return{configurable:!0,enumerable:!0,value:Vr}},set(){return!1},deleteProperty(){return!1}})}function Wr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function Gr(e){try{return $(e)}catch(t){return e}}function Kr(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Q(e,`bubbles`)||Q(e,`composed`)||Q(e,`capturePhase`)}function qr(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(Kr(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}function Jr(e,t,n){let r=e==null?void 0:e.state,i=r&&typeof r==`object`?T(r):void 0,a=e==null?void 0:e.proxy,o=e=>{let r=e[n];if(typeof r!=`function`)return!1;if(Jt(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[Y]:void 0;if(s(c))return c;let l=e==null?void 0:e.instance;if(s(l))return l}function Yr(e,t,n){qt(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function Xr(e,t){let n=e[Ve];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=Jr(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Jt(i))return e};Yr(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))}),Yr(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=H();if(!ie(`globalCreateSelectorQuery`)||!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||!B().selectorQueryScopeByIn||typeof o.in!=`function`)return o;let s=(n=Jr(t,e,`setData`))==null?e:n;return o.in(s)}),Yr(r,`createIntersectionObserver`,n=>{var r;let a=i(`createIntersectionObserver`);if(a&&typeof a.createIntersectionObserver==`function`)return a.createIntersectionObserver(n==null?{}:n);let o=H();if(!ie(`globalCreateIntersectionObserver`)||!o||typeof o.createIntersectionObserver!=`function`)return;let s=(r=Jr(t,e,`setData`))==null?e:r;return B().intersectionObserverScopeByParameter?o.createIntersectionObserver(s,n==null?{}:n):o.createIntersectionObserver(n==null?{}:n)}),Yr(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}),Yr(r,`setUpdatePerformanceListener`,e=>{let t=i(`setUpdatePerformanceListener`);if(t&&typeof t.setUpdatePerformanceListener==`function`)return t.setUpdatePerformanceListener(e)});let a=Gr(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,Ve,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[Ve]=a}return a}function Zr(e){return!e||typeof e!=`object`?!1:typeof e.triggerEvent==`function`||typeof e.createSelectorQuery==`function`||typeof e.createIntersectionObserver==`function`||typeof e.setData==`function`}function Qr(e,t,n){let r=t==null?void 0:t[n];if(typeof r!=`function`)return!1;if(Jt(r))return!0;let i=e==null?void 0:e.proxy;return typeof(i==null?void 0:i[n])==`function`&&r===i[n]}function $r(e,t){if(!e||!Zr(t)||t===e.proxy)return;let n=t;if(Qr(e,n,`triggerEvent`)||Qr(e,n,`createSelectorQuery`)||Qr(e,n,`createIntersectionObserver`)||Qr(e,n,`setData`))return;let r=e.state;if(!(!r||typeof r!=`object`))try{Object.defineProperty(r,Y,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(e){r[Y]=n}}function ei(e,t){try{let n=t.methods;for(let t of Object.keys(n))zr.includes(t)||typeof e[t]!=`function`&&(e[t]=function(...n){var r,i;let a=(r=this[Z])==null?e[Z]:r;$r(a,this);let o=a==null||(i=a.methods)==null?void 0:i[t];if(typeof o==`function`)return o.apply(a.proxy,n)})}catch(e){}}let ti=e=>e.startsWith(`layouts/`);function ni(e){let t=e.is;return typeof t==`string`&&ti(t,e)}function ri(e){if(ni(e))return;let t=e[ke];if(t&&typeof t==`object`)return t;let n=e.selectOwnerComponent;if(typeof n==`function`)try{let t=n.call(e);if(t&&t!==e&&typeof t==`object`&&t.__wevu)return t}catch(e){}let r=ce(),i=r[r.length-1];if(i&&i!==e&&typeof i==`object`&&i.__wevu)return i}function ii(e){if(!ni(e))return;let t=ce(),n=t[t.length-1];n&&n!==e&&typeof n==`object`&&n.__wevu&&k(e,n)}function ai(e,t){e[Ie]=t,O(e,t,ri(e)),ii(e)}function oi(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 si(e){return e.includes(`:`)?e.replaceAll(`:`,`-`).toLowerCase():e}function ci(e){let{target:t,runtime:n,runtimeWithDefaults:r,runtimeState:i,runtimeProxy:a,setup:o,syncRuntimeProps:s,attachRuntimeProxyProps:c}=e,l=t.properties||{},u=i&&typeof i==`object`?i[X]:void 0,d=u&&typeof u==`object`?u:v({});s(d,l),i&&typeof i==`object`&&c(i,d);try{Object.defineProperty(t,X,{value:d,configurable:!0,enumerable:!1,writable:!1})}catch(e){t[X]=d}let f=v(Object.create(null)),p=new Set(Array.isArray(t[je])?t[je]:[]),h=e=>typeof i==`object`&&!!i&&Q(i,e);(()=>{let e=t.properties&&typeof t.properties==`object`?t.properties:void 0;for(let t of Object.keys(f))(!e||!Q(e,t)||p.has(t)||h(t))&&delete f[t];if(e)for(let[t,n]of Object.entries(e))p.has(t)||h(t)||(f[t]=n)})();try{Object.defineProperty(t,fe,{value:f,configurable:!0,enumerable:!1,writable:!1})}catch(e){t[fe]=f}let g=Xr(t,r),_=Ur(d);try{Object.defineProperty(i,`$slots`,{value:_,configurable:!0,enumerable:!1,writable:!1})}catch(e){i.$slots=_}let y=Gr({props:d,runtime:r,state:i,proxy:a,bindModel:n.bindModel.bind(r),watch:n.watch.bind(r),instance:g,emit:(e,...t)=>{let{detail:n,options:r}=qr(t),i=si(e);g.triggerEvent(i,n,r)},expose:e=>{t[pe]=e},attrs:f,slots:_}),b=C(!0);t[q]=b,se(t),te(y);try{let e=b.run(()=>oi(o,d,y)),t=!1;if(e&&typeof e==`object`){let r=m(n.state)?T(n.state):n.state;Object.keys(e).forEach(i=>{let a=e[i];if(typeof a==`function`)n.methods[i]=(...e)=>a.apply(n.proxy,e),t=!0;else{if(Wt(a)){var o;(o=n.__wevu_trackSetupReactiveKey)==null||o.call(n,i)}if(p.has(i)){let e=a;try{Object.defineProperty(r,i,{configurable:!0,enumerable:!1,get(){let t=r[X];return t&&typeof t==`object`&&Q(t,i)?t[i]:e},set(t){e=t;let n=r[X];if(!(!n||typeof n!=`object`))try{n[i]=t}catch(e){}}})}catch(e){n.state[i]=a}return}n.state[i]=a}})}if(t){var x;(x=n.__wevu_touchSetupMethodsVersion)==null||x.call(n)}}catch(e){throw b.stop(),t[q]=void 0,e}finally{te(void 0),se(void 0)}}function li(e,t){try{Object.defineProperty(e,X,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e[X]=t}}function ui(e,t){try{Object.defineProperty(e,Y,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e[Y]=t}}function di(e,t){try{Object.defineProperty(e,Le,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e[Le]=t}}function fi(e,t){try{Object.defineProperty(e,`instance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function pi(e){let t=e[Ve],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Jt(n))return n;let r=e.setData;if(typeof r==`function`&&!Jt(r))return r}function mi(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function hi(e,t,n){try{return t.call(e,n)}catch(t){let n=mi(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function gi(e,t){let n=Object.keys(e);for(let r of n)if(!Q(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function _i(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function vi(e){var t,n,r;let i={devOnly:!0,sampleWindowMs:1e3,maxCalls:30,coolDownMs:5e3,warnOnPageScroll:!0,pageScrollCoolDownMs:2e3};return e===void 0||e===!1?{...i,enabled:!1}:e===!0?{...i,enabled:!0}:_i(e)?{enabled:(t=e.enabled)==null?!0:t,devOnly:(n=e.devOnly)==null?i.devOnly:n,sampleWindowMs:typeof e.sampleWindowMs==`number`?Math.max(100,Math.floor(e.sampleWindowMs)):i.sampleWindowMs,maxCalls:typeof e.maxCalls==`number`?Math.max(1,Math.floor(e.maxCalls)):i.maxCalls,coolDownMs:typeof e.coolDownMs==`number`?Math.max(0,Math.floor(e.coolDownMs)):i.coolDownMs,warnOnPageScroll:(r=e.warnOnPageScroll)==null?i.warnOnPageScroll:r,pageScrollCoolDownMs:typeof e.pageScrollCoolDownMs==`number`?Math.max(0,Math.floor(e.pageScrollCoolDownMs)):i.pageScrollCoolDownMs}:{...i,enabled:!1}}function yi(){let e=re();if((e==null?void 0:e.debug)===!0||(e==null?void 0:e.envVersion)===`develop`)return!0;let t=H();try{var n;if((t==null||(n=t.getAccountInfoSync)==null||(n=n.call(t))==null||(n=n.miniProgram)==null?void 0:n.envVersion)===`develop`)return!0}catch(e){}return!1}function bi(e){var t,n;let r=vi(e.option);if(!r.enabled)return;let i=yi();if(r.devOnly&&!i)return;let a=(t=e.now)==null?(()=>Date.now()):t,o=(n=e.logger)==null?(e=>{var t;let n=(t=globalThis)==null||(t=t.console)==null?void 0:t.warn;typeof n==`function`&&n(e)}):n,s=[],c=-1/0,l=-1/0;return()=>{var t,n;let i=a();s.push(i);let u=i-r.sampleWindowMs;for(;s.length>0&&s[0]<u;)s.shift();let d=(t=(n=e.isInPageScrollHook)==null?void 0:n.call(e))==null?!1:t;r.warnOnPageScroll&&d&&(r.pageScrollCoolDownMs<=0||i-l>=r.pageScrollCoolDownMs)&&(l=i,o(`[wevu:setData] 检测到 onPageScroll 回调内调用 setData(${e.targetLabel})。建议改用 IntersectionObserver 监听可见性,或对滚动更新做节流。`)),!(s.length<=r.maxCalls)&&(r.coolDownMs>0&&i-c<r.coolDownMs||(c=i,o(`[wevu:setData] 检测到高频 setData 调用:${s.length} 次/${r.sampleWindowMs}ms(${e.targetLabel})。建议合并更新或降低调用频率。`)))}}function xi(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=xi(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 Si(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 Ci(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=xi(o,e,n);if(!t)continue;let s=Si(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function wi(e){typeof e.route!=`string`||!e.route||(e[De]=(t,n)=>{var r;let i=(r=e.__wevu)==null?void 0:r.state;if(!i||typeof i!=`object`)return;i[we]=fr(t);let a=t===!1||n==null?{}:n;i[Ee]=a,lr(e,t,a)})}function Ti(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m;if(e.__wevu)return e.__wevu;ai(e,t),Gr(e);let h=mr(),g=!!(!(t==null||(a=t.__wevuSetDataOptions)==null)&&a.suspendWhenHidden),_=typeof e.route==`string`&&e.route?`page:${e.route}`:typeof e.is==`string`&&e.is?`component:${e.is}`:`unknown-target`,v=bi({option:t==null||(o=t.__wevuSetDataOptions)==null?void 0:o.highFrequencyWarning,targetLabel:_,isInPageScrollHook:()=>{var t;return Number((t=e[Oe])==null?0:t)>0}}),y=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=pi(e);if(a)return hi(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=pi(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,hi(e,r,n)}},r})(e):{setData(t){let n=pi(e);if(n)return hi(e,n,t)}},b,x=!0,S,C=(e,t)=>({...e==null?{}:e,...t}),w=()=>{var t;if(!b)return;let n=br(b),r=(t=e[X])==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;hr(h,n,b.proxy)},T={...y,setData(t){if(v==null||v(),g&&!x){S=C(S,t),w(),Lr(e);return}let n=y.setData(t);return w(),Lr(e),n},__wevu_setVisibility(t){if(x=t,!x||!S)return;let n=S;S=void 0;let r=y.setData(n);return w(),Lr(e),r}},E=t.mount({...T});b=E,fi(E,e);let D=(s=E==null?void 0:E.proxy)==null?{}:s,O=(c=E==null?void 0:E.state)==null?{}:c;O&&typeof O==`object`&&(di(O,E),ui(O,e));let k=(l=E==null?void 0:E.computed)==null?Object.create(null):l;if(!(E!=null&&E.methods))try{E.methods=Object.create(null)}catch(e){}let A=(u=E==null?void 0:E.methods)==null?Object.create(null):u,j=(d=E==null?void 0:E.watch)==null?(()=>Wr()):d,M=(f=E==null?void 0:E.bindModel)==null?(()=>{}):f,N={...E==null?{}:E,state:O,proxy:D,methods:A,computed:k,watch:j,bindModel:M,snapshot:(p=E==null?void 0:E.snapshot)==null?(()=>Object.create(null)):p,unmount:(m=E==null?void 0:E.unmount)==null?(()=>{}):m},P=N,F={__wevu_flushSetupSnapshotSync:E.__wevu_flushSetupSnapshotSync,__wevu_touchSetupMethodsVersion:E.__wevu_touchSetupMethodsVersion,__wevu_trackSetupReactiveKey:E.__wevu_trackSetupReactiveKey};for(let[e,t]of Object.entries(F))t&&Object.defineProperty(N,e,{configurable:!0,enumerable:!1,value:t,writable:!0});if(Object.defineProperty(e,Z,{value:N,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=N,wi(e),xr(e,N,h),n){let t=Ci(N,n,e);t.length&&(e[et]=t)}if(r){var I;ci({target:e,runtime:E,runtimeWithDefaults:N,runtimeState:O,runtimeProxy:D,setup:r,syncRuntimeProps:gi,attachRuntimeProxyProps:li}),(I=P.__wevu_flushSetupSnapshotSync)==null||I.call(P),w()}return ei(e,E),E}function Ei(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function Di(e,t){var n;let r=(n=e.__wevu)==null?void 0:n.adapter;r&&typeof r.__wevu_setVisibility==`function`&&r.__wevu_setVisibility(t)}function Oi(e){var t;let n=e.__wevu,r=e[Ue];r&&gr(r),Rr(e),n&&e[me]&&W(e,`onUnload`,[]),e[me]&&(e[me]=void 0);let i=e[et];if(Array.isArray(i))for(let e of i)try{e()}catch(e){}e[et]=void 0,(t=e[q])==null||t.stop(),e[q]=void 0,n&&n.unmount(),delete e.__wevu,Z in e&&delete e[Z]}const ki=`__wevuAppGlobalListeners`,Ai=`__wevuOnMemoryWarningListener`;function ji(e){let t=e[me],n=!!(t!=null&&t.onMemoryWarning);if(!ie(`appMemoryWarningListener`)){delete e[Ai];return}let r=H(),i=r==null?void 0:r.onMemoryWarning,a=r==null?void 0:r.offMemoryWarning;if(typeof i!=`function`)return;let o=e[Ai];if(typeof o==`function`&&typeof a==`function`)try{a(o)}catch(e){}if(!n){delete e[Ai];return}let s=t=>{W(e,`onMemoryWarning`,[t])};e[Ai]=s,i(s)}function Mi(e,t){var n,r;let{hookName:i,onApiName:a,offApiName:o,capabilityName:s,userHandler:c}=t,l=e[me],u=!!(l!=null&&l[i]),d=(r=(n=e)[ki])==null?n[ki]=Object.create(null):r,f=d[i];if(!ie(s)){delete d[i],delete e[i];return}let p=H(),m=p==null?void 0:p[a],h=p==null?void 0:p[o];if(typeof f==`function`&&typeof h==`function`)try{h(f)}catch(e){}if(!u&&typeof c!=`function`){delete d[i];return}let g=(...t)=>{W(e,i,t),typeof c==`function`&&c.apply(e,t)};e[i]=g,d[i]=g,typeof m==`function`&&m(g)}function Ni(e,t){Mi(e,{hookName:`onError`,onApiName:`onError`,offApiName:`offError`,capabilityName:`appErrorListener`,userHandler:t.onError}),Mi(e,{hookName:`onPageNotFound`,onApiName:`onPageNotFound`,offApiName:`offPageNotFound`,capabilityName:`appPageNotFoundListener`,userHandler:t.onPageNotFound}),Mi(e,{hookName:`onUnhandledRejection`,onApiName:`onUnhandledRejection`,offApiName:`offUnhandledRejection`,capabilityName:`appUnhandledRejectionListener`,userHandler:t.onUnhandledRejection}),Mi(e,{hookName:`onThemeChange`,onApiName:`onThemeChange`,offApiName:`offThemeChange`,capabilityName:`appThemeChangeListener`,userHandler:t.onThemeChange})}function Pi(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[he]||(s[he]=function(e){var t,n;let r=this.__wevu;return ar((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n[J])});let c=s.onLaunch,l=s.onError,u=s.onPageNotFound,d=s.onUnhandledRejection,f=s.onThemeChange;s.onLaunch=function(...t){this[ge]=!0,Ti(this,e,n,r),ji(this),Ni(this,{onError:l,onPageNotFound:u,onUnhandledRejection:d,onThemeChange:f}),W(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let p=s.onShow;s.onShow=function(...e){W(this,`onShow`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onHide;s.onHide=function(...e){W(this,`onHide`,e),typeof m==`function`&&m.apply(this,e)},delete s.onError,delete s.onPageNotFound,delete s.onUnhandledRejection,delete s.onThemeChange;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 Fi(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:(()=>({}))}}function Ii(e,t){let{enableOnSaveExitState:n,enableOnPullDownRefresh:r,enableOnReachBottom:i,enableOnPageScroll:a,enableOnRouteDone:o,enableOnTabItemTap:s,enableOnResize:c,enableOnShareAppMessage:l,enableOnShareTimeline:u,enableOnAddToFavorites:d,effectiveOnSaveExitState:f,effectiveOnPullDownRefresh:p,effectiveOnReachBottom:m,effectiveOnPageScroll:h,effectiveOnRouteDone:g,effectiveOnTabItemTap:_,effectiveOnResize:v,effectiveOnShareAppMessage:y,effectiveOnShareTimeline:b,effectiveOnAddToFavorites:x,hasHook:S}=t;n&&(e.onSaveExitState=function(...e){let t=oe(this,`onSaveExitState`,e);return t===void 0?f.apply(this,e):t}),r&&(e.onPullDownRefresh=function(...e){if(W(this,`onPullDownRefresh`,e),!S(this,`onPullDownRefresh`))return p.apply(this,e)}),i&&(e.onReachBottom=function(...e){if(W(this,`onReachBottom`,e),!S(this,`onReachBottom`))return m.apply(this,e)}),a&&(e.onPageScroll=function(...e){return F(this,()=>{if(W(this,`onPageScroll`,e),!S(this,`onPageScroll`))return h.apply(this,e)})}),o&&(e.onRouteDone=function(...e){if(!this[Fe]&&(this[Fe]=!0,Promise.resolve().then(()=>{this[Fe]=!1}),this[Pe]=!0,W(this,`onRouteDone`,e),!S(this,`onRouteDone`)))return g.apply(this,e)}),s&&(e.onTabItemTap=function(...e){if(W(this,`onTabItemTap`,e),!S(this,`onTabItemTap`))return _.apply(this,e)}),c&&(e.onResize=function(...e){if(W(this,`onResize`,e),!S(this,`onResize`))return v.apply(this,e)}),l&&(e.onShareAppMessage=function(...e){let t=oe(this,`onShareAppMessage`,e);return t===void 0?y.apply(this,e):t}),u&&(e.onShareTimeline=function(...e){let t=oe(this,`onShareTimeline`,e);return t===void 0?b.apply(this,e):t}),d&&(e.onAddToFavorites=function(...e){let t=oe(this,`onAddToFavorites`,e);return t===void 0?x.apply(this,e):t})}function Li(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:O,effectiveOnShareAppMessage:k,effectiveOnShareTimeline:A,effectiveOnAddToFavorites:j,hasHook:M}=e,N={onLoad(...e){if(!this[xe]&&(this[xe]=!0,Ti(this,t,n,r),Ei(this),l&&ue({enableOnShareAppMessage:v,enableOnShareTimeline:y}),W(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&D(this),Oi(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(ee(),de(this),this[xe]||N.onLoad.call(this,le(this)),ue({enableOnShareAppMessage:v,enableOnShareTimeline:y}),this[Pe]=!1),Di(this,!0),W(this,`onShow`,e),typeof o==`function`)return o.apply(this,e)},onHide(...e){if(l&&D(this),Di(this,!1),W(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this[xe]||N.onLoad.call(this,le(this)),ue({enableOnShareAppMessage:v,enableOnShareTimeline:y})),!this[Me]){if(this[Me]=!0,l&&m&&h){let e=this;setTimeout(()=>{if(!e[Pe]){var t;(t=N.onRouteDone)==null||t.call(e)}},0)}Lr(this,()=>{W(this,`onReady`,e),typeof c==`function`&&c.apply(this,e)});return}if(typeof c==`function`)return c.apply(this,e)}};return Ii(N,{enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:v,enableOnShareTimeline:y,enableOnAddToFavorites:b,effectiveOnSaveExitState:x,effectiveOnPullDownRefresh:S,effectiveOnReachBottom:C,effectiveOnPageScroll:w,effectiveOnRouteDone:T,effectiveOnTabItemTap:E,effectiveOnResize:O,effectiveOnShareAppMessage:k,effectiveOnShareTimeline:A,effectiveOnAddToFavorites:j,hasHook:M}),N}function Ri(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r[he]||(r[he]=function(e){var t,n;let r=this.__wevu;return ar((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n[J])}),r[ye]||(r[ye]=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=Ft(e);try{a.bindModel(i).update(o)}catch(e){}}),!r[Ce]&&typeof(n==null?void 0:n[Ce])==`function`&&(r[Ce]=n[Ce]);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[Le]}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(`createIntersectionObserver`)||r(`setData`)||!(typeof t.triggerEvent==`function`||typeof t.createSelectorQuery==`function`||typeof t.createIntersectionObserver==`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,Y,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i[Y]=t}}for(let e of i){if(e===J||e.startsWith(Ne))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 zi(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(zi(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=zi(i,t);return n}function Bi(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function Vi(e){var t;let{methods:n={},lifetimes:r={},pageLifetimes:i={},options:a={},...o}=e,s=o.onLoad,c=o.onUnload,l=o.onShow,u=o.onHide,d=o.onReady,f=o.onSaveExitState,p=o.onPullDownRefresh,m=o.onReachBottom,h=o.onPageScroll,g=o.onRouteDone,_=o.onTabItemTap,v=o.onResize,y=o.onShareAppMessage,b=o.onShareTimeline,x=o.onAddToFavorites,S=(t=o.features)==null?{}:t,C=[s,c,l,u,d,f,p,m,h,g,_,v,y,b,x].some(e=>typeof e==`function`),w=!!o.__wevu_isPage||Object.keys(S==null?{}:S).length>0||C,T={...o},E=new Set([`data`,`behaviors`,`relations`,`externalClasses`,`options`,`properties`,`observers`,`pureDataPattern`,`virtualHost`,`definitionFilter`,`export`,`__wevuTemplateRefs`,`__wevuLayoutHosts`,`setupLifecycle`,`features`,`__wevu_isPage`]),D=[];for(let[e,t]of Object.entries(T))E.has(e)||typeof t!=`function`&&(D.push([e,t]),delete T[e]);let O=e=>{if(D.length){for(let[t,n]of D)if(!Q(e,t))try{e[t]=zi(n)}catch(e){}}},k=new Set([`data`,`export`,`definitionFilter`,`onLoad`,`onUnload`,`onShow`,`onHide`,`onReady`,`onSaveExitState`,`onPullDownRefresh`,`onReachBottom`,`onPageScroll`,`onRouteDone`,`onTabItemTap`,`onResize`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]),A={};for(let[e,t]of Object.entries(T))typeof t!=`function`||k.has(e)||(A[e]=t,delete T[e]);let j=T.__wevuTemplateRefs;delete T.__wevuTemplateRefs;let M=T.__wevuLayoutHosts;delete T.__wevuLayoutHosts;let N=T.observers,P=T.setupLifecycle===`created`?`created`:`attached`;delete T.setupLifecycle;let F=T.created;return delete T.features,delete T.created,delete T.onLoad,delete T.onUnload,delete T.onShow,delete T.onHide,delete T.onReady,{userMethods:n,userLifetimes:r,userPageLifetimes:i,userOptions:a,restOptions:T,topLevelMethods:A,templateRefs:j,layoutHosts:M,userObservers:N,setupLifecycle:P,legacyCreated:F,isPage:w,features:S,userOnLoad:s,userOnUnload:c,userOnShow:l,userOnHide:u,userOnReady:d,userOnSaveExitState:f,userOnPullDownRefresh:p,userOnReachBottom:m,userOnPageScroll:h,userOnRouteDone:g,userOnTabItemTap:_,userOnResize:v,userOnShareAppMessage:y,userOnShareTimeline:b,userOnAddToFavorites:x,applyExtraInstanceFields:O}}function Hi(e){var t;let n=e.__wevu,r=e[Ue];if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e[X])==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;hr(r,i,n.proxy)}function Ui(e){let{restOptions:t,userObservers:n}=e,r=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],i=new Set(r),a=e=>{try{Object.defineProperty(e,je,{value:r,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[je]=r}},o=e=>{let t=e[fe];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&&Q(r,t)},r=e.properties,a=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!a||!Q(a,e)||i.has(e)||n(e))try{delete t[e]}catch(e){}if(!a){Hi(e);return}for(let[e,r]of Object.entries(a))if(!(i.has(e)||n(e)))try{t[e]=r}catch(e){}Hi(e)},s=e=>{let t=e[X],n=e.properties,r=e[Ae];if(t&&typeof t==`object`&&n&&typeof n==`object`){let i=n,a=Object.keys(t);for(let e of a)if(!Q(i,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(i)){let i=r&&Q(r,e)?r[e]:n;try{t[e]=i}catch(e){}}if(r){for(let[e,n]of Object.entries(r))if(!Q(i,e))try{t[e]=n}catch(e){}}Hi(e)}r&&delete e[Ae],o(e)},c=(e,t,n)=>{var r,i;let a=e[X];if(!a||typeof a!=`object`)return;try{a[t]=n}catch(e){}let s=(i=(r=e)[Ae])==null?r[Ae]=Object.create(null):i;s[t]=n,Hi(e),o(e)},l={};if(r.length)for(let e of r)l[e]=function(t){c(this,e,t)};let u={...n==null?{}:n};for(let[e,t]of Object.entries(l)){let n=u[e];typeof n==`function`?u[e]=function(...e){n.apply(this,e),t.apply(this,e)}:u[e]=t}let d=u[`**`];return u[`**`]=function(...e){typeof d==`function`&&d.apply(this,e),s(this)},{attachWevuPropKeys:a,syncWevuPropsFromInstance:s,finalObservers:u}}const Wi=new Map;function Gi(){let e=ce();return e[e.length-1]}function Ki(e){return Array.from(new Set(Array.isArray(e)?e:[e])).filter(e=>typeof e==`string`&&e.length>0)}function qi(e){return tt(e)}function Ji(e){return e&&typeof e.__wevuSetPageLayout==`function`?e:Gi()}function Yi(e){var t,n;if(!e||typeof e!=`object`)return;let r=(t=e[Z])==null||(t=t.state)==null?void 0:t[Y];if(r&&typeof r==`object`)return r;let i=(n=e.$state)==null?void 0:n[Y];return i&&typeof i==`object`?i:e[Y]&&typeof e[Y]==`object`?e[Y]:e}function Xi(e){return typeof e==`function`?e():g(e)?e.value:e}function Zi(e,t){return e.find(e=>e.key===t)}function Qi(e,t){let n=e==null?void 0:e.selectComponent;if(typeof n!=`function`)return null;try{var r;return(r=n.call(e,t))==null?null:r}catch(e){return null}}function $i(e,t){var n,r,i,a,o,s,c,l;if(!e.refName)return null;let u=Dr(t),d=(n=(r=(i=(a=t[Z])==null||(a=a.state)==null?void 0:a.$refs)==null?(o=t.__wevu)==null||(o=o.state)==null?void 0:o.$refs:i)==null?(s=t.$state)==null?void 0:s.$refs:r)==null?t.$refs:n,f=(c=u==null||(l=u.get(e.refName))==null?void 0:l.value)==null?d==null?void 0:d[e.refName]:c;if(Array.isArray(f)){var p;return(p=f[0])==null?null:p}return f==null?null:f}function ea(e,t){let n=Yi(t);return Object.assign(n&&typeof n==`object`?Object.create(n):{},{selectComponent(r){let i=Zi(e,r);if(!i)return null;if(i.kind===`component`||!i.kind){var a,o;return $i(i,t)||((a=(o=Qi(n,i.selector))==null?Qi(Gi(),i.selector):o)==null?null:a)}return null}})}function ta(e,t){let n=t==null?U():t,r=Ji(n),i=qi(r);if(!n||!r||i.length===0)return!1;for(let t of i){var a;let r=(a=Wi.get(t))==null?new Map:a;for(let t of Ki(e))r.set(t,n);Wi.set(t,r)}return n[_e]=i,!0}function na(e,t){var n;let r=t==null?U():t,i=Ji(r),a=(n=r==null?void 0:r[_e])==null?qi(i):n;if(!r||!Array.isArray(a)||a.length===0)return!1;let o=!1;for(let t of a){let n=Wi.get(t);if(n){for(let t of Ki(e))n.get(t)===r&&(n.delete(t),o=!0);n.size===0&&Wi.delete(t)}}return delete r[_e],o}function ra(e,t){var n,r;let i=qi((n=Gi())==null?Ji(t):n).map(t=>{var n;return(n=Wi.get(t))==null?void 0:n.get(e)}).find(Boolean);return(r=i==null?t:i)==null?U():r}function ia(e,t={}){var n,r;let i=ra(e,(n=t.context)==null?t.fallbackContext:n),a=i==null||(r=i.selectComponent)==null?void 0:r.call(i,e);return a==null?null:a}function aa(e,t={}){var n,r;let i=(n=t.retries)==null?20:n,a=(r=t.interval)==null?16:r,o=ia(e,t);return o||i<=0?Promise.resolve(o):new Promise(n=>{setTimeout(()=>{n(aa(e,{...t,retries:i-1}))},a)})}function oa(e,t={}){if(!z())throw Error(`useLayoutBridge() 必须在 setup() 的同步阶段调用`);let n=U(),r=Ki(e),i=t.resolveComponent,a=Yi(n),o=Object.assign(a&&typeof a==`object`?Object.create(a):{},{selectComponent(e){var t,a,o;if(!r.includes(e))return null;let s=i==null?void 0:i(e);if(s!==void 0)return s;let c=Yi(n),l=c==null||(t=c.selectComponent)==null?void 0:t.call(c,e);if(l)return l;let u=Gi();return(a=u==null||(o=u.selectComponent)==null?void 0:o.call(u,e))==null?null:a}});ta(r,o),j(()=>{ta(r,o)}),M(()=>{na(r,o)})}function sa(e,t){if(!e.length)return null;let n=t==null?U():t;if(!n)return null;let r=ea(e,n);return ta(e.map(e=>e.key),r),r}function ca(e,t){if(!e.length)return!1;let n=t==null?U():t;return n?na(e.map(e=>e.key),n):!1}function la(e){oa(Object.keys(e),{resolveComponent(t){return Xi(e[t])}})}function ua(e){let{runtimeApp:t,watch:n,setup:r,restOptions:i,pageLifecycleHooks:a,finalObservers:o,userLifetimes:s,userPageLifetimes:c,finalMethods:l,finalOptions:u,applyExtraInstanceFields:d,templateRefs:f,layoutHosts:p,attachWevuPropKeys:m,setupLifecycle:h,syncWevuPropsFromInstance:g,isPage:_,legacyCreated:v,getRuntimeOwnerLabel:y}=e,b={},x=e=>{if(!Array.isArray(p)||!p.length||e[ve])return;let t=sa(p,e);t&&(e[ve]=t)},S=e=>{_&&(e[De]=(t,n)=>{var r;let i=(r=e.__wevu)==null?void 0:r.state;if(!i||typeof i!=`object`)return;i[we]=fr(t);let a=t===!1||n==null?{}:n;i[Ee]=a,lr(e,t,a)})};if(_)for(let e of[`onReachBottom`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=a[e];typeof t==`function`&&typeof l[e]!=`function`&&(b[e]=function(...e){return t.apply(this,e)})}Component({...i,...a,observers:o,lifetimes:{...s,created:function(...e){if(d(this),Array.isArray(f)&&f.length&&Object.defineProperty(this,Ze,{value:f,configurable:!0,enumerable:!1,writable:!1}),m(this),h===`created`){try{Ti(this,t,n,r,{deferSetData:!0})}catch(e){let t=y(this);throw Error(`[wevu] mount runtime failed in created (${t}): ${e instanceof Error?e.message:String(e)}`)}g(this),S(this)}typeof v==`function`&&v.apply(this,e),typeof s.created==`function`&&s.created.apply(this,e)},moved:function(...e){W(this,`onMoved`,e),typeof s.moved==`function`&&s.moved.apply(this,e)},attached:function(...e){if(d(this),Array.isArray(f)&&f.length&&!this[Ze]&&Object.defineProperty(this,Ze,{value:f,configurable:!0,enumerable:!1,writable:!1}),m(this),h!==`created`||!this.__wevu)try{Ti(this,t,n,r)}catch(e){let t=y(this);throw Error(`[wevu] mount runtime failed in attached (${t}): ${e instanceof Error?e.message:String(e)}`)}g(this),S(this),x(this),h===`created`&&Ei(this),W(this,`onAttached`,e),typeof s.attached==`function`&&s.attached.apply(this,e)},ready:function(...e){if(_&&typeof a.onReady==`function`){a.onReady.call(this,...e),typeof s.ready==`function`&&s.ready.apply(this,e);return}if(!this[Me]){this[Me]=!0,g(this),Lr(this,()=>{W(this,`onReady`,e),typeof s.ready==`function`&&s.ready.apply(this,e)});return}typeof s.ready==`function`&&s.ready.apply(this,e)},detached:function(...e){if(W(this,`onDetached`,e),_&&typeof a.onUnload==`function`){a.onUnload.call(this,...e),typeof s.detached==`function`&&s.detached.apply(this,e);return}Rr(this),Array.isArray(p)&&p.length&&this[ve]&&(ca(p,this[ve]),delete this[ve]),Oi(this),typeof s.detached==`function`&&s.detached.apply(this,e)},error:function(...e){W(this,`onError`,e),typeof s.error==`function`&&s.error.apply(this,e)}},pageLifetimes:{...c,show:function(...e){if(_&&typeof a.onShow==`function`){a.onShow.call(this,...e),typeof c.show==`function`&&c.show.apply(this,e);return}Di(this,!0),W(this,`onShow`,e),typeof c.show==`function`&&c.show.apply(this,e)},hide:function(...e){if(_&&typeof a.onHide==`function`){a.onHide.call(this,...e),typeof c.hide==`function`&&c.hide.apply(this,e);return}Di(this,!1),W(this,`onHide`,e),typeof c.hide==`function`&&c.hide.apply(this,e)},resize:function(...e){if(_&&typeof a.onResize==`function`){a.onResize.call(this,...e),typeof c.resize==`function`&&c.resize.apply(this,e);return}W(this,`onResize`,e),typeof c.resize==`function`&&c.resize.apply(this,e)},routeDone:function(...e){if(_&&typeof a.onRouteDone==`function`){a.onRouteDone.call(this,...e),typeof c.routeDone==`function`&&c.routeDone.apply(this,e);return}W(this,`onRouteDone`,e),typeof c.routeDone==`function`&&c.routeDone.apply(this,e)}},methods:{...b,...l},options:u})}function da(e,t,n,r,i){var a;let{userMethods:o,userLifetimes:s,userPageLifetimes:c,userOptions:l,restOptions:u,topLevelMethods:d,templateRefs:f,layoutHosts:p,userObservers:m,setupLifecycle:h,legacyCreated:g,isPage:_,features:v,userOnLoad:y,userOnUnload:b,userOnShow:x,userOnHide:S,userOnReady:C,userOnSaveExitState:w,userOnPullDownRefresh:T,userOnReachBottom:E,userOnPageScroll:D,userOnRouteDone:O,userOnTabItemTap:k,userOnResize:A,userOnShareAppMessage:j,userOnShareTimeline:M,userOnAddToFavorites:N,applyExtraInstanceFields:P}=Vi(i),{enableOnPullDownRefresh:F,enableOnReachBottom:I,enableOnPageScroll:L,enableOnRouteDone:R,enableOnRouteDoneFallback:z,enableOnTabItemTap:ee,enableOnResize:te,enableOnShareAppMessage:B,enableOnShareTimeline:V,enableOnAddToFavorites:H,enableOnSaveExitState:U,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:ie,effectiveOnPageScroll:W,effectiveOnRouteDone:G,effectiveOnTabItemTap:ae,effectiveOnResize:oe,effectiveOnShareAppMessage:se,effectiveOnShareTimeline:K,effectiveOnAddToFavorites:ce}=Fi({features:v,userOnSaveExitState:w,userOnPullDownRefresh:T,userOnReachBottom:E,userOnPageScroll:D,userOnRouteDone:O,userOnTabItemTap:k,userOnResize:A,userOnShareAppMessage:j,userOnShareTimeline:M,userOnAddToFavorites:N}),le=(e,t)=>{let n=e[me];if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=u.export;u.export=function(){var t;let n=(t=this[pe])==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let ue={multipleSlots:(a=l.multipleSlots)==null?!0:a,...l},{attachWevuPropKeys:de,syncWevuPropsFromInstance:fe,finalObservers:q}=Ui({restOptions:u,userObservers:m}),{finalMethods:he}=Ri({userMethods:{...d,...o},runtimeMethods:t});ua({runtimeApp:e,watch:n,setup:r,restOptions:u,pageLifecycleHooks:Li({runtimeApp:e,watch:n,setup:r,userOnLoad:y,userOnUnload:b,userOnShow:x,userOnHide:S,userOnReady:C,isPage:_,enableOnSaveExitState:U,enableOnPullDownRefresh:F,enableOnReachBottom:I,enableOnPageScroll:L,enableOnRouteDone:R,enableOnRouteDoneFallback:z,enableOnTabItemTap:ee,enableOnResize:te,enableOnShareAppMessage:B,enableOnShareTimeline:V,enableOnAddToFavorites:H,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:ie,effectiveOnPageScroll:W,effectiveOnRouteDone:G,effectiveOnTabItemTap:ae,effectiveOnResize:oe,effectiveOnShareAppMessage:se,effectiveOnShareTimeline:K,effectiveOnAddToFavorites:ce,hasHook:le}),finalObservers:q,userLifetimes:s,userPageLifetimes:c,finalMethods:he,finalOptions:ue,applyExtraInstanceFields:P,templateRefs:f,layoutHosts:p,attachWevuPropKeys:de,setupLifecycle:h,syncWevuPropsFromInstance:fe,isPage:_,legacyCreated:g,getRuntimeOwnerLabel:Bi})}function fa(e){let{[On]:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,...c}=e.__wevuDefaultsScope===`component`?e:In(e),l=i==null?{}:i,u=r==null?{}:r,d=new Set,f=new Set,p=!1,m={globalProperties:{}},h={mount:Dn({data:n,resolvedComputed:u,resolvedMethods:l,appConfig:m,setDataOptions:a}),use(e,...t){if(!e||d.has(e))return h;if(d.add(e),typeof e==`function`)e(h,...t);else if(typeof e.install==`function`)e.install(h,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return h},provide(e,t){return ne(h,e,t),h},onUnmount(e){if(typeof e!=`function`)throw TypeError(`onUnmount 只接受函数`);return p?(e(),h):(f.add(e),h)},unmount(){if(!p){p=!0;for(let e of f)e();f.clear()}},config:m,version:jt},g=typeof App==`function`;try{N(h),Object.defineProperty(h,`__wevuSetDataOptions`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(e){h.__wevuSetDataOptions=a}if(g){let e=H(),t=`__wevuAppRegistered`;e&&e[t]||(e&&(e[t]=!0),Pi(h,i==null?{}:i,o,s,c))}return h}const pa=`__wevu_allowNullPropInput`,ma=`allowNullPropInput`,ha=new Map([[String,String],[Number,Number],[Boolean,Boolean],[Object,Object],[Array,Array],[`String`,String],[`Number`,Number],[`Boolean`,Boolean],[`Object`,Object],[`Array`,Array],[null,null],[`null`,null],[`Null`,null]]);function ga(e){return ha.get(e)}function _a(e){if(e===void 0)return[];let t=Array.isArray(e)?e:[e],n=[];t.forEach(e=>{let t=ga(e);t!==void 0&&(n.includes(t)||n.push(t))});let r=n.filter(e=>e!==null);return r.length>0?r:(n.includes(null),[null])}function va(e,t){let n=_a(t);if(n.length!==0&&(e.type=n[0],n.length>1)){let t=[];for(let e of n.slice(1))t.includes(e)||t.push(e);t.length>0&&(e.optionalTypes=t)}}function ya(e,t){if(t===void 0||e.type===t)return;let n=Array.isArray(e.optionalTypes)?[...e.optionalTypes]:[];n.includes(t)||(n.push(t),e.optionalTypes=n)}function ba(e){if(!Array.isArray(e))return[];let t=[];return e.forEach(e=>{let n=ga(e);n==null||t.includes(n)||t.push(n)}),t}function xa(e,t){if(e===void 0)return;if(e===null)return{type:null};if(Array.isArray(e)||typeof e==`function`){let n={};return va(n,e),t&&n.type!==null&&ya(n,null),Q(n,`type`)||(n.type=null),n}if(typeof e!=`object`)return e;let n={...e};if(`type`in n){var r;let e=_a(n.type);n.type=(r=e[0])==null?null:r;let t=ba(n.optionalTypes);for(let n of e.slice(1))n!==null&&!t.includes(n)&&t.push(n);t.length>0?n.optionalTypes=t:delete n.optionalTypes}return Q(n,`type`)||(n.type=null),t&&n.type!==null&&ya(n,null),n}function Sa(e,t){let n={};return Object.entries(e).forEach(([e,r])=>{let i=xa(r,t);i!==void 0&&(n[e]=i)}),n}function Ca(e,t){let n={};return e&&Object.entries(e).forEach(([e,r])=>{if(r!==void 0){if(r===null){n[e]={type:null};return}if(Array.isArray(r)||typeof r==`function`){let i={};va(i,r),t&&i.type!==null&&ya(i,null),Q(i,`type`)||(i.type=null),n[e]=i;return}if(typeof r==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(r).length===0){n[e]={type:Object,value:{}};return}let i={};if(`type`in r&&r.type!==void 0&&va(i,r.type),Array.isArray(r.optionalTypes)){let e=r.optionalTypes.map(e=>ga(e)).filter(e=>e!=null);if(e.length>0){let t=Array.isArray(i.optionalTypes)?i.optionalTypes:[];for(let n of e)n!==i.type&&(t.includes(n)||t.push(n));t.length>0&&(i.optionalTypes=t)}}`observer`in r&&(typeof r.observer==`function`||typeof r.observer==`string`)&&(i.observer=r.observer);let a=`default`in r?r.default:r.value;a!==void 0&&(i.value=typeof a==`function`?a():a),t&&i.type!==null&&ya(i,null),Q(i,`type`)||(i.type=null),n[e]=i}}}),n}function wa(e,t,n){var r;let i=!!((r=e[pa])==null?e[ma]:r),{[pa]:a,[ma]:o,...s}=e,c=e.properties,l=n==null?c&&typeof c==`object`?c:void 0:n,u=!!(t||l),d=e=>{let t={...e==null?{}:e};return u?(Q(t,We)||(t[We]={type:String,value:``}),Q(t,Ye)||(t[Ye]={type:null,value:null}),Q(t,He)||(t[He]={type:null,value:null}),t):t};if(l){let{properties:e,...n}=s,r=l?i?Sa(l,i):l:void 0,a=Ca(t,i);return{...n,properties:d({...a,...r})}}return{...s,properties:d(Ca(t,i))}}const Ta=/&amp;/g,Ea=/&quot;/g,Da=/&#34;/g,Oa=/&apos;/g,ka=/&#39;/g,Aa=/&lt;/g,ja=/&gt;/g;function Ma(e){return e.replace(Ta,`&`).replace(Ea,`"`).replace(Da,`"`).replace(Oa,`'`).replace(ka,`'`).replace(Aa,`<`).replace(ja,`>`)}function Na(e){var t,n,r,i;let a=er((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(Ma(a))}catch(e){o=[]}}return Array.isArray(o)||(o=[]),o.map(t=>t===`$event`?e:t)}function Pa(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 Fa(e){var t,n,r,i;return(t=(n=e==null||(r=e.__wevu)==null?void 0:r.proxy)==null?e==null||(i=e[Z])==null?void 0:i.proxy:n)==null?e:t}function Ia(e,t){if(!t||Object.keys(t).length===0)return;let n=Fa(e),r={};for(let[e,i]of Object.entries(t))try{let t;typeof i==`function`?t=i.call(n):typeof(i==null?void 0:i.get)==`function`&&(t=i.get.call(n)),t!==void 0&&(r[e]=t)}catch(e){}return r}function La(e){var t,n;e==null||(t=e.__wevu)==null||(n=t.__wevu_flushSetupSnapshotSync)==null||n.call(t)}function Ra(e,t){La(e);let n=Ia(e,t);n&&Object.keys(n).length>0&&typeof(e==null?void 0:e.setData)==`function`&&e.setData(n)}function za(e,t,n){var r,i,a;let o=Q(n==null?{}:n,Ye)?n[Ye]:e==null||(r=e.properties)==null?void 0:r[Ye],s=Q(n==null?{}:n,Je)?n[Je]:e==null||(i=e.properties)==null?void 0:i[Je],c=Pa(o),l=Pa(s),u={...c,...l},d=e==null||(a=e.__wevu)==null?void 0:a.state;d&&typeof d==`object`&&(d[qe]=u),typeof(e==null?void 0:e.setData)==`function`&&e.setData({[qe]:u}),Ra(e,t)}function Ba(e,t){var n;e[Ke]=t;let r=e==null?void 0:e.data;if(r&&typeof r==`object`)try{Object.defineProperty(r,Ke,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){r[Ke]=t}let i=e==null||(n=e.__wevu)==null?void 0:n.state;i&&typeof i==`object`&&(i[Ke]=t)}function Va(e,t,n,r){var i;Ba(e,n);let a=e==null||(i=e.__wevu)==null?void 0:i.state;a&&typeof a==`object`&&(a[Ge]=t||{}),typeof(e==null?void 0:e.setData)==`function`&&e.setData({[Ge]:t||{}}),Ra(e,r)}function Ha(e,t,n){if(!t){typeof(e==null?void 0:e.__wvOwnerUnsub)==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerUnsub=void 0,e.__wvOwnerBoundId=``,Ba(e,void 0);return}let r=(t,r)=>{Va(e,t,r,n)};e.__wvOwnerBoundId!==t&&(typeof e.__wvOwnerUnsub==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerBoundId=t,e.__wvOwnerUnsub=_r(t,r));let i=yr(t);i&&r(i,vr(t))}function Ua(e){var t,n,r,i;return(t=(n=e==null||(r=e.properties)==null?void 0:r[We])==null?e==null||(i=e.properties)==null?void 0:i[Ue]:n)==null?``:t}function Wa(e,t){za(e,t);let n=Ua(e);n&&Ha(e,n,t)}function Ga(){let e={[Ge]:{},[qe]:{}};return Object.defineProperty(e,Ke,{value:void 0,configurable:!0,enumerable:!1,writable:!0}),e}function Ka(e){let t=e==null?void 0:e.computed,n={options:{virtualHost:!0},setData:{omit:[Ue,We,Ke]},properties:{[We]:{type:String,value:``,observer(e){Ha(this,e||``,t)}},[Ue]:{type:String,value:``,observer(e){Ha(this,e||``,t)}},[Je]:{type:null,value:null,observer(e){za(this,t,{[Je]:e})}},[Ye]:{type:null,value:null,observer(e){za(this,t,{[Ye]:e})}}},data:Ga,lifetimes:{attached(){Wa(this,t)},ready(){Wa(this,t)},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerBoundId=``,Ba(this,void 0)}},methods:{[Ce](e){var t,n,r,i,a;let o=this[Ke],s=ar(o,void 0,e,(t=this.__wevu)==null||(t=t.methods)==null?void 0:t[J]);if(s!==void 0)return s;if(!o)return;let c=er((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=Na(e);return l.apply(o,u)}}};return e!=null&&e.computed&&Object.keys(e.computed).length>0&&(n.computed=e.computed),e!=null&&e.inlineMap&&Object.keys(e.inlineMap).length>0&&(n.methods={...n.methods,[J]:e.inlineMap}),n}function qa(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ja(e){return typeof e!=`object`||!e||g(e)||m(e)||Array.isArray(e)?!0:qa(e)}function Ya(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t[je])?t[je]:[]),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=m(s)?T(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(Wt(i)){var u;e==null||(u=e.__wevu_trackSetupReactiveKey)==null||u.call(e,r)}if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c[X];return t&&typeof t==`object`&&Q(t,r)?t[r]:e},set(t){e=t;let n=c[X];if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!Ja(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 Xa;function Za(){let e=ae();if(!e)return;let t=e;Xa&&t[Re]!==Xa&&(t[Re]=Xa)}function Qa(e){Za();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Ln(e),u=fa({data:n,computed:r,methods:i,setData:a,[On]:`component`}),d=typeof s==`function`?((e,t)=>{let n=oi(s,e,t);return n&&t&&Ya(t.runtime,t.instance,n),n}):void 0,f=typeof n==`function`?n():n,p=wa(f===void 0?l:{...l,data:f},c),m={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:p};return da(u,i==null?{}:i,o,d,p),{__wevu_runtime:u,__wevu_options:m}}function $a(e){var t;Za();let{properties:n,props:r,...i}=e;Qa(wa({...i,allowNullPropInput:(t=i.allowNullPropInput)==null?!0:t,__wevu_allowNullPropInput:!0},r,n))}function eo(e){$a(Ka(e))}Xa=eo,Za();const to=[`dispose`,`abort`,`cancel`,`stop`,`disconnect`,`destroy`,`close`];function no(e){if(e){if(typeof e==`function`)return e;for(let t of to){let n=e[t];if(typeof n==`function`)return()=>n.call(e)}}}function ro(){if(!U())throw Error(`useDisposables() 必须在 setup() 的同步阶段调用`);let e=new Set,t=!1,n=n=>{let r=no(n);if(!r)return()=>{};if(t){try{r()}catch(e){}return()=>{}}return e.add(r),()=>{e.delete(r)}},r=()=>{if(t)return;t=!0;let n=[...e];e.clear();for(let e of n)try{e()}catch(e){}};return V(r),M(r),{add:n,dispose:r,setTimeout:(e,t,...r)=>{let i=setTimeout(e,t,...r);return n(()=>{clearTimeout(i)}),i},setInterval:(e,t,...r)=>{let i=setInterval(e,t,...r);return n(()=>{clearInterval(i)}),i}}}function io(e,t){let n=e,r=n.createIntersectionObserver;if(typeof r==`function`)return r.call(n,t);if(!ie(`globalCreateIntersectionObserver`))return;let i=H(),a=i==null?void 0:i.createIntersectionObserver;if(typeof a==`function`)return B().intersectionObserverScopeByParameter?a.call(i,e,t):a.call(i,t)}function ao(e,t){var n;if(t===!1||typeof e.relativeToViewport!=`function`)return e;let r=t&&typeof t==`object`?t:void 0;return(n=e.relativeToViewport(r))==null?e:n}function oo(e){var t;let n=(t=e.context)==null?U():t;if(!n||!z())throw Error(`useElementIntersectionObserver() 必须在 setup() 的同步阶段调用`);let r=null,i=()=>{if(r){try{r.disconnect()}catch(e){}r=null}},a=()=>{var t,a;i();let s=o(e.selector);if(!(e.enabled==null||o(e.enabled))||!s)return null;let c=io(n,o((t=e.observerOptions)==null?{}:t));return!c||typeof c.observe!=`function`?null:(r=ao(c,(a=e.relativeToViewport)==null?!0:a),r.observe(s,t=>{var n;return(n=e.onObserve)==null?void 0:n.call(e,t)}),r)};return Dt(()=>{var t;return[o(e.selector),e.enabled==null?!0:o(e.enabled),o((t=e.observerOptions)==null?{}:t),e.relativeToViewport]},()=>{a()},{deep:!0}),lt(a),ft(i),V(i),M(i),{disconnect:i,observe:a,get observer(){return r}}}function so(e,t){let n=e,r=n.createIntersectionObserver;if(typeof r==`function`)return r.call(n,t)}function co(e,t){if(!ie(`globalCreateIntersectionObserver`))return;let n=H(),r=n==null?void 0:n.createIntersectionObserver;if(typeof r==`function`)return B().intersectionObserverScopeByParameter?r.call(n,e,t):r.call(n,t)}function lo(e={}){var t;let n=U();if(!n)throw Error(`useIntersectionObserver() 必须在 setup() 的同步阶段调用`);let r=(t=so(n,e))==null?co(n,e):t;if(!r||typeof r.disconnect!=`function`)throw Error(`当前运行环境不支持 IntersectionObserver,请检查基础库版本或平台能力`);let i=!1,a=()=>{if(!i){i=!0;try{r.disconnect()}catch(e){}}};return V(a),M(a),r}function uo(e){var t,n;return e?(t=(n=e.split(`?`)[0])==null?void 0:n.replace(/^\/+/,``))==null?``:t:``}function fo(){let e=ce(),t=e[e.length-1],n=e.length||1;return{canGoBack:n>1,currentRoute:uo(t==null?void 0:t.route),stackLength:n}}function po(e={}){var t;if(!z())throw Error(`usePageStack() 必须在 setup() 的同步阶段调用`);let n=fo(),r=d(n.currentRoute),i=d(n.stackLength),a=E(()=>i.value>1),o=()=>{let e=fo();r.value=e.currentRoute,i.value=e.stackLength};return((t=e.autoRefresh)==null||t)&&(j(o),L(o)),{canGoBack:a,currentRoute:r,refresh:o,stackLength:i}}function mo(e={}){var t,n;let r=(t=e.defaultStatusBarHeight)==null?20:t,i=(n=e.defaultNavigationBarHeight)==null?44:n,a=H(),o=typeof(a==null?void 0:a.getSystemInfoSync)==`function`?a.getSystemInfoSync():{},s=Number((o==null?void 0:o.statusBarHeight)||r),c;try{c=typeof(a==null?void 0:a.getMenuButtonBoundingClientRect)==`function`?a.getMenuButtonBoundingClientRect():void 0}catch(e){}let l=Number((c==null?void 0:c.top)||0),u=Number((c==null?void 0:c.height)||0),d=l>s&&u>0?(l-s)*2+u:i;return{navigationBarHeight:d,navigationHeight:s+d,statusBarHeight:s}}function ho(e={}){var t;if(!z())throw Error(`useNavigationBarMetrics() 必须在 setup() 的同步阶段调用`);let n=mo(e),r=d(n.statusBarHeight),i=d(n.navigationBarHeight),a=E(()=>r.value+i.value),o=()=>{let t=mo(e);r.value=t.statusBarHeight,i.value=t.navigationBarHeight};return((t=e.autoRefresh)==null||t)&&j(o),{navigationBarHeight:i,navigationHeight:a,refresh:o,statusBarHeight:r}}function go(e){return typeof e!=`number`||!Number.isFinite(e)?80:Math.max(0,e)}function _o(e){if(!(typeof e!=`number`||!Number.isFinite(e)))return Math.max(0,e)}function vo(e,t={}){var n,r;if(!U())throw Error(`usePageScrollThrottle() 必须在 setup() 的同步阶段调用`);if(typeof e!=`function`)throw TypeError(`usePageScrollThrottle() 需要传入回调函数`);let i=go(t.interval),a=(n=t.leading)==null?!0:n,o=(r=t.trailing)==null?!0:r,s=_o(t.maxWait),c,l,u=!1,d=0,f,p=()=>{c&&(clearTimeout(c),c=void 0)},m=()=>{l&&(clearTimeout(l),l=void 0)},h=t=>{p(),m(),f=void 0,d=Date.now(),e(t)},g=()=>{let e=f;f=void 0,c=void 0,!(!e||u)&&h(e)},_=()=>{let e=f;l=void 0,!(!e||u)&&h(e)},v=e=>{if(!o||c)return;let t=Math.max(0,i-(e-(d===0?e:d)));c=setTimeout(g,t)},y=e=>{if(typeof s!=`number`||l)return;let t=s-(e-(d===0?e:d));if(t<=0){_();return}l=setTimeout(_,t)};I(e=>{if(u)return;if(i===0){h(e);return}let t=Date.now();if(f=e,a&&(d===0||t-d>=i)){h(e);return}if(typeof s==`number`&&t-(d===0?t:d)>=s){h(e);return}!o&&typeof s!=`number`||(v(t),y(t))});let b=()=>{u||(u=!0,f=void 0,p(),m())};return V(b),M(b),b}function yo(e,t={}){A(async()=>{try{await e()}catch(e){var n;await((n=t.onError)==null?void 0:n.call(t,e))}finally{var r;await((r=t.stopPullDownRefresh)==null?(()=>nt.stopPullDownRefresh()):r)()}})}function bo(e,t){let n=t==null?U():t;if(!n||!z())throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return n}function xo(e,t,n,r){let i=jr(e);return!i||!t?Promise.resolve(null):(r(n?i.selectAll(t):i.select(t)),new Promise(e=>{i.exec(t=>{let n=Array.isArray(t)?t[0]:null;e(n==null?null:n)})}))}function So(e={}){let t=bo(`useSelectorQuery`,e.context);return()=>jr(t)}function Co(e={}){var t;let n=bo(`useBoundingClientRect`,e.context),r=(t=e.all)==null?!1:t;return e=>xo(n,e,r,e=>e.boundingClientRect())}function wo(e){var t;let n=bo(`useSelectorFields`,e.context),r=(t=e.all)==null?!1:t;return t=>xo(n,t,r,t=>t.fields(e.fields))}function To(e={}){var t;let n=bo(`useScrollOffset`,e.context),r=(t=e.all)==null?!1:t;return e=>xo(n,e,r,e=>e.scrollOffset())}const Eo=/\B([A-Z])/g;function Do(e){return e?e.startsWith(`--`)?e:e.replace(Eo,`-$1`).toLowerCase():``}function Oo(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 ko(e){let t=``;for(let n of Object.keys(e)){let r=_(e[n]);if(r==null)continue;let i=Do(n);if(Array.isArray(r))for(let e of r){let n=_(e);n!=null&&(t=Oo(t,`${i}:${n}`))}else t=Oo(t,`${i}:${r}`)}return t}function Ao(e){let t=_(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=Ao(n);t&&(e=Oo(e,t))}return e}return typeof t==`object`?ko(t):``}function jo(e){let t=_(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=jo(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))_(t[e])&&(n+=`${e} `);return n.trim()}return n}function Mo(e){let t=e,n=t.setUpdatePerformanceListener;if(typeof n==`function`)return e=>{n.call(t,e)}}function No(e){let t=U();if(!t)throw Error(`useUpdatePerformanceListener() 必须在 setup() 的同步阶段调用`);if(typeof e!=`function`)throw TypeError(`useUpdatePerformanceListener() 需要传入监听函数`);let n=Mo(t);if(!n)throw Error(`当前实例不支持 setUpdatePerformanceListener,请检查基础库版本或组件上下文`);n(e);let r=!1,i=()=>{if(!r){r=!0;try{n(void 0)}catch(e){}}};return V(i),M(i),i}function Po(){let e=U();if(e!=null&&e[ge]&&e[Ie])return e[Ie];throw Error(`defineAppSetup() / use() 只能在 app setup 上下文中调用`)}function Fo(e){return e(Po())}function Io(e,...t){return Po().use(e,...t)}const Lo=Object.freeze(Object.create(null));function Ro(){var e;let t=z();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function zo(){var e;let t=z();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?Lo:e}function Bo(){let e=z();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}const Vo=Object.freeze(Object.create(null));function Ho(e,t){let n=t===`modelValue`?`modelModifiers`:`${t}Modifiers`,r=e==null?void 0:e[n];return!r||typeof r!=`object`?Vo:r}function Uo(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 Wo(e,t,n={}){let r=z();if(!r)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let i=r.emit,a=`update:${t}`,o=()=>Ho(e,t);return Uo(x({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 Go(e){let t=U();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${Mt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function Ko(){let e=Go({event:`change`});return function(t,n){return e.model(t,n)}}function qo(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function Jo(e){let t=e[$e];if(t)return t;let n=new Map;try{Object.defineProperty(e,$e,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[$e]=n}return n}function Yo(e){let t=U();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=Jo(t),i=r.get(n);if(i)return i;let a=rt(null);return r.set(n,a),a}export{en as $,fa as A,aa as B,po as C,rt as Ct,$a as D,ro as E,ia as F,oi as G,Ti as H,na as I,lr as J,fr as K,ca as L,ta as M,sa as N,eo as O,ra as P,Pn as Q,oa as R,ho as S,it as St,oo as T,Di as U,Pi as V,Oi as W,cr as X,ur as Y,Fn as Z,So as _,ft as _t,Wo as a,At as at,fo as b,ot as bt,zo as c,yt as ct,No as d,dt,$ as et,jo as f,mt as ft,wo as g,vt as gt,To as h,lt as ht,Ko as i,kt as it,da as j,Qa as k,Fo as l,gt as lt,Co as m,ht as mt,qo as n,Dt as nt,Ro as o,St as ot,Ao as p,_t as pt,dr as q,Go as r,Ot as rt,Bo as s,xt as st,Yo as t,jt as tt,Io as u,pt as ut,yo as v,ut as vt,lo as w,at as wt,mo as x,st as xt,vo as y,ct as yt,la as z};
1
+ import"./chunk-CbfVNrr-.mjs";import{A as e,C as t,D as n,M as r,N as i,P as a,a as o,b as s,d as c,g as l,h as u,i as d,j as f,k as p,l as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,v as S,w as C,x as w,y as T}from"./ref-B6CIXciv.mjs";import{i as E}from"./store-C-7rPMM3.mjs";import{C as D,D as O,E as k,H as A,M as j,N as M,O as N,S as P,T as F,V as I,X as L,_t as R,at as z,b as ee,ct as te,dt as B,et as V,ft as H,it as U,k as ne,lt as re,mt as ie,nt as W,ot as G,pt as ae,rt as oe,st as se,tt as K,ut as ce,w as le,x as ue,y as de}from"./router-Cm3FUnTw.mjs";import{WEVU_ATTRS_KEY as fe,WEVU_EFFECT_SCOPE_KEY as q,WEVU_EXPOSED_KEY as pe,WEVU_HOOKS_KEY as me,WEVU_INLINE_HANDLER as he,WEVU_INLINE_MAP_KEY as J,WEVU_IS_APP_INSTANCE_KEY as ge,WEVU_LAYOUT_BRIDGE_PAGE_KEYS as _e,WEVU_LAYOUT_HOST_BRIDGE_KEY as ve,WEVU_MODEL_HANDLER as ye,WEVU_NATIVE_INSTANCE_KEY as Y,WEVU_ON_BEFORE_UPDATE_HOOK as be,WEVU_ON_LOAD_CALLED_KEY as xe,WEVU_ON_UPDATED_HOOK as Se,WEVU_OWNER_HANDLER as Ce,WEVU_PAGE_LAYOUT_NAME_KEY as we,WEVU_PAGE_LAYOUT_NONE as Te,WEVU_PAGE_LAYOUT_PROPS_KEY as Ee,WEVU_PAGE_LAYOUT_SETTER_KEY as De,WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY as Oe,WEVU_PARENT_INSTANCE_KEY as ke,WEVU_PENDING_PROP_VALUES_KEY as Ae,WEVU_PROPS_KEY as X,WEVU_PROP_KEYS_KEY as je,WEVU_PUBLIC_RUNTIME_KEY as Z,WEVU_READY_CALLED_KEY as Me,WEVU_RESERVED_METHOD_PREFIX as Ne,WEVU_ROUTE_DONE_CALLED_KEY as Pe,WEVU_ROUTE_DONE_IN_TICK_KEY as Fe,WEVU_RUNTIME_APP_KEY as Ie,WEVU_RUNTIME_KEY as Le,WEVU_SCOPED_SLOT_CREATOR_KEY as Re,WEVU_SCOPED_SLOT_OWNER_SEED_KEY as ze,WEVU_SCOPED_SLOT_OWNER_STORE_KEY as Be,WEVU_SETUP_CONTEXT_INSTANCE_KEY as Ve,WEVU_SLOT_NAMES_PROP as He,WEVU_SLOT_OWNER_ID_KEY as Ue,WEVU_SLOT_OWNER_ID_PROP as We,WEVU_SLOT_OWNER_KEY as Ge,WEVU_SLOT_OWNER_PROXY_KEY as Ke,WEVU_SLOT_PROPS_DATA_KEY as qe,WEVU_SLOT_PROPS_KEY as Je,WEVU_SLOT_SCOPE_KEY as Ye,WEVU_TEMPLATE_REFS_CALLBACKS_KEY as Xe,WEVU_TEMPLATE_REFS_KEY as Ze,WEVU_TEMPLATE_REFS_PENDING_KEY as Qe,WEVU_TEMPLATE_REF_MAP_KEY as $e,WEVU_WATCH_STOPS_KEY as et}from"@weapp-core/constants";import{resolveMiniProgramPageKeys as tt}from"@weapp-core/shared";import{wpi as nt}from"@wevu/api";function rt(e,t){return x((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function it(e){return g(e)&&typeof e.value!=`function`}function at(e){if(g(e)){let t=e.dep;if(t){r(t);return}e.value=e.value}}function ot(e,t,n){let r=e[t];return g(r)?r:x((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function st(e){m(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=ot(e,n);return t}function ct(e,t=1/0,n=new Map){if(t<=0||!S(e))return e;if(g(e))return ct(e.value,t-1,n),e;if(e.__r_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=>ct(e,i,n)),e;let a=m(e)&&t!==1/0?T(e):e;for(let t in a)ct(e[t],i,n);return e}function lt(e){G(K(`onMounted`),`onReady`,e)}function ut(e){G(K(`onUpdated`),Se,e)}function dt(e){K(`onBeforeUnmount`),e()}function ft(e){G(K(`onUnmounted`),`onUnload`,e)}function pt(e){K(`onBeforeMount`),e()}function mt(e){G(K(`onBeforeUpdate`),be,e)}function ht(e){let t=K(`onErrorCaptured`);G(t,`onError`,n=>e(n,t,``))}function gt(e){G(K(`onActivated`),`onShow`,e)}function _t(e){G(K(`onDeactivated`),`onHide`,e)}function vt(e){K(`onServerPrefetch`)}function yt(e,t){W(e,t===`before`?be:Se)}let bt=`version`;function xt(e){bt=e}function St(){return bt}function Ct(e){if(typeof e==`function`)return e();if(g(e))return e.value;if(m(e))return e;throw Error(`无效的 watch 源`)}function wt(e){let t=m(e),n=Array.isArray(e)&&!t,r;if(n){let t=e;r=()=>t.map(e=>Ct(e))}else if(typeof e==`function`)r=e;else if(g(e))r=()=>e.value;else if(t)r=()=>e;else throw Error(`无效的 watch 源`);return{getter:r,isMultiSource:n,isReactiveSource:t}}function Tt(e,t,n,r,i){let a=n?t.some(e=>m(e)):r,o=i==null?a:i;if(!(o===!0||typeof o==`number`))return e;let s=typeof o==`number`?o:o?1/0:0;return()=>{let t=e(),r=St();return n&&Array.isArray(t)?t.map(e=>r===`version`&&m(e)?(l(e),e):ct(e,s)):r===`version`&&m(t)?(l(t),t):ct(t,s)}}function Et(e,t,n,r){if(r){r(e,n);return}if(t===`sync`){e();return}if(t===`post`){i(()=>a(e));return}n?e():a(e)}function Dt(e,r,i={}){var a;let o=U(),s=wt(e),c=Tt(s.getter,e,s.isMultiSource,s.isReactiveSource,i.deep),l,u=e=>{l=e},d,f,m=!1,h=0,g=h,_,v=i.once?(e,t,n)=>{r(e,t,n),_()}:r,y=(a=i.flush)==null?`pre`:a,b=e=>{if(!f.active||m||e!==h)return;let t=f();l==null||l();let n=U();se(o);try{v(t,d,u)}finally{se(n)}d=t},x=()=>b(g),S=e=>{g=h,Et(x,y,e,i.scheduler)};f=t(()=>c(),{scheduler:()=>{m||S(!1)},lazy:!0});let C=()=>{l==null||l(),l=void 0,p(f)};return _=C,_.stop=C,_.pause=()=>{m||(m=!0,h+=1)},_.resume=()=>{!m||!f.active||(m=!1,d=f())},i.immediate?b(h):d=f(),n(_),_}function Ot(e,r={}){var i;let a=U(),o,s=e=>{o=e},c,l=!1,u=0,d=u,f=(i=r.flush)==null?`pre`:i,m=e=>{!c.active||l||e!==u||c()},h=()=>m(d),g=e=>{d=u,Et(h,f,e)};c=t(()=>{o==null||o(),o=void 0;let t=U();se(a);try{e(s)}finally{se(t)}},{lazy:!0,scheduler:()=>{l||g(!1)}}),g(!0);let _=()=>{o==null||o(),o=void 0,p(c)},v=_;return v.stop=_,v.pause=()=>{l||(l=!0,u+=1)},v.resume=()=>{!l||!c.active||(l=!1,g(!0))},n(v),v}function kt(e,t={}){return Ot(e,{...t,flush:`post`})}function At(e,t={}){return Ot(e,{...t,flush:`sync`})}const jt=`6.16.15`;function Mt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function Nt(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pt(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Ft(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}function It(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 Lt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Pt(n,a,i);else{let t=e[a];g(t)?t.value=i:e[a]=i}return}if(t[a]){Pt(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),It(e[a],o,i)}function Rt(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function zt(e){return Ft(e)}function Bt(e,t,n,r){return(i,a)=>{let o=Nt(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Rt(e,o),c=e=>{Lt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:zt,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${Mt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}function Vt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ht(e){return Array.isArray(e)||Vt(e)}function Ut(e){if(Array.isArray(e))return e;let t=[];for(let n of Object.keys(e)){let r=Object.getOwnPropertyDescriptor(e,n);!r||typeof r.get==`function`||t.push(r.value)}return t}function Wt(e,t=new WeakSet){return g(e)||m(e)?!0:!e||typeof e!=`object`||t.has(e)||(t.add(e),!Ht(e))?!1:Ut(e).some(e=>Wt(e,t))}function Gt(e,t=new WeakSet){if(g(e)){let n=e.value;m(n)&&l(n),Gt(n,t);return}if(m(e)){l(e),Gt(T(e),t);return}!e||typeof e!=`object`||t.has(e)||!Ht(e)||(t.add(e),Ut(e).forEach(e=>Gt(e,t)))}const Kt=`__wevu_native_bridge__`;function qt(e){try{Object.defineProperty(e,Kt,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Kt]=!0}}function Jt(e){return typeof e==`function`&&!!e[Kt]}function Yt(n){let r=Object.create(null),i=Object.create(null),a=new Set;return{computedRefs:r,computedSetters:i,dirtyComputedKeys:a,createTrackedComputed:(r,i,o)=>{let s,c=!0,l,u={get value(){return c&&(s=l(),c=!1),e(u,`value`),s},set value(e){if(!o)throw Error(`计算属性是只读的`);o(e)}};return y(u),l=t(i,{lazy:!0,scheduler:()=>{c||(c=!0,n.setDataStrategy===`patch`&&n.includeComputed&&a.add(r),f(u,`value`))}}),u},computedProxy:new Proxy({},{get(e,t){if(typeof t==`string`&&r[t])return r[t].value},has(e,t){return typeof t==`string`&&!!r[t]},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(e,t){if(typeof t==`string`&&r[t])return{configurable:!0,enumerable:!0,value:r[t].value}}})}}function Xt(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:f,computedProxy:p}=Yt({includeComputed:a,setDataStrategy:o}),m=d(0),h=(e,t)=>{let n=T(e),r=n[Le],i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Jt(n)},o=n=>!(!n||typeof n!=`object`||n===e||n===t||n===i||a(n,`triggerEvent`)||a(n,`createSelectorQuery`)||a(n,`createIntersectionObserver`)||a(n,`setData`)),s=n[Y];if(o(s))return s;let c=r==null?void 0:r.instance;if(o(c))return c},_=e=>{if(Q(s,e))return;let n=(...n)=>{let r=h(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};qt(n),s[e]=n},v=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(m.value,n===`data`||n===`$state`)return t;if(n===`$computed`)return p;if(Q(s,n))return s[n];if(c[n])return c[n].value;if(Q(i.globalProperties,n))return i.globalProperties[n]}if(!Reflect.has(e,n)){let t=h(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 Pt(l,t,n),!0;if(Reflect.has(e,t)){let i=Reflect.get(e,t,r);return g(i)&&!g(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}let i=h(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]||Q(s,t)))return!0;let n=h(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)),[...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){Pt(l,n,e)}};if(Q(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(v,e);return}e===J&&t&&typeof t==`object`&&(s[e]=t)}),_(`triggerEvent`),_(`createSelectorQuery`),_(`createIntersectionObserver`),_(`setData`),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=f(e,()=>t.call(v));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(v);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(v);a?(l[e]=a,c[e]=f(e,n,a)):c[e]=f(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:p,publicInstance:v,touchSetupMethodsVersion(){m.value+=1}}}function Zt(e){return e!==`patch`&&e!==`diff`}function Qt(e){if(e!==`off`)return t=>{if(e===`fallback`&&!Zt(t.reason))return;let n=typeof t.bytes==`number`?t.bytes:t.estimatedBytes,r=typeof n==`number`?`${n}B`:`unknown`,i=[`mode=${t.mode}`,`reason=${t.reason}`,`pending=${t.pendingPatchKeys}`,`keys=${t.payloadKeys}`,`bytes=${r}`];typeof t.mergedSiblingParents==`number`&&i.push(`mergedParents=${t.mergedSiblingParents}`),typeof t.computedDirtyKeys==`number`&&i.push(`computedDirty=${t.computedDirtyKeys}`);let a=`[wevu:setData] ${i.join(` `)}`;if(Zt(t.reason)){console.warn(a);return}console.info(a)}}const $t=Symbol(`wevu.noSetData`);function $(e){return Object.defineProperty(e,$t,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function en(e){return typeof e==`object`&&!!e&&e[$t]===!0}function tn(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function nn(e,t,n,r,i){let a=_(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(en(a))return;let o=m(a)?T(a):a,s=n&&(m(a)||!Wt(o))?n:void 0;if(r<=0||i.keys<=0)return o;if(s){let e=b(o),t=s.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([nn(r,t,void 0,1/0,{keys:1/0}),nn(n,t,void 0,1/0,{keys:1/0})])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(nn(n,t,void 0,1/0,{keys:1/0}))}),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=[...e];return t.set(o,n),n.map(e=>nn(e,t,void 0,1/0,{keys:1/0}))}let n=[...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=[];t.set(o,e);let a=r-1;for(let r=0;r<o.length;r+=1){let s=nn(o[r],t,n,a,i);e[r]=s===void 0?null:s}return s&&s.set(o,{version:b(o),value:e}),e}let c={};t.set(o,c);let l=r-1;for(let e of Object.keys(o)){if(--i.keys,i.keys<=0)break;let r=nn(o[e],t,n,l,i);r!==void 0&&(c[e]=r)}return s&&s.set(o,{version:b(o),value:c}),c}function rn(e,t=new WeakMap,n){var r,i;let a=(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,o=(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;return nn(e,t,n==null?void 0:n.cache,a,o)}function an(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 on(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(!Q(t,i)||!n(e[i],t[i]))return!1;return!0}function sn(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?an(e,t,sn):tn(e)&&tn(t)?on(e,t,sn):!1}function cn(e){return e===void 0?null:e}function ln(e,t,n,r){if(!sn(e,t)){if(tn(e)&&tn(t)){for(let i of Object.keys(t)){if(!Q(e,i)){r[`${n}.${i}`]=cn(t[i]);continue}ln(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Q(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){an(e,t,sn)||(r[n]=cn(t));return}r[n]=cn(t)}}function un(e,t,n){let r={},i=n==null?void 0:n.skipKeys;for(let n of Object.keys(t))i!=null&&i.has(n)||ln(e[n],t[n],n,r);for(let n of Object.keys(e))i!=null&&i.has(n)||Q(t,n)||(r[n]=null);return r}function dn(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n={},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 fn(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+=fn(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+=fn(a,t-i,n),i>t)return i;return i}function pn(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=fn(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 mn(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=[...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.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=fn(e,1/0,new WeakSet);return h.set(e,n),n}return fn(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Q(p,e))continue;let n=t.filter(e=>Q(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 hn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function gn(e){return e===void 0?null:e}function _n(e){if(Array.isArray(e))return e.map(e=>_n(e));if(!hn(e))return e;let t={};for(let n of Object.keys(e))t[n]=_n(e[n]);return t}function vn(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(!hn(e)||!hn(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(!Q(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function yn(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(!yn(e[i],t[i],n-1,r))return!1;return!0}if(!hn(e)||!hn(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||!Q(t,a)||!yn(e[a],t[a],n-1,r))return!1;return!0}function bn(e,t,n,r,i){var a;let o=(a=i==null?void 0:i.cloneValue)==null?!0:a,s=t.split(`.`).filter(Boolean);if(!s.length)return;let c=e;for(let e=0;e<s.length-1;e++){let t=s[e];(!Q(c,t)||c[t]==null||typeof c[t]!=`object`)&&(c[t]={}),c=c[t]}let l=s[s.length-1];if(r===`delete`)try{delete c[l]}catch(e){c[l]=null}else c[l]=o?_n(n):n}function xn(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l={},u=Number.isFinite(s)?{keys:s}:void 0,d=m(t)?T(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=rn(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=rn(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function Sn(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=[...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}),N=new Map(M);b.clear();let P=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},F=e=>{if(O.has(e))return O.get(e);let t=gn(rn(P(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]=F(e),N.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]=F(e)}let I=0;if(i&&r.size){let e=Object.create(null),t=[...r];r.clear(),I=t.length;for(let r of t){if(!l(r))continue;let t=rn(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?yn(i,t,o,{keys:s}):a===`shallow`?vn(i,t):Object.is(i,t))||(e[r]=gn(t),C[r]=_n(t))}Object.assign(k,e)}let L=dn(k),R=0;if(f){let e=mn({input:L,entryMap:N,getPlainByPath:F,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});R=e.merged,L=dn(e.out)}let z=pn(L,d),ee=z.fallback;if(T({mode:ee?`diff`:`patch`,reason:ee?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(L).length,mergedSiblingParents:R||void 0,computedDirtyKeys:I||void 0,estimatedBytes:z.estimatedBytes,bytes:z.bytes}),ee){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(L).length){for(let[e,t]of Object.entries(L)){let n=N.get(e);n?bn(S,e,t,n.kind===`array`?`set`:n.op,{cloneValue:!1}):bn(S,e,t,`set`,{cloneValue:!1})}if(typeof c.setData==`function`){let e=c.setData(L);e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(L).length})}}function Cn(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:h,mergeSiblingMaxParentBytes:_,mergeSiblingSkipArray:v,elevateTopKeyThreshold:y,toPlainMaxDepth:x,toPlainMaxKeys:S,debug:C,debugWhen:w,debugSampleRate:E,runTracker:D,isMounted:O}=e,k=new WeakMap,A={},j=Object.create(null),M=Object.create(null),N=Object.create(null),P={value:a===`patch`},F=new Map,I=new Set,L=e=>{if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},R=(e,t)=>{if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length?e.every((e,n)=>R(e,t[n])):!1;if(L(e)&&L(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?n.every(n=>Q(t,n)&&R(e[n],t[n])):!1}return!1},z=e=>{let t=g(e)?e.value:e;if(typeof t!=`object`||!t)return t;if(!m(t)&&Wt(t))return{snapshot:rn(t,new WeakMap,{maxDepth:x,maxKeys:S})};let n=m(t)?T(t):t;return{raw:n,version:b(n)}},ee=(e,t)=>Object.is(e,t)?!0:!e||!t||typeof e!=`object`||typeof t!=`object`||!Q(e,`raw`)||!Q(t,`raw`)?e&&t&&typeof e==`object`&&typeof t==`object`&&Q(e,`snapshot`)&&Q(t,`snapshot`)?R(e.snapshot,t.snapshot):!1:e.raw===t.raw&&e.version===t.version,te=e=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=g(i)?i.value:i;!a||typeof a!=`object`||T(a)===e&&n.push(r)}return n},B=e=>{if(!C)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(w===`fallback`&&!t)&&!(E<1&&Math.random()>E))try{C(e)}catch(e){}},V=()=>xn({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:k,toPlainMaxDepth:x,toPlainMaxKeys:S}),H=()=>{let e=m(t)?T(t):t,r={...A},a=new WeakMap,o=new Set,s=new Set,c=new Set;for(let t of Object.keys(e)){if(!u(t))continue;o.add(t);let n=z(e[t]),i=M[t];i&&n&&typeof i==`object`&&typeof n==`object`&&Q(i,`raw`)&&Q(n,`raw`)&&Array.isArray(i.raw)&&Array.isArray(n.raw)&&i.raw!==n.raw&&c.add(t),(!ee(i,n)||!Q(A,t))&&(r[t]=rn(e[t],a,{cache:k,maxDepth:x,maxKeys:S})),M[t]=n}for(let e of Object.keys(M))o.has(e)||(delete M[e],(!i||!Q(n,e))&&delete r[e]);if(!i){for(let e of Object.keys(N))delete N[e];return{snapshot:r,replacedTopLevelKeys:c}}for(let e of Object.keys(n)){if(!u(e))continue;s.add(e);let t=n[e].value,i=z(t);(!ee(N[e],i)||!Q(A,e))&&(r[e]=rn(t,a,{cache:k,maxDepth:x,maxKeys:S})),N[e]=i}for(let t of Object.keys(N))s.has(t)||(delete N[t],(!Q(e,t)||!u(t))&&delete r[t]);return{snapshot:r,replacedTopLevelKeys:c}},U=(e=`diff`)=>{var t;let o=a===`diff`?H():void 0,s=(t=o==null?void 0:o.snapshot)==null?V():t,c=o?(()=>{let e={};for(let t of o.replacedTopLevelKeys)e[t]=s[t];return{...un(A,s,{skipKeys:o.replacedTopLevelKeys}),...e}})():un(A,s);if(A=s,P.value=!1,F.clear(),a===`patch`&&i){j=Object.create(null);for(let e of Object.keys(n))u(e)&&(j[e]=s[e]);r.clear()}if(Object.keys(c).length){if(typeof l.setData==`function`){let e=l.setData(c);e&&typeof e.then==`function`&&e.catch(()=>{})}B({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(c).length})}};return{job:e=>{if(O())if(D(),a===`patch`&&!P.value){if(!(F.size>0||I.size>0||i&&r.size>0)){U(`diff`);return}Sn({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:h,mergeSiblingMaxParentBytes:_,mergeSiblingSkipArray:v,elevateTopKeyThreshold:y,toPlainMaxDepth:x,toPlainMaxKeys:S,plainCache:k,pendingPatches:F,fallbackTopKeys:I,latestSnapshot:A,latestComputedSnapshot:j,needsFullSnapshot:P,emitDebug:B,runDiffUpdate:U})}else U(P.value?`needsFullSnapshot`:`diff`)},mutationRecorder:(e,t)=>{if(!O())return;if(e.root!==t){let t=te(e.root);if(t.length)for(let e of t)I.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)I.add(t);else P.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&F.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?V():{...A},cloneLatestSnapshot:()=>({...A}),getLatestSnapshot:()=>A}}function wn(e){var t,n,r,i,a,o,s;let c=(t=e==null?void 0:e.includeComputed)==null?!0:t,l=(n=e==null?void 0:e.suspendWhenHidden)==null?!1:n,u=(r=e==null?void 0:e.strategy)==null?`diff`:r,d=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,f=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,p=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,m=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,h=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,g=(i=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:i,_=(a=e==null?void 0:e.computedCompare)==null?u===`patch`?`deep`:`reference`:a,v=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,y=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,b=e==null?void 0:e.prelinkMaxDepth,x=e==null?void 0:e.prelinkMaxKeys,S=e==null?void 0:e.debug,C=(o=e==null?void 0:e.diagnostics)==null?`off`:o,w=(s=e==null?void 0:e.debugWhen)==null?`fallback`:s,T=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,E=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,D=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,O=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,k=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,A=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:c,suspendWhenHidden:l,setDataStrategy:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,computedCompare:_,computedCompareMaxDepth:v,computedCompareMaxKeys:y,prelinkMaxDepth:b,prelinkMaxKeys:x,debug:S,diagnostics:C,debugWhen:w,debugSampleRate:T,elevateTopKeyThreshold:E,toPlainMaxDepth:D,toPlainMaxKeys:O,pickSet:k,omitSet:A,shouldIncludeKey:e=>!(k&&!k.has(e)||A&&A.has(e))}}function Tn(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 En(e){return typeof e==`function`?e():e==null?{}:e}function Dn(e){let{data:n,resolvedComputed:r,resolvedMethods:i,appConfig:o,setDataOptions:d}=e;return e=>{let f=En(n);if(f&&typeof f==`object`&&!Q(f,X))try{Object.defineProperty(f,X,{value:v(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let g=c(f),_=r,y=i,b=!0,x=[],S=new Set;Object.keys(g).forEach(e=>{let t=g[e];Wt(t)&&S.add(e)});let{includeComputed:C,setDataStrategy:E,maxPatchKeys:D,maxPayloadBytes:O,mergeSiblingThreshold:k,mergeSiblingMaxInflationRatio:A,mergeSiblingMaxParentBytes:j,mergeSiblingSkipArray:M,computedCompare:N,computedCompareMaxDepth:P,computedCompareMaxKeys:F,prelinkMaxDepth:I,prelinkMaxKeys:L,debug:R,diagnostics:z,debugWhen:ee,debugSampleRate:te,elevateTopKeyThreshold:B,toPlainMaxDepth:V,toPlainMaxKeys:H,shouldIncludeKey:U}=wn(d),ne=Qt(z),re=R||ne?e=>{typeof R==`function`&&R(e),ne==null||ne(e)}:void 0,ie=z===`always`?`always`:ee,{boundMethods:W,computedRefs:G,computedSetters:ae,dirtyComputedKeys:oe,computedProxy:se,publicInstance:K,touchSetupMethodsVersion:ce}=Xt({state:g,computedDefs:_,methodDefs:y,appConfig:o,includeComputed:C,setDataStrategy:E}),le=e==null?{setData:()=>{}}:e,ue=T(g),de,q=Cn({state:g,computedRefs:G,dirtyComputedKeys:oe,includeComputed:C,setDataStrategy:E,computedCompare:N,computedCompareMaxDepth:P,computedCompareMaxKeys:F,currentAdapter:le,shouldIncludeKey:U,maxPatchKeys:D,maxPayloadBytes:O,mergeSiblingThreshold:k,mergeSiblingMaxInflationRatio:A,mergeSiblingMaxParentBytes:j,mergeSiblingSkipArray:M,elevateTopKeyThreshold:B,toPlainMaxDepth:V,toPlainMaxKeys:H,debug:re,debugWhen:ie,debugSampleRate:te,runTracker:()=>de==null?void 0:de(),isMounted:()=>b}),pe=()=>q.job(ue),me=e=>q.mutationRecorder(e,ue);de=t(()=>{l(g);let e=g[X];m(e)&&l(e);let t=g[fe];m(t)&&l(t),S.forEach(e=>{let t=g[e];Gt(t)})},{lazy:!0,scheduler:()=>a(pe)}),pe(),x.push(Tn(()=>p(de))),E===`patch`&&(u(g,{shouldIncludeTopKey:U,maxDepth:I,maxKeys:L}),s(me),x.push(Tn(()=>w(me))),x.push(Tn(()=>h(g))));function he(e,t,n){let r=Dt(e,(e,n)=>t(e,n),n);return x.push(r),Tn(()=>{r();let e=x.indexOf(r);e>=0&&x.splice(e,1)},r)}let J={get state(){return g},get proxy(){return K},get methods(){return W},get computed(){return se},get adapter(){return le},bindModel:Bt(K,g,G,ae),watch:he,snapshot:()=>q.snapshot(),unmount:()=>{b&&(b=!1,x.forEach(e=>{try{e()}catch(e){}}),x.length=0)}};try{Object.defineProperty(J,`__wevu_touchSetupMethodsVersion`,{value:ce,configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_touchSetupMethodsVersion=ce}try{Object.defineProperty(J,`__wevu_flushSetupSnapshotSync`,{value:pe,configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_flushSetupSnapshotSync=pe}try{Object.defineProperty(J,`__wevu_cloneLatestSnapshot`,{value:q.cloneLatestSnapshot,configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_cloneLatestSnapshot=q.cloneLatestSnapshot}try{Object.defineProperty(J,`__wevu_trackSetupReactiveKey`,{value:e=>{S.add(e)},configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_trackSetupReactiveKey=e=>{S.add(e)}}return J}}const On=`__wevuDefaultsScope`;let kn={};function An(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function jn(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=An(e.setData),i=An(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=An(e.options),o=An(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Mn(e,t){return jn(e,t)}function Nn(e,t){return{app:jn(e.app,t.app),component:jn(e.component,t.component)}}function Pn(e){kn=Nn(kn,e)}function Fn(){kn={}}function In(e){return Mn(kn.app,e)}function Ln(e){return Mn(kn.component,e)}const Rn=/&amp;/g,zn=/&quot;/g,Bn=/&#34;/g,Vn=/&apos;/g,Hn=/&#39;/g,Un=/&lt;/g,Wn=/&gt;/g;function Gn(e){return e.replace(Rn,`&`).replace(zn,`"`).replace(Bn,`"`).replace(Vn,`'`).replace(Hn,`'`).replace(Un,`<`).replace(Wn,`>`)}function Kn(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}}const qn=/[^a-z0-9]+/gi,Jn=/^-+|-+$/g;function Yn(e){return e.trim().replace(qn,`-`).replace(Jn,``).toLowerCase()}const Xn=/-([a-z0-9])/g;function Zn(e,t){let n=Yn(typeof(t==null?void 0:t.type)==`string`?t.type:``);if(!n)return;let r=n.replace(Xn,(e,t)=>t.toUpperCase());if(r)return`${e}${r[0].toUpperCase()}${r.slice(1)}`}const Qn={wvEventDetail:[`wd`,`wvEventDetail`],wvHandler:[`wh`,`wvHandler`],wvInlineId:[`wi`,`wvInlineId`]};function $n(e,t,n){var r;let i=(r=Qn[t])==null?[t]:r;for(let t of i){let r=Zn(t,n);if(r&&(e==null?void 0:e[r])!==void 0)return e[r]}for(let t of i)if((e==null?void 0:e[t])!==void 0)return e[t]}function er(e,t,n){return $n(e,t,n)}function tr(e,t){let n=er(e,`wvEventDetail`,t);return n===!0||n===1||n===`1`||n===`true`}function nr(e,t){if(!tr(t,e))return e;if(!(!e||typeof e!=`object`||!(`detail`in e)))return e.detail}function rr(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=g(e)?e.value:e;for(let e of n){if(g(r)&&(r=r.value),r==null)return;r=r[e]}return g(r)?r.value:r}function ir(e){if(typeof e!=`object`||!e||g(e)||m(e))return e;try{return c(e)}catch(t){return e}}function ar(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=nr(n,c),u=er(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=Kn(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=rr(e,o.path);t=i==null?void 0:i[r]}else continue;t!==void 0&&(n[i]=ir(t))}catch(e){}}let o=t.fn(e,n,l);return typeof o==`function`?o.call(e,l):o}}let d=er(c,`wvHandler`,n),f=typeof t==`string`&&t?t:typeof d==`string`?d:void 0;if(!f)return;let p=er(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(Gn(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)}function or(){let e=P();if(e)return e;let t=ce();return t[t.length-1]}function sr(e){return e===Te?!1:e}function cr(){var e,t;if(!z())throw Error(`usePageLayout() 必须在 setup() 的同步阶段调用`);let n=U(),r=n==null||(e=n.__wevu)==null?void 0:e.state,i=c({name:sr(r==null?void 0:r[we]),props:{...(t=r==null?void 0:r[Ee])==null?{}:t}});return n&&(n.__wevuPageLayoutState=i),R(i)}function lr(e,t,n){let r=e.__wevuPageLayoutState;r&&(r.name=t,r.props={...n})}function ur(e){var t,n;let r=e.__wevuPageLayoutState,i=(t=e.__wevu)==null?void 0:t.state;!r||!i||(r.name=sr(i[we]),r.props={...(n=i[Ee])==null?{}:n})}function dr(e,t){let n=U(),r=n==null?void 0:n[De];if(typeof r==`function`){r(e,t);return}let i=or(),a=i==null?void 0:i[De];if(typeof a==`function`){a(e,t);return}throw Error(`setPageLayout() 未找到当前页面实例。请在页面 setup()、事件回调或当前页面上下文中调用。`)}function fr(e){return e===!1?Te:e}function pr(){let e=globalThis;return e[Be]instanceof Map||(e[Be]=new Map),typeof e[ze]!=`number`&&(e[ze]=0),{globalObject:e,ownerStore:e[Be]}}function mr(){let{globalObject:e}=pr();return e[ze]+=1,`wv${e[ze]}`}function hr(e,t,n){var r;let{ownerStore:i}=pr(),a=(r=i.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(a.snapshot=t,a.proxy=n,i.set(e,a),a.subscribers.size)for(let e of a.subscribers)try{e(t,n)}catch(e){}}function gr(e){let{ownerStore:t}=pr();t.delete(e)}function _r(e,t){var n;let{ownerStore:r}=pr(),i=(n=r.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return i.subscribers.add(t),r.set(e,i),()=>{let n=r.get(e);n&&n.subscribers.delete(t)}}function vr(e){var t;let{ownerStore:n}=pr();return(t=n.get(e))==null?void 0:t.proxy}function yr(e){var t;let{ownerStore:n}=pr();return(t=n.get(e))==null?void 0:t.snapshot}function br(e){let t=e.__wevu_cloneLatestSnapshot;return typeof t==`function`?t():typeof e.snapshot==`function`?e.snapshot():{}}function xr(e,t,n){var r;try{t.state[Ue]=n}catch(e){}try{e[Ue]=n}catch(e){}try{let t=e.data;t&&typeof t==`object`&&(t[Ue]=n)}catch(e){}let i=br(t),a=(r=e[X])==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;hr(n,i,t.proxy)}function Sr(e){return e.kind===`component`}function Cr(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return g(r)?r.value:r},set(e,t,n,r){let i=e[t];return g(i)&&!g(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function wr(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=Cr(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 Tr(e,t){if(!t||typeof t!=`object`)return e;let n=t;return $(new Proxy(e,{get(e,t,r){if(Reflect.has(e,t))return Reflect.get(e,t,r);let i=n[t];return typeof i==`function`?i.bind(n):i},set(e,t,r,i){return Reflect.has(e,t)?Reflect.set(e,t,r,i):(t in n,n[t]=r,!0)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return[...new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)])]},getOwnPropertyDescriptor(e,t){if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);let r=Object.getOwnPropertyDescriptor(n,t);return r&&{...r,configurable:!0}}}))}function Er(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n[pe];return r&&typeof r==`object`?wr(n,r):(t=n[Z])!=null&&t.proxy?n[Z].proxy:e}function Dr(e){return e[$e]}function Or(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function kr(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}:g(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function Ar(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=$(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function jr(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();if(!ie(`globalCreateSelectorQuery`))return null;let n=H();if(n&&typeof n.createSelectorQuery==`function`){let e=n.createSelectorQuery();return e?B().selectorQueryScopeByIn&&typeof e.in==`function`?e.in(t):e:null}return null}function Mr(e,t,n,r,i){let a=jr(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 Nr(e,t,n){return $({selector:t,boundingClientRect:r=>Mr(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>Mr(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>Mr(e,t,n,e=>e.fields(r),i),node:r=>Mr(e,t,n,e=>e.node(),r)})}function Pr(e,t){let n=e;if(!n)return t.inFor?$([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return $((Array.isArray(r)?r:[]).map((n,r)=>Tr(Nr(e,t.selector,{multiple:!0,index:r}),Er(n))))}return $([])}let r=Nr(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?Tr(r,Er(n.selectComponent(t.selector))):r}function Fr(e,t,n){return t.inFor?$((Array.isArray(n)?n:[]).map((n,r)=>Nr(e,t.selector,{multiple:!0,index:r}))):n?Nr(e,t.selector,{multiple:!1}):null}function Ir(e,t){let n=e[Ze];if(!n||!n.length){t==null||t();return}if(!e[Me]){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=Dr(e),i=n.filter(e=>!Sr(e)),a=n.filter(e=>Sr(e)).map(t=>({binding:t,value:Pr(e,t)})),o=n=>{var i,a;let o=Ar(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=kr(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?$(t.values):t.values[0]:t.hasFor?$([]):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=jr(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:Fr(e,n.binding,i)}});o([...a,...n])})}function Lr(e,t){let n=e[Ze];if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e[Xe])==null?[]:r;n.push(t),e[Xe]||Object.defineProperty(e,Xe,{value:n,configurable:!0,enumerable:!1,writable:!0})}e[Qe]||(e[Qe]=!0,i(()=>{e[Qe]=!1,Ir(e,()=>{let t=e[Xe];!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function Rr(e){var t,n;let r=e[Ze];if(!r||!r.length)return;let i=Ar(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=Dr(e);for(let t of r){let n=kr(e,t),r=t.inFor?$([]):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]}const zr=[`triggerEvent`,`createSelectorQuery`,`createIntersectionObserver`,`setData`,`setUpdatePerformanceListener`];function Br(){return Object.freeze(Object.create(null))}const Vr=()=>[];function Hr(e){return Array.isArray(e)?[...new Set(e.filter(e=>typeof e==`string`&&e.length>0))]:!e||typeof e!=`object`?[]:Object.entries(e).filter(([,e])=>!!e).map(([e])=>e)}function Ur(e){if(!Q(e,He))return Br();let t=()=>Hr(e[He]),n=e=>typeof e==`string`&&t().includes(e);return new Proxy(Object.create(null),{get(e,t){if(n(t))return Vr},has(e,t){return n(t)},ownKeys(){return t()},getOwnPropertyDescriptor(e,t){if(n(t))return{configurable:!0,enumerable:!0,value:Vr}},set(){return!1},deleteProperty(){return!1}})}function Wr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function Gr(e){try{return $(e)}catch(t){return e}}function Kr(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Q(e,`bubbles`)||Q(e,`composed`)||Q(e,`capturePhase`)}function qr(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(Kr(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}function Jr(e,t,n){let r=e==null?void 0:e.state,i=r&&typeof r==`object`?T(r):void 0,a=e==null?void 0:e.proxy,o=e=>{let r=e[n];if(typeof r!=`function`)return!1;if(Jt(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[Y]:void 0;if(s(c))return c;let l=e==null?void 0:e.instance;if(s(l))return l}function Yr(e,t,n){qt(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function Xr(e,t){let n=e[Ve];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=Jr(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Jt(i))return e};Yr(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))}),Yr(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=H();if(!ie(`globalCreateSelectorQuery`)||!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||!B().selectorQueryScopeByIn||typeof o.in!=`function`)return o;let s=(n=Jr(t,e,`setData`))==null?e:n;return o.in(s)}),Yr(r,`createIntersectionObserver`,n=>{var r;let a=i(`createIntersectionObserver`);if(a&&typeof a.createIntersectionObserver==`function`)return a.createIntersectionObserver(n==null?{}:n);let o=H();if(!ie(`globalCreateIntersectionObserver`)||!o||typeof o.createIntersectionObserver!=`function`)return;let s=(r=Jr(t,e,`setData`))==null?e:r;return B().intersectionObserverScopeByParameter?o.createIntersectionObserver(s,n==null?{}:n):o.createIntersectionObserver(n==null?{}:n)}),Yr(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}),Yr(r,`setUpdatePerformanceListener`,e=>{let t=i(`setUpdatePerformanceListener`);if(t&&typeof t.setUpdatePerformanceListener==`function`)return t.setUpdatePerformanceListener(e)});let a=Gr(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,Ve,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[Ve]=a}return a}function Zr(e){return!e||typeof e!=`object`?!1:typeof e.triggerEvent==`function`||typeof e.createSelectorQuery==`function`||typeof e.createIntersectionObserver==`function`||typeof e.setData==`function`}function Qr(e,t,n){let r=t==null?void 0:t[n];if(typeof r!=`function`)return!1;if(Jt(r))return!0;let i=e==null?void 0:e.proxy;return typeof(i==null?void 0:i[n])==`function`&&r===i[n]}function $r(e,t){if(!e||!Zr(t)||t===e.proxy)return;let n=t;if(Qr(e,n,`triggerEvent`)||Qr(e,n,`createSelectorQuery`)||Qr(e,n,`createIntersectionObserver`)||Qr(e,n,`setData`))return;let r=e.state;if(!(!r||typeof r!=`object`))try{Object.defineProperty(r,Y,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(e){r[Y]=n}}function ei(e,t){try{let n=t.methods;for(let t of Object.keys(n))zr.includes(t)||typeof e[t]!=`function`&&(e[t]=function(...n){var r,i;let a=(r=this[Z])==null?e[Z]:r;$r(a,this);let o=a==null||(i=a.methods)==null?void 0:i[t];if(typeof o==`function`)return o.apply(a.proxy,n)})}catch(e){}}let ti=e=>e.startsWith(`layouts/`);function ni(e){let t=e.is;return typeof t==`string`&&ti(t,e)}function ri(e){if(ni(e))return;let t=e[ke];if(t&&typeof t==`object`)return t;let n=e.selectOwnerComponent;if(typeof n==`function`)try{let t=n.call(e);if(t&&t!==e&&typeof t==`object`&&t.__wevu)return t}catch(e){}let r=ce(),i=r[r.length-1];if(i&&i!==e&&typeof i==`object`&&i.__wevu)return i}function ii(e){if(!ni(e))return;let t=ce(),n=t[t.length-1];n&&n!==e&&typeof n==`object`&&n.__wevu&&k(e,n)}function ai(e,t){e[Ie]=t,O(e,t,ri(e)),ii(e)}function oi(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 si(e){return e.includes(`:`)?e.replaceAll(`:`,`-`).toLowerCase():e}function ci(e){let{target:t,runtime:n,runtimeWithDefaults:r,runtimeState:i,runtimeProxy:a,setup:o,syncRuntimeProps:s,attachRuntimeProxyProps:c}=e,l=t.properties||{},u=i&&typeof i==`object`?i[X]:void 0,d=u&&typeof u==`object`?u:v({});s(d,l),i&&typeof i==`object`&&c(i,d);try{Object.defineProperty(t,X,{value:d,configurable:!0,enumerable:!1,writable:!1})}catch(e){t[X]=d}let f=v(Object.create(null)),p=new Set(Array.isArray(t[je])?t[je]:[]),h=e=>typeof i==`object`&&!!i&&Q(i,e);(()=>{let e=t.properties&&typeof t.properties==`object`?t.properties:void 0;for(let t of Object.keys(f))(!e||!Q(e,t)||p.has(t)||h(t))&&delete f[t];if(e)for(let[t,n]of Object.entries(e))p.has(t)||h(t)||(f[t]=n)})();try{Object.defineProperty(t,fe,{value:f,configurable:!0,enumerable:!1,writable:!1})}catch(e){t[fe]=f}let g=Xr(t,r),_=Ur(d);try{Object.defineProperty(i,`$slots`,{value:_,configurable:!0,enumerable:!1,writable:!1})}catch(e){i.$slots=_}let y=Gr({props:d,runtime:r,state:i,proxy:a,bindModel:n.bindModel.bind(r),watch:n.watch.bind(r),instance:g,emit:(e,...t)=>{let{detail:n,options:r}=qr(t),i=si(e);g.triggerEvent(i,n,r)},expose:e=>{t[pe]=e},attrs:f,slots:_}),b=C(!0);t[q]=b,se(t),te(y);try{let e=b.run(()=>oi(o,d,y)),t=!1;if(e&&typeof e==`object`){let r=m(n.state)?T(n.state):n.state;Object.keys(e).forEach(i=>{let a=e[i];if(typeof a==`function`)n.methods[i]=(...e)=>a.apply(n.proxy,e),t=!0;else{if(Wt(a)){var o;(o=n.__wevu_trackSetupReactiveKey)==null||o.call(n,i)}if(p.has(i)){let e=a;try{Object.defineProperty(r,i,{configurable:!0,enumerable:!1,get(){let t=r[X];return t&&typeof t==`object`&&Q(t,i)?t[i]:e},set(t){e=t;let n=r[X];if(!(!n||typeof n!=`object`))try{n[i]=t}catch(e){}}})}catch(e){n.state[i]=a}return}n.state[i]=a}})}if(t){var x;(x=n.__wevu_touchSetupMethodsVersion)==null||x.call(n)}}catch(e){throw b.stop(),t[q]=void 0,e}finally{te(void 0),se(void 0)}}function li(e,t){try{Object.defineProperty(e,X,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e[X]=t}}function ui(e,t){try{Object.defineProperty(e,Y,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e[Y]=t}}function di(e,t){try{Object.defineProperty(e,Le,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e[Le]=t}}function fi(e,t){try{Object.defineProperty(e,`instance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function pi(e){let t=e[Ve],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Jt(n))return n;let r=e.setData;if(typeof r==`function`&&!Jt(r))return r}function mi(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function hi(e,t,n){try{return t.call(e,n)}catch(t){let n=mi(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function gi(e,t){let n=Object.keys(e);for(let r of n)if(!Q(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function _i(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function vi(e){var t,n,r;let i={devOnly:!0,sampleWindowMs:1e3,maxCalls:30,coolDownMs:5e3,warnOnPageScroll:!0,pageScrollCoolDownMs:2e3};return e===void 0||e===!1?{...i,enabled:!1}:e===!0?{...i,enabled:!0}:_i(e)?{enabled:(t=e.enabled)==null?!0:t,devOnly:(n=e.devOnly)==null?i.devOnly:n,sampleWindowMs:typeof e.sampleWindowMs==`number`?Math.max(100,Math.floor(e.sampleWindowMs)):i.sampleWindowMs,maxCalls:typeof e.maxCalls==`number`?Math.max(1,Math.floor(e.maxCalls)):i.maxCalls,coolDownMs:typeof e.coolDownMs==`number`?Math.max(0,Math.floor(e.coolDownMs)):i.coolDownMs,warnOnPageScroll:(r=e.warnOnPageScroll)==null?i.warnOnPageScroll:r,pageScrollCoolDownMs:typeof e.pageScrollCoolDownMs==`number`?Math.max(0,Math.floor(e.pageScrollCoolDownMs)):i.pageScrollCoolDownMs}:{...i,enabled:!1}}function yi(){let e=re();if((e==null?void 0:e.debug)===!0||(e==null?void 0:e.envVersion)===`develop`)return!0;let t=H();try{var n;if((t==null||(n=t.getAccountInfoSync)==null||(n=n.call(t))==null||(n=n.miniProgram)==null?void 0:n.envVersion)===`develop`)return!0}catch(e){}return!1}function bi(e){var t,n;let r=vi(e.option);if(!r.enabled)return;let i=yi();if(r.devOnly&&!i)return;let a=(t=e.now)==null?(()=>Date.now()):t,o=(n=e.logger)==null?(e=>{var t;let n=(t=globalThis)==null||(t=t.console)==null?void 0:t.warn;typeof n==`function`&&n(e)}):n,s=[],c=-1/0,l=-1/0;return()=>{var t,n;let i=a();s.push(i);let u=i-r.sampleWindowMs;for(;s.length>0&&s[0]<u;)s.shift();let d=(t=(n=e.isInPageScrollHook)==null?void 0:n.call(e))==null?!1:t;r.warnOnPageScroll&&d&&(r.pageScrollCoolDownMs<=0||i-l>=r.pageScrollCoolDownMs)&&(l=i,o(`[wevu:setData] 检测到 onPageScroll 回调内调用 setData(${e.targetLabel})。建议改用 IntersectionObserver 监听可见性,或对滚动更新做节流。`)),!(s.length<=r.maxCalls)&&(r.coolDownMs>0&&i-c<r.coolDownMs||(c=i,o(`[wevu:setData] 检测到高频 setData 调用:${s.length} 次/${r.sampleWindowMs}ms(${e.targetLabel})。建议合并更新或降低调用频率。`)))}}function xi(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=xi(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 Si(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 Ci(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=xi(o,e,n);if(!t)continue;let s=Si(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function wi(e){typeof e.route!=`string`||!e.route||(e[De]=(t,n)=>{var r;let i=(r=e.__wevu)==null?void 0:r.state;if(!i||typeof i!=`object`)return;i[we]=fr(t);let a=t===!1||n==null?{}:n;i[Ee]=a,lr(e,t,a)})}function Ti(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m;if(e.__wevu)return e.__wevu;ai(e,t),Gr(e);let h=mr(),g=!!(!(t==null||(a=t.__wevuSetDataOptions)==null)&&a.suspendWhenHidden),_=typeof e.route==`string`&&e.route?`page:${e.route}`:typeof e.is==`string`&&e.is?`component:${e.is}`:`unknown-target`,v=bi({option:t==null||(o=t.__wevuSetDataOptions)==null?void 0:o.highFrequencyWarning,targetLabel:_,isInPageScrollHook:()=>{var t;return Number((t=e[Oe])==null?0:t)>0}}),y=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=pi(e);if(a)return hi(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=pi(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,hi(e,r,n)}},r})(e):{setData(t){let n=pi(e);if(n)return hi(e,n,t)}},b,x=!0,S,C=(e,t)=>({...e==null?{}:e,...t}),w=()=>{var t;if(!b)return;let n=br(b),r=(t=e[X])==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;hr(h,n,b.proxy)},T={...y,setData(t){if(v==null||v(),g&&!x){S=C(S,t),w(),Lr(e);return}let n=y.setData(t);return w(),Lr(e),n},__wevu_setVisibility(t){if(x=t,!x||!S)return;let n=S;S=void 0;let r=y.setData(n);return w(),Lr(e),r}},E=t.mount({...T});b=E,fi(E,e);let D=(s=E==null?void 0:E.proxy)==null?{}:s,O=(c=E==null?void 0:E.state)==null?{}:c;O&&typeof O==`object`&&(di(O,E),ui(O,e));let k=(l=E==null?void 0:E.computed)==null?Object.create(null):l;if(!(E!=null&&E.methods))try{E.methods=Object.create(null)}catch(e){}let A=(u=E==null?void 0:E.methods)==null?Object.create(null):u,j=(d=E==null?void 0:E.watch)==null?(()=>Wr()):d,M=(f=E==null?void 0:E.bindModel)==null?(()=>{}):f,N={...E==null?{}:E,state:O,proxy:D,methods:A,computed:k,watch:j,bindModel:M,snapshot:(p=E==null?void 0:E.snapshot)==null?(()=>Object.create(null)):p,unmount:(m=E==null?void 0:E.unmount)==null?(()=>{}):m},P=N,F={__wevu_flushSetupSnapshotSync:E.__wevu_flushSetupSnapshotSync,__wevu_touchSetupMethodsVersion:E.__wevu_touchSetupMethodsVersion,__wevu_trackSetupReactiveKey:E.__wevu_trackSetupReactiveKey};for(let[e,t]of Object.entries(F))t&&Object.defineProperty(N,e,{configurable:!0,enumerable:!1,value:t,writable:!0});if(Object.defineProperty(e,Z,{value:N,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=N,wi(e),xr(e,N,h),n){let t=Ci(N,n,e);t.length&&(e[et]=t)}if(r){var I;ci({target:e,runtime:E,runtimeWithDefaults:N,runtimeState:O,runtimeProxy:D,setup:r,syncRuntimeProps:gi,attachRuntimeProxyProps:li}),(I=P.__wevu_flushSetupSnapshotSync)==null||I.call(P),w()}return ei(e,E),E}function Ei(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function Di(e,t){var n;let r=(n=e.__wevu)==null?void 0:n.adapter;r&&typeof r.__wevu_setVisibility==`function`&&r.__wevu_setVisibility(t)}function Oi(e){var t;let n=e.__wevu,r=e[Ue];r&&gr(r),Rr(e),n&&e[me]&&W(e,`onUnload`,[]),e[me]&&(e[me]=void 0);let i=e[et];if(Array.isArray(i))for(let e of i)try{e()}catch(e){}e[et]=void 0,(t=e[q])==null||t.stop(),e[q]=void 0,n&&n.unmount(),delete e.__wevu,Z in e&&delete e[Z]}const ki=`__wevuAppGlobalListeners`,Ai=`__wevuOnMemoryWarningListener`;function ji(e){let t=e[me],n=!!(t!=null&&t.onMemoryWarning);if(!ie(`appMemoryWarningListener`)){delete e[Ai];return}let r=H(),i=r==null?void 0:r.onMemoryWarning,a=r==null?void 0:r.offMemoryWarning;if(typeof i!=`function`)return;let o=e[Ai];if(typeof o==`function`&&typeof a==`function`)try{a(o)}catch(e){}if(!n){delete e[Ai];return}let s=t=>{W(e,`onMemoryWarning`,[t])};e[Ai]=s,i(s)}function Mi(e,t){var n,r;let{hookName:i,onApiName:a,offApiName:o,capabilityName:s,userHandler:c}=t,l=e[me],u=!!(l!=null&&l[i]),d=(r=(n=e)[ki])==null?n[ki]=Object.create(null):r,f=d[i];if(!ie(s)){delete d[i],delete e[i];return}let p=H(),m=p==null?void 0:p[a],h=p==null?void 0:p[o];if(typeof f==`function`&&typeof h==`function`)try{h(f)}catch(e){}if(!u&&typeof c!=`function`){delete d[i];return}let g=(...t)=>{W(e,i,t),typeof c==`function`&&c.apply(e,t)};e[i]=g,d[i]=g,typeof m==`function`&&m(g)}function Ni(e,t){Mi(e,{hookName:`onError`,onApiName:`onError`,offApiName:`offError`,capabilityName:`appErrorListener`,userHandler:t.onError}),Mi(e,{hookName:`onPageNotFound`,onApiName:`onPageNotFound`,offApiName:`offPageNotFound`,capabilityName:`appPageNotFoundListener`,userHandler:t.onPageNotFound}),Mi(e,{hookName:`onUnhandledRejection`,onApiName:`onUnhandledRejection`,offApiName:`offUnhandledRejection`,capabilityName:`appUnhandledRejectionListener`,userHandler:t.onUnhandledRejection}),Mi(e,{hookName:`onThemeChange`,onApiName:`onThemeChange`,offApiName:`offThemeChange`,capabilityName:`appThemeChangeListener`,userHandler:t.onThemeChange})}function Pi(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[he]||(s[he]=function(e){var t,n;let r=this.__wevu;return ar((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n[J])});let c=s.onLaunch,l=s.onError,u=s.onPageNotFound,d=s.onUnhandledRejection,f=s.onThemeChange;s.onLaunch=function(...t){this[ge]=!0,Ti(this,e,n,r),ji(this),Ni(this,{onError:l,onPageNotFound:u,onUnhandledRejection:d,onThemeChange:f}),W(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let p=s.onShow;s.onShow=function(...e){W(this,`onShow`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onHide;s.onHide=function(...e){W(this,`onHide`,e),typeof m==`function`&&m.apply(this,e)},delete s.onError,delete s.onPageNotFound,delete s.onUnhandledRejection,delete s.onThemeChange;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 Fi(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:(()=>({}))}}function Ii(e,t){let{enableOnSaveExitState:n,enableOnPullDownRefresh:r,enableOnReachBottom:i,enableOnPageScroll:a,enableOnRouteDone:o,enableOnTabItemTap:s,enableOnResize:c,enableOnShareAppMessage:l,enableOnShareTimeline:u,enableOnAddToFavorites:d,effectiveOnSaveExitState:f,effectiveOnPullDownRefresh:p,effectiveOnReachBottom:m,effectiveOnPageScroll:h,effectiveOnRouteDone:g,effectiveOnTabItemTap:_,effectiveOnResize:v,effectiveOnShareAppMessage:y,effectiveOnShareTimeline:b,effectiveOnAddToFavorites:x,hasHook:S}=t;n&&(e.onSaveExitState=function(...e){let t=oe(this,`onSaveExitState`,e);return t===void 0?f.apply(this,e):t}),r&&(e.onPullDownRefresh=function(...e){if(W(this,`onPullDownRefresh`,e),!S(this,`onPullDownRefresh`))return p.apply(this,e)}),i&&(e.onReachBottom=function(...e){if(W(this,`onReachBottom`,e),!S(this,`onReachBottom`))return m.apply(this,e)}),a&&(e.onPageScroll=function(...e){return F(this,()=>{if(W(this,`onPageScroll`,e),!S(this,`onPageScroll`))return h.apply(this,e)})}),o&&(e.onRouteDone=function(...e){if(!this[Fe]&&(this[Fe]=!0,Promise.resolve().then(()=>{this[Fe]=!1}),this[Pe]=!0,W(this,`onRouteDone`,e),!S(this,`onRouteDone`)))return g.apply(this,e)}),s&&(e.onTabItemTap=function(...e){if(W(this,`onTabItemTap`,e),!S(this,`onTabItemTap`))return _.apply(this,e)}),c&&(e.onResize=function(...e){if(W(this,`onResize`,e),!S(this,`onResize`))return v.apply(this,e)}),l&&(e.onShareAppMessage=function(...e){let t=oe(this,`onShareAppMessage`,e);return t===void 0?y.apply(this,e):t}),u&&(e.onShareTimeline=function(...e){let t=oe(this,`onShareTimeline`,e);return t===void 0?b.apply(this,e):t}),d&&(e.onAddToFavorites=function(...e){let t=oe(this,`onAddToFavorites`,e);return t===void 0?x.apply(this,e):t})}function Li(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:O,effectiveOnShareAppMessage:k,effectiveOnShareTimeline:A,effectiveOnAddToFavorites:j,hasHook:M}=e,N={onLoad(...e){if(!this[xe]&&(this[xe]=!0,Ti(this,t,n,r),Ei(this),l&&ue({enableOnShareAppMessage:v,enableOnShareTimeline:y}),W(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&D(this),Oi(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(ee(),de(this),this[xe]||N.onLoad.call(this,le(this)),ue({enableOnShareAppMessage:v,enableOnShareTimeline:y}),this[Pe]=!1),Di(this,!0),W(this,`onShow`,e),typeof o==`function`)return o.apply(this,e)},onHide(...e){if(l&&D(this),Di(this,!1),W(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this[xe]||N.onLoad.call(this,le(this)),ue({enableOnShareAppMessage:v,enableOnShareTimeline:y})),!this[Me]){if(this[Me]=!0,l&&m&&h){let e=this;setTimeout(()=>{if(!e[Pe]){var t;(t=N.onRouteDone)==null||t.call(e)}},0)}Lr(this,()=>{W(this,`onReady`,e),typeof c==`function`&&c.apply(this,e)});return}if(typeof c==`function`)return c.apply(this,e)}};return Ii(N,{enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:v,enableOnShareTimeline:y,enableOnAddToFavorites:b,effectiveOnSaveExitState:x,effectiveOnPullDownRefresh:S,effectiveOnReachBottom:C,effectiveOnPageScroll:w,effectiveOnRouteDone:T,effectiveOnTabItemTap:E,effectiveOnResize:O,effectiveOnShareAppMessage:k,effectiveOnShareTimeline:A,effectiveOnAddToFavorites:j,hasHook:M}),N}function Ri(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r[he]||(r[he]=function(e){var t,n;let r=this.__wevu;return ar((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n[J])}),r[ye]||(r[ye]=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=Ft(e);try{a.bindModel(i).update(o)}catch(e){}}),!r[Ce]&&typeof(n==null?void 0:n[Ce])==`function`&&(r[Ce]=n[Ce]);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[Le]}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(`createIntersectionObserver`)||r(`setData`)||!(typeof t.triggerEvent==`function`||typeof t.createSelectorQuery==`function`||typeof t.createIntersectionObserver==`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,Y,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i[Y]=t}}for(let e of i){if(e===J||e.startsWith(Ne))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 zi(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(zi(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=zi(i,t);return n}function Bi(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function Vi(e){var t;let{methods:n={},lifetimes:r={},pageLifetimes:i={},options:a={},...o}=e,s=o.onLoad,c=o.onUnload,l=o.onShow,u=o.onHide,d=o.onReady,f=o.onSaveExitState,p=o.onPullDownRefresh,m=o.onReachBottom,h=o.onPageScroll,g=o.onRouteDone,_=o.onTabItemTap,v=o.onResize,y=o.onShareAppMessage,b=o.onShareTimeline,x=o.onAddToFavorites,S=(t=o.features)==null?{}:t,C=[s,c,l,u,d,f,p,m,h,g,_,v,y,b,x].some(e=>typeof e==`function`),w=!!o.__wevu_isPage||Object.keys(S==null?{}:S).length>0||C,T={...o},E=new Set([`data`,`behaviors`,`relations`,`externalClasses`,`options`,`properties`,`observers`,`pureDataPattern`,`virtualHost`,`definitionFilter`,`export`,`__wevuTemplateRefs`,`__wevuLayoutHosts`,`setupLifecycle`,`features`,`__wevu_isPage`]),D=[];for(let[e,t]of Object.entries(T))E.has(e)||typeof t!=`function`&&(D.push([e,t]),delete T[e]);let O=e=>{if(D.length){for(let[t,n]of D)if(!Q(e,t))try{e[t]=zi(n)}catch(e){}}},k=new Set([`data`,`export`,`definitionFilter`,`onLoad`,`onUnload`,`onShow`,`onHide`,`onReady`,`onSaveExitState`,`onPullDownRefresh`,`onReachBottom`,`onPageScroll`,`onRouteDone`,`onTabItemTap`,`onResize`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]),A={};for(let[e,t]of Object.entries(T))typeof t!=`function`||k.has(e)||(A[e]=t,delete T[e]);let j=T.__wevuTemplateRefs;delete T.__wevuTemplateRefs;let M=T.__wevuLayoutHosts;delete T.__wevuLayoutHosts;let N=T.observers,P=T.setupLifecycle===`created`?`created`:`attached`;delete T.setupLifecycle;let F=T.created;return delete T.features,delete T.created,delete T.onLoad,delete T.onUnload,delete T.onShow,delete T.onHide,delete T.onReady,{userMethods:n,userLifetimes:r,userPageLifetimes:i,userOptions:a,restOptions:T,topLevelMethods:A,templateRefs:j,layoutHosts:M,userObservers:N,setupLifecycle:P,legacyCreated:F,isPage:w,features:S,userOnLoad:s,userOnUnload:c,userOnShow:l,userOnHide:u,userOnReady:d,userOnSaveExitState:f,userOnPullDownRefresh:p,userOnReachBottom:m,userOnPageScroll:h,userOnRouteDone:g,userOnTabItemTap:_,userOnResize:v,userOnShareAppMessage:y,userOnShareTimeline:b,userOnAddToFavorites:x,applyExtraInstanceFields:O}}function Hi(e){var t;let n=e.__wevu,r=e[Ue];if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e[X])==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;hr(r,i,n.proxy)}function Ui(e){let{restOptions:t,userObservers:n}=e,r=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],i=new Set(r),a=e=>{try{Object.defineProperty(e,je,{value:r,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[je]=r}},o=e=>{let t=e[fe];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&&Q(r,t)},r=e.properties,a=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!a||!Q(a,e)||i.has(e)||n(e))try{delete t[e]}catch(e){}if(!a){Hi(e);return}for(let[e,r]of Object.entries(a))if(!(i.has(e)||n(e)))try{t[e]=r}catch(e){}Hi(e)},s=e=>{let t=e[X],n=e.properties,r=e[Ae];if(t&&typeof t==`object`&&n&&typeof n==`object`){let i=n,a=Object.keys(t);for(let e of a)if(!Q(i,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(i)){let i=r&&Q(r,e)?r[e]:n;try{t[e]=i}catch(e){}}if(r){for(let[e,n]of Object.entries(r))if(!Q(i,e))try{t[e]=n}catch(e){}}Hi(e)}r&&delete e[Ae],o(e)},c=(e,t,n)=>{var r,i;let a=e[X];if(!a||typeof a!=`object`)return;try{a[t]=n}catch(e){}let s=(i=(r=e)[Ae])==null?r[Ae]=Object.create(null):i;s[t]=n,Hi(e),o(e)},l={};if(r.length)for(let e of r)l[e]=function(t){c(this,e,t)};let u={...n==null?{}:n};for(let[e,t]of Object.entries(l)){let n=u[e];typeof n==`function`?u[e]=function(...e){n.apply(this,e),t.apply(this,e)}:u[e]=t}let d=u[`**`];return u[`**`]=function(...e){typeof d==`function`&&d.apply(this,e),s(this)},{attachWevuPropKeys:a,syncWevuPropsFromInstance:s,finalObservers:u}}const Wi=new Map;function Gi(){let e=ce();return e[e.length-1]}function Ki(e){return Array.from(new Set(Array.isArray(e)?e:[e])).filter(e=>typeof e==`string`&&e.length>0)}function qi(e){return tt(e)}function Ji(e){return e&&typeof e.__wevuSetPageLayout==`function`?e:Gi()}function Yi(e){var t,n;if(!e||typeof e!=`object`)return;let r=(t=e[Z])==null||(t=t.state)==null?void 0:t[Y];if(r&&typeof r==`object`)return r;let i=(n=e.$state)==null?void 0:n[Y];return i&&typeof i==`object`?i:e[Y]&&typeof e[Y]==`object`?e[Y]:e}function Xi(e){return typeof e==`function`?e():g(e)?e.value:e}function Zi(e,t){return e.find(e=>e.key===t)}function Qi(e,t){let n=e==null?void 0:e.selectComponent;if(typeof n!=`function`)return null;try{var r;return(r=n.call(e,t))==null?null:r}catch(e){return null}}function $i(e,t){var n,r,i,a,o,s,c,l;if(!e.refName)return null;let u=Dr(t),d=(n=(r=(i=(a=t[Z])==null||(a=a.state)==null?void 0:a.$refs)==null?(o=t.__wevu)==null||(o=o.state)==null?void 0:o.$refs:i)==null?(s=t.$state)==null?void 0:s.$refs:r)==null?t.$refs:n,f=(c=u==null||(l=u.get(e.refName))==null?void 0:l.value)==null?d==null?void 0:d[e.refName]:c;if(Array.isArray(f)){var p;return(p=f[0])==null?null:p}return f==null?null:f}function ea(e,t){let n=Yi(t);return Object.assign(n&&typeof n==`object`?Object.create(n):{},{selectComponent(r){let i=Zi(e,r);if(!i)return null;if(i.kind===`component`||!i.kind){var a,o;return $i(i,t)||((a=(o=Qi(n,i.selector))==null?Qi(Gi(),i.selector):o)==null?null:a)}return null}})}function ta(e,t){let n=t==null?U():t,r=Ji(n),i=qi(r);if(!n||!r||i.length===0)return!1;for(let t of i){var a;let r=(a=Wi.get(t))==null?new Map:a;for(let t of Ki(e))r.set(t,n);Wi.set(t,r)}return n[_e]=i,!0}function na(e,t){var n;let r=t==null?U():t,i=Ji(r),a=(n=r==null?void 0:r[_e])==null?qi(i):n;if(!r||!Array.isArray(a)||a.length===0)return!1;let o=!1;for(let t of a){let n=Wi.get(t);if(n){for(let t of Ki(e))n.get(t)===r&&(n.delete(t),o=!0);n.size===0&&Wi.delete(t)}}return delete r[_e],o}function ra(e,t){var n,r;let i=qi((n=Gi())==null?Ji(t):n).map(t=>{var n;return(n=Wi.get(t))==null?void 0:n.get(e)}).find(Boolean);return(r=i==null?t:i)==null?U():r}function ia(e,t={}){var n,r;let i=ra(e,(n=t.context)==null?t.fallbackContext:n),a=i==null||(r=i.selectComponent)==null?void 0:r.call(i,e);return a==null?null:a}function aa(e,t={}){var n,r;let i=(n=t.retries)==null?20:n,a=(r=t.interval)==null?16:r,o=ia(e,t);return o||i<=0?Promise.resolve(o):new Promise(n=>{setTimeout(()=>{n(aa(e,{...t,retries:i-1}))},a)})}function oa(e,t={}){if(!z())throw Error(`useLayoutBridge() 必须在 setup() 的同步阶段调用`);let n=U(),r=Ki(e),i=t.resolveComponent,a=Yi(n),o=Object.assign(a&&typeof a==`object`?Object.create(a):{},{selectComponent(e){var t,a,o;if(!r.includes(e))return null;let s=i==null?void 0:i(e);if(s!==void 0)return s;let c=Yi(n),l=c==null||(t=c.selectComponent)==null?void 0:t.call(c,e);if(l)return l;let u=Gi();return(a=u==null||(o=u.selectComponent)==null?void 0:o.call(u,e))==null?null:a}});ta(r,o),j(()=>{ta(r,o)}),M(()=>{na(r,o)})}function sa(e,t){if(!e.length)return null;let n=t==null?U():t;if(!n)return null;let r=ea(e,n);return ta(e.map(e=>e.key),r),r}function ca(e,t){if(!e.length)return!1;let n=t==null?U():t;return n?na(e.map(e=>e.key),n):!1}function la(e){oa(Object.keys(e),{resolveComponent(t){return Xi(e[t])}})}function ua(e){let{runtimeApp:t,watch:n,setup:r,restOptions:i,pageLifecycleHooks:a,finalObservers:o,userLifetimes:s,userPageLifetimes:c,finalMethods:l,finalOptions:u,applyExtraInstanceFields:d,templateRefs:f,layoutHosts:p,attachWevuPropKeys:m,setupLifecycle:h,syncWevuPropsFromInstance:g,isPage:_,legacyCreated:v,getRuntimeOwnerLabel:y}=e,b={},x=e=>{if(!Array.isArray(p)||!p.length||e[ve])return;let t=sa(p,e);t&&(e[ve]=t)},S=e=>{_&&(e[De]=(t,n)=>{var r;let i=(r=e.__wevu)==null?void 0:r.state;if(!i||typeof i!=`object`)return;i[we]=fr(t);let a=t===!1||n==null?{}:n;i[Ee]=a,lr(e,t,a)})};if(_)for(let e of[`onReachBottom`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=a[e];typeof t==`function`&&typeof l[e]!=`function`&&(b[e]=function(...e){return t.apply(this,e)})}Component({...i,...a,observers:o,lifetimes:{...s,created:function(...e){if(d(this),Array.isArray(f)&&f.length&&Object.defineProperty(this,Ze,{value:f,configurable:!0,enumerable:!1,writable:!1}),m(this),h===`created`){try{Ti(this,t,n,r,{deferSetData:!0})}catch(e){let t=y(this);throw Error(`[wevu] mount runtime failed in created (${t}): ${e instanceof Error?e.message:String(e)}`)}g(this),S(this)}typeof v==`function`&&v.apply(this,e),typeof s.created==`function`&&s.created.apply(this,e)},moved:function(...e){W(this,`onMoved`,e),typeof s.moved==`function`&&s.moved.apply(this,e)},attached:function(...e){if(d(this),Array.isArray(f)&&f.length&&!this[Ze]&&Object.defineProperty(this,Ze,{value:f,configurable:!0,enumerable:!1,writable:!1}),m(this),h!==`created`||!this.__wevu)try{Ti(this,t,n,r)}catch(e){let t=y(this);throw Error(`[wevu] mount runtime failed in attached (${t}): ${e instanceof Error?e.message:String(e)}`)}g(this),S(this),x(this),h===`created`&&Ei(this),W(this,`onAttached`,e),typeof s.attached==`function`&&s.attached.apply(this,e)},ready:function(...e){if(_&&typeof a.onReady==`function`){a.onReady.call(this,...e),typeof s.ready==`function`&&s.ready.apply(this,e);return}if(!this[Me]){this[Me]=!0,g(this),Lr(this,()=>{W(this,`onReady`,e),typeof s.ready==`function`&&s.ready.apply(this,e)});return}typeof s.ready==`function`&&s.ready.apply(this,e)},detached:function(...e){if(W(this,`onDetached`,e),_&&typeof a.onUnload==`function`){a.onUnload.call(this,...e),typeof s.detached==`function`&&s.detached.apply(this,e);return}Rr(this),Array.isArray(p)&&p.length&&this[ve]&&(ca(p,this[ve]),delete this[ve]),Oi(this),typeof s.detached==`function`&&s.detached.apply(this,e)},error:function(...e){W(this,`onError`,e),typeof s.error==`function`&&s.error.apply(this,e)}},pageLifetimes:{...c,show:function(...e){if(_&&typeof a.onShow==`function`){a.onShow.call(this,...e),typeof c.show==`function`&&c.show.apply(this,e);return}Di(this,!0),W(this,`onShow`,e),typeof c.show==`function`&&c.show.apply(this,e)},hide:function(...e){if(_&&typeof a.onHide==`function`){a.onHide.call(this,...e),typeof c.hide==`function`&&c.hide.apply(this,e);return}Di(this,!1),W(this,`onHide`,e),typeof c.hide==`function`&&c.hide.apply(this,e)},resize:function(...e){if(_&&typeof a.onResize==`function`){a.onResize.call(this,...e),typeof c.resize==`function`&&c.resize.apply(this,e);return}W(this,`onResize`,e),typeof c.resize==`function`&&c.resize.apply(this,e)},routeDone:function(...e){if(_&&typeof a.onRouteDone==`function`){a.onRouteDone.call(this,...e),typeof c.routeDone==`function`&&c.routeDone.apply(this,e);return}W(this,`onRouteDone`,e),typeof c.routeDone==`function`&&c.routeDone.apply(this,e)}},methods:{...b,...l},options:u})}function da(e,t,n,r,i){var a;let{userMethods:o,userLifetimes:s,userPageLifetimes:c,userOptions:l,restOptions:u,topLevelMethods:d,templateRefs:f,layoutHosts:p,userObservers:m,setupLifecycle:h,legacyCreated:g,isPage:_,features:v,userOnLoad:y,userOnUnload:b,userOnShow:x,userOnHide:S,userOnReady:C,userOnSaveExitState:w,userOnPullDownRefresh:T,userOnReachBottom:E,userOnPageScroll:D,userOnRouteDone:O,userOnTabItemTap:k,userOnResize:A,userOnShareAppMessage:j,userOnShareTimeline:M,userOnAddToFavorites:N,applyExtraInstanceFields:P}=Vi(i),{enableOnPullDownRefresh:F,enableOnReachBottom:I,enableOnPageScroll:L,enableOnRouteDone:R,enableOnRouteDoneFallback:z,enableOnTabItemTap:ee,enableOnResize:te,enableOnShareAppMessage:B,enableOnShareTimeline:V,enableOnAddToFavorites:H,enableOnSaveExitState:U,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:ie,effectiveOnPageScroll:W,effectiveOnRouteDone:G,effectiveOnTabItemTap:ae,effectiveOnResize:oe,effectiveOnShareAppMessage:se,effectiveOnShareTimeline:K,effectiveOnAddToFavorites:ce}=Fi({features:v,userOnSaveExitState:w,userOnPullDownRefresh:T,userOnReachBottom:E,userOnPageScroll:D,userOnRouteDone:O,userOnTabItemTap:k,userOnResize:A,userOnShareAppMessage:j,userOnShareTimeline:M,userOnAddToFavorites:N}),le=(e,t)=>{let n=e[me];if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=u.export;u.export=function(){var t;let n=(t=this[pe])==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let ue={multipleSlots:(a=l.multipleSlots)==null?!0:a,...l},{attachWevuPropKeys:de,syncWevuPropsFromInstance:fe,finalObservers:q}=Ui({restOptions:u,userObservers:m}),{finalMethods:he}=Ri({userMethods:{...d,...o},runtimeMethods:t});ua({runtimeApp:e,watch:n,setup:r,restOptions:u,pageLifecycleHooks:Li({runtimeApp:e,watch:n,setup:r,userOnLoad:y,userOnUnload:b,userOnShow:x,userOnHide:S,userOnReady:C,isPage:_,enableOnSaveExitState:U,enableOnPullDownRefresh:F,enableOnReachBottom:I,enableOnPageScroll:L,enableOnRouteDone:R,enableOnRouteDoneFallback:z,enableOnTabItemTap:ee,enableOnResize:te,enableOnShareAppMessage:B,enableOnShareTimeline:V,enableOnAddToFavorites:H,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:ie,effectiveOnPageScroll:W,effectiveOnRouteDone:G,effectiveOnTabItemTap:ae,effectiveOnResize:oe,effectiveOnShareAppMessage:se,effectiveOnShareTimeline:K,effectiveOnAddToFavorites:ce,hasHook:le}),finalObservers:q,userLifetimes:s,userPageLifetimes:c,finalMethods:he,finalOptions:ue,applyExtraInstanceFields:P,templateRefs:f,layoutHosts:p,attachWevuPropKeys:de,setupLifecycle:h,syncWevuPropsFromInstance:fe,isPage:_,legacyCreated:g,getRuntimeOwnerLabel:Bi})}function fa(e){let{[On]:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,...c}=e.__wevuDefaultsScope===`component`?e:In(e),l=i==null?{}:i,u=r==null?{}:r,d=new Set,f=new Set,p=!1,m={globalProperties:{}},h={mount:Dn({data:n,resolvedComputed:u,resolvedMethods:l,appConfig:m,setDataOptions:a}),use(e,...t){if(!e||d.has(e))return h;if(d.add(e),typeof e==`function`)e(h,...t);else if(typeof e.install==`function`)e.install(h,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return h},provide(e,t){return ne(h,e,t),h},onUnmount(e){if(typeof e!=`function`)throw TypeError(`onUnmount 只接受函数`);return p?(e(),h):(f.add(e),h)},unmount(){if(!p){p=!0;for(let e of f)e();f.clear()}},config:m,version:jt},g=typeof App==`function`;try{N(h),Object.defineProperty(h,`__wevuSetDataOptions`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(e){h.__wevuSetDataOptions=a}if(g){let e=H(),t=`__wevuAppRegistered`;e&&e[t]||(e&&(e[t]=!0),Pi(h,i==null?{}:i,o,s,c))}return h}const pa=`__wevu_allowNullPropInput`,ma=`allowNullPropInput`,ha=new Map([[String,String],[Number,Number],[Boolean,Boolean],[Object,Object],[Array,Array],[`String`,String],[`Number`,Number],[`Boolean`,Boolean],[`Object`,Object],[`Array`,Array],[null,null],[`null`,null],[`Null`,null]]);function ga(e){return ha.get(e)}function _a(e){if(e===void 0)return[];let t=Array.isArray(e)?e:[e],n=[];t.forEach(e=>{let t=ga(e);t!==void 0&&(n.includes(t)||n.push(t))});let r=n.filter(e=>e!==null);return r.length>0?r:(n.includes(null),[null])}function va(e,t){let n=_a(t);if(n.length!==0&&(e.type=n[0],n.length>1)){let t=[];for(let e of n.slice(1))t.includes(e)||t.push(e);t.length>0&&(e.optionalTypes=t)}}function ya(e,t){if(t===void 0||e.type===t)return;let n=Array.isArray(e.optionalTypes)?[...e.optionalTypes]:[];n.includes(t)||(n.push(t),e.optionalTypes=n)}function ba(e){if(!Array.isArray(e))return[];let t=[];return e.forEach(e=>{let n=ga(e);n==null||t.includes(n)||t.push(n)}),t}function xa(e,t){if(e===void 0)return;if(e===null)return{type:null};if(Array.isArray(e)||typeof e==`function`){let n={};return va(n,e),t&&n.type!==null&&ya(n,null),Q(n,`type`)||(n.type=null),n}if(typeof e!=`object`)return e;let n={...e};if(`type`in n){var r;let e=_a(n.type);n.type=(r=e[0])==null?null:r;let t=ba(n.optionalTypes);for(let n of e.slice(1))n!==null&&!t.includes(n)&&t.push(n);t.length>0?n.optionalTypes=t:delete n.optionalTypes}return Q(n,`type`)||(n.type=null),t&&n.type!==null&&ya(n,null),n}function Sa(e,t){let n={};return Object.entries(e).forEach(([e,r])=>{let i=xa(r,t);i!==void 0&&(n[e]=i)}),n}function Ca(e,t){let n={};return e&&Object.entries(e).forEach(([e,r])=>{if(r!==void 0){if(r===null){n[e]={type:null};return}if(Array.isArray(r)||typeof r==`function`){let i={};va(i,r),t&&i.type!==null&&ya(i,null),Q(i,`type`)||(i.type=null),n[e]=i;return}if(typeof r==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(r).length===0){n[e]={type:Object,value:{}};return}let i={};if(`type`in r&&r.type!==void 0&&va(i,r.type),Array.isArray(r.optionalTypes)){let e=r.optionalTypes.map(e=>ga(e)).filter(e=>e!=null);if(e.length>0){let t=Array.isArray(i.optionalTypes)?i.optionalTypes:[];for(let n of e)n!==i.type&&(t.includes(n)||t.push(n));t.length>0&&(i.optionalTypes=t)}}`observer`in r&&(typeof r.observer==`function`||typeof r.observer==`string`)&&(i.observer=r.observer);let a=`default`in r?r.default:r.value;a!==void 0&&(i.value=typeof a==`function`?a():a),t&&i.type!==null&&ya(i,null),Q(i,`type`)||(i.type=null),n[e]=i}}}),n}function wa(e,t,n){var r;let i=!!((r=e[pa])==null?e[ma]:r),{[pa]:a,[ma]:o,...s}=e,c=e.properties,l=n==null?c&&typeof c==`object`?c:void 0:n,u=!!(t||l),d=e=>{let t={...e==null?{}:e};return u?(Q(t,We)||(t[We]={type:String,value:``}),Q(t,Ye)||(t[Ye]={type:null,value:null}),Q(t,He)||(t[He]={type:null,value:null}),t):t};if(l){let{properties:e,...n}=s,r=l?i?Sa(l,i):l:void 0,a=Ca(t,i);return{...n,properties:d({...a,...r})}}return{...s,properties:d(Ca(t,i))}}const Ta=/&amp;/g,Ea=/&quot;/g,Da=/&#34;/g,Oa=/&apos;/g,ka=/&#39;/g,Aa=/&lt;/g,ja=/&gt;/g;function Ma(e){return e.replace(Ta,`&`).replace(Ea,`"`).replace(Da,`"`).replace(Oa,`'`).replace(ka,`'`).replace(Aa,`<`).replace(ja,`>`)}function Na(e){var t,n,r,i;let a=er((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(Ma(a))}catch(e){o=[]}}return Array.isArray(o)||(o=[]),o.map(t=>t===`$event`?e:t)}function Pa(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 Fa(e){var t,n,r,i;return(t=(n=e==null||(r=e.__wevu)==null?void 0:r.proxy)==null?e==null||(i=e[Z])==null?void 0:i.proxy:n)==null?e:t}function Ia(e,t){if(!t||Object.keys(t).length===0)return;let n=Fa(e),r={};for(let[e,i]of Object.entries(t))try{let t;typeof i==`function`?t=i.call(n):typeof(i==null?void 0:i.get)==`function`&&(t=i.get.call(n)),t!==void 0&&(r[e]=t)}catch(e){}return r}function La(e){var t,n;e==null||(t=e.__wevu)==null||(n=t.__wevu_flushSetupSnapshotSync)==null||n.call(t)}function Ra(e,t){La(e);let n=Ia(e,t);n&&Object.keys(n).length>0&&typeof(e==null?void 0:e.setData)==`function`&&e.setData(n)}function za(e,t,n){var r,i,a;let o=Q(n==null?{}:n,Ye)?n[Ye]:e==null||(r=e.properties)==null?void 0:r[Ye],s=Q(n==null?{}:n,Je)?n[Je]:e==null||(i=e.properties)==null?void 0:i[Je],c=Pa(o),l=Pa(s),u={...c,...l},d=e==null||(a=e.__wevu)==null?void 0:a.state;d&&typeof d==`object`&&(d[qe]=u),typeof(e==null?void 0:e.setData)==`function`&&e.setData({[qe]:u}),Ra(e,t)}function Ba(e,t){var n;e[Ke]=t;let r=e==null?void 0:e.data;if(r&&typeof r==`object`)try{Object.defineProperty(r,Ke,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){r[Ke]=t}let i=e==null||(n=e.__wevu)==null?void 0:n.state;i&&typeof i==`object`&&(i[Ke]=t)}function Va(e,t,n,r){var i;Ba(e,n);let a=e==null||(i=e.__wevu)==null?void 0:i.state;a&&typeof a==`object`&&(a[Ge]=t||{}),typeof(e==null?void 0:e.setData)==`function`&&e.setData({[Ge]:t||{}}),Ra(e,r)}function Ha(e,t,n){if(!t){typeof(e==null?void 0:e.__wvOwnerUnsub)==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerUnsub=void 0,e.__wvOwnerBoundId=``,Ba(e,void 0);return}let r=(t,r)=>{Va(e,t,r,n)};e.__wvOwnerBoundId!==t&&(typeof e.__wvOwnerUnsub==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerBoundId=t,e.__wvOwnerUnsub=_r(t,r));let i=yr(t);i&&r(i,vr(t))}function Ua(e){var t,n,r,i;return(t=(n=e==null||(r=e.properties)==null?void 0:r[We])==null?e==null||(i=e.properties)==null?void 0:i[Ue]:n)==null?``:t}function Wa(e,t){za(e,t);let n=Ua(e);n&&Ha(e,n,t)}function Ga(){let e={[Ge]:{},[qe]:{}};return Object.defineProperty(e,Ke,{value:void 0,configurable:!0,enumerable:!1,writable:!0}),e}function Ka(e){let t=e==null?void 0:e.computed,n={options:{virtualHost:!0},setData:{omit:[Ue,We,Ke]},properties:{[We]:{type:String,value:``,observer(e){Ha(this,e||``,t)}},[Ue]:{type:String,value:``,observer(e){Ha(this,e||``,t)}},[Je]:{type:null,value:null,observer(e){za(this,t,{[Je]:e})}},[Ye]:{type:null,value:null,observer(e){za(this,t,{[Ye]:e})}}},data:Ga,lifetimes:{attached(){Wa(this,t)},ready(){Wa(this,t)},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerBoundId=``,Ba(this,void 0)}},methods:{[Ce](e){var t,n,r,i,a;let o=this[Ke],s=ar(o,void 0,e,(t=this.__wevu)==null||(t=t.methods)==null?void 0:t[J]);if(s!==void 0)return s;if(!o)return;let c=er((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=Na(e);return l.apply(o,u)}}};return e!=null&&e.computed&&Object.keys(e.computed).length>0&&(n.computed=e.computed),e!=null&&e.inlineMap&&Object.keys(e.inlineMap).length>0&&(n.methods={...n.methods,[J]:e.inlineMap}),n}function qa(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ja(e){return typeof e!=`object`||!e||g(e)||m(e)||Array.isArray(e)?!0:qa(e)}function Ya(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t[je])?t[je]:[]),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=m(s)?T(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(Wt(i)){var u;e==null||(u=e.__wevu_trackSetupReactiveKey)==null||u.call(e,r)}if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c[X];return t&&typeof t==`object`&&Q(t,r)?t[r]:e},set(t){e=t;let n=c[X];if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!Ja(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 Xa;function Za(){let e=ae();if(!e)return;let t=e;Xa&&t[Re]!==Xa&&(t[Re]=Xa)}function Qa(e){Za();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Ln(e),u=fa({data:n,computed:r,methods:i,setData:a,[On]:`component`}),d=typeof s==`function`?((e,t)=>{let n=oi(s,e,t);return n&&t&&Ya(t.runtime,t.instance,n),n}):void 0,f=typeof n==`function`?n():n,p=wa(f===void 0?l:{...l,data:f},c),m={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:p};return da(u,i==null?{}:i,o,d,p),{__wevu_runtime:u,__wevu_options:m}}function $a(e){var t;Za();let{properties:n,props:r,...i}=e;Qa(wa({...i,allowNullPropInput:(t=i.allowNullPropInput)==null?!0:t,__wevu_allowNullPropInput:!0},r,n))}function eo(e){$a(Ka(e))}Xa=eo,Za();const to=[`dispose`,`abort`,`cancel`,`stop`,`disconnect`,`destroy`,`close`];function no(e){if(e){if(typeof e==`function`)return e;for(let t of to){let n=e[t];if(typeof n==`function`)return()=>n.call(e)}}}function ro(){if(!U())throw Error(`useDisposables() 必须在 setup() 的同步阶段调用`);let e=new Set,t=!1,n=n=>{let r=no(n);if(!r)return()=>{};if(t){try{r()}catch(e){}return()=>{}}return e.add(r),()=>{e.delete(r)}},r=()=>{if(t)return;t=!0;let n=[...e];e.clear();for(let e of n)try{e()}catch(e){}};return V(r),M(r),{add:n,dispose:r,setTimeout:(e,t,...r)=>{let i=setTimeout(e,t,...r);return n(()=>{clearTimeout(i)}),i},setInterval:(e,t,...r)=>{let i=setInterval(e,t,...r);return n(()=>{clearInterval(i)}),i}}}function io(e,t){let n=e,r=n.createIntersectionObserver;if(typeof r==`function`)return r.call(n,t);if(!ie(`globalCreateIntersectionObserver`))return;let i=H(),a=i==null?void 0:i.createIntersectionObserver;if(typeof a==`function`)return B().intersectionObserverScopeByParameter?a.call(i,e,t):a.call(i,t)}function ao(e,t){var n;if(t===!1||typeof e.relativeToViewport!=`function`)return e;let r=t&&typeof t==`object`?t:void 0;return(n=e.relativeToViewport(r))==null?e:n}function oo(e){var t;let n=(t=e.context)==null?U():t;if(!n||!z())throw Error(`useElementIntersectionObserver() 必须在 setup() 的同步阶段调用`);let r=null,i=()=>{if(r){try{r.disconnect()}catch(e){}r=null}},a=()=>{var t,a;i();let s=o(e.selector);if(!(e.enabled==null||o(e.enabled))||!s)return null;let c=io(n,o((t=e.observerOptions)==null?{}:t));return!c||typeof c.observe!=`function`?null:(r=ao(c,(a=e.relativeToViewport)==null?!0:a),r.observe(s,t=>{var n;return(n=e.onObserve)==null?void 0:n.call(e,t)}),r)};return Dt(()=>{var t;return[o(e.selector),e.enabled==null?!0:o(e.enabled),o((t=e.observerOptions)==null?{}:t),e.relativeToViewport]},()=>{a()},{deep:!0}),lt(a),ft(i),V(i),M(i),{disconnect:i,observe:a,get observer(){return r}}}function so(e,t){let n=e,r=n.createIntersectionObserver;if(typeof r==`function`)return r.call(n,t)}function co(e,t){if(!ie(`globalCreateIntersectionObserver`))return;let n=H(),r=n==null?void 0:n.createIntersectionObserver;if(typeof r==`function`)return B().intersectionObserverScopeByParameter?r.call(n,e,t):r.call(n,t)}function lo(e={}){var t;let n=U();if(!n)throw Error(`useIntersectionObserver() 必须在 setup() 的同步阶段调用`);let r=(t=so(n,e))==null?co(n,e):t;if(!r||typeof r.disconnect!=`function`)throw Error(`当前运行环境不支持 IntersectionObserver,请检查基础库版本或平台能力`);let i=!1,a=()=>{if(!i){i=!0;try{r.disconnect()}catch(e){}}};return V(a),M(a),r}function uo(e){var t,n;return e?(t=(n=e.split(`?`)[0])==null?void 0:n.replace(/^\/+/,``))==null?``:t:``}function fo(){let e=ce(),t=e[e.length-1],n=e.length||1;return{canGoBack:n>1,currentRoute:uo(t==null?void 0:t.route),stackLength:n}}function po(e={}){var t;if(!z())throw Error(`usePageStack() 必须在 setup() 的同步阶段调用`);let n=fo(),r=d(n.currentRoute),i=d(n.stackLength),a=E(()=>i.value>1),o=()=>{let e=fo();r.value=e.currentRoute,i.value=e.stackLength};return((t=e.autoRefresh)==null||t)&&(j(o),L(o)),{canGoBack:a,currentRoute:r,refresh:o,stackLength:i}}function mo(e={}){var t,n;let r=(t=e.defaultStatusBarHeight)==null?20:t,i=(n=e.defaultNavigationBarHeight)==null?44:n,a=H(),o=typeof(a==null?void 0:a.getSystemInfoSync)==`function`?a.getSystemInfoSync():{},s=Number((o==null?void 0:o.statusBarHeight)||r),c;try{c=typeof(a==null?void 0:a.getMenuButtonBoundingClientRect)==`function`?a.getMenuButtonBoundingClientRect():void 0}catch(e){}let l=Number((c==null?void 0:c.top)||0),u=Number((c==null?void 0:c.height)||0),d=l>s&&u>0?(l-s)*2+u:i;return{navigationBarHeight:d,navigationHeight:s+d,statusBarHeight:s}}function ho(e={}){var t;if(!z())throw Error(`useNavigationBarMetrics() 必须在 setup() 的同步阶段调用`);let n=mo(e),r=d(n.statusBarHeight),i=d(n.navigationBarHeight),a=E(()=>r.value+i.value),o=()=>{let t=mo(e);r.value=t.statusBarHeight,i.value=t.navigationBarHeight};return((t=e.autoRefresh)==null||t)&&j(o),{navigationBarHeight:i,navigationHeight:a,refresh:o,statusBarHeight:r}}function go(e){return typeof e!=`number`||!Number.isFinite(e)?80:Math.max(0,e)}function _o(e){if(!(typeof e!=`number`||!Number.isFinite(e)))return Math.max(0,e)}function vo(e,t={}){var n,r;if(!U())throw Error(`usePageScrollThrottle() 必须在 setup() 的同步阶段调用`);if(typeof e!=`function`)throw TypeError(`usePageScrollThrottle() 需要传入回调函数`);let i=go(t.interval),a=(n=t.leading)==null?!0:n,o=(r=t.trailing)==null?!0:r,s=_o(t.maxWait),c,l,u=!1,d=0,f,p=()=>{c&&(clearTimeout(c),c=void 0)},m=()=>{l&&(clearTimeout(l),l=void 0)},h=t=>{p(),m(),f=void 0,d=Date.now(),e(t)},g=()=>{let e=f;f=void 0,c=void 0,!(!e||u)&&h(e)},_=()=>{let e=f;l=void 0,!(!e||u)&&h(e)},v=e=>{if(!o||c)return;let t=Math.max(0,i-(e-(d===0?e:d)));c=setTimeout(g,t)},y=e=>{if(typeof s!=`number`||l)return;let t=s-(e-(d===0?e:d));if(t<=0){_();return}l=setTimeout(_,t)};I(e=>{if(u)return;if(i===0){h(e);return}let t=Date.now();if(f=e,a&&(d===0||t-d>=i)){h(e);return}if(typeof s==`number`&&t-(d===0?t:d)>=s){h(e);return}!o&&typeof s!=`number`||(v(t),y(t))});let b=()=>{u||(u=!0,f=void 0,p(),m())};return V(b),M(b),b}function yo(e,t={}){A(async()=>{try{await e()}catch(e){var n;await((n=t.onError)==null?void 0:n.call(t,e))}finally{var r;await((r=t.stopPullDownRefresh)==null?(()=>nt.stopPullDownRefresh()):r)()}})}function bo(e,t){let n=t==null?U():t;if(!n||!z())throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return n}function xo(e,t,n,r){let i=jr(e);return!i||!t?Promise.resolve(null):(r(n?i.selectAll(t):i.select(t)),new Promise(e=>{i.exec(t=>{let n=Array.isArray(t)?t[0]:null;e(n==null?null:n)})}))}function So(e={}){let t=bo(`useSelectorQuery`,e.context);return()=>jr(t)}function Co(e={}){var t;let n=bo(`useBoundingClientRect`,e.context),r=(t=e.all)==null?!1:t;return e=>xo(n,e,r,e=>e.boundingClientRect())}function wo(e){var t;let n=bo(`useSelectorFields`,e.context),r=(t=e.all)==null?!1:t;return t=>xo(n,t,r,t=>t.fields(e.fields))}function To(e={}){var t;let n=bo(`useScrollOffset`,e.context),r=(t=e.all)==null?!1:t;return e=>xo(n,e,r,e=>e.scrollOffset())}const Eo=/\B([A-Z])/g;function Do(e){return e?e.startsWith(`--`)?e:e.replace(Eo,`-$1`).toLowerCase():``}function Oo(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 ko(e){let t=``;for(let n of Object.keys(e)){let r=_(e[n]);if(r==null)continue;let i=Do(n);if(Array.isArray(r))for(let e of r){let n=_(e);n!=null&&(t=Oo(t,`${i}:${n}`))}else t=Oo(t,`${i}:${r}`)}return t}function Ao(e){let t=_(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=Ao(n);t&&(e=Oo(e,t))}return e}return typeof t==`object`?ko(t):``}function jo(e){let t=_(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=jo(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))_(t[e])&&(n+=`${e} `);return n.trim()}return n}function Mo(e){let t=e,n=t.setUpdatePerformanceListener;if(typeof n==`function`)return e=>{n.call(t,e)}}function No(e){let t=U();if(!t)throw Error(`useUpdatePerformanceListener() 必须在 setup() 的同步阶段调用`);if(typeof e!=`function`)throw TypeError(`useUpdatePerformanceListener() 需要传入监听函数`);let n=Mo(t);if(!n)throw Error(`当前实例不支持 setUpdatePerformanceListener,请检查基础库版本或组件上下文`);n(e);let r=!1,i=()=>{if(!r){r=!0;try{n(void 0)}catch(e){}}};return V(i),M(i),i}function Po(){let e=U();if(e!=null&&e[ge]&&e[Ie])return e[Ie];throw Error(`defineAppSetup() / use() 只能在 app setup 上下文中调用`)}function Fo(e){return e(Po())}function Io(e,...t){return Po().use(e,...t)}const Lo=Object.freeze(Object.create(null));function Ro(){var e;let t=z();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function zo(){var e;let t=z();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?Lo:e}function Bo(){let e=z();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}const Vo=Object.freeze(Object.create(null));function Ho(e,t){let n=t===`modelValue`?`modelModifiers`:`${t}Modifiers`,r=e==null?void 0:e[n];return!r||typeof r!=`object`?Vo:r}function Uo(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 Wo(e,t,n={}){let r=z();if(!r)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let i=r.emit,a=`update:${t}`,o=()=>Ho(e,t);return Uo(x({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 Go(e){let t=U();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${Mt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function Ko(){let e=Go({event:`change`});return function(t,n){return e.model(t,n)}}function qo(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function Jo(e){let t=e[$e];if(t)return t;let n=new Map;try{Object.defineProperty(e,$e,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[$e]=n}return n}function Yo(e){let t=U();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=Jo(t),i=r.get(n);if(i)return i;let a=rt(null);return r.set(n,a),a}export{en as $,fa as A,aa as B,po as C,rt as Ct,$a as D,ro as E,ia as F,oi as G,Ti as H,na as I,lr as J,fr as K,ca as L,ta as M,sa as N,eo as O,ra as P,Pn as Q,oa as R,ho as S,it as St,oo as T,Di as U,Pi as V,Oi as W,cr as X,ur as Y,Fn as Z,So as _,ft as _t,Wo as a,At as at,fo as b,ot as bt,zo as c,yt as ct,No as d,dt,$ as et,jo as f,mt as ft,wo as g,vt as gt,To as h,lt as ht,Ko as i,kt as it,da as j,Qa as k,Fo as l,gt as lt,Co as m,ht as mt,qo as n,Dt as nt,Ro as o,St as ot,Ao as p,_t as pt,dr as q,Go as r,Ot as rt,Bo as s,xt as st,Yo as t,jt as tt,Io as u,pt as ut,yo as v,ut as vt,lo as w,at as wt,mo as x,st as xt,vo as y,ct as yt,la as z};
package/dist/store.d.mts CHANGED
@@ -1,2 +1,2 @@
1
1
  import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-CmPm9WU0.mjs";
2
- export { ActionContext, ActionSubscriber, DefineStoreOptions, MutationType, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, createStore, defineStore, storeToRefs };
2
+ export { type ActionContext, type ActionSubscriber, type DefineStoreOptions, type MutationType, type StoreManager, type StoreSubscribeOptions, type StoreToRefsResult, type SubscriptionCallback, createStore, defineStore, storeToRefs };
@@ -25,4 +25,4 @@ declare const Vue2: undefined;
25
25
  */
26
26
  declare function install(): void;
27
27
  //#endregion
28
- export { ActionContext, ActionSubscriber, AlipayMiniProgramHostNamespace, AlipayMiniProgramHostSourceContract, AllowedComponentProps, AppConfig, ComponentCustomProps, ComponentDefinition, ComponentOptionsMixin, ComponentPropsOptions, ComponentPublicInstance, ComponentTypeEmits, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, CustomRefFactory, CustomRefOptions, CustomRefSource, DataOption, DefaultMiniProgramHostNamespace, DefaultMiniProgramHostSourceContract, DefineAppOptions, DefineComponent, DefineComponentOptions, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, DouyinMiniProgramHostNamespace, DouyinMiniProgramHostSourceContract, EffectScope, ElementIntersectionObserverCallback, EmitFn, EmitsOptions, ExtractComputed, ExtractDefaultPropTypes, ExtractMethods, ExtractPropTypes, ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, HostMiniProgramAddToFavoritesOption, HostMiniProgramAddToFavoritesOption as MiniProgramAddToFavoritesOption, HostMiniProgramAppOptions, HostMiniProgramAppTrivialInstance, HostMiniProgramBehaviorIdentifier, HostMiniProgramBoundingClientRectResult, HostMiniProgramBoundingClientRectResult as MiniProgramBoundingClientRectResult, HostMiniProgramComponentAllFullProperty, HostMiniProgramComponentAllFullProperty as MiniProgramComponentAllFullProperty, HostMiniProgramComponentAllProperty, HostMiniProgramComponentAllProperty as MiniProgramComponentAllProperty, HostMiniProgramComponentBehaviorOptions, HostMiniProgramComponentBehaviorOptions as MiniProgramComponentBehaviorOptions, HostMiniProgramComponentEmptyArray, HostMiniProgramComponentEmptyArray as MiniProgramComponentEmptyArray, HostMiniProgramComponentInstance, HostMiniProgramComponentMethodOption, HostMiniProgramComponentMethodOption as MiniProgramComponentMethodOption, HostMiniProgramComponentPropertyOption, HostMiniProgramComponentPropertyOption as MiniProgramComponentPropertyOption, HostMiniProgramComponentPropertyValue, HostMiniProgramComponentShortProperty, HostMiniProgramComponentShortProperty as MiniProgramComponentShortProperty, HostMiniProgramComponentTrivialInstance, HostMiniProgramComponentTrivialOption, HostMiniProgramIntersectionObserver, HostMiniProgramIntersectionObserver as MiniProgramIntersectionObserver, HostMiniProgramIntersectionObserverOptions, HostMiniProgramIntersectionObserverOptions as MiniProgramIntersectionObserverOptions, HostMiniProgramLaunchOptions, HostMiniProgramLaunchOptions as MiniProgramLaunchOptions, HostMiniProgramMemoryWarningResult, HostMiniProgramMemoryWarningResult as MiniProgramMemoryWarningResult, HostMiniProgramNavigateToOption, HostMiniProgramNavigateToOption as MiniProgramNavigateToOption, HostMiniProgramNodesRef, HostMiniProgramNodesRef as MiniProgramNodesRef, HostMiniProgramNodesRefFields, HostMiniProgramNodesRefFields as MiniProgramNodesRefFields, HostMiniProgramPageLifetime, HostMiniProgramPageLifetime as MiniProgramPageLifetime, HostMiniProgramPageNotFoundOptions, HostMiniProgramPageNotFoundOptions as MiniProgramPageNotFoundOptions, HostMiniProgramPageResizeOption, HostMiniProgramPageResizeOption as MiniProgramPageResizeOption, HostMiniProgramPageScrollOption, HostMiniProgramPageScrollOption as MiniProgramPageScrollOption, HostMiniProgramPageTrivialInstance, HostMiniProgramReLaunchOption, HostMiniProgramReLaunchOption as MiniProgramReLaunchOption, HostMiniProgramRedirectToOption, HostMiniProgramRedirectToOption as MiniProgramRedirectToOption, HostMiniProgramRouter, HostMiniProgramRouter as MiniProgramRouter, HostMiniProgramSaveExitState, HostMiniProgramSaveExitState as MiniProgramSaveExitState, HostMiniProgramScrollOffsetResult, HostMiniProgramScrollOffsetResult as MiniProgramScrollOffsetResult, HostMiniProgramSelectorQuery, HostMiniProgramSelectorQuery as MiniProgramSelectorQuery, HostMiniProgramShareAppMessageOption, HostMiniProgramShareAppMessageOption as MiniProgramShareAppMessageOption, HostMiniProgramSwitchTabOption, HostMiniProgramSwitchTabOption as MiniProgramSwitchTabOption, HostMiniProgramTabItemTapOption, HostMiniProgramTabItemTapOption as MiniProgramTabItemTapOption, HostMiniProgramThemeChangeResult, HostMiniProgramThemeChangeResult as MiniProgramThemeChangeResult, HostMiniProgramTriggerEventOptions, HostMiniProgramTriggerEventOptions as TriggerEventOptions, HostMiniProgramUnhandledRejectionResult, HostMiniProgramUnhandledRejectionResult as MiniProgramUnhandledRejectionResult, InferNativePropType, InferNativeProps, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, LayoutBridgeInstance, LayoutHostBinding, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, MethodDefinitions, MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramCSSProperties, MiniProgramComponentInstance, MiniProgramComponentOptions, MiniProgramComponentPropertyValue, MiniProgramComponentRawOptions, MiniProgramDatasetAttributes, MiniProgramHostNamespace, MiniProgramHostNamespaceBySource, MiniProgramHostSourceName, MiniProgramHostSourceRegistry, MiniProgramHtmlAliasIntrinsicElements, MiniProgramInstance, MiniProgramIntrinsicElementBaseAttributes, MiniProgramIntrinsicElements, MiniProgramIntrinsicEventHandler, MiniProgramPageLifetimes, MiniProgramPlatformHostNamespaceBySource, MiniProgramPlatformHostSourceName, MiniProgramPlatformHostSourceRegistry, MiniProgramRouterNavigateToOption, MiniProgramRouterReLaunchOption, MiniProgramRouterRedirectToOption, MiniProgramRouterSwitchTabOption, MiniProgramRuntimeHostNamespaceBySource, MiniProgramRuntimeHostSourceName, MiniProgramRuntimeHostSourceRegistry, MiniProgramTemplateRefValue, ModelBinding, ModelBindingOptions, ModelBindingPayload, ModelModifiers, ModelRef, MultiWatchSources, MutationKind, MutationOp, MutationRecord, MutationType, NativeComponent, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, NavigationBarMetrics, ObjectDirective, OnCleanup, PageFeatures, PageLayoutMeta, PageLayoutState, PageMeta, PageStackSnapshot, PrelinkReactiveTreeOptions, PropConstructor, PropOptions, PropType, PublicProps, PullDownRefreshHandler, Ref, RuntimeApp, RuntimeInstance, SetDataDebugInfo, SetDataSnapshotOptions, SetupContext, SetupContextNativeInstance, SetupContextRouter, SetupContextWithTypeProps, SetupFunction, SetupFunctionWithTypeProps, ShallowRef, ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, TtMiniProgramHostNamespace, TtMiniProgramHostSourceContract, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseAllBoundingClientRectOptions, UseAllScrollOffsetOptions, UseAllSelectorFieldsOptions, UseAsyncPullDownRefreshOptions, UseBoundingClientRectOptions, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, UseIntersectionObserverOptions, UseIntersectionObserverResult, UseModelOptions, UseNavigationBarMetricsOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UsePageStackOptions, UseScrollOffsetOptions, UseSelectorFieldsOptions, UseSelectorQueryOptions, UseUpdatePerformanceListenerStopHandle, VNode, VNodeProps, Vue2, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WeappCSSProperties, WeappDatasetAttributes, WeappHtmlAliasIntrinsicElements, WeappIntrinsicElementBaseAttributes, WeappIntrinsicElements, WeappIntrinsicEventHandler, WechatMiniProgramHostNamespace, WechatMiniProgramHostSourceContract, WevuComponentConstructor, WevuDefaults, WevuDefinedComponent, WevuGlobalComponents, WevuGlobalDirectives, WevuPageLayoutMap, WevuPlugin, WevuTypedRouterRouteMap, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getNavigationBarMetrics, getReactiveVersion, hasInjectionContext, inject, injectGlobal, install, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, isVue2, isVue3, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, registerPageLayoutBridge, registerRuntimeLayoutHosts, removeMutationRecorder, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, storeToRefs, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, use, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
28
+ export { type ActionContext, type ActionSubscriber, type AlipayMiniProgramHostNamespace, type AlipayMiniProgramHostSourceContract, type AllowedComponentProps, type AppConfig, type ComponentCustomProps, ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, type ComponentTypeEmits, type ComputedDefinitions, type ComputedGetter, type ComputedRef, type ComputedSetter, type CreateAppOptions, type CustomRefFactory, type CustomRefOptions, type CustomRefSource, type DataOption, type DefaultMiniProgramHostNamespace, type DefaultMiniProgramHostSourceContract, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, type DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, type DouyinMiniProgramHostNamespace, type DouyinMiniProgramHostSourceContract, type EffectScope, ElementIntersectionObserverCallback, type EmitFn, type EmitsOptions, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type HostMiniProgramAddToFavoritesOption, type HostMiniProgramAddToFavoritesOption as MiniProgramAddToFavoritesOption, type HostMiniProgramAppOptions, type HostMiniProgramAppTrivialInstance, type HostMiniProgramBehaviorIdentifier, type HostMiniProgramBoundingClientRectResult, type HostMiniProgramBoundingClientRectResult as MiniProgramBoundingClientRectResult, type HostMiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllFullProperty as MiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllProperty, type HostMiniProgramComponentAllProperty as MiniProgramComponentAllProperty, type HostMiniProgramComponentBehaviorOptions, type HostMiniProgramComponentBehaviorOptions as MiniProgramComponentBehaviorOptions, type HostMiniProgramComponentEmptyArray, type HostMiniProgramComponentEmptyArray as MiniProgramComponentEmptyArray, type HostMiniProgramComponentInstance, type HostMiniProgramComponentMethodOption, type HostMiniProgramComponentMethodOption as MiniProgramComponentMethodOption, type HostMiniProgramComponentPropertyOption, type HostMiniProgramComponentPropertyOption as MiniProgramComponentPropertyOption, type HostMiniProgramComponentPropertyValue, type HostMiniProgramComponentShortProperty, type HostMiniProgramComponentShortProperty as MiniProgramComponentShortProperty, type HostMiniProgramComponentTrivialInstance, type HostMiniProgramComponentTrivialOption, type HostMiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserver as MiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserverOptions, type HostMiniProgramIntersectionObserverOptions as MiniProgramIntersectionObserverOptions, type HostMiniProgramLaunchOptions, type HostMiniProgramLaunchOptions as MiniProgramLaunchOptions, type HostMiniProgramMemoryWarningResult, type HostMiniProgramMemoryWarningResult as MiniProgramMemoryWarningResult, type HostMiniProgramNavigateToOption, type HostMiniProgramNavigateToOption as MiniProgramNavigateToOption, type HostMiniProgramNodesRef, type HostMiniProgramNodesRef as MiniProgramNodesRef, type HostMiniProgramNodesRefFields, type HostMiniProgramNodesRefFields as MiniProgramNodesRefFields, type HostMiniProgramPageLifetime, type HostMiniProgramPageLifetime as MiniProgramPageLifetime, type HostMiniProgramPageNotFoundOptions, type HostMiniProgramPageNotFoundOptions as MiniProgramPageNotFoundOptions, type HostMiniProgramPageResizeOption, type HostMiniProgramPageResizeOption as MiniProgramPageResizeOption, type HostMiniProgramPageScrollOption, type HostMiniProgramPageScrollOption as MiniProgramPageScrollOption, type HostMiniProgramPageTrivialInstance, type HostMiniProgramReLaunchOption, type HostMiniProgramReLaunchOption as MiniProgramReLaunchOption, type HostMiniProgramRedirectToOption, type HostMiniProgramRedirectToOption as MiniProgramRedirectToOption, type HostMiniProgramRouter, type HostMiniProgramRouter as MiniProgramRouter, type HostMiniProgramSaveExitState, type HostMiniProgramSaveExitState as MiniProgramSaveExitState, type HostMiniProgramScrollOffsetResult, type HostMiniProgramScrollOffsetResult as MiniProgramScrollOffsetResult, type HostMiniProgramSelectorQuery, type HostMiniProgramSelectorQuery as MiniProgramSelectorQuery, type HostMiniProgramShareAppMessageOption, type HostMiniProgramShareAppMessageOption as MiniProgramShareAppMessageOption, type HostMiniProgramSwitchTabOption, type HostMiniProgramSwitchTabOption as MiniProgramSwitchTabOption, type HostMiniProgramTabItemTapOption, type HostMiniProgramTabItemTapOption as MiniProgramTabItemTapOption, type HostMiniProgramThemeChangeResult, type HostMiniProgramThemeChangeResult as MiniProgramThemeChangeResult, type HostMiniProgramTriggerEventOptions, type HostMiniProgramTriggerEventOptions as TriggerEventOptions, type HostMiniProgramUnhandledRejectionResult, type HostMiniProgramUnhandledRejectionResult as MiniProgramUnhandledRejectionResult, type InferNativePropType, type InferNativeProps, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, LayoutBridgeInstance, LayoutHostBinding, type MapSources, type MaybeRef, type MaybeRefOrGetter, type MaybeUndefined, type MethodDefinitions, type MiniProgramAdapter, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type MiniProgramCSSProperties, type MiniProgramComponentInstance, type MiniProgramComponentOptions, type MiniProgramComponentPropertyValue, type MiniProgramComponentRawOptions, type MiniProgramDatasetAttributes, type MiniProgramHostNamespace, type MiniProgramHostNamespaceBySource, type MiniProgramHostSourceName, type MiniProgramHostSourceRegistry, type MiniProgramHtmlAliasIntrinsicElements, type MiniProgramInstance, type MiniProgramIntrinsicElementBaseAttributes, type MiniProgramIntrinsicElements, type MiniProgramIntrinsicEventHandler, type MiniProgramPageLifetimes, type MiniProgramPlatformHostNamespaceBySource, type MiniProgramPlatformHostSourceName, type MiniProgramPlatformHostSourceRegistry, type MiniProgramRouterNavigateToOption, type MiniProgramRouterReLaunchOption, type MiniProgramRouterRedirectToOption, type MiniProgramRouterSwitchTabOption, type MiniProgramRuntimeHostNamespaceBySource, type MiniProgramRuntimeHostSourceName, type MiniProgramRuntimeHostSourceRegistry, MiniProgramTemplateRefValue, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, type ModelModifiers, ModelRef, type MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, type MutationType, type NativeComponent, type NativePropType, type NativePropsOptions, type NativeTypeHint, type NativeTypedProperty, NavigationBarMetrics, type ObjectDirective, type OnCleanup, type PageFeatures, PageLayoutMeta, PageLayoutState, PageMeta, PageStackSnapshot, type PrelinkReactiveTreeOptions, type PropConstructor, type PropOptions, type PropType, type PublicProps, PullDownRefreshHandler, type Ref, type RuntimeApp, type RuntimeInstance, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupContextNativeInstance, type SetupContextRouter, SetupContextWithTypeProps, type SetupFunction, SetupFunctionWithTypeProps, type ShallowRef, type ShallowUnwrapRef, type StoreManager, type StoreSubscribeOptions, type StoreToRefsResult, type SubscriptionCallback, type TemplateRef, TemplateRefValue, TemplateRefs, type ToRefs, type TtMiniProgramHostNamespace, type TtMiniProgramHostSourceContract, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseAllBoundingClientRectOptions, UseAllScrollOffsetOptions, UseAllSelectorFieldsOptions, UseAsyncPullDownRefreshOptions, UseBoundingClientRectOptions, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, UseIntersectionObserverOptions, UseIntersectionObserverResult, type UseModelOptions, UseNavigationBarMetricsOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UsePageStackOptions, UseScrollOffsetOptions, UseSelectorFieldsOptions, UseSelectorQueryOptions, UseUpdatePerformanceListenerStopHandle, type VNode, type VNodeProps, Vue2, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, type WeappCSSProperties, type WeappDatasetAttributes, type WeappHtmlAliasIntrinsicElements, type WeappIntrinsicElementBaseAttributes, type WeappIntrinsicElements, type WeappIntrinsicEventHandler, type WechatMiniProgramHostNamespace, type WechatMiniProgramHostSourceContract, WevuComponentConstructor, type WevuDefaults, WevuDefinedComponent, WevuGlobalComponents, WevuGlobalDirectives, WevuPageLayoutMap, type WevuPlugin, type WevuTypedRouterRouteMap, type WritableComputedOptions, type WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getNavigationBarMetrics, getReactiveVersion, hasInjectionContext, inject, injectGlobal, install, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, isVue2, isVue3, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, registerPageLayoutBridge, registerRuntimeLayoutHosts, removeMutationRecorder, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, storeToRefs, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, use, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
package/dist/vue-demi.mjs CHANGED
@@ -1 +1 @@
1
- import"./chunk-CbfVNrr-.mjs";import{C as e,D as t,E as n,N as r,O as i,S as a,T as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as g,n as _,o as v,p as y,s as b,t as x,u as S,w as C,x as w,y as T}from"./ref-B6CIXciv.mjs";import{i as E,n as D,r as O,t as k}from"./store-C-7rPMM3.mjs";import{$ as A,A as j,B as M,F as N,G as P,H as F,I,J as L,K as R,L as z,M as B,N as V,P as H,Q as U,R as W,U as G,V as K,W as q,X as J,Y,Z as X,_ as Z,_t as Q,at as $,ct as ee,et as te,g as ne,gt as re,h as ie,ht as ae,it as oe,j as se,m as ce,n as le,nt as ue,q as de,rt as fe,st as pe,t as me,v as he,vt as ge,z as _e}from"./router-Cm3FUnTw.mjs";import{$ as ve,A as ye,B as be,C as xe,Ct as Se,D as Ce,E as we,F as Te,G as Ee,H as De,I as Oe,J as ke,K as Ae,L as je,M as Me,N as Ne,O as Pe,P as Fe,Q as Ie,R as Le,S as Re,St as ze,T as Be,U as Ve,V as He,W as Ue,X as We,Y as Ge,Z as Ke,_ as qe,_t as Je,a as Ye,at as Xe,b as Ze,bt as Qe,c as $e,ct as et,d as tt,dt as nt,et as rt,f as it,ft as at,g as ot,gt as st,h as ct,ht as lt,i as ut,it as dt,j as ft,k as pt,l as mt,lt as ht,m as gt,mt as _t,n as vt,nt as yt,o as bt,ot as xt,p as St,pt as Ct,q as wt,r as Tt,rt as Et,s as Dt,st as Ot,t as kt,tt as At,u as jt,ut as Mt,v as Nt,vt as Pt,w as Ft,wt as It,x as Lt,xt as Rt,y as zt,yt as Bt,z as Vt}from"./src-CVY0nAYc.mjs";export*from"@wevu/web-apis";const Ht=!1,Ut=!0,Wt=void 0;function Gt(){}export{Wt as Vue2,c as addMutationRecorder,a as batch,ue as callHookList,fe as callHookReturn,et as callUpdateHooks,E as computed,ye as createApp,O as createStore,Ce as createWevuComponent,Pe as createWevuScopedSlotComponent,x as customRef,mt as defineAppSetup,pt as defineComponent,D as defineStore,e as effect,C as effectScope,o as endBatch,oe as getCurrentInstance,Ze as getCurrentPageStackSnapshot,n as getCurrentScope,$ as getCurrentSetupContext,xt as getDeepWatchStrategy,Lt as getNavigationBarMetrics,b as getReactiveVersion,ce as hasInjectionContext,ie as inject,ne as injectGlobal,Gt as install,ve as isNoSetData,ae as isProxy,l as isRaw,g as isReactive,re as isReadonly,_ as isRef,d as isShallowReactive,ze as isShallowRef,Ht as isVue2,Ut as isVue3,rt as markNoSetData,S as markRaw,vt as mergeModels,De as mountRuntimeInstance,r as nextTick,it as normalizeClass,St as normalizeStyle,ht as onActivated,se as onAddToFavorites,B as onAttached,Mt as onBeforeMount,nt as onBeforeUnmount,at as onBeforeUpdate,Ct as onDeactivated,V as onDetached,H as onError,_t as onErrorCaptured,N as onHide,I as onLaunch,z as onLoad,W as onMemoryWarning,lt as onMounted,_e as onMoved,M as onPageNotFound,K as onPageScroll,F as onPullDownRefresh,G as onReachBottom,q as onReady,P as onResize,R as onRouteDone,de as onSaveExitState,t as onScopeDispose,st as onServerPrefetch,L as onShareAppMessage,Y as onShareTimeline,J as onShow,X as onTabItemTap,U as onThemeChange,A as onUnhandledRejection,te as onUnload,Je as onUnmounted,Pt as onUpdated,p as prelinkReactiveTree,Z as provide,he as provideGlobal,u as reactive,Q as readonly,m as ref,He as registerApp,ft as registerComponent,Me as registerPageLayoutBridge,Ne as registerRuntimeLayoutHosts,w as removeMutationRecorder,Ke as resetWevuDefaults,Fe as resolveLayoutBridge,Te as resolveLayoutHost,Ae as resolveRuntimePageLayoutName,Ee as runSetupFunction,pe as setCurrentInstance,ee as setCurrentSetupContext,Ot as setDeepWatchStrategy,j as setGlobalProvidedValue,wt as setPageLayout,Ve as setRuntimeSetDataVisibility,Ie as setWevuDefaults,y as shallowReactive,ge as shallowReadonly,Se as shallowRef,i as startBatch,h as stop,k as storeToRefs,ke as syncRuntimePageLayoutState,Ge as syncRuntimePageLayoutStateFromRuntime,Ue as teardownRuntimeInstance,T as toRaw,Qe as toRef,Rt as toRefs,s as toValue,f as touchReactive,Bt as traverse,It as triggerRef,v as unref,Oe as unregisterPageLayoutBridge,je as unregisterRuntimeLayoutHosts,jt as use,Nt as useAsyncPullDownRefresh,bt as useAttrs,Tt as useBindModel,gt as useBoundingClientRect,ut as useChangeModel,we as useDisposables,Be as useElementIntersectionObserver,Ft as useIntersectionObserver,Le as useLayoutBridge,Vt as useLayoutHosts,Ye as useModel,Dt as useNativeInstance,me as useNativePageRouter,le as useNativeRouter,Re as useNavigationBarMetrics,We as usePageLayout,zt as usePageScrollThrottle,xe as usePageStack,ct as useScrollOffset,ot as useSelectorFields,qe as useSelectorQuery,$e as useSlots,kt as useTemplateRef,tt as useUpdatePerformanceListener,At as version,be as waitForLayoutHost,yt as watch,Et as watchEffect,dt as watchPostEffect,Xe as watchSyncEffect};
1
+ import"./chunk-CbfVNrr-.mjs";import{C as e,D as t,E as n,N as r,O as i,S as a,T as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as g,n as _,o as v,p as y,s as b,t as x,u as S,w as C,x as w,y as T}from"./ref-B6CIXciv.mjs";import{i as E,n as D,r as O,t as k}from"./store-C-7rPMM3.mjs";import{$ as A,A as j,B as M,F as N,G as P,H as F,I,J as L,K as R,L as z,M as B,N as V,P as H,Q as U,R as W,U as G,V as K,W as q,X as J,Y,Z as X,_ as Z,_t as Q,at as $,ct as ee,et as te,g as ne,gt as re,h as ie,ht as ae,it as oe,j as se,m as ce,n as le,nt as ue,q as de,rt as fe,st as pe,t as me,v as he,vt as ge,z as _e}from"./router-Cm3FUnTw.mjs";import{$ as ve,A as ye,B as be,C as xe,Ct as Se,D as Ce,E as we,F as Te,G as Ee,H as De,I as Oe,J as ke,K as Ae,L as je,M as Me,N as Ne,O as Pe,P as Fe,Q as Ie,R as Le,S as Re,St as ze,T as Be,U as Ve,V as He,W as Ue,X as We,Y as Ge,Z as Ke,_ as qe,_t as Je,a as Ye,at as Xe,b as Ze,bt as Qe,c as $e,ct as et,d as tt,dt as nt,et as rt,f as it,ft as at,g as ot,gt as st,h as ct,ht as lt,i as ut,it as dt,j as ft,k as pt,l as mt,lt as ht,m as gt,mt as _t,n as vt,nt as yt,o as bt,ot as xt,p as St,pt as Ct,q as wt,r as Tt,rt as Et,s as Dt,st as Ot,t as kt,tt as At,u as jt,ut as Mt,v as Nt,vt as Pt,w as Ft,wt as It,x as Lt,xt as Rt,y as zt,yt as Bt,z as Vt}from"./src-BErm5C86.mjs";export*from"@wevu/web-apis";const Ht=!1,Ut=!0,Wt=void 0;function Gt(){}export{Wt as Vue2,c as addMutationRecorder,a as batch,ue as callHookList,fe as callHookReturn,et as callUpdateHooks,E as computed,ye as createApp,O as createStore,Ce as createWevuComponent,Pe as createWevuScopedSlotComponent,x as customRef,mt as defineAppSetup,pt as defineComponent,D as defineStore,e as effect,C as effectScope,o as endBatch,oe as getCurrentInstance,Ze as getCurrentPageStackSnapshot,n as getCurrentScope,$ as getCurrentSetupContext,xt as getDeepWatchStrategy,Lt as getNavigationBarMetrics,b as getReactiveVersion,ce as hasInjectionContext,ie as inject,ne as injectGlobal,Gt as install,ve as isNoSetData,ae as isProxy,l as isRaw,g as isReactive,re as isReadonly,_ as isRef,d as isShallowReactive,ze as isShallowRef,Ht as isVue2,Ut as isVue3,rt as markNoSetData,S as markRaw,vt as mergeModels,De as mountRuntimeInstance,r as nextTick,it as normalizeClass,St as normalizeStyle,ht as onActivated,se as onAddToFavorites,B as onAttached,Mt as onBeforeMount,nt as onBeforeUnmount,at as onBeforeUpdate,Ct as onDeactivated,V as onDetached,H as onError,_t as onErrorCaptured,N as onHide,I as onLaunch,z as onLoad,W as onMemoryWarning,lt as onMounted,_e as onMoved,M as onPageNotFound,K as onPageScroll,F as onPullDownRefresh,G as onReachBottom,q as onReady,P as onResize,R as onRouteDone,de as onSaveExitState,t as onScopeDispose,st as onServerPrefetch,L as onShareAppMessage,Y as onShareTimeline,J as onShow,X as onTabItemTap,U as onThemeChange,A as onUnhandledRejection,te as onUnload,Je as onUnmounted,Pt as onUpdated,p as prelinkReactiveTree,Z as provide,he as provideGlobal,u as reactive,Q as readonly,m as ref,He as registerApp,ft as registerComponent,Me as registerPageLayoutBridge,Ne as registerRuntimeLayoutHosts,w as removeMutationRecorder,Ke as resetWevuDefaults,Fe as resolveLayoutBridge,Te as resolveLayoutHost,Ae as resolveRuntimePageLayoutName,Ee as runSetupFunction,pe as setCurrentInstance,ee as setCurrentSetupContext,Ot as setDeepWatchStrategy,j as setGlobalProvidedValue,wt as setPageLayout,Ve as setRuntimeSetDataVisibility,Ie as setWevuDefaults,y as shallowReactive,ge as shallowReadonly,Se as shallowRef,i as startBatch,h as stop,k as storeToRefs,ke as syncRuntimePageLayoutState,Ge as syncRuntimePageLayoutStateFromRuntime,Ue as teardownRuntimeInstance,T as toRaw,Qe as toRef,Rt as toRefs,s as toValue,f as touchReactive,Bt as traverse,It as triggerRef,v as unref,Oe as unregisterPageLayoutBridge,je as unregisterRuntimeLayoutHosts,jt as use,Nt as useAsyncPullDownRefresh,bt as useAttrs,Tt as useBindModel,gt as useBoundingClientRect,ut as useChangeModel,we as useDisposables,Be as useElementIntersectionObserver,Ft as useIntersectionObserver,Le as useLayoutBridge,Vt as useLayoutHosts,Ye as useModel,Dt as useNativeInstance,me as useNativePageRouter,le as useNativeRouter,Re as useNavigationBarMetrics,We as usePageLayout,zt as usePageScrollThrottle,xe as usePageStack,ct as useScrollOffset,ot as useSelectorFields,qe as useSelectorQuery,$e as useSlots,kt as useTemplateRef,tt as useUpdatePerformanceListener,At as version,be as waitForLayoutHost,yt as watch,Et as watchEffect,dt as watchPostEffect,Xe as watchSyncEffect};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wevu",
3
3
  "type": "module",
4
- "version": "6.16.13",
4
+ "version": "6.16.15",
5
5
  "description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -183,9 +183,9 @@
183
183
  "vue": "^3.5.34",
184
184
  "@weapp-core/constants": "^0.1.7",
185
185
  "@weapp-core/shared": "3.0.4",
186
- "@wevu/api": "0.2.8",
187
- "@wevu/compiler": "6.16.13",
188
- "@wevu/web-apis": "1.2.12"
186
+ "@wevu/api": "0.2.9",
187
+ "@wevu/compiler": "6.16.15",
188
+ "@wevu/web-apis": "1.2.13"
189
189
  },
190
190
  "scripts": {
191
191
  "dev": "tsdown -w",