wevu 6.16.20 → 6.16.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.mjs +2 -2
- package/dist/dev/{src-CJb8KQQ7.mjs → src-DzpEFK_c.mjs} +229 -98
- package/dist/dev/src-DzpEFK_c.mjs.map +1 -0
- package/dist/dev/vue-demi.mjs +3 -2
- package/dist/dev/vue-demi.mjs.map +1 -1
- package/dist/{index-D80WRkiI.d.mts → index-C6Jyiw-u.d.mts} +1 -1
- package/dist/{index-Bxb8bDDq.d.mts → index-CLoFnRY3.d.mts} +4 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/router.d.mts +1 -1
- package/dist/src-BEdCjQDq.mjs +1 -0
- package/dist/store.d.mts +1 -1
- package/dist/vue-demi.d.mts +5 -5
- package/dist/vue-demi.mjs +1 -1
- package/dist/{vue-types-CnYCFrPB.d.mts → vue-types-xMdYZRuG.d.mts} +1 -0
- package/package.json +4 -4
- package/dist/dev/src-CJb8KQQ7.mjs.map +0 -1
- package/dist/src-BKst3zxN.mjs +0 -1
package/dist/dev/vue-demi.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as setWevuDefaults, A as defineComponent, B as useLayoutHosts, C as useNavigationBarMetrics, Ct as isShallowRef, D as useDisposables, Dt as __reExport, E as useElementIntersectionObserver, Et as __exportAll, F as resolveLayoutBridge, G as teardownRuntimeInstance, H as registerApp, I as resolveLayoutHost, J as setPageLayout, K as runSetupFunction, L as unregisterPageLayoutBridge, M as registerComponent, N as registerPageLayoutBridge, O as createWevuComponent, P as registerRuntimeLayoutHosts, Q as resetWevuDefaults, R as unregisterRuntimeLayoutHosts, S as getNavigationBarMetrics, St as toRefs, T as useIntersectionObserver, Tt as triggerRef, U as mountRuntimeInstance, V as waitForLayoutHost, W as setRuntimeSetDataVisibility, X as syncRuntimePageLayoutStateFromRuntime, Y as syncRuntimePageLayoutState, Z as usePageLayout, _ as useSelectorFields, _t as onServerPrefetch, a as useModel, at as watchPostEffect, b as usePageScrollThrottle, bt as traverse, c as useSlots, ct as setDeepWatchStrategy, d as useUpdatePerformanceListener, dt as onBeforeMount, et as isNoSetData, f as normalizeClass, ft as onBeforeUnmount, g as useScrollOffset, gt as onMounted, h as useBoundingClientRect, ht as onErrorCaptured, i as useChangeModel, it as watchEffect, j as createApp, k as createWevuScopedSlotComponent, l as defineAppSetup, lt as callUpdateHooks, m as resolvePropValue, mt as onDeactivated, n as mergeModels, nt as version, o as useAttrs, ot as watchSyncEffect, p as normalizeStyle, pt as onBeforeUpdate, q as resolveRuntimePageLayoutName, r as useBindModel, rt as watch, s as useNativeInstance, st as getDeepWatchStrategy, t as useTemplateRef, tt as markNoSetData, u as use, ut as onActivated, v as useSelectorQuery, vt as onUnmounted, w as usePageStack, wt as shallowRef, x as getCurrentPageStackSnapshot, xt as toRef, y as useAsyncPullDownRefresh, yt as onUpdated, z as useLayoutBridge } from "./src-DzpEFK_c.mjs";
|
|
2
2
|
import { C as effect, D as onScopeDispose, E as getCurrentScope, N as nextTick, O as startBatch, S as batch, T as endBatch, a as toValue, b as addMutationRecorder, c as isRaw, d as reactive, f as isShallowReactive, g as touchReactive, h as prelinkReactiveTree, i as ref, k as stop, l as isReactive, n as isRef, o as unref, p as shallowReactive, s as getReactiveVersion, t as customRef, u as markRaw, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-DAstlXwV.mjs";
|
|
3
3
|
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-Bazm64zK.mjs";
|
|
4
4
|
import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, _t as readonly, at as getCurrentSetupContext, ct as setCurrentSetupContext, et as onUnload, g as injectGlobal, gt as isReadonly, h as inject, ht as isProxy, it as getCurrentInstance, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, nt as callHookList, q as onSaveExitState, rt as callHookReturn, st as setCurrentInstance, t as useNativePageRouter, v as provideGlobal, vt as shallowReadonly, z as onMoved } from "./router-D68ovdoh.mjs";
|
|
@@ -102,6 +102,7 @@ var vue_demi_exports = /* @__PURE__ */ __exportAll({
|
|
|
102
102
|
resetWevuDefaults: () => resetWevuDefaults,
|
|
103
103
|
resolveLayoutBridge: () => resolveLayoutBridge,
|
|
104
104
|
resolveLayoutHost: () => resolveLayoutHost,
|
|
105
|
+
resolvePropValue: () => resolvePropValue,
|
|
105
106
|
resolveRuntimePageLayoutName: () => resolveRuntimePageLayoutName,
|
|
106
107
|
runSetupFunction: () => runSetupFunction,
|
|
107
108
|
setCurrentInstance: () => setCurrentInstance,
|
|
@@ -180,5 +181,5 @@ const Vue2 = void 0;
|
|
|
180
181
|
function install() {}
|
|
181
182
|
|
|
182
183
|
//#endregion
|
|
183
|
-
export { Vue2, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, 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 };
|
|
184
|
+
export { Vue2, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, 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, resolvePropValue, 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 };
|
|
184
185
|
//# sourceMappingURL=vue-demi.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue-demi.mjs","names":[],"sources":["../../src/vue-demi.ts"],"sourcesContent":["export * from './index'\nexport { version } from './version'\n\n/**\n * 标记当前兼容层运行在 Vue 3 风格分支。\n */\nexport const isVue2 = false\n\n/**\n * 标记当前兼容层运行在 Vue 3 风格分支。\n */\nexport const isVue3 = true\n\n/**\n * 与 `vue-demi` 保持一致,Vue 3 分支下不暴露 Vue 2 构造器。\n */\nexport const Vue2 = undefined\n\n/**\n * Vue 3 分支的 `vue-demi.install()` 为 no-op,这里保持同样语义。\n */\nexport function install() {}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vue-demi.mjs","names":[],"sources":["../../src/vue-demi.ts"],"sourcesContent":["export * from './index'\nexport { version } from './version'\n\n/**\n * 标记当前兼容层运行在 Vue 3 风格分支。\n */\nexport const isVue2 = false\n\n/**\n * 标记当前兼容层运行在 Vue 3 风格分支。\n */\nexport const isVue3 = true\n\n/**\n * 与 `vue-demi` 保持一致,Vue 3 分支下不暴露 Vue 2 构造器。\n */\nexport const Vue2 = undefined\n\n/**\n * Vue 3 分支的 `vue-demi.install()` 为 no-op,这里保持同样语义。\n */\nexport function install() {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAa,SAAS;;;;AAKtB,MAAa,SAAS;;;;AAKtB,MAAa,OAAO;;;;AAKpB,SAAgB,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as MiniProgramCSSProperties, c as MiniProgramIntrinsicEventHandler, d as WeappIntrinsicElementBaseAttributes, f as WeappIntrinsicEventHandler, i as WeappIntrinsicElements, l as WeappCSSProperties, n as MiniProgramIntrinsicElements, o as MiniProgramDatasetAttributes, r as WeappHtmlAliasIntrinsicElements, s as MiniProgramIntrinsicElementBaseAttributes, t as MiniProgramHtmlAliasIntrinsicElements, u as WeappDatasetAttributes } from "./weappIntrinsicElements-BjaNcUW3.mjs";
|
|
2
|
-
import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes$1, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-
|
|
3
|
-
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-
|
|
2
|
+
import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes$1, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-xMdYZRuG.mjs";
|
|
3
|
+
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-C6Jyiw-u.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/types/setData.d.ts
|
|
6
6
|
interface SetDataSnapshotOptions {
|
|
@@ -959,6 +959,7 @@ declare function useScrollOffset(options: UseAllScrollOffsetOptions): (selector:
|
|
|
959
959
|
//#region src/runtime/template.d.ts
|
|
960
960
|
declare function normalizeStyle(value: any): string;
|
|
961
961
|
declare function normalizeClass(value: any): string;
|
|
962
|
+
declare function resolvePropValue(target: any, key: string, fallback: any, preferProps?: boolean): any;
|
|
962
963
|
//#endregion
|
|
963
964
|
//#region src/runtime/updatePerformance.d.ts
|
|
964
965
|
type UpdatePerformanceListenerResult = Record<string, any>;
|
|
@@ -1181,4 +1182,4 @@ declare function defineModel<T = any, M extends PropertyKey = string, G = T, S =
|
|
|
1181
1182
|
//#region src/version.d.ts
|
|
1182
1183
|
declare const version: string;
|
|
1183
1184
|
//#endregion
|
|
1184
|
-
export {
|
|
1185
|
+
export { setRuntimeSetDataVisibility as $, resetWevuDefaults as $n, onMounted as $t, useSlots as A, getCurrentSetupContext as An, isNoSetData as At, UseAllBoundingClientRectOptions as B, DisposableObject as Bn, useLayoutBridge as Bt, UseModelOptions as C, onTabItemTap as Cn, PageStackSnapshot as Ct, useModel as D, callHookList as Dn, getNavigationBarMetrics as Dt, useChangeModel as E, onUnload as En, getCurrentPageStackSnapshot as Et, UseUpdatePerformanceListenerStopHandle as F, UseElementIntersectionObserverReturn as Fn, registerRuntimeLayoutHosts as Ft, UseSelectorFieldsOptions as G, SetupContextWithTypeProps as Gn, useIntersectionObserver as Gt, UseAllSelectorFieldsOptions as H, ComponentDefinition as Hn, waitForLayoutHost as Ht, useUpdatePerformanceListener as I, useElementIntersectionObserver as In, resolveLayoutBridge as It, useScrollOffset as J, WevuDefinedComponent as Jn, onBeforeMount as Jt, UseSelectorQueryOptions as K, SetupFunctionWithTypeProps as Kn, callUpdateHooks as Kt, normalizeClass as L, DisposableBag as Ln, resolveLayoutHost as Lt, use as M, setCurrentSetupContext as Mn, LayoutBridgeInstance as Mt, UpdatePerformanceListener as N, ElementIntersectionObserverCallback as Nn, LayoutHostBinding as Nt, useAttrs as O, callHookReturn as On, useNavigationBarMetrics as Ot, UpdatePerformanceListenerResult as P, UseElementIntersectionObserverOptions as Pn, registerPageLayoutBridge as Pt, mountRuntimeInstance as Q, WevuDefaults as Qn, onErrorCaptured as Qt, normalizeStyle as R, DisposableLike as Rn, unregisterPageLayoutBridge as Rt, ModelModifiers as S, onShow as Sn, NavigationBarMetrics as St, useBindModel as T, onUnhandledRejection as Tn, UsePageStackOptions as Tt, UseBoundingClientRectOptions as U, DefineComponentTypePropsOptions as Un, UseIntersectionObserverOptions as Ut, UseAllScrollOffsetOptions as V, useDisposables as Vn, useLayoutHosts as Vt, UseScrollOffsetOptions as W, DefineComponentWithTypeProps as Wn, UseIntersectionObserverResult as Wt, useSelectorQuery as X, createWevuScopedSlotComponent as Xn, onBeforeUpdate as Xt, useSelectorFields as Y, createWevuComponent as Yn, onBeforeUnmount as Yt, runSetupFunction as Z, defineComponent as Zn, onDeactivated as Zt, EmitsOptions as _, onResize as _n, resolveRuntimePageLayoutName as _t, PageLayoutMeta as a, onDetached as an, TemplateRefValue as ar, useAsyncPullDownRefresh as at, useNativePageRouter as b, onShareAppMessage as bn, syncRuntimePageLayoutStateFromRuntime as bt, defineExpose as c, onLaunch as cn, WevuGlobalDirectives as cr, injectGlobal as ct, definePageMeta as d, onMoved as dn, DefineAppOptions as dr, setGlobalProvidedValue as dt, onServerPrefetch as en, setWevuDefaults as er, teardownRuntimeInstance as et, defineProps as f, onPageNotFound as fn, DefineComponentOptions as fr, UsePageScrollThrottleOptions as ft, EmitFn as g, onReady as gn, WevuPageLayoutMap as gt, ComponentTypeEmits as h, onReachBottom as hn, SetDataSnapshotOptions as hr, PageLayoutState as ht, ModelRef as i, onAttached as in, MiniProgramTemplateRefValue as ir, UseAsyncPullDownRefreshOptions as it, defineAppSetup as j, setCurrentInstance as jn, markNoSetData as jt, useNativeInstance as k, getCurrentInstance as kn, usePageStack as kt, defineModel as l, onLoad as ln, CreateAppOptions as lr, provide as lt, withDefaults as m, onPullDownRefresh as mn, SetDataDebugInfo as mr, usePageScrollThrottle as mt, DefineModelModifiers as n, onUpdated as nn, GlobalComponents as nr, registerApp as nt, PageMeta as o, onError as on, TemplateRefs as or, hasInjectionContext as ot, defineSlots as p, onPageScroll as pn, PageFeatures as pr, UsePageScrollThrottleStopHandle as pt, useBoundingClientRect as q, WevuComponentConstructor as qn, onActivated as qt, DefineModelTransformOptions as r, onAddToFavorites as rn, GlobalDirectives as rr, PullDownRefreshHandler as rt, defineEmits as s, onHide as sn, WevuGlobalComponents as sr, inject as st, version as t, onUnmounted as tn, createApp as tr, registerComponent as tt, defineOptions as u, onMemoryWarning as un, DataOption as ur, provideGlobal as ut, TemplateRef as v, onRouteDone as vn, setPageLayout as vt, mergeModels as w, onThemeChange as wn, UseNavigationBarMetricsOptions as wt, useNativeRouter as x, onShareTimeline as xn, usePageLayout as xt, useTemplateRef as y, onSaveExitState as yn, syncRuntimePageLayoutState as yt, resolvePropValue as z, DisposableMethodName as zn, unregisterRuntimeLayoutHosts as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as MiniProgramCSSProperties, c as MiniProgramIntrinsicEventHandler, d as WeappIntrinsicElementBaseAttributes, f as WeappIntrinsicEventHandler, i as WeappIntrinsicElements, l as WeappCSSProperties, n as MiniProgramIntrinsicElements, o as MiniProgramDatasetAttributes, r as WeappHtmlAliasIntrinsicElements, s as MiniProgramIntrinsicElementBaseAttributes, t as MiniProgramHtmlAliasIntrinsicElements, u as WeappDatasetAttributes } from "./weappIntrinsicElements-BjaNcUW3.mjs";
|
|
2
|
-
import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-
|
|
3
|
-
import { $ as
|
|
4
|
-
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-
|
|
2
|
+
import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-xMdYZRuG.mjs";
|
|
3
|
+
import { $ as setRuntimeSetDataVisibility, $n as resetWevuDefaults, $t as onMounted, A as useSlots, An as getCurrentSetupContext, At as isNoSetData, B as UseAllBoundingClientRectOptions, Bn as DisposableObject, Bt as useLayoutBridge, C as UseModelOptions, Cn as onTabItemTap, Ct as PageStackSnapshot, D as useModel, Dn as callHookList, Dt as getNavigationBarMetrics, E as useChangeModel, En as onUnload, Et as getCurrentPageStackSnapshot, F as UseUpdatePerformanceListenerStopHandle, Fn as UseElementIntersectionObserverReturn, Ft as registerRuntimeLayoutHosts, G as UseSelectorFieldsOptions, Gn as SetupContextWithTypeProps, Gt as useIntersectionObserver, H as UseAllSelectorFieldsOptions, Hn as ComponentDefinition, Ht as waitForLayoutHost, I as useUpdatePerformanceListener, In as useElementIntersectionObserver, It as resolveLayoutBridge, J as useScrollOffset, Jn as WevuDefinedComponent, Jt as onBeforeMount, K as UseSelectorQueryOptions, Kn as SetupFunctionWithTypeProps, Kt as callUpdateHooks, L as normalizeClass, Ln as DisposableBag, Lt as resolveLayoutHost, M as use, Mn as setCurrentSetupContext, Mt as LayoutBridgeInstance, N as UpdatePerformanceListener, Nn as ElementIntersectionObserverCallback, Nt as LayoutHostBinding, O as useAttrs, On as callHookReturn, Ot as useNavigationBarMetrics, P as UpdatePerformanceListenerResult, Pn as UseElementIntersectionObserverOptions, Pt as registerPageLayoutBridge, Q as mountRuntimeInstance, Qn as WevuDefaults, Qt as onErrorCaptured, R as normalizeStyle, Rn as DisposableLike, Rt as unregisterPageLayoutBridge, S as ModelModifiers, Sn as onShow, St as NavigationBarMetrics, T as useBindModel, Tn as onUnhandledRejection, Tt as UsePageStackOptions, U as UseBoundingClientRectOptions, Un as DefineComponentTypePropsOptions, Ut as UseIntersectionObserverOptions, V as UseAllScrollOffsetOptions, Vn as useDisposables, Vt as useLayoutHosts, W as UseScrollOffsetOptions, Wn as DefineComponentWithTypeProps, Wt as UseIntersectionObserverResult, X as useSelectorQuery, Xn as createWevuScopedSlotComponent, Xt as onBeforeUpdate, Y as useSelectorFields, Yn as createWevuComponent, Yt as onBeforeUnmount, Z as runSetupFunction, Zn as defineComponent, Zt as onDeactivated, _ as EmitsOptions, _n as onResize, _t as resolveRuntimePageLayoutName, a as PageLayoutMeta, an as onDetached, ar as TemplateRefValue, at as useAsyncPullDownRefresh, b as useNativePageRouter, bn as onShareAppMessage, bt as syncRuntimePageLayoutStateFromRuntime, c as defineExpose, cn as onLaunch, cr as WevuGlobalDirectives, ct as injectGlobal, d as definePageMeta, dn as onMoved, dr as DefineAppOptions, dt as setGlobalProvidedValue, en as onServerPrefetch, er as setWevuDefaults, et as teardownRuntimeInstance, f as defineProps, fn as onPageNotFound, fr as DefineComponentOptions, ft as UsePageScrollThrottleOptions, g as EmitFn, gn as onReady, gt as WevuPageLayoutMap, h as ComponentTypeEmits, hn as onReachBottom, hr as SetDataSnapshotOptions, ht as PageLayoutState, i as ModelRef, in as onAttached, ir as MiniProgramTemplateRefValue, it as UseAsyncPullDownRefreshOptions, j as defineAppSetup, jn as setCurrentInstance, jt as markNoSetData, k as useNativeInstance, kn as getCurrentInstance, kt as usePageStack, l as defineModel, ln as onLoad, lr as CreateAppOptions, lt as provide, m as withDefaults, mn as onPullDownRefresh, mr as SetDataDebugInfo, mt as usePageScrollThrottle, n as DefineModelModifiers, nn as onUpdated, nr as GlobalComponents, nt as registerApp, o as PageMeta, on as onError, or as TemplateRefs, ot as hasInjectionContext, p as defineSlots, pn as onPageScroll, pr as PageFeatures, pt as UsePageScrollThrottleStopHandle, q as useBoundingClientRect, qn as WevuComponentConstructor, qt as onActivated, r as DefineModelTransformOptions, rn as onAddToFavorites, rr as GlobalDirectives, rt as PullDownRefreshHandler, s as defineEmits, sn as onHide, sr as WevuGlobalComponents, st as inject, t as version, tn as onUnmounted, tr as createApp, tt as registerComponent, u as defineOptions, un as onMemoryWarning, ur as DataOption, ut as provideGlobal, v as TemplateRef, vn as onRouteDone, vt as setPageLayout, w as mergeModels, wn as onThemeChange, wt as UseNavigationBarMetricsOptions, x as useNativeRouter, xn as onShareTimeline, xt as usePageLayout, y as useTemplateRef, yn as onSaveExitState, yt as syncRuntimePageLayoutState, z as resolvePropValue, zn as DisposableMethodName, zt as unregisterRuntimeLayoutHosts } from "./index-CLoFnRY3.mjs";
|
|
4
|
+
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-C6Jyiw-u.mjs";
|
|
5
5
|
export * from "@wevu/web-apis";
|
|
6
|
-
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, 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, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, 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 };
|
|
6
|
+
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, 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, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, 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, resolvePropValue, 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/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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-CRwjgX_d.mjs";import{i as E,n as D,r as O,t as k}from"./store-CNXa5BsN.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-C1IObdgc.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,
|
|
1
|
+
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-CRwjgX_d.mjs";import{i as E,n as D,r as O,t as k}from"./store-CNXa5BsN.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-C1IObdgc.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,Tt as Ve,U as He,V as Ue,W as We,X as Ge,Y as Ke,Z as qe,_ as Je,_t as Ye,a as Xe,at as Ze,b as Qe,bt as $e,c as et,ct as tt,d as nt,dt as rt,et as it,f as at,ft as ot,g as st,gt as ct,h as lt,ht as ut,i as dt,it as ft,j as pt,k as mt,l as ht,lt as gt,m as _t,mt as vt,n as yt,nt as bt,o as xt,ot as St,p as Ct,pt as wt,q as Tt,r as Et,rt as Dt,s as Ot,st as kt,t as At,tt as jt,u as Mt,ut as Nt,v as Pt,vt as Ft,w as It,wt as Lt,x as Rt,xt as zt,y as Bt,yt as Vt,z as Ht}from"./src-BEdCjQDq.mjs";export*from"@wevu/web-apis";export{c as addMutationRecorder,a as batch,ue as callHookList,fe as callHookReturn,gt as callUpdateHooks,E as computed,pt as createApp,O as createStore,Pe as createWevuComponent,mt as createWevuScopedSlotComponent,x as customRef,ht as defineAppSetup,ye as defineComponent,D as defineStore,e as effect,C as effectScope,o as endBatch,oe as getCurrentInstance,Rt as getCurrentPageStackSnapshot,n as getCurrentScope,$ as getCurrentSetupContext,kt as getDeepWatchStrategy,Re as getNavigationBarMetrics,b as getReactiveVersion,ce as hasInjectionContext,ie as inject,ne as injectGlobal,it as isNoSetData,ae as isProxy,l as isRaw,g as isReactive,re as isReadonly,_ as isRef,d as isShallowReactive,Se as isShallowRef,jt as markNoSetData,S as markRaw,yt as mergeModels,He as mountRuntimeInstance,r as nextTick,at as normalizeClass,Ct as normalizeStyle,Nt as onActivated,se as onAddToFavorites,B as onAttached,rt as onBeforeMount,ot as onBeforeUnmount,wt as onBeforeUpdate,vt as onDeactivated,V as onDetached,H as onError,ut as onErrorCaptured,N as onHide,I as onLaunch,z as onLoad,W as onMemoryWarning,ct 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,Ye as onServerPrefetch,L as onShareAppMessage,Y as onShareTimeline,J as onShow,X as onTabItemTap,U as onThemeChange,A as onUnhandledRejection,te as onUnload,Ft as onUnmounted,Vt as onUpdated,p as prelinkReactiveTree,Z as provide,he as provideGlobal,u as reactive,Q as readonly,m as ref,De as registerApp,Me as registerComponent,Ne as registerPageLayoutBridge,Fe as registerRuntimeLayoutHosts,w as removeMutationRecorder,Ie as resetWevuDefaults,Te as resolveLayoutBridge,Oe as resolveLayoutHost,_t as resolvePropValue,Tt as resolveRuntimePageLayoutName,Ae as runSetupFunction,pe as setCurrentInstance,ee as setCurrentSetupContext,tt as setDeepWatchStrategy,j as setGlobalProvidedValue,ke as setPageLayout,We as setRuntimeSetDataVisibility,ve as setWevuDefaults,y as shallowReactive,ge as shallowReadonly,Lt as shallowRef,i as startBatch,h as stop,k as storeToRefs,Ke as syncRuntimePageLayoutState,Ge as syncRuntimePageLayoutStateFromRuntime,Ee as teardownRuntimeInstance,T as toRaw,zt as toRef,ze as toRefs,s as toValue,f as touchReactive,$e as traverse,Ve as triggerRef,v as unref,je as unregisterPageLayoutBridge,Le as unregisterRuntimeLayoutHosts,Mt as use,Bt as useAsyncPullDownRefresh,xt as useAttrs,Et as useBindModel,lt as useBoundingClientRect,dt as useChangeModel,Ce as useDisposables,we as useElementIntersectionObserver,Be as useIntersectionObserver,Ht as useLayoutBridge,be as useLayoutHosts,Xe as useModel,Ot as useNativeInstance,me as useNativePageRouter,le as useNativeRouter,xe as useNavigationBarMetrics,qe as usePageLayout,Qe as usePageScrollThrottle,It as usePageStack,st as useScrollOffset,Je as useSelectorFields,Pt as useSelectorQuery,et as useSlots,At as useTemplateRef,nt as useUpdatePerformanceListener,bt as version,Ue as waitForLayoutHost,Dt as watch,ft as watchEffect,Ze as watchPostEffect,St as watchSyncEffect};
|
package/dist/router.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as RouterNavigateToOption, an as TypedRouterUrl, en as RouterReLaunchOption, in as TypedRouterTabBarUrl, nn as RouterSwitchTabOption, on as WevuTypedRouterRouteMap, rn as SetupContextRouter, tn as RouterRedirectToOption } from "./vue-types-
|
|
1
|
+
import { $t as RouterNavigateToOption, an as TypedRouterUrl, en as RouterReLaunchOption, in as TypedRouterTabBarUrl, nn as RouterSwitchTabOption, on as WevuTypedRouterRouteMap, rn as SetupContextRouter, tn as RouterRedirectToOption } from "./vue-types-xMdYZRuG.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/routerInternal/types.d.ts
|
|
4
4
|
interface RouteResolveCodec {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-CenpyGzJ.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-CRwjgX_d.mjs";import{i as E}from"./store-CNXa5BsN.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 ne,ft as V,it as H,k as re,lt as ie,mt as U,nt as W,ot as ae,pt as oe,rt as se,st as ce,tt as G,ut as le,w as ue,x as de,y as fe}from"./router-C1IObdgc.mjs";import{WEVU_ATTRS_KEY as pe,WEVU_EFFECT_SCOPE_KEY as me,WEVU_EXPOSED_KEY as he,WEVU_FUNCTION_PROP_PATHS_KEY as ge,WEVU_HOOKS_KEY as K,WEVU_INLINE_HANDLER as q,WEVU_INLINE_MAP_KEY as _e,WEVU_IS_APP_INSTANCE_KEY as ve,WEVU_LAYOUT_BRIDGE_PAGE_KEYS as J,WEVU_LAYOUT_HOST_BRIDGE_KEY as ye,WEVU_MODEL_HANDLER as be,WEVU_NATIVE_INSTANCE_KEY as Y,WEVU_ON_BEFORE_UPDATE_HOOK as xe,WEVU_ON_LOAD_CALLED_KEY as Se,WEVU_ON_UPDATED_HOOK as Ce,WEVU_OWNER_HANDLER as we,WEVU_PAGE_LAYOUT_NAME_KEY as Te,WEVU_PAGE_LAYOUT_NONE as Ee,WEVU_PAGE_LAYOUT_PROPS_KEY as De,WEVU_PAGE_LAYOUT_SETTER_KEY as Oe,WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY as ke,WEVU_PARENT_INSTANCE_KEY as Ae,WEVU_PENDING_PROP_VALUES_KEY as je,WEVU_PROPS_ALIASES_KEY as Me,WEVU_PROPS_DERIVED_KEYS_KEY as Ne,WEVU_PROPS_KEY as X,WEVU_PROP_KEYS_KEY as Pe,WEVU_PUBLIC_RUNTIME_KEY as Z,WEVU_READY_CALLED_KEY as Fe,WEVU_RESERVED_METHOD_PREFIX as Ie,WEVU_ROUTE_DONE_CALLED_KEY as Le,WEVU_ROUTE_DONE_IN_TICK_KEY as Re,WEVU_RUNTIME_APP_KEY as ze,WEVU_RUNTIME_KEY as Be,WEVU_SCOPED_SLOT_CREATOR_KEY as Ve,WEVU_SCOPED_SLOT_OWNER_SEED_KEY as He,WEVU_SCOPED_SLOT_OWNER_STORE_KEY as Ue,WEVU_SETUP_CONTEXT_INSTANCE_KEY as We,WEVU_SETUP_STATE_KEY as Ge,WEVU_SLOT_NAMES_PROP as Ke,WEVU_SLOT_OWNER_ID_KEY as qe,WEVU_SLOT_OWNER_ID_PROP as Je,WEVU_SLOT_OWNER_KEY as Ye,WEVU_SLOT_OWNER_PROXY_KEY as Xe,WEVU_SLOT_PROPS_DATA_KEY as Ze,WEVU_SLOT_PROPS_KEY as Qe,WEVU_SLOT_SCOPE_KEY as $e,WEVU_TEMPLATE_REFS_CALLBACKS_KEY as et,WEVU_TEMPLATE_REFS_KEY as tt,WEVU_TEMPLATE_REFS_PENDING_KEY as nt,WEVU_TEMPLATE_REF_MAP_KEY as rt,WEVU_WATCH_STOPS_KEY as it}from"@weapp-core/constants";import{resolveMiniProgramPageKeys as at}from"@weapp-core/shared";import{wpi as ot}from"@wevu/api";function st(e,t){return x((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function ct(e){return g(e)&&typeof e.value!=`function`}function lt(e){if(g(e)){let t=e.dep;if(t){r(t);return}e.value=e.value}}function ut(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 dt(e){m(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=ut(e,n);return t}function ft(e,t=1/0,n=new Map){if(t<=0||!S(e))return e;if(g(e))return ft(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=>ft(e,i,n)),e;let a=m(e)&&t!==1/0?T(e):e;for(let t in a)ft(e[t],i,n);return e}function pt(e){ae(G(`onMounted`),`onReady`,e)}function mt(e){ae(G(`onUpdated`),Ce,e)}function ht(e){G(`onBeforeUnmount`),e()}function gt(e){ae(G(`onUnmounted`),`onUnload`,e)}function _t(e){G(`onBeforeMount`),e()}function vt(e){ae(G(`onBeforeUpdate`),xe,e)}function yt(e){let t=G(`onErrorCaptured`);ae(t,`onError`,n=>e(n,t,``))}function bt(e){ae(G(`onActivated`),`onShow`,e)}function xt(e){ae(G(`onDeactivated`),`onHide`,e)}function St(e){G(`onServerPrefetch`)}function Ct(e,t){W(e,t===`before`?xe:Ce)}let wt=`version`;function Tt(e){wt=e}function Et(){return wt}function Dt(e){if(typeof e==`function`)return e();if(g(e))return e.value;if(m(e))return e;throw Error(`无效的 watch 源`)}function Ot(e){let t=m(e),n=Array.isArray(e)&&!t,r;if(n){let t=e;r=()=>t.map(e=>Dt(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 kt(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=Et();return n&&Array.isArray(t)?t.map(e=>r===`version`&&m(e)?(l(e),e):ft(e,s)):r===`version`&&m(t)?(l(t),t):ft(t,s)}}function At(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 jt(e,r,i={}){var a;let o=H(),s=Ot(e),c=kt(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=H();ce(o);try{v(t,d,u)}finally{ce(n)}d=t},x=()=>b(g),S=e=>{g=h,At(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 Mt(e,r={}){var i;let a=H(),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,At(h,f,e)};c=t(()=>{o==null||o(),o=void 0;let t=H();ce(a);try{e(s)}finally{ce(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 Nt(e,t={}){return Mt(e,{...t,flush:`post`})}function Pt(e,t={}){return Mt(e,{...t,flush:`sync`})}const Ft=`6.16.21`;function It(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function Lt(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Rt(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function zt(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 Bt(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 Vt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Rt(n,a,i);else{let t=e[a];g(t)?t.value=i:e[a]=i}return}if(t[a]){Rt(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Bt(e[a],o,i)}function Ht(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function Ut(e){return zt(e)}function Wt(e,t,n,r){return(i,a)=>{let o=Lt(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Ht(e,o),c=e=>{Vt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:Ut,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${It(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}function Gt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Kt(e){return Array.isArray(e)||Gt(e)}function qt(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 Jt(e,t=new WeakSet){return g(e)||m(e)?!0:!e||typeof e!=`object`||t.has(e)||(t.add(e),!Kt(e))?!1:qt(e).some(e=>Jt(e,t))}function Yt(e,t=new WeakSet){if(g(e)){let n=e.value;m(n)&&l(n),Yt(n,t);return}if(m(e)){l(e),Yt(T(e),t);return}!e||typeof e!=`object`||t.has(e)||!Kt(e)||(t.add(e),qt(e).forEach(e=>Yt(e,t)))}const Xt=`__wevu_native_bridge__`;function Zt(e){try{Object.defineProperty(e,Xt,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Xt]=!0}}function Qt(e){return typeof e==`function`&&!!e[Xt]}function $t(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 en(e){let{state:t,setupState:n,computedDefs:r,methodDefs:i,appConfig:a,includeComputed:o,setDataStrategy:s}=e,c={},{computedRefs:l,computedSetters:u,dirtyComputedKeys:f,createTrackedComputed:p,computedProxy:m}=$t({includeComputed:o,setDataStrategy:s}),h=d(0),_=(e,t)=>{let n=T(e),r=n[Be],i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Qt(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},v=e=>{if(Q(c,e))return;let n=(...n)=>{let r=_(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};Zt(n),c[e]=n},y=new Proxy(t,{get(e,r,i){if(typeof r==`string`){if(h.value,Q(n,r))return Reflect.get(n,r,i);if(r===`props`){let t=e[X];if(t&&typeof t==`object`)return t}if(r===`data`||r===`$state`)return t;if(r===`$computed`)return m;if(Q(c,r))return c[r];if(l[r])return l[r].value;if(Q(a.globalProperties,r))return a.globalProperties[r]}if(!Reflect.has(e,r)){let t=_(e,i);if(t&&Reflect.has(t,r)){let e=Reflect.get(t,r);return typeof e==`function`?e.bind(t):e}}let o=Reflect.get(e,r,i);return typeof r==`string`&&Q(n,r)?Reflect.get(n,r,i):o},set(e,t,r,i){if(typeof t==`string`&&l[t])return Rt(u,t,r),!0;if(Q(n,t)){let e=Reflect.get(n,t,i);return g(e)&&!g(r)?(e.value=r,!0):Reflect.set(n,t,r,i)}if(Reflect.has(e,t)){var a;let o=Reflect.get(e,t,i);return g(o)&&!g(r)?(o.value=r,!0):Q((a=e[X])==null?{}:a,t)?Reflect.set(n,t,r,i):Reflect.set(e,t,r,i)}let o=_(e,i);return o&&Reflect.has(o,t)?Reflect.set(o,t,r):Reflect.set(e,t,r,i)},has(e,t){if(t===`data`||typeof t==`string`&&(Q(n,t)||l[t]||Q(c,t)))return!0;let r=_(e,e);return r&&Reflect.has(r,t)?!0:Reflect.has(e,t)},ownKeys(e){let t=new Set;return Reflect.ownKeys(e).forEach(e=>{t.add(e)}),Reflect.ownKeys(n).forEach(e=>{t.add(e)}),Object.keys(c).forEach(e=>t.add(e)),Object.keys(l).forEach(e=>t.add(e)),[...t]},getOwnPropertyDescriptor(e,r){if(typeof r==`string`&&Q(n,r))return Object.getOwnPropertyDescriptor(n,r);if(Reflect.has(e,r))return Object.getOwnPropertyDescriptor(e,r);if(typeof r==`string`){if(r===`data`)return{configurable:!0,enumerable:!1,get(){return t}};if(l[r])return{configurable:!0,enumerable:!0,get(){return l[r].value},set(e){Rt(u,r,e)}};if(Q(c,r))return{configurable:!0,enumerable:!1,value:c[r]}}}});return Object.keys(i).forEach(e=>{let t=i[e];if(typeof t==`function`){c[e]=(...e)=>t.apply(y,e);return}e===_e&&t&&typeof t==`object`&&(c[e]=t)}),v(`triggerEvent`),v(`createSelectorQuery`),v(`createIntersectionObserver`),v(`setData`),Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`)l[e]=p(e,()=>t.call(y));else{var n,i;let r=(n=t.get)==null?void 0:n.bind(y);if(!r)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(y);a?(u[e]=a,l[e]=p(e,r,a)):l[e]=p(e,r)}}),{boundMethods:c,computedRefs:l,computedSetters:u,dirtyComputedKeys:f,computedProxy:m,publicInstance:y,touchSetupMethodsVersion(){h.value+=1}}}function tn(e){return e!==`patch`&&e!==`diff`}function nn(e){if(e!==`off`)return t=>{if(e===`fallback`&&!tn(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(tn(t.reason)){console.warn(a);return}console.info(a)}}const rn=Symbol(`wevu.noSetData`);function $(e){return Object.defineProperty(e,rn,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function an(e){return typeof e==`object`&&!!e&&e[rn]===!0}function on(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function sn(e,t,n,r,i,a,o,s){let c=_(e);if(typeof c==`bigint`){let e=Number(c);return Number.isSafeInteger(e)?e:c.toString()}if(typeof c==`symbol`)return c.toString();if(typeof c==`function`)return a||o!=null&&o.has(s)?c:void 0;if(typeof c!=`object`||!c)return c;if(an(c))return;let l=m(c)?T(c):c,u=n&&(m(c)||!Jt(l))?n:void 0;if(r<=0||i.keys<=0)return l;if(u){let e=b(l),t=u.get(l);if(t&&t.version===e)return t.value}if(t.has(l))return t.get(l);if(l instanceof Date)return l.getTime();if(l instanceof RegExp)return l.toString();if(l instanceof Map){let e=[];return t.set(l,e),l.forEach((n,r)=>{e.push([sn(r,t,void 0,1/0,{keys:1/0},a,void 0,``),sn(n,t,void 0,1/0,{keys:1/0},a,void 0,``)])}),e}if(l instanceof Set){let e=[];return t.set(l,e),l.forEach(n=>{e.push(sn(n,t,void 0,1/0,{keys:1/0},a,void 0,``))}),e}if(typeof ArrayBuffer<`u`){if(l instanceof ArrayBuffer)return l.byteLength;if(ArrayBuffer.isView(l)){let e=l;if(typeof e[Symbol.iterator]==`function`){let n=[...e];return t.set(l,n),n.map(e=>sn(e,t,void 0,1/0,{keys:1/0},a,void 0,``))}let n=[...new Uint8Array(e.buffer,e.byteOffset,e.byteLength)];return t.set(l,n),n}}if(l instanceof Error)return{name:l.name,message:l.message};if(Array.isArray(l)){let e=[];t.set(l,e);let c=r-1;for(let r=0;r<l.length;r+=1){let u=s?`${s}.${r}`:String(r),d=sn(l[r],t,n,c,i,a,o,u);e[r]=d===void 0?null:d}return u&&u.set(l,{version:b(l),value:e}),e}let d={};t.set(l,d);let f=r-1;for(let e of Object.keys(l)){if(--i.keys,i.keys<=0)break;let r=s?`${s}.${e}`:e,c=sn(l[e],t,n,f,i,a,o,r);c!==void 0&&(d[e]=c)}return u&&u.set(l,{version:b(l),value:d}),d}function cn(e,t=new WeakMap,n){var r,i,a;let o=(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,s=(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,c=Array.isArray(n==null?void 0:n.functionPaths)&&n.functionPaths.length?new Set(n.functionPaths):void 0;return sn(e,t,n==null?void 0:n.cache,o,s,!!(n!=null&&n.includeFunctions),c,(a=n==null?void 0:n._path)==null?``:a)}function ln(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 un(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 dn(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?ln(e,t,dn):on(e)&&on(t)?un(e,t,dn):!1}function fn(e){return e===void 0?null:e}function pn(e,t,n,r){if(!dn(e,t)){if(on(e)&&on(t)){for(let i of Object.keys(t)){if(!Q(e,i)){r[`${n}.${i}`]=fn(t[i]);continue}pn(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)){ln(e,t,dn)||(r[n]=fn(t));return}r[n]=fn(t)}}function mn(e,t,n){let r={},i=n==null?void 0:n.skipKeys;for(let n of Object.keys(t))i!=null&&i.has(n)||pn(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 hn(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 gn(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+=gn(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+=gn(a,t-i,n),i>t)return i;return i}function _n(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=gn(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 vn(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=gn(e,1/0,new WeakSet);return h.set(e,n),n}return gn(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 yn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function bn(e){return e===void 0?null:e}function xn(e){if(Array.isArray(e))return e.map(e=>xn(e));if(!yn(e))return e;let t={};for(let n of Object.keys(e))t[n]=xn(e[n]);return t}function Sn(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(!yn(e)||!yn(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 Cn(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(!Cn(e[i],t[i],n-1,r))return!1;return!0}if(!yn(e)||!yn(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)||!Cn(e[a],t[a],n-1,r))return!1;return!0}function wn(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?xn(n):n}function Tn(e){let{state:t,setupState:n,computedRefs:r,includeComputed:i,shouldIncludeKey:a,plainCache:o,toPlainMaxDepth:s,toPlainMaxKeys:c,includeFunctions:l=!1,functionPaths:u=[]}=e,d=new WeakMap,f={},p=Number.isFinite(c)?{keys:c}:void 0,h=m(t)?T(t):t,g=n&&typeof n==`object`?m(n)?T(n):n:void 0,_=Object.keys(h),v=g?Object.keys(g):[],y=i?Object.keys(r):[];for(let e of _)a(e)&&(f[e]=cn(h[e],d,{cache:o,maxDepth:s,includeFunctions:l,functionPaths:u,_budget:p,_path:e}));for(let e of v)a(e)&&(f[e]=cn(g[e],d,{cache:o,maxDepth:s,includeFunctions:l,functionPaths:u,_budget:p,_path:e}));for(let e of y)a(e)&&(f[e]=cn(r[e].value,d,{cache:o,maxDepth:s,includeFunctions:l,functionPaths:u,_budget:p,_path:e}));return f}function En(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,includeFunctions:y=!1,functionPaths:b,plainCache:x,pendingPatches:S,fallbackTopKeys:C,latestSnapshot:w,latestComputedSnapshot:T,needsFullSnapshot:E,emitDebug:D,runDiffUpdate:O}=e;if(S.size>u){E.value=!0;let e=S.size;S.clear(),r.clear(),D({mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}),O(`maxPatchKeys`);return}let k=new WeakMap,A=new Map,j=Object.create(null),M=[...S.entries()];if(Number.isFinite(g)&&g>0){let e=new Map;for(let[t]of M){var N;let n=t.split(`.`,1)[0];e.set(n,((N=e.get(n))==null?0:N)+1)}for(let[t,n]of e)n>=g&&C.add(t)}let P=M.filter(([e])=>{for(let t of C)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),F=new Map(P);S.clear();let I=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},L=e=>{if(A.has(e))return A.get(e);let t=bn(cn(I(e),k,{cache:x,maxDepth:_,maxKeys:v,includeFunctions:y,functionPaths:b,_path:e}));return A.set(e,t),t};if(C.size){for(let e of C)l(e)&&(j[e]=L(e),F.set(e,{kind:`property`,op:`set`}));C.clear()}for(let[e,t]of P){if((t.kind===`array`?`set`:t.op)===`delete`){j[e]=null;continue}j[e]=L(e)}let R=0;if(i&&r.size){let e=Object.create(null),t=[...r];r.clear(),R=t.length;for(let r of t){if(!l(r))continue;let t=cn(n[r].value,k,{cache:x,maxDepth:_,maxKeys:v,includeFunctions:y,functionPaths:b,_path:r}),i=T[r];(a===`deep`?Cn(i,t,o,{keys:s}):a===`shallow`?Sn(i,t):Object.is(i,t))||(e[r]=bn(t),T[r]=xn(t))}Object.assign(j,e)}let z=hn(j),ee=0;if(f){let e=vn({input:z,entryMap:F,getPlainByPath:L,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});ee=e.merged,z=hn(e.out)}let te=_n(z,d),B=te.fallback;if(D({mode:B?`diff`:`patch`,reason:B?`maxPayloadBytes`:`patch`,pendingPatchKeys:P.length,payloadKeys:Object.keys(z).length,mergedSiblingParents:ee||void 0,computedDirtyKeys:R||void 0,estimatedBytes:te.estimatedBytes,bytes:te.bytes}),B){E.value=!0,S.clear(),r.clear(),O(`maxPayloadBytes`);return}if(Object.keys(z).length){for(let[e,t]of Object.entries(z)){let n=F.get(e);n?wn(w,e,t,n.kind===`array`?`set`:n.op,{cloneValue:!1}):wn(w,e,t,`set`,{cloneValue:!1})}if(typeof c.setData==`function`){let e=c.setData(z);e&&typeof e.then==`function`&&e.catch(()=>{})}D({mode:`patch`,reason:`patch`,pendingPatchKeys:P.length,payloadKeys:Object.keys(z).length})}}function Dn(e){let{state:t,setupState:n,computedRefs:r,dirtyComputedKeys:i,includeComputed:a,setDataStrategy:o,computedCompare:s,computedCompareMaxDepth:c,computedCompareMaxKeys:l,currentAdapter:u,shouldIncludeKey:d,maxPatchKeys:f,maxPayloadBytes:p,mergeSiblingThreshold:h,mergeSiblingMaxInflationRatio:_,mergeSiblingMaxParentBytes:v,mergeSiblingSkipArray:y,elevateTopKeyThreshold:x,toPlainMaxDepth:S,toPlainMaxKeys:C,includeFunctions:w=!1,functionPaths:E,debug:D,debugWhen:O,debugSampleRate:k,runTracker:A,isMounted:j}=e,M=new WeakMap,N={},P=Object.create(null),F=Object.create(null),I=Object.create(null),L={value:o===`patch`},R=new Map,z=new Set,ee=e=>{if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},te=(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)=>te(e,t[n])):!1;if(ee(e)&&ee(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?n.every(n=>Q(t,n)&&te(e[n],t[n])):!1}return!1},B=e=>{let t=g(e)?e.value:e;if(typeof t!=`object`||!t)return t;if(!m(t)&&Jt(t))return{snapshot:cn(t,new WeakMap,{maxDepth:S,maxKeys:C,includeFunctions:w,functionPaths:E})};let n=m(t)?T(t):t;return{raw:n,version:b(n)}},ne=(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`)?te(e.snapshot,t.snapshot):!1:e.raw===t.raw&&e.version===t.version,V=e=>{let r=[],i=n&&typeof n==`object`?m(n)?T(n):n:void 0;for(let n of new Set([...Object.keys(t),...i?Object.keys(i):[]])){if(!d(n))continue;let a=i&&Q(i,n)?i[n]:t[n],o=g(a)?a.value:a;!o||typeof o!=`object`||T(o)===e&&r.push(n)}return r},H=e=>{if(!D)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(O===`fallback`&&!t)&&!(k<1&&Math.random()>k))try{D(e)}catch(e){}},re=()=>Tn({state:t,setupState:n,computedRefs:r,includeComputed:a,shouldIncludeKey:d,plainCache:M,toPlainMaxDepth:S,toPlainMaxKeys:C,includeFunctions:w,functionPaths:E}),ie=()=>{let e=m(t)?T(t):t,i=n&&typeof n==`object`?m(n)?T(n):n:void 0,o={...N},s=new WeakMap,c=new Set,l=new Set,u=new Set;for(let t of new Set([...Object.keys(e),...i?Object.keys(i):[]])){if(!d(t))continue;c.add(t);let n=i&&Q(i,t)?i:e,r=B(n[t]),a=F[t];a&&r&&typeof a==`object`&&typeof r==`object`&&Q(a,`raw`)&&Q(r,`raw`)&&Array.isArray(a.raw)&&Array.isArray(r.raw)&&a.raw!==r.raw&&u.add(t),(!ne(a,r)||!Q(N,t))&&(o[t]=cn(n[t],s,{cache:M,maxDepth:S,maxKeys:C,includeFunctions:w,functionPaths:E,_path:t})),F[t]=r}for(let e of Object.keys(F))c.has(e)||(delete F[e],(!a||!Q(r,e))&&delete o[e]);if(!a){for(let e of Object.keys(I))delete I[e];return{snapshot:o,replacedTopLevelKeys:u}}for(let e of Object.keys(r)){if(!d(e))continue;l.add(e);let t=r[e].value,n=B(t);(!ne(I[e],n)||!Q(N,e))&&(o[e]=cn(t,s,{cache:M,maxDepth:S,maxKeys:C,includeFunctions:w,functionPaths:E,_path:e})),I[e]=n}for(let t of Object.keys(I))l.has(t)||(delete I[t],(!Q(e,t)||!d(t))&&delete o[t]);return{snapshot:o,replacedTopLevelKeys:u}},U=(e=`diff`)=>{var t;let n=o===`diff`?ie():void 0,s=(t=n==null?void 0:n.snapshot)==null?re():t,c=n?(()=>{let e={};for(let t of n.replacedTopLevelKeys)e[t]=s[t];return{...mn(N,s,{skipKeys:n.replacedTopLevelKeys}),...e}})():mn(N,s);if(N=s,L.value=!1,R.clear(),o===`patch`&&a){P=Object.create(null);for(let e of Object.keys(r))d(e)&&(P[e]=s[e]);i.clear()}if(Object.keys(c).length){if(typeof u.setData==`function`){let e=u.setData(c);e&&typeof e.then==`function`&&e.catch(()=>{})}H({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(c).length})}};return{job:e=>{if(j())if(A(),o===`patch`&&!L.value){if(!(R.size>0||z.size>0||a&&i.size>0)){U(`diff`);return}En({state:t,computedRefs:r,dirtyComputedKeys:i,includeComputed:a,computedCompare:s,computedCompareMaxDepth:c,computedCompareMaxKeys:l,currentAdapter:u,shouldIncludeKey:d,maxPatchKeys:f,maxPayloadBytes:p,mergeSiblingThreshold:h,mergeSiblingMaxInflationRatio:_,mergeSiblingMaxParentBytes:v,mergeSiblingSkipArray:y,elevateTopKeyThreshold:x,toPlainMaxDepth:S,toPlainMaxKeys:C,includeFunctions:w,functionPaths:E,plainCache:M,pendingPatches:R,fallbackTopKeys:z,latestSnapshot:N,latestComputedSnapshot:P,needsFullSnapshot:L,emitDebug:H,runDiffUpdate:U})}else U(L.value?`needsFullSnapshot`:`diff`)},mutationRecorder:(e,t)=>{if(!j())return;if(e.root!==t){let t=V(e.root);if(t.length)for(let e of t)z.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)z.add(t);else L.value=!0;return}let n=e.path.split(`.`,1)[0];d(n)&&R.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>o===`patch`?re():{...N},cloneLatestSnapshot:()=>({...N}),getLatestSnapshot:()=>N}}function On(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=!!(e!=null&&e.includeFunctions),A=Array.isArray(e==null?void 0:e.functionPaths)?[...new Set(e.functionPaths.filter(e=>typeof e==`string`&&e.length>0))]:[],j=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,M=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,includeFunctions:k,functionPaths:A,pickSet:j,omitSet:M,shouldIncludeKey:e=>!(j&&!j.has(e)||M&&M.has(e))}}function kn(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 An(e){return typeof e==`function`?e():e==null?{}:e}function jn(e){let{data:n,resolvedComputed:r,resolvedMethods:i,appConfig:o,setDataOptions:d}=e;return e=>{let f=An(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),_=c(Object.create(null));if(f&&typeof f==`object`&&!Q(f,Ge))try{Object.defineProperty(f,Ge,{value:_,configurable:!0,enumerable:!1,writable:!1})}catch(e){}let y=r,b=i,x=!0,S=[],C=new Set;Object.keys(g).forEach(e=>{let t=g[e];Jt(t)&&C.add(e)});let{includeComputed:E,setDataStrategy:D,maxPatchKeys:O,maxPayloadBytes:k,mergeSiblingThreshold:A,mergeSiblingMaxInflationRatio:j,mergeSiblingMaxParentBytes:M,mergeSiblingSkipArray:N,computedCompare:P,computedCompareMaxDepth:F,computedCompareMaxKeys:I,prelinkMaxDepth:L,prelinkMaxKeys:R,debug:z,diagnostics:ee,debugWhen:te,debugSampleRate:B,elevateTopKeyThreshold:ne,toPlainMaxDepth:V,toPlainMaxKeys:H,includeFunctions:re,functionPaths:ie,shouldIncludeKey:U}=On(d),W=nn(ee),ae=z||W?e=>{typeof z==`function`&&z(e),W==null||W(e)}:void 0,oe=ee===`always`?`always`:te,{boundMethods:se,computedRefs:ce,computedSetters:G,dirtyComputedKeys:le,computedProxy:ue,publicInstance:de,touchSetupMethodsVersion:fe}=en({state:g,setupState:_,computedDefs:y,methodDefs:b,appConfig:o,includeComputed:E,setDataStrategy:D}),me=e==null?{setData:()=>{}}:e,he=T(g),ge,K=Dn({state:g,setupState:_,computedRefs:ce,dirtyComputedKeys:le,includeComputed:E,setDataStrategy:D,computedCompare:P,computedCompareMaxDepth:F,computedCompareMaxKeys:I,currentAdapter:me,shouldIncludeKey:U,maxPatchKeys:O,maxPayloadBytes:k,mergeSiblingThreshold:A,mergeSiblingMaxInflationRatio:j,mergeSiblingMaxParentBytes:M,mergeSiblingSkipArray:N,elevateTopKeyThreshold:ne,toPlainMaxDepth:V,toPlainMaxKeys:H,includeFunctions:re,functionPaths:ie,debug:ae,debugWhen:oe,debugSampleRate:B,runTracker:()=>ge==null?void 0:ge(),isMounted:()=>x}),q=()=>K.job(he),_e=e=>K.mutationRecorder(e,he);ge=t(()=>{l(g);let e=g[X];m(e)&&l(e);let t=g[pe];m(t)&&l(t),C.forEach(e=>{var t;Yt((t=_[e])==null?g[e]:t)})},{lazy:!0,scheduler:()=>a(q)}),q(),S.push(kn(()=>p(ge))),D===`patch`&&(u(g,{shouldIncludeTopKey:U,maxDepth:L,maxKeys:R}),s(_e),S.push(kn(()=>w(_e))),S.push(kn(()=>h(g))));function ve(e,t,n){let r=jt(e,(e,n)=>t(e,n),n);return S.push(r),kn(()=>{r();let e=S.indexOf(r);e>=0&&S.splice(e,1)},r)}let J={get state(){return g},get setupState(){return _},get proxy(){return de},get methods(){return se},get computed(){return ue},get adapter(){return me},bindModel:Wt(de,g,ce,G),watch:ve,snapshot:()=>K.snapshot(),unmount:()=>{x&&(x=!1,S.forEach(e=>{try{e()}catch(e){}}),S.length=0)}};try{Object.defineProperty(J,"__wevu_touchSetupMethodsVersion",{value:fe,configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_touchSetupMethodsVersion=fe}try{Object.defineProperty(J,"__wevu_flushSetupSnapshotSync",{value:q,configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_flushSetupSnapshotSync=q}try{Object.defineProperty(J,"__wevu_cloneLatestSnapshot",{value:K.cloneLatestSnapshot,configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_cloneLatestSnapshot=K.cloneLatestSnapshot}try{Object.defineProperty(J,"__wevu_trackSetupReactiveKey",{value:e=>{C.add(e)},configurable:!0,enumerable:!1,writable:!1})}catch(e){J.__wevu_trackSetupReactiveKey=e=>{C.add(e)}}return J}}const Mn=`__wevuDefaultsScope`;let Nn={};function Pn(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function Fn(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=Pn(e.setData),i=Pn(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=Pn(e.options),o=Pn(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function In(e,t){return Fn(e,t)}function Ln(e,t){return{app:Fn(e.app,t.app),component:Fn(e.component,t.component)}}function Rn(e){Nn=Ln(Nn,e)}function zn(){Nn={}}function Bn(e){return In(Nn.app,e)}function Vn(e){return In(Nn.component,e)}const Hn=/&/g,Un=/"/g,Wn=/"/g,Gn=/'/g,Kn=/'/g,qn=/</g,Jn=/>/g;function Yn(e){return e.replace(Hn,`&`).replace(Un,`"`).replace(Wn,`"`).replace(Gn,`'`).replace(Kn,`'`).replace(qn,`<`).replace(Jn,`>`)}function Xn(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 Zn=/[^a-z0-9]+/gi,Qn=/^-+|-+$/g;function $n(e){return e.trim().replace(Zn,`-`).replace(Qn,``).toLowerCase()}const er=/-([a-z0-9])/g;function tr(e,t){let n=$n(typeof(t==null?void 0:t.type)==`string`?t.type:``);if(!n)return;let r=n.replace(er,(e,t)=>t.toUpperCase());if(r)return`${e}${r[0].toUpperCase()}${r.slice(1)}`}const nr={wvEventDetail:[`wd`,`wvEventDetail`],wvHandler:[`wh`,`wvHandler`],wvInlineId:[`wi`,`wvInlineId`]};function rr(e,t,n){var r;let i=(r=nr[t])==null?[t]:r;for(let t of i){let r=tr(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 ir(e,t,n){return rr(e,t,n)}function ar(e,t){let n=ir(e,`wvEventDetail`,t);return n===!0||n===1||n===`1`||n===`true`}function or(e,t){if(!ar(t,e))return e;if(!(!e||typeof e!=`object`||!(`detail`in e)))return e.detail}function sr(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 cr(e){if(typeof e!=`object`||!e||g(e)||m(e))return e;try{return c(e)}catch(t){return e}}function lr(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=or(n,c),u=ir(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=Xn(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=sr(e,o.path);t=i==null?void 0:i[r]}else continue;t!==void 0&&(n[i]=cr(t))}catch(e){}}let o=t.fn(e,n,l);return typeof o==`function`?o.call(e,l):o}}let d=ir(c,`wvHandler`,n),f=typeof t==`string`&&t?t:typeof d==`string`?d:void 0;if(!f)return;let p=ir(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(Yn(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 ur(){let e=P();if(e)return e;let t=le();return t[t.length-1]}function dr(e){return e===Ee?!1:e}function fr(){var e,t;if(!z())throw Error(`usePageLayout() 必须在 setup() 的同步阶段调用`);let n=H(),r=n==null||(e=n.__wevu)==null?void 0:e.state,i=c({name:dr(r==null?void 0:r[Te]),props:{...(t=r==null?void 0:r[De])==null?{}:t}});return n&&(n.__wevuPageLayoutState=i),R(i)}function pr(e,t,n){let r=e.__wevuPageLayoutState;r&&(r.name=t,r.props={...n})}function mr(e){var t,n;let r=e.__wevuPageLayoutState,i=(t=e.__wevu)==null?void 0:t.state;!r||!i||(r.name=dr(i[Te]),r.props={...(n=i[De])==null?{}:n})}function hr(e,t){let n=H(),r=n==null?void 0:n[Oe];if(typeof r==`function`){r(e,t);return}let i=ur(),a=i==null?void 0:i[Oe];if(typeof a==`function`){a(e,t);return}throw Error(`setPageLayout() 未找到当前页面实例。请在页面 setup()、事件回调或当前页面上下文中调用。`)}function gr(e){return e===!1?Ee:e}function _r(){let e=globalThis;return e[Ue]instanceof Map||(e[Ue]=new Map),typeof e[He]!=`number`&&(e[He]=0),{globalObject:e,ownerStore:e[Ue]}}function vr(){let{globalObject:e}=_r();return e[He]+=1,`wv${e[He]}`}function yr(e,t,n){var r;let{ownerStore:i}=_r(),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 br(e){let{ownerStore:t}=_r();t.delete(e)}function xr(e,t){var n;let{ownerStore:r}=_r(),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 Sr(e){var t;let{ownerStore:n}=_r();return(t=n.get(e))==null?void 0:t.proxy}function Cr(e){var t;let{ownerStore:n}=_r();return(t=n.get(e))==null?void 0:t.snapshot}function wr(e){let t=e.__wevu_cloneLatestSnapshot;return typeof t==`function`?t():typeof e.snapshot==`function`?e.snapshot():{}}function Tr(e,t,n){var r;try{t.state[qe]=n}catch(e){}try{e[qe]=n}catch(e){}try{let t=e.data;t&&typeof t==`object`&&(t[qe]=n)}catch(e){}let i=wr(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;yr(n,i,t.proxy)}function Er(e){return e.kind===`component`}function Dr(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 Or(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=Dr(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 kr(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 Ar(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n[he];return r&&typeof r==`object`?Or(n,r):(t=n[Z])!=null&&t.proxy?n[Z].proxy:e}function jr(e){return e[rt]}function Mr(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function Nr(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 Pr(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 Fr(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();if(!U(`globalCreateSelectorQuery`))return null;let n=V();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 Ir(e,t,n,r,i){let a=Fr(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 Lr(e,t,n){return $({selector:t,boundingClientRect:r=>Ir(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>Ir(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>Ir(e,t,n,e=>e.fields(r),i),node:r=>Ir(e,t,n,e=>e.node(),r)})}function Rr(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)=>kr(Lr(e,t.selector,{multiple:!0,index:r}),Ar(n))))}return $([])}let r=Lr(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?kr(r,Ar(n.selectComponent(t.selector))):r}function zr(e,t,n){return t.inFor?$((Array.isArray(n)?n:[]).map((n,r)=>Lr(e,t.selector,{multiple:!0,index:r}))):n?Lr(e,t.selector,{multiple:!1}):null}function Br(e,t){let n=e[tt];if(!n||!n.length){t==null||t();return}if(!e[Fe]){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=jr(e),i=n.filter(e=>!Er(e)),a=n.filter(e=>Er(e)).map(t=>({binding:t,value:Rr(e,t)})),o=n=>{var i,a;let o=Pr(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=Nr(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,Mr(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=Fr(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:zr(e,n.binding,i)}});o([...a,...n])})}function Vr(e,t){let n=e[tt];if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e[et])==null?[]:r;n.push(t),e[et]||Object.defineProperty(e,et,{value:n,configurable:!0,enumerable:!1,writable:!0})}e[nt]||(e[nt]=!0,i(()=>{e[nt]=!1,Br(e,()=>{let t=e[et];!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function Hr(e){var t,n;let r=e[tt];if(!r||!r.length)return;let i=Pr(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=jr(e);for(let t of r){let n=Nr(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,Mr(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}const Ur=[`triggerEvent`,`createSelectorQuery`,`createIntersectionObserver`,`setData`,`setUpdatePerformanceListener`];function Wr(){return Object.freeze(Object.create(null))}const Gr=()=>[];function Kr(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 qr(e){if(!Q(e,Ke))return Wr();let t=()=>Kr(e[Ke]),n=e=>typeof e==`string`&&t().includes(e);return new Proxy(Object.create(null),{get(e,t){if(n(t))return Gr},has(e,t){return n(t)},ownKeys(){return t()},getOwnPropertyDescriptor(e,t){if(n(t))return{configurable:!0,enumerable:!0,value:Gr}},set(){return!1},deleteProperty(){return!1}})}function Jr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function Yr(e){try{return $(e)}catch(t){return e}}function Xr(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Q(e,`bubbles`)||Q(e,`composed`)||Q(e,`capturePhase`)}function Zr(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(Xr(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}function Qr(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(Qt(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 $r(e,t,n){Zt(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function ei(e,t){let n=e[We];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=Qr(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Qt(i))return e};$r(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))}),$r(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=V();if(!U(`globalCreateSelectorQuery`)||!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||!B().selectorQueryScopeByIn||typeof o.in!=`function`)return o;let s=(n=Qr(t,e,`setData`))==null?e:n;return o.in(s)}),$r(r,`createIntersectionObserver`,n=>{var r;let a=i(`createIntersectionObserver`);if(a&&typeof a.createIntersectionObserver==`function`)return a.createIntersectionObserver(n==null?{}:n);let o=V();if(!U(`globalCreateIntersectionObserver`)||!o||typeof o.createIntersectionObserver!=`function`)return;let s=(r=Qr(t,e,`setData`))==null?e:r;return B().intersectionObserverScopeByParameter?o.createIntersectionObserver(s,n==null?{}:n):o.createIntersectionObserver(n==null?{}:n)}),$r(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}),$r(r,`setUpdatePerformanceListener`,e=>{let t=i(`setUpdatePerformanceListener`);if(t&&typeof t.setUpdatePerformanceListener==`function`)return t.setUpdatePerformanceListener(e)});let a=Yr(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,We,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[We]=a}return a}function ti(e){return!e||typeof e!=`object`?!1:typeof e.triggerEvent==`function`||typeof e.createSelectorQuery==`function`||typeof e.createIntersectionObserver==`function`||typeof e.setData==`function`}function ni(e,t,n){let r=t==null?void 0:t[n];if(typeof r!=`function`)return!1;if(Qt(r))return!0;let i=e==null?void 0:e.proxy;return typeof(i==null?void 0:i[n])==`function`&&r===i[n]}function ri(e,t){if(!e||!ti(t)||t===e.proxy)return;let n=t;if(ni(e,n,`triggerEvent`)||ni(e,n,`createSelectorQuery`)||ni(e,n,`createIntersectionObserver`)||ni(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 ii(e,t){try{let n=t.methods;for(let t of Object.keys(n))Ur.includes(t)||typeof e[t]!=`function`&&(e[t]=function(...n){var r,i;let a=(r=this[Z])==null?e[Z]:r;ri(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 ai=e=>e.startsWith(`layouts/`);function oi(e){let t=e.is;return typeof t==`string`&&ai(t,e)}function si(e){if(oi(e))return;let t=e[Ae];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=le(),i=r[r.length-1];if(i&&i!==e&&typeof i==`object`&&i.__wevu)return i}function ci(e){if(!oi(e))return;let t=le(),n=t[t.length-1];n&&n!==e&&typeof n==`object`&&n.__wevu&&k(e,n)}function li(e,t){e[ze]=t,O(e,t,si(e)),ci(e)}function ui(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:{},setupState:{},proxy:{},watch:()=>()=>{},bindModel:()=>{}}:r;return n&&(n.runtime=i),e(t,{...n==null?{}:n,runtime:i})}function di(e,t){try{Object.defineProperty(e,X,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e[X]=t}}function fi(e,t){try{Object.defineProperty(e,Ge,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e[Ge]=t}}function pi(e,t){try{Object.defineProperty(e,Y,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e[Y]=t}}function mi(e,t){try{Object.defineProperty(e,Be,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e[Be]=t}}function hi(e,t){try{Object.defineProperty(e,"instance",{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function gi(e){let t=e[We],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Qt(n))return n;let r=e.setData;if(typeof r==`function`&&!Qt(r))return r}function _i(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,t,n){try{return t.call(e,n)}catch(t){let n=_i(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function yi(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 bi(e,t,n=e.properties||{}){let r=t&&typeof t==`object`?t[X]:void 0,i=r&&typeof r==`object`?r:v({});yi(i,n),t&&typeof t==`object`&&di(t,i);try{Object.defineProperty(e,X,{value:i,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[X]=i}return i}function xi(e){return e.includes(`:`)?e.replaceAll(`:`,`-`).toLowerCase():e}function Si(e){var t;let{target:n,runtime:r,runtimeWithDefaults:i,runtimeState:a,runtimeProxy:o,setup:s}=e,c=bi(n,a,n.properties||{}),l=v(Object.create(null)),u=new Set(Array.isArray(n[Pe])?n[Pe]:[]),d=e=>typeof a==`object`&&!!a&&Q(a,e);(()=>{let e=n.properties&&typeof n.properties==`object`?n.properties:void 0;for(let t of Object.keys(l))(!e||!Q(e,t)||u.has(t)||d(t))&&delete l[t];if(e)for(let[t,n]of Object.entries(e))u.has(t)||d(t)||(l[t]=n)})();try{Object.defineProperty(n,pe,{value:l,configurable:!0,enumerable:!1,writable:!1})}catch(e){n[pe]=l}let f=ei(n,i),p=qr(c);fi(a,(t=i.setupState)==null?Object.create(null):t);try{Object.defineProperty(a,"$slots",{value:p,configurable:!0,enumerable:!1,writable:!1})}catch(e){a.$slots=p}let h=Yr({props:c,runtime:i,state:a,proxy:o,bindModel:r.bindModel.bind(i),watch:r.watch.bind(i),instance:f,emit:(e,...t)=>{let{detail:n,options:r}=Zr(t),i=xi(e);f.triggerEvent(i,n,r)},expose:e=>{n[he]=e},attrs:l,slots:p}),g=C(!0);n[me]=g,ce(n),te(h);try{let e=g.run(()=>ui(s,c,h)),t=!1;if(e&&typeof e==`object`){let n=r.setupState&&typeof r.setupState==`object`?m(r.setupState)?T(r.setupState):r.setupState:Object.create(null);Object.keys(e).forEach(i=>{let a=e[i];if(typeof a==`function`)r.methods[i]=(...e)=>a.apply(r.proxy,e),r.state[i]=(...e)=>a.apply(r.proxy,e),t=!0;else{if(Jt(a)){var o;(o=r.__wevu_trackSetupReactiveKey)==null||o.call(r,i)}r.state[i]=a,n[i]=a}})}if(t){var _;(_=r.__wevu_touchSetupMethodsVersion)==null||_.call(r)}}catch(e){throw g.stop(),n[me]=void 0,e}finally{te(void 0),ce(void 0)}}function Ci(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function wi(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}:Ci(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 Ti(){let e=ie();if((e==null?void 0:e.debug)===!0||(e==null?void 0:e.envVersion)===`develop`)return!0;let t=V();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 Ei(e){var t,n;let r=wi(e.option);if(!r.enabled)return;let i=Ti();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 Di(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=Di(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 Oi(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 ki(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=Di(o,e,n);if(!t)continue;let s=Oi(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function Ai(e){typeof e.route!=`string`||!e.route||(e[Oe]=(t,n)=>{var r;let i=(r=e.__wevu)==null?void 0:r.state;if(!i||typeof i!=`object`)return;i[Te]=gr(t);let a=t===!1||n==null?{}:n;i[De]=a,pr(e,t,a)})}function ji(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h;if(e.__wevu)return e.__wevu;li(e,t),Yr(e);let g=vr(),_=!!(!(t==null||(a=t.__wevuSetDataOptions)==null)&&a.suspendWhenHidden),v=typeof e.route==`string`&&e.route?`page:${e.route}`:typeof e.is==`string`&&e.is?`component:${e.is}`:`unknown-target`,y=Ei({option:t==null||(o=t.__wevuSetDataOptions)==null?void 0:o.highFrequencyWarning,targetLabel:v,isInPageScrollHook:()=>{var t;return Number((t=e[ke])==null?0:t)>0}}),b=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=gi(e);if(a)return vi(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=gi(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,vi(e,r,n)}},r})(e):{setData(t){let n=gi(e);if(n)return vi(e,n,t)}},x,S=!0,C,w=(e,t)=>({...e==null?{}:e,...t}),T=()=>{var t;if(!x)return;let n=wr(x),r=(t=e[X])==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;yr(g,n,x.proxy)},E={...b,setData(t){if(y==null||y(),_&&!S){C=w(C,t),T(),Vr(e);return}let n=b.setData(t);return T(),Vr(e),n},__wevu_setVisibility(t){if(S=t,!S||!C)return;let n=C;C=void 0;let r=b.setData(n);return T(),Vr(e),r}},D=t.mount({...E});x=D,hi(D,e);let O=(s=D==null?void 0:D.proxy)==null?{}:s,k=(c=D==null?void 0:D.state)==null?{}:c,A=(l=D==null?void 0:D.setupState)==null?Object.create(null):l;k&&typeof k==`object`&&(mi(k,D),pi(k,e));let j=(u=D==null?void 0:D.computed)==null?Object.create(null):u;if(!(D!=null&&D.methods))try{D.methods=Object.create(null)}catch(e){}let M=(d=D==null?void 0:D.methods)==null?Object.create(null):d,N=(f=D==null?void 0:D.watch)==null?(()=>Jr()):f,P=(p=D==null?void 0:D.bindModel)==null?(()=>{}):p,F={...D==null?{}:D,state:k,setupState:A,proxy:O,methods:M,computed:j,watch:N,bindModel:P,snapshot:(m=D==null?void 0:D.snapshot)==null?(()=>Object.create(null)):m,unmount:(h=D==null?void 0:D.unmount)==null?(()=>{}):h},I=F,L={__wevu_flushSetupSnapshotSync:D.__wevu_flushSetupSnapshotSync,__wevu_touchSetupMethodsVersion:D.__wevu_touchSetupMethodsVersion,__wevu_trackSetupReactiveKey:D.__wevu_trackSetupReactiveKey};for(let[e,t]of Object.entries(L))t&&Object.defineProperty(F,e,{configurable:!0,enumerable:!1,value:t,writable:!0});if(Object.defineProperty(e,Z,{value:F,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=F,Ai(e),bi(e,k),Tr(e,F,g),n){let t=ki(F,n,e);t.length&&(e[it]=t)}if(r){var R;Si({target:e,runtime:D,runtimeWithDefaults:F,runtimeState:k,runtimeProxy:O,setup:r}),(R=I.__wevu_flushSetupSnapshotSync)==null||R.call(I),T()}else if(e.properties&&typeof e.properties==`object`&&Object.keys(e.properties).length>0){var z;(z=I.__wevu_flushSetupSnapshotSync)==null||z.call(I),T()}return ii(e,D),D}function Mi(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function Ni(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 Pi(e){var t;let n=e.__wevu,r=e[qe];r&&br(r),Hr(e),n&&e[K]&&W(e,`onUnload`,[]),e[K]&&(e[K]=void 0);let i=e[it];if(Array.isArray(i))for(let e of i)try{e()}catch(e){}e[it]=void 0,(t=e[me])==null||t.stop(),e[me]=void 0,n&&n.unmount(),delete e.__wevu,Z in e&&delete e[Z]}const Fi=`__wevuAppGlobalListeners`,Ii=`__wevuOnMemoryWarningListener`;function Li(e){let t=e[K],n=!!(t!=null&&t.onMemoryWarning);if(!U(`appMemoryWarningListener`)){delete e[Ii];return}let r=V(),i=r==null?void 0:r.onMemoryWarning,a=r==null?void 0:r.offMemoryWarning;if(typeof i!=`function`)return;let o=e[Ii];if(typeof o==`function`&&typeof a==`function`)try{a(o)}catch(e){}if(!n){delete e[Ii];return}let s=t=>{W(e,`onMemoryWarning`,[t])};e[Ii]=s,i(s)}function Ri(e,t){var n,r;let{hookName:i,onApiName:a,offApiName:o,capabilityName:s,userHandler:c}=t,l=e[K],u=!!(l!=null&&l[i]),d=(r=(n=e)[Fi])==null?n[Fi]=Object.create(null):r,f=d[i];if(!U(s)){delete d[i],delete e[i];return}let p=V(),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 zi(e,t){Ri(e,{hookName:`onError`,onApiName:`onError`,offApiName:`offError`,capabilityName:`appErrorListener`,userHandler:t.onError}),Ri(e,{hookName:`onPageNotFound`,onApiName:`onPageNotFound`,offApiName:`offPageNotFound`,capabilityName:`appPageNotFoundListener`,userHandler:t.onPageNotFound}),Ri(e,{hookName:`onUnhandledRejection`,onApiName:`onUnhandledRejection`,offApiName:`offUnhandledRejection`,capabilityName:`appUnhandledRejectionListener`,userHandler:t.onUnhandledRejection}),Ri(e,{hookName:`onThemeChange`,onApiName:`onThemeChange`,offApiName:`offThemeChange`,capabilityName:`appThemeChangeListener`,userHandler:t.onThemeChange})}function Bi(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[q]||(s[q]=function(e){var t,n;let r=this.__wevu;return lr((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n[_e])});let c=s.onLaunch,l=s.onError,u=s.onPageNotFound,d=s.onUnhandledRejection,f=s.onThemeChange;s.onLaunch=function(...t){this[ve]=!0,ji(this,e,n,r),Li(this),zi(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 Vi(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 Hi(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=se(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[Re]&&(this[Re]=!0,Promise.resolve().then(()=>{this[Re]=!1}),this[Le]=!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=se(this,`onShareAppMessage`,e);return t===void 0?y.apply(this,e):t}),u&&(e.onShareTimeline=function(...e){let t=se(this,`onShareTimeline`,e);return t===void 0?b.apply(this,e):t}),d&&(e.onAddToFavorites=function(...e){let t=se(this,`onAddToFavorites`,e);return t===void 0?x.apply(this,e):t})}function Ui(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,syncWevuPropsFromValues:x,effectiveOnSaveExitState:S,effectiveOnPullDownRefresh:C,effectiveOnReachBottom:w,effectiveOnPageScroll:T,effectiveOnRouteDone:E,effectiveOnTabItemTap:O,effectiveOnResize:k,effectiveOnShareAppMessage:A,effectiveOnShareTimeline:j,effectiveOnAddToFavorites:M,hasHook:N}=e,P=e=>{var t,n;(t=e.__wevu)==null||(n=t.__wevu_flushSetupSnapshotSync)==null||n.call(t)},F={onLoad(...e){if(this[Se])return;this[Se]=!0,ji(this,t,n,r);let a=e[0]&&typeof e[0]==`object`?e[0]:ue(this);if(x==null||x(this,a),P(this),Mi(this),l&&de({enableOnShareAppMessage:v,enableOnShareTimeline:y}),W(this,`onLoad`,e),typeof i==`function`)return i.apply(this,e.length?e:[a])},onUnload(...e){if(l&&D(this),Pi(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(ee(),fe(this),this[Se]||F.onLoad.call(this,ue(this)),x==null||x(this,ue(this)),P(this),de({enableOnShareAppMessage:v,enableOnShareTimeline:y}),this[Le]=!1),Ni(this,!0),W(this,`onShow`,e),typeof o==`function`)return o.apply(this,e)},onHide(...e){if(l&&D(this),Ni(this,!1),W(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this[Se]||F.onLoad.call(this,ue(this)),x==null||x(this,ue(this)),P(this),de({enableOnShareAppMessage:v,enableOnShareTimeline:y})),!this[Fe]){if(this[Fe]=!0,l&&m&&h){let e=this;setTimeout(()=>{if(!e[Le]){var t;(t=F.onRouteDone)==null||t.call(e)}},0)}Vr(this,()=>{W(this,`onReady`,e),typeof c==`function`&&c.apply(this,e)});return}if(typeof c==`function`)return c.apply(this,e)}};return Hi(F,{enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:v,enableOnShareTimeline:y,enableOnAddToFavorites:b,effectiveOnSaveExitState:S,effectiveOnPullDownRefresh:C,effectiveOnReachBottom:w,effectiveOnPageScroll:T,effectiveOnRouteDone:E,effectiveOnTabItemTap:O,effectiveOnResize:k,effectiveOnShareAppMessage:A,effectiveOnShareTimeline:j,effectiveOnAddToFavorites:M,hasHook:N}),F}function Wi(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r[q]||(r[q]=function(e){var t,n;let r=this.__wevu;return lr((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n[_e])}),r[be]||(r[be]=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=zt(e);try{a.bindModel(i).update(o)}catch(e){}}),!r[we]&&typeof(n==null?void 0:n[we])==`function`&&(r[we]=n[we]);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[Be]}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===_e||e.startsWith(Ie))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 Gi(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(Gi(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=Gi(i,t);return n}function Ki(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function qi(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`,Me,Ne,`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]=Gi(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[Me];delete T[Me];let P=T[Ne];delete T[Ne];let F=T.observers,I=T.setupLifecycle===`created`?`created`:`attached`;delete T.setupLifecycle;let L=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,propsAliases:N,propsDerivedKeys:P,userObservers:F,setupLifecycle:I,legacyCreated:L,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 Ji(e){var t;let n=e.__wevu,r=e[qe];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;yr(r,i,n.proxy)}function Yi(e){let{restOptions:t,propsAliases:n,propsDerivedKeys:r,userObservers:i}=e,a=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],o=new Set(a),s=new Set(r==null?[]:r),c=Object.entries(n==null?{}:n).filter(([e,t])=>e&&t),l=new WeakMap,u=(e,t)=>{var n;if(!c.length)return;let r=e.__wevu,i=r==null?void 0:r.setupState,a=r==null?void 0:r.state;if(!i||typeof i!=`object`)return;let o=(n=l.get(e))==null?new Set:n;l.set(e,o);for(let[e,n]of c){if(Q(i,e)&&!o.has(e))continue;let r=t[n];try{i[e]=r,o.add(e)}catch(e){}if(a&&typeof a==`object`&&(!Q(a,e)||o.has(e)))try{a[e]=r}catch(e){}}},d=(e,t)=>{if(!s.size)return;let n=e.__wevu,r=n==null?void 0:n.setupState;if(!r||typeof r!=`object`)return;let i=new Map(c);for(let e of s){var a;let n=(a=i.get(e))==null?e:a;if(Q(t,n))try{r[e]=t[n]}catch(e){}}},f=e=>{try{Object.defineProperty(e,Pe,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[Pe]=a}},p=e=>{let t=e[pe];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,i=r&&typeof r==`object`?r:void 0,a=Object.keys(t);for(let e of a)if(!i||!Q(i,e)||o.has(e)||n(e))try{delete t[e]}catch(e){}if(!i){Ji(e);return}for(let[e,r]of Object.entries(i))if(!(o.has(e)||n(e)))try{t[e]=r}catch(e){}Ji(e)},m=e=>{let t=e[X],n=e.properties,r=e[je];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){}}d(e,t),u(e,t),Ji(e)}r&&delete e[je],p(e)},h=(e,t)=>{if(!t||typeof t!=`object`)return;let n=e[X];if(!n||typeof n!=`object`)return;let r=!1;for(let e of a)if(Q(t,e))try{n[e]=t[e],r=!0}catch(e){}r&&(d(e,n),u(e,n),Ji(e),p(e))},g=(e,t,n)=>{var r,i;let a=e[X];if(!a||typeof a!=`object`)return;try{a[t]=n}catch(e){}let o=(i=(r=e)[je])==null?r[je]=Object.create(null):i;o[t]=n,d(e,a),u(e,a),Ji(e),p(e)},_={};if(a.length)for(let e of a)_[e]=function(t){g(this,e,t)};let v={...i==null?{}:i};for(let[e,t]of Object.entries(_)){let n=v[e];typeof n==`function`?v[e]=function(...e){n.apply(this,e),t.apply(this,e)}:v[e]=t}let y=v[`**`];return v[`**`]=function(...e){typeof y==`function`&&y.apply(this,e),m(this)},{attachWevuPropKeys:f,syncWevuPropsFromInstance:m,syncWevuPropsFromValues:h,finalObservers:v}}const Xi=new Map;function Zi(){let e=le();return e[e.length-1]}function Qi(e){return Array.from(new Set(Array.isArray(e)?e:[e])).filter(e=>typeof e==`string`&&e.length>0)}function $i(e){return at(e)}function ea(e){return e&&typeof e.__wevuSetPageLayout==`function`?e:Zi()}function ta(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 na(e){return typeof e==`function`?e():g(e)?e.value:e}function ra(e,t){return e.find(e=>e.key===t)}function ia(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 aa(e,t){var n,r,i,a,o,s,c,l;if(!e.refName)return null;let u=jr(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 oa(e,t){let n=ta(t);return Object.assign(n&&typeof n==`object`?Object.create(n):{},{selectComponent(r){let i=ra(e,r);if(!i)return null;if(i.kind===`component`||!i.kind){var a,o;return aa(i,t)||((a=(o=ia(n,i.selector))==null?ia(Zi(),i.selector):o)==null?null:a)}return null}})}function sa(e,t){let n=t==null?H():t,r=ea(n),i=$i(r);if(!n||!r||i.length===0)return!1;for(let t of i){var a;let r=(a=Xi.get(t))==null?new Map:a;for(let t of Qi(e))r.set(t,n);Xi.set(t,r)}return n[J]=i,!0}function ca(e,t){var n;let r=t==null?H():t,i=ea(r),a=(n=r==null?void 0:r[J])==null?$i(i):n;if(!r||!Array.isArray(a)||a.length===0)return!1;let o=!1;for(let t of a){let n=Xi.get(t);if(n){for(let t of Qi(e))n.get(t)===r&&(n.delete(t),o=!0);n.size===0&&Xi.delete(t)}}return delete r[J],o}function la(e,t){var n,r;let i=$i((n=Zi())==null?ea(t):n).map(t=>{var n;return(n=Xi.get(t))==null?void 0:n.get(e)}).find(Boolean);return(r=i==null?t:i)==null?H():r}function ua(e,t={}){var n,r;let i=la(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 da(e,t={}){var n,r;let i=(n=t.retries)==null?20:n,a=(r=t.interval)==null?16:r,o=ua(e,t);return o||i<=0?Promise.resolve(o):new Promise(n=>{setTimeout(()=>{n(da(e,{...t,retries:i-1}))},a)})}function fa(e,t={}){if(!z())throw Error(`useLayoutBridge() 必须在 setup() 的同步阶段调用`);let n=H(),r=Qi(e),i=t.resolveComponent,a=ta(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=ta(n),l=c==null||(t=c.selectComponent)==null?void 0:t.call(c,e);if(l)return l;let u=Zi();return(a=u==null||(o=u.selectComponent)==null?void 0:o.call(u,e))==null?null:a}});sa(r,o),j(()=>{sa(r,o)}),M(()=>{ca(r,o)})}function pa(e,t){if(!e.length)return null;let n=t==null?H():t;if(!n)return null;let r=oa(e,n);return sa(e.map(e=>e.key),r),r}function ma(e,t){if(!e.length)return!1;let n=t==null?H():t;return n?ca(e.map(e=>e.key),n):!1}function ha(e){fa(Object.keys(e),{resolveComponent(t){return na(e[t])}})}function ga(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[ye])return;let t=pa(p,e);t&&(e[ye]=t)},S=e=>{_&&(e[Oe]=(t,n)=>{var r;let i=(r=e.__wevu)==null?void 0:r.state;if(!i||typeof i!=`object`)return;i[Te]=gr(t);let a=t===!1||n==null?{}:n;i[De]=a,pr(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,tt,{value:f,configurable:!0,enumerable:!1,writable:!1}),m(this),h===`created`){try{ji(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[tt]&&Object.defineProperty(this,tt,{value:f,configurable:!0,enumerable:!1,writable:!1}),m(this),h!==`created`||!this.__wevu)try{ji(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`&&Mi(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[Fe]){this[Fe]=!0,g(this),Vr(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}Hr(this),Array.isArray(p)&&p.length&&this[ye]&&(ma(p,this[ye]),delete this[ye]),Pi(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}Ni(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}Ni(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 _a(e,t,n,r,i){var a;let{userMethods:o,userLifetimes:s,userPageLifetimes:c,userOptions:l,restOptions:u,topLevelMethods:d,templateRefs:f,layoutHosts:p,propsAliases:m,propsDerivedKeys:h,userObservers:g,setupLifecycle:_,legacyCreated:v,isPage:y,features:b,userOnLoad:x,userOnUnload:S,userOnShow:C,userOnHide:w,userOnReady:T,userOnSaveExitState:E,userOnPullDownRefresh:D,userOnReachBottom:O,userOnPageScroll:k,userOnRouteDone:A,userOnTabItemTap:j,userOnResize:M,userOnShareAppMessage:N,userOnShareTimeline:P,userOnAddToFavorites:F,applyExtraInstanceFields:I}=qi(i),{enableOnPullDownRefresh:L,enableOnReachBottom:R,enableOnPageScroll:z,enableOnRouteDone:ee,enableOnRouteDoneFallback:te,enableOnTabItemTap:B,enableOnResize:ne,enableOnShareAppMessage:V,enableOnShareTimeline:H,enableOnAddToFavorites:re,enableOnSaveExitState:ie,effectiveOnSaveExitState:U,effectiveOnPullDownRefresh:W,effectiveOnReachBottom:ae,effectiveOnPageScroll:oe,effectiveOnRouteDone:se,effectiveOnTabItemTap:ce,effectiveOnResize:G,effectiveOnShareAppMessage:le,effectiveOnShareTimeline:ue,effectiveOnAddToFavorites:de}=Vi({features:b,userOnSaveExitState:E,userOnPullDownRefresh:D,userOnReachBottom:O,userOnPageScroll:k,userOnRouteDone:A,userOnTabItemTap:j,userOnResize:M,userOnShareAppMessage:N,userOnShareTimeline:P,userOnAddToFavorites:F}),fe=(e,t)=>{let n=e[K];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[he])==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let pe={multipleSlots:(a=l.multipleSlots)==null?!0:a,...l},{attachWevuPropKeys:me,syncWevuPropsFromInstance:ge,syncWevuPropsFromValues:q,finalObservers:_e}=Yi({restOptions:u,propsAliases:m,propsDerivedKeys:h,userObservers:g}),{finalMethods:ve}=Wi({userMethods:{...d,...o},runtimeMethods:t});ga({runtimeApp:e,watch:n,setup:r,restOptions:u,pageLifecycleHooks:Ui({runtimeApp:e,watch:n,setup:r,userOnLoad:x,userOnUnload:S,userOnShow:C,userOnHide:w,userOnReady:T,isPage:y,enableOnSaveExitState:ie,enableOnPullDownRefresh:L,enableOnReachBottom:R,enableOnPageScroll:z,enableOnRouteDone:ee,enableOnRouteDoneFallback:te,enableOnTabItemTap:B,enableOnResize:ne,enableOnShareAppMessage:V,enableOnShareTimeline:H,enableOnAddToFavorites:re,syncWevuPropsFromValues:q,effectiveOnSaveExitState:U,effectiveOnPullDownRefresh:W,effectiveOnReachBottom:ae,effectiveOnPageScroll:oe,effectiveOnRouteDone:se,effectiveOnTabItemTap:ce,effectiveOnResize:G,effectiveOnShareAppMessage:le,effectiveOnShareTimeline:ue,effectiveOnAddToFavorites:de,hasHook:fe}),finalObservers:_e,userLifetimes:s,userPageLifetimes:c,finalMethods:ve,finalOptions:pe,applyExtraInstanceFields:I,templateRefs:f,layoutHosts:p,attachWevuPropKeys:me,setupLifecycle:_,syncWevuPropsFromInstance:ge,syncWevuPropsFromValues:q,isPage:y,legacyCreated:v,getRuntimeOwnerLabel:Ki})}function va(e){let{[Mn]:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,...c}=e.__wevuDefaultsScope===`component`?e:Bn(e),l=i==null?{}:i,u=r==null?{}:r,d=new Set,f=new Set,p=!1,m={globalProperties:{}},h={mount:jn({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 re(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:Ft},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=V(),t=`__wevuAppRegistered`;e&&e[t]||(e&&(e[t]=!0),Bi(h,i==null?{}:i,o,s,c))}return h}const ya=`__wevu_allowNullPropInput`,ba=`allowNullPropInput`,xa=new Map([[String,String],[Number,Number],[Boolean,Boolean],[Object,Object],[Array,Array],[Function,Function],[`String`,String],[`Number`,Number],[`Boolean`,Boolean],[`Object`,Object],[`Array`,Array],[`Function`,Function],[null,null],[`null`,null],[`Null`,null]]);function Sa(e){return xa.get(e)}function Ca(e){if(e===void 0)return[];let t=Array.isArray(e)?e:[e],n=[];t.forEach(e=>{let t=Sa(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 wa(e,t){let n=Ca(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 Ta(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 Ea(e){if(!Array.isArray(e))return[];let t=[];return e.forEach(e=>{let n=Sa(e);n==null||t.includes(n)||t.push(n)}),t}function Da(e,t){if(e===void 0)return;if(e===null)return{type:null};if(Array.isArray(e)||typeof e==`function`){let n={};return wa(n,e),t&&n.type!==null&&Ta(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=Ca(n.type);n.type=(r=e[0])==null?null:r;let t=Ea(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&&Ta(n,null),n}function Oa(e,t){let n={};return Object.entries(e).forEach(([e,r])=>{let i=Da(r,t);i!==void 0&&(n[e]=i)}),n}function ka(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={};wa(i,r),t&&i.type!==null&&Ta(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&&wa(i,r.type),Array.isArray(r.optionalTypes)){let e=r.optionalTypes.map(e=>Sa(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&&Ta(i,null),Q(i,`type`)||(i.type=null),n[e]=i}}}),n}function Aa(e,t,n){var r;let i=!!((r=e[ya])==null?e[ba]:r),{[ya]:a,[ba]: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,Je)||(t[Je]={type:String,value:``}),Q(t,$e)||(t[$e]={type:null,value:null}),Q(t,Ke)||(t[Ke]={type:null,value:null}),t):t};if(l){let{properties:e,...n}=s,r=l?i?Oa(l,i):l:void 0,a=ka(t,i);return{...n,properties:d({...a,...r})}}return{...s,properties:d(ka(t,i))}}const ja=/&/g,Ma=/"/g,Na=/"/g,Pa=/'/g,Fa=/'/g,Ia=/</g,La=/>/g;function Ra(e){return e.replace(ja,`&`).replace(Ma,`"`).replace(Na,`"`).replace(Pa,`'`).replace(Fa,`'`).replace(Ia,`<`).replace(La,`>`)}function za(e){var t,n,r,i;let a=ir((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(Ra(a))}catch(e){o=[]}}return Array.isArray(o)||(o=[]),o.map(t=>t===`$event`?e:t)}function Ba(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 Va(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 Ha(e,t){if(!t||Object.keys(t).length===0)return;let n=Va(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 Ua(e){var t,n;e==null||(t=e.__wevu)==null||(n=t.__wevu_flushSetupSnapshotSync)==null||n.call(t)}function Wa(e,t){Ua(e);let n=Ha(e,t);n&&Object.keys(n).length>0&&typeof(e==null?void 0:e.setData)==`function`&&e.setData(n)}function Ga(e,t,n){var r,i,a;let o=Q(n==null?{}:n,$e)?n[$e]:e==null||(r=e.properties)==null?void 0:r[$e],s=Q(n==null?{}:n,Qe)?n[Qe]:e==null||(i=e.properties)==null?void 0:i[Qe],c=Ba(o),l=Ba(s),u={...c,...l},d=e==null||(a=e.__wevu)==null?void 0:a.state;d&&typeof d==`object`&&(d[Ze]=u),typeof(e==null?void 0:e.setData)==`function`&&e.setData({[Ze]:u}),Wa(e,t)}function Ka(e,t){var n;e[Xe]=t;let r=e==null?void 0:e.data;if(r&&typeof r==`object`)try{Object.defineProperty(r,Xe,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){r[Xe]=t}let i=e==null||(n=e.__wevu)==null?void 0:n.state;i&&typeof i==`object`&&(i[Xe]=t)}function qa(e,t,n,r){var i;Ka(e,n);let a=e==null||(i=e.__wevu)==null?void 0:i.state;a&&typeof a==`object`&&(a[Ye]=t||{}),typeof(e==null?void 0:e.setData)==`function`&&e.setData({[Ye]:t||{}}),Wa(e,r)}function Ja(e,t,n){if(!t){typeof(e==null?void 0:e.__wvOwnerUnsub)==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerUnsub=void 0,e.__wvOwnerBoundId=``,Ka(e,void 0);return}let r=(t,r)=>{qa(e,t,r,n)};e.__wvOwnerBoundId!==t&&(typeof e.__wvOwnerUnsub==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerBoundId=t,e.__wvOwnerUnsub=xr(t,r));let i=Cr(t);i&&r(i,Sr(t))}function Ya(e){var t,n,r,i;return(t=(n=e==null||(r=e.properties)==null?void 0:r[Je])==null?e==null||(i=e.properties)==null?void 0:i[qe]:n)==null?``:t}function Xa(e,t){Ga(e,t);let n=Ya(e);n&&Ja(e,n,t)}function Za(){let e={[Ye]:{},[Ze]:{}};return Object.defineProperty(e,Xe,{value:void 0,configurable:!0,enumerable:!1,writable:!0}),e}function Qa(e){let t=e==null?void 0:e.computed,n={options:{virtualHost:!0},setData:{omit:[qe,Je,Xe]},properties:{[Je]:{type:String,value:``,observer(e){Ja(this,e||``,t)}},[qe]:{type:String,value:``,observer(e){Ja(this,e||``,t)}},[Qe]:{type:null,value:null,observer(e){Ga(this,t,{[Qe]:e})}},[$e]:{type:null,value:null,observer(e){Ga(this,t,{[$e]:e})}}},data:Za,lifetimes:{attached(){Xa(this,t)},ready(){Xa(this,t)},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerBoundId=``,Ka(this,void 0)}},methods:{[we](e){var t,n,r,i,a;let o=this[Xe],s=lr(o,void 0,e,(t=this.__wevu)==null||(t=t.methods)==null?void 0:t[_e]);if(s!==void 0)return s;if(!o)return;let c=ir((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=za(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,[_e]:e.inlineMap}),n}function $a(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function eo(e){return typeof e!=`object`||!e||g(e)||m(e)||Array.isArray(e)?!0:$a(e)}function to(e,t,n,r){var i,a,o;let s=!!(r!=null&&r.includeFunctionsInState),c=r==null?void 0:r.functionPropPaths,l=(i=e==null?void 0:e.methods)==null?Object.create(null):i,u=(a=e==null?void 0:e.state)==null?Object.create(null):a,d=(o=e==null?void 0:e.setupState)==null?Object.create(null):o,f=m(u)?T(u):u,p=!1;if(e&&!e.methods)try{e.methods=l}catch(e){}if(e&&!e.state)try{e.state=u}catch(e){}if(e&&!e.setupState)try{e.setupState=d}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`){let t=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)};l[r]=t,u[r]=t,(s||c!=null&&c.has(r))&&(d[r]=t),p=!0}else{if(Jt(i)){var a;e==null||(a=e.__wevu_trackSetupReactiveKey)==null||a.call(e,r)}if(u[r]=i,i===t||!eo(i))try{Object.defineProperty(f,r,{value:i,configurable:!0,enumerable:!1,writable:!0})}catch(e){}d[r]=i}}),e){var h,g;if(e.methods=(h=e.methods)==null?l:h,e.state=(g=e.state)==null?u:g,p){var _;(_=e.__wevu_touchSetupMethodsVersion)==null||_.call(e)}}}let no;function ro(){let e=oe();if(!e)return;let t=e;no&&t[Ve]!==no&&(t[Ve]=no)}function io(e){ro();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,allowFunctionProps:l,...u}=Vn(e),d=u[ge],f=Array.isArray(d)?[...new Set(d.filter(e=>typeof e==`string`&&e.length>0))]:[];delete u[ge];let p=l===!0?{...a==null?{}:a,includeFunctions:!0,functionPaths:f}:l===!1?a:f.length?{...a==null?{}:a,functionPaths:f}:a,m=new Set(f.filter(e=>!e.includes(`.`))),h=va({data:n,computed:r,methods:i,setData:p,[Mn]:`component`}),g=typeof s==`function`?((e,t)=>{let n=ui(s,e,t);return n&&t&&to(t.runtime,t.instance,n,{includeFunctionsInState:l===!0,functionPropPaths:l===!1?void 0:m}),n}):void 0,_=typeof n==`function`?n():n,v=Aa(_===void 0?u:{...u,data:_},c),y={data:n,computed:r,methods:i,setData:p,watch:o,setup:g,mpOptions:v};return _a(h,i==null?{}:i,o,g,v),{__wevu_runtime:h,__wevu_options:y}}function ao(e){var t;ro();let{properties:n,props:r,...i}=e;io(Aa({...i,allowNullPropInput:(t=i.allowNullPropInput)==null?!0:t,__wevu_allowNullPropInput:!0},r,n))}function oo(e){ao(Qa(e))}no=oo,ro();const so=[`dispose`,`abort`,`cancel`,`stop`,`disconnect`,`destroy`,`close`];function co(e){if(e){if(typeof e==`function`)return e;for(let t of so){let n=e[t];if(typeof n==`function`)return()=>n.call(e)}}}function lo(){if(!H())throw Error(`useDisposables() 必须在 setup() 的同步阶段调用`);let e=new Set,t=!1,n=n=>{let r=co(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 ne(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 uo(e,t){let n=e,r=n.createIntersectionObserver;if(typeof r==`function`)return r.call(n,t);if(!U(`globalCreateIntersectionObserver`))return;let i=V(),a=i==null?void 0:i.createIntersectionObserver;if(typeof a==`function`)return B().intersectionObserverScopeByParameter?a.call(i,e,t):a.call(i,t)}function fo(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 po(e){var t;let n=(t=e.context)==null?H():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=uo(n,o((t=e.observerOptions)==null?{}:t));return!c||typeof c.observe!=`function`?null:(r=fo(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 jt(()=>{var t;return[o(e.selector),e.enabled==null?!0:o(e.enabled),o((t=e.observerOptions)==null?{}:t),e.relativeToViewport]},()=>{a()},{deep:!0}),pt(a),gt(i),ne(i),M(i),{disconnect:i,observe:a,get observer(){return r}}}function mo(e,t){let n=e,r=n.createIntersectionObserver;if(typeof r==`function`)return r.call(n,t)}function ho(e,t){if(!U(`globalCreateIntersectionObserver`))return;let n=V(),r=n==null?void 0:n.createIntersectionObserver;if(typeof r==`function`)return B().intersectionObserverScopeByParameter?r.call(n,e,t):r.call(n,t)}function go(e={}){var t;let n=H();if(!n)throw Error(`useIntersectionObserver() 必须在 setup() 的同步阶段调用`);let r=(t=mo(n,e))==null?ho(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 ne(a),M(a),r}function _o(e){var t,n;return e?(t=(n=e.split(`?`)[0])==null?void 0:n.replace(/^\/+/,``))==null?``:t:``}function vo(){let e=le(),t=e[e.length-1],n=e.length||1;return{canGoBack:n>1,currentRoute:_o(t==null?void 0:t.route),stackLength:n}}function yo(e={}){var t;if(!z())throw Error(`usePageStack() 必须在 setup() 的同步阶段调用`);let n=vo(),r=d(n.currentRoute),i=d(n.stackLength),a=E(()=>i.value>1),o=()=>{let e=vo();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 bo(e={}){var t,n;let r=(t=e.defaultStatusBarHeight)==null?20:t,i=(n=e.defaultNavigationBarHeight)==null?44:n,a=V(),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 xo(e={}){var t;if(!z())throw Error(`useNavigationBarMetrics() 必须在 setup() 的同步阶段调用`);let n=bo(e),r=d(n.statusBarHeight),i=d(n.navigationBarHeight),a=E(()=>r.value+i.value),o=()=>{let t=bo(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 So(e){return typeof e!=`number`||!Number.isFinite(e)?80:Math.max(0,e)}function Co(e){if(!(typeof e!=`number`||!Number.isFinite(e)))return Math.max(0,e)}function wo(e,t={}){var n,r;if(!H())throw Error(`usePageScrollThrottle() 必须在 setup() 的同步阶段调用`);if(typeof e!=`function`)throw TypeError(`usePageScrollThrottle() 需要传入回调函数`);let i=So(t.interval),a=(n=t.leading)==null?!0:n,o=(r=t.trailing)==null?!0:r,s=Co(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 ne(b),M(b),b}function To(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?(()=>ot.stopPullDownRefresh()):r)()}})}function Eo(e,t){let n=t==null?H():t;if(!n||!z())throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return n}function Do(e,t,n,r){let i=Fr(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 Oo(e={}){let t=Eo(`useSelectorQuery`,e.context);return()=>Fr(t)}function ko(e={}){var t;let n=Eo(`useBoundingClientRect`,e.context),r=(t=e.all)==null?!1:t;return e=>Do(n,e,r,e=>e.boundingClientRect())}function Ao(e){var t;let n=Eo(`useSelectorFields`,e.context),r=(t=e.all)==null?!1:t;return t=>Do(n,t,r,t=>t.fields(e.fields))}function jo(e={}){var t;let n=Eo(`useScrollOffset`,e.context),r=(t=e.all)==null?!1:t;return e=>Do(n,e,r,e=>e.scrollOffset())}const Mo=/\B([A-Z])/g;function No(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Po(e){return e?e.startsWith(`--`)?e:e.replace(Mo,`-$1`).toLowerCase():``}function Fo(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 Io(e){let t=``;for(let n of Object.keys(e)){let r=_(e[n]);if(r==null)continue;let i=Po(n);if(Array.isArray(r))for(let e of r){let n=_(e);n!=null&&(t=Fo(t,`${i}:${n}`))}else t=Fo(t,`${i}:${r}`)}return t}function Lo(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=Lo(n);t&&(e=Fo(e,t))}return e}return typeof t==`object`?Io(t):``}function Ro(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=Ro(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 zo(e,t,n,r=!1){if(e==null)return n;let i=_(e.__wevuProps);if(t===`data`)return i!=null&&(i[t]!==void 0||No(i,t))?i[t]:t in e?e[t]:n;let a=i!=null&&(i[t]!==void 0||No(i,t));if(r)return a?i[t]:t in e?e[t]:n;let o=_(e.$state);return o!=null&&No(o,t)?e[t]:a?i[t]:t in e?e[t]:n}function Bo(e){let t=e,n=t.setUpdatePerformanceListener;if(typeof n==`function`)return e=>{n.call(t,e)}}function Vo(e){let t=H();if(!t)throw Error(`useUpdatePerformanceListener() 必须在 setup() 的同步阶段调用`);if(typeof e!=`function`)throw TypeError(`useUpdatePerformanceListener() 需要传入监听函数`);let n=Bo(t);if(!n)throw Error(`当前实例不支持 setUpdatePerformanceListener,请检查基础库版本或组件上下文`);n(e);let r=!1,i=()=>{if(!r){r=!0;try{n(void 0)}catch(e){}}};return ne(i),M(i),i}function Ho(){let e=H();if(e!=null&&e[ve]&&e[ze])return e[ze];throw Error(`defineAppSetup() / use() 只能在 app setup 上下文中调用`)}function Uo(e){return e(Ho())}function Wo(e,...t){return Ho().use(e,...t)}const Go=Object.freeze(Object.create(null));function Ko(){var e;let t=z();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function qo(){var e;let t=z();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?Go:e}function Jo(){let e=z();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}const Yo=Object.freeze(Object.create(null));function Xo(e,t){let n=t===`modelValue`?`modelModifiers`:`${t}Modifiers`,r=e==null?void 0:e[n];return!r||typeof r!=`object`?Yo:r}function Zo(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 Qo(e,t,n={}){let r=z();if(!r)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let i=r.emit,a=`update:${t}`,o=()=>Xo(e,t);return Zo(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 $o(e){let t=H();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${It((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function es(){let e=$o({event:`change`});return function(t,n){return e.model(t,n)}}function ts(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 ns(e){let t=e[rt];if(t)return t;let n=new Map;try{Object.defineProperty(e,rt,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e[rt]=n}return n}function rs(e){let t=H();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=ns(t),i=r.get(n);if(i)return i;let a=st(null);return r.set(n,a),a}export{Rn as $,io as A,ha as B,xo as C,ct as Ct,lo as D,po as E,la as F,Pi as G,Bi as H,ua as I,hr as J,ui as K,ca as L,_a as M,sa as N,ao as O,pa as P,zn as Q,ma as R,bo as S,dt as St,go as T,lt as Tt,ji as U,da as V,Ni as W,mr as X,pr as Y,fr as Z,Ao as _,St as _t,Qo as a,Nt as at,wo as b,ft as bt,qo as c,Tt as ct,Vo as d,_t as dt,an as et,Ro as f,ht as ft,jo as g,pt as gt,ko as h,yt as ht,es as i,Mt as it,va as j,oo as k,Uo as l,Ct as lt,zo as m,xt as mt,ts as n,Ft as nt,Ko as o,Pt as ot,Lo as p,vt as pt,gr as q,$o as r,jt as rt,Jo as s,Et as st,rs as t,$ as tt,Wo as u,bt as ut,Oo as v,gt as vt,yo as w,st as wt,vo as x,ut as xt,To as y,mt as yt,fa as z};
|
package/dist/store.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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-
|
|
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-C6Jyiw-u.mjs";
|
|
2
2
|
export { type ActionContext, type ActionSubscriber, type DefineStoreOptions, type MutationType, type StoreManager, type StoreSubscribeOptions, type StoreToRefsResult, type SubscriptionCallback, createStore, defineStore, storeToRefs };
|