From fc3280baa2a9e307cd567903af05b33121ca1664 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 15 Oct 2021 14:38:38 +0800 Subject: [PATCH] refactor: easycom --- packages/size-check/vite.config.ts | 5 +- packages/uni-api/src/helpers/api/index.ts | 3 +- .../uni-app-plus/dist/uni-app-service.es.js | 1953 +++++++++-------- .../uni-app-plus/dist/uni-app-view.umd.js | 12 +- .../framework/dom/elements/UniTextElement.ts | 4 +- .../src/view/framework/dom/modules/events.ts | 2 +- packages/uni-app-plus/vite.config.ts | 1 + packages/uni-app-vite/src/index.ts | 3 + packages/uni-app-vite/src/plugins/easycom.ts | 65 + packages/uni-app-vite/src/plugins/mainJs.ts | 2 +- packages/uni-cli-shared/src/easycom.ts | 39 + .../src/components/editor/quill/index.ts | 3 +- .../src/components/image/index.tsx | 4 +- .../src/components/textarea/index.tsx | 3 +- packages/uni-components/src/helpers/text.ts | 6 +- packages/uni-h5-vite/src/index.ts | 7 +- .../src}/plugins/easycom.ts | 62 +- packages/uni-h5/dist/uni-h5.cjs.js | 12 +- packages/uni-h5/dist/uni-h5.es.js | 16 +- .../uni-h5/src/service/api/network/request.ts | 3 +- packages/uni-shared/dist/uni-shared.cjs.js | 2 + packages/uni-shared/dist/uni-shared.d.ts | 2 + packages/uni-shared/dist/uni-shared.es.js | 3 +- packages/uni-shared/src/constants.ts | 1 + .../src/configResolved/plugins/index.ts | 12 - packages/vite-plugin-uni/src/index.ts | 4 +- 26 files changed, 1149 insertions(+), 1080 deletions(-) create mode 100644 packages/uni-app-vite/src/plugins/easycom.ts rename packages/{vite-plugin-uni/src/configResolved => uni-h5-vite/src}/plugins/easycom.ts (72%) diff --git a/packages/size-check/vite.config.ts b/packages/size-check/vite.config.ts index 8b26c3c94..138785d41 100644 --- a/packages/size-check/vite.config.ts +++ b/packages/size-check/vite.config.ts @@ -1,4 +1,5 @@ import path from 'path' +import { terser } from 'rollup-plugin-terser' import uniH5VitePlugins from '@dcloudio/uni-h5-vite' import uni from '@dcloudio/vite-plugin-uni' import { UserConfig } from 'vite' @@ -16,9 +17,9 @@ export default { entry: path.resolve(__dirname, 'src/main.ts'), formats: ['es'], }, - // minify: false, rollupOptions: { - // external: ['vue', '@vue/shared'], + external: ['vue', '@vue/shared'], + plugins: [terser()], output: { inlineDynamicImports: true, }, diff --git a/packages/uni-api/src/helpers/api/index.ts b/packages/uni-api/src/helpers/api/index.ts index 6cb1ef956..59e816e8a 100644 --- a/packages/uni-api/src/helpers/api/index.ts +++ b/packages/uni-api/src/helpers/api/index.ts @@ -5,6 +5,7 @@ import { isFunction, isPlainObject, } from '@vue/shared' +import { LINEFEED } from '@dcloudio/uni-shared' import { validateProtocols } from '../protocol' import { invokeCallback, @@ -135,7 +136,7 @@ function normalizeErrMsg(errMsg: string | Error) { return errMsg } if (errMsg.stack) { - console.error(errMsg.message + '\n' + errMsg.stack) + console.error(errMsg.message + LINEFEED + errMsg.stack) return errMsg.message } return errMsg as unknown as string diff --git a/packages/uni-app-plus/dist/uni-app-service.es.js b/packages/uni-app-plus/dist/uni-app-service.es.js index dac0a59ab..0f1e2d085 100644 --- a/packages/uni-app-plus/dist/uni-app-service.es.js +++ b/packages/uni-app-plus/dist/uni-app-service.es.js @@ -146,1124 +146,1125 @@ var serviceContext = (function (vue) { */ const capitalize = cacheStringFunction$1((str) => str.charAt(0).toUpperCase() + str.slice(1)); - const CHOOSE_SIZE_TYPES = ['original', 'compressed']; - const CHOOSE_SOURCE_TYPES = ['album', 'camera']; - const HTTP_METHODS = [ - 'GET', - 'OPTIONS', - 'HEAD', - 'POST', - 'PUT', - 'DELETE', - 'TRACE', - 'CONNECT', - ]; - function elemInArray(str, arr) { - if (!str || arr.indexOf(str) === -1) { - return arr[0]; - } - return str; + let lastLogTime = 0; + function formatLog(module, ...args) { + const now = Date.now(); + const diff = lastLogTime ? now - lastLogTime : 0; + lastLogTime = now; + return `[${now}][${diff}ms][${module}]:${args + .map((arg) => JSON.stringify(arg)) + .join(' ')}`; + } + + const encode$2 = encodeURIComponent; + function stringifyQuery$1(obj, encodeStr = encode$2) { + const res = obj + ? Object.keys(obj) + .map((key) => { + let val = obj[key]; + if (typeof val === undefined || val === null) { + val = ''; + } + else if (isPlainObject(val)) { + val = JSON.stringify(val); + } + return encodeStr(key) + '=' + encodeStr(val); + }) + .filter((x) => x.length > 0) + .join('&') + : null; + return res ? `?${res}` : ''; } - function elemsInArray(strArr, optionalVal) { - if (!isArray$1(strArr) || - strArr.length === 0 || - strArr.find((val) => optionalVal.indexOf(val) === -1)) { - return optionalVal; + /** + * Decode text using `decodeURIComponent`. Returns the original text if it + * fails. + * + * @param text - string to decode + * @returns decoded string + */ + function decode(text) { + try { + return decodeURIComponent('' + text); } - return strArr; - } - function validateProtocolFail(name, msg) { - console.warn(`${name}: ${msg}`); + catch (err) { } + return '' + text; } - function validateProtocol(name, data, protocol, onFail) { - if (!onFail) { - onFail = validateProtocolFail; - } - for (const key in protocol) { - const errMsg = validateProp(key, data[key], protocol[key], !hasOwn$1(data, key)); - if (isString(errMsg)) { - onFail(name, errMsg); + const PLUS_RE = /\+/g; // %2B + /** + * https://github.com/vuejs/vue-router-next/blob/master/src/query.ts + * @internal + * + * @param search - search string to parse + * @returns a query object + */ + function parseQuery(search) { + const query = {}; + // avoid creating an object with an empty key and empty value + // because of split('&') + if (search === '' || search === '?') + return query; + const hasLeadingIM = search[0] === '?'; + const searchParams = (hasLeadingIM ? search.slice(1) : search).split('&'); + for (let i = 0; i < searchParams.length; ++i) { + // pre decode the + into space + const searchParam = searchParams[i].replace(PLUS_RE, ' '); + // allow the = character + let eqPos = searchParam.indexOf('='); + let key = decode(eqPos < 0 ? searchParam : searchParam.slice(0, eqPos)); + let value = eqPos < 0 ? null : decode(searchParam.slice(eqPos + 1)); + if (key in query) { + // an extra variable for ts types + let currentValue = query[key]; + if (!isArray$1(currentValue)) { + currentValue = query[key] = [currentValue]; + } + currentValue.push(value); + } + else { + query[key] = value; } } - } - function validateProtocols(name, args, protocol, onFail) { - if (!protocol) { - return; - } - if (!isArray$1(protocol)) { - return validateProtocol(name, args[0] || Object.create(null), protocol, onFail); + return query; + } + + function parseUrl(url) { + const [path, querystring] = url.split('?', 2); + return { + path, + query: parseQuery(querystring || ''), + }; + } + + class DOMException extends Error { + constructor(message) { + super(message); + this.name = 'DOMException'; } - const len = protocol.length; - const argsLen = args.length; - for (let i = 0; i < len; i++) { - const opts = protocol[i]; - const data = Object.create(null); - if (argsLen > i) { - data[opts.name] = args[i]; + } + + function normalizeEventType(type, options) { + if (options) { + if (options.capture) { + type += 'Capture'; + } + if (options.once) { + type += 'Once'; + } + if (options.passive) { + type += 'Passive'; } - validateProtocol(name, data, { [opts.name]: opts }, onFail); } + return `on${capitalize(camelize(type))}`; } - function validateProp(name, value, prop, isAbsent) { - if (!isPlainObject(prop)) { - prop = { type: prop }; + class UniEvent { + constructor(type, opts) { + this.defaultPrevented = false; + this.timeStamp = Date.now(); + this._stop = false; + this._end = false; + this.type = type; + this.bubbles = !!opts.bubbles; + this.cancelable = !!opts.cancelable; } - const { type, required, validator } = prop; - // required! - if (required && isAbsent) { - return 'Missing required args: "' + name + '"'; + preventDefault() { + this.defaultPrevented = true; } - // missing but optional - if (value == null && !required) { - return; + stopImmediatePropagation() { + this._end = this._stop = true; } - // type check - if (type != null) { - let isValid = false; - const types = isArray$1(type) ? type : [type]; - const expectedTypes = []; - // value is valid as long as one of the specified types match - for (let i = 0; i < types.length && !isValid; i++) { - const { valid, expectedType } = assertType(value, types[i]); - expectedTypes.push(expectedType || ''); - isValid = valid; - } - if (!isValid) { - return getInvalidTypeMessage(name, value, expectedTypes); - } + stopPropagation() { + this._stop = true; } - // custom validator - if (validator) { - return validator(value); + } + function createUniEvent(evt) { + if (evt instanceof UniEvent) { + return evt; } + const [type] = parseEventName(evt.type); + const uniEvent = new UniEvent(type, { + bubbles: false, + cancelable: false, + }); + extend(uniEvent, evt); + return uniEvent; } - const isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol'); - function assertType(value, type) { - let valid; - const expectedType = getType(type); - if (isSimpleType(expectedType)) { - const t = typeof value; - valid = t === expectedType.toLowerCase(); - // for primitive wrapper objects - if (!valid && t === 'object') { - valid = value instanceof type; - } + class UniEventTarget { + constructor() { + this.listeners = Object.create(null); } - else if (expectedType === 'Object') { - valid = isObject$1(value); + dispatchEvent(evt) { + const listeners = this.listeners[evt.type]; + if (!listeners) { + if ((process.env.NODE_ENV !== 'production')) { + console.error(formatLog('dispatchEvent', this.nodeId), evt.type, 'not found'); + } + return false; + } + // 格式化事件类型 + const event = createUniEvent(evt); + const len = listeners.length; + for (let i = 0; i < len; i++) { + listeners[i].call(this, event); + if (event._end) { + break; + } + } + return event.cancelable && event.defaultPrevented; } - else if (expectedType === 'Array') { - valid = isArray$1(value); + addEventListener(type, listener, options) { + type = normalizeEventType(type, options); + (this.listeners[type] || (this.listeners[type] = [])).push(listener); } - else { - { - // App平台ArrayBuffer等参数跨实例传输,无法通过 instanceof 识别 - valid = value instanceof type || toRawType(value) === getType(type); + removeEventListener(type, callback, options) { + type = normalizeEventType(type, options); + const listeners = this.listeners[type]; + if (!listeners) { + return; + } + const index = listeners.indexOf(callback); + if (index > -1) { + listeners.splice(index, 1); } } - return { - valid, - expectedType, - }; } - function getInvalidTypeMessage(name, value, expectedTypes) { - let message = `Invalid args: type check failed for args "${name}".` + - ` Expected ${expectedTypes.map(capitalize).join(', ')}`; - const expectedType = expectedTypes[0]; - const receivedType = toRawType(value); - const expectedValue = styleValue(value, expectedType); - const receivedValue = styleValue(value, receivedType); - // check if we need to specify expected value - if (expectedTypes.length === 1 && - isExplicable(expectedType) && - !isBoolean(expectedType, receivedType)) { - message += ` with value ${expectedValue}`; + const optionsModifierRE = /(?:Once|Passive|Capture)$/; + function parseEventName(name) { + let options; + if (optionsModifierRE.test(name)) { + options = {}; + let m; + while ((m = name.match(optionsModifierRE))) { + name = name.slice(0, name.length - m[0].length); + options[m[0].toLowerCase()] = true; + } } - message += `, got ${receivedType} `; - // check if we need to specify received value - if (isExplicable(receivedType)) { - message += `with value ${receivedValue}.`; + return [hyphenate(name.slice(2)), options]; + } + + const NODE_TYPE_PAGE = 0; + const NODE_TYPE_ELEMENT = 1; + function sibling(node, type) { + const { parentNode } = node; + if (!parentNode) { + return null; } - return message; - } - function getType(ctor) { - const match = ctor && ctor.toString().match(/^\s*function (\w+)/); - return match ? match[1] : ''; + const { childNodes } = parentNode; + return childNodes[childNodes.indexOf(node) + (type === 'n' ? 1 : -1)] || null; } - function styleValue(value, type) { - if (type === 'String') { - return `"${value}"`; - } - else if (type === 'Number') { - return `${Number(value)}`; - } - else { - return `${value}`; + function removeNode(node) { + const { parentNode } = node; + if (parentNode) { + parentNode.removeChild(node); } } - function isExplicable(type) { - const explicitTypes = ['string', 'number', 'boolean']; - return explicitTypes.some((elem) => type.toLowerCase() === elem); - } - function isBoolean(...args) { - return args.some((elem) => elem.toLowerCase() === 'boolean'); - } - - function tryCatch(fn) { - return function () { - try { - return fn.apply(fn, arguments); - } - catch (e) { - // TODO - console.error(e); - } - }; - } - - let invokeCallbackId = 1; - const invokeCallbacks = {}; - function addInvokeCallback(id, name, callback, keepAlive = false) { - invokeCallbacks[id] = { - name, - keepAlive, - callback, - }; - return id; + function checkNodeId(node) { + if (!node.nodeId && node.pageNode) { + node.nodeId = node.pageNode.genId(); + } } - // onNativeEventReceive((event,data)=>{}) 需要两个参数,目前写死最多两个参数 - function invokeCallback(id, res, extras) { - if (typeof id === 'number') { - const opts = invokeCallbacks[id]; - if (opts) { - if (!opts.keepAlive) { - delete invokeCallbacks[id]; + // 为优化性能,各平台不使用proxy来实现node的操作拦截,而是直接通过pageNode定制 + class UniNode extends UniEventTarget { + constructor(nodeType, nodeName, container) { + super(); + this.pageNode = null; + this.parentNode = null; + this._text = null; + if (container) { + const { pageNode } = container; + if (pageNode) { + this.pageNode = pageNode; + this.nodeId = pageNode.genId(); + !pageNode.isUnmounted && pageNode.onCreate(this, nodeName); } - return opts.callback(res, extras); } + this.nodeType = nodeType; + this.nodeName = nodeName; + this.childNodes = []; } - return res; - } - function findInvokeCallbackByName(name) { - for (const key in invokeCallbacks) { - if (invokeCallbacks[key].name === name) { - return true; - } + get firstChild() { + return this.childNodes[0] || null; } - return false; - } - function removeKeepAliveApiCallback(name, callback) { - for (const key in invokeCallbacks) { - const item = invokeCallbacks[key]; - if (item.callback === callback && item.name === name) { - delete invokeCallbacks[key]; - } + get lastChild() { + const { childNodes } = this; + const length = childNodes.length; + return length ? childNodes[length - 1] : null; } - } - function offKeepAliveApiCallback(name) { - UniServiceJSBridge.off('api.' + name); - } - function onKeepAliveApiCallback(name) { - UniServiceJSBridge.on('api.' + name, (res) => { - for (const key in invokeCallbacks) { - const opts = invokeCallbacks[key]; - if (opts.name === name) { - opts.callback(res); - } + get nextSibling() { + return sibling(this, 'n'); + } + get nodeValue() { + return null; + } + set nodeValue(_val) { } + get textContent() { + return this._text || ''; + } + set textContent(text) { + this._text = text; + if (this.pageNode && !this.pageNode.isUnmounted) { + this.pageNode.onTextContent(this, text); } - }); - } - function createKeepAliveApiCallback(name, callback) { - return addInvokeCallback(invokeCallbackId++, name, callback, true); - } - const API_SUCCESS = 'success'; - const API_FAIL = 'fail'; - const API_COMPLETE = 'complete'; - function getApiCallbacks(args) { - const apiCallbacks = {}; - for (const name in args) { - const fn = args[name]; - if (isFunction(fn)) { - apiCallbacks[name] = tryCatch(fn); - delete args[name]; + } + get parentElement() { + const { parentNode } = this; + if (parentNode && parentNode.nodeType === NODE_TYPE_ELEMENT) { + return parentNode; } + return null; } - return apiCallbacks; - } - function normalizeErrMsg$1(errMsg, name) { - if (!errMsg || errMsg.indexOf(':fail') === -1) { - return name + ':ok'; + get previousSibling() { + return sibling(this, 'p'); } - return name + errMsg.substring(errMsg.indexOf(':fail')); - } - function createAsyncApiCallback(name, args = {}, { beforeAll, beforeSuccess } = {}) { - if (!isPlainObject(args)) { - args = {}; + appendChild(newChild) { + return this.insertBefore(newChild, null); } - const { success, fail, complete } = getApiCallbacks(args); - const hasSuccess = isFunction(success); - const hasFail = isFunction(fail); - const hasComplete = isFunction(complete); - const callbackId = invokeCallbackId++; - addInvokeCallback(callbackId, name, (res) => { - res = res || {}; - res.errMsg = normalizeErrMsg$1(res.errMsg, name); - isFunction(beforeAll) && beforeAll(res); - if (res.errMsg === name + ':ok') { - isFunction(beforeSuccess) && beforeSuccess(res); - hasSuccess && success(res); + cloneNode(deep) { + const cloned = extend(Object.create(Object.getPrototypeOf(this)), this); + const { attributes } = cloned; + if (attributes) { + cloned.attributes = extend({}, attributes); } - else { - hasFail && fail(res); + if (deep) { + cloned.childNodes = cloned.childNodes.map((childNode) => childNode.cloneNode(true)); } - hasComplete && complete(res); - }); - return callbackId; - } - - const HOOK_SUCCESS = 'success'; - const HOOK_FAIL = 'fail'; - const HOOK_COMPLETE = 'complete'; - const globalInterceptors = {}; - const scopedInterceptors = {}; - function wrapperHook(hook) { - return function (data) { - return hook(data) || data; - }; - } - function queue(hooks, data) { - let promise = false; - for (let i = 0; i < hooks.length; i++) { - const hook = hooks[i]; - if (promise) { - promise = Promise.resolve(wrapperHook(hook)); + return cloned; + } + insertBefore(newChild, refChild) { + removeNode(newChild); + newChild.pageNode = this.pageNode; + newChild.parentNode = this; + checkNodeId(newChild); + const { childNodes } = this; + if (refChild) { + const index = childNodes.indexOf(refChild); + if (index === -1) { + throw new DOMException(`Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.`); + } + childNodes.splice(index, 0, newChild); } else { - const res = hook(data); - if (isPromise(res)) { - promise = Promise.resolve(res); - } - if (res === false) { - return { - then() { }, - catch() { }, - }; - } - } - } - return (promise || { - then(callback) { - return callback(data); - }, - catch() { }, - }); - } - function wrapperOptions(interceptors, options = {}) { - [HOOK_SUCCESS, HOOK_FAIL, HOOK_COMPLETE].forEach((name) => { - const hooks = interceptors[name]; - if (!isArray$1(hooks)) { - return; + childNodes.push(newChild); } - const oldCallback = options[name]; - options[name] = function callbackInterceptor(res) { - queue(hooks, res).then((res) => { - return (isFunction(oldCallback) && oldCallback(res)) || res; - }); - }; - }); - return options; - } - function wrapperReturnValue(method, returnValue) { - const returnValueHooks = []; - if (isArray$1(globalInterceptors.returnValue)) { - returnValueHooks.push(...globalInterceptors.returnValue); - } - const interceptor = scopedInterceptors[method]; - if (interceptor && isArray$1(interceptor.returnValue)) { - returnValueHooks.push(...interceptor.returnValue); + return this.pageNode && !this.pageNode.isUnmounted + ? this.pageNode.onInsertBefore(this, newChild, refChild) + : newChild; } - returnValueHooks.forEach((hook) => { - returnValue = hook(returnValue) || returnValue; - }); - return returnValue; - } - function getApiInterceptorHooks(method) { - const interceptor = Object.create(null); - Object.keys(globalInterceptors).forEach((hook) => { - if (hook !== 'returnValue') { - interceptor[hook] = globalInterceptors[hook].slice(); + removeChild(oldChild) { + const { childNodes } = this; + const index = childNodes.indexOf(oldChild); + if (index === -1) { + throw new DOMException(`Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.`); } - }); - const scopedInterceptor = scopedInterceptors[method]; - if (scopedInterceptor) { - Object.keys(scopedInterceptor).forEach((hook) => { - if (hook !== 'returnValue') { - interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]); - } - }); + oldChild.parentNode = null; + childNodes.splice(index, 1); + return this.pageNode && !this.pageNode.isUnmounted + ? this.pageNode.onRemoveChild(oldChild) + : oldChild; } - return interceptor; } - function invokeApi(method, api, options, ...params) { - const interceptor = getApiInterceptorHooks(method); - if (interceptor && Object.keys(interceptor).length) { - if (isArray$1(interceptor.invoke)) { - const res = queue(interceptor.invoke, options); - return res.then((options) => { - return api(wrapperOptions(interceptor, options), ...params); - }); - } - else { - return api(wrapperOptions(interceptor, options), ...params); - } - } - return api(options, ...params); - } - function hasCallback(args) { - if (isPlainObject(args) && - [API_SUCCESS, API_FAIL, API_COMPLETE].find((cb) => isFunction(args[cb]))) { - return true; - } - return false; - } - function handlePromise(promise) { - return promise; - } - function promisify(name, fn) { - return (args = {}) => { - if (hasCallback(args)) { - return wrapperReturnValue(name, invokeApi(name, fn, args)); - } - return wrapperReturnValue(name, handlePromise(new Promise((resolve, reject) => { - invokeApi(name, fn, extend(args, { success: resolve, fail: reject })); - }))); - }; - } + const ACTION_TYPE_PAGE_CREATE = 1; + const ACTION_TYPE_PAGE_CREATED = 2; + const ACTION_TYPE_CREATE = 3; + const ACTION_TYPE_INSERT = 4; + const ACTION_TYPE_REMOVE = 5; + const ACTION_TYPE_SET_ATTRIBUTE = 6; + const ACTION_TYPE_REMOVE_ATTRIBUTE = 7; + const ACTION_TYPE_ADD_EVENT = 8; + const ACTION_TYPE_REMOVE_EVENT = 9; + const ACTION_TYPE_SET_TEXT = 10; + const ACTION_TYPE_ADD_WXS_EVENT = 12; + const ACTION_TYPE_PAGE_SCROLL = 15; + const ACTION_TYPE_EVENT = 20; - function formatApiArgs(args, options) { - const params = args[0]; - if (!options || - (!isPlainObject(options.formatArgs) && isPlainObject(params))) { - return; - } - const formatArgs = options.formatArgs; - const keys = Object.keys(formatArgs); - for (let i = 0; i < keys.length; i++) { - const name = keys[i]; - const formatterOrDefaultValue = formatArgs[name]; - if (isFunction(formatterOrDefaultValue)) { - const errMsg = formatterOrDefaultValue(args[0][name], params); - if (isString(errMsg)) { - return errMsg; - } - } - else { - // defaultValue - if (!hasOwn$1(params, name)) { - params[name] = formatterOrDefaultValue; - } - } - } + function cache(fn) { + const cache = Object.create(null); + return (str) => { + const hit = cache[str]; + return hit || (cache[str] = fn(str)); + }; } - function invokeSuccess(id, name, res) { - return invokeCallback(id, extend(res || {}, { errMsg: name + ':ok' })); + function cacheStringFunction(fn) { + return cache(fn); } - function invokeFail(id, name, errMsg, errRes) { - return invokeCallback(id, extend({ errMsg: name + ':fail' + (errMsg ? ' ' + errMsg : '') }, errRes)); + function getLen(str = '') { + return ('' + str).replace(/[^\x00-\xff]/g, '**').length; } - function beforeInvokeApi(name, args, protocol, options) { - if ((process.env.NODE_ENV !== 'production')) { - validateProtocols(name, args, protocol); - } - if (options && options.beforeInvoke) { - const errMsg = options.beforeInvoke(args); - if (isString(errMsg)) { - return errMsg; - } - } - const errMsg = formatApiArgs(args, options); - if (errMsg) { - return errMsg; - } + function removeLeadingSlash(str) { + return str.indexOf('/') === 0 ? str.substr(1) : str; } - function checkCallback(callback) { - if (!isFunction(callback)) { - throw new Error('Invalid args: type check failed for args "callback". Expected Function'); + const invokeArrayFns = (fns, arg) => { + let ret; + for (let i = 0; i < fns.length; i++) { + ret = fns[i](arg); } - } - function wrapperOnApi(name, fn, options) { - return (callback) => { - checkCallback(callback); - const errMsg = beforeInvokeApi(name, [callback], undefined, options); - if (errMsg) { - throw new Error(errMsg); - } - // 是否是首次调用on,如果是首次,需要初始化onMethod监听 - const isFirstInvokeOnApi = !findInvokeCallbackByName(name); - createKeepAliveApiCallback(name, callback); - if (isFirstInvokeOnApi) { - onKeepAliveApiCallback(name); - fn(); + return ret; + }; + function once(fn, ctx = null) { + let res; + return ((...args) => { + if (fn) { + res = fn.apply(ctx, args); + fn = null; } - }; + return res; + }); } - function wrapperOffApi(name, fn, options) { - return (callback) => { - checkCallback(callback); - const errMsg = beforeInvokeApi(name, [callback], undefined, options); - if (errMsg) { - throw new Error(errMsg); + function callOptions(options, data) { + options = options || {}; + if (typeof data === 'string') { + data = { + errMsg: data, + }; + } + if (/:ok$/.test(data.errMsg)) { + if (typeof options.success === 'function') { + options.success(data); } - name = name.replace('off', 'on'); - removeKeepAliveApiCallback(name, callback); - // 是否还存在监听,若已不存在,则移除onMethod监听 - const hasInvokeOnApi = findInvokeCallbackByName(name); - if (!hasInvokeOnApi) { - offKeepAliveApiCallback(name); - fn(); + } + else { + if (typeof options.fail === 'function') { + options.fail(data); } - }; - } - function normalizeErrMsg(errMsg) { - if (!errMsg || isString(errMsg)) { - return errMsg; } - if (errMsg.stack) { - console.error(errMsg.message + '\n' + errMsg.stack); - return errMsg.message; + if (typeof options.complete === 'function') { + options.complete(data); } - return errMsg; - } - function wrapperTaskApi(name, fn, protocol, options) { - return (args) => { - const id = createAsyncApiCallback(name, args, options); - const errMsg = beforeInvokeApi(name, [args], protocol, options); - if (errMsg) { - return invokeFail(id, name, errMsg); - } - return fn(args, { - resolve: (res) => invokeSuccess(id, name, res), - reject: (errMsg, errRes) => invokeFail(id, name, normalizeErrMsg(errMsg), errRes), - }); - }; } - function wrapperSyncApi(name, fn, protocol, options) { - return (...args) => { - const errMsg = beforeInvokeApi(name, args, protocol, options); - if (errMsg) { - throw new Error(errMsg); - } - return fn.apply(null, args); - }; - } - function wrapperAsyncApi(name, fn, protocol, options) { - return wrapperTaskApi(name, fn, protocol, options); - } - function defineOnApi(name, fn, options) { - return wrapperOnApi(name, fn, options); - } - function defineOffApi(name, fn, options) { - return wrapperOffApi(name, fn, options); - } - function defineTaskApi(name, fn, protocol, options) { - return promisify(name, wrapperTaskApi(name, fn, (process.env.NODE_ENV !== 'production') ? protocol : undefined, options)); - } - function defineSyncApi(name, fn, protocol, options) { - return wrapperSyncApi(name, fn, (process.env.NODE_ENV !== 'production') ? protocol : undefined, options); - } - function defineAsyncApi(name, fn, protocol, options) { - return promisify(name, wrapperAsyncApi(name, fn, (process.env.NODE_ENV !== 'production') ? protocol : undefined, options)); - } - - const API_BASE64_TO_ARRAY_BUFFER = 'base64ToArrayBuffer'; - const Base64ToArrayBufferProtocol = [ - { - name: 'base64', - type: String, - required: true, - }, - ]; - const API_ARRAY_BUFFER_TO_BASE64 = 'arrayBufferToBase64'; - const ArrayBufferToBase64Protocol = [ - { - name: 'arrayBuffer', - type: [ArrayBuffer, Uint8Array], - required: true, - }, - ]; - // @ts-ignore - const base64ToArrayBuffer = defineSyncApi(API_BASE64_TO_ARRAY_BUFFER, (base64) => { - return decode$1(base64); - }, Base64ToArrayBufferProtocol); - const arrayBufferToBase64 = defineSyncApi(API_ARRAY_BUFFER_TO_BASE64, (arrayBuffer) => { - return encode$3(arrayBuffer); - }, ArrayBufferToBase64Protocol); - - /** - * 简易版systemInfo,主要为upx2px,i18n服务 - * @returns - */ - function getBaseSystemInfo() { - // @ts-expect-error view 层 - if (typeof __SYSTEM_INFO__ !== 'undefined') { - return window.__SYSTEM_INFO__; - } - const { resolutionWidth } = plus.screen.getCurrentSize(); - return { - platform: (plus.os.name || '').toLowerCase(), - pixelRatio: plus.screen.scale, - windowWidth: Math.round(resolutionWidth), + function debounce(fn, delay) { + let timeout; + const newFn = function () { + clearTimeout(timeout); + const timerFn = () => fn.apply(this, arguments); + timeout = setTimeout(timerFn, delay); }; + newFn.cancel = function () { + clearTimeout(timeout); + }; + return newFn; } - function requestComponentInfo(page, reqs, callback) { - UniServiceJSBridge.invokeViewMethod('requestComponentInfo', { - reqs: reqs.map((req) => { - if (req.component) { - req.component = req.component.$el.nodeId; - } - return req; - }), - }, page.$page.id, callback); - } - - let lastLogTime = 0; - function formatLog(module, ...args) { - const now = Date.now(); - const diff = lastLogTime ? now - lastLogTime : 0; - lastLogTime = now; - return `[${now}][${diff}ms][${module}]:${args - .map((arg) => JSON.stringify(arg)) - .join(' ')}`; - } + const LINEFEED = '\n'; + const NAVBAR_HEIGHT = 44; + const TABBAR_HEIGHT = 50; + const ON_REACH_BOTTOM_DISTANCE = 50; + const I18N_JSON_DELIMITERS = ['%', '%']; + const PRIMARY_COLOR = '#007aff'; + const BACKGROUND_COLOR = '#f7f7f7'; // 背景色,如标题栏默认背景色 + const SCHEME_RE = /^([a-z-]+:)?\/\//i; + const DATA_RE = /^data:.*,.*/; + const WEB_INVOKE_APPSERVICE = 'WEB_INVOKE_APPSERVICE'; + const WXS_PROTOCOL = 'wxs://'; + const WXS_MODULES = 'wxsModules'; + const RENDERJS_MODULES = 'renderjsModules'; + // lifecycle + // App and Page + const ON_SHOW = 'onShow'; + const ON_HIDE = 'onHide'; + //App + const ON_LAUNCH = 'onLaunch'; + const ON_ERROR = 'onError'; + const ON_THEME_CHANGE = 'onThemeChange'; + const ON_KEYBOARD_HEIGHT_CHANGE = 'onKeyboardHeightChange'; + const ON_PAGE_NOT_FOUND = 'onPageNotFound'; + const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; + //Page + const ON_LOAD = 'onLoad'; + const ON_READY = 'onReady'; + const ON_UNLOAD = 'onUnload'; + const ON_RESIZE = 'onResize'; + const ON_BACK_PRESS = 'onBackPress'; + const ON_PAGE_SCROLL = 'onPageScroll'; + const ON_TAB_ITEM_TAP = 'onTabItemTap'; + const ON_REACH_BOTTOM = 'onReachBottom'; + const ON_PULL_DOWN_REFRESH = 'onPullDownRefresh'; + const ON_SHARE_TIMELINE = 'onShareTimeline'; + const ON_ADD_TO_FAVORITES = 'onAddToFavorites'; + const ON_SHARE_APP_MESSAGE = 'onShareAppMessage'; + // navigationBar + const ON_NAVIGATION_BAR_BUTTON_TAP = 'onNavigationBarButtonTap'; + const ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED = 'onNavigationBarSearchInputClicked'; + const ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED = 'onNavigationBarSearchInputChanged'; + const ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED = 'onNavigationBarSearchInputConfirmed'; + const ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED = 'onNavigationBarSearchInputFocusChanged'; + // framework + const ON_APP_ENTER_FOREGROUND = 'onAppEnterForeground'; + const ON_APP_ENTER_BACKGROUND = 'onAppEnterBackground'; + const ON_WXS_INVOKE_CALL_METHOD = 'onWxsInvokeCallMethod'; - const encode$2 = encodeURIComponent; - function stringifyQuery$1(obj, encodeStr = encode$2) { - const res = obj - ? Object.keys(obj) - .map((key) => { - let val = obj[key]; - if (typeof val === undefined || val === null) { - val = ''; - } - else if (isPlainObject(val)) { - val = JSON.stringify(val); - } - return encodeStr(key) + '=' + encodeStr(val); - }) - .filter((x) => x.length > 0) - .join('&') - : null; - return res ? `?${res}` : ''; - } - /** - * Decode text using `decodeURIComponent`. Returns the original text if it - * fails. - * - * @param text - string to decode - * @returns decoded string - */ - function decode(text) { - try { - return decodeURIComponent('' + text); + class EventChannel { + constructor(id, events) { + this.id = id; + this.listener = {}; + this.emitCache = {}; + if (events) { + Object.keys(events).forEach((name) => { + this.on(name, events[name]); + }); + } } - catch (err) { } - return '' + text; - } - const PLUS_RE = /\+/g; // %2B - /** - * https://github.com/vuejs/vue-router-next/blob/master/src/query.ts - * @internal - * - * @param search - search string to parse - * @returns a query object - */ - function parseQuery(search) { - const query = {}; - // avoid creating an object with an empty key and empty value - // because of split('&') - if (search === '' || search === '?') - return query; - const hasLeadingIM = search[0] === '?'; - const searchParams = (hasLeadingIM ? search.slice(1) : search).split('&'); - for (let i = 0; i < searchParams.length; ++i) { - // pre decode the + into space - const searchParam = searchParams[i].replace(PLUS_RE, ' '); - // allow the = character - let eqPos = searchParam.indexOf('='); - let key = decode(eqPos < 0 ? searchParam : searchParam.slice(0, eqPos)); - let value = eqPos < 0 ? null : decode(searchParam.slice(eqPos + 1)); - if (key in query) { - // an extra variable for ts types - let currentValue = query[key]; - if (!isArray$1(currentValue)) { - currentValue = query[key] = [currentValue]; + emit(eventName, ...args) { + const fns = this.listener[eventName]; + if (!fns) { + return (this.emitCache[eventName] || (this.emitCache[eventName] = [])).push(args); + } + fns.forEach((opt) => { + opt.fn.apply(opt.fn, args); + }); + this.listener[eventName] = fns.filter((opt) => opt.type !== 'once'); + } + on(eventName, fn) { + this._addListener(eventName, 'on', fn); + this._clearCache(eventName); + } + once(eventName, fn) { + this._addListener(eventName, 'once', fn); + this._clearCache(eventName); + } + off(eventName, fn) { + const fns = this.listener[eventName]; + if (!fns) { + return; + } + if (fn) { + for (let i = 0; i < fns.length;) { + if (fns[i].fn === fn) { + fns.splice(i, 1); + i--; + } + i++; } - currentValue.push(value); } else { - query[key] = value; + delete this.listener[eventName]; } } - return query; - } - - function parseUrl(url) { - const [path, querystring] = url.split('?', 2); - return { - path, - query: parseQuery(querystring || ''), - }; - } - - class DOMException extends Error { - constructor(message) { - super(message); - this.name = 'DOMException'; + _clearCache(eventName) { + const cacheArgs = this.emitCache[eventName]; + if (cacheArgs) { + for (; cacheArgs.length > 0;) { + this.emit.apply(this, [eventName, ...cacheArgs.shift()]); + } + } + } + _addListener(eventName, type, fn) { + (this.listener[eventName] || (this.listener[eventName] = [])).push({ + fn, + type, + }); } } + const UniLifecycleHooks = [ + ON_SHOW, + ON_HIDE, + ON_LAUNCH, + ON_ERROR, + ON_THEME_CHANGE, + ON_PAGE_NOT_FOUND, + ON_UNHANDLE_REJECTION, + ON_LOAD, + ON_READY, + ON_UNLOAD, + ON_RESIZE, + ON_BACK_PRESS, + ON_PAGE_SCROLL, + ON_TAB_ITEM_TAP, + ON_REACH_BOTTOM, + ON_PULL_DOWN_REFRESH, + ON_SHARE_TIMELINE, + ON_ADD_TO_FAVORITES, + ON_SHARE_APP_MESSAGE, + ON_NAVIGATION_BAR_BUTTON_TAP, + ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, + ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, + ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, + ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, + ]; - function normalizeEventType(type, options) { - if (options) { - if (options.capture) { - type += 'Capture'; - } - if (options.once) { - type += 'Once'; - } - if (options.passive) { - type += 'Passive'; - } + const CHOOSE_SIZE_TYPES = ['original', 'compressed']; + const CHOOSE_SOURCE_TYPES = ['album', 'camera']; + const HTTP_METHODS = [ + 'GET', + 'OPTIONS', + 'HEAD', + 'POST', + 'PUT', + 'DELETE', + 'TRACE', + 'CONNECT', + ]; + function elemInArray(str, arr) { + if (!str || arr.indexOf(str) === -1) { + return arr[0]; } - return `on${capitalize(camelize(type))}`; + return str; } - class UniEvent { - constructor(type, opts) { - this.defaultPrevented = false; - this.timeStamp = Date.now(); - this._stop = false; - this._end = false; - this.type = type; - this.bubbles = !!opts.bubbles; - this.cancelable = !!opts.cancelable; - } - preventDefault() { - this.defaultPrevented = true; + function elemsInArray(strArr, optionalVal) { + if (!isArray$1(strArr) || + strArr.length === 0 || + strArr.find((val) => optionalVal.indexOf(val) === -1)) { + return optionalVal; } - stopImmediatePropagation() { - this._end = this._stop = true; + return strArr; + } + function validateProtocolFail(name, msg) { + console.warn(`${name}: ${msg}`); + } + function validateProtocol(name, data, protocol, onFail) { + if (!onFail) { + onFail = validateProtocolFail; } - stopPropagation() { - this._stop = true; + for (const key in protocol) { + const errMsg = validateProp(key, data[key], protocol[key], !hasOwn$1(data, key)); + if (isString(errMsg)) { + onFail(name, errMsg); + } } } - function createUniEvent(evt) { - if (evt instanceof UniEvent) { - return evt; + function validateProtocols(name, args, protocol, onFail) { + if (!protocol) { + return; } - const [type] = parseEventName(evt.type); - const uniEvent = new UniEvent(type, { - bubbles: false, - cancelable: false, - }); - extend(uniEvent, evt); - return uniEvent; - } - class UniEventTarget { - constructor() { - this.listeners = Object.create(null); + if (!isArray$1(protocol)) { + return validateProtocol(name, args[0] || Object.create(null), protocol, onFail); } - dispatchEvent(evt) { - const listeners = this.listeners[evt.type]; - if (!listeners) { - if ((process.env.NODE_ENV !== 'production')) { - console.error(formatLog('dispatchEvent', this.nodeId), evt.type, 'not found'); - } - return false; - } - // 格式化事件类型 - const event = createUniEvent(evt); - const len = listeners.length; - for (let i = 0; i < len; i++) { - listeners[i].call(this, event); - if (event._end) { - break; - } + const len = protocol.length; + const argsLen = args.length; + for (let i = 0; i < len; i++) { + const opts = protocol[i]; + const data = Object.create(null); + if (argsLen > i) { + data[opts.name] = args[i]; } - return event.cancelable && event.defaultPrevented; + validateProtocol(name, data, { [opts.name]: opts }, onFail); } - addEventListener(type, listener, options) { - type = normalizeEventType(type, options); - (this.listeners[type] || (this.listeners[type] = [])).push(listener); + } + function validateProp(name, value, prop, isAbsent) { + if (!isPlainObject(prop)) { + prop = { type: prop }; + } + const { type, required, validator } = prop; + // required! + if (required && isAbsent) { + return 'Missing required args: "' + name + '"'; } - removeEventListener(type, callback, options) { - type = normalizeEventType(type, options); - const listeners = this.listeners[type]; - if (!listeners) { - return; + // missing but optional + if (value == null && !required) { + return; + } + // type check + if (type != null) { + let isValid = false; + const types = isArray$1(type) ? type : [type]; + const expectedTypes = []; + // value is valid as long as one of the specified types match + for (let i = 0; i < types.length && !isValid; i++) { + const { valid, expectedType } = assertType(value, types[i]); + expectedTypes.push(expectedType || ''); + isValid = valid; } - const index = listeners.indexOf(callback); - if (index > -1) { - listeners.splice(index, 1); + if (!isValid) { + return getInvalidTypeMessage(name, value, expectedTypes); } } + // custom validator + if (validator) { + return validator(value); + } } - const optionsModifierRE = /(?:Once|Passive|Capture)$/; - function parseEventName(name) { - let options; - if (optionsModifierRE.test(name)) { - options = {}; - let m; - while ((m = name.match(optionsModifierRE))) { - name = name.slice(0, name.length - m[0].length); - options[m[0].toLowerCase()] = true; + const isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol'); + function assertType(value, type) { + let valid; + const expectedType = getType(type); + if (isSimpleType(expectedType)) { + const t = typeof value; + valid = t === expectedType.toLowerCase(); + // for primitive wrapper objects + if (!valid && t === 'object') { + valid = value instanceof type; } } - return [hyphenate(name.slice(2)), options]; - } - - const NODE_TYPE_PAGE = 0; - const NODE_TYPE_ELEMENT = 1; - function sibling(node, type) { - const { parentNode } = node; - if (!parentNode) { - return null; - } - const { childNodes } = parentNode; - return childNodes[childNodes.indexOf(node) + (type === 'n' ? 1 : -1)] || null; - } - function removeNode(node) { - const { parentNode } = node; - if (parentNode) { - parentNode.removeChild(node); + else if (expectedType === 'Object') { + valid = isObject$1(value); } - } - function checkNodeId(node) { - if (!node.nodeId && node.pageNode) { - node.nodeId = node.pageNode.genId(); + else if (expectedType === 'Array') { + valid = isArray$1(value); } - } - // 为优化性能,各平台不使用proxy来实现node的操作拦截,而是直接通过pageNode定制 - class UniNode extends UniEventTarget { - constructor(nodeType, nodeName, container) { - super(); - this.pageNode = null; - this.parentNode = null; - this._text = null; - if (container) { - const { pageNode } = container; - if (pageNode) { - this.pageNode = pageNode; - this.nodeId = pageNode.genId(); - !pageNode.isUnmounted && pageNode.onCreate(this, nodeName); - } + else { + { + // App平台ArrayBuffer等参数跨实例传输,无法通过 instanceof 识别 + valid = value instanceof type || toRawType(value) === getType(type); } - this.nodeType = nodeType; - this.nodeName = nodeName; - this.childNodes = []; } - get firstChild() { - return this.childNodes[0] || null; + return { + valid, + expectedType, + }; + } + function getInvalidTypeMessage(name, value, expectedTypes) { + let message = `Invalid args: type check failed for args "${name}".` + + ` Expected ${expectedTypes.map(capitalize).join(', ')}`; + const expectedType = expectedTypes[0]; + const receivedType = toRawType(value); + const expectedValue = styleValue(value, expectedType); + const receivedValue = styleValue(value, receivedType); + // check if we need to specify expected value + if (expectedTypes.length === 1 && + isExplicable(expectedType) && + !isBoolean(expectedType, receivedType)) { + message += ` with value ${expectedValue}`; } - get lastChild() { - const { childNodes } = this; - const length = childNodes.length; - return length ? childNodes[length - 1] : null; + message += `, got ${receivedType} `; + // check if we need to specify received value + if (isExplicable(receivedType)) { + message += `with value ${receivedValue}.`; } - get nextSibling() { - return sibling(this, 'n'); + return message; + } + function getType(ctor) { + const match = ctor && ctor.toString().match(/^\s*function (\w+)/); + return match ? match[1] : ''; + } + function styleValue(value, type) { + if (type === 'String') { + return `"${value}"`; } - get nodeValue() { - return null; + else if (type === 'Number') { + return `${Number(value)}`; } - set nodeValue(_val) { } - get textContent() { - return this._text || ''; + else { + return `${value}`; } - set textContent(text) { - this._text = text; - if (this.pageNode && !this.pageNode.isUnmounted) { - this.pageNode.onTextContent(this, text); + } + function isExplicable(type) { + const explicitTypes = ['string', 'number', 'boolean']; + return explicitTypes.some((elem) => type.toLowerCase() === elem); + } + function isBoolean(...args) { + return args.some((elem) => elem.toLowerCase() === 'boolean'); + } + + function tryCatch(fn) { + return function () { + try { + return fn.apply(fn, arguments); } - } - get parentElement() { - const { parentNode } = this; - if (parentNode && parentNode.nodeType === NODE_TYPE_ELEMENT) { - return parentNode; + catch (e) { + // TODO + console.error(e); + } + }; + } + + let invokeCallbackId = 1; + const invokeCallbacks = {}; + function addInvokeCallback(id, name, callback, keepAlive = false) { + invokeCallbacks[id] = { + name, + keepAlive, + callback, + }; + return id; + } + // onNativeEventReceive((event,data)=>{}) 需要两个参数,目前写死最多两个参数 + function invokeCallback(id, res, extras) { + if (typeof id === 'number') { + const opts = invokeCallbacks[id]; + if (opts) { + if (!opts.keepAlive) { + delete invokeCallbacks[id]; + } + return opts.callback(res, extras); } - return null; - } - get previousSibling() { - return sibling(this, 'p'); - } - appendChild(newChild) { - return this.insertBefore(newChild, null); } - cloneNode(deep) { - const cloned = extend(Object.create(Object.getPrototypeOf(this)), this); - const { attributes } = cloned; - if (attributes) { - cloned.attributes = extend({}, attributes); + return res; + } + function findInvokeCallbackByName(name) { + for (const key in invokeCallbacks) { + if (invokeCallbacks[key].name === name) { + return true; } - if (deep) { - cloned.childNodes = cloned.childNodes.map((childNode) => childNode.cloneNode(true)); + } + return false; + } + function removeKeepAliveApiCallback(name, callback) { + for (const key in invokeCallbacks) { + const item = invokeCallbacks[key]; + if (item.callback === callback && item.name === name) { + delete invokeCallbacks[key]; } - return cloned; } - insertBefore(newChild, refChild) { - removeNode(newChild); - newChild.pageNode = this.pageNode; - newChild.parentNode = this; - checkNodeId(newChild); - const { childNodes } = this; - if (refChild) { - const index = childNodes.indexOf(refChild); - if (index === -1) { - throw new DOMException(`Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.`); + } + function offKeepAliveApiCallback(name) { + UniServiceJSBridge.off('api.' + name); + } + function onKeepAliveApiCallback(name) { + UniServiceJSBridge.on('api.' + name, (res) => { + for (const key in invokeCallbacks) { + const opts = invokeCallbacks[key]; + if (opts.name === name) { + opts.callback(res); } - childNodes.splice(index, 0, newChild); } - else { - childNodes.push(newChild); + }); + } + function createKeepAliveApiCallback(name, callback) { + return addInvokeCallback(invokeCallbackId++, name, callback, true); + } + const API_SUCCESS = 'success'; + const API_FAIL = 'fail'; + const API_COMPLETE = 'complete'; + function getApiCallbacks(args) { + const apiCallbacks = {}; + for (const name in args) { + const fn = args[name]; + if (isFunction(fn)) { + apiCallbacks[name] = tryCatch(fn); + delete args[name]; } - return this.pageNode && !this.pageNode.isUnmounted - ? this.pageNode.onInsertBefore(this, newChild, refChild) - : newChild; } - removeChild(oldChild) { - const { childNodes } = this; - const index = childNodes.indexOf(oldChild); - if (index === -1) { - throw new DOMException(`Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.`); - } - oldChild.parentNode = null; - childNodes.splice(index, 1); - return this.pageNode && !this.pageNode.isUnmounted - ? this.pageNode.onRemoveChild(oldChild) - : oldChild; + return apiCallbacks; + } + function normalizeErrMsg$1(errMsg, name) { + if (!errMsg || errMsg.indexOf(':fail') === -1) { + return name + ':ok'; } + return name + errMsg.substring(errMsg.indexOf(':fail')); } + function createAsyncApiCallback(name, args = {}, { beforeAll, beforeSuccess } = {}) { + if (!isPlainObject(args)) { + args = {}; + } + const { success, fail, complete } = getApiCallbacks(args); + const hasSuccess = isFunction(success); + const hasFail = isFunction(fail); + const hasComplete = isFunction(complete); + const callbackId = invokeCallbackId++; + addInvokeCallback(callbackId, name, (res) => { + res = res || {}; + res.errMsg = normalizeErrMsg$1(res.errMsg, name); + isFunction(beforeAll) && beforeAll(res); + if (res.errMsg === name + ':ok') { + isFunction(beforeSuccess) && beforeSuccess(res); + hasSuccess && success(res); + } + else { + hasFail && fail(res); + } + hasComplete && complete(res); + }); + return callbackId; + } - const ACTION_TYPE_PAGE_CREATE = 1; - const ACTION_TYPE_PAGE_CREATED = 2; - const ACTION_TYPE_CREATE = 3; - const ACTION_TYPE_INSERT = 4; - const ACTION_TYPE_REMOVE = 5; - const ACTION_TYPE_SET_ATTRIBUTE = 6; - const ACTION_TYPE_REMOVE_ATTRIBUTE = 7; - const ACTION_TYPE_ADD_EVENT = 8; - const ACTION_TYPE_REMOVE_EVENT = 9; - const ACTION_TYPE_SET_TEXT = 10; - const ACTION_TYPE_ADD_WXS_EVENT = 12; - const ACTION_TYPE_PAGE_SCROLL = 15; - const ACTION_TYPE_EVENT = 20; - - function cache(fn) { - const cache = Object.create(null); - return (str) => { - const hit = cache[str]; - return hit || (cache[str] = fn(str)); + const HOOK_SUCCESS = 'success'; + const HOOK_FAIL = 'fail'; + const HOOK_COMPLETE = 'complete'; + const globalInterceptors = {}; + const scopedInterceptors = {}; + function wrapperHook(hook) { + return function (data) { + return hook(data) || data; }; } - function cacheStringFunction(fn) { - return cache(fn); - } - function getLen(str = '') { - return ('' + str).replace(/[^\x00-\xff]/g, '**').length; - } - function removeLeadingSlash(str) { - return str.indexOf('/') === 0 ? str.substr(1) : str; - } - const invokeArrayFns = (fns, arg) => { - let ret; - for (let i = 0; i < fns.length; i++) { - ret = fns[i](arg); - } - return ret; - }; - function once(fn, ctx = null) { - let res; - return ((...args) => { - if (fn) { - res = fn.apply(ctx, args); - fn = null; + function queue(hooks, data) { + let promise = false; + for (let i = 0; i < hooks.length; i++) { + const hook = hooks[i]; + if (promise) { + promise = Promise.resolve(wrapperHook(hook)); } - return res; + else { + const res = hook(data); + if (isPromise(res)) { + promise = Promise.resolve(res); + } + if (res === false) { + return { + then() { }, + catch() { }, + }; + } + } + } + return (promise || { + then(callback) { + return callback(data); + }, + catch() { }, }); } - function callOptions(options, data) { - options = options || {}; - if (typeof data === 'string') { - data = { - errMsg: data, + function wrapperOptions(interceptors, options = {}) { + [HOOK_SUCCESS, HOOK_FAIL, HOOK_COMPLETE].forEach((name) => { + const hooks = interceptors[name]; + if (!isArray$1(hooks)) { + return; + } + const oldCallback = options[name]; + options[name] = function callbackInterceptor(res) { + queue(hooks, res).then((res) => { + return (isFunction(oldCallback) && oldCallback(res)) || res; + }); }; + }); + return options; + } + function wrapperReturnValue(method, returnValue) { + const returnValueHooks = []; + if (isArray$1(globalInterceptors.returnValue)) { + returnValueHooks.push(...globalInterceptors.returnValue); } - if (/:ok$/.test(data.errMsg)) { - if (typeof options.success === 'function') { - options.success(data); - } + const interceptor = scopedInterceptors[method]; + if (interceptor && isArray$1(interceptor.returnValue)) { + returnValueHooks.push(...interceptor.returnValue); } - else { - if (typeof options.fail === 'function') { - options.fail(data); + returnValueHooks.forEach((hook) => { + returnValue = hook(returnValue) || returnValue; + }); + return returnValue; + } + function getApiInterceptorHooks(method) { + const interceptor = Object.create(null); + Object.keys(globalInterceptors).forEach((hook) => { + if (hook !== 'returnValue') { + interceptor[hook] = globalInterceptors[hook].slice(); } + }); + const scopedInterceptor = scopedInterceptors[method]; + if (scopedInterceptor) { + Object.keys(scopedInterceptor).forEach((hook) => { + if (hook !== 'returnValue') { + interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]); + } + }); } - if (typeof options.complete === 'function') { - options.complete(data); - } + return interceptor; } - - function debounce(fn, delay) { - let timeout; - const newFn = function () { - clearTimeout(timeout); - const timerFn = () => fn.apply(this, arguments); - timeout = setTimeout(timerFn, delay); - }; - newFn.cancel = function () { - clearTimeout(timeout); - }; - return newFn; + function invokeApi(method, api, options, ...params) { + const interceptor = getApiInterceptorHooks(method); + if (interceptor && Object.keys(interceptor).length) { + if (isArray$1(interceptor.invoke)) { + const res = queue(interceptor.invoke, options); + return res.then((options) => { + return api(wrapperOptions(interceptor, options), ...params); + }); + } + else { + return api(wrapperOptions(interceptor, options), ...params); + } + } + return api(options, ...params); } - const NAVBAR_HEIGHT = 44; - const TABBAR_HEIGHT = 50; - const ON_REACH_BOTTOM_DISTANCE = 50; - const I18N_JSON_DELIMITERS = ['%', '%']; - const PRIMARY_COLOR = '#007aff'; - const BACKGROUND_COLOR = '#f7f7f7'; // 背景色,如标题栏默认背景色 - const SCHEME_RE = /^([a-z-]+:)?\/\//i; - const DATA_RE = /^data:.*,.*/; - const WEB_INVOKE_APPSERVICE = 'WEB_INVOKE_APPSERVICE'; - const WXS_PROTOCOL = 'wxs://'; - const WXS_MODULES = 'wxsModules'; - const RENDERJS_MODULES = 'renderjsModules'; - // lifecycle - // App and Page - const ON_SHOW = 'onShow'; - const ON_HIDE = 'onHide'; - //App - const ON_LAUNCH = 'onLaunch'; - const ON_ERROR = 'onError'; - const ON_THEME_CHANGE = 'onThemeChange'; - const ON_KEYBOARD_HEIGHT_CHANGE = 'onKeyboardHeightChange'; - const ON_PAGE_NOT_FOUND = 'onPageNotFound'; - const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; - //Page - const ON_LOAD = 'onLoad'; - const ON_READY = 'onReady'; - const ON_UNLOAD = 'onUnload'; - const ON_RESIZE = 'onResize'; - const ON_BACK_PRESS = 'onBackPress'; - const ON_PAGE_SCROLL = 'onPageScroll'; - const ON_TAB_ITEM_TAP = 'onTabItemTap'; - const ON_REACH_BOTTOM = 'onReachBottom'; - const ON_PULL_DOWN_REFRESH = 'onPullDownRefresh'; - const ON_SHARE_TIMELINE = 'onShareTimeline'; - const ON_ADD_TO_FAVORITES = 'onAddToFavorites'; - const ON_SHARE_APP_MESSAGE = 'onShareAppMessage'; - // navigationBar - const ON_NAVIGATION_BAR_BUTTON_TAP = 'onNavigationBarButtonTap'; - const ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED = 'onNavigationBarSearchInputClicked'; - const ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED = 'onNavigationBarSearchInputChanged'; - const ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED = 'onNavigationBarSearchInputConfirmed'; - const ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED = 'onNavigationBarSearchInputFocusChanged'; - // framework - const ON_APP_ENTER_FOREGROUND = 'onAppEnterForeground'; - const ON_APP_ENTER_BACKGROUND = 'onAppEnterBackground'; - const ON_WXS_INVOKE_CALL_METHOD = 'onWxsInvokeCallMethod'; + function hasCallback(args) { + if (isPlainObject(args) && + [API_SUCCESS, API_FAIL, API_COMPLETE].find((cb) => isFunction(args[cb]))) { + return true; + } + return false; + } + function handlePromise(promise) { + return promise; + } + function promisify(name, fn) { + return (args = {}) => { + if (hasCallback(args)) { + return wrapperReturnValue(name, invokeApi(name, fn, args)); + } + return wrapperReturnValue(name, handlePromise(new Promise((resolve, reject) => { + invokeApi(name, fn, extend(args, { success: resolve, fail: reject })); + }))); + }; + } - class EventChannel { - constructor(id, events) { - this.id = id; - this.listener = {}; - this.emitCache = {}; - if (events) { - Object.keys(events).forEach((name) => { - this.on(name, events[name]); - }); + function formatApiArgs(args, options) { + const params = args[0]; + if (!options || + (!isPlainObject(options.formatArgs) && isPlainObject(params))) { + return; + } + const formatArgs = options.formatArgs; + const keys = Object.keys(formatArgs); + for (let i = 0; i < keys.length; i++) { + const name = keys[i]; + const formatterOrDefaultValue = formatArgs[name]; + if (isFunction(formatterOrDefaultValue)) { + const errMsg = formatterOrDefaultValue(args[0][name], params); + if (isString(errMsg)) { + return errMsg; + } + } + else { + // defaultValue + if (!hasOwn$1(params, name)) { + params[name] = formatterOrDefaultValue; + } } } - emit(eventName, ...args) { - const fns = this.listener[eventName]; - if (!fns) { - return (this.emitCache[eventName] || (this.emitCache[eventName] = [])).push(args); + } + function invokeSuccess(id, name, res) { + return invokeCallback(id, extend(res || {}, { errMsg: name + ':ok' })); + } + function invokeFail(id, name, errMsg, errRes) { + return invokeCallback(id, extend({ errMsg: name + ':fail' + (errMsg ? ' ' + errMsg : '') }, errRes)); + } + function beforeInvokeApi(name, args, protocol, options) { + if ((process.env.NODE_ENV !== 'production')) { + validateProtocols(name, args, protocol); + } + if (options && options.beforeInvoke) { + const errMsg = options.beforeInvoke(args); + if (isString(errMsg)) { + return errMsg; } - fns.forEach((opt) => { - opt.fn.apply(opt.fn, args); - }); - this.listener[eventName] = fns.filter((opt) => opt.type !== 'once'); } - on(eventName, fn) { - this._addListener(eventName, 'on', fn); - this._clearCache(eventName); + const errMsg = formatApiArgs(args, options); + if (errMsg) { + return errMsg; } - once(eventName, fn) { - this._addListener(eventName, 'once', fn); - this._clearCache(eventName); + } + function checkCallback(callback) { + if (!isFunction(callback)) { + throw new Error('Invalid args: type check failed for args "callback". Expected Function'); } - off(eventName, fn) { - const fns = this.listener[eventName]; - if (!fns) { - return; + } + function wrapperOnApi(name, fn, options) { + return (callback) => { + checkCallback(callback); + const errMsg = beforeInvokeApi(name, [callback], undefined, options); + if (errMsg) { + throw new Error(errMsg); } - if (fn) { - for (let i = 0; i < fns.length;) { - if (fns[i].fn === fn) { - fns.splice(i, 1); - i--; - } - i++; - } + // 是否是首次调用on,如果是首次,需要初始化onMethod监听 + const isFirstInvokeOnApi = !findInvokeCallbackByName(name); + createKeepAliveApiCallback(name, callback); + if (isFirstInvokeOnApi) { + onKeepAliveApiCallback(name); + fn(); } - else { - delete this.listener[eventName]; + }; + } + function wrapperOffApi(name, fn, options) { + return (callback) => { + checkCallback(callback); + const errMsg = beforeInvokeApi(name, [callback], undefined, options); + if (errMsg) { + throw new Error(errMsg); } - } - _clearCache(eventName) { - const cacheArgs = this.emitCache[eventName]; - if (cacheArgs) { - for (; cacheArgs.length > 0;) { - this.emit.apply(this, [eventName, ...cacheArgs.shift()]); - } + name = name.replace('off', 'on'); + removeKeepAliveApiCallback(name, callback); + // 是否还存在监听,若已不存在,则移除onMethod监听 + const hasInvokeOnApi = findInvokeCallbackByName(name); + if (!hasInvokeOnApi) { + offKeepAliveApiCallback(name); + fn(); } + }; + } + function normalizeErrMsg(errMsg) { + if (!errMsg || isString(errMsg)) { + return errMsg; } - _addListener(eventName, type, fn) { - (this.listener[eventName] || (this.listener[eventName] = [])).push({ - fn, - type, - }); + if (errMsg.stack) { + console.error(errMsg.message + LINEFEED + errMsg.stack); + return errMsg.message; } + return errMsg; + } + function wrapperTaskApi(name, fn, protocol, options) { + return (args) => { + const id = createAsyncApiCallback(name, args, options); + const errMsg = beforeInvokeApi(name, [args], protocol, options); + if (errMsg) { + return invokeFail(id, name, errMsg); + } + return fn(args, { + resolve: (res) => invokeSuccess(id, name, res), + reject: (errMsg, errRes) => invokeFail(id, name, normalizeErrMsg(errMsg), errRes), + }); + }; + } + function wrapperSyncApi(name, fn, protocol, options) { + return (...args) => { + const errMsg = beforeInvokeApi(name, args, protocol, options); + if (errMsg) { + throw new Error(errMsg); + } + return fn.apply(null, args); + }; + } + function wrapperAsyncApi(name, fn, protocol, options) { + return wrapperTaskApi(name, fn, protocol, options); + } + function defineOnApi(name, fn, options) { + return wrapperOnApi(name, fn, options); + } + function defineOffApi(name, fn, options) { + return wrapperOffApi(name, fn, options); + } + function defineTaskApi(name, fn, protocol, options) { + return promisify(name, wrapperTaskApi(name, fn, (process.env.NODE_ENV !== 'production') ? protocol : undefined, options)); + } + function defineSyncApi(name, fn, protocol, options) { + return wrapperSyncApi(name, fn, (process.env.NODE_ENV !== 'production') ? protocol : undefined, options); + } + function defineAsyncApi(name, fn, protocol, options) { + return promisify(name, wrapperAsyncApi(name, fn, (process.env.NODE_ENV !== 'production') ? protocol : undefined, options)); } - const UniLifecycleHooks = [ - ON_SHOW, - ON_HIDE, - ON_LAUNCH, - ON_ERROR, - ON_THEME_CHANGE, - ON_PAGE_NOT_FOUND, - ON_UNHANDLE_REJECTION, - ON_LOAD, - ON_READY, - ON_UNLOAD, - ON_RESIZE, - ON_BACK_PRESS, - ON_PAGE_SCROLL, - ON_TAB_ITEM_TAP, - ON_REACH_BOTTOM, - ON_PULL_DOWN_REFRESH, - ON_SHARE_TIMELINE, - ON_ADD_TO_FAVORITES, - ON_SHARE_APP_MESSAGE, - ON_NAVIGATION_BAR_BUTTON_TAP, - ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, - ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, - ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, - ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, + + const API_BASE64_TO_ARRAY_BUFFER = 'base64ToArrayBuffer'; + const Base64ToArrayBufferProtocol = [ + { + name: 'base64', + type: String, + required: true, + }, + ]; + const API_ARRAY_BUFFER_TO_BASE64 = 'arrayBufferToBase64'; + const ArrayBufferToBase64Protocol = [ + { + name: 'arrayBuffer', + type: [ArrayBuffer, Uint8Array], + required: true, + }, ]; + // @ts-ignore + const base64ToArrayBuffer = defineSyncApi(API_BASE64_TO_ARRAY_BUFFER, (base64) => { + return decode$1(base64); + }, Base64ToArrayBufferProtocol); + const arrayBufferToBase64 = defineSyncApi(API_ARRAY_BUFFER_TO_BASE64, (arrayBuffer) => { + return encode$3(arrayBuffer); + }, ArrayBufferToBase64Protocol); + + /** + * 简易版systemInfo,主要为upx2px,i18n服务 + * @returns + */ + function getBaseSystemInfo() { + // @ts-expect-error view 层 + if (typeof __SYSTEM_INFO__ !== 'undefined') { + return window.__SYSTEM_INFO__; + } + const { resolutionWidth } = plus.screen.getCurrentSize(); + return { + platform: (plus.os.name || '').toLowerCase(), + pixelRatio: plus.screen.scale, + windowWidth: Math.round(resolutionWidth), + }; + } + + function requestComponentInfo(page, reqs, callback) { + UniServiceJSBridge.invokeViewMethod('requestComponentInfo', { + reqs: reqs.map((req) => { + if (req.component) { + req.component = req.component.$el.nodeId; + } + return req; + }), + }, page.$page.id, callback); + } + const isArray = Array.isArray; const isObject = (val) => val !== null && typeof val === 'object'; const defaultDelimiters = ['{', '}']; diff --git a/packages/uni-app-plus/dist/uni-app-view.umd.js b/packages/uni-app-plus/dist/uni-app-view.umd.js index 08085af6f..202d0599b 100644 --- a/packages/uni-app-plus/dist/uni-app-view.umd.js +++ b/packages/uni-app-plus/dist/uni-app-view.umd.js @@ -1,9 +1,3 @@ -(function(bn){typeof define=="function"&&define.amd?define(bn):bn()})(function(){"use strict";var bn="",ay="",oy="",Gt={exports:{}},Gr={exports:{}},Zr={exports:{}},tc=Zr.exports={version:"2.6.12"};typeof __e=="number"&&(__e=tc);var gt={exports:{}},Jr=gt.exports=typeof Jr!="undefined"&&Jr.Math==Math?Jr:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Jr);var rc=Zr.exports,No=gt.exports,ko="__core-js_shared__",Do=No[ko]||(No[ko]={});(Gr.exports=function(e,t){return Do[e]||(Do[e]=t!==void 0?t:{})})("versions",[]).push({version:rc.version,mode:"window",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"});var ic=0,nc=Math.random(),wn=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++ic+nc).toString(36))},yn=Gr.exports("wks"),ac=wn,Sn=gt.exports.Symbol,Bo=typeof Sn=="function",oc=Gt.exports=function(e){return yn[e]||(yn[e]=Bo&&Sn[e]||(Bo?Sn:ac)("Symbol."+e))};oc.store=yn;var Qr={},xn=function(e){return typeof e=="object"?e!==null:typeof e=="function"},sc=xn,Tn=function(e){if(!sc(e))throw TypeError(e+" is not an object!");return e},ei=function(e){try{return!!e()}catch{return!0}},hr=!ei(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Fo=xn,En=gt.exports.document,lc=Fo(En)&&Fo(En.createElement),$o=function(e){return lc?En.createElement(e):{}},uc=!hr&&!ei(function(){return Object.defineProperty($o("div"),"a",{get:function(){return 7}}).a!=7}),ti=xn,fc=function(e,t){if(!ti(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!ti(i=r.call(e))||typeof(r=e.valueOf)=="function"&&!ti(i=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!ti(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")},Wo=Tn,cc=uc,vc=fc,dc=Object.defineProperty;Qr.f=hr?Object.defineProperty:function(t,r,i){if(Wo(t),r=vc(r,!0),Wo(i),cc)try{return dc(t,r,i)}catch{}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[r]=i.value),t};var Uo=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},hc=Qr,pc=Uo,Zt=hr?function(e,t,r){return hc.f(e,t,pc(1,r))}:function(e,t,r){return e[t]=r,e},Cn=Gt.exports("unscopables"),On=Array.prototype;On[Cn]==null&&Zt(On,Cn,{});var gc=function(e){On[Cn][e]=!0},mc=function(e,t){return{value:t,done:!!e}},Mn={},_c={}.toString,bc=function(e){return _c.call(e).slice(8,-1)},wc=bc,yc=Object("z").propertyIsEnumerable(0)?Object:function(e){return wc(e)=="String"?e.split(""):Object(e)},Vo=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Sc=yc,xc=Vo,ri=function(e){return Sc(xc(e))},ii={exports:{}},Tc={}.hasOwnProperty,ni=function(e,t){return Tc.call(e,t)},Ec=Gr.exports("native-function-to-string",Function.toString),Cc=gt.exports,ai=Zt,jo=ni,In=wn("src"),An=Ec,Ho="toString",Oc=(""+An).split(Ho);Zr.exports.inspectSource=function(e){return An.call(e)},(ii.exports=function(e,t,r,i){var n=typeof r=="function";n&&(jo(r,"name")||ai(r,"name",t)),e[t]!==r&&(n&&(jo(r,In)||ai(r,In,e[t]?""+e[t]:Oc.join(String(t)))),e===Cc?e[t]=r:i?e[t]?e[t]=r:ai(e,t,r):(delete e[t],ai(e,t,r)))})(Function.prototype,Ho,function(){return typeof this=="function"&&this[In]||An.call(this)});var Yo=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e},Mc=Yo,Ic=function(e,t,r){if(Mc(e),t===void 0)return e;switch(r){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,a){return e.call(t,i,n,a)}}return function(){return e.apply(t,arguments)}},Jt=gt.exports,oi=Zr.exports,Ac=Zt,Pc=ii.exports,zo=Ic,Pn="prototype",Be=function(e,t,r){var i=e&Be.F,n=e&Be.G,a=e&Be.S,o=e&Be.P,s=e&Be.B,l=n?Jt:a?Jt[t]||(Jt[t]={}):(Jt[t]||{})[Pn],u=n?oi:oi[t]||(oi[t]={}),v=u[Pn]||(u[Pn]={}),h,_,d,b;n&&(r=t);for(h in r)_=!i&&l&&l[h]!==void 0,d=(_?l:r)[h],b=s&&_?zo(d,Jt):o&&typeof d=="function"?zo(Function.call,d):d,l&&Pc(l,h,d,e&Be.U),u[h]!=d&&Ac(u,h,b),o&&v[h]!=d&&(v[h]=d)};Jt.core=oi,Be.F=1,Be.G=2,Be.S=4,Be.P=8,Be.B=16,Be.W=32,Be.U=64,Be.R=128;var Rn=Be,Rc=Math.ceil,Lc=Math.floor,qo=function(e){return isNaN(e=+e)?0:(e>0?Lc:Rc)(e)},Nc=qo,kc=Math.min,Dc=function(e){return e>0?kc(Nc(e),9007199254740991):0},Bc=qo,Fc=Math.max,$c=Math.min,Wc=function(e,t){return e=Bc(e),e<0?Fc(e+t,0):$c(e,t)},Uc=ri,Vc=Dc,jc=Wc,Hc=function(e){return function(t,r,i){var n=Uc(t),a=Vc(n.length),o=jc(i,a),s;if(e&&r!=r){for(;a>o;)if(s=n[o++],s!=s)return!0}else for(;a>o;o++)if((e||o in n)&&n[o]===r)return e||o||0;return!e&&-1}},Xo=Gr.exports("keys"),Yc=wn,Ln=function(e){return Xo[e]||(Xo[e]=Yc(e))},Ko=ni,zc=ri,qc=Hc(!1),Xc=Ln("IE_PROTO"),Kc=function(e,t){var r=zc(e),i=0,n=[],a;for(a in r)a!=Xc&&Ko(r,a)&&n.push(a);for(;t.length>i;)Ko(r,a=t[i++])&&(~qc(n,a)||n.push(a));return n},Go="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Gc=Kc,Zc=Go,Nn=Object.keys||function(t){return Gc(t,Zc)},Jc=Qr,Qc=Tn,ev=Nn,tv=hr?Object.defineProperties:function(t,r){Qc(t);for(var i=ev(r),n=i.length,a=0,o;n>a;)Jc.f(t,o=i[a++],r[o]);return t},Zo=gt.exports.document,rv=Zo&&Zo.documentElement,iv=Tn,nv=tv,Jo=Go,av=Ln("IE_PROTO"),kn=function(){},Dn="prototype",si=function(){var e=$o("iframe"),t=Jo.length,r="<",i=">",n;for(e.style.display="none",rv.appendChild(e),e.src="javascript:",n=e.contentWindow.document,n.open(),n.write(r+"script"+i+"document.F=Object"+r+"/script"+i),n.close(),si=n.F;t--;)delete si[Dn][Jo[t]];return si()},ov=Object.create||function(t,r){var i;return t!==null?(kn[Dn]=iv(t),i=new kn,kn[Dn]=null,i[av]=t):i=si(),r===void 0?i:nv(i,r)},sv=Qr.f,lv=ni,Qo=Gt.exports("toStringTag"),es=function(e,t,r){e&&!lv(e=r?e:e.prototype,Qo)&&sv(e,Qo,{configurable:!0,value:t})},uv=ov,fv=Uo,cv=es,ts={};Zt(ts,Gt.exports("iterator"),function(){return this});var vv=function(e,t,r){e.prototype=uv(ts,{next:fv(1,r)}),cv(e,t+" Iterator")},dv=Vo,rs=function(e){return Object(dv(e))},hv=ni,pv=rs,is=Ln("IE_PROTO"),gv=Object.prototype,mv=Object.getPrototypeOf||function(e){return e=pv(e),hv(e,is)?e[is]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?gv:null},Bn=Rn,_v=ii.exports,ns=Zt,as=Mn,bv=vv,wv=es,yv=mv,pr=Gt.exports("iterator"),Fn=!([].keys&&"next"in[].keys()),Sv="@@iterator",os="keys",li="values",ss=function(){return this},xv=function(e,t,r,i,n,a,o){bv(r,t,i);var s=function(f){if(!Fn&&f in h)return h[f];switch(f){case os:return function(){return new r(this,f)};case li:return function(){return new r(this,f)}}return function(){return new r(this,f)}},l=t+" Iterator",u=n==li,v=!1,h=e.prototype,_=h[pr]||h[Sv]||n&&h[n],d=_||s(n),b=n?u?s("entries"):d:void 0,m=t=="Array"&&h.entries||_,p,c,w;if(m&&(w=yv(m.call(new e)),w!==Object.prototype&&w.next&&(wv(w,l,!0),typeof w[pr]!="function"&&ns(w,pr,ss))),u&&_&&_.name!==li&&(v=!0,d=function(){return _.call(this)}),(Fn||v||!h[pr])&&ns(h,pr,d),as[t]=d,as[l]=ss,n)if(p={values:u?d:s(li),keys:a?d:s(os),entries:b},o)for(c in p)c in h||_v(h,c,p[c]);else Bn(Bn.P+Bn.F*(Fn||v),t,p);return p},$n=gc,ui=mc,ls=Mn,Tv=ri,Ev=xv(Array,"Array",function(e,t){this._t=Tv(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,ui(1)):t=="keys"?ui(0,r):t=="values"?ui(0,e[r]):ui(0,[r,e[r]])},"values");ls.Arguments=ls.Array,$n("keys"),$n("values"),$n("entries");for(var us=Ev,Cv=Nn,Ov=ii.exports,Mv=gt.exports,fs=Zt,cs=Mn,vs=Gt.exports,ds=vs("iterator"),hs=vs("toStringTag"),ps=cs.Array,gs={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},ms=Cv(gs),Wn=0;Wn!!r[a.toLowerCase()]:a=>!!r[a]}var Av="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Pv=vi(Av);function bs(e){return!!e||e===""}var Rv=vi("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width");function Un(e){if(oe(e)){for(var t={},r=0;r{if(r){var i=r.split(Nv);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function kv(e){var t="";if(!e||ye(e))return t;for(var r in e){var i=e[r],n=r.startsWith("--")?r:Ve(r);(ye(i)||typeof i=="number"&&Rv(n))&&(t+="".concat(n,":").concat(i,";"))}return t}function Vn(e){var t="";if(ye(e))t=e;else if(oe(e))for(var r=0;r{},Dv=()=>!1,Bv=/^on[^a-z]/,di=e=>Bv.test(e),jn=e=>e.startsWith("onUpdate:"),fe=Object.assign,ys=(e,t)=>{var r=e.indexOf(t);r>-1&&e.splice(r,1)},Fv=Object.prototype.hasOwnProperty,te=(e,t)=>Fv.call(e,t),oe=Array.isArray,mr=e=>_r(e)==="[object Map]",$v=e=>_r(e)==="[object Set]",ae=e=>typeof e=="function",ye=e=>typeof e=="string",Hn=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Ss=e=>De(e)&&ae(e.then)&&ae(e.catch),Wv=Object.prototype.toString,_r=e=>Wv.call(e),Yn=e=>_r(e).slice(8,-1),rt=e=>_r(e)==="[object Object]",zn=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hi=vi(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pi=e=>{var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}},Uv=/-(\w)/g,mt=pi(e=>e.replace(Uv,(t,r)=>r?r.toUpperCase():"")),Vv=/\B([A-Z])/g,Ve=pi(e=>e.replace(Vv,"-$1").toLowerCase()),gi=pi(e=>e.charAt(0).toUpperCase()+e.slice(1)),qn=pi(e=>e?"on".concat(gi(e)):""),br=(e,t)=>!Object.is(e,t),Xn=(e,t)=>{for(var r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},jv=e=>{var t=parseFloat(e);return isNaN(t)?e:t},xs,Hv=()=>xs||(xs=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"||typeof window!="undefined"?window:{}),Kn=0;function Gn(e,...t){var r=Date.now(),i=Kn?r-Kn:0;return Kn=r,"[".concat(r,"][").concat(i,"ms][").concat(e,"]\uFF1A").concat(t.map(n=>JSON.stringify(n)).join(" "))}function Zn(e){return fe({},e.dataset,e.__uniDataset)}function Jn(e){return{passive:e}}function Qn(e){var{id:t,offsetTop:r,offsetLeft:i}=e;return{id:t,dataset:Zn(e),offsetTop:r,offsetLeft:i}}function Yv(e,t,r){var i=document.fonts;if(i){var n=new FontFace(e,t,r);return n.load().then(()=>{i.add&&i.add(n)})}return new Promise(a=>{var o=document.createElement("style"),s=[];if(r){var{style:l,weight:u,stretch:v,unicodeRange:h,variant:_,featureSettings:d}=r;l&&s.push("font-style:".concat(l)),u&&s.push("font-weight:".concat(u)),v&&s.push("font-stretch:".concat(v)),h&&s.push("unicode-range:".concat(h)),_&&s.push("font-variant:".concat(_)),d&&s.push("font-feature-settings:".concat(d))}o.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(s.join(";"),"}"),document.head.appendChild(o),a()})}function zv(e,t){if(ye(e)){var r=document.querySelector(e);r&&(e=r.getBoundingClientRect().top+window.pageYOffset)}e<0&&(e=0);var i=document.documentElement,{clientHeight:n,scrollHeight:a}=i;if(e=Math.min(e,a-n),t===0){i.scrollTop=document.body.scrollTop=e;return}if(window.scrollY!==e){var o=s=>{if(s<=0){window.scrollTo(0,e);return}var l=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+l/s*10),o(s-10)})};o(t)}}function qv(){return typeof __channelId__=="string"&&__channelId__}function Xv(e,t){switch(Yn(t)){case"Function":return"function() { [native code] }";default:return t}}function Kv(e,t,r){if(qv())return r.push(t.replace("at ","uni-app:///")),console[e].apply(console,r);var i=r.map(function(n){var a=_r(n).toLowerCase();if(a==="[object object]"||a==="[object array]")try{n="---BEGIN:JSON---"+JSON.stringify(n,Xv)+"---END:JSON---"}catch{n=a}else if(n===null)n="---NULL---";else if(n===void 0)n="---UNDEFINED---";else{var o=Yn(n).toUpperCase();o==="NUMBER"||o==="BOOLEAN"?n="---BEGIN:"+o+"---"+n+"---END:"+o+"---":n=String(n)}return n});return i.join("---COMMA---")+" "+t}function Gv(e,t,...r){var i=Kv(e,t,r);i&&console[e](i)}function Qt(e){if(typeof e=="function"){if(window.plus)return e();document.addEventListener("plusready",e)}}function Zv(e,t){return t&&(t.capture&&(e+="Capture"),t.once&&(e+="Once"),t.passive&&(e+="Passive")),"on".concat(gi(mt(e)))}var Ts=/(?:Once|Passive|Capture)$/;function ea(e){var t;if(Ts.test(e)){t={};for(var r;r=e.match(Ts);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Ve(e.slice(2)),t]}var ta={stop:1,prevent:1<<1,self:1<<2},Es="class",ra="style",Jv="innerHTML",Qv="textContent",_i=".vShow",Cs=".vOwnerId",Os=".vRenderjs",ia="change:",Ms=1,ed=2,td=3,rd=5,id=6,nd=7,ad=8,od=9,sd=10,ld=12,ud=15,fd=20;function cd(e){var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}}function vd(e){return cd(e)}function na(e,t=null){var r;return(...i)=>(e&&(r=e.apply(t,i),e=null),r)}function Is(e,t){var r=t.split("."),i=r[0];return e||(e={}),r.length===1?e[i]:Is(e[i],r.slice(1).join("."))}function dd(e,t){var r,i=function(){clearTimeout(r);var n=()=>e.apply(this,arguments);r=setTimeout(n,t)};return i.cancel=function(){clearTimeout(r)},i}var As=44,bi="#007aff",hd=/^([a-z-]+:)?\/\//i,pd=/^data:.*,.*/,Ps="wxs://",Rs="json://",gd="wxsModules",md="renderjsModules",_d="onPageScroll",bd="onReachBottom",wd="onWxsInvokeCallMethod",yd=Array.isArray,Sd=e=>e!==null&&typeof e=="object",xd=["{","}"];class Td{constructor(){this._caches=Object.create(null)}interpolate(t,r,i=xd){if(!r)return[t];var n=this._caches[t];return n||(n=Od(t,i),this._caches[t]=n),Md(n,r)}}var Ed=/^(?:\d)+/,Cd=/^(?:\w)+/;function Od(e,[t,r]){for(var i=[],n=0,a="";nId.call(e,t),Ad=new Td;function Pd(e,t){return!!t.find(r=>e.indexOf(r)!==-1)}function Rd(e,t){return t.find(r=>e.indexOf(r)===0)}function Ns(e,t){if(!!e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e.indexOf("zh")===0)return e.indexOf("-hans")>-1?wi:e.indexOf("-hant")>-1||Pd(e,["-tw","-hk","-mo","-cht"])?yi:wi;var r=Rd(e,[_t,aa,oa]);if(r)return r}}class Ld{constructor({locale:t,fallbackLocale:r,messages:i,watcher:n,formater:a}){this.locale=_t,this.fallbackLocale=_t,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=a||Ad,this.messages=i||{},this.setLocale(t||_t),n&&this.watchLocale(n)}setLocale(t){var r=this.locale;this.locale=Ns(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach(i=>{i(this.locale,r)})}getLocale(){return this.locale}watchLocale(t){var r=this.watchers.push(t)-1;return()=>{this.watchers.splice(r,1)}}add(t,r,i=!0){var n=this.messages[t];n?i?Object.assign(n,r):Object.keys(r).forEach(a=>{Ls(n,a)||(n[a]=r[a])}):this.messages[t]=r}f(t,r,i){return this.formater.interpolate(t,r,i).join("")}t(t,r,i){var n=this.message;return typeof r=="string"?(r=Ns(r,this.messages),r&&(n=this.messages[r])):i=r,Ls(n,t)?this.formater.interpolate(n[t],i).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}function Nd(e,t){e.$watchLocale?e.$watchLocale(r=>{t.setLocale(r)}):e.$watch(()=>e.$locale,r=>{t.setLocale(r)})}function kd(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof window!="undefined"&&window.getLocale?window.getLocale():_t}function Dd(e,t={},r,i){typeof e!="string"&&([e,t]=[t,e]),typeof e!="string"&&(e=kd()),typeof r!="string"&&(r=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||_t);var n=new Ld({locale:e,fallbackLocale:r,messages:t,watcher:i}),a=(o,s)=>{if(typeof getApp!="function")a=function(u,v){return n.t(u,v)};else{var l=!1;a=function(u,v){var h=getApp().$vm;return h&&(h.$locale,l||(l=!0,Nd(h,n))),n.t(u,v)}}return a(o,s)};return{i18n:n,f(o,s,l){return n.f(o,s,l)},t(o,s){return a(o,s)},add(o,s,l=!0){return n.add(o,s,l)},watch(o){return n.watchLocale(o)},getLocale(){return n.getLocale()},setLocale(o){return n.setLocale(o)}}}var sa;function je(){if(!sa){var e;typeof getApp=="function"?e=weex.requireModule("plus").getLanguage():e=plus.webview.currentWebview().getStyle().locale,sa=Dd(e)}return sa}function it(e,t,r){return t.reduce((i,n,a)=>(i[e+n]=r[a],i),{})}var Bd=na(()=>{var e="uni.picker.",t=["done","cancel"];je().add(_t,it(e,t,["Done","Cancel"]),!1),je().add(oa,it(e,t,["OK","Cancelar"]),!1),je().add(aa,it(e,t,["OK","Annuler"]),!1),je().add(wi,it(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1),je().add(yi,it(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1)}),Fd=na(()=>{var e="uni.button.",t=["feedback.title","feedback.send"];je().add(_t,it(e,t,["feedback","send"]),!1),je().add(oa,it(e,t,["realimentaci\xF3n","enviar"]),!1),je().add(aa,it(e,t,["retour d'information","envoyer"]),!1),je().add(wi,it(e,t,["\u95EE\u9898\u53CD\u9988","\u53D1\u9001"]),!1),je().add(yi,it(e,t,["\u554F\u984C\u53CD\u994B","\u767C\u9001"]),!1)}),ks=function(){};ks.prototype={on:function(e,t,r){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var i=this;function n(){i.off(e,n),t.apply(r,arguments)}return n._=t,this.on(e,n,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),i=0,n=r.length;for(i;i{var{subscribe:i,publishHandler:n}=UniViewJSBridge,a=r?Wd++:0;r&&i(Bs+"."+a,r,!0),n(Bs,{id:a,name:e,args:t})},Si=Object.create(null);function xi(e,t){return e+"."+t}function Vd(e,t){UniViewJSBridge.subscribe(xi(e,Ds),t?t(Fs):Fs)}function ft(e,t,r){t=xi(e,t),Si[t]||(Si[t]=r)}function jd(e,t){t=xi(e,t),delete Si[t]}function Fs({id:e,name:t,args:r},i){t=xi(i,t);var n=o=>{e&&UniViewJSBridge.publishHandler(Ds+"."+e,o)},a=Si[t];a?a(r,n):n({})}var Hd=fe($d("service"),{invokeServiceMethod:Ud}),Yd=350,$s=10,Ti=Jn(!0),wr;function yr(){wr&&(clearTimeout(wr),wr=null)}var Ws=0,Us=0;function zd(e){if(yr(),e.touches.length===1){var{pageX:t,pageY:r}=e.touches[0];Ws=t,Us=r,wr=setTimeout(function(){var i=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});i.touches=e.touches,i.changedTouches=e.changedTouches,e.target.dispatchEvent(i)},Yd)}}function qd(e){if(!!wr){if(e.touches.length!==1)return yr();var{pageX:t,pageY:r}=e.touches[0];if(Math.abs(t-Ws)>$s||Math.abs(r-Us)>$s)return yr()}}function Xd(){window.addEventListener("touchstart",zd,Ti),window.addEventListener("touchmove",qd,Ti),window.addEventListener("touchend",yr,Ti),window.addEventListener("touchcancel",yr,Ti)}function Vs(e,t){var r=Number(e);return isNaN(r)?t:r}function Kd(){var e=/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number",t=e&&Math.abs(window.orientation)===90,r=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,i=Math.min(window.innerWidth,document.documentElement.clientWidth,r)||r;return i}function Gd(){function e(){var t=__uniConfig.globalStyle||{},r=Vs(t.rpxCalcMaxDeviceWidth,960),i=Vs(t.rpxCalcBaseDeviceWidth,375),n=Kd();n=n<=r?n:i,document.documentElement.style.fontSize=n/23.4375+"px"}e(),document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e),window.addEventListener("resize",e)}function Zd(){Gd(),Xd()}var Jd=ei,Qd=function(e,t){return!!e&&Jd(function(){t?e.call(null,function(){},1):e.call(null)})},la=Rn,eh=Yo,js=rs,Hs=ei,ua=[].sort,Ys=[1,2,3];la(la.P+la.F*(Hs(function(){Ys.sort(void 0)})||!Hs(function(){Ys.sort(null)})||!Qd(ua)),"Array",{sort:function(t){return t===void 0?ua.call(js(this)):ua.call(js(this),eh(t))}});var Lt,Ei=[];class th{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Lt&&(this.parent=Lt,this.index=(Lt.scopes||(Lt.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(Ei.push(this),Lt=this)}off(){this.active&&(Ei.pop(),Lt=Ei[Ei.length-1])}stop(t){if(this.active){if(this.effects.forEach(i=>i.stop()),this.cleanups.forEach(i=>i()),this.scopes&&this.scopes.forEach(i=>i.stop(!0)),this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function rh(e,t){t=t||Lt,t&&t.active&&t.effects.push(e)}var fa=e=>{var t=new Set(e);return t.w=0,t.n=0,t},zs=e=>(e.w&bt)>0,qs=e=>(e.n&bt)>0,ih=({deps:e})=>{if(e.length)for(var t=0;t{var{deps:t}=e;if(t.length){for(var r=0,i=0;i0?xr[t-1]:void 0}}stop(){this.active&&(Xs(this),this.onStop&&this.onStop(),this.active=!1)}}function Xs(e){var{deps:t}=e;if(t.length){for(var r=0;r{(h==="length"||h>=i)&&s.push(v)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":oe(e)?zn(r)&&s.push(o.get("length")):(s.push(o.get(kt)),mr(e)&&s.push(o.get(da)));break;case"delete":oe(e)||(s.push(o.get(kt)),mr(e)&&s.push(o.get(da)));break;case"set":mr(e)&&s.push(o.get(kt));break}if(s.length===1)s[0]&&ga(s[0]);else{var l=[];for(var u of s)u&&l.push(...u);ga(fa(l))}}}function ga(e,t){for(var r of oe(e)?e:[...e])(r!==Nt||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}var oh=vi("__proto__,__v_isRef,__isVue"),Zs=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Hn)),sh=ma(),lh=ma(!1,!0),uh=ma(!0),Js=fh();function fh(){var e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){for(var i=pe(this),n=0,a=this.length;n{e[t]=function(...r){tr();var i=pe(this)[t].apply(this,r);return Dt(),i}}),e}function ma(e=!1,t=!1){return function(i,n,a){if(n==="__v_isReactive")return!e;if(n==="__v_isReadonly")return e;if(n==="__v_raw"&&a===(e?t?Ch:sl:t?ol:al).get(i))return i;var o=oe(i);if(!e&&o&&te(Js,n))return Reflect.get(Js,n,a);var s=Reflect.get(i,n,a);if((Hn(n)?Zs.has(n):oh(n))||(e||He(i,"get",n),t))return s;if(We(s)){var l=!o||!zn(n);return l?s.value:s}return De(s)?e?ll(s):Te(s):s}}var ch=Qs(),vh=Qs(!0);function Qs(e=!1){return function(r,i,n,a){var o=r[i];if(!e&&(n=pe(n),o=pe(o),!oe(r)&&We(o)&&!We(n)))return o.value=n,!0;var s=oe(r)&&zn(i)?Number(i)e,Ci=e=>Reflect.getPrototypeOf(e);function Oi(e,t,r=!1,i=!1){e=e.__v_raw;var n=pe(e),a=pe(t);t!==a&&!r&&He(n,"get",t),!r&&He(n,"get",a);var{has:o}=Ci(n),s=i?_a:r?ya:Tr;if(o.call(n,t))return s(e.get(t));if(o.call(n,a))return s(e.get(a));e!==n&&e.get(t)}function Mi(e,t=!1){var r=this.__v_raw,i=pe(r),n=pe(e);return e!==n&&!t&&He(i,"has",e),!t&&He(i,"has",n),e===n?r.has(e):r.has(e)||r.has(n)}function Ii(e,t=!1){return e=e.__v_raw,!t&&He(pe(e),"iterate",kt),Reflect.get(e,"size",e)}function tl(e){e=pe(e);var t=pe(this),r=Ci(t),i=r.has.call(t,e);return i||(t.add(e),ct(t,"add",e,e)),this}function rl(e,t){t=pe(t);var r=pe(this),{has:i,get:n}=Ci(r),a=i.call(r,e);a||(e=pe(e),a=i.call(r,e));var o=n.call(r,e);return r.set(e,t),a?br(t,o)&&ct(r,"set",e,t):ct(r,"add",e,t),this}function il(e){var t=pe(this),{has:r,get:i}=Ci(t),n=r.call(t,e);n||(e=pe(e),n=r.call(t,e)),i&&i.call(t,e);var a=t.delete(e);return n&&ct(t,"delete",e,void 0),a}function nl(){var e=pe(this),t=e.size!==0,r=e.clear();return t&&ct(e,"clear",void 0,void 0),r}function Ai(e,t){return function(i,n){var a=this,o=a.__v_raw,s=pe(o),l=t?_a:e?ya:Tr;return!e&&He(s,"iterate",kt),o.forEach((u,v)=>i.call(n,l(u),l(v),a))}}function Pi(e,t,r){return function(...i){var n=this.__v_raw,a=pe(n),o=mr(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=n[e](...i),v=r?_a:t?ya:Tr;return!t&&He(a,"iterate",l?da:kt),{next(){var{value:h,done:_}=u.next();return _?{value:h,done:_}:{value:s?[v(h[0]),v(h[1])]:v(h),done:_}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return e==="delete"?!1:this}}function _h(){var e={get(a){return Oi(this,a)},get size(){return Ii(this)},has:Mi,add:tl,set:rl,delete:il,clear:nl,forEach:Ai(!1,!1)},t={get(a){return Oi(this,a,!1,!0)},get size(){return Ii(this)},has:Mi,add:tl,set:rl,delete:il,clear:nl,forEach:Ai(!1,!0)},r={get(a){return Oi(this,a,!0)},get size(){return Ii(this,!0)},has(a){return Mi.call(this,a,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Ai(!0,!1)},i={get(a){return Oi(this,a,!0,!0)},get size(){return Ii(this,!0)},has(a){return Mi.call(this,a,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Ai(!0,!0)},n=["keys","values","entries",Symbol.iterator];return n.forEach(a=>{e[a]=Pi(a,!1,!1),r[a]=Pi(a,!0,!1),t[a]=Pi(a,!1,!0),i[a]=Pi(a,!0,!0)}),[e,r,t,i]}var[bh,wh,yh,Sh]=_h();function ba(e,t){var r=t?e?Sh:yh:e?wh:bh;return(i,n,a)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(te(r,n)&&n in i?r:i,n,a)}var xh={get:ba(!1,!1)},Th={get:ba(!1,!0)},Eh={get:ba(!0,!1)},al=new WeakMap,ol=new WeakMap,sl=new WeakMap,Ch=new WeakMap;function Oh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mh(e){return e.__v_skip||!Object.isExtensible(e)?0:Oh(Yn(e))}function Te(e){return e&&e.__v_isReadonly?e:wa(e,!1,el,xh,al)}function Ih(e){return wa(e,!1,mh,Th,ol)}function ll(e){return wa(e,!0,gh,Eh,sl)}function wa(e,t,r,i,n){if(!De(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;var a=n.get(e);if(a)return a;var o=Mh(e);if(o===0)return e;var s=new Proxy(e,o===2?i:r);return n.set(e,s),s}function rr(e){return ul(e)?rr(e.__v_raw):!!(e&&e.__v_isReactive)}function ul(e){return!!(e&&e.__v_isReadonly)}function fl(e){return rr(e)||ul(e)}function pe(e){var t=e&&e.__v_raw;return t?pe(t):e}function Ri(e){return mi(e,"__v_skip",!0),e}var Tr=e=>De(e)?Te(e):e,ya=e=>De(e)?ll(e):e;function cl(e){Ks()&&(e=pe(e),e.dep||(e.dep=fa()),Gs(e.dep))}function vl(e,t){e=pe(e),e.dep&&ga(e.dep)}function We(e){return Boolean(e&&e.__v_isRef===!0)}function B(e){return dl(e,!1)}function Sa(e){return dl(e,!0)}function dl(e,t){return We(e)?e:new Ah(e,t)}class Ah{constructor(t,r){this._shallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:pe(t),this._value=r?t:Tr(t)}get value(){return cl(this),this._value}set value(t){t=this._shallow?t:pe(t),br(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Tr(t),vl(this))}}function Ph(e){return We(e)?e.value:e}var Rh={get:(e,t,r)=>Ph(Reflect.get(e,t,r)),set:(e,t,r,i)=>{var n=e[t];return We(n)&&!We(r)?(n.value=r,!0):Reflect.set(e,t,r,i)}};function hl(e){return rr(e)?e:new Proxy(e,Rh)}class Lh{constructor(t,r,i){this._setter=r,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new ha(t,()=>{this._dirty||(this._dirty=!0,vl(this))}),this.__v_isReadonly=i}get value(){var t=pe(this);return cl(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Q(e,t){var r,i,n=ae(e);n?(r=e,i=Je):(r=e.get,i=e.set);var a=new Lh(r,i,n||!i);return a}function Nh(e,t,...r){var i=e.vnode.props||be,n=r,a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in i){var s="".concat(o==="modelValue"?"model":o,"Modifiers"),{number:l,trim:u}=i[s]||be;u?n=r.map(d=>d.trim()):l&&(n=r.map(jv))}var v,h=i[v=qn(t)]||i[v=qn(mt(t))];!h&&a&&(h=i[v=qn(Ve(t))]),h&&et(h,e,6,n);var _=i[v+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[v])return;e.emitted[v]=!0,et(_,e,6,n)}}function pl(e,t,r=!1){var i=t.emitsCache,n=i.get(e);if(n!==void 0)return n;var a=e.emits,o={},s=!1;if(!ae(e)){var l=u=>{var v=pl(u,t,!0);v&&(s=!0,fe(o,v))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(i.set(e,null),null):(oe(a)?a.forEach(u=>o[u]=null):fe(o,a),i.set(e,o),o)}function xa(e,t){return!e||!di(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Ve(t))||te(e,t))}var Qe=null,gl=null;function Li(e){var t=Qe;return Qe=e,gl=e&&e.type.__scopeId||null,t}function kh(e,t=Qe,r){if(!t||e._n)return e;var i=(...n)=>{i._d&&Fl(-1);var a=Li(t),o=e(...n);return Li(a),i._d&&Fl(1),o};return i._n=!0,i._c=!0,i._d=!0,i}function sy(){}function Ta(e){var{type:t,vnode:r,proxy:i,withProxy:n,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:v,renderCache:h,data:_,setupState:d,ctx:b,inheritAttrs:m}=e,p,c,w=Li(e);try{if(r.shapeFlag&4){var f=n||i;p=ot(v.call(f,f,h,a,d,_,b)),c=l}else{var g=t;p=ot(g.length>1?g(a,{attrs:l,slots:s,emit:u}):g(a,null)),c=t.props?l:Dh(l)}}catch(C){Ui(C,e,1),p=M(Cr)}var S=p;if(c&&m!==!1){var x=Object.keys(c),{shapeFlag:E}=S;x.length&&E&(1|6)&&(o&&x.some(jn)&&(c=Bh(c,o)),S=Mr(S,c))}return r.dirs&&(S.dirs=S.dirs?S.dirs.concat(r.dirs):r.dirs),r.transition&&(S.transition=r.transition),p=S,Li(w),p}var Dh=e=>{var t;for(var r in e)(r==="class"||r==="style"||di(r))&&((t||(t={}))[r]=e[r]);return t},Bh=(e,t)=>{var r={};for(var i in e)(!jn(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function Fh(e,t,r){var{props:i,children:n,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return i?ml(i,o,u):!!o;if(l&8)for(var v=t.dynamicProps,h=0;he.__isSuspense;function Uh(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):Pp(e)}function Ne(e,t){if(ke){var r=ke.provides,i=ke.parent&&ke.parent.provides;i===r&&(r=ke.provides=Object.create(i)),r[e]=t}}function ge(e,t,r=!1){var i=ke||Qe;if(i){var n=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(n&&e in n)return n[e];if(arguments.length>1)return r&&ae(t)?t.call(i.proxy):t}}function Vh(e){return ae(e)?{setup:e,name:e.name}:e}var Ea=e=>!!e.type.__asyncLoader,_l=e=>e.type.__isKeepAlive;function Ca(e,t){bl(e,"a",t)}function jh(e,t){bl(e,"da",t)}function bl(e,t,r=ke){var i=e.__wdc||(e.__wdc=()=>{for(var a=r;a;){if(a.isDeactivated)return;a=a.parent}e()});if(Ni(t,i,r),r)for(var n=r.parent;n&&n.parent;)_l(n.parent.vnode)&&Hh(i,t,r,n),n=n.parent}function Hh(e,t,r,i){var n=Ni(t,e,i,!0);yt(()=>{ys(i[t],n)},r)}function Ni(e,t,r=ke,i=!1){if(r){var n=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(!r.isUnmounted){tr(),ir(r);var s=et(t,r,e,o);return $t(),Dt(),s}});return i?n.unshift(a):n.push(a),a}}var vt=e=>(t,r=ke)=>(!Wi||e==="sp")&&Ni(e,t,r),wl=vt("bm"),Oe=vt("m"),Yh=vt("bu"),zh=vt("u"),Ee=vt("bum"),yt=vt("um"),qh=vt("sp"),Xh=vt("rtg"),Kh=vt("rtc");function Gh(e,t=ke){Ni("ec",e,t)}var Oa=!0;function Zh(e){var t=xl(e),r=e.proxy,i=e.ctx;Oa=!1,t.beforeCreate&&yl(t.beforeCreate,e,"bc");var{data:n,computed:a,methods:o,watch:s,provide:l,inject:u,created:v,beforeMount:h,mounted:_,beforeUpdate:d,updated:b,activated:m,deactivated:p,beforeDestroy:c,beforeUnmount:w,destroyed:f,unmounted:g,render:S,renderTracked:x,renderTriggered:E,errorCaptured:C,serverPrefetch:L,expose:W,inheritAttrs:q,components:X,directives:ce,filters:A}=t,$=null;if(u&&Jh(u,i,$,e.appContext.config.unwrapInjectedRef),o)for(var ee in o){var ne=o[ee];ae(ne)&&(i[ee]=ne.bind(r))}if(n&&function(){var le=n.call(r,r);De(le)&&(e.data=Te(le))}(),Oa=!0,a){var H=function(le){var ve=a[le],Me=ae(ve)?ve.bind(r,r):ae(ve.get)?ve.get.bind(r,r):Je,Ce=!ae(ve)&&ae(ve.set)?ve.set.bind(r):Je,Ge=Q({get:Me,set:Ce});Object.defineProperty(i,le,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:At=>Ge.value=At})};for(var J in a)H(J)}if(s)for(var ie in s)Sl(s[ie],i,r,ie);if(l){var we=ae(l)?l.call(r):l;Reflect.ownKeys(we).forEach(le=>{Ne(le,we[le])})}v&&yl(v,e,"c");function Y(le,ve){oe(ve)?ve.forEach(Me=>le(Me.bind(r))):ve&&le(ve.bind(r))}if(Y(wl,h),Y(Oe,_),Y(Yh,d),Y(zh,b),Y(Ca,m),Y(jh,p),Y(Gh,C),Y(Kh,x),Y(Xh,E),Y(Ee,w),Y(yt,g),Y(qh,L),oe(W))if(W.length){var re=e.exposed||(e.exposed={});W.forEach(le=>{Object.defineProperty(re,le,{get:()=>r[le],set:ve=>r[le]=ve})})}else e.exposed||(e.exposed={});S&&e.render===Je&&(e.render=S),q!=null&&(e.inheritAttrs=q),X&&(e.components=X),ce&&(e.directives=ce)}function Jh(e,t,r=Je,i=!1){oe(e)&&(e=Ma(e));var n=function(o){var s=e[o],l=void 0;De(s)?"default"in s?l=ge(s.from||o,s.default,!0):l=ge(s.from||o):l=ge(s),We(l)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[o]=l};for(var a in e)n(a)}function yl(e,t,r){et(oe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function Sl(e,t,r,i){var n=i.includes(".")?Zl(r,i):()=>r[i];if(ye(e)){var a=t[e];ae(a)&&U(n,a)}else if(ae(e))U(n,e.bind(r));else if(De(e))if(oe(e))e.forEach(s=>Sl(s,t,r,i));else{var o=ae(e.handler)?e.handler.bind(r):t[e.handler];ae(o)&&U(n,o,e)}}function xl(e){var t=e.type,{mixins:r,extends:i}=t,{mixins:n,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),l;return s?l=s:!n.length&&!r&&!i?l=t:(l={},n.length&&n.forEach(u=>ki(l,u,o,!0)),ki(l,t,o)),a.set(t,l),l}function ki(e,t,r,i=!1){var{mixins:n,extends:a}=t;a&&ki(e,a,r,!0),n&&n.forEach(l=>ki(e,l,r,!0));for(var o in t)if(!(i&&o==="expose")){var s=Qh[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Qh={data:Tl,props:Bt,emits:Bt,methods:Bt,computed:Bt,beforeCreate:Fe,created:Fe,beforeMount:Fe,mounted:Fe,beforeUpdate:Fe,updated:Fe,beforeDestroy:Fe,beforeUnmount:Fe,destroyed:Fe,unmounted:Fe,activated:Fe,deactivated:Fe,errorCaptured:Fe,serverPrefetch:Fe,components:Bt,directives:Bt,watch:tp,provide:Tl,inject:ep};function Tl(e,t){return t?e?function(){return fe(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function ep(e,t){return Bt(Ma(e),Ma(t))}function Ma(e){if(oe(e)){for(var t={},r=0;r0)&&!(o&16)){if(o&8)for(var v=e.vnode.dynamicProps,h=0;h{l=!0;var[g,S]=Cl(f,t,!0);fe(o,g),S&&s.push(...S)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return i.set(e,gr),gr;if(oe(a))for(var v=0;v-1,m[1]=c<0||p-1||te(m,"default"))&&s.push(d)}}}var w=[o,s];return i.set(e,w),w}function Ol(e){return e[0]!=="$"}function Ml(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Il(e,t){return Ml(e)===Ml(t)}function Al(e,t){return oe(t)?t.findIndex(r=>Il(r,e)):ae(t)&&Il(t,e)?0:-1}var Pl=e=>e[0]==="_"||e==="$stable",Aa=e=>oe(e)?e.map(ot):[ot(e)],np=(e,t,r)=>{var i=kh((...n)=>Aa(t(...n)),r);return i._c=!1,i},Rl=(e,t,r)=>{var i=e._ctx;for(var n in e)if(!Pl(n)){var a=e[n];ae(a)?t[n]=np(n,a,i):a!=null&&function(){var o=Aa(a);t[n]=()=>o}()}},Ll=(e,t)=>{var r=Aa(t);e.slots.default=()=>r},ap=(e,t)=>{if(e.vnode.shapeFlag&32){var r=t._;r?(e.slots=pe(t),mi(t,"_",r)):Rl(t,e.slots={})}else e.slots={},t&&Ll(e,t);mi(e.slots,Bi,1)},op=(e,t,r)=>{var{vnode:i,slots:n}=e,a=!0,o=be;if(i.shapeFlag&32){var s=t._;s?r&&s===1?a=!1:(fe(n,t),!r&&s===1&&delete n._):(a=!t.$stable,Rl(t,n)),o=t}else t&&(Ll(e,t),o={default:1});if(a)for(var l in n)!Pl(l)&&!(l in o)&&delete n[l]};function Er(e,t){var r=Qe;if(r===null)return e;for(var i=r.proxy,n=e.dirs||(e.dirs=[]),a=0;a{if(y!==T){y&&!Or(y,T)&&(P=Ge(y),re(y,R,F,!0),y=null),T.patchFlag===-2&&(k=!1,T.dynamicChildren=null);var{type:N,ref:Z,shapeFlag:G}=T;switch(N){case Ra:c(y,T,I,P);break;case Cr:w(y,T,I,P);break;case La:y==null&&f(T,I,P,V);break;case at:ce(y,T,I,P,R,F,V,D,k);break;default:G&1?x(y,T,I,P,R,F,V,D,k):G&6?A(y,T,I,P,R,F,V,D,k):(G&64||G&128)&&N.process(y,T,I,P,R,F,V,D,k,Ie)}Z!=null&&R&&Pa(Z,y&&y.ref,F,T||y,!T)}},c=(y,T,I,P)=>{if(y==null)i(T.el=s(T.children),I,P);else{var R=T.el=y.el;T.children!==y.children&&u(R,T.children)}},w=(y,T,I,P)=>{y==null?i(T.el=l(T.children||""),I,P):T.el=y.el},f=(y,T,I,P)=>{[y.el,y.anchor]=m(y.children,T,I,P)},g=({el:y,anchor:T},I,P)=>{for(var R;y&&y!==T;)R=_(y),i(y,I,P),y=R;i(T,I,P)},S=({el:y,anchor:T})=>{for(var I;y&&y!==T;)I=_(y),n(y),y=I;n(T)},x=(y,T,I,P,R,F,V,D,k)=>{V=V||T.type==="svg",y==null?E(T,I,P,R,F,V,D,k):W(y,T,R,F,V,D,k)},E=(y,T,I,P,R,F,V,D)=>{var k,N,{type:Z,props:G,shapeFlag:K,transition:ue,patchFlag:Re,dirs:Se}=y;if(y.el&&b!==void 0&&Re===-1)k=y.el=b(y.el);else{if(k=y.el=o(y.type,F,G&&G.is,G),K&8?v(k,y.children):K&16&&L(y.children,k,null,P,R,F&&Z!=="foreignObject",V,D),Se&&Ft(y,null,P,"created"),G){for(var O in G)O!=="value"&&!hi(O)&&a(k,O,null,G[O],F,y.children,P,R,Ce);"value"in G&&a(k,"value",null,G.value),(N=G.onVnodeBeforeMount)&&nt(N,P,y)}C(k,y,y.scopeId,V,P)}Object.defineProperty(k,"__vueParentComponent",{value:P,enumerable:!1}),Se&&Ft(y,null,P,"beforeMount");var j=(!R||R&&!R.pendingBranch)&&ue&&!ue.persisted;j&&ue.beforeEnter(k),i(k,T,I),((N=G&&G.onVnodeMounted)||j||Se)&&$e(()=>{N&&nt(N,P,y),j&&ue.enter(k),Se&&Ft(y,null,P,"mounted")},R)},C=(y,T,I,P,R)=>{if(I&&d(y,I),P)for(var F=0;F{for(var N=k;N{var D=T.el=y.el,{patchFlag:k,dynamicChildren:N,dirs:Z}=T;k|=y.patchFlag&16;var G=y.props||be,K=T.props||be,ue;(ue=K.onVnodeBeforeUpdate)&&nt(ue,I,T,y),Z&&Ft(T,y,I,"beforeUpdate");var Re=R&&T.type!=="foreignObject";if(N?q(y.dynamicChildren,N,D,I,P,Re,F):V||J(y,T,D,null,I,P,Re,F,!1),k>0){if(k&16)X(D,T,G,K,I,P,R);else if(k&2&&G.class!==K.class&&a(D,"class",null,K.class,R),k&4&&a(D,"style",G.style,K.style,R),k&8)for(var Se=T.dynamicProps,O=0;O{ue&&nt(ue,I,T,y),Z&&Ft(T,y,I,"updated")},P)},q=(y,T,I,P,R,F,V)=>{for(var D=0;D{if(I!==P){for(var D in P)if(!hi(D)){var k=P[D],N=I[D];k!==N&&D!=="value"&&a(y,D,N,k,V,T.children,R,F,Ce)}if(I!==be)for(var Z in I)!hi(Z)&&!(Z in P)&&a(y,Z,I[Z],null,V,T.children,R,F,Ce);"value"in P&&a(y,"value",I.value,P.value)}},ce=(y,T,I,P,R,F,V,D,k)=>{var N=T.el=y?y.el:s(""),Z=T.anchor=y?y.anchor:s(""),{patchFlag:G,dynamicChildren:K,slotScopeIds:ue}=T;ue&&(D=D?D.concat(ue):ue),y==null?(i(N,I,P),i(Z,I,P),L(T.children,I,Z,R,F,V,D,k)):G>0&&G&64&&K&&y.dynamicChildren?(q(y.dynamicChildren,K,I,R,F,V,D),(T.key!=null||R&&T===R.subTree)&&kl(y,T,!0)):J(y,T,I,Z,R,F,V,D,k)},A=(y,T,I,P,R,F,V,D,k)=>{T.slotScopeIds=D,y==null?T.shapeFlag&512?R.ctx.activate(T,I,P,V,k):$(T,I,P,R,F,V,k):ee(y,T,k)},$=(y,T,I,P,R,F,V)=>{var D=y.component=yp(y,P,R);if(_l(y)&&(D.ctx.renderer=Ie),Sp(D),D.asyncDep){if(R&&R.registerDep(D,ne),!y.el){var k=D.subTree=M(Cr);w(null,k,T,I)}return}ne(D,y,T,I,R,F,V)},ee=(y,T,I)=>{var P=T.component=y.component;if(Fh(y,T,I))if(P.asyncDep&&!P.asyncResolved){H(P,T,I);return}else P.next=T,Ip(P.update),P.update();else T.component=y.component,T.el=y.el,P.vnode=T},ne=(y,T,I,P,R,F,V)=>{var D=()=>{if(y.isMounted){var{next:se,bu:Le,u:Ue,parent:Ae,vnode:tt}=y,Pt=se,ut;k.allowRecurse=!1,se?(se.el=tt.el,H(y,se,V)):se=tt,Le&&Xn(Le),(ut=se.props&&se.props.onVnodeBeforeUpdate)&&nt(ut,Ae,se,tt),k.allowRecurse=!0;var Xt=Ta(y),pt=y.subTree;y.subTree=Xt,p(pt,Xt,h(pt.el),Ge(pt),y,R,F),se.el=Xt.el,Pt===null&&$h(y,Xt.el),Ue&&$e(Ue,R),(ut=se.props&&se.props.onVnodeUpdated)&&$e(()=>nt(ut,Ae,se,tt),R)}else{var Z,{el:G,props:K}=T,{bm:ue,m:Re,parent:Se}=y,O=Ea(T);if(k.allowRecurse=!1,ue&&Xn(ue),!O&&(Z=K&&K.onVnodeBeforeMount)&&nt(Z,Se,T),k.allowRecurse=!0,G&&Kr){var j=()=>{y.subTree=Ta(y),Kr(G,y.subTree,y,R,null)};O?T.type.__asyncLoader().then(()=>!y.isUnmounted&&j()):j()}else{var z=y.subTree=Ta(y);p(null,z,I,P,y,R,F),T.el=z.el}if(Re&&$e(Re,R),!O&&(Z=K&&K.onVnodeMounted)){var de=T;$e(()=>nt(Z,Se,de),R)}T.shapeFlag&256&&y.a&&$e(y.a,R),y.isMounted=!0,T=I=P=null}},k=new ha(D,()=>Yl(y.update),y.scope),N=y.update=k.run.bind(k);N.id=y.uid,k.allowRecurse=N.allowRecurse=!0,N()},H=(y,T,I)=>{T.component=y;var P=y.vnode.props;y.vnode=T,y.next=null,ip(y,T.props,P,I),op(y,T.children,I),tr(),Wa(void 0,y.update),Dt()},J=(y,T,I,P,R,F,V,D,k=!1)=>{var N=y&&y.children,Z=y?y.shapeFlag:0,G=T.children,{patchFlag:K,shapeFlag:ue}=T;if(K>0){if(K&128){we(N,G,I,P,R,F,V,D,k);return}else if(K&256){ie(N,G,I,P,R,F,V,D,k);return}}ue&8?(Z&16&&Ce(N,R,F),G!==N&&v(I,G)):Z&16?ue&16?we(N,G,I,P,R,F,V,D,k):Ce(N,R,F,!0):(Z&8&&v(I,""),ue&16&&L(G,I,P,R,F,V,D,k))},ie=(y,T,I,P,R,F,V,D,k)=>{y=y||gr,T=T||gr;var N=y.length,Z=T.length,G=Math.min(N,Z),K;for(K=0;KZ?Ce(y,R,F,!0,!1,G):L(T,I,P,R,F,V,D,k,G)},we=(y,T,I,P,R,F,V,D,k)=>{for(var N=0,Z=T.length,G=y.length-1,K=Z-1;N<=G&&N<=K;){var ue=y[N],Re=T[N]=k?St(T[N]):ot(T[N]);if(Or(ue,Re))p(ue,Re,I,null,R,F,V,D,k);else break;N++}for(;N<=G&&N<=K;){var Se=y[G],O=T[K]=k?St(T[K]):ot(T[K]);if(Or(Se,O))p(Se,O,I,null,R,F,V,D,k);else break;G--,K--}if(N>G){if(N<=K)for(var j=K+1,z=jK)for(;N<=G;)re(y[N],R,F,!0),N++;else{var de=N,se=N,Le=new Map;for(N=se;N<=K;N++){var Ue=T[N]=k?St(T[N]):ot(T[N]);Ue.key!=null&&Le.set(Ue.key,N)}var Ae,tt=0,Pt=K-se+1,ut=!1,Xt=0,pt=new Array(Pt);for(N=0;N=Pt){re(dr,R,F,!0);continue}var Kt=void 0;if(dr.key!=null)Kt=Le.get(dr.key);else for(Ae=se;Ae<=K;Ae++)if(pt[Ae-se]===0&&Or(dr,T[Ae])){Kt=Ae;break}Kt===void 0?re(dr,R,F,!0):(pt[Kt-se]=N+1,Kt>=Xt?Xt=Kt:ut=!0,p(dr,T[Kt],I,null,R,F,V,D,k),tt++)}var Jf=ut?cp(pt):gr;for(Ae=Jf.length-1,N=Pt-1;N>=0;N--){var Lo=se+N,Qf=T[Lo],ec=Lo+1{var{el:F,type:V,transition:D,children:k,shapeFlag:N}=y;if(N&6){Y(y.component.subTree,T,I,P);return}if(N&128){y.suspense.move(T,I,P);return}if(N&64){V.move(y,T,I,Ie);return}if(V===at){i(F,T,I);for(var Z=0;ZD.enter(F),R);else{var{leave:K,delayLeave:ue,afterLeave:Re}=D,Se=()=>i(F,T,I),O=()=>{K(F,()=>{Se(),Re&&Re()})};ue?ue(F,Se,O):O()}else i(F,T,I)},re=(y,T,I,P=!1,R=!1)=>{var{type:F,props:V,ref:D,children:k,dynamicChildren:N,shapeFlag:Z,patchFlag:G,dirs:K}=y;if(D!=null&&Pa(D,null,I,y,!0),Z&256){T.ctx.deactivate(y);return}var ue=Z&1&&K,Re=!Ea(y),Se;if(Re&&(Se=V&&V.onVnodeBeforeUnmount)&&nt(Se,T,y),Z&6)Me(y.component,I,P);else{if(Z&128){y.suspense.unmount(I,P);return}ue&&Ft(y,null,T,"beforeUnmount"),Z&64?y.type.remove(y,T,I,R,Ie,P):N&&(F!==at||G>0&&G&64)?Ce(N,T,I,!1,!0):(F===at&&G&(128|256)||!R&&Z&16)&&Ce(k,T,I),P&&le(y)}(Re&&(Se=V&&V.onVnodeUnmounted)||ue)&&$e(()=>{Se&&nt(Se,T,y),ue&&Ft(y,null,T,"unmounted")},I)},le=y=>{var{type:T,el:I,anchor:P,transition:R}=y;if(T===at){ve(I,P);return}if(T===La){S(y);return}var F=()=>{n(I),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(y.shapeFlag&1&&R&&!R.persisted){var{leave:V,delayLeave:D}=R,k=()=>V(I,F);D?D(y.el,F,k):k()}else F()},ve=(y,T)=>{for(var I;y!==T;)I=_(y),n(y),y=I;n(T)},Me=(y,T,I)=>{var{bum:P,scope:R,update:F,subTree:V,um:D}=y;P&&Xn(P),R.stop(),F&&(F.active=!1,re(V,y,T,I)),D&&$e(D,T),$e(()=>{y.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},Ce=(y,T,I,P=!1,R=!1,F=0)=>{for(var V=F;Vy.shapeFlag&6?Ge(y.component.subTree):y.shapeFlag&128?y.suspense.next():_(y.anchor||y.el),At=(y,T,I)=>{if(y==null)T._vnode&&re(T._vnode,null,null,!0);else{var P=T.__vueParent;p(T._vnode||null,y,T,null,P,null,I)}T._vnode=y},Ie={p,um:re,m:Y,r:le,mt:$,mc:L,pc:J,pbc:q,n:Ge,o:e},Xr,Kr;return t&&([Xr,Kr]=t(Ie)),{render:At,hydrate:Xr,createApp:lp(At,Xr)}}function Pa(e,t,r,i,n=!1){if(oe(e)){e.forEach((b,m)=>Pa(b,t&&(oe(t)?t[m]:t),r,i,n));return}if(!(Ea(i)&&!n)){var a=i.shapeFlag&4?Da(i.component)||i.component.proxy:i.el,o=n?null:a,{i:s,r:l}=e,u=t&&t.r,v=s.refs===be?s.refs={}:s.refs,h=s.setupState;if(u!=null&&u!==l&&(ye(u)?(v[u]=null,te(h,u)&&(h[u]=null)):We(u)&&(u.value=null)),ye(l)){var _=()=>{v[l]=o,te(h,l)&&(h[l]=o)};o?(_.id=-1,$e(_,r)):_()}else if(We(l)){var d=()=>{l.value=o};o?(d.id=-1,$e(d,r)):d()}else ae(l)&&Tt(l,s,12,[o,v])}}function nt(e,t,r,i=null){et(e,t,7,[r,i])}function kl(e,t,r=!1){var i=e.children,n=t.children;if(oe(i)&&oe(n))for(var a=0;a>1,e[r[s]]0&&(t[i]=r[a-1]),r[a]=i)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}var vp=e=>e.__isTeleport,dp=Symbol(),at=Symbol(void 0),Ra=Symbol(void 0),Cr=Symbol(void 0),La=Symbol(void 0),Dl=null,Bl=1;function Fl(e){Bl+=e}function Di(e){return e?e.__v_isVNode===!0:!1}function Or(e,t){return e.type===t.type&&e.key===t.key}var Bi="__vInternal",$l=({key:e})=>e!=null?e:null,Fi=({ref:e})=>e!=null?ye(e)||We(e)||ae(e)?{i:Qe,r:e}:e:null;function hp(e,t=null,r=null,i=0,n=null,a=e===at?0:1,o=!1,s=!1){var l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$l(t),ref:t&&Fi(t),scopeId:gl,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null};return s?(Na(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=ye(r)?8:16),Bl>0&&!o&&Dl&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Dl.push(l),l}var M=pp;function pp(e,t=null,r=null,i=0,n=null,a=!1){if((!e||e===dp)&&(e=Cr),Di(e)){var o=Mr(e,t,!0);return r&&Na(o,r),o}if(Cp(e)&&(e=e.__vccOpts),t){t=gp(t);var{class:s,style:l}=t;s&&!ye(s)&&(t.class=Vn(s)),De(l)&&(fl(l)&&!oe(l)&&(l=fe({},l)),t.style=Un(l))}var u=ye(e)?1:Wh(e)?128:vp(e)?64:De(e)?4:ae(e)?2:0;return hp(e,t,r,i,n,u,a,!0)}function gp(e){return e?fl(e)||Bi in e?fe({},e):e:null}function Mr(e,t,r=!1){var{props:i,ref:n,patchFlag:a,children:o}=e,s=t?Ye(i||{},t):i,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&$l(s),ref:t&&t.ref?r&&n?oe(n)?n.concat(Fi(t)):[n,Fi(t)]:Fi(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==at?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mr(e.ssContent),ssFallback:e.ssFallback&&Mr(e.ssFallback),el:e.el,anchor:e.anchor};return l}function mp(e=" ",t=0){return M(Ra,null,e,t)}function ot(e){return e==null||typeof e=="boolean"?M(Cr):oe(e)?M(at,null,e.slice()):typeof e=="object"?St(e):M(Ra,null,String(e))}function St(e){return e.el===null||e.memo?e:Mr(e)}function Na(e,t){var r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(oe(t))r=16;else if(typeof t=="object")if(i&(1|64)){var n=t.default;n&&(n._c&&(n._d=!1),Na(e,n()),n._c&&(n._d=!0));return}else{r=32;var a=t._;!a&&!(Bi in t)?t._ctx=Qe:a===3&&Qe&&(Qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:Qe},r=32):(t=String(t),i&64?(r=16,t=[mp(t)]):r=8);e.children=t,e.shapeFlag|=r}function Ye(...e){for(var t={},r=0;re?Wl(e)?Da(e)||e.proxy:ka(e.parent):null,$i=fe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ka(e.parent),$root:e=>ka(e.root),$emit:e=>e.emit,$options:e=>xl(e),$forceUpdate:e=>()=>Yl(e.update),$nextTick:e=>or.bind(e.proxy),$watch:e=>Lp.bind(e)}),_p={get({_:e},t){var{ctx:r,setupState:i,data:n,props:a,accessCache:o,type:s,appContext:l}=e,u;if(t[0]!=="$"){var v=o[t];if(v!==void 0)switch(v){case 0:return i[t];case 1:return n[t];case 3:return r[t];case 2:return a[t]}else{if(i!==be&&te(i,t))return o[t]=0,i[t];if(n!==be&&te(n,t))return o[t]=1,n[t];if((u=e.propsOptions[0])&&te(u,t))return o[t]=2,a[t];if(r!==be&&te(r,t))return o[t]=3,r[t];Oa&&(o[t]=4)}}var h=$i[t],_,d;if(h)return t==="$attrs"&&He(e,"get",t),h(e);if((_=s.__cssModules)&&(_=_[t]))return _;if(r!==be&&te(r,t))return o[t]=3,r[t];if(d=l.config.globalProperties,te(d,t))return d[t]},set({_:e},t,r){var{data:i,setupState:n,ctx:a}=e;if(n!==be&&te(n,t))n[t]=r;else if(i!==be&&te(i,t))i[t]=r;else if(te(e.props,t))return!1;return t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:n,propsOptions:a}},o){var s;return r[o]!==void 0||e!==be&&te(e,o)||t!==be&&te(t,o)||(s=a[0])&&te(s,o)||te(i,o)||te($i,o)||te(n.config.globalProperties,o)}},bp=Nl(),wp=0;function yp(e,t,r){var i=e.type,n=(t?t.appContext:e.appContext)||bp,a={uid:wp++,vnode:e,type:i,parent:t,appContext:n,root:null,next:null,subTree:null,update:null,scope:new th(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Cl(i,n),emitsOptions:pl(i,n),emit:null,emitted:null,propsDefaults:be,inheritAttrs:i.inheritAttrs,ctx:be,data:be,props:be,attrs:be,slots:be,refs:be,setupState:be,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Nh.bind(null,a),e.ce&&e.ce(a),a}var ke=null,xt=()=>ke||Qe,ir=e=>{ke=e,e.scope.on()},$t=()=>{ke&&ke.scope.off(),ke=null};function Wl(e){return e.vnode.shapeFlag&4}var Wi=!1;function Sp(e,t=!1){Wi=t;var{props:r,children:i}=e.vnode,n=Wl(e);rp(e,r,n,t),ap(e,i);var a=n?xp(e,t):void 0;return Wi=!1,a}function xp(e,t){var r=e.type;e.accessCache=Object.create(null),e.proxy=Ri(new Proxy(e.ctx,_p));var{setup:i}=r;if(i){var n=e.setupContext=i.length>1?Ep(e):null;ir(e),tr();var a=Tt(i,e,0,[e.props,n]);if(Dt(),$t(),Ss(a)){if(a.then($t,$t),t)return a.then(o=>{Ul(e,o,t)}).catch(o=>{Ui(o,e,0)});e.asyncDep=a}else Ul(e,a,t)}else jl(e,t)}function Ul(e,t,r){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)&&(e.setupState=hl(t)),jl(e,r)}var Vl;function jl(e,t,r){var i=e.type;if(!e.render){if(!t&&Vl&&!i.render){var n=i.template;if(n){var{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=i,u=fe(fe({isCustomElement:a,delimiters:s},o),l);i.render=Vl(n,u)}}e.render=i.render||Je}ir(e),tr(),Zh(e),Dt(),$t()}function Tp(e){return new Proxy(e.attrs,{get(t,r){return He(e,"get","$attrs"),t[r]}})}function Ep(e){var t=i=>{e.exposed=i||{}},r;return{get attrs(){return r||(r=Tp(e))},slots:e.slots,emit:e.emit,expose:t}}function Da(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(hl(Ri(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in $i)return $i[r](e)}}))}function Cp(e){return ae(e)&&"__vccOpts"in e}function Tt(e,t,r,i){var n;try{n=i?e(...i):e()}catch(a){Ui(a,t,r)}return n}function et(e,t,r,i){if(ae(e)){var n=Tt(e,t,r,i);return n&&Ss(n)&&n.catch(s=>{Ui(s,t,r)}),n}for(var a=[],o=0;o>>1,n=Rr(ze[i]);ndt&&ze.splice(t,1)}function ql(e,t,r,i){oe(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?i+1:i))&&r.push(e),zl()}function Ap(e){ql(e,Ar,Ir,nr)}function Pp(e){ql(e,Et,Pr,ar)}function Wa(e,t=null){if(Ir.length){for($a=t,Ar=[...new Set(Ir)],Ir.length=0,nr=0;nrRr(r)-Rr(i)),ar=0;are.id==null?1/0:e.id;function Kl(e){Ba=!1,Vi=!0,Wa(e),ze.sort((i,n)=>Rr(i)-Rr(n));var t=Je;try{for(dt=0;dte.value,u=!!e._shallow):rr(e)?(l=()=>e,i=!0):oe(e)?(v=!0,u=e.some(rr),l=()=>e.map(w=>{if(We(w))return w.value;if(rr(w))return Wt(w);if(ae(w))return Tt(w,s,2)})):ae(e)?t?l=()=>Tt(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return _&&_(),et(e,s,3,[d])}:l=Je,t&&i){var h=l;l=()=>Wt(h())}var _,d=w=>{_=c.onStop=()=>{Tt(w,s,4)}};if(Wi)return d=Je,t?r&&et(t,s,3,[l(),v?[]:void 0,d]):l(),Je;var b=v?[]:Gl,m=()=>{if(!!c.active)if(t){var w=c.run();(i||u||(v?w.some((f,g)=>br(f,b[g])):br(w,b)))&&(_&&_(),et(t,s,3,[w,b===Gl?void 0:b,d]),b=w)}else c.run()};m.allowRecurse=!!t;var p;n==="sync"?p=m:n==="post"?p=()=>$e(m,s&&s.suspense):p=()=>{!s||s.isMounted?Ap(m):m()};var c=new ha(l,p);return t?r?m():b=c.run():n==="post"?$e(c.run.bind(c),s&&s.suspense):c.run(),()=>{c.stop(),s&&s.scope&&ys(s.scope.effects,c)}}function Lp(e,t,r){var i=this.proxy,n=ye(e)?e.includes(".")?Zl(i,e):()=>i[e]:e.bind(i,i),a;ae(t)?a=t:(a=t.handler,r=t);var o=ke;ir(this);var s=Ua(n,a.bind(i),r);return o?ir(o):$t(),s}function Zl(e,t){var r=t.split(".");return()=>{for(var i=e,n=0;n{Wt(n,t)});else if(rt(e))for(var i in e)Wt(e[i],t);return e}function Np(e,t,r){var i=arguments.length;return i===2?De(t)&&!oe(t)?Di(t)?M(e,null,[t]):M(e,t):M(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Di(r)&&(r=[r]),M(e,t,r))}var kp="3.2.20",Dp="http://www.w3.org/2000/svg",sr=typeof document!="undefined"?document:null,Jl=new Map,Bp={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{var n=t?sr.createElementNS(Dp,e):sr.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>sr.createTextNode(e),createComment:e=>sr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,i){var n=r?r.previousSibling:t.lastChild,a=Jl.get(e);if(!a){var o=sr.createElement("template");if(o.innerHTML=i?"".concat(e,""):e,a=o.content,i){for(var s=a.firstChild;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}Jl.set(e,a)}return t.insertBefore(a.cloneNode(!0),r),[n?n.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function Fp(e,t,r){var i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function $p(e,t,r){var i=e.style,n=i.display;if(!r)e.removeAttribute("style");else if(ye(r))t!==r&&(i.cssText=r);else{for(var a in r)Va(i,a,r[a]);if(t&&!ye(t))for(var o in t)r[o]==null&&Va(i,o,"")}"_vod"in e&&(i.display=n)}var Ql=/\s*!important$/;function Va(e,t,r){if(oe(r))r.forEach(n=>Va(e,t,n));else if(r=Vp(r),t.startsWith("--"))e.setProperty(t,r);else{var i=Wp(e,t);Ql.test(r)?e.setProperty(Ve(i),r.replace(Ql,""),"important"):e[i]=r}}var eu=["Webkit","Moz","ms"],ja={};function Wp(e,t){var r=ja[t];if(r)return r;var i=mt(t);if(i!=="filter"&&i in e)return ja[t]=i;i=gi(i);for(var n=0;ntypeof rpx2px!="function"?e:ye(e)?e.replace(Up,(t,r)=>rpx2px(r)+"px"):e,tu="http://www.w3.org/1999/xlink";function jp(e,t,r,i,n){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(tu,t.slice(6,t.length)):e.setAttributeNS(tu,t,r);else{var a=Pv(t);r==null||a&&!bs(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function Hp(e,t,r,i,n,a,o){if(t==="innerHTML"||t==="textContent"){i&&o(i,n,a),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"){e._value=r;var s=r==null?"":r;e.value!==s&&(e.value=s),r==null&&e.removeAttribute(t);return}if(r===""||r==null){var l=typeof e[t];if(l==="boolean"){e[t]=bs(r);return}else if(r==null&&l==="string"){e[t]="",e.removeAttribute(t);return}else if(l==="number"){try{e[t]=0}catch{}e.removeAttribute(t);return}}try{e[t]=r}catch{}}var ji=Date.now,ru=!1;if(typeof window!="undefined"){ji()>document.createEvent("Event").timeStamp&&(ji=()=>performance.now());var iu=navigator.userAgent.match(/firefox\/(\d+)/i);ru=!!(iu&&Number(iu[1])<=53)}var Ha=0,Yp=Promise.resolve(),zp=()=>{Ha=0},qp=()=>Ha||(Yp.then(zp),Ha=ji());function Xp(e,t,r,i){e.addEventListener(t,r,i)}function Kp(e,t,r,i){e.removeEventListener(t,r,i)}function Gp(e,t,r,i,n=null){var a=e._vei||(e._vei={}),o=a[t];if(i&&o)o.value=i;else{var[s,l]=Zp(t);if(i){var u=a[t]=Jp(i,n);Xp(e,s,u,l)}else o&&(Kp(e,s,o,l),a[t]=void 0)}}var nu=/(?:Once|Passive|Capture)$/;function Zp(e){var t;if(nu.test(e)){t={};for(var r;r=e.match(nu);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Ve(e.slice(2)),t]}function Jp(e,t){var r=i=>{var n=i.timeStamp||ji();(ru||n>=r.attached-1)&&et(Qp(i,r.value),t,5,[i])};return r.value=e,r.attached=qp(),r}function Qp(e,t){if(oe(t)){var r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>n=>!n._stopped&&i(n))}else return t}var au=/^on[a-z]/,eg=(e,t,r,i,n=!1,a,o,s,l)=>{t==="class"?Fp(e,i,n):t==="style"?$p(e,r,i):di(t)?jn(t)||Gp(e,t,r,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tg(e,t,i,n))?Hp(e,t,i,a,o,s,l):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),jp(e,t,i,n))};function tg(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&au.test(t)&&ae(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||au.test(t)&&ye(r)?!1:t in e}var rg=["ctrl","shift","alt","meta"],ig={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>rg.some(r=>e["".concat(r,"Key")]&&!t.includes(r))},Ya=(e,t)=>(r,...i)=>{for(var n=0;n{Nr(e,!1)}):Nr(e,t))},beforeUnmount(e,{value:t}){Nr(e,t)}};function Nr(e,t){e.style.display=t?e._vod:"none"}var ng=fe({patchProp:eg},Bp),ou;function ag(){return ou||(ou=up(ng))}var su=(...e)=>{var t=ag().createApp(...e),{mount:r}=t;return t.mount=i=>{var n=og(i);if(!!n){var a=t._component;!ae(a)&&!a.render&&!a.template&&(a.template=n.innerHTML),n.innerHTML="";var o=r(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o}},t};function og(e){if(ye(e)){var t=document.querySelector(e);return t}return e}var lu=["top","left","right","bottom"],za,Hi={},Ze;function qa(){return!("CSS"in window)||typeof CSS.supports!="function"?Ze="":CSS.supports("top: env(safe-area-inset-top)")?Ze="env":CSS.supports("top: constant(safe-area-inset-top)")?Ze="constant":Ze="",Ze}function uu(){if(Ze=typeof Ze=="string"?Ze:qa(),!Ze){lu.forEach(function(s){Hi[s]=0});return}function e(s,l){var u=s.style;Object.keys(l).forEach(function(v){var h=l[v];u[v]=h})}var t=[];function r(s){s?t.push(s):t.forEach(function(l){l()})}var i=!1;try{var n=Object.defineProperty({},"passive",{get:function(){i={passive:!0}}});window.addEventListener("test",null,n)}catch{}function a(s,l){var u=document.createElement("div"),v=document.createElement("div"),h=document.createElement("div"),_=document.createElement("div"),d=100,b=1e4,m={position:"absolute",width:d+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Ze+"(safe-area-inset-"+l+")"};e(u,m),e(v,m),e(h,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(_,{transition:"0s",animation:"none",width:"250%",height:"250%"}),u.appendChild(h),v.appendChild(_),s.appendChild(u),s.appendChild(v),r(function(){u.scrollTop=v.scrollTop=b;var c=u.scrollTop,w=v.scrollTop;function f(){this.scrollTop!==(this===u?c:w)&&(u.scrollTop=v.scrollTop=b,c=u.scrollTop,w=v.scrollTop,sg(l))}u.addEventListener("scroll",f,i),v.addEventListener("scroll",f,i)});var p=getComputedStyle(u);Object.defineProperty(Hi,l,{configurable:!0,get:function(){return parseFloat(p.paddingBottom)}})}var o=document.createElement("div");e(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),lu.forEach(function(s){a(o,s)}),document.body.appendChild(o),r(),za=!0}function Yi(e){return za||uu(),Hi[e]}var zi=[];function sg(e){zi.length||setTimeout(function(){var t={};zi.forEach(function(r){t[r]=Hi[r]}),zi.length=0,qi.forEach(function(r){r(t)})},0),zi.push(e)}var qi=[];function lg(e){!qa()||(za||uu(),typeof e=="function"&&qi.push(e))}function ug(e){var t=qi.indexOf(e);t>=0&&qi.splice(t,1)}var fg={get support(){return(typeof Ze=="string"?Ze:qa()).length!=0},get top(){return Yi("top")},get left(){return Yi("left")},get right(){return Yi("right")},get bottom(){return Yi("bottom")},onChange:lg,offChange:ug},Xi=fg,cg=Ya(()=>{},["prevent"]);function Xa(){var e=document.documentElement.style,t=parseInt(e.getPropertyValue("--window-top"));return t?t+Xi.top:0}function vg(){var e=document.documentElement.style,t=Xa(),r=parseInt(e.getPropertyValue("--window-bottom")),i=parseInt(e.getPropertyValue("--window-left")),n=parseInt(e.getPropertyValue("--window-right"));return{top:t,bottom:r?r+Xi.bottom:0,left:i?i+Xi.left:0,right:n?n+Xi.right:0}}function dg(e){var t=document.documentElement.style;Object.keys(e).forEach(r=>{t.setProperty(r,e[r])})}function Ki(e){return Symbol(e)}function fu(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function Ut(e,t=!1){if(t)return hg(e);if(typeof e=="string"){var r=parseInt(e)||0;return fu(e)?uni.upx2px(r):r}return e}function hg(e){return fu(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,r)=>uni.upx2px(parseFloat(r))+"px"):e}var pg="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",gg="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",mg="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",_g="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",bg="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",Gi="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",wg="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",yg="M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",Sg="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function Zi(e,t="#000",r=27){return M("svg",{width:r,height:r,viewBox:"0 0 32 32"},[M("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Ji(){return Ct()}function xg(){return window.__PAGE_INFO__}function Ct(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function Tg(e){e.preventDefault()}var cu,vu=0;function Eg({onPageScroll:e,onReachBottom:t,onReachBottomDistance:r}){var i=!1,n=!1,a=!0,o=()=>{var{scrollHeight:l}=document.documentElement,u=window.innerHeight,v=window.scrollY,h=v>0&&l>u&&v+u+r>=l,_=Math.abs(l-vu)>r;return h&&(!n||_)?(vu=l,n=!0,!0):(!h&&n&&(n=!1),!1)},s=()=>{e&&e(window.pageYOffset);function l(){if(o())return t&&t(),a=!1,setTimeout(function(){a=!0},350),!0}t&&a&&(l()||(cu=setTimeout(l,300))),i=!1};return function(){clearTimeout(cu),i||requestAnimationFrame(s),i=!0}}function Ka(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return Ka(e,t.substr(2));for(var r=t.split("/"),i=r.length,n=0;n0?e.split("/"):[];return a.splice(a.length-n-1,n+1),"/"+a.concat(r).join("/")}class Cg{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=t.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!(!this.$el||!t)){var r=du(this.$el.querySelector(t));if(!!r)return Ga(r,!1)}}selectAllComponents(t){if(!this.$el||!t)return[];for(var r=[],i=this.$el.querySelectorAll(t),n=0;n-1&&r.splice(i,1)}var n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return n.indexOf(t)===-1&&(n.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t,r={}){var i=this.$vm[t];ae(i)?i(JSON.parse(JSON.stringify(r))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(wd,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:r})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t,r={}){return this.$vm.$emit(t,r),this}getComputedStyle(t){if(this.$el){var r=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((i,n)=>(i[n]=r[n],i),{}):r}return{}}setTimeout(t,r){return window.setTimeout(t,r)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Ga(e,t=!0){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Cg(e)),e.$el.__wxsComponentDescriptor}function Qi(e,t){return Ga(e,t)}function du(e){if(!!e)return kr(e)}function kr(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var{__wxsStyle:t,__wxsAddClass:r,__wxsRemoveClass:i,__wxsStyleChanged:n,__wxsClassChanged:a}=e,o,s;n&&(e.__wxsStyleChanged=!1,t&&(s=()=>{Object.keys(t).forEach(l=>{e.style[l]=t[l]})})),a&&(e.__wxsClassChanged=!1,o=()=>{i&&i.forEach(l=>{e.classList.remove(l)}),r&&r.forEach(l=>{e.classList.add(l)})}),requestAnimationFrame(()=>{o&&o(),s&&s()})}})}var Og=e=>e.type==="click";function hu(e,t,r){var{currentTarget:i}=e;if(!(e instanceof Event)||!(i instanceof HTMLElement))return[e];if(i.tagName.indexOf("UNI-")!==0)return[e];var n=pu(e);if(Og(e))Ig(n,e);else if(e instanceof TouchEvent){var a=Xa();n.touches=gu(e.touches,a),n.changedTouches=gu(e.changedTouches,a)}return[n]}function Mg(e){for(;e&&e.tagName.indexOf("UNI-")!==0;)e=e.parentElement;return e}function pu(e){var{type:t,timeStamp:r,target:i,currentTarget:n}=e,a={type:t,timeStamp:r,target:Qn(Mg(i)),detail:{},currentTarget:Qn(n)};return e._stopped&&(a._stopped=!0),e.type.startsWith("touch")&&(a.touches=e.touches,a.changedTouches=e.changedTouches),a}function Ig(e,t){var{x:r,y:i}=t,n=Xa();e.detail={x:r,y:i-n},e.touches=e.changedTouches=[Ag(t)]}function Ag(e){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}function gu(e,t){for(var r=[],i=0;i{var a=Wg(e,n,r,i);if(a)throw new Error(a);return t.apply(null,n)}}function Vg(e,t,r,i){return Ug(e,t,void 0,i)}function jg(){if(typeof __SYSTEM_INFO__!="undefined")return window.__SYSTEM_INFO__;var{resolutionWidth:e}=plus.screen.getCurrentSize();return{platform:(plus.os.name||"").toLowerCase(),pixelRatio:plus.screen.scale,windowWidth:Math.round(e)}}function ht(e){if(e.indexOf("//")===0)return"https:"+e;if(hd.test(e)||pd.test(e))return e;if(Hg(e))return"file://"+bu(e);var t="file://"+bu("_www");if(e.indexOf("/")===0)return e.startsWith("/storage/")||e.startsWith("/sdcard/")||e.includes("/Containers/Data/Application/")?"file://"+e:t+e;if(e.indexOf("../")===0||e.indexOf("./")===0){if(typeof __id__=="string")return t+Ka("/"+__id__,e);var r=xg();if(r)return t+Ka("/"+r.route,e)}return e}var bu=vd(e=>plus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,""));function Hg(e){return e.indexOf("_www")===0||e.indexOf("_doc")===0||e.indexOf("_documents")===0||e.indexOf("_downloads")===0}function Yg(e,t,r){}function zg(e){return Promise.resolve(e)}var qg="upx2px",Xg=1e-4,Kg=750,wu=!1,Za=0,yu=0;function Gg(){var{platform:e,pixelRatio:t,windowWidth:r}=jg();Za=r,yu=t,wu=e==="ios"}function Su(e,t){var r=Number(e);return isNaN(r)?t:r}var xu=Vg(qg,(e,t)=>{if(Za===0&&Gg(),e=Number(e),e===0)return 0;var r=t||Za;{var i=__uniConfig.globalStyle||{},n=Su(i.rpxCalcMaxDeviceWidth,960),a=Su(i.rpxCalcBaseDeviceWidth,375);r=r<=n?r:a}var o=e/Kg*r;return o<0&&(o=-o),o=Math.floor(o+Xg),o===0&&(yu===1||!wu?o=1:o=.5),e<0?-o:o}),Zg=[{name:"id",type:String,required:!0}];Zg.concat({name:"componentInstance",type:Object});var Tu={};Tu.f={}.propertyIsEnumerable;var Jg=hr,Qg=Nn,em=ri,tm=Tu.f,rm=function(e){return function(t){for(var r=em(t),i=Qg(r),n=i.length,a=0,o=[],s;n>a;)s=i[a++],(!Jg||tm.call(r,s))&&o.push(e?[s,r[s]]:r[s]);return o}},Eu=Rn,im=rm(!1);Eu(Eu.S,"Object",{values:function(t){return im(t)}});var nm="loadFontFace",am="pageScrollTo",om=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(f){try{return f.defaultView&&f.defaultView.frameElement||null}catch{return null}}var t=function(f){for(var g=f,S=e(g);S;)g=S.ownerDocument,S=e(g);return g}(window.document),r=[],i=null,n=null;function a(f){this.time=f.time,this.target=f.target,this.rootBounds=b(f.rootBounds),this.boundingClientRect=b(f.boundingClientRect),this.intersectionRect=b(f.intersectionRect||d()),this.isIntersecting=!!f.intersectionRect;var g=this.boundingClientRect,S=g.width*g.height,x=this.intersectionRect,E=x.width*x.height;S?this.intersectionRatio=Number((E/S).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(f,g){var S=g||{};if(typeof f!="function")throw new Error("callback must be a function");if(S.root&&S.root.nodeType!=1&&S.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(S.rootMargin),this.thresholds=this._initThresholds(S.threshold),this.root=S.root||null,this.rootMargin=this._rootMarginValues.map(function(x){return x.value+x.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return i||(i=function(f,g){!f||!g?n=d():n=m(f,g),r.forEach(function(S){S._checkForIntersections()})}),i},o._resetCrossOriginUpdater=function(){i=null,n=null},o.prototype.observe=function(f){var g=this._observationTargets.some(function(S){return S.element==f});if(!g){if(!(f&&f.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:f,entry:null}),this._monitorIntersections(f.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(f){this._observationTargets=this._observationTargets.filter(function(g){return g.element!=f}),this._unmonitorIntersections(f.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var f=this._queuedEntries.slice();return this._queuedEntries=[],f},o.prototype._initThresholds=function(f){var g=f||[0];return Array.isArray(g)||(g=[g]),g.sort().filter(function(S,x,E){if(typeof S!="number"||isNaN(S)||S<0||S>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return S!==E[x-1]})},o.prototype._parseRootMargin=function(f){var g=f||"0px",S=g.split(/\s+/).map(function(x){var E=/^(-?\d*\.?\d+)(px|%)$/.exec(x);if(!E)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(E[1]),unit:E[2]}});return S[1]=S[1]||S[0],S[2]=S[2]||S[0],S[3]=S[3]||S[1],S},o.prototype._monitorIntersections=function(f){var g=f.defaultView;if(!!g&&this._monitoringDocuments.indexOf(f)==-1){var S=this._checkForIntersections,x=null,E=null;this.POLL_INTERVAL?x=g.setInterval(S,this.POLL_INTERVAL):(u(g,"resize",S,!0),u(f,"scroll",S,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in g&&(E=new g.MutationObserver(S),E.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(f),this._monitoringUnsubscribes.push(function(){var W=f.defaultView;W&&(x&&W.clearInterval(x),v(W,"resize",S,!0)),v(f,"scroll",S,!0),E&&E.disconnect()});var C=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=C){var L=e(f);L&&this._monitorIntersections(L.ownerDocument)}}},o.prototype._unmonitorIntersections=function(f){var g=this._monitoringDocuments.indexOf(f);if(g!=-1){var S=this.root&&(this.root.ownerDocument||this.root)||t,x=this._observationTargets.some(function(L){var W=L.element.ownerDocument;if(W==f)return!0;for(;W&&W!=S;){var q=e(W);if(W=q&&q.ownerDocument,W==f)return!0}return!1});if(!x){var E=this._monitoringUnsubscribes[g];if(this._monitoringDocuments.splice(g,1),this._monitoringUnsubscribes.splice(g,1),E(),f!=S){var C=e(f);C&&this._unmonitorIntersections(C.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var g=0;g=0&&W>=0&&{top:S,bottom:x,left:E,right:C,width:L,height:W}||null}function _(f){var g;try{g=f.getBoundingClientRect()}catch{}return g?(g.width&&g.height||(g={top:g.top,right:g.right,bottom:g.bottom,left:g.left,width:g.right-g.left,height:g.bottom-g.top}),g):d()}function d(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function b(f){return!f||"x"in f?f:{top:f.top,y:f.top,bottom:f.bottom,left:f.left,x:f.left,right:f.right,width:f.width,height:f.height}}function m(f,g){var S=g.top-f.top,x=g.left-f.left;return{top:S,left:x,height:g.height,width:g.width,bottom:S+g.height,right:x+g.width}}function p(f,g){for(var S=g;S;){if(S==f)return!0;S=c(S)}return!1}function c(f){var g=f.parentNode;return f.nodeType==9&&f!=t?e(f):(g&&g.assignedSlot&&(g=g.assignedSlot.parentNode),g&&g.nodeType==11&&g.host?g.host:g)}function w(f){return f&&f.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=a};function Ja(e){var{bottom:t,height:r,left:i,right:n,top:a,width:o}=e||{};return{bottom:t,height:r,left:i,right:n,top:a,width:o}}function sm(e){var{intersectionRatio:t,boundingClientRect:{height:r,width:i},intersectionRect:{height:n,width:a}}=e;return t!==0?t:n===r?a/i:n/r}function lm(e,t,r){om();var i=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,n=new IntersectionObserver(l=>{l.forEach(u=>{r({intersectionRatio:sm(u),intersectionRect:Ja(u.intersectionRect),boundingClientRect:Ja(u.boundingClientRect),relativeRect:Ja(u.rootBounds),time:Date.now(),dataset:Zn(u.target),id:u.target.id})})},{root:i,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){n.USE_MUTATION_OBSERVER=!0;for(var a=e.querySelectorAll(t.selector),o=0;o{var i=450,n=44;clearTimeout(t),e&&Math.abs(r.pageX-e.pageX)<=n&&Math.abs(r.pageY-e.pageY)<=n&&r.timeStamp-e.timeStamp<=i&&r.preventDefault(),e=r,t=setTimeout(()=>{e=null},i)})}}function gm(e){if(!e.length)return r=>r;var t=(r,i=!0)=>{if(typeof r=="number")return e[r];var n={};return r.forEach(([a,o])=>{i?n[t(a)]=t(o):n[t(a)]=o}),n};return t}function mm(e,t){if(!!t)return t.a&&(t.a=e(t.a)),t.e&&(t.e=e(t.e,!1)),t.w&&(t.w=_m(t.w,e)),t.s&&(t.s=e(t.s)),t.t&&(t.t=e(t.t)),t}function _m(e,t){var r={};return e.forEach(([i,[n,a]])=>{r[t(i)]=[t(n),a]}),r}function bm(e,t){return e.priority=t,e}var Qa=new Set,wm=1,eo=2,Cu=3,Ou=4;function Ot(e,t){Qa.add(bm(e,t))}function ym(){try{[...Qa].sort((e,t)=>e.priority-t.priority).forEach(e=>e())}finally{Qa.clear()}}function Mu(e,t){var r=window["__"+gd],i=r&&r[e];if(i)return i;if(t&&t.__renderjsInstances)return t.__renderjsInstances[e]}var Sm=Ps.length;function xm(e,t,r){var[i,n,a,o]=ro(t),s=to(e,i);if(oe(r)||oe(o)){var[l,u]=a.split(".");return io(s,n,l,u,r||o)}return Cm(s,n,a)}function Tm(e,t,r){var[i,n,a]=ro(t),[o,s]=a.split("."),l=to(e,i);return io(l,n,o,s,[Mm(r,e),Qi(kr(l),!1)])}function to(e,t){if(e.__ownerId===t)return e;for(var r=e.parentElement;r;){if(r.__ownerId===t)return r;r=r.parentElement}return e}function ro(e){return JSON.parse(e.substr(Sm))}function Em(e,t,r,i){var[n,a,o]=ro(e),s=to(t,n),[l,u]=o.split(".");return io(s,a,l,u,[r,i,Qi(kr(s),!1),Qi(kr(t),!1)])}function io(e,t,r,i,n){var a=Mu(t,e);if(!a)return console.error(Gn("wxs","module "+r+" not found"));var o=a[i];return ae(o)?o.apply(a,n):console.error(r+"."+i+" is not a function")}function Cm(e,t,r){var i=Mu(t,e);return i?Is(i,r.substr(r.indexOf(".")+1)):console.error(Gn("wxs","module "+r+" not found"))}function Om(e,t,r){var i=r;return n=>{try{Em(t,e.$,n,i)}catch(a){console.error(a)}i=n}}function Mm(e,t){var r=kr(t);return Object.defineProperty(e,"instance",{get(){return Qi(r,!1)}}),e}function Iu(e,t){Object.keys(t).forEach(r=>{Am(e,t[r])})}function Im(e){var{__renderjsInstances:t}=e.$;!t||Object.keys(t).forEach(r=>{t[r].$.appContext.app.unmount()})}function Am(e,t){var r=Pm(t);if(!!r){var i=e.$;(i.__renderjsInstances||(i.__renderjsInstances={}))[t]=Rm(r)}}function Pm(e){var t=window["__"+md],r=t&&t[e];return r||console.error(Gn("renderjs",e+" not found"))}function Rm(e){return e=e.default||e,e.render=()=>{},su(e).mount(document.createElement("div"))}class lr{constructor(t,r,i,n){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.id=t,this.tag=r,this.pid=i,n&&(this.$=n),this.$wxsProps=new Map}init(t){te(t,"t")&&(this.$.textContent=t.t)}setText(t){this.$.textContent=t}insert(t,r){var i=this.$,n=Ke(t);r===-1?n.appendChild(i):n.insertBefore(i,Ke(r).$),this.isMounted=!0}remove(){var{$:t}=this;t.parentNode.removeChild(t),this.isUnmounted=!0,Vf(this.id),Im(this)}appendChild(t){return this.$.appendChild(t)}insertBefore(t,r){return this.$.insertBefore(t,r)}setWxsProps(t){Object.keys(t).forEach(r=>{if(r.indexOf(ia)===0){var i=r.replace(ia,""),n=t[i],a=Om(this,t[r],n);Ot(()=>a(n),Ou),this.$wxsProps.set(r,a),delete t[r],delete t[i],this.$hasWxsProps=!0}})}addWxsEvents(t){Object.keys(t).forEach(r=>{var[i,n]=t[r];this.addWxsEvent(r,i,n)})}addWxsEvent(t,r,i){}wxsPropsInvoke(t,r,i=!1){var n=this.$hasWxsProps&&this.$wxsProps.get(ia+t);if(n)return Ot(()=>i?or(()=>n(r)):n(r),Ou),!0}}function Au(e,t){var{__wxsAddClass:r,__wxsRemoveClass:i}=e;i&&i.length&&(t=t.split(/\s+/).filter(n=>i.indexOf(n)===-1).join(" "),i.length=0),r&&r.length&&(t=t+" "+r.join(" ")),e.className=t}function Pu(e,t){var r=e.style;if(ye(t))t===""?e.removeAttribute("style"):r.cssText=Ut(t,!0);else for(var i in t)no(r,i,t[i]);var{__wxsStyle:n}=e;if(n)for(var a in n)no(r,a,n[a])}var Ru=/\s*!important$/;function no(e,t,r){if(oe(r))r.forEach(n=>no(e,t,n));else if(r=Ut(r,!0),t.startsWith("--"))e.setProperty(t,r);else{var i=Lm(e,t);Ru.test(r)?e.setProperty(Ve(i),r.replace(Ru,""),"important"):e[i]=r}}var Lu=["Webkit"],ao={};function Lm(e,t){var r=ao[t];if(r)return r;var i=mt(t);if(i!=="filter"&&i in e)return ao[t]=i;i=gi(i);for(var n=0;n{var[a]=hu(n);a.type=Zv(n.type,r),UniViewJSBridge.publishHandler(mu,[[fd,e,a]])};return t?Ya(i,Fu(t)):i}function Fu(e){var t=[];return e&ta.prevent&&t.push("prevent"),e&ta.self&&t.push("self"),e&ta.stop&&t.push("stop"),t}function Nm(e,t,r,i){var[n,a]=ea(t);i===-1?Nu(e,n):ku(e,n)||e.addEventListener(n,e.__listeners[n]=$u(e,r,i),a)}function $u(e,t,r){var i=n=>{Tm(e,t,hu(n)[0])};return r?Ya(i,Fu(r)):i}var km=Rs.length;function oo(e,t){return ye(t)&&(t.indexOf(Rs)===0?t=JSON.parse(t.substr(km)):t.indexOf(Ps)===0&&(t=xm(e,t))),t}function so(e,t){e._vod=e.style.display==="none"?"":e.style.display,e.style.display=t?e._vod:"none"}class Wu extends lr{constructor(t,r,i,n,a,o=[]){super(t,r.tagName,i,r);this.$props=Te({}),this.$.__id=t,this.$.__listeners=Object.create(null),this.$propNames=o,this._update=this.update.bind(this),this.init(a),this.insert(i,n)}init(t){te(t,"a")&&this.setAttrs(t.a),te(t,"s")&&this.setAttr("style",t.s),te(t,"e")&&this.addEvents(t.e),te(t,"w")&&this.addWxsEvents(t.w),super.init(t),U(this.$props,()=>{Ot(this._update,wm)},{flush:"sync"}),this.update(!0)}setAttrs(t){this.setWxsProps(t),Object.keys(t).forEach(r=>{this.setAttr(r,t[r])})}addEvents(t){Object.keys(t).forEach(r=>{this.addEvent(r,t[r])})}addWxsEvent(t,r,i){Nm(this.$,t,r,i)}addEvent(t,r){Du(this.$,t,r)}removeEvent(t){Du(this.$,t,-1)}setAttr(t,r){t===Es?Au(this.$,r):t===ra?Pu(this.$,r):t===_i?so(this.$,r):t===Cs?this.$.__ownerId=r:t===Os?Ot(()=>Iu(this,r),Cu):t===Jv?this.$.innerHTML=r:t===Qv?this.setText(r):this.setAttribute(t,r)}removeAttr(t){t===Es?Au(this.$,""):t===ra?Pu(this.$,""):this.removeAttribute(t)}setAttribute(t,r){r=oo(this.$,r),this.$propNames.indexOf(t)!==-1?this.$props[t]=r:this.wxsPropsInvoke(t,r)||this.$.setAttribute(t,r)}removeAttribute(t){this.$propNames.indexOf(t)!==-1?delete this.$props[t]:this.$.removeAttribute(t)}update(t=!1){}}class Dm extends lr{constructor(t,r,i){super(t,"#comment",r,document.createComment(""));this.insert(r,i)}}var ly="";function Uu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,r)=>"".concat(uni.upx2px(parseFloat(r)),"px")):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function Bm(e){return e.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase())).replace("webkit","-webkit")}function Fm(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],r=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],n=["width","height","left","right","top","bottom"],a=e.animates,o=e.option,s=o.transition,l={},u=[];return a.forEach(v=>{var h=v.type,_=[...v.args];if(t.concat(r).includes(h))h.startsWith("rotate")||h.startsWith("skew")?_=_.map(b=>parseFloat(b)+"deg"):h.startsWith("translate")&&(_=_.map(Uu)),r.indexOf(h)>=0&&(_.length=1),u.push("".concat(h,"(").concat(_.join(","),")"));else if(i.concat(n).includes(_[0])){h=_[0];var d=_[1];l[h]=n.includes(h)?Uu(d):d}}),l.transform=l.webkitTransform=u.join(" "),l.transition=l.webkitTransition=Object.keys(l).map(v=>"".concat(Bm(v)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")).join(","),l.transformOrigin=l.webkitTransformOrigin=o.transformOrigin,l}function Vu(e){var t=e.animation;if(!t||!t.actions||!t.actions.length)return;var r=0,i=t.actions,n=t.actions.length;function a(){var o=i[r],s=o.option.transition,l=Fm(o);Object.keys(l).forEach(u=>{e.$el.style[u]=l[u]}),r+=1,r{a()},0)}var en={props:["animation"],watch:{animation:{deep:!0,handler(){Vu(this)}}},mounted(){Vu(this)}},he=e=>{var{props:t,mixins:r}=e;return(!t||!t.animation)&&(r||(e.mixins=[])).push(en),$m(e)},$m=e=>(e.compatConfig={MODE:3},Vh(e)),Wm={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function lo(e){var t=B(!1),r=!1,i,n;function a(){requestAnimationFrame(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function o(u){u._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||u.touches.length>1||(e.hoverStopPropagation&&(u._hoverPropagationStopped=!0),r=!0,i=setTimeout(()=>{t.value=!0,r||a()},parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&a()}function l(){r=!1,t.value=!1,clearTimeout(i)}return{hovering:t,binding:{onTouchstartPassive:o,onTouchend:s,onTouchcancel:l}}}function Dr(e,t){return ye(t)&&(t=[t]),t.reduce((r,i)=>(e[i]&&(r[i]=!0),r),Object.create(null))}function Vt(e){return e.__wwe=!0,e}function Pe(e,t){return(r,i,n)=>{e.value&&t(r,Vm(r,i,e.value,n||{}))}}function Um(e){return(t,r)=>{e(t,pu(r))}}function Vm(e,t,r,i){var n=Qn(r);return{type:i.type||e,timeStamp:t.timeStamp||0,target:n,currentTarget:n,detail:i}}var st=Ki("uf"),jm=he({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:r}){var i=B(null);return Hm(Pe(i,r)),()=>M("uni-form",{ref:i},[M("span",null,[t.default&&t.default()])],512)}});function Hm(e){var t=[];return Ne(st,{addField(r){t.push(r)},removeField(r){t.splice(t.indexOf(r),1)},submit(r){e("submit",r,{value:t.reduce((i,n)=>{if(n.submit){var[a,o]=n.submit();a&&(i[a]=o)}return i},Object.create(null))})},reset(r){t.forEach(i=>i.reset&&i.reset()),e("reset",r)}}),t}var Br=Ki("ul"),Ym={for:{type:String,default:""}},zm=he({name:"Label",props:Ym,setup(e,{slots:t}){var r=Ji(),i=qm(),n=Q(()=>e.for||t.default&&t.default.length),a=Vt(o=>{var s=o.target,l=/^uni-(checkbox|radio|switch)-/.test(s.className);l||(l=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(s.tagName)),!l&&(e.for?UniViewJSBridge.emit("uni-label-click-"+r+"-"+e.for,o,!0):i.length&&i[0](o,!0))});return()=>M("uni-label",{class:{"uni-label-pointer":n},onClick:a},[t.default&&t.default()],10,["onClick"])}});function qm(){var e=[];return Ne(Br,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}function tn(e,t){ju(e.id,t),U(()=>e.id,(r,i)=>{Hu(i,t,!0),ju(r,t,!0)}),yt(()=>{Hu(e.id,t)})}function ju(e,t,r){var i=Ji();r&&!e||!rt(t)||Object.keys(t).forEach(n=>{r?n.indexOf("@")!==0&&n.indexOf("uni-")!==0&&UniViewJSBridge.on("uni-".concat(n,"-").concat(i,"-").concat(e),t[n]):n.indexOf("uni-")===0?UniViewJSBridge.on(n,t[n]):e&&UniViewJSBridge.on("uni-".concat(n,"-").concat(i,"-").concat(e),t[n])})}function Hu(e,t,r){var i=Ji();r&&!e||!rt(t)||Object.keys(t).forEach(n=>{r?n.indexOf("@")!==0&&n.indexOf("uni-")!==0&&UniViewJSBridge.off("uni-".concat(n,"-").concat(i,"-").concat(e),t[n]):n.indexOf("uni-")===0?UniViewJSBridge.off(n,t[n]):e&&UniViewJSBridge.off("uni-".concat(n,"-").concat(i,"-").concat(e),t[n])})}var Xm=he({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){var r=B(null);Fd();var i=ge(st,!1),{hovering:n,binding:a}=lo(e),{t:o}=je(),s=Vt((u,v)=>{if(e.disabled)return u.stopImmediatePropagation();v&&r.value.click();var h=e.formType;if(h){if(!i)return;h==="submit"?i.submit(u):h==="reset"&&i.reset(u);return}e.openType==="feedback"&&Km(o("uni.button.feedback.title"),o("uni.button.feedback.send"))}),l=ge(Br,!1);return l&&(l.addHandler(s),Ee(()=>{l.removeHandler(s)})),tn(e,{"label-click":s}),()=>{var u=e.hoverClass,v=Dr(e,"disabled"),h=Dr(e,"loading"),_=u&&u!=="none";return M("uni-button",Ye({ref:r,onClick:s,class:_&&n.value?u:""},_&&a,v,h),[t.default&&t.default()],16,["onClick"])}}});function Km(e,t){var r=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:e,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:t,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){r.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}});r.show("slide-in-right")}var jt=he({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){var r=B(null),i=Zm(r),n=Gm(r,t,i);return Jm(r,e,n,i),()=>M("uni-resize-sensor",{ref:r,onAnimationstartOnce:n},[M("div",{onScroll:n},[M("div",null,null)],40,["onScroll"]),M("div",{onScroll:n},[M("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Gm(e,t,r){var i=Te({width:-1,height:-1});return U(()=>fe({},i),n=>t("resize",n)),()=>{var n=e.value;i.width=n.offsetWidth,i.height=n.offsetHeight,r()}}function Zm(e){return()=>{var{firstElementChild:t,lastElementChild:r}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,r.scrollLeft=1e5,r.scrollTop=1e5}}function Jm(e,t,r,i){Ca(i),Oe(()=>{t.initial&&or(r);var n=e.value;n.offsetParent!==n.parentElement&&(n.parentElement.style.position="relative"),"AnimationEvent"in window||i()})}var me=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}();function Yu(e){e.width=e.offsetWidth*me,e.height=e.offsetHeight*me,e.getContext("2d").__hidpi__=!0}var zu=!1;function Qm(){if(!zu){zu=!0;var e=function(i,n){for(var a in i)te(i,a)&&n(i[a],a)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]},r=CanvasRenderingContext2D.prototype;r.drawImageByCanvas=function(i){return function(n,a,o,s,l,u,v,h,_,d){if(!this.__hidpi__)return i.apply(this,arguments);a*=me,o*=me,s*=me,l*=me,u*=me,v*=me,h=d?h*me:h,_=d?_*me:_,i.call(this,n,a,o,s,l,u,v,h,_)}}(r.drawImage),me!==1&&(e(t,function(i,n){r[n]=function(a){return function(){if(!this.__hidpi__)return a.apply(this,arguments);var o=Array.prototype.slice.call(arguments);if(i==="all")o=o.map(function(l){return l*me});else if(Array.isArray(i))for(var s=0;sQm());function qu(e){return e&&ht(e)}function rn(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Xu(e,t){var r=e;return Array.from(t).map(i=>{var n=r.getBoundingClientRect();return{identifier:i.identifier,x:i.clientX-n.left,y:i.clientY-n.top}})}var Fr;function Ku(e=0,t=0){return Fr||(Fr=document.createElement("canvas")),Fr.width=e,Fr.height=t,Fr}var t0={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1}},r0=he({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:t0,computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:r}){e0();var i=B(null),n=B(null),a=B(!1),o=Um(t),{$attrs:s,$excludeAttrs:l,$listeners:u}=hf({excludeListeners:!0}),{_listeners:v}=i0(e,u,o),{_handleSubscribe:h,_resize:_}=n0(i,a);return hn(h,pn(e.canvasId),!0),Oe(()=>{_()}),()=>{var{canvasId:d,disableScroll:b}=e;return M("uni-canvas",Ye({"canvas-id":d,"disable-scroll":b},s.value,l.value,v.value),[M("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),M("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[r.default&&r.default()]),M(jt,{ref:n,onResize:_},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function i0(e,t,r){var i=Q(()=>{var n=["onTouchstart","onTouchmove","onTouchend"],a=t.value,o=fe({},(()=>{var s={};for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){var u=a[l];s[l]=u}return s})());return n.forEach(s=>{var l=o[s],u=[];l&&u.push(Vt(v=>{r(s.replace("on","").toLocaleLowerCase(),fe({},(()=>{var h={};for(var _ in v)h[_]=v[_];return h})(),{touches:Xu(v.currentTarget,v.touches),changedTouches:Xu(v.currentTarget,v.changedTouches)}))})),e.disableScroll&&s==="onTouchmove"&&u.push(cg),o[s]=u}),o});return{_listeners:i}}function n0(e,t){var r=[],i={};function n(d){var b=e.value,m=!d||b.width!==Math.floor(d.width*me)||b.height!==Math.floor(d.height*me);if(!!m)if(b.width>0&&b.height>0){var p=b.getContext("2d"),c=p.getImageData(0,0,b.width,b.height);Yu(b),p.putImageData(c,0,0)}else Yu(b)}function a({actions:d,reserve:b},m){if(!!d){if(t.value){r.push([d,b]);return}var p=e.value,c=p.getContext("2d");b||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,p.width,p.height)),o(d);for(var w=function(S){var x=d[S],E=x.method,C=x.data,L=C[0];if(/^set/.test(E)&&E!=="setTransform"){var W=E[3].toLowerCase()+E.slice(4),q;if(W==="fillStyle"||W==="strokeStyle"){if(L==="normal")q=rn(C[1]);else if(L==="linear"){var X=c.createLinearGradient(...C[1]);C[2].forEach(function(Y){var re=Y[0],le=rn(Y[1]);X.addColorStop(re,le)}),q=X}else if(L==="radial"){var ce=C[1],A=ce[0],$=ce[1],ee=ce[2],ne=c.createRadialGradient(A,$,0,A,$,ee);C[2].forEach(function(Y){var re=Y[0],le=rn(Y[1]);ne.addColorStop(re,le)}),q=ne}else if(L==="pattern"){var H=s(C[1],d.slice(S+1),m,function(Y){Y&&(c[W]=c.createPattern(Y,C[2]))});return H?"continue":"break"}c[W]=q}else if(W==="globalAlpha")c[W]=Number(L)/255;else if(W==="shadow"){var J=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];C.forEach(function(Y,re){c[J[re]]=J[re]==="shadowColor"?rn(Y):Y})}else if(W==="fontSize"){var ie=c.__font__||c.font;c.__font__=c.font=ie.replace(/\d+\.?\d*px/,L+"px")}else W==="lineDash"?(c.setLineDash(L),c.lineDashOffset=C[1]||0):W==="textBaseline"?(L==="normal"&&(C[0]="alphabetic"),c[W]=L):W==="font"?c.__font__=c.font=L:c[W]=L}else if(E==="fillPath"||E==="strokePath")E=E.replace(/Path/,""),c.beginPath(),C.forEach(function(Y){c[Y.method].apply(c,Y.data)}),c[E]();else if(E==="fillText")c.fillText.apply(c,C);else if(E==="drawImage"){var we=function(){var Y=[...C],re=Y[0],le=Y.slice(1);if(i=i||{},s(re,d.slice(S+1),m,function(ve){ve&&c.drawImage.apply(c,[ve].concat([...le.slice(4,8)],[...le.slice(0,4)]))}))return"break"}();if(we==="break")return"break"}else E==="clip"?(C.forEach(function(Y){c[Y.method].apply(c,Y.data)}),c.clip()):c[E].apply(c,C)},f=0;f{f.src=g}).catch(()=>{f.src=c})}})}function s(d,b,m,p){var c=i[d];return c.ready?(p(c),!0):(r.unshift([b,!0]),t.value=!0,c.onload=function(){c.ready=!0,p(c),t.value=!1;var w=r.slice(0);r=[];for(var f=w.shift();f;)a({actions:f[0],reserve:f[1]},m),f=w.shift()},!1)}function l({x:d=0,y:b=0,width:m,height:p,destWidth:c,destHeight:w,hidpi:f=!0,dataType:g,quality:S=1,type:x="png"},E){var C=e.value,L,W=C.offsetWidth-d;m=m?Math.min(m,W):W;var q=C.offsetHeight-b;p=p?Math.min(p,q):q,f?(c=m,w=p):!c&&!w?(c=Math.round(m*me),w=Math.round(p*me)):c?w||(w=Math.round(p/m*c)):c=Math.round(m/p*w);var X=Ku(c,w),ce=X.getContext("2d");(x==="jpeg"||x==="jpg")&&(x="jpeg",ce.fillStyle="#fff",ce.fillRect(0,0,c,w)),ce.__hidpi__=!0,ce.drawImageByCanvas(C,d,b,m,p,0,0,c,w,!1);var A;try{var $;if(g==="base64")L=X.toDataURL("image/".concat(x),S);else{var ee=ce.getImageData(0,0,c,w),ne=require("pako");L=ne.deflateRaw(ee.data,{to:"string"}),$=!0}A={data:L,compressed:$,width:c,height:w}}catch(H){A={errMsg:"canvasGetImageData:fail ".concat(H)}}if(X.height=X.width=0,ce.__hidpi__=!1,E)E(A);else return A}function u({data:d,x:b,y:m,width:p,height:c,compressed:w},f){try{c||(c=Math.round(d.length/4/p));var g=Ku(p,c),S=g.getContext("2d");if(w){var x=require("pako");d=x.inflateRaw(d)}S.putImageData(new ImageData(new Uint8ClampedArray(d),p,c),0,0),e.value.getContext("2d").drawImage(g,b,m,p,c),g.height=g.width=0}catch{f({errMsg:"canvasPutImageData:fail"});return}f({errMsg:"canvasPutImageData:ok"})}function v({x:d=0,y:b=0,width:m,height:p,destWidth:c,destHeight:w,fileType:f,quality:g,dirname:S},x){var E=l({x:d,y:b,width:m,height:p,destWidth:c,destHeight:w,hidpi:!1,dataType:"base64",type:f,quality:g});if(!E.data||!E.data.length){x({errMsg:E.errMsg.replace("canvasPutImageData","toTempFilePath")});return}Yg(E.data)}var h={actionsChanged:a,getImageData:l,putImageData:u,toTempFilePath:v};function _(d,b,m){var p=h[d];d.indexOf("_")!==0&&typeof p=="function"&&p(b,m)}return fe(h,{_resize:n,_handleSubscribe:_})}var Gu=Ki("ucg"),a0={name:{type:String,default:""}},o0=he({name:"CheckboxGroup",props:a0,emits:["change"],setup(e,{emit:t,slots:r}){var i=B(null),n=Pe(i,t);return s0(e,n),()=>M("uni-checkbox-group",{ref:i},[r.default&&r.default()],512)}});function s0(e,t){var r=[],i=()=>r.reduce((a,o)=>(o.value.checkboxChecked&&a.push(o.value.value),a),new Array);Ne(Gu,{addField(a){r.push(a)},removeField(a){r.splice(r.indexOf(a),1)},checkboxChange(a){t("change",a,{value:i()})}});var n=ge(st,!1);return n&&n.addField({submit:()=>{var a=["",null];return e.name!==""&&(a[0]=e.name,a[1]=i()),a}}),i}var l0={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},u0=he({name:"Checkbox",props:l0,setup(e,{slots:t}){var r=B(e.checked),i=B(e.value);U([()=>e.checked,()=>e.value],([l,u])=>{r.value=l,i.value=u});var n=()=>{r.value=!1},{uniCheckGroup:a,uniLabel:o}=f0(r,i,n),s=l=>{e.disabled||(r.value=!r.value,a&&a.checkboxChange(l))};return o&&(o.addHandler(s),Ee(()=>{o.removeHandler(s)})),tn(e,{"label-click":s}),()=>{var l=Dr(e,"disabled");return M("uni-checkbox",Ye(l,{onClick:s}),[M("div",{class:"uni-checkbox-wrapper"},[M("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[r.value?Zi(Gi,e.color,22):""],2),t.default&&t.default()])],16,["onClick"])}}});function f0(e,t,r){var i=Q(()=>({checkboxChecked:Boolean(e.value),value:t.value})),n={reset:r},a=ge(Gu,!1);a&&a.addField(i);var o=ge(st,!1);o&&o.addField(n);var s=ge(Br,!1);return Ee(()=>{a&&a.removeField(i),o&&o.removeField(n)}),{uniCheckGroup:a,uniForm:o,uniLabel:s}}var Zu,$r,nn,Mt,an,uo;Qt(()=>{$r=plus.os.name==="Android",nn=plus.os.version||""}),document.addEventListener("keyboardchange",function(e){Mt=e.height,an&&an()},!1);function Ju(){}function Wr(e,t,r){Qt(()=>{var i="adjustResize",n="adjustPan",a="nothing",o=plus.webview.currentWebview(),s=uo||o.getStyle()||{},l={mode:r||s.softinputMode===i?i:e.adjustPosition?n:a,position:{top:0,height:0}};if(l.mode===n){var u=t.getBoundingClientRect();l.position.top=u.top,l.position.height=u.height+(Number(e.cursorSpacing)||0)}o.setSoftinputTemporary(l)})}function c0(e,t){if(e.showConfirmBar==="auto"){delete t.softinputNavBar;return}Qt(()=>{var r=plus.webview.currentWebview(),{softinputNavBar:i}=r.getStyle()||{},n=i!=="none";n!==e.showConfirmBar?(t.softinputNavBar=i||"auto",r.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})}function v0(e){var t=e.softinputNavBar;t&&Qt(()=>{var r=plus.webview.currentWebview();r.setStyle({softinputNavBar:t})})}var Qu={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},ef=["keyboardheightchange"];function tf(e,t,r){var i={};function n(a){var o,s=()=>{r("keyboardheightchange",{},{height:Mt,duration:.25}),o&&Mt===0&&Wr(e,a),e.autoBlur&&o&&Mt===0&&($r||parseInt(nn)>=13)&&document.activeElement.blur()};a.addEventListener("focus",()=>{o=!0,clearTimeout(Zu),document.addEventListener("click",Ju,!1),an=s,Mt&&r("keyboardheightchange",{},{height:Mt,duration:0}),c0(e,i),Wr(e,a)}),$r&&a.addEventListener("click",()=>{!e.disabled&&!e.readOnly&&o&&Mt===0&&Wr(e,a)}),$r||(parseInt(nn)<12&&a.addEventListener("touchstart",()=>{!e.disabled&&!e.readOnly&&!o&&Wr(e,a)}),parseFloat(nn)>=14.6&&!uo&&Qt(()=>{var u=plus.webview.currentWebview();uo=u.getStyle()||{}}));var l=()=>{document.removeEventListener("click",Ju,!1),an=null,Mt&&r("keyboardheightchange",{},{height:0,duration:0}),v0(i),$r&&(Zu=setTimeout(()=>{Wr(e,a,!0)},300)),String(navigator.vendor).indexOf("Apple")===0&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};a.addEventListener("blur",()=>{a.blur(),o=!1,l()})}U(()=>t.value,a=>n(a))}var rf=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,nf=/^<\/([-A-Za-z0-9_]+)[^>]*>/,d0=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,h0=ur("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),p0=ur("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),g0=ur("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),m0=ur("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),_0=ur("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),b0=ur("script,style");function af(e,t){var r,i,n,a=[],o=e;for(a.last=function(){return this[this.length-1]};e;){if(i=!0,!a.last()||!b0[a.last()]){if(e.indexOf(""),r>=0&&(t.comment&&t.comment(e.substring(4,r)),e=e.substring(r+3),i=!1)):e.indexOf("]*>"),function(v,h){return h=h.replace(/|/g,"$1$2"),t.chars&&t.chars(h),""}),u("",a.last());if(e==o)throw"Parse Error: "+e;o=e}u();function l(v,h,_,d){if(h=h.toLowerCase(),p0[h])for(;a.last()&&g0[a.last()];)u("",a.last());if(m0[h]&&a.last()==h&&u("",h),d=h0[h]||!!d,d||a.push(h),t.start){var b=[];_.replace(d0,function(m,p){var c=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:_0[p]?p:"";b.push({name:p,value:c,escaped:c.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(h,b,d)}}function u(v,h){if(h)for(var _=a.length-1;_>=0&&a[_]!=h;_--);else var _=0;if(_>=0){for(var d=a.length-1;d>=_;d--)t.end&&t.end(a[d]);a.length=_}}}function ur(e){for(var t={},r=e.split(","),i=0;io()),delete fo[t]}}n.push(r)}function w0(e){var t=e.import("blots/block/embed");class r extends t{}return r.blotName="divider",r.tagName="HR",{"formats/divider":r}}function y0(e){var t=e.import("blots/inline");class r extends t{}return r.blotName="ins",r.tagName="INS",{"formats/ins":r}}function S0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["left","right","center","justify"]},n=new r.Style("align","text-align",i);return{"formats/align":n}}function x0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["rtl"]},n=new r.Style("direction","direction",i);return{"formats/direction":n}}function T0(e){var t=e.import("parchment"),r=e.import("blots/container"),i=e.import("formats/list/item");class n extends r{static create(o){var s=o==="ordered"?"OL":"UL",l=super.create(s);return(o==="checked"||o==="unchecked")&&l.setAttribute("data-checked",o==="checked"),l}static formats(o){if(o.tagName==="OL")return"ordered";if(o.tagName==="UL")return o.hasAttribute("data-checked")?o.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(o){super(o);var s=l=>{if(l.target.parentNode===o){var u=this.statics.formats(o),v=t.find(l.target);u==="checked"?v.format("list","unchecked"):u==="unchecked"&&v.format("list","checked")}};o.addEventListener("click",s)}format(o,s){this.children.length>0&&this.children.tail.format(o,s)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(o,s){if(o instanceof i)super.insertBefore(o,s);else{var l=s==null?this.length():s.offset(this),u=this.split(l);u.parent.insertBefore(o,u)}}optimize(o){super.optimize(o);var s=this.next;s!=null&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(s.moveChildren(this),s.remove())}replace(o){if(o.statics.blotName!==this.statics.blotName){var s=t.create(this.statics.defaultChild);o.moveChildren(s),this.appendChild(s)}super.replace(o)}}return n.blotName="list",n.scope=t.Scope.BLOCK_BLOT,n.tagName=["OL","UL"],n.defaultChild="list-item",n.allowedChildren=[i],{"formats/list":n}}function E0(e){var{Scope:t}=e.import("parchment"),r=e.import("formats/background"),i=new r.constructor("backgroundColor","background-color",{scope:t.INLINE});return{"formats/backgroundColor":i}}function C0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK},n=["margin","marginTop","marginBottom","marginLeft","marginRight"],a=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],o={};return n.concat(a).forEach(s=>{o["formats/".concat(s)]=new r.Style(s,Ve(s),i)}),o}function O0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.INLINE},n=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],a={};return n.forEach(o=>{a["formats/".concat(o)]=new r.Style(o,Ve(o),i)}),a}function M0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],n={};return i.forEach(({name:a,scope:o})=>{n["formats/".concat(a)]=new r.Style(a,Ve(a),{scope:o})}),n}function I0(e){var t=e.import("formats/image"),r=["alt","height","width","data-custom","class","data-local"];t.sanitize=n=>n,t.formats=function(a){return r.reduce(function(o,s){return a.hasAttribute(s)&&(o[s]=a.getAttribute(s)),o},{})};var i=t.prototype.format;t.prototype.format=function(n,a){r.indexOf(n)>-1?a?this.domNode.setAttribute(n,a):this.domNode.removeAttribute(n):i.call(this,n,a)}}function A0(e){var t={divider:w0,ins:y0,align:S0,direction:x0,list:T0,background:E0,box:C0,font:O0,text:M0,image:I0},r={};Object.values(t).forEach(i=>fe(r,i(e))),e.register(r,!0)}function P0(e,t,r){var i,n,a,o=!1;U(()=>e.readOnly,d=>{i&&(a.enable(!d),d||a.blur())}),U(()=>e.placeholder,d=>{i&&a.root.setAttribute("data-placeholder",d)});function s(d){var b=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],m="",p;af(d,{start:function(w,f,g){if(!b.includes(w)){p=!g;return}p=!1;var S=f.map(({name:E,value:C})=>"".concat(E,'="').concat(C,'"')).join(" "),x="<".concat(w," ").concat(S," ").concat(g?"/":"",">");m+=x},end:function(w){p||(m+=""))},chars:function(w){p||(m+=w)}}),n=!0;var c=a.clipboard.convert(m);return n=!1,c}function l(){var d=a.root.innerHTML,b=a.getText(),m=a.getContents();return{html:d,text:b,delta:m}}var u={};function v(d){var b=d?a.getFormat(d):{},m=Object.keys(b);(m.length!==Object.keys(u).length||m.find(p=>b[p]!==u[p]))&&(u=b,r("statuschange",{},b))}function h(d){var b=window.Quill;A0(b);var m={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};d.length&&(b.register("modules/ImageResize",window.ImageResize.default),m.modules={ImageResize:{modules:d}});var p=t.value;a=new b(p,m);var c=a.root,w=["focus","blur","input"];w.forEach(f=>{c.addEventListener(f,g=>{f==="input"?g.stopPropagation():r(f,g,l())})}),a.on("text-change",()=>{o||r("input",{},l())}),a.on("selection-change",v),a.on("scroll-optimize",()=>{var f=a.selection.getRange()[0];v(f)}),a.clipboard.addMatcher(Node.ELEMENT_NODE,(f,g)=>(n||g.ops&&(g.ops=g.ops.filter(({insert:S})=>typeof S=="string").map(({insert:S})=>({insert:S}))),g)),i=!0,r("ready",{},{})}Oe(()=>{var d=[];e.showImgSize&&d.push("DisplaySize"),e.showImgToolbar&&d.push("Toolbar"),e.showImgResize&&d.push("Resize");var b="./__uniappquill.js";of(window.Quill,b,()=>{if(d.length){var m="./__uniappquillimageresize.js";of(window.ImageResize,m,()=>{h(d)})}else h(d)})});var _=pn();hn((d,b,m)=>{var{options:p,callbackId:c}=b,w,f,g;if(i){var S=window.Quill;switch(d){case"format":{var{name:x="",value:E=!1}=p;f=a.getSelection(!0);var C=a.getFormat(f)[x]||!1;if(["bold","italic","underline","strike","ins"].includes(x))E=!C;else if(x==="direction"){E=E==="rtl"&&C?!1:E;var L=a.getFormat(f).align;E==="rtl"&&!L?a.format("align","right","user"):!E&&L==="right"&&a.format("align",!1,"user")}else if(x==="indent"){var W=a.getFormat(f).direction==="rtl";E=E==="+1",W&&(E=!E),E=E?"+1":"-1"}else x==="list"&&(E=E==="check"?"unchecked":E,C=C==="checked"?"unchecked":C),E=C&&C!==(E||!1)||!C&&E?E:!C;a.format(x,E,"user")}break;case"insertDivider":f=a.getSelection(!0),a.insertText(f.index,` -`,"user"),a.insertEmbed(f.index+1,"divider",!0,"user"),a.setSelection(f.index+2,0,"silent");break;case"insertImage":{f=a.getSelection(!0);var{src:q="",alt:X="",width:ce="",height:A="",extClass:$="",data:ee={}}=p,ne=ht(q);a.insertEmbed(f.index,"image",ne,"user");var H=/^(file|blob):/.test(ne)?ne:!1;o=!0,a.formatText(f.index,1,"data-local",H),a.formatText(f.index,1,"alt",X),a.formatText(f.index,1,"width",ce),a.formatText(f.index,1,"height",A),a.formatText(f.index,1,"class",$),o=!1,a.formatText(f.index,1,"data-custom",Object.keys(ee).map(re=>"".concat(re,"=").concat(ee[re])).join("&")),a.setSelection(f.index+1,0,"silent")}break;case"insertText":{f=a.getSelection(!0);var{text:J=""}=p;a.insertText(f.index,J,"user"),a.setSelection(f.index+J.length,0,"silent")}break;case"setContents":{var{delta:ie,html:we}=p;typeof ie=="object"?a.setContents(ie,"silent"):typeof we=="string"?a.setContents(s(we),"silent"):g="contents is missing"}break;case"getContents":w=l();break;case"clear":a.setText("");break;case"removeFormat":{f=a.getSelection(!0);var Y=S.import("parchment");f.length?a.removeFormat(f.index,f.length,"user"):Object.keys(a.getFormat(f)).forEach(re=>{Y.query(re,Y.Scope.INLINE)&&a.format(re,!1)})}break;case"undo":a.history.undo();break;case"redo":a.history.redo();break;case"blur":a.blur();break;case"getSelectionText":f=a.selection.savedRange,w={text:""},f&&f.length!==0&&(w.text=a.getText(f.index,f.length));break;case"scrollIntoView":a.scrollIntoView();break}v(f)}else g="not ready";c&&m({callbackId:c,data:fe({},w,{errMsg:"".concat(d,":").concat(g?"fail "+g:"ok")})})},_,!0)}var R0=fe({},Qu,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),L0=he({name:"Editor",props:R0,emit:["ready","focus","blur","input","statuschange",...ef],setup(e,{emit:t}){var r=B(null),i=Pe(r,t);return P0(e,r,i),tf(e,r,i),()=>M("uni-editor",{ref:r,id:e.id,class:"ql-container"},null,8,["id"])}}),sf="#10aeff",N0="#f76260",lf="#b2b2b2",k0="#f43530",D0={success:{d:wg,c:bi},success_no_circle:{d:Gi,c:bi},info:{d:_g,c:sf},warn:{d:Sg,c:N0},waiting:{d:yg,c:sf},cancel:{d:pg,c:k0},download:{d:mg,c:bi},search:{d:bg,c:lf},clear:{d:gg,c:lf}},B0=he({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=Q(()=>D0[e.type]);return()=>{var{value:r}=t;return M("uni-icon",null,[r&&r.d&&Zi(r.d,e.color||r.c,Ut(e.size))])}}}),F0={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!0}},on={widthFix:["offsetWidth","height"],heightFix:["offsetHeight","width"]},$0={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},W0=he({name:"Image",props:F0,setup(e,{emit:t}){var r=B(null),i=U0(r,e),n=Pe(r,t),{fixSize:a}=Y0(r,e,i);return V0(i,a,n),()=>{var{mode:o}=e,{imgSrc:s,modeStyle:l,src:u}=i,v;return v=s?M("img",{src:s,draggable:e.draggable},null,8,["src","draggable"]):M("img",null,null),M("uni-image",{ref:r},[M("div",{style:l},null,4),v,on[o]?M(jt,{onResize:a},null,8,["onResize"]):M("span",null,null)],512)}}});function U0(e,t){var r=B(""),i=Q(()=>{var a="auto",o="",s=$0[t.mode];return s?(s[0]&&(o=s[0]),s[1]&&(a=s[1])):(o="0% 0%",a="100% 100%"),"background-image:".concat(r.value?'url("'+r.value+'")':"none",`; - background-position:`).concat(o,`; - background-size:`).concat(a,";")}),n=Te({rootEl:e,src:Q(()=>t.src?ht(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:r});return Oe(()=>{var a=e.value,o=a.style;n.origWidth=Number(o.width)||0,n.origHeight=Number(o.height)||0}),n}function V0(e,t,r){var i,n=(s=0,l=0,u="")=>{e.origWidth=s,e.origHeight=l,e.imgSrc=u},a=s=>{if(!s){o(),n();return}i=i||new Image,i.onload=l=>{var{width:u,height:v}=i;n(u,v,s),t(),o(),r("load",l,{width:u,height:v})},i.onerror=l=>{n(),o(),r("error",l,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},i.src=s},o=()=>{i&&(i.onload=null,i.onerror=null,i=null)};U(()=>e.src,s=>a(s)),Oe(()=>a(e.src)),Ee(()=>o())}var j0=navigator.vendor==="Google Inc.";function H0(e){return j0&&e>10&&(e=Math.round(e/2)*2),e}function Y0(e,t,r){var i=()=>{var{mode:a}=t,o=on[a];if(!!o){var{origWidth:s,origHeight:l}=r,u=s&&l?s/l:0;if(!!u){var v=e.value,h=v[o[0]];h&&(v.style[o[1]]=H0(h/u)+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},n=()=>{var{style:a}=e.value,{origStyle:{width:o,height:s}}=r;a.width=o,a.height=s};return U(()=>t.mode,(a,o)=>{on[o]&&n(),on[a]&&i()}),{fixSize:i,resetSize:n}}function z0(e,t){var r=0,i,n,a=function(...o){var s=Date.now();if(clearTimeout(i),n=()=>{n=null,r=s,e.apply(this,o)},s-r{document.addEventListener(r,function(){sn.forEach(i=>{i.userAction=!0,co++,setTimeout(()=>{co--,co||(i.userAction=!1)},0)})},q0)}),uf=!0}sn.push(e)}function K0(e){var t=sn.indexOf(e);t>=0&&sn.splice(t,1)}function G0(){var e=Te({userAction:!1});return Oe(()=>{X0(e)}),Ee(()=>{K0(e)}),{state:e}}function ff(){var e=Te({attrs:{}});return Oe(()=>{for(var t=xt();t;){var r=t.type.__scopeId;r&&(e.attrs[r]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function Z0(e,t){var r=ge(st,!1);if(!!r){var i=xt(),n={submit(){var a=i.proxy;return[a[e],typeof t=="string"?a[t]:t.value]},reset(){typeof t=="string"?i.proxy[t]="":t.value=""}};r.addField(n),Ee(()=>{r.removeField(n)})}}function J0(e,t){var r=document.activeElement;if(!r)return t({});var i={};["input","textarea"].includes(r.tagName.toLowerCase())&&(i.start=r.selectionStart,i.end=r.selectionEnd),t(i)}var Q0=function(){ft(Ct(),"getSelectedTextRange",J0)},e_=200,vo;function ho(e){return e===null?"":String(e)}var cf=fe({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"}},Qu),vf=["input","focus","blur","update:value","update:modelValue","update:focus",...ef];function t_(e,t,r){var i=B(null),n=Pe(t,r),a=Q(()=>{var h=Number(e.selectionStart);return isNaN(h)?-1:h}),o=Q(()=>{var h=Number(e.selectionEnd);return isNaN(h)?-1:h}),s=Q(()=>{var h=Number(e.cursor);return isNaN(h)?-1:h}),l=Q(()=>{var h=Number(e.maxlength);return isNaN(h)?140:h}),u=ho(e.modelValue)||ho(e.value),v=Te({value:u,valueOrigin:u,maxlength:l,focus:e.focus,composing:!1,selectionStart:a,selectionEnd:o,cursor:s});return U(()=>v.focus,h=>r("update:focus",h)),U(()=>v.maxlength,h=>v.value=v.value.slice(0,h)),{fieldRef:i,state:v,trigger:n}}function r_(e,t,r,i){var n=dd(s=>{t.value=ho(s)},100);U(()=>e.modelValue,n),U(()=>e.value,n);var a=z0((s,l)=>{n.cancel(),r("update:modelValue",l.value),r("update:value",l.value),i("input",s,l)},100),o=(s,l,u)=>{n.cancel(),a(s,l),u&&a.flush()};return wl(()=>{n.cancel(),a.cancel()}),{trigger:i,triggerInput:o}}function i_(e,t){var{state:r}=G0(),i=Q(()=>e.autoFocus||e.focus);function n(){if(!!i.value){var o=t.value;if(!o||!("plus"in window)){setTimeout(n,100);return}{var s=e_-(Date.now()-vo);if(s>0){setTimeout(n,s);return}o.focus(),r.userAction||plus.key.showSoftKeybord()}}}function a(){var o=t.value;o&&o.blur()}U(()=>e.focus,o=>{o?n():a()}),Oe(()=>{vo=vo||Date.now(),i.value&&or(n)})}function n_(e,t,r,i,n){function a(){var l=e.value;l&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&(l.selectionStart=t.selectionStart,l.selectionEnd=t.selectionEnd)}function o(){var l=e.value;l&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&(l.selectionEnd=l.selectionStart=t.cursor)}function s(){var l=e.value,u=function(_){t.focus=!0,r("focus",_,{value:t.value}),a(),o()},v=function(_,d){_.stopPropagation(),!(typeof n=="function"&&n(_,t)===!1)&&(t.value=l.value,t.composing||i(_,{value:l.value,cursor:l.selectionEnd},d))},h=function(_){t.composing&&(t.composing=!1,v(_,!0)),t.focus=!1,r("blur",_,{value:t.value,cursor:_.target.selectionEnd})};l.addEventListener("change",_=>_.stopPropagation()),l.addEventListener("focus",u),l.addEventListener("blur",h),l.addEventListener("input",v),l.addEventListener("compositionstart",_=>{_.stopPropagation(),t.composing=!0}),l.addEventListener("compositionend",_=>{_.stopPropagation(),t.composing&&(t.composing=!1,v(_))})}U([()=>t.selectionStart,()=>t.selectionEnd],a),U(()=>t.cursor,o),U(()=>e.value,s)}function df(e,t,r,i){Q0();var{fieldRef:n,state:a,trigger:o}=t_(e,t,r),{triggerInput:s}=r_(e,a,r,o);i_(e,n),tf(e,n,o);var{state:l}=ff();Z0("name",a),n_(n,a,o,s,i);var u=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:n,state:a,scopedAttrsState:l,fixDisabledColor:u,trigger:o}}var a_=fe({},cf,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),o_=he({name:"Input",props:a_,emits:["confirm",...vf],setup(e,{emit:t}){var r=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],n=Q(()=>{var c="";switch(e.type){case"text":e.confirmType==="search"&&(c="search");break;case"idcard":c="text";break;case"digit":c="number";break;default:c=~r.includes(e.type)?e.type:"text";break}return e.password?"password":c}),a=Q(()=>{var c=i.indexOf(e.textContentType),w=i.indexOf(Ve(e.textContentType)),f=c!==-1?c:w!==-1?w:0;return i[f]}),o=B(""),s,l=B(null),{fieldRef:u,state:v,scopedAttrsState:h,fixDisabledColor:_,trigger:d}=df(e,l,t,(c,w)=>{var f=c.target;if(n.value==="number"){if(s&&(f.removeEventListener("blur",s),s=null),f.validity&&!f.validity.valid)return!o.value&&c.data==="-"||o.value[0]==="-"&&c.inputType==="deleteContentBackward"?(o.value="-",w.value="",s=()=>{o.value=f.value=""},f.addEventListener("blur",s),!1):(o.value=w.value=f.value=o.value==="-"?"":o.value,!1);o.value=f.value;var g=w.maxlength;if(g>0&&f.value.length>g)return f.value=f.value.slice(0,g),w.value=f.value,!1}}),b=["number","digit"],m=Q(()=>b.includes(e.type)?"0.000000000000000001":"");function p(c){c.key==="Enter"&&(c.stopPropagation(),d("confirm",c,{value:c.target.value}))}return()=>{var c=e.disabled&&_?M("input",{ref:u,value:v.value,tabindex:"-1",readonly:!!e.disabled,type:n.value,maxlength:v.maxlength,step:m.value,class:"uni-input-input",onFocus:w=>w.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):M("input",{ref:u,value:v.value,disabled:!!e.disabled,type:n.value,maxlength:v.maxlength,step:m.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",autocomplete:a.value,onKeyup:p},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return M("uni-input",{ref:l},[M("div",{class:"uni-input-wrapper"},[Er(M("div",Ye(h.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Lr,!(v.value.length||o.value==="-")]]),e.confirmType==="search"?M("form",{action:"",onSubmit:w=>w.preventDefault(),class:"uni-input-form"},[c],40,["onSubmit"]):c])],512)}}});function s_(e){return Object.keys(e).map(t=>[t,e[t]])}var l_=["class","style"],u_=/^on[A-Z]+/,hf=(e={})=>{var{excludeListeners:t=!1,excludeKeys:r=[]}=e,i=xt(),n=Sa({}),a=Sa({}),o=Sa({}),s=r.concat(l_);return i.attrs=Te(i.attrs),Rp(()=>{var l=s_(i.attrs).reduce((u,[v,h])=>(s.includes(v)?u.exclude[v]=h:u_.test(v)?(t||(u.attrs[v]=h),u.listeners[v]=h):u.attrs[v]=h,u),{exclude:{},attrs:{},listeners:{}});n.value=l.attrs,a.value=l.listeners,o.value=l.exclude}),{$attrs:n,$listeners:a,$excludeAttrs:o}},ln,Ur;function un(){Qt(()=>{ln||(ln=plus.webview.currentWebview()),Ur||(Ur=(ln.getStyle()||{}).pullToRefresh||{})})}function It({disable:e}){Ur&&Ur.support&&ln.setPullToRefresh(Object.assign({},Ur,{support:!e}))}function po(e){var t=[];return Array.isArray(e)&&e.forEach(r=>{Di(r)?r.type===at?t.push(...po(r.children)):t.push(r):Array.isArray(r)&&t.push(...po(r))}),t}function Vr(e){var t=xt();t.rebuild=e}var f_={scaleArea:{type:Boolean,default:!1}},c_=he({inheritAttrs:!1,name:"MovableArea",props:f_,setup(e,{slots:t}){var r=B(null),i=B(!1),{setContexts:n,events:a}=v_(e,r),{$listeners:o,$attrs:s,$excludeAttrs:l}=hf(),u=o.value,v=["onTouchstart","onTouchmove","onTouchend"];v.forEach(p=>{var c=u[p],w=a["_".concat(p)];u[p]=c?[].concat(c,w):w}),Oe(()=>{a._resize(),un(),i.value=!0});var h=[],_=[];function d(){for(var p=[],c=function(f){var g=h[f];g instanceof Element||(g=g.el);var S=_.find(x=>g===x.rootRef.value);S&&p.push(Ri(S))},w=0;w{h=r.value.children,d()});var b=p=>{_.push(p),d()},m=p=>{var c=_.indexOf(p);c>=0&&(_.splice(c,1),d())};return Ne("_isMounted",i),Ne("movableAreaRootRef",r),Ne("addMovableViewContext",b),Ne("removeMovableViewContext",m),()=>(t.default&&t.default(),M("uni-movable-area",Ye({ref:r},s.value,l.value,u),[M(jt,{onReize:a._resize},null,8,["onReize"]),h],16))}});function pf(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function v_(e,t){var r=B(0),i=B(0),n=Te({x:null,y:null}),a=B(null),o=null,s=[];function l(m){m&&m!==1&&(e.scaleArea?s.forEach(function(p){p._setScale(m)}):o&&o._setScale(m))}function u(m,p=s){var c=t.value;function w(f){for(var g=0;g{It({disable:!0});var p=m.touches;if(p&&p.length>1){var c={x:p[1].pageX-p[0].pageX,y:p[1].pageY-p[0].pageY};if(a.value=pf(c),n.x=c.x,n.y=c.y,!e.scaleArea){var w=u(p[0].target),f=u(p[1].target);o=w&&w===f?w:null}}}),h=Vt(m=>{var p=m.touches;if(p&&p.length>1){m.preventDefault();var c={x:p[1].pageX-p[0].pageX,y:p[1].pageY-p[0].pageY};if(n.x!==null&&a.value&&a.value>0){var w=pf(c)/a.value;l(w)}n.x=c.x,n.y=c.y}}),_=Vt(m=>{It({disable:!1});var p=m.touches;p&&p.length||m.changedTouches&&(n.x=0,n.y=0,a.value=null,e.scaleArea?s.forEach(function(c){c._endScale()}):o&&o._endScale())});function d(){b(),s.forEach(function(m,p){m.setParent()})}function b(){var m=window.getComputedStyle(t.value),p=t.value.getBoundingClientRect();r.value=p.width-["Left","Right"].reduce(function(c,w){var f="border"+w+"Width",g="padding"+w;return c+parseFloat(m[f])+parseFloat(m[g])},0),i.value=p.height-["Top","Bottom"].reduce(function(c,w){var f="border"+w+"Width",g="padding"+w;return c+parseFloat(m[f])+parseFloat(m[g])},0)}return Ne("movableAreaWidth",r),Ne("movableAreaHeight",i),{setContexts(m){s=m},events:{_onTouchstart:v,_onTouchmove:h,_onTouchend:_,_resize:d}}}var jr=function(e,t,r,i){e.addEventListener(t,n=>{typeof r=="function"&&r(n)===!1&&((typeof n.cancelable!="undefined"?n.cancelable:!0)&&n.preventDefault(),n.stopPropagation())},{passive:!1})},gf,mf;function fn(e,t,r){Ee(()=>{document.removeEventListener("mousemove",gf),document.removeEventListener("mouseup",mf)});var i=0,n=0,a=0,o=0,s=function(d,b,m,p){if(t({target:d.target,currentTarget:d.currentTarget,preventDefault:d.preventDefault.bind(d),stopPropagation:d.stopPropagation.bind(d),touches:d.touches,changedTouches:d.changedTouches,detail:{state:b,x:m,y:p,dx:m-i,dy:p-n,ddx:m-a,ddy:p-o,timeStamp:d.timeStamp}})===!1)return!1},l=null,u,v;jr(e,"touchstart",function(d){if(u=!0,d.touches.length===1&&!l)return l=d,i=a=d.touches[0].pageX,n=o=d.touches[0].pageY,s(d,"start",i,n)}),jr(e,"mousedown",function(d){if(v=!0,!u&&!l)return l=d,i=a=d.pageX,n=o=d.pageY,s(d,"start",i,n)}),jr(e,"touchmove",function(d){if(d.touches.length===1&&l){var b=s(d,"move",d.touches[0].pageX,d.touches[0].pageY);return a=d.touches[0].pageX,o=d.touches[0].pageY,b}});var h=gf=function(d){if(!u&&v&&l){var b=s(d,"move",d.pageX,d.pageY);return a=d.pageX,o=d.pageY,b}};document.addEventListener("mousemove",h),jr(e,"touchend",function(d){if(d.touches.length===0&&l)return u=!1,l=null,s(d,"end",d.changedTouches[0].pageX,d.changedTouches[0].pageY)});var _=mf=function(d){if(v=!1,!u&&l)return l=null,s(d,"end",d.pageX,d.pageY)};document.addEventListener("mouseup",_),jr(e,"touchcancel",function(d){if(l){u=!1;var b=l;return l=null,s(d,r?"cancel":"end",b.touches[0].pageX,b.touches[0].pageY)}})}function cn(e,t,r){return e>t-r&&ethis._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,r=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&rthis._endPositionY)&&(r=this._endPositionY),{x:t,y:r}},lt.prototype.ds=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},lt.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},lt.prototype.dt=function(){return-this._x_v/this._x_a},lt.prototype.done=function(){var e=cn(this.s().x,this._endPositionX)||cn(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},lt.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},lt.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function qe(e,t,r){this._m=e,this._k=t,this._c=r,this._solution=null,this._endPosition=0,this._startTime=0}qe.prototype._solve=function(e,t){var r=this._c,i=this._m,n=this._k,a=r*r-4*i*n;if(a===0){var o=-r/(2*i),s=e,l=t/(o*e);return{x:function(c){return(s+l*c)*Math.pow(Math.E,o*c)},dx:function(c){var w=Math.pow(Math.E,o*c);return o*(s+l*c)*w+l*w}}}if(a>0){var u=(-r-Math.sqrt(a))/(2*i),v=(-r+Math.sqrt(a))/(2*i),h=(t-u*e)/(v-u),_=e-h;return{x:function(c){var w,f;return c===this._t&&(w=this._powER1T,f=this._powER2T),this._t=c,w||(w=this._powER1T=Math.pow(Math.E,u*c)),f||(f=this._powER2T=Math.pow(Math.E,v*c)),_*w+h*f},dx:function(c){var w,f;return c===this._t&&(w=this._powER1T,f=this._powER2T),this._t=c,w||(w=this._powER1T=Math.pow(Math.E,u*c)),f||(f=this._powER2T=Math.pow(Math.E,v*c)),_*u*w+h*v*f}}}var d=Math.sqrt(4*i*n-r*r)/(2*i),b=-r/2*i,m=e,p=(t-b*e)/d;return{x:function(c){return Math.pow(Math.E,b*c)*(m*Math.cos(d*c)+p*Math.sin(d*c))},dx:function(c){var w=Math.pow(Math.E,b*c),f=Math.cos(d*c),g=Math.sin(d*c);return w*(p*d*f-m*d*g)+b*w*(p*g+m*f)}}},qe.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},qe.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},qe.prototype.setEnd=function(e,t,r){if(r||(r=new Date().getTime()),e!==this._endPosition||!Ht(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(Ht(t,.1)&&(t=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),Ht(t,.1)&&(t=0),Ht(i,.1)&&(i=0),i+=this._endPosition),this._solution&&Ht(i-e,.1)&&Ht(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=r)}},qe.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},qe.prototype.done=function(e){return e||(e=new Date().getTime()),cn(this.x(),this._endPosition,.1)&&Ht(this.dx(),.1)},qe.prototype.reconfigure=function(e,t,r){this._m=e,this._k=t,this._c=r,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())},qe.prototype.springConstant=function(){return this._k},qe.prototype.damping=function(){return this._c},qe.prototype.configuration=function(){function e(r,i){r.reconfigure(1,i,r.damping())}function t(r,i){r.reconfigure(1,r.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function Hr(e,t,r){this._springX=new qe(e,t,r),this._springY=new qe(e,t,r),this._springScale=new qe(e,t,r),this._startTime=0}Hr.prototype.setEnd=function(e,t,r,i){var n=new Date().getTime();this._springX.setEnd(e,i,n),this._springY.setEnd(t,i,n),this._springScale.setEnd(r,i,n),this._startTime=n},Hr.prototype.x=function(){var e=(new Date().getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Hr.prototype.done=function(){var e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Hr.prototype.reconfigure=function(e,t,r){this._springX.reconfigure(e,t,r),this._springY.reconfigure(e,t,r),this._springScale.reconfigure(e,t,r)};var d_={direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},h_=he({name:"MovableView",props:d_,emits:["change","scale"],setup(e,{slots:t,emit:r}){var i=B(null),n=Pe(i,r),{setParent:a}=p_(e,n,i);return()=>M("uni-movable-view",{ref:i},[M(jt,{onResize:a},null,8,["onResize"]),t.default&&t.default()],512)}}),mo=!1;function _f(e){mo||(mo=!0,requestAnimationFrame(function(){e(),mo=!1}))}function bf(e,t){if(e===t)return 0;var r=e.offsetLeft;return e.offsetParent?r+=bf(e.offsetParent,t):0}function wf(e,t){if(e===t)return 0;var r=e.offsetTop;return e.offsetParent?r+=wf(e.offsetParent,t):0}function yf(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function Sf(e,t,r){var i={id:0,cancelled:!1},n=function(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)};function a(o,s,l,u){if(!o||!o.cancelled){l(s);var v=s.done();v||o.cancelled||(o.id=requestAnimationFrame(a.bind(null,o,s,l,u))),v&&u&&u(s)}}return a(i,e,t,r),{cancel:n.bind(null,i),model:e}}function vn(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function p_(e,t,r){var i=ge("movableAreaWidth",B(0)),n=ge("movableAreaHeight",B(0)),a=ge("_isMounted",B(!1)),o=ge("movableAreaRootRef"),s=ge("addMovableViewContext",()=>{}),l=ge("removeMovableViewContext",()=>{}),u=B(vn(e.x)),v=B(vn(e.y)),h=B(Number(e.scaleValue)||1),_=B(0),d=B(0),b=B(0),m=B(0),p=B(0),c=B(0),w=null,f=null,g={x:0,y:0},S={x:0,y:0},x=1,E=1,C=0,L=0,W=!1,q=!1,X,ce,A=null,$=null,ee=new go,ne=new go,H={historyX:[0,0],historyY:[0,0],historyT:[0,0]},J=Q(()=>{var O=Number(e.damping);return isNaN(O)?20:O}),ie=Q(()=>{var O=Number(e.friction);return isNaN(O)||O<=0?2:O}),we=Q(()=>{var O=Number(e.scaleMin);return isNaN(O)?.5:O}),Y=Q(()=>{var O=Number(e.scaleMax);return isNaN(O)?10:O}),re=Q(()=>e.direction==="all"||e.direction==="horizontal"),le=Q(()=>e.direction==="all"||e.direction==="vertical"),ve=new Hr(1,9*Math.pow(J.value,2)/40,J.value),Me=new lt(1,ie.value);U(()=>e.x,O=>{u.value=vn(O)}),U(()=>e.y,O=>{v.value=vn(O)}),U(u,O=>{Ge(O)}),U(v,O=>{At(O)}),U(()=>e.scaleValue,O=>{h.value=Number(O)||0}),U(h,O=>{Xr(O)}),U(we,()=>{Ie()}),U(Y,()=>{Ie()});function Ce(){f&&f.cancel(),w&&w.cancel()}function Ge(O){if(re.value){if(O+S.x===C)return C;w&&w.cancel(),Z(O+S.x,v.value+S.y,x)}return O}function At(O){if(le.value){if(O+S.y===L)return L;w&&w.cancel(),Z(u.value+S.x,O+S.y,x)}return O}function Ie(){if(!e.scale)return!1;D(x,!0),k(x)}function Xr(O){return e.scale?(O=N(O),D(O,!0),k(O),O):!1}function Kr(){W||e.disabled||(It({disable:!0}),Ce(),H.historyX=[0,0],H.historyY=[0,0],H.historyT=[0,0],re.value&&(X=C),le.value&&(ce=L),r.value.style.willChange="transform",A=null,$=null,q=!0)}function y(O){if(!W&&!e.disabled&&q){var j=C,z=L;if($===null&&($=Math.abs(O.detail.dx/O.detail.dy)>1?"htouchmove":"vtouchmove"),re.value&&(j=O.detail.dx+X,H.historyX.shift(),H.historyX.push(j),!le.value&&A===null&&(A=Math.abs(O.detail.dx/O.detail.dy)<1)),le.value&&(z=O.detail.dy+ce,H.historyY.shift(),H.historyY.push(z),!re.value&&A===null&&(A=Math.abs(O.detail.dy/O.detail.dx)<1)),H.historyT.shift(),H.historyT.push(O.detail.timeStamp),!A){O.preventDefault();var de="touch";jp.value&&(e.outOfBounds?(de="touch-out-of-bounds",j=p.value+ee.x(j-p.value)):j=p.value),zc.value&&(e.outOfBounds?(de="touch-out-of-bounds",z=c.value+ne.x(z-c.value)):z=c.value),_f(function(){K(j,z,x,de)})}}}function T(){if(!W&&!e.disabled&&q&&(It({disable:!1}),r.value.style.willChange="auto",q=!1,!A&&!G("out-of-bounds")&&e.inertia)){var O=1e3*(H.historyX[1]-H.historyX[0])/(H.historyT[1]-H.historyT[0]),j=1e3*(H.historyY[1]-H.historyY[0])/(H.historyT[1]-H.historyT[0]);Me.setV(O,j),Me.setS(C,L);var z=Me.delta().x,de=Me.delta().y,se=z+C,Le=de+L;sep.value&&(se=p.value,Le=L+(p.value-C)*de/z),Lec.value&&(Le=c.value,se=C+(c.value-L)*z/de),Me.setEnd(se,Le),f=Sf(Me,function(){var Ue=Me.s(),Ae=Ue.x,tt=Ue.y;K(Ae,tt,x,"friction")},function(){f.cancel()})}!e.outOfBounds&&!e.inertia&&Ce()}function I(O,j){var z=!1;return O>p.value?(O=p.value,z=!0):Oc.value?(j=c.value,z=!0):j{fn(r.value,j=>{switch(j.detail.state){case"start":Kr();break;case"move":y(j);break;case"end":T()}}),ue(),Me.reconfigure(1,ie.value),ve.reconfigure(1,9*Math.pow(J.value,2)/40,J.value),r.value.style.transformOrigin="center",un();var O={rootRef:r,setParent:ue,_endScale:Re,_setScale:Se};s(O),yt(()=>{l(O)})}),yt(()=>{Ce()}),{setParent:ue}}var g_=["navigate","redirect","switchTab","reLaunch","navigateBack"],m_={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return Boolean(~g_.indexOf(e))}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1}},__=he({name:"Navigator",compatConfig:{MODE:3},props:m_,setup(e,{slots:t}){var{hovering:r,binding:i}=lo(e);function n(a){if(e.openType!=="navigateBack"&&!e.url){console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}switch(e.openType){case"navigate":uni.navigateTo({url:e.url});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta});break}}return()=>{var{hoverClass:a}=e,o=e.hoverClass&&e.hoverClass!=="none";return M("uni-navigator",Ye({class:o&&r.value?a:""},o&&i,{onClick:n}),[t.default&&t.default()],16,["onClick"])}}}),b_={value:{type:Array,default(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function w_(e){var t=Te([...e.value]),r=Te({value:t,height:34});return U(()=>e.value,(i,n)=>{(i===n||i.length!==n.length||i.findIndex((a,o)=>a!==n[o])>=0)&&(r.value.length=i.length,i.forEach((a,o)=>{a!==r.value[o]&&r.value.splice(o,1,a)}))}),r}var y_=he({name:"PickerView",props:b_,emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:r}){var i=B(null),n=B(null),a=Pe(i,r),o=w_(e),s=B(null),l=()=>{var _=s.value;o.height=_.$el.offsetHeight},u=B([]);function v(_){var d=u.value;return d instanceof HTMLCollection?Array.prototype.indexOf.call(d,_.el):d.indexOf(_)}var h=function(_){var d=Q({get(){var b=v(_.vnode);return o.value[b]||0},set(b){var m=v(_.vnode);if(!(m<0)){var p=o.value[m];if(p!==b){o.value.splice(m,1,b);var c=o.value.map(w=>w);r("update:value",c),a("change",{},{value:c})}}}});return d};return Ne("getPickerViewColumn",h),Ne("pickerViewProps",e),Ne("pickerViewState",o),Vr(()=>{l(),u.value=n.value.children}),()=>{var _=t.default&&t.default();return M("uni-picker-view",{ref:i},[M(jt,{ref:s,onResize:({height:d})=>o.height=d},null,8,["onResize"]),M("div",{ref:n,class:"uni-picker-view-wrapper"},[_],512)],512)}}});class xf{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,r){this._x=t,this._v=r,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*r/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*r}done(){return Math.abs(this.dx())<3}reconfigure(t){var r=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(r,i)}configuration(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(r){t.reconfigure(r)},min:.001,max:.1,step:.001}]}}function Tf(e,t,r){return e>t-r&&e0){var v=(-i-Math.sqrt(o))/(2*n),h=(-i+Math.sqrt(o))/(2*n),_=(r-v*t)/(h-v),d=t-_;return{x:function(w){var f,g;return w===this._t&&(f=this._powER1T,g=this._powER2T),this._t=w,f||(f=this._powER1T=Math.pow(Math.E,v*w)),g||(g=this._powER2T=Math.pow(Math.E,h*w)),d*f+_*g},dx:function(w){var f,g;return w===this._t&&(f=this._powER1T,g=this._powER2T),this._t=w,f||(f=this._powER1T=Math.pow(Math.E,v*w)),g||(g=this._powER2T=Math.pow(Math.E,h*w)),d*v*f+_*h*g}}}var b=Math.sqrt(4*n*a-i*i)/(2*n),m=-i/2*n,p=t,c=(r-m*t)/b;return{x:function(w){return Math.pow(Math.E,m*w)*(p*Math.cos(b*w)+c*Math.sin(b*w))},dx:function(w){var f=Math.pow(Math.E,m*w),g=Math.cos(b*w),S=Math.sin(b*w);return f*(c*b*g-p*b*S)+m*f*(c*S+p*g)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,r,i){if(i||(i=new Date().getTime()),t!==this._endPosition||!Yt(r,.4)){r=r||0;var n=this._endPosition;this._solution&&(Yt(r,.4)&&(r=this._solution.dx((i-this._startTime)/1e3)),n=this._solution.x((i-this._startTime)/1e3),Yt(r,.4)&&(r=0),Yt(n,.4)&&(n=0),n+=this._endPosition),this._solution&&Yt(n-t,.4)&&Yt(r,.4)||(this._endPosition=t,this._solution=this._solve(n-this._endPosition,r),this._startTime=i)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),Tf(this.x(),this._endPosition,.4)&&Yt(this.dx(),.4)}reconfigure(t,r,i){this._m=t,this._k=r,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(i,n){i.reconfigure(1,n,i.damping())}function r(i,n){i.reconfigure(1,i.springConstant(),n)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:r.bind(this,this),min:1,max:500}]}}class S_{constructor(t,r,i){this._extent=t,this._friction=r||new xf(.01),this._spring=i||new Ef(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,r){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(r)}set(t,r){this._friction.set(t,r),t>0&&r>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&r<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var r=this._friction.x(t),i=this.dx(t);return(r>0&&i>=0||r<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),r<-this._extent?this._springOffset=-this._extent:this._springOffset=0,r=this._spring.x()+this._springOffset),r}dx(t){var r;return this._lastTime===t?r=this._lastDx:r=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=r,r}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function x_(e,t,r){var i={id:0,cancelled:!1};function n(o,s,l,u){if(!o||!o.cancelled){l(s);var v=s.done();v||o.cancelled||(o.id=requestAnimationFrame(n.bind(null,o,s,l,u))),v&&u&&u(s)}}function a(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)}return n(i,e,t,r),{cancel:a.bind(null,i),model:e}}class T_{constructor(t,r){r=r||{},this._element=t,this._options=r,this._enableSnap=r.enableSnap||!1,this._itemSize=r.itemSize||0,this._enableX=r.enableX||!1,this._enableY=r.enableY||!1,this._shouldDispatchScrollEvent=!!r.onScroll,this._enableX?(this._extent=(r.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=r.scrollWidth):(this._extent=(r.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=r.scrollHeight),this._position=0,this._scroll=new S_(this._extent,r.friction,r.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,r){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=r),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,r,i){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(r)this._itemSize/2?a-(this._itemSize-Math.abs(o)):a-o,n<=0&&n>=-this._extent&&this._scroll.setVelocityByEnd(n)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=x_(this._scroll,()=>{var s=Date.now(),l=(s-this._scroll._startTime)/1e3,u=this._scroll.x(l);this._position=u,this.updatePosition();var v=this._scroll.dx(l);this._shouldDispatchScrollEvent&&s-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/v),this._lastTime=s)},()=>{this._enableSnap&&(n<=0&&n>=-this._extent&&(this._position=n,this.updatePosition()),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var t=this._itemSize,r=this._position%t,i=Math.abs(r)>this._itemSize/2?this._position-(t-Math.abs(r)):this._position-r;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,r){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var i="transform "+(r||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+i,this._element.style.transition=i,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(typeof this._options.onScroll=="function"&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,r,i){var n=0,a=this._position;this._enableX?(n=this._element.childNodes.length?(r||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=r):(n=this._element.childNodes.length?(r||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=r),typeof t=="number"&&(this._position=-t),this._position<-n?this._position=-n:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),a!==this._position&&(this.dispatchScroll(),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=n,this._scroll._extent=n}updatePosition(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function E_(e,t){var r={trackingID:-1,maxDy:0,maxDx:0},i=new T_(e,t);function n(l){var u=l,v=l;return u.detail.state==="move"||u.detail.state==="end"?{x:u.detail.dx,y:u.detail.dy}:{x:v.screenX-r.x,y:v.screenY-r.y}}function a(l){var u=l,v=l;u.detail.state==="start"?(r.trackingID="touch",r.x=u.detail.x,r.y=u.detail.y):(r.trackingID="mouse",r.x=v.screenX,r.y=v.screenY),r.maxDx=0,r.maxDy=0,r.historyX=[0],r.historyY=[0],r.historyTime=[u.detail.timeStamp||v.timeStamp],r.listener=i,i.onTouchStart&&i.onTouchStart(),l.preventDefault()}function o(l){var u=l,v=l;if(r.trackingID!==-1){l.preventDefault();var h=n(l);if(h){for(r.maxDy=Math.max(r.maxDy,Math.abs(h.y)),r.maxDx=Math.max(r.maxDx,Math.abs(h.x)),r.historyX.push(h.x),r.historyY.push(h.y),r.historyTime.push(u.detail.timeStamp||v.timeStamp);r.historyTime.length>10;)r.historyTime.shift(),r.historyX.shift(),r.historyY.shift();r.listener&&r.listener.onTouchMove&&r.listener.onTouchMove(h.x,h.y)}}}function s(l){if(r.trackingID!==-1){l.preventDefault();var u=n(l);if(u){var v=r.listener;r.trackingID=-1,r.listener=null;var h=r.historyTime.length,_={x:0,y:0};if(h>2)for(var d=r.historyTime.length-1,b=r.historyTime[d],m=r.historyX[d],p=r.historyY[d];d>0;){d--;var c=r.historyTime[d],w=b-c;if(w>30&&w<50){_.x=(m-r.historyX[d])/(w/1e3),_.y=(p-r.historyY[d])/(w/1e3);break}}r.historyTime=[],r.historyX=[],r.historyY=[],v&&v.onTouchEnd&&v.onTouchEnd(u.x,u.y,_)}}}return{scroller:i,handleTouchStart:a,handleTouchMove:o,handleTouchEnd:s}}var C_=0;function O_(e){var t="uni-picker-view-content-".concat(C_++);function r(){var i=document.createElement("style");i.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(i)}return U(()=>e.value,r),t}function M_(e){var t=20,r=0,i=0;e.addEventListener("touchstart",n=>{var a=n.changedTouches[0];r=a.clientX,i=a.clientY}),e.addEventListener("touchend",n=>{var a=n.changedTouches[0];if(Math.abs(a.clientX-r){s[u]=a[u]}),n.target.dispatchEvent(s)}})}var I_=he({name:"PickerViewColumn",setup(e,{slots:t,emit:r}){var i=B(null),n=B(null),a=ge("getPickerViewColumn"),o=xt(),s=a?a(o):B(0),l=ge("pickerViewProps"),u=ge("pickerViewState"),v=B(34),h=B(null),_=()=>{var C=h.value;v.value=C.$el.offsetHeight},d=Q(()=>(u.height-v.value)/2),{state:b}=ff(),m=O_(v),p,c=Te({current:s.value,length:0}),w;function f(){p&&!w&&(w=!0,or(()=>{w=!1;var C=Math.min(c.current,c.length-1);C=Math.max(C,0),p.update(C*v.value,void 0,v.value)}))}U(()=>s.value,C=>{C!==c.current&&(c.current=C,f())}),U(()=>c.current,C=>s.value=C),U([()=>v.value,()=>c.length,()=>u.height],f);var g=0;function S(C){var L=g+C.deltaY;if(Math.abs(L)>10){g=0;var W=Math.min(c.current+(L<0?-1:1),c.length-1);c.current=W=Math.max(W,0),p.scrollTo(W*v.value)}else g=L;C.preventDefault()}function x({clientY:C}){var L=i.value;if(!p.isScrolling()){var W=L.getBoundingClientRect(),q=C-W.top-u.height/2,X=v.value/2;if(!(Math.abs(q)<=X)){var ce=Math.ceil((Math.abs(q)-X)/v.value),A=q<0?-ce:ce,$=Math.min(c.current+A,c.length-1);c.current=$=Math.max($,0),p.scrollTo($*v.value)}}}var E=()=>{var C=i.value,L=n.value,{scroller:W,handleTouchStart:q,handleTouchMove:X,handleTouchEnd:ce}=E_(L,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:v.value,friction:new xf(1e-4),spring:new Ef(2,90,20),onSnap:A=>{!isNaN(A)&&A!==c.current&&(c.current=A)}});p=W,fn(C,A=>{switch(A.detail.state){case"start":q(A),It({disable:!0});break;case"move":X(A);break;case"end":case"cancel":ce(A),It({disable:!1})}},!0),M_(C),un(),f()};return Vr(()=>{c.length=n.value.children.length,_(),E()}),()=>{var C=t.default&&t.default(),L="".concat(d.value,"px 0");return M("uni-picker-view-column",{ref:i},[M("div",{onWheel:S,onClick:x,class:"uni-picker-view-group"},[M("div",Ye(b.attrs,{class:["uni-picker-view-mask",l.maskClass],style:"background-size: 100% ".concat(d.value,"px;").concat(l.maskStyle)}),null,16),M("div",Ye(b.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[M(jt,{ref:h,onResize:({height:W})=>v.value=W},null,8,["onResize"])],16),M("div",{ref:n,class:["uni-picker-view-content",m],style:{padding:L}},[C],6)],40,["onWheel","onClick"])],512)}}}),zt={activeColor:bi,backgroundColor:"#EBEBEB",activeMode:"backwards"},A_={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:zt.activeColor},activeColor:{type:String,default:zt.activeColor},backgroundColor:{type:String,default:zt.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:zt.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}}},P_=he({name:"Progress",props:A_,setup(e){var t=R_(e);return Cf(t,e),U(()=>t.realPercent,(r,i)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=i||0,Cf(t,e)}),()=>{var{showInfo:r}=e,{outerBarStyle:i,innerBarStyle:n,currentPercent:a}=t;return M("uni-progress",{class:"uni-progress"},[M("div",{style:i,class:"uni-progress-bar"},[M("div",{style:n,class:"uni-progress-inner-bar"},null,4)],4),r?M("p",{class:"uni-progress-info"},[a+"%"]):""])}}});function R_(e){var t=B(0),r=Q(()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;")),i=Q(()=>{var o=e.color!==zt.activeColor&&e.activeColor===zt.activeColor?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(o)}),n=Q(()=>{var o=parseFloat(e.percent);return o<0&&(o=0),o>100&&(o=100),o}),a=Te({outerBarStyle:r,innerBarStyle:i,realPercent:n,currentPercent:t,strokeTimer:0,lastPercent:0});return a}function Cf(e,t){t.active?(e.currentPercent=t.activeMode===zt.activeMode?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}var Of=Ki("ucg"),L_={name:{type:String,default:""}},N_=he({name:"RadioGroup",props:L_,setup(e,{emit:t,slots:r}){var i=B(null),n=Pe(i,t);return k_(e,n),()=>M("uni-radio-group",{ref:i},[r.default&&r.default()],512)}});function k_(e,t){var r=[];Oe(()=>{s(r.length-1)});var i=()=>{var l;return(l=r.find(u=>u.value.radioChecked))===null||l===void 0?void 0:l.value.value};Ne(Of,{addField(l){r.push(l)},removeField(l){r.splice(r.indexOf(l),1)},radioChange(l,u){var v=r.indexOf(u);s(v,!0),t("change",l,{value:i()})}});var n=ge(st,!1),a={submit:()=>{var l=["",null];return e.name!==""&&(l[0]=e.name,l[1]=i()),l}};n&&(n.addField(a),Ee(()=>{n.removeField(a)}));function o(l,u){l.value={radioChecked:u,value:l.value.value}}function s(l,u){r.forEach((v,h)=>{h!==l&&(u?o(r[h],!1):r.forEach((_,d)=>{h>=d||r[d].value.radioChecked&&o(r[h],!1)}))})}return r}var D_={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},B_=he({name:"Radio",props:D_,setup(e,{slots:t}){var r=B(e.checked),i=B(e.value),n=Q(()=>"background-color: ".concat(e.color,";border-color: ").concat(e.color,";"));U([()=>e.checked,()=>e.value],([v,h])=>{r.value=v,i.value=h});var a=()=>{r.value=!1},{uniCheckGroup:o,uniLabel:s,field:l}=F_(r,i,a),u=v=>{e.disabled||(r.value=!0,o&&o.radioChange(v,l))};return s&&(s.addHandler(u),Ee(()=>{s.removeHandler(u)})),tn(e,{"label-click":u}),()=>{var v=Dr(e,"disabled");return M("uni-radio",Ye(v,{onClick:u}),[M("div",{class:"uni-radio-wrapper"},[M("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:r.value?n.value:""},[r.value?Zi(Gi,"#fff",18):""],6),t.default&&t.default()])],16,["onClick"])}}});function F_(e,t,r){var i=Q({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:l})=>{e.value=l}}),n={reset:r},a=ge(Of,!1);a&&a.addField(i);var o=ge(st,!1);o&&o.addField(n);var s=ge(Br,!1);return Ee(()=>{a&&a.removeField(i),o&&o.removeField(n)}),{uniCheckGroup:a,uniForm:o,uniLabel:s,field:i}}function $_(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}function W_(e){return e.reduce(function(t,r){var i=r.value,n=r.name;return i.match(/ /)&&n!=="style"&&(i=i.split(" ")),t[n]?Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i,t},{})}function U_(e){e=$_(e);var t=[],r={node:"root",children:[]};return af(e,{start:function(i,n,a){var o={name:i};if(n.length!==0&&(o.attrs=W_(n)),a){var s=t[0]||r;s.children||(s.children=[]),s.children.push(o)}else t.unshift(o)},end:function(i){var n=t.shift();if(n.name!==i&&console.error("invalid state: mismatch end tag"),t.length===0)r.children.push(n);else{var a=t[0];a.children||(a.children=[]),a.children.push(n)}},chars:function(i){var n={type:"text",text:i};if(t.length===0)r.children.push(n);else{var a=t[0];a.children||(a.children=[]),a.children.push(n)}},comment:function(i){var n={node:"comment",text:i},a=t[0];a.children||(a.children=[]),a.children.push(n)}}),r.children}var Mf={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},_o={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function V_(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,r){if(te(_o,r)&&_o[r])return _o[r];if(/^#[0-9]{1,4}$/.test(r))return String.fromCharCode(r.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(r))return String.fromCharCode("0"+r.slice(1));var i=document.createElement("div");return i.innerHTML=t,i.innerText||i.textContent})}function If(e,t,r){return e.forEach(function(i){if(!!rt(i))if(!te(i,"type")||i.type==="node"){if(!(typeof i.name=="string"&&i.name))return;var n=i.name.toLowerCase();if(!te(Mf,n))return;var a=document.createElement(n);if(!a)return;var o=i.attrs;if(rt(o)){var s=Mf[n]||[];Object.keys(o).forEach(function(u){var v=o[u];switch(u){case"class":Array.isArray(v)&&(v=v.join(" "));case"style":a.setAttribute(u,v),r&&a.setAttribute(r,"");break;default:s.indexOf(u)!==-1&&a.setAttribute(u,v)}})}var l=i.children;Array.isArray(l)&&l.length&&If(i.children,a),t.appendChild(a)}else i.type==="text"&&typeof i.text=="string"&&i.text!==""&&t.appendChild(document.createTextNode(V_(i.text)))}),t}var j_={nodes:{type:[Array,String],default:function(){return[]}}},H_=he({name:"RichText",compatConfig:{MODE:3},props:j_,setup(e){var t=xt(),r=B(null);function i(n){typeof n=="string"&&(n=U_(n));var a=If(n,document.createDocumentFragment(),(t==null?void 0:t.root.type).__scopeId||"");r.value.firstElementChild.innerHTML="",r.value.firstElementChild.appendChild(a)}return U(()=>e.nodes,n=>{i(n)}),Oe(()=>{i(e.nodes)}),()=>M("uni-rich-text",{ref:r},[M("div",null,null)],512)}}),bo=Jn(!0),Y_={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},z_=he({name:"ScrollView",compatConfig:{MODE:3},props:Y_,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:r}){var i=B(null),n=B(null),a=B(null),o=B(null),s=B(null),l=Pe(i,t),{state:u,scrollTopNumber:v,scrollLeftNumber:h}=q_(e);X_(e,u,v,h,l,i,n,o,t);var _=Q(()=>{var d="";return e.scrollX?d+="overflow-x:auto;":d+="overflow-x:hidden;",e.scrollY?d+="overflow-y:auto;":d+="overflow-y:hidden;",d});return()=>{var{refresherEnabled:d,refresherBackground:b,refresherDefaultStyle:m}=e,{refresherHeight:p,refreshState:c,refreshRotate:w}=u;return M("uni-scroll-view",{ref:i},[M("div",{ref:a,class:"uni-scroll-view"},[M("div",{ref:n,style:_.value,class:"uni-scroll-view"},[M("div",{ref:o,class:"uni-scroll-view-content"},[d?M("div",{ref:s,style:{backgroundColor:b,height:p+"px"},class:"uni-scroll-view-refresher"},[m!=="none"?M("div",{class:"uni-scroll-view-refresh"},[M("div",{class:"uni-scroll-view-refresh-inner"},[c=="pulling"?M("svg",{key:"refresh__icon",style:{transform:"rotate("+w+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[M("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),M("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,c=="refreshing"?M("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[M("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,m=="none"?r.refresher&&r.refresher():null],4):null,r.default&&r.default()],512)],4)],512)],512)}}});function q_(e){var t=Q(()=>Number(e.scrollTop)||0),r=Q(()=>Number(e.scrollLeft)||0),i=Te({lastScrollTop:t.value,lastScrollLeft:r.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:i,scrollTopNumber:t,scrollLeftNumber:r}}function X_(e,t,r,i,n,a,o,s,l){var u=!1,v=0,h=!1,_=()=>{},d=Q(()=>{var x=Number(e.upperThreshold);return isNaN(x)?50:x}),b=Q(()=>{var x=Number(e.lowerThreshold);return isNaN(x)?50:x});function m(x,E){var C=o.value,L=0,W="";if(x<0?x=0:E==="x"&&x>C.scrollWidth-C.offsetWidth?x=C.scrollWidth-C.offsetWidth:E==="y"&&x>C.scrollHeight-C.offsetHeight&&(x=C.scrollHeight-C.offsetHeight),E==="x"?L=C.scrollLeft-x:E==="y"&&(L=C.scrollTop-x),L!==0){var q=s.value;q.style.transition="transform .3s ease-out",q.style.webkitTransition="-webkit-transform .3s ease-out",E==="x"?W="translateX("+L+"px) translateZ(0)":E==="y"&&(W="translateY("+L+"px) translateZ(0)"),q.removeEventListener("transitionend",_),q.removeEventListener("webkitTransitionEnd",_),_=()=>g(x,E),q.addEventListener("transitionend",_),q.addEventListener("webkitTransitionEnd",_),E==="x"?C.style.overflowX="hidden":E==="y"&&(C.style.overflowY="hidden"),q.style.transform=W,q.style.webkitTransform=W}}function p(x){var E=x.target;n("scroll",x,{scrollLeft:E.scrollLeft,scrollTop:E.scrollTop,scrollHeight:E.scrollHeight,scrollWidth:E.scrollWidth,deltaX:t.lastScrollLeft-E.scrollLeft,deltaY:t.lastScrollTop-E.scrollTop}),e.scrollY&&(E.scrollTop<=d.value&&t.lastScrollTop-E.scrollTop>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(n("scrolltoupper",x,{direction:"top"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollTop+E.offsetHeight+b.value>=E.scrollHeight&&t.lastScrollTop-E.scrollTop<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(n("scrolltolower",x,{direction:"bottom"}),t.lastScrollToLowerTime=x.timeStamp)),e.scrollX&&(E.scrollLeft<=d.value&&t.lastScrollLeft-E.scrollLeft>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(n("scrolltoupper",x,{direction:"left"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollLeft+E.offsetWidth+b.value>=E.scrollWidth&&t.lastScrollLeft-E.scrollLeft<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(n("scrolltolower",x,{direction:"right"}),t.lastScrollToLowerTime=x.timeStamp)),t.lastScrollTop=E.scrollTop,t.lastScrollLeft=E.scrollLeft}function c(x){e.scrollY&&(e.scrollWithAnimation?m(x,"y"):o.value.scrollTop=x)}function w(x){e.scrollX&&(e.scrollWithAnimation?m(x,"x"):o.value.scrollLeft=x)}function f(x){if(x){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(x)){console.error("id error: scroll-into-view=".concat(x));return}var E=a.value.querySelector("#"+x);if(E){var C=o.value.getBoundingClientRect(),L=E.getBoundingClientRect();if(e.scrollX){var W=L.left-C.left,q=o.value.scrollLeft,X=q+W;e.scrollWithAnimation?m(X,"x"):o.value.scrollLeft=X}if(e.scrollY){var ce=L.top-C.top,A=o.value.scrollTop,$=A+ce;e.scrollWithAnimation?m($,"y"):o.value.scrollTop=$}}}}function g(x,E){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";var C=o.value;E==="x"?(C.style.overflowX=e.scrollX?"auto":"hidden",C.scrollLeft=x):E==="y"&&(C.style.overflowY=e.scrollY?"auto":"hidden",C.scrollTop=x),s.value.removeEventListener("transitionend",_),s.value.removeEventListener("webkitTransitionEnd",_)}function S(x){switch(x){case"refreshing":t.refresherHeight=e.refresherThreshold,u||(u=!0,n("refresherrefresh",{},{}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":u=!1,t.refresherHeight=v=0,x==="restore"&&(h=!1,n("refresherrestore",{},{})),x==="refresherabort"&&h&&(h=!1,n("refresherabort",{},{}));break}t.refreshState=x}Oe(()=>{or(()=>{c(r.value),w(i.value)}),f(e.scrollIntoView);var x=function(X){X.stopPropagation(),p(X)},E={x:0,y:0},C=null,L=function(X){var ce=X.touches[0].pageX,A=X.touches[0].pageY,$=o.value;if(Math.abs(ce-E.x)>Math.abs(A-E.y))if(e.scrollX){if($.scrollLeft===0&&ce>E.x){C=!1;return}else if($.scrollWidth===$.offsetWidth+$.scrollLeft&&ceE.y)C=!1,e.refresherEnabled&&X.cancelable!==!1&&X.preventDefault();else if($.scrollHeight===$.offsetHeight+$.scrollTop&&A0&&(h=!0,n("refresherpulling",X,{deltaY:ee})));var ne=t.refresherHeight/e.refresherThreshold;t.refreshRotate=(ne>1?1:ne)*360}},W=function(X){X.touches.length===1&&(It({disable:!0}),E={x:X.touches[0].pageX,y:X.touches[0].pageY})},q=function(X){E={x:0,y:0},It({disable:!1}),t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort")};o.value.addEventListener("touchstart",W,bo),o.value.addEventListener("touchmove",L),o.value.addEventListener("scroll",x,bo),o.value.addEventListener("touchend",q,bo),un(),Ee(()=>{o.value.removeEventListener("touchstart",W),o.value.removeEventListener("touchmove",L),o.value.removeEventListener("scroll",x),o.value.removeEventListener("touchend",q)})}),Ca(()=>{e.scrollY&&(o.value.scrollTop=t.lastScrollTop),e.scrollX&&(o.value.scrollLeft=t.lastScrollLeft)}),U(r,x=>{c(x)}),U(i,x=>{w(x)}),U(()=>e.scrollIntoView,x=>{f(x)}),U(()=>e.refresherTriggered,x=>{x===!0?S("refreshing"):x===!1&&S("restore")})}var K_={name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},G_=he({name:"Slider",props:K_,emits:["changing","change"],setup(e,{emit:t}){var r=B(null),i=B(null),n=B(null),a=B(Number(e.value));U(()=>e.value,v=>{a.value=Number(v)});var o=Pe(r,t),s=Z_(e,a),{_onClick:l,_onTrack:u}=J_(e,a,r,i,o);return Oe(()=>{fn(n.value,u)}),()=>{var{setBgColor:v,setBlockBg:h,setActiveColor:_,setBlockStyle:d}=s;return M("uni-slider",{ref:r,onClick:Vt(l)},[M("div",{class:"uni-slider-wrapper"},[M("div",{class:"uni-slider-tap-area"},[M("div",{style:v.value,class:"uni-slider-handle-wrapper"},[M("div",{ref:n,style:h.value,class:"uni-slider-handle"},null,4),M("div",{style:d.value,class:"uni-slider-thumb"},null,4),M("div",{style:_.value,class:"uni-slider-track"},null,4)],4)]),Er(M("span",{ref:i,class:"uni-slider-value"},[a.value],512),[[Lr,e.showValue]])]),M("slot",null,null)],8,["onClick"])}}});function Z_(e,t){var r=()=>{var o=Number(e.max),s=Number(e.min);return 100*(t.value-s)/(o-s)+"%"},i=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",n=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9",a={setBgColor:Q(()=>({backgroundColor:i()})),setBlockBg:Q(()=>({left:r()})),setActiveColor:Q(()=>({backgroundColor:n(),width:r()})),setBlockStyle:Q(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:r(),backgroundColor:e.blockColor}))};return a}function J_(e,t,r,i,n){var a=h=>{e.disabled||(s(h),n("change",h,{value:t.value}))},o=h=>{var _=Number(e.max),d=Number(e.min),b=Number(e.step);return h_?_:Q_.mul.call(Math.round((h-d)/b),b)+d},s=h=>{var _=Number(e.max),d=Number(e.min),b=i.value,m=getComputedStyle(b,null).marginLeft,p=b.offsetWidth;p=p+parseInt(m);var c=r.value,w=c.offsetWidth-(e.showValue?p:0),f=c.getBoundingClientRect().left,g=(h.x-f)*(_-d)/w+d;t.value=o(g)},l=h=>{if(!e.disabled)return h.detail.state==="move"?(s({x:h.detail.x}),n("changing",h,{value:t.value}),!1):h.detail.state==="end"&&n("change",h,{value:t.value})},u=ge(st,!1);if(u){var v={reset:()=>t.value=Number(e.min),submit:()=>{var h=["",null];return e.name!==""&&(h[0]=e.name,h[1]=t.value),h}};u.addField(v),Ee(()=>{u.removeField(v)})}return{_onClick:a,_onTrack:l}}var Q_={mul:function(e){var t=0,r=this.toString(),i=e.toString();try{t+=r.split(".")[1].length}catch{}try{t+=i.split(".")[1].length}catch{}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)}},eb={indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}};function tb(e){var t=Q(()=>{var a=Number(e.interval);return isNaN(a)?5e3:a}),r=Q(()=>{var a=Number(e.duration);return isNaN(a)?500:a}),i=Q(()=>{var a=Math.round(e.displayMultipleItems);return isNaN(a)?1:a}),n=Te({interval:t,duration:r,displayMultipleItems:i,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1});return n}function rb(e,t,r,i,n,a){function o(){s&&(clearTimeout(s),s=null)}var s=null,l=!0,u=0,v=1,h=null,_=!1,d=0,b,m="",p,c=Q(()=>e.circular&&r.value.length>t.displayMultipleItems);function w(A){if(!l)for(var $=r.value,ee=$.length,ne=A+t.displayMultipleItems,H=0;H=J.length&&(A-=J.length),A=b%1>.5||b<0?A-1:A,a("transition",{},{dx:e.vertical?0:A*H.offsetWidth,dy:e.vertical?A*H.offsetHeight:0})}function g(){h&&(f(h.toPos),h=null)}function S(A){var $=r.value.length;if(!$)return-1;var ee=(Math.round(A)%$+$)%$;if(c.value){if($<=t.displayMultipleItems)return 0}else if(ee>$-t.displayMultipleItems)return $-t.displayMultipleItems;return ee}function x(){h=null}function E(){if(!h){_=!1;return}var A=h,$=A.toPos,ee=A.acc,ne=A.endTime,H=A.source,J=ne-Date.now();if(J<=0){f($),h=null,_=!1,b=null;var ie=r.value[t.current];if(ie){var we=ie.getItemId();a("animationfinish",{},{current:t.current,currentItemId:we,source:H})}return}var Y=ee*J*J/2,re=$+Y;f(re),p=requestAnimationFrame(E)}function C(A,$,ee){x();var ne=t.duration,H=r.value.length,J=u;if(c.value)if(ee<0){for(;JA;)J-=H}else if(ee>0){for(;J>A;)J-=H;for(;J+HA;)J-=H;J+H-A0&&v<1||(v=1)}var J=u;u=-2;var ie=t.current;ie>=0?(l=!1,t.userTracking?(f(J+ie-d),d=ie):(f(ie),e.autoplay&&L())):(l=!0,f(-t.displayMultipleItems-1))}U([()=>e.current,()=>e.currentItemId,()=>[...r.value]],()=>{var A=-1;if(e.currentItemId)for(var $=0,ee=r.value;$e.vertical,()=>c.value,()=>t.displayMultipleItems,()=>[...r.value]],W),U(()=>t.interval,()=>{s&&(o(),L())});function q(A,$){var ee=m;m="";var ne=r.value;if(!ee){var H=ne.length;C(A,"",c.value&&$+(H-A)%H>H/2?1:0)}var J=ne[A];if(J){var ie=t.currentItemId=J.getItemId();a("change",{},{current:t.current,currentItemId:ie,source:ee})}}U(()=>t.current,(A,$)=>{q(A,$),n("update:current",A)}),U(()=>t.currentItemId,A=>{n("update:currentItemId",A)});function X(A){A?L():o()}U(()=>e.autoplay&&!t.userTracking,X),X(e.autoplay&&!t.userTracking),Oe(()=>{var A=!1,$=0,ee=0;function ne(){o(),d=u,$=0,ee=Date.now(),x()}function H(ie){var we=ee;ee=Date.now();var Y=r.value.length,re=Y-t.displayMultipleItems;function le(Ge){return .5-.25/(Ge+.5)}function ve(Ge,At){var Ie=d+Ge;$=.6*$+.4*At,c.value||(Ie<0||Ie>re)&&(Ie<0?Ie=-le(-Ie):Ie>re&&(Ie=re+le(Ie-re)),$=0),f(Ie)}var Me=ee-we||1,Ce=i.value;e.vertical?ve(-ie.dy/Ce.offsetHeight,-ie.ddy/Me):ve(-ie.dx/Ce.offsetWidth,-ie.ddx/Me)}function J(ie){t.userTracking=!1;var we=$/Math.abs($),Y=0;!ie&&Math.abs($)>.2&&(Y=.5*we);var re=S(u+Y);ie?f(d):(m="touch",t.current=re,C(re,"touch",Y!==0?Y:re===0&&c.value&&u>=1?1:0))}fn(i.value,ie=>{if(!e.disableTouch&&!l){if(ie.detail.state==="start")return t.userTracking=!0,A=!1,ne();if(ie.detail.state==="end")return J(!1);if(ie.detail.state==="cancel")return J(!0);if(t.userTracking){if(!A){A=!0;var we=Math.abs(ie.detail.dx),Y=Math.abs(ie.detail.dy);if((we>=Y&&e.vertical||we<=Y&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&L();return}}return H(ie.detail),!1}}})}),yt(()=>{o(),cancelAnimationFrame(p)});function ce(A){C(t.current=A,m="click",c.value?1:0)}return{onSwiperDotClick:ce}}var ib=he({name:"Swiper",props:eb,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:r}){var i=B(null),n=Pe(i,r),a=B(null),o=B(null),s=tb(e),l=Q(()=>{var c={};return(e.nextMargin||e.previousMargin)&&(c=e.vertical?{left:0,right:0,top:Ut(e.previousMargin,!0),bottom:Ut(e.nextMargin,!0)}:{top:0,bottom:0,left:Ut(e.previousMargin,!0),right:Ut(e.nextMargin,!0)}),c}),u=Q(()=>{var c=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":c,height:e.vertical?c:"100%"}}),v=[],h=[],_=B([]);function d(){for(var c=[],w=function(g){var S=v[g];S instanceof Element||(S=S.el);var x=h.find(E=>S===E.rootRef.value);x&&c.push(Ri(x))},f=0;f{v=o.value.children,d()});var b=function(c){h.push(c),d()};Ne("addSwiperContext",b);var m=function(c){var w=h.indexOf(c);w>=0&&(h.splice(w,1),d())};Ne("removeSwiperContext",m);var{onSwiperDotClick:p}=rb(e,s,_,o,r,n);return()=>{var c=t.default&&t.default();return v=po(c),M("uni-swiper",{ref:i},[M("div",{ref:a,class:"uni-swiper-wrapper"},[M("div",{class:"uni-swiper-slides",style:l.value},[M("div",{ref:o,class:"uni-swiper-slide-frame",style:u.value},[c],4)],4),e.indicatorDots&&M("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[_.value.map((w,f,g)=>M("div",{onClick:()=>p(f),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":f=s.current||f{var n=ge("addSwiperContext");n&&n(i)}),yt(()=>{var n=ge("removeSwiperContext");n&&n(i)}),()=>M("uni-swiper-item",{ref:r,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),ob={name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},sb=he({name:"Switch",props:ob,emits:["change"],setup(e,{emit:t}){var r=B(null),i=B(e.checked),n=lb(e,i),a=Pe(r,t);U(()=>e.checked,s=>{i.value=s});var o=s=>{e.disabled||(i.value=!i.value,a("change",s,{value:i.value}))};return n&&(n.addHandler(o),Ee(()=>{n.removeHandler(o)})),tn(e,{"label-click":o}),()=>{var{color:s,type:l}=e,u=Dr(e,"disabled");return M("uni-switch",Ye({ref:r},u,{onClick:o}),[M("div",{class:"uni-switch-wrapper"},[Er(M("div",{class:["uni-switch-input",[i.value?"uni-switch-input-checked":""]],style:{backgroundColor:i.value?s:"#DFDFDF",borderColor:i.value?s:"#DFDFDF"}},null,6),[[Lr,l==="switch"]]),Er(M("div",{class:"uni-checkbox-input"},[i.value?Zi(Gi,e.color,22):""],512),[[Lr,l==="checkbox"]])])],16,["onClick"])}}});function lb(e,t){var r=ge(st,!1),i=ge(Br,!1),n={submit:()=>{var a=["",null];return e.name&&(a[0]=e.name,a[1]=t.value),a},reset:()=>{t.value=!1}};return r&&(r.addField(n),yt(()=>{r.removeField(n)})),i}var Yr={ensp:"\u2002",emsp:"\u2003",nbsp:"\xA0"};function ub(e,t){return e.replace(/\\n/g,` -`).split(` -`).map(r=>fb(r,t))}function fb(e,{space:t,decode:r}){return!e||(t&&Yr[t]&&(e=e.replace(/ /g,Yr[t])),!r)?e:e.replace(/ /g,Yr.nbsp).replace(/ /g,Yr.ensp).replace(/ /g,Yr.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")}var cb=fe({},cf,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:""}}),wo=!1;function vb(){var e="(prefers-color-scheme: dark)";wo=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}var db=he({name:"Textarea",props:cb,emit:["confirm","linechange",...vf],setup(e,{emit:t}){var r=B(null),{fieldRef:i,state:n,scopedAttrsState:a,fixDisabledColor:o,trigger:s}=df(e,r,t),l=Q(()=>n.value.split(` -`)),u=Q(()=>["done","go","next","search","send"].includes(e.confirmType)),v=B(0),h=B(null);U(()=>v.value,p=>{var c=r.value,w=h.value,f=parseFloat(getComputedStyle(c).lineHeight);isNaN(f)&&(f=w.offsetHeight);var g=Math.round(p/f);s("linechange",{},{height:p,heightRpx:750/window.innerWidth*p,lineCount:g}),e.autoHeight&&(c.style.height=p+"px")});function _({height:p}){v.value=p}function d(p){s("confirm",p,{value:n.value})}function b(p){p.key==="Enter"&&u.value&&p.preventDefault()}function m(p){if(p.key==="Enter"&&u.value){d(p);var c=p.target;c.blur()}}return vb(),()=>{var p=e.disabled&&o?M("textarea",{ref:i,value:n.value,tabindex:"-1",readonly:!!e.disabled,maxlength:n.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":wo},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:c=>c.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):M("textarea",{ref:i,value:n.value,disabled:!!e.disabled,maxlength:n.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":wo},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:b,onKeyup:m},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return M("uni-textarea",{ref:r},[M("div",{class:"uni-textarea-wrapper"},[Er(M("div",Ye(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Lr,!n.value.length]]),M("div",{ref:h,class:"uni-textarea-line"},[" "],512),M("div",{class:"uni-textarea-compute"},[l.value.map(c=>M("div",null,[c.trim()?c:"."])),M(jt,{initial:!0,onResize:_},null,8,["initial","onResize"])]),e.confirmType==="search"?M("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[p],40,["onSubmit"]):p])],512)}}});fe({},Wm);function dn(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function Af(e,t,r){!e||ft(r||Ct(),e,({type:i,data:n},a)=>{t(i,n,a)})}function Pf(e){!e||jd(Ct(),e)}function hn(e,t,r,i){var n=xt(),a=n.proxy;Oe(()=>{Af(t||dn(a),e,i),(r||!t)&&U(()=>a.id,(o,s)=>{Af(dn(a,o),e,i),Pf(s&&dn(a,s))})}),Ee(()=>{Pf(t||dn(a))})}var hb=0;function pn(e){var t=Ji(),r=xt(),i=r.proxy,n=i.$options.name.toLowerCase(),a=e||i.id||"context".concat(hb++);return Oe(()=>{var o=i.$el;o.__uniContextInfo={id:a,type:n,page:t}}),"".concat(n,".").concat(a)}function pb(e){return e.__uniContextInfo}class Rf extends Wu{constructor(t,r,i,n,a,o=[]){super(t,r,i,n,a,[...en.props,...o])}call(t){var r={animation:this.$props.animation,$el:this.$};t.call(r)}setAttribute(t,r){return t==="animation"&&(this.$animate=!0),super.setAttribute(t,r)}update(t=!1){if(!!this.$animate){if(t)return this.call(en.mounted);this.$animate&&(this.$animate=!1,this.call(en.watch.animation.handler))}}}var gb=["space","decode"];class mb extends Rf{constructor(t,r,i,n){super(t,document.createElement("uni-text"),r,i,n,gb);this._text=""}init(t){this._text=t.t||"",super.init(t)}setText(t){this._text=t,this.update()}update(t=!1){var{$props:{space:r,decode:i}}=this;this.$.textContent=ub(this._text,{space:r,decode:i}).join(` -`),super.update(t)}}class _b extends lr{constructor(t,r,i,n){super(t,"#text",r,document.createTextNode(""));this.init(n),this.insert(r,i)}}var uy="",bb=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class wb extends Rf{constructor(t,r,i,n,a,o=[]){super(t,r,i,n,a,[...bb,...o])}update(t=!1){var r=this.$props["hover-class"];r&&r!=="none"?(this._hover||(this._hover=new yb(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(t)}}class yb{constructor(t,r){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=t,this.props=r,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(t){this._hovering=t;var r=this.props["hover-class"];t?this.$.classList.add(r):this.$.classList.remove(r)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){!this._listening||(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(t){if(!t._hoverPropagationStopped){var r=this.props["hover-class"];!r||r==="none"||this.$.disabled||t.touches.length>1||(this.props["hover-stop-propagation"]&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()},this.props["hover-start-time"]))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame(()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout(()=>{this.hovering=!1},this.props["hover-stay-time"])})}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}class Sb extends wb{constructor(t,r,i,n){super(t,document.createElement("uni-view"),r,i,n)}}function Lf(){return plus.navigator.isImmersedStatusbar()?Math.round(plus.os.name==="iOS"?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function Nf(){var e=plus.webview.currentWebview(),t=e.getStyle(),r=t&&t.titleNView;return r&&r.type==="default"?As+Lf():0}var kf=Symbol("onDraw");function xb(e){for(var t;e;){var r=getComputedStyle(e),i=r.transform||r.webkitTransform;t=i&&i!=="none"?!1:t,t=r.position==="fixed"?!0:t,e=e.parentElement}return t}function yo(e,t){return Q(()=>{var r={};return Object.keys(e).forEach(i=>{if(!(t&&t.includes(i))){var n=e[i];n=i==="src"?ht(n):n,r[i.replace(/[A-Z]/g,a=>"-"+a.toLowerCase())]=n}}),r})}function zr(e){var t=Te({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),r=B(!1);function i(){var h=e.value,_=h.getBoundingClientRect(),d=["width","height"];r.value=_.width===0||_.height===0,r.value||(t.position=xb(h)?"absolute":"static",d.push("top","left")),d.forEach(b=>{var m=_[b];m=b==="top"?m+(t.position==="static"?document.documentElement.scrollTop||document.body.scrollTop||0:Nf()):m,t[b]=m+"px"})}var n=null;function a(){n&&cancelAnimationFrame(n),n=requestAnimationFrame(()=>{n=null,i()})}window.addEventListener("updateview",a);var o=[],s=[];function l(h){s?s.push(h):h()}function u(h){var _=ge(kf),d=b=>{h(b),o.forEach(m=>m(t)),o=null};l(()=>{_?_(d):d({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})})}var v=function(h){o?o.push(h):h(t)};return Ne(kf,v),Oe(()=>{i(),s.forEach(h=>h()),s=null}),{position:t,hidden:r,onParentReady:u}}var Tb=he({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,{emit:t}){var r=B(null),i=B(null),n=Pe(r,t),a=yo(e,["id"]),{position:o,onParentReady:s}=zr(i),l;return s(()=>{l=plus.ad.createAdView(Object.assign({},a.value,o)),plus.webview.currentWebview().append(l),l.setDislikeListener(v=>{i.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),n("close",{},v)}),l.setRenderingListener(v=>{v.result===0?(i.value.style.height=v.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):n("error",{},{errCode:v.result})}),l.setAdClickedListener(()=>{n("adclicked",{},{})}),U(()=>o,v=>l.setStyle(v),{deep:!0}),U(()=>e.adpid,v=>{v&&u()}),U(()=>e.data,v=>{v&&l.renderingBind(v)});function u(){var v={adpid:e.adpid,width:o.width,count:e.dataCount};e.channel!==void 0&&(v.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",v,({code:h,data:_,message:d})=>{h===0?l.renderingBind(_):n("error",{},{errMsg:d})})}e.adpid&&u()}),Ee(()=>{l&&l.close()}),()=>M("uni-ad",{ref:r},[M("div",{ref:i,class:"uni-ad-container"},null,512)],512)}});class _e extends lr{constructor(t,r,i,n,a,o,s){super(t,r,n);var l=document.createElement("div");l.__vueParent=Eb(this),this.$props=Te({}),this.init(o),this.$app=su(Nw(i,this.$props)),this.$app.mount(l),this.$=l.firstElementChild,s&&(this.$holder=this.$.querySelector(s)),te(o,"t")&&this.setText(o.t||""),o.a&&te(o.a,_i)&&so(this.$,o.a[_i]),this.insert(n,a),Xl()}init(t){var{a:r,e:i,w:n}=t;r&&(this.setWxsProps(r),Object.keys(r).forEach(a=>{this.setAttr(a,r[a])})),te(t,"s")&&this.setAttr("style",t.s),i&&Object.keys(i).forEach(a=>{this.addEvent(a,i[a])}),n&&this.addWxsEvents(t.w)}setText(t){(this.$holder||this.$).textContent=t}addWxsEvent(t,r,i){this.$props[t]=$u(this.$,r,i)}addEvent(t,r){this.$props[t]=Bu(this.id,r,ea(t)[1])}removeEvent(t){this.$props[t]=null}setAttr(t,r){if(t===_i)this.$&&so(this.$,r);else if(t===Cs)this.$.__ownerId=r;else if(t===Os)Ot(()=>Iu(this,r),Cu);else if(t===ra){var i=oo(this.$||Ke(this.pid).$,r),n=this.$props.style;rt(i)&&rt(n)?Object.keys(i).forEach(a=>{n[a]=i[a]}):this.$props.style=i}else r=oo(this.$||Ke(this.pid).$,r),this.wxsPropsInvoke(t,r,!0)||(this.$props[t]=r)}removeAttr(t){this.$props[t]=null}remove(){this.isUnmounted=!0,this.$app.unmount(),Vf(this.id)}appendChild(t){return(this.$holder||this.$).appendChild(t)}insertBefore(t,r){return(this.$holder||this.$).insertBefore(t,r)}}class qr extends _e{constructor(t,r,i,n,a,o,s){super(t,r,i,n,a,o,s)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(t){return Ot(this.getRebuildFn(),eo),super.setText(t)}appendChild(t){return Ot(this.getRebuildFn(),eo),super.appendChild(t)}insertBefore(t,r){return Ot(this.getRebuildFn(),eo),super.insertBefore(t,r)}rebuild(){var t=this.$.__vueParentComponent;t.rebuild&&t.rebuild()}}function Eb(e){for(;e&&e.pid>0;)if(e=Ke(e.pid),e){var{__vueParentComponent:t}=e.$;if(t)return t}return null}function So(e,t,r){e.childNodes.forEach(i=>{i instanceof Element?i.className.indexOf(t)===-1&&e.removeChild(i):e.removeChild(i)}),e.appendChild(document.createTextNode(r))}class Cb extends _e{constructor(t,r,i,n){super(t,"uni-ad",Tb,r,i,n)}}var fy="";class Ob extends _e{constructor(t,r,i,n){super(t,"uni-button",Xm,r,i,n)}}class fr extends lr{constructor(t,r,i,n){super(t,r,i);this.insert(i,n)}}class Mb extends fr{constructor(t,r,i){super(t,"uni-camera",r,i)}}var cy="";class Ib extends _e{constructor(t,r,i,n){super(t,"uni-canvas",r0,r,i,n,"uni-canvas > div")}}var vy="";class Ab extends _e{constructor(t,r,i,n){super(t,"uni-checkbox",u0,r,i,n,".uni-checkbox-wrapper")}setText(t){So(this.$holder,"uni-checkbox-input",t)}}var dy="";class Pb extends _e{constructor(t,r,i,n){super(t,"uni-checkbox-group",o0,r,i,n)}}var hy="",Rb=0;function Df(e,t,r){var{position:i,hidden:n,onParentReady:a}=zr(e),o;a(s=>{var l=Q(()=>{var f={};for(var g in i){var S=i[g],x=parseFloat(S),E=parseFloat(s[g]);if(g==="top"||g==="left")S=Math.max(x,E)+"px";else if(g==="width"||g==="height"){var C=g==="width"?"left":"top",L=parseFloat(s[C]),W=parseFloat(i[C]),q=Math.max(L-W,0),X=Math.max(W+x-(L+E),0);S=Math.max(x-q-X,0)+"px"}f[g]=S}return f}),u=["borderRadius","borderColor","borderWidth","backgroundColor"],v=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],h=[],_={start:"left",end:"right"};function d(f){var g=getComputedStyle(e.value);return u.concat(v,h).forEach(S=>{f[S]=g[S]}),f}var b=Te(d({})),m=null;function p(){m&&cancelAnimationFrame(m),m=requestAnimationFrame(()=>{m=null,d(b)})}window.addEventListener("updateview",p);function c(){var f={};for(var g in f){var S=f[g];(g==="top"||g==="left")&&(S=Math.min(parseFloat(S)-parseFloat(s[g]),0)+"px"),f[g]=S}return f}var w=Q(()=>{var f=c(),g=[{tag:"rect",position:f,rectStyles:{color:b.backgroundColor,radius:b.borderRadius,borderColor:b.borderColor,borderWidth:b.borderWidth}}];if("src"in r)r.src&&g.push({tag:"img",position:f,src:r.src});else{var S=parseFloat(b.lineHeight)-parseFloat(b.fontSize),x=parseFloat(f.width)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight);x=x<0?0:x;var E=parseFloat(f.height)-parseFloat(b.paddingTop)-S/2-parseFloat(b.paddingBottom);E=E<0?0:E,g.push({tag:"font",position:{top:"".concat(parseFloat(f.top)+parseFloat(b.paddingTop)+S/2,"px"),left:"".concat(parseFloat(f.left)+parseFloat(b.paddingLeft),"px"),width:"".concat(x,"px"),height:"".concat(E,"px")},textStyles:{align:_[b.textAlign]||b.textAlign,color:b.color,decoration:"none",lineSpacing:"".concat(S,"px"),margin:"0px",overflow:b.textOverflow,size:b.fontSize,verticalAlign:"top",weight:b.fontWeight,whiteSpace:b.whiteSpace},text:r.text})}return g});o=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(Rb++),l.value,w.value),plus.webview.currentWebview().append(o),n.value&&o.hide(),o.addEventListener("click",()=>{t("click",{},{})}),U(()=>n.value,f=>{o[f?"hide":"show"]()}),U(()=>l.value,f=>{o.setStyle(f)},{deep:!0}),U(()=>w.value,()=>{o.reset(),o.draw(w.value)},{deep:!0})}),Ee(()=>{o&&o.close()})}var Lb="_doc/uniapp_temp/",Nb={src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}};function kb(e,t,r){var i=B(""),n;function a(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var s=e.src?ht(e.src):"";s.indexOf("http://")===0||s.indexOf("https://")===0?(n=plus.downloader.createDownload(s,{filename:Lb+"/download/"},(l,u)=>{u===200?o(l.filename):r("error",{},{errMsg:"error"})}),n.start()):s&&o(s)}function o(s){t.src=s,plus.io.getImageInfo({src:s,success:({width:l,height:u})=>{e.autoSize&&(i.value="width:".concat(l,"px;height:").concat(u,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),r("load",{},{width:l,height:u})},fail:()=>{r("error",{},{errMsg:"error"})}})}return e.src&&a(),U(()=>e.src,a),Ee(()=>{n&&n.abort()}),i}var Bf=he({name:"CoverImage",props:Nb,emits:["click","load","error"],setup(e,{emit:t}){var r=B(null),i=Pe(r,t),n=Te({src:""}),a=kb(e,n,i);return Df(r,i,n),()=>M("uni-cover-image",{ref:r,style:a.value},[M("div",{class:"uni-cover-image"},null)],4)}});class Db extends _e{constructor(t,r,i,n){super(t,"uni-cover-image",Bf,r,i,n)}}var py="",Bb=he({name:"CoverView",emits:["click"],setup(e,{emit:t}){var r=B(null),i=B(null),n=Pe(r,t),a=Te({text:""});return Df(r,n,a),Vr(()=>{var o=i.value.childNodes[0];a.text=o&&o instanceof Text?o.textContent:""}),()=>M("uni-cover-view",{ref:r},[M("div",{ref:i,class:"uni-cover-view"},null,512)],512)}});class Fb extends qr{constructor(t,r,i,n){super(t,"uni-cover-view",Bb,r,i,n,".uni-cover-view")}}var gy="";class $b extends _e{constructor(t,r,i,n){super(t,"uni-editor",L0,r,i,n)}}var my="";class Wb extends _e{constructor(t,r,i,n){super(t,"uni-form",jm,r,i,n,"span")}}class Ub extends fr{constructor(t,r,i){super(t,"uni-functional-page-navigator",r,i)}}var _y="";class Vb extends _e{constructor(t,r,i,n){super(t,"uni-icon",B0,r,i,n)}}var by="";class jb extends _e{constructor(t,r,i,n){super(t,"uni-image",W0,r,i,n)}}var wy="";class Hb extends _e{constructor(t,r,i,n){super(t,"uni-input",o_,r,i,n)}}var yy="";class Yb extends _e{constructor(t,r,i,n){super(t,"uni-label",zm,r,i,n)}}class zb extends fr{constructor(t,r,i){super(t,"uni-live-player",r,i)}}class qb extends fr{constructor(t,r,i){super(t,"uni-live-pusher",r,i)}}var Sy="",Xb=(e,t,r)=>{r({coord:{latitude:t,longitude:e}})};function xo(e){if(e.indexOf("#")!==0)return{color:e,opacity:1};var t=e.substr(7,2);return{color:e.substr(0,7),opacity:t?Number("0x"+t)/255:1}}var Kb={id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}}},Gb=he({name:"Map",props:Kb,emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,{emit:t}){var r=B(null),i=Pe(r,t),n=B(null),a=yo(e,["id"]),{position:o,hidden:s,onParentReady:l}=zr(n),u,{_addMarkers:v,_addMapLines:h,_addMapCircles:_,_setMap:d}=Zb(e,i);l(()=>{u=fe(plus.maps.create(Ct()+"-map-"+(e.id||Date.now()),Object.assign({},a.value,o,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[]}),u.setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(u),s.value&&u.hide(),u.onclick=m=>{i("click",{},m)},u.onstatuschanged=m=>{i("regionchange",{},{})},d(u),v(e.markers),h(e.polyline),_(e.circles),U(()=>a.value,m=>u&&u.setStyles(m),{deep:!0}),U(()=>o,m=>u&&u.setStyles(m),{deep:!0}),U(s,m=>{u&&u[m?"hide":"show"]()}),U(()=>e.scale,m=>{u&&u.setZoom(parseInt(String(m)))}),U([()=>e.latitude,()=>e.longitude],([m,p])=>{u&&u.setStyles({center:new plus.maps.Point(Number(m),Number(p))})}),U(()=>e.markers,m=>{v(m,!0)},{deep:!0}),U(()=>e.polyline,m=>{h(m)},{deep:!0}),U(()=>e.circles,m=>{_(m)},{deep:!0})});var b=Q(()=>e.controls.map(m=>{var p={position:"absolute"};return["top","left","width","height"].forEach(c=>{m.position[c]&&(p[c]=m.position[c]+"px")}),{id:m.id,iconPath:ht(m.iconPath),position:p,clickable:m.clickable}}));return Ee(()=>{u&&(u.close(),d(null))}),()=>M("uni-map",{ref:r,id:e.id},[M("div",{ref:n,class:"uni-map-container"},null,512),b.value.map((m,p)=>M(Bf,{key:p,src:m.iconPath,style:m.position,"auto-size":!0,onClick:()=>m.clickable&&i("controltap",{},{controlId:m.id})},null,8,["src","style","auto-size","onClick"])),M("div",{class:"uni-map-slot"},null)],8,["id"])}});function Zb(e,t){var r;function i(d,{longitude:b,latitude:m}={}){!r||(r.setCenter(new plus.maps.Point(Number(b||e.longitude),Number(m||e.latitude))),d({errMsg:"moveToLocation:ok"}))}function n(d){!r||r.getCurrentCenter((b,m)=>{d({longitude:m.getLng(),latitude:m.getLat(),errMsg:"getCenterLocation:ok"})})}function a(d){if(!!r){var b=r.getBounds();d({southwest:b.getSouthWest(),northeast:b.getNorthEast(),errMsg:"getRegion:ok"})}}function o(d){!r||d({scale:r.getZoom(),errMsg:"getScale:ok"})}function s(d){if(!!r){var{id:b,latitude:m,longitude:p,iconPath:c,callout:w,label:f}=d;Xb(p,m,g=>{var S,{latitude:x,longitude:E}=g.coord,C=new plus.maps.Marker(new plus.maps.Point(E,x));c&&C.setIcon(ht(c)),f&&f.content&&C.setLabel(f.content);var L=void 0;w&&w.content&&(L=new plus.maps.Bubble(w.content)),L&&C.setBubble(L),(b||b===0)&&(C.onclick=W=>{t("markertap",{},{markerId:b})},L&&(L.onclick=()=>{t("callouttap",{},{markerId:b})})),(S=r)===null||S===void 0||S.addOverlay(C),r.__markers__.push(C)})}}function l(){if(!!r){var d=r.__markers__;d.forEach(b=>{var m;(m=r)===null||m===void 0||m.removeOverlay(b)}),r.__markers__=[]}}function u(d,b){b&&l(),d.forEach(m=>{s(m)})}function v(d){!r||(r.__lines__.length>0&&(r.__lines__.forEach(b=>{var m;(m=r)===null||m===void 0||m.removeOverlay(b)}),r.__lines__=[]),d.forEach(b=>{var m,{color:p,width:c}=b,w=b.points.map(S=>new plus.maps.Point(S.longitude,S.latitude)),f=new plus.maps.Polyline(w);if(p){var g=xo(p);f.setStrokeColor(g.color),f.setStrokeOpacity(g.opacity)}c&&f.setLineWidth(c),(m=r)===null||m===void 0||m.addOverlay(f),r.__lines__.push(f)}))}function h(d){!r||(r.__circles__.length>0&&(r.__circles__.forEach(b=>{var m;(m=r)===null||m===void 0||m.removeOverlay(b)}),r.__circles__=[]),d.forEach(b=>{var m,{latitude:p,longitude:c,color:w,fillColor:f,radius:g,strokeWidth:S}=b,x=new plus.maps.Circle(new plus.maps.Point(c,p),g);if(w){var E=xo(w);x.setStrokeColor(E.color),x.setStrokeOpacity(E.opacity)}if(f){var C=xo(f);x.setFillColor(C.color),x.setFillOpacity(C.opacity)}S&&x.setLineWidth(S),(m=r)===null||m===void 0||m.addOverlay(x),r.__circles__.push(x)}))}var _={moveToLocation:i,getCenterLocation:n,getRegion:a,getScale:o};return hn((d,b,m)=>{_[d]&&_[d](m,b)},pn(),!0),{_addMarkers:u,_addMapLines:v,_addMapCircles:h,_setMap(d){r=d}}}class Jb extends _e{constructor(t,r,i,n){super(t,"uni-map",Gb,r,i,n,".uni-map-slot")}}var xy="";class Qb extends qr{constructor(t,r,i,n){super(t,"uni-movable-area",c_,r,i,n)}}var Ty="";class ew extends _e{constructor(t,r,i,n){super(t,"uni-movable-view",h_,r,i,n)}}var Ey="";class tw extends _e{constructor(t,r,i,n){super(t,"uni-navigator",__,r,i,n)}}class rw extends fr{constructor(t,r,i){super(t,"uni-official-account",r,i)}}class iw extends fr{constructor(t,r,i){super(t,"uni-open-data",r,i)}}var qt,Ff,cr;function $f(){return typeof window=="object"&&typeof navigator=="object"&&typeof document=="object"?"webview":"v8"}function Wf(){return qt.webview.currentWebview().id}var gn,To,Eo={};function Co(e){var t=e.data&&e.data.__message;if(!(!t||!t.__page)){var r=t.__page,i=Eo[r];i&&i(t),t.keep||delete Eo[r]}}function nw(e,t){$f()==="v8"?cr?(gn&&gn.close(),gn=new cr(Wf()),gn.onmessage=Co):To||(To=Ff.requireModule("globalEvent"),To.addEventListener("plusMessage",Co)):window.__plusMessage=Co,Eo[e]=t}class aw{constructor(t){this.webview=t}sendMessage(t){var r=JSON.parse(JSON.stringify({__message:{data:t}})),i=this.webview.id;if(cr){var n=new cr(i);n.postMessage(r)}else qt.webview.postMessageToUniNView&&qt.webview.postMessageToUniNView(r,i)}close(){this.webview.close()}}function ow({context:e={},url:t,data:r={},style:i={},onMessage:n,onClose:a}){qt=e.plus||plus,Ff=e.weex||(typeof weex=="object"?weex:null),cr=e.BroadcastChannel||(typeof BroadcastChannel=="object"?BroadcastChannel:null);var o={autoBackButton:!0,titleSize:"17px"},s="page".concat(Date.now());i=fe({},i),i.titleNView!==!1&&i.titleNView!=="none"&&(i.titleNView=fe(o,i.titleNView));var l={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"".concat(typeof process=="object"&&process.env&&{}.VUE_APP_TEMPLATE_PATH||"","/").concat(t,".js"),defaultFontSize:qt.screen.resolutionWidth/20,viewport:qt.screen.resolutionWidth}};i=fe(l,i);var u=qt.webview.create("",s,i,{extras:{from:Wf(),runtime:$f(),data:r,useGlobalEvent:!cr}});return u.addEventListener("close",a),nw(s,v=>{typeof n=="function"&&n(v.data),v.keep||u.close("auto")}),u.show(i.animationType,i.animationDuration),new aw(u)}var xe={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},vr={YEAR:"year",MONTH:"month",DAY:"day"};function mn(e){return e>9?e:"0".concat(e)}function _n(e,t){e=String(e||"");var r=new Date;if(t===xe.TIME){var i=e.split(":");i.length===2&&r.setHours(parseInt(i[0]),parseInt(i[1]))}else{var n=e.split("-");n.length===3&&r.setFullYear(parseInt(n[0]),parseInt(String(parseFloat(n[1])-1)),parseInt(n[2]))}return r}function sw(e){if(e.mode===xe.TIME)return"00:00";if(e.mode===xe.DATE){var t=new Date().getFullYear()-100;switch(e.fields){case vr.YEAR:return t;case vr.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function lw(e){if(e.mode===xe.TIME)return"23:59";if(e.mode===xe.DATE){var t=new Date().getFullYear()+100;switch(e.fields){case vr.YEAR:return t;case vr.MONTH:return t+"-12";default:return t+"-12-31"}}return""}var uw={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:xe.SELECTOR,validator(e){return Object.values(xe).indexOf(e)>=0}},fields:{type:String,default:""},start:{type:String,default:sw},end:{type:String,default:lw},disabled:{type:[Boolean,String],default:!1}},fw=he({name:"Picker",props:uw,emits:["change","cancel","columnchange"],setup(e,{emit:t}){Bd();var{t:r,getLocale:i}=je(),n=B(null),a=Pe(n,t),o=B(null),s=B(null),l=()=>{var p=e.value;switch(e.mode){case xe.MULTISELECTOR:{Array.isArray(p)||(p=[]),Array.isArray(o.value)||(o.value=[]);for(var c=o.value.length=Math.max(p.length,e.range.length),w=0;w{s.value&&s.value.sendMessage(p)},v=p=>{var c={event:"cancel"};s.value=ow({url:"__uniapppicker",data:p,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:w=>{var f=w.event;if(f==="created"){u(p);return}if(f==="columnchange"){delete w.event,a(f,{},w);return}c=w},onClose:()=>{s.value=null;var w=c.event;delete c.event,w&&a(w,{},c)}})},h=(p,c)=>{plus.nativeUI[e.mode===xe.TIME?"pickTime":"pickDate"](w=>{var f=w.date;a("change",{},{value:e.mode===xe.TIME?"".concat(mn(f.getHours()),":").concat(mn(f.getMinutes())):"".concat(f.getFullYear(),"-").concat(mn(f.getMonth()+1),"-").concat(mn(f.getDate()))})},()=>{a("cancel",{},{})},e.mode===xe.TIME?{time:_n(e.value,xe.TIME),popover:c}:{date:_n(e.value,xe.DATE),minDate:_n(e.start,xe.DATE),maxDate:_n(e.end,xe.DATE),popover:c})},_=(p,c)=>{(p.mode===xe.TIME||p.mode===xe.DATE)&&!p.fields?h(p,c):(p.fields=Object.values(vr).includes(p.fields)?p.fields:vr.DAY,v(p))},d=p=>{if(!e.disabled){var c=p.currentTarget,w=c.getBoundingClientRect();_(Object.assign({},e,{value:o.value,locale:i(),messages:{done:r("uni.picker.done"),cancel:r("uni.picker.cancel")}}),{top:w.top+Nf(),left:w.left,width:w.width,height:w.height})}},b=ge(st,!1),m={submit:()=>[e.name,o.value],reset:()=>{switch(e.mode){case xe.SELECTOR:o.value=0;break;case xe.MULTISELECTOR:Array.isArray(e.value)&&(o.value=e.value.map(p=>0));break;case xe.DATE:case xe.TIME:o.value="";break}}};return b&&(b.addField(m),Ee(()=>b.removeField(m))),Object.keys(e).forEach(p=>{p!=="name"&&U(()=>e[p],c=>{var w={};w[p]=c,u(w)},{deep:!0})}),U(()=>e.value,l,{deep:!0}),l(),()=>M("uni-picker",{ref:n,onClick:d},[M("slot",null,null)],8,["onClick"])}});class cw extends _e{constructor(t,r,i,n){super(t,"uni-picker",fw,r,i,n)}}var Cy="";class vw extends qr{constructor(t,r,i,n){super(t,"uni-picker-view",y_,r,i,n,".uni-picker-view-wrapper")}}var Oy="";class dw extends qr{constructor(t,r,i,n){super(t,"uni-picker-view-column",I_,r,i,n,".uni-picker-view-content")}}var My="";class hw extends _e{constructor(t,r,i,n){super(t,"uni-progress",P_,r,i,n)}}var Iy="";class pw extends _e{constructor(t,r,i,n){super(t,"uni-radio",B_,r,i,n,".uni-radio-wrapper")}setText(t){So(this.$holder,"uni-radio-input",t)}}var Ay="";class gw extends _e{constructor(t,r,i,n){super(t,"uni-radio-group",N_,r,i,n)}}var Py="";class mw extends _e{constructor(t,r,i,n){super(t,"uni-rich-text",H_,r,i,n)}}var Ry="";class _w extends _e{constructor(t,r,i,n){super(t,"uni-scroll-view",z_,r,i,n,".uni-scroll-view-content")}setText(t){So(this.$holder,"uni-scroll-view-refresher",t)}}var Ly="";class bw extends _e{constructor(t,r,i,n){super(t,"uni-slider",G_,r,i,n)}}var Ny="";class ww extends qr{constructor(t,r,i,n){super(t,"uni-swiper",ib,r,i,n,".uni-swiper-slide-frame")}}var ky="";class yw extends _e{constructor(t,r,i,n){super(t,"uni-swiper-item",ab,r,i,n)}}var Dy="";class Sw extends _e{constructor(t,r,i,n){super(t,"uni-switch",sb,r,i,n)}}var By="";class xw extends _e{constructor(t,r,i,n){super(t,"uni-textarea",db,r,i,n)}}var Fy="",Tw={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default(){return{}}},advanced:{type:Array,default(){return[]}}},Uf=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],Ew=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],Cw=he({name:"Video",props:Tw,emits:Uf,setup(e,{emit:t}){var r=B(null),i=Pe(r,t),n=B(null),a=yo(e,["id"]),{position:o,hidden:s,onParentReady:l}=zr(n),u;l(()=>{u=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},a.value,o)),plus.webview.currentWebview().append(u),s.value&&u.hide(),Uf.forEach(h=>{u.addEventListener(h,_=>{i(h,{},_.detail)})}),U(()=>a.value,h=>u.setStyles(h),{deep:!0}),U(()=>o,h=>u.setStyles(h),{deep:!0}),U(()=>s.value,h=>{u[h?"hide":"show"](),h||u.setStyles(o)})});var v=pn();return hn((h,_)=>{if(Ew.includes(h)){var d;switch(h){case"seek":d=_.position;break;case"sendDanmu":d=_;break;case"playbackRate":d=_.rate;break;case"requestFullScreen":d=_.direction;break}u&&u[h](d)}},v,!0),Ee(()=>{u&&u.close()}),()=>M("uni-video",{ref:r,id:e.id},[M("div",{ref:n,class:"uni-video-container"},null,512),M("div",{class:"uni-video-slot"},null)],8,["id"])}});class Ow extends _e{constructor(t,r,i,n){super(t,"uni-video",Cw,r,i,n,".uni-video-slot")}}var $y="",Mw={src:{type:String,default:""},webviewStyles:{type:Object,default(){return{}}}},Xe,Iw=({htmlId:e,src:t,webviewStyles:r})=>{var i=plus.webview.currentWebview(),n=fe(r,{"uni-app":"none",isUniH5:!0}),a=i.getTitleNView();if(a){var o=As+parseFloat(n.top||"0");plus.navigator.isImmersedStatusbar()&&(o+=Lf()),n.top=String(o),n.bottom=n.bottom||"0"}Xe=plus.webview.create(t,e,n),a&&Xe.addEventListener("titleUpdate",function(){var s,l=(s=Xe)===null||s===void 0?void 0:s.getTitle();i.setStyle({titleNView:{titleText:!l||l==="null"?" ":l}})}),plus.webview.currentWebview().append(Xe)},Aw=()=>{var e;plus.webview.currentWebview().remove(Xe),(e=Xe)===null||e===void 0||e.close("none"),Xe=null},Pw=he({name:"WebView",props:Mw,setup(e){var t=Ct(),r=B(null),{hidden:i,onParentReady:n}=zr(r),a=Q(()=>e.webviewStyles);return n(()=>{var o,s=B(Dg+t);Iw({htmlId:s.value,src:ht(e.src),webviewStyles:a.value}),UniViewJSBridge.publishHandler(Ng,{},t),i.value&&((o=Xe)===null||o===void 0||o.hide())}),Ee(()=>{Aw(),UniViewJSBridge.publishHandler(kg,{},t)}),U(()=>e.src,o=>{var s,l=ht(o)||"";if(!!l){if(/^(http|https):\/\//.test(l)&&e.webviewStyles.progress){var u;(u=Xe)===null||u===void 0||u.setStyle({progress:{color:e.webviewStyles.progress.color}})}(s=Xe)===null||s===void 0||s.loadURL(l)}}),U(a,o=>{var s;(s=Xe)===null||s===void 0||s.setStyle(o)}),U(i,o=>{Xe&&Xe[o?"hide":"show"]()}),()=>M("uni-web-view",{ref:r},null,512)}});class Rw extends _e{constructor(t,r,i,n){super(t,"uni-web-view",Pw,r,i,n)}}var Lw={"#text":_b,"#comment":Dm,VIEW:Sb,IMAGE:jb,TEXT:mb,NAVIGATOR:tw,FORM:Wb,BUTTON:Ob,INPUT:Hb,LABEL:Yb,RADIO:pw,CHECKBOX:Ab,"CHECKBOX-GROUP":Pb,AD:Cb,CAMERA:Mb,CANVAS:Ib,"COVER-IMAGE":Db,"COVER-VIEW":Fb,EDITOR:$b,"FUNCTIONAL-PAGE-NAVIGATOR":Ub,ICON:Vb,"RADIO-GROUP":gw,"LIVE-PLAYER":zb,"LIVE-PUSHER":qb,MAP:Jb,"MOVABLE-AREA":Qb,"MOVABLE-VIEW":ew,"OFFICIAL-ACCOUNT":rw,"OPEN-DATA":iw,PICKER:cw,"PICKER-VIEW":vw,"PICKER-VIEW-COLUMN":dw,PROGRESS:hw,"RICH-TEXT":mw,"SCROLL-VIEW":_w,SLIDER:bw,SWIPER:ww,"SWIPER-ITEM":yw,SWITCH:Sw,TEXTAREA:xw,VIDEO:Ow,"WEB-VIEW":Rw};function Nw(e,t){return()=>Np(e,t)}var Oo=new Map;function Ke(e){return Oo.get(e)}function Vf(e){return Oo.delete(e)}function jf(e,t,r,i,n={}){var a;if(e===0)a=new lr(e,t,r,document.createElement(t));else{var o=Lw[t];o?a=new o(e,r,i,n):a=new Wu(e,document.createElement(t),r,i,n)}return Oo.set(e,a),a}var Mo=[],Hf=!1;function Yf(e){if(Hf)return e();Mo.push(e)}function Io(){Hf=!0,Mo.forEach(e=>e()),Mo.length=0}function kw(){}function zf({css:e,route:t,platform:r,pixelRatio:i,windowWidth:n,disableScroll:a,statusbarHeight:o,windowTop:s,windowBottom:l}){Dw(t),Bw(r,i,n),Fw();var u=plus.webview.currentWebview().id;window.__id__=u,document.title="".concat(t,"[").concat(u,"]"),Ww(o,s,l),a&&document.addEventListener("touchmove",Tg),e?$w(t):Io()}function Dw(e){window.__PAGE_INFO__={route:e}}function Bw(e,t,r){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:r}}function Fw(){jf(0,"div",-1,-1).$=document.getElementById("app")}function $w(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=Io,t.onerror=Io,document.head.appendChild(t)}function Ww(e,t,r){var i={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":r+"px","--status-bar-height":e+"px"};dg(i)}var qf=!1;function Uw(e){if(!qf){qf=!0;var t={onReachBottomDistance:e,onPageScroll(r){UniViewJSBridge.publishHandler(_d,{scrollTop:r})},onReachBottom(){UniViewJSBridge.publishHandler(bd)}};requestAnimationFrame(()=>document.addEventListener("scroll",Eg(t)))}}function Vw({scrollTop:e,selector:t,duration:r},i){zv(t||e||0,r),i()}function jw(e){var t=e[0];t[0]===Ms?Hw(t):Yf(()=>Yw(e))}function Hw(e){return zf(e[1])}function Yw(e){var t=e[0],r=gm(t[0]===Lg?t[1]:[]);e.forEach(i=>{switch(i[0]){case Ms:return zf(i[1]);case ed:return kw();case td:return jf(i[1],r(i[2]),i[3],i[4],mm(r,i[5]));case rd:return Ke(i[1]).remove();case id:return Ke(i[1]).setAttr(r(i[2]),r(i[3]));case nd:return Ke(i[1]).removeAttr(r(i[2]));case ad:return Ke(i[1]).addEvent(r(i[2]),i[3]);case ld:return Ke(i[1]).addWxsEvent(r(i[2]),r(i[3]),i[4]);case od:return Ke(i[1]).removeEvent(r(i[2]));case sd:return Ke(i[1]).setText(r(i[2]));case ud:return Uw(i[1])}}),ym()}function zw(){var{subscribe:e}=UniViewJSBridge;e(mu,jw),e(Bg,je().setLocale)}function Xf(e){return window.__$__(e).$}function qw(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var r=document.documentElement,i=document.body;t.scrollLeft=r.scrollLeft||i.scrollLeft||0,t.scrollTop=r.scrollTop||i.scrollTop||0,t.scrollHeight=r.scrollHeight||i.scrollHeight||0,t.scrollWidth=r.scrollWidth||i.scrollWidth||0}return t}function Ao(e,t){var r={},{top:i}=vg();if(t.id&&(r.id=e.id),t.dataset&&(r.dataset=Zn(e)),t.rect||t.size){var n=e.getBoundingClientRect();t.rect&&(r.left=n.left,r.right=n.right,r.top=n.top-i,r.bottom=n.bottom-i),t.size&&(r.width=n.width,r.height=n.height)}if(Array.isArray(t.properties)&&t.properties.forEach(s=>{s=s.replace(/-([a-z])/g,function(l,u){return u.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){var a=e.children[0].children[0];r.scrollLeft=a.scrollLeft,r.scrollTop=a.scrollTop,r.scrollHeight=a.scrollHeight,r.scrollWidth=a.scrollWidth}else r.scrollLeft=0,r.scrollTop=0,r.scrollHeight=0,r.scrollWidth=0;if(Array.isArray(t.computedStyle)){var o=getComputedStyle(e);t.computedStyle.forEach(s=>{r[s]=o[s]})}return t.context&&(r.contextInfo=pb(e)),r}function Xw(e,t){return e?window.__$__(e).$:t.$el}function Kf(e,t){var r=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(i){for(var n=this.parentElement.querySelectorAll(i),a=n.length;--a>=0&&n.item(a)!==this;);return a>-1};return r.call(e,t)}function Kw(e,t,r,i,n){var a=Xw(t,e),o=a.parentElement;if(!o)return i?null:[];var{nodeType:s}=a,l=s===3||s===8;if(i){var u=l?o.querySelector(r):Kf(a,r)?a:a.querySelector(r);return u?Ao(u,n):null}else{var v=[],h=(l?o:a).querySelectorAll(r);return h&&h.length&&[].forEach.call(h,_=>{v.push(Ao(_,n))}),!l&&Kf(a,r)&&v.unshift(Ao(a,n)),v}}function Gw(e,t,r){var i=[];t.forEach(({component:n,selector:a,single:o,fields:s})=>{n===null?i.push(qw(s)):i.push(Kw(e,n,a,o,s))}),r(i)}function Zw({reqId:e,component:t,options:r,callback:i},n){var a=Xf(t);(a.__io||(a.__io={}))[e]=lm(a,r,i)}function Jw({reqId:e,component:t},r){var i=Xf(t),n=i.__io&&i.__io[e];n&&(n.disconnect(),delete i.__io[e])}var Po={},Ro={};function Qw(e){var t=[],r=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(var i of r)i!=="orientation"&&e[i]&&Number(e[i]>=0)&&t.push("(".concat(Gf(i),": ").concat(Number(e[i]),"px)")),i==="orientation"&&e[i]&&t.push("(".concat(Gf(i),": ").concat(e[i],")"));var n=t.join(" and ");return n}function Gf(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function ey({reqId:e,component:t,options:r,callback:i},n){var a=Po[e]=window.matchMedia(Qw(r)),o=Ro[e]=s=>i(s.matches);o(a),a.addListener(o)}function ty({reqId:e,component:t},r){var i=Ro[e],n=Po[e];n&&(n.removeListener(i),delete Ro[e],delete Po[e])}function ry({family:e,source:t,desc:r},i){Yv(e,t,r).then(()=>{i()}).catch(n=>{i(n.toString())})}var iy={$el:document.body};function ny(){var e=Ct();Vd(e,t=>(...r)=>{Yf(()=>{t.apply(null,r)})}),ft(e,"requestComponentInfo",(t,r)=>{Gw(iy,t.reqs,r)}),ft(e,"addIntersectionObserver",t=>{Zw(fe({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),ft(e,"removeIntersectionObserver",t=>{Jw(t)}),ft(e,"addMediaQueryObserver",t=>{ey(fe({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),ft(e,"removeMediaQueryObserver",t=>{ty(t)}),ft(e,am,Vw),ft(e,nm,ry)}window.uni=hm,window.UniViewJSBridge=_u,window.rpx2px=xu,window.__$__=Ke,window.__f__=Gv;function Zf(){Zd(),ny(),zw(),pm(),_u.publishHandler(Rg)}typeof plus!="undefined"?Zf():document.addEventListener("plusready",Zf)}); +(function(wn){typeof define=="function"&&define.amd?define(wn):wn()})(function(){"use strict";var wn="",oy="",sy="",Gt={exports:{}},Zr={exports:{}},Jr={exports:{}},rc=Jr.exports={version:"2.6.12"};typeof __e=="number"&&(__e=rc);var gt={exports:{}},Qr=gt.exports=typeof Qr!="undefined"&&Qr.Math==Math?Qr:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Qr);var ic=Jr.exports,ko=gt.exports,Do="__core-js_shared__",Bo=ko[Do]||(ko[Do]={});(Zr.exports=function(e,t){return Bo[e]||(Bo[e]=t!==void 0?t:{})})("versions",[]).push({version:ic.version,mode:"window",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"});var nc=0,ac=Math.random(),yn=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++nc+ac).toString(36))},Sn=Zr.exports("wks"),oc=yn,xn=gt.exports.Symbol,Fo=typeof xn=="function",sc=Gt.exports=function(e){return Sn[e]||(Sn[e]=Fo&&xn[e]||(Fo?xn:oc)("Symbol."+e))};sc.store=Sn;var ei={},Tn=function(e){return typeof e=="object"?e!==null:typeof e=="function"},lc=Tn,En=function(e){if(!lc(e))throw TypeError(e+" is not an object!");return e},ti=function(e){try{return!!e()}catch(t){return!0}},hr=!ti(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),$o=Tn,Cn=gt.exports.document,uc=$o(Cn)&&$o(Cn.createElement),Wo=function(e){return uc?Cn.createElement(e):{}},fc=!hr&&!ti(function(){return Object.defineProperty(Wo("div"),"a",{get:function(){return 7}}).a!=7}),ri=Tn,cc=function(e,t){if(!ri(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!ri(i=r.call(e))||typeof(r=e.valueOf)=="function"&&!ri(i=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!ri(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")},Uo=En,vc=fc,dc=cc,hc=Object.defineProperty;ei.f=hr?Object.defineProperty:function(t,r,i){if(Uo(t),r=dc(r,!0),Uo(i),vc)try{return hc(t,r,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[r]=i.value),t};var Vo=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},pc=ei,gc=Vo,Zt=hr?function(e,t,r){return pc.f(e,t,gc(1,r))}:function(e,t,r){return e[t]=r,e},On=Gt.exports("unscopables"),Mn=Array.prototype;Mn[On]==null&&Zt(Mn,On,{});var mc=function(e){Mn[On][e]=!0},_c=function(e,t){return{value:t,done:!!e}},In={},bc={}.toString,wc=function(e){return bc.call(e).slice(8,-1)},yc=wc,Sc=Object("z").propertyIsEnumerable(0)?Object:function(e){return yc(e)=="String"?e.split(""):Object(e)},jo=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},xc=Sc,Tc=jo,ii=function(e){return xc(Tc(e))},ni={exports:{}},Ec={}.hasOwnProperty,ai=function(e,t){return Ec.call(e,t)},Cc=Zr.exports("native-function-to-string",Function.toString),Oc=gt.exports,oi=Zt,Ho=ai,An=yn("src"),Pn=Cc,Yo="toString",Mc=(""+Pn).split(Yo);Jr.exports.inspectSource=function(e){return Pn.call(e)},(ni.exports=function(e,t,r,i){var n=typeof r=="function";n&&(Ho(r,"name")||oi(r,"name",t)),e[t]!==r&&(n&&(Ho(r,An)||oi(r,An,e[t]?""+e[t]:Mc.join(String(t)))),e===Oc?e[t]=r:i?e[t]?e[t]=r:oi(e,t,r):(delete e[t],oi(e,t,r)))})(Function.prototype,Yo,function(){return typeof this=="function"&&this[An]||Pn.call(this)});var zo=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e},Ic=zo,Ac=function(e,t,r){if(Ic(e),t===void 0)return e;switch(r){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,a){return e.call(t,i,n,a)}}return function(){return e.apply(t,arguments)}},Jt=gt.exports,si=Jr.exports,Pc=Zt,Rc=ni.exports,qo=Ac,Rn="prototype",Be=function(e,t,r){var i=e&Be.F,n=e&Be.G,a=e&Be.S,o=e&Be.P,s=e&Be.B,l=n?Jt:a?Jt[t]||(Jt[t]={}):(Jt[t]||{})[Rn],u=n?si:si[t]||(si[t]={}),v=u[Rn]||(u[Rn]={}),h,_,d,b;n&&(r=t);for(h in r)_=!i&&l&&l[h]!==void 0,d=(_?l:r)[h],b=s&&_?qo(d,Jt):o&&typeof d=="function"?qo(Function.call,d):d,l&&Rc(l,h,d,e&Be.U),u[h]!=d&&Pc(u,h,b),o&&v[h]!=d&&(v[h]=d)};Jt.core=si,Be.F=1,Be.G=2,Be.S=4,Be.P=8,Be.B=16,Be.W=32,Be.U=64,Be.R=128;var Ln=Be,Lc=Math.ceil,Nc=Math.floor,Xo=function(e){return isNaN(e=+e)?0:(e>0?Nc:Lc)(e)},kc=Xo,Dc=Math.min,Bc=function(e){return e>0?Dc(kc(e),9007199254740991):0},Fc=Xo,$c=Math.max,Wc=Math.min,Uc=function(e,t){return e=Fc(e),e<0?$c(e+t,0):Wc(e,t)},Vc=ii,jc=Bc,Hc=Uc,Yc=function(e){return function(t,r,i){var n=Vc(t),a=jc(n.length),o=Hc(i,a),s;if(e&&r!=r){for(;a>o;)if(s=n[o++],s!=s)return!0}else for(;a>o;o++)if((e||o in n)&&n[o]===r)return e||o||0;return!e&&-1}},Ko=Zr.exports("keys"),zc=yn,Nn=function(e){return Ko[e]||(Ko[e]=zc(e))},Go=ai,qc=ii,Xc=Yc(!1),Kc=Nn("IE_PROTO"),Gc=function(e,t){var r=qc(e),i=0,n=[],a;for(a in r)a!=Kc&&Go(r,a)&&n.push(a);for(;t.length>i;)Go(r,a=t[i++])&&(~Xc(n,a)||n.push(a));return n},Zo="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Zc=Gc,Jc=Zo,kn=Object.keys||function(t){return Zc(t,Jc)},Qc=ei,ev=En,tv=kn,rv=hr?Object.defineProperties:function(t,r){ev(t);for(var i=tv(r),n=i.length,a=0,o;n>a;)Qc.f(t,o=i[a++],r[o]);return t},Jo=gt.exports.document,iv=Jo&&Jo.documentElement,nv=En,av=rv,Qo=Zo,ov=Nn("IE_PROTO"),Dn=function(){},Bn="prototype",li=function(){var e=Wo("iframe"),t=Qo.length,r="<",i=">",n;for(e.style.display="none",iv.appendChild(e),e.src="javascript:",n=e.contentWindow.document,n.open(),n.write(r+"script"+i+"document.F=Object"+r+"/script"+i),n.close(),li=n.F;t--;)delete li[Bn][Qo[t]];return li()},sv=Object.create||function(t,r){var i;return t!==null?(Dn[Bn]=nv(t),i=new Dn,Dn[Bn]=null,i[ov]=t):i=li(),r===void 0?i:av(i,r)},lv=ei.f,uv=ai,es=Gt.exports("toStringTag"),ts=function(e,t,r){e&&!uv(e=r?e:e.prototype,es)&&lv(e,es,{configurable:!0,value:t})},fv=sv,cv=Vo,vv=ts,rs={};Zt(rs,Gt.exports("iterator"),function(){return this});var dv=function(e,t,r){e.prototype=fv(rs,{next:cv(1,r)}),vv(e,t+" Iterator")},hv=jo,is=function(e){return Object(hv(e))},pv=ai,gv=is,ns=Nn("IE_PROTO"),mv=Object.prototype,_v=Object.getPrototypeOf||function(e){return e=gv(e),pv(e,ns)?e[ns]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?mv:null},Fn=Ln,bv=ni.exports,as=Zt,os=In,wv=dv,yv=ts,Sv=_v,pr=Gt.exports("iterator"),$n=!([].keys&&"next"in[].keys()),xv="@@iterator",ss="keys",ui="values",ls=function(){return this},Tv=function(e,t,r,i,n,a,o){wv(r,t,i);var s=function(f){if(!$n&&f in h)return h[f];switch(f){case ss:return function(){return new r(this,f)};case ui:return function(){return new r(this,f)}}return function(){return new r(this,f)}},l=t+" Iterator",u=n==ui,v=!1,h=e.prototype,_=h[pr]||h[xv]||n&&h[n],d=_||s(n),b=n?u?s("entries"):d:void 0,m=t=="Array"&&h.entries||_,p,c,w;if(m&&(w=Sv(m.call(new e)),w!==Object.prototype&&w.next&&(yv(w,l,!0),typeof w[pr]!="function"&&as(w,pr,ls))),u&&_&&_.name!==ui&&(v=!0,d=function(){return _.call(this)}),($n||v||!h[pr])&&as(h,pr,d),os[t]=d,os[l]=ls,n)if(p={values:u?d:s(ui),keys:a?d:s(ss),entries:b},o)for(c in p)c in h||bv(h,c,p[c]);else Fn(Fn.P+Fn.F*($n||v),t,p);return p},Wn=mc,fi=_c,us=In,Ev=ii,Cv=Tv(Array,"Array",function(e,t){this._t=Ev(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,fi(1)):t=="keys"?fi(0,r):t=="values"?fi(0,e[r]):fi(0,[r,e[r]])},"values");us.Arguments=us.Array,Wn("keys"),Wn("values"),Wn("entries");for(var fs=Cv,Ov=kn,Mv=ni.exports,Iv=gt.exports,cs=Zt,vs=In,ds=Gt.exports,hs=ds("iterator"),ps=ds("toStringTag"),gs=vs.Array,ms={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},_s=Ov(ms),Un=0;Un<_s.length;Un++){var ci=_s[Un],Av=ms[ci],bs=Iv[ci],Rt=bs&&bs.prototype,vi;if(Rt&&(Rt[hs]||cs(Rt,hs,gs),Rt[ps]||cs(Rt,ps,ci),vs[ci]=gs,Av))for(vi in fs)Rt[vi]||Mv(Rt,vi,fs[vi],!0)}function di(e,t){for(var r=Object.create(null),i=e.split(","),n=0;n!!r[a.toLowerCase()]:a=>!!r[a]}var Pv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Rv=di(Pv);function ws(e){return!!e||e===""}var Lv=di("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width");function Vn(e){if(oe(e)){for(var t={},r=0;r{if(r){var i=r.split(kv);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Dv(e){var t="";if(!e||ye(e))return t;for(var r in e){var i=e[r],n=r.startsWith("--")?r:Ve(r);(ye(i)||typeof i=="number"&&Lv(n))&&(t+="".concat(n,":").concat(i,";"))}return t}function jn(e){var t="";if(ye(e))t=e;else if(oe(e))for(var r=0;r{},Bv=()=>!1,Fv=/^on[^a-z]/,hi=e=>Fv.test(e),Hn=e=>e.startsWith("onUpdate:"),fe=Object.assign,Ss=(e,t)=>{var r=e.indexOf(t);r>-1&&e.splice(r,1)},$v=Object.prototype.hasOwnProperty,te=(e,t)=>$v.call(e,t),oe=Array.isArray,mr=e=>_r(e)==="[object Map]",Wv=e=>_r(e)==="[object Set]",ae=e=>typeof e=="function",ye=e=>typeof e=="string",Yn=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",xs=e=>De(e)&&ae(e.then)&&ae(e.catch),Uv=Object.prototype.toString,_r=e=>Uv.call(e),zn=e=>_r(e).slice(8,-1),rt=e=>_r(e)==="[object Object]",qn=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pi=di(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gi=e=>{var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}},Vv=/-(\w)/g,mt=gi(e=>e.replace(Vv,(t,r)=>r?r.toUpperCase():"")),jv=/\B([A-Z])/g,Ve=gi(e=>e.replace(jv,"-$1").toLowerCase()),mi=gi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xn=gi(e=>e?"on".concat(mi(e)):""),br=(e,t)=>!Object.is(e,t),Kn=(e,t)=>{for(var r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Hv=e=>{var t=parseFloat(e);return isNaN(t)?e:t},Ts,Yv=()=>Ts||(Ts=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"||typeof window!="undefined"?window:{}),Gn=0;function Zn(e,...t){var r=Date.now(),i=Gn?r-Gn:0;return Gn=r,"[".concat(r,"][").concat(i,"ms][").concat(e,"]\uFF1A").concat(t.map(n=>JSON.stringify(n)).join(" "))}function Jn(e){return fe({},e.dataset,e.__uniDataset)}function Qn(e){return{passive:e}}function ea(e){var{id:t,offsetTop:r,offsetLeft:i}=e;return{id:t,dataset:Jn(e),offsetTop:r,offsetLeft:i}}function zv(e,t,r){var i=document.fonts;if(i){var n=new FontFace(e,t,r);return n.load().then(()=>{i.add&&i.add(n)})}return new Promise(a=>{var o=document.createElement("style"),s=[];if(r){var{style:l,weight:u,stretch:v,unicodeRange:h,variant:_,featureSettings:d}=r;l&&s.push("font-style:".concat(l)),u&&s.push("font-weight:".concat(u)),v&&s.push("font-stretch:".concat(v)),h&&s.push("unicode-range:".concat(h)),_&&s.push("font-variant:".concat(_)),d&&s.push("font-feature-settings:".concat(d))}o.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(s.join(";"),"}"),document.head.appendChild(o),a()})}function qv(e,t){if(ye(e)){var r=document.querySelector(e);r&&(e=r.getBoundingClientRect().top+window.pageYOffset)}e<0&&(e=0);var i=document.documentElement,{clientHeight:n,scrollHeight:a}=i;if(e=Math.min(e,a-n),t===0){i.scrollTop=document.body.scrollTop=e;return}if(window.scrollY!==e){var o=s=>{if(s<=0){window.scrollTo(0,e);return}var l=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+l/s*10),o(s-10)})};o(t)}}function Xv(){return typeof __channelId__=="string"&&__channelId__}function Kv(e,t){switch(zn(t)){case"Function":return"function() { [native code] }";default:return t}}function Gv(e,t,r){if(Xv())return r.push(t.replace("at ","uni-app:///")),console[e].apply(console,r);var i=r.map(function(n){var a=_r(n).toLowerCase();if(a==="[object object]"||a==="[object array]")try{n="---BEGIN:JSON---"+JSON.stringify(n,Kv)+"---END:JSON---"}catch(s){n=a}else if(n===null)n="---NULL---";else if(n===void 0)n="---UNDEFINED---";else{var o=zn(n).toUpperCase();o==="NUMBER"||o==="BOOLEAN"?n="---BEGIN:"+o+"---"+n+"---END:"+o+"---":n=String(n)}return n});return i.join("---COMMA---")+" "+t}function Zv(e,t,...r){var i=Gv(e,t,r);i&&console[e](i)}function Qt(e){if(typeof e=="function"){if(window.plus)return e();document.addEventListener("plusready",e)}}function Jv(e,t){return t&&(t.capture&&(e+="Capture"),t.once&&(e+="Once"),t.passive&&(e+="Passive")),"on".concat(mi(mt(e)))}var Es=/(?:Once|Passive|Capture)$/;function ta(e){var t;if(Es.test(e)){t={};for(var r;r=e.match(Es);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Ve(e.slice(2)),t]}var ra={stop:1,prevent:1<<1,self:1<<2},Cs="class",ia="style",Qv="innerHTML",ed="textContent",bi=".vShow",Os=".vOwnerId",Ms=".vRenderjs",na="change:",Is=1,td=2,rd=3,id=5,nd=6,ad=7,od=8,sd=9,ld=10,ud=12,fd=15,cd=20;function vd(e){var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}}function dd(e){return vd(e)}function aa(e,t=null){var r;return(...i)=>(e&&(r=e.apply(t,i),e=null),r)}function As(e,t){var r=t.split("."),i=r[0];return e||(e={}),r.length===1?e[i]:As(e[i],r.slice(1).join("."))}function hd(e,t){var r,i=function(){clearTimeout(r);var n=()=>e.apply(this,arguments);r=setTimeout(n,t)};return i.cancel=function(){clearTimeout(r)},i}var wr=` +`,Ps=44,wi="#007aff",pd=/^([a-z-]+:)?\/\//i,gd=/^data:.*,.*/,Rs="wxs://",Ls="json://",md="wxsModules",_d="renderjsModules",bd="onPageScroll",wd="onReachBottom",yd="onWxsInvokeCallMethod",Sd=Array.isArray,xd=e=>e!==null&&typeof e=="object",Td=["{","}"];class Ed{constructor(){this._caches=Object.create(null)}interpolate(t,r,i=Td){if(!r)return[t];var n=this._caches[t];return n||(n=Md(t,i),this._caches[t]=n),Id(n,r)}}var Cd=/^(?:\d)+/,Od=/^(?:\w)+/;function Md(e,[t,r]){for(var i=[],n=0,a="";nAd.call(e,t),Pd=new Ed;function Rd(e,t){return!!t.find(r=>e.indexOf(r)!==-1)}function Ld(e,t){return t.find(r=>e.indexOf(r)===0)}function ks(e,t){if(!!e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e.indexOf("zh")===0)return e.indexOf("-hans")>-1?yi:e.indexOf("-hant")>-1||Rd(e,["-tw","-hk","-mo","-cht"])?Si:yi;var r=Ld(e,[_t,oa,sa]);if(r)return r}}class Nd{constructor({locale:t,fallbackLocale:r,messages:i,watcher:n,formater:a}){this.locale=_t,this.fallbackLocale=_t,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=a||Pd,this.messages=i||{},this.setLocale(t||_t),n&&this.watchLocale(n)}setLocale(t){var r=this.locale;this.locale=ks(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach(i=>{i(this.locale,r)})}getLocale(){return this.locale}watchLocale(t){var r=this.watchers.push(t)-1;return()=>{this.watchers.splice(r,1)}}add(t,r,i=!0){var n=this.messages[t];n?i?Object.assign(n,r):Object.keys(r).forEach(a=>{Ns(n,a)||(n[a]=r[a])}):this.messages[t]=r}f(t,r,i){return this.formater.interpolate(t,r,i).join("")}t(t,r,i){var n=this.message;return typeof r=="string"?(r=ks(r,this.messages),r&&(n=this.messages[r])):i=r,Ns(n,t)?this.formater.interpolate(n[t],i).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}function kd(e,t){e.$watchLocale?e.$watchLocale(r=>{t.setLocale(r)}):e.$watch(()=>e.$locale,r=>{t.setLocale(r)})}function Dd(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof window!="undefined"&&window.getLocale?window.getLocale():_t}function Bd(e,t={},r,i){typeof e!="string"&&([e,t]=[t,e]),typeof e!="string"&&(e=Dd()),typeof r!="string"&&(r=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||_t);var n=new Nd({locale:e,fallbackLocale:r,messages:t,watcher:i}),a=(o,s)=>{if(typeof getApp!="function")a=function(u,v){return n.t(u,v)};else{var l=!1;a=function(u,v){var h=getApp().$vm;return h&&(h.$locale,l||(l=!0,kd(h,n))),n.t(u,v)}}return a(o,s)};return{i18n:n,f(o,s,l){return n.f(o,s,l)},t(o,s){return a(o,s)},add(o,s,l=!0){return n.add(o,s,l)},watch(o){return n.watchLocale(o)},getLocale(){return n.getLocale()},setLocale(o){return n.setLocale(o)}}}var la;function je(){if(!la){var e;typeof getApp=="function"?e=weex.requireModule("plus").getLanguage():e=plus.webview.currentWebview().getStyle().locale,la=Bd(e)}return la}function it(e,t,r){return t.reduce((i,n,a)=>(i[e+n]=r[a],i),{})}var Fd=aa(()=>{var e="uni.picker.",t=["done","cancel"];je().add(_t,it(e,t,["Done","Cancel"]),!1),je().add(sa,it(e,t,["OK","Cancelar"]),!1),je().add(oa,it(e,t,["OK","Annuler"]),!1),je().add(yi,it(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1),je().add(Si,it(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1)}),$d=aa(()=>{var e="uni.button.",t=["feedback.title","feedback.send"];je().add(_t,it(e,t,["feedback","send"]),!1),je().add(sa,it(e,t,["realimentaci\xF3n","enviar"]),!1),je().add(oa,it(e,t,["retour d'information","envoyer"]),!1),je().add(yi,it(e,t,["\u95EE\u9898\u53CD\u9988","\u53D1\u9001"]),!1),je().add(Si,it(e,t,["\u554F\u984C\u53CD\u994B","\u767C\u9001"]),!1)}),Ds=function(){};Ds.prototype={on:function(e,t,r){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var i=this;function n(){i.off(e,n),t.apply(r,arguments)}return n._=t,this.on(e,n,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),i=0,n=r.length;for(i;i{var{subscribe:i,publishHandler:n}=UniViewJSBridge,a=r?Ud++:0;r&&i(Fs+"."+a,r,!0),n(Fs,{id:a,name:e,args:t})},xi=Object.create(null);function Ti(e,t){return e+"."+t}function jd(e,t){UniViewJSBridge.subscribe(Ti(e,Bs),t?t($s):$s)}function ft(e,t,r){t=Ti(e,t),xi[t]||(xi[t]=r)}function Hd(e,t){t=Ti(e,t),delete xi[t]}function $s({id:e,name:t,args:r},i){t=Ti(i,t);var n=o=>{e&&UniViewJSBridge.publishHandler(Bs+"."+e,o)},a=xi[t];a?a(r,n):n({})}var Yd=fe(Wd("service"),{invokeServiceMethod:Vd}),zd=350,Ws=10,Ei=Qn(!0),yr;function Sr(){yr&&(clearTimeout(yr),yr=null)}var Us=0,Vs=0;function qd(e){if(Sr(),e.touches.length===1){var{pageX:t,pageY:r}=e.touches[0];Us=t,Vs=r,yr=setTimeout(function(){var i=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});i.touches=e.touches,i.changedTouches=e.changedTouches,e.target.dispatchEvent(i)},zd)}}function Xd(e){if(!!yr){if(e.touches.length!==1)return Sr();var{pageX:t,pageY:r}=e.touches[0];if(Math.abs(t-Us)>Ws||Math.abs(r-Vs)>Ws)return Sr()}}function Kd(){window.addEventListener("touchstart",qd,Ei),window.addEventListener("touchmove",Xd,Ei),window.addEventListener("touchend",Sr,Ei),window.addEventListener("touchcancel",Sr,Ei)}function js(e,t){var r=Number(e);return isNaN(r)?t:r}function Gd(){var e=/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number",t=e&&Math.abs(window.orientation)===90,r=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,i=Math.min(window.innerWidth,document.documentElement.clientWidth,r)||r;return i}function Zd(){function e(){var t=__uniConfig.globalStyle||{},r=js(t.rpxCalcMaxDeviceWidth,960),i=js(t.rpxCalcBaseDeviceWidth,375),n=Gd();n=n<=r?n:i,document.documentElement.style.fontSize=n/23.4375+"px"}e(),document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e),window.addEventListener("resize",e)}function Jd(){Zd(),Kd()}var Qd=ti,eh=function(e,t){return!!e&&Qd(function(){t?e.call(null,function(){},1):e.call(null)})},ua=Ln,th=zo,Hs=is,Ys=ti,fa=[].sort,zs=[1,2,3];ua(ua.P+ua.F*(Ys(function(){zs.sort(void 0)})||!Ys(function(){zs.sort(null)})||!eh(fa)),"Array",{sort:function(t){return t===void 0?fa.call(Hs(this)):fa.call(Hs(this),th(t))}});var Lt,Ci=[];class rh{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Lt&&(this.parent=Lt,this.index=(Lt.scopes||(Lt.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(Ci.push(this),Lt=this)}off(){this.active&&(Ci.pop(),Lt=Ci[Ci.length-1])}stop(t){if(this.active){if(this.effects.forEach(i=>i.stop()),this.cleanups.forEach(i=>i()),this.scopes&&this.scopes.forEach(i=>i.stop(!0)),this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function ih(e,t){t=t||Lt,t&&t.active&&t.effects.push(e)}var ca=e=>{var t=new Set(e);return t.w=0,t.n=0,t},qs=e=>(e.w&bt)>0,Xs=e=>(e.n&bt)>0,nh=({deps:e})=>{if(e.length)for(var t=0;t{var{deps:t}=e;if(t.length){for(var r=0,i=0;i0?Tr[t-1]:void 0}}stop(){this.active&&(Ks(this),this.onStop&&this.onStop(),this.active=!1)}}function Ks(e){var{deps:t}=e;if(t.length){for(var r=0;r{(h==="length"||h>=i)&&s.push(v)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":oe(e)?qn(r)&&s.push(o.get("length")):(s.push(o.get(kt)),mr(e)&&s.push(o.get(ha)));break;case"delete":oe(e)||(s.push(o.get(kt)),mr(e)&&s.push(o.get(ha)));break;case"set":mr(e)&&s.push(o.get(kt));break}if(s.length===1)s[0]&&ma(s[0]);else{var l=[];for(var u of s)u&&l.push(...u);ma(ca(l))}}}function ma(e,t){for(var r of oe(e)?e:[...e])(r!==Nt||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}var sh=di("__proto__,__v_isRef,__isVue"),Js=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Yn)),lh=_a(),uh=_a(!1,!0),fh=_a(!0),Qs=ch();function ch(){var e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){for(var i=pe(this),n=0,a=this.length;n{e[t]=function(...r){tr();var i=pe(this)[t].apply(this,r);return Dt(),i}}),e}function _a(e=!1,t=!1){return function(i,n,a){if(n==="__v_isReactive")return!e;if(n==="__v_isReadonly")return e;if(n==="__v_raw"&&a===(e?t?Oh:ll:t?sl:ol).get(i))return i;var o=oe(i);if(!e&&o&&te(Qs,n))return Reflect.get(Qs,n,a);var s=Reflect.get(i,n,a);if((Yn(n)?Js.has(n):sh(n))||(e||He(i,"get",n),t))return s;if(We(s)){var l=!o||!qn(n);return l?s.value:s}return De(s)?e?ul(s):Te(s):s}}var vh=el(),dh=el(!0);function el(e=!1){return function(r,i,n,a){var o=r[i];if(!e&&(n=pe(n),o=pe(o),!oe(r)&&We(o)&&!We(n)))return o.value=n,!0;var s=oe(r)&&qn(i)?Number(i)e,Oi=e=>Reflect.getPrototypeOf(e);function Mi(e,t,r=!1,i=!1){e=e.__v_raw;var n=pe(e),a=pe(t);t!==a&&!r&&He(n,"get",t),!r&&He(n,"get",a);var{has:o}=Oi(n),s=i?ba:r?Sa:Er;if(o.call(n,t))return s(e.get(t));if(o.call(n,a))return s(e.get(a));e!==n&&e.get(t)}function Ii(e,t=!1){var r=this.__v_raw,i=pe(r),n=pe(e);return e!==n&&!t&&He(i,"has",e),!t&&He(i,"has",n),e===n?r.has(e):r.has(e)||r.has(n)}function Ai(e,t=!1){return e=e.__v_raw,!t&&He(pe(e),"iterate",kt),Reflect.get(e,"size",e)}function rl(e){e=pe(e);var t=pe(this),r=Oi(t),i=r.has.call(t,e);return i||(t.add(e),ct(t,"add",e,e)),this}function il(e,t){t=pe(t);var r=pe(this),{has:i,get:n}=Oi(r),a=i.call(r,e);a||(e=pe(e),a=i.call(r,e));var o=n.call(r,e);return r.set(e,t),a?br(t,o)&&ct(r,"set",e,t):ct(r,"add",e,t),this}function nl(e){var t=pe(this),{has:r,get:i}=Oi(t),n=r.call(t,e);n||(e=pe(e),n=r.call(t,e)),i&&i.call(t,e);var a=t.delete(e);return n&&ct(t,"delete",e,void 0),a}function al(){var e=pe(this),t=e.size!==0,r=e.clear();return t&&ct(e,"clear",void 0,void 0),r}function Pi(e,t){return function(i,n){var a=this,o=a.__v_raw,s=pe(o),l=t?ba:e?Sa:Er;return!e&&He(s,"iterate",kt),o.forEach((u,v)=>i.call(n,l(u),l(v),a))}}function Ri(e,t,r){return function(...i){var n=this.__v_raw,a=pe(n),o=mr(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=n[e](...i),v=r?ba:t?Sa:Er;return!t&&He(a,"iterate",l?ha:kt),{next(){var{value:h,done:_}=u.next();return _?{value:h,done:_}:{value:s?[v(h[0]),v(h[1])]:v(h),done:_}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return e==="delete"?!1:this}}function bh(){var e={get(a){return Mi(this,a)},get size(){return Ai(this)},has:Ii,add:rl,set:il,delete:nl,clear:al,forEach:Pi(!1,!1)},t={get(a){return Mi(this,a,!1,!0)},get size(){return Ai(this)},has:Ii,add:rl,set:il,delete:nl,clear:al,forEach:Pi(!1,!0)},r={get(a){return Mi(this,a,!0)},get size(){return Ai(this,!0)},has(a){return Ii.call(this,a,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Pi(!0,!1)},i={get(a){return Mi(this,a,!0,!0)},get size(){return Ai(this,!0)},has(a){return Ii.call(this,a,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Pi(!0,!0)},n=["keys","values","entries",Symbol.iterator];return n.forEach(a=>{e[a]=Ri(a,!1,!1),r[a]=Ri(a,!0,!1),t[a]=Ri(a,!1,!0),i[a]=Ri(a,!0,!0)}),[e,r,t,i]}var[wh,yh,Sh,xh]=bh();function wa(e,t){var r=t?e?xh:Sh:e?yh:wh;return(i,n,a)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(te(r,n)&&n in i?r:i,n,a)}var Th={get:wa(!1,!1)},Eh={get:wa(!1,!0)},Ch={get:wa(!0,!1)},ol=new WeakMap,sl=new WeakMap,ll=new WeakMap,Oh=new WeakMap;function Mh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ih(e){return e.__v_skip||!Object.isExtensible(e)?0:Mh(zn(e))}function Te(e){return e&&e.__v_isReadonly?e:ya(e,!1,tl,Th,ol)}function Ah(e){return ya(e,!1,_h,Eh,sl)}function ul(e){return ya(e,!0,mh,Ch,ll)}function ya(e,t,r,i,n){if(!De(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;var a=n.get(e);if(a)return a;var o=Ih(e);if(o===0)return e;var s=new Proxy(e,o===2?i:r);return n.set(e,s),s}function rr(e){return fl(e)?rr(e.__v_raw):!!(e&&e.__v_isReactive)}function fl(e){return!!(e&&e.__v_isReadonly)}function cl(e){return rr(e)||fl(e)}function pe(e){var t=e&&e.__v_raw;return t?pe(t):e}function Li(e){return _i(e,"__v_skip",!0),e}var Er=e=>De(e)?Te(e):e,Sa=e=>De(e)?ul(e):e;function vl(e){Gs()&&(e=pe(e),e.dep||(e.dep=ca()),Zs(e.dep))}function dl(e,t){e=pe(e),e.dep&&ma(e.dep)}function We(e){return Boolean(e&&e.__v_isRef===!0)}function B(e){return hl(e,!1)}function xa(e){return hl(e,!0)}function hl(e,t){return We(e)?e:new Ph(e,t)}class Ph{constructor(t,r){this._shallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:pe(t),this._value=r?t:Er(t)}get value(){return vl(this),this._value}set value(t){t=this._shallow?t:pe(t),br(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Er(t),dl(this))}}function Rh(e){return We(e)?e.value:e}var Lh={get:(e,t,r)=>Rh(Reflect.get(e,t,r)),set:(e,t,r,i)=>{var n=e[t];return We(n)&&!We(r)?(n.value=r,!0):Reflect.set(e,t,r,i)}};function pl(e){return rr(e)?e:new Proxy(e,Lh)}class Nh{constructor(t,r,i){this._setter=r,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new pa(t,()=>{this._dirty||(this._dirty=!0,dl(this))}),this.__v_isReadonly=i}get value(){var t=pe(this);return vl(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Q(e,t){var r,i,n=ae(e);n?(r=e,i=Je):(r=e.get,i=e.set);var a=new Nh(r,i,n||!i);return a}function kh(e,t,...r){var i=e.vnode.props||be,n=r,a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in i){var s="".concat(o==="modelValue"?"model":o,"Modifiers"),{number:l,trim:u}=i[s]||be;u?n=r.map(d=>d.trim()):l&&(n=r.map(Hv))}var v,h=i[v=Xn(t)]||i[v=Xn(mt(t))];!h&&a&&(h=i[v=Xn(Ve(t))]),h&&et(h,e,6,n);var _=i[v+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[v])return;e.emitted[v]=!0,et(_,e,6,n)}}function gl(e,t,r=!1){var i=t.emitsCache,n=i.get(e);if(n!==void 0)return n;var a=e.emits,o={},s=!1;if(!ae(e)){var l=u=>{var v=gl(u,t,!0);v&&(s=!0,fe(o,v))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(i.set(e,null),null):(oe(a)?a.forEach(u=>o[u]=null):fe(o,a),i.set(e,o),o)}function Ta(e,t){return!e||!hi(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Ve(t))||te(e,t))}var Qe=null,ml=null;function Ni(e){var t=Qe;return Qe=e,ml=e&&e.type.__scopeId||null,t}function Dh(e,t=Qe,r){if(!t||e._n)return e;var i=(...n)=>{i._d&&$l(-1);var a=Ni(t),o=e(...n);return Ni(a),i._d&&$l(1),o};return i._n=!0,i._c=!0,i._d=!0,i}function ly(){}function Ea(e){var{type:t,vnode:r,proxy:i,withProxy:n,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:v,renderCache:h,data:_,setupState:d,ctx:b,inheritAttrs:m}=e,p,c,w=Ni(e);try{if(r.shapeFlag&4){var f=n||i;p=ot(v.call(f,f,h,a,d,_,b)),c=l}else{var g=t;p=ot(g.length>1?g(a,{attrs:l,slots:s,emit:u}):g(a,null)),c=t.props?l:Bh(l)}}catch(C){Vi(C,e,1),p=M(Or)}var S=p;if(c&&m!==!1){var x=Object.keys(c),{shapeFlag:E}=S;x.length&&E&(1|6)&&(o&&x.some(Hn)&&(c=Fh(c,o)),S=Ir(S,c))}return r.dirs&&(S.dirs=S.dirs?S.dirs.concat(r.dirs):r.dirs),r.transition&&(S.transition=r.transition),p=S,Ni(w),p}var Bh=e=>{var t;for(var r in e)(r==="class"||r==="style"||hi(r))&&((t||(t={}))[r]=e[r]);return t},Fh=(e,t)=>{var r={};for(var i in e)(!Hn(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function $h(e,t,r){var{props:i,children:n,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return i?_l(i,o,u):!!o;if(l&8)for(var v=t.dynamicProps,h=0;he.__isSuspense;function Vh(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):Rp(e)}function Ne(e,t){if(ke){var r=ke.provides,i=ke.parent&&ke.parent.provides;i===r&&(r=ke.provides=Object.create(i)),r[e]=t}}function ge(e,t,r=!1){var i=ke||Qe;if(i){var n=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(n&&e in n)return n[e];if(arguments.length>1)return r&&ae(t)?t.call(i.proxy):t}}function jh(e){return ae(e)?{setup:e,name:e.name}:e}var Ca=e=>!!e.type.__asyncLoader,bl=e=>e.type.__isKeepAlive;function Oa(e,t){wl(e,"a",t)}function Hh(e,t){wl(e,"da",t)}function wl(e,t,r=ke){var i=e.__wdc||(e.__wdc=()=>{for(var a=r;a;){if(a.isDeactivated)return;a=a.parent}e()});if(ki(t,i,r),r)for(var n=r.parent;n&&n.parent;)bl(n.parent.vnode)&&Yh(i,t,r,n),n=n.parent}function Yh(e,t,r,i){var n=ki(t,e,i,!0);yt(()=>{Ss(i[t],n)},r)}function ki(e,t,r=ke,i=!1){if(r){var n=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(!r.isUnmounted){tr(),ir(r);var s=et(t,r,e,o);return $t(),Dt(),s}});return i?n.unshift(a):n.push(a),a}}var vt=e=>(t,r=ke)=>(!Ui||e==="sp")&&ki(e,t,r),yl=vt("bm"),Oe=vt("m"),zh=vt("bu"),qh=vt("u"),Ee=vt("bum"),yt=vt("um"),Xh=vt("sp"),Kh=vt("rtg"),Gh=vt("rtc");function Zh(e,t=ke){ki("ec",e,t)}var Ma=!0;function Jh(e){var t=Tl(e),r=e.proxy,i=e.ctx;Ma=!1,t.beforeCreate&&Sl(t.beforeCreate,e,"bc");var{data:n,computed:a,methods:o,watch:s,provide:l,inject:u,created:v,beforeMount:h,mounted:_,beforeUpdate:d,updated:b,activated:m,deactivated:p,beforeDestroy:c,beforeUnmount:w,destroyed:f,unmounted:g,render:S,renderTracked:x,renderTriggered:E,errorCaptured:C,serverPrefetch:L,expose:W,inheritAttrs:q,components:X,directives:ce,filters:A}=t,$=null;if(u&&Qh(u,i,$,e.appContext.config.unwrapInjectedRef),o)for(var ee in o){var ne=o[ee];ae(ne)&&(i[ee]=ne.bind(r))}if(n&&function(){var le=n.call(r,r);De(le)&&(e.data=Te(le))}(),Ma=!0,a){var H=function(le){var ve=a[le],Me=ae(ve)?ve.bind(r,r):ae(ve.get)?ve.get.bind(r,r):Je,Ce=!ae(ve)&&ae(ve.set)?ve.set.bind(r):Je,Ge=Q({get:Me,set:Ce});Object.defineProperty(i,le,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:At=>Ge.value=At})};for(var J in a)H(J)}if(s)for(var ie in s)xl(s[ie],i,r,ie);if(l){var we=ae(l)?l.call(r):l;Reflect.ownKeys(we).forEach(le=>{Ne(le,we[le])})}v&&Sl(v,e,"c");function Y(le,ve){oe(ve)?ve.forEach(Me=>le(Me.bind(r))):ve&&le(ve.bind(r))}if(Y(yl,h),Y(Oe,_),Y(zh,d),Y(qh,b),Y(Oa,m),Y(Hh,p),Y(Zh,C),Y(Gh,x),Y(Kh,E),Y(Ee,w),Y(yt,g),Y(Xh,L),oe(W))if(W.length){var re=e.exposed||(e.exposed={});W.forEach(le=>{Object.defineProperty(re,le,{get:()=>r[le],set:ve=>r[le]=ve})})}else e.exposed||(e.exposed={});S&&e.render===Je&&(e.render=S),q!=null&&(e.inheritAttrs=q),X&&(e.components=X),ce&&(e.directives=ce)}function Qh(e,t,r=Je,i=!1){oe(e)&&(e=Ia(e));var n=function(o){var s=e[o],l=void 0;De(s)?"default"in s?l=ge(s.from||o,s.default,!0):l=ge(s.from||o):l=ge(s),We(l)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[o]=l};for(var a in e)n(a)}function Sl(e,t,r){et(oe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function xl(e,t,r,i){var n=i.includes(".")?Jl(r,i):()=>r[i];if(ye(e)){var a=t[e];ae(a)&&U(n,a)}else if(ae(e))U(n,e.bind(r));else if(De(e))if(oe(e))e.forEach(s=>xl(s,t,r,i));else{var o=ae(e.handler)?e.handler.bind(r):t[e.handler];ae(o)&&U(n,o,e)}}function Tl(e){var t=e.type,{mixins:r,extends:i}=t,{mixins:n,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),l;return s?l=s:!n.length&&!r&&!i?l=t:(l={},n.length&&n.forEach(u=>Di(l,u,o,!0)),Di(l,t,o)),a.set(t,l),l}function Di(e,t,r,i=!1){var{mixins:n,extends:a}=t;a&&Di(e,a,r,!0),n&&n.forEach(l=>Di(e,l,r,!0));for(var o in t)if(!(i&&o==="expose")){var s=ep[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var ep={data:El,props:Bt,emits:Bt,methods:Bt,computed:Bt,beforeCreate:Fe,created:Fe,beforeMount:Fe,mounted:Fe,beforeUpdate:Fe,updated:Fe,beforeDestroy:Fe,beforeUnmount:Fe,destroyed:Fe,unmounted:Fe,activated:Fe,deactivated:Fe,errorCaptured:Fe,serverPrefetch:Fe,components:Bt,directives:Bt,watch:rp,provide:El,inject:tp};function El(e,t){return t?e?function(){return fe(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function tp(e,t){return Bt(Ia(e),Ia(t))}function Ia(e){if(oe(e)){for(var t={},r=0;r0)&&!(o&16)){if(o&8)for(var v=e.vnode.dynamicProps,h=0;h{l=!0;var[g,S]=Ol(f,t,!0);fe(o,g),S&&s.push(...S)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return i.set(e,gr),gr;if(oe(a))for(var v=0;v-1,m[1]=c<0||p-1||te(m,"default"))&&s.push(d)}}}var w=[o,s];return i.set(e,w),w}function Ml(e){return e[0]!=="$"}function Il(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Al(e,t){return Il(e)===Il(t)}function Pl(e,t){return oe(t)?t.findIndex(r=>Al(r,e)):ae(t)&&Al(t,e)?0:-1}var Rl=e=>e[0]==="_"||e==="$stable",Pa=e=>oe(e)?e.map(ot):[ot(e)],ap=(e,t,r)=>{var i=Dh((...n)=>Pa(t(...n)),r);return i._c=!1,i},Ll=(e,t,r)=>{var i=e._ctx;for(var n in e)if(!Rl(n)){var a=e[n];ae(a)?t[n]=ap(n,a,i):a!=null&&function(){var o=Pa(a);t[n]=()=>o}()}},Nl=(e,t)=>{var r=Pa(t);e.slots.default=()=>r},op=(e,t)=>{if(e.vnode.shapeFlag&32){var r=t._;r?(e.slots=pe(t),_i(t,"_",r)):Ll(t,e.slots={})}else e.slots={},t&&Nl(e,t);_i(e.slots,Fi,1)},sp=(e,t,r)=>{var{vnode:i,slots:n}=e,a=!0,o=be;if(i.shapeFlag&32){var s=t._;s?r&&s===1?a=!1:(fe(n,t),!r&&s===1&&delete n._):(a=!t.$stable,Ll(t,n)),o=t}else t&&(Nl(e,t),o={default:1});if(a)for(var l in n)!Rl(l)&&!(l in o)&&delete n[l]};function Cr(e,t){var r=Qe;if(r===null)return e;for(var i=r.proxy,n=e.dirs||(e.dirs=[]),a=0;a{if(y!==T){y&&!Mr(y,T)&&(P=Ge(y),re(y,R,F,!0),y=null),T.patchFlag===-2&&(k=!1,T.dynamicChildren=null);var{type:N,ref:Z,shapeFlag:G}=T;switch(N){case La:c(y,T,I,P);break;case Or:w(y,T,I,P);break;case Na:y==null&&f(T,I,P,V);break;case at:ce(y,T,I,P,R,F,V,D,k);break;default:G&1?x(y,T,I,P,R,F,V,D,k):G&6?A(y,T,I,P,R,F,V,D,k):(G&64||G&128)&&N.process(y,T,I,P,R,F,V,D,k,Ie)}Z!=null&&R&&Ra(Z,y&&y.ref,F,T||y,!T)}},c=(y,T,I,P)=>{if(y==null)i(T.el=s(T.children),I,P);else{var R=T.el=y.el;T.children!==y.children&&u(R,T.children)}},w=(y,T,I,P)=>{y==null?i(T.el=l(T.children||""),I,P):T.el=y.el},f=(y,T,I,P)=>{[y.el,y.anchor]=m(y.children,T,I,P)},g=({el:y,anchor:T},I,P)=>{for(var R;y&&y!==T;)R=_(y),i(y,I,P),y=R;i(T,I,P)},S=({el:y,anchor:T})=>{for(var I;y&&y!==T;)I=_(y),n(y),y=I;n(T)},x=(y,T,I,P,R,F,V,D,k)=>{V=V||T.type==="svg",y==null?E(T,I,P,R,F,V,D,k):W(y,T,R,F,V,D,k)},E=(y,T,I,P,R,F,V,D)=>{var k,N,{type:Z,props:G,shapeFlag:K,transition:ue,patchFlag:Re,dirs:Se}=y;if(y.el&&b!==void 0&&Re===-1)k=y.el=b(y.el);else{if(k=y.el=o(y.type,F,G&&G.is,G),K&8?v(k,y.children):K&16&&L(y.children,k,null,P,R,F&&Z!=="foreignObject",V,D),Se&&Ft(y,null,P,"created"),G){for(var O in G)O!=="value"&&!pi(O)&&a(k,O,null,G[O],F,y.children,P,R,Ce);"value"in G&&a(k,"value",null,G.value),(N=G.onVnodeBeforeMount)&&nt(N,P,y)}C(k,y,y.scopeId,V,P)}Object.defineProperty(k,"__vueParentComponent",{value:P,enumerable:!1}),Se&&Ft(y,null,P,"beforeMount");var j=(!R||R&&!R.pendingBranch)&&ue&&!ue.persisted;j&&ue.beforeEnter(k),i(k,T,I),((N=G&&G.onVnodeMounted)||j||Se)&&$e(()=>{N&&nt(N,P,y),j&&ue.enter(k),Se&&Ft(y,null,P,"mounted")},R)},C=(y,T,I,P,R)=>{if(I&&d(y,I),P)for(var F=0;F{for(var N=k;N{var D=T.el=y.el,{patchFlag:k,dynamicChildren:N,dirs:Z}=T;k|=y.patchFlag&16;var G=y.props||be,K=T.props||be,ue;(ue=K.onVnodeBeforeUpdate)&&nt(ue,I,T,y),Z&&Ft(T,y,I,"beforeUpdate");var Re=R&&T.type!=="foreignObject";if(N?q(y.dynamicChildren,N,D,I,P,Re,F):V||J(y,T,D,null,I,P,Re,F,!1),k>0){if(k&16)X(D,T,G,K,I,P,R);else if(k&2&&G.class!==K.class&&a(D,"class",null,K.class,R),k&4&&a(D,"style",G.style,K.style,R),k&8)for(var Se=T.dynamicProps,O=0;O{ue&&nt(ue,I,T,y),Z&&Ft(T,y,I,"updated")},P)},q=(y,T,I,P,R,F,V)=>{for(var D=0;D{if(I!==P){for(var D in P)if(!pi(D)){var k=P[D],N=I[D];k!==N&&D!=="value"&&a(y,D,N,k,V,T.children,R,F,Ce)}if(I!==be)for(var Z in I)!pi(Z)&&!(Z in P)&&a(y,Z,I[Z],null,V,T.children,R,F,Ce);"value"in P&&a(y,"value",I.value,P.value)}},ce=(y,T,I,P,R,F,V,D,k)=>{var N=T.el=y?y.el:s(""),Z=T.anchor=y?y.anchor:s(""),{patchFlag:G,dynamicChildren:K,slotScopeIds:ue}=T;ue&&(D=D?D.concat(ue):ue),y==null?(i(N,I,P),i(Z,I,P),L(T.children,I,Z,R,F,V,D,k)):G>0&&G&64&&K&&y.dynamicChildren?(q(y.dynamicChildren,K,I,R,F,V,D),(T.key!=null||R&&T===R.subTree)&&Dl(y,T,!0)):J(y,T,I,Z,R,F,V,D,k)},A=(y,T,I,P,R,F,V,D,k)=>{T.slotScopeIds=D,y==null?T.shapeFlag&512?R.ctx.activate(T,I,P,V,k):$(T,I,P,R,F,V,k):ee(y,T,k)},$=(y,T,I,P,R,F,V)=>{var D=y.component=Sp(y,P,R);if(bl(y)&&(D.ctx.renderer=Ie),xp(D),D.asyncDep){if(R&&R.registerDep(D,ne),!y.el){var k=D.subTree=M(Or);w(null,k,T,I)}return}ne(D,y,T,I,R,F,V)},ee=(y,T,I)=>{var P=T.component=y.component;if($h(y,T,I))if(P.asyncDep&&!P.asyncResolved){H(P,T,I);return}else P.next=T,Ap(P.update),P.update();else T.component=y.component,T.el=y.el,P.vnode=T},ne=(y,T,I,P,R,F,V)=>{var D=()=>{if(y.isMounted){var{next:se,bu:Le,u:Ue,parent:Ae,vnode:tt}=y,Pt=se,ut;k.allowRecurse=!1,se?(se.el=tt.el,H(y,se,V)):se=tt,Le&&Kn(Le),(ut=se.props&&se.props.onVnodeBeforeUpdate)&&nt(ut,Ae,se,tt),k.allowRecurse=!0;var Xt=Ea(y),pt=y.subTree;y.subTree=Xt,p(pt,Xt,h(pt.el),Ge(pt),y,R,F),se.el=Xt.el,Pt===null&&Wh(y,Xt.el),Ue&&$e(Ue,R),(ut=se.props&&se.props.onVnodeUpdated)&&$e(()=>nt(ut,Ae,se,tt),R)}else{var Z,{el:G,props:K}=T,{bm:ue,m:Re,parent:Se}=y,O=Ca(T);if(k.allowRecurse=!1,ue&&Kn(ue),!O&&(Z=K&&K.onVnodeBeforeMount)&&nt(Z,Se,T),k.allowRecurse=!0,G&&Gr){var j=()=>{y.subTree=Ea(y),Gr(G,y.subTree,y,R,null)};O?T.type.__asyncLoader().then(()=>!y.isUnmounted&&j()):j()}else{var z=y.subTree=Ea(y);p(null,z,I,P,y,R,F),T.el=z.el}if(Re&&$e(Re,R),!O&&(Z=K&&K.onVnodeMounted)){var de=T;$e(()=>nt(Z,Se,de),R)}T.shapeFlag&256&&y.a&&$e(y.a,R),y.isMounted=!0,T=I=P=null}},k=new pa(D,()=>zl(y.update),y.scope),N=y.update=k.run.bind(k);N.id=y.uid,k.allowRecurse=N.allowRecurse=!0,N()},H=(y,T,I)=>{T.component=y;var P=y.vnode.props;y.vnode=T,y.next=null,np(y,T.props,P,I),sp(y,T.children,I),tr(),Ua(void 0,y.update),Dt()},J=(y,T,I,P,R,F,V,D,k=!1)=>{var N=y&&y.children,Z=y?y.shapeFlag:0,G=T.children,{patchFlag:K,shapeFlag:ue}=T;if(K>0){if(K&128){we(N,G,I,P,R,F,V,D,k);return}else if(K&256){ie(N,G,I,P,R,F,V,D,k);return}}ue&8?(Z&16&&Ce(N,R,F),G!==N&&v(I,G)):Z&16?ue&16?we(N,G,I,P,R,F,V,D,k):Ce(N,R,F,!0):(Z&8&&v(I,""),ue&16&&L(G,I,P,R,F,V,D,k))},ie=(y,T,I,P,R,F,V,D,k)=>{y=y||gr,T=T||gr;var N=y.length,Z=T.length,G=Math.min(N,Z),K;for(K=0;KZ?Ce(y,R,F,!0,!1,G):L(T,I,P,R,F,V,D,k,G)},we=(y,T,I,P,R,F,V,D,k)=>{for(var N=0,Z=T.length,G=y.length-1,K=Z-1;N<=G&&N<=K;){var ue=y[N],Re=T[N]=k?St(T[N]):ot(T[N]);if(Mr(ue,Re))p(ue,Re,I,null,R,F,V,D,k);else break;N++}for(;N<=G&&N<=K;){var Se=y[G],O=T[K]=k?St(T[K]):ot(T[K]);if(Mr(Se,O))p(Se,O,I,null,R,F,V,D,k);else break;G--,K--}if(N>G){if(N<=K)for(var j=K+1,z=jK)for(;N<=G;)re(y[N],R,F,!0),N++;else{var de=N,se=N,Le=new Map;for(N=se;N<=K;N++){var Ue=T[N]=k?St(T[N]):ot(T[N]);Ue.key!=null&&Le.set(Ue.key,N)}var Ae,tt=0,Pt=K-se+1,ut=!1,Xt=0,pt=new Array(Pt);for(N=0;N=Pt){re(dr,R,F,!0);continue}var Kt=void 0;if(dr.key!=null)Kt=Le.get(dr.key);else for(Ae=se;Ae<=K;Ae++)if(pt[Ae-se]===0&&Mr(dr,T[Ae])){Kt=Ae;break}Kt===void 0?re(dr,R,F,!0):(pt[Kt-se]=N+1,Kt>=Xt?Xt=Kt:ut=!0,p(dr,T[Kt],I,null,R,F,V,D,k),tt++)}var Qf=ut?vp(pt):gr;for(Ae=Qf.length-1,N=Pt-1;N>=0;N--){var No=se+N,ec=T[No],tc=No+1{var{el:F,type:V,transition:D,children:k,shapeFlag:N}=y;if(N&6){Y(y.component.subTree,T,I,P);return}if(N&128){y.suspense.move(T,I,P);return}if(N&64){V.move(y,T,I,Ie);return}if(V===at){i(F,T,I);for(var Z=0;ZD.enter(F),R);else{var{leave:K,delayLeave:ue,afterLeave:Re}=D,Se=()=>i(F,T,I),O=()=>{K(F,()=>{Se(),Re&&Re()})};ue?ue(F,Se,O):O()}else i(F,T,I)},re=(y,T,I,P=!1,R=!1)=>{var{type:F,props:V,ref:D,children:k,dynamicChildren:N,shapeFlag:Z,patchFlag:G,dirs:K}=y;if(D!=null&&Ra(D,null,I,y,!0),Z&256){T.ctx.deactivate(y);return}var ue=Z&1&&K,Re=!Ca(y),Se;if(Re&&(Se=V&&V.onVnodeBeforeUnmount)&&nt(Se,T,y),Z&6)Me(y.component,I,P);else{if(Z&128){y.suspense.unmount(I,P);return}ue&&Ft(y,null,T,"beforeUnmount"),Z&64?y.type.remove(y,T,I,R,Ie,P):N&&(F!==at||G>0&&G&64)?Ce(N,T,I,!1,!0):(F===at&&G&(128|256)||!R&&Z&16)&&Ce(k,T,I),P&&le(y)}(Re&&(Se=V&&V.onVnodeUnmounted)||ue)&&$e(()=>{Se&&nt(Se,T,y),ue&&Ft(y,null,T,"unmounted")},I)},le=y=>{var{type:T,el:I,anchor:P,transition:R}=y;if(T===at){ve(I,P);return}if(T===Na){S(y);return}var F=()=>{n(I),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(y.shapeFlag&1&&R&&!R.persisted){var{leave:V,delayLeave:D}=R,k=()=>V(I,F);D?D(y.el,F,k):k()}else F()},ve=(y,T)=>{for(var I;y!==T;)I=_(y),n(y),y=I;n(T)},Me=(y,T,I)=>{var{bum:P,scope:R,update:F,subTree:V,um:D}=y;P&&Kn(P),R.stop(),F&&(F.active=!1,re(V,y,T,I)),D&&$e(D,T),$e(()=>{y.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},Ce=(y,T,I,P=!1,R=!1,F=0)=>{for(var V=F;Vy.shapeFlag&6?Ge(y.component.subTree):y.shapeFlag&128?y.suspense.next():_(y.anchor||y.el),At=(y,T,I)=>{if(y==null)T._vnode&&re(T._vnode,null,null,!0);else{var P=T.__vueParent;p(T._vnode||null,y,T,null,P,null,I)}T._vnode=y},Ie={p,um:re,m:Y,r:le,mt:$,mc:L,pc:J,pbc:q,n:Ge,o:e},Kr,Gr;return t&&([Kr,Gr]=t(Ie)),{render:At,hydrate:Kr,createApp:up(At,Kr)}}function Ra(e,t,r,i,n=!1){if(oe(e)){e.forEach((b,m)=>Ra(b,t&&(oe(t)?t[m]:t),r,i,n));return}if(!(Ca(i)&&!n)){var a=i.shapeFlag&4?Ba(i.component)||i.component.proxy:i.el,o=n?null:a,{i:s,r:l}=e,u=t&&t.r,v=s.refs===be?s.refs={}:s.refs,h=s.setupState;if(u!=null&&u!==l&&(ye(u)?(v[u]=null,te(h,u)&&(h[u]=null)):We(u)&&(u.value=null)),ye(l)){var _=()=>{v[l]=o,te(h,l)&&(h[l]=o)};o?(_.id=-1,$e(_,r)):_()}else if(We(l)){var d=()=>{l.value=o};o?(d.id=-1,$e(d,r)):d()}else ae(l)&&Tt(l,s,12,[o,v])}}function nt(e,t,r,i=null){et(e,t,7,[r,i])}function Dl(e,t,r=!1){var i=e.children,n=t.children;if(oe(i)&&oe(n))for(var a=0;a>1,e[r[s]]0&&(t[i]=r[a-1]),r[a]=i)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}var dp=e=>e.__isTeleport,hp=Symbol(),at=Symbol(void 0),La=Symbol(void 0),Or=Symbol(void 0),Na=Symbol(void 0),Bl=null,Fl=1;function $l(e){Fl+=e}function Bi(e){return e?e.__v_isVNode===!0:!1}function Mr(e,t){return e.type===t.type&&e.key===t.key}var Fi="__vInternal",Wl=({key:e})=>e!=null?e:null,$i=({ref:e})=>e!=null?ye(e)||We(e)||ae(e)?{i:Qe,r:e}:e:null;function pp(e,t=null,r=null,i=0,n=null,a=e===at?0:1,o=!1,s=!1){var l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wl(t),ref:t&&$i(t),scopeId:ml,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null};return s?(ka(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=ye(r)?8:16),Fl>0&&!o&&Bl&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Bl.push(l),l}var M=gp;function gp(e,t=null,r=null,i=0,n=null,a=!1){if((!e||e===hp)&&(e=Or),Bi(e)){var o=Ir(e,t,!0);return r&&ka(o,r),o}if(Op(e)&&(e=e.__vccOpts),t){t=mp(t);var{class:s,style:l}=t;s&&!ye(s)&&(t.class=jn(s)),De(l)&&(cl(l)&&!oe(l)&&(l=fe({},l)),t.style=Vn(l))}var u=ye(e)?1:Uh(e)?128:dp(e)?64:De(e)?4:ae(e)?2:0;return pp(e,t,r,i,n,u,a,!0)}function mp(e){return e?cl(e)||Fi in e?fe({},e):e:null}function Ir(e,t,r=!1){var{props:i,ref:n,patchFlag:a,children:o}=e,s=t?Ye(i||{},t):i,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Wl(s),ref:t&&t.ref?r&&n?oe(n)?n.concat($i(t)):[n,$i(t)]:$i(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==at?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ir(e.ssContent),ssFallback:e.ssFallback&&Ir(e.ssFallback),el:e.el,anchor:e.anchor};return l}function _p(e=" ",t=0){return M(La,null,e,t)}function ot(e){return e==null||typeof e=="boolean"?M(Or):oe(e)?M(at,null,e.slice()):typeof e=="object"?St(e):M(La,null,String(e))}function St(e){return e.el===null||e.memo?e:Ir(e)}function ka(e,t){var r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(oe(t))r=16;else if(typeof t=="object")if(i&(1|64)){var n=t.default;n&&(n._c&&(n._d=!1),ka(e,n()),n._c&&(n._d=!0));return}else{r=32;var a=t._;!a&&!(Fi in t)?t._ctx=Qe:a===3&&Qe&&(Qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:Qe},r=32):(t=String(t),i&64?(r=16,t=[_p(t)]):r=8);e.children=t,e.shapeFlag|=r}function Ye(...e){for(var t={},r=0;re?Ul(e)?Ba(e)||e.proxy:Da(e.parent):null,Wi=fe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Da(e.parent),$root:e=>Da(e.root),$emit:e=>e.emit,$options:e=>Tl(e),$forceUpdate:e=>()=>zl(e.update),$nextTick:e=>or.bind(e.proxy),$watch:e=>Np.bind(e)}),bp={get({_:e},t){var{ctx:r,setupState:i,data:n,props:a,accessCache:o,type:s,appContext:l}=e,u;if(t[0]!=="$"){var v=o[t];if(v!==void 0)switch(v){case 0:return i[t];case 1:return n[t];case 3:return r[t];case 2:return a[t]}else{if(i!==be&&te(i,t))return o[t]=0,i[t];if(n!==be&&te(n,t))return o[t]=1,n[t];if((u=e.propsOptions[0])&&te(u,t))return o[t]=2,a[t];if(r!==be&&te(r,t))return o[t]=3,r[t];Ma&&(o[t]=4)}}var h=Wi[t],_,d;if(h)return t==="$attrs"&&He(e,"get",t),h(e);if((_=s.__cssModules)&&(_=_[t]))return _;if(r!==be&&te(r,t))return o[t]=3,r[t];if(d=l.config.globalProperties,te(d,t))return d[t]},set({_:e},t,r){var{data:i,setupState:n,ctx:a}=e;if(n!==be&&te(n,t))n[t]=r;else if(i!==be&&te(i,t))i[t]=r;else if(te(e.props,t))return!1;return t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:n,propsOptions:a}},o){var s;return r[o]!==void 0||e!==be&&te(e,o)||t!==be&&te(t,o)||(s=a[0])&&te(s,o)||te(i,o)||te(Wi,o)||te(n.config.globalProperties,o)}},wp=kl(),yp=0;function Sp(e,t,r){var i=e.type,n=(t?t.appContext:e.appContext)||wp,a={uid:yp++,vnode:e,type:i,parent:t,appContext:n,root:null,next:null,subTree:null,update:null,scope:new rh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ol(i,n),emitsOptions:gl(i,n),emit:null,emitted:null,propsDefaults:be,inheritAttrs:i.inheritAttrs,ctx:be,data:be,props:be,attrs:be,slots:be,refs:be,setupState:be,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=kh.bind(null,a),e.ce&&e.ce(a),a}var ke=null,xt=()=>ke||Qe,ir=e=>{ke=e,e.scope.on()},$t=()=>{ke&&ke.scope.off(),ke=null};function Ul(e){return e.vnode.shapeFlag&4}var Ui=!1;function xp(e,t=!1){Ui=t;var{props:r,children:i}=e.vnode,n=Ul(e);ip(e,r,n,t),op(e,i);var a=n?Tp(e,t):void 0;return Ui=!1,a}function Tp(e,t){var r=e.type;e.accessCache=Object.create(null),e.proxy=Li(new Proxy(e.ctx,bp));var{setup:i}=r;if(i){var n=e.setupContext=i.length>1?Cp(e):null;ir(e),tr();var a=Tt(i,e,0,[e.props,n]);if(Dt(),$t(),xs(a)){if(a.then($t,$t),t)return a.then(o=>{Vl(e,o,t)}).catch(o=>{Vi(o,e,0)});e.asyncDep=a}else Vl(e,a,t)}else Hl(e,t)}function Vl(e,t,r){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)&&(e.setupState=pl(t)),Hl(e,r)}var jl;function Hl(e,t,r){var i=e.type;if(!e.render){if(!t&&jl&&!i.render){var n=i.template;if(n){var{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=i,u=fe(fe({isCustomElement:a,delimiters:s},o),l);i.render=jl(n,u)}}e.render=i.render||Je}ir(e),tr(),Jh(e),Dt(),$t()}function Ep(e){return new Proxy(e.attrs,{get(t,r){return He(e,"get","$attrs"),t[r]}})}function Cp(e){var t=i=>{e.exposed=i||{}},r;return{get attrs(){return r||(r=Ep(e))},slots:e.slots,emit:e.emit,expose:t}}function Ba(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(pl(Li(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Wi)return Wi[r](e)}}))}function Op(e){return ae(e)&&"__vccOpts"in e}function Tt(e,t,r,i){var n;try{n=i?e(...i):e()}catch(a){Vi(a,t,r)}return n}function et(e,t,r,i){if(ae(e)){var n=Tt(e,t,r,i);return n&&xs(n)&&n.catch(s=>{Vi(s,t,r)}),n}for(var a=[],o=0;o>>1,n=Lr(ze[i]);ndt&&ze.splice(t,1)}function Xl(e,t,r,i){oe(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?i+1:i))&&r.push(e),ql()}function Pp(e){Xl(e,Pr,Ar,nr)}function Rp(e){Xl(e,Et,Rr,ar)}function Ua(e,t=null){if(Ar.length){for(Wa=t,Pr=[...new Set(Ar)],Ar.length=0,nr=0;nrLr(r)-Lr(i)),ar=0;are.id==null?1/0:e.id;function Gl(e){Fa=!1,ji=!0,Ua(e),ze.sort((i,n)=>Lr(i)-Lr(n));var t=Je;try{for(dt=0;dte.value,u=!!e._shallow):rr(e)?(l=()=>e,i=!0):oe(e)?(v=!0,u=e.some(rr),l=()=>e.map(w=>{if(We(w))return w.value;if(rr(w))return Wt(w);if(ae(w))return Tt(w,s,2)})):ae(e)?t?l=()=>Tt(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return _&&_(),et(e,s,3,[d])}:l=Je,t&&i){var h=l;l=()=>Wt(h())}var _,d=w=>{_=c.onStop=()=>{Tt(w,s,4)}};if(Ui)return d=Je,t?r&&et(t,s,3,[l(),v?[]:void 0,d]):l(),Je;var b=v?[]:Zl,m=()=>{if(!!c.active)if(t){var w=c.run();(i||u||(v?w.some((f,g)=>br(f,b[g])):br(w,b)))&&(_&&_(),et(t,s,3,[w,b===Zl?void 0:b,d]),b=w)}else c.run()};m.allowRecurse=!!t;var p;n==="sync"?p=m:n==="post"?p=()=>$e(m,s&&s.suspense):p=()=>{!s||s.isMounted?Pp(m):m()};var c=new pa(l,p);return t?r?m():b=c.run():n==="post"?$e(c.run.bind(c),s&&s.suspense):c.run(),()=>{c.stop(),s&&s.scope&&Ss(s.scope.effects,c)}}function Np(e,t,r){var i=this.proxy,n=ye(e)?e.includes(".")?Jl(i,e):()=>i[e]:e.bind(i,i),a;ae(t)?a=t:(a=t.handler,r=t);var o=ke;ir(this);var s=Va(n,a.bind(i),r);return o?ir(o):$t(),s}function Jl(e,t){var r=t.split(".");return()=>{for(var i=e,n=0;n{Wt(n,t)});else if(rt(e))for(var i in e)Wt(e[i],t);return e}function kp(e,t,r){var i=arguments.length;return i===2?De(t)&&!oe(t)?Bi(t)?M(e,null,[t]):M(e,t):M(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Bi(r)&&(r=[r]),M(e,t,r))}var Dp="3.2.20",Bp="http://www.w3.org/2000/svg",sr=typeof document!="undefined"?document:null,Ql=new Map,Fp={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{var n=t?sr.createElementNS(Bp,e):sr.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>sr.createTextNode(e),createComment:e=>sr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,i){var n=r?r.previousSibling:t.lastChild,a=Ql.get(e);if(!a){var o=sr.createElement("template");if(o.innerHTML=i?"".concat(e,""):e,a=o.content,i){for(var s=a.firstChild;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}Ql.set(e,a)}return t.insertBefore(a.cloneNode(!0),r),[n?n.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function $p(e,t,r){var i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function Wp(e,t,r){var i=e.style,n=i.display;if(!r)e.removeAttribute("style");else if(ye(r))t!==r&&(i.cssText=r);else{for(var a in r)ja(i,a,r[a]);if(t&&!ye(t))for(var o in t)r[o]==null&&ja(i,o,"")}"_vod"in e&&(i.display=n)}var eu=/\s*!important$/;function ja(e,t,r){if(oe(r))r.forEach(n=>ja(e,t,n));else if(r=jp(r),t.startsWith("--"))e.setProperty(t,r);else{var i=Up(e,t);eu.test(r)?e.setProperty(Ve(i),r.replace(eu,""),"important"):e[i]=r}}var tu=["Webkit","Moz","ms"],Ha={};function Up(e,t){var r=Ha[t];if(r)return r;var i=mt(t);if(i!=="filter"&&i in e)return Ha[t]=i;i=mi(i);for(var n=0;ntypeof rpx2px!="function"?e:ye(e)?e.replace(Vp,(t,r)=>rpx2px(r)+"px"):e,ru="http://www.w3.org/1999/xlink";function Hp(e,t,r,i,n){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(ru,t.slice(6,t.length)):e.setAttributeNS(ru,t,r);else{var a=Rv(t);r==null||a&&!ws(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function Yp(e,t,r,i,n,a,o){if(t==="innerHTML"||t==="textContent"){i&&o(i,n,a),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"){e._value=r;var s=r==null?"":r;e.value!==s&&(e.value=s),r==null&&e.removeAttribute(t);return}if(r===""||r==null){var l=typeof e[t];if(l==="boolean"){e[t]=ws(r);return}else if(r==null&&l==="string"){e[t]="",e.removeAttribute(t);return}else if(l==="number"){try{e[t]=0}catch(u){}e.removeAttribute(t);return}}try{e[t]=r}catch(u){}}var Hi=Date.now,iu=!1;if(typeof window!="undefined"){Hi()>document.createEvent("Event").timeStamp&&(Hi=()=>performance.now());var nu=navigator.userAgent.match(/firefox\/(\d+)/i);iu=!!(nu&&Number(nu[1])<=53)}var Ya=0,zp=Promise.resolve(),qp=()=>{Ya=0},Xp=()=>Ya||(zp.then(qp),Ya=Hi());function Kp(e,t,r,i){e.addEventListener(t,r,i)}function Gp(e,t,r,i){e.removeEventListener(t,r,i)}function Zp(e,t,r,i,n=null){var a=e._vei||(e._vei={}),o=a[t];if(i&&o)o.value=i;else{var[s,l]=Jp(t);if(i){var u=a[t]=Qp(i,n);Kp(e,s,u,l)}else o&&(Gp(e,s,o,l),a[t]=void 0)}}var au=/(?:Once|Passive|Capture)$/;function Jp(e){var t;if(au.test(e)){t={};for(var r;r=e.match(au);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Ve(e.slice(2)),t]}function Qp(e,t){var r=i=>{var n=i.timeStamp||Hi();(iu||n>=r.attached-1)&&et(eg(i,r.value),t,5,[i])};return r.value=e,r.attached=Xp(),r}function eg(e,t){if(oe(t)){var r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>n=>!n._stopped&&i(n))}else return t}var ou=/^on[a-z]/,tg=(e,t,r,i,n=!1,a,o,s,l)=>{t==="class"?$p(e,i,n):t==="style"?Wp(e,r,i):hi(t)?Hn(t)||Zp(e,t,r,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):rg(e,t,i,n))?Yp(e,t,i,a,o,s,l):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Hp(e,t,i,n))};function rg(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&ou.test(t)&&ae(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ou.test(t)&&ye(r)?!1:t in e}var ig=["ctrl","shift","alt","meta"],ng={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ig.some(r=>e["".concat(r,"Key")]&&!t.includes(r))},za=(e,t)=>(r,...i)=>{for(var n=0;n{kr(e,!1)}):kr(e,t))},beforeUnmount(e,{value:t}){kr(e,t)}};function kr(e,t){e.style.display=t?e._vod:"none"}var ag=fe({patchProp:tg},Fp),su;function og(){return su||(su=fp(ag))}var lu=(...e)=>{var t=og().createApp(...e),{mount:r}=t;return t.mount=i=>{var n=sg(i);if(!!n){var a=t._component;!ae(a)&&!a.render&&!a.template&&(a.template=n.innerHTML),n.innerHTML="";var o=r(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o}},t};function sg(e){if(ye(e)){var t=document.querySelector(e);return t}return e}var uu=["top","left","right","bottom"],qa,Yi={},Ze;function Xa(){return!("CSS"in window)||typeof CSS.supports!="function"?Ze="":CSS.supports("top: env(safe-area-inset-top)")?Ze="env":CSS.supports("top: constant(safe-area-inset-top)")?Ze="constant":Ze="",Ze}function fu(){if(Ze=typeof Ze=="string"?Ze:Xa(),!Ze){uu.forEach(function(s){Yi[s]=0});return}function e(s,l){var u=s.style;Object.keys(l).forEach(function(v){var h=l[v];u[v]=h})}var t=[];function r(s){s?t.push(s):t.forEach(function(l){l()})}var i=!1;try{var n=Object.defineProperty({},"passive",{get:function(){i={passive:!0}}});window.addEventListener("test",null,n)}catch(s){}function a(s,l){var u=document.createElement("div"),v=document.createElement("div"),h=document.createElement("div"),_=document.createElement("div"),d=100,b=1e4,m={position:"absolute",width:d+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Ze+"(safe-area-inset-"+l+")"};e(u,m),e(v,m),e(h,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(_,{transition:"0s",animation:"none",width:"250%",height:"250%"}),u.appendChild(h),v.appendChild(_),s.appendChild(u),s.appendChild(v),r(function(){u.scrollTop=v.scrollTop=b;var c=u.scrollTop,w=v.scrollTop;function f(){this.scrollTop!==(this===u?c:w)&&(u.scrollTop=v.scrollTop=b,c=u.scrollTop,w=v.scrollTop,lg(l))}u.addEventListener("scroll",f,i),v.addEventListener("scroll",f,i)});var p=getComputedStyle(u);Object.defineProperty(Yi,l,{configurable:!0,get:function(){return parseFloat(p.paddingBottom)}})}var o=document.createElement("div");e(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),uu.forEach(function(s){a(o,s)}),document.body.appendChild(o),r(),qa=!0}function zi(e){return qa||fu(),Yi[e]}var qi=[];function lg(e){qi.length||setTimeout(function(){var t={};qi.forEach(function(r){t[r]=Yi[r]}),qi.length=0,Xi.forEach(function(r){r(t)})},0),qi.push(e)}var Xi=[];function ug(e){!Xa()||(qa||fu(),typeof e=="function"&&Xi.push(e))}function fg(e){var t=Xi.indexOf(e);t>=0&&Xi.splice(t,1)}var cg={get support(){return(typeof Ze=="string"?Ze:Xa()).length!=0},get top(){return zi("top")},get left(){return zi("left")},get right(){return zi("right")},get bottom(){return zi("bottom")},onChange:ug,offChange:fg},Ki=cg,vg=za(()=>{},["prevent"]);function Ka(){var e=document.documentElement.style,t=parseInt(e.getPropertyValue("--window-top"));return t?t+Ki.top:0}function dg(){var e=document.documentElement.style,t=Ka(),r=parseInt(e.getPropertyValue("--window-bottom")),i=parseInt(e.getPropertyValue("--window-left")),n=parseInt(e.getPropertyValue("--window-right"));return{top:t,bottom:r?r+Ki.bottom:0,left:i?i+Ki.left:0,right:n?n+Ki.right:0}}function hg(e){var t=document.documentElement.style;Object.keys(e).forEach(r=>{t.setProperty(r,e[r])})}function Gi(e){return Symbol(e)}function cu(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function Ut(e,t=!1){if(t)return pg(e);if(typeof e=="string"){var r=parseInt(e)||0;return cu(e)?uni.upx2px(r):r}return e}function pg(e){return cu(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,r)=>uni.upx2px(parseFloat(r))+"px"):e}var gg="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",mg="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",_g="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",bg="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",wg="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",Zi="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",yg="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",Sg="M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",xg="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function Ji(e,t="#000",r=27){return M("svg",{width:r,height:r,viewBox:"0 0 32 32"},[M("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Qi(){return Ct()}function Tg(){return window.__PAGE_INFO__}function Ct(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function Eg(e){e.preventDefault()}var vu,du=0;function Cg({onPageScroll:e,onReachBottom:t,onReachBottomDistance:r}){var i=!1,n=!1,a=!0,o=()=>{var{scrollHeight:l}=document.documentElement,u=window.innerHeight,v=window.scrollY,h=v>0&&l>u&&v+u+r>=l,_=Math.abs(l-du)>r;return h&&(!n||_)?(du=l,n=!0,!0):(!h&&n&&(n=!1),!1)},s=()=>{e&&e(window.pageYOffset);function l(){if(o())return t&&t(),a=!1,setTimeout(function(){a=!0},350),!0}t&&a&&(l()||(vu=setTimeout(l,300))),i=!1};return function(){clearTimeout(vu),i||requestAnimationFrame(s),i=!0}}function Ga(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return Ga(e,t.substr(2));for(var r=t.split("/"),i=r.length,n=0;n0?e.split("/"):[];return a.splice(a.length-n-1,n+1),"/"+a.concat(r).join("/")}class Og{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=t.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!(!this.$el||!t)){var r=hu(this.$el.querySelector(t));if(!!r)return Za(r,!1)}}selectAllComponents(t){if(!this.$el||!t)return[];for(var r=[],i=this.$el.querySelectorAll(t),n=0;n-1&&r.splice(i,1)}var n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return n.indexOf(t)===-1&&(n.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t,r={}){var i=this.$vm[t];ae(i)?i(JSON.parse(JSON.stringify(r))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(yd,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:r})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t,r={}){return this.$vm.$emit(t,r),this}getComputedStyle(t){if(this.$el){var r=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((i,n)=>(i[n]=r[n],i),{}):r}return{}}setTimeout(t,r){return window.setTimeout(t,r)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Za(e,t=!0){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Og(e)),e.$el.__wxsComponentDescriptor}function en(e,t){return Za(e,t)}function hu(e){if(!!e)return Dr(e)}function Dr(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var{__wxsStyle:t,__wxsAddClass:r,__wxsRemoveClass:i,__wxsStyleChanged:n,__wxsClassChanged:a}=e,o,s;n&&(e.__wxsStyleChanged=!1,t&&(s=()=>{Object.keys(t).forEach(l=>{e.style[l]=t[l]})})),a&&(e.__wxsClassChanged=!1,o=()=>{i&&i.forEach(l=>{e.classList.remove(l)}),r&&r.forEach(l=>{e.classList.add(l)})}),requestAnimationFrame(()=>{o&&o(),s&&s()})}})}var Mg=e=>e.type==="click";function pu(e,t,r){var{currentTarget:i}=e;if(!(e instanceof Event)||!(i instanceof HTMLElement))return[e];if(i.tagName.indexOf("UNI-")!==0)return[e];var n=gu(e);if(Mg(e))Ag(n,e);else if(e instanceof TouchEvent){var a=Ka();n.touches=mu(e.touches,a),n.changedTouches=mu(e.changedTouches,a)}return[n]}function Ig(e){for(;e&&e.tagName.indexOf("UNI-")!==0;)e=e.parentElement;return e}function gu(e){var{type:t,timeStamp:r,target:i,currentTarget:n}=e,a={type:t,timeStamp:r,target:ea(Ig(i)),detail:{},currentTarget:ea(n)};return e._stopped&&(a._stopped=!0),e.type.startsWith("touch")&&(a.touches=e.touches,a.changedTouches=e.changedTouches),a}function Ag(e,t){var{x:r,y:i}=t,n=Ka();e.detail={x:r,y:i-n},e.touches=e.changedTouches=[Pg(t)]}function Pg(e){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}function mu(e,t){for(var r=[],i=0;i{var a=Ug(e,n,r,i);if(a)throw new Error(a);return t.apply(null,n)}}function jg(e,t,r,i){return Vg(e,t,void 0,i)}function Hg(){if(typeof __SYSTEM_INFO__!="undefined")return window.__SYSTEM_INFO__;var{resolutionWidth:e}=plus.screen.getCurrentSize();return{platform:(plus.os.name||"").toLowerCase(),pixelRatio:plus.screen.scale,windowWidth:Math.round(e)}}function ht(e){if(e.indexOf("//")===0)return"https:"+e;if(pd.test(e)||gd.test(e))return e;if(Yg(e))return"file://"+wu(e);var t="file://"+wu("_www");if(e.indexOf("/")===0)return e.startsWith("/storage/")||e.startsWith("/sdcard/")||e.includes("/Containers/Data/Application/")?"file://"+e:t+e;if(e.indexOf("../")===0||e.indexOf("./")===0){if(typeof __id__=="string")return t+Ga("/"+__id__,e);var r=Tg();if(r)return t+Ga("/"+r.route,e)}return e}var wu=dd(e=>plus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,""));function Yg(e){return e.indexOf("_www")===0||e.indexOf("_doc")===0||e.indexOf("_documents")===0||e.indexOf("_downloads")===0}function zg(e,t,r){}function qg(e){return Promise.resolve(e)}var Xg="upx2px",Kg=1e-4,Gg=750,yu=!1,Ja=0,Su=0;function Zg(){var{platform:e,pixelRatio:t,windowWidth:r}=Hg();Ja=r,Su=t,yu=e==="ios"}function xu(e,t){var r=Number(e);return isNaN(r)?t:r}var Tu=jg(Xg,(e,t)=>{if(Ja===0&&Zg(),e=Number(e),e===0)return 0;var r=t||Ja;{var i=__uniConfig.globalStyle||{},n=xu(i.rpxCalcMaxDeviceWidth,960),a=xu(i.rpxCalcBaseDeviceWidth,375);r=r<=n?r:a}var o=e/Gg*r;return o<0&&(o=-o),o=Math.floor(o+Kg),o===0&&(Su===1||!yu?o=1:o=.5),e<0?-o:o}),Jg=[{name:"id",type:String,required:!0}];Jg.concat({name:"componentInstance",type:Object});var Eu={};Eu.f={}.propertyIsEnumerable;var Qg=hr,em=kn,tm=ii,rm=Eu.f,im=function(e){return function(t){for(var r=tm(t),i=em(r),n=i.length,a=0,o=[],s;n>a;)s=i[a++],(!Qg||rm.call(r,s))&&o.push(e?[s,r[s]]:r[s]);return o}},Cu=Ln,nm=im(!1);Cu(Cu.S,"Object",{values:function(t){return nm(t)}});var am="loadFontFace",om="pageScrollTo",sm=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(f){try{return f.defaultView&&f.defaultView.frameElement||null}catch(g){return null}}var t=function(f){for(var g=f,S=e(g);S;)g=S.ownerDocument,S=e(g);return g}(window.document),r=[],i=null,n=null;function a(f){this.time=f.time,this.target=f.target,this.rootBounds=b(f.rootBounds),this.boundingClientRect=b(f.boundingClientRect),this.intersectionRect=b(f.intersectionRect||d()),this.isIntersecting=!!f.intersectionRect;var g=this.boundingClientRect,S=g.width*g.height,x=this.intersectionRect,E=x.width*x.height;S?this.intersectionRatio=Number((E/S).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(f,g){var S=g||{};if(typeof f!="function")throw new Error("callback must be a function");if(S.root&&S.root.nodeType!=1&&S.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(S.rootMargin),this.thresholds=this._initThresholds(S.threshold),this.root=S.root||null,this.rootMargin=this._rootMarginValues.map(function(x){return x.value+x.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return i||(i=function(f,g){!f||!g?n=d():n=m(f,g),r.forEach(function(S){S._checkForIntersections()})}),i},o._resetCrossOriginUpdater=function(){i=null,n=null},o.prototype.observe=function(f){var g=this._observationTargets.some(function(S){return S.element==f});if(!g){if(!(f&&f.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:f,entry:null}),this._monitorIntersections(f.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(f){this._observationTargets=this._observationTargets.filter(function(g){return g.element!=f}),this._unmonitorIntersections(f.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var f=this._queuedEntries.slice();return this._queuedEntries=[],f},o.prototype._initThresholds=function(f){var g=f||[0];return Array.isArray(g)||(g=[g]),g.sort().filter(function(S,x,E){if(typeof S!="number"||isNaN(S)||S<0||S>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return S!==E[x-1]})},o.prototype._parseRootMargin=function(f){var g=f||"0px",S=g.split(/\s+/).map(function(x){var E=/^(-?\d*\.?\d+)(px|%)$/.exec(x);if(!E)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(E[1]),unit:E[2]}});return S[1]=S[1]||S[0],S[2]=S[2]||S[0],S[3]=S[3]||S[1],S},o.prototype._monitorIntersections=function(f){var g=f.defaultView;if(!!g&&this._monitoringDocuments.indexOf(f)==-1){var S=this._checkForIntersections,x=null,E=null;this.POLL_INTERVAL?x=g.setInterval(S,this.POLL_INTERVAL):(u(g,"resize",S,!0),u(f,"scroll",S,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in g&&(E=new g.MutationObserver(S),E.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(f),this._monitoringUnsubscribes.push(function(){var W=f.defaultView;W&&(x&&W.clearInterval(x),v(W,"resize",S,!0)),v(f,"scroll",S,!0),E&&E.disconnect()});var C=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=C){var L=e(f);L&&this._monitorIntersections(L.ownerDocument)}}},o.prototype._unmonitorIntersections=function(f){var g=this._monitoringDocuments.indexOf(f);if(g!=-1){var S=this.root&&(this.root.ownerDocument||this.root)||t,x=this._observationTargets.some(function(L){var W=L.element.ownerDocument;if(W==f)return!0;for(;W&&W!=S;){var q=e(W);if(W=q&&q.ownerDocument,W==f)return!0}return!1});if(!x){var E=this._monitoringUnsubscribes[g];if(this._monitoringDocuments.splice(g,1),this._monitoringUnsubscribes.splice(g,1),E(),f!=S){var C=e(f);C&&this._unmonitorIntersections(C.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var g=0;g=0&&W>=0&&{top:S,bottom:x,left:E,right:C,width:L,height:W}||null}function _(f){var g;try{g=f.getBoundingClientRect()}catch(S){}return g?(g.width&&g.height||(g={top:g.top,right:g.right,bottom:g.bottom,left:g.left,width:g.right-g.left,height:g.bottom-g.top}),g):d()}function d(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function b(f){return!f||"x"in f?f:{top:f.top,y:f.top,bottom:f.bottom,left:f.left,x:f.left,right:f.right,width:f.width,height:f.height}}function m(f,g){var S=g.top-f.top,x=g.left-f.left;return{top:S,left:x,height:g.height,width:g.width,bottom:S+g.height,right:x+g.width}}function p(f,g){for(var S=g;S;){if(S==f)return!0;S=c(S)}return!1}function c(f){var g=f.parentNode;return f.nodeType==9&&f!=t?e(f):(g&&g.assignedSlot&&(g=g.assignedSlot.parentNode),g&&g.nodeType==11&&g.host?g.host:g)}function w(f){return f&&f.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=a};function Qa(e){var{bottom:t,height:r,left:i,right:n,top:a,width:o}=e||{};return{bottom:t,height:r,left:i,right:n,top:a,width:o}}function lm(e){var{intersectionRatio:t,boundingClientRect:{height:r,width:i},intersectionRect:{height:n,width:a}}=e;return t!==0?t:n===r?a/i:n/r}function um(e,t,r){sm();var i=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,n=new IntersectionObserver(l=>{l.forEach(u=>{r({intersectionRatio:lm(u),intersectionRect:Qa(u.intersectionRect),boundingClientRect:Qa(u.boundingClientRect),relativeRect:Qa(u.rootBounds),time:Date.now(),dataset:Jn(u.target),id:u.target.id})})},{root:i,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){n.USE_MUTATION_OBSERVER=!0;for(var a=e.querySelectorAll(t.selector),o=0;o{var i=450,n=44;clearTimeout(t),e&&Math.abs(r.pageX-e.pageX)<=n&&Math.abs(r.pageY-e.pageY)<=n&&r.timeStamp-e.timeStamp<=i&&r.preventDefault(),e=r,t=setTimeout(()=>{e=null},i)})}}function mm(e){if(!e.length)return r=>r;var t=(r,i=!0)=>{if(typeof r=="number")return e[r];var n={};return r.forEach(([a,o])=>{i?n[t(a)]=t(o):n[t(a)]=o}),n};return t}function _m(e,t){if(!!t)return t.a&&(t.a=e(t.a)),t.e&&(t.e=e(t.e,!1)),t.w&&(t.w=bm(t.w,e)),t.s&&(t.s=e(t.s)),t.t&&(t.t=e(t.t)),t}function bm(e,t){var r={};return e.forEach(([i,[n,a]])=>{r[t(i)]=[t(n),a]}),r}function wm(e,t){return e.priority=t,e}var eo=new Set,ym=1,to=2,Ou=3,Mu=4;function Ot(e,t){eo.add(wm(e,t))}function Sm(){try{[...eo].sort((e,t)=>e.priority-t.priority).forEach(e=>e())}finally{eo.clear()}}function Iu(e,t){var r=window["__"+md],i=r&&r[e];if(i)return i;if(t&&t.__renderjsInstances)return t.__renderjsInstances[e]}var xm=Rs.length;function Tm(e,t,r){var[i,n,a,o]=io(t),s=ro(e,i);if(oe(r)||oe(o)){var[l,u]=a.split(".");return no(s,n,l,u,r||o)}return Om(s,n,a)}function Em(e,t,r){var[i,n,a]=io(t),[o,s]=a.split("."),l=ro(e,i);return no(l,n,o,s,[Im(r,e),en(Dr(l),!1)])}function ro(e,t){if(e.__ownerId===t)return e;for(var r=e.parentElement;r;){if(r.__ownerId===t)return r;r=r.parentElement}return e}function io(e){return JSON.parse(e.substr(xm))}function Cm(e,t,r,i){var[n,a,o]=io(e),s=ro(t,n),[l,u]=o.split(".");return no(s,a,l,u,[r,i,en(Dr(s),!1),en(Dr(t),!1)])}function no(e,t,r,i,n){var a=Iu(t,e);if(!a)return console.error(Zn("wxs","module "+r+" not found"));var o=a[i];return ae(o)?o.apply(a,n):console.error(r+"."+i+" is not a function")}function Om(e,t,r){var i=Iu(t,e);return i?As(i,r.substr(r.indexOf(".")+1)):console.error(Zn("wxs","module "+r+" not found"))}function Mm(e,t,r){var i=r;return n=>{try{Cm(t,e.$,n,i)}catch(a){console.error(a)}i=n}}function Im(e,t){var r=Dr(t);return Object.defineProperty(e,"instance",{get(){return en(r,!1)}}),e}function Au(e,t){Object.keys(t).forEach(r=>{Pm(e,t[r])})}function Am(e){var{__renderjsInstances:t}=e.$;!t||Object.keys(t).forEach(r=>{t[r].$.appContext.app.unmount()})}function Pm(e,t){var r=Rm(t);if(!!r){var i=e.$;(i.__renderjsInstances||(i.__renderjsInstances={}))[t]=Lm(r)}}function Rm(e){var t=window["__"+_d],r=t&&t[e];return r||console.error(Zn("renderjs",e+" not found"))}function Lm(e){return e=e.default||e,e.render=()=>{},lu(e).mount(document.createElement("div"))}class lr{constructor(t,r,i,n){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.id=t,this.tag=r,this.pid=i,n&&(this.$=n),this.$wxsProps=new Map}init(t){te(t,"t")&&(this.$.textContent=t.t)}setText(t){this.$.textContent=t}insert(t,r){var i=this.$,n=Ke(t);r===-1?n.appendChild(i):n.insertBefore(i,Ke(r).$),this.isMounted=!0}remove(){var{$:t}=this;t.parentNode.removeChild(t),this.isUnmounted=!0,jf(this.id),Am(this)}appendChild(t){return this.$.appendChild(t)}insertBefore(t,r){return this.$.insertBefore(t,r)}setWxsProps(t){Object.keys(t).forEach(r=>{if(r.indexOf(na)===0){var i=r.replace(na,""),n=t[i],a=Mm(this,t[r],n);Ot(()=>a(n),Mu),this.$wxsProps.set(r,a),delete t[r],delete t[i],this.$hasWxsProps=!0}})}addWxsEvents(t){Object.keys(t).forEach(r=>{var[i,n]=t[r];this.addWxsEvent(r,i,n)})}addWxsEvent(t,r,i){}wxsPropsInvoke(t,r,i=!1){var n=this.$hasWxsProps&&this.$wxsProps.get(na+t);if(n)return Ot(()=>i?or(()=>n(r)):n(r),Mu),!0}}function Pu(e,t){var{__wxsAddClass:r,__wxsRemoveClass:i}=e;i&&i.length&&(t=t.split(/\s+/).filter(n=>i.indexOf(n)===-1).join(" "),i.length=0),r&&r.length&&(t=t+" "+r.join(" ")),e.className=t}function Ru(e,t){var r=e.style;if(ye(t))t===""?e.removeAttribute("style"):r.cssText=Ut(t,!0);else for(var i in t)ao(r,i,t[i]);var{__wxsStyle:n}=e;if(n)for(var a in n)ao(r,a,n[a])}var Lu=/\s*!important$/;function ao(e,t,r){if(oe(r))r.forEach(n=>ao(e,t,n));else if(r=Ut(r,!0),t.startsWith("--"))e.setProperty(t,r);else{var i=Nm(e,t);Lu.test(r)?e.setProperty(Ve(i),r.replace(Lu,""),"important"):e[i]=r}}var Nu=["Webkit"],oo={};function Nm(e,t){var r=oo[t];if(r)return r;var i=mt(t);if(i!=="filter"&&i in e)return oo[t]=i;i=mi(i);for(var n=0;n{var[a]=pu(n);a.type=Jv(n.type,r),UniViewJSBridge.publishHandler(_u,[[cd,e,a]])};return t?za(i,$u(t)):i}function $u(e){var t=[];return e&ra.prevent&&t.push("prevent"),e&ra.self&&t.push("self"),e&ra.stop&&t.push("stop"),t}function km(e,t,r,i){var[n,a]=ta(t);i===-1?ku(e,n):Du(e,n)||e.addEventListener(n,e.__listeners[n]=Wu(e,r,i),a)}function Wu(e,t,r){var i=n=>{Em(e,t,pu(n)[0])};return r?za(i,$u(r)):i}var Dm=Ls.length;function so(e,t){return ye(t)&&(t.indexOf(Ls)===0?t=JSON.parse(t.substr(Dm)):t.indexOf(Rs)===0&&(t=Tm(e,t))),t}function lo(e,t){e._vod=e.style.display==="none"?"":e.style.display,e.style.display=t?e._vod:"none"}class Uu extends lr{constructor(t,r,i,n,a,o=[]){super(t,r.tagName,i,r);this.$props=Te({}),this.$.__id=t,this.$.__listeners=Object.create(null),this.$propNames=o,this._update=this.update.bind(this),this.init(a),this.insert(i,n)}init(t){te(t,"a")&&this.setAttrs(t.a),te(t,"s")&&this.setAttr("style",t.s),te(t,"e")&&this.addEvents(t.e),te(t,"w")&&this.addWxsEvents(t.w),super.init(t),U(this.$props,()=>{Ot(this._update,ym)},{flush:"sync"}),this.update(!0)}setAttrs(t){this.setWxsProps(t),Object.keys(t).forEach(r=>{this.setAttr(r,t[r])})}addEvents(t){Object.keys(t).forEach(r=>{this.addEvent(r,t[r])})}addWxsEvent(t,r,i){km(this.$,t,r,i)}addEvent(t,r){Bu(this.$,t,r)}removeEvent(t){Bu(this.$,t,-1)}setAttr(t,r){t===Cs?Pu(this.$,r):t===ia?Ru(this.$,r):t===bi?lo(this.$,r):t===Os?this.$.__ownerId=r:t===Ms?Ot(()=>Au(this,r),Ou):t===Qv?this.$.innerHTML=r:t===ed?this.setText(r):this.setAttribute(t,r)}removeAttr(t){t===Cs?Pu(this.$,""):t===ia?Ru(this.$,""):this.removeAttribute(t)}setAttribute(t,r){r=so(this.$,r),this.$propNames.indexOf(t)!==-1?this.$props[t]=r:this.wxsPropsInvoke(t,r)||this.$.setAttribute(t,r)}removeAttribute(t){this.$propNames.indexOf(t)!==-1?delete this.$props[t]:this.$.removeAttribute(t)}update(t=!1){}}class Bm extends lr{constructor(t,r,i){super(t,"#comment",r,document.createComment(""));this.insert(r,i)}}var uy="";function Vu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,r)=>"".concat(uni.upx2px(parseFloat(r)),"px")):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function Fm(e){return e.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase())).replace("webkit","-webkit")}function $m(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],r=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],n=["width","height","left","right","top","bottom"],a=e.animates,o=e.option,s=o.transition,l={},u=[];return a.forEach(v=>{var h=v.type,_=[...v.args];if(t.concat(r).includes(h))h.startsWith("rotate")||h.startsWith("skew")?_=_.map(b=>parseFloat(b)+"deg"):h.startsWith("translate")&&(_=_.map(Vu)),r.indexOf(h)>=0&&(_.length=1),u.push("".concat(h,"(").concat(_.join(","),")"));else if(i.concat(n).includes(_[0])){h=_[0];var d=_[1];l[h]=n.includes(h)?Vu(d):d}}),l.transform=l.webkitTransform=u.join(" "),l.transition=l.webkitTransition=Object.keys(l).map(v=>"".concat(Fm(v)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")).join(","),l.transformOrigin=l.webkitTransformOrigin=o.transformOrigin,l}function ju(e){var t=e.animation;if(!t||!t.actions||!t.actions.length)return;var r=0,i=t.actions,n=t.actions.length;function a(){var o=i[r],s=o.option.transition,l=$m(o);Object.keys(l).forEach(u=>{e.$el.style[u]=l[u]}),r+=1,r{a()},0)}var tn={props:["animation"],watch:{animation:{deep:!0,handler(){ju(this)}}},mounted(){ju(this)}},he=e=>{var{props:t,mixins:r}=e;return(!t||!t.animation)&&(r||(e.mixins=[])).push(tn),Wm(e)},Wm=e=>(e.compatConfig={MODE:3},jh(e)),Um={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function uo(e){var t=B(!1),r=!1,i,n;function a(){requestAnimationFrame(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function o(u){u._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||u.touches.length>1||(e.hoverStopPropagation&&(u._hoverPropagationStopped=!0),r=!0,i=setTimeout(()=>{t.value=!0,r||a()},parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&a()}function l(){r=!1,t.value=!1,clearTimeout(i)}return{hovering:t,binding:{onTouchstartPassive:o,onTouchend:s,onTouchcancel:l}}}function Br(e,t){return ye(t)&&(t=[t]),t.reduce((r,i)=>(e[i]&&(r[i]=!0),r),Object.create(null))}function Vt(e){return e.__wwe=!0,e}function Pe(e,t){return(r,i,n)=>{e.value&&t(r,jm(r,i,e.value,n||{}))}}function Vm(e){return(t,r)=>{e(t,gu(r))}}function jm(e,t,r,i){var n=ea(r);return{type:i.type||e,timeStamp:t.timeStamp||0,target:n,currentTarget:n,detail:i}}var st=Gi("uf"),Hm=he({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:r}){var i=B(null);return Ym(Pe(i,r)),()=>M("uni-form",{ref:i},[M("span",null,[t.default&&t.default()])],512)}});function Ym(e){var t=[];return Ne(st,{addField(r){t.push(r)},removeField(r){t.splice(t.indexOf(r),1)},submit(r){e("submit",r,{value:t.reduce((i,n)=>{if(n.submit){var[a,o]=n.submit();a&&(i[a]=o)}return i},Object.create(null))})},reset(r){t.forEach(i=>i.reset&&i.reset()),e("reset",r)}}),t}var Fr=Gi("ul"),zm={for:{type:String,default:""}},qm=he({name:"Label",props:zm,setup(e,{slots:t}){var r=Qi(),i=Xm(),n=Q(()=>e.for||t.default&&t.default.length),a=Vt(o=>{var s=o.target,l=/^uni-(checkbox|radio|switch)-/.test(s.className);l||(l=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(s.tagName)),!l&&(e.for?UniViewJSBridge.emit("uni-label-click-"+r+"-"+e.for,o,!0):i.length&&i[0](o,!0))});return()=>M("uni-label",{class:{"uni-label-pointer":n},onClick:a},[t.default&&t.default()],10,["onClick"])}});function Xm(){var e=[];return Ne(Fr,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}function rn(e,t){Hu(e.id,t),U(()=>e.id,(r,i)=>{Yu(i,t,!0),Hu(r,t,!0)}),yt(()=>{Yu(e.id,t)})}function Hu(e,t,r){var i=Qi();r&&!e||!rt(t)||Object.keys(t).forEach(n=>{r?n.indexOf("@")!==0&&n.indexOf("uni-")!==0&&UniViewJSBridge.on("uni-".concat(n,"-").concat(i,"-").concat(e),t[n]):n.indexOf("uni-")===0?UniViewJSBridge.on(n,t[n]):e&&UniViewJSBridge.on("uni-".concat(n,"-").concat(i,"-").concat(e),t[n])})}function Yu(e,t,r){var i=Qi();r&&!e||!rt(t)||Object.keys(t).forEach(n=>{r?n.indexOf("@")!==0&&n.indexOf("uni-")!==0&&UniViewJSBridge.off("uni-".concat(n,"-").concat(i,"-").concat(e),t[n]):n.indexOf("uni-")===0?UniViewJSBridge.off(n,t[n]):e&&UniViewJSBridge.off("uni-".concat(n,"-").concat(i,"-").concat(e),t[n])})}var Km=he({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){var r=B(null);$d();var i=ge(st,!1),{hovering:n,binding:a}=uo(e),{t:o}=je(),s=Vt((u,v)=>{if(e.disabled)return u.stopImmediatePropagation();v&&r.value.click();var h=e.formType;if(h){if(!i)return;h==="submit"?i.submit(u):h==="reset"&&i.reset(u);return}e.openType==="feedback"&&Gm(o("uni.button.feedback.title"),o("uni.button.feedback.send"))}),l=ge(Fr,!1);return l&&(l.addHandler(s),Ee(()=>{l.removeHandler(s)})),rn(e,{"label-click":s}),()=>{var u=e.hoverClass,v=Br(e,"disabled"),h=Br(e,"loading"),_=u&&u!=="none";return M("uni-button",Ye({ref:r,onClick:s,class:_&&n.value?u:""},_&&a,v,h),[t.default&&t.default()],16,["onClick"])}}});function Gm(e,t){var r=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:e,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:t,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){r.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}});r.show("slide-in-right")}var jt=he({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){var r=B(null),i=Jm(r),n=Zm(r,t,i);return Qm(r,e,n,i),()=>M("uni-resize-sensor",{ref:r,onAnimationstartOnce:n},[M("div",{onScroll:n},[M("div",null,null)],40,["onScroll"]),M("div",{onScroll:n},[M("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Zm(e,t,r){var i=Te({width:-1,height:-1});return U(()=>fe({},i),n=>t("resize",n)),()=>{var n=e.value;i.width=n.offsetWidth,i.height=n.offsetHeight,r()}}function Jm(e){return()=>{var{firstElementChild:t,lastElementChild:r}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,r.scrollLeft=1e5,r.scrollTop=1e5}}function Qm(e,t,r,i){Oa(i),Oe(()=>{t.initial&&or(r);var n=e.value;n.offsetParent!==n.parentElement&&(n.parentElement.style.position="relative"),"AnimationEvent"in window||i()})}var me=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}();function zu(e){e.width=e.offsetWidth*me,e.height=e.offsetHeight*me,e.getContext("2d").__hidpi__=!0}var qu=!1;function e0(){if(!qu){qu=!0;var e=function(i,n){for(var a in i)te(i,a)&&n(i[a],a)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]},r=CanvasRenderingContext2D.prototype;r.drawImageByCanvas=function(i){return function(n,a,o,s,l,u,v,h,_,d){if(!this.__hidpi__)return i.apply(this,arguments);a*=me,o*=me,s*=me,l*=me,u*=me,v*=me,h=d?h*me:h,_=d?_*me:_,i.call(this,n,a,o,s,l,u,v,h,_)}}(r.drawImage),me!==1&&(e(t,function(i,n){r[n]=function(a){return function(){if(!this.__hidpi__)return a.apply(this,arguments);var o=Array.prototype.slice.call(arguments);if(i==="all")o=o.map(function(l){return l*me});else if(Array.isArray(i))for(var s=0;se0());function Xu(e){return e&&ht(e)}function nn(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Ku(e,t){var r=e;return Array.from(t).map(i=>{var n=r.getBoundingClientRect();return{identifier:i.identifier,x:i.clientX-n.left,y:i.clientY-n.top}})}var $r;function Gu(e=0,t=0){return $r||($r=document.createElement("canvas")),$r.width=e,$r.height=t,$r}var r0={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1}},i0=he({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:r0,computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:r}){t0();var i=B(null),n=B(null),a=B(!1),o=Vm(t),{$attrs:s,$excludeAttrs:l,$listeners:u}=pf({excludeListeners:!0}),{_listeners:v}=n0(e,u,o),{_handleSubscribe:h,_resize:_}=a0(i,a);return pn(h,gn(e.canvasId),!0),Oe(()=>{_()}),()=>{var{canvasId:d,disableScroll:b}=e;return M("uni-canvas",Ye({"canvas-id":d,"disable-scroll":b},s.value,l.value,v.value),[M("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),M("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[r.default&&r.default()]),M(jt,{ref:n,onResize:_},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function n0(e,t,r){var i=Q(()=>{var n=["onTouchstart","onTouchmove","onTouchend"],a=t.value,o=fe({},(()=>{var s={};for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){var u=a[l];s[l]=u}return s})());return n.forEach(s=>{var l=o[s],u=[];l&&u.push(Vt(v=>{r(s.replace("on","").toLocaleLowerCase(),fe({},(()=>{var h={};for(var _ in v)h[_]=v[_];return h})(),{touches:Ku(v.currentTarget,v.touches),changedTouches:Ku(v.currentTarget,v.changedTouches)}))})),e.disableScroll&&s==="onTouchmove"&&u.push(vg),o[s]=u}),o});return{_listeners:i}}function a0(e,t){var r=[],i={};function n(d){var b=e.value,m=!d||b.width!==Math.floor(d.width*me)||b.height!==Math.floor(d.height*me);if(!!m)if(b.width>0&&b.height>0){var p=b.getContext("2d"),c=p.getImageData(0,0,b.width,b.height);zu(b),p.putImageData(c,0,0)}else zu(b)}function a({actions:d,reserve:b},m){if(!!d){if(t.value){r.push([d,b]);return}var p=e.value,c=p.getContext("2d");b||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,p.width,p.height)),o(d);for(var w=function(S){var x=d[S],E=x.method,C=x.data,L=C[0];if(/^set/.test(E)&&E!=="setTransform"){var W=E[3].toLowerCase()+E.slice(4),q;if(W==="fillStyle"||W==="strokeStyle"){if(L==="normal")q=nn(C[1]);else if(L==="linear"){var X=c.createLinearGradient(...C[1]);C[2].forEach(function(Y){var re=Y[0],le=nn(Y[1]);X.addColorStop(re,le)}),q=X}else if(L==="radial"){var ce=C[1],A=ce[0],$=ce[1],ee=ce[2],ne=c.createRadialGradient(A,$,0,A,$,ee);C[2].forEach(function(Y){var re=Y[0],le=nn(Y[1]);ne.addColorStop(re,le)}),q=ne}else if(L==="pattern"){var H=s(C[1],d.slice(S+1),m,function(Y){Y&&(c[W]=c.createPattern(Y,C[2]))});return H?"continue":"break"}c[W]=q}else if(W==="globalAlpha")c[W]=Number(L)/255;else if(W==="shadow"){var J=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];C.forEach(function(Y,re){c[J[re]]=J[re]==="shadowColor"?nn(Y):Y})}else if(W==="fontSize"){var ie=c.__font__||c.font;c.__font__=c.font=ie.replace(/\d+\.?\d*px/,L+"px")}else W==="lineDash"?(c.setLineDash(L),c.lineDashOffset=C[1]||0):W==="textBaseline"?(L==="normal"&&(C[0]="alphabetic"),c[W]=L):W==="font"?c.__font__=c.font=L:c[W]=L}else if(E==="fillPath"||E==="strokePath")E=E.replace(/Path/,""),c.beginPath(),C.forEach(function(Y){c[Y.method].apply(c,Y.data)}),c[E]();else if(E==="fillText")c.fillText.apply(c,C);else if(E==="drawImage"){var we=function(){var Y=[...C],re=Y[0],le=Y.slice(1);if(i=i||{},s(re,d.slice(S+1),m,function(ve){ve&&c.drawImage.apply(c,[ve].concat([...le.slice(4,8)],[...le.slice(0,4)]))}))return"break"}();if(we==="break")return"break"}else E==="clip"?(C.forEach(function(Y){c[Y.method].apply(c,Y.data)}),c.clip()):c[E].apply(c,C)},f=0;f{f.src=g}).catch(()=>{f.src=c})}})}function s(d,b,m,p){var c=i[d];return c.ready?(p(c),!0):(r.unshift([b,!0]),t.value=!0,c.onload=function(){c.ready=!0,p(c),t.value=!1;var w=r.slice(0);r=[];for(var f=w.shift();f;)a({actions:f[0],reserve:f[1]},m),f=w.shift()},!1)}function l({x:d=0,y:b=0,width:m,height:p,destWidth:c,destHeight:w,hidpi:f=!0,dataType:g,quality:S=1,type:x="png"},E){var C=e.value,L,W=C.offsetWidth-d;m=m?Math.min(m,W):W;var q=C.offsetHeight-b;p=p?Math.min(p,q):q,f?(c=m,w=p):!c&&!w?(c=Math.round(m*me),w=Math.round(p*me)):c?w||(w=Math.round(p/m*c)):c=Math.round(m/p*w);var X=Gu(c,w),ce=X.getContext("2d");(x==="jpeg"||x==="jpg")&&(x="jpeg",ce.fillStyle="#fff",ce.fillRect(0,0,c,w)),ce.__hidpi__=!0,ce.drawImageByCanvas(C,d,b,m,p,0,0,c,w,!1);var A;try{var $;if(g==="base64")L=X.toDataURL("image/".concat(x),S);else{var ee=ce.getImageData(0,0,c,w),ne=require("pako");L=ne.deflateRaw(ee.data,{to:"string"}),$=!0}A={data:L,compressed:$,width:c,height:w}}catch(H){A={errMsg:"canvasGetImageData:fail ".concat(H)}}if(X.height=X.width=0,ce.__hidpi__=!1,E)E(A);else return A}function u({data:d,x:b,y:m,width:p,height:c,compressed:w},f){try{c||(c=Math.round(d.length/4/p));var g=Gu(p,c),S=g.getContext("2d");if(w){var x=require("pako");d=x.inflateRaw(d)}S.putImageData(new ImageData(new Uint8ClampedArray(d),p,c),0,0),e.value.getContext("2d").drawImage(g,b,m,p,c),g.height=g.width=0}catch(E){f({errMsg:"canvasPutImageData:fail"});return}f({errMsg:"canvasPutImageData:ok"})}function v({x:d=0,y:b=0,width:m,height:p,destWidth:c,destHeight:w,fileType:f,quality:g,dirname:S},x){var E=l({x:d,y:b,width:m,height:p,destWidth:c,destHeight:w,hidpi:!1,dataType:"base64",type:f,quality:g});if(!E.data||!E.data.length){x({errMsg:E.errMsg.replace("canvasPutImageData","toTempFilePath")});return}zg(E.data)}var h={actionsChanged:a,getImageData:l,putImageData:u,toTempFilePath:v};function _(d,b,m){var p=h[d];d.indexOf("_")!==0&&typeof p=="function"&&p(b,m)}return fe(h,{_resize:n,_handleSubscribe:_})}var Zu=Gi("ucg"),o0={name:{type:String,default:""}},s0=he({name:"CheckboxGroup",props:o0,emits:["change"],setup(e,{emit:t,slots:r}){var i=B(null),n=Pe(i,t);return l0(e,n),()=>M("uni-checkbox-group",{ref:i},[r.default&&r.default()],512)}});function l0(e,t){var r=[],i=()=>r.reduce((a,o)=>(o.value.checkboxChecked&&a.push(o.value.value),a),new Array);Ne(Zu,{addField(a){r.push(a)},removeField(a){r.splice(r.indexOf(a),1)},checkboxChange(a){t("change",a,{value:i()})}});var n=ge(st,!1);return n&&n.addField({submit:()=>{var a=["",null];return e.name!==""&&(a[0]=e.name,a[1]=i()),a}}),i}var u0={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},f0=he({name:"Checkbox",props:u0,setup(e,{slots:t}){var r=B(e.checked),i=B(e.value);U([()=>e.checked,()=>e.value],([l,u])=>{r.value=l,i.value=u});var n=()=>{r.value=!1},{uniCheckGroup:a,uniLabel:o}=c0(r,i,n),s=l=>{e.disabled||(r.value=!r.value,a&&a.checkboxChange(l))};return o&&(o.addHandler(s),Ee(()=>{o.removeHandler(s)})),rn(e,{"label-click":s}),()=>{var l=Br(e,"disabled");return M("uni-checkbox",Ye(l,{onClick:s}),[M("div",{class:"uni-checkbox-wrapper"},[M("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[r.value?Ji(Zi,e.color,22):""],2),t.default&&t.default()])],16,["onClick"])}}});function c0(e,t,r){var i=Q(()=>({checkboxChecked:Boolean(e.value),value:t.value})),n={reset:r},a=ge(Zu,!1);a&&a.addField(i);var o=ge(st,!1);o&&o.addField(n);var s=ge(Fr,!1);return Ee(()=>{a&&a.removeField(i),o&&o.removeField(n)}),{uniCheckGroup:a,uniForm:o,uniLabel:s}}var Ju,Wr,an,Mt,on,fo;Qt(()=>{Wr=plus.os.name==="Android",an=plus.os.version||""}),document.addEventListener("keyboardchange",function(e){Mt=e.height,on&&on()},!1);function Qu(){}function Ur(e,t,r){Qt(()=>{var i="adjustResize",n="adjustPan",a="nothing",o=plus.webview.currentWebview(),s=fo||o.getStyle()||{},l={mode:r||s.softinputMode===i?i:e.adjustPosition?n:a,position:{top:0,height:0}};if(l.mode===n){var u=t.getBoundingClientRect();l.position.top=u.top,l.position.height=u.height+(Number(e.cursorSpacing)||0)}o.setSoftinputTemporary(l)})}function v0(e,t){if(e.showConfirmBar==="auto"){delete t.softinputNavBar;return}Qt(()=>{var r=plus.webview.currentWebview(),{softinputNavBar:i}=r.getStyle()||{},n=i!=="none";n!==e.showConfirmBar?(t.softinputNavBar=i||"auto",r.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})}function d0(e){var t=e.softinputNavBar;t&&Qt(()=>{var r=plus.webview.currentWebview();r.setStyle({softinputNavBar:t})})}var ef={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},tf=["keyboardheightchange"];function rf(e,t,r){var i={};function n(a){var o,s=()=>{r("keyboardheightchange",{},{height:Mt,duration:.25}),o&&Mt===0&&Ur(e,a),e.autoBlur&&o&&Mt===0&&(Wr||parseInt(an)>=13)&&document.activeElement.blur()};a.addEventListener("focus",()=>{o=!0,clearTimeout(Ju),document.addEventListener("click",Qu,!1),on=s,Mt&&r("keyboardheightchange",{},{height:Mt,duration:0}),v0(e,i),Ur(e,a)}),Wr&&a.addEventListener("click",()=>{!e.disabled&&!e.readOnly&&o&&Mt===0&&Ur(e,a)}),Wr||(parseInt(an)<12&&a.addEventListener("touchstart",()=>{!e.disabled&&!e.readOnly&&!o&&Ur(e,a)}),parseFloat(an)>=14.6&&!fo&&Qt(()=>{var u=plus.webview.currentWebview();fo=u.getStyle()||{}}));var l=()=>{document.removeEventListener("click",Qu,!1),on=null,Mt&&r("keyboardheightchange",{},{height:0,duration:0}),d0(i),Wr&&(Ju=setTimeout(()=>{Ur(e,a,!0)},300)),String(navigator.vendor).indexOf("Apple")===0&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};a.addEventListener("blur",()=>{a.blur(),o=!1,l()})}U(()=>t.value,a=>n(a))}var nf=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,af=/^<\/([-A-Za-z0-9_]+)[^>]*>/,h0=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,p0=ur("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),g0=ur("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),m0=ur("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),_0=ur("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),b0=ur("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),w0=ur("script,style");function of(e,t){var r,i,n,a=[],o=e;for(a.last=function(){return this[this.length-1]};e;){if(i=!0,!a.last()||!w0[a.last()]){if(e.indexOf(""),r>=0&&(t.comment&&t.comment(e.substring(4,r)),e=e.substring(r+3),i=!1)):e.indexOf("]*>"),function(v,h){return h=h.replace(/|/g,"$1$2"),t.chars&&t.chars(h),""}),u("",a.last());if(e==o)throw"Parse Error: "+e;o=e}u();function l(v,h,_,d){if(h=h.toLowerCase(),g0[h])for(;a.last()&&m0[a.last()];)u("",a.last());if(_0[h]&&a.last()==h&&u("",h),d=p0[h]||!!d,d||a.push(h),t.start){var b=[];_.replace(h0,function(m,p){var c=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:b0[p]?p:"";b.push({name:p,value:c,escaped:c.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(h,b,d)}}function u(v,h){if(h)for(var _=a.length-1;_>=0&&a[_]!=h;_--);else var _=0;if(_>=0){for(var d=a.length-1;d>=_;d--)t.end&&t.end(a[d]);a.length=_}}}function ur(e){for(var t={},r=e.split(","),i=0;io()),delete co[t]}}n.push(r)}function y0(e){var t=e.import("blots/block/embed");class r extends t{}return r.blotName="divider",r.tagName="HR",{"formats/divider":r}}function S0(e){var t=e.import("blots/inline");class r extends t{}return r.blotName="ins",r.tagName="INS",{"formats/ins":r}}function x0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["left","right","center","justify"]},n=new r.Style("align","text-align",i);return{"formats/align":n}}function T0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["rtl"]},n=new r.Style("direction","direction",i);return{"formats/direction":n}}function E0(e){var t=e.import("parchment"),r=e.import("blots/container"),i=e.import("formats/list/item");class n extends r{static create(o){var s=o==="ordered"?"OL":"UL",l=super.create(s);return(o==="checked"||o==="unchecked")&&l.setAttribute("data-checked",o==="checked"),l}static formats(o){if(o.tagName==="OL")return"ordered";if(o.tagName==="UL")return o.hasAttribute("data-checked")?o.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(o){super(o);var s=l=>{if(l.target.parentNode===o){var u=this.statics.formats(o),v=t.find(l.target);u==="checked"?v.format("list","unchecked"):u==="unchecked"&&v.format("list","checked")}};o.addEventListener("click",s)}format(o,s){this.children.length>0&&this.children.tail.format(o,s)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(o,s){if(o instanceof i)super.insertBefore(o,s);else{var l=s==null?this.length():s.offset(this),u=this.split(l);u.parent.insertBefore(o,u)}}optimize(o){super.optimize(o);var s=this.next;s!=null&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(s.moveChildren(this),s.remove())}replace(o){if(o.statics.blotName!==this.statics.blotName){var s=t.create(this.statics.defaultChild);o.moveChildren(s),this.appendChild(s)}super.replace(o)}}return n.blotName="list",n.scope=t.Scope.BLOCK_BLOT,n.tagName=["OL","UL"],n.defaultChild="list-item",n.allowedChildren=[i],{"formats/list":n}}function C0(e){var{Scope:t}=e.import("parchment"),r=e.import("formats/background"),i=new r.constructor("backgroundColor","background-color",{scope:t.INLINE});return{"formats/backgroundColor":i}}function O0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK},n=["margin","marginTop","marginBottom","marginLeft","marginRight"],a=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],o={};return n.concat(a).forEach(s=>{o["formats/".concat(s)]=new r.Style(s,Ve(s),i)}),o}function M0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.INLINE},n=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],a={};return n.forEach(o=>{a["formats/".concat(o)]=new r.Style(o,Ve(o),i)}),a}function I0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],n={};return i.forEach(({name:a,scope:o})=>{n["formats/".concat(a)]=new r.Style(a,Ve(a),{scope:o})}),n}function A0(e){var t=e.import("formats/image"),r=["alt","height","width","data-custom","class","data-local"];t.sanitize=n=>n,t.formats=function(a){return r.reduce(function(o,s){return a.hasAttribute(s)&&(o[s]=a.getAttribute(s)),o},{})};var i=t.prototype.format;t.prototype.format=function(n,a){r.indexOf(n)>-1?a?this.domNode.setAttribute(n,a):this.domNode.removeAttribute(n):i.call(this,n,a)}}function P0(e){var t={divider:y0,ins:S0,align:x0,direction:T0,list:E0,background:C0,box:O0,font:M0,text:I0,image:A0},r={};Object.values(t).forEach(i=>fe(r,i(e))),e.register(r,!0)}function R0(e,t,r){var i,n,a,o=!1;U(()=>e.readOnly,d=>{i&&(a.enable(!d),d||a.blur())}),U(()=>e.placeholder,d=>{i&&a.root.setAttribute("data-placeholder",d)});function s(d){var b=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],m="",p;of(d,{start:function(w,f,g){if(!b.includes(w)){p=!g;return}p=!1;var S=f.map(({name:E,value:C})=>"".concat(E,'="').concat(C,'"')).join(" "),x="<".concat(w," ").concat(S," ").concat(g?"/":"",">");m+=x},end:function(w){p||(m+=""))},chars:function(w){p||(m+=w)}}),n=!0;var c=a.clipboard.convert(m);return n=!1,c}function l(){var d=a.root.innerHTML,b=a.getText(),m=a.getContents();return{html:d,text:b,delta:m}}var u={};function v(d){var b=d?a.getFormat(d):{},m=Object.keys(b);(m.length!==Object.keys(u).length||m.find(p=>b[p]!==u[p]))&&(u=b,r("statuschange",{},b))}function h(d){var b=window.Quill;P0(b);var m={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};d.length&&(b.register("modules/ImageResize",window.ImageResize.default),m.modules={ImageResize:{modules:d}});var p=t.value;a=new b(p,m);var c=a.root,w=["focus","blur","input"];w.forEach(f=>{c.addEventListener(f,g=>{f==="input"?g.stopPropagation():r(f,g,l())})}),a.on("text-change",()=>{o||r("input",{},l())}),a.on("selection-change",v),a.on("scroll-optimize",()=>{var f=a.selection.getRange()[0];v(f)}),a.clipboard.addMatcher(Node.ELEMENT_NODE,(f,g)=>(n||g.ops&&(g.ops=g.ops.filter(({insert:S})=>typeof S=="string").map(({insert:S})=>({insert:S}))),g)),i=!0,r("ready",{},{})}Oe(()=>{var d=[];e.showImgSize&&d.push("DisplaySize"),e.showImgToolbar&&d.push("Toolbar"),e.showImgResize&&d.push("Resize");var b="./__uniappquill.js";sf(window.Quill,b,()=>{if(d.length){var m="./__uniappquillimageresize.js";sf(window.ImageResize,m,()=>{h(d)})}else h(d)})});var _=gn();pn((d,b,m)=>{var{options:p,callbackId:c}=b,w,f,g;if(i){var S=window.Quill;switch(d){case"format":{var{name:x="",value:E=!1}=p;f=a.getSelection(!0);var C=a.getFormat(f)[x]||!1;if(["bold","italic","underline","strike","ins"].includes(x))E=!C;else if(x==="direction"){E=E==="rtl"&&C?!1:E;var L=a.getFormat(f).align;E==="rtl"&&!L?a.format("align","right","user"):!E&&L==="right"&&a.format("align",!1,"user")}else if(x==="indent"){var W=a.getFormat(f).direction==="rtl";E=E==="+1",W&&(E=!E),E=E?"+1":"-1"}else x==="list"&&(E=E==="check"?"unchecked":E,C=C==="checked"?"unchecked":C),E=C&&C!==(E||!1)||!C&&E?E:!C;a.format(x,E,"user")}break;case"insertDivider":f=a.getSelection(!0),a.insertText(f.index,wr,"user"),a.insertEmbed(f.index+1,"divider",!0,"user"),a.setSelection(f.index+2,0,"silent");break;case"insertImage":{f=a.getSelection(!0);var{src:q="",alt:X="",width:ce="",height:A="",extClass:$="",data:ee={}}=p,ne=ht(q);a.insertEmbed(f.index,"image",ne,"user");var H=/^(file|blob):/.test(ne)?ne:!1;o=!0,a.formatText(f.index,1,"data-local",H),a.formatText(f.index,1,"alt",X),a.formatText(f.index,1,"width",ce),a.formatText(f.index,1,"height",A),a.formatText(f.index,1,"class",$),o=!1,a.formatText(f.index,1,"data-custom",Object.keys(ee).map(re=>"".concat(re,"=").concat(ee[re])).join("&")),a.setSelection(f.index+1,0,"silent")}break;case"insertText":{f=a.getSelection(!0);var{text:J=""}=p;a.insertText(f.index,J,"user"),a.setSelection(f.index+J.length,0,"silent")}break;case"setContents":{var{delta:ie,html:we}=p;typeof ie=="object"?a.setContents(ie,"silent"):typeof we=="string"?a.setContents(s(we),"silent"):g="contents is missing"}break;case"getContents":w=l();break;case"clear":a.setText("");break;case"removeFormat":{f=a.getSelection(!0);var Y=S.import("parchment");f.length?a.removeFormat(f.index,f.length,"user"):Object.keys(a.getFormat(f)).forEach(re=>{Y.query(re,Y.Scope.INLINE)&&a.format(re,!1)})}break;case"undo":a.history.undo();break;case"redo":a.history.redo();break;case"blur":a.blur();break;case"getSelectionText":f=a.selection.savedRange,w={text:""},f&&f.length!==0&&(w.text=a.getText(f.index,f.length));break;case"scrollIntoView":a.scrollIntoView();break}v(f)}else g="not ready";c&&m({callbackId:c,data:fe({},w,{errMsg:"".concat(d,":").concat(g?"fail "+g:"ok")})})},_,!0)}var L0=fe({},ef,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),N0=he({name:"Editor",props:L0,emit:["ready","focus","blur","input","statuschange",...tf],setup(e,{emit:t}){var r=B(null),i=Pe(r,t);return R0(e,r,i),rf(e,r,i),()=>M("uni-editor",{ref:r,id:e.id,class:"ql-container"},null,8,["id"])}}),lf="#10aeff",k0="#f76260",uf="#b2b2b2",D0="#f43530",B0={success:{d:yg,c:wi},success_no_circle:{d:Zi,c:wi},info:{d:bg,c:lf},warn:{d:xg,c:k0},waiting:{d:Sg,c:lf},cancel:{d:gg,c:D0},download:{d:_g,c:wi},search:{d:wg,c:uf},clear:{d:mg,c:uf}},F0=he({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=Q(()=>B0[e.type]);return()=>{var{value:r}=t;return M("uni-icon",null,[r&&r.d&&Ji(r.d,e.color||r.c,Ut(e.size))])}}}),$0={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!0}},sn={widthFix:["offsetWidth","height"],heightFix:["offsetHeight","width"]},W0={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},U0=he({name:"Image",props:$0,setup(e,{emit:t}){var r=B(null),i=V0(r,e),n=Pe(r,t),{fixSize:a}=z0(r,e,i);return j0(i,a,n),()=>{var{mode:o}=e,{imgSrc:s,modeStyle:l,src:u}=i,v;return v=s?M("img",{src:s,draggable:e.draggable},null,8,["src","draggable"]):M("img",null,null),M("uni-image",{ref:r},[M("div",{style:l},null,4),v,sn[o]?M(jt,{onResize:a},null,8,["onResize"]):M("span",null,null)],512)}}});function V0(e,t){var r=B(""),i=Q(()=>{var a="auto",o="",s=W0[t.mode];return s?(s[0]&&(o=s[0]),s[1]&&(a=s[1])):(o="0% 0%",a="100% 100%"),"background-image:".concat(r.value?'url("'+r.value+'")':"none",";background-position:").concat(o,";background-size:").concat(a,";")}),n=Te({rootEl:e,src:Q(()=>t.src?ht(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:r});return Oe(()=>{var a=e.value,o=a.style;n.origWidth=Number(o.width)||0,n.origHeight=Number(o.height)||0}),n}function j0(e,t,r){var i,n=(s=0,l=0,u="")=>{e.origWidth=s,e.origHeight=l,e.imgSrc=u},a=s=>{if(!s){o(),n();return}i=i||new Image,i.onload=l=>{var{width:u,height:v}=i;n(u,v,s),t(),o(),r("load",l,{width:u,height:v})},i.onerror=l=>{n(),o(),r("error",l,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},i.src=s},o=()=>{i&&(i.onload=null,i.onerror=null,i=null)};U(()=>e.src,s=>a(s)),Oe(()=>a(e.src)),Ee(()=>o())}var H0=navigator.vendor==="Google Inc.";function Y0(e){return H0&&e>10&&(e=Math.round(e/2)*2),e}function z0(e,t,r){var i=()=>{var{mode:a}=t,o=sn[a];if(!!o){var{origWidth:s,origHeight:l}=r,u=s&&l?s/l:0;if(!!u){var v=e.value,h=v[o[0]];h&&(v.style[o[1]]=Y0(h/u)+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},n=()=>{var{style:a}=e.value,{origStyle:{width:o,height:s}}=r;a.width=o,a.height=s};return U(()=>t.mode,(a,o)=>{sn[o]&&n(),sn[a]&&i()}),{fixSize:i,resetSize:n}}function q0(e,t){var r=0,i,n,a=function(...o){var s=Date.now();if(clearTimeout(i),n=()=>{n=null,r=s,e.apply(this,o)},s-r{document.addEventListener(r,function(){ln.forEach(i=>{i.userAction=!0,vo++,setTimeout(()=>{vo--,vo||(i.userAction=!1)},0)})},X0)}),ff=!0}ln.push(e)}function G0(e){var t=ln.indexOf(e);t>=0&&ln.splice(t,1)}function Z0(){var e=Te({userAction:!1});return Oe(()=>{K0(e)}),Ee(()=>{G0(e)}),{state:e}}function cf(){var e=Te({attrs:{}});return Oe(()=>{for(var t=xt();t;){var r=t.type.__scopeId;r&&(e.attrs[r]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function J0(e,t){var r=ge(st,!1);if(!!r){var i=xt(),n={submit(){var a=i.proxy;return[a[e],typeof t=="string"?a[t]:t.value]},reset(){typeof t=="string"?i.proxy[t]="":t.value=""}};r.addField(n),Ee(()=>{r.removeField(n)})}}function Q0(e,t){var r=document.activeElement;if(!r)return t({});var i={};["input","textarea"].includes(r.tagName.toLowerCase())&&(i.start=r.selectionStart,i.end=r.selectionEnd),t(i)}var e_=function(){ft(Ct(),"getSelectedTextRange",Q0)},t_=200,ho;function po(e){return e===null?"":String(e)}var vf=fe({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"}},ef),df=["input","focus","blur","update:value","update:modelValue","update:focus",...tf];function r_(e,t,r){var i=B(null),n=Pe(t,r),a=Q(()=>{var h=Number(e.selectionStart);return isNaN(h)?-1:h}),o=Q(()=>{var h=Number(e.selectionEnd);return isNaN(h)?-1:h}),s=Q(()=>{var h=Number(e.cursor);return isNaN(h)?-1:h}),l=Q(()=>{var h=Number(e.maxlength);return isNaN(h)?140:h}),u=po(e.modelValue)||po(e.value),v=Te({value:u,valueOrigin:u,maxlength:l,focus:e.focus,composing:!1,selectionStart:a,selectionEnd:o,cursor:s});return U(()=>v.focus,h=>r("update:focus",h)),U(()=>v.maxlength,h=>v.value=v.value.slice(0,h)),{fieldRef:i,state:v,trigger:n}}function i_(e,t,r,i){var n=hd(s=>{t.value=po(s)},100);U(()=>e.modelValue,n),U(()=>e.value,n);var a=q0((s,l)=>{n.cancel(),r("update:modelValue",l.value),r("update:value",l.value),i("input",s,l)},100),o=(s,l,u)=>{n.cancel(),a(s,l),u&&a.flush()};return yl(()=>{n.cancel(),a.cancel()}),{trigger:i,triggerInput:o}}function n_(e,t){var{state:r}=Z0(),i=Q(()=>e.autoFocus||e.focus);function n(){if(!!i.value){var o=t.value;if(!o||!("plus"in window)){setTimeout(n,100);return}{var s=t_-(Date.now()-ho);if(s>0){setTimeout(n,s);return}o.focus(),r.userAction||plus.key.showSoftKeybord()}}}function a(){var o=t.value;o&&o.blur()}U(()=>e.focus,o=>{o?n():a()}),Oe(()=>{ho=ho||Date.now(),i.value&&or(n)})}function a_(e,t,r,i,n){function a(){var l=e.value;l&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&(l.selectionStart=t.selectionStart,l.selectionEnd=t.selectionEnd)}function o(){var l=e.value;l&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&(l.selectionEnd=l.selectionStart=t.cursor)}function s(){var l=e.value,u=function(_){t.focus=!0,r("focus",_,{value:t.value}),a(),o()},v=function(_,d){_.stopPropagation(),!(typeof n=="function"&&n(_,t)===!1)&&(t.value=l.value,t.composing||i(_,{value:l.value,cursor:l.selectionEnd},d))},h=function(_){t.composing&&(t.composing=!1,v(_,!0)),t.focus=!1,r("blur",_,{value:t.value,cursor:_.target.selectionEnd})};l.addEventListener("change",_=>_.stopPropagation()),l.addEventListener("focus",u),l.addEventListener("blur",h),l.addEventListener("input",v),l.addEventListener("compositionstart",_=>{_.stopPropagation(),t.composing=!0}),l.addEventListener("compositionend",_=>{_.stopPropagation(),t.composing&&(t.composing=!1,v(_))})}U([()=>t.selectionStart,()=>t.selectionEnd],a),U(()=>t.cursor,o),U(()=>e.value,s)}function hf(e,t,r,i){e_();var{fieldRef:n,state:a,trigger:o}=r_(e,t,r),{triggerInput:s}=i_(e,a,r,o);n_(e,n),rf(e,n,o);var{state:l}=cf();J0("name",a),a_(n,a,o,s,i);var u=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:n,state:a,scopedAttrsState:l,fixDisabledColor:u,trigger:o}}var o_=fe({},vf,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),s_=he({name:"Input",props:o_,emits:["confirm",...df],setup(e,{emit:t}){var r=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],n=Q(()=>{var c="";switch(e.type){case"text":e.confirmType==="search"&&(c="search");break;case"idcard":c="text";break;case"digit":c="number";break;default:c=~r.includes(e.type)?e.type:"text";break}return e.password?"password":c}),a=Q(()=>{var c=i.indexOf(e.textContentType),w=i.indexOf(Ve(e.textContentType)),f=c!==-1?c:w!==-1?w:0;return i[f]}),o=B(""),s,l=B(null),{fieldRef:u,state:v,scopedAttrsState:h,fixDisabledColor:_,trigger:d}=hf(e,l,t,(c,w)=>{var f=c.target;if(n.value==="number"){if(s&&(f.removeEventListener("blur",s),s=null),f.validity&&!f.validity.valid)return!o.value&&c.data==="-"||o.value[0]==="-"&&c.inputType==="deleteContentBackward"?(o.value="-",w.value="",s=()=>{o.value=f.value=""},f.addEventListener("blur",s),!1):(o.value=w.value=f.value=o.value==="-"?"":o.value,!1);o.value=f.value;var g=w.maxlength;if(g>0&&f.value.length>g)return f.value=f.value.slice(0,g),w.value=f.value,!1}}),b=["number","digit"],m=Q(()=>b.includes(e.type)?"0.000000000000000001":"");function p(c){c.key==="Enter"&&(c.stopPropagation(),d("confirm",c,{value:c.target.value}))}return()=>{var c=e.disabled&&_?M("input",{ref:u,value:v.value,tabindex:"-1",readonly:!!e.disabled,type:n.value,maxlength:v.maxlength,step:m.value,class:"uni-input-input",onFocus:w=>w.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):M("input",{ref:u,value:v.value,disabled:!!e.disabled,type:n.value,maxlength:v.maxlength,step:m.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",autocomplete:a.value,onKeyup:p},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return M("uni-input",{ref:l},[M("div",{class:"uni-input-wrapper"},[Cr(M("div",Ye(h.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Nr,!(v.value.length||o.value==="-")]]),e.confirmType==="search"?M("form",{action:"",onSubmit:w=>w.preventDefault(),class:"uni-input-form"},[c],40,["onSubmit"]):c])],512)}}});function l_(e){return Object.keys(e).map(t=>[t,e[t]])}var u_=["class","style"],f_=/^on[A-Z]+/,pf=(e={})=>{var{excludeListeners:t=!1,excludeKeys:r=[]}=e,i=xt(),n=xa({}),a=xa({}),o=xa({}),s=r.concat(u_);return i.attrs=Te(i.attrs),Lp(()=>{var l=l_(i.attrs).reduce((u,[v,h])=>(s.includes(v)?u.exclude[v]=h:f_.test(v)?(t||(u.attrs[v]=h),u.listeners[v]=h):u.attrs[v]=h,u),{exclude:{},attrs:{},listeners:{}});n.value=l.attrs,a.value=l.listeners,o.value=l.exclude}),{$attrs:n,$listeners:a,$excludeAttrs:o}},un,Vr;function fn(){Qt(()=>{un||(un=plus.webview.currentWebview()),Vr||(Vr=(un.getStyle()||{}).pullToRefresh||{})})}function It({disable:e}){Vr&&Vr.support&&un.setPullToRefresh(Object.assign({},Vr,{support:!e}))}function go(e){var t=[];return Array.isArray(e)&&e.forEach(r=>{Bi(r)?r.type===at?t.push(...go(r.children)):t.push(r):Array.isArray(r)&&t.push(...go(r))}),t}function jr(e){var t=xt();t.rebuild=e}var c_={scaleArea:{type:Boolean,default:!1}},v_=he({inheritAttrs:!1,name:"MovableArea",props:c_,setup(e,{slots:t}){var r=B(null),i=B(!1),{setContexts:n,events:a}=d_(e,r),{$listeners:o,$attrs:s,$excludeAttrs:l}=pf(),u=o.value,v=["onTouchstart","onTouchmove","onTouchend"];v.forEach(p=>{var c=u[p],w=a["_".concat(p)];u[p]=c?[].concat(c,w):w}),Oe(()=>{a._resize(),fn(),i.value=!0});var h=[],_=[];function d(){for(var p=[],c=function(f){var g=h[f];g instanceof Element||(g=g.el);var S=_.find(x=>g===x.rootRef.value);S&&p.push(Li(S))},w=0;w{h=r.value.children,d()});var b=p=>{_.push(p),d()},m=p=>{var c=_.indexOf(p);c>=0&&(_.splice(c,1),d())};return Ne("_isMounted",i),Ne("movableAreaRootRef",r),Ne("addMovableViewContext",b),Ne("removeMovableViewContext",m),()=>(t.default&&t.default(),M("uni-movable-area",Ye({ref:r},s.value,l.value,u),[M(jt,{onReize:a._resize},null,8,["onReize"]),h],16))}});function gf(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function d_(e,t){var r=B(0),i=B(0),n=Te({x:null,y:null}),a=B(null),o=null,s=[];function l(m){m&&m!==1&&(e.scaleArea?s.forEach(function(p){p._setScale(m)}):o&&o._setScale(m))}function u(m,p=s){var c=t.value;function w(f){for(var g=0;g{It({disable:!0});var p=m.touches;if(p&&p.length>1){var c={x:p[1].pageX-p[0].pageX,y:p[1].pageY-p[0].pageY};if(a.value=gf(c),n.x=c.x,n.y=c.y,!e.scaleArea){var w=u(p[0].target),f=u(p[1].target);o=w&&w===f?w:null}}}),h=Vt(m=>{var p=m.touches;if(p&&p.length>1){m.preventDefault();var c={x:p[1].pageX-p[0].pageX,y:p[1].pageY-p[0].pageY};if(n.x!==null&&a.value&&a.value>0){var w=gf(c)/a.value;l(w)}n.x=c.x,n.y=c.y}}),_=Vt(m=>{It({disable:!1});var p=m.touches;p&&p.length||m.changedTouches&&(n.x=0,n.y=0,a.value=null,e.scaleArea?s.forEach(function(c){c._endScale()}):o&&o._endScale())});function d(){b(),s.forEach(function(m,p){m.setParent()})}function b(){var m=window.getComputedStyle(t.value),p=t.value.getBoundingClientRect();r.value=p.width-["Left","Right"].reduce(function(c,w){var f="border"+w+"Width",g="padding"+w;return c+parseFloat(m[f])+parseFloat(m[g])},0),i.value=p.height-["Top","Bottom"].reduce(function(c,w){var f="border"+w+"Width",g="padding"+w;return c+parseFloat(m[f])+parseFloat(m[g])},0)}return Ne("movableAreaWidth",r),Ne("movableAreaHeight",i),{setContexts(m){s=m},events:{_onTouchstart:v,_onTouchmove:h,_onTouchend:_,_resize:d}}}var Hr=function(e,t,r,i){e.addEventListener(t,n=>{typeof r=="function"&&r(n)===!1&&((typeof n.cancelable!="undefined"?n.cancelable:!0)&&n.preventDefault(),n.stopPropagation())},{passive:!1})},mf,_f;function cn(e,t,r){Ee(()=>{document.removeEventListener("mousemove",mf),document.removeEventListener("mouseup",_f)});var i=0,n=0,a=0,o=0,s=function(d,b,m,p){if(t({target:d.target,currentTarget:d.currentTarget,preventDefault:d.preventDefault.bind(d),stopPropagation:d.stopPropagation.bind(d),touches:d.touches,changedTouches:d.changedTouches,detail:{state:b,x:m,y:p,dx:m-i,dy:p-n,ddx:m-a,ddy:p-o,timeStamp:d.timeStamp}})===!1)return!1},l=null,u,v;Hr(e,"touchstart",function(d){if(u=!0,d.touches.length===1&&!l)return l=d,i=a=d.touches[0].pageX,n=o=d.touches[0].pageY,s(d,"start",i,n)}),Hr(e,"mousedown",function(d){if(v=!0,!u&&!l)return l=d,i=a=d.pageX,n=o=d.pageY,s(d,"start",i,n)}),Hr(e,"touchmove",function(d){if(d.touches.length===1&&l){var b=s(d,"move",d.touches[0].pageX,d.touches[0].pageY);return a=d.touches[0].pageX,o=d.touches[0].pageY,b}});var h=mf=function(d){if(!u&&v&&l){var b=s(d,"move",d.pageX,d.pageY);return a=d.pageX,o=d.pageY,b}};document.addEventListener("mousemove",h),Hr(e,"touchend",function(d){if(d.touches.length===0&&l)return u=!1,l=null,s(d,"end",d.changedTouches[0].pageX,d.changedTouches[0].pageY)});var _=_f=function(d){if(v=!1,!u&&l)return l=null,s(d,"end",d.pageX,d.pageY)};document.addEventListener("mouseup",_),Hr(e,"touchcancel",function(d){if(l){u=!1;var b=l;return l=null,s(d,r?"cancel":"end",b.touches[0].pageX,b.touches[0].pageY)}})}function vn(e,t,r){return e>t-r&&ethis._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,r=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&rthis._endPositionY)&&(r=this._endPositionY),{x:t,y:r}},lt.prototype.ds=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},lt.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},lt.prototype.dt=function(){return-this._x_v/this._x_a},lt.prototype.done=function(){var e=vn(this.s().x,this._endPositionX)||vn(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},lt.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},lt.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function qe(e,t,r){this._m=e,this._k=t,this._c=r,this._solution=null,this._endPosition=0,this._startTime=0}qe.prototype._solve=function(e,t){var r=this._c,i=this._m,n=this._k,a=r*r-4*i*n;if(a===0){var o=-r/(2*i),s=e,l=t/(o*e);return{x:function(c){return(s+l*c)*Math.pow(Math.E,o*c)},dx:function(c){var w=Math.pow(Math.E,o*c);return o*(s+l*c)*w+l*w}}}if(a>0){var u=(-r-Math.sqrt(a))/(2*i),v=(-r+Math.sqrt(a))/(2*i),h=(t-u*e)/(v-u),_=e-h;return{x:function(c){var w,f;return c===this._t&&(w=this._powER1T,f=this._powER2T),this._t=c,w||(w=this._powER1T=Math.pow(Math.E,u*c)),f||(f=this._powER2T=Math.pow(Math.E,v*c)),_*w+h*f},dx:function(c){var w,f;return c===this._t&&(w=this._powER1T,f=this._powER2T),this._t=c,w||(w=this._powER1T=Math.pow(Math.E,u*c)),f||(f=this._powER2T=Math.pow(Math.E,v*c)),_*u*w+h*v*f}}}var d=Math.sqrt(4*i*n-r*r)/(2*i),b=-r/2*i,m=e,p=(t-b*e)/d;return{x:function(c){return Math.pow(Math.E,b*c)*(m*Math.cos(d*c)+p*Math.sin(d*c))},dx:function(c){var w=Math.pow(Math.E,b*c),f=Math.cos(d*c),g=Math.sin(d*c);return w*(p*d*f-m*d*g)+b*w*(p*g+m*f)}}},qe.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},qe.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},qe.prototype.setEnd=function(e,t,r){if(r||(r=new Date().getTime()),e!==this._endPosition||!Ht(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(Ht(t,.1)&&(t=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),Ht(t,.1)&&(t=0),Ht(i,.1)&&(i=0),i+=this._endPosition),this._solution&&Ht(i-e,.1)&&Ht(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=r)}},qe.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},qe.prototype.done=function(e){return e||(e=new Date().getTime()),vn(this.x(),this._endPosition,.1)&&Ht(this.dx(),.1)},qe.prototype.reconfigure=function(e,t,r){this._m=e,this._k=t,this._c=r,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())},qe.prototype.springConstant=function(){return this._k},qe.prototype.damping=function(){return this._c},qe.prototype.configuration=function(){function e(r,i){r.reconfigure(1,i,r.damping())}function t(r,i){r.reconfigure(1,r.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function Yr(e,t,r){this._springX=new qe(e,t,r),this._springY=new qe(e,t,r),this._springScale=new qe(e,t,r),this._startTime=0}Yr.prototype.setEnd=function(e,t,r,i){var n=new Date().getTime();this._springX.setEnd(e,i,n),this._springY.setEnd(t,i,n),this._springScale.setEnd(r,i,n),this._startTime=n},Yr.prototype.x=function(){var e=(new Date().getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Yr.prototype.done=function(){var e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Yr.prototype.reconfigure=function(e,t,r){this._springX.reconfigure(e,t,r),this._springY.reconfigure(e,t,r),this._springScale.reconfigure(e,t,r)};var h_={direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},p_=he({name:"MovableView",props:h_,emits:["change","scale"],setup(e,{slots:t,emit:r}){var i=B(null),n=Pe(i,r),{setParent:a}=g_(e,n,i);return()=>M("uni-movable-view",{ref:i},[M(jt,{onResize:a},null,8,["onResize"]),t.default&&t.default()],512)}}),_o=!1;function bf(e){_o||(_o=!0,requestAnimationFrame(function(){e(),_o=!1}))}function wf(e,t){if(e===t)return 0;var r=e.offsetLeft;return e.offsetParent?r+=wf(e.offsetParent,t):0}function yf(e,t){if(e===t)return 0;var r=e.offsetTop;return e.offsetParent?r+=yf(e.offsetParent,t):0}function Sf(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function xf(e,t,r){var i={id:0,cancelled:!1},n=function(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)};function a(o,s,l,u){if(!o||!o.cancelled){l(s);var v=s.done();v||o.cancelled||(o.id=requestAnimationFrame(a.bind(null,o,s,l,u))),v&&u&&u(s)}}return a(i,e,t,r),{cancel:n.bind(null,i),model:e}}function dn(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function g_(e,t,r){var i=ge("movableAreaWidth",B(0)),n=ge("movableAreaHeight",B(0)),a=ge("_isMounted",B(!1)),o=ge("movableAreaRootRef"),s=ge("addMovableViewContext",()=>{}),l=ge("removeMovableViewContext",()=>{}),u=B(dn(e.x)),v=B(dn(e.y)),h=B(Number(e.scaleValue)||1),_=B(0),d=B(0),b=B(0),m=B(0),p=B(0),c=B(0),w=null,f=null,g={x:0,y:0},S={x:0,y:0},x=1,E=1,C=0,L=0,W=!1,q=!1,X,ce,A=null,$=null,ee=new mo,ne=new mo,H={historyX:[0,0],historyY:[0,0],historyT:[0,0]},J=Q(()=>{var O=Number(e.damping);return isNaN(O)?20:O}),ie=Q(()=>{var O=Number(e.friction);return isNaN(O)||O<=0?2:O}),we=Q(()=>{var O=Number(e.scaleMin);return isNaN(O)?.5:O}),Y=Q(()=>{var O=Number(e.scaleMax);return isNaN(O)?10:O}),re=Q(()=>e.direction==="all"||e.direction==="horizontal"),le=Q(()=>e.direction==="all"||e.direction==="vertical"),ve=new Yr(1,9*Math.pow(J.value,2)/40,J.value),Me=new lt(1,ie.value);U(()=>e.x,O=>{u.value=dn(O)}),U(()=>e.y,O=>{v.value=dn(O)}),U(u,O=>{Ge(O)}),U(v,O=>{At(O)}),U(()=>e.scaleValue,O=>{h.value=Number(O)||0}),U(h,O=>{Kr(O)}),U(we,()=>{Ie()}),U(Y,()=>{Ie()});function Ce(){f&&f.cancel(),w&&w.cancel()}function Ge(O){if(re.value){if(O+S.x===C)return C;w&&w.cancel(),Z(O+S.x,v.value+S.y,x)}return O}function At(O){if(le.value){if(O+S.y===L)return L;w&&w.cancel(),Z(u.value+S.x,O+S.y,x)}return O}function Ie(){if(!e.scale)return!1;D(x,!0),k(x)}function Kr(O){return e.scale?(O=N(O),D(O,!0),k(O),O):!1}function Gr(){W||e.disabled||(It({disable:!0}),Ce(),H.historyX=[0,0],H.historyY=[0,0],H.historyT=[0,0],re.value&&(X=C),le.value&&(ce=L),r.value.style.willChange="transform",A=null,$=null,q=!0)}function y(O){if(!W&&!e.disabled&&q){var j=C,z=L;if($===null&&($=Math.abs(O.detail.dx/O.detail.dy)>1?"htouchmove":"vtouchmove"),re.value&&(j=O.detail.dx+X,H.historyX.shift(),H.historyX.push(j),!le.value&&A===null&&(A=Math.abs(O.detail.dx/O.detail.dy)<1)),le.value&&(z=O.detail.dy+ce,H.historyY.shift(),H.historyY.push(z),!re.value&&A===null&&(A=Math.abs(O.detail.dy/O.detail.dx)<1)),H.historyT.shift(),H.historyT.push(O.detail.timeStamp),!A){O.preventDefault();var de="touch";jp.value&&(e.outOfBounds?(de="touch-out-of-bounds",j=p.value+ee.x(j-p.value)):j=p.value),zc.value&&(e.outOfBounds?(de="touch-out-of-bounds",z=c.value+ne.x(z-c.value)):z=c.value),bf(function(){K(j,z,x,de)})}}}function T(){if(!W&&!e.disabled&&q&&(It({disable:!1}),r.value.style.willChange="auto",q=!1,!A&&!G("out-of-bounds")&&e.inertia)){var O=1e3*(H.historyX[1]-H.historyX[0])/(H.historyT[1]-H.historyT[0]),j=1e3*(H.historyY[1]-H.historyY[0])/(H.historyT[1]-H.historyT[0]);Me.setV(O,j),Me.setS(C,L);var z=Me.delta().x,de=Me.delta().y,se=z+C,Le=de+L;sep.value&&(se=p.value,Le=L+(p.value-C)*de/z),Lec.value&&(Le=c.value,se=C+(c.value-L)*z/de),Me.setEnd(se,Le),f=xf(Me,function(){var Ue=Me.s(),Ae=Ue.x,tt=Ue.y;K(Ae,tt,x,"friction")},function(){f.cancel()})}!e.outOfBounds&&!e.inertia&&Ce()}function I(O,j){var z=!1;return O>p.value?(O=p.value,z=!0):Oc.value?(j=c.value,z=!0):j{cn(r.value,j=>{switch(j.detail.state){case"start":Gr();break;case"move":y(j);break;case"end":T()}}),ue(),Me.reconfigure(1,ie.value),ve.reconfigure(1,9*Math.pow(J.value,2)/40,J.value),r.value.style.transformOrigin="center",fn();var O={rootRef:r,setParent:ue,_endScale:Re,_setScale:Se};s(O),yt(()=>{l(O)})}),yt(()=>{Ce()}),{setParent:ue}}var m_=["navigate","redirect","switchTab","reLaunch","navigateBack"],__={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return Boolean(~m_.indexOf(e))}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1}},b_=he({name:"Navigator",compatConfig:{MODE:3},props:__,setup(e,{slots:t}){var{hovering:r,binding:i}=uo(e);function n(a){if(e.openType!=="navigateBack"&&!e.url){console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}switch(e.openType){case"navigate":uni.navigateTo({url:e.url});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta});break}}return()=>{var{hoverClass:a}=e,o=e.hoverClass&&e.hoverClass!=="none";return M("uni-navigator",Ye({class:o&&r.value?a:""},o&&i,{onClick:n}),[t.default&&t.default()],16,["onClick"])}}}),w_={value:{type:Array,default(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function y_(e){var t=Te([...e.value]),r=Te({value:t,height:34});return U(()=>e.value,(i,n)=>{(i===n||i.length!==n.length||i.findIndex((a,o)=>a!==n[o])>=0)&&(r.value.length=i.length,i.forEach((a,o)=>{a!==r.value[o]&&r.value.splice(o,1,a)}))}),r}var S_=he({name:"PickerView",props:w_,emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:r}){var i=B(null),n=B(null),a=Pe(i,r),o=y_(e),s=B(null),l=()=>{var _=s.value;o.height=_.$el.offsetHeight},u=B([]);function v(_){var d=u.value;return d instanceof HTMLCollection?Array.prototype.indexOf.call(d,_.el):d.indexOf(_)}var h=function(_){var d=Q({get(){var b=v(_.vnode);return o.value[b]||0},set(b){var m=v(_.vnode);if(!(m<0)){var p=o.value[m];if(p!==b){o.value.splice(m,1,b);var c=o.value.map(w=>w);r("update:value",c),a("change",{},{value:c})}}}});return d};return Ne("getPickerViewColumn",h),Ne("pickerViewProps",e),Ne("pickerViewState",o),jr(()=>{l(),u.value=n.value.children}),()=>{var _=t.default&&t.default();return M("uni-picker-view",{ref:i},[M(jt,{ref:s,onResize:({height:d})=>o.height=d},null,8,["onResize"]),M("div",{ref:n,class:"uni-picker-view-wrapper"},[_],512)],512)}}});class Tf{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,r){this._x=t,this._v=r,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*r/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*r}done(){return Math.abs(this.dx())<3}reconfigure(t){var r=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(r,i)}configuration(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(r){t.reconfigure(r)},min:.001,max:.1,step:.001}]}}function Ef(e,t,r){return e>t-r&&e0){var v=(-i-Math.sqrt(o))/(2*n),h=(-i+Math.sqrt(o))/(2*n),_=(r-v*t)/(h-v),d=t-_;return{x:function(w){var f,g;return w===this._t&&(f=this._powER1T,g=this._powER2T),this._t=w,f||(f=this._powER1T=Math.pow(Math.E,v*w)),g||(g=this._powER2T=Math.pow(Math.E,h*w)),d*f+_*g},dx:function(w){var f,g;return w===this._t&&(f=this._powER1T,g=this._powER2T),this._t=w,f||(f=this._powER1T=Math.pow(Math.E,v*w)),g||(g=this._powER2T=Math.pow(Math.E,h*w)),d*v*f+_*h*g}}}var b=Math.sqrt(4*n*a-i*i)/(2*n),m=-i/2*n,p=t,c=(r-m*t)/b;return{x:function(w){return Math.pow(Math.E,m*w)*(p*Math.cos(b*w)+c*Math.sin(b*w))},dx:function(w){var f=Math.pow(Math.E,m*w),g=Math.cos(b*w),S=Math.sin(b*w);return f*(c*b*g-p*b*S)+m*f*(c*S+p*g)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,r,i){if(i||(i=new Date().getTime()),t!==this._endPosition||!Yt(r,.4)){r=r||0;var n=this._endPosition;this._solution&&(Yt(r,.4)&&(r=this._solution.dx((i-this._startTime)/1e3)),n=this._solution.x((i-this._startTime)/1e3),Yt(r,.4)&&(r=0),Yt(n,.4)&&(n=0),n+=this._endPosition),this._solution&&Yt(n-t,.4)&&Yt(r,.4)||(this._endPosition=t,this._solution=this._solve(n-this._endPosition,r),this._startTime=i)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),Ef(this.x(),this._endPosition,.4)&&Yt(this.dx(),.4)}reconfigure(t,r,i){this._m=t,this._k=r,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(i,n){i.reconfigure(1,n,i.damping())}function r(i,n){i.reconfigure(1,i.springConstant(),n)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:r.bind(this,this),min:1,max:500}]}}class x_{constructor(t,r,i){this._extent=t,this._friction=r||new Tf(.01),this._spring=i||new Cf(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,r){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(r)}set(t,r){this._friction.set(t,r),t>0&&r>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&r<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var r=this._friction.x(t),i=this.dx(t);return(r>0&&i>=0||r<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),r<-this._extent?this._springOffset=-this._extent:this._springOffset=0,r=this._spring.x()+this._springOffset),r}dx(t){var r;return this._lastTime===t?r=this._lastDx:r=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=r,r}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function T_(e,t,r){var i={id:0,cancelled:!1};function n(o,s,l,u){if(!o||!o.cancelled){l(s);var v=s.done();v||o.cancelled||(o.id=requestAnimationFrame(n.bind(null,o,s,l,u))),v&&u&&u(s)}}function a(o){o&&o.id&&cancelAnimationFrame(o.id),o&&(o.cancelled=!0)}return n(i,e,t,r),{cancel:a.bind(null,i),model:e}}class E_{constructor(t,r){r=r||{},this._element=t,this._options=r,this._enableSnap=r.enableSnap||!1,this._itemSize=r.itemSize||0,this._enableX=r.enableX||!1,this._enableY=r.enableY||!1,this._shouldDispatchScrollEvent=!!r.onScroll,this._enableX?(this._extent=(r.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=r.scrollWidth):(this._extent=(r.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=r.scrollHeight),this._position=0,this._scroll=new x_(this._extent,r.friction,r.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,r){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=r),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,r,i){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(r)this._itemSize/2?a-(this._itemSize-Math.abs(o)):a-o,n<=0&&n>=-this._extent&&this._scroll.setVelocityByEnd(n)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=T_(this._scroll,()=>{var s=Date.now(),l=(s-this._scroll._startTime)/1e3,u=this._scroll.x(l);this._position=u,this.updatePosition();var v=this._scroll.dx(l);this._shouldDispatchScrollEvent&&s-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/v),this._lastTime=s)},()=>{this._enableSnap&&(n<=0&&n>=-this._extent&&(this._position=n,this.updatePosition()),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var t=this._itemSize,r=this._position%t,i=Math.abs(r)>this._itemSize/2?this._position-(t-Math.abs(r)):this._position-r;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,r){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var i="transform "+(r||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+i,this._element.style.transition=i,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(typeof this._options.onScroll=="function"&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,r,i){var n=0,a=this._position;this._enableX?(n=this._element.childNodes.length?(r||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=r):(n=this._element.childNodes.length?(r||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=r),typeof t=="number"&&(this._position=-t),this._position<-n?this._position=-n:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),a!==this._position&&(this.dispatchScroll(),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=n,this._scroll._extent=n}updatePosition(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function C_(e,t){var r={trackingID:-1,maxDy:0,maxDx:0},i=new E_(e,t);function n(l){var u=l,v=l;return u.detail.state==="move"||u.detail.state==="end"?{x:u.detail.dx,y:u.detail.dy}:{x:v.screenX-r.x,y:v.screenY-r.y}}function a(l){var u=l,v=l;u.detail.state==="start"?(r.trackingID="touch",r.x=u.detail.x,r.y=u.detail.y):(r.trackingID="mouse",r.x=v.screenX,r.y=v.screenY),r.maxDx=0,r.maxDy=0,r.historyX=[0],r.historyY=[0],r.historyTime=[u.detail.timeStamp||v.timeStamp],r.listener=i,i.onTouchStart&&i.onTouchStart(),l.preventDefault()}function o(l){var u=l,v=l;if(r.trackingID!==-1){l.preventDefault();var h=n(l);if(h){for(r.maxDy=Math.max(r.maxDy,Math.abs(h.y)),r.maxDx=Math.max(r.maxDx,Math.abs(h.x)),r.historyX.push(h.x),r.historyY.push(h.y),r.historyTime.push(u.detail.timeStamp||v.timeStamp);r.historyTime.length>10;)r.historyTime.shift(),r.historyX.shift(),r.historyY.shift();r.listener&&r.listener.onTouchMove&&r.listener.onTouchMove(h.x,h.y)}}}function s(l){if(r.trackingID!==-1){l.preventDefault();var u=n(l);if(u){var v=r.listener;r.trackingID=-1,r.listener=null;var h=r.historyTime.length,_={x:0,y:0};if(h>2)for(var d=r.historyTime.length-1,b=r.historyTime[d],m=r.historyX[d],p=r.historyY[d];d>0;){d--;var c=r.historyTime[d],w=b-c;if(w>30&&w<50){_.x=(m-r.historyX[d])/(w/1e3),_.y=(p-r.historyY[d])/(w/1e3);break}}r.historyTime=[],r.historyX=[],r.historyY=[],v&&v.onTouchEnd&&v.onTouchEnd(u.x,u.y,_)}}}return{scroller:i,handleTouchStart:a,handleTouchMove:o,handleTouchEnd:s}}var O_=0;function M_(e){var t="uni-picker-view-content-".concat(O_++);function r(){var i=document.createElement("style");i.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(i)}return U(()=>e.value,r),t}function I_(e){var t=20,r=0,i=0;e.addEventListener("touchstart",n=>{var a=n.changedTouches[0];r=a.clientX,i=a.clientY}),e.addEventListener("touchend",n=>{var a=n.changedTouches[0];if(Math.abs(a.clientX-r){s[u]=a[u]}),n.target.dispatchEvent(s)}})}var A_=he({name:"PickerViewColumn",setup(e,{slots:t,emit:r}){var i=B(null),n=B(null),a=ge("getPickerViewColumn"),o=xt(),s=a?a(o):B(0),l=ge("pickerViewProps"),u=ge("pickerViewState"),v=B(34),h=B(null),_=()=>{var C=h.value;v.value=C.$el.offsetHeight},d=Q(()=>(u.height-v.value)/2),{state:b}=cf(),m=M_(v),p,c=Te({current:s.value,length:0}),w;function f(){p&&!w&&(w=!0,or(()=>{w=!1;var C=Math.min(c.current,c.length-1);C=Math.max(C,0),p.update(C*v.value,void 0,v.value)}))}U(()=>s.value,C=>{C!==c.current&&(c.current=C,f())}),U(()=>c.current,C=>s.value=C),U([()=>v.value,()=>c.length,()=>u.height],f);var g=0;function S(C){var L=g+C.deltaY;if(Math.abs(L)>10){g=0;var W=Math.min(c.current+(L<0?-1:1),c.length-1);c.current=W=Math.max(W,0),p.scrollTo(W*v.value)}else g=L;C.preventDefault()}function x({clientY:C}){var L=i.value;if(!p.isScrolling()){var W=L.getBoundingClientRect(),q=C-W.top-u.height/2,X=v.value/2;if(!(Math.abs(q)<=X)){var ce=Math.ceil((Math.abs(q)-X)/v.value),A=q<0?-ce:ce,$=Math.min(c.current+A,c.length-1);c.current=$=Math.max($,0),p.scrollTo($*v.value)}}}var E=()=>{var C=i.value,L=n.value,{scroller:W,handleTouchStart:q,handleTouchMove:X,handleTouchEnd:ce}=C_(L,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:v.value,friction:new Tf(1e-4),spring:new Cf(2,90,20),onSnap:A=>{!isNaN(A)&&A!==c.current&&(c.current=A)}});p=W,cn(C,A=>{switch(A.detail.state){case"start":q(A),It({disable:!0});break;case"move":X(A);break;case"end":case"cancel":ce(A),It({disable:!1})}},!0),I_(C),fn(),f()};return jr(()=>{c.length=n.value.children.length,_(),E()}),()=>{var C=t.default&&t.default(),L="".concat(d.value,"px 0");return M("uni-picker-view-column",{ref:i},[M("div",{onWheel:S,onClick:x,class:"uni-picker-view-group"},[M("div",Ye(b.attrs,{class:["uni-picker-view-mask",l.maskClass],style:"background-size: 100% ".concat(d.value,"px;").concat(l.maskStyle)}),null,16),M("div",Ye(b.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[M(jt,{ref:h,onResize:({height:W})=>v.value=W},null,8,["onResize"])],16),M("div",{ref:n,class:["uni-picker-view-content",m],style:{padding:L}},[C],6)],40,["onWheel","onClick"])],512)}}}),zt={activeColor:wi,backgroundColor:"#EBEBEB",activeMode:"backwards"},P_={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:zt.activeColor},activeColor:{type:String,default:zt.activeColor},backgroundColor:{type:String,default:zt.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:zt.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}}},R_=he({name:"Progress",props:P_,setup(e){var t=L_(e);return Of(t,e),U(()=>t.realPercent,(r,i)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=i||0,Of(t,e)}),()=>{var{showInfo:r}=e,{outerBarStyle:i,innerBarStyle:n,currentPercent:a}=t;return M("uni-progress",{class:"uni-progress"},[M("div",{style:i,class:"uni-progress-bar"},[M("div",{style:n,class:"uni-progress-inner-bar"},null,4)],4),r?M("p",{class:"uni-progress-info"},[a+"%"]):""])}}});function L_(e){var t=B(0),r=Q(()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;")),i=Q(()=>{var o=e.color!==zt.activeColor&&e.activeColor===zt.activeColor?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(o)}),n=Q(()=>{var o=parseFloat(e.percent);return o<0&&(o=0),o>100&&(o=100),o}),a=Te({outerBarStyle:r,innerBarStyle:i,realPercent:n,currentPercent:t,strokeTimer:0,lastPercent:0});return a}function Of(e,t){t.active?(e.currentPercent=t.activeMode===zt.activeMode?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}var Mf=Gi("ucg"),N_={name:{type:String,default:""}},k_=he({name:"RadioGroup",props:N_,setup(e,{emit:t,slots:r}){var i=B(null),n=Pe(i,t);return D_(e,n),()=>M("uni-radio-group",{ref:i},[r.default&&r.default()],512)}});function D_(e,t){var r=[];Oe(()=>{s(r.length-1)});var i=()=>{var l;return(l=r.find(u=>u.value.radioChecked))===null||l===void 0?void 0:l.value.value};Ne(Mf,{addField(l){r.push(l)},removeField(l){r.splice(r.indexOf(l),1)},radioChange(l,u){var v=r.indexOf(u);s(v,!0),t("change",l,{value:i()})}});var n=ge(st,!1),a={submit:()=>{var l=["",null];return e.name!==""&&(l[0]=e.name,l[1]=i()),l}};n&&(n.addField(a),Ee(()=>{n.removeField(a)}));function o(l,u){l.value={radioChecked:u,value:l.value.value}}function s(l,u){r.forEach((v,h)=>{h!==l&&(u?o(r[h],!1):r.forEach((_,d)=>{h>=d||r[d].value.radioChecked&&o(r[h],!1)}))})}return r}var B_={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},F_=he({name:"Radio",props:B_,setup(e,{slots:t}){var r=B(e.checked),i=B(e.value),n=Q(()=>"background-color: ".concat(e.color,";border-color: ").concat(e.color,";"));U([()=>e.checked,()=>e.value],([v,h])=>{r.value=v,i.value=h});var a=()=>{r.value=!1},{uniCheckGroup:o,uniLabel:s,field:l}=$_(r,i,a),u=v=>{e.disabled||(r.value=!0,o&&o.radioChange(v,l))};return s&&(s.addHandler(u),Ee(()=>{s.removeHandler(u)})),rn(e,{"label-click":u}),()=>{var v=Br(e,"disabled");return M("uni-radio",Ye(v,{onClick:u}),[M("div",{class:"uni-radio-wrapper"},[M("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:r.value?n.value:""},[r.value?Ji(Zi,"#fff",18):""],6),t.default&&t.default()])],16,["onClick"])}}});function $_(e,t,r){var i=Q({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:l})=>{e.value=l}}),n={reset:r},a=ge(Mf,!1);a&&a.addField(i);var o=ge(st,!1);o&&o.addField(n);var s=ge(Fr,!1);return Ee(()=>{a&&a.removeField(i),o&&o.removeField(n)}),{uniCheckGroup:a,uniForm:o,uniLabel:s,field:i}}function W_(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}function U_(e){return e.reduce(function(t,r){var i=r.value,n=r.name;return i.match(/ /)&&n!=="style"&&(i=i.split(" ")),t[n]?Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i,t},{})}function V_(e){e=W_(e);var t=[],r={node:"root",children:[]};return of(e,{start:function(i,n,a){var o={name:i};if(n.length!==0&&(o.attrs=U_(n)),a){var s=t[0]||r;s.children||(s.children=[]),s.children.push(o)}else t.unshift(o)},end:function(i){var n=t.shift();if(n.name!==i&&console.error("invalid state: mismatch end tag"),t.length===0)r.children.push(n);else{var a=t[0];a.children||(a.children=[]),a.children.push(n)}},chars:function(i){var n={type:"text",text:i};if(t.length===0)r.children.push(n);else{var a=t[0];a.children||(a.children=[]),a.children.push(n)}},comment:function(i){var n={node:"comment",text:i},a=t[0];a.children||(a.children=[]),a.children.push(n)}}),r.children}var If={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},bo={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function j_(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,r){if(te(bo,r)&&bo[r])return bo[r];if(/^#[0-9]{1,4}$/.test(r))return String.fromCharCode(r.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(r))return String.fromCharCode("0"+r.slice(1));var i=document.createElement("div");return i.innerHTML=t,i.innerText||i.textContent})}function Af(e,t,r){return e.forEach(function(i){if(!!rt(i))if(!te(i,"type")||i.type==="node"){if(!(typeof i.name=="string"&&i.name))return;var n=i.name.toLowerCase();if(!te(If,n))return;var a=document.createElement(n);if(!a)return;var o=i.attrs;if(rt(o)){var s=If[n]||[];Object.keys(o).forEach(function(u){var v=o[u];switch(u){case"class":Array.isArray(v)&&(v=v.join(" "));case"style":a.setAttribute(u,v),r&&a.setAttribute(r,"");break;default:s.indexOf(u)!==-1&&a.setAttribute(u,v)}})}var l=i.children;Array.isArray(l)&&l.length&&Af(i.children,a),t.appendChild(a)}else i.type==="text"&&typeof i.text=="string"&&i.text!==""&&t.appendChild(document.createTextNode(j_(i.text)))}),t}var H_={nodes:{type:[Array,String],default:function(){return[]}}},Y_=he({name:"RichText",compatConfig:{MODE:3},props:H_,setup(e){var t=xt(),r=B(null);function i(n){typeof n=="string"&&(n=V_(n));var a=Af(n,document.createDocumentFragment(),(t==null?void 0:t.root.type).__scopeId||"");r.value.firstElementChild.innerHTML="",r.value.firstElementChild.appendChild(a)}return U(()=>e.nodes,n=>{i(n)}),Oe(()=>{i(e.nodes)}),()=>M("uni-rich-text",{ref:r},[M("div",null,null)],512)}}),wo=Qn(!0),z_={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},q_=he({name:"ScrollView",compatConfig:{MODE:3},props:z_,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:r}){var i=B(null),n=B(null),a=B(null),o=B(null),s=B(null),l=Pe(i,t),{state:u,scrollTopNumber:v,scrollLeftNumber:h}=X_(e);K_(e,u,v,h,l,i,n,o,t);var _=Q(()=>{var d="";return e.scrollX?d+="overflow-x:auto;":d+="overflow-x:hidden;",e.scrollY?d+="overflow-y:auto;":d+="overflow-y:hidden;",d});return()=>{var{refresherEnabled:d,refresherBackground:b,refresherDefaultStyle:m}=e,{refresherHeight:p,refreshState:c,refreshRotate:w}=u;return M("uni-scroll-view",{ref:i},[M("div",{ref:a,class:"uni-scroll-view"},[M("div",{ref:n,style:_.value,class:"uni-scroll-view"},[M("div",{ref:o,class:"uni-scroll-view-content"},[d?M("div",{ref:s,style:{backgroundColor:b,height:p+"px"},class:"uni-scroll-view-refresher"},[m!=="none"?M("div",{class:"uni-scroll-view-refresh"},[M("div",{class:"uni-scroll-view-refresh-inner"},[c=="pulling"?M("svg",{key:"refresh__icon",style:{transform:"rotate("+w+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[M("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),M("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,c=="refreshing"?M("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[M("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,m=="none"?r.refresher&&r.refresher():null],4):null,r.default&&r.default()],512)],4)],512)],512)}}});function X_(e){var t=Q(()=>Number(e.scrollTop)||0),r=Q(()=>Number(e.scrollLeft)||0),i=Te({lastScrollTop:t.value,lastScrollLeft:r.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:i,scrollTopNumber:t,scrollLeftNumber:r}}function K_(e,t,r,i,n,a,o,s,l){var u=!1,v=0,h=!1,_=()=>{},d=Q(()=>{var x=Number(e.upperThreshold);return isNaN(x)?50:x}),b=Q(()=>{var x=Number(e.lowerThreshold);return isNaN(x)?50:x});function m(x,E){var C=o.value,L=0,W="";if(x<0?x=0:E==="x"&&x>C.scrollWidth-C.offsetWidth?x=C.scrollWidth-C.offsetWidth:E==="y"&&x>C.scrollHeight-C.offsetHeight&&(x=C.scrollHeight-C.offsetHeight),E==="x"?L=C.scrollLeft-x:E==="y"&&(L=C.scrollTop-x),L!==0){var q=s.value;q.style.transition="transform .3s ease-out",q.style.webkitTransition="-webkit-transform .3s ease-out",E==="x"?W="translateX("+L+"px) translateZ(0)":E==="y"&&(W="translateY("+L+"px) translateZ(0)"),q.removeEventListener("transitionend",_),q.removeEventListener("webkitTransitionEnd",_),_=()=>g(x,E),q.addEventListener("transitionend",_),q.addEventListener("webkitTransitionEnd",_),E==="x"?C.style.overflowX="hidden":E==="y"&&(C.style.overflowY="hidden"),q.style.transform=W,q.style.webkitTransform=W}}function p(x){var E=x.target;n("scroll",x,{scrollLeft:E.scrollLeft,scrollTop:E.scrollTop,scrollHeight:E.scrollHeight,scrollWidth:E.scrollWidth,deltaX:t.lastScrollLeft-E.scrollLeft,deltaY:t.lastScrollTop-E.scrollTop}),e.scrollY&&(E.scrollTop<=d.value&&t.lastScrollTop-E.scrollTop>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(n("scrolltoupper",x,{direction:"top"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollTop+E.offsetHeight+b.value>=E.scrollHeight&&t.lastScrollTop-E.scrollTop<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(n("scrolltolower",x,{direction:"bottom"}),t.lastScrollToLowerTime=x.timeStamp)),e.scrollX&&(E.scrollLeft<=d.value&&t.lastScrollLeft-E.scrollLeft>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(n("scrolltoupper",x,{direction:"left"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollLeft+E.offsetWidth+b.value>=E.scrollWidth&&t.lastScrollLeft-E.scrollLeft<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(n("scrolltolower",x,{direction:"right"}),t.lastScrollToLowerTime=x.timeStamp)),t.lastScrollTop=E.scrollTop,t.lastScrollLeft=E.scrollLeft}function c(x){e.scrollY&&(e.scrollWithAnimation?m(x,"y"):o.value.scrollTop=x)}function w(x){e.scrollX&&(e.scrollWithAnimation?m(x,"x"):o.value.scrollLeft=x)}function f(x){if(x){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(x)){console.error("id error: scroll-into-view=".concat(x));return}var E=a.value.querySelector("#"+x);if(E){var C=o.value.getBoundingClientRect(),L=E.getBoundingClientRect();if(e.scrollX){var W=L.left-C.left,q=o.value.scrollLeft,X=q+W;e.scrollWithAnimation?m(X,"x"):o.value.scrollLeft=X}if(e.scrollY){var ce=L.top-C.top,A=o.value.scrollTop,$=A+ce;e.scrollWithAnimation?m($,"y"):o.value.scrollTop=$}}}}function g(x,E){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";var C=o.value;E==="x"?(C.style.overflowX=e.scrollX?"auto":"hidden",C.scrollLeft=x):E==="y"&&(C.style.overflowY=e.scrollY?"auto":"hidden",C.scrollTop=x),s.value.removeEventListener("transitionend",_),s.value.removeEventListener("webkitTransitionEnd",_)}function S(x){switch(x){case"refreshing":t.refresherHeight=e.refresherThreshold,u||(u=!0,n("refresherrefresh",{},{}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":u=!1,t.refresherHeight=v=0,x==="restore"&&(h=!1,n("refresherrestore",{},{})),x==="refresherabort"&&h&&(h=!1,n("refresherabort",{},{}));break}t.refreshState=x}Oe(()=>{or(()=>{c(r.value),w(i.value)}),f(e.scrollIntoView);var x=function(X){X.stopPropagation(),p(X)},E={x:0,y:0},C=null,L=function(X){var ce=X.touches[0].pageX,A=X.touches[0].pageY,$=o.value;if(Math.abs(ce-E.x)>Math.abs(A-E.y))if(e.scrollX){if($.scrollLeft===0&&ce>E.x){C=!1;return}else if($.scrollWidth===$.offsetWidth+$.scrollLeft&&ceE.y)C=!1,e.refresherEnabled&&X.cancelable!==!1&&X.preventDefault();else if($.scrollHeight===$.offsetHeight+$.scrollTop&&A0&&(h=!0,n("refresherpulling",X,{deltaY:ee})));var ne=t.refresherHeight/e.refresherThreshold;t.refreshRotate=(ne>1?1:ne)*360}},W=function(X){X.touches.length===1&&(It({disable:!0}),E={x:X.touches[0].pageX,y:X.touches[0].pageY})},q=function(X){E={x:0,y:0},It({disable:!1}),t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort")};o.value.addEventListener("touchstart",W,wo),o.value.addEventListener("touchmove",L),o.value.addEventListener("scroll",x,wo),o.value.addEventListener("touchend",q,wo),fn(),Ee(()=>{o.value.removeEventListener("touchstart",W),o.value.removeEventListener("touchmove",L),o.value.removeEventListener("scroll",x),o.value.removeEventListener("touchend",q)})}),Oa(()=>{e.scrollY&&(o.value.scrollTop=t.lastScrollTop),e.scrollX&&(o.value.scrollLeft=t.lastScrollLeft)}),U(r,x=>{c(x)}),U(i,x=>{w(x)}),U(()=>e.scrollIntoView,x=>{f(x)}),U(()=>e.refresherTriggered,x=>{x===!0?S("refreshing"):x===!1&&S("restore")})}var G_={name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},Z_=he({name:"Slider",props:G_,emits:["changing","change"],setup(e,{emit:t}){var r=B(null),i=B(null),n=B(null),a=B(Number(e.value));U(()=>e.value,v=>{a.value=Number(v)});var o=Pe(r,t),s=J_(e,a),{_onClick:l,_onTrack:u}=Q_(e,a,r,i,o);return Oe(()=>{cn(n.value,u)}),()=>{var{setBgColor:v,setBlockBg:h,setActiveColor:_,setBlockStyle:d}=s;return M("uni-slider",{ref:r,onClick:Vt(l)},[M("div",{class:"uni-slider-wrapper"},[M("div",{class:"uni-slider-tap-area"},[M("div",{style:v.value,class:"uni-slider-handle-wrapper"},[M("div",{ref:n,style:h.value,class:"uni-slider-handle"},null,4),M("div",{style:d.value,class:"uni-slider-thumb"},null,4),M("div",{style:_.value,class:"uni-slider-track"},null,4)],4)]),Cr(M("span",{ref:i,class:"uni-slider-value"},[a.value],512),[[Nr,e.showValue]])]),M("slot",null,null)],8,["onClick"])}}});function J_(e,t){var r=()=>{var o=Number(e.max),s=Number(e.min);return 100*(t.value-s)/(o-s)+"%"},i=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",n=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9",a={setBgColor:Q(()=>({backgroundColor:i()})),setBlockBg:Q(()=>({left:r()})),setActiveColor:Q(()=>({backgroundColor:n(),width:r()})),setBlockStyle:Q(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:r(),backgroundColor:e.blockColor}))};return a}function Q_(e,t,r,i,n){var a=h=>{e.disabled||(s(h),n("change",h,{value:t.value}))},o=h=>{var _=Number(e.max),d=Number(e.min),b=Number(e.step);return h_?_:eb.mul.call(Math.round((h-d)/b),b)+d},s=h=>{var _=Number(e.max),d=Number(e.min),b=i.value,m=getComputedStyle(b,null).marginLeft,p=b.offsetWidth;p=p+parseInt(m);var c=r.value,w=c.offsetWidth-(e.showValue?p:0),f=c.getBoundingClientRect().left,g=(h.x-f)*(_-d)/w+d;t.value=o(g)},l=h=>{if(!e.disabled)return h.detail.state==="move"?(s({x:h.detail.x}),n("changing",h,{value:t.value}),!1):h.detail.state==="end"&&n("change",h,{value:t.value})},u=ge(st,!1);if(u){var v={reset:()=>t.value=Number(e.min),submit:()=>{var h=["",null];return e.name!==""&&(h[0]=e.name,h[1]=t.value),h}};u.addField(v),Ee(()=>{u.removeField(v)})}return{_onClick:a,_onTrack:l}}var eb={mul:function(e){var t=0,r=this.toString(),i=e.toString();try{t+=r.split(".")[1].length}catch(n){}try{t+=i.split(".")[1].length}catch(n){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)}},tb={indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}};function rb(e){var t=Q(()=>{var a=Number(e.interval);return isNaN(a)?5e3:a}),r=Q(()=>{var a=Number(e.duration);return isNaN(a)?500:a}),i=Q(()=>{var a=Math.round(e.displayMultipleItems);return isNaN(a)?1:a}),n=Te({interval:t,duration:r,displayMultipleItems:i,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1});return n}function ib(e,t,r,i,n,a){function o(){s&&(clearTimeout(s),s=null)}var s=null,l=!0,u=0,v=1,h=null,_=!1,d=0,b,m="",p,c=Q(()=>e.circular&&r.value.length>t.displayMultipleItems);function w(A){if(!l)for(var $=r.value,ee=$.length,ne=A+t.displayMultipleItems,H=0;H=J.length&&(A-=J.length),A=b%1>.5||b<0?A-1:A,a("transition",{},{dx:e.vertical?0:A*H.offsetWidth,dy:e.vertical?A*H.offsetHeight:0})}function g(){h&&(f(h.toPos),h=null)}function S(A){var $=r.value.length;if(!$)return-1;var ee=(Math.round(A)%$+$)%$;if(c.value){if($<=t.displayMultipleItems)return 0}else if(ee>$-t.displayMultipleItems)return $-t.displayMultipleItems;return ee}function x(){h=null}function E(){if(!h){_=!1;return}var A=h,$=A.toPos,ee=A.acc,ne=A.endTime,H=A.source,J=ne-Date.now();if(J<=0){f($),h=null,_=!1,b=null;var ie=r.value[t.current];if(ie){var we=ie.getItemId();a("animationfinish",{},{current:t.current,currentItemId:we,source:H})}return}var Y=ee*J*J/2,re=$+Y;f(re),p=requestAnimationFrame(E)}function C(A,$,ee){x();var ne=t.duration,H=r.value.length,J=u;if(c.value)if(ee<0){for(;JA;)J-=H}else if(ee>0){for(;J>A;)J-=H;for(;J+HA;)J-=H;J+H-A0&&v<1||(v=1)}var J=u;u=-2;var ie=t.current;ie>=0?(l=!1,t.userTracking?(f(J+ie-d),d=ie):(f(ie),e.autoplay&&L())):(l=!0,f(-t.displayMultipleItems-1))}U([()=>e.current,()=>e.currentItemId,()=>[...r.value]],()=>{var A=-1;if(e.currentItemId)for(var $=0,ee=r.value;$e.vertical,()=>c.value,()=>t.displayMultipleItems,()=>[...r.value]],W),U(()=>t.interval,()=>{s&&(o(),L())});function q(A,$){var ee=m;m="";var ne=r.value;if(!ee){var H=ne.length;C(A,"",c.value&&$+(H-A)%H>H/2?1:0)}var J=ne[A];if(J){var ie=t.currentItemId=J.getItemId();a("change",{},{current:t.current,currentItemId:ie,source:ee})}}U(()=>t.current,(A,$)=>{q(A,$),n("update:current",A)}),U(()=>t.currentItemId,A=>{n("update:currentItemId",A)});function X(A){A?L():o()}U(()=>e.autoplay&&!t.userTracking,X),X(e.autoplay&&!t.userTracking),Oe(()=>{var A=!1,$=0,ee=0;function ne(){o(),d=u,$=0,ee=Date.now(),x()}function H(ie){var we=ee;ee=Date.now();var Y=r.value.length,re=Y-t.displayMultipleItems;function le(Ge){return .5-.25/(Ge+.5)}function ve(Ge,At){var Ie=d+Ge;$=.6*$+.4*At,c.value||(Ie<0||Ie>re)&&(Ie<0?Ie=-le(-Ie):Ie>re&&(Ie=re+le(Ie-re)),$=0),f(Ie)}var Me=ee-we||1,Ce=i.value;e.vertical?ve(-ie.dy/Ce.offsetHeight,-ie.ddy/Me):ve(-ie.dx/Ce.offsetWidth,-ie.ddx/Me)}function J(ie){t.userTracking=!1;var we=$/Math.abs($),Y=0;!ie&&Math.abs($)>.2&&(Y=.5*we);var re=S(u+Y);ie?f(d):(m="touch",t.current=re,C(re,"touch",Y!==0?Y:re===0&&c.value&&u>=1?1:0))}cn(i.value,ie=>{if(!e.disableTouch&&!l){if(ie.detail.state==="start")return t.userTracking=!0,A=!1,ne();if(ie.detail.state==="end")return J(!1);if(ie.detail.state==="cancel")return J(!0);if(t.userTracking){if(!A){A=!0;var we=Math.abs(ie.detail.dx),Y=Math.abs(ie.detail.dy);if((we>=Y&&e.vertical||we<=Y&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&L();return}}return H(ie.detail),!1}}})}),yt(()=>{o(),cancelAnimationFrame(p)});function ce(A){C(t.current=A,m="click",c.value?1:0)}return{onSwiperDotClick:ce}}var nb=he({name:"Swiper",props:tb,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:r}){var i=B(null),n=Pe(i,r),a=B(null),o=B(null),s=rb(e),l=Q(()=>{var c={};return(e.nextMargin||e.previousMargin)&&(c=e.vertical?{left:0,right:0,top:Ut(e.previousMargin,!0),bottom:Ut(e.nextMargin,!0)}:{top:0,bottom:0,left:Ut(e.previousMargin,!0),right:Ut(e.nextMargin,!0)}),c}),u=Q(()=>{var c=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":c,height:e.vertical?c:"100%"}}),v=[],h=[],_=B([]);function d(){for(var c=[],w=function(g){var S=v[g];S instanceof Element||(S=S.el);var x=h.find(E=>S===E.rootRef.value);x&&c.push(Li(x))},f=0;f{v=o.value.children,d()});var b=function(c){h.push(c),d()};Ne("addSwiperContext",b);var m=function(c){var w=h.indexOf(c);w>=0&&(h.splice(w,1),d())};Ne("removeSwiperContext",m);var{onSwiperDotClick:p}=ib(e,s,_,o,r,n);return()=>{var c=t.default&&t.default();return v=go(c),M("uni-swiper",{ref:i},[M("div",{ref:a,class:"uni-swiper-wrapper"},[M("div",{class:"uni-swiper-slides",style:l.value},[M("div",{ref:o,class:"uni-swiper-slide-frame",style:u.value},[c],4)],4),e.indicatorDots&&M("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[_.value.map((w,f,g)=>M("div",{onClick:()=>p(f),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":f=s.current||f{var n=ge("addSwiperContext");n&&n(i)}),yt(()=>{var n=ge("removeSwiperContext");n&&n(i)}),()=>M("uni-swiper-item",{ref:r,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),sb={name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},lb=he({name:"Switch",props:sb,emits:["change"],setup(e,{emit:t}){var r=B(null),i=B(e.checked),n=ub(e,i),a=Pe(r,t);U(()=>e.checked,s=>{i.value=s});var o=s=>{e.disabled||(i.value=!i.value,a("change",s,{value:i.value}))};return n&&(n.addHandler(o),Ee(()=>{n.removeHandler(o)})),rn(e,{"label-click":o}),()=>{var{color:s,type:l}=e,u=Br(e,"disabled");return M("uni-switch",Ye({ref:r},u,{onClick:o}),[M("div",{class:"uni-switch-wrapper"},[Cr(M("div",{class:["uni-switch-input",[i.value?"uni-switch-input-checked":""]],style:{backgroundColor:i.value?s:"#DFDFDF",borderColor:i.value?s:"#DFDFDF"}},null,6),[[Nr,l==="switch"]]),Cr(M("div",{class:"uni-checkbox-input"},[i.value?Ji(Zi,e.color,22):""],512),[[Nr,l==="checkbox"]])])],16,["onClick"])}}});function ub(e,t){var r=ge(st,!1),i=ge(Fr,!1),n={submit:()=>{var a=["",null];return e.name&&(a[0]=e.name,a[1]=t.value),a},reset:()=>{t.value=!1}};return r&&(r.addField(n),yt(()=>{r.removeField(n)})),i}var zr={ensp:"\u2002",emsp:"\u2003",nbsp:"\xA0"};function fb(e,t){return e.replace(/\\n/g,wr).split(wr).map(r=>cb(r,t))}function cb(e,{space:t,decode:r}){return!e||(t&&zr[t]&&(e=e.replace(/ /g,zr[t])),!r)?e:e.replace(/ /g,zr.nbsp).replace(/ /g,zr.ensp).replace(/ /g,zr.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")}var vb=fe({},vf,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:""}}),yo=!1;function db(){var e="(prefers-color-scheme: dark)";yo=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}var hb=he({name:"Textarea",props:vb,emit:["confirm","linechange",...df],setup(e,{emit:t}){var r=B(null),{fieldRef:i,state:n,scopedAttrsState:a,fixDisabledColor:o,trigger:s}=hf(e,r,t),l=Q(()=>n.value.split(wr)),u=Q(()=>["done","go","next","search","send"].includes(e.confirmType)),v=B(0),h=B(null);U(()=>v.value,p=>{var c=r.value,w=h.value,f=parseFloat(getComputedStyle(c).lineHeight);isNaN(f)&&(f=w.offsetHeight);var g=Math.round(p/f);s("linechange",{},{height:p,heightRpx:750/window.innerWidth*p,lineCount:g}),e.autoHeight&&(c.style.height=p+"px")});function _({height:p}){v.value=p}function d(p){s("confirm",p,{value:n.value})}function b(p){p.key==="Enter"&&u.value&&p.preventDefault()}function m(p){if(p.key==="Enter"&&u.value){d(p);var c=p.target;c.blur()}}return db(),()=>{var p=e.disabled&&o?M("textarea",{ref:i,value:n.value,tabindex:"-1",readonly:!!e.disabled,maxlength:n.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":yo},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:c=>c.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):M("textarea",{ref:i,value:n.value,disabled:!!e.disabled,maxlength:n.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":yo},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:b,onKeyup:m},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return M("uni-textarea",{ref:r},[M("div",{class:"uni-textarea-wrapper"},[Cr(M("div",Ye(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Nr,!n.value.length]]),M("div",{ref:h,class:"uni-textarea-line"},[" "],512),M("div",{class:"uni-textarea-compute"},[l.value.map(c=>M("div",null,[c.trim()?c:"."])),M(jt,{initial:!0,onResize:_},null,8,["initial","onResize"])]),e.confirmType==="search"?M("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[p],40,["onSubmit"]):p])],512)}}});fe({},Um);function hn(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function Pf(e,t,r){!e||ft(r||Ct(),e,({type:i,data:n},a)=>{t(i,n,a)})}function Rf(e){!e||Hd(Ct(),e)}function pn(e,t,r,i){var n=xt(),a=n.proxy;Oe(()=>{Pf(t||hn(a),e,i),(r||!t)&&U(()=>a.id,(o,s)=>{Pf(hn(a,o),e,i),Rf(s&&hn(a,s))})}),Ee(()=>{Rf(t||hn(a))})}var pb=0;function gn(e){var t=Qi(),r=xt(),i=r.proxy,n=i.$options.name.toLowerCase(),a=e||i.id||"context".concat(pb++);return Oe(()=>{var o=i.$el;o.__uniContextInfo={id:a,type:n,page:t}}),"".concat(n,".").concat(a)}function gb(e){return e.__uniContextInfo}class Lf extends Uu{constructor(t,r,i,n,a,o=[]){super(t,r,i,n,a,[...tn.props,...o])}call(t){var r={animation:this.$props.animation,$el:this.$};t.call(r)}setAttribute(t,r){return t==="animation"&&(this.$animate=!0),super.setAttribute(t,r)}update(t=!1){if(!!this.$animate){if(t)return this.call(tn.mounted);this.$animate&&(this.$animate=!1,this.call(tn.watch.animation.handler))}}}var mb=["space","decode"];class _b extends Lf{constructor(t,r,i,n){super(t,document.createElement("uni-text"),r,i,n,mb);this._text=""}init(t){this._text=t.t||"",super.init(t)}setText(t){this._text=t,this.update()}update(t=!1){var{$props:{space:r,decode:i}}=this;this.$.textContent=fb(this._text,{space:r,decode:i}).join(wr),super.update(t)}}class bb extends lr{constructor(t,r,i,n){super(t,"#text",r,document.createTextNode(""));this.init(n),this.insert(r,i)}}var fy="",wb=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class yb extends Lf{constructor(t,r,i,n,a,o=[]){super(t,r,i,n,a,[...wb,...o])}update(t=!1){var r=this.$props["hover-class"];r&&r!=="none"?(this._hover||(this._hover=new Sb(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(t)}}class Sb{constructor(t,r){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=t,this.props=r,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(t){this._hovering=t;var r=this.props["hover-class"];t?this.$.classList.add(r):this.$.classList.remove(r)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){!this._listening||(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(t){if(!t._hoverPropagationStopped){var r=this.props["hover-class"];!r||r==="none"||this.$.disabled||t.touches.length>1||(this.props["hover-stop-propagation"]&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()},this.props["hover-start-time"]))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame(()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout(()=>{this.hovering=!1},this.props["hover-stay-time"])})}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}class xb extends yb{constructor(t,r,i,n){super(t,document.createElement("uni-view"),r,i,n)}}function Nf(){return plus.navigator.isImmersedStatusbar()?Math.round(plus.os.name==="iOS"?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function kf(){var e=plus.webview.currentWebview(),t=e.getStyle(),r=t&&t.titleNView;return r&&r.type==="default"?Ps+Nf():0}var Df=Symbol("onDraw");function Tb(e){for(var t;e;){var r=getComputedStyle(e),i=r.transform||r.webkitTransform;t=i&&i!=="none"?!1:t,t=r.position==="fixed"?!0:t,e=e.parentElement}return t}function So(e,t){return Q(()=>{var r={};return Object.keys(e).forEach(i=>{if(!(t&&t.includes(i))){var n=e[i];n=i==="src"?ht(n):n,r[i.replace(/[A-Z]/g,a=>"-"+a.toLowerCase())]=n}}),r})}function qr(e){var t=Te({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),r=B(!1);function i(){var h=e.value,_=h.getBoundingClientRect(),d=["width","height"];r.value=_.width===0||_.height===0,r.value||(t.position=Tb(h)?"absolute":"static",d.push("top","left")),d.forEach(b=>{var m=_[b];m=b==="top"?m+(t.position==="static"?document.documentElement.scrollTop||document.body.scrollTop||0:kf()):m,t[b]=m+"px"})}var n=null;function a(){n&&cancelAnimationFrame(n),n=requestAnimationFrame(()=>{n=null,i()})}window.addEventListener("updateview",a);var o=[],s=[];function l(h){s?s.push(h):h()}function u(h){var _=ge(Df),d=b=>{h(b),o.forEach(m=>m(t)),o=null};l(()=>{_?_(d):d({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})})}var v=function(h){o?o.push(h):h(t)};return Ne(Df,v),Oe(()=>{i(),s.forEach(h=>h()),s=null}),{position:t,hidden:r,onParentReady:u}}var Eb=he({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,{emit:t}){var r=B(null),i=B(null),n=Pe(r,t),a=So(e,["id"]),{position:o,onParentReady:s}=qr(i),l;return s(()=>{l=plus.ad.createAdView(Object.assign({},a.value,o)),plus.webview.currentWebview().append(l),l.setDislikeListener(v=>{i.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),n("close",{},v)}),l.setRenderingListener(v=>{v.result===0?(i.value.style.height=v.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):n("error",{},{errCode:v.result})}),l.setAdClickedListener(()=>{n("adclicked",{},{})}),U(()=>o,v=>l.setStyle(v),{deep:!0}),U(()=>e.adpid,v=>{v&&u()}),U(()=>e.data,v=>{v&&l.renderingBind(v)});function u(){var v={adpid:e.adpid,width:o.width,count:e.dataCount};e.channel!==void 0&&(v.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",v,({code:h,data:_,message:d})=>{h===0?l.renderingBind(_):n("error",{},{errMsg:d})})}e.adpid&&u()}),Ee(()=>{l&&l.close()}),()=>M("uni-ad",{ref:r},[M("div",{ref:i,class:"uni-ad-container"},null,512)],512)}});class _e extends lr{constructor(t,r,i,n,a,o,s){super(t,r,n);var l=document.createElement("div");l.__vueParent=Cb(this),this.$props=Te({}),this.init(o),this.$app=lu(kw(i,this.$props)),this.$app.mount(l),this.$=l.firstElementChild,s&&(this.$holder=this.$.querySelector(s)),te(o,"t")&&this.setText(o.t||""),o.a&&te(o.a,bi)&&lo(this.$,o.a[bi]),this.insert(n,a),Kl()}init(t){var{a:r,e:i,w:n}=t;r&&(this.setWxsProps(r),Object.keys(r).forEach(a=>{this.setAttr(a,r[a])})),te(t,"s")&&this.setAttr("style",t.s),i&&Object.keys(i).forEach(a=>{this.addEvent(a,i[a])}),n&&this.addWxsEvents(t.w)}setText(t){(this.$holder||this.$).textContent=t}addWxsEvent(t,r,i){this.$props[t]=Wu(this.$,r,i)}addEvent(t,r){this.$props[t]=Fu(this.id,r,ta(t)[1])}removeEvent(t){this.$props[t]=null}setAttr(t,r){if(t===bi)this.$&&lo(this.$,r);else if(t===Os)this.$.__ownerId=r;else if(t===Ms)Ot(()=>Au(this,r),Ou);else if(t===ia){var i=so(this.$||Ke(this.pid).$,r),n=this.$props.style;rt(i)&&rt(n)?Object.keys(i).forEach(a=>{n[a]=i[a]}):this.$props.style=i}else r=so(this.$||Ke(this.pid).$,r),this.wxsPropsInvoke(t,r,!0)||(this.$props[t]=r)}removeAttr(t){this.$props[t]=null}remove(){this.isUnmounted=!0,this.$app.unmount(),jf(this.id)}appendChild(t){return(this.$holder||this.$).appendChild(t)}insertBefore(t,r){return(this.$holder||this.$).insertBefore(t,r)}}class Xr extends _e{constructor(t,r,i,n,a,o,s){super(t,r,i,n,a,o,s)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(t){return Ot(this.getRebuildFn(),to),super.setText(t)}appendChild(t){return Ot(this.getRebuildFn(),to),super.appendChild(t)}insertBefore(t,r){return Ot(this.getRebuildFn(),to),super.insertBefore(t,r)}rebuild(){var t=this.$.__vueParentComponent;t.rebuild&&t.rebuild()}}function Cb(e){for(;e&&e.pid>0;)if(e=Ke(e.pid),e){var{__vueParentComponent:t}=e.$;if(t)return t}return null}function xo(e,t,r){e.childNodes.forEach(i=>{i instanceof Element?i.className.indexOf(t)===-1&&e.removeChild(i):e.removeChild(i)}),e.appendChild(document.createTextNode(r))}class Ob extends _e{constructor(t,r,i,n){super(t,"uni-ad",Eb,r,i,n)}}var cy="";class Mb extends _e{constructor(t,r,i,n){super(t,"uni-button",Km,r,i,n)}}class fr extends lr{constructor(t,r,i,n){super(t,r,i);this.insert(i,n)}}class Ib extends fr{constructor(t,r,i){super(t,"uni-camera",r,i)}}var vy="";class Ab extends _e{constructor(t,r,i,n){super(t,"uni-canvas",i0,r,i,n,"uni-canvas > div")}}var dy="";class Pb extends _e{constructor(t,r,i,n){super(t,"uni-checkbox",f0,r,i,n,".uni-checkbox-wrapper")}setText(t){xo(this.$holder,"uni-checkbox-input",t)}}var hy="";class Rb extends _e{constructor(t,r,i,n){super(t,"uni-checkbox-group",s0,r,i,n)}}var py="",Lb=0;function Bf(e,t,r){var{position:i,hidden:n,onParentReady:a}=qr(e),o;a(s=>{var l=Q(()=>{var f={};for(var g in i){var S=i[g],x=parseFloat(S),E=parseFloat(s[g]);if(g==="top"||g==="left")S=Math.max(x,E)+"px";else if(g==="width"||g==="height"){var C=g==="width"?"left":"top",L=parseFloat(s[C]),W=parseFloat(i[C]),q=Math.max(L-W,0),X=Math.max(W+x-(L+E),0);S=Math.max(x-q-X,0)+"px"}f[g]=S}return f}),u=["borderRadius","borderColor","borderWidth","backgroundColor"],v=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],h=[],_={start:"left",end:"right"};function d(f){var g=getComputedStyle(e.value);return u.concat(v,h).forEach(S=>{f[S]=g[S]}),f}var b=Te(d({})),m=null;function p(){m&&cancelAnimationFrame(m),m=requestAnimationFrame(()=>{m=null,d(b)})}window.addEventListener("updateview",p);function c(){var f={};for(var g in f){var S=f[g];(g==="top"||g==="left")&&(S=Math.min(parseFloat(S)-parseFloat(s[g]),0)+"px"),f[g]=S}return f}var w=Q(()=>{var f=c(),g=[{tag:"rect",position:f,rectStyles:{color:b.backgroundColor,radius:b.borderRadius,borderColor:b.borderColor,borderWidth:b.borderWidth}}];if("src"in r)r.src&&g.push({tag:"img",position:f,src:r.src});else{var S=parseFloat(b.lineHeight)-parseFloat(b.fontSize),x=parseFloat(f.width)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight);x=x<0?0:x;var E=parseFloat(f.height)-parseFloat(b.paddingTop)-S/2-parseFloat(b.paddingBottom);E=E<0?0:E,g.push({tag:"font",position:{top:"".concat(parseFloat(f.top)+parseFloat(b.paddingTop)+S/2,"px"),left:"".concat(parseFloat(f.left)+parseFloat(b.paddingLeft),"px"),width:"".concat(x,"px"),height:"".concat(E,"px")},textStyles:{align:_[b.textAlign]||b.textAlign,color:b.color,decoration:"none",lineSpacing:"".concat(S,"px"),margin:"0px",overflow:b.textOverflow,size:b.fontSize,verticalAlign:"top",weight:b.fontWeight,whiteSpace:b.whiteSpace},text:r.text})}return g});o=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(Lb++),l.value,w.value),plus.webview.currentWebview().append(o),n.value&&o.hide(),o.addEventListener("click",()=>{t("click",{},{})}),U(()=>n.value,f=>{o[f?"hide":"show"]()}),U(()=>l.value,f=>{o.setStyle(f)},{deep:!0}),U(()=>w.value,()=>{o.reset(),o.draw(w.value)},{deep:!0})}),Ee(()=>{o&&o.close()})}var Nb="_doc/uniapp_temp/",kb={src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}};function Db(e,t,r){var i=B(""),n;function a(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var s=e.src?ht(e.src):"";s.indexOf("http://")===0||s.indexOf("https://")===0?(n=plus.downloader.createDownload(s,{filename:Nb+"/download/"},(l,u)=>{u===200?o(l.filename):r("error",{},{errMsg:"error"})}),n.start()):s&&o(s)}function o(s){t.src=s,plus.io.getImageInfo({src:s,success:({width:l,height:u})=>{e.autoSize&&(i.value="width:".concat(l,"px;height:").concat(u,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),r("load",{},{width:l,height:u})},fail:()=>{r("error",{},{errMsg:"error"})}})}return e.src&&a(),U(()=>e.src,a),Ee(()=>{n&&n.abort()}),i}var Ff=he({name:"CoverImage",props:kb,emits:["click","load","error"],setup(e,{emit:t}){var r=B(null),i=Pe(r,t),n=Te({src:""}),a=Db(e,n,i);return Bf(r,i,n),()=>M("uni-cover-image",{ref:r,style:a.value},[M("div",{class:"uni-cover-image"},null)],4)}});class Bb extends _e{constructor(t,r,i,n){super(t,"uni-cover-image",Ff,r,i,n)}}var gy="",Fb=he({name:"CoverView",emits:["click"],setup(e,{emit:t}){var r=B(null),i=B(null),n=Pe(r,t),a=Te({text:""});return Bf(r,n,a),jr(()=>{var o=i.value.childNodes[0];a.text=o&&o instanceof Text?o.textContent:""}),()=>M("uni-cover-view",{ref:r},[M("div",{ref:i,class:"uni-cover-view"},null,512)],512)}});class $b extends Xr{constructor(t,r,i,n){super(t,"uni-cover-view",Fb,r,i,n,".uni-cover-view")}}var my="";class Wb extends _e{constructor(t,r,i,n){super(t,"uni-editor",N0,r,i,n)}}var _y="";class Ub extends _e{constructor(t,r,i,n){super(t,"uni-form",Hm,r,i,n,"span")}}class Vb extends fr{constructor(t,r,i){super(t,"uni-functional-page-navigator",r,i)}}var by="";class jb extends _e{constructor(t,r,i,n){super(t,"uni-icon",F0,r,i,n)}}var wy="";class Hb extends _e{constructor(t,r,i,n){super(t,"uni-image",U0,r,i,n)}}var yy="";class Yb extends _e{constructor(t,r,i,n){super(t,"uni-input",s_,r,i,n)}}var Sy="";class zb extends _e{constructor(t,r,i,n){super(t,"uni-label",qm,r,i,n)}}class qb extends fr{constructor(t,r,i){super(t,"uni-live-player",r,i)}}class Xb extends fr{constructor(t,r,i){super(t,"uni-live-pusher",r,i)}}var xy="",Kb=(e,t,r)=>{r({coord:{latitude:t,longitude:e}})};function To(e){if(e.indexOf("#")!==0)return{color:e,opacity:1};var t=e.substr(7,2);return{color:e.substr(0,7),opacity:t?Number("0x"+t)/255:1}}var Gb={id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}}},Zb=he({name:"Map",props:Gb,emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,{emit:t}){var r=B(null),i=Pe(r,t),n=B(null),a=So(e,["id"]),{position:o,hidden:s,onParentReady:l}=qr(n),u,{_addMarkers:v,_addMapLines:h,_addMapCircles:_,_setMap:d}=Jb(e,i);l(()=>{u=fe(plus.maps.create(Ct()+"-map-"+(e.id||Date.now()),Object.assign({},a.value,o,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[]}),u.setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(u),s.value&&u.hide(),u.onclick=m=>{i("click",{},m)},u.onstatuschanged=m=>{i("regionchange",{},{})},d(u),v(e.markers),h(e.polyline),_(e.circles),U(()=>a.value,m=>u&&u.setStyles(m),{deep:!0}),U(()=>o,m=>u&&u.setStyles(m),{deep:!0}),U(s,m=>{u&&u[m?"hide":"show"]()}),U(()=>e.scale,m=>{u&&u.setZoom(parseInt(String(m)))}),U([()=>e.latitude,()=>e.longitude],([m,p])=>{u&&u.setStyles({center:new plus.maps.Point(Number(m),Number(p))})}),U(()=>e.markers,m=>{v(m,!0)},{deep:!0}),U(()=>e.polyline,m=>{h(m)},{deep:!0}),U(()=>e.circles,m=>{_(m)},{deep:!0})});var b=Q(()=>e.controls.map(m=>{var p={position:"absolute"};return["top","left","width","height"].forEach(c=>{m.position[c]&&(p[c]=m.position[c]+"px")}),{id:m.id,iconPath:ht(m.iconPath),position:p,clickable:m.clickable}}));return Ee(()=>{u&&(u.close(),d(null))}),()=>M("uni-map",{ref:r,id:e.id},[M("div",{ref:n,class:"uni-map-container"},null,512),b.value.map((m,p)=>M(Ff,{key:p,src:m.iconPath,style:m.position,"auto-size":!0,onClick:()=>m.clickable&&i("controltap",{},{controlId:m.id})},null,8,["src","style","auto-size","onClick"])),M("div",{class:"uni-map-slot"},null)],8,["id"])}});function Jb(e,t){var r;function i(d,{longitude:b,latitude:m}={}){!r||(r.setCenter(new plus.maps.Point(Number(b||e.longitude),Number(m||e.latitude))),d({errMsg:"moveToLocation:ok"}))}function n(d){!r||r.getCurrentCenter((b,m)=>{d({longitude:m.getLng(),latitude:m.getLat(),errMsg:"getCenterLocation:ok"})})}function a(d){if(!!r){var b=r.getBounds();d({southwest:b.getSouthWest(),northeast:b.getNorthEast(),errMsg:"getRegion:ok"})}}function o(d){!r||d({scale:r.getZoom(),errMsg:"getScale:ok"})}function s(d){if(!!r){var{id:b,latitude:m,longitude:p,iconPath:c,callout:w,label:f}=d;Kb(p,m,g=>{var S,{latitude:x,longitude:E}=g.coord,C=new plus.maps.Marker(new plus.maps.Point(E,x));c&&C.setIcon(ht(c)),f&&f.content&&C.setLabel(f.content);var L=void 0;w&&w.content&&(L=new plus.maps.Bubble(w.content)),L&&C.setBubble(L),(b||b===0)&&(C.onclick=W=>{t("markertap",{},{markerId:b})},L&&(L.onclick=()=>{t("callouttap",{},{markerId:b})})),(S=r)===null||S===void 0||S.addOverlay(C),r.__markers__.push(C)})}}function l(){if(!!r){var d=r.__markers__;d.forEach(b=>{var m;(m=r)===null||m===void 0||m.removeOverlay(b)}),r.__markers__=[]}}function u(d,b){b&&l(),d.forEach(m=>{s(m)})}function v(d){!r||(r.__lines__.length>0&&(r.__lines__.forEach(b=>{var m;(m=r)===null||m===void 0||m.removeOverlay(b)}),r.__lines__=[]),d.forEach(b=>{var m,{color:p,width:c}=b,w=b.points.map(S=>new plus.maps.Point(S.longitude,S.latitude)),f=new plus.maps.Polyline(w);if(p){var g=To(p);f.setStrokeColor(g.color),f.setStrokeOpacity(g.opacity)}c&&f.setLineWidth(c),(m=r)===null||m===void 0||m.addOverlay(f),r.__lines__.push(f)}))}function h(d){!r||(r.__circles__.length>0&&(r.__circles__.forEach(b=>{var m;(m=r)===null||m===void 0||m.removeOverlay(b)}),r.__circles__=[]),d.forEach(b=>{var m,{latitude:p,longitude:c,color:w,fillColor:f,radius:g,strokeWidth:S}=b,x=new plus.maps.Circle(new plus.maps.Point(c,p),g);if(w){var E=To(w);x.setStrokeColor(E.color),x.setStrokeOpacity(E.opacity)}if(f){var C=To(f);x.setFillColor(C.color),x.setFillOpacity(C.opacity)}S&&x.setLineWidth(S),(m=r)===null||m===void 0||m.addOverlay(x),r.__circles__.push(x)}))}var _={moveToLocation:i,getCenterLocation:n,getRegion:a,getScale:o};return pn((d,b,m)=>{_[d]&&_[d](m,b)},gn(),!0),{_addMarkers:u,_addMapLines:v,_addMapCircles:h,_setMap(d){r=d}}}class Qb extends _e{constructor(t,r,i,n){super(t,"uni-map",Zb,r,i,n,".uni-map-slot")}}var Ty="";class ew extends Xr{constructor(t,r,i,n){super(t,"uni-movable-area",v_,r,i,n)}}var Ey="";class tw extends _e{constructor(t,r,i,n){super(t,"uni-movable-view",p_,r,i,n)}}var Cy="";class rw extends _e{constructor(t,r,i,n){super(t,"uni-navigator",b_,r,i,n)}}class iw extends fr{constructor(t,r,i){super(t,"uni-official-account",r,i)}}class nw extends fr{constructor(t,r,i){super(t,"uni-open-data",r,i)}}var qt,$f,cr;function Wf(){return typeof window=="object"&&typeof navigator=="object"&&typeof document=="object"?"webview":"v8"}function Uf(){return qt.webview.currentWebview().id}var mn,Eo,Co={};function Oo(e){var t=e.data&&e.data.__message;if(!(!t||!t.__page)){var r=t.__page,i=Co[r];i&&i(t),t.keep||delete Co[r]}}function aw(e,t){Wf()==="v8"?cr?(mn&&mn.close(),mn=new cr(Uf()),mn.onmessage=Oo):Eo||(Eo=$f.requireModule("globalEvent"),Eo.addEventListener("plusMessage",Oo)):window.__plusMessage=Oo,Co[e]=t}class ow{constructor(t){this.webview=t}sendMessage(t){var r=JSON.parse(JSON.stringify({__message:{data:t}})),i=this.webview.id;if(cr){var n=new cr(i);n.postMessage(r)}else qt.webview.postMessageToUniNView&&qt.webview.postMessageToUniNView(r,i)}close(){this.webview.close()}}function sw({context:e={},url:t,data:r={},style:i={},onMessage:n,onClose:a}){qt=e.plus||plus,$f=e.weex||(typeof weex=="object"?weex:null),cr=e.BroadcastChannel||(typeof BroadcastChannel=="object"?BroadcastChannel:null);var o={autoBackButton:!0,titleSize:"17px"},s="page".concat(Date.now());i=fe({},i),i.titleNView!==!1&&i.titleNView!=="none"&&(i.titleNView=fe(o,i.titleNView));var l={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"".concat(typeof process=="object"&&process.env&&{}.VUE_APP_TEMPLATE_PATH||"","/").concat(t,".js"),defaultFontSize:qt.screen.resolutionWidth/20,viewport:qt.screen.resolutionWidth}};i=fe(l,i);var u=qt.webview.create("",s,i,{extras:{from:Uf(),runtime:Wf(),data:r,useGlobalEvent:!cr}});return u.addEventListener("close",a),aw(s,v=>{typeof n=="function"&&n(v.data),v.keep||u.close("auto")}),u.show(i.animationType,i.animationDuration),new ow(u)}var xe={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},vr={YEAR:"year",MONTH:"month",DAY:"day"};function _n(e){return e>9?e:"0".concat(e)}function bn(e,t){e=String(e||"");var r=new Date;if(t===xe.TIME){var i=e.split(":");i.length===2&&r.setHours(parseInt(i[0]),parseInt(i[1]))}else{var n=e.split("-");n.length===3&&r.setFullYear(parseInt(n[0]),parseInt(String(parseFloat(n[1])-1)),parseInt(n[2]))}return r}function lw(e){if(e.mode===xe.TIME)return"00:00";if(e.mode===xe.DATE){var t=new Date().getFullYear()-100;switch(e.fields){case vr.YEAR:return t;case vr.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function uw(e){if(e.mode===xe.TIME)return"23:59";if(e.mode===xe.DATE){var t=new Date().getFullYear()+100;switch(e.fields){case vr.YEAR:return t;case vr.MONTH:return t+"-12";default:return t+"-12-31"}}return""}var fw={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:xe.SELECTOR,validator(e){return Object.values(xe).indexOf(e)>=0}},fields:{type:String,default:""},start:{type:String,default:lw},end:{type:String,default:uw},disabled:{type:[Boolean,String],default:!1}},cw=he({name:"Picker",props:fw,emits:["change","cancel","columnchange"],setup(e,{emit:t}){Fd();var{t:r,getLocale:i}=je(),n=B(null),a=Pe(n,t),o=B(null),s=B(null),l=()=>{var p=e.value;switch(e.mode){case xe.MULTISELECTOR:{Array.isArray(p)||(p=[]),Array.isArray(o.value)||(o.value=[]);for(var c=o.value.length=Math.max(p.length,e.range.length),w=0;w{s.value&&s.value.sendMessage(p)},v=p=>{var c={event:"cancel"};s.value=sw({url:"__uniapppicker",data:p,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:w=>{var f=w.event;if(f==="created"){u(p);return}if(f==="columnchange"){delete w.event,a(f,{},w);return}c=w},onClose:()=>{s.value=null;var w=c.event;delete c.event,w&&a(w,{},c)}})},h=(p,c)=>{plus.nativeUI[e.mode===xe.TIME?"pickTime":"pickDate"](w=>{var f=w.date;a("change",{},{value:e.mode===xe.TIME?"".concat(_n(f.getHours()),":").concat(_n(f.getMinutes())):"".concat(f.getFullYear(),"-").concat(_n(f.getMonth()+1),"-").concat(_n(f.getDate()))})},()=>{a("cancel",{},{})},e.mode===xe.TIME?{time:bn(e.value,xe.TIME),popover:c}:{date:bn(e.value,xe.DATE),minDate:bn(e.start,xe.DATE),maxDate:bn(e.end,xe.DATE),popover:c})},_=(p,c)=>{(p.mode===xe.TIME||p.mode===xe.DATE)&&!p.fields?h(p,c):(p.fields=Object.values(vr).includes(p.fields)?p.fields:vr.DAY,v(p))},d=p=>{if(!e.disabled){var c=p.currentTarget,w=c.getBoundingClientRect();_(Object.assign({},e,{value:o.value,locale:i(),messages:{done:r("uni.picker.done"),cancel:r("uni.picker.cancel")}}),{top:w.top+kf(),left:w.left,width:w.width,height:w.height})}},b=ge(st,!1),m={submit:()=>[e.name,o.value],reset:()=>{switch(e.mode){case xe.SELECTOR:o.value=0;break;case xe.MULTISELECTOR:Array.isArray(e.value)&&(o.value=e.value.map(p=>0));break;case xe.DATE:case xe.TIME:o.value="";break}}};return b&&(b.addField(m),Ee(()=>b.removeField(m))),Object.keys(e).forEach(p=>{p!=="name"&&U(()=>e[p],c=>{var w={};w[p]=c,u(w)},{deep:!0})}),U(()=>e.value,l,{deep:!0}),l(),()=>M("uni-picker",{ref:n,onClick:d},[M("slot",null,null)],8,["onClick"])}});class vw extends _e{constructor(t,r,i,n){super(t,"uni-picker",cw,r,i,n)}}var Oy="";class dw extends Xr{constructor(t,r,i,n){super(t,"uni-picker-view",S_,r,i,n,".uni-picker-view-wrapper")}}var My="";class hw extends Xr{constructor(t,r,i,n){super(t,"uni-picker-view-column",A_,r,i,n,".uni-picker-view-content")}}var Iy="";class pw extends _e{constructor(t,r,i,n){super(t,"uni-progress",R_,r,i,n)}}var Ay="";class gw extends _e{constructor(t,r,i,n){super(t,"uni-radio",F_,r,i,n,".uni-radio-wrapper")}setText(t){xo(this.$holder,"uni-radio-input",t)}}var Py="";class mw extends _e{constructor(t,r,i,n){super(t,"uni-radio-group",k_,r,i,n)}}var Ry="";class _w extends _e{constructor(t,r,i,n){super(t,"uni-rich-text",Y_,r,i,n)}}var Ly="";class bw extends _e{constructor(t,r,i,n){super(t,"uni-scroll-view",q_,r,i,n,".uni-scroll-view-content")}setText(t){xo(this.$holder,"uni-scroll-view-refresher",t)}}var Ny="";class ww extends _e{constructor(t,r,i,n){super(t,"uni-slider",Z_,r,i,n)}}var ky="";class yw extends Xr{constructor(t,r,i,n){super(t,"uni-swiper",nb,r,i,n,".uni-swiper-slide-frame")}}var Dy="";class Sw extends _e{constructor(t,r,i,n){super(t,"uni-swiper-item",ob,r,i,n)}}var By="";class xw extends _e{constructor(t,r,i,n){super(t,"uni-switch",lb,r,i,n)}}var Fy="";class Tw extends _e{constructor(t,r,i,n){super(t,"uni-textarea",hb,r,i,n)}}var $y="",Ew={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default(){return{}}},advanced:{type:Array,default(){return[]}}},Vf=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],Cw=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],Ow=he({name:"Video",props:Ew,emits:Vf,setup(e,{emit:t}){var r=B(null),i=Pe(r,t),n=B(null),a=So(e,["id"]),{position:o,hidden:s,onParentReady:l}=qr(n),u;l(()=>{u=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},a.value,o)),plus.webview.currentWebview().append(u),s.value&&u.hide(),Vf.forEach(h=>{u.addEventListener(h,_=>{i(h,{},_.detail)})}),U(()=>a.value,h=>u.setStyles(h),{deep:!0}),U(()=>o,h=>u.setStyles(h),{deep:!0}),U(()=>s.value,h=>{u[h?"hide":"show"](),h||u.setStyles(o)})});var v=gn();return pn((h,_)=>{if(Cw.includes(h)){var d;switch(h){case"seek":d=_.position;break;case"sendDanmu":d=_;break;case"playbackRate":d=_.rate;break;case"requestFullScreen":d=_.direction;break}u&&u[h](d)}},v,!0),Ee(()=>{u&&u.close()}),()=>M("uni-video",{ref:r,id:e.id},[M("div",{ref:n,class:"uni-video-container"},null,512),M("div",{class:"uni-video-slot"},null)],8,["id"])}});class Mw extends _e{constructor(t,r,i,n){super(t,"uni-video",Ow,r,i,n,".uni-video-slot")}}var Wy="",Iw={src:{type:String,default:""},webviewStyles:{type:Object,default(){return{}}}},Xe,Aw=({htmlId:e,src:t,webviewStyles:r})=>{var i=plus.webview.currentWebview(),n=fe(r,{"uni-app":"none",isUniH5:!0}),a=i.getTitleNView();if(a){var o=Ps+parseFloat(n.top||"0");plus.navigator.isImmersedStatusbar()&&(o+=Nf()),n.top=String(o),n.bottom=n.bottom||"0"}Xe=plus.webview.create(t,e,n),a&&Xe.addEventListener("titleUpdate",function(){var s,l=(s=Xe)===null||s===void 0?void 0:s.getTitle();i.setStyle({titleNView:{titleText:!l||l==="null"?" ":l}})}),plus.webview.currentWebview().append(Xe)},Pw=()=>{var e;plus.webview.currentWebview().remove(Xe),(e=Xe)===null||e===void 0||e.close("none"),Xe=null},Rw=he({name:"WebView",props:Iw,setup(e){var t=Ct(),r=B(null),{hidden:i,onParentReady:n}=qr(r),a=Q(()=>e.webviewStyles);return n(()=>{var o,s=B(Bg+t);Aw({htmlId:s.value,src:ht(e.src),webviewStyles:a.value}),UniViewJSBridge.publishHandler(kg,{},t),i.value&&((o=Xe)===null||o===void 0||o.hide())}),Ee(()=>{Pw(),UniViewJSBridge.publishHandler(Dg,{},t)}),U(()=>e.src,o=>{var s,l=ht(o)||"";if(!!l){if(/^(http|https):\/\//.test(l)&&e.webviewStyles.progress){var u;(u=Xe)===null||u===void 0||u.setStyle({progress:{color:e.webviewStyles.progress.color}})}(s=Xe)===null||s===void 0||s.loadURL(l)}}),U(a,o=>{var s;(s=Xe)===null||s===void 0||s.setStyle(o)}),U(i,o=>{Xe&&Xe[o?"hide":"show"]()}),()=>M("uni-web-view",{ref:r},null,512)}});class Lw extends _e{constructor(t,r,i,n){super(t,"uni-web-view",Rw,r,i,n)}}var Nw={"#text":bb,"#comment":Bm,VIEW:xb,IMAGE:Hb,TEXT:_b,NAVIGATOR:rw,FORM:Ub,BUTTON:Mb,INPUT:Yb,LABEL:zb,RADIO:gw,CHECKBOX:Pb,"CHECKBOX-GROUP":Rb,AD:Ob,CAMERA:Ib,CANVAS:Ab,"COVER-IMAGE":Bb,"COVER-VIEW":$b,EDITOR:Wb,"FUNCTIONAL-PAGE-NAVIGATOR":Vb,ICON:jb,"RADIO-GROUP":mw,"LIVE-PLAYER":qb,"LIVE-PUSHER":Xb,MAP:Qb,"MOVABLE-AREA":ew,"MOVABLE-VIEW":tw,"OFFICIAL-ACCOUNT":iw,"OPEN-DATA":nw,PICKER:vw,"PICKER-VIEW":dw,"PICKER-VIEW-COLUMN":hw,PROGRESS:pw,"RICH-TEXT":_w,"SCROLL-VIEW":bw,SLIDER:ww,SWIPER:yw,"SWIPER-ITEM":Sw,SWITCH:xw,TEXTAREA:Tw,VIDEO:Mw,"WEB-VIEW":Lw};function kw(e,t){return()=>kp(e,t)}var Mo=new Map;function Ke(e){return Mo.get(e)}function jf(e){return Mo.delete(e)}function Hf(e,t,r,i,n={}){var a;if(e===0)a=new lr(e,t,r,document.createElement(t));else{var o=Nw[t];o?a=new o(e,r,i,n):a=new Uu(e,document.createElement(t),r,i,n)}return Mo.set(e,a),a}var Io=[],Yf=!1;function zf(e){if(Yf)return e();Io.push(e)}function Ao(){Yf=!0,Io.forEach(e=>e()),Io.length=0}function Dw(){}function qf({css:e,route:t,platform:r,pixelRatio:i,windowWidth:n,disableScroll:a,statusbarHeight:o,windowTop:s,windowBottom:l}){Bw(t),Fw(r,i,n),$w();var u=plus.webview.currentWebview().id;window.__id__=u,document.title="".concat(t,"[").concat(u,"]"),Uw(o,s,l),a&&document.addEventListener("touchmove",Eg),e?Ww(t):Ao()}function Bw(e){window.__PAGE_INFO__={route:e}}function Fw(e,t,r){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:r}}function $w(){Hf(0,"div",-1,-1).$=document.getElementById("app")}function Ww(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=Ao,t.onerror=Ao,document.head.appendChild(t)}function Uw(e,t,r){var i={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":r+"px","--status-bar-height":e+"px"};hg(i)}var Xf=!1;function Vw(e){if(!Xf){Xf=!0;var t={onReachBottomDistance:e,onPageScroll(r){UniViewJSBridge.publishHandler(bd,{scrollTop:r})},onReachBottom(){UniViewJSBridge.publishHandler(wd)}};requestAnimationFrame(()=>document.addEventListener("scroll",Cg(t)))}}function jw({scrollTop:e,selector:t,duration:r},i){qv(t||e||0,r),i()}function Hw(e){var t=e[0];t[0]===Is?Yw(t):zf(()=>zw(e))}function Yw(e){return qf(e[1])}function zw(e){var t=e[0],r=mm(t[0]===Ng?t[1]:[]);e.forEach(i=>{switch(i[0]){case Is:return qf(i[1]);case td:return Dw();case rd:return Hf(i[1],r(i[2]),i[3],i[4],_m(r,i[5]));case id:return Ke(i[1]).remove();case nd:return Ke(i[1]).setAttr(r(i[2]),r(i[3]));case ad:return Ke(i[1]).removeAttr(r(i[2]));case od:return Ke(i[1]).addEvent(r(i[2]),i[3]);case ud:return Ke(i[1]).addWxsEvent(r(i[2]),r(i[3]),i[4]);case sd:return Ke(i[1]).removeEvent(r(i[2]));case ld:return Ke(i[1]).setText(r(i[2]));case fd:return Vw(i[1])}}),Sm()}function qw(){var{subscribe:e}=UniViewJSBridge;e(_u,Hw),e(Fg,je().setLocale)}function Kf(e){return window.__$__(e).$}function Xw(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var r=document.documentElement,i=document.body;t.scrollLeft=r.scrollLeft||i.scrollLeft||0,t.scrollTop=r.scrollTop||i.scrollTop||0,t.scrollHeight=r.scrollHeight||i.scrollHeight||0,t.scrollWidth=r.scrollWidth||i.scrollWidth||0}return t}function Po(e,t){var r={},{top:i}=dg();if(t.id&&(r.id=e.id),t.dataset&&(r.dataset=Jn(e)),t.rect||t.size){var n=e.getBoundingClientRect();t.rect&&(r.left=n.left,r.right=n.right,r.top=n.top-i,r.bottom=n.bottom-i),t.size&&(r.width=n.width,r.height=n.height)}if(Array.isArray(t.properties)&&t.properties.forEach(s=>{s=s.replace(/-([a-z])/g,function(l,u){return u.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){var a=e.children[0].children[0];r.scrollLeft=a.scrollLeft,r.scrollTop=a.scrollTop,r.scrollHeight=a.scrollHeight,r.scrollWidth=a.scrollWidth}else r.scrollLeft=0,r.scrollTop=0,r.scrollHeight=0,r.scrollWidth=0;if(Array.isArray(t.computedStyle)){var o=getComputedStyle(e);t.computedStyle.forEach(s=>{r[s]=o[s]})}return t.context&&(r.contextInfo=gb(e)),r}function Kw(e,t){return e?window.__$__(e).$:t.$el}function Gf(e,t){var r=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(i){for(var n=this.parentElement.querySelectorAll(i),a=n.length;--a>=0&&n.item(a)!==this;);return a>-1};return r.call(e,t)}function Gw(e,t,r,i,n){var a=Kw(t,e),o=a.parentElement;if(!o)return i?null:[];var{nodeType:s}=a,l=s===3||s===8;if(i){var u=l?o.querySelector(r):Gf(a,r)?a:a.querySelector(r);return u?Po(u,n):null}else{var v=[],h=(l?o:a).querySelectorAll(r);return h&&h.length&&[].forEach.call(h,_=>{v.push(Po(_,n))}),!l&&Gf(a,r)&&v.unshift(Po(a,n)),v}}function Zw(e,t,r){var i=[];t.forEach(({component:n,selector:a,single:o,fields:s})=>{n===null?i.push(Xw(s)):i.push(Gw(e,n,a,o,s))}),r(i)}function Jw({reqId:e,component:t,options:r,callback:i},n){var a=Kf(t);(a.__io||(a.__io={}))[e]=um(a,r,i)}function Qw({reqId:e,component:t},r){var i=Kf(t),n=i.__io&&i.__io[e];n&&(n.disconnect(),delete i.__io[e])}var Ro={},Lo={};function ey(e){var t=[],r=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(var i of r)i!=="orientation"&&e[i]&&Number(e[i]>=0)&&t.push("(".concat(Zf(i),": ").concat(Number(e[i]),"px)")),i==="orientation"&&e[i]&&t.push("(".concat(Zf(i),": ").concat(e[i],")"));var n=t.join(" and ");return n}function Zf(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function ty({reqId:e,component:t,options:r,callback:i},n){var a=Ro[e]=window.matchMedia(ey(r)),o=Lo[e]=s=>i(s.matches);o(a),a.addListener(o)}function ry({reqId:e,component:t},r){var i=Lo[e],n=Ro[e];n&&(n.removeListener(i),delete Lo[e],delete Ro[e])}function iy({family:e,source:t,desc:r},i){zv(e,t,r).then(()=>{i()}).catch(n=>{i(n.toString())})}var ny={$el:document.body};function ay(){var e=Ct();jd(e,t=>(...r)=>{zf(()=>{t.apply(null,r)})}),ft(e,"requestComponentInfo",(t,r)=>{Zw(ny,t.reqs,r)}),ft(e,"addIntersectionObserver",t=>{Jw(fe({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),ft(e,"removeIntersectionObserver",t=>{Qw(t)}),ft(e,"addMediaQueryObserver",t=>{ty(fe({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),ft(e,"removeMediaQueryObserver",t=>{ry(t)}),ft(e,om,jw),ft(e,am,iy)}window.uni=pm,window.UniViewJSBridge=bu,window.rpx2px=Tu,window.__$__=Ke,window.__f__=Zv;function Jf(){Jd(),ay(),qw(),gm(),bu.publishHandler(Lg)}typeof plus!="undefined"?Jf():document.addEventListener("plusready",Jf)}); diff --git a/packages/uni-app-plus/src/view/framework/dom/elements/UniTextElement.ts b/packages/uni-app-plus/src/view/framework/dom/elements/UniTextElement.ts index bddc852e6..9fe174164 100644 --- a/packages/uni-app-plus/src/view/framework/dom/elements/UniTextElement.ts +++ b/packages/uni-app-plus/src/view/framework/dom/elements/UniTextElement.ts @@ -1,7 +1,7 @@ import '@dcloudio/uni-components/style/text.css' +import { LINEFEED, UniNodeJSON } from '@dcloudio/uni-shared' import { DecodeOptions, parseText } from '@dcloudio/uni-components' import { UniAnimationElement } from './UniAnimationElement' -import { UniNodeJSON } from '@dcloudio/uni-shared' interface TextProps { space: DecodeOptions['space'] @@ -44,7 +44,7 @@ export class UniTextElement extends UniAnimationElement { $props: { space, decode }, } = this - this.$.textContent = parseText(this._text, { space, decode }).join('\n') + this.$.textContent = parseText(this._text, { space, decode }).join(LINEFEED) super.update(isMounted) } diff --git a/packages/uni-app-plus/src/view/framework/dom/modules/events.ts b/packages/uni-app-plus/src/view/framework/dom/modules/events.ts index 5b21a9476..ac9240d67 100644 --- a/packages/uni-app-plus/src/view/framework/dom/modules/events.ts +++ b/packages/uni-app-plus/src/view/framework/dom/modules/events.ts @@ -48,7 +48,7 @@ export function patchEvent(el: UniCustomElement, name: string, flag: number) { if (!isEventListenerExists(el, type)) { el.addEventListener( type, - (el.__listeners[type] = createInvoker(el.__id, flag, options)), + (el.__listeners[type] = createInvoker(el.__id!, flag, options)), options ) } diff --git a/packages/uni-app-plus/vite.config.ts b/packages/uni-app-plus/vite.config.ts index 582eb680c..9eba476d0 100644 --- a/packages/uni-app-plus/vite.config.ts +++ b/packages/uni-app-plus/vite.config.ts @@ -119,6 +119,7 @@ export default defineConfig({ vueJsx({ optimize: true, isCustomElement }), ], build: { + target: 'es2015', minify: true, lib: { name: 'uni-app-view', diff --git a/packages/uni-app-vite/src/index.ts b/packages/uni-app-vite/src/index.ts index b7cc3e2f4..2fdb33193 100644 --- a/packages/uni-app-vite/src/index.ts +++ b/packages/uni-app-vite/src/index.ts @@ -6,6 +6,7 @@ import { getAppStyleIsolation, parseManifestJsonOnce, uniConsolePlugin, + UNI_EASYCOM_EXCLUDE, } from '@dcloudio/uni-cli-shared' import { UniAppPlugin } from './plugin' import { uniTemplatePlugin } from './plugins/template' @@ -15,6 +16,7 @@ import { uniPagesJsonPlugin } from './plugins/pagesJson' // import { uniResolveIdPlugin } from './plugins/resolveId' import { uniRenderjsPlugin } from './plugins/renderjs' import { uniStatsPlugin } from './plugins/stats' +import { uniEasycomPlugin } from './plugins/easycom' function initUniCssScopedPluginOptions() { const styleIsolation = getAppStyleIsolation( @@ -32,6 +34,7 @@ function initUniCssScopedPluginOptions() { } const plugins = [ + uniEasycomPlugin({ exclude: UNI_EASYCOM_EXCLUDE }), // uniResolveIdPlugin(), uniConsolePlugin({ filename(filename) { diff --git a/packages/uni-app-vite/src/plugins/easycom.ts b/packages/uni-app-vite/src/plugins/easycom.ts new file mode 100644 index 000000000..907b0fca0 --- /dev/null +++ b/packages/uni-app-vite/src/plugins/easycom.ts @@ -0,0 +1,65 @@ +import path from 'path' +import { Plugin } from 'vite' +import { createFilter, FilterPattern } from '@rollup/pluginutils' + +import { + EXTNAME_VUE, + parseVueRequest, + matchEasycom, + addImportDeclaration, + genResolveEasycomCode, +} from '@dcloudio/uni-cli-shared' + +interface UniEasycomPluginOptions { + include?: FilterPattern + exclude?: FilterPattern +} + +export function uniEasycomPlugin(options: UniEasycomPluginOptions): Plugin { + const filter = createFilter(options.include, options.exclude) + return { + name: 'vite:uni-app-easycom', + transform(code, id) { + if (!filter(id)) { + return + } + const { filename, query } = parseVueRequest(id) + if ( + query.type !== 'template' && + (query.vue || !EXTNAME_VUE.includes(path.extname(filename))) + ) { + return + } + let i = 0 + const importDeclarations: string[] = [] + code = code.replace( + /_resolveComponent\("(.+?)"(, true)?\)/g, + (str, name) => { + if (name && !name.startsWith('_')) { + const source = matchEasycom(name) + if (source) { + // 处理easycom组件优先级 + return genResolveEasycomCode( + importDeclarations, + str, + addImportDeclaration( + importDeclarations, + `__easycom_${i++}`, + source + ) + ) + } + } + return str + } + ) + if (importDeclarations.length) { + code = importDeclarations.join('') + code + } + return { + code, + map: null, + } + }, + } +} diff --git a/packages/uni-app-vite/src/plugins/mainJs.ts b/packages/uni-app-vite/src/plugins/mainJs.ts index f4a776779..144b45ab2 100644 --- a/packages/uni-app-vite/src/plugins/mainJs.ts +++ b/packages/uni-app-vite/src/plugins/mainJs.ts @@ -28,7 +28,7 @@ function createApp(code: string) { } function createLegacyApp(code: string) { - return `function createApp(rootComponent,rootProps){rootComponent.mpTye='app';const app=createVueApp(rootComponent,rootProps).use(uni.__vuePlugin);app.render=()=>{};const oldMount=app.mount;app.mount=(container)=>{const appVm=oldMount.call(app,container);return appVm;};return app;};${code.replace( + return `function createApp(rootComponent,rootProps){rootComponent.mpTye='app';rootComponent.render=()=>{};const app=createVueApp(rootComponent,rootProps).use(uni.__vuePlugin);const oldMount=app.mount;app.mount=(container)=>{const appVm=oldMount.call(app,container);return appVm;};return app;};${code.replace( 'createApp', 'createVueApp' )}` diff --git a/packages/uni-cli-shared/src/easycom.ts b/packages/uni-cli-shared/src/easycom.ts index 2225add52..d650fc0f4 100644 --- a/packages/uni-cli-shared/src/easycom.ts +++ b/packages/uni-cli-shared/src/easycom.ts @@ -229,3 +229,42 @@ function initAutoScanEasycoms( function normalizeCompath(compath: string, rootDir: string) { return normalizePath(path.relative(rootDir, compath)) } + +export function addImportDeclaration( + importDeclarations: string[], + local: string, + source: string, + imported?: string +) { + importDeclarations.push(createImportDeclaration(local, source, imported)) + return local +} + +function createImportDeclaration( + local: string, + source: string, + imported?: string +) { + if (imported) { + return `import {${imported} as ${local}} from '${source}';` + } + return `import ${local} from '${source}';` +} + +const RESOLVE_EASYCOM_IMPORT_CODE = `import { resolveDynamicComponent as __resolveDynamicComponent } from 'vue';import { resolveEasycom } from '@dcloudio/uni-app';` + +export function genResolveEasycomCode( + importDeclarations: string[], + code: string, + name: string +) { + if (!importDeclarations.includes(RESOLVE_EASYCOM_IMPORT_CODE)) { + importDeclarations.push(RESOLVE_EASYCOM_IMPORT_CODE) + } + return `resolveEasycom(${code.replace( + '_resolveComponent', + '__resolveDynamicComponent' + )}, ${name})` +} + +export const UNI_EASYCOM_EXCLUDE = [/App.vue$/, /@dcloudio\/uni-h5/] diff --git a/packages/uni-components/src/components/editor/quill/index.ts b/packages/uni-components/src/components/editor/quill/index.ts index 3d4c655e5..25b16b3a6 100644 --- a/packages/uni-components/src/components/editor/quill/index.ts +++ b/packages/uni-components/src/components/editor/quill/index.ts @@ -6,6 +6,7 @@ import QuillClass, { RangeStatic, StringMap, } from 'quill' +import { LINEFEED } from '@dcloudio/uni-shared' import { useContextInfo, useSubscribe } from '@dcloudio/uni-components' import { getRealPath } from '@dcloudio/uni-platform' import { CustomEventTrigger } from '../../../helpers/useEvent' @@ -304,7 +305,7 @@ export function useQuill( break case 'insertDivider': range = quill.getSelection(true) - quill.insertText(range.index, '\n', 'user') + quill.insertText(range.index, LINEFEED, 'user') quill.insertEmbed(range.index + 1, 'divider', true, 'user') quill.setSelection(range.index + 2, 0, 'silent') break diff --git a/packages/uni-components/src/components/image/index.tsx b/packages/uni-components/src/components/image/index.tsx index 3477e8833..ea4559384 100644 --- a/packages/uni-components/src/components/image/index.tsx +++ b/packages/uni-components/src/components/image/index.tsx @@ -109,9 +109,7 @@ function useImageState(rootRef: Ref, props: ImageProps) { } return `background-image:${ imgSrc.value ? 'url("' + imgSrc.value + '")' : 'none' - }; - background-position:${position}; - background-size:${size};` + };background-position:${position};background-size:${size};` }) const state = reactive({ rootEl: rootRef, diff --git a/packages/uni-components/src/components/textarea/index.tsx b/packages/uni-components/src/components/textarea/index.tsx index 57cec3195..e2abcbf08 100644 --- a/packages/uni-components/src/components/textarea/index.tsx +++ b/packages/uni-components/src/components/textarea/index.tsx @@ -1,5 +1,6 @@ import { Ref, ref, computed, watch, onMounted } from 'vue' import { extend } from '@vue/shared' +import { LINEFEED } from '@dcloudio/uni-shared' import { defineBuiltInComponent } from '../../helpers/component' import { props as fieldProps, @@ -43,7 +44,7 @@ export default /*#__PURE__*/ defineBuiltInComponent({ const rootRef: Ref = ref(null) const { fieldRef, state, scopedAttrsState, fixDisabledColor, trigger } = useField(props, rootRef, emit) - const valueCompute = computed(() => state.value.split('\n')) + const valueCompute = computed(() => state.value.split(LINEFEED)) const isDone = computed(() => ['done', 'go', 'next', 'search', 'send'].includes(props.confirmType) ) diff --git a/packages/uni-components/src/helpers/text.ts b/packages/uni-components/src/helpers/text.ts index 09eee86e6..6665fbe1f 100644 --- a/packages/uni-components/src/helpers/text.ts +++ b/packages/uni-components/src/helpers/text.ts @@ -1,3 +1,5 @@ +import { LINEFEED } from '@dcloudio/uni-shared' + const SPACE_UNICODE = { ensp: '\u2002', emsp: '\u2003', @@ -11,8 +13,8 @@ export interface DecodeOptions { export function parseText(text: string, options: DecodeOptions) { return text - .replace(/\\n/g, '\n') - .split('\n') + .replace(/\\n/g, LINEFEED) + .split(LINEFEED) .map((text) => { return normalizeText(text, options) }) diff --git a/packages/uni-h5-vite/src/index.ts b/packages/uni-h5-vite/src/index.ts index 70a8ecbef..9fc63d44f 100644 --- a/packages/uni-h5-vite/src/index.ts +++ b/packages/uni-h5-vite/src/index.ts @@ -1,6 +1,10 @@ -import { uniCssScopedPlugin } from '@dcloudio/uni-cli-shared' +import { + uniCssScopedPlugin, + UNI_EASYCOM_EXCLUDE, +} from '@dcloudio/uni-cli-shared' import { UniH5Plugin } from './plugin' import { uniCssPlugin } from './plugins/css' +import { uniEasycomPlugin } from './plugins/easycom' import { uniInjectPlugin } from './plugins/inject' import { uniMainJsPlugin } from './plugins/mainJs' import { uniManifestJsonPlugin } from './plugins/manifestJson' @@ -11,6 +15,7 @@ import { uniSetupPlugin } from './plugins/setup' import { uniSSRPlugin } from './plugins/ssr' export default [ + uniEasycomPlugin({ exclude: UNI_EASYCOM_EXCLUDE }), uniCssScopedPlugin(), uniResolveIdPlugin(), uniMainJsPlugin(), diff --git a/packages/vite-plugin-uni/src/configResolved/plugins/easycom.ts b/packages/uni-h5-vite/src/plugins/easycom.ts similarity index 72% rename from packages/vite-plugin-uni/src/configResolved/plugins/easycom.ts rename to packages/uni-h5-vite/src/plugins/easycom.ts index b8b6adffc..0428b4703 100644 --- a/packages/vite-plugin-uni/src/configResolved/plugins/easycom.ts +++ b/packages/uni-h5-vite/src/plugins/easycom.ts @@ -1,6 +1,6 @@ import path from 'path' -import { Plugin, ResolvedConfig } from 'vite' -import { createFilter } from '@rollup/pluginutils' +import { Plugin } from 'vite' +import { createFilter, FilterPattern } from '@rollup/pluginutils' import { camelize, capitalize } from '@vue/shared' import { isBuiltInComponent } from '@dcloudio/uni-shared' @@ -13,10 +13,10 @@ import { buildInCssSet, isCombineBuiltInCss, matchEasycom, + addImportDeclaration, + genResolveEasycomCode, } from '@dcloudio/uni-cli-shared' -import { UniPluginFilterOptions } from '.' - const H5_COMPONENTS_PATH = '@dcloudio/uni-h5' const baseComponents = [ @@ -51,16 +51,19 @@ const baseComponents = [ 'view', ] -// const identifierRE = /^([a-zA-Z_$][a-zA-Z\\d_$]*)$/ +interface UniEasycomPluginOptions { + include?: FilterPattern + exclude?: FilterPattern +} -export function uniEasycomPlugin( - options: UniPluginFilterOptions, - config: ResolvedConfig -): Plugin { +export function uniEasycomPlugin(options: UniEasycomPluginOptions): Plugin { const filter = createFilter(options.include, options.exclude) - const needCombineBuiltInCss = isCombineBuiltInCss(config) + let needCombineBuiltInCss = false return { - name: 'vite:uni-easycom', + name: 'vite:uni-h5-easycom', + configResolved(config) { + needCombineBuiltInCss = isCombineBuiltInCss(config) + }, transform(code, id) { if (!filter(id)) { return @@ -126,22 +129,6 @@ export function uniEasycomPlugin( } } -const RESOLVE_EASYCOM_IMPORT_CODE = `import { resolveDynamicComponent as __resolveDynamicComponent } from 'vue';import { resolveEasycom } from '@dcloudio/uni-app';` - -function genResolveEasycomCode( - importDeclarations: string[], - code: string, - name: string -) { - if (!importDeclarations.includes(RESOLVE_EASYCOM_IMPORT_CODE)) { - importDeclarations.push(RESOLVE_EASYCOM_IMPORT_CODE) - } - return `resolveEasycom(${code.replace( - '_resolveComponent', - '__resolveDynamicComponent' - )}, ${name})` -} - function resolveBuiltInCssImport(name: string) { const cssImports: string[] = [] if (baseComponents.includes(name)) { @@ -169,24 +156,3 @@ function addBuiltInImportDeclaration( capitalize(camelize(name)) ) } - -function addImportDeclaration( - importDeclarations: string[], - local: string, - source: string, - imported?: string -) { - importDeclarations.push(createImportDeclaration(local, source, imported)) - return local -} - -function createImportDeclaration( - local: string, - source: string, - imported?: string -) { - if (imported) { - return `import {${imported} as ${local}} from '${source}';` - } - return `import ${local} from '${source}';` -} diff --git a/packages/uni-h5/dist/uni-h5.cjs.js b/packages/uni-h5/dist/uni-h5.cjs.js index 2918d869e..7fb45b988 100644 --- a/packages/uni-h5/dist/uni-h5.cjs.js +++ b/packages/uni-h5/dist/uni-h5.cjs.js @@ -1308,7 +1308,7 @@ function normalizeErrMsg(errMsg) { return errMsg; } if (errMsg.stack) { - console.error(errMsg.message + "\n" + errMsg.stack); + console.error(errMsg.message + uniShared.LINEFEED + errMsg.stack); return errMsg.message; } return errMsg; @@ -2652,9 +2652,7 @@ function useImageState(rootRef, props2) { opts[0] && (position = opts[0]); opts[1] && (size = opts[1]); } - return `background-image:${imgSrc.value ? 'url("' + imgSrc.value + '")' : "none"}; - background-position:${position}; - background-size:${size};`; + return `background-image:${imgSrc.value ? 'url("' + imgSrc.value + '")' : "none"};background-position:${position};background-size:${size};`; }); const state = vue.reactive({ rootEl: rootRef, @@ -6259,7 +6257,7 @@ const SPACE_UNICODE = { nbsp: "\xA0" }; function parseText(text, options) { - return text.replace(/\\n/g, "\n").split("\n").map((text2) => { + return text.replace(/\\n/g, uniShared.LINEFEED).split(uniShared.LINEFEED).map((text2) => { return normalizeText(text2, options); }); } @@ -6358,7 +6356,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ fixDisabledColor, trigger } = useField(props2, rootRef, emit2); - const valueCompute = vue.computed(() => state.value.split("\n")); + const valueCompute = vue.computed(() => state.value.split(uniShared.LINEFEED)); const isDone = vue.computed(() => ["done", "go", "next", "search", "send"].includes(props2.confirmType)); const heightRef = vue.ref(0); const lineRef = vue.ref(null); @@ -9540,7 +9538,7 @@ class RequestTask { } function parseHeaders(headers) { const headersObject = {}; - headers.split("\n").forEach((header) => { + headers.split(uniShared.LINEFEED).forEach((header) => { const find = header.match(/(\S+\s*):\s*(.*)/); if (!find || find.length !== 3) { return; diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index 42f177195..5407a1c6d 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -1,6 +1,6 @@ import { withModifiers, createVNode, getCurrentInstance, ref, defineComponent, openBlock, createElementBlock, provide, computed, watch, onUnmounted, inject, onBeforeUnmount, mergeProps, injectHook, reactive, onActivated, onMounted, nextTick, onBeforeMount, withDirectives, vShow, shallowRef, watchEffect, isVNode, Fragment, markRaw, createTextVNode, onBeforeActivate, onBeforeDeactivate, createBlock, renderList, onDeactivated, createApp, Transition, effectScope, withCtx, KeepAlive, resolveDynamicComponent, createElementVNode, normalizeStyle, renderSlot } from "vue"; import { isString, extend, stringifyStyle, parseStringStyle, isPlainObject, isFunction, capitalize, camelize, isArray, hasOwn, isObject, toRawType, makeMap as makeMap$1, isPromise, hyphenate, invokeArrayFns as invokeArrayFns$1 } from "@vue/shared"; -import { I18N_JSON_DELIMITERS, once, passive, initCustomDataset, invokeArrayFns, resolveOwnerVm, resolveOwnerEl, ON_WXS_INVOKE_CALL_METHOD, normalizeTarget, ON_RESIZE, ON_APP_ENTER_FOREGROUND, ON_APP_ENTER_BACKGROUND, ON_SHOW, ON_HIDE, ON_PAGE_SCROLL, ON_REACH_BOTTOM, EventChannel, SCHEME_RE, DATA_RE, getCustomDataset, ON_ERROR, callOptions, ON_LAUNCH, PRIMARY_COLOR, removeLeadingSlash, getLen, debounce, UniLifecycleHooks, NAVBAR_HEIGHT, parseQuery, ON_UNLOAD, ON_REACH_BOTTOM_DISTANCE, decodedQuery, WEB_INVOKE_APPSERVICE, ON_WEB_INVOKE_APP_SERVICE, updateElementStyle, ON_BACK_PRESS, parseUrl, addFont, scrollTo, RESPONSIVE_MIN_WIDTH, formatDateTime, ON_PULL_DOWN_REFRESH } from "@dcloudio/uni-shared"; +import { I18N_JSON_DELIMITERS, once, passive, initCustomDataset, invokeArrayFns, resolveOwnerVm, resolveOwnerEl, ON_WXS_INVOKE_CALL_METHOD, normalizeTarget, ON_RESIZE, ON_APP_ENTER_FOREGROUND, ON_APP_ENTER_BACKGROUND, ON_SHOW, ON_HIDE, ON_PAGE_SCROLL, ON_REACH_BOTTOM, EventChannel, SCHEME_RE, DATA_RE, getCustomDataset, LINEFEED, ON_ERROR, callOptions, ON_LAUNCH, PRIMARY_COLOR, removeLeadingSlash, getLen, debounce, UniLifecycleHooks, NAVBAR_HEIGHT, parseQuery, ON_UNLOAD, ON_REACH_BOTTOM_DISTANCE, decodedQuery, WEB_INVOKE_APPSERVICE, ON_WEB_INVOKE_APP_SERVICE, updateElementStyle, ON_BACK_PRESS, parseUrl, addFont, scrollTo, RESPONSIVE_MIN_WIDTH, formatDateTime, ON_PULL_DOWN_REFRESH } from "@dcloudio/uni-shared"; import { initVueI18n, isI18nStr, LOCALE_EN, LOCALE_ES, LOCALE_FR, LOCALE_ZH_HANS, LOCALE_ZH_HANT } from "@dcloudio/uni-i18n"; import { useRoute, createRouter, createWebHistory, createWebHashHistory, useRouter, isNavigationFailure, RouterView } from "vue-router"; let i18n; @@ -2623,7 +2623,7 @@ function normalizeErrMsg(errMsg) { return errMsg; } if (errMsg.stack) { - console.error(errMsg.message + "\n" + errMsg.stack); + console.error(errMsg.message + LINEFEED + errMsg.stack); return errMsg.message; } return errMsg; @@ -7491,7 +7491,7 @@ function useQuill(props2, rootRef, trigger) { break; case "insertDivider": range = quill.getSelection(true); - quill.insertText(range.index, "\n", "user"); + quill.insertText(range.index, LINEFEED, "user"); quill.insertEmbed(range.index + 1, "divider", true, "user"); quill.setSelection(range.index + 2, 0, "silent"); break; @@ -7799,9 +7799,7 @@ function useImageState(rootRef, props2) { opts[0] && (position = opts[0]); opts[1] && (size = opts[1]); } - return `background-image:${imgSrc.value ? 'url("' + imgSrc.value + '")' : "none"}; - background-position:${position}; - background-size:${size};`; + return `background-image:${imgSrc.value ? 'url("' + imgSrc.value + '")' : "none"};background-position:${position};background-size:${size};`; }); const state2 = reactive({ rootEl: rootRef, @@ -12907,7 +12905,7 @@ const SPACE_UNICODE = { nbsp: "\xA0" }; function parseText(text2, options) { - return text2.replace(/\\n/g, "\n").split("\n").map((text22) => { + return text2.replace(/\\n/g, LINEFEED).split(LINEFEED).map((text22) => { return normalizeText(text22, options); }); } @@ -13010,7 +13008,7 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ fixDisabledColor, trigger } = useField(props2, rootRef, emit2); - const valueCompute = computed(() => state2.value.split("\n")); + const valueCompute = computed(() => state2.value.split(LINEFEED)); const isDone = computed(() => ["done", "go", "next", "search", "send"].includes(props2.confirmType)); const heightRef = ref(0); const lineRef = ref(null); @@ -16805,7 +16803,7 @@ class RequestTask { } function parseHeaders(headers) { const headersObject = {}; - headers.split("\n").forEach((header) => { + headers.split(LINEFEED).forEach((header) => { const find = header.match(/(\S+\s*):\s*(.*)/); if (!find || find.length !== 3) { return; diff --git a/packages/uni-h5/src/service/api/network/request.ts b/packages/uni-h5/src/service/api/network/request.ts index 781b16b54..dbcc63e73 100644 --- a/packages/uni-h5/src/service/api/network/request.ts +++ b/packages/uni-h5/src/service/api/network/request.ts @@ -6,6 +6,7 @@ import { RequestOptions, RequestProtocol, } from '@dcloudio/uni-api' +import { LINEFEED } from '@dcloudio/uni-shared' export const request = defineTaskApi( API_REQUEST, @@ -155,7 +156,7 @@ class RequestTask implements UniApp.RequestTask { */ function parseHeaders(headers: string) { const headersObject: Record = {} - headers.split('\n').forEach((header) => { + headers.split(LINEFEED).forEach((header) => { const find = header.match(/(\S+\s*):\s*(.*)/) if (!find || find.length !== 3) { return diff --git a/packages/uni-shared/dist/uni-shared.cjs.js b/packages/uni-shared/dist/uni-shared.cjs.js index 0be461537..88b2735ba 100644 --- a/packages/uni-shared/dist/uni-shared.cjs.js +++ b/packages/uni-shared/dist/uni-shared.cjs.js @@ -945,6 +945,7 @@ function debounce(fn, delay) { return newFn; } +const LINEFEED = '\n'; const NAVBAR_HEIGHT = 44; const TABBAR_HEIGHT = 50; const ON_REACH_BOTTOM_DISTANCE = 50; @@ -1141,6 +1142,7 @@ exports.EventChannel = EventChannel; exports.EventModifierFlags = EventModifierFlags; exports.I18N_JSON_DELIMITERS = I18N_JSON_DELIMITERS; exports.JSON_PROTOCOL = JSON_PROTOCOL; +exports.LINEFEED = LINEFEED; exports.NAVBAR_HEIGHT = NAVBAR_HEIGHT; exports.NODE_TYPE_COMMENT = NODE_TYPE_COMMENT; exports.NODE_TYPE_ELEMENT = NODE_TYPE_ELEMENT; diff --git a/packages/uni-shared/dist/uni-shared.d.ts b/packages/uni-shared/dist/uni-shared.d.ts index ff5f8ea74..21eb9b73b 100644 --- a/packages/uni-shared/dist/uni-shared.d.ts +++ b/packages/uni-shared/dist/uni-shared.d.ts @@ -230,6 +230,8 @@ export declare interface IUniPageNode { export declare const JSON_PROTOCOL = "json://"; +export declare const LINEFEED = "\n"; + export declare const NAVBAR_HEIGHT = 44; declare type NavigateToOptionEvents = Record void>; diff --git a/packages/uni-shared/dist/uni-shared.es.js b/packages/uni-shared/dist/uni-shared.es.js index 00eaa8f88..99670f53a 100644 --- a/packages/uni-shared/dist/uni-shared.es.js +++ b/packages/uni-shared/dist/uni-shared.es.js @@ -941,6 +941,7 @@ function debounce(fn, delay) { return newFn; } +const LINEFEED = '\n'; const NAVBAR_HEIGHT = 44; const TABBAR_HEIGHT = 50; const ON_REACH_BOTTOM_DISTANCE = 50; @@ -1106,4 +1107,4 @@ function getEnvLocale() { return (lang && lang.replace(/[.:].*/, '')) || 'en'; } -export { ACTION_TYPE_ADD_EVENT, ACTION_TYPE_ADD_WXS_EVENT, ACTION_TYPE_CREATE, ACTION_TYPE_EVENT, ACTION_TYPE_INSERT, ACTION_TYPE_PAGE_CREATE, ACTION_TYPE_PAGE_CREATED, ACTION_TYPE_PAGE_SCROLL, ACTION_TYPE_REMOVE, ACTION_TYPE_REMOVE_ATTRIBUTE, ACTION_TYPE_REMOVE_EVENT, ACTION_TYPE_SET_ATTRIBUTE, ACTION_TYPE_SET_TEXT, ATTR_CHANGE_PREFIX, ATTR_CLASS, ATTR_INNER_HTML, ATTR_STYLE, ATTR_TEXT_CONTENT, ATTR_V_OWNER_ID, ATTR_V_RENDERJS, ATTR_V_SHOW, BACKGROUND_COLOR, BUILT_IN_TAGS, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_HIDE, ON_KEYBOARD_HEIGHT_CHANGE, ON_LAUNCH, ON_LOAD, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_PAGE_NOT_FOUND, ON_PAGE_SCROLL, ON_PULL_DOWN_REFRESH, ON_REACH_BOTTOM, ON_REACH_BOTTOM_DISTANCE, ON_READY, ON_RESIZE, ON_SHARE_APP_MESSAGE, ON_SHARE_TIMELINE, ON_SHOW, ON_TAB_ITEM_TAP, ON_THEME_CHANGE, ON_UNHANDLE_REJECTION, ON_UNLOAD, ON_WEB_INVOKE_APP_SERVICE, ON_WXS_INVOKE_CALL_METHOD, PLUS_RE, PRIMARY_COLOR, RENDERJS_MODULES, RESPONSIVE_MIN_WIDTH, SCHEME_RE, SELECTED_COLOR, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, cache, cacheStringFunction, callOptions, createRpx2Unit, createUniEvent, debounce, decode, decodedQuery, defaultRpx2Unit, formatAppLog, formatDateTime, formatLog, getCustomDataset, getEnvLocale, getLen, getValueByDataPath, initCustomDataset, invokeArrayFns, isBuiltInComponent, isCustomElement, isNativeTag, isRootHook, isServiceCustomElement, isServiceNativeTag, normalizeDataset, normalizeEventType, normalizeTarget, once, parseEventName, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, resolveOwnerEl, resolveOwnerVm, sanitise, scrollTo, stringifyQuery, updateElementStyle }; +export { ACTION_TYPE_ADD_EVENT, ACTION_TYPE_ADD_WXS_EVENT, ACTION_TYPE_CREATE, ACTION_TYPE_EVENT, ACTION_TYPE_INSERT, ACTION_TYPE_PAGE_CREATE, ACTION_TYPE_PAGE_CREATED, ACTION_TYPE_PAGE_SCROLL, ACTION_TYPE_REMOVE, ACTION_TYPE_REMOVE_ATTRIBUTE, ACTION_TYPE_REMOVE_EVENT, ACTION_TYPE_SET_ATTRIBUTE, ACTION_TYPE_SET_TEXT, ATTR_CHANGE_PREFIX, ATTR_CLASS, ATTR_INNER_HTML, ATTR_STYLE, ATTR_TEXT_CONTENT, ATTR_V_OWNER_ID, ATTR_V_RENDERJS, ATTR_V_SHOW, BACKGROUND_COLOR, BUILT_IN_TAGS, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, LINEFEED, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_HIDE, ON_KEYBOARD_HEIGHT_CHANGE, ON_LAUNCH, ON_LOAD, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_PAGE_NOT_FOUND, ON_PAGE_SCROLL, ON_PULL_DOWN_REFRESH, ON_REACH_BOTTOM, ON_REACH_BOTTOM_DISTANCE, ON_READY, ON_RESIZE, ON_SHARE_APP_MESSAGE, ON_SHARE_TIMELINE, ON_SHOW, ON_TAB_ITEM_TAP, ON_THEME_CHANGE, ON_UNHANDLE_REJECTION, ON_UNLOAD, ON_WEB_INVOKE_APP_SERVICE, ON_WXS_INVOKE_CALL_METHOD, PLUS_RE, PRIMARY_COLOR, RENDERJS_MODULES, RESPONSIVE_MIN_WIDTH, SCHEME_RE, SELECTED_COLOR, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, cache, cacheStringFunction, callOptions, createRpx2Unit, createUniEvent, debounce, decode, decodedQuery, defaultRpx2Unit, formatAppLog, formatDateTime, formatLog, getCustomDataset, getEnvLocale, getLen, getValueByDataPath, initCustomDataset, invokeArrayFns, isBuiltInComponent, isCustomElement, isNativeTag, isRootHook, isServiceCustomElement, isServiceNativeTag, normalizeDataset, normalizeEventType, normalizeTarget, once, parseEventName, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, resolveOwnerEl, resolveOwnerVm, sanitise, scrollTo, stringifyQuery, updateElementStyle }; diff --git a/packages/uni-shared/src/constants.ts b/packages/uni-shared/src/constants.ts index 0a959a726..4ef0cbfd3 100644 --- a/packages/uni-shared/src/constants.ts +++ b/packages/uni-shared/src/constants.ts @@ -1,3 +1,4 @@ +export const LINEFEED = '\n' export const NAVBAR_HEIGHT = 44 export const TABBAR_HEIGHT = 50 export const ON_REACH_BOTTOM_DISTANCE = 50 diff --git a/packages/vite-plugin-uni/src/configResolved/plugins/index.ts b/packages/vite-plugin-uni/src/configResolved/plugins/index.ts index 77635aaae..052e6b94c 100644 --- a/packages/vite-plugin-uni/src/configResolved/plugins/index.ts +++ b/packages/vite-plugin-uni/src/configResolved/plugins/index.ts @@ -10,7 +10,6 @@ import { VitePluginUniResolvedOptions } from '../..' import { uniPrePlugin } from './pre' import { uniJsonPlugin } from './json' import { uniPreCssPlugin } from './preCss' -import { uniEasycomPlugin } from './easycom' import { uniStaticPlugin } from './static' import { uniPreVuePlugin } from './preVue' @@ -26,8 +25,6 @@ export interface UniPluginFilterOptions extends VitePluginUniResolvedOptions { const UNI_H5_RE = /@dcloudio\/uni-h5/ -const APP_VUE_RE = /App.vue$/ - const uniPrePluginOptions: Partial = { exclude: [...COMMON_EXCLUDE, UNI_H5_RE], } @@ -35,10 +32,6 @@ const uniPreCssPluginOptions: Partial = { exclude: [...COMMON_EXCLUDE, UNI_H5_RE], } -const uniEasycomPluginOptions: Partial = { - exclude: [APP_VUE_RE, UNI_H5_RE], -} - export function initPlugins( config: ResolvedConfig, options: VitePluginUniResolvedOptions @@ -67,11 +60,6 @@ export function initPlugins( 'vite:vue' ) - addPlugin( - plugins, - uniEasycomPlugin(extend(uniEasycomPluginOptions, options), config), - 'vite:vue' - ) addPlugin(plugins, uniJsonPlugin(options), 'vite:json', 'pre') addPlugin(plugins, uniStaticPlugin(options, config), 'vite:asset', 'pre') diff --git a/packages/vite-plugin-uni/src/index.ts b/packages/vite-plugin-uni/src/index.ts index 1bd51fe3d..c2bbdf51e 100644 --- a/packages/vite-plugin-uni/src/index.ts +++ b/packages/vite-plugin-uni/src/index.ts @@ -37,7 +37,7 @@ export interface VitePluginUniOptions { outputDir?: string vueOptions?: VueOptions vueJsxOptions?: VueJSXPluginOptions | boolean - viteLegacyOptions?: ViteLegacyOptions + viteLegacyOptions?: ViteLegacyOptions | false } export interface VitePluginUniResolvedOptions extends VitePluginUniOptions { base: string @@ -77,7 +77,7 @@ export default function uniPlugin( const plugins: Plugin[] = [] - if (createViteLegacyPlugin && options.viteLegacyOptions !== false) { + if (createViteLegacyPlugin && options.viteLegacyOptions) { plugins.push( ...(createViteLegacyPlugin( initPluginViteLegacyOptions(options) -- GitLab