function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["./pages-index-index.C7XqCSpi.js","./index-B4ujC8xr.css","./pages-article_details-index.B9H0x_xN.js","./index.DulAIuLl.js","./index-BoQc-Qj_.css","./index-M6fZkSR3.css","./pages-goods_details-index.C_gggEln.js","./index-VhOobBLd.css"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
var e,t=Object.defineProperty,n=(e,n,o)=>(((e,n,o)=>{n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o})(e,"symbol"!=typeof n?n+"":n,o),o);!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const o={},i=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),s=(null==r?void 0:r.nonce)||(null==r?void 0:r.getAttribute("nonce"));i=Promise.all(t.map(t=>{if(t=function(e,t){return new URL(e,t).href}(t,n),t in o)return;o[t]=!0;const i=t.endsWith(".css"),r=i?'[rel="stylesheet"]':"";if(!!n)for(let n=e.length-1;n>=0;n--){const o=e[n];if(o.href===t&&(!i||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${r}`))return;const a=document.createElement("link");return a.rel=i?"stylesheet":"modulepreload",i||(a.as="script",a.crossOrigin=""),a.href=t,s&&a.setAttribute("nonce",s),document.head.appendChild(a),i?new Promise((e,n)=>{a.addEventListener("load",e),a.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${t}`)))}):void 0}))}return i.then(()=>e()).catch(e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e})};
/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const s={},a=[],l=()=>{},c=()=>!1,u=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),d=e=>e.startsWith("onUpdate:"),h=Object.assign,p=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,m=(e,t)=>f.call(e,t),g=Array.isArray,y=e=>"[object Map]"===C(e),b=e=>"[object Set]"===C(e),v=e=>"function"==typeof e,_=e=>"string"==typeof e,w=e=>"symbol"==typeof e,x=e=>null!==e&&"object"==typeof e,S=e=>(x(e)||v(e))&&v(e.then)&&v(e.catch),k=Object.prototype.toString,C=e=>k.call(e),A=e=>"[object Object]"===C(e),T=e=>_(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,I=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),B=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E=/-(\w)/g,P=B(e=>e.replace(E,(e,t)=>t?t.toUpperCase():"")),M=/\B([A-Z])/g,z=B(e=>e.replace(M,"-$1").toLowerCase()),O=B(e=>e.charAt(0).toUpperCase()+e.slice(1)),R=B(e=>e?`on${O(e)}`:""),L=(e,t)=>!Object.is(e,t),D=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},N=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let j;const H=()=>j||(j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function F(e){if(g(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=_(o)?q(o):F(o);if(i)for(const e in i)t[e]=i[e]}return t}if(_(e)||x(e))return e}const V=/;(?![^(]*\))/g,W=/:([^]+)/,U=/\/\*[^]*?\*\//g;function q(e){const t={};return e.replace(U,"").split(V).forEach(e=>{if(e){const n=e.split(W);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Q(e){let t="";if(_(e))t=e;else if(g(e))for(let n=0;n<e.length;n++){const o=Q(e[n]);o&&(t+=o+" ")}else if(x(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Y=r("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function G(e){return!!e||""===e}const X=e=>_(e)?e:null==e?"":g(e)||x(e)&&(e.toString===k||!v(e.toString))?JSON.stringify(e,K,2):String(e),K=(e,t)=>t&&t.__v_isRef?K(e,t.value):y(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[J(t,o)+" =>"]=n,e),{})}:b(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>J(e))}:w(t)?J(t):!x(t)||g(t)||A(t)?t:String(t),J=(e,t="")=>{var n;return w(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},Z=["ad","ad-content-page","ad-draw","audio","button","camera","canvas","checkbox","checkbox-group","cover-image","cover-view","editor","form","functional-page-navigator","icon","image","input","label","live-player","live-pusher","map","movable-area","movable-view","navigator","official-account","open-data","picker","picker-view","picker-view-column","progress","radio","radio-group","rich-text","scroll-view","slider","swiper","swiper-item","switch","text","textarea","video","view","web-view","location-picker","location-view"].map(e=>"uni-"+e),ee=["list-view","list-item","sticky-section","sticky-header","cloud-db-element"].map(e=>"uni-"+e),te=["list-item"].map(e=>"uni-"+e);function ne(e){if(-1!==te.indexOf(e))return!1;const t="uni-"+e.replace("v-uni-","");return-1!==Z.indexOf(t)||-1!==ee.indexOf(t)}const oe="\n",ie=["%","%"],re=/^([a-z-]+:)?\/\//i,se=/^data:.*,.*/,ae="onShow",le="onHide",ce="onError",ue="onThemeChange",de="onPageNotFound",he="onUnhandledRejection",pe="onLoad",fe="onReady",me="onUnload",ge="onInit",ye="onSaveExitState",be="onResize",ve="onBackPress",_e="onPageScroll",we="onTabItemTap",xe="onReachBottom",Se="onPullDownRefresh",ke="onShareTimeline",Ce="onShareChat",Ae="onAddToFavorites",Te="onShareAppMessage",Ie="onNavigationBarButtonTap",Be="onNavigationBarSearchInputClicked",Ee="onNavigationBarSearchInputChanged",Pe="onNavigationBarSearchInputConfirmed",Me="onNavigationBarSearchInputFocusChanged",ze="onAppEnterForeground",Oe="onAppEnterBackground",Re="onWebInvokeAppService";function Le(e){return 0===e.indexOf("/")}function De(e){return Le(e)?e:"/"+e}function Ne(e){return Le(e)?e.slice(1):e}function $e(e,t){for(const n in t)e.style[n]=t[n]}function je(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}let He;function Fe(){return He||(He=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),He)}function Ve(e){return e&&(e.appContext?e.proxy:e)}function We(e){if(!e)return;let t=e.type.name;for(;t&&ne(z(t));)t=(e=e.parent).type.name;return e.proxy}function Ue(e){return 1===e.nodeType}function qe(e){const t=Fe();if(t&&t.UTSJSONObject&&e instanceof t.UTSJSONObject){const n={};return t.UTSJSONObject.keys(e).forEach(t=>{n[t]=e[t]}),F(n)}if(e instanceof Map){const t={};return e.forEach((e,n)=>{t[n]=e}),F(t)}if(_(e))return q(e);if(g(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=_(o)?q(o):qe(o);if(i)for(const e in i)t[e]=i[e]}return t}return F(e)}function Qe(e){let t="";const n=Fe();if(n&&n.UTSJSONObject&&e instanceof n.UTSJSONObject)n.UTSJSONObject.keys(e).forEach(n=>{e[n]&&(t+=n+" ")});else if(e instanceof Map)e.forEach((e,n)=>{e&&(t+=n+" ")});else if(g(e))for(let o=0;o<e.length;o++){const n=Qe(e[o]);n&&(t+=n+" ")}else t=Q(e);return t.trim()}function Ye(e){if(!e)return null;let{class:t,style:n}=e;return t&&!_(t)&&(e.class=Qe(t)),n&&(e.style=qe(n)),e}function Ge(e){return P(e.substring(5))}const Xe=je(e=>{e=e||(e=>e.tagName.startsWith("UNI-"));const t=HTMLElement.prototype,n=t.setAttribute;t.setAttribute=function(t,o){if(t.startsWith("data-")&&e(this)){(this.__uniDataset||(this.__uniDataset={}))[Ge(t)]=o}n.call(this,t,o)};const o=t.removeAttribute;t.removeAttribute=function(t){this.__uniDataset&&t.startsWith("data-")&&e(this)&&delete this.__uniDataset[Ge(t)],o.call(this,t)}});function Ke(e){return h({},e.dataset,e.__uniDataset)}const Je=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function Ze(e){return{passive:e}}function et(e){const{id:t,offsetTop:n,offsetLeft:o}=e;return{id:t,dataset:Ke(e),offsetTop:n,offsetLeft:o}}function tt(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function nt(e={}){const t={};return Object.keys(e).forEach(n=>{try{t[n]=tt(e[n])}catch(o){t[n]=e[n]}}),t}const ot=/\+/g;function it(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const e=n[o].replace(ot," ");let i=e.indexOf("="),r=tt(i<0?e:e.slice(0,i)),s=i<0?null:tt(e.slice(i+1));if(r in t){let e=t[r];g(e)||(e=t[r]=[e]),e.push(s)}else t[r]=s}return t}function rt(e,t,{clearTimeout:n,setTimeout:o}){let i;const r=function(){n(i);i=o(()=>e.apply(this,arguments),t)};return r.cancel=function(){n(i)},r}class st{constructor(e,t){this.id=e,this.listener={},this.emitCache=[],t&&Object.keys(t).forEach(e=>{this.on(e,t[e])})}emit(e,...t){const n=this.listener[e];if(!n)return this.emitCache.push({eventName:e,args:t});n.forEach(e=>{e.fn.apply(e.fn,t)}),this.listener[e]=n.filter(e=>"once"!==e.type)}on(e,t){this._addListener(e,"on",t),this._clearCache(e)}once(e,t){this._addListener(e,"once",t),this._clearCache(e)}off(e,t){const n=this.listener[e];if(n)if(t)for(let o=0;o<n.length;)n[o].fn===t&&(n.splice(o,1),o--),o++;else delete this.listener[e]}_clearCache(e){for(let t=0;t<this.emitCache.length;t++){const n=this.emitCache[t],o=e?n.eventName===e?e:null:n.eventName;if(!o)continue;"number"!=typeof this.emit.apply(this,[o,...n.args])?(this.emitCache.splice(t,1),t--):this.emitCache.pop()}}_addListener(e,t,n){(this.listener[e]||(this.listener[e]=[])).push({fn:n,type:t})}}const at=[ge,pe,ae,le,me,ve,_e,we,xe,Se,ke,Te,Ce,Ae,ye,Ie,Be,Ee,Pe,Me];const lt=[ae,le,"onLaunch",ce,ue,de,he,"onExit",ge,pe,fe,me,be,ve,_e,we,xe,Se,ke,Ae,Te,Ce,ye,Ie,Be,Ee,Pe,Me];const ct=[];const ut=je((e,t)=>t(e)),dt=function(){};dt.prototype={_id:1,on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n,_id:this._id}),this._id++},once:function(e,t,n){var o=this;function i(){o.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,i=n.length;o<i;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],i=[];if(o&&t){for(var r=o.length-1;r>=0;r--)if(o[r].fn===t||o[r].fn._===t||o[r]._id===t){o.splice(r,1);break}i=o}return i.length?n[e]=i:delete n[e],this}};var ht=dt;const pt={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function ft(e,t,n){if(_(t)&&t.startsWith("@")){let i=e[t.replace("@","")]||t;switch(n){case"titleColor":i="black"===i?"#000000":"#ffffff";break;case"borderStyle":i=(o=i)&&o in pt?pt[o]:o}return i}var o;return t}function mt(e,t={},n="light"){const o=t[n],i={};return void 0!==o&&e?(Object.keys(e).forEach(r=>{const s=e[r];i[r]=A(s)?mt(s,t,n):g(s)?s.map(e=>A(e)?mt(e,t,n):ft(o,e)):ft(o,s,r)}),i):e}
/**
* @dcloudio/uni-h5-vue v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let gt,yt;class bt{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=gt,!e&&gt&&(this.index=(gt.scopes||(gt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=gt;try{return gt=this,e()}finally{gt=t}}}on(){gt=this}off(){gt=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function vt(e){return new bt(e)}class _t{constructor(e,t,n,o){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=gt){t&&t.active&&t.effects.push(e)}(this,o)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,It();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(wt(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Bt()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ct,t=yt;try{return Ct=!0,yt=this,this._runnings++,xt(this),this.fn()}finally{St(this),this._runnings--,yt=t,Ct=e}}stop(){var e;this.active&&(xt(this),St(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function wt(e){return e.value}function xt(e){e._trackId++,e._depsLength=0}function St(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)kt(e.deps[t],e);e.deps.length=e._depsLength}}function kt(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let Ct=!0,At=0;const Tt=[];function It(){Tt.push(Ct),Ct=!1}function Bt(){const e=Tt.pop();Ct=void 0===e||e}function Et(){At++}function Pt(){for(At--;!At&&zt.length;)zt.shift()()}function Mt(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&kt(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const zt=[];function Ot(e,t,n){Et();for(const o of e.keys()){let n;o._dirtyLevel<t&&(null!=n?n:n=e.get(o)===o._trackId)&&(o._shouldSchedule||(o._shouldSchedule=0===o._dirtyLevel),o._dirtyLevel=t),o._shouldSchedule&&(null!=n?n:n=e.get(o)===o._trackId)&&(o.trigger(),o._runnings&&!o.allowRecurse||2===o._dirtyLevel||(o._shouldSchedule=!1,o.scheduler&&zt.push(o.scheduler)))}Pt()}const Rt=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Lt=new WeakMap,Dt=Symbol(""),Nt=Symbol("");function $t(e,t,n){if(Ct&&yt){let t=Lt.get(e);t||Lt.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Rt(()=>t.delete(n))),Mt(yt,o)}}function jt(e,t,n,o,i,r){const s=Lt.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&g(e)){const e=Number(o);s.forEach((t,n)=>{("length"===n||!w(n)&&n>=e)&&a.push(t)})}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":g(e)?T(n)&&a.push(s.get("length")):(a.push(s.get(Dt)),y(e)&&a.push(s.get(Nt)));break;case"delete":g(e)||(a.push(s.get(Dt)),y(e)&&a.push(s.get(Nt)));break;case"set":y(e)&&a.push(s.get(Dt))}Et();for(const l of a)l&&Ot(l,4);Pt()}const Ht=r("__proto__,__v_isRef,__isVue"),Ft=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(w)),Vt=Wt();function Wt(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=zn(this);for(let t=0,i=this.length;t<i;t++)$t(n,0,t+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(zn)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){It(),Et();const n=zn(this)[t].apply(this,e);return Pt(),Bt(),n}}),e}function Ut(e){const t=zn(this);return $t(t,0,e),t.hasOwnProperty(e)}class qt{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(o?i?Sn:xn:i?wn:_n).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=g(e);if(!o){if(r&&m(Vt,t))return Reflect.get(Vt,t,n);if("hasOwnProperty"===t)return Ut}const s=Reflect.get(e,t,n);return(w(t)?Ft.has(t):Ht(t))?s:(o||$t(e,0,t),i?s:jn(s)?r&&T(t)?s:s.value:x(s)?o?Tn(s):Cn(s):s)}}class Qt extends qt{constructor(e=!1){super(!1,e)}set(e,t,n,o){let i=e[t];if(!this._isShallow){const t=En(i);if(Pn(n)||En(n)||(i=zn(i),n=zn(n)),!g(e)&&jn(i)&&!jn(n))return!t&&(i.value=n,!0)}const r=g(e)&&T(t)?Number(t)<e.length:m(e,t),s=Reflect.set(e,t,n,o);return e===zn(o)&&(r?L(n,i)&&jt(e,"set",t,n):jt(e,"add",t,n)),s}deleteProperty(e,t){const n=m(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&jt(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return w(t)&&Ft.has(t)||$t(e,0,t),n}ownKeys(e){return $t(e,0,g(e)?"length":Dt),Reflect.ownKeys(e)}}class Yt extends qt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Gt=new Qt,Xt=new Yt,Kt=new Qt(!0),Jt=e=>e,Zt=e=>Reflect.getPrototypeOf(e);function en(e,t,n=!1,o=!1){const i=zn(e=e.__v_raw),r=zn(t);n||(L(t,r)&&$t(i,0,t),$t(i,0,r));const{has:s}=Zt(i),a=o?Jt:n?Ln:Rn;return s.call(i,t)?a(e.get(t)):s.call(i,r)?a(e.get(r)):void(e!==i&&e.get(t))}function tn(e,t=!1){const n=this.__v_raw,o=zn(n),i=zn(e);return t||(L(e,i)&&$t(o,0,e),$t(o,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function nn(e,t=!1){return e=e.__v_raw,!t&&$t(zn(e),0,Dt),Reflect.get(e,"size",e)}function on(e){e=zn(e);const t=zn(this);return Zt(t).has.call(t,e)||(t.add(e),jt(t,"add",e,e)),this}function rn(e,t){t=zn(t);const n=zn(this),{has:o,get:i}=Zt(n);let r=o.call(n,e);r||(e=zn(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?L(t,s)&&jt(n,"set",e,t):jt(n,"add",e,t),this}function sn(e){const t=zn(this),{has:n,get:o}=Zt(t);let i=n.call(t,e);i||(e=zn(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&jt(t,"delete",e,void 0),r}function an(){const e=zn(this),t=0!==e.size,n=e.clear();return t&&jt(e,"clear",void 0,void 0),n}function ln(e,t){return function(n,o){const i=this,r=i.__v_raw,s=zn(r),a=t?Jt:e?Ln:Rn;return!e&&$t(s,0,Dt),r.forEach((e,t)=>n.call(o,a(e),a(t),i))}}function cn(e,t,n){return function(...o){const i=this.__v_raw,r=zn(i),s=y(r),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=i[e](...o),u=n?Jt:t?Ln:Rn;return!t&&$t(r,0,l?Nt:Dt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function un(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function dn(){const e={get(e){return en(this,e)},get size(){return nn(this)},has:tn,add:on,set:rn,delete:sn,clear:an,forEach:ln(!1,!1)},t={get(e){return en(this,e,!1,!0)},get size(){return nn(this)},has:tn,add:on,set:rn,delete:sn,clear:an,forEach:ln(!1,!0)},n={get(e){return en(this,e,!0)},get size(){return nn(this,!0)},has(e){return tn.call(this,e,!0)},add:un("add"),set:un("set"),delete:un("delete"),clear:un("clear"),forEach:ln(!0,!1)},o={get(e){return en(this,e,!0,!0)},get size(){return nn(this,!0)},has(e){return tn.call(this,e,!0)},add:un("add"),set:un("set"),delete:un("delete"),clear:un("clear"),forEach:ln(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=cn(i,!1,!1),n[i]=cn(i,!0,!1),t[i]=cn(i,!1,!0),o[i]=cn(i,!0,!0)}),[e,n,t,o]}const[hn,pn,fn,mn]=dn();function gn(e,t){const n=t?e?mn:fn:e?pn:hn;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(m(n,o)&&o in t?n:t,o,i)}const yn={get:gn(!1,!1)},bn={get:gn(!1,!0)},vn={get:gn(!0,!1)},_n=new WeakMap,wn=new WeakMap,xn=new WeakMap,Sn=new WeakMap;function kn(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>C(e).slice(8,-1))(e))}function Cn(e){return En(e)?e:In(e,!1,Gt,yn,_n)}function An(e){return In(e,!1,Kt,bn,wn)}function Tn(e){return In(e,!0,Xt,vn,xn)}function In(e,t,n,o,i){if(!x(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=kn(e);if(0===s)return e;const a=new Proxy(e,2===s?o:n);return i.set(e,a),a}function Bn(e){return En(e)?Bn(e.__v_raw):!(!e||!e.__v_isReactive)}function En(e){return!(!e||!e.__v_isReadonly)}function Pn(e){return!(!e||!e.__v_isShallow)}function Mn(e){return Bn(e)||En(e)}function zn(e){const t=e&&e.__v_raw;return t?zn(t):e}function On(e){return Object.isExtensible(e)&&N(e,"__v_skip",!0),e}const Rn=e=>x(e)?Cn(e):e,Ln=e=>x(e)?Tn(e):e;class Dn{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new _t(()=>e(this._value),()=>$n(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=zn(this);return e._cacheable&&!e.effect.dirty||!L(e._value,e._value=e.effect.run())||$n(e,4),Nn(e),e.effect._dirtyLevel>=2&&$n(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Nn(e){var t;Ct&&yt&&(e=zn(e),Mt(yt,null!=(t=e.dep)?t:e.dep=Rt(()=>e.dep=void 0,e instanceof Dn?e:void 0)))}function $n(e,t=4,n){const o=(e=zn(e)).dep;o&&Ot(o,t)}function jn(e){return!(!e||!0!==e.__v_isRef)}function Hn(e){return Vn(e,!1)}function Fn(e){return Vn(e,!0)}function Vn(e,t){return jn(e)?e:new Wn(e,t)}class Wn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:zn(e),this._value=t?e:Rn(e)}get value(){return Nn(this),this._value}set value(e){const t=this.__v_isShallow||Pn(e)||En(e);e=t?e:zn(e),L(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Rn(e),$n(this,4))}}function Un(e){return jn(e)?e.value:e}const qn={get:(e,t,n)=>Un(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return jn(i)&&!jn(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function Qn(e){return Bn(e)?e:new Proxy(e,qn)}function Yn(e,t,n,o){try{return o?e(...o):e()}catch(i){Xn(i,t,n)}}function Gn(e,t,n,o){if(v(e)){const i=Yn(e,t,n,o);return i&&S(i)&&i.catch(e=>{Xn(e,t,n)}),i}const i=[];for(let r=0;r<e.length;r++)i.push(Gn(e[r],t,n,o));return i}function Xn(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,r=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,r))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Yn(s,null,10,[e,i,r])}Kn(e,n,i,o)}function Kn(e,t,n,o=!0){console.error(e)}let Jn=!1,Zn=!1;const eo=[];let to=0;const no=[];let oo=null,io=0;const ro=Promise.resolve();let so=null;function ao(e){const t=so||ro;return e?t.then(this?e.bind(this):e):t}function lo(e){eo.length&&eo.includes(e,Jn&&e.allowRecurse?to+1:to)||(null==e.id?eo.push(e):eo.splice(function(e){let t=to+1,n=eo.length;for(;t<n;){const o=t+n>>>1,i=eo[o],r=po(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}(e.id),0,e),co())}function co(){Jn||Zn||(Zn=!0,so=ro.then(mo))}function uo(e,t,n=(Jn?to+1:0)){for(;n<eo.length;n++){const t=eo[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;eo.splice(n,1),n--,t()}}}function ho(e){if(no.length){const e=[...new Set(no)].sort((e,t)=>po(e)-po(t));if(no.length=0,oo)return void oo.push(...e);for(oo=e,io=0;io<oo.length;io++)oo[io]();oo=null,io=0}}const po=e=>null==e.id?1/0:e.id,fo=(e,t)=>{const n=po(e)-po(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function mo(e){Zn=!1,Jn=!0,eo.sort(fo);try{for(to=0;to<eo.length;to++){const e=eo[to];e&&!1!==e.active&&Yn(e,null,14)}}finally{to=0,eo.length=0,ho(),Jn=!1,so=null,(eo.length||no.length)&&mo()}}function go(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||s;let i=n;const r=t.startsWith("update:"),a=r&&t.slice(7);if(a&&a in o){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:r}=o[e]||s;r&&(i=n.map(e=>_(e)?e.trim():e)),t&&(i=n.map($))}let l,c=o[l=R(t)]||o[l=R(P(t))];!c&&r&&(c=o[l=R(z(t))]),c&&Gn(c,e,6,yo(e,c,i));const u=o[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Gn(u,e,6,yo(e,u,i))}}function yo(e,t,n){if(1!==n.length)return n;if(v(t)){if(t.length<2)return n}else if(!t.find(e=>e.length>=2))return n;const o=n[0];if(o&&m(o,"type")&&m(o,"timeStamp")&&m(o,"target")&&m(o,"currentTarget")&&m(o,"detail")){const t=e.proxy,o=t.$gcd(t,!0);o&&n.push(o)}return n}function bo(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(void 0!==i)return i;const r=e.emits;let s={},a=!1;if(!v(e)){const o=e=>{const n=bo(e,t,!0);n&&(a=!0,h(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return r||a?(g(r)?r.forEach(e=>s[e]=null):h(s,r),x(e)&&o.set(e,s),s):(x(e)&&o.set(e,null),null)}function vo(e,t){return!(!e||!u(t))&&(t=t.slice(2).replace(/Once$/,""),m(e,t[0].toLowerCase()+t.slice(1))||m(e,z(t))||m(e,t))}let _o=null,wo=null;function xo(e){const t=_o;return _o=e,wo=e&&e.type.__scopeId||null,t}function So(e,t=_o,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Er(-1);const i=xo(t);let r;try{r=e(...n)}finally{xo(i),o._d&&Er(1)}return r};return o._n=!0,o._c=!0,o._d=!0,o}function ko(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:p,setupState:f,ctx:m,inheritAttrs:g}=e;let y,b;const v=xo(e);try{if(4&n.shapeFlag){const e=i||o,t=e;y=Ur(u.call(t,e,h,r,f,p,m)),b=l}else{const e=t;0,y=Ur(e.length>1?e(r,{attrs:l,slots:a,emit:c}):e(r,null)),b=t.props?l:Co(l)}}catch(w){Ar.length=0,Xn(w,e,1),y=jr(kr)}let _=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=_;e.length&&7&t&&(s&&e.some(d)&&(b=Ao(b,s)),_=Fr(_,b))}return n.dirs&&(_=Fr(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),y=_,xo(v),y}const Co=e=>{let t;for(const n in e)("class"===n||"style"===n||u(n))&&((t||(t={}))[n]=e[n]);return t},Ao=(e,t)=>{const n={};for(const o in e)d(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function To(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!vo(n,r))return!0}return!1}const Io="components";function Bo(e,t){return Mo(Io,e,!0,t)||e}const Eo=Symbol.for("v-ndc");function Po(e){return _(e)?Mo(Io,e,!1)||e:e||Eo}function Mo(e,t,n=!0,o=!1){const i=_o||Jr;if(i){const n=i.type;if(e===Io){const e=us(n,!1);if(e&&(e===t||e===P(t)||e===O(P(t))))return n}const r=zo(i[e]||n[e],t)||zo(i.appContext[e],t);return!r&&o?n:r}}function zo(e,t){return e&&(e[t]||e[P(t)]||e[O(P(t))])}const Oo=e=>e.__isSuspense;const Ro=Symbol.for("v-scx");function Lo(e,t){return $o(e,null,t)}const Do={};function No(e,t,n){return $o(e,t,n)}function $o(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:a,onTrigger:c}=s){if(t&&r){const e=t;t=(...t)=>{e(...t),A()}}const u=Jr,d=e=>!0===o?e:Fo(e,!1===o?1:void 0);let h,f,m=!1,y=!1;if(jn(e)?(h=()=>e.value,m=Pn(e)):Bn(e)?(h=()=>d(e),m=!0):g(e)?(y=!0,m=e.some(e=>Bn(e)||Pn(e)),h=()=>e.map(e=>jn(e)?e.value:Bn(e)?d(e):v(e)?Yn(e,u,2):void 0)):h=v(e)?t?()=>Yn(e,u,2):()=>(f&&f(),Gn(e,u,3,[_])):l,t&&o){const e=h;h=()=>Fo(e())}let b,_=e=>{f=k.onStop=()=>{Yn(e,u,4),f=k.onStop=void 0}};if(ss){if(_=l,t?n&&Gn(t,u,3,[h(),y?[]:void 0,_]):h(),"sync"!==i)return l;{const e=nr(Ro);b=e.__watcherHandles||(e.__watcherHandles=[])}}let w=y?new Array(e.length).fill(Do):Do;const x=()=>{if(k.active&&k.dirty)if(t){const e=k.run();(o||m||(y?e.some((e,t)=>L(e,w[t])):L(e,w)))&&(f&&f(),Gn(t,u,3,[e,w===Do?void 0:y&&w[0]===Do?[]:w,_]),w=e)}else k.run()};let S;x.allowRecurse=!!t,"sync"===i?S=x:"post"===i?S=()=>gr(x,u&&u.suspense):(x.pre=!0,u&&(x.id=u.uid),S=()=>lo(x));const k=new _t(h,l,S),C=gt,A=()=>{k.stop(),C&&p(C.effects,k)};return t?n?x():w=k.run():"post"===i?gr(k.run.bind(k),u&&u.suspense):k.run(),b&&b.push(A),A}function jo(e,t,n){const o=this.proxy,i=_(e)?e.includes(".")?Ho(o,e):()=>o[e]:e.bind(o,o);let r;v(t)?r=t:(r=t.handler,n=t);const s=ns(this),a=$o(i,r.bind(o),n);return s(),a}function Ho(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Fo(e,t,n=0,o){if(!x(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),jn(e))Fo(e.value,t,n,o);else if(g(e))for(let i=0;i<e.length;i++)Fo(e[i],t,n,o);else if(b(e)||y(e))e.forEach(e=>{Fo(e,t,n,o)});else if(A(e))for(const i in e)Fo(e[i],t,n,o);return e}function Vo(e,t){if(null===_o)return e;const n=cs(_o)||_o.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[e,r,a,l=s]=t[i];e&&(v(e)&&(e={mounted:e,updated:e}),e.deep&&Fo(r),o.push({dir:e,instance:n,value:r,oldValue:void 0,arg:a,modifiers:l}))}return e}function Wo(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];r&&(a.oldValue=r[s].value);let l=a.dir[o];l&&(It(),Gn(l,n,8,[e.el,a,e,t]),Bt())}}const Uo=Symbol("_leaveCb"),qo=Symbol("_enterCb");const Qo=[Function,Array],Yo={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qo,onEnter:Qo,onAfterEnter:Qo,onEnterCancelled:Qo,onBeforeLeave:Qo,onLeave:Qo,onAfterLeave:Qo,onLeaveCancelled:Qo,onBeforeAppear:Qo,onAppear:Qo,onAfterAppear:Qo,onAppearCancelled:Qo},Go={name:"BaseTransition",props:Yo,setup(e,{slots:t}){const n=Zr(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xi(()=>{e.isMounted=!0}),Ci(()=>{e.isUnmounting=!0}),e}();return()=>{const i=t.default&&ti(t.default(),!0);if(!i||!i.length)return;let r=i[0];if(i.length>1)for(const e of i)if(e.type!==kr){r=e;break}const s=zn(e),{mode:a}=s;if(o.isLeaving)return Jo(r);const l=Zo(r);if(!l)return Jo(r);const c=Ko(l,s,o,n);ei(l,c);const u=n.subTree,d=u&&Zo(u);if(d&&d.type!==kr&&!Rr(l,d)){const e=Ko(d,s,o,n);if(ei(d,e),"out-in"===a)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Jo(r);"in-out"===a&&l.type!==kr&&(e.delayLeave=(e,t,n)=>{Xo(o,d)[String(d.key)]=d,e[Uo]=()=>{t(),e[Uo]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return r}}};function Xo(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ko(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:f,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:v}=t,_=String(e.key),w=Xo(n,e),x=(e,t)=>{e&&Gn(e,o,9,t)},S=(e,t)=>{const n=t[1];x(e,t),g(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},k={mode:r,persisted:s,beforeEnter(t){let o=a;if(!n.isMounted){if(!i)return;o=m||a}t[Uo]&&t[Uo](!0);const r=w[_];r&&Rr(e,r)&&r.el[Uo]&&r.el[Uo](),x(o,[t])},enter(e){let t=l,o=c,r=u;if(!n.isMounted){if(!i)return;t=y||l,o=b||c,r=v||u}let s=!1;const a=e[qo]=t=>{s||(s=!0,x(t?r:o,[e]),k.delayedLeave&&k.delayedLeave(),e[qo]=void 0)};t?S(t,[e,a]):a()},leave(t,o){const i=String(e.key);if(t[qo]&&t[qo](!0),n.isUnmounting)return o();x(d,[t]);let r=!1;const s=t[Uo]=n=>{r||(r=!0,o(),x(n?f:p,[t]),t[Uo]=void 0,w[i]===e&&delete w[i])};w[i]=e,h?S(h,[t,s]):s()},clone:e=>Ko(e,t,n,o)};return k}function Jo(e){if(si(e))return(e=Fr(e)).children=null,e}function Zo(e){return si(e)?e.children?e.children[0]:void 0:e}function ei(e,t){6&e.shapeFlag&&e.component?ei(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ti(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const a=null==n?s.key:String(n)+String(null!=s.key?s.key:r);s.type===xr?(128&s.patchFlag&&i++,o=o.concat(ti(s.children,t,a))):(t||s.type!==kr)&&o.push(null!=a?Fr(s,{key:a}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}
/*! #__NO_SIDE_EFFECTS__ */function ni(e,t){return v(e)?(()=>h({name:e.name},t,{setup:e}))():e}const oi=e=>!!e.type.__asyncLoader;
/*! #__NO_SIDE_EFFECTS__ */function ii(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:i=200,timeout:r,suspensible:s=!0,onError:a}=e;let l,c=null,u=0;const d=()=>{let e;return c||(e=c=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise((t,n)=>{a(e,()=>t((u++,c=null,d())),()=>n(e),u+1)});throw e}).then(t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t)))};return ni({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=Jr;if(l)return()=>ri(l,e);const t=t=>{c=null,Xn(t,e,13,!o)};if(s&&e.suspense||ss)return d().then(t=>()=>ri(t,e)).catch(e=>(t(e),()=>o?jr(o,{error:e}):null));const a=Hn(!1),u=Hn(),h=Hn(!!i);return i&&setTimeout(()=>{h.value=!1},i),null!=r&&setTimeout(()=>{if(!a.value&&!u.value){const e=new Error(`Async component timed out after ${r}ms.`);t(e),u.value=e}},r),d().then(()=>{a.value=!0,e.parent&&si(e.parent.vnode)&&(e.parent.effect.dirty=!0,lo(e.parent.update))}).catch(e=>{t(e),u.value=e}),()=>a.value&&l?ri(l,e):u.value&&o?jr(o,{error:u.value}):n&&!h.value?jr(n):void 0}})}function ri(e,t){const{ref:n,props:o,children:i,ce:r}=t.vnode,s=jr(e,o,i);return s.ref=n,s.ce=r,delete t.vnode.ce,s}const si=e=>e.type.__isKeepAlive;class ai{constructor(e){this.max=e,this._cache=new Map,this._keys=new Set,this._max=parseInt(e,10)}get(e){const{_cache:t,_keys:n,_max:o}=this,i=t.get(e);if(i)n.delete(e),n.add(e);else if(n.add(e),o&&n.size>o){const e=n.values().next().value;this.pruneCacheEntry(t.get(e)),this.delete(e)}return i}set(e,t){this._cache.set(e,t)}delete(e){this._cache.delete(e),this._keys.delete(e)}forEach(e,t){this._cache.forEach(e.bind(t))}}const li={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number],matchBy:{type:String,default:"name"},cache:Object},setup(e,{slots:t}){const n=Zr(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=e.cache||new ai(e.max);i.pruneCacheEntry=s;let r=null;function s(t){var o;!r||!Rr(t,r)||"key"===e.matchBy&&t.key!==r.key?(mi(o=t),u(o,n,a,!0)):r&&mi(r)}const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=o,h=d("div");function p(t){i.forEach((n,o)=>{const r=yi(n,e.matchBy);!r||t&&t(r)||(i.delete(o),s(n))})}o.activate=(e,t,n,o,i)=>{const r=e.component;if(r.ba){const e=r.isDeactivated;r.isDeactivated=!1,D(r.ba),r.isDeactivated=e}c(e,t,n,0,a),l(r.vnode,e,t,n,r,a,o,e.slotScopeIds,i),gr(()=>{r.isDeactivated=!1,r.a&&D(r.a);const t=e.props&&e.props.onVnodeMounted;t&&Gr(t,r.parent,e)},a)},o.deactivate=e=>{const t=e.component;t.bda&&bi(t.bda),c(e,h,null,1,a),gr(()=>{t.bda&&t.bda.forEach(e=>e.__called=!1),t.da&&D(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Gr(n,t.parent,e),t.isDeactivated=!0},a)},No(()=>[e.include,e.exclude,e.matchBy],([e,t])=>{e&&p(t=>ui(e,t)),t&&p(e=>!ui(t,e))},{flush:"post",deep:!0});let f=null;const m=()=>{null!=f&&i.set(f,gi(n.subTree))};return xi(m),ki(m),Ci(()=>{i.forEach((t,o)=>{i.delete(o),s(t);const{subTree:r,suspense:a}=n,l=gi(r);if(t.type===l.type&&("key"!==e.matchBy||t.key===l.key)){l.component.bda&&D(l.component.bda),mi(l);const e=l.component.da;return void(e&&gr(e,a))}})}),()=>{if(f=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return r=null,n;if(!Or(o)||!(4&o.shapeFlag)&&!Oo(o.type))return r=null,o;let s=gi(o);const a=s.type,l=yi(s,e.matchBy),{include:c,exclude:u}=e;if(c&&(!l||!ui(c,l))||u&&l&&ui(u,l))return r=s,o;const d=null==s.key?a:s.key,h=i.get(d);return s.el&&(s=Fr(s),Oo(o.type)&&(o.ssContent=s)),f=d,h&&(s.el=h.el,s.component=h.component,s.transition&&ei(s,s.transition),s.shapeFlag|=512),s.shapeFlag|=256,r=s,Oo(o.type)?o:s}}},ci=li;function ui(e,t){return g(e)?e.some(e=>ui(e,t)):_(e)?e.split(",").includes(t):"[object RegExp]"===C(e)&&e.test(t)}function di(e,t){pi(e,"a",t)}function hi(e,t){pi(e,"da",t)}function pi(e,t,n=Jr){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(o.__called=!1,vi(t,o,n),n){let e=n.parent;for(;e&&e.parent;)si(e.parent.vnode)&&fi(o,t,n,e),e=e.parent}}function fi(e,t,n,o){const i=vi(t,e,o,!0);Ai(()=>{p(o[t],i)},n)}function mi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function gi(e){return Oo(e.type)?e.ssContent:e}function yi(e,t){if("name"===t){const t=e.type;return us(oi(e)?t.__asyncResolved||{}:t)}return String(e.key)}function bi(e){for(let t=0;t<e.length;t++){const n=e[t];n.__called||(n(),n.__called=!0)}}function vi(e,t,n=Jr,o=!1){if(n){if(i=e,at.indexOf(i)>-1&&n.$pageInstance){if(n.type.__reserved)return;if(n!==n.$pageInstance&&(n=n.$pageInstance,function(e){return[pe,ae].indexOf(e)>-1}(e))){const o=n.proxy;Gn(t.bind(o),n,e,pe===e?[o.$page.options]:[])}}const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;It();const i=ns(n),r=Gn(t,n,e,o);return i(),Bt(),r});return o?r.unshift(s):r.push(s),s}var i}const _i=e=>(t,n=Jr)=>(!ss||"sp"===e)&&vi(e,(...e)=>t(...e),n),wi=_i("bm"),xi=_i("m"),Si=_i("bu"),ki=_i("u"),Ci=_i("bum"),Ai=_i("um"),Ti=_i("sp"),Ii=_i("rtg"),Bi=_i("rtc");function Ei(e,t=Jr){vi("ec",e,t)}function Pi(e,t,n,o){let i;const r=n&&n[o];if(g(e)||_(e)){i=new Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(e[n],n,void 0,r&&r[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,r&&r[n])}else if(x(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,r&&r[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let o=0,s=n.length;o<s;o++){const s=n[o];i[o]=t(e[s],s,o,r&&r[o])}}else i=[];return n&&(n[o]=i),i}function Mi(e,t,n={},o,i){if(_o.isCE||_o.parent&&oi(_o.parent)&&_o.parent.isCE)return"default"!==t&&(n.name=t),jr("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),Ir();const s=r&&zi(r(n)),a=zr(xr,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&1===e._?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function zi(e){return e.some(e=>!Or(e)||e.type!==kr&&!(e.type===xr&&!zi(e.children)))?e:null}const Oi=e=>{if(!e)return null;if(is(e)){return cs(e)||e.proxy}return Oi(e.parent)},Ri=h(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=>Oi(e.parent),$root:e=>Oi(e.root),$emit:e=>e.emit,$options:e=>Vi(e),$forceUpdate:e=>e.f||(e.f=(e=>function(){e.effect.dirty=!0,lo(e.update)})(e)),$nextTick:e=>e.n||(e.n=ao.bind(e.proxy)),$watch:e=>jo.bind(e)}),Li=(e,t)=>e!==s&&!e.__isScriptSetup&&m(e,t),Di={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,accessCache:a,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=a[t];if(void 0!==l)switch(l){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Li(o,t))return a[t]=1,o[t];if(i!==s&&m(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&m(u,t))return a[t]=3,r[t];if(n!==s&&m(n,t))return a[t]=4,n[t];$i&&(a[t]=0)}}const d=Ri[t];let h,p;return d?("$attrs"===t&&$t(e,0,t),d(e)):(h=l.__cssModules)&&(h=h[t])?h:n!==s&&m(n,t)?(a[t]=4,n[t]):(p=c.config.globalProperties,m(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return Li(i,t)?(i[t]=n,!0):o!==s&&m(o,t)?(o[t]=n,!0):!m(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(r[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},a){let l;return!!n[a]||e!==s&&m(e,a)||Li(t,a)||(l=r[0])&&m(l,a)||m(o,a)||m(Ri,a)||m(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:m(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ni(e){return g(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let $i=!0;function ji(e){const t=Vi(e),n=e.proxy,o=e.ctx;$i=!1,t.beforeCreate&&Hi(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:a,provide:c,inject:u,created:d,beforeMount:h,mounted:p,beforeUpdate:f,updated:m,activated:y,deactivated:b,beforeDestroy:_,beforeUnmount:w,destroyed:S,unmounted:k,render:C,renderTracked:A,renderTriggered:T,errorCaptured:I,serverPrefetch:B,expose:E,inheritAttrs:P,components:M,directives:z,filters:O}=t;if(u&&function(e,t){g(e)&&(e=Qi(e));for(const n in e){const o=e[n];let i;i=x(o)?"default"in o?nr(o.from||n,o.default,!0):nr(o.from||n):nr(o),jn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(u,o,null),s)for(const l in s){const e=s[l];v(e)&&(o[l]=e.bind(n))}if(i){const t=i.call(n,n);x(t)&&(e.data=Cn(t))}if($i=!0,r)for(const g in r){const e=r[g],t=v(e)?e.bind(n,n):v(e.get)?e.get.bind(n,n):l,i=!v(e)&&v(e.set)?e.set.bind(n):l,s=ds({get:t,set:i});Object.defineProperty(o,g,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(a)for(const l in a)Fi(a[l],o,n,l);if(c){const e=v(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{tr(t,e[t])})}function R(e,t){g(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&Hi(d,e,"c"),R(wi,h),R(xi,p),R(Si,f),R(ki,m),R(di,y),R(hi,b),R(Ei,I),R(Bi,A),R(Ii,T),R(Ci,w),R(Ai,k),R(Ti,B),g(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});C&&e.render===l&&(e.render=C),null!=P&&(e.inheritAttrs=P),M&&(e.components=M),z&&(e.directives=z);const L=e.appContext.config.globalProperties.$applyOptions;L&&L(t,e,n)}function Hi(e,t,n){Gn(g(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Fi(e,t,n,o){const i=o.includes(".")?Ho(n,o):()=>n[o];if(_(e)){const n=t[e];v(n)&&No(i,n)}else if(v(e))No(i,e.bind(n));else if(x(e))if(g(e))e.forEach(e=>Fi(e,t,n,o));else{const o=v(e.handler)?e.handler.bind(n):t[e.handler];v(o)&&No(i,o,e)}}function Vi(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let l;return a?l=a:i.length||n||o?(l={},i.length&&i.forEach(e=>Wi(l,e,s,!0)),Wi(l,t,s)):l=t,x(t)&&r.set(t,l),l}function Wi(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&Wi(e,r,n,!0),i&&i.forEach(t=>Wi(e,t,n,!0));for(const s in t)if(o&&"expose"===s);else{const o=Ui[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const Ui={data:qi,props:Xi,emits:Xi,methods:Gi,computed:Gi,beforeCreate:Yi,created:Yi,beforeMount:Yi,mounted:Yi,beforeUpdate:Yi,updated:Yi,beforeDestroy:Yi,beforeUnmount:Yi,destroyed:Yi,unmounted:Yi,activated:Yi,deactivated:Yi,errorCaptured:Yi,serverPrefetch:Yi,components:Gi,directives:Gi,watch:function(e,t){if(!e)return t;if(!t)return e;const n=h(Object.create(null),e);for(const o in t)n[o]=Yi(e[o],t[o]);return n},provide:qi,inject:function(e,t){return Gi(Qi(e),Qi(t))}};function qi(e,t){return t?e?function(){return h(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function Qi(e){if(g(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Yi(e,t){return e?[...new Set([].concat(e,t))]:t}function Gi(e,t){return e?h(Object.create(null),e,t):t}function Xi(e,t){return e?g(e)&&g(t)?[...new Set([...e,...t])]:h(Object.create(null),Ni(e),Ni(null!=t?t:{})):t}function Ki(){return{app:null,config:{isNativeTag:c,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ji=0;function Zi(e,t){return function(n,o=null){v(n)||(n=h({},n)),null==o||x(o)||(o=null);const i=Ki(),r=new WeakSet;let s=!1;const a=i.app={_uid:Ji++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:ps,get config(){return i.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&v(e.install)?(r.add(e),e.install(a,...t)):v(e)&&(r.add(e),e(a,...t))),a),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(r,l,c){if(!s){const u=jr(n,o);return u.appContext=i,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(u,r):e(u,r,c),s=!0,a._container=r,r.__vue_app__=a,a._instance=u.component,cs(u.component)||u.component.proxy}},unmount(){s&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a),runWithContext(e){const t=er;er=a;try{return e()}finally{er=t}}};return a}}let er=null;function tr(e,t){if(Jr){let n=Jr.provides;const o=Jr.parent&&Jr.parent.provides;o===n&&(n=Jr.provides=Object.create(o)),n[e]=t,"app"===Jr.type.mpType&&Jr.appContext.app.provide(e,t)}else;}function nr(e,t,n=!1){const o=Jr||_o;if(o||er){const i=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:er._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&v(t)?t.call(o&&o.proxy):t}}function or(e,t,n,o){const[i,r]=e.propsOptions;let a,l=!1;if(t)for(let s in t){if(I(s))continue;const c=t[s];let u;i&&m(i,u=P(s))?r&&r.includes(u)?(a||(a={}))[u]=c:n[u]=c:vo(e.emitsOptions,s)||s in o&&c===o[s]||(o[s]=c,l=!0)}if(r){const t=zn(n),o=a||s;for(let s=0;s<r.length;s++){const a=r[s];n[a]=ir(i,t,a,o[a],e,!m(o,a))}}return l}function ir(e,t,n,o,i,r){const s=e[n];if(null!=s){const e=m(s,"default");if(e&&void 0===o){const e=s.default;if(s.type!==Function&&!s.skipFactory&&v(e)){const{propsDefaults:r}=i;if(n in r)o=r[n];else{const s=ns(i);o=r[n]=e.call(null,t),s()}}else o=e}s[0]&&(r&&!e?o=!1:!s[1]||""!==o&&o!==z(n)||(o=!0))}return o}function rr(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,l={},c=[];let u=!1;if(!v(e)){const o=e=>{u=!0;const[n,o]=rr(e,t,!0);h(l,n),o&&c.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!r&&!u)return x(e)&&o.set(e,a),a;if(g(r))for(let a=0;a<r.length;a++){const e=P(r[a]);sr(e)&&(l[e]=s)}else if(r)for(const s in r){const e=P(s);if(sr(e)){const t=r[s],n=l[e]=g(t)||v(t)?{type:t}:h({},t);if(n){const t=cr(Boolean,n.type),o=cr(String,n.type);n[0]=t>-1,n[1]=o<0||t<o,(t>-1||m(n,"default"))&&c.push(e)}}}const d=[l,c];return x(e)&&o.set(e,d),d}function sr(e){return"$"!==e[0]&&!I(e)}function ar(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function lr(e,t){return ar(e)===ar(t)}function cr(e,t){return g(t)?t.findIndex(t=>lr(t,e)):v(t)&&lr(t,e)?0:-1}const ur=e=>"_"===e[0]||"$stable"===e,dr=e=>g(e)?e.map(Ur):[Ur(e)],hr=(e,t,n)=>{if(t._n)return t;const o=So((...e)=>dr(t(...e)),n);return o._c=!1,o},pr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(ur(i))continue;const n=e[i];if(v(n))t[i]=hr(0,n,o);else if(null!=n){const e=dr(n);t[i]=()=>e}}},fr=(e,t)=>{const n=dr(t);e.slots.default=()=>n};function mr(e,t,n,o,i=!1){if(g(e))return void e.forEach((e,r)=>mr(e,t&&(g(t)?t[r]:t),n,o,i));if(oi(o)&&!i)return;const r=4&o.shapeFlag?cs(o.component)||o.component.proxy:o.el,a=i?null:r,{i:l,r:c}=e,u=t&&t.r,d=l.refs===s?l.refs={}:l.refs,h=l.setupState;if(null!=u&&u!==c&&(_(u)?(d[u]=null,m(h,u)&&(h[u]=null)):jn(u)&&(u.value=null)),v(c))Yn(c,l,12,[a,d]);else{const t=_(c),o=jn(c);if(t||o){const s=()=>{if(e.f){const n=t?m(h,c)?h[c]:d[c]:c.value;i?g(n)&&p(n,r):g(n)?n.includes(r)||n.push(r):t?(d[c]=[r],m(h,c)&&(h[c]=d[c])):(c.value=[r],e.k&&(d[e.k]=c.value))}else t?(d[c]=a,m(h,c)&&(h[c]=a)):o&&(c.value=a,e.k&&(d[e.k]=a))};a?(s.id=-1,gr(s,n)):s()}}}const gr=function(e,t){var n;t&&t.pendingBranch?g(e)?t.effects.push(...e):t.effects.push(e):(g(n=e)?no.push(...n):oo&&oo.includes(n,n.allowRecurse?io+1:io)||no.push(n),co())};function yr(e){return function(e,t){H().__VUE__=!0;const{insert:n,remove:o,patchProp:i,forcePatchProp:r,createElement:c,createText:u,createComment:d,setText:p,setElementText:f,parentNode:g,nextSibling:y,setScopeId:b=l,insertStaticContent:v}=e,_=(e,t,n,o=null,i=null,r=null,s=void 0,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Rr(e,t)&&(o=te(e),X(e,i,r,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Sr:w(e,t,n,o);break;case kr:x(e,t,n,o);break;case Cr:null==e&&k(t,n,o,s);break;case xr:$(e,t,n,o,i,r,s,a,l);break;default:1&d?T(e,t,n,o,i,r,s,a,l):6&d?j(e,t,n,o,i,r,s,a,l):(64&d||128&d)&&c.process(e,t,n,o,i,r,s,a,l,ie)}null!=u&&i&&mr(u,e&&e.ref,r,t||e,!t)},w=(e,t,o,i)=>{if(null==e)n(t.el=u(t.children),o,i);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},x=(e,t,o,i)=>{null==e?n(t.el=d(t.children||""),o,i):t.el=e.el},k=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},C=({el:e,anchor:t},o,i)=>{let r;for(;e&&e!==t;)r=y(e),n(e,o,i),e=r;n(t,o,i)},A=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=y(e),o(e),e=n;o(t)},T=(e,t,n,o,i,r,s,a,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?B(t,n,o,i,r,s,a,l):O(e,t,i,r,s,a,l)},B=(e,t,o,r,s,a,l,u)=>{let d,h;const{props:p,shapeFlag:m,transition:g,dirs:y}=e;if(d=e.el=c(e.type,a,p&&p.is,p),8&m?f(d,e.children):16&m&&M(e.children,d,null,r,s,br(e,a),l,u),y&&Wo(e,null,r,"created"),E(d,e,e.scopeId,l,r),p){for(const t in p)"value"===t||I(t)||i(d,t,null,p[t],a,e.children,r,s,ee);"value"in p&&i(d,"value",null,p.value,a),(h=p.onVnodeBeforeMount)&&Gr(h,r,e)}Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1}),y&&Wo(e,null,r,"beforeMount");const b=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(s,g);b&&g.beforeEnter(d),n(d,t,o),((h=p&&p.onVnodeMounted)||b||y)&&gr(()=>{h&&Gr(h,r,e),b&&g.enter(d),y&&Wo(e,null,r,"mounted")},s)},E=(e,t,n,o,i)=>{if(n&&b(e,n),o)for(let r=0;r<o.length;r++)b(e,o[r]);if(i){if(t===i.subTree){const t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},M=(e,t,n,o,i,r,s,a,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=a?qr(e[c]):Ur(e[c]);_(null,l,t,n,o,i,r,s,a)}},O=(e,t,n,o,a,l,c)=>{const u=t.el=e.el;let{patchFlag:d,dynamicChildren:h,dirs:p}=t;d|=16&e.patchFlag;const m=e.props||s,g=t.props||s;let y;if(n&&vr(n,!1),(y=g.onVnodeBeforeUpdate)&&Gr(y,n,t,e),p&&Wo(t,e,n,"beforeUpdate"),n&&vr(n,!0),h?R(e.dynamicChildren,h,u,n,o,br(t,a),l):c||q(e,t,u,null,n,o,br(t,a),l,!1),d>0){if(16&d)L(u,t,m,g,n,o,a);else if(2&d&&m.class!==g.class&&i(u,"class",null,g.class,a),4&d&&i(u,"style",m.style,g.style,a),8&d){const s=t.dynamicProps;for(let t=0;t<s.length;t++){const l=s[t],c=m[l],d=g[l];(d!==c||"value"===l||r&&r(u,l))&&i(u,l,c,d,a,e.children,n,o,ee)}}1&d&&e.children!==t.children&&f(u,t.children)}else c||null!=h||L(u,t,m,g,n,o,a);((y=g.onVnodeUpdated)||p)&&gr(()=>{y&&Gr(y,n,t,e),p&&Wo(t,e,n,"updated")},o)},R=(e,t,n,o,i,r,s)=>{for(let a=0;a<t.length;a++){const l=e[a],c=t[a],u=l.el&&(l.type===xr||!Rr(l,c)||70&l.shapeFlag)?g(l.el):n;_(l,c,u,null,o,i,r,s,!0)}},L=(e,t,n,o,a,l,c)=>{if(n!==o){if(n!==s)for(const r in n)I(r)||r in o||i(e,r,n[r],null,c,t.children,a,l,ee);for(const s in o){if(I(s))continue;const u=o[s],d=n[s];(u!==d&&"value"!==s||r&&r(e,s))&&i(e,s,d,u,c,t.children,a,l,ee)}"value"in o&&i(e,"value",n.value,o.value,c)}},$=(e,t,o,i,r,s,a,l,c)=>{const d=t.el=e?e.el:u(""),h=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(d,o,i),n(h,o,i),M(t.children||[],o,h,r,s,a,l,c)):p>0&&64&p&&f&&e.dynamicChildren?(R(e.dynamicChildren,f,o,r,s,a,l),(null!=t.key||r&&t===r.subTree)&&_r(e,t,!0)):q(e,t,o,h,r,s,a,l,c)},j=(e,t,n,o,i,r,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?i.ctx.activate(t,n,o,s,l):F(t,n,o,i,r,s,l):V(e,t,l)},F=(e,t,n,o,i,r,a)=>{const l=e.component=function(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||Xr,r={uid:Kr++,vnode:e,type:o,parent:t,appContext:i,get renderer(){return"app"===o.mpType?"app":this.$pageInstance&&this.$pageInstance==r?"page":"component"},root:null,next:null,subTree:null,effect:null,update:null,scope:new bt(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:rr(o,i),emitsOptions:bo(o,i),emit:null,emitted:null,propsDefaults:s,inheritAttrs:o.inheritAttrs,ctx:s,data:s,props:s,attrs:s,slots:s,refs:s,setupState:s,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,bda:null,da:null,ba:null,a:null,rtg:null,rtc:null,ec:null,sp:null};r.ctx={_:r},r.root=t?t.root:r,r.emit=go.bind(null,r),r.$pageInstance=t&&t.$pageInstance,e.ce&&e.ce(r);return r}(e,o,i);if(si(e)&&(l.ctx.renderer=ie),function(e,t=!1){t&&ts(t);const{props:n,children:o}=e.vnode,i=is(e);(function(e,t,n,o=!1){const i={},r={};N(r,Lr,1),e.propsDefaults=Object.create(null),or(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:An(i):e.type.props?e.props=i:e.props=r,e.attrs=r})(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=zn(t),N(t,"_",n)):pr(t,e.slots={})}else e.slots={},t&&fr(e,t);N(e.slots,Lr,1)})(e,o);const r=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=On(new Proxy(e.ctx,Di));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>($t(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null,i=ns(e);It();const r=Yn(o,e,0,[e.props,n]);if(Bt(),i(),S(r)){if(r.then(os,os),t)return r.then(n=>{as(e,n,t)}).catch(t=>{Xn(t,e,0)});e.asyncDep=r}else as(e,r,t)}else ls(e,t)}(e,t):void 0;t&&ts(!1)}(l),l.asyncDep){if(i&&i.registerDep(l,W),!e.el){const e=l.subTree=jr(kr);x(null,e,t,n)}}else W(l,e,t,n,i,r,a)},V=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:a,patchFlag:l}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!a||a&&a.$stable)||o!==s&&(o?!s||To(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?To(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==o[n]&&!vo(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void U(o,t,n);o.next=t,function(e){const t=eo.indexOf(e);t>to&&eo.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},W=(e,t,n,o,i,r,s)=>{const a=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:l,vnode:c}=e;{const n=wr(e);if(n)return t&&(t.el=c.el,U(e,t,s)),void n.asyncDep.then(()=>{e.isUnmounted||a()})}let u,d=t;vr(e,!1),t?(t.el=c.el,U(e,t,s)):t=c,n&&D(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&Gr(u,l,t,c),vr(e,!0);const h=ko(e),p=e.subTree;e.subTree=h,_(p,h,g(p.el),te(p),e,i,r),t.el=h.el,null===d&&function({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,h.el),o&&gr(o,i),(u=t.props&&t.props.onVnodeUpdated)&&gr(()=>Gr(u,l,t,c),i)}else{let s;const{el:a,props:l}=t,{bm:c,m:u,parent:d}=e,h=oi(t);if(vr(e,!1),c&&D(c),!h&&(s=l&&l.onVnodeBeforeMount)&&Gr(s,d,t),vr(e,!0),a&&se){const n=()=>{e.subTree=ko(e),se(a,e.subTree,e,i,null)};h?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{const s=e.subTree=ko(e);_(null,s,n,o,e,i,r),t.el=s.el}if(u&&gr(u,i),!h&&(s=l&&l.onVnodeMounted)){const e=t;gr(()=>Gr(s,d,e),i)}(256&t.shapeFlag||d&&oi(d.vnode)&&256&d.vnode.shapeFlag)&&(e.ba&&bi(e.ba),e.a&&gr(e.a,i)),e.isMounted=!0,t=n=o=null}},c=e.effect=new _t(a,l,()=>lo(u),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.id=e.uid,vr(e,!0),u()},U=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,a=zn(i),[l]=e.propsOptions;let c=!1;if(!(o||s>0)||16&s){let o;or(e,t,i,r)&&(c=!0);for(const r in a)t&&(m(t,r)||(o=z(r))!==r&&m(t,o))||(l?!n||void 0===n[r]&&void 0===n[o]||(i[r]=ir(l,a,r,void 0,e,!0)):delete i[r]);if(r!==a)for(const e in r)t&&m(t,e)||(delete r[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let s=n[o];if(vo(e.emitsOptions,s))continue;const u=t[s];if(l)if(m(r,s))u!==r[s]&&(r[s]=u,c=!0);else{const t=P(s);i[t]=ir(l,a,t,u,e,!1)}else u!==r[s]&&(r[s]=u,c=!0)}}c&&jt(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,a=s;if(32&o.shapeFlag){const e=t._;e?n&&1===e?r=!1:(h(i,t),n||1!==e||delete i._):(r=!t.$stable,pr(t,i)),a=t}else t&&(fr(e,t),a={default:1});if(r)for(const s in i)ur(s)||null!=a[s]||delete i[s]})(e,t.children,n),It(),uo(e),Bt()},q=(e,t,n,o,i,r,s,a,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:p}=t;if(h>0){if(128&h)return void Y(c,d,n,o,i,r,s,a,l);if(256&h)return void Q(c,d,n,o,i,r,s,a,l)}8&p?(16&u&&ee(c,i,r),d!==c&&f(n,d)):16&u?16&p?Y(c,d,n,o,i,r,s,a,l):ee(c,i,r,!0):(8&u&&f(n,""),16&p&&M(d,n,o,i,r,s,a,l))},Q=(e,t,n,o,i,r,s,l,c)=>{t=t||a;const u=(e=e||a).length,d=t.length,h=Math.min(u,d);let p;for(p=0;p<h;p++){const o=t[p]=c?qr(t[p]):Ur(t[p]);_(e[p],o,n,null,i,r,s,l,c)}u>d?ee(e,i,r,!0,!1,h):M(t,n,o,i,r,s,l,c,h)},Y=(e,t,n,o,i,r,s,l,c)=>{let u=0;const d=t.length;let h=e.length-1,p=d-1;for(;u<=h&&u<=p;){const o=e[u],a=t[u]=c?qr(t[u]):Ur(t[u]);if(!Rr(o,a))break;_(o,a,n,null,i,r,s,l,c),u++}for(;u<=h&&u<=p;){const o=e[h],a=t[p]=c?qr(t[p]):Ur(t[p]);if(!Rr(o,a))break;_(o,a,n,null,i,r,s,l,c),h--,p--}if(u>h){if(u<=p){const e=p+1,a=e<d?t[e].el:o;for(;u<=p;)_(null,t[u]=c?qr(t[u]):Ur(t[u]),n,a,i,r,s,l,c),u++}}else if(u>p)for(;u<=h;)X(e[u],i,r,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=c?qr(t[u]):Ur(t[u]);null!=e.key&&g.set(e.key,u)}let y,b=0;const v=p-m+1;let w=!1,x=0;const S=new Array(v);for(u=0;u<v;u++)S[u]=0;for(u=f;u<=h;u++){const o=e[u];if(b>=v){X(o,i,r,!0);continue}let a;if(null!=o.key)a=g.get(o.key);else for(y=m;y<=p;y++)if(0===S[y-m]&&Rr(o,t[y])){a=y;break}void 0===a?X(o,i,r,!0):(S[a-m]=u+1,a>=x?x=a:w=!0,_(o,t[a],n,null,i,r,s,l,c),b++)}const k=w?function(e){const t=e.slice(),n=[0];let o,i,r,s,a;const l=e.length;for(o=0;o<l;o++){const l=e[o];if(0!==l){if(i=n[n.length-1],e[i]<l){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)a=r+s>>1,e[n[a]]<l?r=a+1:s=a;l<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}r=n.length,s=n[r-1];for(;r-- >0;)n[r]=s,s=t[s];return n}(S):a;for(y=k.length-1,u=v-1;u>=0;u--){const e=m+u,a=t[e],h=e+1<d?t[e+1].el:o;0===S[u]?_(null,a,n,h,i,r,s,l,c):w&&(y<0||u!==k[y]?G(a,n,h,2):y--)}}},G=(e,t,o,i,r=null)=>{const{el:s,type:a,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void G(e.component.subTree,t,o,i);if(128&u)return void e.suspense.move(t,o,i);if(64&u)return void a.move(e,t,o,ie);if(a===xr){n(s,t,o);for(let e=0;e<c.length;e++)G(c[e],t,o,i);return void n(e.anchor,t,o)}if(a===Cr)return void C(e,t,o);if(2!==i&&1&u&&l)if(0===i)l.beforeEnter(s),n(s,t,o),gr(()=>l.enter(s),r);else{const{leave:e,delayLeave:i,afterLeave:r}=l,a=()=>n(s,t,o),c=()=>{e(s,()=>{a(),r&&r()})};i?i(s,a,c):c()}else n(s,t,o)},X=(e,t,n,o=!1,i=!1)=>{const{type:r,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:h}=e;if(null!=a&&mr(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&h,f=!oi(e);let m;if(f&&(m=s&&s.onVnodeBeforeUnmount)&&Gr(m,t,e),6&u)Z(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);p&&Wo(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,ie,o):c&&(r!==xr||d>0&&64&d)?ee(c,t,n,!1,!0):(r===xr&&384&d||!i&&16&u)&&ee(l,t,n),o&&K(e)}(f&&(m=s&&s.onVnodeUnmounted)||p)&&gr(()=>{m&&Gr(m,t,e),p&&Wo(e,null,t,"unmounted")},n)},K=e=>{const{type:t,el:n,anchor:i,transition:r}=e;if(t===xr)return void J(n,i);if(t===Cr)return void A(e);const s=()=>{o(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,i=()=>t(n,s);o?o(e.el,s,i):i()}else s()},J=(e,t)=>{let n;for(;e!==t;)n=y(e),o(e),e=n;o(t)},Z=(e,t,n)=>{const{bum:o,scope:i,update:r,subTree:s,um:a}=e;o&&D(o),i.stop(),r&&(r.active=!1,X(s,e,t,n)),a&&gr(a,t),gr(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,o=!1,i=!1,r=0)=>{for(let s=r;s<e.length;s++)X(e[s],t,n,o,i)},te=e=>6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():y(e.anchor||e.el);let ne=!1;const oe=(e,t,n)=>{null==e?t._vnode&&X(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,n),ne||(ne=!0,uo(),ho(),ne=!1),t._vnode=e},ie={p:_,um:X,m:G,r:K,mt:F,mc:M,pc:q,pbc:R,n:te,o:e};let re,se;t&&([re,se]=t(ie));return{render:oe,hydrate:re,createApp:Zi(oe,re)}}(e)}function br({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function vr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function _r(e,t,n=!1){const o=e.children,i=t.children;if(g(o)&&g(i))for(let r=0;r<o.length;r++){const e=o[r];let t=i[r];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[r]=qr(i[r]),t.el=e.el),n||_r(e,t)),t.type===Sr&&(t.el=e.el)}}function wr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:wr(t)}const xr=Symbol.for("v-fgt"),Sr=Symbol.for("v-txt"),kr=Symbol.for("v-cmt"),Cr=Symbol.for("v-stc"),Ar=[];let Tr=null;function Ir(e=!1){Ar.push(Tr=e?null:[])}let Br=1;function Er(e){Br+=e}function Pr(e){return e.dynamicChildren=Br>0?Tr||a:null,Ar.pop(),Tr=Ar[Ar.length-1]||null,Br>0&&Tr&&Tr.push(e),e}function Mr(e,t,n,o,i,r){return Pr($r(e,t,n,o,i,r,!0))}function zr(e,t,n,o,i){return Pr(jr(e,t,n,o,i,!0))}function Or(e){return!!e&&!0===e.__v_isVNode}function Rr(e,t){return e.type===t.type&&e.key===t.key}const Lr="__vInternal",Dr=({key:e})=>null!=e?e:null,Nr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?_(e)||jn(e)||v(e)?{i:_o,r:e,k:t,f:!!n}:e:null);function $r(e,t=null,n=null,o=0,i=null,r=(e===xr?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dr(t),ref:t&&Nr(t),scopeId:wo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:_o};return a?(Qr(l,n),128&r&&e.normalize(l)):n&&(l.shapeFlag|=_(n)?8:16),Br>0&&!s&&Tr&&(l.patchFlag>0||6&r)&&32!==l.patchFlag&&Tr.push(l),l}const jr=function(e,t=null,n=null,o=0,i=null,r=!1){e&&e!==Eo||(e=kr);if(Or(e)){const o=Fr(e,t,!0);return n&&Qr(o,n),Br>0&&!r&&Tr&&(6&o.shapeFlag?Tr[Tr.indexOf(e)]=o:Tr.push(o)),o.patchFlag|=-2,o}s=e,v(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=Hr(t);let{class:e,style:n}=t;e&&!_(e)&&(t.class=Qe(e)),x(n)&&(Mn(n)&&!g(n)&&(n=h({},n)),t.style=qe(n))}const a=_(e)?1:Oo(e)?128:(e=>e.__isTeleport)(e)?64:x(e)?4:v(e)?2:0;return $r(e,t,n,o,i,a,r,!0)};function Hr(e){return e?Mn(e)||Lr in e?h({},e):e:null}function Fr(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,a=t?Yr(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Dr(a),ref:t&&t.ref?n&&i?g(i)?i.concat(Nr(t)):[i,Nr(t)]:Nr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xr?-1===r?16:16|r:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fr(e.ssContent),ssFallback:e.ssFallback&&Fr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Vr(e=" ",t=0){return jr(Sr,null,e,t)}function Wr(e="",t=!1){return t?(Ir(),zr(kr,null,e)):jr(kr,null,e)}function Ur(e){return null==e||"boolean"==typeof e?jr(kr):g(e)?jr(xr,null,e.slice()):"object"==typeof e?qr(e):jr(Sr,null,String(e))}function qr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Fr(e)}function Qr(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(g(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Qr(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Lr in t?3===o&&_o&&(1===_o.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=_o}}else v(t)?(t={default:t,_ctx:_o},n=32):(t=String(t),64&o?(n=16,t=[Vr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Yr(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=Qe([t.class,o.class]));else if("style"===e)t.style=qe([t.style,o.style]);else if(u(e)){const n=t[e],i=o[e];!i||n===i||g(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=o[e])}return t}function Gr(e,t,n,o=null){Gn(e,t,7,[n,o])}const Xr=Ki();let Kr=0;let Jr=null;const Zr=()=>Jr||_o;let es,ts;{const e=H(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};es=t("__VUE_INSTANCE_SETTERS__",e=>Jr=e),ts=t("__VUE_SSR_SETTERS__",e=>ss=e)}const ns=e=>{const t=Jr;return es(e),e.scope.on(),()=>{e.scope.off(),es(t)}},os=()=>{Jr&&Jr.scope.off(),es(null)};function is(e){return 4&e.vnode.shapeFlag}let rs,ss=!1;function as(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=Qn(t)),ls(e,n)}function ls(e,t,n){const o=e.type;if(!e.render){if(!t&&rs&&!o.render){const t=o.template||Vi(e).template;if(t){const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:r,compilerOptions:s}=o,a=h(h({isCustomElement:n,delimiters:r},i),s);o.render=rs(t,a)}}e.render=o.render||l}{const t=ns(e);It();try{ji(e)}finally{Bt(),t()}}}function cs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Qn(On(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ri?Ri[n](e):void 0,has:(e,t)=>t in e||t in Ri}))}function us(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const ds=(e,t)=>{const n=function(e,t,n=!1){let o,i;const r=v(e);return r?(o=e,i=l):(o=e.get,i=e.set),new Dn(o,i,r||!i,n)}(e,0,ss);return n};function hs(e,t,n){const o=arguments.length;return 2===o?x(t)&&!g(t)?Or(t)?jr(e,null,[t]):jr(e,t):jr(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Or(n)&&(n=[n]),jr(e,t,n))}const ps="3.4.21",fs="undefined"!=typeof document?document:null,ms=fs&&fs.createElement("template"),gs={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i="svg"===t?fs.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?fs.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?fs.createElement(e,{is:n}):fs.createElement(e);return"select"===e&&o&&null!=o.multiple&&i.setAttribute("multiple",o.multiple),i},createText:e=>fs.createTextNode(e),createComment:e=>fs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==r&&(i=i.nextSibling););else{ms.innerHTML="svg"===o?`<svg>${e}</svg>`:"mathml"===o?`<math>${e}</math>`:e;const i=ms.content;if("svg"===o||"mathml"===o){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ys="transition",bs="animation",vs=Symbol("_vtc"),_s=(e,{slots:t})=>hs(Go,function(e){const t={};for(const h in e)h in ws||(t[h]=e[h]);if(!1===e.css)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(x(e))return[ks(e.enter),ks(e.leave)];{const t=ks(e);return[t,t]}}(i),g=m&&m[0],y=m&&m[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:_,onLeave:w,onLeaveCancelled:S,onBeforeAppear:k=b,onAppear:C=v,onAppearCancelled:A=_}=t,T=(e,t,n)=>{As(e,t?u:a),As(e,t?c:s),n&&n()},I=(e,t)=>{e._isLeaving=!1,As(e,d),As(e,f),As(e,p),t&&t()},B=e=>(t,n)=>{const i=e?C:v,s=()=>T(t,e,n);xs(i,[t,s]),Ts(()=>{As(t,e?l:r),Cs(t,e?u:a),Ss(i)||Bs(t,o,g,s)})};return h(t,{onBeforeEnter(e){xs(b,[e]),Cs(e,r),Cs(e,s)},onBeforeAppear(e){xs(k,[e]),Cs(e,l),Cs(e,c)},onEnter:B(!1),onAppear:B(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>I(e,t);Cs(e,d),document.body.offsetHeight,Cs(e,p),Ts(()=>{e._isLeaving&&(As(e,d),Cs(e,f),Ss(w)||Bs(e,o,y,n))}),xs(w,[e,n])},onEnterCancelled(e){T(e,!1),xs(_,[e])},onAppearCancelled(e){T(e,!0),xs(A,[e])},onLeaveCancelled(e){I(e),xs(S,[e])}})}(e),t);_s.displayName="Transition";const ws={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};_s.props=h({},Yo,ws);const xs=(e,t=[])=>{g(e)?e.forEach(e=>e(...t)):e&&e(...t)},Ss=e=>!!e&&(g(e)?e.some(e=>e.length>1):e.length>1);function ks(e){const t=(e=>{const t=_(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function Cs(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[vs]||(e[vs]=new Set)).add(t)}function As(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[vs];n&&(n.delete(t),n.size||(e[vs]=void 0))}function Ts(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Is=0;function Bs(e,t,n,o){const i=e._endId=++Is,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:a,propCount:l}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),i=o(`${ys}Delay`),r=o(`${ys}Duration`),s=Es(i,r),a=o(`${bs}Delay`),l=o(`${bs}Duration`),c=Es(a,l);let u=null,d=0,h=0;t===ys?s>0&&(u=ys,d=s,h=r.length):t===bs?c>0&&(u=bs,d=c,h=l.length):(d=Math.max(s,c),u=d>0?s>c?ys:bs:null,h=u?u===ys?r.length:l.length:0);const p=u===ys&&/\b(transform|all)(,|$)/.test(o(`${ys}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,h),r()},h=t=>{t.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,h)}function Es(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Ps(t)+Ps(e[n])))}function Ps(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}const Ms=Symbol("_vod"),zs=Symbol("_vsh"),Os={beforeMount(e,{value:t},{transition:n}){e[Ms]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Rs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Rs(e,!0),o.enter(e)):o.leave(e,()=>{Rs(e,!1)}):Rs(e,t))},beforeUnmount(e,{value:t}){Rs(e,t)}};function Rs(e,t){e.style.display=t?e[Ms]:"none",e[zs]=!t}const Ls=Symbol("");function Ds(e){const t=Zr();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>$s(e,n))},o=()=>{const o=e(t.proxy);Ns(t.subTree,o),n(o)};$o(o,null,{flush:"post"}),xi(()=>{const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),Ai(()=>e.disconnect())})}function Ns(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ns(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)$s(e.el,t);else if(e.type===xr)e.children.forEach(e=>Ns(e,t));else if(e.type===Cr){let{el:n,anchor:o}=e;for(;n&&($s(n,t),n!==o);)n=n.nextSibling}}function $s(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t){const i=Js(t[e]);n.setProperty(`--${e}`,i),o+=`--${e}: ${i};`}n[Ls]=o}}const js=/(^|;)\s*display\s*:/;const Hs=/\s*!important$/;function Fs(e,t,n){if(g(n))n.forEach(n=>Fs(e,t,n));else if(null==n&&(n=""),n=Js(n),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ws[t];if(n)return n;let o=P(t);if("filter"!==o&&o in e)return Ws[t]=o;o=O(o);for(let i=0;i<Vs.length;i++){const n=Vs[i]+o;if(n in e)return Ws[t]=n}return t}(e,t);Hs.test(n)?e.setProperty(z(o),n.replace(Hs,""),"important"):e[o]=n}}const Vs=["Webkit","Moz","ms"],Ws={};const{unit:Us,unitRatio:qs,unitPrecision:Qs}={unit:"rem",unitRatio:10/320,unitPrecision:5},Ys=(Gs=Us,Xs=qs,Ks=Qs,e=>e.replace(Je,(e,t)=>{if(!t)return e;if(1===Xs)return`${t}${Gs}`;const n=function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(parseFloat(t)*Xs,Ks);return 0===n?"0":`${n}${Gs}`}));var Gs,Xs,Ks;const Js=e=>_(e)?Ys(e):e,Zs="http://www.w3.org/1999/xlink";const ea=Symbol("_vei");function ta(e,t,n,o,i=null){const r=e[ea]||(e[ea]={}),s=r[t];if(o&&s)s.value=o;else{const[n,a]=function(e){let t;if(na.test(e)){let n;for(t={};n=e.match(na);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):z(e.slice(2));return[n,t]}(t);if(o){const s=r[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const o=t&&t.proxy,i=o&&o.$nne,{value:r}=n;if(i&&g(r)){const n=sa(e,r);for(let o=0;o<n.length;o++){const r=n[o];Gn(r,t,5,r.__wwe?[e]:i(e))}return}Gn(sa(e,n.value),t,5,i&&!r.__wwe?i(e,r,t):[e])};return n.value=e,n.attached=ra(),n}(o,i);!function(e,t,n,o){e.addEventListener(t,n,o)}(e,n,s,a)}else s&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,a),r[t]=void 0)}}const na=/(?:Once|Passive|Capture)$/;let oa=0;const ia=Promise.resolve(),ra=()=>oa||(ia.then(()=>oa=0),oa=Date.now());function sa(e,t){if(g(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>{const t=t=>!t._stopped&&e&&e(t);return t.__wwe=e.__wwe,t})}return t}const aa=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const la=["ctrl","shift","alt","meta"],ca={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>la.some(n=>e[`${n}Key`]&&!t.includes(n))},ua=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e<t.length;e++){const o=ca[t[e]];if(o&&o(n,t))return}return e(n,...o)})},da=h({patchProp:(e,t,n,o,i,r,s,a,l)=>{if(0===t.indexOf("change:"))return function(e,t,n,o=null){if(!n||!o)return;const i=t.replace("change:",""),{attrs:r}=o,s=r[i],a=(e.__wxsProps||(e.__wxsProps={}))[i];if(a===s)return;e.__wxsProps[i]=s;const l=o.proxy;ao(()=>{n(s,a,l.$gcd(l,!0),l.$gcd(l,!1))})}(e,t,o,s);const c="svg"===i;"class"===t?function(e,t,n){const{__wxsAddClass:o,__wxsRemoveClass:i}=e;i&&i.length&&(t=(t||"").split(/\s+/).filter(e=>-1===i.indexOf(e)).join(" "),i.length=0),o&&o.length&&(t=(t||"")+" "+o.join(" "));const r=e[vs];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,c):"style"===t?function(e,t,n){const o=e.style,i=_(n);let r=!1;if(n&&!i){if(t)if(_(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Fs(o,t,"")}else for(const e in t)null==n[e]&&Fs(o,e,"");for(const e in n)"display"===e&&(r=!0),Fs(o,e,n[e])}else if(i){if(t!==n){const e=o[Ls];e&&(n+=";"+e),o.cssText=n,r=js.test(n)}}else t&&e.removeAttribute("style");Ms in e&&(e[Ms]=r?o.display:"",e[zs]&&(o.display="none"));const{__wxsStyle:s}=e;if(s)for(const a in s)Fs(o,a,s[a])}(e,n,o):u(t)?d(t)||ta(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&aa(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(aa(t)&&_(n))return!1;return t in e}(e,t,o,c))?function(e,t,n,o,i,r,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,i,r),void(e[t]=null==n?"":n);const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const o=null==n?"":n;return("OPTION"===a?e.getAttribute("value")||"":e.value)===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=G(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(c){}l&&e.removeAttribute(t)}(e,t,o,r,s,a,l):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Zs,t.slice(6,t.length)):e.setAttributeNS(Zs,t,n);else{const o=Y(t);null==n||o&&!G(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,c))},forcePatchProp:(e,t)=>0===t.indexOf("change:")||("class"===t&&e.__wxsClassChanged?(e.__wxsClassChanged=!1,!0):!("style"!==t||!e.__wxsStyleChanged)&&(e.__wxsStyleChanged=!1,!0))},gs);let ha;const pa=(...e)=>{const t=(ha||(ha=yr(da))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(_(e)){return document.querySelector(e)}return e}
/*!
  * vue-router v4.3.0
  * (c) 2024 Eduardo San Martin Morote
  * @license MIT
  */(e);if(!o)return;const i=t._component;v(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};const fa="undefined"!=typeof document;const ma=Object.assign;function ga(e,t){const n={};for(const o in t){const i=t[o];n[o]=ba(i)?i.map(e):e(i)}return n}const ya=()=>{},ba=Array.isArray,va=/#/g,_a=/&/g,wa=/\//g,xa=/=/g,Sa=/\?/g,ka=/\+/g,Ca=/%5B/g,Aa=/%5D/g,Ta=/%5E/g,Ia=/%60/g,Ba=/%7B/g,Ea=/%7C/g,Pa=/%7D/g,Ma=/%20/g;function za(e){return encodeURI(""+e).replace(Ea,"|").replace(Ca,"[").replace(Aa,"]")}function Oa(e){return za(e).replace(ka,"%2B").replace(Ma,"+").replace(va,"%23").replace(_a,"%26").replace(Ia,"`").replace(Ba,"{").replace(Pa,"}").replace(Ta,"^")}function Ra(e){return Oa(e).replace(xa,"%3D")}function La(e){return null==e?"":function(e){return za(e).replace(va,"%23").replace(Sa,"%3F")}(e).replace(wa,"%2F")}function Da(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Na=/\/$/;function $a(e,t,n="/"){let o,i={},r="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(o=t.slice(0,l),r=t.slice(l+1,a>-1?a:t.length),i=e(r)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),i=o[o.length-1];".."!==i&&"."!==i||o.push("");let r,s,a=n.length-1;for(r=0;r<o.length;r++)if(s=o[r],"."!==s){if(".."!==s)break;a>1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(r).join("/")}(null!=o?o:t,n),{fullPath:o+(r&&"?")+r+s,path:o,query:i,hash:Da(s)}}function ja(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Ha(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Fa(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Va(e[n],t[n]))return!1;return!0}function Va(e,t){return ba(e)?Wa(e,t):ba(t)?Wa(t,e):e===t}function Wa(e,t){return ba(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}var Ua,qa,Qa,Ya;function Ga(e){if(!e)if(fa){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Na,"")}(qa=Ua||(Ua={})).pop="pop",qa.push="push",(Ya=Qa||(Qa={})).back="back",Ya.forward="forward",Ya.unknown="";const Xa=/^[^#]+#/;function Ka(e,t){return e.replace(Xa,"#")+t}const Ja=()=>({left:window.scrollX,top:window.scrollY});function Za(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function el(e,t){return(history.state?history.state.position-t:-1)+e}const tl=new Map;function nl(e,t){const{pathname:n,search:o,hash:i}=t,r=e.indexOf("#");if(r>-1){let t=i.includes(e.slice(r))?e.slice(r).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),ja(n,"")}return ja(n,e)+o+i}function ol(e,t,n,o=!1,i=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:i?Ja():null}}function il(e){const{history:t,location:n}=window,o={value:nl(e,n)},i={value:t.state};function r(o,r,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](r,"",l),i.value=r}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return i.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:i,push:function(e,n){const s=ma({},i.value,t.state,{forward:e,scroll:Ja()});r(s.current,s,!0),r(e,ma({},ol(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){r(e,ma({},t.state,ol(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),o.value=e}}}function rl(e){const t=il(e=Ga(e)),n=function(e,t,n,o){let i=[],r=[],s=null;const a=({state:r})=>{const a=nl(e,location),l=n.value,c=t.value;let u=0;if(r){if(n.value=a,t.value=r,s&&s===l)return void(s=null);u=c?r.position-c.position:0}else o(a);i.forEach(e=>{e(n.value,l,{delta:u,type:Ua.pop,direction:u?u>0?Qa.forward:Qa.back:Qa.unknown})})};function l(){const{history:e}=window;e.state&&e.replaceState(ma({},e.state,{scroll:Ja()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=ma({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Ka.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function sl(e){return"string"==typeof e||"symbol"==typeof e}const al={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ll=Symbol("");var cl,ul;function dl(e,t){return ma(new Error,{type:e,[ll]:!0},t)}function hl(e,t){return e instanceof Error&&ll in e&&(null==t||!!(e.type&t))}(ul=cl||(cl={}))[ul.aborted=4]="aborted",ul[ul.cancelled=8]="cancelled",ul[ul.duplicated=16]="duplicated";const pl="[^/]+?",fl={sensitive:!1,strict:!1,start:!0,end:!0},ml=/[.+*?^${}()[\]/\\]/g;function gl(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function yl(e,t){let n=0;const o=e.score,i=t.score;for(;n<o.length&&n<i.length;){const e=gl(o[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-o.length)){if(bl(o))return 1;if(bl(i))return-1}return i.length-o.length}function bl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const vl={type:0,value:""},_l=/[a-zA-Z0-9_]/;function wl(e,t,n){const o=function(e,t){const n=ma({},fl,t),o=[];let i=n.start?"^":"";const r=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t<l.length;t++){const o=l[t];let s=40+(n.sensitive?.25:0);if(0===o.type)t||(i+="/"),i+=o.value.replace(ml,"\\$&"),s+=40;else if(1===o.type){const{value:e,repeatable:n,optional:c,regexp:u}=o;r.push({name:e,repeatable:n,optional:c});const d=u||pl;if(d!==pl){s+=10;try{new RegExp(`(${d})`)}catch(a){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+a.message)}}let h=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(h=c&&l.length<2?`(?:/${h})`:"/"+h),c&&(h+="?"),i+=h,s+=20,c&&(s+=-8),n&&(s+=-20),".*"===d&&(s+=-50)}e.push(s)}o.push(e)}if(n.strict&&n.end){const e=o.length-1;o[e][o[e].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");return{re:s,score:o,keys:r,parse:function(e){const t=e.match(s),n={};if(!t)return null;for(let o=1;o<t.length;o++){const e=t[o]||"",i=r[o-1];n[i.name]=e&&i.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",o=!1;for(const i of e){o&&n.endsWith("/")||(n+="/"),o=!1;for(const e of i)if(0===e.type)n+=e.value;else if(1===e.type){const{value:r,repeatable:s,optional:a}=e,l=r in t?t[r]:"";if(ba(l)&&!s)throw new Error(`Provided param "${r}" is an array but it is not repeatable (* or + modifiers)`);const c=ba(l)?l.join("/"):l;if(!c){if(!a)throw new Error(`Missing required param "${r}"`);i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):o=!0)}n+=c}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[vl]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,o=n;const i=[];let r;function s(){r&&i.push(r),r=[]}let a,l=0,c="",u="";function d(){c&&(0===n?r.push({type:0,value:c}):1===n||2===n||3===n?(r.length>1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function h(){c+=a}for(;l<e.length;)if(a=e[l++],"\\"!==a||2===n)switch(n){case 0:"/"===a?(c&&d(),s()):":"===a?(d(),n=1):h();break;case 4:h(),n=o;break;case 1:"("===a?n=2:_l.test(a)?h():(d(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--);break;case 2:")"===a?"\\"==u[u.length-1]?u=u.slice(0,-1)+a:n=3:u+=a;break;case 3:d(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--,u="";break;default:t("Unknown state")}else o=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),s(),i}(e.path),n),i=ma(o,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function xl(e,t){const n=[],o=new Map;function i(e,n,o){const a=!o,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:kl(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=o&&o.record;const c=Tl(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(ma({},l,{components:o?o.record.components:l.components,path:e,aliasOf:o?o.record:l}))}let d,h;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=wl(t,n,c),o?o.alias.push(d):(h=h||d,h!==d&&h.alias.push(d),a&&e.name&&!Cl(d)&&r(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)i(e[t],d,o&&o.children[t])}o=o||d,(d.record.components&&Object.keys(d.record.components).length||d.record.name||d.record.redirect)&&s(d)}return h?()=>{r(h)}:ya}function r(e){if(sl(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function s(e){let t=0;for(;t<n.length&&yl(e,n[t])>=0&&(e.record.path!==n[t].record.path||!Il(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Cl(e)&&o.set(e.record.name,e)}return t=Tl({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>i(e)),{addRoute:i,resolve:function(e,t){let i,r,s,a={};if("name"in e&&e.name){if(i=o.get(e.name),!i)throw dl(1,{location:e});s=i.record.name,a=ma(Sl(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Sl(e.params,i.keys.map(e=>e.name))),r=i.stringify(a)}else if(null!=e.path)r=e.path,i=n.find(e=>e.re.test(r)),i&&(a=i.parse(r),s=i.record.name);else{if(i=t.name?o.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw dl(1,{location:e,currentLocation:t});s=i.record.name,a=ma({},t.params,e.params),r=i.stringify(a)}const l=[];let c=i;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:r,params:a,matched:l,meta:Al(l)}},removeRoute:r,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function Sl(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function kl(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function Cl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Al(e){return e.reduce((e,t)=>ma(e,t.meta),{})}function Tl(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Il(e,t){return t.children.some(t=>t===e||Il(e,t))}function Bl(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const e=n[o].replace(ka," "),i=e.indexOf("="),r=Da(i<0?e:e.slice(0,i)),s=i<0?null:Da(e.slice(i+1));if(r in t){let e=t[r];ba(e)||(e=t[r]=[e]),e.push(s)}else t[r]=s}return t}function El(e){let t="";for(let n in e){const o=e[n];if(n=Ra(n),null==o){void 0!==o&&(t+=(t.length?"&":"")+n);continue}(ba(o)?o.map(e=>e&&Oa(e)):[o&&Oa(o)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}function Pl(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=ba(o)?o.map(e=>null==e?null:""+e):null==o?o:""+o)}return t}const Ml=Symbol(""),zl=Symbol(""),Ol=Symbol(""),Rl=Symbol(""),Ll=Symbol("");function Dl(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Nl(e,t,n,o,i,r=e=>e()){const s=o&&(o.enterCallbacks[i]=o.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const c=e=>{var r;!1===e?l(dl(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(r=e)||r&&"object"==typeof r?l(dl(2,{from:t,to:e})):(s&&o.enterCallbacks[i]===s&&"function"==typeof e&&s.push(e),a())},u=r(()=>e.call(o&&o.instances[i],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(e=>l(e))})}function $l(e,t,n,o,i=e=>e()){const r=[];for(const s of e)for(const e in s.components){let a=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(jl(a)){const l=(a.__vccOpts||a)[t];l&&r.push(Nl(l,n,o,s,e,i))}else{let l=a();r.push(()=>l.then(r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const a=(l=r).__esModule||"Module"===l[Symbol.toStringTag]?r.default:r;var l;s.components[e]=a;const c=(a.__vccOpts||a)[t];return c&&Nl(c,n,o,s,e,i)()}))}}return r}function jl(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Hl(e){const t=nr(Ol),n=nr(Rl),o=ds(()=>t.resolve(Un(e.to))),i=ds(()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const s=r.findIndex(Ha.bind(null,i));if(s>-1)return s;const a=Vl(e[t-2]);return t>1&&Vl(i)===a&&r[r.length-1].path!==a?r.findIndex(Ha.bind(null,e[t-2])):s}),r=ds(()=>i.value>-1&&function(e,t){for(const n in t){const o=t[n],i=e[n];if("string"==typeof o){if(o!==i)return!1}else if(!ba(i)||i.length!==o.length||o.some((e,t)=>e!==i[t]))return!1}return!0}(n.params,o.value.params)),s=ds(()=>i.value>-1&&i.value===n.matched.length-1&&Fa(n.params,o.value.params));return{route:o,href:ds(()=>o.value.href),isActive:r,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Un(e.replace)?"replace":"push"](Un(e.to)).catch(ya):Promise.resolve()}}}const Fl=ni({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hl,setup(e,{slots:t}){const n=Cn(Hl(e)),{options:o}=nr(Ol),i=ds(()=>({[Wl(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Wl(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:hs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}});function Vl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wl=(e,t,n)=>null!=e?e:null!=t?t:n,Ul=ni({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=nr(Ll),i=ds(()=>e.route||o.value),r=nr(zl,0),s=ds(()=>{let e=Un(r);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e}),a=ds(()=>i.value.matched[s.value]);tr(zl,ds(()=>s.value+1)),tr(Ml,a),tr(Ll,i);const l=Hn();return No(()=>[l.value,a.value,e.name],([e,t,n],[o,i,r])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&Ha(t,i)&&o||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const o=i.value,r=e.name,s=a.value,c=s&&s.components[r];if(!c)return ql(n.default,{Component:c,route:o});const u=s.props[r],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,h=hs(c,ma({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[r]=null)},ref:l}));return ql(n.default,{Component:h,route:o})||h}}});function ql(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ql=Ul;function Yl(e){const t=xl(e.routes,e),n=e.parseQuery||Bl,o=e.stringifyQuery||El,i=e.history,r=Dl(),s=Dl(),a=Dl(),l=Fn(al);let c=al;fa&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ga.bind(null,e=>""+e),d=ga.bind(null,La),h=ga.bind(null,Da);function p(e,r){if(r=ma({},r||l.value),"string"==typeof e){const o=$a(n,e,r.path),s=t.resolve({path:o.path},r),a=i.createHref(o.fullPath);return ma(o,s,{params:h(s.params),hash:Da(o.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=ma({},e,{path:$a(n,e.path,r.path).path});else{const t=ma({},e.params);for(const e in t)null==t[e]&&delete t[e];s=ma({},e,{params:d(t)}),r.params=d(r.params)}const a=t.resolve(s,r),c=e.hash||"";a.params=u(h(a.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,ma({},e,{hash:(f=c,za(f).replace(Ba,"{").replace(Pa,"}").replace(Ta,"^")),path:a.path}));var f;const m=i.createHref(p);return ma({fullPath:p,hash:c,query:o===El?Pl(e.query):e.query||{}},a,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?$a(n,e,l.value.path):ma({},e)}function m(e,t){if(c!==e)return dl(8,{from:t,to:e})}function g(e){return b(e)}function y(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=f(o):{path:o},o.params={}),ma({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function b(e,t){const n=c=p(e),i=l.value,r=e.state,s=e.force,a=!0===e.replace,u=y(n);if(u)return b(ma(f(u),{state:"object"==typeof u?ma({},r,u.state):r,force:s,replace:a}),t||n);const d=n;let h;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,i=n.matched.length-1;return o>-1&&o===i&&Ha(t.matched[o],n.matched[i])&&Fa(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,i,n)&&(h=dl(16,{to:d,from:i}),P(i,i,!0,!1)),(h?Promise.resolve(h):w(d,i)).catch(e=>hl(e)?hl(e,2)?e:E(e):B(e,d,i)).then(e=>{if(e){if(hl(e,2))return b(ma({replace:a},f(e.to),{state:"object"==typeof e.to?ma({},r,e.to.state):r,force:s}),t||d)}else e=S(d,i,!0,a,r);return x(d,i,e),e})}function v(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=O.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,i,a]=function(e,t){const n=[],o=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;s<r;s++){const r=t.matched[s];r&&(e.matched.find(e=>Ha(e,r))?o.push(r):n.push(r));const a=e.matched[s];a&&(t.matched.find(e=>Ha(e,a))||i.push(a))}return[n,o,i]}(e,t);n=$l(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach(o=>{n.push(Nl(o,e,t))});const l=v.bind(null,e,t);return n.push(l),L(n).then(()=>{n=[];for(const o of r.list())n.push(Nl(o,e,t));return n.push(l),L(n)}).then(()=>{n=$l(i,"beforeRouteUpdate",e,t);for(const o of i)o.updateGuards.forEach(o=>{n.push(Nl(o,e,t))});return n.push(l),L(n)}).then(()=>{n=[];for(const o of a)if(o.beforeEnter)if(ba(o.beforeEnter))for(const i of o.beforeEnter)n.push(Nl(i,e,t));else n.push(Nl(o.beforeEnter,e,t));return n.push(l),L(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=$l(a,"beforeRouteEnter",e,t,_),n.push(l),L(n))).then(()=>{n=[];for(const o of s.list())n.push(Nl(o,e,t));return n.push(l),L(n)}).catch(e=>hl(e,8)?e:Promise.reject(e))}function x(e,t,n){a.list().forEach(o=>_(()=>o(e,t,n)))}function S(e,t,n,o,r){const s=m(e,t);if(s)return s;const a=t===al,c=fa?history.state:{};n&&(o||a?i.replace(e.fullPath,ma({scroll:a&&c&&c.scroll},r)):i.push(e.fullPath,r)),l.value=e,P(e,t,n,a),E()}let k;function C(){k||(k=i.listen((e,t,n)=>{if(!R.listening)return;const o=p(e),r=y(o);if(r)return void b(ma(r,{replace:!0}),o).catch(ya);c=o;const s=l.value;var a,u;fa&&(a=el(s.fullPath,n.delta),u=Ja(),tl.set(a,u)),w(o,s).catch(e=>hl(e,12)?e:hl(e,2)?(b(e.to,o).then(e=>{hl(e,20)&&!n.delta&&n.type===Ua.pop&&i.go(-1,!1)}).catch(ya),Promise.reject()):(n.delta&&i.go(-n.delta,!1),B(e,o,s))).then(e=>{(e=e||S(o,s,!1))&&(n.delta&&!hl(e,8)?i.go(-n.delta,!1):n.type===Ua.pop&&hl(e,20)&&i.go(-1,!1)),x(o,s,e)}).catch(ya)}))}let A,T=Dl(),I=Dl();function B(e,t,n){E(e);const o=I.list();return o.length?o.forEach(o=>o(e,t,n)):console.error(e),Promise.reject(e)}function E(e){return A||(A=!e,C(),T.list().forEach(([t,n])=>e?n(e):t()),T.reset()),e}function P(t,n,o,i){const{scrollBehavior:r}=e;if(!fa||!r)return Promise.resolve();const s=!o&&function(e){const t=tl.get(e);return tl.delete(e),t}(el(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return ao().then(()=>r(t,n,s)).then(e=>e&&Za(e)).catch(e=>B(e,t,n))}const M=e=>i.go(e);let z;const O=new Set,R={currentRoute:l,listening:!0,addRoute:function(e,n){let o,i;return sl(e)?(o=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:p,options:e,push:g,replace:function(e){return g(ma(f(e),{replace:!0}))},go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:I.add,isReady:function(){return A&&l.value!==al?Promise.resolve():new Promise((e,t)=>{T.add([e,t])})},install(e){e.component("RouterLink",Fl),e.component("RouterView",Ql),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Un(l)}),fa&&!z&&l.value===al&&(z=!0,g(i.location).catch(e=>{}));const t={};for(const o in al)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(Ol,this),e.provide(Rl,An(t)),e.provide(Ll,l);const n=e.unmount;O.add(e),e.unmount=function(){O.delete(e),O.size<1&&(c=al,k&&k(),k=null,l.value=al,z=!1,A=!1),n()}}};function L(e){return e.reduce((e,t)=>e.then(()=>_(t)),Promise.resolve())}return R}function Gl(){return nr(Rl)}const Xl=["{","}"];const Kl=/^(?:\d)+/,Jl=/^(?:\w)+/;const Zl="zh-Hans",ec="zh-Hant",tc="en",nc="fr",oc="es",ic=Object.prototype.hasOwnProperty,rc=(e,t)=>ic.call(e,t),sc=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Xl){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let i=0,r="";for(;i<e.length;){let s=e[i++];if(s===t){r&&o.push({type:"text",value:r}),r="";let t="";for(s=e[i++];void 0!==s&&s!==n;)t+=s,s=e[i++];const a=s===n,l=Kl.test(t)?"list":a&&Jl.test(t)?"named":"unknown";o.push({value:t,type:l})}else r+=s}return r&&o.push({type:"text",value:r}),o}(e,n),this._caches[e]=o),function(e,t){const n=[];let o=0;const i=Array.isArray(t)?"list":(r=t,null!==r&&"object"==typeof r?"named":"unknown");var r;if("unknown"===i)return n;for(;o<e.length;){const r=e[o];switch(r.type){case"text":n.push(r.value);break;case"list":n.push(t[parseInt(r.value,10)]);break;case"named":"named"===i&&n.push(t[r.value])}o++}return n}(o,t)}};function ac(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return Zl;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?Zl:e.indexOf("-hant")>-1?ec:(n=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==n.indexOf(e))?ec:Zl);var n;let o=[tc,nc,oc];t&&Object.keys(t).length>0&&(o=Object.keys(t));const i=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,o);return i||void 0}class lc{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:i}){this.locale=tc,this.fallbackLocale=tc,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||sc,this.messages=n||{},this.setLocale(e||tc),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=ac(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach(e=>{e(this.locale,t)})}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach(e=>{rc(o,e)||(o[e]=t[e])}):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=ac(t,this.messages))&&(o=this.messages[t]):n=t,rc(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function cc(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&fp?fp():"undefined"!=typeof global&&global.getLocale?global.getLocale():tc),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||tc);const i=new lc({locale:e,fallbackLocale:n,messages:t,watcher:o});let r=(e,t)=>{{let e=!1;r=function(t,n){const o=Zy().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale(e=>{t.setLocale(e)}):e.$watch(()=>e.$locale,e=>{t.setLocale(e)})}(o,i))),i.t(t,n)}}return r(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>r(e,t),add:(e,t,n=!0)=>i.add(e,t,n),watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}function uc(e,t){return e.indexOf(t[0])>-1}const dc=je(()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length);let hc;function pc(e){return uc(e,ie)?gc().f(e,function(){const e=fp(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),ie):e}function fc(e,t){if(1===t.length){if(e){const n=e=>_(e)&&uc(e,ie),o=t[0];let i=[];if(g(e)&&(i=e.filter(e=>n(e[o]))).length)return i;const r=e[t[0]];if(n(r))return e}return}const n=t.shift();return fc(e&&e[n],t)}function mc(e,t){const n=fc(e,t);if(!n)return!1;const o=t[t.length-1];if(g(n))n.forEach(e=>mc(e,[o]));else{let e=n[o];Object.defineProperty(n,o,{get:()=>pc(e),set(t){e=t}})}return!0}function gc(){if(!hc){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,hc=cc(e),dc()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(e=>hc.add(e,__uniConfig.locales[e])),hc.setLocale(e)}}return hc}function yc(e,t,n){return t.reduce((t,o,i)=>(t[e+o]=n[i],t),{})}const bc=je(()=>{const e="uni.async.",t=["error"];gc().add(tc,yc(e,t,["The connection timed out, click the screen to try again."]),!1),gc().add(oc,yc(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),gc().add(nc,yc(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),gc().add(Zl,yc(e,t,["连接服务器超时，点击屏幕重试"]),!1),gc().add(ec,yc(e,t,["連接服務器超時，點擊屏幕重試"]),!1)}),vc=je(()=>{const e="uni.showToast.",t=["unpaired"];gc().add(tc,yc(e,t,["Please note showToast must be paired with hideToast"]),!1),gc().add(oc,yc(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),gc().add(nc,yc(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),gc().add(Zl,yc(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),gc().add(ec,yc(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)}),_c=je(()=>{const e="uni.showLoading.",t=["unpaired"];gc().add(tc,yc(e,t,["Please note showLoading must be paired with hideLoading"]),!1),gc().add(oc,yc(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),gc().add(nc,yc(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),gc().add(Zl,yc(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),gc().add(ec,yc(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)}),wc=je(()=>{const e="uni.showModal.",t=["cancel","confirm"];gc().add(tc,yc(e,t,["Cancel","OK"]),!1),gc().add(oc,yc(e,t,["Cancelar","OK"]),!1),gc().add(nc,yc(e,t,["Annuler","OK"]),!1),gc().add(Zl,yc(e,t,["取消","确定"]),!1),gc().add(ec,yc(e,t,["取消","確定"]),!1)}),xc=je(()=>{const e="uni.chooseFile.",t=["notUserActivation"];gc().add(tc,yc(e,t,["File chooser dialog can only be shown with a user activation"]),!1),gc().add(oc,yc(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),gc().add(nc,yc(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),gc().add(Zl,yc(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),gc().add(ec,yc(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)}),Sc=je(()=>{const e="uni.setClipboardData.",t=["success","fail"];gc().add(tc,yc(e,t,["Content copied","Copy failed, please copy manually"]),!1),gc().add(oc,yc(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),gc().add(nc,yc(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),gc().add(Zl,yc(e,t,["内容已复制","复制失败，请手动复制"]),!1),gc().add(ec,yc(e,t,["內容已復制","復制失敗，請手動復製"]),!1)}),kc=je(()=>{const e="uni.video.",t=["danmu","volume"];gc().add(tc,yc(e,t,["Danmu","Volume"]),!1),gc().add(oc,yc(e,t,["Danmu","Volumen"]),!1),gc().add(nc,yc(e,t,["Danmu","Le Volume"]),!1),gc().add(Zl,yc(e,t,["弹幕","音量"]),!1),gc().add(ec,yc(e,t,["彈幕","音量"]),!1)});function Cc(e){const t=new ht;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,i=!1){t[i?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,i){t.emit(`${e}.${n}`,o,i)}}}const Ac="invokeViewApi",Tc="invokeServiceApi";let Ic=1;const Bc=Object.create(null);function Ec(e,t){return e+"."+t}function Pc(e,t,n){t=Ec(e,t),Bc[t]||(Bc[t]=n)}function Mc({id:e,name:t,args:n},o){t=Ec(o,t);const i=t=>{e&&T_.publishHandler(Ac+"."+e,t)},r=Bc[t];r?r(n,i):i({})}const zc=h(Cc("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:i}=T_,r=n?Ic++:0;n&&o(Tc+"."+r,n,!0),i(Tc,{id:r,name:e,args:t})}}),Oc=Ze(!0);let Rc;function Lc(){Rc&&(clearTimeout(Rc),Rc=null)}let Dc=0,Nc=0;function $c(e){if(Lc(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Dc=t,Nc=n,Rc=setTimeout(function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)},350)}function jc(e){if(!Rc)return;if(1!==e.touches.length)return Lc();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Dc)>10||Math.abs(n-Nc)>10?Lc():void 0}function Hc(e,t){const n=Number(e);return isNaN(n)?t:n}function Fc(){const e=__uniConfig.globalStyle||{},t=Hc(e.rpxCalcMaxDeviceWidth,960),n=Hc(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function Vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wc,Uc,qc=["top","left","right","bottom"],Qc={};function Yc(){return Uc="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function Gc(){if(Uc="string"==typeof Uc?Uc:Yc()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(a){}var o=document.createElement("div");i(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),qc.forEach(function(e){s(o,e)}),document.body.appendChild(o),r(),Wc=!0}else qc.forEach(function(e){Qc[e]=0});function i(e,t){var n=e.style;Object.keys(t).forEach(function(e){var o=t[e];n[e]=o})}function r(t){t?e.push(t):e.forEach(function(e){e()})}function s(e,n){var o=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Uc+"(safe-area-inset-"+n+")"};i(o,c),i(s,c),i(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(a),s.appendChild(l),e.appendChild(o),e.appendChild(s),r(function(){o.scrollTop=s.scrollTop=1e4;var e=o.scrollTop,i=s.scrollTop;function r(){this.scrollTop!==(this===o?e:i)&&(o.scrollTop=s.scrollTop=1e4,e=o.scrollTop,i=s.scrollTop,function(e){Kc.length||setTimeout(function(){var e={};Kc.forEach(function(t){e[t]=Qc[t]}),Kc.length=0,Jc.forEach(function(t){t(e)})},0);Kc.push(e)}(n))}o.addEventListener("scroll",r,t),s.addEventListener("scroll",r,t)});var u=getComputedStyle(o);Object.defineProperty(Qc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Xc(e){return Wc||Gc(),Qc[e]}var Kc=[];var Jc=[];const Zc=Vc({get support(){return 0!=("string"==typeof Uc?Uc:Yc()).length},get top(){return Xc("top")},get left(){return Xc("left")},get right(){return Xc("right")},get bottom(){return Xc("bottom")},onChange:function(e){Yc()&&(Wc||Gc(),"function"==typeof e&&Jc.push(e))},offChange:function(e){var t=Jc.indexOf(e);t>=0&&Jc.splice(t,1)}}),eu=ua(()=>{},["prevent"]),tu=ua(e=>{},["stop"]);function nu(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function ou(){const e=nu(document.documentElement.style,"--window-top");return e?e+Zc.top:0}function iu(){const e=document.documentElement.style,t=ou(),n=nu(e,"--window-bottom"),o=nu(e,"--window-left"),i=nu(e,"--window-right"),r=nu(e,"--top-window-height");return{top:t,bottom:n?n+Zc.bottom:0,left:o?o+Zc.left:0,right:i?i+Zc.right:0,topWindowHeight:r||0}}function ru(e){const t=document.documentElement.style;Object.keys(e).forEach(n=>{t.setProperty(n,e[n])})}function su(e){return Symbol(e)}function au(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function lu(e,t=!1){if(t)return function(e){if(!au(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,(e,t)=>fh(parseFloat(t))+"px")}(e);if(_(e)){const t=parseInt(e)||0;return au(e)?fh(t):t}return e}function cu(e){return e.$page}function uu(e){return 0===e.tagName.indexOf("UNI-")}const du="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",hu="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 pu(e,t="#000",n=27){return jr("svg",{width:n,height:n,viewBox:"0 0 32 32"},[jr("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function fu(){{const{$pageInstance:e}=Zr();return e&&Su(e.proxy)}}function mu(e){const t=Ve(e);if(t.$page)return Su(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return Su(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?Su(n):void 0}function gu(){const e=Df(),t=e.length;if(t)return e[t-1]}function yu(){var e;const t=null==(e=gu())?void 0:e.$page;if(t)return t.meta}function bu(){const e=yu();return e?e.id:-1}function vu(){const e=gu();if(e)return e.$vm}const _u=["navigationBar","pullToRefresh"];function wu(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=h({id:t},n,e);_u.forEach(t=>{o[t]=h({},n[t],e[t])});const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function xu(e,t,n,o,i,r){const{id:s,route:a}=o,l=mt(o.navigationBar,__uniConfig.themeConfig,r).titleColor;return{id:s,path:De(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:i,statusBarStyle:"#ffffff"===l?"light":"dark"}}function Su(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function ku(e,t,n){if(_(e))n=t,t=e,e=vu();else if("number"==typeof e){const t=Df().find(t=>cu(t).id===e);e=t?t.$vm:vu()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n})(o,n)}function Cu(e){e.preventDefault()}let Au,Tu=0;function Iu({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let o=!1,i=!1,r=!0;const s=()=>{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,r=o>0&&e>t&&o+t+n>=e,s=Math.abs(e-Tu)>n;return!r||i&&!s?(!r&&i&&(i=!1),!1):(Tu=e,i=!0,!0)})())return t&&t(),r=!1,setTimeout(function(){r=!0},350),!0}e&&e(window.pageYOffset),t&&r&&(s()||(Au=setTimeout(s,300))),o=!1};return function(){clearTimeout(Au),o||requestAnimationFrame(s),o=!0}}function Bu(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Bu(e,t.slice(2));const n=t.split("/"),o=n.length;let i=0;for(;i<o&&".."===n[i];i++);n.splice(0,i),t=n.join("/");const r=e.length>0?e.split("/"):[];return r.splice(r.length-i-1,i+1),De(r.concat(n).join("/"))}function Eu(e,t=!1){return t?__uniRoutes.find(t=>t.path===e||t.alias===e):__uniRoutes.find(t=>t.path===e)}function Pu(){Fc(),Xe(uu),window.addEventListener("touchstart",$c,Oc),window.addEventListener("touchmove",jc,Oc),window.addEventListener("touchend",Lc,Oc),window.addEventListener("touchcancel",Lc,Oc)}class Mu{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(Ue(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter(e=>e.el&&Ue(e.el));if(e.length>0)return t?e.map(e=>e.el):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=Lu(this.$el.querySelector(e));return t?zu(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o<n.length;o++){const e=Lu(n[o]);e&&t.push(zu(e,!1))}return t}forceUpdate(e){"class"===e?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():"style"===e&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){const{__wxsAddClass:e}=this.$el;e.length&&(this.$el.className=e.join(" "))}updateWxsStyle(){const{__wxsStyle:e}=this.$el;e&&this.$el.setAttribute("style",function(e){let t="";if(!e||_(e))return t;for(const n in e){const o=e[n],i=n.startsWith("--")?n:z(n);(_(o)||"number"==typeof o)&&(t+=`${i}:${o};`)}return t}(e))}setStyle(e){return this.$el&&e?(_(e)&&(e=q(e)),A(e)&&(this.$el.__wxsStyle=e,this.forceUpdate("style")),this):this}addClass(e){if(!this.$el||!e)return this;const t=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return-1===t.indexOf(e)&&(t.push(e),this.forceUpdate("class")),this}removeClass(e){if(!this.$el||!e)return this;const{__wxsAddClass:t}=this.$el;if(t){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];v(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&T_.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce((e,n)=>(e[n]=t[n],e),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function zu(e,t=!0){if(t&&e&&(e=We(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Mu(e)),e.$el.__wxsComponentDescriptor}function Ou(e,t){return zu(e,t)}function Ru(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Ou(n.proxy,!1)}));const i=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=We(t);if(!o)return!1;const i=o.$.type;return!(!i.$wxs&&!i.$renderjs)&&o}(t,n,o);if(i)return[e,Ou(i,!1)]}}function Lu(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Du(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let s,a;s=et(t?i:function(e){for(;!uu(e);)e=e.parentElement;return e}(i)),a=et(r);const l={type:n,timeStamp:o,target:s,detail:{},currentTarget:a};return e instanceof CustomEvent&&A(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){h(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Nu(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function $u(e,t){const n=[];for(let o=0;o<e.length;o++){const{identifier:i,pageX:r,pageY:s,clientX:a,clientY:l,force:c}=e[o];n.push({identifier:i,pageX:r,pageY:s-t,clientX:a,clientY:l-t,force:c||0})}return n}const ju=Object.defineProperty({__proto__:null,$nne:function(e,t,n){const{currentTarget:o}=e;if(!(e instanceof Event&&o instanceof HTMLElement))return[e];const i=!uu(o);if(i)return Ru(e,t,n,!1)||[e];const r=Du(e,i);if("click"===e.type)!function(e,t){const{x:n,y:o}=t,i=ou();e.detail={x:n,y:o-i},e.touches=e.changedTouches=[Nu(t,i)]}(r,e);else if((e=>0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=ou();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Nu(t,n)]}(r,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=ou();r.touches=$u(e.touches,t),r.changedTouches=$u(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach(t=>{Object.defineProperty(r,t,{get:()=>e[t]})})}return Ru(r,t,n)||[r]},createNativeEvent:Du},Symbol.toStringTag,{value:"Module"});function Hu(e){!function(e){const t=e.globalProperties;h(t,ju),t.$gcd=Ou}(e._context.config)}let Fu=1;function Vu(e){return(e||bu())+"."+Ac}const Wu=h(Cc("view"),{invokeOnCallback:(e,t)=>I_.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=I_,s=o?Fu++:0;o&&i(Ac+"."+s,o,!0),r(Vu(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:s}=I_,a=Fu++,l=Ac+"."+a;return i(l,n),s(Vu(o),{id:a,name:e,args:t},o),()=>{r(l)}}});function Uu(e){ku(gu(),be,e),I_.invokeOnCallback("onWindowResize",e)}function qu(e){const t=gu();ku(Zy(),ae,e),ku(t,ae)}function Qu(){ku(Zy(),le),ku(gu(),le)}const Yu=[_e,xe];function Gu(){Yu.forEach(e=>I_.subscribe(e,function(e){return(t,n)=>{ku(parseInt(n),e,t)}}(e)))}function Xu(){!function(){const{on:e}=I_;e(be,Uu),e(ze,qu),e(Oe,Qu)}(),Gu()}function Ku(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new st(this.$page.id)),e.eventChannel}}function Ju(e){e._context.config.globalProperties.getOpenerEventChannel=Ku}function Zu(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function ed(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(e,t)=>`${fh(parseFloat(t))}px`):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function td(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,i=t.actions.length;function r(){const t=o[n],s=t.option.transition,a=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],i=["width","height","left","right","top","bottom"],r=e.animates,s=e.option,a=s.transition,l={},c=[];return r.forEach(e=>{let r=e.type,s=[...e.args];if(t.concat(n).includes(r))r.startsWith("rotate")||r.startsWith("skew")?s=s.map(e=>parseFloat(e)+"deg"):r.startsWith("translate")&&(s=s.map(ed)),n.indexOf(r)>=0&&(s.length=1),c.push(`${r}(${s.join(",")})`);else if(o.concat(i).includes(s[0])){r=s[0];const e=s[1];l[r]=i.includes(r)?ed(e):e}}),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map(e=>`${function(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace("webkit","-webkit")}(e)} ${a.duration}ms ${a.timingFunction} ${a.delay}ms`).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(a).forEach(t=>{e.$el.style[t]=a[t]}),n+=1,n<i&&setTimeout(r,s.duration+s.delay)}setTimeout(()=>{r()},0)}const nd={props:["animation"],watch:{animation:{deep:!0,handler(){td(this)}}},mounted(){td(this)}},od=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(nd),id(e)},id=e=>(e.__reserved=!0,e.compatConfig={MODE:3},ni(e));function rd(e){return e.__wwe=!0,e}function sd(e,t){return(n,o,i)=>{e.value&&t(n,function(e,t,n,o){let i;return i=et(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:o}}(n,o,e.value,i||{}))}}const ad={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function ld(e){const t=Hn(!1);let n,o,i=!1;function r(){requestAnimationFrame(()=>{clearTimeout(o),o=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function s(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),i=!0,n=setTimeout(()=>{t.value=!0,i||r()},parseInt(e.hoverStartTime)))}function a(){i=!1,t.value&&r()}function l(){a(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:rd(function(e){e.touches.length>1||s(e)}),onMousedown:rd(function(e){i||(s(e),window.addEventListener("mouseup",l))}),onTouchend:rd(function(){a()}),onMouseup:rd(function(){i&&l()}),onTouchcancel:rd(function(){i=!1,t.value=!1,clearTimeout(n)})}}}function cd(e,t){return _(t)&&(t=[t]),t.reduce((t,n)=>(e[n]&&(t[n]=!0),t),Object.create(null))}const ud=su("uf"),dd=od({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=Hn(null);return function(e){const t=[];tr(ud,{addField(e){t.push(e)},removeField(e){t.splice(t.indexOf(e),1)},submit(n){e("submit",n,{value:t.reduce((e,t)=>{if(t.submit){const[n,o]=t.submit();n&&(e[n]=o)}return e},Object.create(null))})},reset(n){t.forEach(e=>e.reset&&e.reset()),e("reset",n)}})}(sd(o,n)),()=>jr("uni-form",{ref:o},[jr("span",null,[t.default&&t.default()])],512)}});const hd=su("ul");function pd(e,t){fd(e.id,t),No(()=>e.id,(e,n)=>{md(n,t,!0),fd(e,t,!0)}),Ai(()=>{md(e.id,t)})}function fd(e,t,n){const o=fu();n&&!e||A(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&T_.on(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?T_.on(i,t[i]):e&&T_.on(`uni-${i}-${o}-${e}`,t[i])})}function md(e,t,n){const o=fu();n&&!e||A(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&T_.off(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?T_.off(i,t[i]):e&&T_.off(`uni-${i}-${o}-${e}`,t[i])})}const gd=od({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},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=Hn(null),o=nr(ud,!1),{hovering:i,binding:r}=ld(e),s=rd((t,i)=>{if(e.disabled)return t.stopImmediatePropagation();i&&n.value.click();const r=e.formType;if(r){if(!o)return;"submit"===r?o.submit(t):"reset"===r&&o.reset(t)}else;}),a=nr(hd,!1);return a&&(a.addHandler(s),Ci(()=>{a.removeHandler(s)})),pd(e,{"label-click":s}),()=>{const o=e.hoverClass,a=cd(e,"disabled"),l=cd(e,"loading"),c=cd(e,"plain"),u=o&&"none"!==o;return jr("uni-button",Yr({ref:n,onClick:s,id:e.id,class:u&&i.value?o:""},u&&r,a,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),yd=su("upm");function bd(){return nr(yd)}function vd(e){const t=function(e){return Cn(function(e){if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Df().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(wu(Gl().meta,e)))))}(e);return tr(yd,t),t}function _d(){return Gl()}function wd(){return history.state&&history.state.__id__||1}const xd=["original","compressed"],Sd=["album","camera"],kd=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function Cd(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Ad(e,t){return!g(e)||0===e.length||e.find(e=>-1===t.indexOf(e))?t:e}function Td(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Id=1;const Bd={};function Ed(e,t,n,o=!1){return Bd[e]={name:t,keepAlive:o,callback:n},e}function Pd(e,t,n){if("number"==typeof e){const o=Bd[e];if(o)return o.keepAlive||delete Bd[e],o.callback(t,n)}return t}function Md(e){for(const t in Bd)if(Bd[t].name===e)return!0;return!1}const zd="success",Od="fail",Rd="complete";function Ld(e,t={},{beforeAll:n,beforeSuccess:o}={}){A(t)||(t={});const{success:i,fail:r,complete:s}=function(e){const t={};for(const n in e){const o=e[n];v(o)&&(t[n]=Td(o),delete e[n])}return t}(t),a=v(i),l=v(r),c=v(s),u=Id++;return Ed(u,e,u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),v(n)&&n(u),u.errMsg===e+":ok"?(v(o)&&o(u,t),a&&i(u)):l&&r(u),c&&s(u)}),u}const Dd="success",Nd="fail",$d="complete",jd={},Hd={};function Fd(e,t){return function(n){return e(n,t)||n}}function Vd(e,t,n){let o=!1;for(let i=0;i<e.length;i++){const r=e[i];if(o)o=Promise.resolve(Fd(r,n));else{const e=r(t,n);if(S(e)&&(o=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return o||{then:e=>e(t),catch(){}}}function Wd(e,t={}){return[Dd,Nd,$d].forEach(n=>{const o=e[n];if(!g(o))return;const i=t[n];t[n]=function(e){Vd(o,e,t).then(e=>v(i)&&i(e)||e)}}),t}function Ud(e,t){const n=[];g(jd.returnValue)&&n.push(...jd.returnValue);const o=Hd[e];return o&&g(o.returnValue)&&n.push(...o.returnValue),n.forEach(e=>{t=e(t)||t}),t}function qd(e){const t=Object.create(null);Object.keys(jd).forEach(e=>{"returnValue"!==e&&(t[e]=jd[e].slice())});const n=Hd[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function Qd(e,t,n,o){const i=qd(e);if(i&&Object.keys(i).length){if(g(i.invoke)){return Vd(i.invoke,n).then(n=>t(Wd(qd(e),n),...o))}return t(Wd(i,n),...o)}return t(n,...o)}function Yd(e,t){return(n={},...o)=>function(e){return!(!A(e)||![zd,Od,Rd].find(t=>v(e[t])))}(n)?Ud(e,Qd(e,t,h({},n),o)):Ud(e,new Promise((i,r)=>{Qd(e,t,h({},n,{success:i,fail:r}),o)}))}function Gd(e,t,n,o={}){const i=t+":fail";let r="";return r=n?0===n.indexOf(i)?n:i+" "+n:i,delete o.errCode,Pd(e,h({errMsg:r},o))}function Xd(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(_(e))return e}const i=function(e,t){const n=e[0];if(!t||!t.formatArgs||!A(t.formatArgs)&&A(n))return;const o=t.formatArgs,i=Object.keys(o);for(let r=0;r<i.length;r++){const t=i[r],s=o[t];if(v(s)){const o=s(e[0][t],n);if(_(o))return o}else m(n,t)||(n[t]=s)}}(t,o);if(i)return i}function Kd(e){if(!v(e))throw new Error('Invalid args: type check failed for args "callback". Expected Function')}function Jd(e,t,n){return o=>{Kd(o);const i=Xd(0,[o],0,n);if(i)throw new Error(i);const r=!Md(e);!function(e,t){Ed(Id++,e,t,!0)}(e,o),r&&(!function(e){I_.on("api."+e,t=>{for(const n in Bd){const o=Bd[n];o.name===e&&o.callback(t)}})}(e),t())}}function Zd(e,t,n){return o=>{Kd(o);const i=Xd(0,[o],0,n);if(i)throw new Error(i);!function(e,t){for(const n in Bd){const o=Bd[n];o.callback===t&&o.name===e&&delete Bd[n]}}(e=e.replace("off","on"),o);Md(e)||(!function(e){I_.off("api."+e)}(e),t())}}function eh(e,t,n,o){return n=>{const i=Ld(e,n,o),r=Xd(0,[n],0,o);return r?Gd(i,e,r):t(n,{resolve:t=>function(e,t,n){return Pd(e,h(n||{},{errMsg:t+":ok"}))}(i,e,t),reject:(t,n)=>Gd(i,e,function(e){return!e||_(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function th(e,t,n){return Jd(e,t,n)}function nh(e,t,n){return Zd(e,t,n)}function oh(e,t,n,o){return Yd(e,eh(e,t,0,o))}function ih(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Xd(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function rh(e,t,n,o){return Yd(e,function(e,t,n,o){return eh(e,t,0,o)}(e,t,0,o))}let sh=!1,ah=0,lh=0,ch=960,uh=375,dh=750;function hh(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=function(){const e=lm(),t=dm(um(e,cm(e)));return{platform:om?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=i,n=r}ah=e,lh=t,sh="ios"===n}function ph(e,t){const n=Number(e);return isNaN(n)?t:n}const fh=ih(0,(e,t)=>{if(0===ah&&(hh(),function(){const e=__uniConfig.globalStyle||{};ch=ph(e.rpxCalcMaxDeviceWidth,960),uh=ph(e.rpxCalcBaseDeviceWidth,375),dh=ph(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||ah;n=e===dh||n<=ch?n:uh;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==lh&&sh?.5:1),e<0?-o:o});const mh=new class{constructor(){this.$emitter=new ht}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},gh=ih(0,(e,t)=>(mh.on(e,t),()=>mh.off(e,t))),yh=ih(0,(e,t)=>(mh.once(e,t),()=>mh.off(e,t))),bh=ih(0,(e,t)=>{g(e)||(e=e?[e]:[]),e.forEach(e=>{mh.off(e,t)})}),vh=ih(0,(e,...t)=>{mh.emit(e,...t)}),_h=[.5,.8,1,1.25,1.5,2];class wh{constructor(e,t){this.id=e,this.pageId=t}play(){hm(this.id,this.pageId,"play")}pause(){hm(this.id,this.pageId,"pause")}stop(){hm(this.id,this.pageId,"stop")}seek(e){hm(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){hm(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~_h.indexOf(e)||(e=1),hm(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){hm(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){hm(this.id,this.pageId,"exitFullScreen")}showStatusBar(){hm(this.id,this.pageId,"showStatusBar")}hideStatusBar(){hm(this.id,this.pageId,"hideStatusBar")}}const xh=ih(0,(e,t)=>new wh(e,mu(t||vu()))),Sh=(e,t,n,o)=>{!function(e,t,n,o,i){I_.invokeViewMethod("map."+e,{type:n,data:o},t,i)}(e,t,n,o,e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)})};function kh(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const Ch=kh("width"),Ah=kh("height"),Th={formatArgs:{x:kh("x"),y:kh("y"),width:Ch,height:Ah}},Ih={canvasId:{type:String,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},Bh=Th,Eh=(Uint8ClampedArray,{PNG:"png",JPG:"jpg",JPEG:"jpg"}),Ph={formatArgs:{x:kh("x",0),y:kh("y",0),width:Ch,height:Ah,destWidth:kh("destWidth"),destHeight:kh("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=Eh[e];n||(n=Eh.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function Mh(e,t,n,o,i){I_.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,e=>{i&&i(e)})}var zh=["scale","rotate","translate","setTransform","transform"],Oh=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],Rh=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const Lh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function Dh(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e){return Math.min(255,parseInt(e.trim()))}).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))});var n=e.toLowerCase();if(m(Lh,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(Lh[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),i=parseInt(t[1].slice(4,6),16);let r=parseInt(t[1].slice(6,8),16);return r=r>=0?r:255,[e,o,i,r]}return console.error("unsupported color:"+e),[0,0,0,255]}class Nh{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,Dh(t)])}}class $h{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class jh{constructor(e){this.width=e}}class Hh{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(e){console.log("initCanvasContextProperty implemented.")}setShadow(e,t,n,o){console.log("initCanvasContextProperty implemented.")}addColorStop(e,t){console.log("initCanvasContextProperty implemented.")}setLineWidth(e){console.log("initCanvasContextProperty implemented.")}setLineCap(e){console.log("initCanvasContextProperty implemented.")}setLineJoin(e){console.log("initCanvasContextProperty implemented.")}setLineDash(e,t){console.log("initCanvasContextProperty implemented.")}setMiterLimit(e){console.log("initCanvasContextProperty implemented.")}fillRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}strokeRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}clearRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(e,t){console.log("initCanvasContextProperty implemented.")}rotate(e){console.log("initCanvasContextProperty implemented.")}translate(e,t){console.log("initCanvasContextProperty implemented.")}setFontSize(e){console.log("initCanvasContextProperty implemented.")}fillText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTextAlign(e){console.log("initCanvasContextProperty implemented.")}setTextBaseline(e){console.log("initCanvasContextProperty implemented.")}drawImage(e,t,n,o,i,r,s,a,l){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(e){console.log("initCanvasContextProperty implemented.")}strokeText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTransform(e,t,n,o,i,r){console.log("initCanvasContextProperty implemented.")}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],Mh(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new Nh("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new Nh("radial",[e,t,n])}createPattern(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new $h(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new jh(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,i,r){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,i,r]}),this.subpath.push([i,r])}arc(e,t,n,o,i,r=!1){this.path.push({method:"arc",data:[e,t,n,o,i,r]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,i){this.path.push({method:"arcTo",data:[e,t,n,o,i]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),i=parseFloat(n[3]),r=n[7],s=[];o.forEach(function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal","lighter","bolder"].indexOf(e)>-1||/^\d+$/.test(e)?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&a()}),1===o.length&&a(),o=s.map(function(e){return e.data[0]}).join(" "),this.state.fontSize=i,this.state.fontFamily=r,this.actions.push({method:"setFont",data:[`${o} ${i}px ${r}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function a(){s.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const Fh=je(()=>{[...zh,...Oh].forEach(function(e){Hh.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,i){var r=[t.toString(),n,o];"number"==typeof i&&r.push(i),this.actions.push({method:e,data:r})};case"drawImage":return function(t,n,o,i,r,s,a,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(s=n,a=o,l=i,c=r,n=void 0,o=void 0,i=void 0,r=void 0),u=d(n)&&d(o)&&d(i)&&d(r)?[t,s,a,l,c,n,o,i,r]:d(l)&&d(c)?[t,s,a,l,c]:[t,s,a],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}),Rh.forEach(function(e){Hh.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",Dh(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,i){i=Dh(i),this.actions.push({method:e,data:[t,n,o,i]}),this.state.shadowBlur=o,this.state.shadowColor=i,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})}),Vh=ih(0,(e,t)=>{if(Fh(),t)return new Hh(e,mu(t));const n=mu(vu());if(n)return new Hh(e,n);I_.emit(ce,"createCanvasContext:fail")}),Wh=rh("canvasGetImageData",({canvasId:e,x:t,y:n,width:o,height:i},{resolve:r,reject:s})=>{const a=mu(vu());a?Mh(e,a,"getImageData",{x:t,y:n,width:o,height:i},function(e){if(e.errMsg&&-1!==e.errMsg.indexOf("fail"))return void s("",e);let t=e.data;t&&t.length&&(e.data=new Uint8ClampedArray(t)),delete e.compressed,r(e)}):s()},0,Th),Uh=rh("canvasPutImageData",({canvasId:e,data:t,x:n,y:o,width:i,height:r},{resolve:s,reject:a})=>{var l=mu(vu());if(!l)return void a();t=Array.prototype.slice.call(t),Mh(e,l,"putImageData",{data:t,x:n,y:o,width:i,height:r,compressed:void 0},e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?a():s(e)})},0,Bh),qh=rh("canvasToTempFilePath",({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,canvasId:s,fileType:a,quality:l},{resolve:c,reject:u})=>{var d=mu(vu());if(!d)return void u();Mh(s,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,fileType:a,quality:l,dirname:"/canvas"},e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):c(e)})},0,Ph),Qh={thresholds:[0],initialRatio:0,observeAll:!1},Yh=["top","right","bottom","left"];let Gh=1;function Xh(e={}){return Yh.map(t=>`${Number(e[t])||0}px`).join(" ")}class Kh{constructor(e,t){this._pageId=mu(e),this._component=e,this._options=h({},Qh,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=Xh(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=Xh(e),this}observe(e,t){v(t)&&(this._options.selector=e,this._reqId=Gh++,function({reqId:e,component:t,options:n,callback:o}){const i=Jf(t);(i.__io||(i.__io={}))[e]=function(e,t,n){rf();const o=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,i=new IntersectionObserver(e=>{e.forEach(e=>{n({intersectionRatio:af(e),intersectionRect:sf(e.intersectionRect),boundingClientRect:sf(e.boundingClientRect),relativeRect:sf(e.rootBounds),time:Date.now(),dataset:Ke(e.target),id:e.target.id})})},{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e<n.length;e++)i.observe(n[e])}else{i.USE_MUTATION_OBSERVER=!1;const n=e.matches(t.selector)?e:e.querySelector(t.selector);n?i.observe(n):console.warn(`Node ${t.selector} is not found. Intersection observer will not trigger.`)}return i}(i,n,o)}({reqId:this._reqId,component:this._component,options:this._options,callback:t},this._pageId))}disconnect(){this._reqId&&function({reqId:e,component:t}){const n=Jf(t),o=n.__io&&n.__io[e];o&&(o.disconnect(),delete n.__io[e])}({reqId:this._reqId,component:this._component},this._pageId)}}const Jh=ih(0,(e,t)=>((e=Ve(e))&&!mu(e)&&(t=e,e=null),new Kh(e||vu(),t)));let Zh=0,ep={};function tp(e,t,n,o){const i={options:o},r=o&&("success"in o||"fail"in o||"complete"in o);if(r){const e=String(Zh++);i.callbackId=e,ep[e]=o}I_.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,({callbackId:e,data:t})=>{r&&(!function(e,t){e=e||{},_(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?v(e.success)&&e.success(t):v(e.fail)&&e.fail(t),v(e.complete)&&e.complete(t)}(ep[e],t),delete ep[e])})}const np={canvas:Hh,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){Sh(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){Sh(this.id,this.pageId,"moveToLocation",e)}getScale(e){Sh(this.id,this.pageId,"getScale",e)}getRegion(e){Sh(this.id,this.pageId,"getRegion",e)}includePoints(e){Sh(this.id,this.pageId,"includePoints",e)}translateMarker(e){Sh(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){Sh(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){Sh(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){Sh(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){Sh(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){Sh(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){Sh(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){Sh(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){Sh(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){Sh(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){Sh(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){Sh(this.id,this.pageId,"openMapApp",e)}on(e,t){Sh(this.id,this.pageId,"on",{name:e,callback:t})}},video:wh,editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){tp(this.id,this.pageId,e,t)}}};function op(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=np[n];e.context=new i(t,o),delete e.contextInfo}}class ip{constructor(e,t,n,o){this._selectorQuery=e,this._component=t,this._selector=n,this._single=o}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},e),this._selectorQuery}}class rp{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return function(e,t,n){const o=[];t.forEach(({component:t,selector:n,single:i,fields:r})=>{null===t?o.push(function(e){const t={};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);if(e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(r)):o.push(function(e,t,n,o,i){const r=function(e,t){if(!e)return t.$el;return e.$el}(t,e),s=r.parentElement;if(!s)return o?null:[];const{nodeType:a}=r,l=3===a||8===a;if(o){const e=l?s.querySelector(n):fm(r,n)?r:r.querySelector(n);return e?pm(e,i):null}{let e=[];const t=(l?s:r).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,t=>{e.push(pm(t,i))}),!l&&fm(r,n)&&e.unshift(pm(r,i)),e}}(e,t,n,i,r))}),n(o)}(this._page,this._queue,t=>{const n=this._queueCb;t.forEach((e,t)=>{g(e)?e.forEach(op):op(e);const o=n[t];v(o)&&o.call(this,e)}),v(e)&&e.call(this,t)}),this._nodesRef}in(e){return this._component=Ve(e),this}select(e){return this._nodesRef=new ip(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new ip(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new ip(this,null,"",!0)}_push(e,t,n,o,i){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(i)}}const sp=ih(0,e=>((e=Ve(e))&&!mu(e)&&(e=null),new rp(e||vu()))),ap={formatArgs:{}},lp={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class cp{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=h({},lp,e)}_getOption(e){const t={transition:h({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach(e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e}),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const up=je(()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach(n=>{cp.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}})}),dp=ih(0,e=>(up(),new cp(e)),0,ap),hp=th("onWindowResize",()=>{}),pp=nh("offWindowResize",()=>{}),fp=ih(0,()=>{const e=Zy();return e&&e.$vm?e.$vm.$locale:gc().getLocale()}),mp=th("onLocaleChange",()=>{}),gp={[he]:[],[de]:[],[ce]:[],[ae]:[],[le]:[]};const yp={formatArgs:{showToast:!0},beforeInvoke(){Sc()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=gc(),o=n("uni.setClipboardData.success");o&&s_({title:o,icon:"success",mask:!1})}},bp=(Boolean,["wgs84","gcj02"]),vp={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===bp.indexOf(e)?t.type=bp[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},_p=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Ad(e,xd)},sourceType(e,t){t.sourceType=Ad(e,Sd)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),wp={formatArgs:{sourceType(e,t){t.sourceType=Ad(e,Sd)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},xp=(Boolean,["all","image","video"]),Sp={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Ad(e,Sd)},type(e,t){t.type=Cd(e,xp)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||("all"!==t.type&&t.type?t.extension=["*"]:t.extension=[""])}}},kp={formatArgs:{src(e,t){t.src=em(e)}}},Cp={formatArgs:{urls(e,t){t.urls=e.map(e=>_(e)&&e?em(e):"")},current(e,t){"number"==typeof e?t.current=e>0&&e<t.urls.length?e:0:_(e)&&e&&(t.current=em(e))}}},Ap="saveImageToPhotosAlbum",Tp="json",Ip=["text","arraybuffer"],Bp=encodeURIComponent;ArrayBuffer,Boolean;const Ep={formatArgs:{method(e,t){t.method=Cd((e||"").toUpperCase(),kd)},data(e,t){t.data=e||""},url(e,t){t.method===kd[0]&&A(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){let n=e.split("#");const o=n[1]||"";n=n[0].split("?");let i=n[1]||"";e=n[0];const r=i.split("&").filter(e=>e),s={};r.forEach(e=>{const t=e.split("=");s[t[0]]=t[1]});for(const a in t)if(m(t,a)){let e=t[a];null==e?e="":A(e)&&(e=JSON.stringify(e)),s[Bp(a)]=Bp(e)}return i=Object.keys(s).map(e=>`${e}=${s[e]}`).join("&"),e+(i?"?"+i:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==kd[0]&&(Object.keys(n).find(e=>"content-type"===e.toLowerCase())||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Tp).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Ip.indexOf(t.responseType)&&(t.responseType="text")}}},Pp={formatArgs:{header(e,t){t.header=e||{}}}},Mp={formatArgs:{filePath(e,t){e&&(t.filePath=em(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const zp={url:{type:String,required:!0}},Op="navigateTo",Rp="redirectTo",Lp="reLaunch",Dp="switchTab",Np="preloadPage",$p=(Wp(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Wp(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),Qp(Op)),jp=Qp(Rp),Hp=Qp(Lp),Fp=Qp(Dp),Vp={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Df().length-1,e)}}};function Wp(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let Up;function qp(){Up=""}function Qp(e){return{formatArgs:{url:Yp(e)},beforeAll:qp}}function Yp(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=Df();return n.length&&(t=cu(n[n.length-1]).route),Bu(t,e)}(t)).split("?")[0],i=Eu(o,!0);if(!i)return"page `"+t+"` is not found";if(e===Op||e===Rp){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===Dp&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==Dp&&e!==Np||!i.meta.isTabBar||"appLaunch"===n.openType||(t=o),i.meta.isEntry&&(t=t.replace(i.alias,"/")),n.url=function(e){if(!_(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach(e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(i))}),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if(e!==Np){if(Up===t&&"appLaunch"!==n.openType)return`${Up} locked`;__uniConfig.ready&&(Up=t)}else if(i.meta.isTabBar){const e=Df(),t=i.path.slice(1);if(e.find(e=>e.route===t))return"tabBar page `"+t+"` already exists"}}}const Gp="setNavigationBarTitle",Xp={formatArgs:{duration:300}},Kp=(Boolean,{formatArgs:{title:"",mask:!1}}),Jp=(Boolean,{beforeInvoke(){wc()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!m(t,"cancelText")){const{t:e}=gc();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!m(t,"confirmText")){const{t:e}=gc();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),Zp=["success","loading","none","error"],ef=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Cd(e,Zp)},image(e,t){t.image=e?em(e):""},duration:1500,mask:!1}}),tf="stopPullDownRefresh",nf="hideTabBar",of="showTabBar",rf=function(){if("object"==typeof window)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}});else{var e=function(){for(var e=window.document,t=i(e);t;)t=i(e=t.ownerDocument);return e}(),t=[],n=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(e,n){o=e&&n?h(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach(function(e){e._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},s.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},s.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},s.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var o=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(a(n,"resize",o,!0),a(t,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(o)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(r&&e.clearInterval(r),l(e,"resize",o,!0)),l(t,"scroll",o,!0),s&&s.disconnect()});var c=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=c){var u=i(t);u&&this._monitorIntersections(u.ownerDocument)}}},s.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=o;){var r=i(n);if((n=r&&r.ownerDocument)==t)return!0}return!1})){var r=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),r(),t!=o){var s=i(t);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},s.prototype._checkForIntersections=function(){if(this.root||!n||o){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(o){var i=o.element,s=u(i),a=this._rootContainsTarget(i),l=o.entry,c=e&&a&&this._computeTargetAndRootIntersection(i,s,t),d=null;this._rootContainsTarget(i)?n&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:d,intersectionRect:c});l?e&&a?this._hasCrossedThreshold(l,h)&&this._queuedEntries.push(h):l&&l.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(t,i,r){if("none"!=window.getComputedStyle(t).display){for(var s=i,a=f(t),l=!1;!l&&a;){var d=null,p=1==a.nodeType?window.getComputedStyle(a):{};if("none"==p.display)return null;if(a==this.root||9==a.nodeType)if(l=!0,a==this.root||a==e)n&&!this.root?!o||0==o.width&&0==o.height?(a=null,d=null,s=null):d=o:d=r;else{var m=f(a),g=m&&u(m),y=m&&this._computeTargetAndRootIntersection(m,g,r);g&&y?(a=m,d=h(g,y)):(a=null,s=null)}else{var b=a.ownerDocument;a!=b.body&&a!=b.documentElement&&"visible"!=p.overflow&&(d=u(a))}if(d&&(s=c(d,s)),!s)break;a=a&&f(a)}return s}},s.prototype._getRootRect=function(){var t;if(this.root&&!m(this.root))t=u(this.root);else{var n=m(this.root)?this.root:e,o=n.documentElement,i=n.body;t={top:0,left:0,right:o.clientWidth||i.clientWidth,width:o.clientWidth||i.clientWidth,bottom:o.clientHeight||i.clientHeight,height:o.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},s.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},s.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return p(n,t)&&(!this.root||n==t.ownerDocument)},s.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},s.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function r(e){this.time=e.time,this.target=e.target,this.rootBounds=d(e.rootBounds),this.boundingClientRect=d(e.boundingClientRect),this.intersectionRect=d(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(e,t){var n,o,i,r=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){n(),i=null},o))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function c(e,t){var n=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),r=Math.min(e.right,t.right),s=r-i,a=o-n;return s>=0&&a>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:a}||null}function u(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function h(e,t){var n=t.top-e.top,o=t.left-e.left;return{top:n,left:o,height:t.height,width:t.width,bottom:n+t.height,right:o+t.width}}function p(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function m(e){return e&&9===e.nodeType}};function sf(e){const{bottom:t,height:n,left:o,right:i,top:r,width:s}=e||{};return{bottom:t,height:n,left:o,right:i,top:r,width:s}}function af(e){const{intersectionRatio:t,boundingClientRect:{height:n,width:o},intersectionRect:{height:i,width:r}}=e;return 0!==t?t:i===n?r/o:i/n}function lf(){const e=vu();if(!e)return;const t=Lf(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:$f(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,ku(e,le))}function cf(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function uf(e){const t=Lf().values();for(const n of t){const t=Ef(n);if(cf(e,t))return n.$.__isActive=!0,t.id}}const df=rh(Dp,({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Pf.handledBeforeEntryPageRoutes)return lf(),gf({type:Dp,url:e,tabBarText:t,isAutomatedTesting:n},uf(e)).then(o).catch(i);zf.push({args:{type:Dp,url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Fp);function hf(){const e=gu();if(!e)return;const t=Ef(e);$f(Ff(t.path,t.id))}const pf=rh(Rp,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Pf.handledBeforeEntryPageRoutes)return hf(),gf({type:Rp,url:e,isAutomatedTesting:t}).then(n).catch(o);Of.push({args:{type:Rp,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,jp);function ff(){const e=Lf().keys();for(const t of e)$f(t)}const mf=rh(Lp,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Pf.handledBeforeEntryPageRoutes)return ff(),gf({type:Lp,url:e,isAutomatedTesting:t}).then(n).catch(o);Rf.push({args:{type:Lp,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Hp);function gf({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const s=Zy().$router,{path:a,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:it(n||"")}}(t);return new Promise((t,c)=>{const u=function(e,t){return{__id__:t||++jf,__type__:e}}(e,r);s["navigateTo"===e?"push":"replace"]({path:a,query:l,state:u,force:!0}).then(r=>{if(hl(r))return c(r.message);if("switchTab"===e&&(s.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=s.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach(t=>{e.eventChannel._addListener(t,"on",o[t])}),e.eventChannel._clearCache()):e.eventChannel=new st(u.__id__,o),t(i?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return i?t({__id__:u.__id__}):t()})})}function yf(){if(Pf.handledBeforeEntryPageRoutes)return;Pf.handledBeforeEntryPageRoutes=!0;const e=[...Mf];Mf.length=0,e.forEach(({args:e,resolve:t,reject:n})=>gf(e).then(t).catch(n));const t=[...zf];zf.length=0,t.forEach(({args:e,resolve:t,reject:n})=>(lf(),gf(e,uf(e.url)).then(t).catch(n)));const n=[...Of];Of.length=0,n.forEach(({args:e,resolve:t,reject:n})=>(hf(),gf(e).then(t).catch(n)));const o=[...Rf];Rf.length=0,o.forEach(({args:e,resolve:t,reject:n})=>(ff(),gf(e).then(t).catch(n)))}let bf;function vf(){var e;return bf||(bf=__uniConfig.tabBar&&Cn((e=__uniConfig.tabBar,dc()&&e.list&&e.list.forEach(e=>{mc(e,["text"])}),e))),bf}function _f(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const wf=_f("--a:0"),xf=_f("top:env(a)"),Sf=_f("top:constant(a)"),kf={"css.var":wf,"css.env":xf,"css.constant":Sf,"css.backdrop-filter":_f("backdrop-filter:blur(10px)")},Cf=ih(0,e=>m(kf,e)?kf[e]:!!m(uni,e)),Af=(()=>xf?"env":Sf?"constant":"")();function Tf(e){var t,n;ru({"--window-top":(n=0,Af?`calc(${n}px + ${Af}(safe-area-inset-top))`:`${n}px`),"--window-bottom":(t=0,Af?`calc(${t}px + ${Af}(safe-area-inset-bottom))`:`${t}px`)})}const If="$$",Bf=new Map;function Ef(e){return e.$page}const Pf={handledBeforeEntryPageRoutes:!1},Mf=[],zf=[],Of=[],Rf=[];function Lf(){return Bf}function Df(){return Nf()}function Nf(){const e=[],t=Bf.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function $f(e,t=!0){const n=Bf.get(e);n.$.__isUnload=!0,ku(n,me),Bf.delete(e),t&&function(e){const t=Vf.get(e);t&&(Vf.delete(e),Wf.pruneCacheEntry(t))}(e)}let jf=wd();function Hf(e){const t=function(e){const t=bd();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),xu("navigateTo",n,{},t)}(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),Bf.set(Ff(t.path,t.id),e),1===Bf.size&&setTimeout(()=>{yf()},0)}function Ff(e,t){return e+If+t}const Vf=new Map,Wf={get:e=>Vf.get(e),set(e,t){!function(e){const t=parseInt(e.split(If)[1]);if(!t)return;Wf.forEach((e,n)=>{const o=parseInt(n.split(If)[1]);o&&o>t&&(Wf.delete(n),Wf.pruneCacheEntry(e),ao(()=>{Bf.forEach((e,t)=>{e.$.isUnmounted&&Bf.delete(t)})}))})}(e),Vf.set(e,t)},delete(e){Vf.get(e)&&Vf.delete(e)},forEach(e){Vf.forEach(e)}};function Uf(e,t){!function(e){const t=Qf(e),{body:n}=document;Yf&&n.removeAttribute(Yf),t&&n.setAttribute(t,""),Yf=t}(e),Tf(),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),Kf(e,t)}function qf(e){const t=Qf(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Qf(e){return e.type.__scopeId}let Yf;const Gf=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",()=>{},t)}catch(t){}return e})()&&{passive:!1};let Xf;function Kf(e,t){if(document.removeEventListener("touchmove",Cu),Xf&&document.removeEventListener("scroll",Xf),t.disableScroll)return document.addEventListener("touchmove",Cu,Gf);const{onPageScroll:n,onReachBottom:o}=e,i="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!i)return;const r={},s=Ef(e.proxy).id;(n||i)&&(r.onPageScroll=function(e,t,n){return o=>{t&&T_.publishHandler(_e,{scrollTop:o},e),n&&T_.emit(e+"."+_e,{scrollTop:o})}}(s,n,i)),(null==o?void 0:o.length)&&(r.onReachBottomDistance=t.onReachBottomDistance||50,r.onReachBottom=()=>T_.publishHandler(xe,{},s)),Xf=Iu(r),requestAnimationFrame(()=>document.addEventListener("scroll",Xf))}function Jf(e){return e.$el}function Zf(e){const{base:t}=__uniConfig.router;return 0===De(e).indexOf(t)?De(e):t+e}function em(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Zf(e.slice(1));e="https:"+e}if(re.test(e)||se.test(e)||0===e.indexOf("blob:"))return e;const o=Nf();return o.length?Zf(Bu(Ef(o[o.length-1]).route,e).slice(1)):e}const tm=navigator.userAgent,nm=/android/i.test(tm),om=/iphone|ipad|ipod/i.test(tm),im=tm.match(/Windows NT ([\d|\d.\d]*)/i),rm=/Macintosh|Mac/i.test(tm),sm=/Linux|X11/i.test(tm),am=rm&&navigator.maxTouchPoints>0;function lm(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function cm(e){return e&&90===Math.abs(window.orientation)}function um(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function dm(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function hm(e,t,n,o){I_.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function pm(e,t){const n={},{top:o,topWindowHeight:i}=iu();if(t.node){const t=e.tagName.split("-")[1]||e.tagName;t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=Ke(e)),t.rect||t.size){const r=e.getBoundingClientRect();t.rect&&(n.left=r.left,n.right=r.right,n.top=r.top-o-i,n.bottom=r.bottom-o-i),t.size&&(n.width=r.width,n.height=r.height)}if(g(t.properties)&&t.properties.forEach(e=>{e=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){const t=e.children[0].children[0];n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,n.scrollHeight=t.scrollHeight,n.scrollWidth=t.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(g(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach(e=>{n[e]=o[e]})}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function fm(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}const mm={};function gm(e,t){const n=mm[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",i=atob(t[1]);let r=i.length;const s=new Uint8Array(r);for(;r--;)s[r]=i.charCodeAt(r);return ym(s,o)}(e)):t?Promise.reject(new Error("not find")):new Promise((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()})}function ym(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const i=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],i,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||i}}return n}function bm(e){for(const n in mm)if(m(mm,n)){if(mm[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return mm[t]=e,t}function vm(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete mm[e]}const _m=Zu(),wm=Zu();const xm=od({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=Hn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),i=function(e,t,n){const o=Cn({width:-1,height:-1});return No(()=>h({},o),e=>t("resize",e)),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){di(o),xi(()=>{t.initial&&ao(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||o()})}(n,e,i,o),()=>jr("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[jr("div",{onScroll:i},[jr("div",null,null)],40,["onScroll"]),jr("div",{onScroll:i},[jr("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const Sm=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function km(e,t=!0){const n=t?Sm:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let Cm=!1;function Am(){if(Cm)return;Cm=!0;const e={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",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=function(e){return function(t,n,o,i,r,s,a,l,c,u){if(!this.__hidpi__)return e.apply(this,arguments);n*=Sm,o*=Sm,i*=Sm,r*=Sm,s*=Sm,a*=Sm,l=u?l*Sm:l,c=u?c*Sm:c,e.call(this,t,n,o,i,r,s,a,l,c)}}(t.drawImage),1!==Sm&&(!function(e,t){for(const n in e)m(e,n)&&t(e[n],n)}(e,function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map(function(e){return e*Sm});else if(Array.isArray(e))for(let t=0;t<e.length;t++)n[e[t]]*=Sm;return t.apply(this,n)}}(t[n])}),t.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=Sm,e.apply(this,arguments),this.lineWidth/=Sm}}(t.stroke),t.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);const t=Array.prototype.slice.call(arguments);t[1]*=Sm,t[2]*=Sm,t[3]&&"number"==typeof t[3]&&(t[3]*=Sm);var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(e,t,n){return t*Sm+n}),e.apply(this,t),this.font=n}}(t.fillText),t.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=Sm,t[2]*=Sm,t[3]&&"number"==typeof t[3]&&(t[3]*=Sm);var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(e,t,n){return t*Sm+n}),e.apply(this,t),this.font=n}}(t.strokeText),t.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(Sm,Sm),e.apply(this,arguments),this.scale(1/Sm,1/Sm)}}(t.drawImage))}const Tm=je(()=>Am());function Im(e){return e?em(e):e}function Bm(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Em(e,t){Array.from(t).forEach(t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top})}let Pm;function Mm(e=0,t=0){return Pm||(Pm=document.createElement("canvas")),Pm.width=e,Pm.height=t,Pm}const zm=od({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){Tm();const o=Hn(null),i=Hn(null),r=Hn(null),s=Hn(!1),a=function(e){return(t,n)=>{e(t,Du(n))}}(t),{$attrs:l,$excludeAttrs:c,$listeners:u}=Sg({excludeListeners:!0}),{_listeners:d}=function(e,t,n){const o=ds(()=>{let o=["onTouchstart","onTouchmove","onTouchend"],i=t.value,r=h({},(()=>{let e={};for(const t in i)if(m(i,t)){const n=i[t];e[t]=n}return e})());return o.forEach(t=>{let o=[];r[t]&&o.push(rd(e=>{const o=e.currentTarget.getBoundingClientRect();Em(o,e.touches),Em(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)})),e.disableScroll&&"onTouchmove"===t&&o.push(eu),r[t]=o}),r});return{_listeners:o}}(e,u,a),{_handleSubscribe:p,_resize:f}=function(e,t,n){let o=[],i={};const r=ds(()=>e.hidpi?Sm:1);function s(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*r.value)||o.height!==Math.floor(n.height*r.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);km(o,e.hidpi),t.putImageData(n,0,0)}else km(o,e.hidpi)}function a({actions:e,reserve:r},s){if(!e)return;if(n.value)return void o.push([e,r]);let a=t.value,u=a.getContext("2d");r||(u.fillStyle="#000000",u.strokeStyle="#000000",u.shadowColor="#000000",u.shadowBlur=0,u.shadowOffsetX=0,u.shadowOffsetY=0,u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,a.width,a.height)),l(e);for(let t=0;t<e.length;t++){const n=e[t];let o=n.method;const r=n.data,a=r[0];if(/^set/.test(o)&&"setTransform"!==o){const n=o[3].toLowerCase()+o.slice(4);let i;if("fillStyle"===n||"strokeStyle"===n){if("normal"===a)i=Bm(r[1]);else if("linear"===a){const e=u.createLinearGradient(...r[1]);r[2].forEach(function(t){const n=t[0],o=Bm(t[1]);e.addColorStop(n,o)}),i=e}else if("radial"===a){let e=r[1];const t=e[0],n=e[1],o=e[2],s=u.createRadialGradient(t,n,0,t,n,o);r[2].forEach(function(e){const t=e[0],n=Bm(e[1]);s.addColorStop(t,n)}),i=s}else if("pattern"===a){if(!c(r[1],e.slice(t+1),s,function(e){e&&(u[n]=u.createPattern(e,r[2]))}))break;continue}u[n]=i}else if("globalAlpha"===n)u[n]=Number(a)/255;else if("shadow"===n){let e=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];r.forEach(function(t,n){u[e[n]]="shadowColor"===e[n]?Bm(t):t})}else if("fontSize"===n){const e=u.__font__||u.font;u.__font__=u.font=e.replace(/\d+\.?\d*px/,a+"px")}else"lineDash"===n?(u.setLineDash(a),u.lineDashOffset=r[1]||0):"textBaseline"===n?("normal"===a&&(r[0]="alphabetic"),u[n]=a):"font"===n?u.__font__=u.font=a:u[n]=a}else if("fillPath"===o||"strokePath"===o)o=o.replace(/Path/,""),u.beginPath(),r.forEach(function(e){u[e.method].apply(u,e.data)}),u[o]();else if("fillText"===o)u.fillText.apply(u,r);else if("drawImage"===o){if("break"===function(){let n=[...r],o=n[0],a=n.slice(1);if(i=i||{},!c(o,e.slice(t+1),s,function(e){e&&u.drawImage.apply(u,[e].concat([...a.slice(4,8)],[...a.slice(0,4)]))}))return"break"}())break}else"clip"===o?(r.forEach(function(e){u[e.method].apply(u,e.data)}),u.clip()):u[o].apply(u,r)}n.value||s({errMsg:"drawCanvas:ok"})}function l(e){e.forEach(function(e){let t=e.method,n=e.data,o="";function r(){const e=i[o]=new Image;e.onload=function(){e.ready=!0},function(e){const t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):gm(e).then(bm)}(o).then(t=>{e.src=t}).catch(()=>{e.src=o})}"drawImage"===t?(o=n[0],o=Im(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=Im(o),n[1]=o),o&&!i[o]&&r()})}function c(e,t,r,s){let l=i[e];return l.ready?(s(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,s(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)a({actions:t[0],reserve:t[1]},r),t=e.shift()},!1)}function u({x:e=0,y:n=0,width:o,height:i,destWidth:s,destHeight:a,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},h){const p=t.value;let f;const m=p.offsetWidth-e;o=o?Math.min(o,m):m;const g=p.offsetHeight-n;i=i?Math.min(i,g):g,l?(s=o,a=i):s||a?s?a||(a=Math.round(i/o*s)):(a||(a=Math.round(i*r.value)),s=Math.round(o/i*a)):(s=Math.round(o*r.value),a=Math.round(i*r.value));const y=Mm(s,a),b=y.getContext("2d");let v;"jpeg"!==d&&"jpg"!==d||(d="jpeg",b.fillStyle="#fff",b.fillRect(0,0,s,a)),b.__hidpi__=!0,b.drawImageByCanvas(p,e,n,o,i,0,0,s,a,!1);try{let e;if("base64"===c)f=y.toDataURL(`image/${d}`,u);else{const e=b.getImageData(0,0,s,a);f=Array.prototype.slice.call(e.data)}v={data:f,compressed:e,width:s,height:a}}catch(_){v={errMsg:`canvasGetImageData:fail ${_}`}}if(y.height=y.width=0,b.__hidpi__=!1,!h)return v;h(v)}function d({data:e,x:n,y:o,width:i,height:r,compressed:s},a){try{0,r||(r=Math.round(e.length/4/i));const s=Mm(i,r);s.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),i,r),0,0),t.value.getContext("2d").drawImage(s,n,o,i,r),s.height=s.width=0}catch(l){return void a({errMsg:"canvasPutImageData:fail"})}a({errMsg:"canvasPutImageData:ok"})}function p({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,fileType:s,quality:a,dirname:l},c){const d=u({x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,hidpi:!1,dataType:"base64",type:s,quality:a});var h;d.errMsg?c({errMsg:d.errMsg.replace("canvasPutImageData","toTempFilePath")}):(h=d.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,h))}const f={actionsChanged:a,getImageData:u,putImageData:d,toTempFilePath:p};function m(e,t,n){let o=f[e];0!==e.indexOf("_")&&v(o)&&o(t,n)}return h(f,{_resize:s,_handleSubscribe:m})}(e,i,s);return Ey(p,My(e.canvasId),!0),xi(()=>{f()}),()=>{const{canvasId:t,disableScroll:s}=e;return jr("uni-canvas",Yr({ref:o,"canvas-id":t,"disable-scroll":s},l.value,c.value,d.value),[jr("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),jr("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),jr(xm,{ref:r,onResize:f},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});const Om=su("ucg"),Rm=od({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=Hn(null),o=Hn(e.checked),i=ds(()=>"true"===o.value||!0===o.value),r=Hn(e.value);const s=ds(()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(i.value));No([()=>e.checked,()=>e.value],([e,t])=>{o.value=e,r.value=t});const{uniCheckGroup:a,uniLabel:l}=function(e,t,n){const o=ds(()=>({checkboxChecked:Boolean(e.value),value:t.value})),i={reset:n},r=nr(Om,!1);r&&r.addField(o);const s=nr(ud,!1);s&&s.addField(i);const a=nr(hd,!1);return Ci(()=>{r&&r.removeField(o),s&&s.removeField(i)}),{uniCheckGroup:r,uniForm:s,uniLabel:a}}(o,r,()=>{o.value=!1}),c=t=>{e.disabled||(o.value=!o.value,a&&a.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(c),Ci(()=>{l.removeHandler(c)})),pd(e,{"label-click":c}),()=>{const i=cd(e,"disabled");let r;return r=o.value,jr("uni-checkbox",Yr(i,{id:e.id,onClick:c,ref:n}),[jr("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[jr("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:s.value},[r?pu(du,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function Lm(){}const Dm={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function Nm(e,t,n){function o(e){const t=ds(()=>0===String(navigator.vendor).indexOf("Apple"));e.addEventListener("focus",()=>{clearTimeout(undefined),document.addEventListener("click",Lm,!1)});e.addEventListener("blur",()=>{t.value&&e.blur(),document.removeEventListener("click",Lm,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)})}No(()=>t.value,e=>e&&o(e))}var $m=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,jm=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Hm=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Fm=Ym("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Vm=Ym("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"),Wm=Ym("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"),Um=Ym("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),qm=Ym("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Qm=Ym("script,style");function Ym(e){for(var t={},n=e.split(","),o=0;o<n.length;o++)t[n[o]]=!0;return t}const Gm={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},Xm={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},Km={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"]},Jm=od({name:"Image",props:Gm,setup(e,{emit:t}){const n=Hn(null),o=function(e,t){const n=Hn(""),o=ds(()=>{let e="auto",o="";const i=Km[t.mode];return i?(i[0]&&(o=i[0]),i[1]&&(e=i[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`}),i=Cn({rootEl:e,src:ds(()=>t.src?em(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return xi(()=>{const t=e.value;i.origWidth=t.clientWidth||0,i.origHeight=t.clientHeight||0}),i}(n,e),i=sd(n,t),{fixSize:r}=function(e,t,n){const o=()=>{const{mode:o}=t,i=Xm[o];if(!i)return;const{origWidth:r,origHeight:s}=n,a=r&&s?r/s:0;if(!a)return;const l=e.value,c=l[i[0]];c&&(l.style[i[1]]=function(e){Zm&&e>10&&(e=2*Math.round(e/2));return e}(i[2](c,a))+"px")},i=()=>{const{style:t}=e.value,{origStyle:{width:o,height:i}}=n;t.width=o,t.height=i};return No(()=>t.mode,(e,t)=>{Xm[t]&&i(),Xm[e]&&o()}),{fixSize:o,resetSize:i}}(n,e,o);return function(e,t,n,o,i){let r,s;const a=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void a();r=r||new Image,r.onload=e=>{const{width:u,height:d}=r;a(u,d,l),ao(()=>{o()}),r.draggable=t.draggable,s&&s.remove(),s=r,n.value.appendChild(r),c(),i("load",e,{width:u,height:d})},r.onerror=t=>{a(),c(),i("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},r.src=l},c=()=>{r&&(r.onload=null,r.onerror=null,r=null)};No(()=>e.src,e=>l(e)),No(()=>e.imgSrc,e=>{!e&&s&&(s.remove(),s=null)}),xi(()=>l(e.src)),Ci(()=>c())}(o,e,n,r,i),()=>jr("uni-image",{ref:n},[jr("div",{style:o.modeStyle},null,4),Xm[e.mode]?jr(xm,{onResize:r},null,8,["onResize"]):jr("span",null,null)],512)}});const Zm="Google Inc."===navigator.vendor;const eg=Ze(!0),tg=[];let ng=0,og=!1;const ig=e=>tg.forEach(t=>t.userAction=e);function rg(e={userAction:!1}){if(!og){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach(e=>{document.addEventListener(e,function(){!ng&&ig(!0),ng++,setTimeout(()=>{! --ng&&ig(!1)},0)},eg)}),og=!0}tg.push(e)}const sg=()=>!!ng;function ag(){const e=Cn({userAction:!1});return xi(()=>{rg(e)}),Ci(()=>{!function(e){const t=tg.indexOf(e);t>=0&&tg.splice(t,1)}(e)}),{state:e}}function lg(){const e=Cn({attrs:{}});return xi(()=>{let t=Zr();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}}),{state:e}}function cg(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function ug(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const dg=["none","text","decimal","numeric","tel","search","email","url"],hg=h({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},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"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~dg.indexOf(e)},cursorColor:{type:String,default:""}},Dm),pg=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function fg(e,t,n,o){let i=null;i=rt(n=>{t.value=ug(n,e.type)},100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),No(()=>e.modelValue,i),No(()=>e.value,i);const r=function(e,t){let n,o,i=0;const r=function(...r){const s=Date.now();clearTimeout(n),o=()=>{o=null,i=s,e.apply(this,r)},s-i<t?n=setTimeout(o,t-(s-i)):o()};return r.cancel=function(){clearTimeout(n),o=null},r.flush=function(){clearTimeout(n),o&&o()},r}((e,t)=>{i.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)},100);return wi(()=>{i.cancel(),r.cancel()}),{trigger:o,triggerInput:(e,t,n)=>{i.cancel(),r(e,t),n&&r.flush()}}}function mg(e,t){ag();const n=ds(()=>e.autoFocus||e.focus);function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}No(()=>e.focus,e=>{e?o():function(){const e=t.value;e&&e.blur()}()}),xi(()=>{n.value&&ao(o)})}function gg(e,t,n,o){Pc(bu(),"getSelectedTextRange",cg);const{fieldRef:i,state:r,trigger:s}=function(e,t,n){const o=Hn(null),i=sd(t,n),r=ds(()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t}),s=ds(()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t}),a=ds(()=>{const t=Number(e.cursor);return isNaN(t)?-1:t}),l=ds(()=>{var t=Number(e.maxlength);return isNaN(t)?140:t});let c="";c=ug(e.modelValue,e.type)||ug(e.value,e.type);const u=Cn({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:r,selectionEnd:s,cursor:a});return No(()=>u.focus,e=>n("update:focus",e)),No(()=>u.maxlength,e=>u.value=u.value.slice(0,e),{immediate:!1}),{fieldRef:o,state:u,trigger:i}}(e,t,n),{triggerInput:a}=fg(e,r,n,s);mg(e,i),Nm(0,i);const{state:l}=lg();!function(e,t){const n=nr(ud,!1);if(!n)return;const o=Zr(),i={submit(){const n=o.proxy;return[n[e],_(t)?n[t]:t.value]},reset(){_(t)?o.proxy[t]="":t.value=""}};n.addField(i),Ci(()=>{n.removeField(i)})}("name",r),function(e,t,n,o,i,r){function s(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function a(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}No([()=>t.selectionStart,()=>t.selectionEnd],s),No(()=>t.cursor,a),No(()=>e.value,function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),v(r)&&!1===r(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",e=>e.stopPropagation()),c.addEventListener("focus",function(e){t.focus=!0,o("focus",e,{value:t.value}),s(),a()}),c.addEventListener("blur",function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})}),c.addEventListener("input",u),c.addEventListener("compositionstart",e=>{e.stopPropagation(),t.composing=!0,d(e)}),c.addEventListener("compositionend",e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)}),c.addEventListener("compositionupdate",d)})}(i,r,e,s,a,o);return{fieldRef:i,state:r,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const yg=h({},hg,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),bg=je(()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}});function vg(e,t,n,o,i){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",i&&(i.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",i.fn)},o.addEventListener("blur",i.fn)),!1}else if("deleteContentBackward"===e.inputType&&bg()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}const _g=od({name:"Input",props:yg,emits:["confirm",...pg],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],r=ds(()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t}),s=ds(()=>{const t=i.indexOf(e.textContentType),n=i.indexOf(z(e.textContentType));return i[-1!==t?t:-1!==n?n:0]});let a=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=Hn(null!=t?t.toLocaleString():"");return No(()=>e.modelValue,e=>{n.value=null!=e?e.toLocaleString():""}),No(()=>e.value,e=>{n.value=null!=e?e.toLocaleString():""}),n}return Hn("")}(e,r),l={fn:null};const c=Hn(null),{fieldRef:u,state:d,scopedAttrsState:h,fixDisabledColor:p,trigger:f}=gg(e,c,t,(t,n)=>{const o=t.target;if("number"===r.value){if(l.fn&&(o.removeEventListener("blur",l.fn),l.fn=null),o.validity&&!o.validity.valid){if((!a.value||!o.value)&&"-"===t.data||"-"===a.value[0]&&"deleteContentBackward"===t.inputType)return a.value="-",n.value="",l.fn=()=>{a.value=o.value=""},o.addEventListener("blur",l.fn),!1;const e=vg(t,a,n,o,l);return"boolean"==typeof e?e:(a.value=n.value=o.value="-"===a.value?"":a.value,!1)}{const e=vg(t,a,n,o,l);if("boolean"==typeof e)return e;a.value=o.value}const i=n.maxlength;if(i>0&&o.value.length>i){o.value=o.value.slice(0,i),n.value=o.value;return(void 0!==e.modelValue&&null!==e.modelValue?e.modelValue.toString():"")!==o.value}}});No(()=>d.value,t=>{"number"!==e.type||"-"===a.value&&""===t||(a.value=t.toString())});const m=["number","digit"],g=ds(()=>m.includes(e.type)?e.step:"");function y(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),f("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),d.value=e.value}}),()=>{let t=e.disabled&&p?jr("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:d.maxlength,step:g.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):jr("input",{key:"input",ref:u,value:d.value,onInput:e=>{d.value=e.target.value.toString()},disabled:!!e.disabled,type:r.value,maxlength:d.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:s.value,onKeyup:y,inputmode:e.inputmode},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return jr("uni-input",{ref:c},[jr("div",{class:"uni-input-wrapper"},[Vo(jr("div",Yr(h.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Os,!(d.value.length||"-"===a.value||a.value.includes("."))]]),"search"===e.confirmType?jr("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const wg=["class","style"],xg=/^on[A-Z]+/,Sg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Zr(),i=Fn({}),r=Fn({}),s=Fn({}),a=n.concat(wg);return o.attrs=Cn(o.attrs),Lo(()=>{const e=(n=o.attrs,Object.keys(n).map(e=>[e,n[e]])).reduce((e,[n,o])=>(a.includes(n)?e.exclude[n]=o:xg.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e),{exclude:{},attrs:{},listeners:{}});var n;i.value=e.attrs,r.value=e.listeners,s.value=e.exclude}),{$attrs:i,$listeners:r,$excludeAttrs:s}};function kg(e){const t=[];return g(e)&&e.forEach(e=>{Or(e)?e.type===xr?t.push(...kg(e.children)):t.push(e):g(e)&&t.push(...kg(e))}),t}const Cg=od({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Hn(null),o=Hn(!1);let{setContexts:i,events:r}=function(e,t){const n=Hn(0),o=Hn(0),i=Cn({x:null,y:null}),r=Hn(null);let s=null,a=[];function l(t){t&&1!==t&&(e.scaleArea?a.forEach(function(e){e._setScale(t)}):s&&s._setScale(t))}function c(e,n=a){let o=t.value;function i(e){for(let t=0;t<n.length;t++){const o=n[t];if(e===o.rootRef.value)return o}return e===o||e===document.body||e===document?null:i(e.parentNode)}return i(e)}const u=rd(t=>{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(r.value=Ag(t),i.x=t.x,i.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);s=e&&e===t?e:null}}}),d=rd(e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==i.x&&r.value&&r.value>0){l(Ag(n)/r.value)}i.x=n.x,i.y=n.y}}),h=rd(t=>{let n=t.touches;n&&n.length||t.changedTouches&&(i.x=0,i.y=0,r.value=null,e.scaleArea?a.forEach(function(e){e._endScale()}):s&&s._endScale())});function p(){f(),a.forEach(function(e,t){e.setParent()})}function f(){let e=window.getComputedStyle(t.value),i=t.value.getBoundingClientRect();n.value=i.width-["Left","Right"].reduce(function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])},0),o.value=i.height-["Top","Bottom"].reduce(function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])},0)}return tr("movableAreaWidth",n),tr("movableAreaHeight",o),{setContexts(e){a=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:h,_resize:p}}}(e,n);const{$listeners:s,$attrs:a,$excludeAttrs:l}=Sg(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach(e=>{let t=c[e],n=r[`_${e}`];c[e]=t?[].concat(t,n):n}),xi(()=>{r._resize(),o.value=!0});let u=[];const d=[];function h(){const e=[];for(let t=0;t<u.length;t++){let n=u[t];n=n.el;const o=d.find(e=>n===e.rootRef.value);o&&e.push(On(o))}i(e)}return tr("_isMounted",o),tr("movableAreaRootRef",n),tr("addMovableViewContext",e=>{d.push(e),h()}),tr("removeMovableViewContext",e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())}),()=>{const e=t.default&&t.default();return u=kg(e),jr("uni-movable-area",Yr({ref:n},a.value,l.value,c),[jr(xm,{onResize:r._resize},null,8,["onResize"]),u],16)}}});function Ag(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Tg=function(e,t,n,o){e.addEventListener(t,e=>{v(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())},{passive:!1})};let Ig,Bg;function Eg(e,t,n){Ci(()=>{document.removeEventListener("mousemove",Ig),document.removeEventListener("mouseup",Bg)});let o=0,i=0,r=0,s=0;const a=function(e,n,a,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:a,y:l,dx:a-o,dy:l-i,ddx:a-r,ddy:l-s,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;Tg(e,"touchstart",function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=r=e.touches[0].pageX,i=s=e.touches[0].pageY,a(e,"start",o,i)}),Tg(e,"mousedown",function(e){if(c=!0,!l&&!u)return u=e,o=r=e.pageX,i=s=e.pageY,a(e,"start",o,i)}),Tg(e,"touchmove",function(e){if(1===e.touches.length&&u){const t=a(e,"move",e.touches[0].pageX,e.touches[0].pageY);return r=e.touches[0].pageX,s=e.touches[0].pageY,t}});const d=Ig=function(e){if(!l&&c&&u){const t=a(e,"move",e.pageX,e.pageY);return r=e.pageX,s=e.pageY,t}};document.addEventListener("mousemove",d),Tg(e,"touchend",function(e){if(0===e.touches.length&&u)return l=!1,u=null,a(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)});const h=Bg=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),Tg(e,"touchcancel",function(e){if(u){l=!1;const t=u;return u=null,a(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}})}function Pg(e,t,n){return e>t-n&&e<t+n}function Mg(e,t){return Pg(e,0,t)}function zg(){}function Og(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function Rg(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function Lg(e,t,n){this._springX=new Rg(e,t,n),this._springY=new Rg(e,t,n),this._springScale=new Rg(e,t,n),this._startTime=0}zg.prototype.x=function(e){return Math.sqrt(e)},Og.prototype.setV=function(e,t){const n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Og.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Og.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Og.prototype.ds=function(e){return void 0===e&&(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}},Og.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}},Og.prototype.dt=function(){return-this._x_v/this._x_a},Og.prototype.done=function(){const e=Pg(this.s().x,this._endPositionX)||Pg(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Og.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Og.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Rg.prototype._solve=function(e,t){const n=this._c,o=this._m,i=this._k,r=n*n-4*o*i;if(0===r){const i=-n/(2*o),r=e,s=t/(i*e);return{x:function(e){return(r+s*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(r+s*e)*t+s*t}}}if(r>0){const i=(-n-Math.sqrt(r))/(2*o),s=(-n+Math.sqrt(r))/(2*o),a=(t-i*e)/(s-i),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*i*t+a*s*n}}}const s=Math.sqrt(4*o*i-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}},Rg.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Rg.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Rg.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Mg(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Mg(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Mg(t,.1)&&(t=0),Mg(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Mg(o-e,.1)&&Mg(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Rg.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Rg.prototype.done=function(e){return e||(e=(new Date).getTime()),Pg(this.x(),this._endPosition,.1)&&Mg(this.dx(),.1)},Rg.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Rg.prototype.springConstant=function(){return this._k},Rg.prototype.damping=function(){return this._c},Rg.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Lg.prototype.setEnd=function(e,t,n,o){const i=(new Date).getTime();this._springX.setEnd(e,o,i),this._springY.setEnd(t,o,i),this._springScale.setEnd(n,o,i),this._startTime=i},Lg.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Lg.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Lg.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Dg(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Ng=od({name:"MovableView",props:{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:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=Hn(null),i=sd(o,n),{setParent:r}=function(e,t,n){const o=nr("_isMounted",Hn(!1)),i=nr("addMovableViewContext",()=>{}),r=nr("removeMovableViewContext",()=>{});let s,a,l=Hn(1),c=Hn(1),u=Hn(!1),d=Hn(0),h=Hn(0),p=null,f=null,m=!1,g=null,y=null;const b=new zg,v=new zg,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=ds(()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t}),x=new Og(1,w.value);No(()=>e.disabled,()=>{U()});const{_updateOldScale:S,_endScale:k,_setScale:C,scaleValueSync:A,_updateBoundary:T,_updateOffset:I,_updateWH:B,_scaleOffset:E,minX:P,minY:M,maxX:z,maxY:O,FAandSFACancel:R,_getLimitXY:L,_setTransform:D,_revise:N,dampingNumber:$,xMove:j,yMove:H,xSync:F,ySync:V,_STD:W}=function(e,t,n,o,i,r,s,a,l,c){const u=ds(()=>{let t=Number(e.scaleMin);return isNaN(t)?.1:t}),d=ds(()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t}),h=Hn(Number(e.scaleValue)||1);No(h,e=>{D(e)}),No(u,()=>{L()}),No(d,()=>{L()}),No(()=>e.scaleValue,e=>{h.value=Number(e)||0});const{_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:b,maxX:v,maxY:_}=function(e,t,n){const o=nr("movableAreaWidth",Hn(0)),i=nr("movableAreaHeight",Hn(0)),r=nr("movableAreaRootRef"),s={x:0,y:0},a={x:0,y:0},l=Hn(0),c=Hn(0),u=Hn(0),d=Hn(0),h=Hn(0),p=Hn(0);function f(){let e=0-s.x+a.x,t=o.value-l.value-s.x-a.x;u.value=Math.min(e,t),h.value=Math.max(e,t);let n=0-s.y+a.y,r=i.value-c.value-s.y-a.y;d.value=Math.min(n,r),p.value=Math.max(n,r)}function m(){s.x=Hg(e.value,r.value),s.y=Fg(e.value,r.value)}function g(o){o=o||t.value,o=n(o);let i=e.value.getBoundingClientRect();c.value=i.height/t.value,l.value=i.width/t.value;let r=c.value*o,s=l.value*o;a.x=(s-l.value)/2,a.y=(r-c.value)/2}return{_updateBoundary:f,_updateOffset:m,_updateWH:g,_scaleOffset:a,minX:u,minY:d,maxX:h,maxY:p}}(t,o,R),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:k,_revise:C,dampingNumber:A,xMove:T,yMove:I,xSync:B,ySync:E,_STD:P}=function(e,t,n,o,i,r,s,a,l,c,u,d,h,p){const f=ds(()=>{let e=Number(t.damping);return isNaN(e)?20:e}),m=ds(()=>"all"===t.direction||"horizontal"===t.direction),g=ds(()=>"all"===t.direction||"vertical"===t.direction),y=Hn(Wg(t.x)),b=Hn(Wg(t.y));No(()=>t.x,e=>{y.value=Wg(e)}),No(()=>t.y,e=>{b.value=Wg(e)}),No(y,e=>{C(e)}),No(b,e=>{A(e)});const v=new Lg(1,9*Math.pow(f.value,2)/40,f.value);function _(e,t){let n=!1;return e>i.value?(e=i.value,n=!0):e<s.value&&(e=s.value,n=!0),t>r.value?(t=r.value,n=!0):t<a.value&&(t=a.value,n=!0),{x:e,y:t,outOfBounds:n}}function w(){d&&d.cancel(),u&&u.cancel()}function x(e,n,i,r,s,a){w(),m.value||(e=l.value),g.value||(n=c.value),t.scale||(i=o.value);let d=_(e,n);e=d.x,n=d.y,t.animation?(v._springX._solution=null,v._springY._solution=null,v._springScale._solution=null,v._springX._endPosition=l.value,v._springY._endPosition=c.value,v._springScale._endPosition=o.value,v.setEnd(e,n,i,1),u=Vg(v,function(){let e=v.x();S(e.x,e.y,e.scale,r,s,a)},function(){u.cancel()})):S(e,n,i,r,s,a)}function S(i,r,s,a="",u,d){null!==i&&"NaN"!==i.toString()&&"number"==typeof i||(i=l.value||0),null!==r&&"NaN"!==r.toString()&&"number"==typeof r||(r=c.value||0),i=Number(i.toFixed(1)),r=Number(r.toFixed(1)),s=Number(s.toFixed(1)),l.value===i&&c.value===r||u||p("change",{},{x:Dg(i,n.x),y:Dg(r,n.y),source:a}),t.scale||(s=o.value),s=+(s=h(s)).toFixed(3),d&&s!==o.value&&p("scale",{},{x:i,y:r,scale:s});let f="translateX("+i+"px) translateY("+r+"px) translateZ(0px) scale("+s+")";e.value&&(e.value.style.transform=f,e.value.style.webkitTransform=f,l.value=i,c.value=r,o.value=s)}function k(e){let t=_(l.value,c.value),n=t.x,i=t.y,r=t.outOfBounds;return r&&x(n,i,o.value,e),r}function C(e){if(m.value){if(e+n.x===l.value)return l;u&&u.cancel(),x(e+n.x,b.value+n.y,o.value)}return e}function A(e){if(g.value){if(e+n.y===c.value)return c;u&&u.cancel(),x(y.value+n.x,e+n.y,o.value)}return e}return{FAandSFACancel:w,_getLimitXY:_,_animationTo:x,_setTransform:S,_revise:k,dampingNumber:f,xMove:m,yMove:g,xSync:y,ySync:b,_STD:v}}(t,e,g,o,v,_,y,b,s,a,l,c,R,n);function M(t,n){if(e.scale){t=R(t),m(t),p();const e=x(s.value,a.value),o=e.x,i=e.y;n?S(o,i,t,"",!0,!0):jg(function(){k(o,i,t,"",!0,!0)})}}function z(){r.value=!0}function O(e){i.value=e}function R(e){return e=Math.max(.1,u.value,e),e=Math.min(10,d.value,e)}function L(){if(!e.scale)return!1;M(o.value,!0),O(o.value)}function D(t){return!!e.scale&&(M(t=R(t),!0),O(t),t)}function N(){r.value=!1,O(o.value)}function $(e){e&&(e=i.value*e,z(),M(e))}return{_updateOldScale:O,_endScale:N,_setScale:$,scaleValueSync:h,_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:b,maxX:v,maxY:_,FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:k,_revise:C,dampingNumber:A,xMove:T,yMove:I,xSync:B,ySync:E,_STD:P}}(e,n,t,l,c,u,d,h,p,f);function U(){u.value||e.disabled||(R(),_.historyX=[0,0],_.historyY=[0,0],_.historyT=[0,0],j.value&&(s=d.value),H.value&&(a=h.value),n.value.style.willChange="transform",g=null,y=null,m=!0)}function q(t){if(!u.value&&!e.disabled&&m){let n=d.value,o=h.value;if(null===y&&(y=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),j.value&&(n=t.detail.dx+s,_.historyX.shift(),_.historyX.push(n),H.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),H.value&&(o=t.detail.dy+a,_.historyY.shift(),_.historyY.push(o),j.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let i="touch";n<P.value?e.outOfBounds?(i="touch-out-of-bounds",n=P.value-b.x(P.value-n)):n=P.value:n>z.value&&(e.outOfBounds?(i="touch-out-of-bounds",n=z.value+b.x(n-z.value)):n=z.value),o<M.value?e.outOfBounds?(i="touch-out-of-bounds",o=M.value-v.x(M.value-o)):o=M.value:o>O.value&&(e.outOfBounds?(i="touch-out-of-bounds",o=O.value+v.x(o-O.value)):o=O.value),jg(function(){D(n,o,l.value,i)})}}}function Q(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!N("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,o=h.value;x.setV(e,t),x.setS(n,o);const i=x.delta().x,r=x.delta().y;let s=i+n,a=r+o;s<P.value?(s=P.value,a=o+(P.value-n)*r/i):s>z.value&&(s=z.value,a=o+(z.value-n)*r/i),a<M.value?(a=M.value,s=n+(M.value-o)*i/r):a>O.value&&(a=O.value,s=n+(O.value-o)*i/r),x.setEnd(s,a),f=Vg(x,function(){let e=x.s(),t=e.x,n=e.y;D(t,n,l.value,"friction")},function(){f.cancel()})}e.outOfBounds||e.inertia||R()}function Y(){if(!o.value)return;R();let t=e.scale?A.value:1;I(),B(t),T();let n=L(F.value+E.x,V.value+E.y),i=n.x,r=n.y;D(i,r,t,"",!0),S(t)}return xi(()=>{Eg(n.value,e=>{switch(e.detail.state){case"start":U();break;case"move":q(e);break;case"end":Q()}}),Y(),x.reconfigure(1,w.value),W.reconfigure(1,9*Math.pow($.value,2)/40,$.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:Y,_endScale:k,_setScale:C};i(e),Ai(()=>{r(e)})}),Ai(()=>{R()}),{setParent:Y}}(e,i,o);return()=>jr("uni-movable-view",{ref:o},[jr(xm,{onResize:r},null,8,["onResize"]),t.default&&t.default()],512)}});let $g=!1;function jg(e){$g||($g=!0,requestAnimationFrame(function(){e(),$g=!1}))}function Hg(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Hg(e.offsetParent,t):0}function Fg(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Fg(e.offsetParent,t):0}function Vg(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);let r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function Wg(e){return/\d+[ur]px$/i.test(e)?fh(parseFloat(e)):Number(e)||0}const Ug=["navigate","redirect","switchTab","reLaunch","navigateBack"],qg=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],Qg=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],Yg={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~Ug.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},animationType:{type:String,default:"",validator:e=>!e||qg.concat(Qg).includes(e)},animationDuration:{type:[String,Number],default:300}};const Gg=od({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:h({},Yg,{renderLink:{type:Boolean,default:!0}}),setup(e,{slots:t}){const n=Hn(null),o=Zr(),i=o&&o.vnode.scopeId||"",{hovering:r,binding:s}=ld(e),a=function(e){return()=>{if("navigateBack"!==e.openType&&!e.url)return void console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":jv({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":pf({url:e.url,exists:e.exists});break;case"switchTab":df({url:e.url});break;case"reLaunch":mf({url:e.url});break;case"navigateBack":$v({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}}(e);return()=>{const{hoverClass:l,url:c}=e,u=e.hoverClass&&"none"!==e.hoverClass,d=e.renderLink?jr("a",{class:"navigator-wrap",href:c,onClick:eu,onMousedown:eu},[t.default&&t.default()],40,["href","onClick","onMousedown"]):t.default&&t.default();return jr("uni-navigator",Yr({class:u&&r.value?l:"",ref:n},u&&s,o?o.attrs:{},{[i]:""},{onClick:a}),[d],16,["onClick"])}}});const Xg=od({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return g(e)&&e.filter(e=>"number"==typeof e).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=Hn(null),i=Hn(null),r=sd(o,n),s=function(e){const t=Cn([...e.value]),n=Cn({value:t,height:34});return No(()=>e.value,(e,t)=>{n.value.length=e.length,e.forEach((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)})}),n}(e),a=Hn(null);xi(()=>{const e=a.value;e&&(s.height=e.$el.offsetHeight)});let l=Hn([]),c=Hn([]);function u(e){let t=c.value;t=t.filter(e=>e.type!==kr);let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return tr("getPickerViewColumn",function(e){return ds({get(){const t=u(e.vnode);return s.value[t]||0},set(t){const o=u(e.vnode);if(o<0)return;if(s.value[o]!==t){s.value[o]=t;const e=s.value.map(e=>e);n("update:value",e),r("change",{},{value:e})}}})}),tr("pickerViewProps",e),tr("pickerViewState",s),()=>{const e=t.default&&t.default();{const t=kg(e);l.value=t,ao(()=>{c.value=t})}return jr("uni-picker-view",{ref:o},[jr(xm,{ref:a,onResize:({height:e})=>s.height=e},null,8,["onResize"]),jr("div",{ref:i,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class Kg{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function Jg(e,t,n){return e>t-n&&e<t+n}function Zg(e,t){return Jg(e,0,t)}class ey{constructor(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}_solve(e,t){const n=this._c,o=this._m,i=this._k,r=n*n-4*o*i;if(0===r){const i=-n/(2*o),r=e,s=t/(i*e);return{x:function(e){return(r+s*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(r+s*e)*t+s*t}}}if(r>0){const i=(-n-Math.sqrt(r))/(2*o),s=(-n+Math.sqrt(r))/(2*o),a=(t-i*e)/(s-i),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*i*t+a*s*n}}}const s=Math.sqrt(4*o*i-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Zg(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(Zg(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Zg(t,.4)&&(t=0),Zg(o,.4)&&(o=0),o+=this._endPosition),this._solution&&Zg(o-e,.4)&&Zg(t,.4)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),Jg(this.x(),this._endPosition,.4)&&Zg(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,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(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class ty{constructor(e,t,n){this._extent=e,this._friction=t||new Kg(.01),this._spring=n||new ey(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class ny{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new ty(this._extent,t.friction,t.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(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}let o;if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){const e=this._scroll._friction.x(100),t=e%this._itemSize;o=Math.abs(t)>this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}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=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);const r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)},()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),v(this._options.onSnap)&&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(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),v(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(v(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={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(e)}}update(e,t,n){let o=0;const i=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),v(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=o,this._scroll._extent=o}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}const oy=od({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=Hn(null),i=Hn(null),r=nr("getPickerViewColumn"),s=Zr(),a=r?r(s):Hn(0),l=nr("pickerViewProps"),c=nr("pickerViewState"),u=Hn(34),d=Hn(null);xi(()=>{const e=d.value;u.value=e.$el.offsetHeight});const h=ds(()=>(c.height-u.value)/2),{state:p}=lg();let f;const m=Cn({current:a.value,length:0});let g;function y(){f&&!g&&(g=!0,ao(()=>{g=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),f.update(e*u.value,void 0,u.value)}))}No(()=>a.value,e=>{e!==m.current&&(m.current=e,y())}),No(()=>m.current,e=>a.value=e),No([()=>u.value,()=>m.length,()=>c.height],y);let b=0;function v(e){const t=b+e.deltaY;if(Math.abs(t)>10){b=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),f.scrollTo(e*u.value)}else b=t;e.preventDefault()}function _({clientY:e}){const t=o.value;if(!f.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,o=u.value/2;if(!(Math.abs(n)<=o)){const e=Math.ceil((Math.abs(n)-o)/u.value),t=n<0?-e:e;let i=Math.min(m.current+t,m.length-1);m.current=i=Math.max(i,0),f.scrollTo(i*u.value)}}}const w=()=>{const e=o.value,t=i.value,{scroller:n,handleTouchStart:r,handleTouchMove:s,handleTouchEnd:a}=function(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new ny(e,t);function i(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const r=i(e);if(r){for(n.maxDy=Math.max(n.maxDy,Math.abs(r.y)),n.maxDx=Math.max(n.maxDx,Math.abs(r.x)),n.historyX.push(r.x),n.historyY.push(r.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(r.x,r.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=i(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,i=n.historyTime[t],r=n.historyX[t],s=n.historyY[t];t>0;){t--;const e=i-n.historyTime[t];if(e>30&&e<50){o.x=(r-n.historyX[t])/(e/1e3),o.y=(s-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new Kg(1e-4),spring:new ey(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});f=n,Eg(e,e=>{switch(e.detail.state){case"start":r(e);break;case"move":s(e),e.stopPropagation();break;case"end":case"cancel":a(e)}},!0),function(e){let t=0,n=0;e.addEventListener("touchstart",e=>{const o=e.changedTouches[0];t=o.clientX,n=o.clientY}),e.addEventListener("touchend",e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-t)<20&&Math.abs(o.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach(e=>{n[e]=o[e]}),e.target.dispatchEvent(n)}})}(e),y()};return xi(w),()=>{const e=t.default&&t.default();m.length=kg(e).length;const n=`${h.value}px 0`;return jr("uni-picker-view-column",{ref:o},[jr("div",{onWheel:v,onClick:_,class:"uni-picker-view-group"},[jr("div",Yr(p.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${h.value}px;${l.maskStyle}`}),null,16),jr("div",Yr(p.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[jr(xm,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),jr("div",{ref:i,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${u.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),iy={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:""},ry={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"￥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const sy=(e,t,n)=>!n||g(n)&&!n.length?[]:n.map(n=>{var o;if(A(n)){if(!m(n,"type")||"node"===n.type){let i={[e]:""};const r=null==(o=n.name)?void 0:o.toLowerCase();if(!m(iy,r))return;return function(e,t){if(A(t))for(const n in t)if(m(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=em(o))}}(r,n.attrs),i=h(i,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClick:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),hs(n.name,i,sy(e,t,n.children))}return"text"===n.type&&_(n.text)&&""!==n.text?Vr((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(e,t){return m(ry,t)&&ry[t]?ry[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e})):void 0}});function ay(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}(e);const t=[],n={node:"root",children:[]};return function(e,t){var n,o,i,r=[],s=e;for(r.last=function(){return this[this.length-1]};e;){if(o=!0,r.last()&&Qm[r.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+r.last()+"[^>]*>"),function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""}),c("",r.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1):0==e.indexOf("</")?(i=e.match(jm))&&(e=e.substring(i[0].length),i[0].replace(jm,c),o=!1):0==e.indexOf("<")&&(i=e.match($m))&&(e=e.substring(i[0].length),i[0].replace($m,l),o=!1),o){var a=(n=e.indexOf("<"))<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(a)}if(e==s)throw"Parse Error: "+e;s=e}function l(e,n,o,i){if(n=n.toLowerCase(),Vm[n])for(;r.last()&&Wm[r.last()];)c("",r.last());if(Um[n]&&r.last()==n&&c("",n),(i=Fm[n]||!!i)||r.push(n),t.start){var s=[];o.replace(Hm,function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:qm[t]?t:"";s.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(n,s,i)}}function c(e,n){if(n)for(o=r.length-1;o>=0&&r[o]!=n;o--);else var o=0;if(o>=0){for(var i=r.length-1;i>=o;i--)t.end&&t.end(r[i]);r.length=o}}c()}(e,{start:function(e,o,i){const r={name:e};if(0!==o.length&&(r.attrs=function(e){return e.reduce(function(e,t){let n=t.value;const o=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(o)&&(n=n.split(" ")),e[o]?Array.isArray(e[o])?e[o].push(n):e[o]=[e[o],n]:e[o]=n,e},{})}(o)),i){const e=t[0]||n;e.children||(e.children=[]),e.children.push(r)}else t.unshift(r)},end:function(e){const o=t.shift();if(o.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},chars:function(e){const o={type:"text",text:e};if(0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},comment:function(e){const n={node:"comment",text:e},o=t[0];o&&(o.children||(o.children=[]),o.children.push(n))}}),n.children}const ly=od({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["itemclick"],setup(e,{emit:t}){const n=Zr(),o=n&&n.vnode.scopeId||"",i=Hn(null),r=Hn([]),s=sd(i,t);function a(e,t={}){s("itemclick",e,t)}return No(()=>e.nodes,function(){let t=e.nodes;_(t)&&(t=ay(e.nodes)),r.value=sy(o,a,t)},{immediate:!0,deep:!0}),()=>hs("uni-rich-text",{ref:i},hs("div",{},r.value))}}),cy=od({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=Hn(null),o=ds(()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t}),i=ds(()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)});return()=>{const{refreshState:r,refresherDefaultStyle:s,refresherThreshold:a}=e;return jr("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==s?jr("div",{class:"uni-scroll-view-refresh"},[jr("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==r?jr("svg",{key:"refresh__icon",style:{transform:"rotate("+i.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[jr("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),jr("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==r?jr("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[jr("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===s?jr("div",{class:"uni-scroll-view-refresher-container",style:{height:`${a}px`}},[t.default&&t.default()]):null],4)}}}),uy=Ze(!0),dy=od({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},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:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const i=Hn(null),r=Hn(null),s=Hn(null),a=Hn(null),l=sd(i,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=ds(()=>Number(e.scrollTop)||0),n=ds(()=>Number(e.scrollLeft)||0),o=Cn({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""});return{state:o,scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:h,realScrollY:p,_scrollLeftChanged:f,_scrollTopChanged:m}=function(e,t,n,o,i,r,s,a,l){let c=!1,u=0,d=!1,h=()=>{};const p=ds(()=>e.scrollX),f=ds(()=>e.scrollY),m=ds(()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t}),g=ds(()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t});function y(e,t){const n=s.value;let o=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let r=a.value;r.style.transition="transform .3s ease-out",r.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+o+"px) translateZ(0)":"y"===t&&(i="translateY("+o+"px) translateZ(0)"),r.removeEventListener("transitionend",h),r.removeEventListener("webkitTransitionEnd",h),h=()=>x(e,t),r.addEventListener("transitionend",h),r.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),r.style.transform=i,r.style.webkitTransform=i}function b(e){const n=e.target;i("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),f.value&&(n.scrollTop<=m.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+g.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=m.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+g.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function v(t){f.value&&(e.scrollWithAnimation?y(t,"y"):s.value.scrollTop=t)}function _(t){p.value&&(e.scrollWithAnimation?y(t,"x"):s.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=r.value.querySelector("#"+t);if(n){let t=s.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(p.value){let n=o.left-t.left,i=s.value.scrollLeft+n;e.scrollWithAnimation?y(i,"x"):s.value.scrollLeft=i}if(f.value){let n=o.top-t.top,i=s.value.scrollTop+n;e.scrollWithAnimation?y(i,"y"):s.value.scrollTop=i}}}}function x(e,t){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let n=s.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=f.value?"auto":"hidden",n.scrollTop=e),a.value.removeEventListener("transitionend",h),a.value.removeEventListener("webkitTransitionEnd",h)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,i("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),i("refresherrefresh",{},{dy:C.y-k.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,i("refresherrestore",{},{dy:C.y-k.y})),"refresherabort"===n&&d&&(d=!1,i("refresherabort",{},{dy:C.y-k.y}))}t.refreshState=n}}let k={x:0,y:0},C={x:0,y:e.refresherThreshold};return xi(()=>{ao(()=>{v(n.value),_(o.value)}),w(e.scrollIntoView);let r=function(e){e.preventDefault(),e.stopPropagation(),b(e)},a=null,l=function(n){if(null===k)return;let o=n.touches[0].pageX,r=n.touches[0].pageY,l=s.value;if(Math.abs(o-k.x)>Math.abs(r-k.y))if(p.value){if(0===l.scrollLeft&&o>k.x)return void(a=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&o<k.x)return void(a=!1);a=!0}else a=!1;else if(f.value)if(0===l.scrollTop&&r>k.y)a=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&r<k.y)return void(a=!1);a=!0}else a=!1;if(a&&n.stopPropagation(),0===l.scrollTop&&1===n.touches.length&&S("pulling"),e.refresherEnabled&&"pulling"===t.refreshState){const o=r-k.y;0===u&&(u=r),c?(t.refresherHeight=o+e.refresherThreshold,d=!1):(t.refresherHeight=r-u,t.refresherHeight>0&&(d=!0,i("refresherpulling",n,{deltaY:o,dy:o})))}},h=function(e){1===e.touches.length&&(k={x:e.touches[0].pageX,y:e.touches[0].pageY})},m=function(n){C={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),k={x:0,y:0},C={x:0,y:e.refresherThreshold}};s.value.addEventListener("touchstart",h,uy),s.value.addEventListener("touchmove",l,Ze(!1)),s.value.addEventListener("scroll",r,Ze(!1)),s.value.addEventListener("touchend",m,uy),Ci(()=>{s.value.removeEventListener("touchstart",h),s.value.removeEventListener("touchmove",l),s.value.removeEventListener("scroll",r),s.value.removeEventListener("touchend",m)})}),di(()=>{f.value&&(s.value.scrollTop=t.lastScrollTop),p.value&&(s.value.scrollLeft=t.lastScrollLeft)}),No(n,e=>{v(e)}),No(o,e=>{_(e)}),No(()=>e.scrollIntoView,e=>{w(e)}),No(()=>e.refresherTriggered,e=>{!0===e?S("refreshing"):!1===e&&S("restore")}),{realScrollX:p,realScrollY:f,_scrollTopChanged:v,_scrollLeftChanged:_}}(e,c,u,d,l,i,r,a,t),g=ds(()=>{let e="";return h.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e}),y=ds(()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t});return o({$getMain:()=>r.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:h}=c;return jr("uni-scroll-view",{ref:i},[jr("div",{ref:s,class:"uni-scroll-view"},[jr("div",{ref:r,style:g.value,class:y.value},[t?jr(cy,{refreshState:h,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,jr("div",{ref:a,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});const hy=od({name:"Slider",props:{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}},emits:["changing","change"],setup(e,{emit:t}){const n=Hn(null),o=Hn(null),i=Hn(null),r=Hn(Number(e.value));No(()=>e.value,e=>{r.value=Number(e)});const s=sd(n,t),a=function(e,t){const n=()=>py(t.value,e.min,e.max),o=()=>"#e9e9e9"!==e.backgroundColor?e.backgroundColor:"#007aff"!==e.color?e.color:"#007aff",i=()=>"#007aff"!==e.activeColor?e.activeColor:"#e9e9e9"!==e.selectedColor?e.selectedColor:"#e9e9e9",r={setBgColor:ds(()=>({backgroundColor:o()})),setBlockBg:ds(()=>({left:n()})),setActiveColor:ds(()=>({backgroundColor:i(),width:n()})),setBlockStyle:ds(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor}))};return r}(e,r),{_onClick:l,_onTrack:c}=function(e,t,n,o,i){const r=n=>{e.disabled||(a(n),i("change",n,{value:t.value}))},s=t=>{const n=Number(e.max),o=Number(e.min),i=Number(e.step);return t<o?o:t>n?n:fy.mul.call(Math.round((t-o)/i),i)+o},a=i=>{const r=Number(e.max),a=Number(e.min),l=o.value,c=getComputedStyle(l,null).marginLeft;let u=l.offsetWidth;u+=parseInt(c);const d=n.value,h=d.offsetWidth-(e.showValue?u:0),p=d.getBoundingClientRect().left,f=(i.x-p)*(r-a)/h+a;t.value=s(f)},l=n=>{if(!e.disabled)return"move"===n.detail.state?(a({x:n.detail.x}),i("changing",n,{value:t.value}),!1):"end"===n.detail.state&&i("change",n,{value:t.value})},c=nr(ud,!1);if(c){const n={reset:()=>t.value=Number(e.min),submit:()=>{const n=["",null];return""!==e.name&&(n[0]=e.name,n[1]=t.value),n}};c.addField(n),Ci(()=>{c.removeField(n)})}return{_onClick:r,_onTrack:l}}(e,r,n,o,s);return xi(()=>{Eg(i.value,c)}),()=>{const{setBgColor:t,setBlockBg:s,setActiveColor:c,setBlockStyle:u}=a;return jr("uni-slider",{ref:n,onClick:rd(l)},[jr("div",{class:"uni-slider-wrapper"},[jr("div",{class:"uni-slider-tap-area"},[jr("div",{style:t.value,class:"uni-slider-handle-wrapper"},[jr("div",{ref:i,style:s.value,class:"uni-slider-handle"},null,4),jr("div",{style:u.value,class:"uni-slider-thumb"},null,4),jr("div",{style:c.value,class:"uni-slider-track"},null,4)],4)]),Vo(jr("span",{ref:o,class:"uni-slider-value"},[r.value],512),[[Os,e.showValue]])])],8,["onClick"])}}}),py=(e,t,n)=>(n=Number(n),100*(e-(t=Number(t)))/(n-t)+"%");var fy={mul:function(e){let t=0,n=this.toString(),o=e.toString();try{t+=n.split(".")[1].length}catch(i){}try{t+=o.split(".")[1].length}catch(i){}return Number(n.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,t)}};function my(e,t,n,o,i,r){function s(){c&&(clearTimeout(c),c=null)}let a,l,c=null,u=!0,d=0,h=1,p=null,f=!1,m=0,g="";const y=ds(()=>n.value.length>t.displayMultipleItems),b=ds(()=>e.circular&&y.value);function v(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||b.value&&function(o){if(!u)for(let i=n.value,r=i.length,s=o+t.displayMultipleItems,a=0;a<r;a++){const t=i[a],n=Math.floor(o/r)*r+a,l=n+r,c=n-r,u=Math.max(o-(n+1),n-s,0),d=Math.max(o-(l+1),l-s,0),h=Math.max(o-(c+1),c-s,0),p=Math.min(u,d,h),f=[n,l,c][[u,d,h].indexOf(p)];t.updatePosition(f,e.vertical)}}(i);const s="translate("+(e.vertical?"0":100*-i*h+"%")+", "+(e.vertical?100*-i*h+"%":"0")+") translateZ(0)",l=o.value;if(l&&(l.style.webkitTransform=s,l.style.transform=s),d=i,!a){if(i%1==0)return;a=i}i-=Math.floor(a);const c=n.value;i<=-(c.length-1)?i+=c.length:i>=c.length&&(i-=c.length),i=a%1>.5||a<0?i-1:i,r("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const i=(Math.round(e)%o+o)%o;if(b.value){if(o<=t.displayMultipleItems)return 0}else if(i>o-t.displayMultipleItems)return o-t.displayMultipleItems;return i}function w(){p=null}function x(){if(!p)return void(f=!1);const e=p,o=e.toPos,i=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){v(o),p=null,f=!1,a=null;const e=n.value[t.current];if(e){const n=e.getItemId();r("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}v(o+i*u*u/2),l=requestAnimationFrame(x)}function S(e,o,i){w();const r=t.duration,s=n.value.length;let a=d;if(b.value)if(i<0){for(;a<e;)a+=s;for(;a-s>e;)a-=s}else if(i>0){for(;a>e;)a-=s;for(;a+s<e;)a+=s;a+s-e<e-a&&(a+=s)}else{for(;a+s<e;)a+=s;for(;a-s>e;)a-=s;a+s-e<e-a&&(a+=s)}else"click"===o&&(e=e+t.displayMultipleItems-1<s?e:0);p={toPos:e,acc:2*(a-e)/(r*r),endTime:Date.now()+r,source:o},f||(f=!0,l=requestAnimationFrame(x))}function k(){s();const e=n.value,o=function(){c=null,g="autoplay",b.value?t.current=_(t.current+1):t.current=t.current+t.displayMultipleItems<e.length?t.current+1:0,S(t.current,"autoplay",b.value?1:0),c=setTimeout(o,t.interval)};u||e.length<=t.displayMultipleItems||(c=setTimeout(o,t.interval))}function C(e){e?k():s()}return No([()=>e.current,()=>e.currentItemId,()=>[...n.value]],()=>{let o=-1;if(e.currentItemId)for(let t=0,i=n.value;t<i.length;t++){if(i[t].getItemId()===e.currentItemId){o=t;break}}o<0&&(o=Math.round(e.current)||0),o=o<0?0:o,t.current!==o&&(g="",t.current=o)}),No([()=>e.vertical,()=>b.value,()=>t.displayMultipleItems,()=>[...n.value]],function(){s(),p&&(v(p.toPos),p=null);const i=n.value;for(let t=0;t<i.length;t++)i[t].updatePosition(t,e.vertical);h=1;const r=o.value;if(1===t.displayMultipleItems&&i.length){const e=i[0].getBoundingClientRect(),t=r.getBoundingClientRect();h=e.width/t.width,h>0&&h<1||(h=1)}const a=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(v(a+l-m),m=l):(v(l),e.autoplay&&k())):(u=!0,v(-t.displayMultipleItems-1))}),No(()=>t.interval,()=>{c&&(s(),k())}),No(()=>t.current,(e,o)=>{!function(e,o){const i=g;g="";const s=n.value;if(!i){const t=s.length;S(e,"",b.value&&o+(t-e)%t>t/2?1:0)}const a=s[e];if(a){const e=t.currentItemId=a.getItemId();r("change",{},{current:t.current,currentItemId:e,source:i})}}(e,o),i("update:current",e)}),No(()=>t.currentItemId,e=>{i("update:currentItemId",e)}),No(()=>e.autoplay&&!t.userTracking,C),C(e.autoplay&&!t.userTracking),xi(()=>{let i=!1,r=0,a=0;function l(e){t.userTracking=!1;const n=r/Math.abs(r);let o=0;!e&&Math.abs(r)>.2&&(o=.5*n);const i=_(d+o);e?v(m):(g="touch",t.current=i,S(i,"touch",0!==o?o:0===i&&b.value&&d>=1?1:0))}Eg(o.value,c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,i=!1,s(),m=d,r=0,a=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&k())}return function(i){const s=a;a=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=m+e;r=.6*r+.4*t,b.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),r=0),v(n)}const d=a-s||1,h=o.value;e.vertical?u(-i.dy/h.offsetHeight,-i.ddy/d):u(-i.dx/h.offsetWidth,-i.ddx/d)}(c.detail),!1}}})}),Ai(()=>{s(),cancelAnimationFrame(l)}),{onSwiperDotClick:function(e){S(t.current=e,g="click",b.value?1:0)},circularEnabled:b,swiperEnabled:y}}const gy=od({name:"Swiper",props:{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},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=Hn(null),i=sd(o,n),r=Hn(null),s=Hn(null),a=function(e){return Cn({interval:ds(()=>{const t=Number(e.interval);return isNaN(t)?5e3:t}),duration:ds(()=>{const t=Number(e.duration);return isNaN(t)?500:t}),displayMultipleItems:ds(()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t}),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=ds(()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:lu(e.previousMargin,!0),bottom:lu(e.nextMargin,!0)}:{top:0,bottom:0,left:lu(e.previousMargin,!0),right:lu(e.nextMargin,!0)}),t}),c=ds(()=>{const t=Math.abs(100/a.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}});let u=[];const d=[],h=Hn([]);function p(){const e=[];for(let t=0;t<u.length;t++){let n=u[t];n instanceof Element||(n=n.el);const o=d.find(e=>n===e.rootRef.value);o&&e.push(On(o))}h.value=e}tr("addSwiperContext",function(e){d.push(e),p()});tr("removeSwiperContext",function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())});const{onSwiperDotClick:f,circularEnabled:m,swiperEnabled:g}=my(e,a,h,s,n,i);let y=()=>null;return y=yy(o,e,a,f,h,m,g),()=>{const n=t.default&&t.default();return u=kg(n),jr("uni-swiper",{ref:o},[jr("div",{ref:r,class:"uni-swiper-wrapper"},[jr("div",{class:"uni-swiper-slides",style:l.value},[jr("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&jr("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map((t,n,o)=>jr("div",{onClick:()=>f(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n<a.current+a.displayMultipleItems&&n>=a.current||n<a.current+a.displayMultipleItems-o.length},style:{background:n===a.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"]))],2),y()],512)],512)}}}),yy=(e,t,n,o,i,r,s)=>{let a=!1,l=!1,c=!1,u=Hn(!1);function d(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Lo(()=>{a="auto"===t.navigation,u.value=!0!==t.navigation||a,v()}),Lo(()=>{const e=i.value.length,t=!r.value;l=0===n.current&&t,c=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,s.value||(l=!0,c=!0,a&&(u.value=!0))});const p={onMouseover:e=>d(e,"over"),onMouseout:e=>d(e,"out")};function f(e,t,s){if(e.stopPropagation(),s)return;const a=i.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&r.value&&(l=a-1);break;case"next":l++,l>=a&&r.value&&(l=0)}o(l)}const m=()=>pu("M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z",t.navigationColor,26);let g;const y=n=>{clearTimeout(g);const{clientX:o,clientY:i}=n,{left:r,right:s,top:a,bottom:l,width:c,height:d}=e.value.getBoundingClientRect();let h=!1;if(h=t.vertical?!(i-a<d/3||l-i<d/3):!(o-r<c/3||s-o<c/3),h)return g=setTimeout(()=>{u.value=h},300);u.value=h},b=()=>{u.value=!0};function v(){e.value&&(e.value.removeEventListener("mousemove",y),e.value.removeEventListener("mouseleave",b),a&&(e.value.addEventListener("mousemove",y),e.value.addEventListener("mouseleave",b)))}return xi(v),function(){const e={"uni-swiper-navigation-hide":u.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?jr(xr,null,[jr("div",Yr({class:["uni-swiper-navigation uni-swiper-navigation-prev",h({"uni-swiper-navigation-disabled":l},e)],onClick:e=>f(e,"prev",l)},p),[m()],16,["onClick"]),jr("div",Yr({class:["uni-swiper-navigation uni-swiper-navigation-next",h({"uni-swiper-navigation-disabled":c},e)],onClick:e=>f(e,"next",c)},p),[m()],16,["onClick"])]):null}},by=od({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=Hn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",i=t?100*e+"%":"0",r=n.value,s=`translate(${o},${i}) translateZ(0)`;r&&(r.style.webkitTransform=s,r.style.transform=s)}};return xi(()=>{const e=nr("addSwiperContext");e&&e(o)}),Ai(()=>{const e=nr("removeSwiperContext");e&&e(o)}),()=>jr("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),vy={ensp:" ",emsp:" ",nbsp:" "};function _y(e,t){return function(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&vy[t]&&" "===r&&(r=vy[t]),i?(o+="n"===r?oe:"\\"===r?"\\":"\\"+r,i=!1):"\\"===r?i=!0:o+=r;return n?o.replace(/&nbsp;/g,vy.nbsp).replace(/&ensp;/g,vy.ensp).replace(/&emsp;/g,vy.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'"):o}(e,t).split(oe)}const wy=od({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=Hn(null);return()=>{const o=[];return t.default&&t.default().forEach(t=>{if(8&t.shapeFlag&&t.type!==kr){const n=_y(t.children,{space:e.space,decode:e.decode}),i=n.length-1;n.forEach((e,t)=>{(0!==t||e)&&o.push(Vr(e)),t!==i&&o.push(jr("br"))})}else o.push(t)}),jr("uni-text",{ref:n,selectable:!!e.selectable||null},[jr("span",null,o)],8,["selectable"])}}}),xy=h({},hg,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>ky.concat("return").includes(e)}});let Sy=!1;const ky=["done","go","next","search","send"];const Cy=od({name:"Textarea",props:xy,emits:["confirm","linechange",...pg],setup(e,{emit:t,expose:n}){const o=Hn(null),i=Hn(null),{fieldRef:r,state:s,scopedAttrsState:a,fixDisabledColor:l,trigger:c}=gg(e,o,t),u=ds(()=>s.value.split(oe)),d=ds(()=>ky.includes(e.confirmType)),h=Hn(0),p=Hn(null);function f({height:e}){h.value=e}function m(e){"Enter"===e.key&&d.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:s.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return No(()=>h.value,t=>{const n=o.value,r=p.value,s=i.value;let a=parseFloat(getComputedStyle(n).lineHeight);isNaN(a)&&(a=r.offsetHeight);var l=Math.round(t/a);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(s.style.height=t+"px")}),function(){const e="(prefers-color-scheme: dark)";Sy=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),s.value=e.value}}),()=>{let t=e.disabled&&l?jr("textarea",{key:"disabled-textarea",ref:r,value:s.value,tabindex:"-1",readonly:!!e.disabled,maxlength:s.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Sy},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):jr("textarea",{key:"textarea",ref:r,value:s.value,disabled:!!e.disabled,maxlength:s.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Sy},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:m,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return jr("uni-textarea",{ref:o,"auto-height":e.autoHeight},[jr("div",{ref:i,class:"uni-textarea-wrapper"},[Vo(jr("div",Yr(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Os,!s.value.length]]),jr("div",{ref:p,class:"uni-textarea-line"},[" "],512),jr("div",{class:"uni-textarea-compute"},[u.value.map(e=>jr("div",null,[e.trim()?e:"."])),jr(xm,{initial:!0,onResize:f},null,8,["initial","onResize"])]),"search"===e.confirmType?jr("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],8,["auto-height"])}}}),Ay=od({name:"View",props:h({},ad),setup(e,{slots:t}){const n=Hn(null),{hovering:o,binding:i}=ld(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?jr("uni-view",Yr({class:o.value?r:"",ref:n},i),[Mi(t,"default")],16):jr("uni-view",{ref:n},[Mi(t,"default")],512)}}});function Ty(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Iy(e,t,n){e&&Pc(n||bu(),e,({type:e,data:n},o)=>{t(e,n,o)})}function By(e,t){e&&function(e,t){t=Ec(e,t),delete Bc[t]}(t||bu(),e)}function Ey(e,t,n,o){const i=Zr().proxy;xi(()=>{Iy(t||Ty(i),e,o),!n&&t||No(()=>i.id,(t,n)=>{Iy(Ty(i,t),e,o),By(n&&Ty(i,n))})}),Ci(()=>{By(t||Ty(i),o)})}let Py=0;function My(e){const t=fu(),n=Zr().proxy,o=n.$options.name.toLowerCase(),i=e||n.id||"context"+Py++;return xi(()=>{n.$el.__uniContextInfo={id:i,type:o,page:t}}),`${o}.${i}`}function zy(e,t,n,o){v(t)&&vi(e,t.bind(n),o)}function Oy(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach(o=>{if(function(e,t,n=!0){return!(n&&!v(t))&&(lt.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const i=e[o];g(i)?i.forEach(e=>zy(o,e,n,t)):zy(o,i,n,t)}}),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,ku(n,pe,e),delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&ku(n,ae)}catch(i){console.error(i.message+oe+i.stack)}}}function Ry(e,t,n){Oy(e,t,n)}function Ly(e,t,n){return e[t]=n}function Dy(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Ny(e){const t=e.config.errorHandler;return function(n,o,i){t&&t(n,o,i);const r=e._instance;if(!r||!r.proxy)throw n;r[ce]?ku(r.proxy,ce,n):Kn(n,0,o&&o.$.vnode,!1)}}function $y(e,t){return e?[...new Set([].concat(e,t))]:t}function jy(e){const t=e.config;var n;t.errorHandler=ut(e,Ny),n=t.optionMergeStrategies,lt.forEach(e=>{n[e]=$y});const o=t.globalProperties;o.$set=Ly,o.$applyOptions=Ry,o.$callMethod=Dy,function(e){ct.forEach(t=>t(e))}(e)}function Hy(e){const t=Yl({history:Wy(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:Vy});t.beforeEach((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(Fy[n]={left:window.pageXOffset,top:window.pageYOffset}))}),e.router=t,e.use(t)}let Fy=Object.create(null);const Vy=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,Fy[o]);if(t)return t}return{left:0,top:0};var o};function Wy(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),rl(n));var n;return t.listen((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Nf(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const e=Ef(t[i]);$f(Ff(e.path,e.id),!1)}}(Math.abs(n.delta))}),t}const Uy={install(e){jy(e),Hu(e),Ju(e),e.config.warnHandler||(e.config.warnHandler=qy),Hy(e)}};function qy(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const Qy={class:"uni-async-loading"},Yy=jr("i",{class:"uni-loading"},null,-1),Gy=id({name:"AsyncLoading",render:()=>(Ir(),zr("div",Qy,[Yy]))});function Xy(){window.location.reload()}const Ky=id({name:"AsyncError",props:["error"],setup(){bc();const{t:e}=gc();return()=>jr("div",{class:"uni-async-error",onClick:Xy},[e("uni.async.error")],8,["onClick"])}});let Jy;function Zy(){return Jy}function eb(e){Jy=e,Object.defineProperty(Jy.$.ctx,"$children",{get:()=>Nf().map(e=>e.$vm)});const t=Jy.$.appContext.app;t.component(Gy.name)||t.component(Gy.name,Gy),t.component(Ky.name)||t.component(Ky.name,Ky),function(e){e.$vm=e,e.$mpType="app";const t=Hn(gc().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(Jy),function(e,t){const n=e.$options||{};n.globalData=h(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(Jy),Xu(),Pu()}function tb(e,{clone:t,init:n,setup:o,before:i}){t&&(e=h({},e)),i&&i(e);const r=e.setup;return e.setup=(e,t)=>{const i=Zr();if(n(i.proxy),o(i),r)return r(e,t)},e}function nb(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?tb(e.default,t):tb(e,t)}function ob(e){return nb(e,{clone:!0,init:Hf,setup(e){e.$pageInstance=e;const t=_d(),n=nt(t.query);e.attrs.__pageQuery=n,Ef(e.proxy).options=n,e.proxy.options=n;const o=bd();var i,r;return Tf(),e.onReachBottom=Cn([]),e.onPageScroll=Cn([]),No([e.onReachBottom,e.onPageScroll],()=>{const t=gu();e.proxy===t&&Kf(e,o)},{once:!0}),wi(()=>{Uf(e,o)}),xi(()=>{qf(e);const{onReady:n}=e;n&&D(n),ab(t)}),pi(()=>{if(!e.__isVisible){Uf(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&D(n),ao(()=>{ab(t)})}},"ba",i),function(e,t){pi(e,"bda",t)}(()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&D(t)}}}),r=o.id,T_.subscribe(Ec(r,Ac),Mc),Ci(()=>{!function(e){T_.unsubscribe(Ec(e,Ac)),Object.keys(Bc).forEach(t=>{0===t.indexOf(e+".")&&delete Bc[t]})}(o.id)}),n}})}function ib(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Hb(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";I_.emit(be,{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function rb(e){A(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&I_.emit(Re,e.data.data,e.data.pageId)}function sb(){const{emit:e}=I_;"visible"===document.visibilityState?e(ze,h({},wm)):e(Oe)}function ab(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&ku("onTabItemTap",{index:n,text:t,pagePath:o})}function lb(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),i=(t<10?"0":"")+t;let r=(n<10?"0":"")+n+":"+((o<10?"0":"")+o);return"00"!==i&&(r=i+":"+r),r}function cb(e,t,n){const o=Cn({seeking:!1,gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0,toastThin:!1}),i={x:0,y:0};let r=null;let s;return{state:o,onTouchstart:function(e){const t=e.targetTouches[0];i.x=t.pageX,i.y=t.pageY,o.gestureType="none",o.volumeOld=0},onTouchmove:function(a){function l(){a.stopPropagation(),a.preventDefault()}n.fullscreen&&l();const c=o.gestureType;if("stop"===c)return;const u=a.targetTouches[0],d=u.pageX,h=u.pageY,p=i,f=t.value;if("progress"===c?(!function(e){const n=t.value,i=n.duration;let r=e/600*i+o.currentTimeOld;r<0?r=0:r>i&&(r=i);o.currentTimeNew=r}(d-p.x),o.seeking=!0):"volume"===c&&function(e){const n=t.value,i=o.volumeOld;let r;"number"==typeof i&&(r=i-e/200,r<0?r=0:r>1&&(r=1),clearTimeout(s),s=void 0,null==s&&(s=setTimeout(()=>{o.toastThin=!1,s=void 0},1e3)),n.volume=r,o.volumeNew=r)}(h-p.y),"none"===c)if(Math.abs(d-p.x)>Math.abs(h-p.y)){if(!e.enableProgressGesture)return void(o.gestureType="stop");o.gestureType="progress",o.currentTimeOld=o.currentTimeNew=f.currentTime,n.fullscreen||l()}else{if(!e.pageGesture&&!e.vslideGesture)return void(o.gestureType="stop");"none"!==o.gestureType&&null!=r||(r=setTimeout(()=>{o.toastThin=!0},500)),o.gestureType="volume",o.volumeOld=f.volume,n.fullscreen||l()}},onTouchend:function(e){const n=t.value;"none"!==o.gestureType&&"stop"!==o.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===o.gestureType&&o.currentTimeOld!==o.currentTimeNew&&(n.currentTime=o.currentTimeNew),o.gestureType="none"}}}const ub={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},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},vslideGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},db=od({name:"Video",props:ub,emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const i=Hn(null),r=Hn(null),s=sd(i,t),{state:a}=ag(),{$attrs:l}=Sg({excludeListeners:!0});gc(),kc();const{videoRef:c,state:u,play:d,pause:h,stop:p,seek:f,playbackRate:m,toggle:y,onDurationChange:b,onLoadedMetadata:v,onProgress:_,onWaiting:w,onVideoError:x,onPlay:S,onPause:k,onEnded:C,onTimeUpdate:A}=function(e,t,n){const o=Hn(null),i=ds(()=>em(e.src)),r=ds(()=>"true"===e.muted||!0===e.muted),s=Cn({start:!1,src:i,playing:!1,currentTime:0,duration:0,progress:0,buffered:0,muted:r,pauseUpdatingCurrentTime:!1});function a(e){const t=e.target,n=t.buffered;n.length&&(s.buffered=n.end(n.length-1)/t.duration*100)}function l(){o.value.pause()}function c(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return No(()=>i.value,()=>{s.playing=!1,s.currentTime=0}),No(()=>s.buffered,e=>{n("progress",{},{buffered:e})}),No(()=>r.value,e=>{o.value.muted=e}),{videoRef:o,state:s,play:function(){const e=o.value;s.start=!0,e.play()},pause:l,stop:function(){c(0),l()},seek:c,playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;s.playing?e.pause():e.play()},onDurationChange:function({target:e}){s.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,i=t.target;o>0&&(i.currentTime=o),n("loadedmetadata",t,{width:i.videoWidth,height:i.videoHeight,duration:i.duration}),a(t)},onProgress:a,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){s.playing=!1,n("error",e,{})},onPlay:function(e){s.start=!0,s.playing=!0,n("play",e,{})},onPause:function(e){s.playing=!1,n("pause",e,{})},onEnded:function(e){s.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target;s.pauseUpdatingCurrentTime||(s.currentTime=t.currentTime);const o=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,s),{state:T,danmuRef:I,updateDanmu:B,toggleDanmu:E,sendDanmu:P}=function(e,t){const n=Hn(null),o=Cn({enable:Boolean(e.enableDanmu)});let i={time:0,index:-1};const r=g(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function s(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let o=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",o),n.value.appendChild(t),setTimeout(function(){o+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",o),setTimeout(function(){t.remove()},4e3)},17)}return r.sort(function(e,t){return(e.time||0)-(t.time||0)}),{state:o,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,a=i,l={time:n,index:a.index};if(n>a.time)for(let i=a.index+1;i<r.length;i++){const e=r[i];if(!(n>=(e.time||0)))break;l.index=i,t.playing&&o.enable&&s(e)}else if(n<a.time)for(let t=a.index-1;t>-1&&n<=(r[t].time||0);t--)l.index=t-1;i=l},toggleDanmu:function(){o.enable=!o.enable},sendDanmu:function(e){r.splice(i.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,u),{state:M,onFullscreenChange:z,emitFullscreenChange:O,toggleFullscreen:R,requestFullScreen:L,exitFullScreen:D}=function(e,t,n,o,i){const r=Cn({fullscreen:!1}),s=/^Apple/.test(navigator.vendor);function a(t){r.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const r=i.value,l=t.value,c=n.value;let u;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||s&&!o.userAction?c.webkitEnterFullScreen?c.webkitEnterFullScreen():(u=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():c.webkitExitFullScreen?c.webkitExitFullScreen():(u=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),r.appendChild(l)),u&&a(e)}function c(){l(!1)}return Ci(c),{state:r,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||a(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:a,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:c}}(s,r,c,a,i),{state:N,onTouchstart:$,onTouchend:j,onTouchmove:H}=cb(e,c,M),{state:F,progressRef:V,ballRef:W,clickProgress:U,toggleControls:q,autoHideEnd:Q,autoHideStart:Y}=function(e,t,n,o){const i=Hn(null),r=Hn(null),s=ds(()=>e.showCenterPlayBtn&&!t.start),a=Hn(!0),l=ds(()=>!s.value&&e.controls&&a.value),c=Cn({seeking:!1,touching:!1,controlsTouching:!1,centerPlayBtnShow:s,controlsShow:l,controlsVisible:a});let u;function d(){u=setTimeout(()=>{c.controlsVisible=!1},3e3)}function h(){u&&(clearTimeout(u),u=null)}return Ci(()=>{u&&clearTimeout(u)}),No(()=>c.controlsShow&&t.playing&&!c.controlsTouching,e=>{e?d():h()}),xi(()=>{const e=Ze(!1);let s,a,l,u=!0;const d=r.value;function h(e){const n=e.targetTouches[0],r=n.pageX,d=n.pageY;if(u&&Math.abs(r-s)<Math.abs(d-a))return void p(e);u=!1;const h=i.value.offsetWidth;let f=l+(r-s)/h*100;f<0?f=0:f>100&&(f=100),t.progress=f,null==o||o(t.duration*f/100),c.seeking=!0,e.preventDefault(),e.stopPropagation()}function p(o){c.controlsTouching=!1,c.touching&&(d.removeEventListener("touchmove",h,e),u||(o.preventDefault(),o.stopPropagation(),n(t.duration*t.progress/100)),c.touching=!1)}d.addEventListener("touchstart",n=>{c.controlsTouching=!0;const o=n.targetTouches[0];s=o.pageX,a=o.pageY,l=t.progress,u=!0,c.touching=!0,d.addEventListener("touchmove",h,e)}),d.addEventListener("touchend",p),d.addEventListener("touchcancel",p)}),{state:c,progressRef:i,ballRef:r,clickProgress:function(e){const o=i.value;let r=e.target,s=e.offsetX;for(;r&&r!==o;)s+=r.offsetLeft,r=r.parentNode;const a=o.offsetWidth;let l=0;s>=0&&s<=a&&(l=s/a,n(t.duration*l))},toggleControls:function(){c.controlsVisible=!c.controlsVisible},autoHideStart:d,autoHideEnd:h}}(e,u,f,e=>{N.currentTimeNew=e});!function(e,t,n,o,i,r,s,a){const l={play:e,stop:n,pause:t,seek:o,sendDanmu:i,playbackRate:r,requestFullScreen:s,exitFullScreen:a};Ey((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in l&&l[e](n)},My(),!0)}(d,h,p,f,P,m,L,D);const G=function(e,t,n){const o=ds(()=>"progress"===t.gestureType||n.touching);return No(o,o=>{e.pauseUpdatingCurrentTime=o,n.controlsTouching=o,"progress"===t.gestureType&&o&&(n.controlsVisible=o)}),No([()=>e.currentTime,()=>{ub.duration}],()=>{e.progress=e.currentTime/e.duration*100}),No(()=>t.currentTimeNew,t=>{e.currentTime=t}),o}(u,N,F);return()=>jr("uni-video",{ref:i,id:e.id,onClick:q},[jr("div",{ref:r,class:"uni-video-container",onTouchstart:$,onTouchend:j,onTouchmove:H,onFullscreenchange:ua(z,["stop"]),onWebkitfullscreenchange:ua(e=>z(e,!0),["stop"])},[jr("video",Yr({ref:c,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:u.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:"uni-video-video","webkit-playsinline":!0,playsinline:!0,onDurationchange:b,onLoadedmetadata:v,onProgress:_,onWaiting:w,onError:x,onPlay:S,onPause:k,onEnded:C,onTimeupdate:e=>{A(e),B(e)},onWebkitbeginfullscreen:()=>O(!0),onX5videoenterfullscreen:()=>O(!0),onWebkitendfullscreen:()=>O(!1),onX5videoexitfullscreen:()=>O(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),Vo(jr("div",{class:"uni-video-bar uni-video-bar-full",onClick:ua(()=>{},["stop"])},[jr("div",{class:"uni-video-controls"},[Vo(jr("div",{class:{"uni-video-icon":!0,"uni-video-control-button":!0,"uni-video-control-button-play":!u.playing,"uni-video-control-button-pause":u.playing},onClick:ua(y,["stop"])},null,10,["onClick"]),[[Os,e.showPlayBtn]]),Vo(jr("div",{class:"uni-video-current-time"},[lb(u.currentTime)],512),[[Os,e.showProgress]]),Vo(jr("div",{ref:V,class:"uni-video-progress-container",onClick:ua(U,["stop"])},[jr("div",{class:{"uni-video-progress":!0,"uni-video-progress-progressing":G.value}},[jr("div",{style:{width:u.buffered-u.progress+"%",left:u.progress+"%"},class:"uni-video-progress-buffered"},null,4),jr("div",{style:{width:u.progress+"%"},class:"uni-video-progress-played"},null,4),jr("div",{ref:W,style:{left:u.progress+"%"},class:{"uni-video-ball":!0,"uni-video-ball-progressing":G.value}},[jr("div",{class:"uni-video-inner"},null)],6)],2)],8,["onClick"]),[[Os,e.showProgress]]),Vo(jr("div",{class:"uni-video-duration"},[lb(Number(e.duration)||u.duration)],512),[[Os,e.showProgress]])]),Vo(jr("div",{class:{"uni-video-icon":!0,"uni-video-danmu-button":!0,"uni-video-danmu-button-active":T.enable},onClick:ua(E,["stop"])},null,10,["onClick"]),[[Os,e.danmuBtn]]),Vo(jr("div",{class:{"uni-video-icon":!0,"uni-video-fullscreen":!0,"uni-video-type-fullscreen":M.fullscreen},onClick:ua(()=>R(!M.fullscreen),["stop"])},null,10,["onClick"]),[[Os,e.showFullscreenBtn]])],8,["onClick"]),[[Os,F.controlsShow]]),Vo(jr("div",{ref:I,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[Os,u.start&&T.enable]]),F.centerPlayBtnShow&&jr("div",{class:"uni-video-cover",onClick:ua(()=>{},["stop"])},[jr("div",{class:"uni-video-cover-play-button uni-video-icon",onClick:ua(d,["stop"])},null,8,["onClick"])],8,["onClick"]),jr("div",{class:"uni-video-loading"},["volume"===N.gestureType?jr("div",{class:{"uni-video-toast-container":!0,"uni-video-toast-container-thin":N.toastThin},style:{marginTop:"5px"}},[!N.toastThin&&N.volumeNew>0&&"volume"===N.gestureType?jr("text",{class:"uni-video-icon uni-video-toast-icon"},[""]):!N.toastThin&&jr("text",{class:"uni-video-icon uni-video-toast-icon"},[""]),jr("div",{class:"uni-video-toast-draw",style:{width:100*N.volumeNew+"%"}},null)],2):null]),jr("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":G.value}},[jr("div",{class:"uni-video-toast-title"},[jr("span",{class:"uni-video-toast-title-current-time"},[lb(N.currentTimeNew)])," / ",Number(e.duration)||lb(u.duration)])],2),jr("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}}),hb=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},pb=je(()=>I_.on(Re,hb)),fb=od({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},emits:["load"],setup(e,{emit:t}){pb();const n=Hn(null),o=Hn(null),{$attrs:i,$excludeAttrs:r,$listeners:s}=Sg({excludeListeners:!0}),a=sd(n,t);let l;return(()=>{const t=document.createElement("iframe");t.onload=function(t){a("load",t,{src:e.src})},Lo(()=>{for(const e in i.value)if(m(i.value,e)){const n=i.value[e];t[e]=n}}),Lo(()=>{t.src=em(e.src)}),o.value=t,l=function(e,t,n){const o=()=>{var o,i;if(n){const{top:n,left:o,width:i,height:r}=e.value.getBoundingClientRect();$e(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:i+"px",height:r+"px"})}else $e(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(i=e.value)?void 0:i.style.height)||"150px"})};return o}(n,o,e.fullscreen),e.fullscreen&&document.body.appendChild(t)})(),xi(()=>{var t;l(),!e.fullscreen&&(null==(t=n.value)||t.appendChild(o.value))}),di(()=>{e.fullscreen&&(o.value.style.display="block")}),hi(()=>{e.fullscreen&&(o.value.style.display="none")}),Ci(()=>{e.fullscreen&&document.body.removeChild(o.value)}),()=>jr(xr,null,[jr("uni-web-view",Yr({class:e.fullscreen?"uni-webview--fullscreen":""},s.value,r.value,{ref:n}),[jr(xm,{onResize:l},null,8,["onResize"])],16)])}});let mb,gb=0;function yb(e,t,n,o){var i,r=document.createElement("script"),s=t.callback||"callback",a="__uni_jsonp_callback_"+gb++,l=t.timeout||3e4;function c(){clearTimeout(i),delete window[a],r.remove()}window[a]=e=>{v(n)&&n(e),c()},r.onerror=()=>{v(o)&&o(),c()},i=setTimeout(function(){v(o)&&o(),c()},l),r.src=e+(e.indexOf("?")>=0?"&":"?")+s+"="+a,document.body.appendChild(r)}function bb(e){function t(){const e=this.div;this.getPanes().floatPane.appendChild(e)}function n(){const e=this.div.parentNode;e&&e.removeChild(this.div)}function o(){const t=this.option;this.Text=new e.Text({text:t.content,anchor:"bottom-center",offset:new e.Pixel(0,t.offsetY-16),style:{padding:(t.padding||8)+"px","line-height":(t.fontSize||14)+"px","border-radius":(t.borderRadius||0)+"px","border-color":`${t.bgColor||"#fff"} transparent transparent`,"background-color":t.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(t.fontSize||14)+"px",color:t.color||"#000"},position:t.position});(e.event||e.Event).addListener(this.Text,"click",()=>{this.callback()}),this.Text.setMap(t.map)}function i(){}function r(){this.Text&&this.option.map.remove(this.Text)}function s(){this.Text&&this.option.map.remove(this.Text)}class a{constructor(e={},a){this.createAMapText=o,this.removeAMapText=r,this.createBMapText=i,this.removeBMapText=s,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=e||{};const l=this.visible=this.alwaysVisible="ALWAYS"===e.display;if(Ab())this.callback=a,this.visible&&this.createAMapText();else if(Tb())this.visible&&this.createBMapText();else{const t=e.map;this.position=e.position,this.index=1;const n=this.div=document.createElement("div"),o=n.style;o.position="absolute",o.whiteSpace="nowrap",o.transform="translateX(-50%) translateY(-100%)",o.zIndex="1",o.boxShadow=e.boxShadow||"none",o.display=l?"block":"none";const i=this.triangle=document.createElement("div");i.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(e),n.appendChild(i),t&&this.setMap(t)}}set onclick(e){this.div.onclick=e}get onclick(){return this.div.onclick}setOption(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,Ab()?this.visible&&this.createAMapText():Tb()?this.visible&&this.createBMapText():(this.setPosition(e.position),this.setStyle(e))}setStyle(e){const t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor=`${e.bgColor||"#fff"} transparent transparent`}setPosition(e){this.position=e,this.draw()}draw(){const e=this.getProjection();if(!this.position||!this.div||!e)return;const t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}changed(){this.div.style.display=this.visible?"block":"none"}}if(!Ab()&&!Tb()){const t=new(e.OverlayView||e.Overlay);a.prototype.setMap=t.setMap,a.prototype.getMap=t.getMap,a.prototype.getPanes=t.getPanes,a.prototype.getProjection=t.getProjection,a.prototype.map_changed=t.map_changed,a.prototype.set=t.set,a.prototype.get=t.get,a.prototype.setOptions=t.setValues,a.prototype.bindTo=t.bindTo,a.prototype.bindsTo=t.bindsTo,a.prototype.notify=t.notify,a.prototype.setValues=t.setValues,a.prototype.unbind=t.unbind,a.prototype.unbindAll=t.unbindAll,a.prototype.addListener=t.addListener}return a}const vb={};function _b(e,t){const n=Sb();if(!n.key)return void console.error("Map key not configured.");const o=vb[n.type]=vb[n.type]||[];if(mb)t(mb);else if(window[n.type]&&window[n.type].maps)mb=Ab()||Tb()?window[n.type]:window[n.type].maps,mb.Callout=mb.Callout||bb(mb),t(mb);else if(o.length)o.push(t);else{o.push(t);const i=window,r="__map_callback__"+n.type;i[r]=function(){delete i[r],mb=Ab()||Tb()?window[n.type]:window[n.type].maps,mb.Callout=bb(mb),o.forEach(e=>e(mb)),o.length=0},Ab()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const s=document.createElement("script");let a=wb(n.type);n.type===xb.QQ&&e.push("geometry"),e.length&&(a+=`libraries=${e.join("%2C")}&`),n.type===xb.BMAP?s.src=`${a}ak=${n.key}&callback=${r}`:s.src=`${a}key=${n.key}&callback=${r}`,s.onerror=function(){console.error("Map load failed.")},document.body.appendChild(s)}}const wb=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"}[e]);var xb=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(xb||{});function Sb(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let kb=!1,Cb=!1;const Ab=()=>Cb?kb:(Cb=!0,kb="AMap"===Sb().type),Tb=()=>"BMapGL"===Sb().type;const Ib=rh("makePhoneCall",({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t())),Bb="__DC_STAT_UUID",Eb=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Pb;function Mb(){if(Pb=Pb||Eb[Bb],!Pb){Pb=Date.now()+""+Math.floor(1e7*Math.random());try{Eb[Bb]=Pb}catch(e){}}return Pb}function zb(){if(!0!==__uniConfig.darkmode)return _(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Ob(){let e,t="0",n="",o="phone";const i=navigator.language;if(om){e="iOS";const o=tm.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const i=tm.match(/\(([a-zA-Z]+);/);i&&(n=i[1])}else if(nm){e="Android";const o=tm.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const i=tm.match(/\((.+?)\)/),r=i?i[1].split(";"):tm.split(" "),s=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e<r.length;e++){const t=r[e];if(t.indexOf("Build")>0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e<s.length;e++)if(s[e].test(t)){o=!0;break}if(!o){n=t.trim();break}}}else if(am){if(n="iPad",e="iOS",o="pad",t=v(window.BigInt)?"14.0":"13.0",14===parseInt(t)){const e=tm.match(/Version\/(\S*)\b/);e&&(t=e[1])}}else if(im||rm||sm){n="PC",e="PC",o="pc",t="0";let i=tm.match(/\((.+?)\)/)[1];if(im){switch(e="Windows",im[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10"}const n=i&&i.match(/[Win|WOW]([\d]+)/);n&&(t+=` x${n[1]}`)}else if(rm){e="macOS";const n=i&&i.match(/Mac OS X (.+)/)||"";t&&(t=n[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))}else if(sm){e="Linux";const n=i&&i.match(/Linux (.*)/)||"";n&&(t=n[1],-1!==t.indexOf(";")&&(t=t.split(";")[0]))}}else e="Other",t="0",o="unknown";const r=`${e} ${t}`,s=e.toLowerCase();let a="",l=String(function(){const e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)a="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n<e.length;n++){const o=e[n],i=new RegExp(`(${o})/(\\S*)\\b`);i.test(tm)&&(a=t[n],l=tm.match(i)[2])}}let c="portrait";const u=void 0===window.screen.orientation?window.orientation:window.screen.orientation.angle;return c=90===Math.abs(u)?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:c,model:n,system:r,platform:s,browserName:a.toLowerCase(),browserVersion:l,language:i,deviceType:o,ua:tm,osname:e,osversion:t,theme:zb()}}const Rb=ih(0,()=>{const e=window.devicePixelRatio,t=lm(),n=cm(t),o=um(t,n),i=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),r=dm(o);let s=window.innerHeight;const a=Zc.top,l={left:Zc.left,right:r-Zc.right,top:Zc.top,bottom:s-Zc.bottom,width:r-Zc.left-Zc.right,height:s-Zc.top-Zc.bottom},{top:c,bottom:u}=iu();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:r,windowHeight:s,pixelRatio:e,screenWidth:o,screenHeight:i,statusBarHeight:a,safeArea:l,safeAreaInsets:{top:Zc.top,right:Zc.right,bottom:Zc.bottom,left:Zc.left},screenTop:i-s}});let Lb,Db=!0;function Nb(){Db&&(Lb=Ob())}const $b=ih(0,()=>{Nb();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:s,deviceType:a,osname:l,osversion:c}=Lb;return h({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Mb(),deviceOrientation:s,deviceType:a,model:o,platform:i,system:r,osName:l?l.toLowerCase():void 0,osVersion:c})}),jb=ih(0,()=>{Nb();const{theme:e,language:t,browserName:n,browserVersion:o}=Lb;return h({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:fp?fp():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:"",uniPlatform:"web",isUniAppX:!1,uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion},{})}),Hb=ih(0,()=>{Db=!0,Nb(),Db=!1;const e=Rb(),t=$b(),n=jb();Db=!0;const{ua:o,browserName:i,browserVersion:r,osname:s,osversion:a}=Lb,l=h(e,t,n,{ua:o,browserName:i,browserVersion:r,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:s.toLowerCase(),osVersion:a,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return A(e)&&Object.keys(e).sort().forEach(n=>{const o=n;t[o]=e[o]}),Object.keys(t)?t:e}(l)}),Fb=rh("getSystemInfo",(e,{resolve:t})=>t(Hb())),Vb="onNetworkStatusChange";function Wb(){Qb().then(({networkType:e})=>{I_.invokeOnCallback(Vb,{isConnected:"none"!==e,networkType:e})})}function Ub(){return navigator.connection||navigator.webkitConnection||navigator.mozConnection}const qb=th(Vb,()=>{const e=Ub();e?e.addEventListener("change",Wb):(window.addEventListener("offline",Wb),window.addEventListener("online",Wb))}),Qb=rh("getNetworkType",(e,{resolve:t})=>{const n=Ub();let o="unknown";return n?(o=n.type,"cellular"===o&&n.effectiveType?o=n.effectiveType.replace("slow-",""):!o&&n.effectiveType?o=n.effectiveType:["none","wifi"].includes(o)||(o="unknown")):!1===navigator.onLine&&(o="none"),t({networkType:o})}),Yb=!!window.navigator.vibrate,Gb=rh("vibrateShort",(e,{resolve:t,reject:n})=>{Yb&&window.navigator.vibrate(15)?t():n("vibrateLong:fail")});const Xb=rh("setClipboardData",(e,t)=>{return n=void 0,o=[e,t],i=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const i=document.createElement("textarea");i.setAttribute("inputmode","none"),i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=e,i.select(),i.setSelectionRange(0,i.value.length);const r=document.execCommand("Copy",!1);i.blur(),r?t():n()}(e,t,n)}},new Promise((e,t)=>{var r=e=>{try{a(i.next(e))}catch(n){t(n)}},s=e=>{try{a(i.throw(e))}catch(n){t(n)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);a((i=i.apply(n,o)).next())});var n,o,i},0,yp);const Kb=ih(0,(e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}),Jb=rh("setStorage",({key:e,data:t},{resolve:n,reject:o})=>{try{Kb(e,t),n()}catch(i){o(i.message)}});function Zb(e){const t=localStorage&&localStorage.getItem(e);if(!_(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=_(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const ev=ih(0,e=>{try{return Zb(e)}catch(t){return""}}),tv=ih(0,e=>{localStorage&&localStorage.removeItem(e)}),nv=rh("hideKeyboard",(e,{resolve:t,reject:n})=>{const o=document.activeElement;!o||"TEXTAREA"!==o.tagName&&"INPUT"!==o.tagName||(o.blur(),t())});const ov=rh("getImageInfo",({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e},0,kp),iv={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function rv({count:e,sourceType:t,type:n,extension:o}){rg();const i=document.createElement("input");return i.type="file",$e(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=o.map(e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${iv[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`}).join(","),e&&e>1&&(i.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&i.setAttribute("capture","camera"),i}let sv=null;const av=rh("chooseFile",({count:e,sourceType:t,type:n,extension:o},{resolve:i,reject:r})=>{xc();const{t:s}=gc();sv&&(document.body.removeChild(sv),sv=null),sv=rv({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(sv),sv.addEventListener("cancel",()=>{r("chooseFile:fail cancel")}),sv.addEventListener("change",function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let i=0;i<t;i++){const t=n.files[i];let r;Object.defineProperty(t,"path",{get:()=>(r=r||bm(t),r)}),i<e&&o.push(t)}}i({get tempFilePaths(){return o.map(({path:e})=>e)},tempFiles:o})}),sv.click(),sg()||console.warn(s("uni.chooseFile.notUserActivation"))},0,Sp);let lv=null;const cv=rh("chooseImage",({count:e,sourceType:t,extension:n},{resolve:o,reject:i})=>{xc();const{t:r}=gc();lv&&(document.body.removeChild(lv),lv=null),lv=rv({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(lv),lv.addEventListener("cancel",()=>{i("chooseImage:fail cancel")}),lv.addEventListener("change",function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let o=0;o<t;o++){const t=n.files[o];let r;Object.defineProperty(t,"path",{get:()=>(r=r||bm(t),r)}),o<e&&i.push(t)}}o({get tempFilePaths(){return i.map(({path:e})=>e)},tempFiles:i})}),lv.click(),sg()||console.warn(r("uni.chooseFile.notUserActivation"))},0,_p),uv={esc:["Esc","Escape"],enter:["Enter"]},dv=Object.keys(uv);function hv(){const e=Hn(""),t=Hn(!1),n=n=>{if(t.value)return;const o=dv.find(e=>-1!==uv[e].indexOf(n.key));o&&(e.value=o),ao(()=>e.value="")};return xi(()=>{document.addEventListener("keyup",n)}),Ci(()=>{document.removeEventListener("keyup",n)}),{key:e,disable:t}}const pv=jr("div",{class:"uni-mask"},null,-1);function fv(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),pa(ni({setup:()=>()=>(Ir(),zr(e,t,null,16))}))}function mv(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function gv(e,{onEsc:t,onEnter:n}){const o=Hn(e.visible),{key:i,disable:r}=hv();return No(()=>e.visible,e=>o.value=e),No(()=>o.value,e=>r.value=!e),Lo(()=>{const{value:e}=i;"esc"===e?t&&t():"enter"===e&&n&&n()}),o}let yv=0,bv="";function vv(e){let t=yv;yv+=e?1:-1,yv=Math.max(0,yv),yv>0?0===t&&(bv=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=bv,bv="")}const _v=id({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Cn({direction:"none"});let n=1,o=0,i=0,r=0,s=0;function a({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,i=t.height}function c(e){const t=e.target.getBoundingClientRect();r=t.width,s=t.height,d(e)}function u(e){const a=n*o>r,l=n*i>s;t.direction=a&&l?"all":a?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return jr(Cg,{style:n,onTouchstart:rd(c),onTouchmove:rd(d),onTouchend:rd(u)},{default:()=>[jr(Ng,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:a},{default:()=>[jr("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function wv(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const xv=id({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){xi(()=>vv(!0)),Ai(()=>vv(!1));const{key:n}=hv(),o=Hn(null),i=Hn(wv(e));let r;function s(){r||ao(()=>{t("close")})}function a(e){i.value=e.detail.current}No(()=>e.current,()=>i.value=wv(e)),No(()=>n.value,e=>{"esc"===e&&s()}),xi(()=>{const e=o.value;let t=0,n=0;e.addEventListener("mousedown",e=>{r=!1,t=e.clientX,n=e.clientY}),e.addEventListener("mouseup",e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-n)>20)&&(r=!0)})});const l={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return jr("div",{ref:o,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:s},[jr(gy,{navigation:"auto",current:i.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(n=t=e.urls.map(e=>jr(by,null,{default:()=>[jr(_v,{src:e},null,8,["src"])]})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!Or(n)?t:{default:()=>[t],_:1}),8,["current","onChange"]),jr("div",{style:l},[pu("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var n}}});let Sv,kv=null;const Cv=()=>{kv=null,ao(()=>{null==Sv||Sv.unmount(),Sv=null})},Av=rh("previewImage",(e,{resolve:t})=>{kv?h(kv,e):(kv=Cn(e),ao(()=>{Sv=fv(xv,kv,Cv),Sv.mount(mv("u-a-p"))})),t()},0,Cp);let Tv=null;const Iv=rh("chooseVideo",({sourceType:e,extension:t},{resolve:n,reject:o})=>{xc();const{t:i}=gc();Tv&&(document.body.removeChild(Tv),Tv=null),Tv=rv({sourceType:e,extension:t,type:"video"}),document.body.appendChild(Tv),Tv.addEventListener("cancel",()=>{o("chooseVideo:fail cancel")}),Tv.addEventListener("change",function(e){const t=e.target.files[0];let o="";const i={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(i,"tempFilePath",{get(){return o=o||bm(this.tempFile),o}});const r=document.createElement("video");if(void 0!==r.onloadedmetadata){const e=bm(t);r.onloadedmetadata=function(){vm(e),n(h(i,{duration:r.duration||0,width:r.videoWidth||0,height:r.videoHeight||0}))},setTimeout(()=>{r.onloadedmetadata=null,vm(e),n(i)},300),r.src=e}else n(i)}),Tv.click(),sg()||console.warn(i("uni.chooseFile.notUserActivation"))},0,wp),Bv=oh("request",({url:e,data:t,header:n={},method:o,dataType:i,responseType:r,enableChunked:s,withCredentials:a,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const h=function(e){const t=Object.keys(e).find(e=>"content-type"===e.toLowerCase());if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(_(t)||t instanceof ArrayBuffer)d=t;else if("json"===h)try{d=JSON.stringify(t)}catch(f){d=t.toString()}else if("urlencoded"===h){const e=[];for(const n in t)m(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let p;if(s){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,s=t.signal;p=new Pv(t);const h={method:o,headers:n,body:d,signal:s,credentials:a?"include":"same-origin"},f=setTimeout(function(){p.abort(),u("timeout",{errCode:5})},l);h.signal.addEventListener("abort",function(){clearTimeout(f),u("abort",{errCode:600003})}),window.fetch(e,h).then(e=>{const t=e.status,n=e.headers,o=e.body,s={};n.forEach((e,t)=>{s[t]=e});const a=Ev(s);if(p._emitter.emit("headersReceived",{header:s,statusCode:t,cookies:a}),!o)return void c({data:"",statusCode:t,header:s,cookies:a});const l=o.getReader(),u=[],d=()=>{l.read().then(({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce((e,t)=>e+t.byteLength,0),n=new Uint8Array(t);let o=0;for(const i of e)n.set(new Uint8Array(i),o),o+=i.byteLength;return n.buffer}(u);let n="text"===r?(new TextDecoder).decode(e):e;return"text"===r&&(n=zv(n,r,i)),void c({data:n,statusCode:t,header:s,cookies:a})}const o=n;u.push(o),p._emitter.emit("chunkReceived",{data:o}),d()})};d()},e=>{u(e,{errCode:5})})}else{const t=new XMLHttpRequest;p=new Pv(t),t.open(o,e);for(const e in n)m(n,e)&&t.setRequestHeader(e,n[e]);const s=setTimeout(function(){t.onload=t.onabort=t.onerror=null,p.abort(),u("timeout",{errCode:5})},l);t.responseType=r,t.onload=function(){clearTimeout(s);const e=t.status;let n="text"===r?t.responseText:t.response;"text"===r&&(n=zv(n,r,i)),c({data:n,statusCode:e,header:Mv(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(s),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(s),u(void 0,{errCode:5})},t.withCredentials=a,t.send(d)}return p},0,Ep),Ev=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let i=0;i<o.length;i++)-1!==o[i].indexOf("Expires=")||-1!==o[i].indexOf("expires=")?n.push(o[i].replace(",","")):n.push(o[i]);return n=n.join(";").split(","),n};class Pv{constructor(e){this._requestOnChunkReceiveCallbackId=0,this._requestOnChunkReceiveCallbacks=new Map,this._requestOnHeadersReceiveCallbackId=0,this._requestOnHeadersReceiveCallbacks=new Map,this._emitter=new ht,this._controller=e}abort(){this._controller&&(this._controller.abort(),delete this._controller)}onHeadersReceived(e){return this._emitter.on("headersReceived",e),this._requestOnHeadersReceiveCallbackId++,this._requestOnHeadersReceiveCallbacks.set(this._requestOnHeadersReceiveCallbackId,e),this._requestOnHeadersReceiveCallbackId}offHeadersReceived(e){if(null==e)return void this._emitter.off("headersReceived");if("function"==typeof e)return void this._requestOnHeadersReceiveCallbacks.forEach((t,n)=>{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))});const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))});const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function Mv(e){const t={};return e.split(oe).forEach(e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])}),t}function zv(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(i){}return o}class Ov{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){v(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const Rv=oh("downloadFile",({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:i})=>{var r,s=new XMLHttpRequest,a=new Ov(s);return s.open("GET",e,!0),Object.keys(t).forEach(e=>{s.setRequestHeader(e,t[e])}),s.responseType="blob",s.onload=function(){clearTimeout(r);const t=s.status,n=this.response;let i;const a=s.getResponseHeader("content-disposition");if(a){const e=a.match(/filename="?(\S+)"?\b/);e&&(i=e[1])}n.name=i||function(e){const t=(e=e.split("#")[0].split("?")[0]).split("/");return t[t.length-1]}(e),o({statusCode:t,tempFilePath:bm(n)})},s.onabort=function(){clearTimeout(r),i("abort",{errCode:600003})},s.onerror=function(){clearTimeout(r),i("",{errCode:602001})},s.onprogress=function(e){a._callbacks.forEach(t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesWritten:n,totalBytesExpectedToWrite:o})})},s.send(),r=setTimeout(function(){s.onprogress=s.onload=s.onabort=s.onerror=null,a.abort(),i("timeout",{errCode:5})},n),a},0,Pp);class Lv{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){v(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const Dv=oh("uploadFile",({url:e,file:t,filePath:n,name:o,files:i,header:r={},formData:s={},timeout:a=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new Lv;return g(i)&&i.length||(i=[{name:o,file:t,uri:n}]),Promise.all(i.map(({file:e,uri:t})=>e instanceof Blob?Promise.resolve(ym(e)):gm(t))).then(function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(s).forEach(e=>{d.append(e,s[e])}),Object.values(i).forEach(({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)}),o.open("POST",e),Object.keys(r).forEach(e=>{o.setRequestHeader(e,r[e])}),o.upload.onprogress=function(e){u._callbacks.forEach(t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})})},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout(function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})},a),o.send(d),u._xhr=o)}).catch(()=>{setTimeout(()=>{c("file error")},0)}),u},0,Mp),Nv=rh("getLocation",({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const s=Sb();new Promise((e,i)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(t=>e({coords:t.coords}),i,{enableHighAccuracy:o||t,timeout:n||1e5}):i(new Error("device nonsupport geolocation"))}).catch(e=>new Promise((t,n)=>{s.type===xb.QQ?yb(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${s.key}`,{callback:"callback"},e=>{if("result"in e&&e.result.location){const n=e.result.location;t({coords:{latitude:n.lat,longitude:n.lng},skip:!0})}else n(new Error(e.message||JSON.stringify(e)))},()=>n(new Error("network error"))):s.type===xb.GOOGLE?Bv({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${s.key}`,success(e){const o=e.data;"location"in o?t({coords:{latitude:o.location.lat,longitude:o.location.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.error&&o.error.message||JSON.stringify(e)))},fail(){n(new Error("network error"))}}):s.type===xb.AMAP?_b([],()=>{window.AMap.plugin("AMap.Geolocation",()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition((e,o)=>{"complete"===e?t({coords:{latitude:o.position.lat,longitude:o.position.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.message))})})}):n(e)})).then(({coords:t,skip:n})=>{(function(e,t,n){const o=Sb();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise(e=>{yb(`https://apis.map.qq.com/ws/coord/v1/translate?type=1&locations=${t.latitude},${t.longitude}&key=${o.key}&output=jsonp`,{callback:"callback"},n=>{if("locations"in n&&n.locations.length){const{lng:o,lat:i}=n.locations[0];e({longitude:o,latitude:i,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)},()=>e(t))}):"AMap"===o.type?new Promise(e=>{_b([],()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",(n,o)=>{if("ok"===o.info&&o.locations.length){const{lat:n,lng:i}=o.locations[0];e({longitude:i,latitude:n,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)})})}):Promise.reject(new Error("translate coordinate system faild, map provider not configured or not supported"))})(e,t,n).then(e=>{i({latitude:e.latitude,longitude:e.longitude,accuracy:e.accuracy,speed:e.altitude||0,altitude:e.altitude||0,verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy||0})}).catch(e=>{r(e.message)})}).catch(e=>{r(e.message||JSON.stringify(e))})},0,vp),$v=rh("navigateBack",(e,{resolve:t,reject:n})=>{let o=!0;return!0===ku(ve,{from:e.from||"navigateBack"})&&(o=!1),o?(Zy().$router.go(-e.delta),t()):n(ve)},0,Vp),jv=rh(Op,({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Pf.handledBeforeEntryPageRoutes)return gf({type:Op,url:e,events:t,isAutomatedTesting:n}).then(o).catch(i);Mf.push({args:{type:Op,url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i})},0,$p);function Hv(e){__uniConfig.darkmode&&I_.on(ue,e)}function Fv(e){I_.off(ue,e)}const Vv={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Wv=ni({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=Hn(""),o=()=>s.value=!1,i=()=>(o(),t("close","cancel")),r=()=>(o(),t("close","confirm",n.value)),s=gv(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),a=function(e){const t=Hn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Vv[e].cancelColor})(e,t)};return Lo(()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===zb()&&n({theme:"dark"}),Hv(n))):Fv(n)}),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:h}=e;return n.value=o,jr(_s,{name:"uni-fade"},{default:()=>[Vo(jr("uni-modal",{onTouchmove:eu},[pv,jr("div",{class:"uni-modal"},[t?jr("div",{class:"uni-modal__hd"},[jr("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?jr("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:h,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):jr("div",{class:"uni-modal__bd",onTouchmovePassive:tu,textContent:o},null,40,["onTouchmovePassive","textContent"]),jr("div",{class:"uni-modal__ft"},[l&&jr("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),jr("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:r},[c],12,["onClick"])])])],40,["onTouchmove"]),[[Os,s.value]])]})}}});let Uv;const qv=je(()=>{I_.on("onHidePopup",()=>Uv.visible=!1)});let Qv;function Yv(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&Uv.editable&&(o.content=t),Qv&&Qv(o)}const Gv=rh("showModal",(e,{resolve:t})=>{qv(),Qv=t,Uv?(h(Uv,e),Uv.visible=!0):(Uv=Cn(e),ao(()=>(fv(Wv,Uv,Yv).mount(mv("u-a-m")),ao(()=>Uv.visible=!0))))},0,Jp),Xv={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==Zp.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Kv="uni-toast__icon",Jv={light:"#fff",dark:"rgba(255,255,255,0.9)"},Zv=e=>Jv[e],e_=ni({name:"Toast",props:Xv,setup(e){vc(),_c();const{Icon:t}=function(e){const t=Hn(Zv(zb())),n=({theme:e})=>t.value=Zv(e);Lo(()=>{e.visible?Hv(n):Fv(n)});const o=ds(()=>{switch(e.icon){case"success":return jr(pu(du,t.value,38),{class:Kv});case"error":return jr(pu(hu,t.value,38),{class:Kv});case"loading":return jr("i",{class:[Kv,"uni-loading"]},null,2);default:return null}});return{Icon:o}}(e),n=gv(e,{});return()=>{const{mask:o,duration:i,title:r,image:s}=e;return jr(_s,{name:"uni-fade"},{default:()=>[Vo(jr("uni-toast",{"data-duration":i},[o?jr("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:eu},null,40,["onTouchmove"]):"",s||t.value?jr("div",{class:"uni-toast"},[s?jr("img",{src:s,class:Kv},null,10,["src"]):t.value,jr("p",{class:"uni-toast__content"},[r])]):jr("div",{class:"uni-sample-toast"},[jr("p",{class:"uni-simple-toast__text"},[r])])],8,["data-duration"]),[[Os,n.value]])]})}}});let t_,n_,o_="";const i_=vt();function r_(e){t_?h(t_,e):(t_=Cn(h(e,{visible:!1})),ao(()=>{i_.run(()=>{No([()=>t_.visible,()=>t_.duration],([e,t])=>{if(e){if(n_&&clearTimeout(n_),"onShowLoading"===o_)return;n_=setTimeout(()=>{u_("onHideToast")},t)}else n_&&clearTimeout(n_)})}),I_.on("onHidePopup",()=>u_("onHidePopup")),fv(e_,t_,()=>{}).mount(mv("u-a-t"))})),setTimeout(()=>{t_.visible=!0},10)}const s_=rh("showToast",(e,{resolve:t,reject:n})=>{r_(e),o_="onShowToast",t()},0,ef),a_={icon:"loading",duration:1e8,image:""},l_=rh("showLoading",(e,{resolve:t,reject:n})=>{h(e,a_),r_(e),o_="onShowLoading",t()},0,Kp),c_=rh("hideLoading",(e,{resolve:t,reject:n})=>{u_("onHideLoading"),t()});function u_(e){const{t:t}=gc();if(!o_)return;let n="";if("onHideToast"===e&&"onShowToast"!==o_?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==o_&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);o_="",setTimeout(()=>{t_.visible=!1},10)}const d_=rh("loadFontFace",({family:e,source:t,desc:n},{resolve:o,reject:i})=>{(function(e,t,n){const o=document.fonts;if(o){const i=new FontFace(e,t,n);return i.load().then(()=>{o.add&&o.add(i)})}return new Promise(o=>{const i=document.createElement("style"),r=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:i,variant:s,featureSettings:a}=n;e&&r.push(`font-style:${e}`),t&&r.push(`font-weight:${t}`),o&&r.push(`font-stretch:${o}`),i&&r.push(`unicode-range:${i}`),s&&r.push(`font-variant:${s}`),a&&r.push(`font-feature-settings:${a}`)}i.innerText=`@font-face{font-family:"${e}";src:${t};${r.join(";")}}`,document.head.appendChild(i),o()})})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${em(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${em(t.substring(4,t.length-1))}')`:em(t),n).then(()=>{o()}).catch(e=>{i(`loadFontFace:fail ${e}`)})});function h_(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,I_.emit("onNavigationBarChange",{titleText:t})}Lo(t),di(t)}const p_=rh(Gp,(e,{resolve:t,reject:n})=>{!function(e,t,n,o,i){if(!e)return i("page not found");const{navigationBar:r}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:i,timingFunc:s}=o;e&&(r.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(r.backgroundColor=t),r.duration=i+"ms",r.timingFunc=s;break;case"showNavigationBarLoading":r.loading=!0;break;case"hideNavigationBarLoading":r.loading=!1;break;case Gp:const{title:a}=n;r.titleText=a}o()}(yu(),Gp,e,t,n)}),f_=rh("pageScrollTo",({scrollTop:e,selector:t,duration:n},{resolve:o})=>{!function(e,t){if(_(e)){const t=document.querySelector(e);if(t){const{top:n}=t.getBoundingClientRect();e=n+window.pageYOffset;const o=document.querySelector("uni-page-head");o&&(e-=o.offsetHeight)}}e<0&&(e=0);const n=document.documentElement,{clientHeight:o,scrollHeight:i}=n;if(e=Math.min(e,i-o),0===t)return void(n.scrollTop=document.body.scrollTop=e);if(window.scrollY===e)return;const r=t=>{if(t<=0)return void window.scrollTo(0,e);const n=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+n/t*10),r(t-10)})};r(t)}(t||e||0,n),o()},0,Xp),m_=rh(tf,(e,{resolve:t})=>{I_.invokeViewMethod(tf,{},bu()),t()}),g_=["text","iconPath","iconfont","selectedIconPath","visible"],y_=["color","selectedColor","backgroundColor","borderStyle","borderColor","midButton"],b_=["badge","redDot"];function v_(e,t,n){t.forEach(function(t){m(n,t)&&(e[t]=n[t])})}function __(e,t,n,o){var i;let r=!1;const s=Nf();if(s.length&&Ef(s[s.length-1]).meta.isTabBar&&(r=!0),!r)return o("not TabBar page");const{index:a}=t;if("number"==typeof a){const e=null==(i=null==__uniConfig?void 0:__uniConfig.tabBar)?void 0:i.list.length;if(!e||a>=e)return o("tabbar item not found")}const l=vf();switch(e){case of:l.shown=!0;break;case nf:l.shown=!1;break;case"setTabBarItem":const e=l.list[a],n=e.pagePath;v_(e,g_,t);const{pagePath:o}=t;if(o){const e=De(o);e!==n&&function(e,t,n){const o=Eu(De(t));if(o){const{meta:e}=o;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const i=Eu(De(n));if(i){const{meta:t}=i;t.tabBarIndex=e,t.isQuit=t.isTabBar=!0;const o=__uniConfig.tabBar;o&&o.list&&o.list[e]&&(o.list[e].pagePath=Ne(n))}}(a,n,e)}break;case"setTabBarStyle":v_(l,y_,t);break;case"showTabBarRedDot":v_(l.list[a],b_,{badge:"",redDot:!0});break;case"setTabBarBadge":v_(l.list[a],b_,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":v_(l.list[a],b_,{badge:"",redDot:!1})}n()}const w_=rh(nf,(e,{resolve:t,reject:n})=>{__(nf,e||{},t,n)}),x_=rh(of,(e,{resolve:t,reject:n})=>{__(of,e||{},t,n)}),S_="0px",k_=id({name:"Layout",setup(e,{emit:t}){const n=Hn(null);ru({"--status-bar-height":S_,"--top-window-height":S_,"--window-left":S_,"--window-right":S_,"--window-margin":S_,"--tab-bar-height":S_});const o=function(){const e=Gl();return{routeKey:ds(()=>Ff("/"+e.meta.route,wd())),isTabBar:ds(()=>e.meta.isTabBar),routeCache:Wf}}(),{layoutState:i,windowState:r}=function(){_d();{const e=Cn({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return No(()=>e.marginWidth,e=>ru({"--window-margin":e+"px"})),No(()=>e.leftWindowWidth+e.marginWidth,e=>{ru({"--window-left":e+"px"})}),No(()=>e.rightWindowWidth+e.marginWidth,e=>{ru({"--window-right":e+"px"})}),{layoutState:e,windowState:ds(()=>({}))}}}();!function(e,t){const n=_d();function o(){const o=document.body.clientWidth,i=Nf();let r={};if(i.length>0){r=Ef(i[i.length-1]).meta}else{const e=Eu(n.path,!0);e&&(r=e.meta)}const s=parseInt(String((m(r,"maxWidth")?r.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,ao(()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")})):(e.marginWidth=0,ao(()=>{const e=t.value;e&&e.removeAttribute("style")}))}No([()=>n.path],o),xi(()=>{o(),window.addEventListener("resize",o)})}(i,n);const s=function(e){const t=Hn(!1);return ds(()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value}))}(!1);return()=>{const e=function(e){const t=function({routeKey:e,isTabBar:t,routeCache:n}){return jr(Ql,null,{default:So(({Component:o})=>[(Ir(),zr(ci,{matchBy:"key",cache:n},[(Ir(),zr(Po(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))]),_:1})}(e);return t}(o);return jr("uni-app",{ref:n,class:s.value},[e,!1],2)}}});const C_=rh(Ap,(A_=Ap,(e,{reject:t})=>t(function(e){return`method 'uni.${e}' not supported`}(A_))));var A_;const T_=h(zc,{publishHandler(e,t,n){I_.subscribeHandler(e,t,n)}}),I_=h(Wu,{publishHandler(e,t,n){T_.subscribeHandler(e,t,n)}}),B_=id({name:"PageBody",setup(e,t){const n=!1,o=Hn(null),i=Hn(null);return No(()=>n.enablePullDownRefresh,()=>{i.value=null},{immediate:!0}),()=>jr(xr,null,[!1,jr("uni-page-wrapper",Yr({ref:o},i.value),[jr("uni-page-body",null,[Mi(t.slots,"default")]),null],16)])}}),E_=id({name:"Page",setup(e,t){let n=vd(wd());n.navigationBar;const o={};return h_(n),()=>jr("uni-page",{"data-page":n.route,style:o},[P_(t),null])}});function P_(e){return Ir(),zr(B_,{key:0},{default:So(()=>[Mi(e.slots,"page")]),_:3})}const M_={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=fh;const z_=Object.assign({}),O_=Object.assign;window.__uniConfig=O_({globalStyle:{backgroundColor:"#F8F8F8",navigationBar:{backgroundColor:"#F8F8F8",titleText:"uni-app",type:"default",titleColor:"#000000"},isNVue:!1},uniIdRouter:{},compilerVersion:"4.76"},{appId:"__UNI__5E9BE91",appName:"shuibei",appVersion:"1.0.0",appVersionCode:"100",async:M_,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(z_).reduce((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return O_(e[n]||(e[n]={}),z_[t].default),e},{}),router:{mode:"hash",base:"./",assets:"assets",routerBase:"/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const R_={delay:M_.delay,timeout:M_.timeout,suspensible:M_.suspensible};M_.loading&&(R_.loadingComponent={name:"SystemAsyncLoading",render:()=>jr(Bo(M_.loading))}),M_.error&&(R_.errorComponent={name:"SystemAsyncError",props:["error"],render(){return jr(Bo(M_.error),{error:this.error})}});const L_=()=>i(()=>import("./pages-index-index.C7XqCSpi.js"),__vite__mapDeps([0,1]),import.meta.url).then(e=>ob(e.default||e)),D_=ii(O_({loader:L_},R_)),N_=()=>i(()=>import("./pages-article_details-index.B9H0x_xN.js"),__vite__mapDeps([2,3,4,5]),import.meta.url).then(e=>ob(e.default||e)),$_=ii(O_({loader:N_},R_)),j_=()=>i(()=>import("./pages-goods_details-index.C_gggEln.js"),__vite__mapDeps([6,3,4,7]),import.meta.url).then(e=>ob(e.default||e)),H_=ii(O_({loader:j_},R_));function F_(e,t){return Ir(),zr(E_,null,{page:So(()=>[jr(e,O_({},t,{ref:"page"}),null,512)]),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=Zy(),t=e&&e.$route&&e.$route.query||{};return()=>F_(D_,t)}},loader:L_,meta:{isQuit:!0,isEntry:!0,navigationBar:{titleText:"水贝商城",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/article_details/index",component:{setup(){const e=Zy(),t=e&&e.$route&&e.$route.query||{};return()=>F_($_,t)}},loader:N_,meta:{navigationBar:{titleText:"文章详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/goods_details/index",component:{setup(){const e=Zy(),t=e&&e.$route&&e.$route.query||{};return()=>F_(H_,t)}},loader:j_,meta:{navigationBar:{style:"custom",type:"default",titleColor:"#ffffff"},isNVue:!1}}].map(e=>(e.meta.route=(e.alias||e.path).slice(1),e));const V_={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};nb(V_,{init:eb,setup(e){const t=_d(),n=()=>{var n;n=e,Object.keys(gp).forEach(e=>{gp[e].forEach(t=>{vi(e,t,n)})});const{onLaunch:o,onShow:i,onPageNotFound:r}=e,s=function({path:e,query:t}){return h(_m,{path:e,query:t}),h(wm,_m),h({},_m)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:nt(t.query)});if(o&&D(o,s),i&&D(i,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};yf(),r&&D(r,e)}};return nr(Ol).isReady().then(n),xi(()=>{window.addEventListener("resize",rt(ib,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",rb),document.addEventListener("visibilitychange",sb),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{I_.emit(ue,{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()}),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(Ir(),zr(k_));e.setup=(e,o)=>{const i=t&&t(e,o);return v(i)?n:i},e.render=n}});const W_=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n};const U_=W_({props:{modelValue:{type:[String,Number],default:""},title:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[]},valueKey:{type:String,default:"value"},labelKey:{type:String,default:"name"}},data:()=>({show:!1,current:""}),created(){this.modelValue&&this.options.forEach(e=>{e[this.valueKey]==this.modelValue&&(this.current=e[this.labelKey])})},emits:["update:modelValue"],watch:{modelValue(){this.options.forEach(e=>{e[this.valueKey]==this.modelValue&&(this.current=e[this.labelKey])})}},methods:{hideKeyboard(){nv()},select(e){this.$emit("update:modelValue",e[this.valueKey]),this.current=e[this.labelKey]}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-input"),a=Ay,l=Bo("up-action-sheet");return Ir(),zr(a,{class:"u-action-sheet-data"},{default:So(()=>[jr(a,{class:"u-action-sheet-data__trigger"},{default:So(()=>[Mi(e.$slots,"trigger",{},void 0,!0),e.$slots.trigger?Wr("",!0):(Ir(),zr(s,{key:0,modelValue:i.current,disabled:"",disabledColor:"#ffffff",placeholder:n.title,border:"none"},null,8,["modelValue","placeholder"])),jr(a,{onClick:t[0]||(t[0]=e=>i.show=!0),class:"u-action-sheet-data__trigger__cover"})]),_:3}),jr(l,{show:i.show,actions:n.options,title:n.title,safeAreaInsetBottom:"",description:n.description,onClose:t[1]||(t[1]=e=>i.show=!1),onSelect:r.select},null,8,["show","actions","title","description","onSelect"])]),_:3})}],["__scopeId","data-v-c3d69d7a"]]),q_=Object.freeze(Object.defineProperty({__proto__:null,default:U_},Symbol.toStringTag,{value:"Module"})),Q_={v:"3",version:"3",type:["primary","success","info","error","warning"],color:{"u-primary":"#2979ff","u-warning":"#ff9900","u-success":"#19be6b","u-error":"#fa3534","u-info":"#909399","u-main-color":"#303133","u-content-color":"#606266","u-tips-color":"#909399","u-light-color":"#c0c4cc","up-primary":"#2979ff","up-warning":"#ff9900","up-success":"#19be6b","up-error":"#fa3534","up-info":"#909399","up-main-color":"#303133","up-content-color":"#606266","up-tips-color":"#909399","up-light-color":"#c0c4cc"},iconUrl:"https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf",customIcon:{family:"",url:""},customIcons:{},unit:"px",interceptor:{navbarLeftClick:null},loadFontOnce:!1},Y_={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965},G_={primary:"#3c9cff",info:"#909399",default:"#909399",warning:"#f9ae3d",error:"#f56c6c",success:"#5ac725",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"},{toString:X_}=Object.prototype;function K_(e){return"[object Array]"===X_.call(e)}function J_(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),K_(e))for(let n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}function Z_(){const e={};function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=Z_(e[n],t):e[n]="object"==typeof t?Z_({},t):t}for(let n=0,o=arguments.length;n<o;n++)J_(arguments[n],t);return e}function ew(e){return void 0===e}function tw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nw(e,t){if(!t)return e;let n;if(o=t,"undefined"!=typeof URLSearchParams&&o instanceof URLSearchParams)n=t.toString();else{const e=[];J_(t,(t,n)=>{null!=t&&(K_(t)?n=`${n}[]`:t=[t],J_(t,t=>{!function(e){return"[object Date]"===X_.call(e)}(t)?function(e){return null!==e&&"object"==typeof e}(t)&&(t=JSON.stringify(t)):t=t.toISOString(),e.push(`${tw(n)}=${tw(t)}`)}))}),n=e.join("&")}var o;if(n){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}const ow=(e,t)=>{const n={};return e.forEach(e=>{ew(t[e])||(n[e]=t[e])}),n},iw=e=>(e=>new Promise((t,n)=>{const o=nw((i=e.baseURL,r=e.url,i&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)?function(e,t){return t?`${e.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`:e}(i,r):r),e.params);var i,r;const s={url:o,header:e.header,complete:i=>{e.fullPath=o,i.config=e;try{"string"==typeof i.data&&(i.data=JSON.parse(i.data))}catch(r){}!function(e,t,n){const{validateStatus:o}=n.config,i=n.statusCode;!i||o&&!o(i)?t(n):e(n)}(t,n,i)}};let a;if("UPLOAD"===e.method){delete s.header["content-type"],delete s.header["Content-Type"];const t={filePath:e.filePath,name:e.name},n=["files","file","timeout","formData"];a=Dv({...s,...t,...ow(n,e)})}else if("DOWNLOAD"===e.method)ew(e.timeout)||(s.timeout=e.timeout),a=Rv(s);else{const t=["data","method","timeout","dataType","responseType","withCredentials"];a=Bv({...s,...ow(t,e)})}e.getTask&&e.getTask(a,e)}))(e);function rw(){this.handlers=[]}rw.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},rw.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},rw.prototype.forEach=function(e){this.handlers.forEach(t=>{null!==t&&e(t)})};const sw=(e,t,n)=>{const o={};return e.forEach(e=>{ew(n[e])?ew(t[e])||(o[e]=t[e]):o[e]=n[e]}),o},aw={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,withCredentials:!1,validateStatus:function(e){return e>=200&&e<300}};var lw=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch(a){t=function(){}}try{n=Set}catch(a){n=function(){}}try{o=Promise}catch(a){o=function(){}}function i(r,a,l,c,u){"object"==typeof a&&(l=a.depth,c=a.prototype,u=a.includeNonEnumerable,a=a.circular);var d=[],h=[],p="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function r(l,f){if(null===l)return null;if(0===f)return l;var m,g;if("object"!=typeof l)return l;if(e(l,t))m=new t;else if(e(l,n))m=new n;else if(e(l,o))m=new o(function(e,t){l.then(function(t){e(r(t,f-1))},function(e){t(r(e,f-1))})});else if(i.__isArray(l))m=[];else if(i.__isRegExp(l))m=new RegExp(l.source,s(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(i.__isDate(l))m=new Date(l.getTime());else{if(p&&Buffer.isBuffer(l))return Buffer.from?m=Buffer.from(l):(m=new Buffer(l.length),l.copy(m)),m;e(l,Error)?m=Object.create(l):void 0===c?(g=Object.getPrototypeOf(l),m=Object.create(g)):(m=Object.create(c),g=c)}if(a){var y=d.indexOf(l);if(-1!=y)return h[y];d.push(l),h.push(m)}for(var b in e(l,t)&&l.forEach(function(e,t){var n=r(t,f-1),o=r(e,f-1);m.set(n,o)}),e(l,n)&&l.forEach(function(e){var t=r(e,f-1);m.add(t)}),l){Object.getOwnPropertyDescriptor(l,b)&&(m[b]=r(l[b],f-1));try{if("undefined"===Object.getOwnPropertyDescriptor(l,b).set)continue;m[b]=r(l[b],f-1)}catch(k){if(k instanceof TypeError)continue;if(k instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);for(b=0;b<v.length;b++){var _=v[b];(!(x=Object.getOwnPropertyDescriptor(l,_))||x.enumerable||u)&&(m[_]=r(l[_],f-1),Object.defineProperty(m,_,x))}}if(u){var w=Object.getOwnPropertyNames(l);for(b=0;b<w.length;b++){var x,S=w[b];(x=Object.getOwnPropertyDescriptor(l,S))&&x.enumerable||(m[S]=r(l[S],f-1),Object.defineProperty(m,S,x))}}return m}(r,l)}function r(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=r,i.__isDate=function(e){return"object"==typeof e&&"[object Date]"===r(e)},i.__isArray=function(e){return"object"==typeof e&&"[object Array]"===r(e)},i.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===r(e)},i.__getRegExpFlags=s,i}();const cw=new class{constructor(e={}){var t;t=e,"[object Object]"!==Object.prototype.toString.call(t)&&(e={},console.warn("设置全局参数必须接收一个Object")),this.config=lw({...aw,...e}),this.interceptors={request:new rw,response:new rw}}setConfig(e){this.config=e(this.config)}middleware(e){e=((e,t={})=>{const n=t.method||e.method||"GET";let o={baseURL:e.baseURL||"",method:n,url:t.url||"",params:t.params||{},custom:{...e.custom||{},...t.custom||{}},header:Z_(e.header||{},t.header||{})};if(o={...o,...sw(["getTask","validateStatus"],e,t)},"DOWNLOAD"===n)ew(t.timeout)?ew(e.timeout)||(o.timeout=e.timeout):o.timeout=t.timeout;else if("UPLOAD"===n)delete o.header["content-type"],delete o.header["Content-Type"],["files","file","filePath","name","timeout","formData"].forEach(e=>{ew(t[e])||(o[e]=t[e])}),ew(o.timeout)&&!ew(e.timeout)&&(o.timeout=e.timeout);else{const n=["data","timeout","dataType","responseType","withCredentials"];o={...o,...sw(n,e,t)}}return o})(this.config,e);const t=[iw,void 0];let n=Promise.resolve(e);for(this.interceptors.request.forEach(e=>{t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(e=>{t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n}request(e={}){return this.middleware(e)}get(e,t={}){return this.middleware({url:e,method:"GET",...t})}post(e,t,n={}){return this.middleware({url:e,data:t,method:"POST",...n})}put(e,t,n={}){return this.middleware({url:e,data:t,method:"PUT",...n})}delete(e,t,n={}){return this.middleware({url:e,data:t,method:"DELETE",...n})}connect(e,t,n={}){return this.middleware({url:e,data:t,method:"CONNECT",...n})}head(e,t,n={}){return this.middleware({url:e,data:t,method:"HEAD",...n})}options(e,t,n={}){return this.middleware({url:e,data:t,method:"OPTIONS",...n})}trace(e,t,n={}){return this.middleware({url:e,data:t,method:"TRACE",...n})}upload(e,t={}){return t.url=e,t.method="UPLOAD",this.middleware(t)}download(e,t={}){return t.url=e,t.method="DOWNLOAD",this.middleware(t)}};function uw(e){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(e)}function dw(e){switch(typeof e){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(const t in e)return!1;return!0}return!1}function hw(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function pw(e){return"function"==typeof e}const fw={email:function(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)},mobile:function(e){return/^1[23456789]\d{9}$/.test(e)},url:function(e){return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(e)},date:function(e){if(!e)return!1;if("number"==typeof e)return(10===e.toString().length||13===e.toString().length)&&!isNaN(new Date(e).getTime());if("string"==typeof e){const t=Number(e);if(!isNaN(t)&&(10===t.toString().length||13===t.toString().length))return!isNaN(new Date(t).getTime());if(e.length<10||e.length>19)return!1;if(!/^\d{4}[-\/]\d{2}[-\/]\d{2}( \d{1,2}:\d{2}(:\d{2})?)?$/.test(e))return!1;const n=new Date(e);return!isNaN(n.getTime())}return!1},dateISO:function(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:uw,digits:function(e){return/^\d+$/.test(e)},idCard:function(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)},carNo:function(e){const t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?n.test(e):8===e.length&&t.test(e)},amount:function(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)},chinese:function(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)},letter:function(e){return/^[a-zA-Z]*$/.test(e)},enOrNum:function(e){return/^[0-9a-zA-Z]*$/g.test(e)},contains:function(e,t){return e.indexOf(t)>=0},range:function(e,t){return e>=t[0]&&e<=t[1]},rangeLength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},empty:dw,isEmpty:dw,jsonString:function(e){if("string"==typeof e)try{const t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(t){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:function(e){return"[object Object]"===Object.prototype.toString.call(e)},array:hw,code:function(e,t=6){return new RegExp(`^\\d{${t}}$`).test(e)},func:pw,promise:function(e){return function(e){return"[object Promise]"===Object.prototype.toString.call(e)}(e)&&pw(e.then)&&pw(e.catch)},video:function(e){return/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i.test(e)},image:function(e){const t=e.split("?")[0];return/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i.test(t)},regExp:function(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)},string:function(e){return"string"==typeof e}};function mw(e,t=15){return+parseFloat(Number(e).toPrecision(t))}function gw(e){const t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function yw(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));const t=gw(e);return t>0?mw(Number(e)*Math.pow(10,t)):Number(e)}function bw(e){(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&console.warn(`${e} 超出了精度限制，结果可能不正确`)}function vw(e,t){const[n,o,...i]=e;let r=t(n,o);return i.forEach(e=>{r=t(r,e)}),r}function _w(...e){if(e.length>2)return vw(e,_w);const[t,n]=e,o=yw(t),i=yw(n),r=gw(t)+gw(n),s=o*i;return bw(s),s/Math.pow(10,r)}function ww(...e){if(e.length>2)return vw(e,ww);const[t,n]=e,o=yw(t),i=yw(n);return bw(o),bw(i),_w(o/i,mw(Math.pow(10,gw(n)-gw(t))))}function xw(e=0,t=0,n=0){return Math.max(e,Math.min(t,Number(n)))}function Sw(e,t=!1){return uw(e)?t?`${e}px`:Number(e):/(rpx|upx)$/.test(e)?t?`${fh(parseInt(e))}px`:Number(fh(parseInt(e))):t?`${parseInt(e)}px`:parseInt(e)}function kw(e=30){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Cw(){return $b().platform.toLowerCase()}function Aw(){return Hb()}function Tw(){let e={};return e=Rb(),e}function Iw(){let e={};return e=$b(),e}function Bw(e,t){if(e>=0&&t>0&&t>=e){const n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}function Ew(e=32,t=!0,n=null){const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(n=n||o.length,e)for(let r=0;r<e;r++)i[r]=o[0|Math.random()*n];else{let e;i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(let t=0;t<36;t++)i[t]||(e=0|16*Math.random(),i[t]=o[19==t?3&e|8:e])}return t?(i.shift(),`u${i.join("")}`):i.join("")}function Pw(e=void 0){let t=this.$parent;for(;t;){if(e=e.replace(/up-([a-zA-Z0-9-_]+)/g,"u-$1"),!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}function Mw(e,t="object"){if(dw(e)||"object"==typeof e&&"object"===t||"string"===t&&"string"==typeof e)return e;if("object"===t){const t=(e=jw(e)).split(";"),n={};for(let e=0;e<t.length;e++)if(t[e]){const o=t[e].split(":");n[jw(o[0])]=jw(o[1])}return n}let n="";return"object"==typeof e&&e.forEach((e,t)=>{const o=t.replace(/([A-Z])/g,"-$1").toLowerCase();n+=`${o}:${e};`}),jw(n)}function zw(e="auto",t=""){return t||(t=Q_.unit||"px"),"rpx"==t&&uw(String(e))&&(e*=2),uw(e=String(e))?`${e}${t}`:e}function Ow(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!=typeof e&&"function"!=typeof e)return e;const t=hw(e)?[]:{};for(const n in e)e.hasOwnProperty(n)&&(t[n]="object"==typeof e[n]?Ow(e[n]):e[n]);return t}function Rw(e={},t={}){let n=Ow(e);if("object"!=typeof n||"object"!=typeof t)return!1;for(const o in t)t.hasOwnProperty(o)&&(o in n?null==t[o]||"object"!=typeof n[o]||"object"!=typeof t[o]?n[o]=t[o]:n[o].concat&&t[o].concat?n[o]=n[o].concat(t[o]):n[o]=Rw(n[o],t[o]):n[o]=t[o]);return n}function Lw(e,t={}){if("object"!=typeof e||"object"!=typeof t)return!1;for(const n in t)t.hasOwnProperty(n)&&(n in e?null==t[n]||"object"!=typeof e[n]||"object"!=typeof t[n]?e[n]=t[n]:e[n].concat&&t[n].concat?e[n]=e[n].concat(t[n]):e[n]=Lw(e[n],t[n]):e[n]=t[n]);return e}function Dw(e){}function Nw(e=[]){return e.sort(()=>Math.random()-.5)}function $w(e=null,t="yyyy-mm-dd"){let n;n=e?/^\d{10}$/.test(e.toString().trim())?new Date(1e3*e):"string"==typeof e&&/^\d+$/.test(e.trim())?new Date(Number(e)):"string"==typeof e&&/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(e)?new Date(e):new Date("string"==typeof e?e.replace(/-/g,"/"):e):new Date;const o={y:n.getFullYear().toString(),m:(n.getMonth()+1).toString().padStart(2,"0"),d:n.getDate().toString().padStart(2,"0"),h:n.getHours().toString().padStart(2,"0"),M:n.getMinutes().toString().padStart(2,"0"),s:n.getSeconds().toString().padStart(2,"0")};for(const i in o){const[e]=new RegExp(`${i}+`).exec(t)||[];if(e){const n="y"===i&&2===e.length?2:0;t=t.replace(e,o[i].slice(n))}}return t}function jw(e,t="both"){return e=String(e),"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e}function Hw(e={},t=!0,n="brackets"){const o=t?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");for(const r in e){const t=e[r];if(!(["",void 0,null].indexOf(t)>=0))if(t.constructor===Array)switch(n){case"indices":for(let n=0;n<t.length;n++)i.push(`${r}[${n}]=${t[n]}`);break;case"brackets":default:t.forEach(e=>{i.push(`${r}[]=${e}`)});break;case"repeat":t.forEach(e=>{i.push(`${r}=${e}`)});break;case"comma":let e="";t.forEach(t=>{e+=(e?",":"")+t}),i.push(`${r}=${e}`)}else i.push(`${r}=${t}`)}return i.length?o+i.join("&"):""}function Fw(e,t=2e3){s_({title:String(e),icon:"none",duration:t})}function Vw(e="success",t=!1){-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");let n="";switch(e){case"primary":case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;default:n="checkmark-circle"}return t&&(n+="-fill"),n}function Ww(e,t=0,n=".",o=","){e=`${e}`.replace(/[^0-9+-Ee.]/g,"");const i=isFinite(+e)?+e:0,r=isFinite(+t)?Math.abs(t):0,s=void 0===o?",":o,a=void 0===n?".":n;let l="";l=(r?function(e,t){const n=Math.pow(10,t);let o=ww(Math.round(Math.abs(_w(e,n))),n);return e<0&&0!==o&&(o=_w(o,-1)),o}(i,r)+"":`${Math.round(i)}`).split(".");const c=/(-?\d+)(\d{3})/;for(;c.test(l[0]);)l[0]=l[0].replace(c,`$1${s}$2`);return(l[1]||"").length<r&&(l[1]=l[1]||"",l[1]+=new Array(r-l[1].length+1).join("0")),l.join(a)}function Uw(e){return`00${e}`.slice(-2)}function qw(e,t){const n=Pw.call(e,"u-form-item"),o=Pw.call(e,"u-form");n&&o&&o.validateField(n.prop,()=>{},t)}function Qw(e,t){if("object"!=typeof e||null==e)return"";if("string"!=typeof t||""===t)return"";if(-1!==t.indexOf(".")){const n=t.split(".");let o=e[n[0]]||{};for(let e=1;e<n.length;e++)o&&(o=o[n[e]]);return o}return e[t]}function Yw(e,t,n){if("object"!=typeof e||null==e)return;const o=function(e,t,n){if(1!==t.length)for(;t.length>1;){const i=t[0];e[i]&&"object"==typeof e[i]||(e[i]={}),t.shift(),o(e[i],t,n)}else e[t[0]]=n};if("string"!=typeof t||""===t);else if(-1!==t.indexOf(".")){const i=t.split(".");o(e,i,n)}else e[t]=n}function Gw(){const e=Df();return`/${e[e.length-1].route||""}`}function Xw(e,t=95){const n=function(e){const t=e.toLowerCase().trim();if(t.startsWith("#")){const e=t.replace("#",""),n=3===e.length?e.split("").map(e=>e+e).join(""):e;return{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16)}}const n=t.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(n)return{r:+n[1],g:+n[2],b:+n[3]};throw new Error("Invalid color format")}(e),o=function(e,t,n){e/=255,t/=255,n/=255;const o=Math.max(e,t,n),i=Math.min(e,t,n);let r,s,a=(o+i)/2;if(o===i)r=s=0;else{const l=o-i;switch(s=a>.5?l/(2-o-i):l/(o+i),o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r=(60*r).toFixed(1)}return{h:+r,s:+(100*s).toFixed(1),l:+(100*a).toFixed(1)}}(n.r,n.g,n.b),i={h:o.h,s:o.s,l:Math.min(t,95)};return function(e,t,n){n/=100;const o=t*Math.min(n,1-n)/100,i=t=>{const i=(t+e/30)%12,r=n-o*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*r).toString(16).padStart(2,"0")};return`#${i(0)}${i(8)}${i(4)}`}(i.h,i.s,i.l)}String.prototype.padStart||(String.prototype.padStart=function(e,t=" "){if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");const n=this;if(n.length>=e)return String(n);const o=e-n.length;let i=Math.ceil(o/t.length);for(;i>>=1;)t+=t,1===i&&(t+=t);return t.slice(0,o)+n});const Kw={range:xw,getPx:Sw,sleep:kw,os:Cw,sys:Aw,getWindowInfo:Tw,random:Bw,guid:Ew,$parent:Pw,addStyle:Mw,addUnit:zw,deepClone:Ow,deepMerge:Rw,shallowMerge:Lw,error:Dw,randomArray:Nw,timeFormat:$w,timeFrom:function(e=null,t="yyyy-mm-dd"){null==e&&(e=Number(new Date)),10==(e=parseInt(e)).toString().length&&(e*=1e3);let n=(new Date).getTime()-e;n=parseInt(n/1e3);let o="";switch(!0){case n<300:o="刚刚";break;case n>=300&&n<3600:o=`${parseInt(n/60)}分钟前`;break;case n>=3600&&n<86400:o=`${parseInt(n/3600)}小时前`;break;case n>=86400&&n<2592e3:o=`${parseInt(n/86400)}天前`;break;default:o=!1===t?n>=2592e3&&n<31536e3?`${parseInt(n/2592e3)}个月前`:`${parseInt(n/31536e3)}年前`:$w(e,t)}return o},trim:jw,queryParams:Hw,toast:Fw,type2icon:Vw,priceFormat:Ww,getDuration:function(e,t=!0){const n=parseInt(e);return t?/s$/.test(e)?e:e>30?`${e}ms`:`${e}s`:/ms$/.test(e)?n:/s$/.test(e)?n>30?n:1e3*n:n},padZero:Uw,formValidate:qw,getProperty:Qw,setProperty:Yw,page:Gw,pages:function(){return Df()},getValueByPath:function(e,t){return t.split(".").reduce((e,t)=>e&&void 0!==e[t]?e[t]:void 0,e)},genLightColor:Xw};let Jw={lang:fp(),locales:{en:{"up.common.cancel":"Cancel","up.common.confirm":"Confirm","up.common.start":"Start","up.common.end":"End","up.common.stop":"Stop","up.common.copy":"Copy","up.common.none":"None","up.common.tip":"Tip","up.common.success":"Success","up.common.fail":"Fail","up.common.close":"Close","up.common.preview":"Preview","up.common.re-select":"Re-select","up.common.rotate":"Rotate","up.common.pleaseChoose":"Please choose","up.common.loading":"Loading","up.common.loading2":"Loading","up.common.inOperation":"In operation","up.common.settings":"Settings","up.common.retry":"Retry","up.common.search":"Search","up.common.more":"More","up.common.video":"Video","up.common.file":"File","up.week.one":"Mon","up.week.two":"Tue","up.week.three":"Wed","up.week.four":"Thu","up.week.five":"Fri","up.week.six":"Sat","up.week.seven":"Sun","up.barcode.error":"Failed to generate barcode","up.calendar.chooseDates":"Date selection","up.calendar.disabled":"This date is disabled","up.calendar.daysExceed":"The number of selected days cannot exceed {days} days","up.cityLocate.locateCity":"Locate city","up.cityLocate.fail":"Location failed, please click to retry.","up.cityLocate.locating":"Locating","up.code.send":"Get verification code","up.code.resendAfter":"Resend after X seconds","up.code.resend":"Resend","up.cropper.emptyWidhtOrHeight":"The width or height of the cropping box is not set","up.empty.car":"Shopping cart is empty","up.empty.page":"Page not found","up.empty.search":"No search results","up.empty.address":"No shipping address","up.empty.wifi":"No WiFi","up.empty.order":"Order is empty","up.empty.coupon":"No coupons","up.empty.favor":"No favorites","up.empty.permission":"No permission","up.empty.history":"No history","up.empty.news":"No news list","up.empty.message":"Message list is empty","up.empty.list":"List is empty","up.empty.data":"Data is empty","up.empty.comment":"No comments","up.link.copyed":"Link copied, please open in browser","up.loadmoe.loadmore":"Load more","up.loadmoe.nomore":"No more","up.noNetwork.text":"Oops, network signal lost","up.noNetwork.pleaseCheck":"Please check the network, or go to","up.noNetwork.connect":"Network connected","up.noNetwork.disconnect":"No network connection","up.pagination.previous":"Previous","up.pagination.next":"Next","up.pullRefresh.pull":"Pull to refresh","up.pullRefresh.release":"Release to refresh","up.pullRefresh.refreshing":"Refreshing","up.readMore.expand":"Expand to read more","up.readMore.fold":"Collapse","up.search.placeholder":"Please enter keywords","up.signature.penSize":"Stroke size","up.signature.penColor":"Stroke color","up.upload.sizeExceed":"Size limit exceeded","up.upload.uploading":"Uploading","up.upload.previewImageFail":"Failed to preview image","up.upload.previewVideoFail":"Failed to preview video"},es:{"up.common.cancel":"Cancelar","up.common.confirm":"Confirmar","up.common.start":"Iniciar","up.common.end":"Finalizar","up.common.stop":"Detener","up.common.copy":"Copiar","up.common.none":"Ninguno","up.common.tip":"Consejo","up.common.success":"Éxito","up.common.fail":"Fallido","up.common.close":"Cerrar","up.common.preview":"Vista previa","up.common.re-select":"Re seleccionar","up.common.rotate":"Rotar","up.common.pleaseChoose":"Por favor seleccione","up.common.loading":"Cargando","up.common.loading2":"Cargando","up.common.inOperation":"En operación","up.common.settings":"Configuración","up.common.retry":"Reintentar","up.common.search":"Buscar","up.common.more":"Más","up.common.video":"Vídeo","up.common.file":"Archivo","up.week.one":"Lun","up.week.two":"Mar","up.week.three":"Mié","up.week.four":"Jue","up.week.five":"Vie","up.week.six":"Sáb","up.week.seven":"Dom","up.barcode.error":"Error al generar código de barras","up.calendar.chooseDates":"Selección de fecha","up.calendar.disabled":"Esta fecha está deshabilitada","up.calendar.daysExceed":"Los días seleccionados no pueden exceder {days} días","up.cityLocate.locateCity":"Localizar ciudad","up.cityLocate.fail":"Error de localización, haga clic para reintentar.","up.cityLocate.locating":"Localizando","up.code.send":"Obtener código de verificación","up.code.resendAfter":"Reenviar en X segundos","up.code.resend":"Reenviar","up.cropper.emptyWidhtOrHeight":"El ancho o alto del recorte no está configurado","up.empty.car":"Carrito de compras vacío","up.empty.page":"Página no encontrada","up.empty.search":"Sin resultados de búsqueda","up.empty.address":"Sin dirección de envío","up.empty.wifi":"Sin WiFi","up.empty.order":"Pedido vacío","up.empty.coupon":"Sin cupones","up.empty.favor":"Sin favoritos","up.empty.permission":"Sin permisos","up.empty.history":"Sin historial","up.empty.news":"Sin noticias","up.empty.message":"Lista de mensajes vacía","up.empty.list":"Lista vacía","up.empty.data":"Datos vacíos","up.empty.comment":"Sin comentarios","up.link.copyed":"Enlace copiado, por favor abra en el navegador","up.loadmoe.loadmore":"Cargar más","up.loadmoe.nomore":"No hay más","up.noNetwork.text":"¡Ups! Se perdió la señal de red","up.noNetwork.pleaseCheck":"Por favor verifique la red, o vaya a","up.noNetwork.connect":"Red conectada","up.noNetwork.disconnect":"Sin conexión a internet","up.pagination.previous":"Página anterior","up.pagination.next":"Página siguiente","up.pullRefresh.pull":"Deslizar hacia abajo para actualizar","up.pullRefresh.release":"Soltar para actualizar","up.pullRefresh.refreshing":"Actualizando","up.readMore.expand":"Expandir para leer más","up.readMore.fold":"Contraer","up.search.placeholder":"Ingrese palabra clave","up.signature.penSize":"Tamaño del trazo","up.signature.penColor":"Color del trazo","up.upload.sizeExceed":"Excede el límite de tamaño","up.upload.uploading":"Subiendo","up.upload.previewImageFail":"Error al previsualizar imagen","up.upload.previewVideoFail":"Error al previsualizar vídeo"},fr:{"up.common.cancel":"Annuler","up.common.confirm":"Confirmer","up.common.start":"Démarrer","up.common.end":"Terminer","up.common.stop":"Arrêter","up.common.copy":"Copier","up.common.none":"Aucun","up.common.tip":"Conseil","up.common.success":"Succès","up.common.fail":"Échec","up.common.close":"Fermer","up.common.preview":"Aperçu","up.common.re-select":"Resélectionner","up.common.rotate":"Rotation","up.common.pleaseChoose":"Veuillez choisir","up.common.loading":"Chargement","up.common.loading2":"Chargement en cours","up.common.inOperation":"En cours d'opération","up.common.settings":"Paramètres","up.common.retry":"Réessayer","up.common.search":"Rechercher","up.common.more":"Plus","up.common.video":"Vidéo","up.common.file":"Fichier","up.week.one":"Lun","up.week.two":"Mar","up.week.three":"Mer","up.week.four":"Jeu","up.week.five":"Ven","up.week.six":"Sam","up.week.seven":"Dim","up.barcode.error":"Échec de génération du code-barres","up.calendar.chooseDates":"Sélection de dates","up.calendar.disabled":"Cette date est désactivée","up.calendar.daysExceed":"Le nombre de jours sélectionnés ne peut pas dépasser {days} jours","up.cityLocate.locateCity":"Localiser la ville","up.cityLocate.fail":"Échec de localisation, veuillez cliquer pour réessayer.","up.cityLocate.locating":"Localisation en cours","up.code.send":"Obtenir le code de vérification","up.code.resendAfter":"Renvoyer dans X secondes","up.code.resend":"Renvoyer","up.cropper.emptyWidhtOrHeight":"La largeur ou la hauteur de recadrage n'est pas définie","up.empty.car":"Panier vide","up.empty.page":"Page introuvable","up.empty.search":"Aucun résultat de recherche","up.empty.address":"Aucune adresse de livraison","up.empty.wifi":"Aucun Wi-Fi","up.empty.order":"Commande vide","up.empty.coupon":"Aucun coupon","up.empty.favor":"Aucun favori","up.empty.permission":"Aucune autorisation","up.empty.history":"Aucun historique","up.empty.news":"Aucune actualité","up.empty.message":"Liste de messages vide","up.empty.list":"Liste vide","up.empty.data":"Données vides","up.empty.comment":"Aucun commentaire","up.link.copyed":"Lien copié, veuillez ouvrir dans le navigateur","up.loadmoe.loadmore":"Charger plus","up.loadmoe.nomore":"Plus de contenu","up.noNetwork.text":"Oups, le signal réseau est perdu","up.noNetwork.pleaseCheck":"Veuillez vérifier le réseau, ou aller à","up.noNetwork.connect":"Réseau connecté","up.noNetwork.disconnect":"Aucune connexion réseau","up.pagination.previous":"Page précédente","up.pagination.next":"Page suivante","up.pullRefresh.pull":"Tirer pour actualiser","up.pullRefresh.release":"Relâcher pour actualiser","up.pullRefresh.refreshing":"Actualisation en cours","up.readMore.expand":"Développer pour lire la suite","up.readMore.fold":"Réduire","up.search.placeholder":"Veuillez saisir un mot-clé","up.signature.penSize":"Taille du trait","up.signature.penColor":"Couleur du trait","up.upload.sizeExceed":"Dépassement de la limite de taille","up.upload.uploading":"Téléchargement en cours","up.upload.previewImageFail":"Échec de l'aperçu de l'image","up.upload.previewVideoFail":"Échec de l'aperçu de la vidéo"},de:{"up.common.cancel":"Abbrechen","up.common.confirm":"Bestätigen","up.common.start":"Start","up.common.end":"Ende","up.common.stop":"Stopp","up.common.copy":"Kopieren","up.common.none":"Keine","up.common.tip":"Hinweis","up.common.success":"Erfolg","up.common.fail":"Fehlgeschlagen","up.common.close":"Schließen","up.common.preview":"Vorschau","up.common.re-select":"Erneut auswählen","up.common.rotate":"Drehen","up.common.pleaseChoose":"Bitte wählen","up.common.loading":"Laden","up.common.loading2":"Wird geladen","up.common.inOperation":"In Bearbeitung","up.common.settings":"Einstellungen","up.common.retry":"Wiederholen","up.common.search":"Suchen","up.common.more":"Mehr","up.common.video":"Video","up.common.file":"Datei","up.week.one":"Mo","up.week.two":"Di","up.week.three":"Mi","up.week.four":"Do","up.week.five":"Fr","up.week.six":"Sa","up.week.seven":"So","up.barcode.error":"Barcode-Generierung fehlgeschlagen","up.calendar.chooseDates":"Datumsauswahl","up.calendar.disabled":"Dieses Datum ist deaktiviert","up.calendar.daysExceed":"Die Anzahl der ausgewählten Tage darf {days} Tage nicht überschreiten","up.cityLocate.locateCity":"Stadt lokalisieren","up.cityLocate.fail":"Lokalisierung fehlgeschlagen, bitte klicken Sie zum Wiederholen.","up.cityLocate.locating":"Lokalisierung läuft","up.code.send":"Bestätigungscode erhalten","up.code.resendAfter":"Erneut senden in X Sekunden","up.code.resend":"Erneut senden","up.cropper.emptyWidhtOrHeight":"Breite oder Höhe des Zuschneidebereichs nicht festgelegt","up.empty.car":"Warenkorb ist leer","up.empty.page":"Seite existiert nicht","up.empty.search":"Keine Suchergebnisse","up.empty.address":"Keine Lieferadresse","up.empty.wifi":"Kein WLAN","up.empty.order":"Bestellungen sind leer","up.empty.coupon":"Keine Gutscheine","up.empty.favor":"Keine Favoriten","up.empty.permission":"Keine Berechtigung","up.empty.history":"Kein Verlauf","up.empty.news":"Keine Nachrichtenliste","up.empty.message":"Nachrichtenliste ist leer","up.empty.list":"Liste ist leer","up.empty.data":"Daten sind leer","up.empty.comment":"Keine Kommentare","up.link.copyed":"Link kopiert, bitte im Browser öffnen","up.loadmoe.loadmore":"Mehr laden","up.loadmoe.nomore":"Keine weiteren Daten","up.noNetwork.text":"Ups, Netzwerksignal verloren","up.noNetwork.pleaseCheck":"Bitte überprüfen Sie das Netzwerk oder gehen Sie zu","up.noNetwork.connect":"Netzwerk verbunden","up.noNetwork.disconnect":"Keine Netzwerkverbindung","up.pagination.previous":"Vorherige Seite","up.pagination.next":"Nächste Seite","up.pullRefresh.pull":"Zum Aktualisieren nach unten ziehen","up.pullRefresh.release":"Loslassen zum Aktualisieren","up.pullRefresh.refreshing":"Aktualisierung läuft","up.readMore.expand":"Erweitern zum vollständigen Lesen","up.readMore.fold":"Einklappen","up.search.placeholder":"Bitte Schlüsselwort eingeben","up.signature.penSize":"Strichstärke","up.signature.penColor":"Strichfarbe","up.upload.sizeExceed":"Größenbegrenzung überschritten","up.upload.uploading":"Upload läuft","up.upload.previewImageFail":"Bildvorschau fehlgeschlagen","up.upload.previewVideoFail":"Videovorschau fehlgeschlagen"},ko:{"up.common.cancel":"취소","up.common.confirm":"확인","up.common.start":"시작","up.common.end":"종료","up.common.stop":"정지","up.common.copy":"복사","up.common.none":"없음","up.common.tip":"팁","up.common.success":"성공","up.common.fail":"실패","up.common.close":"닫기","up.common.preview":"미리보기","up.common.re-select":"재선택","up.common.rotate":"회전","up.common.pleaseChoose":"선택해주세요","up.common.loading":"로딩중","up.common.loading2":"로딩중","up.common.inOperation":"작업중","up.common.settings":"설정","up.common.retry":"재시도","up.common.search":"검색","up.common.more":"더보기","up.common.video":"비디오","up.common.file":"파일","up.week.one":"월","up.week.two":"화","up.week.three":"수","up.week.four":"목","up.week.five":"금","up.week.six":"토","up.week.seven":"일","up.barcode.error":"바코드 생성 실패","up.calendar.chooseDates":"날짜 선택","up.calendar.disabled":"해당 날짜는 사용할 수 없습니다","up.calendar.daysExceed":"선택한 날짜 수가 {days}일을 초과할 수 없습니다","up.cityLocate.locateCity":"도시 위치 찾기","up.cityLocate.fail":"위치 찾기 실패, 다시 시도하려면 클릭하세요.","up.cityLocate.locating":"위치 찾는 중","up.code.send":"인증코드 받기","up.code.resendAfter":"X초 후 재전송","up.code.resend":"재전송","up.cropper.emptyWidhtOrHeight":"자르기 영역의 너비 또는 높이가 설정되지 않았습니다","up.empty.car":"장바구니가 비어 있습니다","up.empty.page":"페이지가 존재하지 않습니다","up.empty.search":"검색 결과가 없습니다","up.empty.address":"배송 주소가 없습니다","up.empty.wifi":"Wi-Fi가 없습니다","up.empty.order":"주문이 없습니다","up.empty.coupon":"쿠폰이 없습니다","up.empty.favor":"즐겨찾기가 없습니다","up.empty.permission":"권한이 없습니다","up.empty.history":"기록이 없습니다","up.empty.news":"뉴스가 없습니다","up.empty.message":"메시지가 없습니다","up.empty.list":"목록이 비어 있습니다","up.empty.data":"데이터가 없습니다","up.empty.comment":"댓글이 없습니다","up.link.copyed":"링크가 복사되었습니다. 브라우저에서 열어주세요","up.loadmoe.loadmore":"더 불러오기","up.loadmoe.nomore":"더 이상 데이터가 없습니다","up.noNetwork.text":"네트워크 신호가 없습니다","up.noNetwork.pleaseCheck":"네트워크를 확인하거나 이동하세요","up.noNetwork.connect":"네트워크 연결됨","up.noNetwork.disconnect":"네트워크 연결 끊김","up.pagination.previous":"이전 페이지","up.pagination.next":"다음 페이지","up.pullRefresh.pull":"당겨서 새로고침","up.pullRefresh.release":"놓아서 새로고침","up.pullRefresh.refreshing":"새로고침 중","up.readMore.expand":"펼쳐서 전체 보기","up.readMore.fold":"접기","up.search.placeholder":"키워드를 입력하세요","up.signature.penSize":"선 굵기","up.signature.penColor":"선 색상","up.upload.sizeExceed":"용량 제한 초과","up.upload.uploading":"업로드 중","up.upload.previewImageFail":"이미지 미리보기 실패","up.upload.previewVideoFail":"비디오 미리보기 실패"},ja:{"up.common.cancel":"キャンセル","up.common.confirm":"確認","up.common.start":"開始","up.common.end":"終了","up.common.stop":"停止","up.common.copy":"コピー","up.common.none":"なし","up.common.tip":"ヒント","up.common.success":"成功","up.common.fail":"失敗","up.common.close":"閉じる","up.common.preview":"プレビュー","up.common.re-select":"再選択","up.common.rotate":"回転","up.common.pleaseChoose":"選択してください","up.common.loading":"読み込み中","up.common.loading2":"読み込み中","up.common.inOperation":"操作中","up.common.settings":"設定","up.common.retry":"再試行","up.common.search":"検索","up.common.more":"もっと見る","up.common.video":"ビデオ","up.common.file":"ファイル","up.week.one":"月","up.week.two":"火","up.week.three":"水","up.week.four":"木","up.week.five":"金","up.week.six":"土","up.week.seven":"日","up.barcode.error":"バーコードの生成に失敗しました","up.calendar.chooseDates":"日付選択","up.calendar.disabled":"この日付は無効です","up.calendar.daysExceed":"選択日数は{days}日を超えることはできません","up.cityLocate.locateCity":"都市の位置を特定","up.cityLocate.fail":"位置特定に失敗しました。再試行するにはクリックしてください。","up.cityLocate.locating":"位置特定中","up.code.send":"認証コードを取得","up.code.resendAfter":"X秒後に再送信","up.code.resend":"再送信","up.cropper.emptyWidhtOrHeight":"切り抜き枠の幅または高さが設定されていません","up.empty.car":"ショッピングカートは空です","up.empty.page":"ページが存在しません","up.empty.search":"検索結果がありません","up.empty.address":"配送先住所がありません","up.empty.wifi":"Wi-Fiがありません","up.empty.order":"注文がありません","up.empty.coupon":"クーポンがありません","up.empty.favor":"お気に入りがありません","up.empty.permission":"権限がありません","up.empty.history":"履歴がありません","up.empty.news":"ニュースがありません","up.empty.message":"メッセージがありません","up.empty.list":"リストが空です","up.empty.data":"データがありません","up.empty.comment":"コメントがありません","up.link.copyed":"リンクがコピーされました。ブラウザで開いてください","up.loadmoe.loadmore":"さらに読み込む","up.loadmoe.nomore":"これ以上データがありません","up.noNetwork.text":"ネットワーク信号が失われました","up.noNetwork.pleaseCheck":"ネットワークを確認するか、移動してください","up.noNetwork.connect":"ネットワーク接続済み","up.noNetwork.disconnect":"ネットワーク未接続","up.pagination.previous":"前へ","up.pagination.next":"次へ","up.pullRefresh.pull":"引き下げて更新","up.pullRefresh.release":"指を離して更新","up.pullRefresh.refreshing":"更新中","up.readMore.expand":"全文表示","up.readMore.fold":"折りたたむ","up.search.placeholder":"キーワードを入力してください","up.signature.penSize":"線の太さ","up.signature.penColor":"線の色","up.upload.sizeExceed":"サイズ制限を超えています","up.upload.uploading":"アップロード中","up.upload.previewImageFail":"画像プレビュー失敗","up.upload.previewVideoFail":"ビデオプレビュー失敗"},ru:{"up.common.cancel":"Отмена","up.common.confirm":"Подтвердить","up.common.start":"Начало","up.common.end":"Конец","up.common.stop":"Стоп","up.common.copy":"Копировать","up.common.none":"Нет","up.common.tip":"Подсказка","up.common.success":"Успех","up.common.fail":"Ошибка","up.common.close":"Закрыть","up.common.preview":"Предпросмотр","up.common.re-select":"Выбрать снова","up.common.rotate":"Повернуть","up.common.pleaseChoose":"Пожалуйста, выберите","up.common.loading":"Загрузка","up.common.loading2":"Загружается","up.common.inOperation":"В процессе","up.common.settings":"Настройки","up.common.retry":"Повторить","up.common.search":"Поиск","up.common.more":"Больше","up.common.video":"Видео","up.common.file":"Файл","up.week.one":"Пн","up.week.two":"Вт","up.week.three":"Ср","up.week.four":"Чт","up.week.five":"Пт","up.week.six":"Сб","up.week.seven":"Вс","up.barcode.error":"Ошибка генерации штрихкода","up.calendar.chooseDates":"Выбор даты","up.calendar.disabled":"Эта дата отключена","up.calendar.daysExceed":"Количество выбранных дней не может превышать {days} дней","up.cityLocate.locateCity":"Определение города","up.cityLocate.fail":"Ошибка определения местоположения, нажмите для повтора.","up.cityLocate.locating":"Определение местоположения","up.code.send":"Получить код подтверждения","up.code.resendAfter":"Повторная отправка через X секунд","up.code.resend":"Отправить снова","up.cropper.emptyWidhtOrHeight":"Ширина или высота области обрезки не задана","up.empty.car":"Корзина пуста","up.empty.page":"Страница не существует","up.empty.search":"Нет результатов поиска","up.empty.address":"Нет адреса доставки","up.empty.wifi":"Нет Wi-Fi","up.empty.order":"Заказы отсутствуют","up.empty.coupon":"Нет купонов","up.empty.favor":"Нет избранного","up.empty.permission":"Нет разрешения","up.empty.history":"Нет истории","up.empty.news":"Нет новостей","up.empty.message":"Список сообщений пуст","up.empty.list":"Список пуст","up.empty.data":"Нет данных","up.empty.comment":"Нет комментариев","up.link.copyed":"Ссылка скопирована, откройте в браузере","up.loadmoe.loadmore":"Загрузить еще","up.loadmoe.nomore":"Больше нет данных","up.noNetwork.text":"Ой, потеряно сетевое соединение","up.noNetwork.pleaseCheck":"Проверьте сеть или перейдите к","up.noNetwork.connect":"Сеть подключена","up.noNetwork.disconnect":"Нет сетевого подключения","up.pagination.previous":"Предыдущая страница","up.pagination.next":"Следующая страница","up.pullRefresh.pull":"Потяните вниз для обновления","up.pullRefresh.release":"Отпустите для обновления","up.pullRefresh.refreshing":"Обновление","up.readMore.expand":"Развернуть для полного чтения","up.readMore.fold":"Свернуть","up.search.placeholder":"Введите ключевое слово","up.signature.penSize":"Размер штриха","up.signature.penColor":"Цвет штриха","up.upload.sizeExceed":"Превышен лимит размера","up.upload.uploading":"Загрузка","up.upload.previewImageFail":"Ошибка предпросмотра изображения","up.upload.previewVideoFail":"Ошибка предпросмотра видео"},"zh-Hant":{"up.common.cancel":"取消","up.common.confirm":"确定","up.common.start":"開始","up.common.end":"結束","up.common.stop":"停止","up.common.copy":"複製","up.common.none":"暫無","up.common.tip":"提示","up.common.success":"成功","up.common.fail":"失敗","up.common.close":"關閉","up.common.preview":"預覽","up.common.re-select":"重選","up.common.rotate":"旋轉","up.common.pleaseChoose":"請選擇","up.common.loading":"加載中","up.common.loading2":"正在加載","up.common.inOperation":"操作中","up.common.settings":"設置","up.common.retry":"重試","up.common.search":"搜索","up.common.more":"更多","up.common.video":"視頻","up.common.file":"文件","up.week.one":"一","up.week.two":"二","up.week.three":"三","up.week.four":"四","up.week.five":"五","up.week.six":"六","up.week.seven":"日","up.barcode.error":"生成條碼失敗","up.calendar.chooseDates":"日期選擇","up.calendar.disabled":"該日期已禁用","up.calendar.daysExceed":"選擇天數不能超過{days}天","up.cityLocate.locateCity":"定位城市","up.cityLocate.fail":"定位失敗，請點擊重試。","up.cityLocate.locating":"定位中","up.code.send":"獲取驗證碼","up.code.resendAfter":"X秒重新獲取","up.code.resend":"重新獲取","up.cropper.emptyWidhtOrHeight":"裁剪框的寬或高沒有設置","up.empty.car":"購物車為空","up.empty.page":"頁面不存在","up.empty.search":"沒有搜索結果","up.empty.address":"沒有收貨地址","up.empty.wifi":"沒有WiFi","up.empty.order":"訂單為空","up.empty.coupon":"沒有優惠券","up.empty.favor":"暫無收藏","up.empty.permission":"無權限","up.empty.history":"無歷史記錄","up.empty.news":"無新聞列表","up.empty.message":"消息列表為空","up.empty.list":"列表為空","up.empty.data":"數據為空","up.empty.comment":"暫無評論","up.link.copyed":"鏈接已複製，請在瀏覽器打開","up.loadmoe.loadmore":"加載更多","up.loadmoe.nomore":"沒有更多了","up.noNetwork.text":"哎呀，網絡信號丟失","up.noNetwork.pleaseCheck":"請檢查網絡，或前往","up.noNetwork.connect":"網絡已連接","up.noNetwork.disconnect":"無網絡連接","up.pagination.previous":"上一頁","up.pagination.next":"下一頁","up.pullRefresh.pull":"下拉刷新","up.pullRefresh.release":"釋放刷新","up.pullRefresh.refreshing":"正在刷新","up.readMore.expand":"展開閱讀全文","up.readMore.fold":"收起","up.search.placeholder":"請輸入關鍵字","up.signature.penSize":"筆畫大小","up.signature.penColor":"筆畫顏色","up.upload.sizeExceed":"超過大小限制","up.upload.uploading":"上傳中","up.upload.previewImageFail":"預覽圖片失敗","up.upload.previewVideoFail":"預覽視頻失敗"},"zh-Hans":{"up.common.cancel":"取消","up.common.confirm":"确定","up.common.start":"开始","up.common.end":"结束","up.common.stop":"停止","up.common.copy":"复制","up.common.none":"暂无","up.common.tip":"提示","up.common.success":"成功","up.common.fail":"失败","up.common.close":"关闭","up.common.preview":"预览","up.common.re-select":"重选","up.common.rotate":"旋转","up.common.pleaseChoose":"请选择","up.common.loading":"加载中","up.common.loading2":"正在加载","up.common.inOperation":"操作中","up.common.settings":"设置","up.common.retry":"重试","up.common.search":"搜索","up.common.more":"更多","up.common.video":"视频","up.common.file":"文件","up.week.one":"一","up.week.two":"二","up.week.three":"三","up.week.four":"四","up.week.five":"五","up.week.six":"六","up.week.seven":"日","up.barcode.error":"生成条码失败","up.calendar.chooseDates":"日期选择","up.calendar.disabled":"该日期已禁用","up.calendar.daysExceed":"选择天数不能超过{days}天","up.cityLocate.locateCity":"定位城市","up.cityLocate.fail":"定位失败，请点击重试。","up.cityLocate.locating":"定位中","up.code.send":"获取验证码","up.code.resendAfter":"X秒重新获取","up.code.resend":"重新获取","up.cropper.emptyWidhtOrHeight":"裁剪框的宽或高没有设置","up.empty.car":"购物车为空","up.empty.page":"页面不存在","up.empty.search":"没有搜索结果","up.empty.address":"没有收货地址","up.empty.wifi":"没有WiFi","up.empty.order":"订单为空","up.empty.coupon":"没有优惠券","up.empty.favor":"暂无收藏","up.empty.permission":"无权限","up.empty.history":"无历史记录","up.empty.news":"无新闻列表","up.empty.message":"消息列表为空","up.empty.list":"列表为空","up.empty.data":"数据为空","up.empty.comment":"暂无评论","up.link.copyed":"链接已复制，请在浏览器打开","up.loadmoe.loadmore":"加载更多","up.loadmoe.nomore":"没有更多了","up.noNetwork.text":"哎呀，网络信号丢失","up.noNetwork.pleaseCheck":"请检查网络，或前往","up.noNetwork.connect":"网络已连接","up.noNetwork.disconnect":"无网络连接","up.pagination.previous":"上一页","up.pagination.next":"下一页","up.pullRefresh.pull":"下拉刷新","up.pullRefresh.release":"释放刷新","up.pullRefresh.refreshing":"正在刷新","up.readMore.expand":"展开阅读全文","up.readMore.fold":"收起","up.search.placeholder":"请输入关键字","up.signature.penSize":"笔画大小","up.signature.penColor":"笔画颜色","up.upload.sizeExceed":"超过大小限制","up.upload.uploading":"上传中","up.upload.previewImageFail":"预览图片失败","up.upload.previewVideoFail":"预览视频失败"}}};function Zw(e,t={}){if(e){let n=Jw.locales[Jw.lang][e]||e;return Object.keys(t).forEach(e=>{const o=new RegExp(`{${e}}`,"g");n=n.replace(o,t[e])}),n}return e}mp(e=>{Jw.lang=e});const ex={calendar:{title:Zw("up.calendar.chooseDates"),showTitle:!0,showSubtitle:!0,mode:"single",startText:Zw("up.common.start"),endText:Zw("up.common.end"),customList:[],color:"#3c9cff",minDate:0,maxDate:0,defaultDate:null,maxCount:Number.MAX_SAFE_INTEGER,rowHeight:56,formatter:null,showLunar:!1,showMark:!0,confirmText:Zw("up.common.confirm"),confirmDisabledText:Zw("up.common.confirm"),show:!1,closeOnClickOverlay:!1,readonly:!1,showConfirm:!0,maxRange:Number.MAX_SAFE_INTEGER,rangePrompt:"",showRangePrompt:!0,allowSameDay:!1,round:0,monthNum:3,weekText:[Zw("up.week.one"),Zw("up.week.two"),Zw("up.week.three"),Zw("up.week.four"),Zw("up.week.five"),Zw("up.week.six"),Zw("up.week.seven")],forbidDays:[],forbidDaysToast:Zw("up.calendar.disabled"),monthFormat:"",pageInline:!1}},tx={code:{seconds:60,startText:Zw("up.code.send"),changeText:Zw("up.code.resendAfter"),endText:Zw("up.code.resend"),keepRunning:!1,uniqueKey:""}},nx={datetimePicker:{show:!1,popupMode:"bottom",showToolbar:!0,value:"",title:"",mode:"datetime",maxDate:new Date((new Date).getFullYear()+10,0,1).getTime(),minDate:new Date((new Date).getFullYear()-10,0,1).getTime(),minHour:0,maxHour:23,minMinute:0,maxMinute:59,filter:null,formatter:null,loading:!1,itemHeight:44,cancelText:Zw("up.common.cancel"),confirmText:Zw("up.common.confirm"),cancelColor:"#909193",confirmColor:"#3c9cff",visibleItemCount:5,closeOnClickOverlay:!1,defaultIndex:[],inputBorder:"surround",disabled:!1,disabledColor:"",placeholder:Zw("up.common.pleaseChoose"),inputProps:{},pageInline:!1}},{color:ox}=Q_,ix={icon:{name:"",color:ox["u-content-color"],size:"16px",bold:!1,index:"",hoverClass:"",customPrefix:"uicon",label:"",labelPos:"right",labelSize:"15px",labelColor:ox["u-content-color"],space:"3px",imgMode:"",width:"",height:"",top:0,stop:!1}},rx={keyboard:{mode:"number",dotDisabled:!1,tooltip:!0,showTips:!0,tips:"",showCancel:!0,showConfirm:!0,random:!1,safeAreaInsetBottom:!0,closeOnClickOverlay:!0,show:!1,overlay:!0,zIndex:10075,cancelText:Zw("up.common.cancel"),confirmText:Zw("up.common.confirm"),autoChange:!1}},{color:sx}=Q_,ax={link:{color:sx["u-primary"],fontSize:15,underLine:!1,href:"",mpTips:Zw("up.link.copyed"),lineColor:"",text:""}},{color:lx}=Q_,cx={actionSheet:{show:!1,title:"",description:"",actions:[],index:"",cancelText:"",closeOnClickAction:!0,safeAreaInsetBottom:!0,openType:"",closeOnClickOverlay:!0,round:0,wrapMaxHeight:"600px"},album:{urls:[],keyName:"",singleSize:180,multipleSize:70,space:6,singleMode:"scaleToFill",multipleMode:"aspectFill",maxCount:9,previewFullImage:!0,rowCount:3,showMore:!0,autoWrap:!1,unit:"px",stop:!0},alert:{title:"",type:"warning",description:"",closable:!1,showIcon:!1,effect:"light",center:!1,fontSize:14,transitionMode:"fade",duration:0,icon:"",value:!0},avatar:{src:"",shape:"circle",size:40,mode:"scaleToFill",text:"",bgColor:"#c0c4cc",color:"#ffffff",fontSize:18,icon:"",mpAvatar:!1,randomBgColor:!1,defaultUrl:"",colorIndex:"",name:""},avatarGroup:{urls:[],maxCount:5,shape:"circle",mode:"scaleToFill",showMore:!0,size:40,keyName:"",gap:.5,extraValue:0},backtop:{mode:"circle",icon:"arrow-upward",text:"",duration:100,scrollTop:0,top:400,bottom:100,right:20,zIndex:9,iconStyle:{color:"#909399",fontSize:"19px"}},badge:{isDot:!1,value:"",show:!0,max:999,type:"error",showZero:!1,bgColor:null,color:null,shape:"circle",numberType:"overflow",offset:[],inverted:!1,absolute:!1},button:{hairline:!1,type:"info",size:"normal",shape:"square",plain:!1,disabled:!1,loading:!1,loadingText:"",loadingMode:"spinner",loadingSize:15,openType:"",formType:"",appParameter:"",hoverStopPropagation:!0,lang:"en",sessionFrom:"",sendMessageTitle:"",sendMessagePath:"",sendMessageImg:"",showMessageCard:!1,dataName:"",throttleTime:0,hoverStartTime:0,hoverStayTime:200,text:"",icon:"",iconColor:"",color:"",stop:!0},...ex,carKeyboard:{random:!1},card:{full:!1,title:"",titleColor:"#303133",titleSize:"15px",subTitle:"",subTitleColor:"#909399",subTitleSize:"13px",border:!0,index:"",margin:"15px",borderRadius:"8px",headStyle:{},bodyStyle:{},footStyle:{},headBorderBottom:!0,footBorderTop:!0,thumb:"",thumbWidth:"30px",thumbCircle:!1,padding:"15px",paddingHead:"",paddingBody:"",paddingFoot:"",showHead:!0,showFoot:!0,boxShadow:"none"},cell:{customClass:"",title:"",label:"",value:"",icon:"",disabled:!1,border:!0,center:!1,url:"",linkType:"navigateTo",clickable:!1,isLink:!1,required:!1,arrowDirection:"",iconStyle:{},rightIconStyle:{},rightIcon:"arrow-right",titleStyle:{},size:"",stop:!0,name:""},cellGroup:{title:"",border:!0,customStyle:{}},checkbox:{name:"",shape:"",size:"",checkbox:!1,disabled:"",activeColor:"",inactiveColor:"",iconSize:"",iconColor:"",label:"",labelSize:"",labelColor:"",labelDisabled:""},checkboxGroup:{name:"",value:[],shape:"square",disabled:!1,activeColor:"#2979ff",inactiveColor:"#c8c9cc",size:18,placement:"row",labelSize:14,labelColor:"#303133",labelDisabled:!1,iconColor:"#ffffff",iconSize:12,iconPlacement:"left",borderBottom:!1},circleProgress:{percentage:30},...tx,codeInput:{adjustPosition:!0,maxlength:6,dot:!1,mode:"box",hairline:!1,space:10,value:"",focus:!1,bold:!1,color:"#606266",fontSize:18,size:35,disabledKeyboard:!1,borderColor:"#c9cacc",disabledDot:!0},col:{span:12,offset:0,justify:"start",align:"stretch",textAlign:"left"},collapse:{value:null,accordion:!1,border:!0},collapseItem:{title:"",value:"",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0,align:"left",name:"",icon:"",duration:300,showRight:!0,titleStyle:{},iconStyle:{},rightIconStyle:{},cellCustomStyle:{},cellCustomClass:""},columnNotice:{text:"",icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",fontSize:14,speed:80,step:!1,duration:1500,disableTouch:!0,justifyContent:"flex-start"},countDown:{time:0,format:"HH:mm:ss",autoStart:!0,millisecond:!1},countTo:{startVal:0,endVal:0,duration:2e3,autoplay:!0,decimals:0,useEasing:!0,decimal:".",color:"#606266",fontSize:22,bold:!1,separator:""},...nx,divider:{dashed:!1,hairline:!0,dot:!1,textPosition:"center",text:"",textSize:14,textColor:"#909399",lineColor:"#dcdfe6"},empty:{icon:"",text:"",textColor:"#c0c4cc",textSize:14,iconColor:"#c0c4cc",iconSize:90,mode:"data",width:160,height:160,show:!0,marginTop:0},form:{model:{},rules:{},errorType:"message",borderBottom:!0,labelPosition:"left",labelWidth:45,labelAlign:"left",labelStyle:{}},formItem:{label:"",prop:"",rules:[],borderBottom:"",labelPosition:"",labelWidth:"",rightIcon:"",leftIcon:"",required:!1,leftIconStyle:""},gap:{bgColor:"transparent",height:20,marginTop:0,marginBottom:0,customStyle:{}},grid:{col:3,border:!1,align:"left"},gridItem:{name:null,bgColor:"transparent"},...ix,image:{src:"",mode:"aspectFill",width:"300",height:"225",shape:"square",radius:0,lazyLoad:!0,showMenuByLongpress:!0,loadingIcon:"photo",errorIcon:"error-circle",showLoading:!0,showError:!0,fade:!0,webp:!1,duration:500,bgColor:"#f3f4f6"},indexAnchor:{text:"",color:"#606266",size:14,bgColor:"#f1f1f1",height:32},indexList:{inactiveColor:"#606266",activeColor:"#5677fc",indexList:[],sticky:!0,customNavHeight:0,safeBottomFix:!1},input:{value:"",type:"text",fixed:!1,disabled:!1,disabledColor:"#f5f7fa",clearable:!1,password:!1,maxlength:140,placeholder:null,placeholderClass:"input-placeholder",placeholderStyle:"color: #c0c4cc",showWordLimit:!1,confirmType:"done",confirmHold:!1,holdKeyboard:!1,focus:!1,autoBlur:!1,disableDefaultPadding:!1,cursor:-1,cursorSpacing:30,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,inputAlign:"left",fontSize:"15px",color:"#303133",prefixIcon:"",prefixIconStyle:"",suffixIcon:"",suffixIconStyle:"",border:"surround",readonly:!1,shape:"square",formatter:null,cursorColor:"",passwordVisibilityToggle:!0},...rx,line:{color:"#d6d7d9",length:"100%",direction:"row",hairline:!0,margin:0,dashed:!1},lineProgress:{activeColor:"#19be6b",inactiveColor:"#ececec",percentage:0,showText:!0,height:12,fromRight:!1},...ax,list:{showScrollbar:!1,lowerThreshold:50,upperThreshold:0,scrollTop:0,offsetAccuracy:10,enableFlex:!1,pagingEnabled:!1,scrollable:!0,scrollIntoView:"",scrollWithAnimation:!1,enableBackToTop:!1,height:0,width:0,preLoadScreen:1},listItem:{anchor:""},...{loadingIcon:{show:!0,color:lx["u-tips-color"],textColor:lx["u-tips-color"],vertical:!1,mode:"spinner",size:24,textSize:15,text:"",timingFunction:"ease-in-out",duration:1200,inactiveColor:""}},...{loadingPage:{loadingText:Zw("up.common.loading2"),image:"",loadingMode:"circle",loading:!1,bgColor:"#ffffff",color:"#C8C8C8",fontSize:19,iconSize:28,loadingColor:"#C8C8C8",zIndex:10}},...{loadmore:{status:"loadmore",bgColor:"transparent",icon:!0,fontSize:14,iconSize:17,color:"#606266",loadingIcon:"spinner",loadmoreText:Zw("up.loadmoe.loadmore"),loadingText:Zw("up.common.loading2")+"...",nomoreText:Zw("up.loadmoe.nomore"),isDot:!1,iconColor:"#b7b7b7",marginTop:10,marginBottom:10,height:"auto",line:!1,lineColor:"#E6E8EB",dashed:!1}},...{modal:{show:!1,title:"",content:"",confirmText:Zw("up.common.confirm"),cancelText:Zw("up.common.cancel"),showConfirmButton:!0,showCancelButton:!1,confirmColor:"#2979ff",cancelColor:"#606266",buttonReverse:!1,zoom:!0,asyncClose:!1,closeOnClickOverlay:!1,negativeTop:0,width:"650rpx",confirmButtonShape:"",duration:400,contentTextAlign:"left",asyncCloseTip:Zw("up.common.inOperatio")+"...",asyncCancelClose:!1,contentStyle:{}}},...{navbar:{safeAreaInsetTop:!0,placeholder:!1,fixed:!0,border:!1,leftIcon:"arrow-left",leftText:"",rightText:"",rightIcon:"",title:"",titleColor:"",bgColor:"#ffffff",titleWidth:"400rpx",height:"44px",leftIconSize:20,leftIconColor:G_.mainColor,autoBack:!1,titleStyle:""}},...{noNetwork:{tips:Zw("up.noNetwork.text"),zIndex:"",image:"data:image/png;base64, "}},noticeBar:{text:[],direction:"row",step:!1,icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",speed:80,fontSize:14,duration:2e3,disableTouch:!0,url:"",linkType:"navigateTo",justifyContent:"flex-start"},notify:{top:0,type:"primary",color:"#ffffff",bgColor:"",message:"",duration:3e3,fontSize:15,safeAreaInsetTop:!1},...{numberBox:{name:"",value:0,min:1,max:Number.MAX_SAFE_INTEGER,step:1,integer:!1,disabled:!1,disabledInput:!1,asyncChange:!1,inputWidth:35,showMinus:!0,showPlus:!0,decimalLength:null,longPress:!0,color:"#323233",buttonWidth:30,buttonSize:30,buttonRadius:"0px",bgColor:"#EBECEE",disabledBgColor:"#f7f8fa",inputBgColor:"#EBECEE",cursorSpacing:100,disableMinus:!1,disablePlus:!1,iconStyle:"",miniMode:!1}},numberKeyboard:{mode:"number",dotDisabled:!1,random:!1},overlay:{show:!1,zIndex:10070,duration:300,opacity:.5},parse:{copyLink:!0,errorImg:"",lazyLoad:!1,loadingImg:"",pauseVideo:!0,previewImg:!0,setTitle:!0,showImgMenu:!0},...{picker:{show:!1,popupMode:"bottom",showToolbar:!0,title:"",columns:[],loading:!1,itemHeight:44,cancelText:Zw("up.common.cancel"),confirmText:Zw("up.common.confirm"),cancelColor:"#909193",confirmColor:"",visibleItemCount:5,keyName:"text",valueName:"value",closeOnClickOverlay:!1,defaultIndex:[],immediateChange:!0,zIndex:10076,disabled:!1,disabledColor:"",placeholder:Zw("up.common.pleaseChoose"),inputProps:{},bgColor:"",round:0,duration:300,overlayOpacity:.5,pageInline:!1}},popup:{show:!1,overlay:!0,mode:"bottom",duration:300,closeable:!1,overlayStyle:{},closeOnClickOverlay:!0,zIndex:10075,safeAreaInsetBottom:!0,safeAreaInsetTop:!1,closeIconPos:"top-right",round:0,zoom:!0,bgColor:"",overlayOpacity:.5,pageInline:!1},radio:{name:"",shape:"",disabled:"",labelDisabled:"",activeColor:"",inactiveColor:"",iconSize:"",labelSize:"",label:"",labelColor:"",size:"",iconColor:"",placement:""},radioGroup:{value:"",disabled:!1,shape:"circle",activeColor:"#2979ff",inactiveColor:"#c8c9cc",name:"",size:18,placement:"row",label:"",labelColor:"#303133",labelSize:14,labelDisabled:!1,iconColor:"#ffffff",iconSize:12,borderBottom:!1,iconPlacement:"left",gap:"10px"},rate:{value:1,count:5,disabled:!1,size:18,inactiveColor:"#b2b2b2",activeColor:"#FA3534",gutter:4,minCount:1,allowHalf:!1,activeIcon:"star-fill",inactiveIcon:"star",touchable:!0},...{readMore:{showHeight:400,toggle:!1,closeText:Zw("up.readMore.expand"),openText:Zw("up.readMore.fold"),color:"#2979ff",fontSize:14,textIndent:"2em",name:""}},row:{gutter:0,justify:"start",align:"center"},rowNotice:{text:"",icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",fontSize:14,speed:80},scrollList:{indicatorWidth:50,indicatorBarWidth:20,indicator:!0,indicatorColor:"#f2f2f2",indicatorActiveColor:"#3c9cff",indicatorStyle:""},...{search:{shape:"round",bgColor:"#f2f2f2",placeholder:Zw("up.search.placeholder"),clearabled:!0,focus:!1,showAction:!0,actionStyle:{},actionText:Zw("up.common.search"),inputAlign:"left",inputStyle:{},disabled:!1,borderColor:"transparent",searchIconColor:"#909399",searchIconSize:22,color:"#606266",placeholderColor:"#909399",searchIcon:"search",iconPosition:"left",margin:"0",animation:!1,value:"",maxlength:"-1",height:32,label:null}},...{section:{title:"",subTitle:Zw("up.common.more"),right:!0,fontSize:15,bold:!0,color:"#303133",subColor:"#909399",showLine:!0,lineColor:"",arrow:!0}},skeleton:{loading:!0,animate:!0,rows:0,rowsWidth:"100%",rowsHeight:18,title:!0,titleWidth:"50%",titleHeight:18,avatar:!1,avatarSize:32,avatarShape:"circle"},slider:{value:0,blockSize:18,min:0,max:100,step:1,activeColor:"#2979ff",inactiveColor:"#c0c4cc",blockColor:"#ffffff",showValue:!1,disabled:!1,blockStyle:{},useNative:!1,height:"2px",innerStyle:{}},statusBar:{bgColor:"transparent",height:0},steps:{direction:"row",current:0,activeColor:"#3c9cff",inactiveColor:"#969799",activeIcon:"",inactiveIcon:"",dot:!1},stepsItem:{title:"",desc:"",iconSize:17,error:!1},sticky:{offsetTop:0,customNavHeight:0,disabled:!1,bgColor:"transparent",zIndex:"",index:""},subsection:{list:[],current:0,activeColor:"#3c9cff",inactiveColor:"#303133",mode:"button",fontSize:12,bold:!0,bgColor:"#eeeeef",keyName:"name",activeColorKeyName:"activeColorKey",inactiveColorKeyName:"inactiveColorKey",disabled:!1},swipeAction:{autoClose:!0},swipeActionItem:{show:!1,closeOnClick:!0,name:"",disabled:!1,threshold:20,autoClose:!0,options:[],duration:300},swiper:{list:[],indicator:!1,indicatorActiveColor:"#FFFFFF",indicatorInactiveColor:"rgba(255, 255, 255, 0.35)",indicatorStyle:"",indicatorMode:"line",autoplay:!0,current:0,currentItemId:"",interval:3e3,duration:300,circular:!1,previousMargin:0,nextMargin:0,acceleration:!1,displayMultipleItems:1,easingFunction:"default",keyName:"url",imgMode:"aspectFill",height:130,bgColor:"#f3f4f6",radius:4,loading:!1,showTitle:!1},swiperIndicator:{length:0,current:0,indicatorActiveColor:"",indicatorInactiveColor:"",indicatorMode:"line"},switch:{loading:!1,disabled:!1,size:25,activeColor:"#2979ff",inactiveColor:"#ffffff",value:!1,activeValue:!0,inactiveValue:!1,asyncChange:!1,space:0},tabbar:{value:null,safeAreaInsetBottom:!0,border:!0,zIndex:1,activeColor:"#1989fa",inactiveColor:"#7d7e80",fixed:!0,placeholder:!0,borderColor:"",backgroundColor:""},tabbarItem:{name:null,icon:"",badge:null,dot:!1,text:"",badgeStyle:"top: 6px;right:2px;",mode:""},tabs:{duration:300,list:[],lineColor:"",activeStyle:{color:"#303133"},inactiveStyle:{color:"#606266"},lineWidth:20,lineHeight:3,lineBgSize:"cover",itemStyle:{height:"44px"},scrollable:!0,current:0,keyName:"name",iconStyle:{}},tag:{type:"primary",disabled:!1,size:"medium",shape:"square",text:"",bgColor:"",color:"",borderColor:"",closeColor:"#C6C7CB",name:"",plainFill:!1,plain:!1,closable:!1,show:!0,icon:"",iconColor:"",textSize:"",height:"",padding:"",borderRadius:"",autoBgColor:0},text:{type:"",show:!0,text:"",prefixIcon:"",suffixIcon:"",mode:"",href:"",format:"",call:!1,openType:"",bold:!1,block:!1,lines:"",color:"#303133",size:15,iconStyle:{fontSize:"15px"},decoration:"none",margin:0,lineHeight:"",align:"left",wordWrap:"normal",flex1:!0},textarea:{value:"",placeholder:"",placeholderClass:"textarea-placeholder",placeholderStyle:"color: #c0c4cc",height:70,confirmType:"done",disabled:!1,count:!1,focus:!1,autoHeight:!1,fixed:!1,cursorSpacing:0,cursor:"",showConfirmBar:!0,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,disableDefaultPadding:!1,holdKeyboard:!1,maxlength:140,border:"surround",formatter:null},toast:{zIndex:10090,loading:!1,message:"",icon:"",type:"",loadingMode:"",show:"",overlay:!1,position:"center",params:{},duration:2e3,isTab:!1,url:"",callback:null,back:!1},...{toolbar:{show:!0,cancelText:Zw("up.common.cancel"),confirmText:Zw("up.common.confirm"),cancelColor:"#909193",confirmColor:"",title:""}},tooltip:{text:"",copyText:"",size:14,color:"#606266",bgColor:"transparent",direction:"top",zIndex:10071,showCopy:!0,buttons:[],overlay:!0,showToast:!0,popupBgColor:"",triggerMode:"longpress"},transition:{show:!1,mode:"fade",duration:"300",timingFunction:"ease-out"},...{upload:{accept:"image",extension:[],capture:["album","camera"],compressed:!0,camera:"back",maxDuration:60,uploadIcon:"camera-fill",uploadIconColor:"#D3D4D6",useBeforeRead:!1,previewFullImage:!0,maxCount:52,disabled:!1,imageMode:"aspectFill",name:"",sizeType:["original","compressed"],multiple:!1,deletable:!0,maxSize:Number.MAX_VALUE,fileList:[],uploadText:"",width:80,height:80,previewImage:!0,autoDelete:!1,autoUpload:!1,autoUploadApi:"",autoUploadAuthUrl:"",autoUploadDriver:"",autoUploadHeader:{},getVideoThumb:!1,customAfterAutoUpload:!1,videoPreviewObjectFit:"cover"}}};if(uni&&uni.upuiParams){console.log("setting uview-plus");let e=uni.upuiParams();e.httpIns&&e.httpIns(cw),e.options&&(ux=e.options,Lw(Q_,ux.config||{}),Lw(cx,ux.props||{}),Lw(G_,ux.color||{}),Lw(Y_,ux.zIndex||{}))}var ux;const dx={props:{color:{type:String,default:()=>cx.line.color},length:{type:[String,Number],default:()=>cx.line.length},direction:{type:String,default:()=>cx.line.direction},hairline:{type:Boolean,default:()=>cx.line.hairline},margin:{type:[String,Number],default:()=>cx.line.margin},dashed:{type:Boolean,default:()=>cx.line.dashed}}},hx={};const px=(new class{constructor(){this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}addRootPath(e){return"/"===e[0]?e:`/${e}`}mixinParam(e,t){e=e&&this.addRootPath(e);let n="";return/.*\/.*\?.*=.*/.test(e)?(n=Hw(t,!1),e+`&${n}`):(n=Hw(t),e+n)}async route(e={},t={}){let n={};if("string"==typeof e?(n.url=this.mixinParam(e,t),n.type="navigateTo"):(n=Rw(this.config,e),n.url=this.mixinParam(e.url,e.params)),n.url!==Gw())if(t.intercept&&(this.config.intercept=t.intercept),n.params=t,n=Rw(this.config,n),"function"==typeof uni.$u.routeIntercept){await new Promise((e,t)=>{uni.$u.routeIntercept(n,e)})&&this.openPage(n)}else this.openPage(n)}openPage(e){const{url:t,type:n,delta:o,animationType:i,animationDuration:r}=e;"navigateTo"!=e.type&&"to"!=e.type||jv({url:t,animationType:i,animationDuration:r}),"redirectTo"!=e.type&&"redirect"!=e.type||pf({url:t}),"switchTab"!=e.type&&"tab"!=e.type||df({url:t}),"reLaunch"!=e.type&&"launch"!=e.type||mf({url:t}),"navigateBack"!=e.type&&"back"!=e.type||$v({delta:o})}}).route,fx={props:{customStyle:{type:[Object,String],default:()=>({})},customClass:{type:String,default:""},url:{type:String,default:""},linkType:{type:String,default:"navigateTo"}},data:()=>({}),onLoad(){this.$u.getRect=this.$uGetRect},created(){this.$u.getRect=this.$uGetRect},computed:{$u:()=>Rw(uni.$u,{props:void 0,http:void 0,mixin:void 0}),bem:()=>function(e,t,n){const o=`u-${e}--`,i={};return t&&t.map(e=>{i[o+this[e]]=!0}),n&&n.map(e=>{this[e]?i[o+e]=this[e]:delete i[o+e]}),Object.keys(i)}},methods:{openPage(e="url"){const t=this[e];t&&px({type:this.linkType,url:t})},navTo(e="",t="navigateTo"){px({type:this.linkType,url:e})},$uGetRect(e,t){return new Promise(n=>{sp().in(this)[t?"selectAll":"select"](e).boundingClientRect(e=>{t&&Array.isArray(e)&&e.length&&n(e),!t&&e&&n(e)}).exec()})},getParentData(e=""){this.parent||(this.parent={}),this.parent=Pw.call(this,e),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map(e=>{this.parentData[e]=this.parent[e]})},preventEvent(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()},noop(e){this.preventEvent(e)}},onReachBottom(){vh("uOnReachBottom")},beforeUnmount(){if(this.parent&&fw.array(this.parent.children)){const e=this.parent.children;e.map((t,n)=>{t===this&&e.splice(n,1)})}}};const mx=W_({name:"u-line",mixins:[hx,fx,dx],computed:{lineStyle(){const e={};return e.margin=this.margin,"row"===this.direction?(e.borderBottomWidth="1px",e.borderBottomStyle=this.dashed?"dashed":"solid",e.width=zw(this.length),this.hairline&&(e.transform="scaleY(0.5)")):(e.borderLeftWidth="1px",e.borderLeftStyle=this.dashed?"dashed":"solid",e.height=zw(this.length),this.hairline&&(e.transform="scaleX(0.5)")),e.borderColor=this.color,Rw(e,Mw(this.customStyle))}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-line",style:qe([r.lineStyle])},null,8,["style"])}],["__scopeId","data-v-e4a1431b"]]),gx=Object.freeze(Object.defineProperty({__proto__:null,default:mx},Symbol.toStringTag,{value:"Module"}));function yx(e,t){return"string"==typeof e?t:e}const bx=(e,t=0)=>(t,n=Zr())=>{!ss&&vi(e,t,n)},vx=bx(ae,3),_x=bx(le,3),wx=bx(pe,2),xx=bx(fe,2),Sx=bx(_e,2),kx=bx(xe,2),Cx=bx(Se,2),Ax={props:{show:{type:Boolean,default:()=>cx.loadingIcon.show},color:{type:String,default:()=>cx.loadingIcon.color},textColor:{type:String,default:()=>cx.loadingIcon.textColor},vertical:{type:Boolean,default:()=>cx.loadingIcon.vertical},mode:{type:String,default:()=>cx.loadingIcon.mode},size:{type:[String,Number],default:()=>cx.loadingIcon.size},textSize:{type:[String,Number],default:()=>cx.loadingIcon.textSize},text:{type:[String,Number],default:()=>cx.loadingIcon.text},timingFunction:{type:String,default:()=>cx.loadingIcon.timingFunction},duration:{type:[String,Number],default:()=>cx.loadingIcon.duration},inactiveColor:{type:String,default:()=>cx.loadingIcon.inactiveColor}}};function Tx(e="rgb(0, 0, 0)",t="rgb(255, 255, 255)",n=10){const o=Ix(e,!1),i=o[0],r=o[1],s=o[2],a=Ix(t,!1),l=(a[0]-i)/n,c=(a[1]-r)/n,u=(a[2]-s)/n,d=[];for(let h=0;h<n;h++){let o=Bx(`rgb(${Math.round(l*h+i)},${Math.round(c*h+r)},${Math.round(u*h+s)})`);0===h&&(o=Bx(e)),h===n-1&&(o=Bx(t)),d.push(o)}return d}function Ix(e,t=!0){if((e=String(e).toLowerCase())&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)){if(4===e.length){let t="#";for(let n=1;n<4;n+=1)t+=e.slice(n,n+1).concat(e.slice(n,n+1));e=t}const n=[];for(let t=1;t<7;t+=2)n.push(parseInt(`0x${e.slice(t,t+2)}`));return t?`rgb(${n[0]},${n[1]},${n[2]})`:n}if(/^(rgb|RGB)/.test(e)){return e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map(e=>Number(e))}return e}function Bx(e){const t=e;if(/^(rgb|RGB)/.test(t)){const e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");let n="#";for(let t=0;t<e.length;t++){let o=Number(e[t]).toString(16);o=1==String(o).length?`0${o}`:o,"0"===o&&(o+=o),n+=o}return 7!==n.length&&(n=t),n}if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))return t;{const e=t.replace(/#/,"").split("");if(6===e.length)return t;if(3===e.length){let t="#";for(let n=0;n<e.length;n+=1)t+=e[n]+e[n];return t}}}const Ex={colorGradient:Tx,hexToRgb:Ix,rgbToHex:Bx,colorToRgba:function(e,t){e=Bx(e);let n=String(e).toLowerCase();if(n&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(n)){if(4===n.length){let e="#";for(let t=1;t<4;t+=1)e+=n.slice(t,t+1).concat(n.slice(t,t+1));n=e}const e=[];for(let t=1;t<7;t+=2)e.push(parseInt(`0x${n.slice(t,t+2)}`));return`rgba(${e.join(",")},${t})`}return n}};const Px=W_({name:"u-loading-icon",mixins:[hx,fx,Ax],data:()=>({array12:Array.from({length:12}),aniAngel:360,webviewHide:!1,loading:!1}),computed:{otherBorderColor(){const e=Tx(this.color,"#ffffff",100)[80];return"circle"===this.mode?this.inactiveColor?this.inactiveColor:e:"transparent"}},watch:{show(e){}},mounted(){this.init()},methods:{addUnit:zw,addStyle:Mw,init(){setTimeout(()=>{},20)},addEventListenerToWebview(){const e=Df(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",()=>{this.webviewHide=!0}),t.addEventListener("show",()=>{this.webviewHide=!1})}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=wy;return e.show?(Ir(),zr(s,{key:0,class:Qe(["u-loading-icon",[e.vertical&&"u-loading-icon--vertical"]]),style:qe([r.addStyle(e.customStyle)])},{default:So(()=>[i.webviewHide?Wr("",!0):(Ir(),zr(s,{key:0,class:Qe(["u-loading-icon__spinner",[`u-loading-icon__spinner--${e.mode}`]]),ref:"ani",style:qe({color:e.color,width:r.addUnit(e.size),height:r.addUnit(e.size),borderTopColor:e.color,borderBottomColor:r.otherBorderColor,borderLeftColor:r.otherBorderColor,borderRightColor:r.otherBorderColor,"animation-duration":`${e.duration}ms`,"animation-timing-function":"semicircle"===e.mode||"circle"===e.mode?e.timingFunction:""})},{default:So(()=>["spinner"===e.mode?(Ir(!0),Mr(xr,{key:0},Pi(i.array12,(e,t)=>(Ir(),zr(s,{key:t,class:"u-loading-icon__dot"}))),128)):Wr("",!0)]),_:1},8,["class","style"])),e.text?(Ir(),zr(a,{key:1,class:"u-loading-icon__text",style:qe({fontSize:r.addUnit(e.textSize),color:e.textColor})},{default:So(()=>[Vr(X(e.text),1)]),_:1},8,["style"])):Wr("",!0)]),_:1},8,["style","class"])):Wr("",!0)}],["__scopeId","data-v-e9ce3323"]]),Mx=Object.freeze(Object.defineProperty({__proto__:null,default:Px},Symbol.toStringTag,{value:"Module"}));const zx=W_({name:"u-gap",mixins:[hx,fx,{props:{bgColor:{type:String,default:()=>cx.gap.bgColor},height:{type:[String,Number],default:()=>cx.gap.height},marginTop:{type:[String,Number],default:()=>cx.gap.marginTop},marginBottom:{type:[String,Number],default:()=>cx.gap.marginBottom}}}],computed:{gapStyle(){return Rw({backgroundColor:this.bgColor,height:zw(this.height),marginTop:zw(this.marginTop),marginBottom:zw(this.marginBottom)},Mw(this.customStyle))}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-gap",style:qe([r.gapStyle])},null,8,["style"])}]]),Ox=Object.freeze(Object.defineProperty({__proto__:null,default:zx},Symbol.toStringTag,{value:"Module"})),Rx={props:{show:{type:Boolean,default:()=>cx.transition.show},mode:{type:String,default:()=>cx.transition.mode},duration:{type:[String,Number],default:()=>cx.transition.duration},timingFunction:{type:String,default:()=>cx.transition.timingFunction}}},Lx=e=>({enter:`u-${e}-enter u-${e}-enter-active`,"enter-to":`u-${e}-enter-to u-${e}-enter-active`,leave:`u-${e}-leave u-${e}-leave-active`,"leave-to":`u-${e}-leave-to u-${e}-leave-active`}),Dx={methods:{clickHandler(){this.$emit("click")},async vueEnter(){const e=Lx(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=e.enter,await ao(),await kw(20),this.$emit("enter"),this.transitionEnded=!1,this.$emit("afterEnter"),this.classes=e["enter-to"]},async vueLeave(){if(!this.display)return;const e=Lx(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=e.leave,await ao(),this.transitionEnded=!1,this.$emit("leave"),setTimeout(this.onTransitionEnd,this.duration),this.classes=e["leave-to"]},onTransitionEnd(){this.transitionEnded||(this.transitionEnded=!0,this.$emit("leave"===this.status?"afterLeave":"afterEnter"),!this.show&&this.display&&(this.display=!1,this.inited=!1))}}};const Nx=W_({name:"u-transition",data:()=>({inited:!1,viewStyle:{},status:"",transitionEnded:!1,display:!1,classes:""}),emits:["click","beforeEnter","enter","afterEnter","beforeLeave","leave","afterLeave"],computed:{mergeStyle(){const{viewStyle:e,customStyle:t}=this;return{transitionDuration:`${this.duration}ms`,transitionTimingFunction:this.timingFunction,...Mw(t),...e}}},mixins:[hx,fx,Dx,Rx],watch:{show:{handler(e){e?this.vueEnter():this.vueLeave()},immediate:!0}}},[["render",function(e,t,n,o,i,r){const s=Ay;return i.inited?(Ir(),zr(s,{key:0,class:Qe(["u-transition",i.classes]),ref:"u-transition",onClick:e.clickHandler,style:qe([r.mergeStyle]),onTouchmove:e.noop},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["onClick","class","style","onTouchmove"])):Wr("",!0)}],["__scopeId","data-v-76aa0c8f"]]),$x=Object.freeze(Object.defineProperty({__proto__:null,default:Nx},Symbol.toStringTag,{value:"Module"})),jx={props:{show:{type:Boolean,default:()=>cx.overlay.show},zIndex:{type:[String,Number],default:()=>cx.overlay.zIndex},duration:{type:[String,Number],default:()=>cx.overlay.duration},opacity:{type:[String,Number],default:()=>cx.overlay.opacity}}};const Hx=W_({name:"u-overlay",mixins:[hx,fx,jx],computed:{overlayStyle(){return Rw({position:"fixed",top:0,left:0,right:0,zIndex:this.zIndex,bottom:0,"background-color":`rgba(0, 0, 0, ${this.opacity})`},Mw(this.customStyle))}},emits:["click"],methods:{clickHandler(){this.$emit("click")}}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-transition"),Nx);return Ir(),zr(s,{show:e.show,"custom-class":"u-overlay",duration:e.duration,"custom-style":r.overlayStyle,onClick:r.clickHandler,onTouchmove:ua(e.noop,["stop","prevent"])},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["show","duration","custom-style","onClick","onTouchmove"])}],["__scopeId","data-v-19fa5689"]]),Fx=Object.freeze(Object.defineProperty({__proto__:null,default:Hx},Symbol.toStringTag,{value:"Module"}));const Vx=W_({name:"u-status-bar",mixins:[hx,fx,{props:{bgColor:{type:String,default:()=>cx.statusBar.bgColor},height:{type:Number,default:()=>cx.statusBar.height}}}],data:()=>({isH5:!1}),created(){this.isH5=!0},emits:["update:height"],computed:{style(){const e={};let t=Tw().statusBarHeight;return this.$emit("update:height",t),0==t?this.isH5=!0:e.height=zw(t,"px"),e.backgroundColor=this.bgColor,Rw(e,Mw(this.customStyle))}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{style:qe([r.style]),class:Qe(["u-status-bar",[i.isH5&&"u-safe-area-inset-top"]])},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["style","class"])}],["__scopeId","data-v-c27d32ea"]]),Wx=Object.freeze(Object.defineProperty({__proto__:null,default:Vx},Symbol.toStringTag,{value:"Module"}));const Ux=W_({name:"u-safe-bottom",mixins:[hx,fx,{props:{}}],data:()=>({safeAreaBottomHeight:0,isNvue:!1}),computed:{style(){return Rw({},Mw(this.customStyle))}},mounted(){}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:Qe(["u-safe-bottom",[!i.isNvue&&"u-safe-area-inset-bottom"]]),style:qe([r.style])},null,8,["style","class"])}],["__scopeId","data-v-9fd63ca1"]]),qx=Object.freeze(Object.defineProperty({__proto__:null,default:Ux},Symbol.toStringTag,{value:"Module"})),Qx={props:{show:{type:Boolean,default:()=>cx.popup.show},overlay:{type:Boolean,default:()=>cx.popup.overlay},mode:{type:String,default:()=>cx.popup.mode},duration:{type:[String,Number],default:()=>cx.popup.duration},closeable:{type:Boolean,default:()=>cx.popup.closeable},overlayStyle:{type:[Object,String],default:()=>cx.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:()=>cx.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:()=>cx.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:()=>cx.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:()=>cx.popup.safeAreaInsetTop},closeIconPos:{type:String,default:()=>cx.popup.closeIconPos},round:{type:[Boolean,String,Number],default:()=>cx.popup.round},zoom:{type:Boolean,default:()=>cx.popup.zoom},bgColor:{type:String,default:()=>cx.popup.bgColor},overlayOpacity:{type:[Number,String],default:()=>cx.popup.overlayOpacity},pageInline:{type:Boolean,default:()=>cx.popup.pageInline}}};const Yx=W_({name:"u-popup",mixins:[hx,fx,Qx],data(){return{overlayDuration:this.duration+50}},watch:{show(e,t){}},computed:{transitionStyle(){const e={display:"flex"};return this.pageInline||(e.zIndex=this.zIndex,e.position="fixed"),e[this.mode]=0,"left"===this.mode||"right"===this.mode?Rw(e,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?Rw(e,{left:0,right:0}):"center"===this.mode?Rw(e,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle(){const e={};if(Tw(),"center"!==this.mode&&(e.flex=1),this.bgColor&&(e.backgroundColor=this.bgColor),this.round){const t=zw(this.round);"top"===this.mode?(e.borderBottomLeftRadius=t,e.borderBottomRightRadius=t):"bottom"===this.mode?(e.borderTopLeftRadius=t,e.borderTopRightRadius=t):"center"===this.mode&&(e.borderRadius=t)}return Rw(e,Mw(this.customStyle))},position(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},emits:["open","close","click","update:show"],methods:{overlayClick(){this.closeOnClickOverlay&&(this.$emit("update:show",!1),this.$emit("close"))},open(e){this.$emit("update:show",!0)},close(e){this.$emit("update:show",!1),this.$emit("close")},afterEnter(){this.$emit("open")},clickHandler(){"center"===this.mode&&this.overlayClick(),this.$emit("click")}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=yx(Po("u-overlay"),Hx),l=yx(Po("u-status-bar"),Vx),c=Bo("up-icon"),u=yx(Po("u-safe-bottom"),Ux),d=yx(Po("u-transition"),Nx);return Ir(),zr(s,{class:Qe(["u-popup",[e.customClass]]),style:qe({width:0==e.show?"0px":"",height:0==e.show?"0px":""})},{default:So(()=>[jr(s,{class:"u-popup__trigger"},{default:So(()=>[Mi(e.$slots,"trigger",{},void 0,!0),jr(s,{onClick:r.open,class:"u-popup__trigger__cover"},null,8,["onClick"])]),_:3}),e.overlay?(Ir(),zr(a,{key:0,show:e.show&&0==e.pageInline,onClick:r.overlayClick,zIndex:e.zIndex,duration:i.overlayDuration,customStyle:e.overlayStyle,opacity:e.overlayOpacity},null,8,["show","onClick","zIndex","duration","customStyle","opacity"])):Wr("",!0),jr(d,{show:e.show,customStyle:r.transitionStyle,mode:e.pageInline?"none":r.position,duration:e.duration,onAfterEnter:r.afterEnter,onClick:r.clickHandler},{default:So(()=>[jr(s,{class:"u-popup__content",style:qe([r.contentStyle]),onClick:ua(e.noop,["stop"]),onTouchmove:ua(e.noop,["stop","prevent"])},{default:So(()=>[e.safeAreaInsetTop?(Ir(),zr(l,{key:0})):Wr("",!0),Mi(e.$slots,"default",{},void 0,!0),e.closeable?(Ir(),zr(s,{key:1,onClick:ua(r.close,["stop"]),class:Qe(["u-popup__content__close",["u-popup__content__close--"+e.closeIconPos]]),"hover-class":"u-popup__content__close--hover","hover-stay-time":"150"},{default:So(()=>[jr(c,{name:"close",color:"#909399",size:"18",bold:""})]),_:1},8,["onClick","class"])):Wr("",!0),e.safeAreaInsetBottom?(Ir(),zr(u,{key:2})):Wr("",!0)]),_:3},8,["style","onClick","onTouchmove"]),Mi(e.$slots,"bottom",{},void 0,!0)]),_:3},8,["show","customStyle","mode","duration","onAfterEnter","onClick"])]),_:3},8,["class","style"])}],["__scopeId","data-v-7e46fcac"]]),Gx=Object.freeze(Object.defineProperty({__proto__:null,default:Yx},Symbol.toStringTag,{value:"Module"})),Xx={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}},Kx={props:{show:{type:Boolean,default:()=>cx.actionSheet.show},title:{type:String,default:()=>cx.actionSheet.title},description:{type:String,default:()=>cx.actionSheet.description},actions:{type:Array,default:()=>cx.actionSheet.actions},cancelText:{type:String,default:()=>cx.actionSheet.cancelText},closeOnClickAction:{type:Boolean,default:()=>cx.actionSheet.closeOnClickAction},safeAreaInsetBottom:{type:Boolean,default:()=>cx.actionSheet.safeAreaInsetBottom},openType:{type:String,default:()=>cx.actionSheet.openType},closeOnClickOverlay:{type:Boolean,default:()=>cx.actionSheet.closeOnClickOverlay},round:{type:[Boolean,String,Number],default:()=>cx.actionSheet.round},wrapMaxHeight:{type:[String],default:()=>cx.actionSheet.wrapMaxHeight}}};const Jx=W_({name:"u-action-sheet",mixins:[{props:{openType:String},methods:{onGetUserInfo(e){this.$emit("getuserinfo",e.detail)},onContact(e){this.$emit("contact",e.detail)},onGetPhoneNumber(e){this.$emit("getphonenumber",e.detail)},onError(e){this.$emit("error",e.detail)},onLaunchApp(e){this.$emit("launchapp",e.detail)},onOpenSetting(e){this.$emit("opensetting",e.detail)}}},Xx,fx,Kx],data:()=>({}),computed:{itemStyle(){return e=>{let t={};return this.actions[e].color&&(t.color=this.actions[e].color),this.actions[e].fontSize&&(t.fontSize=zw(this.actions[e].fontSize)),this.actions[e].disabled&&(t.color="#c0c4cc"),t}}},emits:["close","select","update:show"],methods:{closeHandler(){this.closeOnClickOverlay&&(this.$emit("update:show",!1),this.$emit("close"))},cancel(){this.$emit("update:show",!1),this.$emit("close")},selectHandler(e){const t=this.actions[e];!t||t.disabled||t.loading||(this.$emit("select",t),this.closeOnClickAction&&(this.$emit("update:show",!1),this.$emit("close")))}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Bo("up-icon"),l=Ay,c=yx(Po("u-line"),mx),u=yx(Po("u-loading-icon"),Px),d=dy,h=yx(Po("u-gap"),zx),p=yx(Po("u-popup"),Yx);return Ir(),zr(p,{show:e.show,mode:"bottom",onClose:r.closeHandler,safeAreaInsetBottom:e.safeAreaInsetBottom,round:e.round},{default:So(()=>[jr(l,{class:"u-action-sheet"},{default:So(()=>[e.title?(Ir(),zr(l,{key:0,class:"u-action-sheet__header"},{default:So(()=>[jr(s,{class:"u-action-sheet__header__title u-line-1"},{default:So(()=>[Vr(X(e.title),1)]),_:1}),jr(l,{class:"u-action-sheet__header__icon-wrap",onClick:ua(r.cancel,["stop"])},{default:So(()=>[jr(a,{name:"close",size:"17",color:"#c8c9cc",bold:""})]),_:1},8,["onClick"])]),_:1})):Wr("",!0),e.description?(Ir(),zr(s,{key:1,class:"u-action-sheet__description",style:qe([{marginTop:`${e.title&&e.description?0:"18px"}`}])},{default:So(()=>[Vr(X(e.description),1)]),_:1},8,["style"])):Wr("",!0),Mi(e.$slots,"default",{},()=>[e.description?(Ir(),zr(c,{key:0})):Wr("",!0),jr(d,{"scroll-y":"",class:"u-action-sheet__item-wrap",style:qe({maxHeight:e.wrapMaxHeight})},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(e.actions,(t,n)=>(Ir(),zr(l,{key:n},{default:So(()=>[jr(l,{class:"u-action-sheet__item-wrap__item",onClick:ua(e=>r.selectHandler(n),["stop"]),"hover-class":t.disabled||t.loading?"":"u-action-sheet--hover","hover-stay-time":150},{default:So(()=>[t.loading?(Ir(),zr(u,{key:1,"custom-class":"van-action-sheet__loading",size:"18",mode:"circle"})):(Ir(),Mr(xr,{key:0},[jr(s,{class:"u-action-sheet__item-wrap__item__name",style:qe([r.itemStyle(n)])},{default:So(()=>[Vr(X(t.name),1)]),_:2},1032,["style"]),t.subname?(Ir(),zr(s,{key:0,class:"u-action-sheet__item-wrap__item__subname"},{default:So(()=>[Vr(X(t.subname),1)]),_:2},1024)):Wr("",!0)],64))]),_:2},1032,["onClick","hover-class"]),n!==e.actions.length-1?(Ir(),zr(c,{key:0})):Wr("",!0)]),_:2},1024))),128))]),_:1},8,["style"])],!0),e.cancelText?(Ir(),zr(h,{key:2,bgColor:"#eaeaec",height:"6"})):Wr("",!0),e.cancelText?(Ir(),zr(l,{key:3,class:"u-action-sheet__item-wrap__item u-action-sheet__cancel","hover-class":"u-action-sheet--hover",onClick:r.cancel},{default:So(()=>[jr(s,{onTouchmove:t[0]||(t[0]=ua(()=>{},["stop","prevent"])),"hover-stay-time":150,class:"u-action-sheet__cancel-text"},{default:So(()=>[Vr(X(e.cancelText),1)]),_:1})]),_:1},8,["onClick"])):Wr("",!0)]),_:3})]),_:3},8,["show","onClose","safeAreaInsetBottom","round"])}],["__scopeId","data-v-70f379df"]]),Zx=Object.freeze(Object.defineProperty({__proto__:null,default:Jx},Symbol.toStringTag,{value:"Module"}));const eS=W_({name:"up-agreement",props:{urlProtocol:{type:String,default:"/pages/user_agreement/agreement/info?title=用户协议"},urlPrivacy:{type:String,default:"/pages/user_agreement/agreement/info?title=隐私政策"}},emits:["confirm"],data:()=>({show:!1}),methods:{close(){window.opener=null,window.close()},confirm(){this.show=!1,this.$emit("confirm",1)},showModal(){this.show=!0},urlClick(e){jv({url:this[e]})}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay,l=Bo("up-modal");return Ir(),zr(a,{class:"up-agreement"},{default:So(()=>[jr(l,{show:i.show,"onUpdate:show":t[2]||(t[2]=e=>i.show=e),showCancelButton:"",onConfirm:r.confirm,onCancel:r.close,confirmText:"阅读并同意"},{default:So(()=>[jr(a,{class:"agreement-content"},{default:So(()=>[Mi(e.$slots,"default",{},()=>[Vr(" 我们非常重视您的个人信息和隐私保护。为了更好地保障您的个人权益，在您使用我们的产品前， 请务必审慎阅读《"),jr(s,{class:"agreement-url",onClick:t[0]||(t[0]=e=>r.urlClick("urlProtocol"))},{default:So(()=>[Vr("用户协议")]),_:1}),Vr("》 和《"),jr(s,{class:"agreement-url",onClick:t[1]||(t[1]=e=>r.urlClick("urlPrivacy"))},{default:So(()=>[Vr("隐私政策")]),_:1}),Vr("》内的所有条款， 尤其是:1.我们对您的个人信息的收集/保存/使用/对外提供/保护等规则条款，以及您的用户权利等条款;2. 约定我们的限制责任、免责 条款;3.其他以颜色或加粗进行标识的重要条款。如您对以上协议有任何疑问，请先不要同意，您点击“同意并继续”的行为即表示您已阅读 完毕并同意以上协议的全部内容。 ")],!0)]),_:3})]),_:3},8,["show","onConfirm","onCancel"])]),_:3})}],["__scopeId","data-v-ab2b76e7"]]),tS=Object.freeze(Object.defineProperty({__proto__:null,default:eS},Symbol.toStringTag,{value:"Module"})),nS={props:{urls:{type:Array,default:()=>cx.album.urls},keyName:{type:String,default:()=>cx.album.keyName},singleSize:{type:[String,Number],default:()=>cx.album.singleSize},multipleSize:{type:[String,Number],default:()=>cx.album.multipleSize},space:{type:[String,Number],default:()=>cx.album.space},singleMode:{type:String,default:()=>cx.album.singleMode},multipleMode:{type:String,default:()=>cx.album.multipleMode},maxCount:{type:[String,Number],default:()=>cx.album.maxCount},previewFullImage:{type:Boolean,default:()=>cx.album.previewFullImage},rowCount:{type:[String,Number],default:()=>cx.album.rowCount},showMore:{type:Boolean,default:()=>cx.album.showMore},shape:{type:String,default:()=>cx.image.shape},radius:{type:[String,Number],default:()=>cx.image.radius},autoWrap:{type:Boolean,default:()=>cx.album.autoWrap},unit:{type:[String],default:()=>cx.album.unit},stop:{type:Boolean,default:()=>cx.album.stop}}},oS={name:"u-album",mixins:[hx,fx,nS],data:()=>({singleWidth:0,singleHeight:0,singlePercent:.6}),watch:{urls:{immediate:!0,handler(e){1===e.length&&this.getImageRect()}}},computed:{imageStyle(){return(e,t)=>{const{space:n,rowCount:o,multipleSize:i,urls:r}=this,s=this.showUrls.length;this.urls.length;const a={marginRight:zw(n),marginBottom:zw(n)};return e!==s||this.autoWrap||(a.marginBottom=0),this.autoWrap||(t===o||e===s&&t===this.showUrls[e-1].length)&&(a.marginRight=0),a}},showUrls(){if(this.autoWrap)return[this.urls.slice(0,this.maxCount)];{const e=[];return this.urls.map((t,n)=>{if(n+1<=this.maxCount){const o=Math.floor(n/this.rowCount);e[o]||(e[o]=[]),e[o].push(t)}}),e}},imageWidth(){return zw(1===this.urls.length?this.singleWidth:this.multipleSize,this.unit)},imageHeight(){return zw(1===this.urls.length?this.singleHeight:this.multipleSize,this.unit)},albumWidth(){let e=0;return e=1===this.urls.length?this.singleWidth:this.showUrls[0].length*this.multipleSize+this.space*(this.showUrls[0].length-1),this.$emit("albumWidth",e),e}},emits:["preview","albumWidth"],methods:{addUnit:zw,onPreviewTap(e,t){const n=this.urls.map(e=>this.getSrc(e));this.previewFullImage?(Av({current:t,urls:n}),this.stop&&this.preventEvent(e)):this.$emit("preview",{urls:n,currentIndex:n.indexOf(t)})},getSrc(e){return fw.object(e)?this.keyName&&e[this.keyName]||e.src:e},getImageRect(){const e=this.getSrc(this.urls[0]);ov({src:e,success:e=>{let t=this.singleSize,n="";Number.isNaN(Number(this.singleSize))&&(n=this.singleSize.replace(/\d+/g,""),t=Number(this.singleSize.replace(/\D+/g,""),10));const o=e.width>=e.height;this.singleWidth=o?t:e.width/e.height*t,this.singleHeight=o?e.height/e.width*this.singleWidth:t,null!=n&&""!==n&&(this.singleWidth=this.singleWidth+n,this.singleHeight=this.singleHeight+n)},fail:()=>{this.getComponentWidth()}})},async getComponentWidth(){await kw(30),this.$uGetRect(".u-album__row").then(e=>{this.singleWidth=e.width*this.singlePercent})}}};const iS=W_(oS,[["render",function(e,t,n,o,i,r){const s=Jm,a=Bo("up-text"),l=Ay;return Ir(),zr(l,{class:"u-album"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(r.showUrls,(t,n)=>(Ir(),zr(l,{class:"u-album__row",ref_for:!0,ref:"u-album__row",forComputedUse:r.albumWidth,key:n,style:qe({flexWrap:e.autoWrap?"wrap":"nowrap"})},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(t,(t,o)=>(Ir(),zr(l,{class:"u-album__row__wrapper",key:o,style:qe([r.imageStyle(n+1,o+1)]),onClick:e=>r.onPreviewTap(e,r.getSrc(t))},{default:So(()=>[jr(s,{src:r.getSrc(t),mode:1===e.urls.length?r.imageHeight>0?e.singleMode:"widthFix":e.multipleMode,style:qe([{width:r.imageWidth,height:r.imageHeight,borderRadius:"circle"==e.shape?"10000px":r.addUnit(e.radius)}])},null,8,["src","mode","style"]),e.showMore&&e.urls.length>e.rowCount*r.showUrls.length&&n===r.showUrls.length-1&&o===r.showUrls[r.showUrls.length-1].length-1?(Ir(),zr(l,{key:0,class:"u-album__row__wrapper__text",style:qe({borderRadius:"circle"==e.shape?"50%":r.addUnit(e.radius)})},{default:So(()=>[jr(a,{text:"+"+(e.urls.length-e.maxCount),color:"#fff",size:.3*e.multipleSize,align:"center",customStyle:"justify-content: center"},null,8,["text","size"])]),_:1},8,["style"])):Wr("",!0)]),_:2},1032,["style","onClick"]))),128))]),_:2},1032,["forComputedUse","style"]))),128))]),_:1})}],["__scopeId","data-v-cb7c71d6"]]),rS=Object.freeze(Object.defineProperty({__proto__:null,default:iS},Symbol.toStringTag,{value:"Module"})),sS={props:{title:{type:String,default:()=>cx.alert.title},type:{type:String,default:()=>cx.alert.type},description:{type:String,default:()=>cx.alert.description},closable:{type:Boolean,default:()=>cx.alert.closable},showIcon:{type:Boolean,default:()=>cx.alert.showIcon},effect:{type:String,default:()=>cx.alert.effect},center:{type:Boolean,default:()=>cx.alert.center},fontSize:{type:[String,Number],default:()=>cx.alert.fontSize},transitionMode:{type:[String],default:()=>cx.alert.transitionMode},duration:{type:[Number],default:()=>cx.alert.duration},icon:{type:[String],default:()=>cx.alert.icon},modelValue:{type:[String],default:()=>cx.alert.value}}};const aS=W_({name:"u-alert",mixins:[hx,fx,sS],data:()=>({show:!0}),computed:{iconColor(){return"light"===this.effect?this.type:"#fff"},iconName(){if(this.icon)return this.icon;switch(this.type){case"success":return"checkmark-circle-fill";case"error":return"close-circle-fill";case"warning":default:return"error-circle-fill";case"info":return"info-circle-fill";case"primary":return"more-circle-fill"}}},emits:["click","close","closed","update:modelValue"],watch:{modelValue:{handler(e){this.show=e},immediate:!0},show:{handler(e){this.$emit("update:modelValue",e),!e&&this.duration>0&&this.$emit("closed")}}},mounted(){this.duration>0&&setTimeout(()=>{this.closeHandler()},this.duration)},methods:{addUnit:zw,addStyle:Mw,clickHandler(){this.$emit("click")},closeHandler(){this.show=!1,this.$emit("close")}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay,l=wy,c=Bo("up-transition");return Ir(),zr(c,{mode:e.transitionMode,show:i.show},{default:So(()=>[jr(a,{class:Qe(["u-alert",[`u-alert--${e.type}--${e.effect}`]]),onClick:ua(r.clickHandler,["stop"]),style:qe([r.addStyle(e.customStyle)])},{default:So(()=>[e.showIcon?(Ir(),zr(a,{key:0,class:"u-alert__icon"},{default:So(()=>[jr(s,{name:r.iconName,size:"18",color:r.iconColor},null,8,["name","color"])]),_:1})):Wr("",!0),jr(a,{class:"u-alert__content",style:qe([{paddingRight:e.closable?"20px":0}])},{default:So(()=>[e.title?(Ir(),zr(l,{key:0,class:Qe(["u-alert__content__title",["dark"===e.effect?"u-alert__text--dark":`u-alert__text--${e.type}--light`]]),style:qe([{fontSize:r.addUnit(e.fontSize),textAlign:e.center?"center":"left"}])},{default:So(()=>[Vr(X(e.title),1)]),_:1},8,["style","class"])):Wr("",!0),e.description?(Ir(),zr(l,{key:1,class:Qe(["u-alert__content__desc",["dark"===e.effect?"u-alert__text--dark":`u-alert__text--${e.type}--light`]]),style:qe([{fontSize:r.addUnit(e.fontSize),textAlign:e.center?"center":"left"}])},{default:So(()=>[Vr(X(e.description),1)]),_:1},8,["style","class"])):Wr("",!0)]),_:1},8,["style"]),e.closable?(Ir(),zr(a,{key:1,class:"u-alert__close",onClick:ua(r.closeHandler,["stop"])},{default:So(()=>[Mi(e.$slots,"close",{},()=>[jr(s,{name:"close",color:r.iconColor,size:"15"},null,8,["color"])],!0)]),_:3},8,["onClick"])):Wr("",!0)]),_:3},8,["class","onClick","style"])]),_:3},8,["mode","show"])}],["__scopeId","data-v-d1eda9d5"]]),lS=Object.freeze(Object.defineProperty({__proto__:null,default:aS},Symbol.toStringTag,{value:"Module"})),cS={props:{src:{type:String,default:()=>cx.avatar.src},shape:{type:String,default:()=>cx.avatar.shape},size:{type:[String,Number],default:()=>cx.avatar.size},mode:{type:String,default:()=>cx.avatar.mode},text:{type:String,default:()=>cx.avatar.text},bgColor:{type:String,default:()=>cx.avatar.bgColor},color:{type:String,default:()=>cx.avatar.color},fontSize:{type:[String,Number],default:()=>cx.avatar.fontSize},icon:{type:String,default:()=>cx.avatar.icon},mpAvatar:{type:Boolean,default:()=>cx.avatar.mpAvatar},randomBgColor:{type:Boolean,default:()=>cx.avatar.randomBgColor},defaultUrl:{type:String,default:()=>cx.avatar.defaultUrl},colorIndex:{type:[String,Number],validator:e=>fw.range(e,[0,19])||""===e,default:()=>cx.avatar.colorIndex},name:{type:String,default:()=>cx.avatar.name}}};const uS=W_({name:"u-avatar",mixins:[hx,fx,cS],data(){return{colors:["#ffb34b","#f2bba9","#f7a196","#f18080","#88a867","#bfbf39","#89c152","#94d554","#f19ec2","#afaae4","#e1b0df","#c38cc1","#72dcdc","#9acdcb","#77b1cc","#448aca","#86cefa","#98d1ee","#73d1f1","#80a7dc"],avatarUrl:this.src,allowMp:!1}},watch:{src:{immediate:!0,handler(e){this.avatarUrl=e,e||this.errorHandler()}}},computed:{imageStyle:()=>({})},created(){this.init()},emits:["click"],methods:{addStyle:Mw,addUnit:zw,random:Bw,init(){},isImg(){return-1!==this.src.indexOf("/")},errorHandler(){this.avatarUrl=this.defaultUrl||"data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjREMEQwRkY0RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjREMEQwRkY1RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NEQwRDBGRjJGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NEQwRDBGRjNGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCADIAMgDAREAAhEBAxEB/8QAcQABAQEAAwEBAAAAAAAAAAAAAAUEAQMGAgcBAQAAAAAAAAAAAAAAAAAAAAAQAAIBAwICBgkDBQAAAAAAAAABAhEDBCEFMVFBYXGREiKBscHRMkJSEyOh4XLxYjNDFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHbHFyZ/Dam+yLA+Z2L0Pjtyj2poD4AAAAAAAAAAAAAAAAAAAAAAAAKWFs9y6lcvvwQeqj8z9wFaziY1n/HbUX9XF97A7QAGXI23EvJ1goyfzR0YEfN269jeZ+a03pNe0DIAAAAAAAAAAAAAAAAAAAACvtO3RcVkXlWutuL9YFYAAAAAOJRjKLjJVi9GmB5/csH/mu1h/in8PU+QGMAAAAAAAAAAAAAAAAAAaMDG/6MmMH8C80+xAelSSVFolwQAAAAAAAHVlWI37ErUulaPk+hgeYnCUJuElSUXRrrQHAAAAAAAAAAAAAAAAABa2Oz4bM7r4zdF2ICmAAAAAAAAAg7zZ8GX41wuJP0rRgYAAAAAAAAAAAAAAAAAD0m2R8ODaXU33tsDSAAAAAAAAAlb9HyWZcnJd9PcBHAAAAAAAAAAAAAAAAAPS7e64Vn+KA0AAAAAAAAAJm+v8Ftf3ewCKAAAAAAAAAAAAAAAAAX9muqeGo9NttP06+0DcAAAAAAAAAjb7dTu2ra+VOT9P8AQCWAAAAAAAAAAAAAAAAAUNmyPt5Ltv4bui/kuAF0AAAAAAADiUlGLlJ0SVW+oDzOXfd/Ind6JPRdS0QHSAAAAAAAAAAAAAAAAAE2nVaNcGB6Lbs6OTao9LsF51z60BrAAAAAABJ3jOVHjW3r/sa9QEgAAAAAAAAAAAAAAAAAAAPu1duWriuW34ZR4MC9hbnZyEoy8l36XwfYBsAAADaSq9EuLAlZ+7xSdrGdW9Hc5dgEdtt1erfFgAAAAAAAAAAAAAAAAADVjbblX6NR8MH80tEBRs7HYivyzlN8lovaBPzduvY0m6eK10TXtAyAarO55lpJK54orolr+4GqO/Xaea1FvqbXvA+Z77kNeW3GPbV+4DJfzcm/pcm3H6Vou5AdAFLC2ed2Pjv1txa8sV8T6wOL+yZEKu1JXFy4MDBOE4ScZxcZLinoB8gAAAAAAAAAAAB242LeyJ+C3GvN9C7QLmJtePYpKS+5c+p8F2IDYAANJqj1T4oCfk7Nj3G5Wn9qXJax7gJ93Z82D8sVNc4v30A6Xg5i42Z+iLfqARwcyT0sz9MWvWBps7LlTf5Grce9/oBTxdtxseklHxT+uWr9AGoAB138ezfj4bsFJdD6V2MCPm7RdtJzs1uW1xXzL3gTgAAAAAAAAADRhYc8q74I6RWs5ckB6GxYtWLat21SK731sDsAAAAAAAAAAAAAAAASt021NO/YjrxuQXT1oCOAAAAAAABzGLlJRSq26JAelwsWONYjbXxcZvmwO8AAAAAAAAAAAAAAAAAAef3TEWPkVivx3NY9T6UBiAAAAAABo2+VmGXblddIJ8eivRUD0oAAAAAAAAAAAAAAAAAAAYt4tKeFKVNYNSXfRgefAAAAAAAAr7VuSSWPedKaW5v1MCsAAAAAAAAAAAAAAAAAAIe6bj96Ts2n+JPzSXzP3ATgAAAAAAAAFbbt1UUrOQ9FpC4/UwK6aaqtU+DAAAAAAAAAAAAAAA4lKMIuUmoxWrb4ARNx3R3q2rLpa4Sl0y/YCcAAAAAAAAAAANmFud7G8r89r6X0dgFvGzLGRGtuWvTF6NAdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z"},clickHandler(e){this.$emit("click",this.name,e)}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Bo("up-text"),l=Jm,c=Ay;return Ir(),zr(c,{class:Qe(["u-avatar",[`u-avatar--${e.shape}`]]),style:qe([{backgroundColor:e.text||e.icon?e.randomBgColor?i.colors[""!==e.colorIndex?e.colorIndex:r.random(0,19)]:e.bgColor:"transparent",width:r.addUnit(e.size),height:r.addUnit(e.size)},r.addStyle(e.customStyle)]),onClick:r.clickHandler},{default:So(()=>[Mi(e.$slots,"default",{},()=>[e.mpAvatar&&i.allowMp?(Ir(),Mr(xr,{key:0},[],64)):e.icon?(Ir(),zr(s,{key:1,name:e.icon,size:e.fontSize,color:e.color},null,8,["name","size","color"])):e.text?(Ir(),zr(a,{key:2,text:e.text,size:e.fontSize,color:e.color,align:"center",customStyle:"justify-content: center"},null,8,["text","size","color"])):(Ir(),zr(l,{key:3,class:Qe(["u-avatar__image",[`u-avatar__image--${e.shape}`]]),src:i.avatarUrl||e.defaultUrl,mode:e.mode,onError:r.errorHandler,style:qe([{width:r.addUnit(e.size),height:r.addUnit(e.size)}])},null,8,["class","src","mode","onError","style"]))],!0)]),_:3},8,["class","style","onClick"])}],["__scopeId","data-v-59e4b943"]]),dS=Object.freeze(Object.defineProperty({__proto__:null,default:uS},Symbol.toStringTag,{value:"Module"})),hS={props:{urls:{type:Array,default:()=>cx.avatarGroup.urls},maxCount:{type:[String,Number],default:()=>cx.avatarGroup.maxCount},shape:{type:String,default:()=>cx.avatarGroup.shape},mode:{type:String,default:()=>cx.avatarGroup.mode},showMore:{type:Boolean,default:()=>cx.avatarGroup.showMore},size:{type:[String,Number],default:()=>cx.avatarGroup.size},keyName:{type:String,default:()=>cx.avatarGroup.keyName},gap:{type:[String,Number],validator:e=>e>=0&&e<=1,default:()=>cx.avatarGroup.gap},extraValue:{type:[Number,String],default:()=>cx.avatarGroup.extraValue}}};const pS=W_({name:"u-avatar-group",mixins:[hx,fx,hS],data:()=>({}),computed:{showUrl(){return this.urls.slice(0,this.maxCount)}},emits:["showMore"],methods:{addUnit:zw,testObject:fw.object,clickHandler(){this.$emit("showMore")}}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-avatar"),uS),a=Bo("up-text"),l=Ay;return Ir(),zr(l,{class:"u-avatar-group"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(r.showUrl,(t,n)=>(Ir(),zr(l,{class:"u-avatar-group__item",key:n,style:qe({marginLeft:0===n?0:r.addUnit(-e.size*e.gap)})},{default:So(()=>[jr(s,{size:e.size,shape:e.shape,mode:e.mode,src:r.testObject(t)?e.keyName&&t[e.keyName]||t.url:t},null,8,["size","shape","mode","src"]),e.showMore&&n===r.showUrl.length-1&&(e.urls.length>e.maxCount||e.extraValue>0)?(Ir(),zr(l,{key:0,class:"u-avatar-group__item__show-more",onClick:r.clickHandler},{default:So(()=>[jr(a,{color:"#ffffff",size:.4*e.size,text:`+${e.extraValue||e.urls.length-r.showUrl.length}`,align:"center",customStyle:"justify-content: center"},null,8,["size","text"])]),_:1},8,["onClick"])):Wr("",!0)]),_:2},1032,["style"]))),128))]),_:1})}],["__scopeId","data-v-157b5605"]]),fS=Object.freeze(Object.defineProperty({__proto__:null,default:pS},Symbol.toStringTag,{value:"Module"}));const mS=W_({name:"u-back-top",mixins:[hx,fx,{props:{mode:{type:String,default:()=>cx.backtop.mode},icon:{type:String,default:()=>cx.backtop.icon},text:{type:String,default:()=>cx.backtop.text},duration:{type:[String,Number],default:()=>cx.backtop.duration},scrollTop:{type:[String,Number],default:()=>cx.backtop.scrollTop},top:{type:[String,Number],default:()=>cx.backtop.top},bottom:{type:[String,Number],default:()=>cx.backtop.bottom},right:{type:[String,Number],default:()=>cx.backtop.right},zIndex:{type:[String,Number],default:()=>cx.backtop.zIndex},iconStyle:{type:Object,default:()=>cx.backtop.iconStyle}}}],computed:{backTopStyle(){return{bottom:zw(this.bottom),right:zw(this.right),width:"40px",height:"40px",position:"fixed",zIndex:10}},show(){return Sw(this.scrollTop)>Sw(this.top)},contentStyle(){const e={};let t=0;return t="circle"===this.mode?"100px":"4px",e.borderTopLeftRadius=t,e.borderTopRightRadius=t,e.borderBottomLeftRadius=t,e.borderBottomRightRadius=t,Rw(e,Mw(this.customStyle))}},emits:["click"],methods:{backToTop(){f_({scrollTop:0,duration:this.duration}),this.$emit("click")}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=wy,l=Ay,c=yx(Po("u-transition"),Nx);return Ir(),zr(c,{mode:"fade",customStyle:r.backTopStyle,show:r.show},{default:So(()=>[e.$slots.default||e.$slots.$default?Mi(e.$slots,"default",{key:1},void 0,!0):(Ir(),zr(l,{key:0,class:"u-back-top",style:qe([r.contentStyle]),onClick:r.backToTop},{default:So(()=>[jr(s,{name:e.icon,"custom-style":e.iconStyle},null,8,["name","custom-style"]),e.text?(Ir(),zr(a,{key:0,class:"u-back-top__text"},{default:So(()=>[Vr(X(e.text),1)]),_:1})):Wr("",!0)]),_:1},8,["style","onClick"]))]),_:3},8,["customStyle","show"])}],["__scopeId","data-v-e227bdef"]]),gS=Object.freeze(Object.defineProperty({__proto__:null,default:mS},Symbol.toStringTag,{value:"Module"}));const yS=W_({name:"u-badge",mixins:[hx,{props:{isDot:{type:Boolean,default:()=>cx.badge.isDot},value:{type:[Number,String],default:()=>cx.badge.value},modelValue:{type:[Number,String],default:()=>cx.badge.modelValue},show:{type:Boolean,default:()=>cx.badge.show},max:{type:[Number,String],default:()=>cx.badge.max},type:{type:String,default:()=>cx.badge.type},showZero:{type:Boolean,default:()=>cx.badge.showZero},bgColor:{type:[String,null],default:()=>cx.badge.bgColor},color:{type:[String,null],default:()=>cx.badge.color},shape:{type:String,default:()=>cx.badge.shape},numberType:{type:String,default:()=>cx.badge.numberType},offset:{type:Array,default:()=>cx.badge.offset},inverted:{type:Boolean,default:()=>cx.badge.inverted},absolute:{type:Boolean,default:()=>cx.badge.absolute}}},fx],computed:{boxStyle:()=>({}),badgeStyle(){const e={};if(this.color&&(e.color=this.color),this.bgColor&&!this.inverted&&(e.backgroundColor=this.bgColor),this.absolute&&(e.position="absolute",this.offset.length)){const t=this.offset[0],n=this.offset[1]||t;e.top=zw(t),e.right=zw(n)}return e},showValue(){switch(this.numberType){case"overflow":return Number(this.value)>Number(this.max)?this.max+"+":this.value;case"ellipsis":return Number(this.value)>Number(this.max)?"...":this.value;case"limit":return Number(this.value)>999?Number(this.value)>=9999?Math.floor(this.value/1e4*100)/100+"w":Math.floor(this.value/1e3*100)/100+"k":this.value;default:return Number(this.value)}}},methods:{addStyle:Mw}},[["render",function(e,t,n,o,i,r){const s=wy;return e.show&&(0!==Number(e.value)||e.showZero||e.isDot)?(Ir(),zr(s,{key:0,class:Qe([[e.isDot?"u-badge--dot":"u-badge--not-dot",e.inverted&&"u-badge--inverted","horn"===e.shape&&"u-badge--horn",`u-badge--${e.type}${e.inverted?"--inverted":""}`],"u-badge"]),style:qe([r.addStyle(e.customStyle),r.badgeStyle])},{default:So(()=>[Vr(X(e.isDot?"":r.showValue),1)]),_:1},8,["class","style"])):Wr("",!0)}],["__scopeId","data-v-1fdad862"]]),bS=Object.freeze(Object.defineProperty({__proto__:null,default:yS},Symbol.toStringTag,{value:"Module"}));const vS=W_({name:"u-barcode",props:{value:{type:[String,Number],required:!0},format:{type:String,default:"auto",validator:function(e){return["auto","CODE128","CODE128A","CODE128B","CODE128C","EAN13","EAN8","EAN5","EAN2","UPC","UPCA","UPCE","CODE39","ITF","ITF14","MSI","MSI10","MSI11","MSI1010","MSI1110","pharmacode","codabar"].includes(e)}},width:{type:Number,default:200},height:{type:Number,default:80},displayValue:{type:Boolean,default:!0},text:{type:String,default:void 0},fontOptions:{type:String,default:""},font:{type:String,default:"monospace"},textAlign:{type:String,default:"center"},textPosition:{type:String,default:"bottom"},textMargin:{type:Number,default:2},fontSize:{type:Number,default:14},background:{type:String,default:"#ffffff"},lineColor:{type:String,default:"#000000"},margin:{type:Number,default:10},marginTop:{type:Number,default:void 0},marginBottom:{type:Number,default:void 0},marginLeft:{type:Number,default:void 0},marginRight:{type:Number,default:void 0},useCanvas:{type:Boolean,default:!0}},data:()=>({canvasId:"barcode-"+Math.random().toString(36).substr(2,9),barcodeImage:"",showCanvas:!1,canvasWidth:0,canvasHeight:0,calcSizeDone:!1,error:""}),watch:{value(){this.generateBarcode()},format(){this.generateBarcode()},width(){this.generateBarcode()},height(){this.generateBarcode()},displayValue(){this.generateBarcode()},text(){this.generateBarcode()},font(){this.generateBarcode()},textAlign(){this.generateBarcode()},textPosition(){this.generateBarcode()},textMargin(){this.generateBarcode()},fontSize(){this.generateBarcode()},background(){this.generateBarcode()},lineColor(){this.generateBarcode()},margin(){this.generateBarcode()}},mounted(){this.$nextTick(()=>{this.generateBarcode()})},methods:{generateBarcode(){const e=this.margin,t={format:this.format||"auto",width:this.width,height:this.height,displayValue:this.displayValue,text:this.text,fontOptions:this.fontOptions||"",font:this.font||"monospace",textAlign:this.textAlign||"center",textPosition:this.textPosition||"bottom",textMargin:void 0!==this.textMargin?this.textMargin:2,fontSize:this.fontSize||20,background:this.background||"#ffffff",lineColor:this.lineColor||"#000000",margin:e,marginTop:void 0!==this.marginTop?this.marginTop:e,marginBottom:void 0!==this.marginBottom?this.marginBottom:e,marginLeft:void 0!==this.marginLeft?this.marginLeft:e,marginRight:void 0!==this.marginRight?this.marginRight:e};Object.keys(t).forEach(e=>{void 0===t[e]&&delete t[e]}),this.useCanvas?(this.showCanvas=!0,this.$nextTick(()=>{this.renderToCanvas(t)})):(this.showCanvas=!1,this.renderToImage(t))},async renderToCanvas(e){try{this.calculateCanvasSize(e),await ao();const t=Vh(this.canvasId,this);t.setFillStyle(e.background),t.fillRect(0,0,this.canvasWidth,this.canvasHeight);const n=this.encodeBarcode(this.value,e.format);n&&this.drawBarcode(t,n,e),t.draw(!1,()=>{this.$emit("rendered",{type:"canvas",id:this.canvasId})})}catch(t){console.error("生成条码失败:",t),this.error=t.message||Zw("up.barcode.error"),this.$emit("error",t)}},renderToImage(e){try{this.calculateCanvasSize(e);const t="temp-"+this.canvasId,n=Vh(t,this);n.setFillStyle(e.background),n.fillRect(0,0,this.canvasWidth,this.canvasHeight);const o=this.encodeBarcode(this.value,e.format);o&&this.drawBarcode(n,o,e),n.draw(!1,()=>{setTimeout(()=>{qh({canvasId:t,success:e=>{this.barcodeImage=e.tempFilePath,this.$emit("rendered",{type:"image",value:this.value,path:e.tempFilePath})},fail:e=>{console.error("生成条码图片失败:",e),this.$emit("error",e)}},this)},100)})}catch(t){console.error("生成条码图片失败:",t),this.$emit("error",t)}},calculateCanvasSize(e){let t=e.width,n=e.height;const o=e.marginLeft,i=e.marginRight,r=e.marginTop,s=e.marginBottom;let a=0;!1!==e.displayValue&&(a=e.fontSize+e.textMargin),"top"!==e.textPosition&&"bottom"!==e.textPosition||(n+=a),t+=o+i,n+=r+s,this.canvasWidth=Math.max(t,100),this.canvasHeight=Math.max(n,60+a),this.calcSizeDone=!0},encodeBarcode(e,t){try{switch(t){case"CODE128":case"auto":default:return this.encodeCode128(e);case"CODE39":return this.encodeCode39(e);case"EAN13":return this.encodeEAN13(e);case"EAN8":return this.encodeEAN8(e);case"EAN5":case"EAN2":return this.encodeEAN52(e,t);case"UPC":case"UPCA":return this.encodeUPCA(e);case"UPCE":return this.encodeUPCE(e)}}catch(n){throw console.error("条码编码失败:",n),n}},encodeCode128(e){const t=[];let n=104;t.push(104);for(let i=0;i<e.length;i++){const o=e[i],r=" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".indexOf(o);if(-1===r)throw new Error("Invalid character in CODE128: "+o);t.push(r),n+=r*(i+1)}t.push(n%103),t.push(106);let o="";for(let i=0;i<t.length;i++){const e=t[i];o+=this.getCode128Pattern(e)}return o+="00000",o},getCode128Pattern:e=>["11011001100","11001101100","11001100110","10010011000","10010001100","10001001100","10011001000","10011000100","10001100100","11001001000","11001000100","11000100100","10110011100","10011011100","10011001110","10111001100","10011101100","10011100110","11001110010","11001011100","11001001110","11011100100","11001110100","11101101110","11101001100","11100101100","11100100110","11101100100","11100110100","11100110010","11011011000","11011000110","11000110110","10100011000","10001011000","10001000110","10110001000","10001101000","10001100010","11010001000","11000101000","11000100010","10110111000","10110001110","10001101110","10111011000","10111000110","10001110110","11101110110","11010001110","11000101110","11011101000","11011100010","11011101110","11101011000","11101000110","11100010110","11101101000","11101100010","11100011010","11101111010","11001000010","11110001010","10100110000","10100001100","10010110000","10010000110","10000101100","10000100110","10110010000","10110000100","10011010000","10011000010","10000110100","10000110010","11000010010","11001010000","11110111010","11000010100","10001111010","10100111100","10010111100","10010011110","10111100100","10011110100","10011110010","11110100100","11110010100","11110010010","11011011110","11011110110","11110110110","10101111000","10100011110","10001011110","10111101000","10111100010","11110101000","11110100010","10111011110","10111101110","11101011110","11110101110","11010000100","11010010000","11010011100","11000111010"][e]||"",encodeCode39(e){const t={0:"101000111011101",1:"111010001010111",2:"101110001010111",3:"111011100010101",4:"101000111010111",5:"111010001110101",6:"101110001110101",7:"101000101110111",8:"111010001011101",9:"101110001011101",A:"111010100010111",B:"101110100010111",C:"111011101000101",D:"101011100010111",E:"111010111000101",F:"101110111000101",G:"101010001110111",H:"111010100011101",I:"101110100011101",J:"101011100011101",K:"111010101000111",L:"101110101000111",M:"111011101010001",N:"101011101000111",O:"111010111010001",P:"101110111010001",Q:"101010111000111",R:"111010101110001",S:"101110101110001",T:"101011101110001",U:"111000101010111",V:"100011101010111",W:"111000111010101",X:"100010111010111",Y:"111000101110101",Z:"100011101110101","-":"100010101110111",".":"111000101011101"," ":"100011101011101","*":"100010111011101",$:"100010001000101","/":"100010001010001","+":"100010100010001","%":"101000100010001"};e=e.toUpperCase();let n=t["*"];for(let o=0;o<e.length;o++){const i=e[o];if(!t[i])throw new Error("Invalid character in CODE39: "+i);n+="0",n+=t[i]}return n+="0",n+=t["*"],n},encodeEAN13(e){if(!/^\d{13}$/.test(e))throw new Error("EAN13 must be 13 digits");let t=0;for(let u=0;u<12;u++){const n=parseInt(e[u]);t+=u%2==0?n:3*n}const n=(10-t%10)%10;if(parseInt(e[12])!==n)throw new Error("Invalid EAN13 check digit");const o=e.substring(1,7),i=e.substring(7,13);let r="101";const s=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"][parseInt(e[0])],a=["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],l=["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"];for(let u=0;u<o.length;u++){const e=parseInt(o[u]);"L"===s[u]?r+=a[e]:r+=l[e]}r+="01010";const c=["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"];for(let u=0;u<i.length;u++){r+=c[parseInt(i[u])]}return r+="101",r},encodeEAN8(e){if(!/^\d{8}$/.test(e))throw new Error("EAN8 must be 8 digits");let t=0;for(let l=0;l<7;l++){t+=parseInt(e[l])*(l%2==0?3:1)}const n=(10-t%10)%10;if(parseInt(e[7])!==n)throw new Error("Invalid EAN8 check digit");const o=e.substring(0,4),i=e.substring(4,8);let r="101";const s=["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"];for(let l=0;l<o.length;l++){r+=s[parseInt(o[l])]}r+="01010";const a=["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"];for(let l=0;l<i.length;l++){r+=a[parseInt(i[l])]}return r+="101",r},encodeEAN52(e,t){const n="EAN5"===t?5:2;if(!new RegExp(`^\\d{${n}}$`).test(e))throw new Error(`${t} must be ${n} digits`);const o=["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"];let i=0;for(let s=0;s<e.length;s++)i+=parseInt(e[s])*(s%2==0?3:1);let r="1011";for(let s=0;s<e.length;s++){s>0&&(r+="01");r+=o[parseInt(e[s])]}return r},encodeUPCA(e){if(/^\d{11}$/.test(e)){let t=0;for(let n=0;n<11;n++){const o=parseInt(e[n]);t+=n%2==0?3*o:o}e+=(10-t%10)%10}if(!/^\d{12}$/.test(e))throw new Error("UPC-A must be 11 or 12 digits");return this.encodeEAN13("0"+e)},encodeUPCE(e){if(/^\d{7}$/.test(e)){let t=0;for(let n=0;n<7;n++){const o=parseInt(e[n]);t+=n%2==0?3*o:o}e+=(10-t%10)%10}if(!/^\d{8}$/.test(e))throw new Error("UPC-E must be 7 or 8 digits");if("0"!==e[0]&&"1"!==e[0])throw new Error("UPC-E must start with 0 or 1");const t=["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],n=["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"];e[0];const o=e[7],i=e.substring(1,7);let r;r="0"===o||"1"===o||"2"===o||"3"===o?"EEEEOO":"4"===o?"EEEOOO":"EEOOOO";let s="101";for(let a=0;a<i.length;a++){const e=parseInt(i[a]);"E"===r[a]?s+=n[e]:s+=t[e]}return s+="010101",s+="101",s},drawBarcode(e,t,n){if(!t)return;const o=n.marginLeft,i=n.marginTop,r=n.marginBottom,s=!1!==n.displayValue?n.fontSize+n.textMargin:0,a=n.height,l=Math.max(1,(this.canvasWidth-o-(n.marginRight||10))/t.length);e.setFillStyle(n.lineColor);let c=i;!1!==n.displayValue&&"top"===n.textPosition&&(c+=s);let u=o;for(let d=0;d<t.length;d++)"1"===t[d]&&e.fillRect(u,c,l,a),u+=l;if(!1!==n.displayValue){const t=n.text||this.value;let s,l;switch(e.setFillStyle(n.lineColor),e.setFontSize(n.fontSize),e.setTextAlign(n.textAlign),n.textAlign){case"left":l=o;break;case"right":l=this.canvasWidth-n.marginRight;break;default:l=this.canvasWidth/2}"top"===n.textPosition?s=i+n.fontSize-3:(s=c+a+n.textMargin+n.fontSize,s>this.canvasHeight-r&&(s=this.canvasHeight-r-2)),e.fillText(t,l,s)}}}},[["render",function(e,t,n,o,i,r){const s=zm,a=Jm,l=wy,c=Ay;return i.calcSizeDone?(Ir(),zr(c,{key:0,class:"u-barcode"},{default:So(()=>[i.showCanvas&&!i.error?(Ir(),zr(s,{key:0,id:i.canvasId,"canvas-id":i.canvasId,style:qe({width:i.canvasWidth+"px",height:i.canvasHeight+"px"})},null,8,["id","canvas-id","style"])):i.showCanvas||i.error?(Ir(),zr(c,{key:2,class:"error-container",style:qe({width:i.canvasWidth+"px",height:i.canvasHeight+"px"})},{default:So(()=>[jr(l,{class:"error-text"},{default:So(()=>[Vr(X(i.error),1)]),_:1})]),_:1},8,["style"])):(Ir(),zr(a,{key:1,src:i.barcodeImage,style:qe({width:i.canvasWidth+"px",height:i.canvasHeight+"px"}),mode:"aspectFit"},null,8,["src","style"]))]),_:1})):Wr("",!0)}],["__scopeId","data-v-7769878c"]]),_S=Object.freeze(Object.defineProperty({__proto__:null,default:vS},Symbol.toStringTag,{value:"Module"}));const wS=W_({name:"up-box",data:()=>({}),mixins:[hx,fx,{props:{bgColors:{type:[Array],default:["#EEFCFF","#FCF8FF","#FDF8F2"]},height:{type:[String],default:"160px"},borderRadius:{type:[String],default:"6px"},gap:{type:[String],default:"15px"}}}],computed:{},emits:[],methods:{addStyle:Mw}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-box",style:qe([{height:e.height},r.addStyle(e.customStyle)])},{default:So(()=>[jr(s,{class:"u-box__left",style:qe({borderRadius:e.borderRadius,backgroundColor:e.bgColors[0]})},{default:So(()=>[Mi(e.$slots,"left",{},()=>[Vr("左")],!0)]),_:3},8,["style"]),jr(s,{class:"u-box__gap",style:qe({width:e.gap,height:e.height})},null,8,["style"]),jr(s,{class:"u-box__right"},{default:So(()=>[jr(s,{class:"u-box__right-top",style:qe({borderRadius:e.borderRadius,backgroundColor:e.bgColors[1]})},{default:So(()=>[Mi(e.$slots,"rightTop",{},()=>[Vr("右上")],!0)]),_:3},8,["style"]),jr(s,{class:"u-box__right-gap",style:qe({height:e.gap})},null,8,["style"]),jr(s,{class:"u-box__right-bottom",style:qe({borderRadius:e.borderRadius,backgroundColor:e.bgColors[2]})},{default:So(()=>[Mi(e.$slots,"rightBottom",{},()=>[Vr("右下")],!0)]),_:3},8,["style"])]),_:3})]),_:3},8,["style"])}],["__scopeId","data-v-bca816a6"]]),xS=Object.freeze(Object.defineProperty({__proto__:null,default:wS},Symbol.toStringTag,{value:"Module"})),SS={props:{hairline:{type:Boolean,default:()=>cx.button.hairline},type:{type:String,default:()=>cx.button.type},size:{type:String,default:()=>cx.button.size},shape:{type:String,default:()=>cx.button.shape},plain:{type:Boolean,default:()=>cx.button.plain},disabled:{type:Boolean,default:()=>cx.button.disabled},loading:{type:Boolean,default:()=>cx.button.loading},loadingText:{type:[String,Number],default:()=>cx.button.loadingText},loadingMode:{type:String,default:()=>cx.button.loadingMode},loadingSize:{type:[String,Number],default:()=>cx.button.loadingSize},openType:{type:String,default:()=>cx.button.openType},formType:{type:String,default:()=>cx.button.formType},appParameter:{type:String,default:()=>cx.button.appParameter},hoverStopPropagation:{type:Boolean,default:()=>cx.button.hoverStopPropagation},lang:{type:String,default:()=>cx.button.lang},sessionFrom:{type:String,default:()=>cx.button.sessionFrom},sendMessageTitle:{type:String,default:()=>cx.button.sendMessageTitle},sendMessagePath:{type:String,default:()=>cx.button.sendMessagePath},sendMessageImg:{type:String,default:()=>cx.button.sendMessageImg},showMessageCard:{type:Boolean,default:()=>cx.button.showMessageCard},dataName:{type:String,default:()=>cx.button.dataName},throttleTime:{type:[String,Number],default:()=>cx.button.throttleTime},hoverStartTime:{type:[String,Number],default:()=>cx.button.hoverStartTime},hoverStayTime:{type:[String,Number],default:()=>cx.button.hoverStayTime},text:{type:[String,Number],default:()=>cx.button.text},icon:{type:String,default:()=>cx.button.icon},iconColor:{type:String,default:()=>cx.button.icon},color:{type:String,default:()=>cx.button.color},stop:{type:Boolean,default:()=>cx.button.stop}}};let kS;function CS(e,t=500,n=!0){n?kS||(kS=!0,"function"==typeof e&&e(),setTimeout(()=>{kS=!1},t)):kS||(kS=!0,setTimeout(()=>{kS=!1,"function"==typeof e&&e()},t))}const AS=W_({name:"u-button",mixins:[hx,fx,SS],data:()=>({}),computed:{bemClass(){return this.color?this.bem("button",["shape","size"],["disabled","plain","hairline"]):this.bem("button",["type","shape","size"],["disabled","plain","hairline"])},loadingColor(){return this.plain?this.color?this.color:G_[`u-${this.type}`]:"info"===this.type?"#c9c9c9":"rgb(200, 200, 200)"},iconColorCom(){return this.iconColor?this.iconColor:this.plain?this.color?this.color:this.type:"info"===this.type?"#000000":"#ffffff"},baseColor(){let e={};return this.color&&(e.color=this.plain?this.color:"white",this.plain||(e["background-color"]=this.color),-1!==this.color.indexOf("gradient")?(e.borderTopWidth=0,e.borderRightWidth=0,e.borderBottomWidth=0,e.borderLeftWidth=0,this.plain||(e.backgroundImage=this.color)):(e.borderColor=this.color,e.borderWidth="1px",e.borderStyle="solid")),e},nvueTextStyle(){let e={};return"info"===this.type&&(e.color="#323233"),this.color&&(e.color=this.plain?this.color:"white"),e.fontSize=this.textSize+"px",e},textSize(){let e=14,{size:t}=this;return"large"===t&&(e=16),"normal"===t&&(e=14),"small"===t&&(e=12),"mini"===t&&(e=10),e}},emits:["click","getphonenumber","getuserinfo","error","opensetting","launchapp","agreeprivacyauthorization"],methods:{addStyle:Mw,clickHandler(e){this.disabled||this.loading||CS(()=>{this.$emit("click",e)},this.throttleTime),this.stop&&this.preventEvent(e)},getphonenumber(e){this.$emit("getphonenumber",e)},getuserinfo(e){this.$emit("getuserinfo",e)},error(e){this.$emit("error",e)},opensetting(e){this.$emit("opensetting",e)},launchapp(e){this.$emit("launchapp",e)},agreeprivacyauthorization(e){this.$emit("agreeprivacyauthorization",e)}}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-loading-icon"),Px),a=wy,l=Bo("up-icon"),c=gd;return Ir(),zr(c,{"hover-start-time":Number(e.hoverStartTime),"hover-stay-time":Number(e.hoverStayTime),"form-type":e.formType,"open-type":e.openType,"app-parameter":e.appParameter,"hover-stop-propagation":e.hoverStopPropagation,"send-message-title":e.sendMessageTitle,"send-message-path":e.sendMessagePath,lang:e.lang,"data-name":e.dataName,"session-from":e.sessionFrom,"send-message-img":e.sendMessageImg,"show-message-card":e.showMessageCard,onGetphonenumber:r.getphonenumber,onGetuserinfo:r.getuserinfo,onError:r.error,onOpensetting:r.opensetting,onLaunchapp:r.launchapp,onAgreeprivacyauthorization:r.agreeprivacyauthorization,"hover-class":e.disabled||e.loading?"":"u-button--active",class:Qe(["u-button u-reset-button",r.bemClass]),style:qe([r.baseColor,r.addStyle(e.customStyle)]),onClick:r.clickHandler},{default:So(()=>[e.loading?(Ir(),Mr(xr,{key:0},[jr(s,{mode:e.loadingMode,size:1.15*e.loadingSize,color:r.loadingColor},null,8,["mode","size","color"]),jr(a,{class:"u-button__loading-text",style:qe([{fontSize:r.textSize+"px"}])},{default:So(()=>[Vr(X(e.loadingText||e.text),1)]),_:1},8,["style"])],64)):(Ir(),Mr(xr,{key:1},[e.icon?(Ir(),zr(l,{key:0,name:e.icon,color:r.iconColorCom,size:1.35*r.textSize,customStyle:{marginRight:"2px"}},null,8,["name","color","size"])):Wr("",!0),Mi(e.$slots,"default",{},()=>[jr(a,{class:"u-button__text",style:qe([{fontSize:r.textSize+"px"}])},{default:So(()=>[Vr(X(e.text),1)]),_:1},8,["style"])],!0)],64))]),_:3},8,["hover-start-time","hover-stay-time","form-type","open-type","app-parameter","hover-stop-propagation","send-message-title","send-message-path","lang","data-name","session-from","send-message-img","show-message-card","onGetphonenumber","onGetuserinfo","onError","onOpensetting","onLaunchapp","onAgreeprivacyauthorization","hover-class","style","onClick","class"])}],["__scopeId","data-v-c81ae896"]]),TS=Object.freeze(Object.defineProperty({__proto__:null,default:AS},Symbol.toStringTag,{value:"Module"}));const IS=W_({name:"u-calendar-header",mixins:[hx,fx],props:{title:{type:String,default:""},subtitle:{type:String,default:""},showTitle:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},weekText:{type:Array,default:()=>[]}},data:()=>({}),methods:{name(){}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay;return Ir(),zr(a,{class:"u-calendar-header u-border-bottom"},{default:So(()=>[n.showTitle?(Ir(),zr(s,{key:0,class:"u-calendar-header__title"},{default:So(()=>[Vr(X(n.title),1)]),_:1})):Wr("",!0),n.showSubtitle?(Ir(),zr(s,{key:1,class:"u-calendar-header__subtitle"},{default:So(()=>[Vr(X(n.subtitle),1)]),_:1})):Wr("",!0),jr(a,{class:"u-calendar-header__weekdays"},{default:So(()=>[jr(s,{class:"u-calendar-header__weekdays__weekday"},{default:So(()=>[Vr(X(n.weekText[0]),1)]),_:1}),jr(s,{class:"u-calendar-header__weekdays__weekday"},{default:So(()=>[Vr(X(n.weekText[1]),1)]),_:1}),jr(s,{class:"u-calendar-header__weekdays__weekday"},{default:So(()=>[Vr(X(n.weekText[2]),1)]),_:1}),jr(s,{class:"u-calendar-header__weekdays__weekday"},{default:So(()=>[Vr(X(n.weekText[3]),1)]),_:1}),jr(s,{class:"u-calendar-header__weekdays__weekday"},{default:So(()=>[Vr(X(n.weekText[4]),1)]),_:1}),jr(s,{class:"u-calendar-header__weekdays__weekday"},{default:So(()=>[Vr(X(n.weekText[5]),1)]),_:1}),jr(s,{class:"u-calendar-header__weekdays__weekday"},{default:So(()=>[Vr(X(n.weekText[6]),1)]),_:1})]),_:1})]),_:1})}],["__scopeId","data-v-fc517033"]]);var BS=function(){var e=6e4,t=36e5,n="millisecond",o="second",i="minute",r="hour",s="day",a="week",l="month",c="quarter",u="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(o,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var o=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(o,l),r=n-i<0,s=t.clone().add(o+(r?-1:1),l);return+(-(o+(n-i)/(r?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:a,d:s,D:d,h:r,m:i,s:o,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",v={};v[b]=m;var _="$isDayjsObject",w=function(e){return e instanceof C||!(!e||!e[_])},x=function e(t,n,o){var i;if(!t)return b;if("string"==typeof t){var r=t.toLowerCase();v[r]&&(i=r),n&&(v[r]=n,i=r);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;v[a]=t,i=a}return!o&&i&&(b=i),i||!o&&b},S=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=y;k.l=x,k.i=w,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(p);if(o){var i=o[2]-1||0,r=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],i,o[3]||1,o[4]||0,o[5]||0,o[6]||0,r)):new Date(o[1],i,o[3]||1,o[4]||0,o[5]||0,o[6]||0,r)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!k.u(t)||t,h=k.p(e),p=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?o:o.endOf(s)},f=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(h){case u:return c?p(1,0):p(31,11);case l:return c?p(1,g):p(0,g+1);case a:var v=this.$locale().weekStart||0,_=(m<v?m+7:m)-v;return p(c?y-_:y+(6-_),g);case s:case d:return f(b+"Hours",0);case r:return f(b+"Minutes",1);case i:return f(b+"Seconds",2);case o:return f(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var a,c=k.p(e),h="set"+(this.$u?"UTC":""),p=(a={},a[s]=h+"Date",a[d]=h+"Date",a[l]=h+"Month",a[u]=h+"FullYear",a[r]=h+"Hours",a[i]=h+"Minutes",a[o]=h+"Seconds",a[n]=h+"Milliseconds",a)[c],f=c===s?this.$D+(t-this.$W):t;if(c===l||c===u){var m=this.clone().set(d,1);m.$d[p](f),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(n,c){var d,h=this;n=Number(n);var p=k.p(c),f=function(e){var t=S(h);return k.w(t.date(t.date()+Math.round(e*n)),h)};if(p===l)return this.set(l,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===s)return f(1);if(p===a)return f(7);var m=(d={},d[i]=e,d[r]=t,d[o]=1e3,d)[p]||1,g=this.$d.getTime()+n*m;return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var o=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),r=this.$H,s=this.$m,a=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,i,r){return e&&(e[n]||e(t,o))||i[n].slice(0,r)},p=function(e){return k.s(r%12||12,e,"0")},m=u||function(e,t,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o};return o.replace(f,function(e,o){return o||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return a+1;case"MM":return k.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(r);case"HH":return k.s(r,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(r,s,!0);case"A":return m(r,s,!1);case"m":return String(s);case"mm":return k.s(s,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,h){var p,f=this,m=k.p(d),g=S(n),y=(g.utcOffset()-this.utcOffset())*e,b=this-g,v=function(){return k.m(f,g)};switch(m){case u:p=v()/12;break;case l:p=v();break;case c:p=v()/3;break;case a:p=(b-y)/6048e5;break;case s:p=(b-y)/864e5;break;case r:p=b/t;break;case i:p=b/e;break;case o:p=b/1e3;break;default:p=b}return h?p:k.a(p)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return v[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),o=x(e,t,!0);return o&&(n.$L=o),n},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),A=C.prototype;return S.prototype=A,[["$ms",n],["$s",o],["$m",i],["$H",r],["$W",s],["$M",l],["$y",u],["$D",d]].forEach(function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,C,S),e.$i=!0),S},S.locale=x,S.isDayjs=w,S.unix=function(e){return S(1e3*e)},S.en=v[b],S.Ls=v,S.p={},S}();const ES=W_({name:"u-calendar-month",mixins:[hx,fx],props:{showMark:{type:Boolean,default:!0},color:{type:String,default:"#3c9cff"},months:{type:Array,default:()=>[]},mode:{type:String,default:"single"},rowHeight:{type:[String,Number],default:58},maxCount:{type:[String,Number],default:1/0},startText:{type:String,default:"开始"},endText:{type:String,default:"结束"},defaultDate:{type:[Array,String,Date],default:null},minDate:{type:[String,Number],default:0},maxDate:{type:[String,Number],default:0},maxMonth:{type:[String,Number],default:2},readonly:{type:Boolean,default:()=>cx.calendar.readonly},maxRange:{type:[Number,String],default:1/0},rangePrompt:{type:String,default:""},showRangePrompt:{type:Boolean,default:!0},allowSameDay:{type:Boolean,default:!1},forbidDays:{type:Array,default:()=>[]},forbidDaysToast:{type:String,default:""}},data:()=>({width:0,item:{},selected:[]}),watch:{selectedChange:{immediate:!0,handler(e){this.setDefaultDate()}}},computed:{selectedChange(){return[this.minDate,this.maxDate,this.defaultDate]},dayStyle(e,t,n){return(e,t,n)=>{const o={};let i=n.week;const r=Number(parseFloat(this.width/7).toFixed(3).slice(0,-1));return o.height=zw(this.rowHeight,"px"),0===t&&(i=(0===i?7:i)-1,o.marginLeft=zw(i*r,"px")),"range"===this.mode&&(o.paddingLeft=0,o.paddingRight=0,o.paddingBottom=0,o.paddingTop=0),o}},daySelectStyle(){return(e,t,n)=>{let o=BS(n.date).format("YYYY-MM-DD"),i={};if(this.selected.some(e=>this.dateSame(e,o))&&(i.backgroundColor=this.color),"single"===this.mode)o===this.selected[0]&&(i.borderTopLeftRadius="3px",i.borderBottomLeftRadius="3px",i.borderTopRightRadius="3px",i.borderBottomRightRadius="3px");else if("range"===this.mode)if(this.selected.length>=2){const e=this.selected.length-1;this.dateSame(o,this.selected[0])&&(i.borderTopLeftRadius="3px",i.borderBottomLeftRadius="3px"),this.dateSame(o,this.selected[e])&&(i.borderTopRightRadius="3px",i.borderBottomRightRadius="3px"),BS(o).isAfter(BS(this.selected[0]))&&BS(o).isBefore(BS(this.selected[e]))&&(i.backgroundColor=Tx(this.color,"#ffffff",100)[90],i.opacity=.7)}else 1===this.selected.length&&(i.borderTopLeftRadius="3px",i.borderBottomLeftRadius="3px");else this.selected.some(e=>this.dateSame(e,o))&&(i.borderTopLeftRadius="3px",i.borderBottomLeftRadius="3px",i.borderTopRightRadius="3px",i.borderBottomRightRadius="3px");return i}},textStyle(){return e=>{const t=BS(e.date).format("YYYY-MM-DD"),n={};if(this.selected.some(e=>this.dateSame(e,t))&&(n.color="#ffffff"),"range"===this.mode){const e=this.selected.length-1;BS(t).isAfter(BS(this.selected[0]))&&BS(t).isBefore(BS(this.selected[e]))&&(n.color=this.color)}return n}},getBottomInfo(){return(e,t,n)=>{const o=BS(n.date).format("YYYY-MM-DD"),i=n.bottomInfo;if("range"===this.mode&&this.selected.length>0){if(1===this.selected.length)return this.dateSame(o,this.selected[0])?this.startText:i;{const e=this.selected.length-1;return this.dateSame(o,this.selected[0])&&this.dateSame(o,this.selected[1])&&1===e?`${this.startText}/${this.endText}`:this.dateSame(o,this.selected[0])?this.startText:this.dateSame(o,this.selected[e])?this.endText:i}}return i}}},mounted(){this.init()},emits:["monthSelected","updateMonthTop"],methods:{init(){this.$emit("monthSelected",this.selected),this.$nextTick(()=>{kw(10).then(()=>{this.getWrapperWidth(),this.getMonthRect()})})},monthTitle:e=>"zh-Hans"==fp()||"zh-Hant"==fp()?e.year+"年"+(e.month<10?"0"+e.month:e.month)+"月":(e.month<10?"0"+e.month:e.month)+"/"+e.year,isForbid(e){let t=BS(e.date).format("YYYY-MM-DD");return!("range"===this.mode||!this.forbidDays.includes(t))},dateSame:(e,t)=>BS(e).isSame(BS(t)),getWrapperWidth(){this.$uGetRect(".u-calendar-month-wrapper").then(e=>{this.width=e.width})},getMonthRect(){const e=this.months.map((e,t)=>this.getMonthRectByPromise(`u-calendar-month-${t}`));Promise.all(e).then(e=>{let t=1;const n=[];for(let o=0;o<this.months.length;o++)n[o]=t,t+=e[o].height;this.$emit("updateMonthTop",n)})},getMonthRectByPromise(e){return new Promise(t=>{this.$uGetRect(`.${e}`).then(e=>{t(e)})})},clickHandler(e,t,n){if(this.readonly)return;this.item=n;const o=BS(n.date).format("YYYY-MM-DD");if(n.disabled)return;if(this.isForbid(n))return void s_({title:this.forbidDaysToast});let i=Ow(this.selected);if("single"===this.mode)i=[o];else if("multiple"===this.mode)if(i.some(e=>this.dateSame(e,o))){const e=i.findIndex(e=>e===o);i.splice(e,1)}else i.length<this.maxCount&&i.push(o);else if(0===i.length||i.length>=2)i=[o];else if(1===i.length){const e=i[0];if(BS(o).isBefore(e))i=[o];else if(BS(o).isAfter(e)){if(BS(BS(o).subtract(this.maxRange,"day")).isAfter(BS(i[0]))&&this.showRangePrompt)return void(this.rangePrompt?Fw(this.rangePrompt):Fw(Zw("up.calendar.daysExceed",{days:this.maxRange})));i.push(o);const e=i[0],t=i[1],n=[];let r=0;do{n.push(BS(e).add(r,"day").format("YYYY-MM-DD")),r++}while(BS(e).add(r,"day").isBefore(BS(t)));n.push(t),i=n}else{if(i[0]===o&&!this.allowSameDay)return;i.push(o)}}this.setSelected(i)},setDefaultDate(){if(!this.defaultDate){const e=[BS().format("YYYY-MM-DD")];return this.setSelected(e,!1)}let e=[];const t=this.minDate||BS().format("YYYY-MM-DD"),n=this.maxDate||BS(t).add(this.maxMonth-1,"month").format("YYYY-MM-DD");if("single"===this.mode)e=fw.array(this.defaultDate)?[this.defaultDate[0]]:[BS(this.defaultDate).format("YYYY-MM-DD")];else{if(!fw.array(this.defaultDate))return;e=this.defaultDate}e=e.filter(e=>BS(e).isAfter(BS(t).subtract(1,"day"))&&BS(e).isBefore(BS(n).add(1,"day"))),this.setSelected(e,!1)},setSelected(e,t=!0){this.selected=e,t&&this.$emit("monthSelected",this.selected,"tap")}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay;return Ir(),zr(a,{class:"u-calendar-month-wrapper",ref:"u-calendar-month-wrapper"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(n.months,(e,t)=>(Ir(),zr(a,{key:t,class:Qe([`u-calendar-month-${t}`]),ref_for:!0,ref:`u-calendar-month-${t}`,id:`month-${t}`},{default:So(()=>[0!==t?(Ir(),zr(s,{key:0,class:"u-calendar-month__title"},{default:So(()=>[Vr(X(r.monthTitle(e)),1)]),_:2},1024)):Wr("",!0),jr(a,{class:"u-calendar-month__days"},{default:So(()=>[n.showMark?(Ir(),zr(a,{key:0,class:"u-calendar-month__days__month-mark-wrapper"},{default:So(()=>[jr(s,{class:"u-calendar-month__days__month-mark-wrapper__text"},{default:So(()=>[Vr(X(e.month),1)]),_:2},1024)]),_:2},1024)):Wr("",!0),(Ir(!0),Mr(xr,null,Pi(e.date,(e,n)=>(Ir(),zr(a,{class:Qe(["u-calendar-month__days__day",[e.selected&&"u-calendar-month__days__day__select--selected"]]),key:n,style:qe([r.dayStyle(t,n,e)]),onClick:o=>r.clickHandler(t,n,e)},{default:So(()=>[jr(a,{class:"u-calendar-month__days__day__select",style:qe([r.daySelectStyle(t,n,e)])},{default:So(()=>[jr(s,{class:Qe(["u-calendar-month__days__day__select__info",[e.disabled||r.isForbid(e)?"u-calendar-month__days__day__select__info--disabled":""]]),style:qe([r.textStyle(e)])},{default:So(()=>[Vr(X(e.day),1)]),_:2},1032,["class","style"]),r.getBottomInfo(t,n,e)?(Ir(),zr(s,{key:0,class:Qe(["u-calendar-month__days__day__select__buttom-info",[e.disabled||r.isForbid(e)?"u-calendar-month__days__day__select__buttom-info--disabled":""]]),style:qe([r.textStyle(e)])},{default:So(()=>[Vr(X(r.getBottomInfo(t,n,e)),1)]),_:2},1032,["class","style"])):Wr("",!0),e.dot?(Ir(),zr(s,{key:1,class:"u-calendar-month__days__day__select__dot"})):Wr("",!0)]),_:2},1032,["style"])]),_:2},1032,["style","onClick","class"]))),128))]),_:2},1024)]),_:2},1032,["class","id"]))),128))]),_:1},512)}],["__scopeId","data-v-cb19fc6f"]]),PS={props:{title:{type:String,default:()=>cx.calendar.title},showTitle:{type:Boolean,default:()=>cx.calendar.showTitle},showSubtitle:{type:Boolean,default:()=>cx.calendar.showSubtitle},mode:{type:String,default:()=>cx.calendar.mode},startText:{type:String,default:()=>cx.calendar.startText},endText:{type:String,default:()=>cx.calendar.endText},customList:{type:Array,default:()=>cx.calendar.customList},color:{type:String,default:()=>cx.calendar.color},minDate:{type:[String,Number],default:()=>cx.calendar.minDate},maxDate:{type:[String,Number],default:()=>cx.calendar.maxDate},defaultDate:{type:[Array,String,Date,null],default:()=>cx.calendar.defaultDate},maxCount:{type:[String,Number],default:()=>cx.calendar.maxCount},rowHeight:{type:[String,Number],default:()=>cx.calendar.rowHeight},formatter:{type:[Function,null],default:()=>cx.calendar.formatter},showLunar:{type:Boolean,default:()=>cx.calendar.showLunar},showMark:{type:Boolean,default:()=>cx.calendar.showMark},confirmText:{type:String,default:()=>cx.calendar.confirmText},confirmDisabledText:{type:String,default:()=>cx.calendar.confirmDisabledText},show:{type:Boolean,default:()=>cx.calendar.show},closeOnClickOverlay:{type:Boolean,default:()=>cx.calendar.closeOnClickOverlay},readonly:{type:Boolean,default:()=>cx.calendar.readonly},showConfirm:{type:Boolean,default:()=>cx.calendar.showConfirm},maxRange:{type:[Number,String],default:()=>cx.calendar.maxRange},rangePrompt:{type:String,default:()=>cx.calendar.rangePrompt},showRangePrompt:{type:Boolean,default:()=>cx.calendar.showRangePrompt},allowSameDay:{type:Boolean,default:()=>cx.calendar.allowSameDay},round:{type:[Boolean,String,Number],default:()=>cx.calendar.round},monthNum:{type:[Number,String],default:3},weekText:{type:Array,default:cx.calendar.weekText},forbidDays:{type:Array,default:cx.calendar.forbidDays},forbidDaysToast:{type:String,default:cx.calendar.forbidDaysToast},monthFormat:{type:String,default:cx.calendar.monthFormat},pageInline:{type:Boolean,default:cx.calendar.pageInline}}};var MS={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(e){var t,n=348;for(t=32768;t>8;t>>=1)n+=this.lunarInfo[e-1900]&t?1:0;return n+this.leapDays(e)},leapMonth:function(e){return 15&this.lunarInfo[e-1900]},leapDays:function(e){return this.leapMonth(e)?65536&this.lunarInfo[e-1900]?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:this.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;var n=t-1;return 1==n?e%4==0&&e%100!=0||e%400==0?29:28:this.solarMonth[n]},toGanZhiYear:function(e){var t=(e-3)%10,n=(e-3)%12;return 0==t&&(t=10),0==n&&(n=12),this.Gan[t-1]+this.Zhi[n-1]},toAstro:function(e,t){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*e-(t<[20,19,21,21,21,22,23,23,23,23,22,22][e-1]?2:0),2)+"座"},toGanZhi:function(e){return this.Gan[e%10]+this.Zhi[e%12]},getTerm:function(e,t){if(e<1900||e>2100)return-1;if(t<1||t>24)return-1;var n=this.sTermInfo[e-1900],o=[parseInt("0x"+n.substr(0,5)).toString(),parseInt("0x"+n.substr(5,5)).toString(),parseInt("0x"+n.substr(10,5)).toString(),parseInt("0x"+n.substr(15,5)).toString(),parseInt("0x"+n.substr(20,5)).toString(),parseInt("0x"+n.substr(25,5)).toString()],i=[o[0].substr(0,1),o[0].substr(1,2),o[0].substr(3,1),o[0].substr(4,2),o[1].substr(0,1),o[1].substr(1,2),o[1].substr(3,1),o[1].substr(4,2),o[2].substr(0,1),o[2].substr(1,2),o[2].substr(3,1),o[2].substr(4,2),o[3].substr(0,1),o[3].substr(1,2),o[3].substr(3,1),o[3].substr(4,2),o[4].substr(0,1),o[4].substr(1,2),o[4].substr(3,1),o[4].substr(4,2),o[5].substr(0,1),o[5].substr(1,2),o[5].substr(3,1),o[5].substr(4,2)];return parseInt(i[t-1])},toChinaMonth:function(e){if(e>12||e<1)return-1;var t=this.nStr3[e-1];return t+="月"},toChinaDay:function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=this.nStr2[Math.floor(e/10)],t+=this.nStr1[e%10]}return t},getAnimal:function(e){return this.Animals[(e-4)%12]},solar2lunar:function(e,t,n){if(e<1900||e>2100)return-1;if(1900==e&&1==t&&n<31)return-1;if(e)o=new Date(e,parseInt(t)-1,n);else var o=new Date;var i,r=0,s=(e=o.getFullYear(),t=o.getMonth()+1,n=o.getDate(),(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate())-Date.UTC(1900,0,31))/864e5);for(i=1900;i<2101&&s>0;i++)s-=r=this.lYearDays(i);s<0&&(s+=r,i--);var a=new Date,l=!1;a.getFullYear()==e&&a.getMonth()+1==t&&a.getDate()==n&&(l=!0);var c=o.getDay(),u=this.nStr1[c];0==c&&(c=7);var d=i,h=this.leapMonth(i),p=!1;for(i=1;i<13&&s>0;i++)h>0&&i==h+1&&0==p?(--i,p=!0,r=this.leapDays(d)):r=this.monthDays(d,i),1==p&&i==h+1&&(p=!1),s-=r;0==s&&h>0&&i==h+1&&(p?p=!1:(p=!0,--i)),s<0&&(s+=r,--i);var f=i,m=s+1,g=t-1,y=this.toGanZhiYear(d),b=this.getTerm(e,2*t-1),v=this.getTerm(e,2*t),_=this.toGanZhi(12*(e-1900)+t+11);n>=b&&(_=this.toGanZhi(12*(e-1900)+t+12));var w=!1,x=null;b==n&&(w=!0,x=this.solarTerm[2*t-2]),v==n&&(w=!0,x=this.solarTerm[2*t-1]);var S=Date.UTC(e,g,1,0,0,0,0)/864e5+25567+10,k=this.toGanZhi(S+n-1),C=this.toAstro(t,n);return{lYear:d,lMonth:f,lDay:m,Animal:this.getAnimal(d),IMonthCn:(p?"闰":"")+this.toChinaMonth(f),IDayCn:this.toChinaDay(m),cYear:e,cMonth:t,cDay:n,gzYear:y,gzMonth:_,gzDay:k,isToday:l,isLeap:p,nWeek:c,ncWeek:"星期"+u,isTerm:w,Term:x,astro:C}},lunar2solar:function(e,t,n,o){o=!!o;var i=this.leapMonth(e);if(this.leapDays(e),o&&i!=t)return-1;if(2100==e&&12==t&&n>1||1900==e&&1==t&&n<31)return-1;var r=this.monthDays(e,t),s=r;if(o&&(s=this.leapDays(e,t)),e<1900||e>2100||n>s)return-1;for(var a=0,l=1900;l<e;l++)a+=this.lYearDays(l);var c=0,u=!1;for(l=1;l<t;l++)c=this.leapMonth(e),u||c<=l&&c>0&&(a+=this.leapDays(e),u=!0),a+=this.monthDays(e,l);o&&(a+=r);var d=Date.UTC(1900,1,30,0,0,0),h=new Date(864e5*(a+n-31)+d),p=h.getUTCFullYear(),f=h.getUTCMonth()+1,m=h.getUTCDate();return this.solar2lunar(p,f,m)}};const zS=W_({name:"u-calendar",mixins:[hx,fx,PS],components:{uHeader:IS,uMonth:ES},data:()=>({months:[],monthIndex:0,listHeight:0,selected:[],scrollIntoView:"",scrollIntoViewScroll:"",scrollTop:0,innerFormatter:e=>e}),watch:{scrollIntoView:{immediate:!0,handler(e){}},selectedChange:{immediate:!0,handler(e){this.setMonth()}},show:{immediate:!0,handler(e){e?this.setMonth():this.scrollIntoView=""}}},computed:{innerMaxDate(){return fw.number(this.maxDate)?Number(this.maxDate):this.maxDate},innerMinDate(){return fw.number(this.minDate)?Number(this.minDate):this.minDate},selectedChange(){return[this.innerMinDate,this.innerMaxDate,this.defaultDate]},subtitle(){return this.months.length?"zh-Hans"==fp()||"zh-Hant"==fp()?this.months[this.monthIndex].year+"年"+(this.months[this.monthIndex].month<10?"0"+this.months[this.monthIndex].month:this.months[this.monthIndex].month)+"月":(this.months[this.monthIndex].month<10?"0"+this.months[this.monthIndex].month:this.months[this.monthIndex].month)+"/"+this.months[this.monthIndex].year:""},buttonDisabled(){return"range"===this.mode&&this.selected.length<=1}},mounted(){this.start=Date.now(),this.init()},emits:["confirm","close"],methods:{addUnit:zw,setFormatter(e){this.innerFormatter=e},monthSelected(e,t="init"){if(this.selected=e,!this.showConfirm&&("multiple"===this.mode||"single"===this.mode||"range"===this.mode&&this.selected.length>=2)){if("init"===t)return;"tap"===t&&this.$emit("confirm",this.selected)}},init(){if(this.innerMaxDate&&this.innerMinDate&&new Date(this.innerMaxDate).getTime()<new Date(this.innerMinDate).getTime())return;let e=0;e=this.pageInline?0:30,this.listHeight=5*this.rowHeight+e,this.setMonth()},close(){this.$emit("close")},confirm(){this.buttonDisabled||this.$emit("confirm",this.selected)},getMonths(e,t){const n=BS(e).year(),o=BS(e).month()+1;return 12*(BS(t).year()-n)+(BS(t).month()+1-o)+1},setMonth(){const e=this.innerMinDate||BS().valueOf(),t=this.innerMaxDate||BS(e).add(this.monthNum-1,"month").valueOf(),n=xw(1,this.monthNum,this.getMonths(e,t));this.months=[];for(let o=0;o<n;o++)this.months.push({date:new Array(BS(e).add(o,"month").daysInMonth()).fill(1).map((n,i)=>{let r=i+1;const s=BS(e).add(o,"month").date(r).day(),a=BS(e).add(o,"month").date(r).format("YYYY-MM-DD");let l="";if(this.showLunar){l=MS.solar2lunar(BS(a).year(),BS(a).month()+1,BS(a).date()).IDayCn}let c={day:r,week:s,disabled:BS(a).isBefore(BS(e).format("YYYY-MM-DD"))||BS(a).isAfter(BS(t).format("YYYY-MM-DD")),date:new Date(a),bottomInfo:l,dot:!1,month:BS(e).add(o,"month").month()+1};return(this.formatter||this.innerFormatter)(c)}),month:BS(e).add(o,"month").month()+1,year:BS(e).add(o,"month").year()})},scrollIntoDefaultMonth(e){const t=this.months.findIndex(({year:t,month:n})=>`${t}-${n=Uw(n)}`===e);-1!==t&&this.$nextTick(()=>{this.scrollIntoView=`month-${t}`,this.scrollIntoViewScroll=this.scrollIntoView})},onScroll(e){const t=Math.max(0,e.detail.scrollTop);for(let n=0;n<this.months.length;n++)t>=(this.months[n].top||this.listHeight)&&(this.monthIndex=n,this.scrollIntoViewScroll=`month-${n}`)},updateMonthTop(e=[]){if(e.map((e,t)=>{this.months[t].top=e}),!this.defaultDate){const e=BS().format("YYYY-MM");return void this.scrollIntoDefaultMonth(e)}let t=BS().format("YYYY-MM");t=fw.array(this.defaultDate)?BS(this.defaultDate[0]).format("YYYY-MM"):BS(this.defaultDate).format("YYYY-MM"),this.scrollIntoDefaultMonth(t)}}},[["render",function(e,t,n,o,i,r){const s=Bo("uHeader"),a=Bo("uMonth"),l=dy,c=yx(Po("u-button"),AS),u=Ay,d=yx(Po("u-popup"),Yx);return Ir(),zr(d,{show:e.show,mode:"bottom",closeable:!e.pageInline,onClose:r.close,round:e.round,pageInline:e.pageInline,closeOnClickOverlay:e.closeOnClickOverlay},{default:So(()=>[jr(u,{class:"u-calendar"},{default:So(()=>[jr(s,{title:e.title,subtitle:r.subtitle,showSubtitle:e.showSubtitle,showTitle:e.showTitle,weekText:e.weekText},null,8,["title","subtitle","showSubtitle","showTitle","weekText"]),jr(l,{style:qe({height:r.addUnit(i.listHeight,"px")}),"scroll-y":"",onScroll:r.onScroll,"scroll-top":i.scrollTop,scrollIntoView:i.scrollIntoView},{default:So(()=>[jr(a,{color:e.color,rowHeight:e.rowHeight,showMark:e.showMark,months:i.months,mode:e.mode,maxCount:e.maxCount,startText:e.startText,endText:e.endText,defaultDate:e.defaultDate,minDate:r.innerMinDate,maxDate:r.innerMaxDate,maxMonth:e.monthNum,readonly:e.readonly,maxRange:e.maxRange,rangePrompt:e.rangePrompt,showRangePrompt:e.showRangePrompt,allowSameDay:e.allowSameDay,forbidDays:e.forbidDays,forbidDaysToast:e.forbidDaysToast,monthFormat:e.monthFormat,ref:"month",onMonthSelected:r.monthSelected,onUpdateMonthTop:r.updateMonthTop},null,8,["color","rowHeight","showMark","months","mode","maxCount","startText","endText","defaultDate","minDate","maxDate","maxMonth","readonly","maxRange","rangePrompt","showRangePrompt","allowSameDay","forbidDays","forbidDaysToast","monthFormat","onMonthSelected","onUpdateMonthTop"])]),_:1},8,["style","onScroll","scroll-top","scrollIntoView"]),e.showConfirm?Mi(e.$slots,"footer",{key:0},()=>[jr(u,{class:"u-calendar__confirm"},{default:So(()=>[jr(c,{shape:"circle",text:r.buttonDisabled?e.confirmDisabledText:e.confirmText,color:e.color,onClick:r.confirm,disabled:r.buttonDisabled},null,8,["text","color","onClick","disabled"])]),_:1})],!0):Wr("",!0)]),_:3})]),_:3},8,["show","closeable","onClose","round","pageInline","closeOnClickOverlay"])}],["__scopeId","data-v-f632ff0e"]]),OS=Object.freeze(Object.defineProperty({__proto__:null,default:zS},Symbol.toStringTag,{value:"Module"})),RS={props:{random:{type:Boolean,default:!1},autoChange:{type:Boolean,default:!1}}};const LS=W_({name:"u-car-keyboard",mixins:[hx,fx,RS],data:()=>({abc:!1}),computed:{areaList(){let e=["京","沪","粤","津","冀","豫","云","辽","黑","湘","皖","鲁","苏","浙","赣","鄂","桂","甘","晋","陕","蒙","吉","闽","贵","渝","川","青","琼","宁","挂","藏","港","澳","新","使","学"],t=[];return this.random&&(e=Nw(e)),t[0]=e.slice(0,10),t[1]=e.slice(10,20),t[2]=e.slice(20,30),t[3]=e.slice(30,36),t},engKeyBoardList(){let e=[1,2,3,4,5,6,7,8,9,0,"Q","W","E","R","T","Y","U","I","O","P","A","S","D","F","G","H","J","K","L","Z","X","C","V","B","N","M"],t=[];return this.random&&(e=Nw(e)),t[0]=e.slice(0,10),t[1]=e.slice(10,20),t[2]=e.slice(20,30),t[3]=e.slice(30,36),t}},emits:["change","backspace"],methods:{carInputClick(e,t){let n="";n=this.abc?this.engKeyBoardList[e][t]:this.areaList[e][t],!this.abc&&this.autoChange&&kw(200).then(()=>this.abc=!0),this.$emit("change",n)},changeCarInputMode(){this.abc=!this.abc},backspaceClick(){this.$emit("backspace"),clearInterval(this.timer),this.timer=null,this.timer=setInterval(()=>{this.$emit("backspace")},250)},clearTimer(){clearInterval(this.timer),this.timer=null}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay,l=Bo("up-icon");return Ir(),zr(a,{class:"u-keyboard",onTouchmove:ua(e.noop,["stop","prevent"])},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(i.abc?r.engKeyBoardList:r.areaList,(e,t)=>(Ir(),zr(a,{key:t,class:Qe(["u-keyboard__button",[t+1===4&&"u-keyboard__button--center"]]),index:t},{default:So(()=>[3===t?(Ir(),zr(a,{key:0,class:"u-keyboard__button__inner-wrapper"},{default:So(()=>[jr(a,{class:"u-keyboard__button__inner-wrapper__left","hover-class":"u-hover-class","hover-stay-time":200,onClick:r.changeCarInputMode},{default:So(()=>[jr(s,{class:Qe(["u-keyboard__button__inner-wrapper__left__lang",[!i.abc&&"u-keyboard__button__inner-wrapper__left__lang--active"]])},{default:So(()=>[Vr("中")]),_:1},8,["class"]),jr(s,{class:"u-keyboard__button__inner-wrapper__left__line"},{default:So(()=>[Vr("/")]),_:1}),jr(s,{class:Qe(["u-keyboard__button__inner-wrapper__left__lang",[i.abc&&"u-keyboard__button__inner-wrapper__left__lang--active"]])},{default:So(()=>[Vr("英")]),_:1},8,["class"])]),_:1},8,["onClick"])]),_:1})):Wr("",!0),(Ir(!0),Mr(xr,null,Pi(e,(e,n)=>(Ir(),zr(a,{class:"u-keyboard__button__inner-wrapper",key:n},{default:So(()=>[jr(a,{class:"u-keyboard__button__inner-wrapper__inner","hover-stay-time":200,onClick:e=>r.carInputClick(t,n),"hover-class":"u-hover-class"},{default:So(()=>[jr(s,{class:"u-keyboard__button__inner-wrapper__inner__text"},{default:So(()=>[Vr(X(e),1)]),_:2},1024)]),_:2},1032,["onClick"])]),_:2},1024))),128)),3===t?(Ir(),zr(a,{key:1,onTouchstart:r.backspaceClick,onTouchend:r.clearTimer,class:"u-keyboard__button__inner-wrapper"},{default:So(()=>[jr(a,{class:"u-keyboard__button__inner-wrapper__right","hover-class":"u-hover-class","hover-stay-time":200},{default:So(()=>[jr(l,{size:"28",name:"backspace",color:"#303133"})]),_:1})]),_:1},8,["onTouchstart","onTouchend"])):Wr("",!0)]),_:2},1032,["index","class"]))),128))]),_:1},8,["onTouchmove"])}],["__scopeId","data-v-5c7d03de"]]),DS=Object.freeze(Object.defineProperty({__proto__:null,default:LS},Symbol.toStringTag,{value:"Module"})),NS={props:{full:{type:Boolean,default:()=>cx.card.full},title:{type:String,default:()=>cx.card.title},titleColor:{type:String,default:()=>cx.card.titleColor},titleSize:{type:[Number,String],default:()=>cx.card.titleSize},subTitle:{type:String,default:()=>cx.card.subTitle},subTitleColor:{type:String,default:()=>cx.card.subTitleColor},subTitleSize:{type:[Number,String],default:()=>cx.card.subTitleSize},border:{type:Boolean,default:()=>cx.card.border},index:{type:[Number,String,Object],default:()=>cx.card.index},margin:{type:String,default:()=>cx.card.margin},borderRadius:{type:[Number,String],default:()=>cx.card.borderRadius},headStyle:{type:Object,default:()=>cx.card.headStyle},bodyStyle:{type:Object,default:()=>cx.card.bodyStyle},footStyle:{type:Object,default:()=>cx.card.footStyle},headBorderBottom:{type:Boolean,default:()=>cx.card.headBorderBottom},footBorderTop:{type:Boolean,default:()=>cx.card.footBorderTop},thumb:{type:String,default:()=>cx.card.thumb},thumbWidth:{type:[String,Number],default:()=>cx.card.thumbWidth},thumbCircle:{type:Boolean,default:()=>cx.card.thumbCircle},padding:{type:[String,Number],default:()=>cx.card.padding},paddingHead:{type:[String,Number],default:()=>cx.card.paddingHead},paddingBody:{type:[String,Number],default:()=>cx.card.paddingBody},paddingFoot:{type:[String,Number],default:()=>cx.card.paddingFoot},showHead:{type:Boolean,default:()=>cx.card.showHead},showFoot:{type:Boolean,default:()=>cx.card.showFoot},boxShadow:{type:String,default:()=>cx.card.boxShadow}}};const $S=W_({name:"up-card",data:()=>({}),mixins:[hx,fx,NS],emits:["click","head-click","body-click","foot-click"],methods:{addStyle:Mw,addUnit:zw,getPx:Sw,click(){this.$emit("click",this.index)},headClick(){this.$emit("head-click",this.index)},bodyClick(){this.$emit("body-click",this.index)},footClick(){this.$emit("foot-click",this.index)}}},[["render",function(e,t,n,o,i,r){const s=Jm,a=wy,l=Ay;return Ir(),zr(l,{class:Qe(["u-card",{"u-border":e.border,"u-card-full":e.full,"u-card--border":r.getPx(e.borderRadius)>0}]),onClick:ua(r.click,["stop"]),style:qe({borderRadius:r.addUnit(e.borderRadius),margin:e.margin,boxShadow:e.boxShadow})},{default:So(()=>[e.showHead?(Ir(),zr(l,{key:0,class:Qe(["u-card__head",{"u-border-bottom":e.headBorderBottom}]),style:qe([{padding:r.addUnit(e.paddingHead||e.padding)},e.headStyle]),onClick:r.headClick},{default:So(()=>[e.$slots.head?Mi(e.$slots,"head",{key:1},void 0,!0):(Ir(),zr(l,{key:0,class:"u-flex u-flex-between"},{default:So(()=>[e.title?(Ir(),zr(l,{key:0,class:"u-card__head--left u-flex u-line-1"},{default:So(()=>[e.thumb?(Ir(),zr(s,{key:0,src:e.thumb,class:"u-card__head--left__thumb",mode:"aspectFill",style:qe({height:r.addUnit(e.thumbWidth),width:r.addUnit(e.thumbWidth),borderRadius:e.thumbCircle?"50px":"4px"})},null,8,["src","style"])):Wr("",!0),jr(a,{class:"u-card__head--left__title u-line-1",style:qe({fontSize:r.addUnit(e.titleSize),color:e.titleColor})},{default:So(()=>[Vr(X(e.title),1)]),_:1},8,["style"])]),_:1})):Wr("",!0),e.subTitle?(Ir(),zr(l,{key:1,class:"u-card__head--right u-line-1"},{default:So(()=>[jr(a,{class:"u-card__head__title__text",style:qe({fontSize:r.addUnit(e.subTitleSize),color:e.subTitleColor})},{default:So(()=>[Vr(X(e.subTitle),1)]),_:1},8,["style"])]),_:1})):Wr("",!0)]),_:1}))]),_:3},8,["style","class","onClick"])):Wr("",!0),jr(l,{onClick:r.bodyClick,class:"u-card__body",style:qe([{padding:r.addUnit(e.paddingBody||e.padding)},e.bodyStyle])},{default:So(()=>[Mi(e.$slots,"body",{},void 0,!0)]),_:3},8,["onClick","style"]),e.showFoot?(Ir(),zr(l,{key:1,class:Qe(["u-card__foot",{"u-border-top":e.footBorderTop}]),onClick:r.footClick,style:qe([{padding:e.$slots.foot?r.addUnit(e.paddingFoot||e.padding):0},e.footStyle])},{default:So(()=>[Mi(e.$slots,"foot",{},void 0,!0)]),_:3},8,["onClick","style","class"])):Wr("",!0)]),_:3},8,["onClick","class","style"])}],["__scopeId","data-v-5833ca38"]]),jS=Object.freeze(Object.defineProperty({__proto__:null,default:$S},Symbol.toStringTag,{value:"Module"}));const HS=W_({name:"up-cate-tab",props:{height:{type:String,default:"100%"},tabList:{type:Array,default:()=>[]},tabKeyName:{type:String,default:"name"},itemKeyName:{type:String,default:"name"},current:{type:Number,default:0}},watch:{tabList:{deep:!0,handler(e,t){kw(30),this.getMenuItemTop(),this.leftMenuStatus(this.innerCurrent)}},current(e){this.innerCurrent=e,this.leftMenuStatus(this.innerCurrent)},height(){this.getMenuItemTop(),this.leftMenuStatus(this.innerCurrent)}},emits:["update:current"],data:()=>({scrollTop:0,scrollIntoView:"",oldScrollTop:0,innerCurrent:0,menuHeight:0,menuItemHeight:0,itemId:"",menuItemPos:[],rects:[],arr:[],scrollRightTop:0,timer:null}),mounted(){this.innerCurrent=this.current,this.leftMenuStatus(this.innerCurrent),this.getMenuItemTop()},methods:{addUnit:zw,async swichMenu(e){0==this.arr.length&&await this.getMenuItemTop(),this.scrollIntoView="item"+e,e!=this.innerCurrent&&this.$nextTick(function(){this.innerCurrent=e,this.$emit("update:current",e)})},getElRect(e,t){return new Promise((n,o)=>{sp().in(this).select("."+e).fields({size:!0},o=>{o?(this[t]=o.height,n()):setTimeout(()=>{this.getElRect(e)},10)}).exec()})},async observer(){await this.$nextTick(),this._observerList&&this._observerList.forEach(e=>{e.disconnect()}),this._observerList=[],this.tabList.map((e,t)=>{let n=Jh(this);this._observerList.push(n),n.relativeTo(".u-cate-tab__right-box",{top:10}).observe("#item"+t,e=>{if(e.intersectionRatio>0){console.log("res",e);let n=e.id?e.id.substring(4):t;this.leftMenuStatus(parseInt(n))}})})},async leftMenuStatus(e){this.innerCurrent=e,this.$emit("update:current",e),0!=this.menuHeight&&0!=this.menuItemHeight||(await this.getElRect("u-cate-tab__menu-scroll-view","menuHeight"),await this.getElRect("u-cate-tab__item","menuItemHeight")),this.scrollTop=e*this.menuItemHeight+this.menuItemHeight/2-this.menuHeight/2},async getMenuItemTop(){return new Promise(e=>{sp().in(this).selectAll(".u-cate-tab__page-item").boundingClientRect(t=>{t.length?(this.rects=t,this.arr=[],t.forEach(e=>{this.arr.push(e.top-t[0].top)}),e()):setTimeout(()=>{this.getMenuItemTop()},100)}).exec()})},async rightScroll(e){this.oldScrollTop=e.detail.scrollTop,0==this.arr.length&&await this.getMenuItemTop(),this.timer||(this.menuHeight||await this.getElRect("u-cate-tab__menu-scroll-view","menuHeight"),setTimeout(()=>{this.timer=null;let t=e.detail.scrollTop+1;for(let e=0;e<this.arr.length;e++){let n=this.arr[e],o=this.arr[e+1];if(!o||t>=n&&t<=o)return void this.leftMenuStatus(e)}},100))}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay,l=dy,c=Jm;return Ir(),zr(a,{class:"u-cate-tab",style:qe({height:r.addUnit(n.height)})},{default:So(()=>[jr(a,{class:"u-cate-tab__wrap"},{default:So(()=>[jr(l,{class:"u-cate-tab__view u-cate-tab__menu-scroll-view","scroll-y":"","scroll-with-animation":"","scroll-top":i.scrollTop,"scroll-into-view":i.itemId},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(n.tabList,(t,o)=>(Ir(),zr(a,{key:o,class:Qe(["u-cate-tab__item",[i.innerCurrent==o?"u-cate-tab__item-active":""]]),onClick:ua(e=>r.swichMenu(o),["stop"])},{default:So(()=>[Mi(e.$slots,"tabItem",{item:t},void 0,!0),e.$slots.tabItem?Wr("",!0):(Ir(),zr(s,{key:0,class:"u-line-1"},{default:So(()=>[Vr(X(t[n.tabKeyName]),1)]),_:2},1024))]),_:2},1032,["class","onClick"]))),128))]),_:3},8,["scroll-top","scroll-into-view"]),jr(l,{"scroll-top":i.scrollRightTop,"scroll-with-animation":"","scroll-into-view":i.scrollIntoView,"scroll-y":"",class:"u-cate-tab__right-box",onScroll:r.rightScroll},{default:So(()=>[jr(a,{class:"u-cate-tab__right-top"},{default:So(()=>[Mi(e.$slots,"rightTop",{tabList:n.tabList},void 0,!0)]),_:3}),jr(a,{class:"u-cate-tab__page-view"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(n.tabList,(t,o)=>(Ir(),zr(a,{class:"u-cate-tab__page-item",id:"item"+o,key:o},{default:So(()=>[Mi(e.$slots,"itemList",{item:t},void 0,!0),e.$slots.itemList?Wr("",!0):(Ir(),Mr(xr,{key:0},[jr(a,{class:"item-title"},{default:So(()=>[jr(s,null,{default:So(()=>[Vr(X(t[n.tabKeyName]),1)]),_:2},1024)]),_:2},1024),jr(a,{class:"item-container"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(t.children,(t,o)=>Mi(e.$slots,"pageItem",{key:o,pageItem:t},()=>[jr(a,{class:"thumb-box"},{default:So(()=>[jr(c,{class:"item-menu-image",src:t.icon,mode:""},null,8,["src"]),jr(a,{class:"item-menu-name"},{default:So(()=>[Vr(X(t[n.itemKeyName]),1)]),_:2},1024)]),_:2},1024)],!0)),128))]),_:2},1024)],64))]),_:2},1032,["id"]))),128))]),_:3})]),_:3},8,["scroll-top","scroll-into-view","onScroll"])]),_:3})]),_:3},8,["style"])}],["__scopeId","data-v-69a4c5a5"]]),FS=Object.freeze(Object.defineProperty({__proto__:null,default:HS},Symbol.toStringTag,{value:"Module"})),VS={props:{title:{type:String,default:()=>cx.cellGroup.title},border:{type:Boolean,default:()=>cx.cellGroup.border}}};const WS=W_({name:"u-cell-group",mixins:[hx,fx,VS],methods:{addStyle:Mw}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay,l=yx(Po("u-line"),mx);return Ir(),zr(a,{style:qe([r.addStyle(e.customStyle)]),class:Qe([[e.customClass],"u-cell-group"])},{default:So(()=>[e.title?(Ir(),zr(a,{key:0,class:"u-cell-group__title"},{default:So(()=>[Mi(e.$slots,"title",{},()=>[jr(s,{class:"u-cell-group__title__text"},{default:So(()=>[Vr(X(e.title),1)]),_:1})],!0)]),_:3})):Wr("",!0),jr(a,{class:"u-cell-group__wrapper"},{default:So(()=>[e.border?(Ir(),zr(l,{key:0})):Wr("",!0),Mi(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3},8,["style","class"])}],["__scopeId","data-v-31d2f66f"]]),US=Object.freeze(Object.defineProperty({__proto__:null,default:WS},Symbol.toStringTag,{value:"Module"})),qS={props:{title:{type:[String,Number],default:()=>cx.cell.title},label:{type:[String,Number],default:()=>cx.cell.label},value:{type:[String,Number],default:()=>cx.cell.value},icon:{type:String,default:()=>cx.cell.icon},disabled:{type:Boolean,default:()=>cx.cell.disabled},border:{type:Boolean,default:()=>cx.cell.border},center:{type:Boolean,default:()=>cx.cell.center},url:{type:String,default:()=>cx.cell.url},linkType:{type:String,default:()=>cx.cell.linkType},clickable:{type:Boolean,default:()=>cx.cell.clickable},isLink:{type:Boolean,default:()=>cx.cell.isLink},required:{type:Boolean,default:()=>cx.cell.required},rightIcon:{type:String,default:()=>cx.cell.rightIcon},arrowDirection:{type:String,default:()=>cx.cell.arrowDirection},iconStyle:{type:[Object,String],default:()=>cx.cell.iconStyle},rightIconStyle:{type:[Object,String],default:()=>cx.cell.rightIconStyle},titleStyle:{type:[Object,String],default:()=>cx.cell.titleStyle},size:{type:String,default:()=>cx.cell.size},stop:{type:Boolean,default:()=>cx.cell.stop},name:{type:[Number,String],default:()=>cx.cell.name}}};const QS=W_({name:"u-cell",data:()=>({}),mixins:[hx,fx,qS],computed:{titleTextStyle(){return Mw(this.titleStyle)}},emits:["click"],methods:{addStyle:Mw,testEmpty:fw.empty,clickHandler(e){this.disabled||(this.$emit("click",{name:this.name}),this.openPage(),this.stop&&this.preventEvent(e))}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay,l=wy,c=yx(Po("u-line"),mx);return Ir(),zr(a,{class:Qe(["u-cell",[e.customClass]]),style:qe([r.addStyle(e.customStyle)]),"hover-class":e.disabled||!e.clickable&&!e.isLink?"":"u-cell--clickable","hover-stay-time":250,onClick:r.clickHandler},{default:So(()=>[jr(a,{class:Qe(["u-cell__body",[e.center&&"u-cell--center","large"===e.size&&"u-cell__body--large"]])},{default:So(()=>[jr(a,{class:"u-cell__body__content"},{default:So(()=>[e.$slots.icon||e.icon?(Ir(),zr(a,{key:0,class:"u-cell__left-icon-wrap"},{default:So(()=>[e.$slots.icon?Mi(e.$slots,"icon",{key:0},void 0,!0):(Ir(),zr(s,{key:1,name:e.icon,"custom-style":e.iconStyle,size:"large"===e.size?22:18},null,8,["name","custom-style","size"]))]),_:3})):Wr("",!0),jr(a,{class:"u-cell__title"},{default:So(()=>[e.$slots.title||!e.title?Mi(e.$slots,"title",{key:0},void 0,!0):(Ir(),zr(l,{key:1,class:Qe(["u-cell__title-text",[e.required&&"u-cell--required",e.disabled&&"u-cell--disabled","large"===e.size&&"u-cell__title-text--large"]]),style:qe([r.titleTextStyle])},{default:So(()=>[Vr(X(e.title),1)]),_:1},8,["style","class"])),Mi(e.$slots,"label",{},()=>[e.label?(Ir(),zr(l,{key:0,class:Qe(["u-cell__label",[e.disabled&&"u-cell--disabled","large"===e.size&&"u-cell__label--large"]])},{default:So(()=>[Vr(X(e.label),1)]),_:1},8,["class"])):Wr("",!0)],!0)]),_:3})]),_:3}),Mi(e.$slots,"value",{},()=>[r.testEmpty(e.value)?Wr("",!0):(Ir(),zr(l,{key:0,class:Qe(["u-cell__value",[e.disabled&&"u-cell--disabled","large"===e.size&&"u-cell__value--large"]])},{default:So(()=>[Vr(X(e.value),1)]),_:1},8,["class"]))],!0),e.$slots["right-icon"]||e.isLink?(Ir(),zr(a,{key:0,class:Qe(["u-cell__right-icon-wrap",[`u-cell__right-icon-wrap--${e.arrowDirection}`]])},{default:So(()=>[e.rightIcon&&!e.$slots["right-icon"]?(Ir(),zr(s,{key:0,name:e.rightIcon,"custom-style":e.rightIconStyle,color:e.disabled?"#c8c9cc":"info",size:"large"===e.size?18:16},null,8,["name","custom-style","color","size"])):Mi(e.$slots,"right-icon",{key:1},void 0,!0)]),_:3},8,["class"])):Wr("",!0),e.$slots.righticon?(Ir(),zr(a,{key:1,class:Qe(["u-cell__right-icon-wrap",[`u-cell__right-icon-wrap--${e.arrowDirection}`]])},{default:So(()=>[Mi(e.$slots,"righticon",{},void 0,!0)]),_:3},8,["class"])):Wr("",!0)]),_:3},8,["class"]),e.border?(Ir(),zr(c,{key:0})):Wr("",!0)]),_:3},8,["class","style","hover-class","onClick"])}],["__scopeId","data-v-e1038cf6"]]),YS=Object.freeze(Object.defineProperty({__proto__:null,default:QS},Symbol.toStringTag,{value:"Module"})),GS={props:{name:{type:String,default:()=>cx.checkboxGroup.name},modelValue:{type:Array,default:()=>cx.checkboxGroup.value},shape:{type:String,default:()=>cx.checkboxGroup.shape},disabled:{type:Boolean,default:()=>cx.checkboxGroup.disabled},activeColor:{type:String,default:()=>cx.checkboxGroup.activeColor},inactiveColor:{type:String,default:()=>cx.checkboxGroup.inactiveColor},size:{type:[String,Number],default:()=>cx.checkboxGroup.size},placement:{type:String,default:()=>cx.checkboxGroup.placement},labelSize:{type:[String,Number],default:()=>cx.checkboxGroup.labelSize},labelColor:{type:[String],default:()=>cx.checkboxGroup.labelColor},labelDisabled:{type:Boolean,default:()=>cx.checkboxGroup.labelDisabled},iconColor:{type:String,default:()=>cx.checkboxGroup.iconColor},iconSize:{type:[String,Number],default:()=>cx.checkboxGroup.iconSize},iconPlacement:{type:String,default:()=>cx.checkboxGroup.iconPlacement},borderBottom:{type:Boolean,default:()=>cx.checkboxGroup.borderBottom}}};const XS=W_({name:"u-checkbox-group",mixins:[hx,fx,GS],computed:{parentData(){return[this.modelValue,this.disabled,this.inactiveColor,this.activeColor,this.size,this.labelDisabled,this.shape,this.iconSize,this.borderBottom,this.placement]},bemClass(){return this.bem("checkbox-group",["placement"])}},watch:{parentData:{handler(){this.children.length&&this.children.map(e=>{"function"==typeof e.init&&e.init()})},deep:!0}},data:()=>({}),created(){this.children=[]},emits:["update:modelValue","change"],methods:{unCheckedOther(e){const t=[];this.children.map(e=>{e.isChecked&&t.push(e.name)}),this.$emit("update:modelValue",t),this.$emit("change",t)}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:Qe(["u-checkbox-group",r.bemClass])},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"])}],["__scopeId","data-v-46e9201a"]]),KS=Object.freeze(Object.defineProperty({__proto__:null,default:XS},Symbol.toStringTag,{value:"Module"})),JS={props:{name:{type:[String,Number,Boolean],default:()=>cx.checkbox.name},shape:{type:String,default:()=>cx.checkbox.shape},size:{type:[String,Number],default:()=>cx.checkbox.size},checked:{type:Boolean,default:()=>cx.checkbox.checked},disabled:{type:[String,Boolean],default:()=>cx.checkbox.disabled},activeColor:{type:String,default:()=>cx.checkbox.activeColor},inactiveColor:{type:String,default:()=>cx.checkbox.inactiveColor},iconSize:{type:[String,Number],default:()=>cx.checkbox.iconSize},iconColor:{type:String,default:()=>cx.checkbox.iconColor},label:{type:[String,Number],default:()=>cx.checkbox.label},labelSize:{type:[String,Number],default:()=>cx.checkbox.labelSize},labelColor:{type:String,default:()=>cx.checkbox.labelColor},labelDisabled:{type:[String,Boolean],default:()=>cx.checkbox.labelDisabled},usedAlone:{type:[Boolean],default:()=>!1}}};const ZS=W_({name:"u-checkbox",mixins:[hx,fx,JS],data:()=>({isChecked:!1,parentData:{iconSize:12,labelDisabled:null,disabled:null,shape:"square",activeColor:null,inactiveColor:null,size:18,modelValue:null,iconColor:null,placement:"row",borderBottom:!1,iconPlacement:"left"}}),computed:{elDisabled(){return""!==this.disabled?this.disabled:null!==this.parentData.disabled&&this.parentData.disabled},elLabelDisabled(){return""!==this.labelDisabled?this.labelDisabled:null!==this.parentData.labelDisabled&&this.parentData.labelDisabled},elSize(){return this.size?this.size:this.parentData.size?this.parentData.size:21},elIconSize(){return this.iconSize?this.iconSize:this.parentData.iconSize?this.parentData.iconSize:12},elActiveColor(){return this.activeColor?this.activeColor:this.parentData.activeColor?this.parentData.activeColor:"#2979ff"},elInactiveColor(){return this.inactiveColor?this.inactiveColor:this.parentData.inactiveColor?this.parentData.inactiveColor:"#c8c9cc"},elLabelColor(){return this.labelColor?this.labelColor:this.parentData.labelColor?this.parentData.labelColor:"#606266"},elShape(){return this.shape?this.shape:this.parentData.shape?this.parentData.shape:"circle"},elLabelSize(){return zw(this.labelSize?this.labelSize:this.parentData.labelSize?this.parentData.labelSize:"15")},elIconColor(){const e=this.iconColor?this.iconColor:this.parentData.iconColor?this.parentData.iconColor:"#ffffff";return this.elDisabled?this.isChecked?this.elInactiveColor:"transparent":this.isChecked?e:"transparent"},iconClasses(){let e=[];return e.push("u-checkbox__icon-wrap--"+this.elShape),this.elDisabled&&e.push("u-checkbox__icon-wrap--disabled"),this.isChecked&&this.elDisabled&&e.push("u-checkbox__icon-wrap--disabled--checked"),e},iconWrapStyle(){const e={};return e.backgroundColor=this.isChecked&&!this.elDisabled?this.elActiveColor:"#ffffff",e.borderColor=this.isChecked&&!this.elDisabled?this.elActiveColor:this.elInactiveColor,e.width=zw(this.elSize),e.height=zw(this.elSize),this.usedAlone||"right"===this.parentData.iconPlacement&&(e.marginRight=0),e},checkboxStyle(){const e={};return this.usedAlone||(this.parentData.borderBottom&&this.parentData.placement,this.parentData.borderBottom&&"column"===this.parentData.placement&&(e.paddingBottom="8px")),Rw(e,Mw(this.customStyle))}},mounted(){this.init()},emits:["change","update:checked"],methods:{init(){if(this.usedAlone)this.checked&&(this.isChecked=!0);else{this.updateParentData(),this.parent;const e=this.parentData.modelValue;this.checked?this.isChecked=!0:!this.usedAlone&&fw.array(e)&&(this.isChecked=e.some(e=>e===this.name))}},updateParentData(){this.getParentData("u-checkbox-group")},wrapperClickHandler(e){(this.usedAlone||"right"===this.parentData.iconPlacement)&&this.iconClickHandler(e)},iconClickHandler(e){this.preventEvent(e),this.elDisabled||this.setRadioCheckedStatus()},labelClickHandler(e){this.preventEvent(e),this.elLabelDisabled||this.elDisabled||this.setRadioCheckedStatus()},emitEvent(){this.$emit("change",this.isChecked,{name:this.name}),this.usedAlone&&this.$emit("update:checked",this.isChecked),this.$nextTick(()=>{qw(this,"change")})},setRadioCheckedStatus(){this.isChecked=!this.isChecked,this.emitEvent(),this.usedAlone||"function"==typeof this.parent.unCheckedOther&&this.parent.unCheckedOther(this)}},watch:{checked(e,t){e!==this.isChecked&&(this.isChecked=e)}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay,l=wy;return Ir(),zr(a,{class:Qe(["u-checkbox cursor-pointer",[`u-checkbox-label--${i.parentData.iconPlacement}`,i.parentData.borderBottom&&"column"===i.parentData.placement&&"u-border-bottom"]]),style:qe([r.checkboxStyle]),onClick:ua(r.wrapperClickHandler,["stop"])},{default:So(()=>[jr(a,{class:Qe(["u-checkbox__icon-wrap cursor-pointer",r.iconClasses]),onClick:ua(r.iconClickHandler,["stop"]),style:qe([r.iconWrapStyle])},{default:So(()=>[Mi(e.$slots,"icon",{elIconSize:r.elIconSize,elIconColor:r.elIconColor},()=>[jr(s,{class:"u-checkbox__icon-wrap__icon",name:"checkbox-mark",size:r.elIconSize,color:r.elIconColor},null,8,["size","color"])],!0)]),_:3},8,["onClick","class","style"]),jr(a,{class:"u-checkbox__label-wrap cursor-pointer",onClick:ua(r.labelClickHandler,["stop"])},{default:So(()=>[Mi(e.$slots,"label",{label:e.label,elDisabled:r.elDisabled},()=>[jr(l,{style:qe({color:r.elDisabled?r.elInactiveColor:r.elLabelColor,fontSize:r.elLabelSize,lineHeight:r.elLabelSize})},{default:So(()=>[Vr(X(e.label),1)]),_:1},8,["style"])],!0)]),_:3},8,["onClick"])]),_:3},8,["style","onClick","class"])}],["__scopeId","data-v-09ac4586"]]),ek=Object.freeze(Object.defineProperty({__proto__:null,default:ZS},Symbol.toStringTag,{value:"Module"}));const tk=W_({name:"u-circle-progress",mixins:[hx,fx,{props:{percentage:{type:[String,Number],default:()=>cx.circleProgress.percentage}}}],data:()=>({leftBorderColor:"rgb(200, 200, 200)",rightBorderColor:"rgb(200, 200, 200)"}),computed:{leftSyle(){const e={};return e.borderTopColor=this.leftBorderColor,e.borderRightColor=this.leftBorderColor,e},rightSyle(){const e={};return e.borderLeftColor=this.rightBorderColor,e.borderBottomColor=this.rightBorderColor,e}},mounted(){kw().then(()=>{this.rightBorderColor="rgb(66, 185, 131)"})},methods:{init(){animation.transition(this.$refs["right-circle"].ref,{styles:{transform:"rotate(45deg)",transformOrigin:"center center"}},()=>{this.rightBorderColor="rgb(66, 185, 131)"})}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-circle-progress"},{default:So(()=>[jr(s,{class:"u-circle-progress__left"},{default:So(()=>[jr(s,{class:"u-circle-progress__left__circle",style:qe([r.leftSyle]),ref:"left-circle"},null,8,["style"])]),_:1}),jr(s,{class:"u-circle-progress__right"},{default:So(()=>[jr(s,{class:"u-circle-progress__right__circle",ref:"right-circle",style:qe([r.rightSyle])},null,8,["style"])]),_:1}),jr(s,{class:"u-circle-progress__circle"})]),_:1})}],["__scopeId","data-v-1c1fcb78"]]),nk=Object.freeze(Object.defineProperty({__proto__:null,default:tk},Symbol.toStringTag,{value:"Module"}));const ok=W_({name:"u-city-locate",props:{indexList:{type:Array,default:["🔥"]},cityList:{type:Array,default:()=>[[{name:"北京",value:"beijing"},{name:"上海",value:"shanghai"},{name:"广州",value:"guangzhou"},{name:"深圳",value:"shenzhen"},{name:"杭州",value:"hangzhou"}]]},locationType:{type:String,default:"wgs84"},currentCity:{type:String,default:""},nameKey:{type:String,default:"name"}},computed:{},watch:{currentCity(e){this.locationCity=e}},data:()=>({locationCity:Zw("up.cityLocate.locating")+"...."}),emits:["location-success","select-city"],methods:{t:Zw,selectedCity(e){this.locationCity=e[this.nameKey],this.$emit("select-city",{locationCity:this.locationCity})},location(){let e=this;Nv({type:this.locationType,geocode:!0,success(t){console.log(t),e.locationCity=t.address&&t.address.city,e.$emit("location-success",{...t,locationCity:e.locationCity})},fail(){e.locationCity=Zw("up.cityLocate.fail")}})}},created(){},mounted(){this.location()}},[["render",function(e,t,n,o,i,r){const s=Ay,a=Bo("up-index-anchor"),l=wy,c=Bo("up-line"),u=Bo("up-index-item"),d=Bo("up-index-list");return Ir(),zr(s,{class:"u-city-locate"},{default:So(()=>[jr(d,{indexList:n.indexList},{header:So(()=>[jr(s,{class:"u-current-city-wrap"},{default:So(()=>[jr(s,{class:"u-current-city-title"},{default:So(()=>[Vr(X(r.t("up.cityLocate.locateCity")),1)]),_:1}),jr(s,{class:"u-current-city-item",onClick:r.location},{default:So(()=>[jr(s,{class:"u-location-city"},{default:So(()=>[Vr(X(i.locationCity),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),footer:So(()=>[jr(s,{class:"u-safe-area-inset--bottom"},{default:So(()=>[jr(l,{class:"list__footer"})]),_:1})]),default:So(()=>[(Ir(!0),Mr(xr,null,Pi(n.cityList,(e,t)=>(Ir(),zr(u,{key:t},{default:So(()=>[jr(a,{text:n.indexList[t]},null,8,["text"]),0==t?(Ir(),zr(s,{key:0,class:"hot-city-list"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(e,(e,t)=>(Ir(),zr(s,{class:"",onClick:t=>r.selectedCity(e)},{default:So(()=>[jr(s,{class:"hot-city-item"},{default:So(()=>[Vr(X(e[n.nameKey]),1)]),_:2},1024)]),_:2},1032,["onClick"]))),256))]),_:2},1024)):(Ir(!0),Mr(xr,{key:1},Pi(e,(e,t)=>(Ir(),zr(s,{class:"item-list",key:t},{default:So(()=>[jr(s,{class:"list__item",onClick:t=>r.selectedCity(e)},{default:So(()=>[jr(l,{class:"list__item__city-name"},{default:So(()=>[Vr(X(e[n.nameKey]),1)]),_:2},1024)]),_:2},1032,["onClick"]),jr(c)]),_:2},1024))),128))]),_:2},1024))),128))]),_:1},8,["indexList"])]),_:1})}],["__scopeId","data-v-c82eaccb"]]),ik=Object.freeze(Object.defineProperty({__proto__:null,default:ok},Symbol.toStringTag,{value:"Module"})),rk={props:{adjustPosition:{type:Boolean,default:()=>cx.codeInput.adjustPosition},maxlength:{type:[String,Number],default:()=>cx.codeInput.maxlength},dot:{type:Boolean,default:()=>cx.codeInput.dot},mode:{type:String,default:()=>cx.codeInput.mode},hairline:{type:Boolean,default:()=>cx.codeInput.hairline},space:{type:[String,Number],default:()=>cx.codeInput.space},modelValue:{type:[String,Number],default:()=>cx.codeInput.value},focus:{type:Boolean,default:()=>cx.codeInput.focus},bold:{type:Boolean,default:()=>cx.codeInput.bold},color:{type:String,default:()=>cx.codeInput.color},fontSize:{type:[String,Number],default:()=>cx.codeInput.fontSize},size:{type:[String,Number],default:()=>cx.codeInput.size},disabledKeyboard:{type:Boolean,default:()=>cx.codeInput.disabledKeyboard},borderColor:{type:String,default:()=>cx.codeInput.borderColor},disabledDot:{type:Boolean,default:()=>cx.codeInput.disabledDot}}};const sk=W_({name:"u-code-input",mixins:[hx,fx,rk],data(){return{inputValue:"",isFocus:this.focus,timer:null,opacity:1}},watch:{modelValue:{immediate:!0,handler(e){this.inputValue=String(e).substring(0,this.maxlength)}},isFocus:{handler(e){}}},created(){},beforeUnmount(){},computed:{codeLength(){return new Array(Number(this.maxlength))},itemStyle(){return e=>{const t={width:zw(this.size),height:zw(this.size)};return"box"===this.mode&&(t.border=`${this.hairline?.5:1}px solid ${this.borderColor}`,0===Sw(this.space)&&(0===e&&(t.borderTopLeftRadius="3px",t.borderBottomLeftRadius="3px"),e===this.codeLength.length-1&&(t.borderTopRightRadius="3px",t.borderBottomRightRadius="3px"),e!==this.codeLength.length-1&&(t.borderRight="none"))),e!==this.codeLength.length-1?t.marginRight=zw(this.space):t.marginRight=0,t}},codeArray(){return String(this.inputValue).split("")},lineStyle(){const e={};return e.height=this.hairline?"2px":"4px",e.width=zw(this.size),e.backgroundColor=this.borderColor,e}},emits:["change","finish","update:modelValue"],methods:{addUnit:zw,inputHandler(e){const t=e.detail.value;this.inputValue=t,this.disabledDot&&this.$nextTick(()=>{this.inputValue=t.replace(".","")}),this.$emit("change",t),this.$emit("update:modelValue",t),String(t).length>=Number(this.maxlength)&&this.$emit("finish",t)}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=wy,l=_g;return Ir(),zr(s,{class:"u-code-input"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(r.codeLength,(t,n)=>(Ir(),zr(s,{class:"u-code-input__item",style:qe([r.itemStyle(n)]),key:n},{default:So(()=>[e.dot&&r.codeArray.length>n?(Ir(),zr(s,{key:0,class:"u-code-input__item__dot"})):(Ir(),zr(a,{key:1,style:qe({fontSize:r.addUnit(e.fontSize),fontWeight:e.bold?"bold":"normal",color:e.color})},{default:So(()=>[Vr(X(r.codeArray[n]),1)]),_:2},1032,["style"])),"line"===e.mode?(Ir(),zr(s,{key:2,class:"u-code-input__item__line",style:qe([r.lineStyle])},null,8,["style"])):Wr("",!0),i.isFocus&&r.codeArray.length===n?(Ir(),zr(s,{key:3,style:qe({backgroundColor:e.color}),class:"u-code-input__item__cursor"},null,8,["style"])):Wr("",!0)]),_:2},1032,["style"]))),128)),jr(l,{disabled:e.disabledKeyboard,type:"number",focus:e.focus,value:i.inputValue,maxlength:e.maxlength,adjustPosition:e.adjustPosition,class:"u-code-input__input",onInput:r.inputHandler,style:qe({height:r.addUnit(e.size)}),onFocus:t[0]||(t[0]=e=>i.isFocus=!0),onBlur:t[1]||(t[1]=e=>i.isFocus=!1)},null,8,["disabled","focus","value","maxlength","adjustPosition","onInput","style"])]),_:1})}],["__scopeId","data-v-cae604f4"]]),ak=Object.freeze(Object.defineProperty({__proto__:null,default:sk},Symbol.toStringTag,{value:"Module"})),lk={props:{seconds:{type:[String,Number],default:()=>cx.code.seconds},startText:{type:String,default:()=>cx.code.startText},changeText:{type:String,default:()=>cx.code.changeText},endText:{type:String,default:()=>cx.code.endText},keepRunning:{type:Boolean,default:()=>cx.code.keepRunning},uniqueKey:{type:String,default:()=>cx.code.uniqueKey}}};const ck=W_({name:"u-code",mixins:[hx,fx,lk],data(){return{secNum:this.seconds,timer:null,canGetCode:!0}},mounted(){this.checkKeepRunning()},watch:{seconds:{immediate:!0,handler(e){this.secNum=e}}},emits:["start","end","change"],methods:{checkKeepRunning(){let e=Number(ev(this.uniqueKey+"_$uCountDownTimestamp"));if(!e)return this.changeEvent(this.startText);let t=Math.floor(+new Date/1e3);this.keepRunning&&e&&e>t?(this.secNum=e-t,tv(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start(){this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.timer=setInterval(()=>{--this.secNum?this.changeEvent(this.changeText.replace(/x|X/,this.secNum)):(clearInterval(this.timer),this.timer=null,this.changeEvent(this.endText),this.secNum=this.seconds,this.$emit("end"),this.canGetCode=!0)},1e3),this.setTimeToStorage()},reset(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent(e){this.$emit("change",e)},setTimeToStorage(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){let e=Math.floor(+new Date/1e3);Jb({key:this.uniqueKey+"_$uCountDownTimestamp",data:e+Number(this.secNum)})}}},beforeUnmount(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-code"})}]]),uk=Object.freeze(Object.defineProperty({__proto__:null,default:ck},Symbol.toStringTag,{value:"Module"}));const dk=W_({name:"u-col",mixins:[hx,fx,{props:{span:{type:[String,Number],default:()=>cx.col.span},offset:{type:[String,Number],default:()=>cx.col.offset},justify:{type:String,default:()=>cx.col.justify},align:{type:String,default:()=>cx.col.align},textAlign:{type:String,default:()=>cx.col.textAlign}}}],data:()=>({width:0,parentData:{gutter:0},gridNum:12}),options:{virtualHost:!0},computed:{uJustify(){return"end"==this.justify||"start"==this.justify?"flex-"+this.justify:"around"==this.justify||"between"==this.justify?"space-"+this.justify:this.justify},uAlignItem(){return"top"==this.align?"flex-start":"bottom"==this.align?"flex-end":this.align},colStyle(){return Rw({paddingLeft:zw(Sw(this.parentData.gutter)/2),paddingRight:zw(Sw(this.parentData.gutter)/2),alignItems:this.uAlignItem,justifyContent:this.uJustify,textAlign:this.textAlign,flex:`0 0 ${100/this.gridNum*this.span}%`,marginLeft:100/12*this.offset+"%"},Mw(this.customStyle))}},mounted(){this.init()},emits:["click"],methods:{async init(){this.updateParentData(),this.width=await this.parent.getComponentWidth()},updateParentData(){this.getParentData("u-row")},clickHandler(e){this.$emit("click")}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:Qe(["u-col",["u-col-"+e.span]]),ref:"u-col",style:qe([r.colStyle]),onClick:r.clickHandler},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["class","style","onClick"])}],["__scopeId","data-v-1dcba658"]]),hk=Object.freeze(Object.defineProperty({__proto__:null,default:dk},Symbol.toStringTag,{value:"Module"})),pk={props:{title:{type:String,default:()=>cx.collapseItem.title},titleStyle:{type:[Object,String],default:()=>cx.collapseItem.titleStyle},value:{type:String,default:()=>cx.collapseItem.value},label:{type:String,default:()=>cx.collapseItem.label},disabled:{type:Boolean,default:()=>cx.collapseItem.disabled},isLink:{type:Boolean,default:()=>cx.collapseItem.isLink},clickable:{type:Boolean,default:()=>cx.collapseItem.clickable},border:{type:Boolean,default:()=>cx.collapseItem.border},align:{type:String,default:()=>cx.collapseItem.align},name:{type:[String,Number],default:()=>cx.collapseItem.name},icon:{type:String,default:()=>cx.collapseItem.icon},duration:{type:Number,default:()=>cx.collapseItem.duration},showRight:{type:Boolean,default:()=>cx.collapseItem.showRight},iconStyle:{type:[Object,String],default:()=>cx.collapseItem.iconStyle},rightIconStyle:{type:[Object,String],default:()=>cx.collapseItem.rightIconStyle},cellCustomStyle:{type:[Object,String],default:()=>cx.collapseItem.cellCustomStyle},cellCustomClass:{type:String,default:()=>cx.collapseItem.cellCustomClass}}};const fk=W_({name:"u-collapse-item",mixins:[hx,fx,pk],data:()=>({elId:Ew(),animationData:{},expanded:!1,showBorder:!1,animating:!1,parentData:{accordion:!1,border:!1}}),watch:{expanded(e){clearTimeout(this.timer),this.timer=null,this.timer=setTimeout(()=>{this.showBorder=e},e?10:290)}},mounted(){this.init()},methods:{async init(){if(this.updateParentData(),!this.parent)return;const{value:e,accordion:t,children:n=[]}=this.parent;if(t){if(fw.array(e))return;this.expanded=this.name==e}else{if(!fw.array(e)&&null!==e)return;this.expanded=(e||[]).some(e=>e==this.name)}await ao(),this.setContentAnimate()},updateParentData(){this.getParentData("u-collapse")},async setContentAnimate(){const e=await this.queryRect(),t=this.expanded?e.height:0;this.animating=!0;const n=dp({timingFunction:"ease-in-out"});n.height(t).step({duration:this.duration}).step(),this.animationData=n.export(),kw(this.duration).then(()=>{this.animating=!1})},clickHandler(){this.disabled&&this.animating||this.parent&&this.parent.onChange(this)},queryRect(){return new Promise(e=>{this.$uGetRect(`#${this.elId}`).then(t=>{e(t)})})}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Bo("up-icon"),l=yx(Po("u-cell"),QS),c=Ay,u=yx(Po("u-line"),mx);return Ir(),zr(c,{class:"u-collapse-item"},{default:So(()=>[jr(l,{title:e.$slots.title?"":e.title,value:e.value,label:e.label,icon:e.icon,isLink:e.isLink,clickable:e.clickable,border:i.parentData.border&&i.showBorder,onClick:r.clickHandler,arrowDirection:i.expanded?"up":"down",disabled:e.disabled,customClass:e.cellCustomClass,customStyle:e.cellCustomStyle},{title:So(()=>[Mi(e.$slots,"title",{},()=>[!e.$slots.title&&e.title?(Ir(),zr(s,{key:0},{default:So(()=>[Vr(X(e.title),1)]),_:1})):Wr("",!0)],!0)]),icon:So(()=>[Mi(e.$slots,"icon",{},()=>[!e.$slots.icon&&e.icon?(Ir(),zr(a,{key:0,size:22,name:e.icon},null,8,["name"])):Wr("",!0)],!0)]),value:So(()=>[Mi(e.$slots,"value",{},()=>[!e.$slots.value&&e.value?(Ir(),zr(s,{key:0},{default:So(()=>[Vr(X(e.value),1)]),_:1})):Wr("",!0)],!0)]),"right-icon":So(()=>[e.showRight?(Ir(),Mr(xr,{key:0},[e.$slots["right-icon"]?Wr("",!0):(Ir(),zr(a,{key:0,size:16,name:"arrow-right"})),Mi(e.$slots,"right-icon",{},void 0,!0)],64)):Wr("",!0)]),_:3},8,["title","value","label","icon","isLink","clickable","border","onClick","arrowDirection","disabled","customClass","customStyle"]),jr(c,{class:"u-collapse-item__content",animation:i.animationData,ref:"animation"},{default:So(()=>[jr(c,{class:"u-collapse-item__content__text content-class",id:i.elId,ref:i.elId},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["id"])]),_:3},8,["animation"]),i.parentData.border?(Ir(),zr(u,{key:0})):Wr("",!0)]),_:3})}],["__scopeId","data-v-cd3ec229"]]),mk=Object.freeze(Object.defineProperty({__proto__:null,default:fk},Symbol.toStringTag,{value:"Module"})),gk={props:{value:{type:[String,Number,Array,null],default:()=>cx.collapse.value},accordion:{type:Boolean,default:()=>cx.collapse.accordion},border:{type:Boolean,default:()=>cx.collapse.border}}};const yk=W_({name:"u-collapse",mixins:[hx,fx,gk],watch:{needInit(){this.init()},parentData(){this.children.length&&this.children.map(e=>{"function"==typeof e.updateParentData&&e.updateParentData()})}},created(){this.children=[]},computed:{needInit(){return[this.accordion,this.value]}},emits:["open","close","change"],methods:{init(){this.children.map(e=>{e.init()})},onChange(e){let t=[];this.children.map((n,o)=>{this.accordion?(n.expanded=n===e&&!e.expanded,n.setContentAnimate()):n===e&&(n.expanded=!n.expanded,n.setContentAnimate()),t.push({name:n.name||o,status:n.expanded?"open":"close"})}),this.$emit("change",t),this.$emit(e.expanded?"open":"close",e.name)}}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-line"),mx),a=Ay;return Ir(),zr(a,{class:"u-collapse"},{default:So(()=>[e.border?(Ir(),zr(s,{key:0})):Wr("",!0),Mi(e.$slots,"default")]),_:3})}]]),bk=Object.freeze(Object.defineProperty({__proto__:null,default:yk},Symbol.toStringTag,{value:"Module"}));const vk=W_({name:"up-color-picker",props:{modelValue:{type:String,default:"#ff0000"},commonColors:{type:Array,default:()=>[]}},data:()=>({show:!1,colorTypeIndex:0,hue:0,saturation:100,lightness:50,alpha:1,saturationPosition:{x:150,y:0},huePosition:0,alphaPosition:0,gradientColors:[{color:"#ff0000",percent:0},{color:"#0000ff",percent:1}],gradientDirections:[{label:"从左到右",value:"to right"},{label:"从上到下",value:"to bottom"},{label:"从左上到右下",value:"to bottom right"},{label:"从右上到左下",value:"to bottom left"}],currentDirection:{label:"从左到右",value:"to right"},showDirectionPicker:!1,currentColor:"#ff0000",draggingPointerIndex:-1,directionPointer:{x:20,y:20},editingGradientIndex:-1,solidColorState:{hue:0,saturation:100,lightness:50,alpha:1,saturationPosition:{x:150,y:0},huePosition:0,alphaPosition:0,currentColor:"#ff0000"},gradientColorState:{gradientColors:[{color:"#ff0000",percent:0},{color:"#0000ff",percent:1}],currentDirection:{label:"从左到右",value:"to right"},directionPointer:{x:100,y:0}},previewType:"solid"}),computed:{gradientStyle(){const e=this.gradientColors.map(e=>`${e.color} ${Math.round(100*e.percent)}%`).join(", ");return`linear-gradient(${this.currentDirection.value}, ${e})`},displayColor(){return"gradient-point"===this.previewType&&this.editingGradientIndex>=0?this.gradientColors[this.editingGradientIndex].color:(console.log(this.editingGradientIndex),this.currentColor)}},watch:{show(e){e&&this.initColor()},colorTypeIndex(e){0==e&&(this.editingGradientIndex=-1)}},mounted(){this.initColor()},emits:["update:modelValue","confirm","close"],methods:{initColor(){this.modelValue&&(this.currentColor=this.modelValue,this.modelValue.includes("linear-gradient")?(this.colorTypeIndex=1,this.parseGradientColor(this.modelValue),this.previewType="gradient"):(this.colorTypeIndex=0,this.parseSolidColor(this.modelValue),this.previewType="solid")),this.initDirectionPointer(),this.initAlphaPosition()},async initAlphaPosition(){const e=sp().in(this);e.select(".up-color-picker__alpha").boundingClientRect(),await this.$nextTick(),e.exec(e=>{const t=e[0];this.alphaPosition=t&&t.width||150,this.solidColorState.alphaPosition=this.alphaPosition,this.updateSolidColor()})},initDirectionPointer(){const e=this.getDirectionAngle(this.currentDirection.value);this.setDirectionPointerByAngle(e)},getDirectionAngle(e){switch(e){case"to right":default:return 0;case"to bottom":return 90;case"to left":return 180;case"to top":return 270;case"to bottom right":return 45;case"to bottom left":return 135;case"to top left":return 225;case"to top right":return 315}},setDirectionPointerByAngle(e){const t=e*Math.PI/180;this.directionPointer={x:20*Math.cos(t)+20,y:20*Math.sin(t)+20}},openColorPickerForGradient(e){this.editingGradientIndex=e;const t=this.gradientColors[e].color;this.currentColor=t,this.previewType="gradient-point",t.includes("linear-gradient")||(this.colorTypeIndex=0,this.parseSolidColor(t),this.gradientColorState={gradientColors:[...this.gradientColors],currentDirection:{...this.currentDirection},directionPointer:{...this.directionPointer}})},parseSolidColor(e){this.currentColor=e,this.editingGradientIndex>=0?(this.gradientColors[this.editingGradientIndex].color=e,this.colorTypeIndex=1,Object.assign(this,this.solidColorState),this.previewType="gradient-point"):this.previewType="solid"},parseGradientColor(e){this.currentColor=e},changeColorType(e){0===this.colorTypeIndex?this.solidColorState={hue:this.hue,saturation:this.saturation,lightness:this.lightness,alpha:this.alpha,saturationPosition:{...this.saturationPosition},huePosition:this.huePosition,alphaPosition:this.alphaPosition,currentColor:this.currentColor}:this.gradientColorState={gradientColors:[...this.gradientColors],currentDirection:{...this.currentDirection},directionPointer:{...this.directionPointer}},this.colorTypeIndex=e,0===e?(Object.assign(this,this.solidColorState),this.previewType="solid"):(Object.assign(this,this.gradientColorState),this.gradientColors=[...this.gradientColorState.gradientColors],this.previewType="gradient")},onSaturationTouchStart(e){this.updateSaturationPosition(e)},onSaturationTouchMove(e){this.updateSaturationPosition(e)},onSaturationTouchEnd(e){this.updateSaturationPosition(e)},updateSaturationPosition(e){const t=e.touches[0]||e.changedTouches[0];e.currentTarget;const n=sp().in(this);n.select(".up-color-picker__saturation").boundingClientRect(),n.exec(e=>{const n=e[0];if(n){let e=t.clientX-n.left,o=t.clientY-n.top;e=Math.max(0,Math.min(e,n.width)),o=Math.max(0,Math.min(o,n.height)),this.saturationPosition={x:e,y:o},this.updateSolidColor()}})},onHueTouchStart(e){this.updateHuePosition(e)},onHueTouchMove(e){this.updateHuePosition(e)},onHueTouchEnd(e){this.updateHuePosition(e)},updateHuePosition(e){const t=e.touches[0]||e.changedTouches[0];e.currentTarget;const n=sp().in(this);n.select(".up-color-picker__hue").boundingClientRect(),n.exec(e=>{const n=e[0];if(n){let e=t.clientX-n.left;e=Math.max(0,Math.min(e,n.width)),this.huePosition=e,this.hue=Math.round(e/n.width*360),this.updateSolidColor()}})},onAlphaTouchStart(e){this.updateAlphaPosition(e)},onAlphaTouchMove(e){this.updateAlphaPosition(e)},onAlphaTouchEnd(e){this.updateAlphaPosition(e)},updateAlphaPosition(e){const t=e.touches[0]||e.changedTouches[0];e.currentTarget;const n=sp().in(this);n.select(".up-color-picker__alpha").boundingClientRect(),n.exec(e=>{const n=e[0];if(n){let e=t.clientX-n.left;e=Math.max(0,Math.min(e,n.width)),this.alphaPosition=e,this.alpha=e/n.width,this.updateSolidColor()}})},updateSolidColor(){const e=sp().in(this);e.select(".up-color-picker__saturation").boundingClientRect(),e.exec(e=>{const t=e[0],n=t?Math.min(t.width,t.height):150,o=this.saturationPosition.x/n*100,i=100-this.saturationPosition.y/n*100;this.saturation=o,this.lightness=i,0==this.colorTypeIndex?this.currentColor=this.hslToRgb(this.hue,this.saturation,this.lightness,this.alpha):1==this.colorTypeIndex&&(this.gradientColors[this.editingGradientIndex].color=this.hslToRgb(this.hue,this.saturation,this.lightness,this.alpha))})},addGradientColor(){this.gradientColors.length<5&&this.gradientColors.push({color:"#ffffff",percent:1})},removeGradientColor(e){this.gradientColors.length>2&&this.gradientColors.splice(e,1)},getGradientPointerPosition(e){return 280*this.gradientColors[e].percent},updateGradientColor(e){const t=e.touches[0]||e.changedTouches[0],n=sp().in(this);n.select(".up-color-picker__gradient-track").boundingClientRect(),n.exec(e=>{const n=e[0];if(n){let e=t.clientX-n.left;e=Math.max(0,Math.min(e,n.width));const o=e/n.width;this.draggingPointerIndex>=0&&(this.gradientColors[this.draggingPointerIndex].percent=o,this.gradientColors.sort((e,t)=>e.percent-t.percent))}})},onPointerTouchStart(e,t){this.draggingPointerIndex=t,this.currentColor=this.gradientColors[t].color,this.previewType="gradient-point",this.editingGradientIndex=t,e.stopPropagation()},onPointerTouchMove(e){if(-1===this.draggingPointerIndex)return;const t=e.touches[0]||e.changedTouches[0],n=sp().in(this);n.select(".up-color-picker__gradient-track").boundingClientRect(),n.exec(e=>{const n=e[0];if(n){let e=t.clientX-n.left;e=Math.max(0,Math.min(e,n.width));let o=e/n.width;0===e&&(o=0),e===n.width&&(o=1),this.gradientColors[this.draggingPointerIndex].percent=o,this.gradientColors.sort((e,t)=>e.percent-t.percent),this.draggingPointerIndex=this.gradientColors.findIndex((e,t)=>Math.abs(e.percent-o)<1e-4)}})},onPointerTouchEnd(){this.draggingPointerIndex=-1},onDirectionTouchStart(e){this.updateDirection(e)},onDirectionTouchMove(e){this.updateDirection(e)},onDirectionTouchEnd(e){this.updateDirection(e)},updateDirection(e){const t=e.touches[0]||e.changedTouches[0],n=sp().in(this);n.select(".up-color-picker__gradient__direction-circle").boundingClientRect(),n.exec(e=>{const n=e[0];if(n){const e=n.left+n.width/2,o=n.top+n.height/2,i=t.clientX-e,r=t.clientY-o,s=Math.sqrt(i*i+r*r),a=n.width/2;if(s<=a)this.directionPointer={x:i+n.width/2,y:r+n.height/2};else{const e=a/s;this.directionPointer={x:i*e+n.width/2,y:r*e+n.height/2}}const l=180*Math.atan2(r,i)/Math.PI;console.log(l),this.updateGradientDirection(l)}})},updateGradientDirection(e){e<0&&(e+=360),this.currentDirection=e>=315||e<45?{label:"从左到右",value:"to right"}:e>=45&&e<135?{label:"从上到下",value:"to bottom"}:e>=135&&e<225?{label:"从右到左",value:"to left"}:{label:"从下到上",value:"to top"}},confirmDirection(e){this.currentDirection=this.gradientDirections[e.index],this.showDirectionPicker=!1},selectCommonColor(e){this.currentColor=e,0===this.colorTypeIndex?this.parseSolidColor(e):this.gradientColors[this.editingGradientIndex].color=e},confirm(){let e=this.currentColor;1===this.colorTypeIndex&&(e=this.gradientStyle),this.$emit("update:modelValue",e),this.show=!1,this.$emit("confirm",e),this.editingGradientIndex=-1,this.previewType=0===this.colorTypeIndex?"solid":"gradient",this.close()},close(){this.show=!1,this.$emit("close")},hslToRgb(e,t,n,o=1){let i,r,s;if(e/=360,n/=100,0===(t/=100))i=r=s=n;else{const o=(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=o(l,a,e+1/3),r=o(l,a,e),s=o(l,a,e-1/3)}const a=e=>Math.round(255*e);return`rgba(${a(i)}, ${a(r)}, ${a(s)}, ${o.toFixed(2)})`}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=wy,l=Bo("up-subsection"),c=Bo("up-button"),u=Bo("up-popup");return Ir(),zr(s,{class:"up-color-picker"},{default:So(()=>[jr(s,{clas:"up-color-picker__trigger",onClick:t[0]||(t[0]=e=>i.show=!0),style:qe({backgroundColor:e.value})},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["style"]),jr(u,{show:i.show,mode:"bottom",round:"10",onClose:r.close,closeOnClickOverlay:!0},{default:So(()=>[jr(s,{class:"up-color-picker__content"},{default:So(()=>[jr(s,{class:"up-color-picker__header"},{default:So(()=>[jr(a,{class:"up-color-picker__title"},{default:So(()=>[Vr("选择颜色")]),_:1})]),_:1}),jr(s,{class:"up-color-picker__switch"},{default:So(()=>[jr(l,{list:[{name:"纯色"},{name:"渐变"}],current:i.colorTypeIndex,onChange:r.changeColorType,fontSize:"14"},null,8,["current","onChange"])]),_:1}),1==i.colorTypeIndex?(Ir(),zr(s,{key:0,class:"up-color-picker__gradient"},{default:So(()=>[jr(s,{class:"up-color-picker__gradient-track",style:qe({background:r.gradientStyle})},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(i.gradientColors,(e,t)=>(Ir(),zr(s,{class:"up-color-picker__gradient-pointer",key:t,style:qe({left:r.getGradientPointerPosition(t)+"px"}),onClick:e=>r.openColorPickerForGradient(t),onTouchstart:e=>r.onPointerTouchStart(e,t),onTouchmove:ua(r.onPointerTouchMove,["stop"]),onTouchend:ua(r.onPointerTouchEnd,["stop"])},{default:So(()=>[jr(s,{class:"up-color-picker__gradient-pointer-inner",style:qe({backgroundColor:e.color})},null,8,["style"])]),_:2},1032,["style","onClick","onTouchstart","onTouchmove","onTouchend"]))),128))]),_:1},8,["style"]),jr(s,{class:"up-color-picker__gradient-controls"},{default:So(()=>[jr(c,{type:"primary",size:"mini",plain:"",onClick:r.addGradientColor,class:"up-color-picker__add-btn"},{default:So(()=>[Vr(" 添加颜色 ")]),_:1},8,["onClick"])]),_:1}),jr(s,{class:"up-color-picker__gradient-direction"},{default:So(()=>[jr(a,null,{default:So(()=>[Vr("方向:")]),_:1}),jr(s,{class:"up-color-picker__gradient__direction-circle",onTouchstart:r.onDirectionTouchStart,onTouchmove:r.onDirectionTouchMove,onTouchend:r.onDirectionTouchEnd},{default:So(()=>[jr(s,{class:"up-color-picker__direction-pointer",style:qe({left:i.directionPointer.x+"px",top:i.directionPointer.y+"px"})},null,8,["style"])]),_:1},8,["onTouchstart","onTouchmove","onTouchend"])]),_:1})]),_:1})):Wr("",!0),jr(s,{class:"up-color-picker__solid"},{default:So(()=>[jr(s,{class:"up-color-picker__saturation",style:qe({backgroundColor:`hsl(${i.hue}, 100%, 50%)`}),onTouchstart:r.onSaturationTouchStart,onTouchmove:r.onSaturationTouchMove,onTouchend:r.onSaturationTouchEnd},{default:So(()=>[jr(s,{class:"up-color-picker__saturation-pointer",style:qe({left:i.saturationPosition.x+"px",top:i.saturationPosition.y+"px"})},null,8,["style"])]),_:1},8,["style","onTouchstart","onTouchmove","onTouchend"]),jr(s,{class:"up-color-picker__hue",onTouchstart:r.onHueTouchStart,onTouchmove:r.onHueTouchMove,onTouchend:r.onHueTouchEnd},{default:So(()=>[jr(s,{class:"up-color-picker__hue-pointer",style:qe({left:i.huePosition+"px"})},null,8,["style"])]),_:1},8,["onTouchstart","onTouchmove","onTouchend"]),0==i.colorTypeIndex?(Ir(),zr(s,{key:0,class:"up-color-picker__alpha",onTouchstart:r.onAlphaTouchStart,onTouchmove:r.onAlphaTouchMove,onTouchend:r.onAlphaTouchEnd},{default:So(()=>[jr(s,{class:"up-color-picker__alpha-bg"}),jr(s,{class:"up-color-picker__alpha-pointer",style:qe({left:i.alphaPosition+"px"})},null,8,["style"])]),_:1},8,["onTouchstart","onTouchmove","onTouchend"])):Wr("",!0)]),_:1}),n.commonColors&&n.commonColors.length?(Ir(),zr(s,{key:1,class:"up-color-picker__common"},{default:So(()=>[jr(a,{class:"up-color-picker__common-title"},{default:So(()=>[Vr("常用颜色")]),_:1}),jr(s,{class:"up-color-picker__common-list"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(n.commonColors,(e,t)=>(Ir(),zr(s,{key:t,class:"up-color-picker__common-item",style:qe({backgroundColor:e}),onClick:t=>r.selectCommonColor(e)},null,8,["style","onClick"]))),128))]),_:1})]),_:1})):Wr("",!0),jr(s,{class:"up-color-picker__footer"},{default:So(()=>[jr(s,{class:"up-color-picker__preview"},{default:So(()=>[jr(s,{class:"up-color-picker__preview-color",style:qe({backgroundColor:r.displayColor})},null,8,["style"]),jr(a,{class:"up-color-picker__preview-text"},{default:So(()=>[Vr(X(r.displayColor),1)]),_:1})]),_:1}),jr(s,{class:"up-color-picker__actions"},{default:So(()=>[jr(c,{type:"primary",size:"small",onClick:r.confirm,class:"up-color-picker__btn"},{default:So(()=>[Vr(" 确定 ")]),_:1},8,["onClick"]),jr(c,{type:"info",size:"small",onClick:r.close,class:"up-color-picker__btn"},{default:So(()=>[Vr(" 取消 ")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["show","onClose"])]),_:3})}],["__scopeId","data-v-be35daff"]]),_k=Object.freeze(Object.defineProperty({__proto__:null,default:vk},Symbol.toStringTag,{value:"Module"})),wk={props:{text:{type:[Array],default:()=>cx.columnNotice.text},icon:{type:String,default:()=>cx.columnNotice.icon},mode:{type:String,default:()=>cx.columnNotice.mode},color:{type:String,default:()=>cx.columnNotice.color},bgColor:{type:String,default:()=>cx.columnNotice.bgColor},fontSize:{type:[String,Number],default:()=>cx.columnNotice.fontSize},speed:{type:[String,Number],default:()=>cx.columnNotice.speed},step:{type:Boolean,default:()=>cx.columnNotice.step},duration:{type:[String,Number],default:()=>cx.columnNotice.duration},disableTouch:{type:Boolean,default:()=>cx.columnNotice.disableTouch},justifyContent:{type:String,default:()=>cx.columnNotice.justifyContent}}};const xk=W_({mixins:[hx,fx,wk],watch:{text:{immediate:!0,handler(e,t){fw.array(e)}}},computed:{textStyle(){let e={};return e.color=this.color,e.fontSize=zw(this.fontSize),e},vertical(){return"horizontal"!=this.mode}},data:()=>({index:0}),emits:["click","close"],methods:{noticeChange(e){this.index=e.detail.current},clickHandler(){this.$emit("click",this.index)},close(){this.$emit("close")}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay,l=wy,c=by,u=gy;return Ir(),zr(a,{class:"u-notice",onClick:r.clickHandler},{default:So(()=>[Mi(e.$slots,"icon",{},()=>[e.icon?(Ir(),zr(a,{key:0,class:"u-notice__left-icon"},{default:So(()=>[jr(s,{name:e.icon,color:e.color,size:"19"},null,8,["name","color"])]),_:1})):Wr("",!0)],!0),jr(u,{"disable-touch":e.disableTouch,vertical:!e.step,circular:"",interval:e.duration,autoplay:!0,class:"u-notice__swiper",onChange:r.noticeChange},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(e.text,(t,n)=>(Ir(),zr(c,{key:n,class:"u-notice__swiper__item",style:qe({justifyContent:e.justifyContent})},{default:So(()=>[jr(l,{class:"u-notice__swiper__item__text u-line-1",style:qe([r.textStyle])},{default:So(()=>[Vr(X(t),1)]),_:2},1032,["style"])]),_:2},1032,["style"]))),128))]),_:1},8,["disable-touch","vertical","interval","onChange"]),["link","closable"].includes(e.mode)?(Ir(),zr(a,{key:0,class:"u-notice__right-icon"},{default:So(()=>["link"===e.mode?(Ir(),zr(s,{key:0,name:"arrow-right",size:17,color:e.color},null,8,["color"])):Wr("",!0),"closable"===e.mode?(Ir(),zr(s,{key:1,name:"close",size:16,color:e.color,onClick:r.close},null,8,["color","onClick"])):Wr("",!0)]),_:1})):Wr("",!0)]),_:3},8,["onClick"])}],["__scopeId","data-v-b8ddb874"]]),Sk=Object.freeze(Object.defineProperty({__proto__:null,default:xk},Symbol.toStringTag,{value:"Module"}));const kk=W_({name:"up-copy",props:{content:{type:String,default:""},alertStyle:{type:String,default:"toast"},notice:{type:String,default:Zw("up.common.copy")+Zw("up.common.success")}},emits:["success"],methods:{t:Zw,handleClick(){let e=this.content;if(!e)return s_({title:Zw("up.common.none"),icon:"none",duration:2e3}),!1;e="string"==typeof e?e:e.toString();let t=this;Xb({data:e,success:function(){"modal"==t.alertStyle?Gv({title:"up.common.tip",content:t.notice}):s_({title:t.notice,icon:"none"}),t.$emit("success")},fail:function(){s_({title:Zw("up.common.copy")+Zw("up.common.fail"),icon:"none",duration:3e3})}})}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{onClick:r.handleClick},{default:So(()=>[Mi(e.$slots,"default",{},()=>[Vr(X(r.t("up.common.copy")),1)])]),_:3},8,["onClick"])}]]),Ck=Object.freeze(Object.defineProperty({__proto__:null,default:kk},Symbol.toStringTag,{value:"Module"})),Ak={props:{time:{type:[String,Number],default:()=>cx.countDown.time},format:{type:String,default:()=>cx.countDown.format},autoStart:{type:Boolean,default:()=>cx.countDown.autoStart},millisecond:{type:Boolean,default:()=>cx.countDown.millisecond}}};function Tk(e,t=2){let n=`${e}`;for(;n.length<t;)n=`0${n}`;return n}const Ik=1e3,Bk=6e4,Ek=36e5,Pk=24*Ek;function Mk(e){return{days:Math.floor(e/Pk),hours:Math.floor(e%Pk/Ek),minutes:Math.floor(e%Ek/Bk),seconds:Math.floor(e%Bk/Ik),milliseconds:Math.floor(e%Ik)}}const zk=W_({name:"u-count-down",mixins:[hx,fx,Ak],data:()=>({timer:null,timeData:Mk(0),formattedTime:"0",runing:!1,endTime:0,remainTime:0}),watch:{time(e){this.reset()}},mounted(){this.init()},emits:["change","finish"],methods:{init(){this.reset()},start(){this.runing||(this.runing=!0,this.endTime=Date.now()+this.remainTime,this.toTick())},toTick(){this.millisecond?this.microTick():this.macroTick()},macroTick(){this.clearTimeout(),this.timer=setTimeout(()=>{const e=this.getRemainTime();var t,n;t=e,n=this.remainTime,(Math.floor(t/1e3)!==Math.floor(n/1e3)||0===e)&&this.setRemainTime(e),0!==this.remainTime&&this.macroTick()},30)},microTick(){this.clearTimeout(),this.timer=setTimeout(()=>{this.setRemainTime(this.getRemainTime()),0!==this.remainTime&&this.microTick()},50)},getRemainTime(){return Math.max(this.endTime-Date.now(),0)},setRemainTime(e){this.remainTime=e;const t=Mk(e);this.timeData=t,this.$emit("change",t),this.formattedTime=function(e,t){let{days:n,hours:o,minutes:i,seconds:r,milliseconds:s}=t;return-1===e.indexOf("DD")?o+=24*n:e=e.replace("DD",Tk(n)),-1===e.indexOf("HH")?i+=60*o:e=e.replace("HH",Tk(o)),-1===e.indexOf("mm")?r+=60*i:e=e.replace("mm",Tk(i)),-1===e.indexOf("ss")?s+=1e3*r:e=e.replace("ss",Tk(r)),e.replace("SSS",Tk(s,3))}(this.format,t),e<=0&&(this.pause(),this.$emit("finish"))},reset(){this.pause(),this.remainTime=this.time,this.setRemainTime(this.remainTime),this.autoStart&&this.start()},pause(){this.runing=!1,this.clearTimeout()},clearTimeout(){clearTimeout(this.timer),this.timer=null}},beforeUnmount(){this.clearTimeout()}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay;return Ir(),zr(a,{class:"u-count-down"},{default:So(()=>[Mi(e.$slots,"default",{days:i.timeData.days,hours:i.timeData.hours,minutes:i.timeData.minutes,seconds:i.timeData.seconds},()=>[jr(s,{class:"u-count-down__text"},{default:So(()=>[Vr(X(i.formattedTime),1)]),_:1})],!0)]),_:3})}],["__scopeId","data-v-487494a2"]]),Ok=Object.freeze(Object.defineProperty({__proto__:null,default:zk},Symbol.toStringTag,{value:"Module"})),Rk={props:{startVal:{type:[String,Number],default:()=>cx.countTo.startVal},endVal:{type:[String,Number],default:()=>cx.countTo.endVal},duration:{type:[String,Number],default:()=>cx.countTo.duration},autoplay:{type:Boolean,default:()=>cx.countTo.autoplay},decimals:{type:[String,Number],default:()=>cx.countTo.decimals},useEasing:{type:Boolean,default:()=>cx.countTo.useEasing},decimal:{type:[String,Number],default:()=>cx.countTo.decimal},color:{type:String,default:()=>cx.countTo.color},fontSize:{type:[String,Number],default:()=>cx.countTo.fontSize},bold:{type:Boolean,default:()=>cx.countTo.bold},separator:{type:String,default:()=>cx.countTo.separator}}};const Lk=W_({name:"u-count-to",data(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:Number(this.duration),startTime:null,timestamp:null,remaining:null,rAF:null,lastTime:0}},mixins:[hx,fx,Rk],computed:{countDown(){return this.startVal>this.endVal}},watch:{startVal(){this.autoplay&&this.start()},endVal(){this.autoplay&&this.start()}},mounted(){this.autoplay&&this.start()},emits:["end"],methods:{addUnit:zw,easingFn:(e,t,n,o)=>n*(1-Math.pow(2,-10*e/o))*1024/1023+t,requestAnimationFrame(e){const t=(new Date).getTime(),n=Math.max(0,16-(t-this.lastTime)),o=setTimeout(()=>{e(t+n)},n);return this.lastTime=t+n,o},cancelAnimationFrame(e){clearTimeout(e)},start(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=this.requestAnimationFrame(this.count)},reStart(){this.paused?(this.resume(),this.paused=!1):(this.stop(),this.paused=!0)},stop(){this.cancelAnimationFrame(this.rAF)},resume(){this.remaining&&(this.startTime=0,this.localDuration=this.remaining,this.localStartVal=this.printVal,this.requestAnimationFrame(this.count))},reset(){this.startTime=null,this.cancelAnimationFrame(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count(e){this.startTime||(this.startTime=e),this.timestamp=e;const t=e-this.startTime;this.remaining=this.localDuration-t,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(t,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(t,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(t/this.localDuration):this.printVal=this.localStartVal+(this.endVal-this.localStartVal)*(t/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal)||0,t<this.localDuration?this.rAF=this.requestAnimationFrame(this.count):this.$emit("end")},isNumber:e=>!isNaN(parseFloat(e)),formatNumber(e){e=(e=Number(e)).toFixed(Number(this.decimals));const t=(e+="").split(".");let n=t[0];const o=t.length>1?this.decimal+t[1]:"",i=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;i.test(n);)n=n.replace(i,"$1"+this.separator+"$2");return n+o},destroyed(){this.cancelAnimationFrame(this.rAF)}}},[["render",function(e,t,n,o,i,r){const s=wy;return Ir(),zr(s,{class:"u-count-num",style:qe({fontSize:r.addUnit(e.fontSize),fontWeight:e.bold?"bold":"normal",color:e.color})},{default:So(()=>[Vr(X(i.displayValue),1)]),_:1},8,["style"])}],["__scopeId","data-v-af161d55"]]),Dk=Object.freeze(Object.defineProperty({__proto__:null,default:Lk},Symbol.toStringTag,{value:"Module"}));const Nk=W_({name:"up-coupon",props:{amount:{type:[String,Number],default:""},unit:{type:String,default:"￥"},unitPosition:{type:String,default:"left"},limit:{type:String,default:""},title:{type:String,default:"优惠券"},desc:{type:String,default:""},time:{type:String,default:""},actionText:{type:String,default:"使用"},shape:{type:String,default:"coupon"},size:{type:String,default:"medium"},circle:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},bgColor:{type:String,default:""},color:{type:String,default:""},type:{type:String,default:""}},computed:{couponStyle(){const e={};return this.bgColor&&(e.background=this.bgColor),this.color&&(e.color=this.color),e},dotCount(){return{small:8,medium:10,large:12}[this.size]||10}},methods:{handleClick(){this.disabled||this.$emit("click")}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay,l=Bo("up-tag");return Ir(),zr(a,{class:Qe(["up-coupon",[`up-coupon--${n.shape}`,`up-coupon--${n.type}`,`up-coupon--${n.size}`,{"up-coupon--disabled":n.disabled}]]),style:qe([r.couponStyle]),onClick:r.handleClick},{default:So(()=>[jr(a,{class:"up-coupon__content"},{default:So(()=>[jr(a,{class:"up-coupon__amount"},{default:So(()=>["left"===n.unitPosition?Mi(e.$slots,"unit",{key:0,unit:n.unit,unitPosition:n.unitPosition},()=>["left"===n.unitPosition?(Ir(),zr(s,{key:0,class:"up-coupon__amount-unit"},{default:So(()=>[Vr(X(n.unit),1)]),_:1})):Wr("",!0)],!0):Wr("",!0),Mi(e.$slots,"amount",{amount:n.amount},()=>[jr(s,{class:"up-coupon__amount-value"},{default:So(()=>[Vr(X(n.amount),1)]),_:1})],!0),"right"===n.unitPosition?Mi(e.$slots,"unit",{key:1,unit:n.unit,unitPosition:n.unitPosition},()=>["right"===n.unitPosition?(Ir(),zr(s,{key:0,class:"up-coupon__amount-unit"},{default:So(()=>[Vr(X(n.unit),1)]),_:1})):Wr("",!0)],!0):Wr("",!0),Mi(e.$slots,"limit",{limit:n.limit},()=>[n.limit?(Ir(),zr(s,{key:0,class:"up-coupon__amount-limit"},{default:So(()=>[Vr(X(n.limit),1)]),_:1})):Wr("",!0)],!0)]),_:3}),jr(a,{class:"up-coupon__info"},{default:So(()=>[Mi(e.$slots,"title",{title:n.title},()=>[jr(s,{class:"up-coupon__info-title"},{default:So(()=>[Vr(X(n.title),1)]),_:1})],!0),Mi(e.$slots,"desc",{desc:n.desc},()=>[n.desc?(Ir(),zr(s,{key:0,class:"up-coupon__info-desc"},{default:So(()=>[Vr(X(n.desc),1)]),_:1})):Wr("",!0)],!0),Mi(e.$slots,"time",{time:n.time},()=>[n.time?(Ir(),zr(s,{key:0,class:"up-coupon__info-time"},{default:So(()=>[Vr(X(n.time),1)]),_:1})):Wr("",!0)],!0)]),_:3}),jr(a,{class:"up-coupon__action u-padding-right-20"},{default:So(()=>[Mi(e.$slots,"action",{actionText:n.actionText,circle:n.circle},()=>[jr(l,{type:"error",bgColor:n.type?"transparent":"#eb433d",borderColor:n.type?"#eee":"#eb433d",borderRadius:"6px",size:"medium",class:"up-coupon__action-text",shape:(n.circle,"circle")},{default:So(()=>[Vr(X(n.actionText),1)]),_:1},8,["bgColor","borderColor","shape"])],!0)]),_:3})]),_:3}),"envelope"===n.shape?(Ir(),zr(a,{key:0,class:"up-coupon__rope"})):Wr("",!0),Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["class","style","onClick"])}],["__scopeId","data-v-2f2db008"]]),$k=Object.freeze(Object.defineProperty({__proto__:null,default:Nk},Symbol.toStringTag,{value:"Module"})),jk=50;const Hk=W_({name:"u-cropper",data:()=>({instanceId:Date.now()+"-"+Math.random().toString(36).substr(2,9),cvsStyleHeight:"0px",styleDisplay:"none",styleTop:"-10000px",prvTop:"-10000px",imgStyle:{},selStyle:{},showOper:!0,imgSrc:{imgSrc:""},btnWidth:"19%",btnDsp:"flex",arWidth:"",arHeight:"",expWidth:"",expHeight:"",letChangeSize:!1}),watch:{avatarSrc(){this.imgSrc.imgSrc=this.avatarSrc}},emits:["avtinit","confirm"],props:{minScale:"",maxScale:"",canScale:!0,canRotate:!0,lockWidth:"",lockHeight:"",stretch:"",lock:"",noTab:!0,inner:!1,quality:"",index:"",canChangeSize:!1,areaWidth:"300rpx",areaHeight:"300rpx",exportWidth:"260rpx",exportHeight:"260rpx"},created(){this.ctxCanvas=Vh("avatar-canvas-"+this.instanceId,this),this.ctxCanvasOper=Vh("oper-canvas-"+this.instanceId,this),this.ctxCanvasPrv=Vh("prv-canvas-"+this.instanceId,this),this.qlty=parseInt(this.quality)||.9,this.imgSrc.imgSrc=this.imageSrc,this.letRotate=!1===this.canRotate||!0===this.inner?0:1,this.letScale=!1===this.canScale?0:1,this.letChangeSize=this.canChangeSize,this.isin=!0===this.inner?1:0,this.indx=this.index||void 0,this.mnScale=this.minScale||.3,this.mxScale=this.maxScale||4,this.noBar=!0===this.noTab?1:0,this.stc=this.stretch,this.lck=this.lock,this.isin?(this.btnWidth="24%",this.btnDsp="none"):(this.btnWidth="19%",this.btnDsp="flex"),this.noBar?(this.moreHeight=0,this.windowResize()):x_({complete:e=>{this.moreHeight="showTabBar:ok"===e.errMsg?50:0,this.windowResize()}})},methods:{t:Zw,windowResize(){let e=Hb();this.platform=e.platform,this.pixelRatio=e.pixelRatio,this.windowWidth=e.windowWidth,this.drawTop=e.windowTop,this.windowHeight=e.windowHeight+e.windowBottom,this.cvsStyleHeight=this.windowHeight-jk+"px",this.pxRatio=this.windowWidth/750;let t=this.avatarStyle;if(t&&!0!==t&&(t=t.trim())){t=t.split(";");let e={};for(let n of t)if(n){if(n=n.trim().split(":"),n[1].indexOf("rpx")>=0){let e=n[1].trim().split(" ");for(let t in e)e[t]&&e[t].indexOf("rpx")>=0&&(e[t]=parseFloat(e[t])*this.pxRatio+"px");n[1]=e.join(" ")}e[n[0].trim()]=n[1].trim()}this.imgStyle=e}this.expWidth&&(this.expWidth=this.expWidth.indexOf("rpx")>=0?parseInt(this.expWidth)*this.pxRatio:parseInt(this.expWidth)),this.expHeight&&(this.expHeight=this.expHeight.indexOf("rpx")>=0?parseInt(this.expHeight)*this.pxRatio:parseInt(this.expHeight)),"flex"===this.styleDisplay&&this.drawInit(!0),this.hideImg()},select(){this.fSelecting||(this.fSelecting=!0,setTimeout(()=>{this.fSelecting=!1},500),cv({count:1,sizeType:["original","compressed"],sourceType:["album","camera"],success:e=>{l_({mask:!0});let t=this.imgPath=e.tempFilePaths[0];ov({src:t,success:e=>{if(this.imgWidth=e.width,this.imgHeight=e.height,this.path=t,!this.hasSel){let e=this.selStyle||{};if(!this.arWidth||!this.arHeight)return void Gv({title:Zw("up.cropper.emptyWidhtOrHeight"),showCancel:!1});{let t=this.arWidth.indexOf("rpx")>=0?parseInt(this.arWidth)*this.pxRatio:parseInt(this.arWidth),n=this.arHeight.indexOf("rpx")>=0?parseInt(this.arHeight)*this.pxRatio:parseInt(this.arHeight);e.width=t+"px",e.height=n+"px",e.top=(this.windowHeight-n-jk)/2+"px",e.left=(this.windowWidth-t)/2+"px"}this.selStyle=e}this.noBar?this.drawInit(!0):w_({complete:()=>{this.drawInit(!0)}})},fail:()=>{s_({title:"error3",duration:2e3})},complete(){c_()}})}}))},confirm(){if(this.fUploading)return;this.fUploading=!0,setTimeout(()=>{this.fUploading=!1},1e3);let e=this.selStyle,t=parseInt(e.left),n=parseInt(e.top),o=parseInt(e.width),i=parseInt(e.height),r=this.expWidth||o,s=this.expHeight||i;r=o,s=i,l_({mask:!0}),this.styleDisplay="none",this.styleTop="-10000px",this.hasSel=!1,this.hideImg(),qh({x:t,y:n,width:o,height:i,destWidth:r,destHeight:s,canvasId:"avatar-canvas-"+this.instanceId,fileType:"png",quality:this.qlty,success:e=>{e=e.tempFilePath,this.btop(e).then(e=>{if(this.expWidth&&this.expHeight){let t=this.ctxCanvas;r=this.expWidth,s=this.expHeight,t.drawImage(e,0,0,r,s),t.draw(!1,()=>{qh({x:0,y:0,width:r,height:s,destWidth:r,destHeight:s,canvasId:"avatar-canvas-"+this.instanceId,fileType:"png",quality:this.qlty,success:e=>{e=e.tempFilePath,this.btop(e).then(e=>{this.$emit("confirm",{avatar:this.imgSrc,path:e,index:this.indx,data:this.rtn})})},fail:()=>{s_({title:"error0",duration:2e3})}})})}else this.$emit("confirm",{avatar:this.imgSrc,path:e,index:this.indx,data:this.rtn})})},fail:e=>{s_({title:"error1",duration:2e3})},complete:()=>{c_(),this.noBar||x_()}},this)},prvUpload(){if(this.fPrvUploading)return;this.fPrvUploading=!0,setTimeout(()=>{this.fPrvUploading=!1},1e3);let e=this.selStyle;parseInt(e.width),parseInt(e.height);let t=this.prvX,n=this.prvY,o=this.prvWidth,i=this.prvHeight,r=this.expWidth||o,s=this.expHeight||i;r=o,s=i,l_({mask:!0}),this.styleDisplay="none",this.styleTop="-10000px",this.hasSel=!1,this.hideImg(),qh({x:t,y:n,width:o,height:i,destWidth:r,destHeight:s,canvasId:"prv-canvas-"+this.instanceId,fileType:"png",quality:this.qlty,success:e=>{e=e.tempFilePath,this.btop(e).then(e=>{if(this.expWidth&&this.expHeight){let t=this.ctxCanvas;r=this.expWidth,s=this.expHeight,t.drawImage(e,0,0,r,s),t.draw(!1,()=>{qh({x:0,y:0,width:r,height:s,destWidth:r,destHeight:s,canvasId:"avatar-canvas-"+this.instanceId,fileType:"png",quality:this.qlty,success:e=>{e=e.tempFilePath,this.btop(e).then(e=>{this.$emit("confirm",{avatar:this.imgSrc,path:e,index:this.indx,data:this.rtn})})},fail:()=>{s_({title:"error0",duration:2e3})}})})}else this.$emit("confirm",{avatar:this.imgSrc,path:e,index:this.indx,data:this.rtn})})},fail:()=>{s_({title:"error_prv",duration:2e3})},complete:()=>{c_(),this.noBar||x_()}},this)},drawInit(e=!1){let t=this.windowWidth,n=this.windowHeight,o=this.imgWidth,i=this.imgHeight,r=o/i,s=t-40,a=n-jk-80;this.pixelRatio;let l=parseInt(this.selStyle.width),c=parseInt(this.selStyle.height);switch(this.fixWidth=0,this.fixHeight=0,this.lckWidth=0,this.lckHeight=0,this.stc){case"x":this.fixWidth=1;break;case"y":this.fixHeight=1;break;case"long":r>1?this.fixWidth=1:this.fixHeight=1;break;case"short":r>1?this.fixHeight=1:this.fixWidth=1;break;case"longSel":l>c?this.fixWidth=1:this.fixHeight=1;break;case"shortSel":l>c?this.fixHeight=1:this.fixWidth=1}switch(this.lck){case"x":this.lckWidth=1;break;case"y":this.lckHeight=1;break;case"long":r>1?this.lckWidth=1:this.lckHeight=1;break;case"short":r>1?this.lckHeight=1:this.lckWidth=1;break;case"longSel":l>c?this.lckWidth=1:this.lckHeight=1;break;case"shortSel":l>c?this.lckHeight=1:this.lckWidth=1}this.fixWidth?(s=l,a=s/r):this.fixHeight?(a=c,s=a*r):r<1?i<a?(s=o,a=i):s=a*r:o<s?(s=o,a=i):a=s/r,this.isin&&(this.scaleWidth=0,this.scaleHeight=0,s<l&&(s=l,a=s/r,this.lckHeight=0),a<c&&(a=c,s=a*r,this.lckWidth=0)),this.scaleSize=1,this.rotateDeg=0,this.posWidth=(t-s)/2,this.posHeight=(n-a-jk)/2,this.useWidth=s,this.useHeight=a;let u=this.selStyle,d=parseInt(u.left),h=parseInt(u.top),p=parseInt(u.width),f=parseInt(u.height);this.canvas,this.canvasOper;let m=this.ctxCanvas,g=this.ctxCanvasOper;g.setLineWidth(3),g.setStrokeStyle("grey"),g.setGlobalAlpha(.4),g.setFillStyle("black"),g.strokeRect(d,h,p,f),g.fillRect(0,0,this.windowWidth,h),g.fillRect(0,h,d,f),g.fillRect(0,h+f,this.windowWidth,this.windowHeight-f-h-jk),g.fillRect(d+p,h,this.windowWidth-p-d,f),g.setStrokeStyle("red"),g.moveTo(d+20,h),g.lineTo(d,h),g.lineTo(d,h+20),g.moveTo(d+p-20,h),g.lineTo(d+p,h),g.lineTo(d+p,h+20),g.moveTo(d+20,h+f),g.lineTo(d,h+f),g.lineTo(d,h+f-20),g.moveTo(d+p-20,h+f),g.lineTo(d+p,h+f),g.lineTo(d+p,h+f-20);const y=10;g.setFillStyle("white"),g.setStrokeStyle("grey"),g.setLineWidth(1),g.fillRect(d-5,h-5,y,y),g.strokeRect(d-5,h-5,y,y),g.fillRect(d+p-5,h-5,y,y),g.strokeRect(d+p-5,h-5,y,y),g.fillRect(d-5,h+f-5,y,y),g.strokeRect(d-5,h+f-5,y,y),g.fillRect(d+p-5,h+f-5,y,y),g.strokeRect(d+p-5,h+f-5,y,y),g.stroke(),g.draw(!1,()=>{e&&(this.styleDisplay="flex",this.styleTop=this.drawTop+"px",m.setFillStyle("black"),this.drawImage())}),this.$emit("avtinit")},drawImage(){let e=Date.now();if(e-this.drawTm<20)return;this.drawTm=e;let t=this.ctxCanvas;t.fillRect(0,0,this.windowWidth,this.windowHeight-jk),t.translate(this.posWidth+this.useWidth/2,this.posHeight+this.useHeight/2),t.scale(this.scaleSize,this.scaleSize),t.rotate(this.rotateDeg*Math.PI/180),t.drawImage(this.imgPath,-this.useWidth/2,-this.useHeight/2,this.useWidth,this.useHeight),t.draw(!1)},hideImg(){this.prvImg="",this.prvTop="-10000px",this.showOper=!0,this.prvImgData=null,this.target=null},close(){this.styleDisplay="none",this.styleTop="-10000px",this.hasSel=!1,this.hideImg(),this.noBar||x_()},preview(){if(this.fPreviewing)return;this.fPreviewing=!0,setTimeout(()=>{this.fPreviewing=!1},1e3);let e=this.selStyle,t=parseInt(e.left),n=parseInt(e.top),o=parseInt(e.width),i=parseInt(e.height);l_({mask:!0}),qh({x:t,y:n,width:o,height:i,canvasId:"avatar-canvas-"+this.instanceId,fileType:"png",quality:this.qlty,success:e=>{this.prvImgTmp=e=e.tempFilePath;let r=this.ctxCanvasPrv,s=this.windowWidth,a=parseInt(this.cvsStyleHeight),l=parseInt(this.selStyle.width),c=parseInt(this.selStyle.height),u=s-40,d=a-80,h=u/l,p=c*h;p<d?(l=u,c=p):(h=d/c,l*=h,c=d),r.setFillStyle("black"),r.fillRect(0,0,s,a),r.fillRect(t,n,o,i),this.prvX=s=(s-l)/2,this.prvY=a=(a-c)/2,this.prvWidth=l,this.prvHeight=c,r.drawImage(e,s,a,l,c),r.draw(!1,()=>{this.btop(this.prvImgTmp).then(e=>{this.showOper=!1,this.prvTop=this.drawTop+"px"})})},fail:()=>{s_({title:"error2",duration:2e3})},complete:()=>{c_()}},this)},chooseImage(e=void 0,t=void 0,n=void 0){if(t){console.log(t);let e=t.areaWidth||this.areaWidth,n=t.areaHeight||this.areaHeight,o=t.exportWidth||this.exportWidth,i=t.exportHeight||this.exportHeight,r=t.quality,s=t.canRotate,a=t.canScale,l=t.canChangeSize,c=t.minScale,u=t.maxScale,d=t.stretch,h=t.inner,p=t.lock;console.log("areaWidth",this.areaWidth),o&&(this.expWidth=o.indexOf("rpx")>=0?parseInt(o)*this.pxRatio:parseInt(o)),i&&(this.expHeight=i.indexOf("rpx")>=0?parseInt(i)*this.pxRatio:parseInt(i)),this.letRotate=!1===s?0:1,this.letScale=!1===a?0:1,this.letChangeSize=l||!1,this.qlty=parseInt(r)||.9,this.mnScale=c||.3,this.mxScale=u||4,this.stc=d,this.isin=!0===h?1:0,this.lck=p,this.isin?(this.btnWidth="24%",this.btnDsp="none"):(this.btnWidth="19%",this.btnDsp="flex"),e&&n&&(e=e.indexOf("rpx")>=0?parseInt(e)*this.pxRatio:parseInt(e),n=n.indexOf("rpx")>=0?parseInt(n)*this.pxRatio:parseInt(n),this.selStyle.width=e+"px",this.selStyle.height=n+"px",this.selStyle.top=(this.windowHeight-n-jk)/2+"px",this.selStyle.left=(this.windowWidth-e)/2+"px",this.hasSel=!0)}this.rtn=n,this.indx=e,this.select()},rotate(){this.rotateDeg+=90-this.rotateDeg%90,this.drawImage()},start(e){let t=e.touches,n=t[0],o=t[1];if(this.touch0=n,this.touch1=o,o){let e=o.x-n.x,t=o.y-n.y;this.fgDistance=Math.sqrt(e*e+t*t)}else if(this.letChangeSize){const e=20,t=n.x,o=n.y,i=this.selStyle,r=parseInt(i.left),s=parseInt(i.top),a=parseInt(i.width),l=parseInt(i.height);Math.abs(t-r)<e&&Math.abs(o-s)<e?this.resizeHandle="top-left":Math.abs(t-(r+a))<e&&Math.abs(o-s)<e?this.resizeHandle="top-right":Math.abs(t-r)<e&&Math.abs(o-(s+l))<e?this.resizeHandle="bottom-left":Math.abs(t-(r+a))<e&&Math.abs(o-(s+l))<e?this.resizeHandle="bottom-right":this.resizeHandle=null}else this.resizeHandle=null},move(e){let t=e.touches,n=t[0],o=t[1];if(o){let e=o.x-n.x,t=o.y-n.y,i=Math.sqrt(e*e+t*t),r=.005*(i-this.fgDistance),s=this.scaleSize+r;do{if(!this.letScale)break;if(s<this.mnScale)break;if(s>this.mxScale)break;if(this.isin){let e=this.useWidth*s,t=this.useHeight*s,n=this.posWidth+this.useWidth/2-e/2,o=this.posHeight+this.useHeight/2-t/2,i=n+e,r=o+t,a=parseInt(this.selStyle.left),l=parseInt(this.selStyle.top),c=parseInt(this.selStyle.width),u=parseInt(this.selStyle.height);if(a<n||a+c>i||l<o||l+u>r)break;this.scaleWidth=(this.useWidth-e)/2,this.scaleHeight=(this.useHeight-t)/2}this.scaleSize=s}while(0);this.fgDistance=i,o.x!==n.x&&this.letRotate&&(e=(this.touch1.y-this.touch0.y)/(this.touch1.x-this.touch0.x),t=(o.y-n.y)/(o.x-n.x),this.rotateDeg+=180*Math.atan((t-e)/(1+e*t))/Math.PI,this.touch0=n,this.touch1=o),this.drawImage()}else if(this.touch0)if(this.resizeHandle&&this.letChangeSize){const e={...this.selStyle},t=parseInt(e.left),o=parseInt(e.top),i=parseInt(e.width),r=parseInt(e.height),s=50,a=50;switch(this.resizeHandle){case"top-left":e.left=n.x+"px",e.top=n.y+"px",e.width=t+i-n.x+"px",e.height=o+r-n.y+"px";break;case"top-right":e.top=n.y+"px",e.width=n.x-t+"px",e.height=o+r-n.y+"px";break;case"bottom-left":e.left=n.x+"px",e.width=t+i-n.x+"px",e.height=n.y-o+"px";break;case"bottom-right":e.width=n.x-t+"px",e.height=n.y-o+"px"}parseInt(e.width)>=s&&parseInt(e.height)>=a&&parseInt(e.left)>=0&&parseInt(e.top)>=0&&parseInt(e.left)+parseInt(e.width)<=this.windowWidth&&parseInt(e.top)+parseInt(e.height)<=this.windowHeight-jk&&(this.selStyle=e,this.drawInit())}else{let e=n.x-this.touch0.x,t=n.y-this.touch0.y,o=this.posWidth+e,i=this.posHeight+t;if(this.isin){let n=this.useWidth*this.scaleSize,r=this.useHeight*this.scaleSize,s=o+this.useWidth/2-n/2,a=i+this.useHeight/2-r/2,l=s+n,c=a+r,u=parseInt(this.selStyle.left),d=parseInt(this.selStyle.top),h=parseInt(this.selStyle.width),p=parseInt(this.selStyle.height);!this.lckWidth&&Math.abs(e)<100&&(u>=s&&u+h<=l?this.posWidth=o:u<s?this.posWidth=u-this.scaleWidth:u+h>l&&(this.posWidth=u-(n-h)-this.scaleWidth)),!this.lckHeight&&Math.abs(t)<100&&(d>=a&&d+p<=c?this.posHeight=i:d<a?this.posHeight=d-this.scaleHeight:d+p>c&&(this.posHeight=d-(r-p)-this.scaleHeight))}else Math.abs(e)<100&&!this.lckWidth&&(this.posWidth=o),Math.abs(t)<100&&!this.lckHeight&&(this.posHeight=i);this.touch0=n,this.drawImage()}},end(e){let t=e.touches,n=t&&t[0];t&&t[1],n?this.touch0=n:(this.touch0=null,this.touch1=null,this.resizeHandle=null)},getImgData(){return new Promise((e,t)=>{let n=this.prvX,o=this.prvY,i=this.prvWidth,r=this.prvHeight;n*=this.pixelRatio,o*=this.pixelRatio,i*=this.pixelRatio,r*=this.pixelRatio,Wh({canvasId:"prv-canvas-"+this.instanceId,x:n,y:o,width:i,height:r,success(t){e(t.data)},fail(e){t(e)}},this)})},async colorChange(e){let t=Date.now();if(t-this.prvTm<100)return;if(this.prvTm=t,l_({mask:!0}),!this.prvImgData){if(!(this.prvImgData=await this.getImgData().catch(e=>{s_({title:"error_read",duration:2e3})})))return;this.target=new Uint8ClampedArray(this.prvImgData.length)}let n,o,i,r,s,a,l,c,u,d,h,p,f,m,g,y,b=this.prvImgData,v=this.target,_=e.detail.value;if(0===_)v=b;else{_=(_+100)/200,_<.005&&(_=0),_>.995&&(_=1);for(let e=b.length-1;e>=0;e-=4){if(n=b[e-3]/255,o=b[e-2]/255,i=b[e-1]/255,p=Math.max(n,o,i),h=Math.min(n,o,i),c=p-h,p===h?s=0:p===n&&o>=i?s=(o-i)/c*60:p===n&&o<i?s=(o-i)/c*60+360:p===o?s=(i-n)/c*60+120:p===i&&(s=(n-o)/c*60+240),l=(p+h)/2,0===l||p===h?a=0:0<l&&l<=.5?a=c/(2*l):l>.5&&(a=c/(2-2*l)),b[e]&&(r=b[e]),_<.5?a=a*_/.5:_>.5&&(a=2*a+2*_-a*_/.5-1),0===a)n=o=i=Math.round(255*l);else{l<.5?d=l*(1+a):l>=.5&&(d=l+a-l*a),u=2*l-d,f=s/360,m=f+1/3,g=f,y=f-1/3;let e=e=>e<0?e+1:e>1?e-1:e,t=e=>e<1/6?u+6*(d-u)*e:e>=1/6&&e<.5?d:e>=.5&&e<2/3?u+6*(d-u)*(2/3-e):u;n=m=Math.round(255*t(e(m))),o=g=Math.round(255*t(e(g))),i=y=Math.round(255*t(e(y)))}r&&(v[e]=r),v[e-3]=n,v[e-2]=o,v[e-1]=i}}let w=this.prvX,x=this.prvY,S=this.prvWidth,k=this.prvHeight;this.ctxCanvasPrv.setFillStyle("black"),this.ctxCanvasPrv.fillRect(w,x,S,k),this.ctxCanvasPrv.draw(!0),w*=this.pixelRatio,x*=this.pixelRatio,S*=this.pixelRatio,k*=this.pixelRatio,Uh({canvasId:"prv-canvas-"+this.instanceId,x:w,y:x,width:S,height:k,data:v,fail(){s_({title:"error_put",duration:2e3})},complete(){c_()}},this)},btop:e=>new Promise(function(t,n){for(var o=e.split(","),i=o[0].match(/:(.*?);/)[1],r=atob(o[1]),s=r.length,a=new Uint8Array(s);s--;)a[s]=r.charCodeAt(s);return t((window.URL||window.webkitURL).createObjectURL(new Blob([a],{type:i})))})}},[["render",function(e,t,n,o,i,r){const s=zm,a=wy,l=Ay,c=hy;return Ir(),zr(l,{class:"u-cropper"},{default:So(()=>[jr(s,{"canvas-id":"avatar-canvas-"+i.instanceId,id:"avatar-canvas-"+i.instanceId,class:"my-canvas",style:qe({top:i.styleTop,height:i.cvsStyleHeight}),"disable-scroll":"false"},null,8,["canvas-id","id","style"]),jr(s,{"canvas-id":"oper-canvas-"+i.instanceId,id:"oper-canvas-"+i.instanceId,class:"oper-canvas",style:qe({top:i.styleTop,height:i.cvsStyleHeight}),"disable-scroll":"false",onTouchstart:r.start,onTouchmove:r.move,onTouchend:r.end},null,8,["canvas-id","id","style","onTouchstart","onTouchmove","onTouchend"]),jr(s,{"canvas-id":"prv-canvas-"+i.instanceId,id:"prv-canvas-"+i.instanceId,class:"prv-canvas","disable-scroll":"false",onTouchstart:r.hideImg,style:qe({height:i.cvsStyleHeight,top:i.prvTop})},null,8,["canvas-id","id","onTouchstart","style"]),jr(l,{class:"oper-wrapper",style:qe({display:i.styleDisplay})},{default:So(()=>[jr(l,{class:"oper"},{default:So(()=>[i.showOper?(Ir(),zr(l,{key:0,class:"btn-wrapper"},{default:So(()=>[jr(l,{onClick:r.select,"hover-class":"hover",style:qe({width:i.btnWidth})},{default:So(()=>[jr(a,null,{default:So(()=>[Vr(X(r.t("up.common.re-select")),1)]),_:1})]),_:1},8,["onClick","style"]),jr(l,{onClick:r.close,"hover-class":"hover",style:qe({width:i.btnWidth})},{default:So(()=>[jr(a,null,{default:So(()=>[Vr(X(r.t("up.common.close")),1)]),_:1})]),_:1},8,["onClick","style"]),jr(l,{onClick:r.rotate,"hover-class":"hover",style:qe({width:i.btnWidth,display:i.btnDsp})},{default:So(()=>[jr(a,null,{default:So(()=>[Vr(X(r.t("up.common.rotate")),1)]),_:1})]),_:1},8,["onClick","style"]),jr(l,{onClick:r.preview,"hover-class":"hover",style:qe({width:i.btnWidth})},{default:So(()=>[jr(a,null,{default:So(()=>[Vr(X(r.t("up.common.preview")),1)]),_:1})]),_:1},8,["onClick","style"]),jr(l,{onClick:r.confirm,"hover-class":"hover",style:qe({width:i.btnWidth})},{default:So(()=>[jr(a,null,{default:So(()=>[Vr(X(r.t("up.common.confirm")),1)]),_:1})]),_:1},8,["onClick","style"])]),_:1})):(Ir(),zr(l,{key:1,class:"clr-wrapper"},{default:So(()=>[jr(c,{class:"my-slider",onChange:r.colorChange,"block-size":"25",value:"0",min:"-100",max:"100",activeColor:"red",backgroundColor:"green","block-color":"grey","show-value":""},null,8,["onChange"]),jr(l,{onClick:r.prvUpload,"hover-class":"hover",style:qe({width:i.btnWidth})},{default:So(()=>[jr(a,null,{default:So(()=>[Vr(X(r.t("up.common.confirm")),1)]),_:1})]),_:1},8,["onClick","style"])]),_:1}))]),_:1})]),_:1},8,["style"]),"none"==i.styleDisplay?(Ir(),zr(l,{key:0,onClick:t[0]||(t[0]=e=>r.chooseImage(0,{}))},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3})):Wr("",!0)]),_:3})}],["__scopeId","data-v-3a2029ff"]]),Fk=Object.freeze(Object.defineProperty({__proto__:null,default:Hk},Symbol.toStringTag,{value:"Module"})),Vk={props:{show:{type:Boolean,default:()=>cx.toolbar.show},cancelText:{type:String,default:()=>cx.toolbar.cancelText},confirmText:{type:String,default:()=>cx.toolbar.confirmText},cancelColor:{type:String,default:()=>cx.toolbar.cancelColor},confirmColor:{type:String,default:()=>cx.toolbar.confirmColor},title:{type:String,default:()=>cx.toolbar.title},rightSlot:{type:Boolean,default:!1}}};const Wk=W_({name:"u-toolbar",mixins:[hx,fx,Vk],emits:["confirm","cancel"],created(){},methods:{cancel(){this.$emit("cancel")},confirm(){this.$emit("confirm")}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay;return e.show?(Ir(),zr(a,{key:0,class:"u-toolbar",onTouchmove:ua(e.noop,["stop","prevent"])},{default:So(()=>[jr(a,{class:"u-toolbar__left"},{default:So(()=>[jr(a,{class:"u-toolbar__cancel__wrapper","hover-class":"u-hover-class"},{default:So(()=>[jr(s,{class:"u-toolbar__wrapper__cancel",onClick:r.cancel,style:qe({color:e.cancelColor})},{default:So(()=>[Vr(X(e.cancelText),1)]),_:1},8,["onClick","style"])]),_:1})]),_:1}),e.title?(Ir(),zr(s,{key:0,class:"u-toolbar__title u-line-1"},{default:So(()=>[Vr(X(e.title),1)]),_:1})):Wr("",!0),jr(a,{class:"u-toolbar__right"},{default:So(()=>[e.rightSlot?Mi(e.$slots,"right",{key:1},void 0,!0):(Ir(),zr(a,{key:0,class:"u-toolbar__confirm__wrapper","hover-class":"u-hover-class"},{default:So(()=>[jr(s,{class:"u-toolbar__wrapper__confirm",onClick:r.confirm,style:qe({color:e.confirmColor})},{default:So(()=>[Vr(X(e.confirmText),1)]),_:1},8,["onClick","style"])]),_:1}))]),_:3})]),_:3},8,["onTouchmove"])):Wr("",!0)}],["__scopeId","data-v-a5cc0913"]]),Uk=Object.freeze(Object.defineProperty({__proto__:null,default:Wk},Symbol.toStringTag,{value:"Module"})),qk={props:{modelValue:{type:Array,default:()=>[]},hasInput:{type:Boolean,default:!1},inputProps:{type:Object,default:()=>({})},disabled:{type:Boolean,default:()=>cx.picker.disabled},disabledColor:{type:String,default:()=>cx.picker.disabledColor},placeholder:{type:String,default:()=>cx.picker.placeholder},show:{type:Boolean,default:()=>cx.picker.show},popupMode:{type:String,default:()=>cx.picker.popupMode},showToolbar:{type:Boolean,default:()=>cx.picker.showToolbar},title:{type:String,default:()=>cx.picker.title},columns:{type:Array,default:()=>cx.picker.columns},loading:{type:Boolean,default:()=>cx.picker.loading},itemHeight:{type:[String,Number],default:()=>cx.picker.itemHeight},cancelText:{type:String,default:()=>cx.picker.cancelText},confirmText:{type:String,default:()=>cx.picker.confirmText},cancelColor:{type:String,default:()=>cx.picker.cancelColor},confirmColor:{type:String,default:()=>cx.picker.confirmColor},visibleItemCount:{type:[String,Number],default:()=>cx.picker.visibleItemCount},keyName:{type:String,default:()=>cx.picker.keyName},valueName:{type:String,default:()=>cx.picker.valueName},closeOnClickOverlay:{type:Boolean,default:()=>cx.picker.closeOnClickOverlay},defaultIndex:{type:Array,default:()=>cx.picker.defaultIndex},immediateChange:{type:Boolean,default:()=>cx.picker.immediateChange},toolbarRightSlot:{type:Boolean,default:!1},zIndex:{type:[String,Number],default:()=>cx.picker.zIndex},bgColor:{type:String,default:()=>cx.picker.bgColor},round:{type:[Boolean,String,Number],default:()=>cx.picker.round},duration:{type:[String,Number],default:()=>cx.picker.duration},overlayOpacity:{type:[Number,String],default:()=>cx.picker.overlayOpacity},pageInline:{type:Boolean,default:()=>cx.picker.pageInline}}};const Qk=W_({name:"u-picker",mixins:[hx,fx,qk],data:()=>({lastIndex:[],innerIndex:[],innerColumns:[],columnIndex:0,showByClickInput:!1,currentActiveValue:[]}),watch:{columns:{immediate:!0,deep:!0,handler(e){this.setColumns(e)}},defaultIndex:{immediate:!0,deep:!0,handler(e,t){t&&e.join("/")==t.join("/")||this.setIndexs(e,!0)}},modelValue:{immediate:!0,deep:!0,handler(e,t){if(!t||e.join("/")!=t.join("/")){let t=[];null!=e&&(e.forEach((e,n)=>{let o=this.getColumnValues(n);o&&"[object Object]"===Object.prototype.toString.call(o)?o.forEach((n,o)=>{n[this.keyName]==e&&t.push(o)}):o.forEach((n,o)=>{n==e&&t.push(o)})}),0==t.length&&this.defaultIndex||this.setIndexs(t,!0))}}}},emits:["close","cancel","confirm","change","update:modelValue","update:show"],computed:{inputPropsInner(){return{border:this.inputBorder,placeholder:this.placeholder,disabled:this.disabled,disabledColor:this.disabledColor,...this.inputProps}},inputLabel(){let e=this.innerColumns[0]&&this.innerColumns[0][0];if(e&&"[object Object]"===Object.prototype.toString.call(e)){let e=this.innerColumns[0].filter(e=>this.modelValue.includes(e.id));return e=e.map(e=>e[this.keyName]),e.join("/")}return this.modelValue.join("/")},inputValue(){let e=this.innerColumns.map((e,t)=>e[this.innerIndex[t]]),t=[];return e[0]&&"[object Object]"===Object.prototype.toString.call(e[0])?e.forEach(e=>{t.push(e&&e[this.valueName])}):e.forEach((e,n)=>{t.push(e)}),t}},methods:{addUnit:zw,testArray:fw.array,onShowByClickInput(){this.disabled||(this.showByClickInput=!this.showByClickInput)},getItemText(e){return fw.object(e)?e[this.keyName]:e},closeHandler(){this.closeOnClickOverlay&&(this.hasInput&&(this.showByClickInput=!1),this.setDefault(),this.$emit("update:show",!1),this.$emit("close"))},cancel(){this.hasInput&&(this.showByClickInput=!1),this.setDefault(),this.$emit("update:show",!1),this.$emit("cancel")},setDefault(){let e=[0];e=0==this.lastIndex.length?Array.isArray(this.defaultIndex)&&this.defaultIndex.length==this.innerColumns.length?[...this.defaultIndex]:Array(this.innerColumns.length).fill(0):Ow(this.lastIndex),this.setLastIndex(e),this.setIndexs(e)},confirm(){this.currentActiveValue.length||this.setDefault(),this.$emit("update:modelValue",this.inputValue),this.hasInput&&(this.showByClickInput=!1),this.setLastIndex(this.innerIndex),this.$emit("update:show",!1),this.$emit("confirm",{indexs:this.innerIndex,value:this.innerColumns.map((e,t)=>e[this.innerIndex[t]]),values:this.innerColumns})},changeHandler(e){const{value:t}=e.detail;let n=0,o=0;this.currentActiveValue=t;for(let r=0;r<t.length;r++){let e=t[r];if(e!==(this.lastIndex[r]||0)){o=r,n=e;break}}this.columnIndex=o;const i=this.innerColumns;this.setIndexs(t),this.$emit("change",{value:this.innerColumns.map((e,n)=>e[t[n]]),index:n,indexs:t,values:i,columnIndex:o})},setIndexs(e,t){this.innerIndex=Ow(e),t&&this.setLastIndex(e)},setLastIndex(e){this.lastIndex=Ow(e)},setColumnValues(e,t){this.innerColumns.splice(e,1,t),this.setLastIndex(this.innerIndex.slice(0,e));let n=Ow(this.innerIndex);for(let o=0;o<this.innerColumns.length;o++)o>this.columnIndex&&(n[o]=0);this.setIndexs(n)},getColumnValues(e){return(async()=>{await kw()})(),this.innerColumns[e]},setColumns(e){this.innerColumns=Ow(e),0===this.innerIndex.length&&(this.innerIndex=new Array(e.length).fill(0))},getIndexs(){return this.innerIndex},getValues(){return(async()=>{await kw()})(),this.innerColumns.map((e,t)=>e[this.innerIndex[t]])}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-input"),a=Ay,l=yx(Po("u-toolbar"),Wk),c=oy,u=Xg,d=yx(Po("u-loading-icon"),Px),h=yx(Po("u-popup"),Yx);return Ir(),zr(a,{class:"u-picker-wraper"},{default:So(()=>[e.hasInput?(Ir(),zr(a,{key:0,class:"u-picker-input cursor-pointer",onClick:r.onShowByClickInput},{default:So(()=>[Mi(e.$slots,"default",{value:r.inputLabel},void 0,!0),Mi(e.$slots,"trigger",{value:r.inputLabel},void 0,!0),e.$slots.default||e.$slots.$default||e.$slots.trigger?Wr("",!0):(Ir(),zr(s,Yr({key:0,readonly:!0,modelValue:r.inputLabel,"onUpdate:modelValue":t[0]||(t[0]=e=>r.inputLabel=e)},r.inputPropsInner),null,16,["modelValue"])),jr(a,{class:"input-cover"})]),_:3},8,["onClick"])):Wr("",!0),jr(h,{show:e.show||e.hasInput&&i.showByClickInput,mode:e.popupMode,zIndex:e.zIndex,bgColor:e.bgColor,round:e.round,duration:e.duration,pageInline:e.pageInline,overlayOpacity:e.overlayOpacity,onClose:r.closeHandler},{default:So(()=>[jr(a,{class:"u-picker"},{default:So(()=>[e.showToolbar?(Ir(),zr(l,{key:0,cancelColor:e.cancelColor,confirmColor:e.confirmColor,cancelText:e.cancelText,confirmText:e.confirmText,title:e.title,rightSlot:!!e.toolbarRightSlot,onCancel:r.cancel,onConfirm:r.confirm},{right:So(()=>[Mi(e.$slots,"toolbar-right",{},void 0,!0)]),_:3},8,["cancelColor","confirmColor","cancelText","confirmText","title","rightSlot","onCancel","onConfirm"])):Wr("",!0),Mi(e.$slots,"toolbar-bottom",{},void 0,!0),jr(u,{class:"u-picker__view",indicatorStyle:`height: ${r.addUnit(e.itemHeight,"px")}`,value:i.innerIndex,immediateChange:e.immediateChange,style:qe({height:`${r.addUnit(e.visibleItemCount*e.itemHeight,"px")}`}),onChange:r.changeHandler},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(i.innerColumns,(t,n)=>(Ir(),zr(c,{key:n,class:"u-picker__view__column"},{default:So(()=>[r.testArray(t)?(Ir(!0),Mr(xr,{key:0},Pi(t,(t,o)=>(Ir(),zr(a,{class:Qe(["u-picker__view__column__item u-line-1",[o===i.innerIndex[n]&&"u-picker__view__column__item--selected"]]),key:o,style:qe({height:r.addUnit(e.itemHeight,"px"),lineHeight:r.addUnit(e.itemHeight,"px"),fontWeight:o===i.innerIndex[n]?"bold":"normal",display:"block"})},{default:So(()=>[Vr(X(r.getItemText(t)),1)]),_:2},1032,["class","style"]))),128)):Wr("",!0)]),_:2},1024))),128))]),_:1},8,["indicatorStyle","value","immediateChange","style","onChange"]),e.loading?(Ir(),zr(a,{key:1,class:"u-picker--loading"},{default:So(()=>[jr(d,{mode:"circle"})]),_:1})):Wr("",!0)]),_:3})]),_:3},8,["show","mode","zIndex","bgColor","round","duration","pageInline","overlayOpacity","onClose"])]),_:3})}],["__scopeId","data-v-63a3f9e5"]]),Yk=Object.freeze(Object.defineProperty({__proto__:null,default:Qk},Symbol.toStringTag,{value:"Module"})),Gk={props:{hasInput:{type:Boolean,default:!1},inputProps:{type:Object,default:()=>({})},inputBorder:{type:String,default:()=>cx.input.inputBorder},disabled:{type:Boolean,default:()=>cx.input.disabled},disabledColor:{type:String,default:()=>cx.input.disabledColor},placeholder:{type:String,default:()=>cx.input.placeholder},format:{type:String,default:()=>""},show:{type:Boolean,default:()=>cx.datetimePicker.show},popupMode:{type:String,default:()=>cx.picker.popupMode},showToolbar:{type:Boolean,default:()=>cx.datetimePicker.showToolbar},toolbarRightSlot:{type:Boolean,default:!1},modelValue:{type:[String,Number],default:()=>cx.datetimePicker.value},title:{type:String,default:()=>cx.datetimePicker.title},mode:{type:String,default:()=>cx.datetimePicker.mode},maxDate:{type:Number,default:()=>cx.datetimePicker.maxDate},minDate:{type:Number,default:()=>cx.datetimePicker.minDate},minHour:{type:Number,default:()=>cx.datetimePicker.minHour},maxHour:{type:Number,default:()=>cx.datetimePicker.maxHour},minMinute:{type:Number,default:()=>cx.datetimePicker.minMinute},maxMinute:{type:Number,default:()=>cx.datetimePicker.maxMinute},filter:{type:[Function,null],default:()=>cx.datetimePicker.filter},formatter:{type:[Function,null],default:()=>cx.datetimePicker.formatter},loading:{type:Boolean,default:()=>cx.datetimePicker.loading},itemHeight:{type:[String,Number],default:()=>cx.datetimePicker.itemHeight},cancelText:{type:String,default:()=>cx.datetimePicker.cancelText},confirmText:{type:String,default:()=>cx.datetimePicker.confirmText},cancelColor:{type:String,default:()=>cx.datetimePicker.cancelColor},confirmColor:{type:String,default:()=>cx.datetimePicker.confirmColor},visibleItemCount:{type:[String,Number],default:()=>cx.datetimePicker.visibleItemCount},closeOnClickOverlay:{type:Boolean,default:()=>cx.datetimePicker.closeOnClickOverlay},defaultIndex:{type:Array,default:()=>cx.datetimePicker.defaultIndex},pageInline:{type:Boolean,default:()=>cx.datetimePicker.pageInline}}};const Xk=W_({name:"up-datetime-picker",mixins:[hx,fx,Gk],data:()=>({inputValue:"",showByClickInput:!1,columns:[],innerDefaultIndex:[],innerFormatter:(e,t)=>t}),watch:{show(e,t){e&&(this.innerValue=this.correctValue(this.modelValue),this.updateColumnValue(this.innerValue))},modelValue(e){this.init()},propsChange(){this.init()}},computed:{propsChange(){return[this.mode,this.maxDate,this.minDate,this.minHour,this.maxHour,this.minMinute,this.maxMinute,this.filter,this.modelValue]},inputPropsInner(){return{border:this.inputBorder,placeholder:this.placeholder,disabled:this.disabled,disabledColor:this.disabledColor,...this.inputProps}}},mounted(){this.init()},emits:["close","cancel","confirm","change","update:modelValue"],methods:{getInputValue(e){if(""!=e&&e&&null!=e)if("time"==this.mode)this.inputValue=e;else if(this.format)this.inputValue=BS(e).format(this.format);else{let t="";switch(this.mode){case"date":t="YYYY-MM-DD";break;case"year-month":t="YYYY-MM";break;case"datehour":t="YYYY-MM-DD HH";break;case"datetime":t="YYYY-MM-DD HH:mm";break;case"time":t="HH:mm"}this.inputValue=BS(e).format(t)}else this.inputValue=""},init(){this.innerValue=this.correctValue(this.modelValue),this.updateColumnValue(this.innerValue),this.getInputValue(this.innerValue)},setFormatter(e){this.innerFormatter=e},close(){this.closeOnClickOverlay&&this.$emit("close")},cancel(){this.hasInput&&(this.showByClickInput=!1),this.$emit("cancel")},confirm(){this.$emit("update:modelValue",this.innerValue),this.hasInput&&(this.getInputValue(this.innerValue),this.showByClickInput=!1),this.$emit("confirm",{value:this.innerValue,mode:this.mode})},intercept(e,t){let n=e.match(/\d+/g);return n.length>1?0:t&&4==n[0].length?n[0]:n[0].length>2?0:n[0]},change(e){const{indexs:t,values:n}=e;let o="";if("time"===this.mode)o=`${this.intercept(n[0][t[0]])}:${this.intercept(n[1][t[1]])}`;else{const e=parseInt(this.intercept(n[0][t[0]],"year")),i=parseInt(this.intercept(n[1][t[1]]));let r=parseInt(n[2]?this.intercept(n[2][t[2]]):1),s=0,a=0;const l=BS(`${e}-${i}`).daysInMonth();"year-month"===this.mode&&(r=1),r=Math.min(l,r),"datetime"===this.mode&&(s=parseInt(this.intercept(n[3][t[3]])),a=parseInt(this.intercept(n[4][t[4]]))),o=Number(new Date(e,i-1,r,s,a))}o=this.correctValue(o),this.innerValue=o,this.updateColumnValue(o),this.$emit("change",{value:o,mode:this.mode})},updateColumnValue(e){this.innerValue=e,this.updateColumns(),setTimeout(()=>{this.updateIndexs(e)},0)},updateIndexs(e){let t=[];const n=this.formatter||this.innerFormatter;if("time"===this.mode){const o=e.split(":");t=[n("hour",o[0]),n("minute",o[1])]}else t=[n("year",`${BS(e).year()}`),n("month",Uw(BS(e).month()+1))],"date"===this.mode&&t.push(n("day",Uw(BS(e).date()))),"datetime"===this.mode&&t.push(n("day",Uw(BS(e).date())),n("hour",Uw(BS(e).hour())),n("minute",Uw(BS(e).minute())));const o=this.columns.map((e,n)=>Math.max(0,e.findIndex(e=>e===t[n])));this.innerDefaultIndex=o},updateColumns(){const e=this.formatter||this.innerFormatter,t=this.getOriginColumns().map(t=>t.values.map(n=>e(t.type,n)));this.columns=t},getOriginColumns(){return this.getRanges().map(({type:e,range:t})=>{let n=function(e,t){let n=-1;const o=Array(e<0?0:e);for(;++n<e;)o[n]=t(n);return o}(t[1]-t[0]+1,n=>{let o=t[0]+n;return o="year"===e?`${o}`:Uw(o),o});return this.filter&&(n=this.filter(e,n),(!n||n&&0==n.length)&&console.log("日期filter结果不能为空")),{type:e,values:n}})},generateArray:(e,t)=>Array.from(new Array(t+1).keys()).slice(e),correctValue(e){const t="time"!==this.mode;if(t&&!BS.unix(e).isValid()?e=this.minDate:t||e||(e=`${Uw(this.minHour)}:${Uw(this.minMinute)}`),t)return e=BS(e).isBefore(BS(this.minDate))?this.minDate:e,e=BS(e).isAfter(BS(this.maxDate))?this.maxDate:e;{if(-1===String(e).indexOf(":"))return;let[t,n]=e.split(":");return t=Uw(xw(this.minHour,this.maxHour,Number(t))),n=Uw(xw(this.minMinute,this.maxMinute,Number(n))),`${t}:${n}`}},getRanges(){if("time"===this.mode)return[{type:"hour",range:[this.minHour,this.maxHour]},{type:"minute",range:[this.minMinute,this.maxMinute]}];const{maxYear:e,maxDate:t,maxMonth:n,maxHour:o,maxMinute:i}=this.getBoundary("max",this.innerValue),{minYear:r,minDate:s,minMonth:a,minHour:l,minMinute:c}=this.getBoundary("min",this.innerValue),u=[{type:"year",range:[r,e]},{type:"month",range:[a,n]},{type:"day",range:[s,t]},{type:"hour",range:[l,o]},{type:"minute",range:[c,i]}];return"date"===this.mode&&u.splice(3,2),"year-month"===this.mode&&u.splice(2,3),u},getBoundary(e,t){let n=new Date(t);isNaN(n.getTime())&&(n=new Date);const o=new Date(this[`${e}Date`]),i=BS(o).year();let r=1,s=1,a=0,l=0;return"max"===e&&(r=12,s=BS(n).daysInMonth(),a=23,l=59),BS(n).year()===i&&(r=BS(o).month()+1,BS(n).month()+1===r&&(s=BS(o).date(),BS(n).date()===s&&(a=BS(o).hour(),BS(n).hour()===a&&(l=BS(o).minute())))),{[`${e}Year`]:i,[`${e}Month`]:r,[`${e}Date`]:s,[`${e}Hour`]:a,[`${e}Minute`]:l}},onShowByClickInput(){this.disabled||(this.showByClickInput=!this.showByClickInput)}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-input"),a=Ay,l=yx(Po("u-picker"),Qk);return Ir(),zr(a,{class:"u-datetime-picker"},{default:So(()=>[e.hasInput?(Ir(),zr(a,{key:0,class:"u-datetime-picker__has-input",onClick:r.onShowByClickInput},{default:So(()=>[Mi(e.$slots,"trigger",{value:i.inputValue},()=>[jr(s,Yr({readonly:!!i.showByClickInput,modelValue:i.inputValue,"onUpdate:modelValue":t[0]||(t[0]=e=>i.inputValue=e)},r.inputPropsInner),null,16,["readonly","modelValue"]),jr(a,{class:"input-cover"})],!0)]),_:3},8,["onClick"])):Wr("",!0),jr(l,{ref:"picker",show:e.pageInline||e.show||e.hasInput&&i.showByClickInput,popupMode:e.popupMode,closeOnClickOverlay:e.closeOnClickOverlay,columns:i.columns,title:e.title,itemHeight:e.itemHeight,showToolbar:e.showToolbar,visibleItemCount:e.visibleItemCount,defaultIndex:i.innerDefaultIndex,cancelText:e.cancelText,confirmText:e.confirmText,cancelColor:e.cancelColor,confirmColor:e.confirmColor,toolbarRightSlot:e.toolbarRightSlot,pageInline:e.pageInline,onClose:r.close,onCancel:r.cancel,onConfirm:r.confirm,onChange:r.change},{"toolbar-right":So(()=>[Mi(e.$slots,"toolbar-right",{},void 0,!0)]),"toolbar-bottom":So(()=>[Mi(e.$slots,"toolbar-bottom",{},void 0,!0)]),_:3},8,["show","popupMode","closeOnClickOverlay","columns","title","itemHeight","showToolbar","visibleItemCount","defaultIndex","cancelText","confirmText","cancelColor","confirmColor","toolbarRightSlot","pageInline","onClose","onCancel","onConfirm","onChange"])]),_:3})}],["__scopeId","data-v-3c3db1c8"]]),Kk=Object.freeze(Object.defineProperty({__proto__:null,default:Xk},Symbol.toStringTag,{value:"Module"})),Jk={props:{dashed:{type:Boolean,default:()=>cx.divider.dashed},hairline:{type:Boolean,default:()=>cx.divider.hairline},dot:{type:Boolean,default:()=>cx.divider.dot},textPosition:{type:String,default:()=>cx.divider.textPosition},text:{type:[String,Number],default:()=>cx.divider.text},textSize:{type:[String,Number],default:()=>cx.divider.textSize},textColor:{type:String,default:()=>cx.divider.textColor},lineColor:{type:String,default:()=>cx.divider.lineColor}}};const Zk=W_({name:"u-divider",mixins:[hx,fx,Jk],computed:{textStyle(){const e={};return e.fontSize=zw(this.textSize),e.color=this.textColor,e},leftLineStyle(){const e={};return"left"===this.textPosition?e.width="80rpx":e.flex=1,e},rightLineStyle(){const e={};return"right"===this.textPosition?e.width="80rpx":e.flex=1,e}},emits:["click"],methods:{addStyle:Mw,click(){this.$emit("click")}}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-line"),mx),a=wy,l=Ay;return Ir(),zr(l,{class:"u-divider",style:qe([r.addStyle(e.customStyle)]),onClick:r.click},{default:So(()=>[jr(s,{color:e.lineColor,customStyle:r.leftLineStyle,hairline:e.hairline,dashed:e.dashed},null,8,["color","customStyle","hairline","dashed"]),e.dot?(Ir(),zr(a,{key:0,class:"u-divider__dot"},{default:So(()=>[Vr("●")]),_:1})):Wr("",!0),Mi(e.$slots,"default",{},()=>[!e.dot&&e.text?(Ir(),zr(a,{key:0,class:"u-divider__text",style:qe([r.textStyle])},{default:So(()=>[Vr(X(e.text),1)]),_:1},8,["style"])):Wr("",!0)],!0),jr(s,{color:e.lineColor,customStyle:r.rightLineStyle,hairline:e.hairline,dashed:e.dashed},null,8,["color","customStyle","hairline","dashed"])]),_:3},8,["style","onClick"])}],["__scopeId","data-v-1c307f3a"]]),eC=Object.freeze(Object.defineProperty({__proto__:null,default:Zk},Symbol.toStringTag,{value:"Module"}));const tC=W_({name:"u-dragsort",mixins:[fx],props:{initialList:{type:Array,required:!0,default:()=>[]},draggable:{type:Boolean,default:!0},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal","all"].includes(e)},columns:{type:Number,default:3}},data:()=>({list:[],dragIndex:-1,itemHeight:40,itemWidth:80,areaWidth:0,areaHeight:0,originalPositions:[],currentPosition:{x:0,y:0}}),computed:{movableAreaStyle(){if("vertical"===this.direction)return{height:this.list.length*this.itemHeight+"px",width:"100%"};if("horizontal"===this.direction)return{height:"100%",width:this.list.length*this.itemWidth+"px"};return{height:Math.ceil(this.list.length/this.columns)*this.itemHeight+"px",width:"100%"}}},emits:["drag-end"],async mounted(){await this.$nextTick(),this.initList(),this.calculateItemSize(),this.calculateAreaSize()},methods:{initList(){this.list=this.initialList.map((e,t)=>{let n=0,o=0;if("horizontal"===this.direction)n=t*this.itemWidth,o=0;else if("vertical"===this.direction)n=0,o=t*this.itemHeight;else{const e=t%this.columns,i=Math.floor(t/this.columns);n=e*this.itemWidth,o=i*this.itemHeight}return{...e,x:n,y:o}}),this.saveOriginalPositions()},saveOriginalPositions(){this.originalPositions=this.list.map(e=>({x:e.x,y:e.y}))},async calculateItemSize(){return await kw(30),new Promise(e=>{sp().in(this).select(".u-dragsort-item-content").boundingClientRect(t=>{t&&(this.itemHeight=t.height||40,this.itemWidth=t.width||80,this.updatePositions(),this.saveOriginalPositions()),e(t)}).exec()})},async calculateAreaSize(){return await kw(30),new Promise(e=>{sp().in(this).select(".u-dragsort-area").boundingClientRect(t=>{t&&(this.areaWidth=t.width||300,this.areaHeight=t.height||300),e(t)}).exec()})},updatePositions(){this.list.forEach((e,t)=>{if("vertical"===this.direction)e.y=t*this.itemHeight,e.x=0;else if("horizontal"===this.direction)e.x=t*this.itemWidth,e.y=0;else{const n=t%this.columns,o=Math.floor(t/this.columns);e.x=n*this.itemWidth,e.y=o*this.itemHeight}})},onTouchStart(e){this.dragIndex=e,this.saveOriginalPositions()},onChange(e,t){if(t.detail.source&&"touch"===t.detail.source)if(this.currentPosition.x=t.detail.x,this.currentPosition.y=t.detail.y,"all"===this.direction)this.handleAllModeChange(e);else{let t=0,n=-1;"vertical"===this.direction?(t=this.itemHeight,n=Math.max(0,Math.min(Math.round(this.currentPosition.y/t),this.list.length-1))):"horizontal"===this.direction&&(t=this.itemWidth,n=Math.max(0,Math.min(Math.round(this.currentPosition.x/t),this.list.length-1))),n!==e&&this.reorderItems(e,n)}},handleAllModeChange(e){const t=Math.max(0,Math.min(Math.round(this.currentPosition.x/this.itemWidth),this.columns-1));let n=Math.max(0,Math.round(this.currentPosition.y/this.itemHeight))*this.columns+t;n=Math.max(0,Math.min(n,this.list.length-1)),n!==e&&this.reorderItems(e,n)},reorderItems(e,t){const n=this.list.splice(e,1)[0];this.list.splice(t,0,n),Gb&&Gb(),this.dragIndex=t,this.updatePositions(),this.saveOriginalPositions()},onTouchEnd(){"horizontal"===this.direction?this.list[this.dragIndex].x=this.currentPosition.x+.001:"vertical"!==this.direction&&"all"!==this.direction||(this.list[this.dragIndex].y=this.currentPosition.y+.001,this.list[this.dragIndex].x=this.currentPosition.x+.001),kw(50).then(()=>{this.list.forEach((e,t)=>{e.x=this.originalPositions[t].x,e.y=this.originalPositions[t].y}),this.dragIndex=-1,this.$emit("drag-end",[...this.list])})}},watch:{initialList:{handler(){this.$nextTick(()=>{this.initList()})},deep:!0},direction:{handler(){this.$nextTick(()=>{this.initList(),this.calculateItemSize(),this.calculateAreaSize()})}},columns:{handler(){"all"===this.direction&&this.$nextTick(()=>{this.initList(),this.updatePositions(),this.saveOriginalPositions()})}}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=Ng,l=Cg;return Ir(),zr(s,{class:Qe(["u-dragsort",["horizontal"==n.direction?"u-dragsort--horizontal":"","all"==n.direction?"u-dragsort--all":""]])},{default:So(()=>[jr(l,{class:"u-dragsort-area",style:qe(r.movableAreaStyle)},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(i.list,(t,o)=>(Ir(),zr(a,{key:t.id,id:`u-dragsort-item-${o}`,class:Qe(["u-dragsort-item",{dragging:i.dragIndex===o}]),direction:"all"===n.direction?"all":n.direction,x:t.x,y:t.y,inertia:!1,disabled:!n.draggable||!1===t.draggable,onChange:e=>r.onChange(o,e),onTouchstart:e=>r.onTouchStart(o),onTouchend:r.onTouchEnd,onTouchcancel:r.onTouchEnd},{default:So(()=>[jr(s,{class:"u-dragsort-item-content"},{default:So(()=>[Mi(e.$slots,"default",{item:t,index:o},()=>[Vr(X(t.label),1)],!0)]),_:2},1024)]),_:2},1032,["id","class","direction","x","y","disabled","onChange","onTouchstart","onTouchend","onTouchcancel"]))),128))]),_:3},8,["style"])]),_:3},8,["class"])}],["__scopeId","data-v-e7937e2e"]]),nC=Object.freeze(Object.defineProperty({__proto__:null,default:tC},Symbol.toStringTag,{value:"Module"})),oC={props:{modelValue:{type:[Number,String,Array],default:""},title:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},height:{type:[Number,String],default:"auto"},closeOnClickOverlay:{type:Boolean,default:!0}}};const iC=W_({name:"u-dropdown-item",mixins:[hx,fx,oC],options:{styleIsolation:"shared"},data:()=>({active:!1,activeColor:"#2979ff",inactiveColor:"#606266"}),computed:{propsChange(){return`${this.title}-${this.disabled}`}},watch:{propsChange(e){this.parent&&this.parent.init()}},created(){this.parent=!1},emits:["update:modelValue","change"],methods:{addUnit:zw,init(){let e=Pw.call(this,"u-dropdown");if(e){this.parent=e,this.activeColor=e.activeColor,this.inactiveColor=e.inactiveColor,e.children.find(e=>this===e)||e.children.push(this),1==e.children.length&&(this.active=!0),e.menuList.push({title:this.title,disabled:this.disabled})}},cellClick(e){this.$emit("update:modelValue",e),this.parent.close(),this.$emit("change",e)}},mounted(){this.init()}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Bo("up-cell"),l=Bo("up-cell-group"),c=Ay,u=dy;return i.active?(Ir(),zr(c,{key:0,class:"u-dropdown-item",onTouchmove:ua(()=>{},["stop","prevent"]),onClick:ua(()=>{},["stop","prevent"])},{default:So(()=>[e.$slots.default||e.$slots.$default?Mi(e.$slots,"default",{key:1},void 0,!0):(Ir(),zr(u,{key:0,class:"u-dropdown-item__scroll","scroll-y":"true",style:qe({height:r.addUnit(e.height)})},{default:So(()=>[jr(c,{class:"u-dropdown-item__options"},{default:So(()=>[jr(l,null,{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(e.options,(t,n)=>(Ir(),zr(a,{onClick:e=>r.cellClick(t.value),arrow:!1,title:t.label,key:n,"title-style":{color:e.modelValue==t.value?i.activeColor:i.inactiveColor}},{default:So(()=>[e.modelValue==t.value?(Ir(),zr(s,{key:0,name:"checkbox-mark",color:i.activeColor,size:"32"},null,8,["color"])):Wr("",!0)]),_:2},1032,["onClick","title","title-style"]))),128))]),_:1})]),_:1})]),_:1},8,["style"]))]),_:3})):Wr("",!0)}],["__scopeId","data-v-97f4a158"]]),rC=Object.freeze(Object.defineProperty({__proto__:null,default:iC},Symbol.toStringTag,{value:"Module"})),sC={props:{activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#606266"},closeOnClickMask:{type:Boolean,default:!0},closeOnClickSelf:{type:Boolean,default:!0},duration:{type:[Number,String],default:300},height:{type:[Number,String],default:40},borderBottom:{type:Boolean,default:!1},titleSize:{type:[Number,String],default:14},borderRadius:{type:[Number,String],default:0},menuIcon:{type:String,default:"arrow-down"},menuIconSize:{type:[Number,String],default:14}}};const aC=W_({name:"u-dropdown",mixins:[hx,fx,sC],data:()=>({showDropdown:!0,menuList:[],active:!1,current:99999,contentStyle:{zIndex:-1,opacity:0},highlightIndexList:[],contentHeight:0}),computed:{popupStyle(){let e={};return e.transform=`translateY(${this.active?0:"-100%"})`,e["transition-duration"]=this.duration/1e3+"s",e.borderRadius=`0 0 ${zw(this.borderRadius)} ${zw(this.borderRadius)}`,e}},created(){this.children=[]},mounted(){this.getContentHeight()},emits:["open","close"],methods:{addUnit:zw,init(){this.menuList=[],this.children.map(e=>{e.init()})},menuClick(e){if(!this.menuList[e].disabled)return e===this.current&&this.closeOnClickSelf?(this.close(),void setTimeout(()=>{this.children[e].active=!1},this.duration)):void this.open(e)},open(e){this.contentHeight<1&&this.getContentHeight(),this.contentStyle={zIndex:11,height:this.contentHeight+"px"},this.active=!0,this.current=e,this.children.map((t,n)=>{t.active=e==n}),this.$emit("open",this.current)},close(){this.$emit("close",this.current),this.active=!1,this.current=99999,this.contentStyle.zIndex=-1,this.contentStyle.opacity=0,setTimeout(()=>{this.contentStyle.height=0},this.duration)},maskClick(){this.closeOnClickMask&&this.close()},highlight(e=void 0){Array.isArray(e)?this.highlightIndexList=[...e]:this.highlightIndexList=void 0!==e?[e]:[]},getContentHeight(){let e=Tw().windowHeight;this.$uGetRect(".u-dropdown__menu").then(t=>{this.contentHeight=e-t.bottom})}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Bo("up-icon"),l=Ay;return Ir(),zr(l,{class:"u-dropdown"},{default:So(()=>[jr(l,{class:Qe(["u-dropdown__menu",{"u-border-bottom":e.borderBottom}]),style:qe({height:r.addUnit(e.height)})},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(i.menuList,(t,n)=>(Ir(),zr(l,{class:"u-dropdown__menu__item",key:n,onClick:ua(e=>r.menuClick(n),["stop"])},{default:So(()=>[jr(l,{class:"u-flex u-flex-row"},{default:So(()=>[jr(s,{class:"u-dropdown__menu__item__text",style:qe({color:t.disabled?"#c0c4cc":n===i.current||i.highlightIndexList.includes(n)?e.activeColor:e.inactiveColor,fontSize:r.addUnit(e.titleSize)})},{default:So(()=>[Vr(X(t.title),1)]),_:2},1032,["style"]),jr(l,{class:Qe(["u-dropdown__menu__item__arrow",{"u-dropdown__menu__item__arrow--rotate":n===i.current}])},{default:So(()=>[jr(a,{"custom-style":{display:"flex"},name:e.menuIcon,size:r.addUnit(e.menuIconSize),color:n===i.current||i.highlightIndexList.includes(n)?e.activeColor:"#c0c4cc"},null,8,["name","size","color"])]),_:2},1032,["class"])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1},8,["style","class"]),jr(l,{class:"u-dropdown__content",style:qe([i.contentStyle,{transition:`opacity ${e.duration/1e3}s, z-index ${e.duration/1e3}s linear`,top:r.addUnit(e.height)}]),onClick:r.maskClick,onTouchmove:t[1]||(t[1]=ua(()=>{},["stop","prevent"]))},{default:So(()=>[jr(l,{onClick:t[0]||(t[0]=ua(()=>{},["stop","prevent"])),class:"u-dropdown__content__popup",style:qe([r.popupStyle,{}])},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["style"]),jr(l,{class:"u-dropdown__content__mask"})]),_:3},8,["style","onClick"])]),_:3})}],["__scopeId","data-v-f63a5e02"]]),lC=Object.freeze(Object.defineProperty({__proto__:null,default:aC},Symbol.toStringTag,{value:"Module"})),cC={props:{icon:{type:String,default:()=>cx.empty.icon},text:{type:String,default:()=>cx.empty.text},textColor:{type:String,default:()=>cx.empty.textColor},textSize:{type:[String,Number],default:()=>cx.empty.textSize},iconColor:{type:String,default:()=>cx.empty.iconColor},iconSize:{type:[String,Number],default:()=>cx.empty.iconSize},mode:{type:String,default:()=>cx.empty.mode},width:{type:[String,Number],default:()=>cx.empty.width},height:{type:[String,Number],default:()=>cx.empty.height},show:{type:Boolean,default:()=>cx.empty.show},marginTop:{type:[String,Number],default:()=>cx.empty.marginTop}}};const uC=W_({name:"u-empty",mixins:[hx,fx,cC],data:()=>({icons:{car:Zw("up.empty.car"),page:Zw("up.empty.page"),search:Zw("up.empty.search"),address:Zw("up.empty.address"),wifi:Zw("up.empty.wifi"),order:Zw("up.empty.order"),coupon:Zw("up.empty.coupon"),favor:Zw("up.empty.favor"),permission:Zw("up.empty.permission"),history:Zw("up.empty.history"),news:Zw("up.empty.news"),message:Zw("up.empty.message"),list:Zw("up.empty.list"),data:Zw("up.empty.data"),comment:Zw("up.empty.comment")}}),computed:{emptyStyle(){const e={};return e.marginTop=zw(this.marginTop),Rw(Mw(this.customStyle),e)},textStyle(){const e={};return e.color=this.textColor,e.fontSize=zw(this.textSize),e},isSrc(){return this.icon.indexOf("/")>=0}},methods:{addUnit:zw}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Jm,l=wy,c=Ay;return e.show?(Ir(),zr(c,{key:0,class:"u-empty",style:qe([r.emptyStyle])},{default:So(()=>[r.isSrc?(Ir(),zr(a,{key:1,style:qe({width:r.addUnit(e.width),height:r.addUnit(e.height)}),src:e.icon,mode:"widthFix"},null,8,["style","src"])):(Ir(),zr(s,{key:0,name:"message"===e.mode?"chat":`empty-${e.mode}`,size:e.iconSize,color:e.iconColor,"margin-top":"14"},null,8,["name","size","color"])),jr(l,{class:"u-empty__text",style:qe([r.textStyle])},{default:So(()=>[Vr(X(e.text?e.text:i.icons[e.mode]),1)]),_:1},8,["style"]),e.$slots.default||e.$slots.$default?(Ir(),zr(c,{key:2,class:"u-empty__wrap"},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3})):Wr("",!0)]),_:3},8,["style"])):Wr("",!0)}],["__scopeId","data-v-2de51627"]]),dC=Object.freeze(Object.defineProperty({__proto__:null,default:uC},Symbol.toStringTag,{value:"Module"}));const hC=W_({name:"u-float-button",mixins:[hx,fx],emits:["click","item-click"],computed:{},props:{backgroundColor:{type:String,default:"#2979ff"},color:{type:String,default:"#fff"},width:{type:String,default:"50px"},height:{type:String,default:"50px"},borderColor:{type:String,default:""},right:{type:[String,Number],default:"30px"},top:{type:[String,Number],default:""},bottom:{type:String,default:""},isMenu:{type:Boolean,default:!1},list:{type:Array,default:()=>[]}},data:()=>({showList:!1}),methods:{addStyle:Mw,clickHandler(e){this.isMenu?(this.showList=!this.showList,this.$emit("click",e)):this.$emit("click",e)},itemClick(e,t){this.$emit("item-click",{...e,index:t})}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay;return Ir(),zr(a,{class:"u-float-button",style:qe({position:"fixed",top:n.top,bottom:n.bottom,right:n.right})},{default:So(()=>[jr(a,{class:"u-float-button__main",onClick:r.clickHandler,style:qe({backgroundColor:n.backgroundColor,color:n.color,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",width:n.width,height:n.height,borderRadius:"50%",borderColor:n.borderColor})},{default:So(()=>[Mi(e.$slots,"default",{showList:i.showList},()=>[jr(s,{class:Qe(["cursor-pointer",{"show-list":i.showList}]),name:"plus",color:n.color},null,8,["class","color"])],!0),i.showList?(Ir(),zr(a,{key:0,class:"u-float-button__list",style:qe({bottom:n.height})},{default:So(()=>[Mi(e.$slots,"list",{},()=>[(Ir(!0),Mr(xr,null,Pi(n.list,(e,t)=>(Ir(),zr(a,{key:t,class:"u-float-button__item",style:qe({backgroundColor:(null==e?void 0:e.backgroundColor)?null==e?void 0:e.backgroundColor:n.backgroundColor,color:(null==e?void 0:e.color)?null==e?void 0:e.color:n.color,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",width:n.width,height:n.height,borderRadius:"50%",borderColor:(null==e?void 0:e.borderColor)?null==e?void 0:e.borderColor:n.borderColor}),onClick:n=>r.itemClick(e,t)},{default:So(()=>[jr(s,{name:e.name,color:(null==e?void 0:e.color)?null==e?void 0:e.color:n.color},null,8,["name","color"])]),_:2},1032,["style","onClick"]))),128))],!0)]),_:3},8,["style"])):Wr("",!0)]),_:3},8,["onClick","style"])]),_:3},8,["style"])}],["__scopeId","data-v-862d7263"]]),pC=Object.freeze(Object.defineProperty({__proto__:null,default:hC},Symbol.toStringTag,{value:"Module"})),fC={props:{label:{type:String,default:()=>cx.formItem.label},prop:{type:String,default:()=>cx.formItem.prop},rules:{type:Array,default:()=>cx.formItem.rules},borderBottom:{type:[String,Boolean],default:()=>cx.formItem.borderBottom},labelPosition:{type:String,default:()=>cx.formItem.labelPosition},labelWidth:{type:[String,Number],default:()=>cx.formItem.labelWidth},rightIcon:{type:String,default:()=>cx.formItem.rightIcon},leftIcon:{type:String,default:()=>cx.formItem.leftIcon},required:{type:Boolean,default:()=>cx.formItem.required},leftIconStyle:{type:[String,Object],default:()=>cx.formItem.leftIconStyle}}};const mC=W_({name:"u-form-item",mixins:[hx,fx,fC],data:()=>({message:"",parentData:{labelPosition:"left",labelAlign:"left",labelStyle:{},labelWidth:45,errorType:"message"},color:G_,itemRules:[]}),computed:{propsLine:()=>cx.line},mounted(){this.init()},emits:["click"],watch:{rules:{immediate:!0,handler(e){this.setRules(e)}}},methods:{addStyle:Mw,addUnit:zw,init(){this.updateParentData(),this.parent},setRules(e){0!==e.length?this.itemRules=e:this.itemRules=[]},updateParentData(){this.getParentData("u-form")},clearValidate(){this.message=null},resetField(){const e=Qw(this.parent.originalModel,this.prop);Yw(this.parent.model,this.prop,e),this.message=null},clickHandler(){this.$emit("click")}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Bo("up-icon"),l=Ay,c=yx(Po("u-line"),mx);return Ir(),zr(l,{class:Qe(["u-form-item",{"u-form-item--error":!!i.message&&"message"===i.parentData.errorType}])},{default:So(()=>[jr(l,{class:"u-form-item__body",onClick:r.clickHandler,style:qe([r.addStyle(e.customStyle),{flexDirection:"left"===(e.labelPosition||i.parentData.labelPosition)?"row":"column"}])},{default:So(()=>[Mi(e.$slots,"label",{},()=>[e.required||e.leftIcon||e.label?(Ir(),zr(l,{key:0,class:"u-form-item__body__left",style:qe({width:r.addUnit(e.labelWidth||i.parentData.labelWidth),marginBottom:"left"===(e.labelPosition||i.parentData.labelPosition)?0:"5px"})},{default:So(()=>[jr(l,{class:"u-form-item__body__left__content"},{default:So(()=>[e.required?(Ir(),zr(s,{key:0,class:"u-form-item__body__left__content__required"},{default:So(()=>[Vr("*")]),_:1})):Wr("",!0),e.leftIcon?(Ir(),zr(l,{key:1,class:"u-form-item__body__left__content__icon"},{default:So(()=>[jr(a,{name:e.leftIcon,"custom-style":e.leftIconStyle},null,8,["name","custom-style"])]),_:1})):Wr("",!0),jr(s,{class:"u-form-item__body__left__content__label",style:qe([i.parentData.labelStyle,{justifyContent:"left"===i.parentData.labelAlign?"flex-start":"center"===i.parentData.labelAlign?"center":"flex-end"}])},{default:So(()=>[Vr(X(e.label),1)]),_:1},8,["style"])]),_:1})]),_:1},8,["style"])):Wr("",!0)],!0),jr(l,{class:"u-form-item__body__right"},{default:So(()=>[jr(l,{class:"u-form-item__body__right__content"},{default:So(()=>[jr(l,{class:"u-form-item__body__right__content__slot"},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3}),e.$slots.right?(Ir(),zr(l,{key:0,class:"item__body__right__content__icon"},{default:So(()=>[Mi(e.$slots,"right",{},void 0,!0)]),_:3})):Wr("",!0)]),_:3})]),_:3})]),_:3},8,["onClick","style"]),Mi(e.$slots,"error",{},()=>[i.message&&"message"===i.parentData.errorType?(Ir(),zr(s,{key:0,class:"u-form-item__body__right__message",style:qe({marginLeft:r.addUnit("top"===(e.labelPosition||i.parentData.labelPosition)?0:e.labelWidth||i.parentData.labelWidth)})},{default:So(()=>[Vr(X(i.message),1)]),_:1},8,["style"])):Wr("",!0)],!0),e.borderBottom?(Ir(),zr(c,{key:0,color:i.message&&"border-bottom"===i.parentData.errorType?i.color.error:r.propsLine.color,customStyle:`margin-top: ${i.message&&"message"===i.parentData.errorType?"5px":0}`},null,8,["color","customStyle"])):Wr("",!0)]),_:3},8,["class"])}],["__scopeId","data-v-8e85e155"]]),gC=Object.freeze(Object.defineProperty({__proto__:null,default:mC},Symbol.toStringTag,{value:"Module"})),yC={props:{model:{type:Object,default:()=>cx.form.model},rules:{type:[Object,Function,Array],default:()=>cx.form.rules},errorType:{type:String,default:()=>cx.form.errorType},borderBottom:{type:Boolean,default:()=>cx.form.borderBottom},labelPosition:{type:String,default:()=>cx.form.labelPosition},labelWidth:{type:[String,Number],default:()=>cx.form.labelWidth},labelAlign:{type:String,default:()=>cx.form.labelAlign},labelStyle:{type:Object,default:()=>cx.form.labelStyle}}};const bC=/%[sdj%]/g;let vC=function(){};function _C(e){if(!e||!e.length)return null;const t={};return e.forEach(e=>{const{field:n}=e;t[n]=t[n]||[],t[n].push(e)}),t}function wC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=1;const i=t[0],r=t.length;if("function"==typeof i)return i.apply(null,t.slice(1));if("string"==typeof i){let e=String(i).replace(bC,e=>{if("%%"===e)return"%";if(o>=r)return e;switch(e){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch(n){return"[Circular]"}break;default:return e}});for(let n=t[o];o<r;n=t[++o])e+=` ${n}`;return e}return i}function xC(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function SC(e,t,n){let o=0;const i=e.length;!function r(s){if(s&&s.length)return void n(s);const a=o;o+=1,a<i?t(e[a],r):n([])}([])}function kC(e,t,n,o){if(t.first){const t=new Promise((t,i)=>{const r=function(e){const t=[];return Object.keys(e).forEach(n=>{t.push.apply(t,e[n])}),t}(e);SC(r,n,function(e){return o(e),e.length?i({errors:e,fields:_C(e)}):t()})});return t.catch(e=>e),t}let i=t.firstFields||[];!0===i&&(i=Object.keys(e));const r=Object.keys(e),s=r.length;let a=0;const l=[],c=new Promise((t,c)=>{const u=function(e){if(l.push.apply(l,e),a++,a===s)return o(l),l.length?c({errors:l,fields:_C(l)}):t()};r.length||(o(l),t()),r.forEach(t=>{const o=e[t];-1!==i.indexOf(t)?SC(o,n,u):function(e,t,n){const o=[];let i=0;const r=e.length;function s(e){o.push.apply(o,e),i++,i===r&&n(o)}e.forEach(e=>{t(e,s)})}(o,n,u)})});return c.catch(e=>e),c}function CC(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function AC(e,t){if(t)for(const n in t)if(t.hasOwnProperty(n)){const o=t[n];"object"==typeof o&&"object"==typeof e[n]?e[n]={...e[n],...o}:e[n]=o}return e}function TC(e,t,n,o,i,r){!e.required||n.hasOwnProperty(e.field)&&!xC(t,r||e.type)||o.push(wC(i.messages.required,e.fullField))}const IC={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i};var BC={integer:function(e){return/^(-)?\d+$/.test(e)},float:function(e){return/^(-)?\d+(\.\d+)?$/.test(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof+e},object:function(e){return"object"==typeof e&&!BC.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(IC.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(IC.url)},hex:function(e){return"string"==typeof e&&!!e.match(IC.hex)}};const EC="enum";const PC={required:TC,whitespace:function(e,t,n,o,i){(/^\s+$/.test(t)||""===t)&&o.push(wC(i.messages.whitespace,e.fullField))},type:function(e,t,n,o,i){if(e.required&&void 0===t)return void TC(e,t,n,o,i);const r=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(r)>-1?BC[r](t)||o.push(wC(i.messages.types[r],e.fullField,e.type)):r&&typeof t!==e.type&&o.push(wC(i.messages.types[r],e.fullField,e.type))},range:function(e,t,n,o,i){const r="number"==typeof e.len,s="number"==typeof e.min,a="number"==typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let c=t,u=null;const d="number"==typeof t,h="string"==typeof t,p=Array.isArray(t);if(d?u="number":h?u="string":p&&(u="array"),!u)return!1;p&&(c=t.length),h&&(c=t.replace(l,"_").length),r?c!==e.len&&o.push(wC(i.messages[u].len,e.fullField,e.len)):s&&!a&&c<e.min?o.push(wC(i.messages[u].min,e.fullField,e.min)):a&&!s&&c>e.max?o.push(wC(i.messages[u].max,e.fullField,e.max)):s&&a&&(c<e.min||c>e.max)&&o.push(wC(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,i){e[EC]=Array.isArray(e[EC])?e[EC]:[],-1===e[EC].indexOf(t)&&o.push(wC(i.messages[EC],e.fullField,e[EC].join(", ")))},pattern:function(e,t,n,o,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(wC(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(wC(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function MC(e,t,n,o,i){const r=e.type,s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t,r)&&!e.required)return n();PC.required(e,t,o,s,i,r),xC(t,r)||PC.type(e,t,o,s,i)}n(s)}const zC={string:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t,"string")&&!e.required)return n();PC.required(e,t,o,r,i,"string"),xC(t,"string")||(PC.type(e,t,o,r,i),PC.range(e,t,o,r,i),PC.pattern(e,t,o,r,i),!0===e.whitespace&&PC.whitespace(e,t,o,r,i))}n(r)},method:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t)&&!e.required)return n();PC.required(e,t,o,r,i),void 0!==t&&PC.type(e,t,o,r,i)}n(r)},number:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),xC(t)&&!e.required)return n();PC.required(e,t,o,r,i),void 0!==t&&(PC.type(e,t,o,r,i),PC.range(e,t,o,r,i))}n(r)},boolean:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t)&&!e.required)return n();PC.required(e,t,o,r,i),void 0!==t&&PC.type(e,t,o,r,i)}n(r)},regexp:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t)&&!e.required)return n();PC.required(e,t,o,r,i),xC(t)||PC.type(e,t,o,r,i)}n(r)},integer:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t)&&!e.required)return n();PC.required(e,t,o,r,i),void 0!==t&&(PC.type(e,t,o,r,i),PC.range(e,t,o,r,i))}n(r)},float:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t)&&!e.required)return n();PC.required(e,t,o,r,i),void 0!==t&&(PC.type(e,t,o,r,i),PC.range(e,t,o,r,i))}n(r)},array:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t,"array")&&!e.required)return n();PC.required(e,t,o,r,i,"array"),xC(t,"array")||(PC.type(e,t,o,r,i),PC.range(e,t,o,r,i))}n(r)},object:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t)&&!e.required)return n();PC.required(e,t,o,r,i),void 0!==t&&PC.type(e,t,o,r,i)}n(r)},enum:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t)&&!e.required)return n();PC.required(e,t,o,r,i),void 0!==t&&PC.enum(e,t,o,r,i)}n(r)},pattern:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t,"string")&&!e.required)return n();PC.required(e,t,o,r,i),xC(t,"string")||PC.pattern(e,t,o,r,i)}n(r)},date:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t)&&!e.required)return n();if(PC.required(e,t,o,r,i),!xC(t)){let n;n="number"==typeof t?new Date(t):t,PC.type(e,n,o,r,i),n&&PC.range(e,n.getTime(),o,r,i)}}n(r)},url:MC,hex:MC,email:MC,required:function(e,t,n,o,i){const r=[],s=Array.isArray(t)?"array":typeof t;PC.required(e,t,o,r,i,s),n(r)},any:function(e,t,n,o,i){const r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(xC(t)&&!e.required)return n();PC.required(e,t,o,r,i)}n(r)}};function OC(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const RC=OC();function LC(e){this.rules=null,this._messages=RC,this.define(e)}LC.prototype={messages:function(e){return e&&(this._messages=AC(OC(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");let t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){const o=this;void 0===t&&(t={}),void 0===n&&(n=function(){});let i,r,s=e,a=t,l=n;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(),Promise.resolve();if(a.messages){let e=this.messages();e===RC&&(e=OC()),AC(e,a.messages),a.messages=e}else a.messages=this.messages();const c={};(a.keys||Object.keys(this.rules)).forEach(t=>{i=o.rules[t],r=s[t],i.forEach(n=>{let i=n;"function"==typeof i.transform&&(s===e&&(s={...s}),r=s[t]=i.transform(r)),i="function"==typeof i?{validator:i}:{...i},i.validator=o.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=o.getType(i),i.validator&&(c[t]=c[t]||[],c[t].push({rule:i,value:r,source:s,field:t}))})});const u={};return kC(c,a,(e,t)=>{const{rule:n}=e;let o,i=!("object"!==n.type&&"array"!==n.type||"object"!=typeof n.fields&&"object"!=typeof n.defaultField);function r(e,t){return{...t,fullField:`${n.fullField}.${e}`}}function s(o){void 0===o&&(o=[]);let s=o;if(Array.isArray(s)||(s=[s]),!a.suppressWarning&&s.length&&LC.warning("async-validator:",s),s.length&&n.message&&(s=[].concat(n.message)),s=s.map(CC(n)),a.first&&s.length)return u[n.field]=1,t(s);if(i){if(n.required&&!e.value)return s=n.message?[].concat(n.message).map(CC(n)):a.error?[a.error(n,wC(a.messages.required,n.field))]:[],t(s);let o={};if(n.defaultField)for(const t in e.value)e.value.hasOwnProperty(t)&&(o[t]=n.defaultField);o={...o,...e.rule.fields};for(const e in o)if(o.hasOwnProperty(e)){const t=Array.isArray(o[e])?o[e]:[o[e]];o[e]=t.map(r.bind(null,e))}const i=new LC(o);i.messages(a.messages),e.rule.options&&(e.rule.options.messages=a.messages,e.rule.options.error=a.error),i.validate(e.value,e.rule.options||a,e=>{const n=[];s&&s.length&&n.push.apply(n,s),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)})}else t(s)}i=i&&(n.required||!n.required&&e.value),n.field=e.field,n.asyncValidator?o=n.asyncValidator(n,e.value,s,e.source,a):n.validator&&(o=n.validator(n,e.value,s,e.source,a),!0===o?s():!1===o?s(n.message||`${n.field} fails`):o instanceof Array?s(o):o instanceof Error&&s(o.message)),o&&o.then&&o.then(()=>s(),e=>s(e))},e=>{!function(e){let t,n=[],o={};function i(e){if(Array.isArray(e)){let t;n=(t=n).concat.apply(t,e)}else n.push(e)}for(t=0;t<e.length;t++)i(e[t]);n.length?o=_C(n):(n=null,o=null),l(n,o)}(e)})},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!zC.hasOwnProperty(e.type))throw new Error(wC("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;const t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?zC.required:zC[this.getType(e)]||!1}},LC.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");zC[e]=t},LC.warning=vC,LC.messages=RC,LC.warning=function(){};const DC=W_({name:"u-form",mixins:[hx,fx,yC],provide(){return{uForm:this}},data:()=>({formRules:{},validator:{},originalModel:null}),watch:{rules:{immediate:!0,handler(e){this.setRules(e)}},propsChange(e){var t;(null==(t=this.children)?void 0:t.length)&&this.children.map(e=>{"function"==typeof e.updateParentData&&e.updateParentData()})},model:{immediate:!0,handler(e){this.originalModel||(this.originalModel=Ow(e))}}},computed:{propsChange(){return[this.errorType,this.borderBottom,this.labelPosition,this.labelWidth,this.labelAlign,this.labelStyle]}},created(){this.children=[]},methods:{setRules(e){0!==Object.keys(e).length&&(this.formRules=e,this.validator=new LC(e))},resetFields(){this.resetModel()},resetModel(e){this.children.map(e=>{const t=null==e?void 0:e.prop,n=Qw(this.originalModel,t);Yw(this.model,t,n)})},clearValidate(e){e=[].concat(e),this.children.map(t=>{(void 0===e[0]||e.includes(t.prop))&&(t.message=null)})},async validateField(e,t,n=null,o){this.$nextTick(()=>{const i=[];e=[].concat(e);let r=this.children.map(t=>new Promise((r,s)=>{const a=[];if(e.includes(t.prop)){const e=Qw(this.model,t.prop),s=t.prop.split("."),l=s[s.length-1];let c=[];if(c=t.itemRules&&t.itemRules.length>0?t.itemRules:this.formRules[t.prop],!c)return void r();const u=[].concat(c);u.length||r();for(let d=0;d<u.length;d++){const s=u[d],c=[].concat(null==s?void 0:s.trigger);if(n&&!c.includes(n)){r();continue}new LC({[l]:s}).validate({[l]:e},(e,n)=>{var s;fw.array(e)&&(e.forEach(e=>{e.prop=t.prop}),i.push(...e),a.push(...e)),o&&1!=(null==o?void 0:o.showErrorMsg)||(t.message=(null==(s=a[0])?void 0:s.message)?a[0].message:null),d==u.length-1&&r(i)})}}else r({})}));Promise.all(r).then(e=>{"function"==typeof t&&t(i)}).catch(e=>{console.error("An error occurred:",e)})})},validate(e){return new Promise((t,n)=>{this.$nextTick(()=>{const o=this.children.map(e=>e.prop);this.validateField(o,e=>{e.length?("toast"===this.errorType&&Fw(e[0].message),n(e)):t(!0)},null,e)})})}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-form"},{default:So(()=>[Mi(e.$slots,"default")]),_:3})}]]),NC=Object.freeze(Object.defineProperty({__proto__:null,default:DC},Symbol.toStringTag,{value:"Module"})),$C={name:"u-grid-item",mixins:[hx,fx,{props:{name:{type:[String,Number,null],default:()=>cx.gridItem.name},bgColor:{type:String,default:()=>cx.gridItem.bgColor}}}],data:()=>({parentData:{col:0,border:!0},classes:[]}),mounted(){this.init()},emits:["click"],computed:{itemStyle(){const e={background:this.bgColor,width:"100%"};return Rw(e,Mw(this.customStyle))}},methods:{init(){gh("$uGridItem",()=>{this.gridItemClasses()}),this.updateParentData(),vh("$uGridItem"),this.gridItemClasses()},updateParentData(){this.getParentData("u-grid")},clickHandler(){var e;let t=this.name;const n=null==(e=this.parent)?void 0:e.children;n&&null===this.name&&(t=n.findIndex(e=>e===this)),this.parent&&this.parent.childClick(t),this.$emit("click",t)},async getItemWidth(){let e=0;if(this.parent){e=await this.getParentWidth()/Number(this.parentData.col)+"px"}this.width=e},getParentWidth(){},gridItemClasses(){if(this.parentData.border){let e=[];this.parent.children.map((t,n)=>{if(this===t){const t=this.parent.children.length;(n+1)%this.parentData.col!==0&&n+1!==t&&e.push("u-border-right");n<t-(t%this.parentData.col===0?this.parentData.col:t%this.parentData.col)&&e.push("u-border-bottom")}}),this.classes=e}}},beforeUnmount(){bh("$uGridItem")}};const jC=W_($C,[["render",function(e,t,n,o,i,r){const s=Ay;return i.parentData.col>0?(Ir(),zr(s,{key:0,class:Qe(["u-grid-item",i.classes]),"hover-class":"u-grid-item--hover-class","hover-stay-time":200,onClick:r.clickHandler,style:qe([r.itemStyle])},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["onClick","class","style"])):Wr("",!0)}],["__scopeId","data-v-f2ca8baa"]]),HC=Object.freeze(Object.defineProperty({__proto__:null,default:jC},Symbol.toStringTag,{value:"Module"})),FC={props:{col:{type:[String,Number],default:()=>cx.grid.col},border:{type:Boolean,default:()=>cx.grid.border},align:{type:String,default:()=>cx.grid.align},gap:{type:String,default:"0px"}}},VC={name:"u-grid",mixins:[hx,fx,FC],data:()=>({index:0,width:0}),watch:{parentData(){this.children.length&&this.children.map(e=>{"function"==typeof e.updateParentData&&e.updateParentData()})}},created(){this.children=[]},computed:{parentData(){return[this.hoverClass,this.col,this.size,this.border]},gridStyle(){let e={};switch(this.align){case"left":default:e.justifyContent="flex-start";break;case"center":e.justifyContent="center";break;case"right":e.justifyContent="flex-end"}return Rw(e,Mw(this.customStyle))}},emits:["click"],methods:{childClick(e){this.$emit("click",e)}}},WC=()=>{Ds(e=>({11200925:e.gap,"111ffbcf":e.col}))},UC=VC.setup;VC.setup=UC?(e,t)=>(WC(),UC(e,t)):WC;const qC=W_(VC,[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-grid",ref:"u-grid",style:qe([r.gridStyle])},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["style"])}],["__scopeId","data-v-c91ee831"]]),QC=Object.freeze(Object.defineProperty({__proto__:null,default:qC},Symbol.toStringTag,{value:"Module"})),YC={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-email-fill":"","uicon-minus-circle":"","uicon-minus-circle-fill":"","uicon-plus-circle":"","uicon-plus-circle-fill":"","uicon-file-text":"","uicon-file-text-fill":"","uicon-pushpin":"","uicon-pushpin-fill":"","uicon-grid":"","uicon-grid-fill":"","uicon-play-circle":"","uicon-play-circle-fill":"","uicon-pause-circle-fill":"","uicon-pause":"","uicon-pause-circle":"","uicon-eye-off":"","uicon-eye-off-outline":"","uicon-gift-fill":"","uicon-gift":"","uicon-rmb-circle-fill":"","uicon-rmb-circle":"","uicon-kefu-ermai":"","uicon-server-fill":"","uicon-coupon-fill":"","uicon-coupon":"","uicon-integral":"","uicon-integral-fill":"","uicon-home-fill":"","uicon-home":"","uicon-hourglass-half-fill":"","uicon-hourglass":"","uicon-account":"","uicon-plus-people-fill":"","uicon-minus-people-fill":"","uicon-account-fill":"","uicon-thumb-down-fill":"","uicon-thumb-down":"","uicon-thumb-up":"","uicon-thumb-up-fill":"","uicon-lock-fill":"","uicon-lock-open":"","uicon-lock-opened-fill":"","uicon-lock":"","uicon-red-packet-fill":"","uicon-photo-fill":"","uicon-photo":"","uicon-volume-off-fill":"","uicon-volume-off":"","uicon-volume-fill":"","uicon-volume":"","uicon-red-packet":"","uicon-download":"","uicon-arrow-up-fill":"","uicon-arrow-down-fill":"","uicon-play-left-fill":"","uicon-play-right-fill":"","uicon-rewind-left-fill":"","uicon-rewind-right-fill":"","uicon-arrow-downward":"","uicon-arrow-leftward":"","uicon-arrow-rightward":"","uicon-arrow-upward":"","uicon-arrow-down":"","uicon-arrow-right":"","uicon-arrow-left":"","uicon-arrow-up":"","uicon-skip-back-left":"","uicon-skip-forward-right":"","uicon-rewind-right":"","uicon-rewind-left":"","uicon-arrow-right-double":"","uicon-arrow-left-double":"","uicon-wifi-off":"","uicon-wifi":"","uicon-empty-data":"","uicon-empty-history":"","uicon-empty-list":"","uicon-empty-page":"","uicon-empty-order":"","uicon-man":"","uicon-woman":"","uicon-man-add":"","uicon-man-add-fill":"","uicon-man-delete":"","uicon-man-delete-fill":"","uicon-zh":"","uicon-en":""},GC={props:{name:{type:String,default:()=>cx.icon.name},color:{type:String,default:()=>cx.icon.color},size:{type:[String,Number],default:()=>cx.icon.size},bold:{type:Boolean,default:()=>cx.icon.bold},index:{type:[String,Number],default:()=>cx.icon.index},hoverClass:{type:String,default:()=>cx.icon.hoverClass},customPrefix:{type:String,default:()=>cx.icon.customPrefix},label:{type:[String,Number],default:()=>cx.icon.label},labelPos:{type:String,default:()=>cx.icon.labelPos},labelSize:{type:[String,Number],default:()=>cx.icon.labelSize},labelColor:{type:String,default:()=>cx.icon.labelColor},space:{type:[String,Number],default:()=>cx.icon.space},imgMode:{type:String,default:()=>cx.icon.imgMode},width:{type:[String,Number],default:()=>cx.icon.width},height:{type:[String,Number],default:()=>cx.icon.height},top:{type:[String,Number],default:()=>cx.icon.top},stop:{type:Boolean,default:()=>cx.icon.stop}}};let XC={loaded:!1};const KC=XC,JC=()=>(Q_.loadFontOnce&&(XC.loaded=!0),d_({global:!0,family:"uicon-iconfont",source:'url("'+Q_.iconUrl+'")',success(){},fail(){}}),Q_.customIcon.family&&d_({global:!0,family:Q_.customIcon.family,source:'url("'+Q_.customIcon.url+'")',success(){},fail(){}}),!0);const ZC=W_({name:"u-icon",beforeCreate(){KC.loaded||JC()},data:()=>({}),emits:["click"],mixins:[hx,fx,GC],computed:{uClasses(){let e=[];return e.push(this.customPrefix+"-"+this.name),"uicon"==this.customPrefix?e.push("u-iconfont"):e.push(this.customPrefix),this.color&&Q_.type.includes(this.color)&&e.push("u-icon__icon--"+this.color),e},iconStyle(){let e={};return e={fontSize:zw(this.size),lineHeight:zw(this.size),fontWeight:this.bold?"bold":"normal",top:zw(this.top)},"uicon"!==this.customPrefix&&(e.fontFamily=this.customPrefix),this.color&&!Q_.type.includes(this.color)&&(e.color=this.color),e},isImg(){return-1!==this.name.indexOf("/")},imgStyle(){let e={};return e.width=this.width?zw(this.width):zw(this.size),e.height=this.height?zw(this.height):zw(this.size),e},icon(){return"uicon"!==this.customPrefix?Q_.customIcons[this.name]||this.name:YC["uicon-"+this.name]||this.name}},methods:{addStyle:Mw,addUnit:zw,clickHandler(e){this.$emit("click",this.index,e),this.stop&&this.preventEvent(e)}}},[["render",function(e,t,n,o,i,r){const s=Jm,a=wy,l=Ay;return Ir(),zr(l,{class:Qe(["u-icon",["u-icon--"+e.labelPos]]),onClick:r.clickHandler},{default:So(()=>[r.isImg?(Ir(),zr(s,{key:0,class:"u-icon__img",src:e.name,mode:e.imgMode,style:qe([r.imgStyle,r.addStyle(e.customStyle)])},null,8,["src","mode","style"])):(Ir(),zr(a,{key:1,class:Qe(["u-icon__icon",r.uClasses]),style:qe([r.iconStyle,r.addStyle(e.customStyle)]),"hover-class":e.hoverClass},{default:So(()=>[Vr(X(r.icon),1)]),_:1},8,["class","style","hover-class"])),""!==e.label?(Ir(),zr(a,{key:2,class:"u-icon__label",style:qe({color:e.labelColor,fontSize:r.addUnit(e.labelSize),marginLeft:"right"==e.labelPos?r.addUnit(e.space):0,marginTop:"bottom"==e.labelPos?r.addUnit(e.space):0,marginRight:"left"==e.labelPos?r.addUnit(e.space):0,marginBottom:"top"==e.labelPos?r.addUnit(e.space):0})},{default:So(()=>[Vr(X(e.label),1)]),_:1},8,["style"])):Wr("",!0)]),_:1},8,["onClick","class"])}],["__scopeId","data-v-7da66148"]]),eA=Object.freeze(Object.defineProperty({__proto__:null,default:ZC},Symbol.toStringTag,{value:"Module"})),tA={props:{src:{type:String,default:()=>cx.image.src},mode:{type:String,default:()=>cx.image.mode},width:{type:[String,Number],default:()=>cx.image.width},height:{type:[String,Number],default:()=>cx.image.height},shape:{type:String,default:()=>cx.image.shape},radius:{type:[String,Number],default:()=>cx.image.radius},lazyLoad:{type:Boolean,default:()=>cx.image.lazyLoad},showMenuByLongpress:{type:Boolean,default:()=>cx.image.showMenuByLongpress},loadingIcon:{type:String,default:()=>cx.image.loadingIcon},errorIcon:{type:String,default:()=>cx.image.errorIcon},showLoading:{type:Boolean,default:()=>cx.image.showLoading},showError:{type:Boolean,default:()=>cx.image.showError},fade:{type:Boolean,default:()=>cx.image.fade},webp:{type:Boolean,default:()=>cx.image.webp},duration:{type:[String,Number],default:()=>cx.image.duration},bgColor:{type:String,default:()=>cx.image.bgColor}}};const nA=W_({name:"u-image",mixins:[hx,fx,tA],data(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{},show:!1}},watch:{src:{immediate:!0,handler(e){e?(this.isError=!1,this.loading=!0):this.isError=!0}}},computed:{transStyle(){let e={};return this.loading||this.isError||"100%"==this.width||"heightFix"!=this.mode?e.width=zw(this.width):e.width="fit-content",this.loading||this.isError||"100%"==this.height||"widthFix"!=this.mode?e.height=zw(this.height):e.height="fit-content",e},wrapStyle(){let e={};return this.loading||this.isError||"100%"==this.width||"heightFix"!=this.mode?e.width=zw(this.width):e.width="fit-content",this.loading||this.isError||"100%"==this.height||"widthFix"!=this.mode?e.height=zw(this.height):e.height="fit-content",e.borderRadius="circle"==this.shape?"10000px":zw(this.radius),e.overflow=this.radius>0?"hidden":"visible",Rw(e,Mw(this.customStyle))}},mounted(){this.show=!0},emits:["click","error","load"],methods:{addUnit:zw,onClick(e){this.$emit("click",e)},onErrorHandler(e){this.loading=!1,this.isError=!0,this.$emit("error",e)},onLoadHandler(e){this.loading=!1,this.isError=!1,this.$emit("load",e),this.removeBgColor()},removeBgColor(){}}},[["render",function(e,t,n,o,i,r){const s=Jm,a=Bo("up-icon"),l=Ay,c=yx(Po("u-transition"),Nx);return Ir(),zr(c,{mode:"fade",show:i.show,style:qe(r.transStyle),duration:e.fade?1e3:0},{default:So(()=>[jr(l,{class:"u-image box-border",onClick:r.onClick,style:qe([r.wrapStyle,i.backgroundStyle])},{default:So(()=>[i.isError?Wr("",!0):(Ir(),zr(s,{key:0,src:e.src,mode:e.mode,onError:r.onErrorHandler,onLoad:r.onLoadHandler,"show-menu-by-longpress":e.showMenuByLongpress,"lazy-load":e.lazyLoad,class:"u-image__image",style:qe({width:r.addUnit(e.width),height:r.addUnit(e.height),borderRadius:"circle"==e.shape?"10000px":r.addUnit(e.radius)})},null,8,["src","mode","onError","onLoad","show-menu-by-longpress","lazy-load","style"])),e.showLoading&&i.loading?(Ir(),zr(l,{key:1,class:"u-image__loading",style:qe({borderRadius:"circle"==e.shape?"50%":r.addUnit(e.radius),backgroundColor:this.bgColor,width:r.addUnit(e.width),height:r.addUnit(e.height)})},{default:So(()=>[Mi(e.$slots,"loading",{},()=>[jr(a,{name:e.loadingIcon},null,8,["name"])],!0)]),_:3},8,["style"])):Wr("",!0),e.showError&&i.isError&&!i.loading?(Ir(),zr(l,{key:2,class:"u-image__error",style:qe({borderRadius:"circle"==e.shape?"50%":r.addUnit(e.radius),backgroundColor:this.bgColor,width:r.addUnit(e.width),height:r.addUnit(e.height)})},{default:So(()=>[Mi(e.$slots,"error",{},()=>[jr(a,{name:e.errorIcon},null,8,["name"])],!0)]),_:3},8,["style"])):Wr("",!0)]),_:3},8,["onClick","style"])]),_:3},8,["show","style","duration"])}],["__scopeId","data-v-7eb760ca"]]),oA=Object.freeze(Object.defineProperty({__proto__:null,default:nA},Symbol.toStringTag,{value:"Module"}));const iA=W_({name:"u-index-anchor",mixins:[hx,fx,{props:{text:{type:[String,Number],default:()=>cx.indexAnchor.text},color:{type:String,default:()=>cx.indexAnchor.color},size:{type:[String,Number],default:()=>cx.indexAnchor.size},bgColor:{type:String,default:()=>cx.indexAnchor.bgColor},height:{type:[String,Number],default:()=>cx.indexAnchor.height}}}],data:()=>({}),mounted(){this.init()},methods:{addUnit:zw,init(){const e=Pw.call(this,"u-index-list");if(!e)return;e.anchors.push(this);const t=Pw.call(this,"u-index-item");t&&("string"==typeof this.text?t.id=this.text.charCodeAt(0):t.id=this.text.name.charCodeAt(0))}},computed:{parentSticky(){const e=Pw.call(this,"u-index-list");return!e||e.sticky}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay;return Ir(),zr(a,{class:Qe(["u-index-anchor u-border-bottom",{"u-index-anchor--sticky":r.parentSticky}]),ref:`u-index-anchor-${e.text}`,style:qe({height:r.addUnit(e.height),backgroundColor:e.bgColor})},{default:So(()=>[jr(s,{class:"u-index-anchor__text",style:qe({fontSize:r.addUnit(e.size),color:e.color})},{default:So(()=>[Vr(X(e.text.name||e.text),1)]),_:1},8,["style"])]),_:1},8,["class","style"])}],["__scopeId","data-v-c64d8f32"]]),rA=Object.freeze(Object.defineProperty({__proto__:null,default:iA},Symbol.toStringTag,{value:"Module"}));const sA=W_({name:"u-index-item",mixins:[hx,fx,{props:{}}],data:()=>({top:0,height:0,id:""}),created(){this.anchor={}},mounted(){this.init()},methods:{init(){this.getParentData("u-index-list"),this.parent&&kw().then(()=>{this.getIndexItemRect().then(e=>{this.top=Math.ceil(e.top),this.height=Math.ceil(e.height)})})},getIndexItemRect(){return new Promise(e=>{this.$uGetRect(".u-index-item").then(t=>{e(t)})})}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:Qe(["u-index-item",[`u-index-item-${i.id}`]]),id:`u-index-item-${i.id}`},{default:So(()=>[Mi(e.$slots,"default")]),_:3},8,["id","class"])}]]),aA=Object.freeze(Object.defineProperty({__proto__:null,default:sA},Symbol.toStringTag,{value:"Module"})),lA={props:{inactiveColor:{type:String,default:()=>cx.indexList.inactiveColor},activeColor:{type:String,default:()=>cx.indexList.activeColor},indexList:{type:Array,default:()=>cx.indexList.indexList},sticky:{type:Boolean,default:()=>cx.indexList.sticky},customNavHeight:{type:[String,Number],default:()=>cx.indexList.customNavHeight},safeBottomFix:{type:Boolean,default:()=>cx.indexList.safeBottomFix}}};const cA=W_({name:"u-index-list",mixins:[hx,fx,lA],data:()=>({activeIndex:-1,touchmoveIndex:1,letterInfo:{height:0,itemHeight:0,top:0},indicatorHeight:50,touching:!1,scrollTop:0,scrollViewHeight:0,sys:{},scrolling:!1,scrollIntoView:"",pageY:0,topOffset:0}),computed:{uIndexList(){return this.indexList.length?this.indexList:(()=>{const e=[],t="A".charCodeAt(0);for(let n=0;n<26;n++)e.push(String.fromCharCode(t+n));return e})()},indicatorTop(){const{top:e,height:t,itemHeight:n}=this.letterInfo;return Math.floor(e-t/2+n*this.activeIndex+n-35)}},watch:{uIndexList:{immediate:!1,handler(){kw(30).then(()=>{this.setIndexListLetterInfo()})}}},created(){this.children=[],this.anchors=[],this.sys=Tw()},mounted(){this.init(),kw(50).then(()=>{this.setIndexListLetterInfo()})},methods:{addUnit:zw,init(){let e=Sw(this.customNavHeight);this.getIndexListRect().then(async t=>{this.scrollViewHeight=t.height?t.height:this.sys.windowHeight-e,this.topOffset=this.sys.windowHeight-this.scrollViewHeight})},touchStart(e){const t=e.changedTouches[0];if(!t)return;this.touching=!0;const{pageY:n,screenY:o}=t,i=this.getIndexListLetter(n);this.setValueForTouch(i)},touchMove(e){let t=e.changedTouches[0];if(!t)return;this.touching||(this.touching=!0);const{pageY:n,screenY:o}=t,i=this.getIndexListLetter(n);this.setValueForTouch(i)},touchEnd(e){kw(300).then(()=>{this.touching=!1})},getIndexListLetterRect(){return new Promise(e=>{this.$uGetRect(".u-index-list__letter").then(t=>{e(t)})})},getIndexListScrollViewRect(){return new Promise(e=>{this.$uGetRect(".u-index-list__scroll-view").then(t=>{e(t)})})},getIndexListRect(){return new Promise(e=>{this.$uGetRect(".u-index-list").then(t=>{e(t)})})},setIndexListLetterInfo(){this.getIndexListLetterRect().then(e=>{const{height:t}=e,n=Tw();n.windowHeight,0==this.customNavHeight?n.windowTop:Sw(this.customNavHeight),this.getIndexListScrollViewRect().then(e=>{this.letterInfo={height:t,top:e.height/2,itemHeight:Math.floor(t/this.uIndexList.length)}})})},getIndexListLetter(e){this.pageY=e;let{top:t,height:n,itemHeight:o}=this.letterInfo,i=this.currentIndex;return t-=n/2,i=(e-=this.topOffset)<t?0:e>=t+n?this.uIndexList.length-1:Math.floor((e-t)/o),i},async setValueForTouch(e){e!==this.activeIndex&&(this.activeIndex=e,this.$emit("select",this.uIndexList[e]),"string"==typeof this.uIndexList[e]?this.scrollIntoView=`u-index-item-${this.uIndexList[e].charCodeAt(0)}`:this.scrollIntoView=`u-index-item-${this.uIndexList[e].name.charCodeAt(0)}`)},getHeaderRect(){return new Promise(e=>{this.$slots.header||e({width:0,height:0}),this.$uGetRect(".u-index-list__header").then(t=>{e(t)})})},async scrollHandler(e){if(this.touching||this.scrolling)return;this.scrolling=!0,kw(10).then(()=>{this.scrolling=!1});let t=0;const n=this.children.length;let o=this.children;let i=(await this.getHeaderRect()).height;this.anchors,o=this.children.map((e,t)=>{const n={height:e.height,top:i};return i+=e.height,n}),t=e.detail.scrollTop,t+=Sw(this.customNavHeight);for(let r=0;r<n;r++){const e=o[r],i=o[r+1];if(t<=o[0].top||t>=o[n-1].top+o[n-1].height){this.activeIndex=-1;break}if(!i){this.activeIndex=n-1;break}if(t>e.top&&t<i.top){this.activeIndex=r;break}}}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=dy,l=wy,c=yx(Po("u-transition"),Nx);return Ir(),zr(s,{ref:"u-index-list",class:"u-index-list"},{default:So(()=>[jr(a,{scrollTop:i.scrollTop,scrollIntoView:i.scrollIntoView,"offset-accuracy":1,style:qe({maxHeight:r.addUnit(i.scrollViewHeight)}),"scroll-y":"",onScroll:r.scrollHandler,ref:"u-index-list__scroll-view",class:"u-index-list__scroll-view"},{default:So(()=>[e.$slots.header?(Ir(),zr(s,{key:0,class:"u-index-list__header"},{default:So(()=>[Mi(e.$slots,"header",{},void 0,!0)]),_:3})):Wr("",!0),Mi(e.$slots,"default",{},void 0,!0),e.$slots.footer?(Ir(),zr(s,{key:1,class:"u-index-list__footer"},{default:So(()=>[Mi(e.$slots,"footer",{},void 0,!0)]),_:3})):Wr("",!0)]),_:3},8,["scrollTop","scrollIntoView","style","onScroll"]),jr(s,{class:"u-index-list__letter",ref:"u-index-list__letter",style:qe({top:r.addUnit(i.letterInfo.top),transform:"translateY(-50%)"}),onTouchstart:ua(r.touchStart,["prevent"]),onTouchmove:ua(r.touchMove,["prevent"]),onTouchend:ua(r.touchEnd,["prevent"]),onTouchcancel:ua(r.touchEnd,["prevent"])},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(r.uIndexList,(t,n)=>(Ir(),zr(s,{class:"u-index-list__letter__item",key:n,style:qe({backgroundColor:i.activeIndex===n?e.activeColor:"transparent"})},{default:So(()=>[jr(l,{class:"u-index-list__letter__item__index",style:qe({color:i.activeIndex===n?"#fff":e.inactiveColor})},{default:So(()=>[Vr(X(t.key||t),1)]),_:2},1032,["style"])]),_:2},1032,["style"]))),128))]),_:1},8,["style","onTouchstart","onTouchmove","onTouchend","onTouchcancel"]),jr(c,{mode:"fade",show:i.touching,customStyle:{position:"absolute",right:"50px",top:r.addUnit(r.indicatorTop,"px"),zIndex:3}},{default:So(()=>[jr(s,{class:Qe(["u-index-list__indicator",["u-index-list__indicator--show"]]),style:qe({height:r.addUnit(i.indicatorHeight),width:r.addUnit(i.indicatorHeight)})},{default:So(()=>[jr(l,{class:"u-index-list__indicator__text"},{default:So(()=>{var e;return[Vr(X((null==(e=r.uIndexList[i.activeIndex])?void 0:e.key)||r.uIndexList[i.activeIndex]),1)]}),_:1})]),_:1},8,["style"])]),_:1},8,["show","customStyle"])]),_:3},512)}],["__scopeId","data-v-a0e8fe22"]]),uA=Object.freeze(Object.defineProperty({__proto__:null,default:cA},Symbol.toStringTag,{value:"Module"})),dA={props:{modelValue:{type:[String,Number],default:()=>cx.input.value},type:{type:String,default:()=>cx.input.type},fixed:{type:Boolean,default:()=>cx.input.fixed},disabled:{type:Boolean,default:()=>cx.input.disabled},disabledColor:{type:String,default:()=>cx.input.disabledColor},clearable:{type:Boolean,default:!1},onlyClearableOnFocused:{type:Boolean,default:!0},password:{type:Boolean,default:()=>cx.input.password},maxlength:{type:[String,Number],default:()=>cx.input.maxlength},placeholder:{type:String,default:()=>cx.input.placeholder},placeholderClass:{type:String,default:()=>cx.input.placeholderClass},placeholderStyle:{type:[String,Object],default:()=>cx.input.placeholderStyle},showWordLimit:{type:Boolean,default:()=>cx.input.showWordLimit},confirmType:{type:String,default:()=>cx.input.confirmType},confirmHold:{type:Boolean,default:()=>cx.input.confirmHold},holdKeyboard:{type:Boolean,default:()=>cx.input.holdKeyboard},focus:{type:Boolean,default:()=>cx.input.focus},autoBlur:{type:Boolean,default:()=>cx.input.autoBlur},disableDefaultPadding:{type:Boolean,default:()=>cx.input.disableDefaultPadding},cursor:{type:[String,Number],default:()=>cx.input.cursor},cursorSpacing:{type:[String,Number],default:()=>cx.input.cursorSpacing},selectionStart:{type:[String,Number],default:()=>cx.input.selectionStart},selectionEnd:{type:[String,Number],default:()=>cx.input.selectionEnd},adjustPosition:{type:Boolean,default:()=>cx.input.adjustPosition},inputAlign:{type:String,default:()=>cx.input.inputAlign},fontSize:{type:[String,Number],default:()=>cx.input.fontSize},color:{type:String,default:()=>cx.input.color},prefixIcon:{type:String,default:()=>cx.input.prefixIcon},prefixIconStyle:{type:[String,Object],default:()=>cx.input.prefixIconStyle},suffixIcon:{type:String,default:()=>cx.input.suffixIcon},suffixIconStyle:{type:[String,Object],default:()=>cx.input.suffixIconStyle},border:{type:String,default:()=>cx.input.border},readonly:{type:Boolean,default:()=>cx.input.readonly},shape:{type:String,default:()=>cx.input.shape},formatter:{type:[Function,null],default:()=>cx.input.formatter},ignoreCompositionEvent:{type:Boolean,default:!0},cursorColor:{type:String,default:()=>cx.input.cursorColor},passwordVisibilityToggle:{type:Boolean,default:()=>cx.input.passwordVisibilityToggle}}};let hA=null;const pA=W_({name:"u-input",mixins:[hx,fx,dA],data:()=>({clearInput:!1,innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:e=>e,showPassword:!1}),created(){this.formatter&&(this.innerFormatter=this.formatter)},watch:{modelValue:{immediate:!0,handler(e,t){this.changeFromInner||this.innerValue===e||(this.innerValue=e,!1===this.firstChange&&!1===this.changeFromInner?this.valueChange(this.innerValue,!0):this.firstChange||qw(this,"change"),this.firstChange=!1),this.changeFromInner=!1}}},computed:{isPassword(){let e=!1;return e=!!this.password||"password"==this.type,this.showPassword&&(e=!1),e},isShowClear(){const{clearable:e,readonly:t,focused:n,innerValue:o,onlyClearableOnFocused:i}=this;return!(!e||t)&&(i?!!n&&""!==o:""!==o)},inputClass(){let e=[],{border:t,disabled:n,shape:o}=this;return"surround"===t&&(e=e.concat(["u-border","u-input--radius"])),e.push(`u-input--${o}`),"bottom"===t&&(e=e.concat(["u-border-bottom","u-input--no-radius"])),e.join(" ")},wrapperStyle(){const e={};return this.disabled&&(e.backgroundColor=this.disabledColor),"none"===this.border?e.padding="0":(e.paddingTop="6px",e.paddingBottom="6px",e.paddingLeft="9px",e.paddingRight="9px"),Rw(e,Mw(this.customStyle))},inputStyle(){return{color:this.color,fontSize:zw(this.fontSize),textAlign:this.inputAlign}}},emits:["update:modelValue","focus","blur","change","confirm","clear","keyboardheightchange","nicknamereview"],methods:{setFormatter(e){this.innerFormatter=e},onInput(e){let{value:t=""}=e.detail||{};this.innerValue=t,this.$nextTick(()=>{let e=this.innerFormatter(t);this.innerValue=e,this.valueChange(e)})},onBlur(e){this.$emit("blur",e.detail.value),kw(150).then(()=>{this.focused=!1}),qw(this,"blur")},onFocus(e){this.focused=!0,this.$emit("focus")},doFocus(){this.$refs["input-native"].focus()},doBlur(){this.$refs["input-native"].blur()},onConfirm(e){this.$emit("confirm",this.innerValue)},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},onnicknamereview(e){this.$emit("nicknamereview",e)},valueChange(e,t=!1){this.clearInput&&(this.innerValue="",this.clearInput=!1),this.$nextTick(()=>{t&&!this.clearInput||(this.changeFromInner=!0,this.$emit("change",e),this.$emit("update:modelValue",e)),qw(this,"change")})},onClear(){this.clearInput=!0,this.innerValue="",this.$nextTick(()=>{this.valueChange(""),this.$emit("clear")})},clickHandler(){(this.disabled||this.readonly)&&nv()}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay,l=_g;return Ir(),zr(a,{class:Qe(["u-input",r.inputClass]),style:qe([r.wrapperStyle])},{default:So(()=>[jr(a,{class:"u-input__content"},{default:So(()=>[e.prefixIcon||e.$slots.prefix?(Ir(),zr(a,{key:0,class:"u-input__content__prefix-icon"},{default:So(()=>[Mi(e.$slots,"prefix",{},()=>[jr(s,{name:e.prefixIcon,size:"18",customStyle:e.prefixIconStyle},null,8,["name","customStyle"])],!0)]),_:3})):Wr("",!0),jr(a,{class:"u-input__content__field-wrapper",onClick:r.clickHandler},{default:So(()=>[jr(l,{ref:"input-native",class:"u-input__content__field-wrapper__field",style:qe([r.inputStyle]),type:i.showPassword&&"password"==e.type?"text":e.type,focus:e.focus,cursor:e.cursor,value:i.innerValue,"auto-blur":e.autoBlur,disabled:e.disabled||e.readonly,maxlength:e.maxlength,placeholder:e.placeholder,"placeholder-style":e.placeholderStyle,"placeholder-class":e.placeholderClass,"confirm-type":e.confirmType,"confirm-hold":e.confirmHold,"hold-keyboard":e.holdKeyboard,"cursor-color":e.cursorColor,"cursor-spacing":e.cursorSpacing,"adjust-position":e.adjustPosition,"selection-end":e.selectionEnd,"selection-start":e.selectionStart,password:r.isPassword,ignoreCompositionEvent:e.ignoreCompositionEvent,onInput:r.onInput,onBlur:r.onBlur,onFocus:r.onFocus,onConfirm:r.onConfirm,onKeyboardheightchange:r.onkeyboardheightchange,onNicknamereview:r.onnicknamereview},null,8,["style","type","focus","cursor","value","auto-blur","disabled","maxlength","placeholder","placeholder-style","placeholder-class","confirm-type","confirm-hold","hold-keyboard","cursor-color","cursor-spacing","adjust-position","selection-end","selection-start","password","ignoreCompositionEvent","onInput","onBlur","onFocus","onConfirm","onKeyboardheightchange","onNicknamereview"])]),_:1},8,["onClick"]),r.isShowClear?(Ir(),zr(a,{key:1,class:"u-input__content__clear",onClick:r.onClear},{default:So(()=>[jr(s,{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px"})]),_:1},8,["onClick"])):Wr("",!0),("password"==e.type||e.password)&&e.passwordVisibilityToggle?(Ir(),zr(a,{key:2,class:"u-input__content__subfix-password-shower"},{default:So(()=>[jr(s,{onClick:t[0]||(t[0]=e=>i.showPassword=!i.showPassword),name:i.showPassword?"eye-off":"eye-fill",size:"18"},null,8,["name"])]),_:1})):Wr("",!0),e.suffixIcon||e.$slots.suffix?(Ir(),zr(a,{key:3,class:"u-input__content__subfix-icon"},{default:So(()=>[Mi(e.$slots,"suffix",{},()=>[jr(s,{name:e.suffixIcon,size:"18",customStyle:e.suffixIconStyle},null,8,["name","customStyle"])],!0)]),_:3})):Wr("",!0)]),_:3})]),_:3},8,["class","style"])}],["__scopeId","data-v-40fab110"]]),fA=Object.freeze(Object.defineProperty({__proto__:null,default:pA},Symbol.toStringTag,{value:"Module"})),mA={props:{mode:{type:String,default:()=>cx.numberKeyboard.value},dotDisabled:{type:Boolean,default:()=>cx.numberKeyboard.dotDisabled},random:{type:Boolean,default:()=>cx.numberKeyboard.random}}};const gA=W_({name:"u-number-keyboard",mixins:[hx,fx,mA],data:()=>({backspace:"backspace",dot:".",timer:null,cardX:"X"}),computed:{numList(){return this.dotDisabled&&"number"==this.mode?this.random?Nw([1,2,3,4,5,6,7,8,9,0]):[1,2,3,4,5,6,7,8,9,0]:this.dotDisabled||"number"!=this.mode?"card"==this.mode?this.random?Nw([1,2,3,4,5,6,7,8,9,this.cardX,0]):[1,2,3,4,5,6,7,8,9,this.cardX,0]:void 0:this.random?Nw([1,2,3,4,5,6,7,8,9,this.dot,0]):[1,2,3,4,5,6,7,8,9,this.dot,0]},itemStyle(){return e=>{let t={};return"number"==this.mode&&this.dotDisabled&&9==e&&(t.width="464rpx"),t}},btnBgGray(){return e=>!this.random&&9==e&&("number"!=this.mode||"number"==this.mode&&!this.dotDisabled)}},created(){},emits:["backspace","change"],methods:{backspaceClick(){this.$emit("backspace"),clearInterval(this.timer),this.timer=null,this.timer=setInterval(()=>{this.$emit("backspace")},250)},clearTimer(){clearInterval(this.timer),this.timer=null},keyboardClick(e){this.dotDisabled||e==this.dot||e==this.cardX||(e=Number(e)),this.$emit("change",e)}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay,l=Bo("up-icon");return Ir(),zr(a,{class:"u-keyboard",onTouchmove:ua(e.noop,["stop","prevent"])},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(r.numList,(e,t)=>(Ir(),zr(a,{class:"u-keyboard__button-wrapper",key:t},{default:So(()=>[jr(a,{class:"u-keyboard__button-wrapper__button",style:qe([r.itemStyle(t)]),onClick:t=>r.keyboardClick(e),"hover-class":"u-hover-class","hover-stay-time":200},{default:So(()=>[jr(s,{class:"u-keyboard__button-wrapper__button__text"},{default:So(()=>[Vr(X(e),1)]),_:2},1024)]),_:2},1032,["style","onClick"])]),_:2},1024))),128)),jr(a,{class:"u-keyboard__button-wrapper"},{default:So(()=>[jr(a,{class:"u-keyboard__button-wrapper__button u-keyboard__button-wrapper__button--gray","hover-class":"u-hover-class","hover-stay-time":200,onTouchstart:ua(r.backspaceClick,["stop"]),onTouchend:r.clearTimer},{default:So(()=>[jr(l,{name:"backspace",color:"#303133",size:"28"})]),_:1},8,["onTouchstart","onTouchend"])]),_:1})]),_:1},8,["onTouchmove"])}],["__scopeId","data-v-56c8a1b8"]]),yA=Object.freeze(Object.defineProperty({__proto__:null,default:gA},Symbol.toStringTag,{value:"Module"})),bA={props:{mode:{type:String,default:()=>cx.keyboard.mode},dotDisabled:{type:Boolean,default:()=>cx.keyboard.dotDisabled},tooltip:{type:Boolean,default:()=>cx.keyboard.tooltip},showTips:{type:Boolean,default:()=>cx.keyboard.showTips},tips:{type:String,default:()=>cx.keyboard.tips},showCancel:{type:Boolean,default:()=>cx.keyboard.showCancel},showConfirm:{type:Boolean,default:()=>cx.keyboard.showConfirm},random:{type:Boolean,default:()=>cx.keyboard.random},safeAreaInsetBottom:{type:Boolean,default:()=>cx.keyboard.safeAreaInsetBottom},closeOnClickOverlay:{type:Boolean,default:()=>cx.keyboard.closeOnClickOverlay},show:{type:Boolean,default:()=>cx.keyboard.show},overlay:{type:Boolean,default:()=>cx.keyboard.overlay},zIndex:{type:[String,Number],default:()=>cx.keyboard.zIndex},cancelText:{type:String,default:()=>cx.keyboard.cancelText},confirmText:{type:String,default:()=>cx.keyboard.confirmText},autoChange:{type:Boolean,default:()=>cx.keyboard.autoChange}}};const vA=W_({name:"u-keyboard",data:()=>({}),mixins:[hx,fx,bA],emits:["change","close","confirm","cancel","backspace"],methods:{change(e){this.$emit("change",e)},popupClose(){this.$emit("close")},onConfirm(){this.$emit("confirm")},onCancel(){this.$emit("cancel")},backspace(){this.$emit("backspace")}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay,l=yx(Po("u-number-keyboard"),gA),c=yx(Po("u-car-keyboard"),LS),u=yx(Po("u-popup"),Yx);return Ir(),zr(u,{overlay:e.overlay,closeOnClickOverlay:e.closeOnClickOverlay,mode:"bottom",popup:!1,show:e.show,safeAreaInsetBottom:e.safeAreaInsetBottom,onClose:r.popupClose,zIndex:e.zIndex,customStyle:{backgroundColor:"rgb(214, 218, 220)"}},{default:So(()=>[jr(a,{class:"u-keyboard"},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0),e.tooltip?(Ir(),zr(a,{key:0,class:"u-keyboard__tooltip"},{default:So(()=>[jr(a,{"hover-class":"u-hover-class","hover-stay-time":100},{default:So(()=>[e.showCancel?(Ir(),zr(s,{key:0,class:"u-keyboard__tooltip__item u-keyboard__tooltip__cancel",onClick:r.onCancel},{default:So(()=>[Vr(X(e.showCancel&&e.cancelText),1)]),_:1},8,["onClick"])):Wr("",!0)]),_:1}),jr(a,null,{default:So(()=>[e.showTips?(Ir(),zr(s,{key:0,class:"u-keyboard__tooltip__item u-keyboard__tooltip__tips"},{default:So(()=>[Vr(X(e.tips?e.tips:"number"==e.mode?"数字键盘":"card"==e.mode?"身份证键盘":"车牌号键盘"),1)]),_:1})):Wr("",!0)]),_:1}),jr(a,{"hover-class":"u-hover-class","hover-stay-time":100},{default:So(()=>[e.showConfirm?(Ir(),zr(s,{key:0,onClick:r.onConfirm,class:"u-keyboard__tooltip__item u-keyboard__tooltip__submit","hover-class":"u-hover-class"},{default:So(()=>[Vr(X(e.showConfirm&&e.confirmText),1)]),_:1},8,["onClick"])):Wr("",!0)]),_:1})]),_:1})):Wr("",!0),"number"==e.mode||"card"==e.mode?(Ir(),zr(l,{key:1,random:e.random,onBackspace:r.backspace,onChange:r.change,mode:e.mode,dotDisabled:e.dotDisabled},null,8,["random","onBackspace","onChange","mode","dotDisabled"])):(Ir(),zr(c,{key:2,random:e.random,autoChange:e.autoChange,onBackspace:r.backspace,onChange:r.change},null,8,["random","autoChange","onBackspace","onChange"]))]),_:3})]),_:3},8,["overlay","closeOnClickOverlay","show","safeAreaInsetBottom","onClose","zIndex","customStyle"])}],["__scopeId","data-v-1d33ea82"]]),_A=Object.freeze(Object.defineProperty({__proto__:null,default:vA},Symbol.toStringTag,{value:"Module"}));const wA=W_({name:"u-lazy-load",props:{index:{type:[Number,String]},image:{type:String,default:""},imgMode:{type:String,default:"widthFix"},loadingImg:{type:String,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OUM0QjNBQjkyQUQ2MTFFQTlCNUQ4RTIzNDE5RUIxNjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OUM0QjNBQkEyQUQ2MTFFQTlCNUQ4RTIzNDE5RUIxNjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5QzRCM0FCNzJBRDYxMUVBOUI1RDhFMjM0MTlFQjE2NyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5QzRCM0FCODJBRDYxMUVBOUI1RDhFMjM0MTlFQjE2NyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PtRHfPcAAAAzUExURZWVldfX18PDw62trZubm9zc3Li4uKGhoebm5tLS0uHh4c3Nzaenp729vcjIyLKysuvr6141L40AAAcXSURBVHja7NzZlqpGAEBR5lG0//9rIw7IJKJi4or7PGTdtN10wr5SVAEGf/qqArsAiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAg+nmQFMi5Jis+sIniED23jSzIgLTtg2D//iYme/8QBM/9lQ+CAEhbNLM3N9hEHAThX7GPCiBfAxK1b51kD+R7QMLjXg7iCsgWIPUh7pfVozG791oeBPngm48G583uW5GkBvI+SBaM2xXDn1oqum423bX/mgF5FySc2cv93Voug9TdZotsggnkBZB2NzbhrSY5HnoG07jei8dvzsJB/c3W60SALILE46+WCztsbhPR7R2VJq0ukEcT49nyy8QhaKcRa3fYHZD4+ufqOJAcgDz8/59vtw1I3QP5K6JsOG0vm3hce4I8LQp/BaRZGJC3AAn7IKOKXbC+7EdA5vdmmVwOLksgRThqOqiH4XEGsht+peoPUE8U/jJIO5OLH4GEwUslV5G0PTBG5Uiw/Y2jyigO3l9HAHKv9PYb82LloH74dZBoBUgar+l48NsNvtD0fkez9iwrAvIYZDRCl+Xs149Hm/KZmQ+QjUCiO1ei4ru7EsgnQYrkznlQb7thCuRfAzlOAPN72427P4VA/i2Q/DKT/Ls/VR8fvIBsDZIuz7TPF6TCbnk4GJkB2RokejTjuE7/unlgCuSTIO0Cy+Plp6vDfnQlBchy8QtjSHVd3EgmK1bHLm+H6+nXYbz2DuQRSPnqoL7vvq0u70on4zvxgCyWD3b9UyDVdW24PaWaiGTnFZJwPIQAebDpIKheBIm7n124ZthMJipAlkqHO+IZkP1tbfzOJark/A7MgKyvvl60fRqkvXfhuow+t9+q00+0/yyBrK8ZngOtBzldhw2X9tvpNGty0gvkmbPeJ0Cy/r09s/stbmfo0yMWkEdjevgKyOn2t2pxv7UXoibTdCDLje9/Ww1ymqzn87dbp92242ZmMRjI8hASvwKSLq4udqN6ksw8nxXN3tszD9L8Gkg+2mFrQYql5az4tvFj5xOx4VwnSdeBtGdyPwUytxK77pBVlNHdO7OK3rh/eTPUvdutT3fO52tuHMqD4N7llv8pyOQQ//w19YVDfX27+Sfuby9/6nau4pdA8vEdOZuChEH/quHt0Jg+IRJ/5+PrHwKZXfjbDiS73Zo7mu5UkzX7uTsXe0e/7nC3ePf1O69+BUg2XDfZCqSqOu7rGVf8cHBe8zhC2b61dtUHXv0OkGo6ZL4JkpbRYXdUaFevivx2M/1GIOctNh949TtAoumQ+TpIHMX54CJu+8BDd8FkE5BqcZh/59XvAClmTvKfB0nDqIlHo3T70SftyW1eX9dXtgQJqs1f/Q6QaOa/7wmQKtxH8eiGoCRuovODIO3VxOMmruZbHrLyD7z6DSDtGyT7ew1kf9hNn07c986JTovzzem0Id9wUG+Vk/IDr34DSNR7huZJkMFT6vEhqrPx/j5cnlZML8N6/PAzh9Y99Flm5Yde/c9BquDOkvkKkMP58dA4qi9vivE8JOvGz/j8FokfPpr288+pH2ZPOZrLmeGD+7KOh6dqYWJ48ki7yUg0tz0go/fv/LLddfV3sgOLJyaGPY/zrSlh1a36Arkzoue9CyG35ze6E6/dzO2Ga0EGHqdRJIkfn9/8OEjTW8Vq91ZWh39FeehWA7Nu9ft8CpUEk1WWOyDF0OPyEU2Pnzf/bZC0P6IPzmAvu7KauQBVrgKpJ0tG2arHzX8e5Pb3PezNs/PrX+3JMyCLn9XXf37tPFHvt09WfCDDjx+yyn1/p1V11j7GnB/q3leLuVva79S/tzed+db08YpF4uOZtmz/9oXWMq6BCAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiAALELvqt/BBgACqVeUBXxcCkAAAAASUVORK5CYII="},errorImg:{type:String,default:"data:image/png;base64, "},threshold:{type:[Number,String],default:100},duration:{type:[Number,String],default:500},effect:{type:String,default:"ease-in-out"},isEffect:{type:Boolean,default:!0},borderRadius:{type:[Number,String],default:0},height:{type:[Number,String],default:"200"}},data(){return{isShow:!1,opacity:1,time:this.duration,loadStatus:"",isError:!1,elIndex:Ew()}},computed:{getThreshold(){let e=fh(Math.abs(this.threshold));return this.threshold<0?-e:e},imgHeight(){return zw(this.height)}},created(){this.observer={}},watch:{isShow(e){this.isEffect&&(this.time=0,this.opacity=0,setTimeout(()=>{this.time=this.duration,this.opacity=1},30))},image(e){e?(this.init(),this.isError=!1):this.isError=!0}},emits:["click","load","error"],methods:{init(){this.isError=!1,this.loadStatus=""},clickImg(){0==this.isShow||this.isError,this.$emit("click",this.index)},imgLoaded(){""==this.loadStatus?this.loadStatus="lazyed":"lazyed"==this.loadStatus&&(this.loadStatus="loaded",this.$emit("load",this.index))},errorImgLoaded(){this.$emit("error",this.index)},loadError(){this.isError=!0},disconnectObserver(e){const t=this[e];t&&t.disconnect()}},beforeUnmount(){},mounted(){this.$nextTick(()=>{yh("uOnReachBottom",()=>{this.isShow||(this.isShow=!0)})}),setTimeout(()=>{const e=Jh(this);e.relativeToViewport({bottom:this.getThreshold}).observe(".u-lazy-item-"+this.elIndex,e=>{e.intersectionRatio>0&&(this.isShow=!0,this.image||this.loadError(),this.disconnectObserver("contentObserver"))}),this.contentObserver=e},30)}},[["render",function(e,t,n,o,i,r){const s=Jm,a=Ay;return Ir(),zr(a,{class:Qe(["u-wrap","u-lazy-item-"+i.elIndex]),style:qe({opacity:Number(i.opacity),borderRadius:n.borderRadius+"rpx",transition:`opacity ${i.time/1e3}s ease-in-out`})},{default:So(()=>[jr(a,{class:Qe("u-lazy-item-"+i.elIndex)},{default:So(()=>[i.isError?(Ir(),zr(s,{key:1,style:qe({borderRadius:n.borderRadius+"rpx",height:r.imgHeight}),class:"u-lazy-item error",src:n.errorImg,mode:n.imgMode,onLoad:r.errorImgLoaded,onClick:r.clickImg},null,8,["style","src","mode","onLoad","onClick"])):(Ir(),zr(s,{key:0,style:qe({borderRadius:n.borderRadius+"rpx",height:r.imgHeight}),class:"u-lazy-item",src:i.isShow?n.image:n.loadingImg,mode:n.imgMode,onLoad:r.imgLoaded,onError:r.loadError,onClick:r.clickImg},null,8,["style","src","mode","onLoad","onError","onClick"]))]),_:1},8,["class"])]),_:1},8,["style","class"])}],["__scopeId","data-v-738709fe"]]),xA=Object.freeze(Object.defineProperty({__proto__:null,default:wA},Symbol.toStringTag,{value:"Module"})),SA={props:{activeColor:{type:String,default:()=>cx.lineProgress.activeColor},inactiveColor:{type:String,default:()=>cx.lineProgress.color},percentage:{type:[String,Number],default:()=>cx.lineProgress.inactiveColor},showText:{type:Boolean,default:()=>cx.lineProgress.showText},height:{type:[String,Number],default:()=>cx.lineProgress.height},fromRight:{type:Boolean,default:()=>cx.lineProgress.fromRight}}};const kA=W_({name:"u-line-progress",mixins:[hx,fx,SA],data:()=>({lineWidth:0}),watch:{percentage(e){this.resizeProgressWidth()}},computed:{progressStyle(){let e={};return e.width=this.lineWidth,e.backgroundColor=this.activeColor,e.height=zw(this.height),this.fromRight?e.right=0:e.left=0,e},innserPercentage(){return xw(0,100,this.percentage)}},mounted(){this.init()},methods:{addStyle:Mw,addUnit:zw,init(){kw(20).then(()=>{this.resizeProgressWidth()})},getProgressWidth(){return this.$uGetRect(".u-line-progress__background")},resizeProgressWidth(){this.getProgressWidth().then(e=>{const{width:t}=e;this.lineWidth=t*this.innserPercentage/100+"px"})}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=wy;return Ir(),zr(s,{class:"u-line-progress",style:qe([r.addStyle(e.customStyle)])},{default:So(()=>[jr(s,{class:"u-line-progress__background",ref:"u-line-progress__background",style:qe([{backgroundColor:e.inactiveColor,height:r.addUnit(e.height)}])},null,8,["style"]),jr(s,{class:"u-line-progress__line",style:qe([r.progressStyle])},{default:So(()=>[Mi(e.$slots,"default",{},()=>[e.showText&&e.percentage>=10?(Ir(),zr(a,{key:0,class:"u-line-progress__text"},{default:So(()=>[Vr(X(r.innserPercentage+"%"),1)]),_:1})):Wr("",!0)],!0)]),_:3},8,["style"])]),_:3},8,["style"])}],["__scopeId","data-v-25abc90e"]]),CA=Object.freeze(Object.defineProperty({__proto__:null,default:kA},Symbol.toStringTag,{value:"Module"})),AA={props:{color:{type:String,default:()=>cx.link.color},fontSize:{type:[String,Number],default:()=>cx.link.fontSize},underLine:{type:Boolean,default:()=>cx.link.underLine},href:{type:String,default:()=>cx.link.href},mpTips:{type:String,default:()=>cx.link.mpTips},lineColor:{type:String,default:()=>cx.link.lineColor},text:{type:String,default:()=>cx.link.text}}};const TA=W_({name:"u-link",mixins:[hx,fx,AA],computed:{linkStyle(){return{color:this.color,fontSize:zw(this.fontSize),lineHeight:zw(Sw(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"}}},emits:["click"],methods:{addStyle:Mw,openLink(){window.open(this.href),this.$emit("click")}}},[["render",function(e,t,n,o,i,r){const s=wy;return Ir(),zr(s,{class:"u-link",onClick:ua(r.openLink,["stop"]),style:qe([r.linkStyle,r.addStyle(e.customStyle)])},{default:So(()=>[Vr(X(e.text),1)]),_:1},8,["onClick","style"])}],["__scopeId","data-v-55282b5f"]]),IA=Object.freeze(Object.defineProperty({__proto__:null,default:TA},Symbol.toStringTag,{value:"Module"}));const BA=W_({name:"u-list-item",mixins:[hx,fx,{props:{anchor:{type:[String,Number],default:()=>cx.listItem.anchor}}}],data:()=>({rect:{},index:0,show:!0,sys:Tw()}),computed:{},inject:["uList"],watch:{"uList.innerScrollTop"(e){const t=this.uList.preLoadScreen,n=this.sys.windowHeight;e<=n*t?this.parent.updateOffsetFromChild(0):this.rect.top<=e-n*t&&this.parent.updateOffsetFromChild(this.rect.top)}},created(){this.parent={}},mounted(){this.init()},methods:{init(){this.updateParentData(),this.index=this.parent.children.indexOf(this),this.resize()},updateParentData(){this.getParentData("u-list")},resize(){this.queryRect(`u-list-item-${this.anchor}`).then(e=>{const t=this.parent.children[this.index-1];this.rect=e;const n=this.uList.preLoadScreen,o=this.sys.windowHeight;t&&(this.rect.top=t.rect.top+t.rect.height),e.top>=this.uList.innerScrollTop+(1+n)*o&&(this.show=!1)})},queryRect(e){return new Promise(t=>{this.$uGetRect(`.${e}`).then(e=>{t(e)})})}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:Qe(["u-list-item",[`u-list-item-${e.anchor}`]]),ref:`u-list-item-${e.anchor}`,anchor:`u-list-item-${e.anchor}`},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["anchor","class"])}],["__scopeId","data-v-55822a69"]]),EA=Object.freeze(Object.defineProperty({__proto__:null,default:BA},Symbol.toStringTag,{value:"Module"})),PA={props:{showScrollbar:{type:Boolean,default:()=>cx.list.showScrollbar},lowerThreshold:{type:[String,Number],default:()=>cx.list.lowerThreshold},upperThreshold:{type:[String,Number],default:()=>cx.list.upperThreshold},scrollTop:{type:[String,Number],default:()=>cx.list.scrollTop},offsetAccuracy:{type:[String,Number],default:()=>cx.list.offsetAccuracy},enableFlex:{type:Boolean,default:()=>cx.list.enableFlex},pagingEnabled:{type:Boolean,default:()=>cx.list.pagingEnabled},scrollable:{type:Boolean,default:()=>cx.list.scrollable},scrollIntoView:{type:String,default:()=>cx.list.scrollIntoView},scrollWithAnimation:{type:Boolean,default:()=>cx.list.scrollWithAnimation},enableBackToTop:{type:Boolean,default:()=>cx.list.enableBackToTop},height:{type:[String,Number],default:()=>cx.list.height},width:{type:[String,Number],default:()=>cx.list.width},preLoadScreen:{type:[String,Number],default:()=>cx.list.preLoadScreen},refresherEnabled:{type:Boolean,default:()=>!1},refresherThreshold:{type:Number,default:()=>45},refresherDefaultStyle:{type:String,default:()=>"black"},refresherBackground:{type:String,default:()=>"#FFF"},refresherTriggered:{type:Boolean,default:()=>!1}}};const MA=W_({name:"u-list",mixins:[hx,fx,PA],watch:{scrollIntoView(e){this.scrollIntoViewById(e)}},data:()=>({innerScrollTop:0,offset:0,sys:Tw()}),computed:{listStyle(){const e={};return 0!=this.width&&(e.width=zw(this.width)),0!=this.height&&(e.height=zw(this.height)),e.height||(e.height=zw(this.sys.windowHeight,"px")),Rw(e,Mw(this.customStyle))}},provide(){return{uList:this}},created(){this.refs=[],this.children=[],this.anchors=[]},mounted(){},emits:["scroll","scrolltolower","scrolltoupper","refresherpulling","refresherrefresh","refresherrestore","refresherabort"],methods:{updateOffsetFromChild(e){this.offset=e},onScroll(e){let t=0;t=e.detail.scrollTop,this.innerScrollTop=t,this.$emit("scroll",t)},scrollIntoViewById(e){},scrolltolower(e){kw(30).then(()=>{this.$emit("scrolltolower")})},scrolltoupper(e){kw(30).then(()=>{this.$emit("scrolltoupper"),this.offset=0})},refresherpulling(e){this.$emit("refresherpulling",e)},refresherrefresh(e){this.$emit("refresherrefresh",e)},refresherrestore(e){this.$emit("refresherrestore",e)},refresherabort(e){this.$emit("refresherabort",e)}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=dy;return Ir(),zr(a,{class:"u-list","scroll-into-view":e.scrollIntoView,style:qe([r.listStyle]),"scroll-y":e.scrollable,"scroll-top":Number(e.scrollTop),"lower-threshold":Number(e.lowerThreshold),"upper-threshold":Number(e.upperThreshold),"show-scrollbar":e.showScrollbar,"enable-back-to-top":e.enableBackToTop,"scroll-with-animation":e.scrollWithAnimation,onScroll:r.onScroll,onScrolltolower:r.scrolltolower,onScrolltoupper:r.scrolltoupper,"refresher-enabled":e.refresherEnabled,"refresher-threshold":e.refresherThreshold,"refresher-default-style":e.refresherDefaultStyle,"refresher-background":e.refresherBackground,"refresher-triggered":e.refresherTriggered,onRefresherpulling:r.refresherpulling,onRefresherrefresh:r.refresherrefresh,onRefresherrestore:r.refresherrestore,onRefresherabort:r.refresherabort,"scroll-anchoring":!0},{default:So(()=>[jr(s,null,{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3},8,["scroll-into-view","style","scroll-y","scroll-top","lower-threshold","upper-threshold","show-scrollbar","enable-back-to-top","scroll-with-animation","onScroll","onScrolltolower","onScrolltoupper","refresher-enabled","refresher-threshold","refresher-default-style","refresher-background","refresher-triggered","onRefresherpulling","onRefresherrefresh","onRefresherrestore","onRefresherabort"])}],["__scopeId","data-v-af8d329d"]]),zA=Object.freeze(Object.defineProperty({__proto__:null,default:MA},Symbol.toStringTag,{value:"Module"})),OA={props:{loadingText:{type:[String,Number],default:()=>cx.loadingPage.loadingText},image:{type:String,default:()=>cx.loadingPage.image},loadingMode:{type:String,default:()=>cx.loadingPage.loadingMode},loading:{type:Boolean,default:()=>cx.loadingPage.loading},bgColor:{type:String,default:()=>cx.loadingPage.bgColor},color:{type:String,default:()=>cx.loadingPage.color},fontSize:{type:[String,Number],default:()=>cx.loadingPage.fontSize},iconSize:{type:[String,Number],default:()=>cx.loadingPage.fontSize},loadingColor:{type:String,default:()=>cx.loadingPage.loadingColor},zIndex:{type:[Number],default:()=>cx.loadingPage.zIndex}}};const RA=W_({name:"u-loading-page",mixins:[hx,fx,OA],data:()=>({}),methods:{addUnit:zw}},[["render",function(e,t,n,o,i,r){const s=Jm,a=yx(Po("u-loading-icon"),Px),l=Ay,c=wy,u=yx(Po("u-transition"),Nx);return Ir(),zr(u,{show:e.loading,"custom-style":{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:e.bgColor,display:"flex",zIndex:e.zIndex,...e.customStyle}},{default:So(()=>[jr(l,{class:"u-loading-page"},{default:So(()=>[jr(l,{class:"u-loading-page__warpper"},{default:So(()=>[jr(l,{class:"u-loading-page__warpper__loading-icon"},{default:So(()=>[e.image?(Ir(),zr(s,{key:0,src:e.image,class:"u-loading-page__warpper__loading-icon__img",mode:"widthFit",style:qe({width:r.addUnit(e.iconSize),height:r.addUnit(e.iconSize)})},null,8,["src","style"])):(Ir(),zr(a,{key:1,mode:e.loadingMode,size:r.addUnit(e.iconSize),color:e.loadingColor},null,8,["mode","size","color"]))]),_:1}),Mi(e.$slots,"default",{},()=>[jr(c,{class:"u-loading-page__warpper__text",style:qe({fontSize:r.addUnit(e.fontSize),color:e.color})},{default:So(()=>[Vr(X(e.loadingText),1)]),_:1},8,["style"])],!0)]),_:3})]),_:3})]),_:3},8,["show","custom-style"])}],["__scopeId","data-v-a6d6386b"]]),LA=Object.freeze(Object.defineProperty({__proto__:null,default:RA},Symbol.toStringTag,{value:"Module"})),DA={props:{status:{type:String,default:()=>cx.loadmore.status},bgColor:{type:String,default:()=>cx.loadmore.bgColor},icon:{type:Boolean,default:()=>cx.loadmore.icon},fontSize:{type:[String,Number],default:()=>cx.loadmore.fontSize},iconSize:{type:[String,Number],default:()=>cx.loadmore.iconSize},color:{type:String,default:()=>cx.loadmore.color},loadingIcon:{type:String,default:()=>cx.loadmore.loadingIcon},loadmoreText:{type:String,default:()=>cx.loadmore.loadmoreText},loadingText:{type:String,default:()=>cx.loadmore.loadingText},nomoreText:{type:String,default:()=>cx.loadmore.nomoreText},isDot:{type:Boolean,default:()=>cx.loadmore.isDot},iconColor:{type:String,default:()=>cx.loadmore.iconColor},marginTop:{type:[String,Number],default:()=>cx.loadmore.marginTop},marginBottom:{type:[String,Number],default:()=>cx.loadmore.marginBottom},height:{type:[String,Number],default:()=>cx.loadmore.height},line:{type:Boolean,default:()=>cx.loadmore.line},lineColor:{type:String,default:()=>cx.loadmore.lineColor},dashed:{type:Boolean,default:()=>cx.loadmore.dashed}}};const NA=W_({name:"u-loadmore",mixins:[hx,fx,DA],data:()=>({dotText:"●"}),computed:{loadTextStyle(){return{color:this.color,fontSize:zw(this.fontSize),lineHeight:zw(this.fontSize),backgroundColor:this.bgColor}},showText(){let e="";return e="loadmore"==this.status?this.loadmoreText:"loading"==this.status?this.loadingText:"nomore"==this.status&&this.isDot?this.dotText:this.nomoreText,e}},emits:["loadmore"],methods:{addStyle:Mw,addUnit:zw,loadMore(){"loadmore"==this.status&&this.$emit("loadmore")}}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-line"),mx),a=yx(Po("u-loading-icon"),Px),l=Ay,c=wy;return Ir(),zr(l,{class:"u-loadmore",style:qe([r.addStyle(e.customStyle),{backgroundColor:e.bgColor,marginBottom:r.addUnit(e.marginBottom),marginTop:r.addUnit(e.marginTop),height:r.addUnit(e.height)}])},{default:So(()=>[e.line?(Ir(),zr(s,{key:0,length:"140rpx",color:e.lineColor,hairline:!1,dashed:e.dashed},null,8,["color","dashed"])):Wr("",!0),jr(l,{class:Qe(["loadmore"==e.status||"nomore"==e.status?"u-more":"","u-loadmore__content"])},{default:So(()=>["loading"===e.status&&e.icon?(Ir(),zr(l,{key:0,class:"u-loadmore__content__icon-wrap"},{default:So(()=>[jr(a,{color:e.iconColor,size:e.iconSize,mode:e.loadingIcon},null,8,["color","size","mode"])]),_:1})):Wr("",!0),jr(c,{class:Qe(["u-line-1",["nomore"==e.status&&1==e.isDot?"u-loadmore__content__dot-text":"u-loadmore__content__text"]]),style:qe([r.loadTextStyle]),onClick:r.loadMore},{default:So(()=>[Vr(X(r.showText),1)]),_:1},8,["style","class","onClick"])]),_:1},8,["class"]),e.line?(Ir(),zr(s,{key:1,length:"140rpx",color:e.lineColor,hairline:!1,dashed:e.dashed},null,8,["color","dashed"])):Wr("",!0)]),_:1},8,["style"])}],["__scopeId","data-v-6152b78f"]]),$A=Object.freeze(Object.defineProperty({__proto__:null,default:NA},Symbol.toStringTag,{value:"Module"}));var jA={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function HA(e){jA=e}var FA={exec:()=>null};function VA(e,t=""){let n="string"==typeof e?e:e.source,o={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(WA.caret,"$1"),n=n.replace(e,i),o},getRegex:()=>new RegExp(n,t)};return o}var WA={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[a-zA-Z0-9\u00C0-\u02AF\u0300-\u036F\u0400-\u04FF\u0500-\u052F\u1E00-\u1EFF]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},UA=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qA=/(?:[*+-]|\d{1,9}[.)])/,QA=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,YA=VA(QA).replace(/bull/g,qA).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),GA=VA(QA).replace(/bull/g,qA).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),XA=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,KA=/(?!\s*\])(?:\\.|[^\[\]\\])+/,JA=VA(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",KA).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ZA=VA(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,qA).getRegex(),eT="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",tT=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,nT=VA("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",tT).replace("tag",eT).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),oT=VA(XA).replace("hr",UA).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eT).getRegex(),iT={blockquote:VA(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",oT).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:JA,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:UA,html:nT,lheading:YA,list:ZA,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:oT,table:FA,text:/^[^\n]+/},rT=VA("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",UA).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eT).getRegex(),sT={...iT,lheading:GA,table:rT,paragraph:VA(XA).replace("hr",UA).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rT).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eT).getRegex()},aT={...iT,html:VA("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",tT).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:FA,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:VA(XA).replace("hr",UA).replace("heading"," *#{1,6} *[^\n]").replace("lheading",YA).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lT=/^( {2,}|\\)\n(?!\s*$)/,cT=/[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~·！￥……（）——《》「」『』【】、；：‘’“”，。、]/u,uT=/[\s!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~·！￥……（）——《》「」『』【】、；：‘’“”，。、]/,dT=/[^a-zA-Z0-9\u4e00-\u9fa5\s!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~·！￥……（）——《》「」『』【】、；：‘’“”，。、]/,hT=VA(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,uT).getRegex(),pT=/[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}·！￥……（）——《》「」『』【】、；：‘’“”，。、]/,fT=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,mT=VA(fT,"u").replace(/punct/g,cT).getRegex(),gT=VA(fT,"u").replace(/punct/g,pT).getRegex(),yT="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bT=VA(yT,"gu").replace(/notPunctSpace/g,dT).replace(/punctSpace/g,uT).replace(/punct/g,cT).getRegex(),vT=VA(yT,"gu").replace(/notPunctSpace/g,/[a-zA-Z0-9\u4e00-\u9fa5~]/).replace(/punctSpace/g,/[\s!"#$%&'()*+,-./:;<=>?@[\]^_`{|}·！￥……（）——《》「」『』【】、；：‘’“”，。、]/).replace(/punct/g,pT).getRegex(),_T=VA("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,dT).replace(/punctSpace/g,uT).replace(/punct/g,cT).getRegex(),wT=VA(/\\(punct)/,"gu").replace(/punct/g,cT).getRegex(),xT=VA(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ST=VA(tT).replace("(?:--\x3e|$)","--\x3e").getRegex(),kT=VA("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ST).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),CT=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,AT=VA(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",CT).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),TT=VA(/^!?\[(label)\]\[(ref)\]/).replace("label",CT).replace("ref",KA).getRegex(),IT=VA(/^!?\[(ref)\](?:\[\])?/).replace("ref",KA).getRegex(),BT={_backpedal:FA,anyPunctuation:wT,autolink:xT,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:lT,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:FA,emStrongLDelim:mT,emStrongRDelimAst:bT,emStrongRDelimUnd:_T,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:AT,nolink:IT,punctuation:hT,reflink:TT,reflinkSearch:VA("reflink|nolink(?!\\()","g").replace("reflink",TT).replace("nolink",IT).getRegex(),tag:kT,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:FA},ET={...BT,link:VA(/^!?\[(label)\]\((.*?)\)/).replace("label",CT).getRegex(),reflink:VA(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",CT).getRegex()},PT={...BT,emStrongRDelimAst:vT,emStrongLDelim:gT,url:VA(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},MT={...PT,br:VA(lT).replace("{2,}","*").getRegex(),text:VA(PT.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zT={normal:iT,gfm:sT,pedantic:aT},OT={normal:BT,gfm:PT,breaks:MT,pedantic:ET},RT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},LT=e=>RT[e];function DT(e,t){if(t){if(WA.escapeTest.test(e))return e.replace(WA.escapeReplace,LT)}else if(WA.escapeTestNoEncode.test(e))return e.replace(WA.escapeReplaceNoEncode,LT);return e}function NT(e){try{e=encodeURI(e).replace(WA.percentDecode,"%")}catch{return null}return e}function $T(e,t){var n;let o=e.replace(WA.findPipe,(e,t,n)=>{let o=!1,i=t;for(;--i>=0&&"\\"===n[i];)o=!o;return o?"|":" |"}).split(WA.splitPipe),i=0;if(o[0].trim()||o.shift(),o.length>0&&!(null==(n=o.at(-1))?void 0:n.trim())&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length<t;)o.push("");for(;i<o.length;i++)o[i]=o[i].trim().replace(WA.slashPipe,"|");return o}function jT(e,t,n){let o=e.length;if(0===o)return"";let i=0;for(;i<o;){let r=e.charAt(o-i-1);if(r!==t||n){if(r===t||!n)break;i++}else i++}return e.slice(0,o-i)}function HT(e,t,n,o,i){let r=t.href,s=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");o.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:r,title:s,text:a,tokens:o.inlineTokens(a)};return o.state.inLink=!1,l}var FT=class{constructor(e){n(this,"options"),n(this,"rules"),n(this,"lexer"),this.options=e||jA}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:jT(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let o=e.match(n.other.indentCodeCompensation);if(null===o)return t;let i=o[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[o]=t;return o.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=jT(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:jT(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=jT(t[0],"\n").split("\n"),n="",o="",i=[];for(;e.length>0;){let t,r=!1,s=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))s.push(e[t]),r=!0;else{if(r)break;s.push(e[t])}e=e.slice(t);let a=s.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n    $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,o=o?`${o}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,r=t.raw+"\n"+e.join("\n"),s=this.blockquote(r);i[i.length-1]=s,n=n.substring(0,n.length-t.raw.length)+s.raw,o=o.substring(0,o.length-t.text.length)+s.text;break}if("list"!==(null==u?void 0:u.type));else{let t=u,r=t.raw+"\n"+e.join("\n"),s=this.list(r);i[i.length-1]=s,n=n.substring(0,n.length-u.raw.length)+s.raw,o=o.substring(0,o.length-t.raw.length)+s.raw,e=r.substring(i.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:i,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),o=n.length>1,i={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");let r=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,o="",a="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;o=t[0],e=e.substring(o.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,a=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,a=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(o+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),r=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d);for(;e;){let h,p=e.split("\n",1)[0];if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting,"  "),h=c):h=c.replace(this.rules.other.tabCharGlobal,"    "),i.test(c)||r.test(c)||s.test(c)||t.test(c)||n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=d||!c.trim())a+="\n"+h.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||r.test(l)||n.test(l))break;a+="\n"+c}!u&&!c.trim()&&(u=!0),o+=p+"\n",e=e.substring(p.length+1),l=h.slice(d)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(o)&&(s=!0));let h,p=null;this.options.gfm&&(p=this.rules.other.listIsTask.exec(a),p&&(h="[ ] "!==p[0],a=a.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:o,task:!!p,checked:h,loose:!1,text:a,tokens:[]}),i.raw+=o}let a=i.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:o}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let o=$T(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=(null==(t=n[3])?void 0:t.trim())?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(o.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?s.align.push("right"):this.rules.other.tableAlignCenter.test(e)?s.align.push("center"):this.rules.other.tableAlignLeft.test(e)?s.align.push("left"):s.align.push(null);for(let e=0;e<o.length;e++)s.header.push({text:o[e],tokens:this.lexer.inline(o[e]),header:!0,align:s.align[e]});for(let e of r)s.rows.push($T(e,s.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:s.align[t]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=jT(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let o=0;o<e.length;o++)if("\\"===e[o])o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],o="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],o=e[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),HT(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return HT(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!(!o||o[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!o[1]&&!o[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,r=[...o[0]].length-1,s=r,a=0,l="*"===o[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(o=l.exec(t));){if(n=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!n)continue;if(i=[...n].length,o[3]||o[4]){s+=i;continue}if((o[5]||o[6])&&r%3&&!((r+i)%3)){a+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+a);let t=[...o[0]][0].length,l=e.slice(0,r+o.index+t+i);if(Math.min(r,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),o=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&o&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let n;if(n=this.rules.inline.url.exec(e)){let e,o;if("@"===n[2])e=n[0],o="mailto:"+e;else{let i;do{i=n[0],n[0]=(null==(t=this.rules.inline._backpedal.exec(n[0]))?void 0:t[0])??""}while(i!==n[0]);e=n[0],o="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},VT=class e{constructor(e){n(this,"tokens"),n(this,"options"),n(this,"state"),n(this,"tokenizer"),n(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||jA,this.options.tokenizer=this.options.tokenizer||new FT,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:WA,block:zT.normal,inline:OT.normal};this.options.pedantic?(t.block=zT.pedantic,t.inline=OT.pedantic):this.options.gfm&&(t.block=zT.gfm,this.options.breaks?t.inline=OT.breaks:t.inline=OT.gfm),this.tokenizer.rules=t}static get rules(){return{block:zT,inline:OT}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(WA.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var o,i,r;for(this.options.pedantic&&(e=e.replace(WA.tabCharGlobal,"    ").replace(WA.spaceLine,""));e;){let s;if(null==(i=null==(o=this.options.extensions)?void 0:o.block)?void 0:i.some(n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);let n=t.at(-1);1===s.raw.length&&void 0!==n?n.raw+="\n":t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+s.raw,n.text+="\n"+s.text,this.inlineQueue.at(-1).src=n.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+s.raw,n.text+="\n"+s.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let a=e;if(null==(r=this.options.extensions)?void 0:r.startBlock){let t,n=1/0,o=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},o),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(a=e.substring(0,n+1))}if(this.state.top&&(s=this.tokenizer.paragraph(a))){let o=t.at(-1);n&&"paragraph"===(null==o?void 0:o.type)?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+s.raw,o.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(s),n=a.length!==e.length,e=e.substring(s.raw.length)}else if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);let n=t.at(-1);"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(s)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var n,o,i;let r=e,s=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(r));)r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let a=!1,l="";for(;e;){let s;if(a||(l=""),a=!1,null==(o=null==(n=this.options.extensions)?void 0:n.inline)?void 0:o.some(n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))continue;if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);let n=t.at(-1);"text"===s.type&&"text"===(null==n?void 0:n.type)?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.emStrong(e,r,l)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}let c=e;if(null==(i=this.options.extensions)?void 0:i.startInline){let t,n=1/0,o=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},o),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(c=e.substring(0,n+1))}if(s=this.tokenizer.inlineText(c)){e=e.substring(s.raw.length),"_"!==s.raw.slice(-1)&&(l=s.raw.slice(-1)),a=!0;let n=t.at(-1);"text"===(null==n?void 0:n.type)?(n.raw+=s.raw,n.text+=s.text):t.push(s)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},WT=class{constructor(e){n(this,"options"),n(this,"parser"),this.options=e||jA}space(e){return""}code({text:e,lang:t,escaped:n}){var o;let i=null==(o=(t||"").match(WA.notSpaceStart))?void 0:o[0],r=e.replace(WA.endingNewline,"")+"\n";return i?'<pre><code class="language-'+DT(i)+'">'+(n?r:DT(r,!0))+"</code></pre>\n":"<pre><code>"+(n?r:DT(r,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,o="";for(let r=0;r<e.items.length;r++){let t=e.items[r];o+=this.listitem(t)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+o+"</"+i+">\n"}listitem(e){var t;let n="";if(e.task){let o=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=o+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=o+" "+DT(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):n+=o+" "}return n+=this.parser.parse(e.tokens,!!e.loose),`<li>${n}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let o="";for(let i=0;i<e.rows.length;i++){let t=e.rows[i];n="";for(let e=0;e<t.length;e++)n+=this.tablecell(t[e]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+o+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${DT(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let o=this.parser.parseInline(n),i=NT(e);if(null===i)return o;let r='<a href="'+(e=i)+'"';return t&&(r+=' title="'+DT(t)+'"'),r+=">"+o+"</a>",r}image({href:e,title:t,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let i=NT(e);if(null===i)return DT(n);let r=`<img src="${e=i}" alt="${n}"`;return t&&(r+=` title="${DT(t)}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:DT(e.text)}},UT=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},qT=class e{constructor(e){n(this,"options"),n(this,"renderer"),n(this,"textRenderer"),this.options=e||jA,this.options.renderer=this.options.renderer||new WT,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new UT}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){var n,o;let i="";for(let r=0;r<e.length;r++){let s=e[r];if(null==(o=null==(n=this.options.extensions)?void 0:n.renderers)?void 0:o[s.type]){let e=s,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}let a=s;switch(a.type){case"space":i+=this.renderer.space(a);continue;case"hr":i+=this.renderer.hr(a);continue;case"heading":i+=this.renderer.heading(a);continue;case"code":i+=this.renderer.code(a);continue;case"table":i+=this.renderer.table(a);continue;case"blockquote":i+=this.renderer.blockquote(a);continue;case"list":i+=this.renderer.list(a);continue;case"html":i+=this.renderer.html(a);continue;case"paragraph":i+=this.renderer.paragraph(a);continue;case"text":{let n=a,o=this.renderer.text(n);for(;r+1<e.length&&"text"===e[r+1].type;)n=e[++r],o+="\n"+this.renderer.text(n);i+=t?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):o;continue}default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}parseInline(e,t=this.renderer){var n,o;let i="";for(let r=0;r<e.length;r++){let s=e[r];if(null==(o=null==(n=this.options.extensions)?void 0:n.renderers)?void 0:o[s.type]){let e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=e||"";continue}}let a=s;switch(a.type){case"escape":case"text":i+=t.text(a);break;case"html":i+=t.html(a);break;case"link":i+=t.link(a);break;case"image":i+=t.image(a);break;case"strong":i+=t.strong(a);break;case"em":i+=t.em(a);break;case"codespan":i+=t.codespan(a);break;case"br":i+=t.br(a);break;case"del":i+=t.del(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}},QT=(e=class{constructor(e){n(this,"options"),n(this,"block"),this.options=e||jA}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?VT.lex:VT.lexInline}provideParser(){return this.block?qT.parse:qT.parseInline}},n(e,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),e),YT=new class{constructor(...e){n(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),n(this,"options",this.setOptions),n(this,"parse",this.parseMarkdown(!0)),n(this,"parseInline",this.parseMarkdown(!1)),n(this,"Parser",qT),n(this,"Renderer",WT),n(this,"TextRenderer",UT),n(this,"Lexer",VT),n(this,"Tokenizer",FT),n(this,"Hooks",QT),this.use(...e)}walkTokens(e,t){var n,o;let i=[];for(let r of e)switch(i=i.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let n of e.header)i=i.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=r;i=i.concat(this.walkTokens(e.items,t));break}default:{let e=r;(null==(o=null==(n=this.defaults.extensions)?void 0:n.childTokens)?void 0:o[e.type])?this.defaults.extensions.childTokens[e.type].forEach(n=>{let o=e[n].flat(1/0);i=i.concat(this.walkTokens(o,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let o=e.renderer.apply(this,t);return!1===o&&(o=n.apply(this,t)),o}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new WT(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let o=n,i=e.renderer[o],r=t[o];t[o]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=r.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new FT(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let o=n,i=e.tokenizer[o],r=t[o];t[o]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=r.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new QT;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let o=n,i=e.hooks[o],r=t[o];QT.passThroughHooks.has(n)?t[o]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>r.call(t,e));let n=i.call(t,e);return r.call(t,n)}:t[o]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=r.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,o=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(o.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return VT.lex(e,t??this.defaults)}parser(e,t){return qT.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let o={...n},i={...this.defaults,...o},r=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===o.async)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return r(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let s=i.hooks?i.hooks.provideLexer():e?VT.lex:VT.lexInline,a=i.hooks?i.hooks.provideParser():e?qT.parse:qT.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>a(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(r);try{i.hooks&&(t=i.hooks.preprocess(t));let e=s(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=a(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(l){return r(l)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+DT(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function GT(e,t){return YT.parse(e,t)}GT.options=GT.setOptions=function(e){return YT.setOptions(e),GT.defaults=YT.defaults,HA(GT.defaults),GT},GT.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},GT.defaults=jA,GT.use=function(...e){return YT.use(...e),GT.defaults=YT.defaults,HA(GT.defaults),GT},GT.walkTokens=function(e,t){return YT.walkTokens(e,t)},GT.parseInline=YT.parseInline,GT.Parser=qT,GT.parser=qT.parse,GT.Renderer=WT,GT.TextRenderer=UT,GT.Lexer=VT,GT.lexer=VT.lex,GT.Tokenizer=FT,GT.Hooks=QT,GT.parse=GT,GT.options,GT.setOptions,GT.use,GT.walkTokens,GT.parseInline,qT.parse,VT.lex;const XT=W_({name:"up-markdown",props:{content:{type:String,default:""},previewImg:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},theme:{type:String,default:"light"}},data:()=>({parsedContent:""}),watch:{content:{handler(e){this.parseMarkdown(e)},immediate:!0}},methods:{parseMarkdown(e){if(!e)return void(this.parsedContent="");let t=GT(e);t=this.handleCodeBlock(t),t=this.applyTheme(t),this.parsedContent=t},handleCodeBlock(e){return e.replace(/<pre><code([^>]*)>([^<]+)<\/code><\/pre>/g,(e,t,n)=>{const o=t.match(/class="language-([^"]+)"/),i=o?`language-${o[1]}`:"";let r=`<pre class="up-markdown-code ${i}">`;if(this.showLineNumber){const e=n.split("\n").filter(e=>""!==e.trim());r+='<span class="up-markdown-line-numbers">',e.push(""),e.forEach((e,t)=>{r+=`<span class="up-markdown-line-number">${t+1}</span>`}),r+="</span>"}return r+=`<code class='code-lang ${i}'>${n}</code></pre>`,r})},applyTheme:e=>e}},[["render",function(e,t,n,o,i,r){const s=Bo("up-parse"),a=Ay;return Ir(),zr(a,{class:Qe(["up-markdown",n.theme])},{default:So(()=>[jr(s,{content:i.parsedContent,previewImg:n.previewImg},null,8,["content","previewImg"])]),_:1},8,["class"])}],["__scopeId","data-v-6ce777f9"]]),KT=Object.freeze(Object.defineProperty({__proto__:null,default:XT},Symbol.toStringTag,{value:"Module"}));const JT=W_({name:"u-message-input",props:{maxlength:{type:[Number,String],default:4},dotFill:{type:Boolean,default:!1},mode:{type:String,default:"box"},modelValue:{type:[String,Number],default:""},breathe:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},bold:{type:Boolean,default:!1},fontSize:{type:[String,Number],default:60},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#606266"},width:{type:[Number,String],default:"80"},disabledKeyboard:{type:Boolean,default:!1}},watch:{modelValue:{immediate:!0,handler(e){e=String(e),this.valueModel=e.substring(0,this.maxlength)}}},data:()=>({valueModel:""}),emits:["change","finish"],computed:{animationClass(){return e=>this.breathe&&this.charArr.length==e?"u-breathe":""},charArr(){return this.valueModel.split("")},charArrLength(){return this.charArr.length},loopCharArr(){return new Array(this.maxlength)}},methods:{getVal(e){let{value:t}=e.detail;this.valueModel=t,String(t).length>this.maxlength||(this.$emit("change",t),String(t).length==this.maxlength&&this.$emit("finish",t))}}},[["render",function(e,t,n,o,i,r){const s=_g,a=Ay,l=wy;return Ir(),zr(a,{class:"u-char-box"},{default:So(()=>[jr(a,{class:"u-char-flex"},{default:So(()=>[jr(s,{disabled:n.disabledKeyboard,value:i.valueModel,type:"number",focus:n.focus,maxlength:n.maxlength,class:"u-input",onInput:r.getVal},null,8,["disabled","value","focus","maxlength","onInput"]),(Ir(!0),Mr(xr,null,Pi(r.loopCharArr,(e,t)=>(Ir(),zr(a,{key:t},{default:So(()=>[jr(a,{class:Qe([n.breathe&&r.charArrLength==t?"u-breathe":"","u-char-item",r.charArrLength===t&&"box"==n.mode?"u-box-active":"","box"===n.mode?"u-box":""]),style:qe({fontWeight:n.bold?"bold":"normal",fontSize:n.fontSize+"rpx",width:n.width+"rpx",height:n.width+"rpx",color:n.inactiveColor,borderColor:r.charArrLength===t&&"box"==n.mode?n.activeColor:n.inactiveColor})},{default:So(()=>["middleLine"!==n.mode?(Ir(),zr(a,{key:0,class:"u-placeholder-line",style:qe({display:r.charArrLength===t?"block":"none",height:.5*n.width+"rpx"})},null,8,["style"])):Wr("",!0),"middleLine"===n.mode&&r.charArrLength<=t?(Ir(),zr(a,{key:1,class:Qe([[n.breathe&&r.charArrLength==t?"u-breathe":"",r.charArrLength===t?"u-middle-line-active":""],"u-middle-line"]),style:qe({height:n.bold?"4px":"2px",background:r.charArrLength===t?n.activeColor:n.inactiveColor})},null,8,["class","style"])):Wr("",!0),"bottomLine"===n.mode?(Ir(),zr(a,{key:2,class:Qe([[n.breathe&&r.charArrLength==t?"u-breathe":"",r.charArrLength===t?"u-bottom-line-active":""],"u-bottom-line"]),style:qe({height:n.bold?"4px":"2px",background:r.charArrLength===t?n.activeColor:n.inactiveColor})},null,8,["class","style"])):Wr("",!0),n.dotFill?(Ir(),zr(l,{key:4,class:"u-dot"},{default:So(()=>[Vr(X(r.charArr[t]?"●":""),1)]),_:2},1024)):(Ir(),Mr(xr,{key:3},[Vr(X(r.charArr[t]?r.charArr[t]:""),1)],64))]),_:2},1032,["class","style"])]),_:2},1024))),128))]),_:1})]),_:1})}],["__scopeId","data-v-3aab8917"]]),ZT=Object.freeze(Object.defineProperty({__proto__:null,default:JT},Symbol.toStringTag,{value:"Module"})),eI={props:{show:{type:Boolean,default:()=>cx.modal.show},title:{type:[String],default:()=>cx.modal.title},content:{type:String,default:()=>cx.modal.content},confirmText:{type:String,default:()=>cx.modal.confirmText},cancelText:{type:String,default:()=>cx.modal.cancelText},showConfirmButton:{type:Boolean,default:()=>cx.modal.showConfirmButton},showCancelButton:{type:Boolean,default:()=>cx.modal.showCancelButton},confirmColor:{type:String,default:()=>cx.modal.confirmColor},cancelColor:{type:String,default:()=>cx.modal.cancelColor},buttonReverse:{type:Boolean,default:()=>cx.modal.buttonReverse},zoom:{type:Boolean,default:()=>cx.modal.zoom},asyncClose:{type:Boolean,default:()=>cx.modal.asyncClose},closeOnClickOverlay:{type:Boolean,default:()=>cx.modal.closeOnClickOverlay},negativeTop:{type:[String,Number],default:()=>cx.modal.negativeTop},width:{type:[String,Number],default:()=>cx.modal.width},confirmButtonShape:{type:String,default:()=>cx.modal.confirmButtonShape},duration:{type:[Number],default:cx.modal.duration},contentTextAlign:{type:String,default:()=>cx.modal.contentTextAlign},asyncCloseTip:{type:String,default:()=>cx.modal.asyncCloseTip},asyncCancelClose:{type:Boolean,default:()=>cx.modal.asyncCancelClose},contentStyle:{type:Object,default:()=>cx.modal.contentStyle}}};const tI=W_({name:"u-modal",mixins:[hx,fx,eI],data:()=>({loading:!1}),watch:{show(e){e&&this.loading&&(this.loading=!1)}},emits:["confirm","cancel","close","update:show","cancelOnAsync"],computed:{contentStyleCpu(){let e=this.contentStyle;return e.paddingTop=(this.title?12:25)+"px",e}},methods:{addUnit:zw,confirmHandler(){this.asyncClose?this.loading=!0:this.$emit("update:show",!1),this.$emit("confirm")},cancelHandler(){this.asyncClose&&this.loading?(this.asyncCloseTip&&s_({title:this.asyncCloseTip,icon:"none"}),this.$emit("cancelOnAsync")):this.asyncCancelClose||this.$emit("update:show",!1),this.$emit("cancel")},clickHandler(){this.closeOnClickOverlay&&(this.$emit("update:show",!1),this.$emit("close"))}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=wy,l=yx(Po("u-line"),mx),c=yx(Po("u-loading-icon"),Px),u=yx(Po("u-popup"),Yx);return Ir(),zr(u,{mode:"center",zoom:e.zoom,show:e.show,class:Qe([e.customClass]),customStyle:{borderRadius:"6px",overflow:"hidden",marginTop:`-${r.addUnit(e.negativeTop)}`},closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:!1,duration:e.duration,onClick:r.clickHandler},{bottom:So(()=>[Mi(e.$slots,"popupBottom",{},void 0,!0)]),default:So(()=>[jr(s,{class:"u-modal",style:qe({width:r.addUnit(e.width)})},{default:So(()=>[e.title?(Ir(),zr(s,{key:0,class:"u-modal__title"},{default:So(()=>[Vr(X(e.title),1)]),_:1})):Wr("",!0),jr(s,{class:"u-modal__content",style:qe(r.contentStyleCpu)},{default:So(()=>[Mi(e.$slots,"default",{},()=>[jr(a,{class:"u-modal__content__text",style:qe({textAlign:e.contentTextAlign})},{default:So(()=>[Vr(X(e.content),1)]),_:1},8,["style"])],!0)]),_:3},8,["style"]),e.$slots.confirmButton?(Ir(),zr(s,{key:1,class:"u-modal__button-group--confirm-button"},{default:So(()=>[Mi(e.$slots,"confirmButton",{},void 0,!0)]),_:3})):(Ir(),Mr(xr,{key:2},[jr(l),jr(s,{class:"u-modal__button-group",style:qe({flexDirection:e.buttonReverse?"row-reverse":"row"})},{default:So(()=>[e.showCancelButton?(Ir(),zr(s,{key:0,class:Qe(["u-modal__button-group__wrapper u-modal__button-group__wrapper--cancel",[e.showCancelButton&&!e.showConfirmButton&&"u-modal__button-group__wrapper--only-cancel"]]),"hover-stay-time":150,"hover-class":"u-modal__button-group__wrapper--hover",onClick:r.cancelHandler},{default:So(()=>[jr(a,{class:"u-modal__button-group__wrapper__text",style:qe({color:e.cancelColor})},{default:So(()=>[Vr(X(e.cancelText),1)]),_:1},8,["style"])]),_:1},8,["class","onClick"])):Wr("",!0),e.showConfirmButton&&e.showCancelButton?(Ir(),zr(l,{key:1,direction:"column"})):Wr("",!0),e.showConfirmButton?(Ir(),zr(s,{key:2,class:Qe(["u-modal__button-group__wrapper u-modal__button-group__wrapper--confirm",[!e.showCancelButton&&e.showConfirmButton&&"u-modal__button-group__wrapper--only-confirm"]]),"hover-stay-time":150,"hover-class":"u-modal__button-group__wrapper--hover",onClick:r.confirmHandler},{default:So(()=>[i.loading?(Ir(),zr(c,{key:0})):(Ir(),zr(a,{key:1,class:"u-modal__button-group__wrapper__text",style:qe({color:e.confirmColor})},{default:So(()=>[Vr(X(e.confirmText),1)]),_:1},8,["style"]))]),_:1},8,["class","onClick"])):Wr("",!0)]),_:1},8,["style"])],64))]),_:3},8,["style"])]),_:3},8,["zoom","show","class","customStyle","closeOnClickOverlay","duration","onClick"])}],["__scopeId","data-v-aaa2b963"]]),nI=Object.freeze(Object.defineProperty({__proto__:null,default:tI},Symbol.toStringTag,{value:"Module"})),oI={props:{safeAreaInsetTop:{type:Boolean,default:()=>!0},fixed:{type:Boolean,default:()=>!0},leftIcon:{type:String,default:"arrow-leftward"},bgColor:{type:String,default:()=>"rgba(0,0,0,.15)"},height:{type:[String,Number],default:()=>"32px"},iconSize:{type:[String,Number],default:"20px"},iconColor:{type:String,default:"#fff"},autoBack:{type:Boolean,default:()=>!0},homeUrl:{type:[String],default:""}}};const iI=W_({name:"u-navbar-mini",mixins:[hx,fx,oI],data:()=>({}),emits:["leftClick","homeClick"],created(){},methods:{addStyle:Mw,addUnit:zw,sys:Aw,getPx:Sw,leftClick(){this.$emit("leftClick"),this.autoBack&&$v()},homeClick(){this.homeUrl&&mf({url:this.homeUrl})}}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-status-bar"),Vx),a=Bo("up-icon"),l=Ay,c=Bo("up-line");return Ir(),zr(l,{class:Qe(["u-navbar-mini",[e.customClass]])},{default:So(()=>[jr(l,{class:Qe(["u-navbar-mini__inner",[e.fixed&&"u-navbar-mini--fixed"]])},{default:So(()=>[e.safeAreaInsetTop?(Ir(),zr(s,{key:0})):Wr("",!0),jr(l,{class:"u-navbar-mini__content",style:qe({height:r.addUnit(e.height),backgroundColor:e.bgColor})},{default:So(()=>[jr(l,{class:"u-navbar-mini__content__left","hover-class":"u-navbar-mini__content__left--hover","hover-start-time":"150",onClick:r.leftClick},{default:So(()=>[Mi(e.$slots,"left",{},()=>[jr(a,{name:e.leftIcon,size:e.iconSize,color:e.iconColor},null,8,["name","size","color"])],!0)]),_:3},8,["onClick"]),jr(l,{style:{padding:"10px 10px"}},{default:So(()=>[jr(c,{direction:"col",color:"#fff",length:"16px"})]),_:1}),jr(l,{class:"u-navbar-mini__content__center",onClick:r.homeClick},{default:So(()=>[Mi(e.$slots,"center",{},()=>[jr(a,{name:"home",size:e.iconSize,color:e.iconColor},null,8,["size","color"])],!0)]),_:3},8,["onClick"])]),_:3},8,["style"])]),_:3},8,["class"])]),_:3},8,["class"])}],["__scopeId","data-v-85f2fbb8"]]),rI=Object.freeze(Object.defineProperty({__proto__:null,default:iI},Symbol.toStringTag,{value:"Module"})),sI={props:{safeAreaInsetTop:{type:Boolean,default:()=>cx.navbar.safeAreaInsetTop},placeholder:{type:Boolean,default:()=>cx.navbar.placeholder},fixed:{type:Boolean,default:()=>cx.navbar.fixed},border:{type:Boolean,default:()=>cx.navbar.border},leftIcon:{type:String,default:()=>cx.navbar.leftIcon},leftText:{type:String,default:()=>cx.navbar.leftText},rightText:{type:String,default:()=>cx.navbar.rightText},rightIcon:{type:String,default:()=>cx.navbar.rightIcon},title:{type:[String,Number],default:()=>cx.navbar.title},titleColor:{type:String,default:()=>cx.navbar.titleColor},bgColor:{type:String,default:()=>cx.navbar.bgColor},statusBarBgColor:{type:String,default:()=>""},titleWidth:{type:[String,Number],default:()=>cx.navbar.titleWidth},height:{type:[String,Number],default:()=>cx.navbar.height},leftIconSize:{type:[String,Number],default:()=>cx.navbar.leftIconSize},leftIconColor:{type:String,default:()=>cx.navbar.leftIconColor},autoBack:{type:Boolean,default:()=>cx.navbar.autoBack},titleStyle:{type:[String,Object],default:()=>cx.navbar.titleStyle}}};const aI=W_({name:"u-navbar",mixins:[hx,fx,sI],data:()=>({}),emits:["leftClick","rightClick"],methods:{addStyle:Mw,addUnit:zw,getWindowInfo:Tw,getPx:Sw,leftClick(){this.$emit("leftClick"),null!=Q_.interceptor.navbarLeftClick?Q_.interceptor.navbarLeftClick():this.autoBack&&$v()},rightClick(){this.$emit("rightClick")}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=yx(Po("u-status-bar"),Vx),l=Bo("up-icon"),c=wy;return Ir(),zr(s,{class:Qe(["u-navbar",[e.customClass]])},{default:So(()=>[e.fixed&&e.placeholder?(Ir(),zr(s,{key:0,class:"u-navbar__placeholder",style:qe({height:r.addUnit(r.getPx(e.height)+r.getWindowInfo().statusBarHeight,"px")})},null,8,["style"])):Wr("",!0),jr(s,{class:Qe([e.fixed&&"u-navbar--fixed"])},{default:So(()=>[e.safeAreaInsetTop?(Ir(),zr(a,{key:0,bgColor:e.statusBarBgColor?e.statusBarBgColor:e.bgColor},null,8,["bgColor"])):Wr("",!0),jr(s,{class:Qe(["u-navbar__content",[e.border&&"u-border-bottom"]]),style:qe({height:r.addUnit(e.height),backgroundColor:e.bgColor})},{default:So(()=>[jr(s,{class:"u-navbar__content__left","hover-class":"u-navbar__content__left--hover","hover-start-time":"150",onClick:r.leftClick},{default:So(()=>[Mi(e.$slots,"left",{},()=>[e.leftIcon?(Ir(),zr(l,{key:0,name:e.leftIcon,size:e.leftIconSize,color:e.leftIconColor},null,8,["name","size","color"])):Wr("",!0),e.leftText?(Ir(),zr(c,{key:1,style:qe({color:e.leftIconColor}),class:"u-navbar__content__left__text"},{default:So(()=>[Vr(X(e.leftText),1)]),_:1},8,["style"])):Wr("",!0)],!0)]),_:3},8,["onClick"]),Mi(e.$slots,"center",{},()=>[jr(c,{class:"u-line-1 u-navbar__content__title",style:qe([{width:r.addUnit(e.titleWidth),color:e.titleColor},r.addStyle(e.titleStyle)])},{default:So(()=>[Vr(X(e.title),1)]),_:1},8,["style"])],!0),e.$slots.right||e.rightIcon||e.rightText?(Ir(),zr(s,{key:0,class:"u-navbar__content__right",onClick:r.rightClick},{default:So(()=>[Mi(e.$slots,"right",{},()=>[e.rightIcon?(Ir(),zr(l,{key:0,name:e.rightIcon,size:"20"},null,8,["name"])):Wr("",!0),e.rightText?(Ir(),zr(c,{key:1,class:"u-navbar__content__right__text"},{default:So(()=>[Vr(X(e.rightText),1)]),_:1})):Wr("",!0)],!0)]),_:3},8,["onClick"])):Wr("",!0)]),_:3},8,["class","style"])]),_:3},8,["class"])]),_:3},8,["class"])}],["__scopeId","data-v-97fca473"]]),lI=Object.freeze(Object.defineProperty({__proto__:null,default:aI},Symbol.toStringTag,{value:"Module"}));const cI=W_({name:"u-no-network",mixins:[hx,fx,{props:{tips:{type:String,default:()=>cx.noNetwork.tips},zIndex:{type:[String,Number],default:()=>cx.noNetwork.zIndex},image:{type:String,default:()=>cx.noNetwork.image}}}],data:()=>({isConnected:!0,networkType:"none"}),mounted(){this.isIOS="ios"===Iw().platform,qb(e=>{this.isConnected=e.isConnected,this.networkType=e.networkType,this.emitEvent(this.networkType)}),Qb({success:e=>{this.networkType=e.networkType,this.emitEvent(this.networkType),"none"==e.networkType?this.isConnected=!1:this.isConnected=!0}})},emits:["disconnected","connected"],methods:{t:Zw,retry(){Qb({success:e=>{this.networkType=e.networkType,this.emitEvent(this.networkType),"none"==e.networkType?(Fw(Zw("up.noNetwork.disconnect")),this.isConnected=!1):(Fw(Zw("up.noNetwork.connect")),this.isConnected=!0)}}),this.$emit("retry")},emitEvent(e){this.$emit("none"===e?"disconnected":"connected")},async openSettings(){"none"!=this.networkType||this.openSystemSettings()},openAppSettings(){this.gotoAppSetting()},openSystemSettings(){this.isIOS?this.gotoiOSSetting():this.gotoAndroidSetting()},network(){var e=null,t=plus.ios.newObject("CTCellularData"),n=t.plusGetAttribute("restrictedState");return 0==n?e=null:2==n?e=1:1==n&&(e=2),plus.ios.deleteObject(t),e},gotoAppSetting(){if(this.isIOS){var e=plus.ios.import("UIApplication").sharedApplication(),t=plus.ios.import("NSURL"),n=t.URLWithString("app-settings:");e.openURL(n),plus.ios.deleteObject(n),plus.ios.deleteObject(t),plus.ios.deleteObject(e)}else{var o=plus.android.importClass("android.content.Intent"),i=plus.android.importClass("android.provider.Settings"),r=plus.android.importClass("android.net.Uri"),s=plus.android.runtimeMainActivity(),a=new o;a.setAction(i.ACTION_APPLICATION_DETAILS_SETTINGS);var l=r.fromParts("package",s.getPackageName(),null);a.setData(l),s.startActivity(a)}},gotoiOSSetting(){var e=plus.ios.import("UIApplication").sharedApplication(),t=plus.ios.import("NSURL"),n=t.URLWithString("App-prefs:root=General");e.openURL(n),plus.ios.deleteObject(n),plus.ios.deleteObject(t),plus.ios.deleteObject(e)},gotoAndroidSetting(){var e=plus.android.importClass("android.content.Intent"),t=plus.android.importClass("android.provider.Settings"),n=plus.android.runtimeMainActivity(),o=new e(t.ACTION_SETTINGS);n.startActivity(o)}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=wy,l=yx(Po("u-button"),AS),c=Ay,u=yx(Po("u-overlay"),Hx);return Ir(),zr(u,{show:!i.isConnected,zIndex:e.zIndex,onTouchmove:ua(e.noop,["stop","prevent"]),customStyle:{backgroundColor:"#fff",display:"flex",justifyContent:"center"}},{default:So(()=>[jr(c,{class:"u-no-network"},{default:So(()=>[jr(s,{name:e.image,size:"150",imgMode:"widthFit",class:"u-no-network__error-icon"},null,8,["name"]),jr(a,{class:"u-no-network__tips"},{default:So(()=>[Vr(X(e.tips),1)]),_:1}),jr(c,{class:"u-no-network__retry"},{default:So(()=>[jr(l,{size:"mini",text:r.t("up.common.retry"),type:"primary",plain:"",onClick:r.retry},null,8,["text","onClick"])]),_:1})]),_:1})]),_:1},8,["show","zIndex","onTouchmove"])}],["__scopeId","data-v-5f3bd5ea"]]),uI=Object.freeze(Object.defineProperty({__proto__:null,default:cI},Symbol.toStringTag,{value:"Module"}));const dI=W_({name:"u-row-notice",mixins:[hx,fx,{props:{text:{type:String,default:()=>cx.rowNotice.text},icon:{type:String,default:()=>cx.rowNotice.icon},mode:{type:String,default:()=>cx.rowNotice.mode},color:{type:String,default:()=>cx.rowNotice.color},bgColor:{type:String,default:()=>cx.rowNotice.bgColor},fontSize:{type:[String,Number],default:()=>cx.rowNotice.fontSize},speed:{type:[String,Number],default:()=>cx.rowNotice.speed}}}],data:()=>({animationDuration:"0",animationPlayState:"paused",nvueInit:!0,show:!0}),watch:{text:{immediate:!0,handler(e,t){this.vue(),fw.string(e)}},fontSize(){this.vue()},speed(){this.vue()}},computed:{textStyle(){let e={whiteSpace:"nowrap !important"};return e.color=this.color,e.fontSize=zw(this.fontSize),e},animationStyle(){let e={};return e.animationDuration=this.animationDuration,e.animationPlayState=this.animationPlayState,e},innerText(){let e=[];const t=this.text.split("");for(let n=0;n<t.length;n+=20)e.push(t.slice(n,n+20).join(""));return e}},mounted(){this.init()},emits:["click","close"],methods:{init(){this.vue(),fw.string(this.text)},async vue(){let e=0;await kw(),e=(await this.$uGetRect(".u-notice__content__text")).width,(await this.$uGetRect(".u-notice__content")).width,this.animationDuration=e/Sw(this.speed)+"s",this.animationPlayState="paused",setTimeout(()=>{this.animationPlayState="running"},10)},async nvue(){},loopAnimation(e,t){},getNvueRect(e){},clickHandler(e){this.$emit("click")},close(){this.$emit("close")}},beforeUnmount(){this.stopAnimation=!0}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay,l=wy;return Ir(),zr(a,{class:"u-notice",onClick:r.clickHandler},{default:So(()=>[Mi(e.$slots,"icon",{},()=>[e.icon?(Ir(),zr(a,{key:0,class:"u-notice__left-icon"},{default:So(()=>[jr(s,{name:e.icon,color:e.color,size:"19"},null,8,["name","color"])]),_:1})):Wr("",!0)],!0),jr(a,{class:"u-notice__content",ref:"u-notice__content"},{default:So(()=>[jr(a,{ref:"u-notice__content__text",class:"u-notice__content__text",style:qe([r.animationStyle])},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(r.innerText,(e,t)=>(Ir(),zr(l,{key:t,style:qe([r.textStyle])},{default:So(()=>[Vr(X(e),1)]),_:2},1032,["style"]))),128))]),_:1},8,["style"])]),_:1},512),["link","closable"].includes(e.mode)?(Ir(),zr(a,{key:0,class:"u-notice__right-icon"},{default:So(()=>["link"===e.mode?(Ir(),zr(s,{key:0,name:"arrow-right",size:17,color:e.color},null,8,["color"])):Wr("",!0),"closable"===e.mode?(Ir(),zr(s,{key:1,onClick:r.close,name:"close",size:16,color:e.color},null,8,["onClick","color"])):Wr("",!0)]),_:1})):Wr("",!0)]),_:3},8,["onClick"])}],["__scopeId","data-v-03322d45"]]),hI=Object.freeze(Object.defineProperty({__proto__:null,default:dI},Symbol.toStringTag,{value:"Module"})),pI={props:{text:{type:[Array,String],default:()=>cx.noticeBar.text},direction:{type:String,default:()=>cx.noticeBar.direction},step:{type:Boolean,default:()=>cx.noticeBar.step},icon:{type:String,default:()=>cx.noticeBar.icon},mode:{type:String,default:()=>cx.noticeBar.mode},color:{type:String,default:()=>cx.noticeBar.color},bgColor:{type:String,default:()=>cx.noticeBar.bgColor},speed:{type:[String,Number],default:()=>cx.noticeBar.speed},fontSize:{type:[String,Number],default:()=>cx.noticeBar.fontSize},duration:{type:[String,Number],default:()=>cx.noticeBar.duration},disableTouch:{type:Boolean,default:()=>cx.noticeBar.disableTouch},url:{type:String,default:()=>cx.noticeBar.url},linkType:{type:String,default:()=>cx.noticeBar.linkType},justifyContent:{type:String,default:()=>cx.noticeBar.justifyContent}}};const fI=W_({name:"u-notice-bar",mixins:[hx,fx,pI],data:()=>({show:!0}),emits:["click","close"],methods:{addStyle:Mw,click(e){this.$emit("click",e),this.url&&this.linkType&&this.openPage()},close(){this.show=!1,this.$emit("close")}}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-column-notice"),xk),a=yx(Po("u-row-notice"),dI),l=Ay;return i.show?(Ir(),zr(l,{key:0,class:"u-notice-bar",style:qe([{backgroundColor:e.bgColor},r.addStyle(e.customStyle)])},{default:So(()=>["column"===e.direction||"row"===e.direction&&e.step?(Ir(),zr(s,{key:0,color:e.color,bgColor:e.bgColor,text:e.text,mode:e.mode,step:e.step,icon:e.icon,"disable-touch":e.disableTouch,fontSize:e.fontSize,duration:e.duration,justifyContent:e.justifyContent,onClose:r.close,onClick:r.click},null,8,["color","bgColor","text","mode","step","icon","disable-touch","fontSize","duration","justifyContent","onClose","onClick"])):(Ir(),zr(a,{key:1,color:e.color,bgColor:e.bgColor,text:e.text,mode:e.mode,fontSize:e.fontSize,speed:e.speed,url:e.url,linkType:e.linkType,icon:e.icon,onClose:r.close,onClick:r.click},null,8,["color","bgColor","text","mode","fontSize","speed","url","linkType","icon","onClose","onClick"]))]),_:1},8,["style"])):Wr("",!0)}],["__scopeId","data-v-8d2570f1"]]),mI=Object.freeze(Object.defineProperty({__proto__:null,default:fI},Symbol.toStringTag,{value:"Module"})),gI={props:{top:{type:[String,Number],default:()=>cx.notify.top},type:{type:String,default:()=>cx.notify.type},color:{type:String,default:()=>cx.notify.color},bgColor:{type:String,default:()=>cx.notify.bgColor},message:{type:String,default:()=>cx.notify.message},duration:{type:[String,Number],default:()=>cx.notify.duration},fontSize:{type:[String,Number],default:()=>cx.notify.fontSize},safeAreaInsetTop:{type:Boolean,default:()=>cx.notify.safeAreaInsetTop}}};const yI=W_({name:"u-notify",mixins:[hx,fx,gI],data:()=>({open:!1,timer:null,config:{top:cx.notify.top,type:cx.notify.type,color:cx.notify.color,bgColor:cx.notify.bgColor,message:cx.notify.message,duration:cx.notify.duration,fontSize:cx.notify.fontSize,safeAreaInsetTop:cx.notify.safeAreaInsetTop},tmpConfig:{}}),computed:{containerStyle(){let e=0;0===this.tmpConfig.top&&(e=44);return{top:zw(0===this.tmpConfig.top?e:this.tmpConfig.top),position:"fixed",left:0,right:0,zIndex:10076}},backgroundColor(){const e={};return this.tmpConfig.bgColor&&(e.backgroundColor=this.tmpConfig.bgColor),e},icon(){let e;return"success"===this.tmpConfig.type?e="checkmark-circle":"error"===this.tmpConfig.type?e="close-circle":"warning"===this.tmpConfig.type&&(e="error-circle"),e}},created(){["primary","success","error","warning"].map(e=>{this[e]=t=>this.show({type:e,message:t})})},methods:{addStyle:Mw,addUnit:zw,show(e){this.tmpConfig=Rw(this.config,e),this.clearTimer(),this.open=!0,this.tmpConfig.duration>0&&(this.timer=setTimeout(()=>{this.open=!1,this.clearTimer(),"function"==typeof this.tmpConfig.complete&&this.tmpConfig.complete()},this.tmpConfig.duration))},close(){this.clearTimer()},clearTimer(){this.open=!1,clearTimeout(this.timer),this.timer=null}},beforeUnmount(){this.clearTimer()}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-status-bar"),Vx),a=Bo("up-icon"),l=wy,c=Ay,u=yx(Po("u-transition"),Nx);return Ir(),zr(u,{mode:"slide-down",customStyle:r.containerStyle,show:i.open},{default:So(()=>[jr(c,{class:Qe(["u-notify",[`u-notify--${i.tmpConfig.type}`]]),style:qe([r.backgroundColor,r.addStyle(e.customStyle)])},{default:So(()=>[i.tmpConfig.safeAreaInsetTop?(Ir(),zr(s,{key:0})):Wr("",!0),jr(c,{class:"u-notify__warpper"},{default:So(()=>[Mi(e.$slots,"icon",{},()=>[["success","warning","error"].includes(i.tmpConfig.type)?(Ir(),zr(a,{key:0,name:i.tmpConfig.icon,color:i.tmpConfig.color,size:1.3*i.tmpConfig.fontSize,customStyle:{marginRight:"4px"}},null,8,["name","color","size"])):Wr("",!0)],!0),jr(l,{class:"u-notify__warpper__text",style:qe({fontSize:r.addUnit(i.tmpConfig.fontSize),color:i.tmpConfig.color})},{default:So(()=>[Vr(X(i.tmpConfig.message),1)]),_:1},8,["style"])]),_:3})]),_:3},8,["class","style"])]),_:3},8,["customStyle","show"])}],["__scopeId","data-v-46718d2d"]]),bI=Object.freeze(Object.defineProperty({__proto__:null,default:yI},Symbol.toStringTag,{value:"Module"})),vI={props:{name:{type:[String,Number],default:()=>cx.numberBox.name},modelValue:{type:[String,Number],default:()=>cx.numberBox.value},min:{type:[String,Number],default:()=>cx.numberBox.min},max:{type:[String,Number],default:()=>cx.numberBox.max},step:{type:[String,Number],default:()=>cx.numberBox.step},integer:{type:Boolean,default:()=>cx.numberBox.integer},disabled:{type:Boolean,default:()=>cx.numberBox.disabled},disabledInput:{type:Boolean,default:()=>cx.numberBox.disabledInput},asyncChange:{type:Boolean,default:()=>cx.numberBox.asyncChange},inputWidth:{type:[String,Number],default:()=>cx.numberBox.inputWidth},showMinus:{type:Boolean,default:()=>cx.numberBox.showMinus},showPlus:{type:Boolean,default:()=>cx.numberBox.showPlus},decimalLength:{type:[String,Number,null],default:()=>cx.numberBox.decimalLength},longPress:{type:Boolean,default:()=>cx.numberBox.longPress},color:{type:String,default:()=>cx.numberBox.color},buttonWidth:{type:[String,Number],default:()=>cx.numberBox.buttonWidth},buttonSize:{type:[String,Number],default:()=>cx.numberBox.buttonSize},buttonRadius:{type:[String],default:()=>cx.numberBox.buttonRadius},bgColor:{type:String,default:()=>cx.numberBox.bgColor},disabledBgColor:{type:String,default:()=>cx.numberBox.disabledBgColor},inputBgColor:{type:String,default:()=>cx.numberBox.inputBgColor},cursorSpacing:{type:[String,Number],default:()=>cx.numberBox.cursorSpacing},disablePlus:{type:Boolean,default:()=>cx.numberBox.disablePlus},disableMinus:{type:Boolean,default:()=>cx.numberBox.disableMinus},iconStyle:{type:[Object,String],default:()=>cx.numberBox.iconStyle},miniMode:{type:Boolean,default:()=>cx.numberBox.miniMode}}};const _I=W_({name:"u-number-box",mixins:[hx,fx,vI],data:()=>({currentValue:"",longPressTimer:null}),watch:{watchChange(e){this.check()},modelValue:{handler:function(e,t){e!==this.currentValue&&(this.currentValue=this.format(this.modelValue))},immediate:!0}},computed:{hideMinus(){return 0==this.currentValue&&1==this.miniMode},getCursorSpacing(){return Sw(this.cursorSpacing)},buttonStyle(){return e=>{const t={backgroundColor:this.bgColor,width:zw(this.buttonWidth),height:zw(this.buttonSize),color:this.color,borderRadius:this.buttonRadius};return this.isDisabled(e)&&(t.backgroundColor=this.disabledBgColor),t}},inputStyle(){this.disabled||this.disabledInput;return{color:this.color,backgroundColor:this.inputBgColor||this.bgColor,height:zw(this.buttonSize),width:zw(this.inputWidth)}},watchChange(){return[this.integer,this.decimalLength,this.min,this.max]},isDisabled(){return e=>"plus"===e?this.disabled||this.disablePlus||this.currentValue>=this.max:this.disabled||this.disableMinus||this.currentValue<=this.min}},mounted(){this.init()},emits:["update:modelValue","focus","blur","overlimit","change","plus","minus"],methods:{init(){this.currentValue=this.format(this.modelValue)},format(e){return e=""===(e=this.filter(e))?0:+e,e=Math.max(Math.min(this.max,e),this.min),null!==this.decimalLength&&(e=e.toFixed(this.decimalLength)),e},filter(e){return e=String(e).replace(/[^0-9.-]/g,""),this.integer&&-1!==e.indexOf(".")&&(e=e.split(".")[0]),e},check(){const e=this.format(this.currentValue);e!==this.currentValue&&(this.currentValue=e,this.emitChange(e))},onFocus(e){this.$emit("focus",{...e.detail,name:this.name})},onBlur(e){this.format(e.detail.value),this.$emit("blur",{...e.detail,name:this.name})},onInput(e){const{value:t=""}=e.detail||{};if(""===t)return void this.emitChange(this.min);let n=this.filter(t);if(this.emitChange(t),null!==this.decimalLength&&-1!==n.indexOf(".")){const e=n.split(".");n=`${e[0]}.${e[1].slice(0,this.decimalLength)}`}n=this.format(n),this.emitChange(n)},emitChange(e,t=""){this.asyncChange||this.$nextTick(()=>{this.$emit("update:modelValue",e),this.currentValue=e,this.$forceUpdate()}),this.$emit("change",{value:e,name:this.name,type:t})},onChange(){const{type:e}=this;if(this.isDisabled(e))return this.$emit("overlimit",e);const t="minus"===e?-this.step:+this.step,n=this.format(this.add(+this.currentValue,t));this.emitChange(n,e),this.$emit(e)},add(e,t){const n=Math.pow(10,10);return Math.round((e+t)*n)/n},clickHandler(e){this.type=e,this.onChange()},longPressStep(){this.clearTimeout(),this.longPressTimer=setTimeout(()=>{this.onChange(),this.longPressStep()},250)},onTouchStart(e){this.longPress&&(this.clearTimeout(),this.type=e,this.longPressTimer=setTimeout(()=>{this.onChange(),this.longPressStep()},600))},onTouchEnd(){this.longPress&&this.clearTimeout()},clearTimeout(){clearTimeout(this.longPressTimer),this.longPressTimer=null}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=Bo("up-icon"),l=_g;return Ir(),zr(s,{class:"u-number-box"},{default:So(()=>[e.showMinus&&!r.hideMinus&&e.$slots.minus?(Ir(),zr(s,{key:0,class:"u-number-box__slot cursor-pointer",onClick:t[0]||(t[0]=ua(e=>r.clickHandler("minus"),["stop"])),onTouchstart:t[1]||(t[1]=e=>r.onTouchStart("minus")),onTouchend:ua(r.clearTimeout,["stop"])},{default:So(()=>[Mi(e.$slots,"minus",{},void 0,!0)]),_:3},8,["onTouchend"])):e.showMinus&&!r.hideMinus?(Ir(),zr(s,{key:1,class:Qe(["u-number-box__minus cursor-pointer",{"u-number-box__minus--disabled":r.isDisabled("minus")}]),onClick:t[2]||(t[2]=ua(e=>r.clickHandler("minus"),["stop"])),onTouchstart:t[3]||(t[3]=e=>r.onTouchStart("minus")),onTouchend:ua(r.clearTimeout,["stop"]),"hover-class":"u-number-box__minus--hover","hover-stay-time":"150",style:qe([r.buttonStyle("minus")])},{default:So(()=>[jr(a,{name:"minus",color:r.isDisabled("minus")?"#c8c9cc":"#323233",size:"15",bold:"",customStyle:e.iconStyle},null,8,["color","customStyle"])]),_:1},8,["onTouchend","class","style"])):Wr("",!0),r.hideMinus?Wr("",!0):Mi(e.$slots,"input",{key:2},()=>[jr(l,{disabled:e.disabledInput||e.disabled,"cursor-spacing":r.getCursorSpacing,class:Qe([{"u-number-box__input--disabled":e.disabled||e.disabledInput},"u-number-box__input"]),modelValue:i.currentValue,"onUpdate:modelValue":t[4]||(t[4]=e=>i.currentValue=e),onBlur:r.onBlur,onFocus:r.onFocus,onInput:r.onInput,type:"number",style:qe([r.inputStyle])},null,8,["disabled","cursor-spacing","class","modelValue","onBlur","onFocus","onInput","style"])],!0),e.showPlus&&e.$slots.plus?(Ir(),zr(s,{key:3,class:"u-number-box__slot cursor-pointer",onClick:t[5]||(t[5]=ua(e=>r.clickHandler("plus"),["stop"])),onTouchstart:t[6]||(t[6]=e=>r.onTouchStart("plus")),onTouchend:ua(r.clearTimeout,["stop"])},{default:So(()=>[Mi(e.$slots,"plus",{},void 0,!0)]),_:3},8,["onTouchend"])):e.showPlus?(Ir(),zr(s,{key:4,class:Qe(["u-number-box__plus cursor-pointer",{"u-number-box__minus--disabled":r.isDisabled("plus")}]),onClick:t[7]||(t[7]=ua(e=>r.clickHandler("plus"),["stop"])),onTouchstart:t[8]||(t[8]=e=>r.onTouchStart("plus")),onTouchend:ua(r.clearTimeout,["stop"]),"hover-class":"u-number-box__plus--hover","hover-stay-time":"150",style:qe([r.buttonStyle("plus")])},{default:So(()=>[jr(a,{name:"plus",color:r.isDisabled("plus")?"#c8c9cc":"#323233",size:"15",bold:"",customStyle:e.iconStyle},null,8,["color","customStyle"])]),_:1},8,["onTouchend","class","style"])):Wr("",!0)]),_:3})}],["__scopeId","data-v-6a178380"]]),wI=Object.freeze(Object.defineProperty({__proto__:null,default:_I},Symbol.toStringTag,{value:"Module"}));const xI=W_({name:"u-pagination",props:{currentPage:{type:Number,default:1},pageSize:{type:Number,default:10},total:{type:Number,default:0},prevText:{type:String,default:""},nextText:{type:String,default:""},buttonBgColor:{type:String,default:"#f5f7fa"},buttonBorderColor:{type:String,default:"#dcdfe6"},pageSizes:{type:Array,default:()=>[10,20,30,40,50]},layout:{type:String,default:"prev, pager, next"},hideOnSinglePage:{type:Boolean,default:!1}},emits:["update:currentPage","update:pageSize","current-change","size-change"],data(){return{currentPageInput:this.currentPage+""}},computed:{totalPages(){return Math.max(1,Math.ceil(this.total/this.pageSize))},pageSizeIndex(){const e=this.pageSizes.findIndex(e=>e.value===this.pageSize);return e>=0?e:0},pageSizeLabel(){const e=this.pageSizes.find(e=>e.value===this.pageSize);return(null==e?void 0:e.label)||this.pageSize},displayedPages(){const e=this.totalPages,t=this.currentPage;if(e<=4)return Array.from({length:e},(e,t)=>t+1);const n=[];if(t<=2){for(let e=1;e<=4;e++)n.push(e);n.push("..."),n.push(e)}else if(t>=e-1){n.push(1),n.push("...");for(let t=e-3;t<=e;t++)n.push(t)}else n.push(1),n.push("..."),n.push(t-1),n.push(t),n.push(t+1),n.push("..."),n.push(e);return n}},watch:{currentPage(e){this.currentPageInput=e+""}},methods:{t:Zw,handleSizeChange(e){var t;const n=e.detail.value,o=(null==(t=this.pageSizes[n])?void 0:t.value)||this.pageSizes[0].value;this.$emit("update:pageSize",o),this.$emit("size-change",o)},prev(){this.currentPage>1&&this.goTo(this.currentPage-1)},next(){this.currentPage<this.totalPages&&this.goTo(this.currentPage+1)},goTo(e){"..."!==e&&e!==this.currentPage&&(this.$emit("update:currentPage",e),this.$emit("current-change",e))},onInputPage(e){this.currentPageInput=e.detail.value},onConfirmPage(e){const t=parseInt(e.detail.value);!isNaN(t)&&t>=1&&t<=this.totalPages&&this.goTo(t)}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay;return Ir(),zr(a,{class:"u-pagination"},{default:So(()=>[jr(a,{class:Qe(["u-pagination-btn",{disabled:1===n.currentPage}]),style:qe({backgroundColor:n.buttonBgColor,borderColor:n.buttonBorderColor}),onClick:r.prev},{default:So(()=>[n.prevText?(Ir(),Mr(xr,{key:0},[Vr(X(n.prevText),1)],64)):(Ir(),zr(s,{key:1,name:"arrow-left"}))]),_:1},8,["class","style","onClick"]),n.layout.includes("pager")?(Ir(!0),Mr(xr,{key:0},Pi(r.displayedPages,e=>(Ir(),zr(a,{key:e,class:Qe(["u-pagination-item",{active:e===n.currentPage}]),onClick:t=>r.goTo(e)},{default:So(()=>[Vr(X(e),1)]),_:2},1032,["class","onClick"]))),128)):Wr("",!0),n.total>0&&n.layout.includes("total")?(Ir(),zr(a,{key:1,class:"u-pagination-total"},{default:So(()=>[Vr(X(n.currentPage)+" / "+X(r.totalPages),1)]),_:1})):Wr("",!0),jr(a,{class:Qe(["u-pagination-btn",{disabled:n.currentPage===r.totalPages}]),style:qe({backgroundColor:n.buttonBgColor,borderColor:n.buttonBorderColor}),onClick:r.next},{default:So(()=>[n.nextText?(Ir(),Mr(xr,{key:0},[Vr(X(n.nextText),1)],64)):(Ir(),zr(s,{key:1,name:"arrow-right"}))]),_:1},8,["class","style","onClick"])]),_:1})}],["__scopeId","data-v-a8bb0d4c"]]),SI=Object.freeze(Object.defineProperty({__proto__:null,default:xI},Symbol.toStringTag,{value:"Module"}));var kI={abbr:!0,b:!0,big:!0,code:!0,del:!0,em:!0,i:!0,ins:!0,label:!0,q:!0,small:!0,span:!0,strong:!0,sub:!0,sup:!0};const CI={isInline:function(e,t){return kI[e]||-1!==(t||"").indexOf("display:inline")}},AI=e=>{e.$wxs||(e.$wxs=[]),e.$wxs.push("handler"),e.mixins||(e.mixins=[]),e.mixins.push({beforeCreate(){this.handler=CI}})},TI={name:"node",options:{},data:()=>({ctrl:{}}),props:{name:String,attrs:{type:Object,default:()=>({})},childs:Array,opts:Array},components:{},mounted(){if(this.$nextTick(()=>{var e,t;for(this.root=null==this?void 0:this.$parent;this.root&&"mp-html"!==(null==(e=this.root)?void 0:e.$options.name);this.root=null==(t=this.root)?void 0:t.$parent);}),this.opts[0]){let e;for(e=this.childs.length;e--&&"img"!==this.childs[e].name;);-1!==e&&(this.observer=Jh(this).relativeToViewport({top:500,bottom:500}),this.observer.observe("._img",e=>{e.intersectionRatio&&(this.$set(this.ctrl,"load",1),this.observer.disconnect())}))}},beforeDestroy(){this.observer&&this.observer.disconnect()},methods:{play(e){const t=e.currentTarget.dataset.i,n=this.childs[t];if(this.root.$emit("play",{source:n.name,attrs:{...n.attrs,src:n.src[this.ctrl[t]||0]}}),this.root.pauseVideo){let t=!1;const n=e.target.id;for(let e=this.root._videos.length;e--;)this.root._videos[e].id===n?t=!0:this.root._videos[e].pause();if(!t){const e=xh(n,this);e.id=n,this.root.playbackRate&&e.playbackRate(this.root.playbackRate),this.root._videos.push(e)}}},imgTap(e){const t=this.childs[e.currentTarget.dataset.i];t.a?this.linkTap(t.a):t.attrs.ignore||(t.attrs.src=t.attrs.src||t.attrs["data-src"],this.root.$emit("imgtap",t.attrs),this.root.previewImg&&Av({current:parseInt(t.attrs.i),urls:this.root.imgList}))},imgLongTap(e){},imgLoad(e){const t=e.currentTarget.dataset.i;(this.opts[1]&&!this.ctrl[t]||-1===this.ctrl[t])&&this.$set(this.ctrl,t,1),this.checkReady()},checkReady(){this.root&&!this.root.lazyLoad&&(this.root._unloadimgs-=1,this.root._unloadimgs||setTimeout(()=>{this.root.getRect().then(e=>{this.root.$emit("ready",e)}).catch(()=>{this.root.$emit("ready",{})})},350))},linkTap(e){const t=e.currentTarget?this.childs[e.currentTarget.dataset.i]:{},n=t.attrs||e,o=n.href;this.root.$emit("linktap",Object.assign({innerText:this.root.getText(t.children||[])},n)),o&&("#"===o[0]?this.root.navigateTo(o.substring(1)).catch(()=>{}):o.split("?")[0].includes("://")?this.root.copyLink&&window.open(o):jv({url:o,fail(){df({url:o,fail(){}})}}))},mediaError(e){const t=e.currentTarget.dataset.i,n=this.childs[t];if("video"===n.name||"audio"===n.name){let e=(this.ctrl[t]||0)+1;if(e>n.src.length&&(e=0),e<n.src.length)return void this.$set(this.ctrl,t,e)}else if("img"===n.name){if(this.opts[0]&&!this.ctrl.load)return;this.opts[2]&&this.$set(this.ctrl,t,-1),this.checkReady()}this.root&&this.root.$emit("error",{source:n.name,attrs:n.attrs})}}};AI(TI);const II=W_(TI,[["render",function(e,t,n,o,i,r){const s=Jm,a=wy,l=Bo("node",!0),c=Ay,u=db,d=ly;return Ir(),zr(c,{id:n.attrs.id,class:Qe("_block _"+n.name+" "+n.attrs.class),style:qe(n.attrs.style)},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(n.childs,(o,h)=>(Ir(),Mr(xr,{key:h},["img"===o.name&&!o.t&&(n.opts[1]&&!i.ctrl[h]||i.ctrl[h]<0)?(Ir(),zr(s,{key:0,class:"_img",style:qe(o.attrs.style),src:i.ctrl[h]<0?n.opts[2]:n.opts[1],mode:"widthFix"},null,8,["style","src"])):Wr("",!0),"img"===o.name?(Ir(),Mr("img",{key:1,id:o.attrs.id,class:Qe("_img "+o.attrs.class),style:qe((-1===i.ctrl[h]?"display:none;":"")+o.attrs.style),src:o.attrs.src||(i.ctrl.load?o.attrs["data-src"]:""),"data-i":h,onLoad:t[0]||(t[0]=(...e)=>r.imgLoad&&r.imgLoad(...e)),onError:t[1]||(t[1]=(...e)=>r.mediaError&&r.mediaError(...e)),onClick:t[2]||(t[2]=ua((...e)=>r.imgTap&&r.imgTap(...e),["stop"])),onLongpress:t[3]||(t[3]=(...e)=>r.imgLongTap&&r.imgLongTap(...e))},null,46,["id","src","data-i"])):o.text?(Ir(),zr(a,{key:2,decode:""},{default:So(()=>[Vr(X(o.text),1)]),_:2},1024)):"br"===o.name?(Ir(),zr(a,{key:3},{default:So(()=>[Vr(X("\n"))]),_:1})):"a"===o.name?(Ir(),zr(c,{key:4,id:o.attrs.id,class:Qe((o.attrs.href?"_a ":"")+o.attrs.class),"hover-class":"_hover",style:qe("display:inline;"+o.attrs.style),"data-i":h,onClick:ua(r.linkTap,["stop"])},{default:So(()=>[jr(l,{name:"span",childs:o.children,opts:n.opts,style:{display:"inherit"}},null,8,["childs","opts"])]),_:2},1032,["id","class","style","data-i","onClick"])):"video"===o.name?(Ir(),zr(u,{key:5,id:o.attrs.id,class:Qe(o.attrs.class),style:qe(o.attrs.style),autoplay:o.attrs.autoplay,controls:o.attrs.controls,loop:o.attrs.loop,muted:o.attrs.muted,"object-fit":o.attrs["object-fit"],poster:o.attrs.poster,src:o.src[i.ctrl[h]||0],"data-i":h,onPlay:r.play,onError:r.mediaError},null,8,["id","class","style","autoplay","controls","loop","muted","object-fit","poster","src","data-i","onPlay","onError"])):"iframe"===o.name?(Ir(),Mr("iframe",{key:6,style:qe(o.attrs.style),allowfullscreen:o.attrs.allowfullscreen,frameborder:o.attrs.frameborder,src:o.attrs.src},null,12,["allowfullscreen","frameborder","src"])):"embed"===o.name?(Ir(),Mr("embed",{key:7,style:qe(o.attrs.style),src:o.attrs.src},null,12,["src"])):"table"===o.name&&o.c||"li"===o.name?(Ir(),zr(c,{key:8,id:o.attrs.id,class:Qe("_"+o.name+" "+o.attrs.class),style:qe(o.attrs.style)},{default:So(()=>["li"===o.name?(Ir(),zr(l,{key:0,childs:o.children,opts:n.opts},null,8,["childs","opts"])):(Ir(!0),Mr(xr,{key:1},Pi(o.children,(e,t)=>(Ir(),zr(c,{key:t,class:Qe("_"+e.name+" "+e.attrs.class),style:qe(e.attrs.style)},{default:So(()=>["td"===e.name||"th"===e.name?(Ir(),zr(l,{key:0,childs:e.children,opts:n.opts},null,8,["childs","opts"])):(Ir(!0),Mr(xr,{key:1},Pi(e.children,(e,t)=>(Ir(),Mr(xr,{key:t},["td"===e.name||"th"===e.name?(Ir(),zr(c,{key:0,class:Qe("_"+e.name+" "+e.attrs.class),style:qe(e.attrs.style)},{default:So(()=>[jr(l,{childs:e.children,opts:n.opts},null,8,["childs","opts"])]),_:2},1032,["class","style"])):(Ir(),zr(c,{key:1,class:Qe("_"+e.name+" "+e.attrs.class),style:qe(e.attrs.style)},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(e.children,(e,t)=>(Ir(),zr(c,{key:t,class:Qe("_"+e.name+" "+e.attrs.class),style:qe(e.attrs.style)},{default:So(()=>[jr(l,{childs:e.children,opts:n.opts},null,8,["childs","opts"])]),_:2},1032,["class","style"]))),128))]),_:2},1032,["class","style"]))],64))),128))]),_:2},1032,["class","style"]))),128))]),_:2},1032,["id","class","style"])):o.c||e.handler.isInline(o.name,o.attrs.style)?2===o.c?(Ir(),zr(c,{key:10,id:o.attrs.id,class:Qe("_block _"+o.name+" "+o.attrs.class),style:qe(o.f+";"+o.attrs.style)},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(o.children,(e,t)=>(Ir(),zr(l,{key:t,style:qe(e.f),name:e.name,attrs:e.attrs,childs:e.children,opts:n.opts},null,8,["style","name","attrs","childs","opts"]))),128))]),_:2},1032,["id","class","style"])):(Ir(),zr(l,{key:11,style:qe(o.f),name:o.name,attrs:o.attrs,childs:o.children,opts:n.opts},null,8,["style","name","attrs","childs","opts"])):(Ir(),zr(d,{key:9,id:o.attrs.id,style:qe(o.f),"user-select":n.opts[4],nodes:[o]},null,8,["id","style","user-select","nodes"]))],64))),128))]),_:1},8,["id","class","style"])}],["__scopeId","data-v-fd7c4b74"]]),BI={trustTags:RI("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),blockTags:RI("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:RI("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:RI("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),entities:{lt:"<",gt:">",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…",larr:"←",uarr:"↑",rarr:"→",darr:"↓"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",strike:"text-decoration:line-through",u:"text-decoration:underline"},svgDict:{animatetransform:"animateTransform",lineargradient:"linearGradient",viewbox:"viewBox",attributename:"attributeName",repeatcount:"repeatCount",repeatdur:"repeatDur",foreignobject:"foreignObject"}},EI={};let PI;const MI=Hb();PI=MI.windowWidth;const zI=RI(" ,\r,\n,\t,\f");let OI=0;function RI(e){const t=Object.create(null),n=e.split(",");for(let o=n.length;o--;)t[n[o]]=!0;return t}function LI(e,t){let n=e.indexOf("&");for(;-1!==n;){const o=e.indexOf(";",n+3);let i;if(-1===o)break;"#"===e[n+1]?(i=parseInt(("x"===e[n+2]?"0":"")+e.substring(n+2,o)),isNaN(i)||(e=e.substr(0,n)+String.fromCharCode(i)+e.substr(o+1))):(i=e.substring(n+1,o),(BI.entities[i]||"amp"===i&&t)&&(e=e.substr(0,n)+(BI.entities[i]||"&")+e.substr(o+1))),n=e.indexOf("&",n+1)}return e}function DI(e){let t=e.length-1;for(let n=t;n>=-1;n--)(-1===n||e[n].c||!e[n].name||"div"!==e[n].name&&"p"!==e[n].name&&"h"!==e[n].name[0]||(e[n].attrs.style||"").includes("inline"))&&(t-n>=5&&e.splice(n+1,t-n,{name:"div",attrs:{},children:e.slice(n+1,t+1)}),t=n-1)}function NI(e){this.options=e||{},this.tagStyle=Object.assign({},BI.tagStyle,this.options.tagStyle),this.imgList=e.imgList||[],this.imgList._unloadimgs=0,this.plugins=e.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[],this.pre=(this.options.containerStyle||"").includes("white-space")&&this.options.containerStyle.includes("pre")?2:0}function $I(e){this.handler=e}BI.ignoreTags.iframe=void 0,BI.trustTags.iframe=!0,BI.ignoreTags.embed=void 0,BI.trustTags.embed=!0,NI.prototype.parse=function(e){for(let t=this.plugins.length;t--;)this.plugins[t].onUpdate&&(e=this.plugins[t].onUpdate(e,BI)||e);for(new $I(this).parse(e);this.stack.length;)this.popNode();return this.nodes.length>50&&DI(this.nodes),this.nodes},NI.prototype.expose=function(){for(let e=this.stack.length;e--;){const t=this.stack[e];if(t.c||"a"===t.name||"video"===t.name||"audio"===t.name)return;t.c=1}},NI.prototype.hook=function(e){for(let t=this.plugins.length;t--;)if(this.plugins[t].onParse&&!1===this.plugins[t].onParse(e,this))return!1;return!0},NI.prototype.getUrl=function(e){const t=this.options.domain;return"/"===e[0]?"/"===e[1]?e=(t?t.split("://")[0]:"http")+":"+e:t&&(e=t+e):e.includes("data:")||e.includes("://")||t&&(e=t+"/"+e),e},NI.prototype.parseStyle=function(e){const t=e.attrs,n=(this.tagStyle[e.name]||"").split(";").concat((t.style||"").split(";")),o={};let i="";t.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==e.name&&"a"!==e.name&&"video"!==e.name&&"audio"!==e.name&&(t.id=void 0)),t.width&&(o.width=parseFloat(t.width)+(t.width.includes("%")?"%":"px"),t.width=void 0),t.height&&(o.height=parseFloat(t.height)+(t.height.includes("%")?"%":"px"),t.height=void 0);for(let r=0,s=n.length;r<s;r++){const e=n[r].split(":");if(e.length<2)continue;const t=e.shift().trim().toLowerCase();let s=e.join(":").trim();if("-"===s[0]&&s.lastIndexOf("-")>0||s.includes("safe"))i+=`;${t}:${s}`;else if(!o[t]||s.includes("import")||!o[t].includes("import")){if(s.includes("url")){let e=s.indexOf("(")+1;if(e){for(;'"'===s[e]||"'"===s[e]||zI[s[e]];)e++;s=s.substr(0,e)+this.getUrl(s.substr(e))}}else s.includes("rpx")&&(s=s.replace(/[0-9.]+\s*rpx/g,e=>parseFloat(e)*PI/750+"px"));o[t]=s}}return e.attrs.style=i,o},NI.prototype.onTagName=function(e){this.tagName=this.xml?e:e.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1,BI.ignoreTags.style=void 0)},NI.prototype.onAttrName=function(e){(e=this.xml?e:e.toLowerCase()).includes("?")||e.includes(";")?this.attrName=void 0:"data-"===e.substr(0,5)?"data-src"!==e||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=e:this.attrName=void 0:this.attrName="src":(this.attrName=e,this.attrs[e]="T")},NI.prototype.onAttrVal=function(e){const t=this.attrName||"";"style"===t||"href"===t?this.attrs[t]=LI(e,!0):t.includes("src")?this.attrs[t]=this.getUrl(LI(e,!0)):t&&(this.attrs[t]=e)},NI.prototype.onOpenTag=function(e){const t=Object.create(null);t.name=this.tagName,t.attrs=this.attrs,this.options.nodes.length&&(t.type="node"),this.attrs=Object.create(null);const n=t.attrs,o=this.stack[this.stack.length-1],i=o?o.children:this.nodes,r=this.xml?e:BI.voidTags[t.name];if(EI[t.name]&&(n.class=EI[t.name]+(n.class?" "+n.class:"")),"embed"===t.name&&this.expose(),"video"!==t.name&&"audio"!==t.name||("video"!==t.name||n.id||(n.id="v"+OI++),n.controls||n.autoplay||(n.controls="T"),t.src=[],n.src&&(t.src.push(n.src),n.src=void 0),this.expose()),r){if(!this.hook(t)||BI.ignoreTags[t.name])return void("base"!==t.name||this.options.domain?"source"===t.name&&o&&("video"===o.name||"audio"===o.name)&&n.src&&o.src.push(n.src):this.options.domain=n.href);const e=this.parseStyle(t);if("img"===t.name){if(n.src&&(n.src.includes("webp")&&(t.webp="T"),n.src.includes("data:")&&"all"!==this.options.previewImg&&!n["original-src"]&&(n.ignore="T"),!n.ignore||t.webp||n.src.includes("cloud://"))){for(let i=this.stack.length;i--;){const o=this.stack[i];"a"===o.name&&(t.a=o.attrs),"table"!==o.name||t.webp||n.src.includes("cloud://")||(!e.display||e.display.includes("inline")?t.t="inline-block":t.t=e.display,e.display=void 0),o.c=1}n.i=this.imgList.length.toString();let o=n["original-src"]||n.src;this.imgList.push(o),t.t||(this.imgList._unloadimgs+=1),this.options.lazyLoad&&(n["data-src"]=n.src,n.src=void 0)}"inline"===e.display&&(e.display=""),n.ignore&&(e["max-width"]=e["max-width"]||"100%",n.style+=";-webkit-touch-callout:none"),parseInt(e.width)>PI&&(e.height=void 0),isNaN(parseInt(e.width))||(t.w="T"),!isNaN(parseInt(e.height))&&(!e.height.includes("%")||o&&(o.attrs.style||"").includes("height"))&&(t.h="T"),t.w&&t.h&&e["object-fit"]&&("contain"===e["object-fit"]?t.m="aspectFit":"cover"===e["object-fit"]&&(t.m="aspectFill"))}else if("svg"===t.name)return i.push(t),this.stack.push(t),void this.popNode();for(const t in e)e[t]&&(n.style+=`;${t}:${e[t].replace(" !important","")}`);n.style=n.style.substr(1)||void 0}else("pre"===t.name||(n.style||"").includes("white-space")&&n.style.includes("pre"))&&2!==this.pre&&(this.pre=t.pre=1),t.children=[],this.stack.push(t);i.push(t)},NI.prototype.onCloseTag=function(e){let t;for(e=this.xml?e:e.toLowerCase(),t=this.stack.length;t--&&this.stack[t].name!==e;);if(-1!==t)for(;this.stack.length>t;)this.popNode();else if("p"===e||"br"===e){(this.stack.length?this.stack[this.stack.length-1].children:this.nodes).push({name:e,attrs:{class:EI[e]||"",style:this.tagStyle[e]||""}})}},NI.prototype.popNode=function(){const e=this.stack.pop();let t=e.attrs;const n=e.children,o=this.stack[this.stack.length-1],i=o?o.children:this.nodes;if(!this.hook(e)||BI.ignoreTags[e.name])return"title"===e.name&&n.length&&"text"===n[0].type&&this.options.setTitle&&p_({title:n[0].text}),void i.pop();if(e.pre&&2!==this.pre){this.pre=e.pre=void 0;for(let e=this.stack.length;e--;)this.stack[e].pre&&(this.pre=1)}const r={};if("svg"===e.name){if(this.xml>1)return void this.xml--;let n="";const o=t.style;return t.style="",t.xmlns="http://www.w3.org/2000/svg",function e(t){if("text"===t.type)return void(n+=t.text);const o=BI.svgDict[t.name]||t.name;if("foreignObject"===o)for(const n of t.children||[])if(n.attrs&&!n.attrs.xmlns){n.attrs.xmlns="http://www.w3.org/1999/xhtml";break}n+="<"+o;for(const i in t.attrs){const e=t.attrs[i];e&&(n+=` ${BI.svgDict[i]||i}="${e.replace(/"/g,"")}"`)}if(t.children){n+=">";for(let n=0;n<t.children.length;n++)e(t.children[n]);n+="</"+o+">"}else n+="/>"}(e),e.name="img",e.attrs={src:"data:image/svg+xml;utf8,"+n.replace(/#/g,"%23"),style:o,ignore:"T"},e.children=void 0,this.xml=!1,void(BI.ignoreTags.style=!0)}if(t.align&&("table"===e.name?"center"===t.align?r["margin-inline-start"]=r["margin-inline-end"]="auto":r.float=t.align:r["text-align"]=t.align,t.align=void 0),t.dir&&(r.direction=t.dir,t.dir=void 0),"font"===e.name&&(t.color&&(r.color=t.color,t.color=void 0),t.face&&(r["font-family"]=t.face,t.face=void 0),t.size)){let e=parseInt(t.size);isNaN(e)||(e<1?e=1:e>7&&(e=7),r["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][e-1]),t.size=void 0}if((t.class||"").includes("align-center")&&(r["text-align"]="center"),Object.assign(r,this.parseStyle(e)),"table"!==e.name&&parseInt(r.width)>PI&&(r["max-width"]="100%",r["box-sizing"]="border-box"),BI.blockTags[e.name]?e.name="div":BI.trustTags[e.name]||this.xml||(e.name="span"),"a"===e.name||"ad"===e.name||"iframe"===e.name)this.expose();else if("video"===e.name)(r.height||"").includes("auto")&&(r.height=void 0);else if("ul"!==e.name&&"ol"!==e.name||!e.c)if("table"===e.name){let o=parseFloat(t.cellpadding),i=parseFloat(t.cellspacing);const s=parseFloat(t.border),a=r["border-color"],l=r["border-style"];if(e.c&&(isNaN(o)&&(o=2),isNaN(i)&&(i=2)),s&&(t.style+=`;border:${s}px ${l||"solid"} ${a||"gray"}`),e.flag&&e.c){r.display="grid","collapse"===r["border-collapse"]&&(r["border-collapse"]=void 0,i=0),i?(r["grid-gap"]=i+"px",r.padding=i+"px"):s&&(t.style+=";border-left:0;border-top:0");const c=[],u=[],d=[],h={};!function e(t){for(let n=0;n<t.length;n++)if("tr"===t[n].name)u.push(t[n]);else if("colgroup"===t[n].name){let e=1;for(const o of t[n].children||[])if("col"===o.name){const t=o.attrs.style||"",n=t.indexOf("width")?t.indexOf(";width"):0;if(-1!==n){let o=t.indexOf(";",n+6);-1===o&&(o=t.length),c[e]=t.substring(n?n+7:6,o)}e+=1}}else e(t[n].children||[])}(n);for(let e=1;e<=u.length;e++){let t=1;for(let n=0;n<u[e-1].children.length;n++){const r=u[e-1].children[n];if("td"===r.name||"th"===r.name){for(;h[e+"."+t];)t++;let n=r.attrs.style||"",u=n.indexOf("width")?n.indexOf(";width"):0;if(-1!==u){let e=n.indexOf(";",u+6);-1===e&&(e=n.length),r.attrs.colspan||(c[t]=n.substring(u?u+7:6,e)),n=n.substr(0,u)+n.substr(e)}if(n+=";display:flex",u=n.indexOf("vertical-align"),-1!==u){const e=n.substr(u+15,10);e.includes("middle")?n+=";align-items:center":e.includes("bottom")&&(n+=";align-items:flex-end")}else n+=";align-items:center";if(u=n.indexOf("text-align"),-1!==u){const e=n.substr(u+11,10);e.includes("center")?n+=";justify-content: center":e.includes("right")&&(n+=";justify-content: right")}if(n=(s?`;border:${s}px ${l||"solid"} ${a||"gray"}`+(i?"":";border-right:0;border-bottom:0"):"")+(o?`;padding:${o}px`:"")+";"+n,r.attrs.colspan&&(n+=`;grid-column-start:${t};grid-column-end:${t+parseInt(r.attrs.colspan)}`,r.attrs.rowspan||(n+=`;grid-row-start:${e};grid-row-end:${e+1}`),t+=parseInt(r.attrs.colspan)-1),r.attrs.rowspan){n+=`;grid-row-start:${e};grid-row-end:${e+parseInt(r.attrs.rowspan)}`,r.attrs.colspan||(n+=`;grid-column-start:${t};grid-column-end:${t+1}`);for(let n=1;n<r.attrs.rowspan;n++)for(let o=0;o<(r.attrs.colspan||1);o++)h[e+n+"."+(t-o)]=1}n&&(r.attrs.style=n),d.push(r),t++}}if(1===e){let e="";for(let n=1;n<t;n++)e+=(c[n]?c[n]:"auto")+" ";r["grid-template-columns"]=e}}e.children=d}else e.c&&(r.display="table"),isNaN(i)||(r["border-spacing"]=i+"px"),(s||o)&&function e(t){for(let n=0;n<t.length;n++){const i=t[n];"th"===i.name||"td"===i.name?(s&&(i.attrs.style=`border:${s}px ${l||"solid"} ${a||"gray"};${i.attrs.style||""}`),o&&(i.attrs.style=`padding:${o}px;${i.attrs.style||""}`)):i.children&&e(i.children)}}(n);if(this.options.scrollTable&&!(t.style||"").includes("inline")){const n=Object.assign({},e);e.name="div",e.attrs={style:"overflow:auto"},e.children=[n],t=n.attrs}}else if(("tbody"===e.name||"tr"===e.name)&&e.flag&&e.c)e.flag=void 0,function e(t){for(let n=0;n<t.length;n++)if("td"===t[n].name)for(const e of["color","background","background-color"])r[e]&&(t[n].attrs.style=e+":"+r[e]+";"+(t[n].attrs.style||""));else e(t[n].children||[])}(n);else if("td"!==e.name&&"th"!==e.name||!t.colspan&&!t.rowspan)if("ruby"===e.name){e.name="span";for(let e=0;e<n.length-1;e++)"text"===n[e].type&&"rt"===n[e+1].name&&(n[e]={name:"div",attrs:{style:"display:inline-block;text-align:center"},children:[{name:"div",attrs:{style:"font-size:50%;"+(n[e+1].attrs.style||"")},children:n[e+1].children},n[e]]},n.splice(e+1,1))}else e.c&&function(e){e.c=2;for(let t=e.children.length;t--;){const n=e.children[t];n.c&&"table"!==n.name||(e.c=1)}}(e);else for(let a=this.stack.length;a--;)"table"!==this.stack[a].name&&"tbody"!==this.stack[a].name&&"tr"!==this.stack[a].name||(this.stack[a].flag=1);else{const e={a:"lower-alpha",A:"upper-alpha",i:"lower-roman",I:"upper-roman"};e[t.type]&&(t.style+=";list-style-type:"+e[t.type],t.type=void 0);for(let t=n.length;t--;)"li"===n[t].name&&(n[t].c=1)}if((r.display||"").includes("flex")&&!e.c)for(let a=n.length;a--;){const e=n[a];e.f&&(e.attrs.style=(e.attrs.style||"")+e.f,e.f=void 0)}const s=o&&((o.attrs.style||"").includes("flex")||(o.attrs.style||"").includes("grid"))&&!e.c;s&&(e.f=";max-width:100%"),n.length>=50&&e.c&&!(r.display||"").includes("flex")&&DI(n);for(const a in r)if(r[a]){const n=`;${a}:${r[a].replace(" !important","")}`;s&&(a.includes("flex")&&"flex-direction"!==a||"align-self"===a||a.includes("grid")||"-"===r[a][0]||a.includes("width")&&n.includes("%"))?(e.f+=n,"width"===a&&(t.style+=";width:100%")):t.style+=n}t.style=t.style.substr(1)||void 0},NI.prototype.onText=function(e){if(!this.pre){let t,n="";for(let o=0,i=e.length;o<i;o++)zI[e[o]]?(" "!==n[n.length-1]&&(n+=" "),"\n"!==e[o]||t||(t=!0)):n+=e[o];if(" "===n){if(t)return;{const e=this.stack[this.stack.length-1];if(e&&"t"===e.name[0])return}}e=n}const t=Object.create(null);if(t.type="text",t.text=LI(e),this.hook(t)){(this.stack.length?this.stack[this.stack.length-1].children:this.nodes).push(t)}},$I.prototype.parse=function(e){this.content=e||"",this.i=0,this.start=0,this.state=this.text;for(let t=this.content.length;-1!==this.i&&this.i<t;)this.state()},$I.prototype.checkClose=function(e){const t="/"===this.content[this.i];return!!(">"===this.content[this.i]||t&&">"===this.content[this.i+1])&&(e&&this.handler[e](this.content.substring(this.start,this.i)),this.i+=t?2:1,this.start=this.i,this.handler.onOpenTag(t),"script"===this.handler.tagName?(this.i=this.content.indexOf("</",this.i),-1!==this.i&&(this.i+=2,this.start=this.i),this.state=this.endTag):this.state=this.text,!0)},$I.prototype.text=function(){if(this.i=this.content.indexOf("<",this.i),-1===this.i)return void(this.start<this.content.length&&this.handler.onText(this.content.substring(this.start,this.content.length)));const e=this.content[this.i+1];if(e>="a"&&e<="z"||e>="A"&&e<="Z")this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"===e||"!"===e||"?"===e){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));const t=this.content[this.i+2];if("/"===e&&(t>="a"&&t<="z"||t>="A"&&t<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);let n="--\x3e";"!"===e&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(n=">"),this.i=this.content.indexOf(n,this.i),-1!==this.i&&(this.i+=n.length,this.start=this.i)}else this.i++},$I.prototype.tagName=function(){if(zI[this.content[this.i]]){for(this.handler.onTagName(this.content.substring(this.start,this.i));zI[this.content[++this.i]];);this.i<this.content.length&&!this.checkClose()&&(this.start=this.i,this.state=this.attrName)}else this.checkClose("onTagName")||this.i++},$I.prototype.attrName=function(){let e=this.content[this.i];if(zI[e]||"="===e){this.handler.onAttrName(this.content.substring(this.start,this.i));let t="="===e;const n=this.content.length;for(;++this.i<n;)if(e=this.content[this.i],!zI[e]){if(this.checkClose())return;if(t)return this.start=this.i,void(this.state=this.attrVal);if("="!==this.content[this.i])return this.start=this.i,void(this.state=this.attrName);t=!0}}else this.checkClose("onAttrName")||this.i++},$I.prototype.attrVal=function(){const e=this.content[this.i],t=this.content.length;if('"'===e||"'"===e){if(this.start=++this.i,this.i=this.content.indexOf(e,this.i),-1===this.i)return;this.handler.onAttrVal(this.content.substring(this.start,this.i))}else for(;this.i<t;this.i++){if(zI[this.content[this.i]]){this.handler.onAttrVal(this.content.substring(this.start,this.i));break}if(this.checkClose("onAttrVal"))return}for(;zI[this.content[++this.i]];);this.i<t&&!this.checkClose()&&(this.start=this.i,this.state=this.attrName)},$I.prototype.endTag=function(){const e=this.content[this.i];if(zI[e]||">"===e||"/"===e){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==e&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};const jI=[],HI={name:"u-parse",data:()=>({nodes:[]}),props:{containerStyle:{type:String,default:""},content:{type:String,default:""},copyLink:{type:[Boolean,String],default:!0},domain:String,errorImg:{type:String,default:""},lazyLoad:{type:[Boolean,String],default:!1},loadingImg:{type:String,default:""},pauseVideo:{type:[Boolean,String],default:!0},previewImg:{type:[Boolean,String],default:!0},scrollTable:[Boolean,String],selectable:[Boolean,String],setTitle:{type:[Boolean,String],default:!0},showImgMenu:{type:[Boolean,String],default:!0},tagStyle:Object,useAnchor:[Boolean,Number]},emits:["load","ready","imgTap","linkTap","play","error"],components:{node:II},watch:{content(e){this.setContent(e)}},created(){this.plugins=[];for(let e=jI.length;e--;)this.plugins.push(new jI[e](this))},mounted(){this.content&&!this.nodes.length&&this.setContent(this.content)},beforeUnmount(){this._hook("onDetached")},methods:{in(e,t,n){e&&t&&n&&(this._in={page:e,selector:t,scrollTop:n})},navigateTo(e,t){return new Promise((n,o)=>{if(!this.useAnchor)return void o(Error("Anchor is disabled"));t=t||parseInt(this.useAnchor)||0;const i=sp().in(this._in?this._in.page:this).select((this._in?this._in.selector:"._root")+(e?` #${e}`:"")).boundingClientRect();this._in?i.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():i.selectViewport().scrollOffset(),i.exec(e=>{if(!e[0])return void o(Error("Label not found"));const i=e[1].scrollTop+e[0].top-(e[2]?e[2].top:0)+t;this._in?this._in.page[this._in.scrollTop]=i:f_({scrollTop:i,duration:300}),n()})})},getText(e){let t="";return function e(n){for(let o=0;o<n.length;o++){const i=n[o];if("text"===i.type)t+=i.text.replace(/&amp;/g,"&");else if("br"===i.name)t+="\n";else{const n="p"===i.name||"div"===i.name||"tr"===i.name||"li"===i.name||"h"===i.name[0]&&i.name[1]>"0"&&i.name[1]<"7";n&&t&&"\n"!==t[t.length-1]&&(t+="\n"),i.children&&e(i.children),n&&"\n"!==t[t.length-1]?t+="\n":"td"!==i.name&&"th"!==i.name||(t+="\t")}}}(e||this.nodes),t},getRect(){return new Promise((e,t)=>{sp().in(this).select("#_root").boundingClientRect().exec(n=>n[0]?e(n[0]):t(Error("Root label not found")))})},pauseMedia(){for(let e=(this._videos||[]).length;e--;)this._videos[e].pause()},setPlaybackRate(e){this.playbackRate=e;for(let t=(this._videos||[]).length;t--;)this._videos[t].playbackRate(e)},setContent(e,t){t&&this.imgList||(this.imgList=[]);const n=new NI(this).parse(e);if(this.$set(this,"nodes",t?(this.nodes||[]).concat(n):n),this._videos=[],this.$nextTick(()=>{this._hook("onLoad"),this.$emit("load")}),this.lazyLoad||this.imgList._unloadimgs<this.imgList.length/2){let e=0;const t=n=>{n&&n.height||(n={}),n.height===e?this.$emit("ready",n):(e=n.height,setTimeout(()=>{this.getRect().then(t).catch(t)},350))};this.getRect().then(t).catch(t)}else this.imgList._unloadimgs||this.getRect().then(e=>{this.$emit("ready",e)}).catch(()=>{this.$emit("ready",{})})},_hook(e){for(let t=jI.length;t--;)this.plugins[t][e]&&this.plugins[t][e]()}}};const FI=W_(HI,[["render",function(e,t,n,o,i,r){const s=Bo("node"),a=Ay;return Ir(),zr(a,{id:"_root",class:Qe((n.selectable?"_select ":"")+"_root"),style:qe(n.containerStyle)},{default:So(()=>[i.nodes[0]?(Ir(),zr(s,{key:1,childs:i.nodes,opts:[n.lazyLoad,n.loadingImg,n.errorImg,n.showImgMenu,n.selectable],name:"span"},null,8,["childs","opts"])):Mi(e.$slots,"default",{key:0},void 0,!0)]),_:3},8,["class","style"])}],["__scopeId","data-v-51dbaabd"]]),VI=Object.freeze(Object.defineProperty({__proto__:null,default:FI},Symbol.toStringTag,{value:"Module"}));const WI=W_({name:"up-pdf-reader",mixins:[{props:{src:{type:String,default:""},height:{type:String,default:"700px"},baseUrl:{type:String,default:"https://uview-plus.jiangruyi.com/h5"}}}],data:()=>({baseUrlInner:"https://uview-plus.jiangruyi.com/h5",viewerUrl:""}),watch:{baseUrl:function(e){this.baseUrl=e},src:function(e){this.viewerUrl=`${this.baseUrlInner}/static/pdfjs/web/viewer.html?file=`+encodeURIComponent(e)}},mounted(){this.baseUrl&&(this.baseUrlInner=this.baseUrl),this.viewerUrl=`${this.baseUrlInner}/static/pdfjs/web/viewer.html?file=`+encodeURIComponent(this.src)}},[["render",function(e,t,n,o,i,r){const s=fb,a=Ay;return Ir(),zr(a,{class:"up-pdf-reader",style:qe({height:e.height})},{default:So(()=>[jr(s,{fullscreen:!1,src:i.viewerUrl,style:qe({width:"750rpx",height:e.height}),"webview-styles":{width:"750rpx",height:e.height},frameborder:"0"},null,8,["src","style","webview-styles"])]),_:1},8,["style"])}],["__scopeId","data-v-f5d92a2c"]]),UI=Object.freeze(Object.defineProperty({__proto__:null,default:WI},Symbol.toStringTag,{value:"Module"}));const qI=W_({name:"u-picker-column",mixins:[hx,fx,{props:{}}]},[["render",function(e,t,n,o,i,r){const s=Ay,a=oy;return Ir(),zr(a,null,{default:So(()=>[jr(s,{class:"u-picker-column"})]),_:1})}]]),QI=Object.freeze(Object.defineProperty({__proto__:null,default:qI},Symbol.toStringTag,{value:"Module"}));const YI=W_({name:"u-picker-data",props:{modelValue:{type:[String,Number],default:""},title:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[]},valueKey:{type:String,default:"id"},labelKey:{type:String,default:"name"}},data:()=>({show:!1,current:"",defaultIndex:[]}),created(){this.modelValue&&this.options.forEach((e,t)=>{e[this.valueKey]==this.modelValue&&(this.current=e[this.labelKey],this.defaultIndex=[t])})},watch:{modelValue(){this.modelValue&&this.options.forEach((e,t)=>{e[this.valueKey]==this.modelValue&&(this.current=e[this.labelKey],this.defaultIndex=[t])})}},computed:{optionsInner(){return[this.options]}},emits:["update:modelValue","cancel","close","confirm"],methods:{hideKeyboard(){nv()},cancel(){this.show=!1,this.$emit("cancel")},close(){this.$emit("close")},confirm(e){const{columnIndex:t,index:n,value:o}=e;this.show=!1,this.$emit("update:modelValue",o[0][this.valueKey]),this.defaultIndex=t,this.current=o[0][this.labelKey],this.$emit("confirm")}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-input"),a=Ay,l=Bo("up-picker");return Ir(),zr(a,{class:"u-picker-data"},{default:So(()=>[jr(a,{class:"u-picker-data__trigger"},{default:So(()=>[Mi(e.$slots,"trigger",{current:i.current},void 0,!0),e.$slots.trigger?Wr("",!0):(Ir(),zr(s,{key:0,modelValue:i.current,disabled:"",disabledColor:"#ffffff",placeholder:n.title,border:"none"},null,8,["modelValue","placeholder"])),jr(a,{onClick:t[0]||(t[0]=e=>i.show=!0),class:"u-picker-data__trigger__cover"})]),_:3}),jr(l,{show:i.show,columns:r.optionsInner,keyName:n.labelKey,defaultIndex:i.defaultIndex,onConfirm:r.confirm,onCancel:r.cancel,onClose:r.close},null,8,["show","columns","keyName","defaultIndex","onConfirm","onCancel","onClose"])]),_:3})}],["__scopeId","data-v-232ba358"]]),GI=Object.freeze(Object.defineProperty({__proto__:null,default:YI},Symbol.toStringTag,{value:"Module"}));const XI=W_({name:"up-poster",props:{json:{type:Object,default:()=>({})}},data:()=>({canvasId:"u-poster-canvas-"+Date.now(),showCanvas:!1,canvasWidth:0,canvasHeight:0,qrCodeValue:"",qrCodeSize:200,qrCodeShow:!1,qrCodeMap:new Map}),computed:{getTextStyle:()=>e=>{const t={};return e.color&&(t.color=e.color),e.fontSize&&(t.fontSize=e.fontSize),e.fontWeight&&(t.fontWeight=e.fontWeight),e.lineHeight&&(t.lineHeight=e.lineHeight),e.textAlign&&(t.textAlign=e.textAlign),t}},methods:{async exportImage(){return new Promise(async(e,t)=>{try{const n=this.json.css,o=this.convertRpxToPx(n.width||"750rpx"),i=this.convertRpxToPx(n.height||"1114rpx");this.canvasWidth=o,this.canvasHeight=i,this.showCanvas=!0,await this.$nextTick();const r=Vh(this.canvasId,this);n.background&&(n.background.includes("linear-gradient")||n.background.includes("radial-gradient")?this.drawGradientBackground(r,n,0,0,o,i):(r.setFillStyle(n.background),r.fillRect(0,0,o,i)));for(const e of this.json.views)await this.drawItem(r,e,o,i);r.draw(!1,()=>{setTimeout(()=>{qh({canvasId:this.canvasId,success:t=>{this.showCanvas=!1,e({width:o,height:i,path:t.tempFilePath,blob:this.dataURLToBlob(t.tempFilePath)})},fail:e=>{this.showCanvas=!1,t(new Error("导出图片失败: "+JSON.stringify(e)))}},this)},300)}),setTimeout(()=>{this.showCanvas=!1,t(new Error("导出图片超时"))},1e4)}catch(n){this.showCanvas=!1,t(n)}})},async drawItem(e,t,n,o){const i=t.css||{},r=this.convertRpxToPx(i.left||"0rpx"),s=this.convertRpxToPx(i.top||"0rpx"),a=this.convertRpxToPx(i.width||"0rpx"),l=this.convertRpxToPx(i.height||"0rpx");switch(t.type){case"view":if(i.background)if(i.background.includes("linear-gradient")||i.background.includes("radial-gradient"))this.drawGradientBackground(e,i,r,s,a,l);else if(e.setFillStyle(i.background),i.radius){const t=this.convertRpxToPx(i.radius);this.drawRoundRect(e,r,s,a,l,t,i.background)}else e.fillRect(r,s,a,l);break;case"text":if(i.color&&e.setFillStyle(i.color),i.fontSize){const t=this.convertRpxToPx(i.fontSize);e.setFontSize(t)}if(i.fontWeight&&e.setLineWidth("bold"===i.fontWeight?2:1),i.lineClamp)this.drawTextWithLineClamp(e,t.text,r,s,a,i);else{const n=i.fontSize?this.convertRpxToPx(i.fontSize)/2:10;e.fillText(t.text,r,s+n)}break;case"image":return new Promise(n=>{ov({src:t.src,success:o=>{if(i.radius){const t=this.convertRpxToPx(i.radius);this.clipRoundRect(e,r,s,a,l,t)}e.drawImage(t.src,r,s,a,l),e.restore(),n()},fail:()=>{e.setFillStyle("#f5f5f5"),e.fillRect(r,s,a,l),n()}})});case"qrcode":if(t.text){const n=await this.generateQRCode(t.text,a,l);return new Promise(t=>{ov({src:n,success:n=>{e.drawImage(n.path,r,s,a,l),t()},fail:()=>{e.setFillStyle("#f5f5f5"),e.fillRect(r,s,a,l),e.setFillStyle("#999"),e.setFontSize(12),e.setTextAlign("center"),e.fillText("QR",r+a/2,s+l/2),e.setTextAlign("left"),t()}})})}e.setFillStyle("#f5f5f5"),e.fillRect(r,s,a,l),e.setFillStyle("#999"),e.setFontSize(12),e.setTextAlign("center"),e.fillText("QR",r+a/2,s+l/2),e.setTextAlign("left")}},drawRoundRect(e,t,n,o,i,r,s){e.save(),e.beginPath(),e.moveTo(t+r,n),e.lineTo(t+o-r,n),e.quadraticCurveTo(t+o,n,t+o,n+r),e.lineTo(t+o,n+i-r),e.quadraticCurveTo(t+o,n+i,t+o-r,n+i),e.lineTo(t+r,n+i),e.quadraticCurveTo(t,n+i,t,n+i-r),e.lineTo(t,n+r),e.quadraticCurveTo(t,n,t+r,n),e.closePath(),s&&(e.setFillStyle(s),e.fill()),e.restore()},clipRoundRect(e,t,n,o,i,r){e.save(),e.beginPath(),e.arc(t+r,n+r,r,Math.PI,1.5*Math.PI),e.lineTo(t+o-r,n),e.arc(t+o-r,n+r,r,1.5*Math.PI,2*Math.PI),e.lineTo(t+o,n+i-r),e.arc(t+o-r,n+i-r,r,0,.5*Math.PI),e.lineTo(t+r,n+i),e.arc(t+r,n+i-r,r,.5*Math.PI,Math.PI),e.closePath(),e.clip()},drawTextWithLineClamp(e,t,n,o,i,r){const s=parseInt(r.lineClamp)||1,a=r.lineHeight?this.convertRpxToPx(r.lineHeight):20,l=[];let c="";for(let u=0;u<t.length;u++){const n=t[u],o=c+n,r=e.measureText(o);if(r.width>i&&""!==c){if(l.push(c),c=n,l.length===s){if(r.width>i){let t=c.substring(0,c.length-1);for(;e.measureText(t+"...").width>i&&t.length>0;)t=t.substring(0,t.length-1);l[l.length-1]=t+"..."}break}}else c=o;u===t.length-1&&l.length<s&&l.push(c)}for(let u=0;u<l.length;u++){const t=r.fontSize?this.convertRpxToPx(r.fontSize)/2:10;e.fillText(l[u],n,o+u*a+t)}},generateQRCode(e,t,n){return new Promise(o=>{const i=`${e}_${t}_${n}`;if(this.qrCodeMap.has(i))o(this.qrCodeMap.get(i));else try{this.qrCodeValue=e,this.qrCodeSize=Math.max(t,n),this.qrCodeShow=!0,this.$nextTick(()=>{this.$refs.qrCode?setTimeout(()=>{this.$refs.qrCode.toTempFilePath({success:e=>{this.qrCodeMap.set(i,e.tempFilePath),this.qrCodeShow=!1,o(e.tempFilePath)},fail:e=>{console.error("二维码生成失败:",e),this.qrCodeShow=!1}})},300):this.qrCodeShow=!1})}catch(r){console.error("生成二维码出错:",r),this.qrCodeShow=!1}})},convertRpxToPx(e){if("number"==typeof e)return e;if("string"==typeof e&&e.endsWith("rpx")){const t=parseFloat(e);return fh(t)}return parseFloat(e)||0},drawGradientBackground(e,t,n,o,i,r){const s=t.background;let a=null;if(s.includes("linear-gradient")){const t=s.match(/linear-gradient\((\d+)deg/),l=t?parseInt(t[1]):135;let c=n,u=o,d=n+i,h=o+r;0===l?(c=n,u=o+r,d=n,h=o):90===l?(c=n,u=o,d=n+i,h=o):180===l?(c=n,u=o,d=n,h=o+r):270===l&&(c=n+i,u=o,d=n,h=o),a=e.createLinearGradient(c,u,d,h);const p=s.match(/#[0-9a-fA-F]+|rgba?\([^)]+\)/g);p&&p.length>=2&&p.forEach((e,t)=>{const n=t/(p.length-1);a.addColorStop(n,e)})}else if(s.includes("radial-gradient")){const t=n+i/2,l=o+r/2,c=Math.min(i,r)/2;a=e.createRadialGradient(t,l,0,t,l,c);const u=s.match(/#[0-9a-fA-F]+|rgba?\([^)]+\)/g);u&&u.length>=2&&u.forEach((e,t)=>{const n=t/(u.length-1);a.addColorStop(n,e)})}if(a)if(e.setFillStyle(a),t.radius){const s=this.convertRpxToPx(t.radius);this.drawRoundRect(e,n,o,i,r,s,a)}else e.fillRect(n,o,i,r)},dataURLToBlob(e){if(e&&e.startsWith("data:image")){const t=e.split(";base64,"),n=t[0].split(":")[1],o=window.atob(t[1]),i=o.length,r=new Uint8Array(i);for(let e=0;e<i;++e)r[e]=o.charCodeAt(e);return new Blob([r],{type:n})}return null}}},[["render",function(e,t,n,o,i,r){const s=zm,a=Bo("up-qrcode"),l=Ay;return Ir(),zr(l,{class:"up-poster"},{default:So(()=>[i.showCanvas?(Ir(),zr(s,{key:0,class:"up-poster__hidden-canvas","canvas-id":i.canvasId,id:i.canvasId,style:qe({width:i.canvasWidth+"px",height:i.canvasHeight+"px"})},null,8,["canvas-id","id","style"])):Wr("",!0),jr(a,{ref:"qrCode",val:i.qrCodeValue,size:i.qrCodeSize,margin:0,loadMake:!1,background:"#ffffff",foreground:"#000000",class:Qe(["up-poster__hidden-qrcode",i.qrCodeShow?"":"up-poster__hidden-qrcode--hidden"])},null,8,["val","size","class"])]),_:1})}],["__scopeId","data-v-d9e414a3"]]),KI=Object.freeze(Object.defineProperty({__proto__:null,default:XI},Symbol.toStringTag,{value:"Module"}));const JI=W_({name:"u-pull-refresh",props:{refreshing:{type:Boolean,default:!1},threshold:{type:Number,default:80},damping:{type:Number,default:.4},maxDistance:{type:Number,default:120},showLoadmore:{type:Boolean,default:!1},loadmoreProps:{type:Object,default:()=>({status:"loadmore"})},useScrollView:{type:Boolean,default:!0},enableBackToTop:{type:Boolean,default:!1},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0}},data:()=>({isRefreshing:!1,refreshStatus:"pull",refreshDistance:0,startY:0,currentY:0,touching:!1,contentTranslateY:0}),emits:["refresh","loadmore","scroll"],watch:{refreshing:{handler(e){e?this.startRefresh():this.finishRefresh()}}},methods:{t:Zw,onTouchStart(e){this.isRefreshing||(this.touching=!0,this.startY=e.touches[0].pageY,this.currentY=this.startY,this.refreshStatus="pull")},onTouchMove(e){if(!this.touching||this.isRefreshing)return;this.currentY=e.touches[0].pageY;const t=this.currentY-this.startY;t>0&&this.isScrollViewAtTop()&&(this.refreshDistance=Math.min(t*this.damping,this.maxDistance),this.contentTranslateY=this.refreshDistance,this.refreshDistance>=this.threshold?this.refreshStatus="release":this.refreshStatus="pull",e.preventDefault(),e.stopPropagation())},onTouchEnd(){this.touching&&(this.touching=!1,this.refreshDistance>=this.threshold&&!this.isRefreshing?(this.startRefresh(),this.$emit("refresh")):this.resetRefresh())},startRefresh(){this.isRefreshing=!0,this.refreshStatus="refreshing",this.refreshDistance=this.threshold,this.contentTranslateY=this.threshold},finishRefresh(){this.isRefreshing=!1,this.refreshStatus="pull",this.resetRefresh()},resetRefresh(){this.refreshDistance=0,this.contentTranslateY=0},isScrollViewAtTop:()=>!0,handleScroll(e){this.$emit("scroll",e)},handleScrollToLower(e){this.showLoadmore&&"loadmore"===this.loadmoreProps.status&&this.$emit("loadmore")}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay,l=wy,c=yx(Po("u-loadmore"),NA),u=dy;return Ir(),zr(a,{class:"u-pull-refresh",onTouchstart:r.onTouchStart,onTouchmove:r.onTouchMove,onTouchend:r.onTouchEnd,onTouchcancel:r.onTouchEnd},{default:So(()=>[jr(a,{class:Qe(["refresh-area",{refreshing:i.isRefreshing}]),style:qe({height:i.refreshDistance+"px"})},{default:So(()=>["pull"===i.refreshStatus?Mi(e.$slots,"pull",{key:0,distance:i.refreshDistance,threshold:n.threshold},()=>[jr(a,{class:"refresh-content"},{default:So(()=>[jr(a,{class:"refresh-indicator"},{default:So(()=>[jr(s,{name:"arrow-downward",size:"26px"})]),_:1}),jr(l,{class:"refresh-text"},{default:So(()=>[Vr(X(r.t("up.pullRefresh.pull")),1)]),_:1})]),_:1})],!0):"release"===i.refreshStatus?Mi(e.$slots,"release",{key:1,distance:i.refreshDistance,threshold:n.threshold},()=>[jr(a,{class:"refresh-content"},{default:So(()=>[jr(a,{class:"refresh-indicator"},{default:So(()=>[jr(s,{name:"arrow-upward",size:"26px"})]),_:1}),jr(l,{class:"refresh-text"},{default:So(()=>[Vr(X(r.t("up.pullRefresh.release")),1)]),_:1})]),_:1})],!0):"refreshing"===i.refreshStatus?Mi(e.$slots,"refreshing",{key:2},()=>[jr(a,{class:"refresh-content"},{default:So(()=>[jr(a,{class:"refresh-indicator"},{default:So(()=>[jr(a,{class:"spinner"})]),_:1}),jr(l,{class:"refresh-text"},{default:So(()=>[Vr(X(r.t("up.pullRefresh.refreshing"))+"...",1)]),_:1})]),_:1})],!0):Wr("",!0)]),_:3},8,["style","class"]),jr(a,{class:"refresh-content-wrapper",style:qe({transform:`translateY(${i.contentTranslateY}px)`})},{default:So(()=>[n.useScrollView?(Ir(),zr(u,{key:0,class:"scroll-wrapper","scroll-y":!0,"enable-back-to-top":n.enableBackToTop,"scroll-top":n.scrollTop,"lower-threshold":n.lowerThreshold,onScroll:r.handleScroll,onScrolltolower:r.handleScrollToLower},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0),n.showLoadmore?(Ir(),zr(c,Ye(Yr({key:0},n.loadmoreProps)),null,16)):Wr("",!0)]),_:3},8,["enable-back-to-top","scroll-top","lower-threshold","onScroll","onScrolltolower"])):(Ir(),zr(a,{key:1},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0),n.showLoadmore?(Ir(),zr(c,Ye(Yr({key:0},n.loadmoreProps)),null,16)):Wr("",!0)]),_:3}))]),_:3},8,["style"])]),_:3},8,["onTouchstart","onTouchmove","onTouchend","onTouchcancel"])}],["__scopeId","data-v-87de9088"]]),ZI=Object.freeze(Object.defineProperty({__proto__:null,default:JI},Symbol.toStringTag,{value:"Module"}));let eB={};!function(){function e(e){return e<128?[e]:e<2048?[192+(e>>6),128+(63&e)]:[224+(e>>12),128+(e>>6&63),128+(63&e)]}function t(t,n){this.typeNumber=-1,this.errorCorrectLevel=n,this.modules=null,this.moduleCount=0,this.dataCache=null,this.rsBlocks=null,this.totalDataCount=-1,this.data=t,this.utf8bytes=function(t){for(var n=[],o=0;o<t.length;o++)for(var i=e(t.charCodeAt(o)),r=0;r<i.length;r++)n.push(i[r]);return n}(t),this.make()}t.prototype={constructor:t,getModuleCount:function(){return this.moduleCount},make:function(){this.getRightType(),this.dataCache=this.createData(),this.createQrcode()},makeImpl:function(e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var t=0;t<this.moduleCount;t++)this.modules[t]=new Array(this.moduleCount);this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(!0,e),this.typeNumber>=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var o=-1;o<=7;o++)t+o<=-1||this.moduleCount<=t+o||(this.modules[e+n][t+o]=0<=n&&n<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=o&&o<=4)},createQrcode:function(){for(var e=0,t=0,n=null,o=0;o<8;o++){this.makeImpl(o);var i=d.getLostPoint(this);(0==o||e>i)&&(e=i,t=o,n=this.modules)}this.modules=n,this.setupTypeInfo(!1,t),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0,null==this.modules[6][e]&&(this.modules[6][e]=e%2==0))},setupPositionAdjustPattern:function(){for(var e=d.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var o=e[t],i=e[n];if(null==this.modules[o][i])for(var r=-2;r<=2;r++)for(var s=-2;s<=2;s++)this.modules[o+r][i+s]=-2==r||2==r||-2==s||2==s||0==r&&0==s}},setupTypeNumber:function(e){for(var t=d.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var o=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=o,this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=o}},setupTypeInfo:function(e,t){for(var o=n[this.errorCorrectLevel]<<3|t,i=d.getBCHTypeInfo(o),r=0;r<15;r++){var s=!e&&1==(i>>r&1);r<6?this.modules[r][8]=s:r<8?this.modules[r+1][8]=s:this.modules[this.moduleCount-15+r][8]=s;s=!e&&1==(i>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=s:r<9?this.modules[8][15-r-1+1]=s:this.modules[8][15-r-1]=s}this.modules[this.moduleCount-8][8]=!e},createData:function(){var e=new g,n=this.typeNumber>9?16:8;e.put(4,4),e.put(this.utf8bytes.length,n);for(var o=0,i=this.utf8bytes.length;o<i;o++)e.put(this.utf8bytes[o],8);for(e.length+4<=8*this.totalDataCount&&e.put(0,4);e.length%8!=0;)e.putBit(!1);for(;!(e.length>=8*this.totalDataCount||(e.put(t.PAD0,8),e.length>=8*this.totalDataCount));)e.put(t.PAD1,8);return this.createBytes(e)},createBytes:function(e){for(var t=0,n=0,o=0,i=this.rsBlock.length/3,r=new Array,s=0;s<i;s++)for(var a=this.rsBlock[3*s+0],l=this.rsBlock[3*s+1],c=this.rsBlock[3*s+2],u=0;u<a;u++)r.push([c,l]);for(var h=new Array(r.length),p=new Array(r.length),m=0;m<r.length;m++){var g=r[m][0],y=r[m][1]-g;n=Math.max(n,g),o=Math.max(o,y),h[m]=new Array(g);for(s=0;s<h[m].length;s++)h[m][s]=255&e.buffer[s+t];t+=g;var b=d.getErrorCorrectPolynomial(y),v=new f(h[m],b.getLength()-1).mod(b);p[m]=new Array(b.getLength()-1);for(s=0;s<p[m].length;s++){var _=s+v.getLength()-p[m].length;p[m][s]=_>=0?v.get(_):0}}var w=new Array(this.totalDataCount),x=0;for(s=0;s<n;s++)for(m=0;m<r.length;m++)s<h[m].length&&(w[x++]=h[m][s]);for(s=0;s<o;s++)for(m=0;m<r.length;m++)s<p[m].length&&(w[x++]=p[m][s]);return w},mapData:function(e,t){for(var n=-1,o=this.moduleCount-1,i=7,r=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var a=0;a<2;a++)if(null==this.modules[o][s-a]){var l=!1;r<e.length&&(l=1==(e[r]>>>i&1)),d.getMask(t,o,s-a)&&(l=!l),this.modules[o][s-a]=l,-1==--i&&(r++,i=7)}if((o+=n)<0||this.moduleCount<=o){o-=n,n=-n;break}}}},t.PAD0=236,t.PAD1=17;for(var n=[1,0,3,2],o=0,i=1,r=2,s=3,a=4,l=5,c=6,u=7,d={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;d.getBCHDigit(t)-d.getBCHDigit(d.G15)>=0;)t^=d.G15<<d.getBCHDigit(t)-d.getBCHDigit(d.G15);return(e<<10|t)^d.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;d.getBCHDigit(t)-d.getBCHDigit(d.G18)>=0;)t^=d.G18<<d.getBCHDigit(t)-d.getBCHDigit(d.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return d.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case o:return(t+n)%2==0;case i:return t%2==0;case r:return n%3==0;case s:return(t+n)%3==0;case a:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case l:return t*n%2+t*n%3==0;case c:return(t*n%2+t*n%3)%2==0;case u:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new f([1],0),n=0;n<e;n++)t=t.multiply(new f([1,h.gexp(n)],0));return t},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,o=0,i=0;i<t;i++)for(var r=0,s=e.modules[i][0],a=0;a<t;a++){var l=e.modules[i][a];if(a<t-6&&l&&!e.modules[i][a+1]&&e.modules[i][a+2]&&e.modules[i][a+3]&&e.modules[i][a+4]&&!e.modules[i][a+5]&&e.modules[i][a+6]&&(a<t-10?e.modules[i][a+7]&&e.modules[i][a+8]&&e.modules[i][a+9]&&e.modules[i][a+10]&&(n+=40):a>3&&e.modules[i][a-1]&&e.modules[i][a-2]&&e.modules[i][a-3]&&e.modules[i][a-4]&&(n+=40)),i<t-1&&a<t-1){var c=0;l&&c++,e.modules[i+1][a]&&c++,e.modules[i][a+1]&&c++,e.modules[i+1][a+1]&&c++,0!=c&&4!=c||(n+=3)}s^l?r++:(s=l,r>=5&&(n+=3+r-5),r=1),l&&o++}for(a=0;a<t;a++)for(r=0,s=e.modules[0][a],i=0;i<t;i++){l=e.modules[i][a];i<t-6&&l&&!e.modules[i+1][a]&&e.modules[i+2][a]&&e.modules[i+3][a]&&e.modules[i+4][a]&&!e.modules[i+5][a]&&e.modules[i+6][a]&&(i<t-10?e.modules[i+7][a]&&e.modules[i+8][a]&&e.modules[i+9][a]&&e.modules[i+10][a]&&(n+=40):i>3&&e.modules[i-1][a]&&e.modules[i-2][a]&&e.modules[i-3][a]&&e.modules[i-4][a]&&(n+=40)),s^l?r++:(s=l,r>=5&&(n+=3+r-5),r=1)}return n+=10*(Math.abs(100*o/t/t-50)/5)}},h={glog:function(e){if(e<1)throw new Error("glog("+e+")");return h.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return h.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},p=0;p<8;p++)h.EXP_TABLE[p]=1<<p;for(p=8;p<256;p++)h.EXP_TABLE[p]=h.EXP_TABLE[p-4]^h.EXP_TABLE[p-5]^h.EXP_TABLE[p-6]^h.EXP_TABLE[p-8];for(p=0;p<255;p++)h.LOG_TABLE[h.EXP_TABLE[p]]=p;function f(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var o=0;o<e.length-n;o++)this.num[o]=e[o+n]}f.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var o=0;o<e.getLength();o++)t[n+o]^=h.gexp(h.glog(this.get(n))+h.glog(e.get(o)));return new f(t,0)},mod:function(e){var t=this.getLength(),n=e.getLength();if(t-n<0)return this;for(var o=new Array(t),i=0;i<t;i++)o[i]=this.get(i);for(;o.length>=n;){var r=h.glog(o[0])-h.glog(e.get(0));for(i=0;i<e.getLength();i++)o[i]^=h.gexp(h.glog(e.get(i))+r);for(;0==o[0];)o.shift()}return new f(o,0)}};var m=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];function g(){this.buffer=new Array,this.length=0}t.prototype.getRightType=function(){for(var e=1;e<41;e++){var t=m[4*(e-1)+this.errorCorrectLevel];if(null==t)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+this.errorCorrectLevel);for(var n=t.length/3,o=0,i=0;i<n;i++){var r=t[3*i+0];o+=t[3*i+2]*r}var s=e>9?2:1;if(this.utf8bytes.length+s<o||40==e){this.typeNumber=e,this.rsBlock=t,this.totalDataCount=o;break}}},g.prototype={get:function(e){var t=Math.floor(e/8);return this.buffer[t]>>>7-e%8&1},put:function(e,t){for(var n=0;n<t;n++)this.putBit(e>>>t-n-1&1)},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};let y=[];eB=function(e){this.options={text:"",size:256,correctLevel:3,background:"#ffffff",foreground:"#000000",pdground:"#000000",image:"",imageSize:30,canvasId:e.canvasId,nvueContext:e.nvueContext,context:e.context,usingComponents:e.usingComponents,showLoading:e.showLoading,loadingText:e.loadingText};let n=null;if("string"==typeof e&&(e={text:e}),e)for(var o in e)this.options[o]=e[o];for(var i=null,r=(o=0,y.length);o<r;o++)if(y[o].text==this.options.text&&y[o].text.correctLevel==this.options.correctLevel){i=y[o].obj;break}o==r&&(i=new t(this.options.text,this.options.correctLevel),y.push({text:this.options.text,correctLevel:this.options.correctLevel,obj:i}));let s=function(e){var t=e.options;return t.pdground&&(e.row>1&&e.row<5&&e.col>1&&e.col<5||e.row>e.count-6&&e.row<e.count-2&&e.col>1&&e.col<5||e.row>1&&e.row<5&&e.col>e.count-6&&e.col<e.count-2)?t.pdground:t.foreground},a=async e=>new Promise((t,n)=>{try{sp().in(this.options.context).select(`#${e}`).fields({node:!0,size:!0}).exec(e=>{t(e[0].node)})}catch(o){console.error("createCanvasContextFail",o)}});!async function(e){e.showLoading&&l_({title:e.loadingText,mask:!0});var t="";e.nvueContext?t=e.nvueContext:(n=await a(e.canvasId),t=n.getContext("2d")),e.context.ctx=t,e.context.canvas=n;for(var o=i.getModuleCount(),r=e.size,c=e.imageSize,u=(r/o).toPrecision(4),d=(r/o).toPrecision(4),h=0;h<o;h++)for(var p=0;p<o;p++){var f=Math.ceil((p+1)*u)-Math.floor(p*u),m=Math.ceil((h+1)*d)-Math.floor(h*d),g=s({row:h,col:p,count:o,options:e});e.nvueContext?t.setFillStyle(i.modules[h][p]?g:e.background):t.fillStyle=i.modules[h][p]?g:e.background,t.fillRect(Math.round(p*u),Math.round(h*d),f,m)}if(e.image){let n=function(t,n,o,i,r,s,a,l,c){e.nvueContext?(t.setLineWidth(a),t.setFillStyle(e.background),t.setStrokeStyle(e.background)):(t.lineWidth=a,t.fillStyle=e.background,t.strokeStyle=e.background),t.beginPath(),t.moveTo(n+s,o),t.lineTo(n+i,o),t.arc(n+i-s,o+s,s,-Math.PI/2,0),t.lineTo(n+i,o+r-s),t.arc(n+i-s,o+r-s,s,0,Math.PI/2),t.lineTo(n+s,o+r),t.arc(n+s,o+r-s,s,Math.PI/2,Math.PI),t.lineTo(n,o+s),t.arc(n+s,o+s,s,Math.PI,3*Math.PI/2),t.closePath(),l&&t.fill(),c&&t.stroke()};var y=Number(((r-c)/2).toFixed(2)),b=Number(((r-c)/2).toFixed(2));if(n(t,y,b,c,c,2,6,!0,!0),e.nvueContext)t.drawImage(e.image,y,b,c,c);else{const n=new Image;n.onload=()=>{t.drawImage(n,y,b,c,c)},n.src=e.image}}setTimeout(()=>{e.nvueContext?t.draw(!0,()=>{setTimeout(()=>{e.nvueContext?t.toTempFilePath(0,0,e.width,e.height,e.width,e.height,"",1,function(t){e.cbResult&&e.cbResult(t.tempFilePath)}):qh({width:e.width,height:e.height,destWidth:e.width,destHeight:e.height,canvasId:e.canvasId,quality:Number(1),success:function(t){e.cbResult&&(l(t.tempFilePath)?l(t.apFilePath)?e.cbResult(t.tempFilePath):e.cbResult(t.apFilePath):e.cbResult(t.tempFilePath))},fail:function(t){e.cbResult&&e.cbResult(t)},complete:function(){c_()}},e.context)},e.text.length+100)}):e.cbResult("")},e.usingComponents?0:150)}(this.options);let l=function(e){let t=typeof e,n=!1;return"number"==t&&""==String(e)||"undefined"==t?n=!0:"object"==t?"{}"!=JSON.stringify(e)&&"[]"!=JSON.stringify(e)&&null!=e||(n=!0):"string"==t?""!=e&&"undefined"!=e&&"null"!=e&&"{}"!=e&&"[]"!=e||(n=!0):"function"==t&&(n=!1),n}},eB.prototype.clear=function(e){var t="";options.nvueContext?t=options.nvueContext:Vh(this.options.canvasId,this.options.context),t.clearRect(0,0,this.options.size,this.options.size),t.draw(!1,()=>{e&&e()})}}();const tB=eB;let nB;const oB=W_({name:"u-qrcode",props:{cid:{type:String,default:()=>`u-qrcode-canvas${Math.floor(1e6*Math.random())}`},size:{type:Number,default:200},unit:{type:String,default:"px"},show:{type:Boolean,default:!0},val:{type:String,default:""},background:{type:String,default:"#ffffff"},foreground:{type:String,default:"#000000"},pdground:{type:String,default:"#000000"},icon:{type:String,default:""},iconSize:{type:Number,default:40},lv:{type:Number,default:3},onval:{type:Boolean,default:!0},loadMake:{type:Boolean,default:!0},usingComponents:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},loadingText:{type:String,default:"生成中"},allowPreview:{type:Boolean,default:!1},useRootHeightAndWidth:{type:Boolean,default:()=>!1}},emits:["result","longpressCallback"],data(){return{loading:!1,result:"",popupShow:!1,list:[{name:"保存二维码"}],rootId:`rootId${Number(100*Math.random()).toFixed(0)}`,ganvas:null,context:"",canvasObj:{},sizeLocal:this.size,ctx:null,canvas:null}},async mounted(){this.useRootHeightAndWidth&&await this.setNewSize(),this.loadMake&&(this._empty(this.val)||setTimeout(()=>{setTimeout(()=>{this._makeCode()})},0))},methods:{_makeCode(){let e=this;this._empty(this.val)?s_({title:"二维码内容不能为空",icon:"none",duration:2e3}):(this.loading=!0,nB=new tB({context:e,canvasId:e.cid,nvueContext:e.context,usingComponents:e.usingComponents,showLoading:!1,loadingText:e.loadingText,text:e.val,size:e.sizeLocal,background:e.background,foreground:e.foreground,pdground:e.pdground,correctLevel:e.lv,image:e.icon,imageSize:e.iconSize,cbResult:function(t){e._result(t)}}))},_clearCode(){this._result(""),nB.clear()},_saveCode(){let e=this;""!=this.result&&C_({filePath:e.result,success:function(){s_({title:"二维码保存成功",icon:"success",duration:2e3})}})},preview(e){this.allowPreview&&Av({urls:[this.result],longPressActions:{itemList:["保存二维码图片"],success:function(e){if(0===e.tapIndex)that._saveCode()},fail:function(e){console.log(e.errMsg)}}}),this.$emit("preview",{url:this.result},e)},async toTempFilePath({success:e,fail:t}){this.context?this.ctx.toTempFilePath(0,0,this.sizeLocal,this.sizeLocal,this.sizeLocal,this.sizeLocal,"",1,t=>{e(t)}):e({tempFilePath:this.ctx.canvas.toDataURL("image/png",1)})},async longpress(){this.toTempFilePath({success:e=>{this.$emit("longpressCallback",e.tempFilePath)},fail:e=>{}})},async setNewSize(){const e=await this.getNode(this.rootId,!1),{width:t,height:n}=e;this.sizeLocal=t>n?n:t},async getNode(e,t){return new Promise((n,o)=>{try{sp().in(this).select(`#${e}`).fields({node:!0,size:!0}).exec(e=>{n(t?e[0].node:e[0])})}catch(i){console.error("获取节点失败",i)}})},selectClick(e){if(0===e)alert("保存二维码"),this._saveCode()},_result(e){this.loading=!1,this.result=e,this.$emit("result",e)},_empty(e){let t=typeof e,n=!1;return"number"==t&&""==String(e)||"undefined"==t?n=!0:"object"==t?"{}"!=JSON.stringify(e)&&"[]"!=JSON.stringify(e)&&null!=e||(n=!0):"string"==t?""!=e&&"undefined"!=e&&"null"!=e&&"{}"!=e&&"[]"!=e||(n=!0):"function"==t&&(n=!1),n}},watch:{size:function(e,t){e==t||this._empty(e)||(this.cSize=e,this._empty(this.val)||setTimeout(()=>{this._makeCode()},100))},val:function(e,t){this.onval&&(e==t||this._empty(e)||setTimeout(()=>{this._makeCode()},0))}},computed:{}},[["render",function(e,t,n,o,i,r){const s=zm,a=Bo("up-loading-icon"),l=Ay;return Ir(),zr(l,{class:"u-qrcode",id:i.rootId,style:qe({width:n.useRootHeightAndWidth?"100%":"auto",height:n.useRootHeightAndWidth?"100%":"auto"}),onLongpress:r.longpress},{default:So(()=>[jr(l,{class:"u-qrcode__content",onClick:r.preview},{default:So(()=>[jr(s,{class:"u-qrcode__canvas",id:n.cid,"canvas-id":n.cid,type:"2d",style:qe({width:i.sizeLocal+n.unit,height:i.sizeLocal+n.unit})},null,8,["id","canvas-id","style"]),n.showLoading&&i.loading?(Ir(),zr(l,{key:0,class:"u-qrcode__loading",style:qe({width:i.sizeLocal+n.unit,height:i.sizeLocal+n.unit})},{default:So(()=>[jr(a,{vertical:"",text:n.loadingText,textSize:"14px"},null,8,["text"])]),_:1},8,["style"])):Wr("",!0)]),_:1},8,["onClick"])]),_:1},8,["id","style","onLongpress"])}],["__scopeId","data-v-3831ccaa"]]),iB=Object.freeze(Object.defineProperty({__proto__:null,default:oB},Symbol.toStringTag,{value:"Module"})),rB={props:{modelValue:{type:[String,Number,Boolean],default:()=>cx.radioGroup.value},disabled:{type:Boolean,default:()=>cx.radioGroup.disabled},shape:{type:String,default:()=>cx.radioGroup.shape},activeColor:{type:String,default:()=>cx.radioGroup.activeColor},inactiveColor:{type:String,default:()=>cx.radioGroup.inactiveColor},name:{type:String,default:()=>cx.radioGroup.name},size:{type:[String,Number],default:()=>cx.radioGroup.size},placement:{type:String,default:()=>cx.radioGroup.placement},label:{type:[String],default:()=>cx.radioGroup.label},labelColor:{type:[String],default:()=>cx.radioGroup.labelColor},labelSize:{type:[String,Number],default:()=>cx.radioGroup.labelSize},labelDisabled:{type:Boolean,default:()=>cx.radioGroup.labelDisabled},iconColor:{type:String,default:()=>cx.radioGroup.iconColor},iconSize:{type:[String,Number],default:()=>cx.radioGroup.iconSize},borderBottom:{type:Boolean,default:()=>cx.radioGroup.borderBottom},iconPlacement:{type:String,default:()=>cx.radio.iconPlacement},gap:{type:[String,Number],default:()=>cx.radioGroup.gap}}},sB={name:"u-radio-group",mixins:[hx,fx,rB],computed:{parentData(){return[this.modelValue,this.disabled,this.inactiveColor,this.activeColor,this.size,this.labelDisabled,this.shape,this.iconSize,this.borderBottom,this.placement]},bemClass(){return this.bem("radio-group",["placement"])},radioGroupStyle(){return Rw({gap:zw(this.gap)},Mw(this.customStyle))}},watch:{parentData(){this.children.length&&this.children.map(e=>{"function"==typeof e.init&&e.init()})}},data:()=>({}),created(){this.children=[]},emits:["update:modelValue","change"],methods:{unCheckedOther(e){this.children.map(t=>{e!==t&&(t.checked=!1)});const{name:t}=e;this.$emit("update:modelValue",t),this.$emit("change",t)}}};const aB=W_(sB,[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:Qe(["u-radio-group",r.bemClass]),style:qe(r.radioGroupStyle)},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["class","style"])}],["__scopeId","data-v-bb7b8e28"]]),lB=Object.freeze(Object.defineProperty({__proto__:null,default:aB},Symbol.toStringTag,{value:"Module"})),cB={props:{name:{type:[String,Number,Boolean],default:()=>cx.radio.name},shape:{type:String,default:()=>cx.radio.shape},disabled:{type:[String,Boolean],default:()=>cx.radio.disabled},labelDisabled:{type:[String,Boolean],default:()=>cx.radio.labelDisabled},activeColor:{type:String,default:()=>cx.radio.activeColor},inactiveColor:{type:String,default:()=>cx.radio.inactiveColor},iconSize:{type:[String,Number],default:()=>cx.radio.iconSize},labelSize:{type:[String,Number],default:()=>cx.radio.labelSize},label:{type:[String,Number],default:()=>cx.radio.label},size:{type:[String,Number],default:()=>cx.radio.size},color:{type:String,default:()=>cx.radio.color},labelColor:{type:String,default:()=>cx.radio.labelColor},iconColor:{type:String,default:()=>cx.radio.iconColor}}};const uB=W_({name:"u-radio",mixins:[hx,fx,cB],data:()=>({checked:!1,parentData:{iconSize:12,labelDisabled:null,disabled:null,shape:null,activeColor:null,inactiveColor:null,size:18,value:null,modelValue:null,iconColor:null,placement:"row",borderBottom:!1,iconPlacement:"left"}}),computed:{elDisabled(){return""!==this.disabled?this.disabled:null!==this.parentData.disabled&&this.parentData.disabled},elLabelDisabled(){return""!==this.labelDisabled?this.labelDisabled:null!==this.parentData.labelDisabled&&this.parentData.labelDisabled},elSize(){return this.size?this.size:this.parentData.size?this.parentData.size:21},elIconSize(){return this.iconSize?this.iconSize:this.parentData.iconSize?this.parentData.iconSize:12},elActiveColor(){return this.activeColor?this.activeColor:this.parentData.activeColor?this.parentData.activeColor:"#2979ff"},elInactiveColor(){return this.inactiveColor?this.inactiveColor:this.parentData.inactiveColor?this.parentData.inactiveColor:"#c8c9cc"},elLabelColor(){return this.labelColor?this.labelColor:this.parentData.labelColor?this.parentData.labelColor:"#606266"},elShape(){return this.shape?this.shape:this.parentData.shape?this.parentData.shape:"circle"},elLabelSize(){return zw(this.labelSize?this.labelSize:this.parentData.labelSize?this.parentData.labelSize:"15")},elIconColor(){const e=this.iconColor?this.iconColor:this.parentData.iconColor?this.parentData.iconColor:"#ffffff";return this.elDisabled?this.checked?this.elInactiveColor:"transparent":this.checked?e:"transparent"},iconClasses(){let e=[];return e.push("u-radio__icon-wrap--"+this.elShape),this.elDisabled&&e.push("u-radio__icon-wrap--disabled"),this.checked&&this.elDisabled&&e.push("u-radio__icon-wrap--disabled--checked"),e},iconWrapStyle(){const e={};return e.backgroundColor=this.checked&&!this.elDisabled?this.elActiveColor:"#ffffff",e.borderColor=this.checked&&!this.elDisabled?this.elActiveColor:this.elInactiveColor,e.width=zw(this.elSize),e.height=zw(this.elSize),"right"===this.parentData.iconPlacement&&(e.marginRight=0),e},radioStyle(){const e={};return this.parentData.borderBottom&&this.parentData.placement,this.parentData.borderBottom&&"column"===this.parentData.placement&&(e.paddingBottom="ios"===Cw()?"12px":"8px"),Rw(e,Mw(this.customStyle))}},mounted(){this.init()},emits:["change"],methods:{init(){this.updateParentData(),this.parent,this.checked=this.name===this.parentData.modelValue},updateParentData(){this.getParentData("u-radio-group")},iconClickHandler(e){this.preventEvent(e),this.elDisabled||this.setRadioCheckedStatus()},wrapperClickHandler(e){"right"===this.parentData.iconPlacement&&this.iconClickHandler(e)},labelClickHandler(e){this.preventEvent(e),this.elLabelDisabled||this.elDisabled||this.setRadioCheckedStatus()},emitEvent(){this.checked||(this.$emit("change",this.name),this.$nextTick(()=>{qw(this,"change")}))},setRadioCheckedStatus(){this.emitEvent(),this.checked=!0,"function"==typeof this.parent.unCheckedOther&&this.parent.unCheckedOther(this)}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay,l=wy;return Ir(),zr(a,{class:Qe(["u-radio cursor-pointer",[`u-radio-label--${i.parentData.iconPlacement}`,i.parentData.borderBottom&&"column"===i.parentData.placement&&"u-border-bottom"]]),onClick:ua(r.wrapperClickHandler,["stop"]),style:qe([r.radioStyle])},{default:So(()=>[jr(a,{class:Qe(["u-radio__icon-wrap cursor-pointer",r.iconClasses]),onClick:ua(r.iconClickHandler,["stop"]),style:qe([r.iconWrapStyle])},{default:So(()=>[Mi(e.$slots,"icon",{elIconSize:r.elIconSize,elIconColor:r.elIconColor},()=>[jr(s,{class:"u-radio__icon-wrap__icon",name:"checkbox-mark",size:r.elIconSize,color:r.elIconColor},null,8,["size","color"])],!0)]),_:3},8,["onClick","class","style"]),jr(a,{class:"u-radio__label-wrap cursor-pointer",onClick:ua(r.labelClickHandler,["stop"])},{default:So(()=>[Mi(e.$slots,"label",{label:e.label,elDisabled:r.elDisabled},()=>[jr(l,{class:"u-radio__text",style:qe({color:r.elDisabled?r.elInactiveColor:r.elLabelColor,fontSize:r.elLabelSize,lineHeight:r.elLabelSize})},{default:So(()=>[Vr(X(e.label),1)]),_:1},8,["style"])],!0)]),_:3},8,["onClick"])]),_:3},8,["onClick","style","class"])}],["__scopeId","data-v-d93198aa"]]),dB=Object.freeze(Object.defineProperty({__proto__:null,default:uB},Symbol.toStringTag,{value:"Module"})),hB={props:{modelValue:{type:[String,Number],default:()=>cx.rate.value},count:{type:[String,Number],default:()=>cx.rate.count},disabled:{type:Boolean,default:()=>cx.rate.disabled},readonly:{type:Boolean,default:()=>cx.rate.readonly},size:{type:[String,Number],default:()=>cx.rate.size},inactiveColor:{type:String,default:()=>cx.rate.inactiveColor},activeColor:{type:String,default:()=>cx.rate.activeColor},gutter:{type:[String,Number],default:()=>cx.rate.gutter},minCount:{type:[String,Number],default:()=>cx.rate.minCount},allowHalf:{type:Boolean,default:()=>cx.rate.allowHalf},activeIcon:{type:String,default:()=>cx.rate.activeIcon},inactiveIcon:{type:String,default:()=>cx.rate.inactiveIcon},touchable:{type:Boolean,default:()=>cx.rate.touchable}}};const pB=W_({name:"u-rate",mixins:[hx,fx,hB],data(){return{elId:Ew(),elClass:Ew(),rateBoxLeft:0,activeIndex:this.modelValue,rateWidth:0,moving:!1}},watch:{modelValue(e){this.activeIndex=e},activeIndex:"emitEvent"},emits:["update:modelValue","change"],methods:{addStyle:Mw,addUnit:zw,init(){kw().then(()=>{this.getRateItemRect(),this.getRateIconWrapRect()})},async getRateItemRect(){await kw(),this.$uGetRect("#"+this.elId).then(e=>{this.rateBoxLeft=e.left})},getRateIconWrapRect(){this.$uGetRect("."+this.elClass).then(e=>{this.rateWidth=e.width})},touchMove(e){if(!this.touchable)return;this.preventEvent(e);const t=e.changedTouches[0].pageX;this.getActiveIndex(t)},touchEnd(e){if(!this.touchable)return;this.preventEvent(e);const t=e.changedTouches[0].pageX;this.getActiveIndex(t)},clickHandler(e,t){if("ios"===Cw()&&this.moving)return;this.preventEvent(e);let n=0;n=e.changedTouches[0].pageX,this.getActiveIndex(n,!0)},emitEvent(){this.$emit("change",this.activeIndex),this.$emit("update:modelValue",this.activeIndex)},getActiveIndex(e,t=!1){if(this.disabled||this.readonly)return;const n=this.rateWidth*this.count+this.rateBoxLeft,o=e=xw(this.rateBoxLeft,n,e)-this.rateBoxLeft;let i;if(this.allowHalf){i=Math.floor(o/this.rateWidth);const e=o%this.rateWidth;e<=this.rateWidth/2&&e>0?i+=.5:e>this.rateWidth/2&&i++}else{i=Math.floor(o/this.rateWidth);const e=o%this.rateWidth;t?e>0&&i++:e>this.rateWidth/2&&i++}this.activeIndex=Math.min(i,this.count),this.activeIndex<this.minCount&&(this.activeIndex=this.minCount),setTimeout(()=>{this.moving=!0},10),setTimeout(()=>{this.moving=!1},10)}},mounted(){this.init()}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay;return Ir(),zr(a,{class:"u-rate",id:i.elId,ref:"u-rate",style:qe([r.addStyle(e.customStyle)])},{default:So(()=>[jr(a,{class:"u-rate__content",onTouchmove:ua(r.touchMove,["stop"]),onTouchend:ua(r.touchEnd,["stop"])},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(Number(e.count),(t,n)=>(Ir(),zr(a,{class:Qe(["u-rate__content__item cursor-pointer",[i.elClass]]),key:n},{default:So(()=>[jr(a,{class:"u-rate__content__item__icon-wrap",ref_for:!0,ref:"u-rate__content__item__icon-wrap",onClick:ua(e=>r.clickHandler(e,n+1),["stop"])},{default:So(()=>[jr(s,{name:Math.floor(i.activeIndex)>n?e.activeIcon:e.inactiveIcon,color:e.disabled?"#c8c9cc":Math.floor(i.activeIndex)>n?e.activeColor:e.inactiveColor,"custom-style":{padding:`0 ${r.addUnit(e.gutter/2)}`},size:e.size},null,8,["name","color","custom-style","size"])]),_:2},1032,["onClick"]),e.allowHalf?(Ir(),zr(a,{key:0,onClick:ua(e=>r.clickHandler(e,n+1),["stop"]),class:"u-rate__content__item__icon-wrap u-rate__content__item__icon-wrap--half",style:qe([{width:r.addUnit(i.rateWidth/2)}]),ref_for:!0,ref:"u-rate__content__item__icon-wrap"},{default:So(()=>[jr(s,{name:Math.ceil(i.activeIndex)>n?e.activeIcon:e.inactiveIcon,color:e.disabled?"#c8c9cc":Math.ceil(i.activeIndex)>n?e.activeColor:e.inactiveColor,"custom-style":{padding:`0 ${r.addUnit(e.gutter/2)}`},size:e.size},null,8,["name","color","custom-style","size"])]),_:2},1032,["onClick","style"])):Wr("",!0)]),_:2},1032,["class"]))),128))]),_:1},8,["onTouchmove","onTouchend"])]),_:1},8,["id","style"])}],["__scopeId","data-v-ae66540c"]]),fB=Object.freeze(Object.defineProperty({__proto__:null,default:pB},Symbol.toStringTag,{value:"Module"})),mB={props:{showHeight:{type:[String,Number],default:()=>cx.readMore.showHeight},toggle:{type:Boolean,default:()=>cx.readMore.toggle},closeText:{type:String,default:()=>cx.readMore.closeText},openText:{type:String,default:()=>cx.readMore.openText},color:{type:String,default:()=>cx.readMore.color},fontSize:{type:[String,Number],default:()=>cx.readMore.fontSize},shadowStyle:{type:Object,default:()=>({backgroundImage:"linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 80%)",paddingTop:"100px",marginTop:"-100px"})},textIndent:{type:String,default:()=>cx.readMore.textIndent},name:{type:[String,Number],default:()=>cx.readMore.name}}};const gB=W_({name:"u-read-more",mixins:[hx,fx,mB],data:()=>({isLongContent:!1,status:"close",elId:Ew(),contentHeight:100}),computed:{innerShadowStyle(){return"open"===this.status?{}:this.shadowStyle}},mounted(){this.init()},emits:["open","close"],methods:{addUnit:zw,async init(){this.getContentHeight().then(e=>{this.contentHeight=e,e>Sw(this.showHeight)?(this.isLongContent=!0,this.status="close"):(this.isLongContent=!1,this.status="close")})},async getContentHeight(){return await kw(30),new Promise(e=>{this.$uGetRect("."+this.elId).then(t=>{e(t.height)})})},toggleReadMore(){this.status="close"===this.status?"open":"close",0==this.toggle&&(this.isLongContent=!1),this.$emit(this.status,this.name)}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=Bo("up-text"),l=Bo("up-icon");return Ir(),zr(s,{class:"u-read-more"},{default:So(()=>[jr(s,{class:"u-read-more__content",style:qe({height:i.isLongContent&&"close"===i.status?r.addUnit(e.showHeight):r.addUnit(i.contentHeight),textIndent:e.textIndent})},{default:So(()=>[jr(s,{class:Qe(["u-read-more__content__inner",[i.elId]]),ref:"u-read-more__content__inner"},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["style"]),i.isLongContent?(Ir(),zr(s,{key:0,class:"u-read-more__toggle",style:qe([r.innerShadowStyle])},{default:So(()=>[Mi(e.$slots,"toggle",{},()=>[jr(s,{class:"u-read-more__toggle__text",onClick:r.toggleReadMore},{default:So(()=>[jr(a,{text:"close"===i.status?e.closeText:e.openText,color:e.color,size:e.fontSize,lineHeight:e.fontSize,margin:"0 5px 0 0"},null,8,["text","color","size","lineHeight"]),jr(s,{class:"u-read-more__toggle__icon"},{default:So(()=>[jr(l,{color:e.color,size:e.fontSize+2,name:"close"===i.status?"arrow-down":"arrow-up"},null,8,["color","size","name"])]),_:1})]),_:1},8,["onClick"])],!0)]),_:3},8,["style"])):Wr("",!0)]),_:3})}],["__scopeId","data-v-cbc79d4a"]]),yB=Object.freeze(Object.defineProperty({__proto__:null,default:gB},Symbol.toStringTag,{value:"Module"}));const bB=W_({name:"u-virtual-list",props:{listData:{type:Array,default:()=>[]},itemHeight:{type:Number,default:50},height:{type:[String,Number],default:"100%"},buffer:{type:Number,default:4},keyField:{type:String,default:"id"},scrollTop:{type:Number,default:0}},data:()=>({startIndex:0,containerHeight:0}),computed:{remain(){if(this.containerHeight<=0)return Math.ceil(500/this.itemHeight)||10;const e=Math.ceil(this.containerHeight/this.itemHeight);return Math.max(1,e)},visibleCount(){return this.remain+this.buffer},visibleItems(){const e=Math.max(0,this.startIndex-Math.floor(this.buffer/2)),t=Math.min(this.listData.length,e+this.visibleCount);return this.listData.slice(e,t).map((t,n)=>({...t,_virtualIndex:e+n}))},topPlaceholderHeight(){return Math.max(0,this.startIndex-Math.floor(this.buffer/2))*this.itemHeight},bottomPlaceholderHeight(){const e=Math.max(0,this.startIndex-Math.floor(this.buffer/2)),t=Math.min(this.listData.length,e+this.visibleCount);return(this.listData.length-t)*this.itemHeight}},emits:["update:scrollTop","scroll"],watch:{listData:{handler(){this.updateVisibleItems()},immediate:!0},scrollTop:{handler(e){this.updateVisibleItems()}}},mounted(){this.measureContainerHeight()},methods:{addUnit:zw,measureContainerHeight(){this.$nextTick(()=>{if(this.$refs.container){const e=this.$refs.container.$el||this.$refs.container;this.containerHeight=e.offsetHeight||500}})},calculateDefaultHeight(){const e=this.height;if("number"==typeof e)return e;if("string"==typeof e){if(e.includes("px"))return parseInt(e)||500;if(e.includes("vh")){const t=parseInt(e);return isNaN(t)?500:t/100*this.getViewportHeight()}if(e.includes("%"))return 500;{const t=parseInt(e);return isNaN(t)?500:t}}return 500},getViewportHeight:()=>window.innerHeight,getItemKey(e){return void 0!==e[this.keyField]?e[this.keyField]:e._virtualIndex},updateVisibleItems(){const e=Math.floor(this.scrollTop/this.itemHeight);this.startIndex=Math.max(0,e)},handleScroll(e){const t=e.detail.scrollTop;this.$emit("update:scrollTop",t),this.$emit("scroll",t)},handleTouchMove(e){e.stopPropagation()},getVisibleRange(){const e=Math.max(0,this.startIndex-Math.floor(this.buffer/2));return{start:e,end:Math.min(this.listData.length,e+this.visibleCount)}}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=dy;return Ir(),zr(s,{class:"u-virtual-list",style:qe({height:r.addUnit(n.height)}),ref:"container"},{default:So(()=>[jr(a,{class:"virtual-scroll-container","scroll-y":!0,"scroll-top":n.scrollTop,style:{height:"100%"},onScroll:r.handleScroll},{default:So(()=>[jr(s,{class:"scroll-content"},{default:So(()=>[jr(s,{style:qe({height:r.topPlaceholderHeight+"px"})},null,8,["style"]),(Ir(!0),Mr(xr,null,Pi(r.visibleItems,t=>(Ir(),zr(s,{key:r.getItemKey(t),class:"list-item",style:qe({height:n.itemHeight+"px"})},{default:So(()=>[Mi(e.$slots,"default",{item:t,index:t._virtualIndex},void 0,!0)]),_:2},1032,["style"]))),128)),jr(s,{style:qe({height:r.bottomPlaceholderHeight+"px"})},null,8,["style"])]),_:3})]),_:3},8,["scroll-top","onScroll"])]),_:3},8,["style"])}],["__scopeId","data-v-2a4ee0e6"]]),vB=Object.freeze(Object.defineProperty({__proto__:null,default:bB},Symbol.toStringTag,{value:"Module"}));const _B=W_({name:"u-refresh-virtual-list",props:{listData:{type:Array,default:()=>[]},itemHeight:{type:Number,default:50},height:{type:[String,Number],default:"100%"},buffer:{type:Number,default:4},keyField:{type:String,default:"id"}},data:()=>({refreshing:!1,scrollTop:0}),methods:{handleRefresh(){this.refreshing=!0,this.$emit("refresh")},handleScroll(e){this.scrollTop=e,this.$emit("scroll",e)},finishRefresh(){this.refreshing=!1},scrollTo(e){this.scrollTop=e},scrollToTop(){this.scrollTo(0)}}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-virtual-list"),bB),a=yx(Po("u-pull-refresh"),JI);return Ir(),zr(a,{refreshing:i.refreshing,threshold:50,onRefresh:r.handleRefresh},{default:So(()=>[jr(s,{ref:"virtualList","list-data":n.listData,"item-height":n.itemHeight,height:n.height,buffer:n.buffer,"key-field":n.keyField,"scroll-top":i.scrollTop,onScroll:r.handleScroll},{default:So(({item:t,index:n})=>[Mi(e.$slots,"default",{item:t,index:n})]),_:3},8,["list-data","item-height","height","buffer","key-field","scroll-top","onScroll"])]),_:3},8,["refreshing","onRefresh"])}]]),wB=Object.freeze(Object.defineProperty({__proto__:null,default:_B},Symbol.toStringTag,{value:"Module"}));const xB=W_({name:"u-row",mixins:[hx,fx,{props:{gutter:{type:[String,Number],default:()=>cx.row.gutter},justify:{type:String,default:()=>cx.row.justify},align:{type:String,default:()=>cx.row.align}}}],data:()=>({}),computed:{uJustify(){return"end"==this.justify||"start"==this.justify?"flex-"+this.justify:"around"==this.justify||"between"==this.justify?"space-"+this.justify:this.justify},uAlignItem(){return"top"==this.align?"flex-start":"bottom"==this.align?"flex-end":this.align},rowStyle(){const e={alignItems:this.uAlignItem,justifyContent:this.uJustify};return this.gutter&&(e.marginLeft=zw(-Number(this.gutter)/2),e.marginRight=zw(-Number(this.gutter)/2)),Rw(e,Mw(this.customStyle))}},emits:["click"],methods:{clickHandler(e){this.$emit("click")},async getComponentWidth(){return await kw(),new Promise(e=>{this.$uGetRect(".u-row").then(t=>{e(t.width)})})}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-row",ref:"u-row",style:qe([r.rowStyle]),onClick:r.clickHandler},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["style","onClick"])}],["__scopeId","data-v-b41f2974"]]),SB=Object.freeze(Object.defineProperty({__proto__:null,default:xB},Symbol.toStringTag,{value:"Module"})),kB={props:{indicatorWidth:{type:[String,Number],default:()=>cx.scrollList.indicatorWidth},indicatorBarWidth:{type:[String,Number],default:()=>cx.scrollList.indicatorBarWidth},indicator:{type:Boolean,default:()=>cx.scrollList.indicator},indicatorColor:{type:String,default:()=>cx.scrollList.indicatorColor},indicatorActiveColor:{type:String,default:()=>cx.scrollList.indicatorActiveColor},indicatorStyle:{type:[String,Object],default:()=>cx.scrollList.indicatorStyle}}};function CB(e,t){e.selectComponent(".u-scroll-list__indicator__line__bar")&&e.selectComponent(".u-scroll-list__indicator__line__bar").setStyle({transform:"translateX("+t+"px)"})}const AB={scroll:function(e,t){var n=e.detail,o=n.scrollWidth,i=n.scrollLeft,r=e.currentTarget.dataset;CB(t,i/(o-(r.scrollWidth||r.scrollwidth||0))*((r.indicatorWidth||r.indicatorwidth||0)-(r.barWidth||r.barwidth||0)))},scrolltolower:function(e,t){t.callMethod("scrollEvent","right");var n=e.currentTarget.dataset;CB(t,(n.indicatorWidth||n.indicatorwidth||0)-(n.barWidth||n.barwidth||0))},scrolltoupper:function(e,t){t.callMethod("scrollEvent","left"),CB(t,0)}},TB=e=>{e.$wxs||(e.$wxs=[]),e.$wxs.push("wxs"),e.mixins||(e.mixins=[]),e.mixins.push({beforeCreate(){this.wxs=AB}})},IB={name:"u-scroll-list",mixins:[hx,fx,kB],data:()=>({scrollInfo:{scrollLeft:0,scrollWidth:0},scrollWidth:0}),computed:{barStyle(){const e={};return e.width=zw(this.indicatorBarWidth),e.backgroundColor=this.indicatorActiveColor,e},lineStyle(){const e={};return e.width=zw(this.indicatorWidth),e.backgroundColor=this.indicatorColor,e}},mounted(){this.init()},emits:["left","right"],methods:{addStyle:Mw,getPx:Sw,init(){this.getComponentWidth()},scrollEvent(e){this.$emit(e)},async getComponentWidth(){await kw(30),this.$uGetRect(".u-scroll-list").then(e=>{this.scrollWidth=e.width})}}};TB(IB);const BB=W_(IB,[["render",function(e,t,n,o,i,r){const s=Ay,a=dy;return Ir(),zr(s,{class:"u-scroll-list",ref:"u-scroll-list"},{default:So(()=>[jr(a,{class:"u-scroll-list__scroll-view scroll-view-native","scroll-x":"","enable-flex":"",onScroll:e.wxs.scroll,onScrolltoupper:e.wxs.scrolltoupper,onScrolltolower:e.wxs.scrolltolower,"data-scrollWidth":i.scrollWidth,"data-barWidth":r.getPx(e.indicatorBarWidth),"data-indicatorWidth":r.getPx(e.indicatorWidth),"show-scrollbar":!1,"upper-threshold":0,"lower-threshold":0},{default:So(()=>[jr(s,{class:"u-scroll-list__scroll-view__content"},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3},8,["onScroll","onScrolltoupper","onScrolltolower","data-scrollWidth","data-barWidth","data-indicatorWidth"]),e.indicator?(Ir(),zr(s,{key:0,class:"u-scroll-list__indicator",style:qe([r.addStyle(e.indicatorStyle)])},{default:So(()=>[jr(s,{class:"u-scroll-list__indicator__line",style:qe([r.lineStyle])},{default:So(()=>[jr(s,{class:"u-scroll-list__indicator__line__bar",style:qe([r.barStyle]),ref:"u-scroll-list__indicator__line__bar"},null,8,["style"])]),_:1},8,["style"])]),_:1},8,["style"])):Wr("",!0)]),_:3},512)}],["__scopeId","data-v-6dd44330"]]),EB=Object.freeze(Object.defineProperty({__proto__:null,default:BB},Symbol.toStringTag,{value:"Module"})),PB={props:{modelValue:{type:[String,Number],default:()=>cx.search.value},shape:{type:String,default:()=>cx.search.shape},bgColor:{type:String,default:()=>cx.search.bgColor},placeholder:{type:String,default:()=>cx.search.placeholder},clearabled:{type:Boolean,default:()=>cx.search.clearabled},onlyClearableOnFocused:{type:Boolean,default:!0},focus:{type:Boolean,default:()=>cx.search.focus},showAction:{type:Boolean,default:()=>cx.search.showAction},actionText:{type:String,default:()=>cx.search.actionText},label:{type:[String,Number,null],default:()=>cx.search.label},inputAlign:{type:String,default:()=>cx.search.inputAlign},disabled:{type:Boolean,default:()=>cx.search.disabled},animation:{type:Boolean,default:()=>cx.search.animation},borderColor:{type:String,default:()=>cx.search.borderColor},searchIconColor:{type:String,default:()=>cx.search.searchIconColor},searchIconSize:{type:[Number,String],default:()=>cx.search.searchIconSize},color:{type:String,default:()=>cx.search.color},placeholderColor:{type:String,default:()=>cx.search.placeholderColor},searchIcon:{type:String,default:()=>cx.search.searchIcon},margin:{type:String,default:()=>cx.search.margin},iconPosition:{type:String,default:()=>cx.search.iconPosition},maxlength:{type:[String,Number],default:()=>cx.search.maxlength},height:{type:[String,Number],default:()=>cx.search.height},adjustPosition:{type:Boolean,default:()=>cx.search.adjustPosition},autoBlur:{type:Boolean,default:()=>cx.search.autoBlur},inputStyle:{type:Object,default:()=>cx.search.inputStyle},actionStyle:{type:Object,default:()=>cx.search.actionStyle},customStyle:{type:Object,default:()=>cx.search.customStyle}}};const MB=W_({name:"u-search",mixins:[hx,fx,PB],data(){return{keyword:"",show:!1,focused:this.focus}},watch:{keyword(e){this.$emit("update:modelValue",e),this.$emit("change",e)},modelValue:{immediate:!0,handler(e){this.keyword=e}}},computed:{showActionBtn(){return!this.animation&&this.showAction},isShowClear(){const{clearabled:e,focused:t,keyword:n,onlyClearableOnFocused:o}=this;return!!e&&(o?!!t&&""!==n:""!==n)}},emits:["clear","search","custom","focus","blur","click","clickIcon","update:modelValue","change"],methods:{addStyle:Mw,addUnit:zw,inputChange(e){this.keyword=e.detail.value},clear(){this.keyword="",this.$nextTick(()=>{this.$emit("clear")})},search(e){this.$emit("search",e.detail.value);try{nv()}catch(t){}},custom(){this.$emit("custom",this.keyword);try{nv()}catch(e){}},getFocus(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur(){setTimeout(()=>{this.focused=!1},100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler(){this.disabled&&this.$emit("click")},clickIcon(e){this.$emit("clickIcon",this.keyword);try{nv()}catch(t){}}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Bo("up-icon"),l=Ay,c=_g;return Ir(),zr(l,{class:Qe(["u-search",["right"===e.iconPosition&&"u-search__reverse"]]),onClick:r.clickHandler,style:qe([{margin:e.margin},r.addStyle(e.customStyle)])},{default:So(()=>[jr(l,{class:"u-search__content",style:qe({backgroundColor:e.bgColor,borderRadius:"round"==e.shape?"100px":"4px",borderColor:e.borderColor})},{default:So(()=>[e.$slots.label||null!==e.label?Mi(e.$slots,"label",{key:0},()=>[jr(s,{class:"u-search__content__label"},{default:So(()=>[Vr(X(e.label),1)]),_:1})],!0):Wr("",!0),jr(l,{class:"u-search__content__icon"},{default:So(()=>[jr(a,{onClick:r.clickIcon,size:e.searchIconSize,name:e.searchIcon,color:e.searchIconColor?e.searchIconColor:e.color},null,8,["onClick","size","name","color"])]),_:1}),jr(c,{"confirm-type":"search",onBlur:r.blur,value:i.keyword,onConfirm:r.search,onInput:r.inputChange,disabled:e.disabled,onFocus:r.getFocus,focus:e.focus,maxlength:e.maxlength,"adjust-position":e.adjustPosition,"auto-blur":e.autoBlur,"placeholder-class":"u-search__content__input--placeholder",placeholder:e.placeholder,"placeholder-style":`color: ${e.placeholderColor}`,class:"u-search__content__input",type:"text",style:qe([{pointerEvents:e.disabled?"none":"auto",textAlign:e.inputAlign,color:e.color,backgroundColor:e.bgColor,height:r.addUnit(e.height)},e.inputStyle])},null,8,["onBlur","value","onConfirm","onInput","disabled","onFocus","focus","maxlength","adjust-position","auto-blur","placeholder","placeholder-style","style"]),r.isShowClear?(Ir(),zr(l,{key:1,class:"u-search__content__icon u-search__content__close",onClick:r.clear},{default:So(()=>[jr(a,{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px"})]),_:1},8,["onClick"])):Wr("",!0),Mi(e.$slots,"inputRight",{},void 0,!0)]),_:3},8,["style"]),jr(s,{style:qe([e.actionStyle]),class:Qe(["u-search__action",[(r.showActionBtn||i.show)&&"u-search__action--active"]]),onClick:ua(r.custom,["stop","prevent"])},{default:So(()=>[Vr(X(e.actionText),1)]),_:1},8,["style","class","onClick"])]),_:3},8,["class","onClick","style"])}],["__scopeId","data-v-12a93fbe"]]),zB=Object.freeze(Object.defineProperty({__proto__:null,default:MB},Symbol.toStringTag,{value:"Module"})),OB={name:"up-select",emits:["update:current","select"],props:{maxHeight:{type:String,default:"90vh"},overlay:{type:Boolean,default:!0},overlayOpacity:{type:Number,default:.01},overlayStyle:{type:Object,default:()=>({})},duration:{type:Number,default:300},label:{type:String,default:"选项"},options:{type:Array,default:()=>[]},keyName:{type:String,default:"id"},labelName:{type:String,default:"name"},showOptionsLabel:{type:Boolean,default:!1},current:{type:[String,Number],default:""},zIndex:{type:Number,default:11e3},itemColor:{type:String,default:"#333333"},iconColor:{type:String,default:""},iconSize:{type:[String],default:"13px"}},data:()=>({isOpen:!1,optionsWrapLeft:"auto",optionsWrapRight:"auto"}),computed:{currentLabel(){let e="";return this.options.forEach(t=>{t[this.keyName]===this.current&&(e=t[this.labelName])}),e}},methods:{openSelect(){this.isOpen=!0,this.$nextTick(()=>{this.isOpen&&this.adjustOptionsWrapPosition()})},overlayClick(){this.isOpen=!1},selectItem(e){this.isOpen=!1,this.$emit("update:current",e[this.keyName]),this.$emit("select",e)},adjustOptionsWrapPosition(){let e=Tw().windowWidth;this.$uGetRect(".u-select__options__wrap").then(t=>{console.log(t),t.left+t.width>e&&(this.optionsWrapLeft="auto",this.optionsWrapRight="0px")})}}};const RB=W_(OB,[["render",function(e,t,n,o,i,r){const s=wy,a=Bo("up-icon"),l=Ay,c=yx(Po("u-overlay"),Hx);return Ir(),zr(l,{class:"u-select"},{default:So(()=>[jr(l,{class:"u-select__content"},{default:So(()=>[jr(l,{class:"u-select__label",onClick:r.openSelect},{default:So(()=>[Mi(e.$slots,"text",{currentLabel:r.currentLabel},()=>[n.showOptionsLabel?(Ir(),zr(s,{key:0,class:"u-select__text"},{default:So(()=>[Vr(X(r.currentLabel),1)]),_:1})):(Ir(),zr(s,{key:1,class:"u-select__text"},{default:So(()=>[Vr(X(n.label),1)]),_:1}))],!0),Mi(e.$slots,"icon",{},()=>[jr(a,{name:"arrow-down",size:n.iconSize,color:n.iconColor},null,8,["size","color"])],!0)]),_:3},8,["onClick"]),n.overlay?(Ir(),zr(c,{key:0,show:i.isOpen,onClick:r.overlayClick,zIndex:n.zIndex,duration:n.duration+50,customStyle:n.overlayStyle,opacity:n.overlayOpacity,onTouchmove:ua(e.noop,["stop","prevent"])},null,8,["show","onClick","zIndex","duration","customStyle","opacity","onTouchmove"])):Wr("",!0),jr(l,{class:"u-select__options__wrap",style:qe({overflowY:"auto",zIndex:n.zIndex+1,left:i.optionsWrapLeft,right:i.optionsWrapRight,maxHeight:n.maxHeight})},{default:So(()=>[i.isOpen?(Ir(),zr(l,{key:0,class:"u-select__options"},{default:So(()=>[Mi(e.$slots,"options",{},()=>[(Ir(!0),Mr(xr,null,Pi(n.options,(t,o)=>(Ir(),zr(l,{class:Qe(["u-select__options_item",n.current==t[n.keyName]?"active":""]),key:o,onClick:e=>r.selectItem(t)},{default:So(()=>[Mi(e.$slots,"optionItem",{item:t},()=>[jr(s,{class:"u-select__item_text",style:qe({color:n.itemColor})},{default:So(()=>[Vr(X(t[n.labelName]),1)]),_:2},1032,["style"])],!0)]),_:2},1032,["class","onClick"]))),128))],!0)]),_:3})):Wr("",!0)]),_:3},8,["style"])]),_:3})]),_:3})}],["__scopeId","data-v-4bce217f"]]),LB=Object.freeze(Object.defineProperty({__proto__:null,default:RB},Symbol.toStringTag,{value:"Module"}));const DB=W_({name:"u-short-video",props:{tabsList:{type:Array,default:()=>[{name:"推荐"},{name:"关注"},{name:"朋友"},{name:"本地"}]},videoList:{type:Array,default:()=>[]},currentTab:{type:Number,default:0},currentVideo:{type:Number,default:0}},data:()=>({progressValue:0,showSpeedSheet:!1,currentSpeedVideoIndex:0,speedOptions:[{name:"0.5x",value:.5},{name:"0.75x",value:.75},{name:"1.0x",value:1},{name:"1.25x",value:1.25},{name:"1.5x",value:1.5},{name:"2.0x",value:2}]}),methods:{handleTabChange(e){this.$emit("tabChange",e)},handleSwiperChange(e){const t=e.detail.current;this.pauseCurrentVideo(),this.$nextTick(()=>{this.playVideo(t)}),this.$emit("videoChange",t)},handleLike(e,t){this.$emit("like",{item:e,index:t})},handleComment(e,t){this.$emit("comment",{item:e,index:t})},handleShare(e,t){this.$emit("share",{item:e,index:t})},handleCollect(e,t){this.$emit("collect",{item:e,index:t})},onProgressChanging(e){this.videoList[this.currentVideo]&&(this.videoList[this.currentVideo].progressValue=e.detail.value),this.$emit("progressChanging",{progress:e.detail.value,index:this.currentVideo})},onProgressChange(e){this.videoList[this.currentVideo]&&this.$set(this.videoList[this.currentVideo],"progressValue",e.detail.value),this.$emit("progressChange",{progress:e.detail.value,index:this.currentVideo})},showSpeedOptions(e){this.currentSpeedVideoIndex=e,this.showSpeedSheet=!0},selectSpeed(e){xh("video-"+this.currentSpeedVideoIndex,this).playbackRate(e.value),this.$set(this.videoList[this.currentSpeedVideoIndex],"playbackRate",e.value),this.showSpeedSheet=!1},playVideo(e){xh("video-"+e,this).play()},pauseCurrentVideo(){xh("video-"+this.currentVideo,this).pause()},onVideoPlay(e){this.$emit("videoPlay",{index:this.currentVideo,event:e})},onVideoPause(e){this.$emit("videoPause",{index:this.currentVideo,event:e})},onVideoEnded(e){this.$emit("videoEnded",{index:this.currentVideo,event:e})},onTimeUpdate(e){const t=e.detail.currentTime/e.detail.duration*100;this.videoList[this.currentVideo]&&this.$set(this.videoList[this.currentVideo],"progress",t),this.$emit("timeUpdate",{index:this.currentVideo,event:e})},onLoadedMetadata(e){this.$emit("loadedMetadata",{index:this.currentVideo,event:e})}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay,l=Bo("up-tabs"),c=db,u=yx(Po("u-avatar"),uS),d=wy,h=Bo("up-button"),p=by,f=gy,m=Bo("up-action-sheet"),g=Bo("up-slider"),y=Bo("up-tabbar-item"),b=Bo("up-tabbar");return Ir(),zr(a,{class:"u-short-video"},{default:So(()=>[jr(a,{class:"u-short-video__header"},{default:So(()=>[Mi(e.$slots,"menu",{},()=>[jr(a,{class:"u-short-video__header__menu"},{default:So(()=>[jr(s,{name:"grid",size:"24"})]),_:1})],!0),jr(l,{list:n.tabsList,current:n.currentTab,lineColor:"#ddd",activeStyle:{color:"#ddd",fontWeight:400,transform:"scale(1)"},inactiveStyle:{color:"#bbb",transform:"scale(1)"},onChange:r.handleTabChange,class:"u-short-video__header__tabs"},null,8,["list","current","activeStyle","inactiveStyle","onChange"]),Mi(e.$slots,"search",{},()=>[jr(a,{class:"u-short-video__header__search"},{default:So(()=>[jr(s,{name:"search",size:"24"})]),_:1})],!0)]),_:3}),jr(f,{vertical:!0,autoplay:!1,onChange:r.handleSwiperChange,current:n.currentVideo,class:"u-short-video__content"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(n.videoList,(t,o)=>(Ir(),zr(p,{key:o},{default:So(()=>[jr(a,{class:"u-short-video__content__item"},{default:So(()=>[jr(a,{class:"u-short-video__content__video"},{default:So(()=>[jr(c,{id:"video-"+o,src:t.videoUrl,autoplay:o===n.currentVideo,controls:!1,"show-fullscreen-btn":!1,"show-play-btn":!1,"show-center-play-btn":!1,"enable-progress-gesture":!0,loop:!0,"playback-rate":t.playbackRate||1,onPlay:r.onVideoPlay,onPause:r.onVideoPause,onEnded:r.onVideoEnded,onTimeupdate:r.onTimeUpdate,onLoadedmetadata:r.onLoadedMetadata,style:{width:"100%",height:"100%"}},null,8,["id","src","autoplay","playback-rate","onPlay","onPause","onEnded","onTimeupdate","onLoadedmetadata"])]),_:2},1024),jr(a,{class:"u-short-video__content__author"},{default:So(()=>[jr(a,{class:"u-short-video__content__author__avatar"},{default:So(()=>[jr(u,{src:t.author.avatar,size:"50px"},null,8,["src"])]),_:2},1024),jr(a,{class:"u-short-video__content__author__info"},{default:So(()=>[jr(d,{class:"u-short-video__content__author__name"},{default:So(()=>[Vr(X(t.author.name),1)]),_:2},1024),jr(d,{class:"u-short-video__content__author__desc"},{default:So(()=>[Vr(X(t.author.desc),1)]),_:2},1024)]),_:2},1024),jr(a,{class:"u-short-video__content__author__follow"},{default:So(()=>[jr(h,{type:"primary",size:"mini"},{default:So(()=>[Vr("关注")]),_:1})]),_:1})]),_:2},1024),jr(a,{class:"u-short-video__content__actions"},{default:So(()=>[Mi(e.$slots,"actions",{item:t,index:o},()=>[jr(a,{class:"u-short-video__content__actions__item",onClick:e=>r.handleLike(t,o)},{default:So(()=>[jr(s,{color:"#eee",name:t.isLiked?"thumb-up-fill":"thumb-up",size:"32px"},null,8,["name"]),jr(d,{class:"u-short-video__content__actions__text"},{default:So(()=>[Vr(X(t.likeCount),1)]),_:2},1024)]),_:2},1032,["onClick"]),jr(a,{class:"u-short-video__content__actions__item",onClick:e=>r.handleComment(t,o)},{default:So(()=>[jr(s,{color:"#eee",name:"chat",size:"32px"}),jr(d,{class:"u-short-video__content__actions__text"},{default:So(()=>[Vr(X(t.commentCount),1)]),_:2},1024)]),_:2},1032,["onClick"]),jr(a,{class:"u-short-video__content__actions__item",onClick:e=>r.handleShare(t,o)},{default:So(()=>[jr(s,{color:"#eee",name:"share",size:"32px"}),jr(d,{class:"u-short-video__content__actions__text"},{default:So(()=>[Vr(X(t.shareCount),1)]),_:2},1024)]),_:2},1032,["onClick"]),jr(a,{class:"u-short-video__content__actions__item",onClick:e=>r.handleCollect(t,o)},{default:So(()=>[jr(s,{color:"#eee",name:t.isCollected?"bookmark-fill":"bookmark",size:"32px"},null,8,["name"]),jr(d,{class:"u-short-video__content__actions__text"},{default:So(()=>[Vr(X(t.collectCount),1)]),_:2},1024)]),_:2},1032,["onClick"])],!0)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:3},8,["onChange","current"]),jr(m,{show:i.showSpeedSheet,actions:i.speedOptions,title:"播放速度",onClose:t[0]||(t[0]=e=>i.showSpeedSheet=!1),onSelect:r.selectSpeed},null,8,["show","actions","onSelect"]),jr(a,{class:"u-short-video__footer"},{default:So(()=>[jr(a,{class:"u-short-video__progress",style:{"z-index":"999"}},{default:So(()=>{var e;return[jr(g,{value:null==(e=n.videoList[n.currentVideo])?void 0:e.progress,min:0,max:100,step:1,"show-value":!1,innerStyle:{padding:0},activeColor:"rgba(255,255,255,0.32)","inactive-color":"rgba(255,255,255,0.3)","block-size":"6px","block-color":"rgba(255,255,255,0.5)",height:"1px",onChanging:r.onProgressChanging,onChange:r.onProgressChange},null,8,["value","onChanging","onChange"])]}),_:1}),Mi(e.$slots,"tabbar",{},()=>[jr(b,{fixed:!0,placeholder:!0,safeAreaInsetBottom:!0,borderColor:"rgba(255,255,255,0.25) !important",backgroundColor:"rgba(255,255,255,0.05)"},{default:So(()=>[jr(y,{onClick:e.goNext,text:"首页",icon:"home"},null,8,["onClick"]),jr(y,{text:"放映厅",icon:"photo"}),jr(y,{text:"直播",icon:"play-right"}),jr(y,{text:"我的",icon:"account"})]),_:1})],!0)]),_:3})]),_:3})}],["__scopeId","data-v-cb44379b"]]),NB=Object.freeze(Object.defineProperty({__proto__:null,default:DB},Symbol.toStringTag,{value:"Module"}));const $B=W_({name:"u-signature",props:{width:{type:[String,Number],default:300},height:{type:[String,Number],default:200},bgColor:{type:String,default:"#ffffff"},color:{type:String,default:"#000000"},thickness:{type:[String,Number],default:3},showToolbar:{type:Boolean,default:!0}},data:()=>({canvasId:"u-signature-"+Math.random().toString(36).substr(2,9),canvasWidth:300,canvasHeight:200,lineColor:"#000000",lineWidth:3,isDrawing:!1,pathStack:[],currentPath:[],ctx:null,isEmpty:!0,presetColors:["#000000","#ff0000","#00ff00","#0000ff","#ffff00","#00ffff","#ff00ff","#ffffff"],showBrushSettings:!1,showColorSettings:!1,lastPoint:null}),mounted(){this.initCanvas()},watch:{width:{handler(e){this.canvasWidth=Number(e)},immediate:!0},height:{handler(e){this.canvasHeight=Number(e)},immediate:!0},color:{handler(e){this.lineColor=e},immediate:!0},thickness:{handler(e){this.lineWidth=Number(e)},immediate:!0}},methods:{initCanvas(){const e=Vh(this.canvasId,this);this.ctx=e,this.clearCanvas()},touchStart(e){if(!this.ctx)return;this.isDrawing=!0,this.isEmpty=!1,this.currentPath=[];const{x:t,y:n}=this.getCanvasPoint(e);this.ctx.beginPath(),this.ctx.moveTo(t,n),this.ctx.setLineCap("round"),this.ctx.setLineJoin("round"),this.ctx.setStrokeStyle(this.lineColor),this.ctx.setLineWidth(this.lineWidth),this.currentPath.push({x:t,y:n,type:"start",color:this.lineColor,width:this.lineWidth}),this.lastPoint={x:t,y:n},e.preventDefault()},touchMove(e){if(!this.isDrawing||!this.ctx)return;e.preventDefault();const{x:t,y:n}=this.getCanvasPoint(e);if(this.lastPoint){const e=Math.sqrt(Math.pow(t-this.lastPoint.x,2)+Math.pow(n-this.lastPoint.y,2)),o=Math.max(1,Math.floor(e/1));for(let i=1;i<=o;i++){const e=i/o,r=this.lastPoint.x+(t-this.lastPoint.x)*e,s=this.lastPoint.y+(n-this.lastPoint.y)*e;this.ctx.lineTo(r,s),this.ctx.stroke(),this.currentPath.push({x:r,y:s,type:"move"})}}else this.ctx.lineTo(t,n),this.ctx.stroke(),this.currentPath.push({x:t,y:n,type:"move"});this.ctx.draw(!0),this.lastPoint={x:t,y:n}},touchEnd(e){this.isDrawing&&this.ctx&&(this.isDrawing=!1,this.ctx.closePath(),this.lastPoint=null,this.currentPath.length>0&&this.pathStack.push([...this.currentPath]))},getCanvasPoint(e){const t=e.touches[0];return sp().in(this).select(".u-signature__canvas"),{x:t.x,y:t.y}},selectColor(e){this.lineColor=e},undo(){0!==this.pathStack.length&&(this.pathStack.pop(),this.redraw())},redraw(){this.clearCanvas(),0!==this.pathStack.length?(this.isEmpty=!1,this.pathStack.forEach(e=>{0!==e.length&&(this.ctx.beginPath(),this.ctx.setLineCap("round"),this.ctx.setLineJoin("round"),e.forEach((e,t)=>{0===t&&"start"===e.type?(this.ctx.setStrokeStyle(e.color),this.ctx.setLineWidth(e.width),this.ctx.moveTo(e.x,e.y),e.x,e.y):"move"===e.type&&(this.ctx.lineTo(e.x,e.y),e.x,e.y)}),this.ctx.stroke(),this.ctx.draw(!0))})):this.isEmpty=!0},clear(){this.pathStack=[],this.currentPath=[],this.isEmpty=!0,this.lastPoint=null,this.clearCanvas()},clearCanvas(){this.ctx&&(this.ctx.setFillStyle(this.bgColor),this.ctx.fillRect(0,0,this.canvasWidth,this.canvasHeight),this.ctx.draw())},exportSignature(){this.isEmpty||qh({canvasId:this.canvasId,fileType:"png",quality:1,success:e=>{this.$emit("confirm",e.tempFilePath)},fail:e=>{this.$emit("error",e)}},this)},toggleBrushSettings(){this.showBrushSettings=!this.showBrushSettings,this.showBrushSettings&&(this.showColorSettings=!1)},toggleColorSettings(){this.showColorSettings=!this.showColorSettings,this.showColorSettings&&(this.showBrushSettings=!1)}}},[["render",function(e,t,n,o,i,r){const s=zm,a=Ay,l=Bo("up-icon"),c=wy,u=Bo("up-slider");return Ir(),zr(a,{class:"u-signature"},{default:So(()=>[jr(a,{class:"u-signature__canvas-wrap"},{default:So(()=>[jr(s,{class:"u-signature__canvas","canvas-id":i.canvasId,"disable-scroll":!0,onTouchstart:r.touchStart,onTouchmove:r.touchMove,onTouchend:r.touchEnd,style:qe({width:i.canvasWidth+"px",height:i.canvasHeight+"px",background:n.bgColor})},null,8,["canvas-id","onTouchstart","onTouchmove","onTouchend","style"])]),_:1}),n.showToolbar?(Ir(),zr(a,{key:0,class:"u-signature__toolbar"},{default:So(()=>[jr(a,{class:"u-signature__toolbar-icons u-flex u-flex-x"},{default:So(()=>[jr(a,{class:"u-signature__toolbar-icon",onClick:r.undo},{default:So(()=>[jr(l,{name:"arrow-left",size:"22",color:0===i.pathStack.length?"#ccc":"#999"},null,8,["color"])]),_:1},8,["onClick"]),jr(a,{class:"u-signature__toolbar-icon",onClick:r.clear},{default:So(()=>[jr(l,{name:"trash",size:"25",color:"#999"})]),_:1},8,["onClick"]),jr(a,{class:"u-signature__toolbar-icon",onClick:r.toggleBrushSettings},{default:So(()=>[jr(l,{name:"edit-pen",size:"25",color:"#999"})]),_:1},8,["onClick"]),jr(a,{class:"u-signature__toolbar-icon",onClick:r.toggleColorSettings},{default:So(()=>[jr(l,{name:"grid",size:"24",color:"#999"})]),_:1},8,["onClick"]),jr(a,{class:"u-signature__toolbar-icon",onClick:r.exportSignature},{default:So(()=>[jr(l,{name:"checkmark",size:"25",color:i.isEmpty?"#ccc":"#999"},null,8,["color"])]),_:1},8,["onClick"])]),_:1}),i.showBrushSettings?(Ir(),zr(a,{key:0,class:"u-signature__brush-settings"},{default:So(()=>[jr(a,{class:"u-signature__progress"},{default:So(()=>[jr(c,{class:"u-signature__progress-label"},{default:So(()=>[Vr(X(e.t("up.signature.penSize"))+":",1)]),_:1}),jr(u,{modelValue:i.lineWidth,"onUpdate:modelValue":t[0]||(t[0]=e=>i.lineWidth=e),min:1,max:20,step:1,onShowValue:e=>!0,"value-show":i.lineWidth},null,8,["modelValue","value-show"])]),_:1})]),_:1})):Wr("",!0),i.showColorSettings?(Ir(),zr(a,{key:1,class:"u-signature__color-settings"},{default:So(()=>[jr(a,{class:"u-signature__color-picker"},{default:So(()=>[jr(c,{class:"u-signature__color-label"},{default:So(()=>[Vr(X(e.t("up.signature.penColor"))+":",1)]),_:1}),jr(a,{class:"u-signature__colors"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(i.presetColors,(e,t)=>(Ir(),zr(a,{key:t,class:Qe(["u-signature__color-item",{"u-signature__color-item--active":i.lineColor===e}]),style:qe({backgroundColor:e}),onClick:t=>r.selectColor(e)},null,8,["class","style","onClick"]))),128))]),_:1})]),_:1})]),_:1})):Wr("",!0)]),_:1})):Wr("",!0)]),_:1})}],["__scopeId","data-v-438b4b92"]]),jB=Object.freeze(Object.defineProperty({__proto__:null,default:$B},Symbol.toStringTag,{value:"Module"})),HB={props:{loading:{type:Boolean,default:()=>cx.skeleton.loading},animate:{type:Boolean,default:()=>cx.skeleton.animate},rows:{type:[String,Number],default:()=>cx.skeleton.rows},rowsWidth:{type:[String,Number,Array],default:()=>cx.skeleton.rowsWidth},rowsHeight:{type:[String,Number,Array],default:()=>cx.skeleton.rowsHeight},title:{type:Boolean,default:()=>cx.skeleton.title},titleWidth:{type:[String,Number],default:()=>cx.skeleton.titleWidth},titleHeight:{type:[String,Number],default:()=>cx.skeleton.titleHeight},avatar:{type:Boolean,default:()=>cx.skeleton.avatar},avatarSize:{type:[String,Number],default:()=>cx.skeleton.avatarSize},avatarShape:{type:String,default:()=>cx.skeleton.avatarShape}}};const FB=W_({name:"u-skeleton",mixins:[hx,fx,HB],data:()=>({width:0}),watch:{loading(){this.getComponentWidth()}},computed:{rowsArray(){/%$/.test(this.rowsHeight);const e=[];for(let t=0;t<this.rows;t++){let n={},o=fw.array(this.rowsWidth)?this.rowsWidth[t]||(t===this.rows-1?"70%":"100%"):t===this.rows-1?"70%":this.rowsWidth,i=fw.array(this.rowsHeight)?this.rowsHeight[t]||"18px":this.rowsHeight;n.marginTop=this.title||0!==t?this.title&&0===t?"20px":"12px":0,/%$/.test(o)?n.width=zw(this.width*parseInt(o)/100):n.width=zw(o),n.height=zw(i),e.push(n)}return e},uTitleWidth(){let e=0;return e=/%$/.test(this.titleWidth)?zw(this.width*parseInt(this.titleWidth)/100):zw(this.titleWidth),zw(e)}},mounted(){this.init()},methods:{addUnit:zw,init(){this.getComponentWidth()},async setNvueAnimation(){},async getComponentWidth(){await kw(20),this.$uGetRect(".u-skeleton__wrapper__content").then(e=>{this.width=e.width})}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-skeleton"},{default:So(()=>[e.loading?(Ir(),zr(s,{key:0,class:"u-skeleton__wrapper",ref:"u-skeleton__wrapper",style:{display:"flex","flex-direction":"row"}},{default:So(()=>[e.avatar?(Ir(),zr(s,{key:0,class:Qe(["u-skeleton__wrapper__avatar",[`u-skeleton__wrapper__avatar--${e.avatarShape}`,e.animate&&"animate"]]),style:qe({height:r.addUnit(e.avatarSize),width:r.addUnit(e.avatarSize)})},null,8,["class","style"])):Wr("",!0),jr(s,{class:"u-skeleton__wrapper__content",ref:"u-skeleton__wrapper__content",style:{flex:"1"}},{default:So(()=>[e.title?(Ir(),zr(s,{key:0,class:Qe(["u-skeleton__wrapper__content__title",[e.animate&&"animate"]]),style:qe({width:r.uTitleWidth,height:r.addUnit(e.titleHeight)})},null,8,["style","class"])):Wr("",!0),(Ir(!0),Mr(xr,null,Pi(r.rowsArray,(t,n)=>(Ir(),zr(s,{class:Qe(["u-skeleton__wrapper__content__rows",[e.animate&&"animate"]]),key:n,style:qe({width:t.width,height:t.height,marginTop:t.marginTop})},null,8,["class","style"]))),128))]),_:1},512)]),_:1},512)):Mi(e.$slots,"default",{key:1},void 0,!0)]),_:3})}],["__scopeId","data-v-79e5376d"]]),VB=Object.freeze(Object.defineProperty({__proto__:null,default:FB},Symbol.toStringTag,{value:"Module"})),WB={props:{min:{type:[Number,String],default:()=>cx.slider.min},max:{type:[Number,String],default:()=>cx.slider.max},step:{type:[Number,String],default:()=>cx.slider.step},modelValue:{type:[String,Number],default:()=>cx.slider.value},isRange:{type:Boolean,default:!1},rangeValue:{type:[Array],default:[0,0]},activeColor:{type:String,default:()=>cx.slider.activeColor},inactiveColor:{type:String,default:()=>cx.slider.inactiveColor},blockSize:{type:[Number,String],default:()=>cx.slider.blockSize},blockColor:{type:String,default:()=>cx.slider.blockColor},blockStyle:{type:Object,default:()=>cx.slider.blockStyle},disabled:{type:Boolean,default:()=>cx.slider.disabled},showValue:{type:Boolean,default:()=>cx.slider.showValue},useNative:{type:Boolean,default:()=>cx.slider.useNative},height:{type:String,default:()=>cx.slider.height},innerStyle:{type:Object,default:()=>cx.slider.innerStyle}}};const UB=W_({name:"u-slider",mixins:[hx,fx,WB],emits:["start","changing","change","update:modelValue"],data:()=>({startX:0,status:"end",newValue:0,distanceX:0,startValue0:0,startValue:0,barStyle0:{},barStyle:{},sliderRect:{left:0,width:0}}),watch:{modelValue(e){if("end"==this.status){const e=this.updateValue(this.modelValue,!1);this.$emit("change",e)}},rangeValue:{handler(e){"end"==this.status&&(this.updateValue(this.rangeValue[0],!1,0),this.updateValue(this.rangeValue[1],!1,1),this.$emit("change",this.rangeValue))},deep:!0}},created(){},computed:{innerStyleCpu(){let e=this.innerStyle;return e.height=this.isRange&&this.showValue?Sw(this.blockSize)+24+"px":Sw(this.blockSize)+"px",e}},async mounted(){this.useNative||this.$uGetRect(".u-slider__base").then(e=>{this.sliderRect=e,0==this.sliderRect.width&&console.info("如在弹窗等元素中使用，请使用v-if来显示滑块，否则无法计算长度。"),this.init()})},methods:{addStyle:Mw,getPx:Sw,init(){this.isRange?(this.updateValue(this.rangeValue[0],!1,0),this.updateValue(this.rangeValue[1],!1,1)):this.updateValue(this.modelValue,!1)},changingHandler(e){const{value:t}=e.detail;this.$emit("update:modelValue",t),this.$emit("changing",t)},changeHandler(e){const{value:t}=e.detail;this.$emit("update:modelValue",t),this.$emit("change",t)},onTouchStart(e,t=1){if(this.disabled)return;this.startX=0;let n=e.touches[0];this.startX=n.clientX,this.isRange?(this.startValue0=this.format(this.rangeValue[0],0),this.startValue=this.format(this.rangeValue[1],1)):this.startValue=this.format(this.modelValue),this.status="start";let o=0;o=n.clientX,this.distanceX=o-this.sliderRect.left,this.newValue=this.distanceX/this.sliderRect.width*(this.max-this.min)+parseFloat(this.min),this.status="moving";let i=this.updateValue(this.newValue,!0,t);this.$emit("changing",i)},onTouchMove(e,t=1){if(this.disabled)return;"start"==this.status&&this.$emit("start");let n=0;n=e.touches[0].clientX,this.distanceX=n-this.sliderRect.left,this.newValue=this.distanceX/this.sliderRect.width*(this.max-this.min)+parseFloat(this.min),this.status="moving";let o=this.updateValue(this.newValue,!0,t);this.$emit("changing",o)},onTouchEnd(e,t=1){if(!this.disabled){if("moving"===this.status){let e=this.updateValue(this.newValue,!1,t);this.$emit("change",e)}this.status="end"}},onTouchStart2(e,t=1){this.isRange},onTouchMove2(e,t=1){this.isRange},onTouchEnd2(e,t=1){this.isRange},onClick(e){if(this.disabled)return;let t=e.detail.x-this.sliderRect.left;this.newValue=t/this.sliderRect.width*(this.max-this.min)+parseFloat(this.min),this.updateValue(this.newValue,!1,1)},updateValue(e,t,n=1){let o=this.format(e,n);o>this.max&&(o=this.max);let i={width:Math.min((o-this.min)/(this.max-this.min)*this.sliderRect.width,this.sliderRect.width)+"px"};switch(1==t?i.transition="none":delete i.transition,this.isRange?(this.rangeValue[n]=o,this.$emit("update:modelValue",this.rangeValue)):this.$emit("update:modelValue",o),n){case 0:this.barStyle0={...i};break;case 1:this.barStyle={...i}}return this.isRange?this.rangeValue:o},format(e,t=1){if(!this.isRange)return Math.round(Math.max(this.min,Math.min(e,this.max))/parseInt(this.step))*parseInt(this.step);switch(t){case 0:return Math.round(Math.max(this.min,Math.min(e,this.rangeValue[1]-parseInt(this.step),this.max))/parseInt(this.step))*parseInt(this.step);case 1:return Math.round(Math.max(this.min,this.rangeValue[0]+parseInt(this.step),Math.min(e,this.max))/parseInt(this.step))*parseInt(this.step)}}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=wy,l=hy;return Ir(),zr(s,{class:"u-slider",style:qe([r.addStyle(e.customStyle)])},{default:So(()=>[!e.useNative||e.isRange?(Ir(),Mr(xr,{key:0},[jr(s,{ref:"u-slider-inner",class:Qe(["u-slider-inner",[e.disabled?"u-slider--disabled":""]]),onClick:r.onClick,onOnTouchStart:t[4]||(t[4]=e=>r.onTouchStart2(e,1)),onTouchmove:t[5]||(t[5]=e=>r.onTouchMove2(e,1)),onTouchend:t[6]||(t[6]=e=>r.onTouchEnd2(e,1)),onTouchcancel:t[7]||(t[7]=e=>r.onTouchEnd2(e,1)),style:qe(r.innerStyleCpu)},{default:So(()=>[jr(s,{ref:"u-slider__base",class:"u-slider__base",style:qe([{height:e.height,backgroundColor:e.inactiveColor}])},null,8,["style"]),jr(s,{onClick:r.onClick,class:"u-slider__gap",style:qe([i.barStyle,{height:e.height,marginTop:"-"+e.height,backgroundColor:e.activeColor}])},null,8,["onClick","style"]),e.isRange?(Ir(),zr(s,{key:0,class:"u-slider__gap u-slider__gap-0",style:qe([i.barStyle0,{height:e.height,marginTop:"-"+e.height,backgroundColor:e.inactiveColor}])},null,8,["style"])):Wr("",!0),e.isRange&&e.showValue?(Ir(),zr(a,{key:1,class:"u-slider__show-range-value",style:qe({left:r.getPx(i.barStyle0.width)+r.getPx(e.blockSize)/2+"px"})},{default:So(()=>[Vr(X(this.rangeValue[0]),1)]),_:1},8,["style"])):Wr("",!0),e.isRange&&e.showValue?(Ir(),zr(a,{key:2,class:"u-slider__show-range-value",style:qe({left:r.getPx(i.barStyle.width)+r.getPx(e.blockSize)/2+"px"})},{default:So(()=>[Vr(X(this.rangeValue[1]),1)]),_:1},8,["style"])):Wr("",!0),e.isRange?(Ir(),zr(s,{key:3,class:"u-slider__button-wrap u-slider__button-wrap-0",onTouchstart:t[0]||(t[0]=e=>r.onTouchStart(e,0)),onTouchmove:t[1]||(t[1]=e=>r.onTouchMove(e,0)),onTouchend:t[2]||(t[2]=e=>r.onTouchEnd(e,0)),onTouchcancel:t[3]||(t[3]=e=>r.onTouchEnd(e,0)),style:qe({left:r.getPx(i.barStyle0.width)+r.getPx(e.blockSize)/2+"px"})},{default:So(()=>[e.$slots.min||e.$slots.$min?Mi(e.$slots,"min",{key:0},void 0,!0):(Ir(),zr(s,{key:1,class:"u-slider__button",style:qe([e.blockStyle,{height:r.getPx(e.blockSize,!0),width:r.getPx(e.blockSize,!0),backgroundColor:e.blockColor}])},null,8,["style"]))]),_:3},8,["style"])):Wr("",!0),jr(s,{class:"u-slider__button-wrap",onTouchstart:r.onTouchStart,onTouchmove:r.onTouchMove,onTouchend:r.onTouchEnd,onTouchcancel:r.onTouchEnd,style:qe({left:r.getPx(i.barStyle.width)+r.getPx(e.blockSize)/2+"px"})},{default:So(()=>[e.isRange&&(e.$slots.max||e.$slots.$max)?Mi(e.$slots,"max",{key:0},void 0,!0):e.$slots.default||e.$slots.$default?Mi(e.$slots,"default",{key:1},void 0,!0):(Ir(),zr(s,{key:2,class:"u-slider__button",style:qe([e.blockStyle,{height:r.getPx(e.blockSize,!0),width:r.getPx(e.blockSize,!0),backgroundColor:e.blockColor}])},null,8,["style"]))]),_:3},8,["onTouchstart","onTouchmove","onTouchend","onTouchcancel","style"])]),_:3},8,["onClick","class","style"]),e.showValue&&!e.isRange?(Ir(),zr(s,{key:0,class:"u-slider__show-value"},{default:So(()=>[Vr(X(e.modelValue),1)]),_:1})):Wr("",!0)],64)):(Ir(),zr(l,{key:1,class:"u-slider__native",min:e.min,max:e.max,step:e.step,value:e.modelValue,activeColor:e.activeColor,backgroundColor:e.inactiveColor,blockSize:r.getPx(e.blockSize),blockColor:e.blockColor,showValue:e.showValue,disabled:e.disabled,onChanging:r.changingHandler,onChange:r.changeHandler},null,8,["min","max","step","value","activeColor","backgroundColor","blockSize","blockColor","showValue","disabled","onChanging","onChange"]))]),_:3},8,["style"])}],["__scopeId","data-v-7d31736a"]]),qB=Object.freeze(Object.defineProperty({__proto__:null,default:UB},Symbol.toStringTag,{value:"Module"})),QB={props:{title:{type:[String,Number],default:()=>cx.stepsItem.title},desc:{type:[String,Number],default:()=>cx.stepsItem.desc},iconSize:{type:[String,Number],default:()=>cx.stepsItem.iconSize},error:{type:Boolean,default:()=>cx.stepsItem.error},itemStyle:{type:[Object],default:{}}}};const YB=W_({name:"u-steps-item",mixins:[hx,fx,QB],data:()=>({index:0,childLength:0,showLine:!1,size:{height:0,width:0},parentData:{direction:"row",current:0,activeColor:"",inactiveColor:"",activeIcon:"",inactiveIcon:"",dot:!1}}),watch:{parentData(e,t){}},created(){this.init()},computed:{lineStyle(){var e,t;const n={};return"row"===this.parentData.direction?(n.width=this.size.width+"px",n.left=this.size.width/2+"px"):n.height=this.size.height+"px",n.backgroundColor=(null==(t=null==(e=this.parent.children)?void 0:e[this.index+1])?void 0:t.error)?G_.error:this.index<this.parentData.current?this.parentData.activeColor:this.parentData.inactiveColor,n},itemStyleInner(){return{...this.itemStyle}},statusClass(){const{index:e,error:t}=this,{current:n}=this.parentData;return n==e?!0===t?"error":"process":t?"error":n>e?"finish":"wait"},statusColor(){let e="";switch(this.statusClass){case"finish":e=this.parentData.activeColor;break;case"error":e=G_.error;break;case"process":e=this.parentData.dot?this.parentData.activeColor:"transparent";break;default:e=this.parentData.inactiveColor}return e},contentStyle(){const e={};return"column"===this.parentData.direction?(e.marginLeft=this.parentData.dot?"2px":"6px",e.marginTop=this.parentData.dot?"0px":"6px"):(e.marginTop=this.parentData.dot?"2px":"6px",e.marginLeft=this.parentData.dot?"2px":"6px"),e}},mounted(){this.parent&&this.parent.updateFromChild(),kw().then(()=>{this.getStepsItemRect()})},methods:{init(){this.updateParentData(),this.parent&&(this.index=this.parent.children.indexOf(this),this.childLength=this.parent.children.length)},updateParentData(){this.getParentData("u-steps")},updateFromParent(){this.init()},getStepsItemRect(){this.$uGetRect(".u-steps-item").then(e=>{this.size=e})}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=Bo("up-icon"),l=wy,c=Bo("up-text");return Ir(),zr(s,{class:Qe(["u-steps-item",[`u-steps-item--${i.parentData.direction}`]]),ref:"u-steps-item"},{default:So(()=>[i.index+1<i.childLength?(Ir(),zr(s,{key:0,class:Qe(["u-steps-item__line",[`u-steps-item__line--${i.parentData.direction}`]]),style:qe([r.lineStyle])},null,8,["class","style"])):Wr("",!0),jr(s,{class:Qe(["u-steps-item__wrapper",[`u-steps-item__wrapper--${i.parentData.direction}`,i.parentData.dot&&`u-steps-item__wrapper--${i.parentData.direction}--dot`]]),style:qe([r.itemStyleInner])},{default:So(()=>[Mi(e.$slots,"icon",{},()=>[i.parentData.dot?(Ir(),zr(s,{key:0,class:"u-steps-item__wrapper__dot",style:qe({backgroundColor:r.statusColor})},null,8,["style"])):i.parentData.activeIcon||i.parentData.inactiveIcon?(Ir(),zr(s,{key:1,class:"u-steps-item__wrapper__icon"},{default:So(()=>[jr(a,{name:i.index<=i.parentData.current?i.parentData.activeIcon:i.parentData.inactiveIcon,size:e.iconSize,color:i.index<=i.parentData.current?i.parentData.activeColor:i.parentData.inactiveColor},null,8,["name","size","color"])]),_:1})):(Ir(),zr(s,{key:2,style:qe({backgroundColor:"process"===r.statusClass?i.parentData.activeColor:"transparent",borderColor:r.statusColor}),class:"u-steps-item__wrapper__circle"},{default:So(()=>["process"===r.statusClass||"wait"===r.statusClass?(Ir(),zr(l,{key:0,class:"u-steps-item__wrapper__circle__text",style:qe({color:i.index==i.parentData.current?"#ffffff":i.parentData.inactiveColor})},{default:So(()=>[Vr(X(i.index+1),1)]),_:1},8,["style"])):(Ir(),zr(a,{key:1,color:"error"===r.statusClass?"error":i.parentData.activeColor,size:"12",name:"error"===r.statusClass?"close":"checkmark"},null,8,["color","name"]))]),_:1},8,["style"]))],!0)]),_:3},8,["class","style"]),jr(s,{class:Qe(["u-steps-item__content",[`u-steps-item__content--${i.parentData.direction}`,i.parentData.current==i.index?"u-steps-item__content--current":""]]),style:qe([r.contentStyle])},{default:So(()=>[Mi(e.$slots,"content",{index:i.index},void 0,!0),e.$slots.content?Wr("",!0):(Ir(),Mr(xr,{key:0},[jr(s,{class:"u-steps-item__content__title"},{default:So(()=>[Mi(e.$slots,"title",{},void 0,!0),e.$slots.title?Wr("",!0):(Ir(),zr(c,{key:0,text:e.title,type:i.parentData.current==i.index?"main":"content",lineHeight:"20px",size:i.parentData.current==i.index?14:13},null,8,["text","type","size"]))]),_:3}),jr(s,{class:"u-steps-item__content__desc"},{default:So(()=>[Mi(e.$slots,"desc",{},void 0,!0),e.$slots.desc?Wr("",!0):(Ir(),zr(c,{key:0,text:e.desc,type:"tips",size:"12"},null,8,["text"]))]),_:3})],64))]),_:3},8,["class","style"])]),_:3},8,["class"])}],["__scopeId","data-v-0b72d0d3"]]),GB=Object.freeze(Object.defineProperty({__proto__:null,default:YB},Symbol.toStringTag,{value:"Module"})),XB={props:{direction:{type:String,default:()=>cx.steps.direction},current:{type:[String,Number],default:()=>cx.steps.current},activeColor:{type:String,default:()=>cx.steps.activeColor},inactiveColor:{type:String,default:()=>cx.steps.inactiveColor},activeIcon:{type:String,default:()=>cx.steps.activeIcon},inactiveIcon:{type:String,default:()=>cx.steps.inactiveIcon},dot:{type:Boolean,default:()=>cx.steps.dot}}};const KB=W_({name:"u-steps",mixins:[hx,fx,XB],data:()=>({}),watch:{children(){this.updateChildData()},parentData(){this.updateChildData()}},computed:{parentData(){return[this.current,this.direction,this.activeColor,this.inactiveColor,this.activeIcon,this.inactiveIcon,this.dot]}},methods:{updateChildData(){this.children.map(e=>{fw.func((e||{}).updateFromParent())&&e.updateFromParent()})},updateFromChild(){this.updateChildData()}},created(){this.children=[]},options:{virtualHost:!1}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:Qe(["u-steps",[`u-steps--${e.direction}`]])},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"])}],["__scopeId","data-v-1a050f2e"]]),JB=Object.freeze(Object.defineProperty({__proto__:null,default:KB},Symbol.toStringTag,{value:"Module"})),ZB={props:{offsetTop:{type:[String,Number],default:()=>cx.sticky.offsetTop},customNavHeight:{type:[String,Number],default:44},disabled:{type:Boolean,default:()=>cx.sticky.disabled},bgColor:{type:String,default:()=>cx.sticky.bgColor},zIndex:{type:[String,Number],default:()=>cx.sticky.zIndex},index:{type:[String,Number],default:()=>cx.sticky.index}}};const eE=W_({name:"u-sticky",mixins:[hx,fx,ZB],data:()=>({cssSticky:!1,stickyTop:0,elId:Ew(),left:0,width:"auto",height:"auto",fixed:!1}),computed:{style(){const e={};return this.disabled?e.position="static":this.cssSticky?(e.position="sticky",e.zIndex=this.uZindex,e.top=zw(this.stickyTop)):e.height=this.fixed?this.height+"px":"auto",e.backgroundColor=this.bgColor,Rw(Mw(this.customStyle),e)},stickyContent(){const e={};return this.cssSticky||(e.position=this.fixed?"fixed":"static",e.top=this.stickyTop+"px",e.left=this.left+"px",e.width="auto"==this.width?"auto":this.width+"px",e.zIndex=this.uZindex),e},uZindex(){return this.zIndex?this.zIndex:Y_.sticky}},mounted(){this.init()},watch:{offsetTop(e){this.getStickyTop()}},methods:{init(){this.getStickyTop(),this.checkSupportCssSticky(),this.cssSticky||!this.disabled&&this.initObserveContent()},initObserveContent(){this.$uGetRect("#"+this.elId).then(e=>{this.height=e.height,this.left=e.left,this.width=e.width,this.$nextTick(()=>{this.observeContent()})})},observeContent(){this.disconnectObserver("contentObserver");const e=Jh(this,{thresholds:[.95,.98,1]});e.relativeToViewport({top:-this.stickyTop}),e.observe(`#${this.elId}`,e=>{this.setFixed(e.boundingClientRect.top)}),this.contentObserver=e},setFixed(e){const t=e<=this.stickyTop;this.fixed=t},disconnectObserver(e){const t=this[e];t&&t.disconnect()},getStickyTop(){this.stickyTop=Sw(this.offsetTop)+Sw(this.customNavHeight)},async checkSupportCssSticky(){this.checkCssStickyForH5()&&(this.cssSticky=!0),"android"===Cw()&&Number(Iw().system)>8&&(this.cssSticky=!0),"ios"===Cw()&&(this.cssSticky=!0)},checkComputedStyle(){},checkCssStickyForH5(){const e=["","-webkit-","-ms-","-moz-","-o-"],t=e.length,n=document.createElement("div");for(let o=0;o<t;o++)if(n.style.position=e[o]+"sticky",""!==n.style.position)return!0;return!1}},beforeUnmount(){this.disconnectObserver("contentObserver")}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-sticky",style:qe([r.style])},{default:So(()=>[jr(s,{id:i.elId,style:qe([r.stickyContent]),class:"u-sticky__content"},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["id","style"])]),_:3},8,["style"])}],["__scopeId","data-v-44d4c292"]]),tE=Object.freeze(Object.defineProperty({__proto__:null,default:eE},Symbol.toStringTag,{value:"Module"})),nE={props:{list:{type:Array,default:()=>cx.subsection.list},current:{type:[String,Number],default:()=>cx.subsection.current},activeColor:{type:String,default:()=>cx.subsection.activeColor},inactiveColor:{type:String,default:()=>cx.subsection.inactiveColor},mode:{type:String,default:()=>cx.subsection.mode},fontSize:{type:[String,Number],default:()=>cx.subsection.fontSize},bold:{type:Boolean,default:()=>cx.subsection.bold},bgColor:{type:String,default:()=>cx.subsection.bgColor},keyName:{type:String,default:()=>cx.subsection.keyName},activeColorKeyName:{type:String,default:()=>cx.subsection.activeColorKeyName},inactiveColorKeyName:{type:String,default:()=>cx.subsection.inactiveColorKeyName},disabled:{type:Boolean,default:()=>cx.subsection.disabled}}};const oE=W_({name:"u-subsection",mixins:[hx,fx,nE],data:()=>({itemRect:{width:0,height:0},innerCurrent:"",windowResizeCallback:{}}),watch:{list(e,t){this.init()},current:{immediate:!0,handler(e){e!==this.innerCurrent&&(this.innerCurrent=e)}}},computed:{wrapperStyle(){const e={};return"button"===this.mode&&(e.backgroundColor=this.bgColor),e},barStyle(){const e={};return e.width=`${this.itemRect.width}px`,e.height=`${this.itemRect.height}px`,e.transform=`translateX(${this.innerCurrent*this.itemRect.width}px)`,"subsection"===this.mode&&(e.backgroundColor=this.activeColor),e},itemStyle(e){return e=>{const t={};return"subsection"===this.mode&&(t.borderColor=this.activeColor,t.borderWidth="1px",t.borderStyle="solid"),t}},textStyle(e,t){return(e,t)=>{const n={};n.fontWeight=this.bold&&this.innerCurrent===e?"bold":"normal",n.fontSize=zw(this.fontSize);let o=null,i=null;return"object"==typeof t&&t[this.activeColorKeyName]&&(o=t[this.activeColorKeyName]),"object"==typeof t&&t[this.inactiveColorKeyName]&&(i=t[this.inactiveColorKeyName]),"subsection"===this.mode?this.innerCurrent===e?n.color=o||"#FFF":n.color=i||this.inactiveColor:this.innerCurrent===e?n.color=o||this.activeColor:n.color=i||this.inactiveColor,n}}},mounted(){this.init()},beforeUnmount(){},emits:["change","update:current"],methods:{addStyle:Mw,init(){this.innerCurrent=this.current,kw().then(()=>this.getRect())},getText(e){return"object"==typeof e?e[this.keyName]:e},getRect(){this.$uGetRect(".u-subsection__item--0").then(e=>{this.itemRect=e})},clickHandler(e){this.disabled||(this.innerCurrent=e,this.$emit("update:current",e),this.$emit("change",e))},getTextViewDisableClass(e){return this.disabled?"button"===this.mode?"item-button--disabled":"item-subsection--disabled":""}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=wy;return Ir(),zr(s,{class:Qe(["u-subsection",[`u-subsection--${e.mode}`]]),ref:"u-subsection",style:qe([r.addStyle(e.customStyle),r.wrapperStyle])},{default:So(()=>[jr(s,{class:Qe(["u-subsection__bar cursor-pointer",["button"===e.mode&&"u-subsection--button__bar",0===i.innerCurrent&&"subsection"===e.mode&&"u-subsection__bar--first",i.innerCurrent>0&&i.innerCurrent<e.list.length-1&&"subsection"===e.mode&&"u-subsection__bar--center",i.innerCurrent===e.list.length-1&&"subsection"===e.mode&&"u-subsection__bar--last"]]),ref:"u-subsection__bar",style:qe([r.barStyle])},null,8,["style","class"]),(Ir(!0),Mr(xr,null,Pi(e.list,(t,n)=>(Ir(),zr(s,{class:Qe(["u-subsection__item cursor-pointer",[`u-subsection__item--${n}`,n<e.list.length-1&&"u-subsection__item--no-border-right",0===n&&"u-subsection__item--first",n===e.list.length-1&&"u-subsection__item--last",r.getTextViewDisableClass(n)]]),ref_for:!0,ref:`u-subsection__item--${n}`,style:qe([r.itemStyle(n)]),onClick:e=>r.clickHandler(n),key:n},{default:So(()=>[jr(a,{class:Qe(["u-subsection__item__text",[e.disabled?"u-subsection--disabled":""]]),style:qe([r.textStyle(n,t)])},{default:So(()=>[Vr(X(r.getText(t)),1)]),_:2},1032,["class","style"])]),_:2},1032,["class","style","onClick"]))),128))]),_:1},8,["class","style"])}],["__scopeId","data-v-b0ad74fd"]]),iE=Object.freeze(Object.defineProperty({__proto__:null,default:oE},Symbol.toStringTag,{value:"Module"}));const rE={props:{show:{type:Boolean,default:()=>cx.swipeActionItem.show},closeOnClick:{type:Boolean,default:()=>cx.swipeActionItem.closeOnClick},name:{type:[String,Number],default:()=>cx.swipeActionItem.name},disabled:{type:Boolean,default:()=>cx.swipeActionItem.disabled},autoClose:{type:Boolean,default:()=>cx.swipeActionItem.autoClose},threshold:{type:Number,default:()=>cx.swipeActionItem.threshold},options:{type:Array,default:()=>cx.swipeActionItem.rightOptions},duration:{type:[String,Number],default:()=>cx.swipeActionItem.duration}}};function sE(e){return e.toString().indexOf("s")>=0?e:e>30?e+"ms":e+"s"}function aE(e,t,n){t.getState(),n.selectAllComponents(".u-swipe-action-item__right__button"),t.requestAnimationFrame(function(){t.setStyle({transition:"none",transform:"translateX("+e+"px)","-webkit-transform":"translateX("+e+"px)"})})}function lE(e,t){var n=e.getState();t.selectAllComponents(".u-swipe-action-item__right__button");var o=sE(n.duration),i=-n.buttonsWidth;e.requestAnimationFrame(function(){e.setStyle({transition:"transform "+o,transform:"translateX("+i+"px)","-webkit-transform":"translateX("+i+"px)"})}),cE("open",e,t)}function cE(e,t,n){t.getState().status=e,n.callMethod("setState",e)}function uE(e,t){var n=e.getState(),o=t.selectAllComponents(".u-swipe-action-item__right__button"),i=o.length,r=sE(n.duration);e.requestAnimationFrame(function(){e.setStyle({transition:"transform "+r,transform:"translateX(0px)","-webkit-transform":"translateX(0px)"});for(var t=i-1;t>=0;t--)o[t].setStyle({transition:"transform "+r,transform:"translateX(0px)","-webkit-transform":"translateX(0px)"})}),cE("close",e,t)}const dE={touchstart:function(e,t){var n=e.instance.getState();if(!n.disabled){var o=e.touches;o&&o.length>1||(n.moving=!0,n.startX=o[0].pageX,n.startY=o[0].pageY,t.callMethod("closeOther"))}},touchmove:function(e,t){var n=e.instance,o=n.getState();if(!o.disabled&&o.moving){var i=e.touches,r=i[0].pageX,s=i[0].pageY,a=r-o.startX,l=s-o.startY,c=o.buttonsWidth;(Math.abs(a)>Math.abs(l)||Math.abs(a)>o.threshold)&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()),Math.abs(a)<Math.abs(l)||("open"===o.status?(a<0&&(a=0),a>c&&(a=c),aE(-c+a,n,t)):(a>0&&(a=0),Math.abs(a)>c&&(a=-c),aE(a,n,t)))}},touchend:function(e,t){var n=e.instance,o=n.getState();if(o.moving&&!o.disabled){var i=e.changedTouches?e.changedTouches[0]:{},r=i.pageX;i.pageY;var s=r-o.startX;if("open"===o.status){if(s<0)return;if(0===s)return uE(n,t);Math.abs(s)<o.threshold?lE(n,t):uE(n,t)}else{if(s>0)return;Math.abs(s)<o.threshold?uE(n,t):lE(n,t)}}},sizeChange:function(e,t,n,o){var i=o.getState();if(i&&e){if(i.disabled=e.disabled,i.duration=e.duration,i.show=e.show,i.threshold=e.threshold,i.buttons=e.buttons,i.buttons)for(var r=i.buttons.length,s=0,a=e.buttons,l=0;l<r;l++)s+=a[l].width;i.buttonsWidth=s,i.show&&lE(o,n)}},statusChange:function(e,t,n,o){var i=o.getState();i.disabled||("close"===e&&"open"===i.status?uE(o,n):"open"===e&&"close"===i.status&&lE(o,n))}},hE=e=>{e.$wxs||(e.$wxs=[]),e.$wxs.push("wxs"),e.mixins||(e.mixins=[]),e.mixins.push({beforeCreate(){this.wxs=dE}})},pE={name:"u-swipe-action-item",emits:["click","update:show"],mixins:[hx,fx,{methods:{getTouchPoint:e=>e?e.touches&&e.touches[0]?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches[0]?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.clientX||0,y:e.clientY||0}:{x:0,y:0},resetTouchStatus(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},touchStart(e){this.resetTouchStatus();const t=this.getTouchPoint(e);this.startX=t.x,this.startY=t.y},touchMove(e){const t=this.getTouchPoint(e);var n,o;this.deltaX=t.x-this.startX,this.deltaY=t.y-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(n=this.offsetX,o=this.offsetY,n>o&&n>10?"horizontal":o>n&&o>10?"vertical":"")}}},{methods:{closeHandler(){this.status="close"},setState(e){this.status=e},closeOther(){this.parent&&this.parent.closeOther(this)}}},rE],data:()=>({size:{},parentData:{autoClose:!0},status:"",sliderStyle:{}}),watch:{wxsInit(e,t){this.queryRect()},status(e){"open"===e?(this.$emit("update:show",!0),this.parent&&this.parent.setOpendItem(this)):this.$emit("update:show",!1)},show(e){this.status=e?"open":"close"}},computed:{wxsInit(){return[this.disabled,this.autoClose,this.threshold,this.options,this.duration]}},mounted(){this.init()},beforeUmount(){this.closeHandler()},methods:{addUnit:zw,getPx:Sw,init(){this.updateParentData(),kw().then(()=>{this.queryRect()})},updateParentData(){this.getParentData("u-swipe-action")},queryRect(){this.$uGetRect(".u-swipe-action-item__right__button",!0).then(e=>{this.size={buttons:e,show:this.show,disabled:this.disabled,threshold:this.threshold,duration:this.duration}})},buttonClickHandler(e,t){this.$emit("click",{index:t,name:this.name},()=>{}),this.closeOnClick&&this.closeHandler()}}};hE(pE);const fE=W_(pE,[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=wy,l=Ay;return Ir(),zr(l,{class:"u-swipe-action-item",ref:"u-swipe-action-item"},{default:So(()=>[jr(l,{class:"u-swipe-action-item__right"},{default:So(()=>[Mi(e.$slots,"button",{},()=>[(Ir(!0),Mr(xr,null,Pi(e.options,(e,t)=>(Ir(),zr(l,{key:t,class:"u-swipe-action-item__right__button",ref_for:!0,ref:`u-swipe-action-item__right__button-${t}`,style:qe([{alignItems:e.style&&e.style.borderRadius?"center":"stretch"}]),onClick:n=>r.buttonClickHandler(e,t)},{default:So(()=>[jr(l,{class:"u-swipe-action-item__right__button__wrapper",style:qe([{backgroundColor:e.style&&e.style.backgroundColor?e.style.backgroundColor:"#C7C6CD",borderRadius:e.style&&e.style.borderRadius?e.style.borderRadius:"0",padding:e.style&&e.style.borderRadius?"0":"0 15px"},e.style])},{default:So(()=>[e.icon?(Ir(),zr(s,{key:0,name:e.icon,color:e.style&&e.style.color?e.style.color:"#ffffff",size:e.iconSize?r.addUnit(e.iconSize):e.style&&e.style.fontSize?1.2*r.getPx(e.style.fontSize):17,customStyle:{marginRight:e.text?"2px":0}},null,8,["name","color","size","customStyle"])):Wr("",!0),e.text?(Ir(),zr(a,{key:1,class:"u-swipe-action-item__right__button__wrapper__text u-line-1",style:qe([{color:e.style&&e.style.color?e.style.color:"#ffffff",fontSize:e.style&&e.style.fontSize?e.style.fontSize:"16px",lineHeight:e.style&&e.style.fontSize?e.style.fontSize:"16px"}])},{default:So(()=>[Vr(X(e.text),1)]),_:2},1032,["style"])):Wr("",!0)]),_:2},1032,["style"])]),_:2},1032,["style","onClick"]))),128))],!0)]),_:3}),jr(l,{class:"u-swipe-action-item__content",onTouchstart:e.wxs.touchstart,onTouchmove:e.wxs.touchmove,onTouchend:e.wxs.touchend,status:i.status,"change:status":e.wxs.statusChange,size:i.size,"change:size":e.wxs.sizeChange},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["onTouchstart","onTouchmove","onTouchend","status","change:status","size","change:size"])]),_:3},512)}],["__scopeId","data-v-1e5584f3"]]),mE=Object.freeze(Object.defineProperty({__proto__:null,default:fE},Symbol.toStringTag,{value:"Module"})),gE={props:{autoClose:{type:Boolean,default:()=>cx.swipeAction.autoClose},opendItem:{type:Boolean,default:!1}}};const yE=W_({name:"u-swipe-action",mixins:[hx,fx,gE],data:()=>({}),provide(){return{swipeAction:this}},computed:{parentData(){return[this.autoClose]}},emits:["opendItem:update"],watch:{parentData(){this.children.length&&this.children.map(e=>{"function"==typeof e.updateParentData&&e.updateParentData()})},opendItem(e){0==e&&this.closeAll()}},created(){this.children=[]},methods:{closeOther(e){this.autoClose&&this.children.map((t,n)=>{e!==t&&t.closeHandler()})},closeAll(){this.children.map((e,t)=>{e.closeHandler()})},setOpendItem(e){this.$emit("opendItem:update",!0)}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-swipe-action"},{default:So(()=>[Mi(e.$slots,"default")]),_:3})}]]),bE=Object.freeze(Object.defineProperty({__proto__:null,default:yE},Symbol.toStringTag,{value:"Module"}));const vE=W_({name:"u-swiper-indicator",mixins:[hx,fx,{props:{length:{type:[String,Number],default:()=>cx.swiperIndicator.length},current:{type:[String,Number],default:()=>cx.swiperIndicator.current},indicatorActiveColor:{type:String,default:()=>cx.swiperIndicator.indicatorActiveColor},indicatorInactiveColor:{type:String,default:()=>cx.swiperIndicator.indicatorInactiveColor},indicatorMode:{type:String,default:()=>cx.swiperIndicator.indicatorMode}}}],data:()=>({lineWidth:22}),computed:{lineStyle(){let e={};return e.width=zw(this.lineWidth),e.transform=`translateX(${zw(this.current*this.lineWidth)})`,e.backgroundColor=this.indicatorActiveColor,e},dotStyle(){return e=>{let t={};return t.backgroundColor=e===this.current?this.indicatorActiveColor:this.indicatorInactiveColor,t}}},methods:{addUnit:zw}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-swiper-indicator"},{default:So(()=>["line"===e.indicatorMode?(Ir(),zr(s,{key:0,class:Qe(["u-swiper-indicator__wrapper",[`u-swiper-indicator__wrapper--${e.indicatorMode}`]]),style:qe({width:r.addUnit(i.lineWidth*e.length),backgroundColor:e.indicatorInactiveColor})},{default:So(()=>[jr(s,{class:"u-swiper-indicator__wrapper--line__bar",style:qe([r.lineStyle])},null,8,["style"])]),_:1},8,["class","style"])):Wr("",!0),"dot"===e.indicatorMode?(Ir(),zr(s,{key:1,class:"u-swiper-indicator__wrapper"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(e.length,(t,n)=>(Ir(),zr(s,{class:Qe(["u-swiper-indicator__wrapper__dot",[n===e.current&&"u-swiper-indicator__wrapper__dot--active"]]),key:n,style:qe([r.dotStyle(n)])},null,8,["class","style"]))),128))]),_:1})):Wr("",!0)]),_:1})}],["__scopeId","data-v-bd33edf7"]]),_E=Object.freeze(Object.defineProperty({__proto__:null,default:vE},Symbol.toStringTag,{value:"Module"})),wE={props:{list:{type:Array,default:()=>cx.swiper.list},indicator:{type:Boolean,default:()=>cx.swiper.indicator},indicatorActiveColor:{type:String,default:()=>cx.swiper.indicatorActiveColor},indicatorInactiveColor:{type:String,default:()=>cx.swiper.indicatorInactiveColor},indicatorStyle:{type:[String,Object],default:()=>cx.swiper.indicatorStyle},indicatorMode:{type:String,default:()=>cx.swiper.indicatorMode},autoplay:{type:Boolean,default:()=>cx.swiper.autoplay},current:{type:[String,Number],default:()=>cx.swiper.current},currentItemId:{type:String,default:()=>cx.swiper.currentItemId},interval:{type:[String,Number],default:()=>cx.swiper.interval},duration:{type:[String,Number],default:()=>cx.swiper.duration},circular:{type:Boolean,default:()=>cx.swiper.circular},previousMargin:{type:[String,Number],default:()=>cx.swiper.previousMargin},nextMargin:{type:[String,Number],default:()=>cx.swiper.nextMargin},acceleration:{type:Boolean,default:()=>cx.swiper.acceleration},displayMultipleItems:{type:Number,default:()=>cx.swiper.displayMultipleItems},easingFunction:{type:String,default:()=>cx.swiper.easingFunction},keyName:{type:String,default:()=>cx.swiper.keyName},imgMode:{type:String,default:()=>cx.swiper.imgMode},height:{type:[String,Number],default:()=>cx.swiper.height},bgColor:{type:String,default:()=>cx.swiper.bgColor},radius:{type:[String,Number],default:()=>cx.swiper.radius},loading:{type:Boolean,default:()=>cx.swiper.loading},showTitle:{type:Boolean,default:()=>cx.swiper.showTitle}}};const xE=W_({name:"u-swiper",mixins:[hx,fx,wE],data:()=>({currentIndex:0}),watch:{current(e,t){e!==t&&(this.currentIndex=e)}},emits:["click","change","update:current"],computed:{itemStyle(){return e=>{const t={};return this.nextMargin&&this.previousMargin&&(t.borderRadius=zw(this.radius),e!==this.currentIndex&&(t.transform="scale(0.92)")),t}}},methods:{addStyle:Mw,addUnit:zw,testObject:fw.object,testImage:fw.image,getItemType(e){return"string"==typeof e?fw.video(this.getSource(e))?"video":"image":"object"==typeof e&&this.keyName?e.type?"image"===e.type?"image":"video"===e.type?"video":"image":fw.video(this.getSource(e))?"video":"image":void 0},getSource(e){return"string"==typeof e?e:"object"==typeof e&&this.keyName?e[this.keyName]:""},change(e){const{current:t}=e.detail;this.pauseVideo(this.currentIndex),this.currentIndex=t,this.$emit("update:current",this.currentIndex),this.$emit("change",e.detail)},pauseVideo(e){const t=this.getSource(this.list[e]);if(fw.video(t)){xh(`video-${e}`,this).pause()}},getPoster:e=>"object"==typeof e&&e.poster?e.poster:"",clickHandler(e){this.$emit("click",e)}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-loading-icon"),a=Ay,l=Jm,c=db,u=wy,d=by,h=gy,p=Bo("up-swiper-indicator");return Ir(),zr(a,{class:"u-swiper",style:qe({backgroundColor:e.bgColor,height:r.addUnit(e.height),borderRadius:r.addUnit(e.radius)})},{default:So(()=>[e.loading?(Ir(),zr(a,{key:0,class:"u-swiper__loading"},{default:So(()=>[jr(s,{mode:"circle"})]),_:1})):(Ir(),zr(h,{key:1,class:"u-swiper__wrapper",style:qe({flex:"1",height:r.addUnit(e.height)}),onChange:r.change,circular:e.circular,interval:e.interval,duration:e.duration,autoplay:e.autoplay,current:e.current,currentItemId:e.currentItemId,previousMargin:r.addUnit(e.previousMargin),nextMargin:r.addUnit(e.nextMargin),acceleration:e.acceleration,displayMultipleItems:e.list.length>0?e.displayMultipleItems:0,easingFunction:e.easingFunction},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(e.list,(t,n)=>(Ir(),zr(d,{class:"u-swiper__wrapper__item",key:n},{default:So(()=>[Mi(e.$slots,"default",{item:t,index:n},()=>[jr(a,{class:"u-swiper__wrapper__item__wrapper",style:qe([r.itemStyle(n)])},{default:So(()=>["image"===r.getItemType(t)?(Ir(),zr(l,{key:0,class:"u-swiper__wrapper__item__wrapper__image",src:r.getSource(t),mode:e.imgMode,onClick:e=>r.clickHandler(n),style:qe({height:r.addUnit(e.height),borderRadius:r.addUnit(e.radius)})},null,8,["src","mode","onClick","style"])):Wr("",!0),"video"===r.getItemType(t)?(Ir(),zr(c,{key:1,class:"u-swiper__wrapper__item__wrapper__video",id:`video-${n}`,"enable-progress-gesture":!1,src:r.getSource(t),poster:r.getPoster(t),title:e.showTitle&&r.testObject(t)&&t.title?t.title:"",style:qe({height:r.addUnit(e.height)}),controls:"",onClick:e=>r.clickHandler(n)},null,8,["id","src","poster","title","style","onClick"])):Wr("",!0),e.showTitle&&r.testObject(t)&&t.title&&r.testImage(r.getSource(t))?(Ir(),zr(a,{key:2,class:"u-swiper__wrapper__item__wrapper__title"},{default:So(()=>[jr(u,{class:"u-line-1"},{default:So(()=>[Vr(X(t.title),1)]),_:2},1024)]),_:2},1024)):Wr("",!0)]),_:2},1032,["style"])],!0)]),_:2},1024))),128))]),_:3},8,["style","onChange","circular","interval","duration","autoplay","current","currentItemId","previousMargin","nextMargin","acceleration","displayMultipleItems","easingFunction"])),jr(a,{class:"u-swiper__indicator",style:qe([r.addStyle(e.indicatorStyle)])},{default:So(()=>[Mi(e.$slots,"indicator",{},()=>[e.loading||!e.indicator||e.showTitle?Wr("",!0):(Ir(),zr(p,{key:0,indicatorActiveColor:e.indicatorActiveColor,indicatorInactiveColor:e.indicatorInactiveColor,length:e.list.length,current:i.currentIndex,indicatorMode:e.indicatorMode},null,8,["indicatorActiveColor","indicatorInactiveColor","length","current","indicatorMode"]))],!0)]),_:3},8,["style"])]),_:3},8,["style"])}],["__scopeId","data-v-7f4d2b76"]]),SE=Object.freeze(Object.defineProperty({__proto__:null,default:xE},Symbol.toStringTag,{value:"Module"})),kE={props:{loading:{type:Boolean,default:()=>cx.switch.loading},disabled:{type:Boolean,default:()=>cx.switch.disabled},size:{type:[String,Number],default:()=>cx.switch.size},activeColor:{type:String,default:()=>cx.switch.activeColor},inactiveColor:{type:String,default:()=>cx.switch.inactiveColor},modelValue:{type:[Boolean,String,Number],default:()=>cx.switch.value},activeValue:{type:[String,Number,Boolean],default:()=>cx.switch.activeValue},inactiveValue:{type:[String,Number,Boolean],default:()=>cx.switch.inactiveValue},asyncChange:{type:Boolean,default:()=>cx.switch.asyncChange},space:{type:[String,Number],default:()=>cx.switch.space}}};const CE=W_({name:"u-switch",mixins:[hx,fx,kE],watch:{modelValue:{immediate:!0,handler(e){e!==this.inactiveValue&&this.activeValue}}},data:()=>({bgColor:"#ffffff"}),computed:{isActive(){return this.modelValue===this.activeValue},switchStyle(){let e={};return e.width=zw(2*this.size+2),e.height=zw(Number(this.size)+2),this.customInactiveColor&&(e.borderColor="rgba(0, 0, 0, 0)"),e.backgroundColor=this.isActive?this.activeColor:this.inactiveColor,e},nodeStyle(){let e={};e.width=zw(this.size-this.space),e.height=zw(this.size-this.space);const t=this.isActive?zw(this.space):zw(this.size);return e.transform=`translateX(-${t})`,e},bgStyle(){let e={};return e.width=zw(2*Number(this.size)-this.size/2),e.height=zw(this.size),e.backgroundColor=this.inactiveColor,e.transform=`scale(${this.isActive?0:1})`,e},customInactiveColor(){return"#fff"!==this.inactiveColor&&"#ffffff"!==this.inactiveColor}},emits:["update:modelValue","change"],methods:{addStyle:Mw,clickHandler(){if(!this.disabled&&!this.loading){const e=this.isActive?this.inactiveValue:this.activeValue;this.asyncChange||this.$emit("update:modelValue",e),this.$nextTick(()=>{this.$emit("change",e)})}}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=yx(Po("u-loading-icon"),Px);return Ir(),zr(s,{class:Qe(["u-switch cursor-pointer",[e.disabled&&"u-switch--disabled"]]),style:qe([r.switchStyle,r.addStyle(e.customStyle)]),onClick:r.clickHandler},{default:So(()=>[jr(s,{class:"u-switch__bg",style:qe([r.bgStyle])},null,8,["style"]),jr(s,{class:Qe(["u-switch__node",[e.modelValue&&"u-switch__node--on"]]),style:qe([r.nodeStyle]),ref:"u-switch__node"},{default:So(()=>[jr(a,{show:e.loading,mode:"circle",timingFunction:"linear",color:e.modelValue?e.activeColor:"#AAABAD",size:.6*e.size},null,8,["show","color","size"])]),_:1},8,["class","style"])]),_:1},8,["class","style","onClick"])}],["__scopeId","data-v-9489a113"]]),AE=Object.freeze(Object.defineProperty({__proto__:null,default:CE},Symbol.toStringTag,{value:"Module"})),TE={props:{name:{type:[String,Number,null],default:()=>cx.tabbarItem.name},icon:{icon:String,default:()=>cx.tabbarItem.icon},badge:{type:[String,Number,null],default:()=>cx.tabbarItem.badge},dot:{type:Boolean,default:()=>cx.tabbarItem.dot},text:{type:String,default:()=>cx.tabbarItem.text},badgeStyle:{type:[Object,String],default:()=>cx.tabbarItem.badgeStyle},mode:{type:String,default:()=>cx.tabbarItem.mode}}},IE={name:"u-tabbar-item",mixins:[hx,fx,TE],data:()=>({isActive:!1,parentData:{value:null,activeColor:"",inactiveColor:""}}),options:{virtualHost:!0},computed:{isMidButton(){return"midButton"===this.mode}},created(){this.init()},emits:["click","change"],methods:{addStyle:Mw,init(){this.updateParentData(),this.parent;const e=this.parent.children.indexOf(this);this.isActive=(this.name||e)===this.parentData.value},updateParentData(){this.getParentData("u-tabbar")},updateFromParent(){this.init()},clickHandler(){this.$nextTick(()=>{const e=this.parent.children.indexOf(this),t=this.name||e;t!==this.parent.value&&this.parent.$emit("change",t),this.$emit("click",t)})}}};const BE=W_(IE,[["render",function(e,t,n,o,i,r){const s=Ay,a=Bo("up-icon"),l=yx(Po("u-badge"),yS),c=wy;return Ir(),zr(s,{class:Qe(["u-tabbar-item",[r.isMidButton?"u-tabbar-item--mid-button":""]]),style:qe([r.addStyle(e.customStyle)]),onClick:r.clickHandler},{default:So(()=>[jr(s,{class:Qe(["u-tabbar-item__icon",[r.isMidButton?"u-tabbar-item__icon--mid-button":""]])},{default:So(()=>[r.isMidButton?(Ir(),zr(s,{key:0,class:"u-tabbar-item--mid-button-cover"})):Wr("",!0),e.icon?(Ir(),zr(a,{key:1,name:e.icon,color:i.isActive?i.parentData.activeColor:i.parentData.inactiveColor,size:r.isMidButton?26:20},null,8,["name","color","size"])):(Ir(),Mr(xr,{key:2},[i.isActive?Mi(e.$slots,"active-icon",{key:0},void 0,!0):Mi(e.$slots,"inactive-icon",{key:1},void 0,!0)],64)),jr(l,{absolute:"",offset:[0,e.dot?"34rpx":e.badge>9?"14rpx":"20rpx"],customStyle:e.badgeStyle,isDot:e.dot,value:e.badge||(e.dot?1:null),show:e.dot||e.badge>0},null,8,["offset","customStyle","isDot","value","show"])]),_:3},8,["class"]),Mi(e.$slots,"text",{},()=>[jr(c,{class:"u-tabbar-item__text",style:qe({color:i.isActive?i.parentData.activeColor:i.parentData.inactiveColor})},{default:So(()=>[Vr(X(e.text),1)]),_:1},8,["style"])],!0)]),_:3},8,["style","class","onClick"])}],["__scopeId","data-v-e682636b"]]),EE=Object.freeze(Object.defineProperty({__proto__:null,default:BE},Symbol.toStringTag,{value:"Module"})),PE={props:{value:{type:[String,Number,null],default:()=>cx.tabbar.value},safeAreaInsetBottom:{type:Boolean,default:()=>cx.tabbar.safeAreaInsetBottom},border:{type:Boolean,default:()=>cx.tabbar.border},borderColor:{type:Boolean,default:()=>cx.tabbar.borderColor},zIndex:{type:[String,Number],default:()=>cx.tabbar.zIndex},activeColor:{type:String,default:()=>cx.tabbar.activeColor},inactiveColor:{type:String,default:()=>cx.tabbar.inactiveColor},fixed:{type:Boolean,default:()=>cx.tabbar.fixed},placeholder:{type:Boolean,default:()=>cx.tabbar.placeholder},backgroundColor:{type:String,default:()=>cx.tabbar.backgroundColor}}};const ME=W_({name:"u-tabbar",mixins:[hx,fx,PE],data:()=>({placeholderHeight:0}),computed:{tabbarStyle(){const e={zIndex:this.zIndex};return this.borderColor&&(e.borderColor=this.borderColor),this.backgroundColor&&(e.backgroundColor=this.backgroundColor),Rw(e,Mw(this.customStyle))},updateChild(){return[this.value,this.activeColor,this.inactiveColor]},updatePlaceholder(){return[this.fixed,this.placeholder]}},watch:{updateChild(){this.updateChildren()},updatePlaceholder(){this.setPlaceholderHeight()}},created(){this.children=[]},mounted(){this.setPlaceholderHeight()},methods:{updateChildren(){this.children.length&&this.children.map(e=>e.updateFromParent())},async setPlaceholderHeight(){this.fixed&&this.placeholder&&(await kw(20),this.$uGetRect(".u-tabbar__content").then(({height:e=50})=>{this.placeholderHeight=e}))}}},[["render",function(e,t,n,o,i,r){const s=Ay,a=yx(Po("u-safe-bottom"),Ux);return Ir(),zr(s,{class:"u-tabbar"},{default:So(()=>[jr(s,{class:Qe(["u-tabbar__content",[e.border&&"u-border-top",e.fixed&&"u-tabbar--fixed"]]),ref:"u-tabbar__content",onTouchmove:ua(e.noop,["stop","prevent"]),style:qe([r.tabbarStyle])},{default:So(()=>[jr(s,{class:"u-tabbar__content__item-wrapper"},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3}),e.safeAreaInsetBottom?(Ir(),zr(a,{key:0})):Wr("",!0)]),_:3},8,["onTouchmove","class","style"]),e.placeholder?(Ir(),zr(s,{key:0,class:"u-tabbar__placeholder",style:qe({height:i.placeholderHeight+"px"})},null,8,["style"])):Wr("",!0)]),_:3})}],["__scopeId","data-v-bb7d8191"]]),zE=Object.freeze(Object.defineProperty({__proto__:null,default:ME},Symbol.toStringTag,{value:"Module"}));const OE=W_({name:"u-table",mixins:[hx,fx,{props:{}}],props:{borderColor:{type:String,default:"#e4e7ed"},align:{type:String,default:"center"},padding:{type:String,default:"5px 3px"},fontSize:{type:[String],default:"14px"},color:{type:String,default:"#606266"},thStyle:{type:Object,default:()=>({})},bgColor:{type:String,default:"#ffffff"}},data:()=>({show:!0}),watch:{align(){this.change()},borderColor(){this.change()}},computed:{tableStyle(){let e={};return e.borderLeft=`solid 1px ${this.borderColor}`,e.borderTop=`solid 1px ${this.borderColor}`,e.backgroundColor=this.bgColor,e}},methods:{change(){this.show=!1,this.$nextTick(()=>{this.show=!0})}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-table",style:qe([r.tableStyle])},{default:So(()=>[i.show?Mi(e.$slots,"default",{key:0}):Wr("",!0)]),_:3},8,["style"])}]]),RE=Object.freeze(Object.defineProperty({__proto__:null,default:OE},Symbol.toStringTag,{value:"Module"}));const LE=W_({name:"u-table2",components:{tableRow:W_({name:"tableRow",props:{row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},parentRow:{type:Object,default:null},columns:{type:Array,required:!0},treeProps:{type:Object,required:!0},rowKey:{type:String,required:!0},expandedKeys:{type:Array,required:!0},cellStyleInner:{type:Function,required:!0},isExpanded:{type:Function,required:!0},rowClassName:{type:Function,default:null},stripe:{type:Boolean,default:!1},cellClassName:{type:Function,default:null},getFixedClass:{type:Function,required:!0},highlightCurrentRow:{type:Boolean,default:!1},currentRow:{type:Object,default:null},handleRowClick:{type:Function,required:!0},toggleExpand:{type:Function,required:!0},level:{type:Number,required:!0},computedMainCol:{type:String,required:!0},expandWidth:{type:String,required:!0},hasTree:{type:Boolean,required:!1},selectedRows:{type:Array,required:!1},rowHeight:{type:String,required:!0}},emits:["rowClick","toggleExpand","toggleSelect"],methods:{isSelected(e){return this.selectedRows.some(t=>t[this.rowKey]===e[this.rowKey])}}},[["render",function(e,t,n,o,i,r){const s=Rm,a=Ay,l=Bo("table-row",!0);return Ir(),Mr(xr,null,[jr(a,{class:Qe(["u-table-row u-table-row-child",[n.highlightCurrentRow&&n.currentRow===n.row?"u-table-row-highlight":"",n.rowClassName?n.rowClassName(n.row,n.rowIndex):"",n.stripe&&n.rowIndex%2==1?"u-table-row-zebra":""]]),style:qe({height:n.rowHeight}),onClick:t[2]||(t[2]=e=>n.handleRowClick(n.row))},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(n.columns,(o,i)=>(Ir(),zr(a,{key:o.key,class:Qe(["u-table-cell",[o.align?"u-text-"+o.align:"",n.cellClassName?n.cellClassName(n.row,o):"",n.getFixedClass(o)]]),style:qe(n.cellStyleInner({row:n.row,column:o,rowIndex:n.rowIndex,columnIndex:i,level:n.level}))},{default:So(()=>["selection"===o.type?(Ir(),zr(a,{key:0},{default:So(()=>[jr(s,{checked:r.isSelected(n.row),onClick:t[0]||(t[0]=ua(t=>e.$emit("toggleSelect",n.row),["stop"]))},null,8,["checked"])]),_:1})):(Ir(),Mr(xr,{key:1},[o.key===n.computedMainCol&&n.hasTree?(Ir(),zr(a,{key:0,onClick:t[1]||(t[1]=ua(e=>n.toggleExpand(n.row),["stop"])),style:qe({width:n.expandWidth})},{default:So(()=>[n.row.children&&n.row.children.length>0?(Ir(),zr(a,{key:0},{default:So(()=>[Vr(X(n.isExpanded(n.row)?"▼":"▶"),1)]),_:1})):Wr("",!0)]),_:1},8,["style"])):Wr("",!0),Mi(e.$slots,"cellChild",{row:n.row,column:o,prow:n.parentRow,rowIndex:n.rowIndex,columnIndex:i,level:n.level},()=>[jr(a,{class:"u-table-cell_content"},{default:So(()=>[Vr(X(n.row[o.key]),1)]),_:2},1024)],!0)],64))]),_:2},1032,["class","style"]))),128))]),_:3},8,["class","style"]),n.isExpanded(n.row)&&n.row[n.treeProps.children]&&n.row[n.treeProps.children].length?(Ir(!0),Mr(xr,{key:0},Pi(n.row[n.treeProps.children],(o,i)=>(Ir(),zr(l,{key:o[n.rowKey]||i,row:o,rowIndex:i,"parent-row":n.row,columns:n.columns,"tree-props":n.treeProps,"row-key":n.rowKey,"expanded-keys":n.expandedKeys,"cell-style-inner":n.cellStyleInner,"is-expanded":n.isExpanded,"row-class-name":n.rowClassName,stripe:n.stripe,"cell-class-name":n.cellClassName,"get-fixed-class":n.getFixedClass,"highlight-current-row":n.highlightCurrentRow,"current-row":n.currentRow,"handle-row-click":n.handleRowClick,"toggle-expand":n.toggleExpand,level:n.level+1,rowHeight:n.rowHeight,hasTree:n.hasTree,selectedRows:n.selectedRows,expandWidth:n.expandWidth,"computed-main-col":n.computedMainCol,onToggleSelect:t[3]||(t[3]=t=>e.$emit("toggleSelect",t)),onRowClick:t[4]||(t[4]=t=>e.$emit("rowClick",t)),onToggleExpand:t[5]||(t[5]=t=>e.$emit("toggleExpand",t))},{cellChild:So(t=>[Mi(e.$slots,"cellChild",{row:t.row,column:t.column,prow:t.prow,rowIndex:t.rowIndex,columnIndex:t.columnIndex,level:n.level},void 0,!0)]),_:2},1032,["row","rowIndex","parent-row","columns","tree-props","row-key","expanded-keys","cell-style-inner","is-expanded","row-class-name","stripe","cell-class-name","get-fixed-class","highlight-current-row","current-row","handle-row-click","toggle-expand","level","rowHeight","hasTree","selectedRows","expandWidth","computed-main-col"]))),128)):Wr("",!0)],64)}],["__scopeId","data-v-52ffbe1a"]])},props:{data:{type:Array,required:!0,default:()=>[]},columns:{type:Array,required:!0,default:()=>[],validator:e=>e.every(e=>["default","selection","expand"].includes(e.type||"default"))},stripe:{type:Boolean,default:!1},border:{type:Boolean,default:!1},height:{type:[String,Number],default:null},maxHeight:{type:[String,Number],default:null},showHeader:{type:Boolean,default:!0},highlightCurrentRow:{type:Boolean,default:!1},rowKey:{type:String,default:"id"},currentRowKey:{type:[String,Number],default:null},rowStyle:{type:Object,default:()=>({})},cellClassName:{type:Function,default:null},cellStyle:{type:Function,default:null},headerCellClassName:{type:Function,default:null},rowClassName:{type:Function,default:null},context:{type:Object,default:null},showOverflowTooltip:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},load:{type:Function,default:null},treeProps:{type:Object,default:()=>({children:"children",hasChildren:"hasChildren"})},defaultExpandAll:{type:Boolean,default:!1},expandRowKeys:{type:Array,default:()=>[]},sortOrders:{type:Array,default:()=>["ascending","descending"]},sortable:{type:[Boolean,String],default:!1},multiSort:{type:Boolean,default:!1},sortBy:{type:String,default:null},sortMethod:{type:Function,default:null},filters:{type:Object,default:()=>({})},fixedHeader:{type:Boolean,default:!0},emptyText:{type:String,default:"暂无数据"},mainCol:{type:String,default:""},expandWidth:{type:String,default:"25px"},rowHeight:{String:String,default:"40px"}},emits:["select","select-all","selection-change","cell-click","row-click","row-dblclick","header-click","sort-change","filter-change","current-change","expand-change"],data(){return{scrollWidth:"auto",expandedKeys:[...this.expandRowKeys],selectedRows:[],sortConditions:[],currentRow:null,scrollLeft:0,showFixedColumnShadow:!1,fixedLeftColumns:[],tableHeight:"auto",headerHeight:"auto",hasTree:!1}},mounted(){if(this.getComponentWidth(),null!==this.currentRowKey){const e=this.data.find(e=>e[this.rowKey]===this.currentRowKey);e&&(this.currentRow=e)}this.fixedLeftColumns=this.columns.filter(e=>"left"===e.fixed)},computed:{filteredData(){return this.data.filter(e=>Object.keys(this.filters).every(t=>{var n;const o=this.filters[t];return!o||(null==(n=e[t])?void 0:n.toString().includes(o.toString()))}))},sortedData(){if(!this.sortConditions.length)return this.filteredData;return[...this.filteredData].sort((e,t)=>{for(const n of this.sortConditions){const{field:o,order:i}=n;let r=e[o],s=t[o];if(this.sortMethod){const n=this.sortMethod(e,t,o);if(0!==n)return n*("ascending"===i?1:-1)}if(r<s)return"ascending"===i?-1:1;if(r>s)return"ascending"===i?1:-1}return 0})},visibleFixedLeftColumns(){if(this.scrollLeft<=0)return[];let e=0,t=0;const n=[];for(let o=0;o<this.columns.length;o++){const i=this.columns[o],r=i.width?parseInt(i.width):100;"left"===i.fixed&&this.scrollLeft>e-t&&(n.push(i),t+=r),e+=r}return n},computedMainCol(){if(this.mainCol)return this.mainCol;const e=this.columns.filter(e=>!e.type);return e&&e.length>0?e[0].key:""}},watch:{expandRowKeys:{handler(e){this.expandedKeys=[...e]},immediate:!0},currentRowKey:{handler(e){const t=this.data.find(t=>t[this.rowKey]===e);t&&(this.currentRow=t)},immediate:!0},columns:{handler(){},deep:!0,immediate:!1}},methods:{addUnit:zw,onScroll(e){this.scrollLeft=e.detail.scrollLeft,this.fixedLeftColumns=this.columns.filter(e=>"left"===e.fixed),this.fixedLeftColumns.length>0&&(this.showFixedColumnShadow=this.scrollLeft>0)},getFixedShadowStyle(e,t){let n={width:e.width?zw(e.width):"auto"};return(null==e?void 0:e.style)&&(n={...n,...null==e?void 0:e.style}),n},getFixedClass:e=>"",headerColStyle(e){let t={width:e.width?zw(e.width):"auto",flex:e.width?"none":1};return(null==e?void 0:e.style)&&(t={...t,...null==e?void 0:e.style}),t},setCellStyle(e){this.cellStyle=e},cellStyleInner(e){var t,n;let o={width:(null==(t=e.column)?void 0:t.width)?zw(e.column.width):"auto",flex:(null==(n=e.column)?void 0:n.width)?"none":1};if(e.column.key==this.computedMainCol&&(o.paddingLeft=16*(e.level-1)+2+"px"),null!=this.cellStyle){let t=this.cellStyle(e);null!=t&&(o={...o,...t})}return o},async getComponentWidth(){await kw(30),this.$uGetRect(".u-table-row").then(e=>{this.scrollWidth=e.width+"px"}),this.$uGetRect(".u-table-header").then(e=>{e.height&&(this.headerHeight=e.height+"px")}),this.hasTree=this.sortedData.some(e=>e[this.treeProps.children]&&e[this.treeProps.children].length>0)},handleRowClick(e){if(this.highlightCurrentRow){const t=this.currentRow;this.currentRow=e,this.$emit("current-change",e,t)}this.$emit("row-click",e)},handleHeaderClick(e){if(!e.sortable)return;const t=this.sortConditions.findIndex(t=>t.field===e.key);let n="ascending";if(t>=0){if("ascending"!==this.sortConditions[t].order)return this.sortConditions.splice(t,1),void this.$emit("sort-change",this.sortConditions);n="descending"}this.multiSort?t>=0?this.sortConditions[t].order=n:this.sortConditions.push({field:e.key,order:n}):this.sortConditions=[{field:e.key,order:n}],this.$emit("sort-change",this.sortConditions)},getSortIcon(e){const t=this.sortConditions.find(t=>t.field===e);return t?"ascending"===t.order?"↑":"↓":""},getSortValue(e){const t=this.sortConditions.find(t=>t.field===e);return t?"ascending"===t.order:""},toggleSelect(e){const t=this.selectedRows.findIndex(t=>t[this.rowKey]===e[this.rowKey]);t>=0?(this.selectedRows.splice(t,1),this.unselectChildren(e)):(this.selectedRows.push(e),this.selectChildren(e)),console.log(this.selectedRows),this.$emit("selection-change",this.selectedRows),this.$emit("select",e)},toggleExpand(e){const t=e[this.rowKey],n=this.expandedKeys.indexOf(t);-1===n?this.expandedKeys.push(t):this.expandedKeys.splice(n,1),this.$emit("expand-change",this.expandedKeys)},isExpanded(e){return!!e&&this.expandedKeys.includes(e[this.rowKey])},selectChildren(e){const t=e[this.treeProps.children];t&&t.length>0&&t.forEach(e=>{-1===this.selectedRows.findIndex(t=>t[this.rowKey]===e[this.rowKey])&&this.selectedRows.push(e),this.selectChildren(e)})},unselectChildren(e){const t=e[this.treeProps.children];t&&t.length>0&&t.forEach(e=>{const t=this.selectedRows.findIndex(t=>t[this.rowKey]===e[this.rowKey]);t>=0&&this.selectedRows.splice(t,1),this.unselectChildren(e)})}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Ay,l=Bo("table-row"),c=dy;return Ir(),zr(a,{class:Qe(["u-table2",{"u-table-border":n.border}])},{default:So(()=>[jr(c,{"scroll-x":"",class:"u-table2-content",style:qe({height:n.height?n.height+"px":"auto"}),onScroll:r.onScroll},{default:So(()=>[n.showHeader?(Ir(),zr(a,{key:0,class:Qe(["u-table-header",{"u-table-sticky":n.fixedHeader}]),style:qe({minWidth:i.scrollWidth})},{default:So(()=>[jr(a,{class:"u-table-row"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(n.columns,(t,o)=>(Ir(),zr(a,{key:t.key,class:Qe(["u-table-cell",[t.align?"u-text-"+t.align:"",n.headerCellClassName?n.headerCellClassName(t):"",r.getFixedClass(t)]]),style:qe(r.headerColStyle(t)),onClick:e=>r.handleHeaderClick(t)},{default:So(()=>[Mi(e.$slots,"header",{column:t,columnIndex:o,level:1},void 0,!0),e.$slots.header?Wr("",!0):(Ir(),zr(s,{key:0},{default:So(()=>[Vr(X(t.title),1)]),_:2},1024)),t.sortable?(Ir(),Mr(xr,{key:1},[Mi(e.$slots,"headerSort",{sortStatus:r.getSortValue(t.key),column:t,columnIndex:o,level:1},void 0,!0),e.$slots.headerSort?Wr("",!0):(Ir(),zr(a,{key:0},{default:So(()=>[Vr(X(r.getSortIcon(t.key)),1)]),_:2},1024))],64)):Wr("",!0)]),_:2},1032,["style","class","onClick"]))),128))]),_:3})]),_:3},8,["class","style"])):Wr("",!0),jr(a,{class:"u-table-body",style:qe({minWidth:i.scrollWidth,maxHeight:n.maxHeight?n.maxHeight+"px":"none"})},{default:So(()=>[n.data&&n.data.length>0?(Ir(!0),Mr(xr,{key:0},Pi(r.sortedData,(t,o)=>(Ir(),zr(l,{key:t[n.rowKey]||o,row:t,rowIndex:o,"parent-row":null,columns:n.columns,"tree-props":n.treeProps,"row-key":n.rowKey,"expanded-keys":i.expandedKeys,"cell-style-inner":r.cellStyleInner,"is-expanded":r.isExpanded,"row-class-name":n.rowClassName,stripe:n.stripe,"cell-class-name":n.cellClassName,"get-fixed-class":r.getFixedClass,"highlight-current-row":n.highlightCurrentRow,"current-row":i.currentRow,"handle-row-click":r.handleRowClick,"toggle-expand":r.toggleExpand,level:1,rowHeight:n.rowHeight,hasTree:i.hasTree,selectedRows:i.selectedRows,expandWidth:n.expandWidth,computedMainCol:r.computedMainCol,onToggleSelect:r.toggleSelect,onRowClick:r.handleRowClick,onToggleExpand:r.toggleExpand},{cellChild:So(t=>[Mi(e.$slots,"cell",{row:t.row,column:t.column,prow:t.prow,rowIndex:t.rowIndex,columnIndex:t.columnIndex,level:t.level},void 0,!0)]),_:2},1032,["row","rowIndex","columns","tree-props","row-key","expanded-keys","cell-style-inner","is-expanded","row-class-name","stripe","cell-class-name","get-fixed-class","highlight-current-row","current-row","handle-row-click","toggle-expand","rowHeight","hasTree","selectedRows","expandWidth","computedMainCol","onToggleSelect","onRowClick","onToggleExpand"]))),128)):(Ir(),Mr(xr,{key:1},[Mi(e.$slots,"empty",{},void 0,!0),e.$slots.empty?Wr("",!0):(Ir(),zr(a,{key:0,class:"u-table-empty"},{default:So(()=>[Vr(X(n.emptyText),1)]),_:1}))],64))]),_:3},8,["style"])]),_:3},8,["style","onScroll"]),i.showFixedColumnShadow?(Ir(),zr(a,{key:0,class:"u-table-fixed-shadow",style:qe({height:i.tableHeight})},{default:So(()=>[n.showHeader?(Ir(),zr(a,{key:0,class:Qe(["u-table-header",{"u-table-sticky":n.fixedHeader}]),style:qe({minWidth:i.scrollWidth})},{default:So(()=>[jr(a,{class:"u-table-row",style:qe({height:i.headerHeight})},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(r.visibleFixedLeftColumns,(t,o)=>(Ir(),zr(a,{key:t.key,class:Qe(["u-table-cell",[t.align?"u-text-"+t.align:"",n.headerCellClassName?n.headerCellClassName(t):"",r.getFixedClass(t)]]),style:qe(r.headerColStyle(t)),onClick:e=>r.handleHeaderClick(t)},{default:So(()=>[Mi(e.$slots,"header",{column:t,columnIndex:o,level:1},void 0,!0),e.$slots.header?Wr("",!0):(Ir(),zr(s,{key:0},{default:So(()=>[Vr(X(t.title),1)]),_:2},1024)),t.sortable?(Ir(),Mr(xr,{key:1},[Mi(e.$slots,"headerSort",{sortStatus:r.getSortValue(t.key),column:t,columnIndex:o,level:1},void 0,!0),e.$slots.headerSort?Wr("",!0):(Ir(),zr(a,{key:0},{default:So(()=>[Vr(X(r.getSortIcon(t.key)),1)]),_:2},1024))],64)):Wr("",!0)]),_:2},1032,["style","class","onClick"]))),128))]),_:3},8,["style"])]),_:3},8,["class","style"])):Wr("",!0),jr(a,{class:"u-table-body",style:qe({minWidth:i.scrollWidth,maxHeight:n.maxHeight?n.maxHeight+"px":"none"})},{default:So(()=>[n.data&&n.data.length>0?(Ir(!0),Mr(xr,{key:0},Pi(r.sortedData,(t,o)=>(Ir(),zr(l,{key:t[n.rowKey]||o,row:t,rowIndex:o,"parent-row":null,columns:r.visibleFixedLeftColumns,"tree-props":n.treeProps,"row-key":n.rowKey,"expanded-keys":i.expandedKeys,"cell-style-inner":r.cellStyleInner,"is-expanded":r.isExpanded,"row-class-name":n.rowClassName,stripe:n.stripe,"cell-class-name":n.cellClassName,"get-fixed-class":r.getFixedClass,"highlight-current-row":n.highlightCurrentRow,"current-row":i.currentRow,"handle-row-click":r.handleRowClick,"toggle-expand":r.toggleExpand,level:1,rowHeight:n.rowHeight,hasTree:i.hasTree,selectedRows:i.selectedRows,expandWidth:n.expandWidth,computedMainCol:r.computedMainCol,onToggleSelect:r.toggleSelect,onRowClick:r.handleRowClick,onToggleExpand:r.toggleExpand},{cellChild:So(t=>[Mi(e.$slots,"cell",{row:t.row,column:t.column,prow:t.prow,rowIndex:t.rowIndex,columnIndex:t.columnIndex,level:t.level},void 0,!0)]),_:2},1032,["row","rowIndex","columns","tree-props","row-key","expanded-keys","cell-style-inner","is-expanded","row-class-name","stripe","cell-class-name","get-fixed-class","highlight-current-row","current-row","handle-row-click","toggle-expand","rowHeight","hasTree","selectedRows","expandWidth","computedMainCol","onToggleSelect","onRowClick","onToggleExpand"]))),128)):Wr("",!0)]),_:3},8,["style"])]),_:3},8,["style"])):Wr("",!0)]),_:3},8,["class"])}],["__scopeId","data-v-652737f6"]]),DE=Object.freeze(Object.defineProperty({__proto__:null,default:LE},Symbol.toStringTag,{value:"Module"}));const NE=W_({name:"u-tabs-item",mixins:[hx,fx,{props:{}}],data:()=>({})},[["render",function(e,t,n,o,i,r){const s=by;return Ir(),zr(s,null,{default:So(()=>[Mi(e.$slots,"default")]),_:3})}]]),$E=Object.freeze(Object.defineProperty({__proto__:null,default:NE},Symbol.toStringTag,{value:"Module"})),jE={props:{duration:{type:Number,default:()=>cx.tabs.duration},list:{type:Array,default:()=>cx.tabs.list},lineColor:{type:String,default:()=>cx.tabs.lineColor},activeStyle:{type:[String,Object],default:()=>cx.tabs.activeStyle},inactiveStyle:{type:[String,Object],default:()=>cx.tabs.inactiveStyle},lineWidth:{type:[String,Number],default:()=>cx.tabs.lineWidth},lineHeight:{type:[String,Number],default:()=>cx.tabs.lineHeight},lineBgSize:{type:String,default:()=>cx.tabs.lineBgSize},itemStyle:{type:[String,Object],default:()=>cx.tabs.itemStyle},scrollable:{type:Boolean,default:()=>cx.tabs.scrollable},current:{type:[Number,String],default:()=>cx.tabs.current},keyName:{type:String,default:()=>cx.tabs.keyName},iconStyle:{type:[String,Object],default:()=>cx.tabs.iconStyle}}};const HE=W_({name:"u-tabs",mixins:[hx,fx,jE],data:()=>({firstTime:!0,scrollLeft:0,scrollViewWidth:0,lineOffsetLeft:0,tabsRect:{left:0},innerCurrent:0,moving:!1}),watch:{current:{immediate:!0,handler(e,t){e!==this.innerCurrent&&(this.innerCurrent="string"==typeof e?parseInt(e):e,this.$nextTick(()=>{this.resize()}))}},list(){this.$nextTick(()=>{this.resize()})}},computed:{textStyle(){return e=>{const t={},n=e==this.innerCurrent?Mw(this.activeStyle):Mw(this.inactiveStyle);return this.list[e].disabled&&(t.color="#c8c9cc"),Rw(n,t)}},propsBadge:()=>cx.badge},async mounted(){this.init(),this.windowResizeCallback=e=>{this.init()},hp(this.windowResizeCallback)},beforeUnmount(){pp(this.windowResizeCallback)},emits:["click","longPress","change","update:current"],methods:{addStyle:Mw,addUnit:zw,setLineLeft(){const e=this.list[this.innerCurrent];if(!e)return;let t=this.list.slice(0,this.innerCurrent).reduce((e,t)=>e+t.rect.width,0);const n=Sw(this.lineWidth);this.lineOffsetLeft=t+(e.rect.width-n)/2,this.firstTime&&setTimeout(()=>{this.firstTime=!1},10)},animation(e,t=0){},clickHandler(e,t){this.$emit("click",{...e,index:t},t),e.disabled||this.innerCurrent!=t&&(this.innerCurrent=t,this.resize(),this.$emit("update:current",t),this.$emit("change",{...e,index:t},t))},longPressHandler(e,t){this.$emit("longPress",{...e,index:t})},init(){kw().then(()=>{this.resize()})},setScrollLeft(){this.innerCurrent<0&&(this.innerCurrent=0);const e=this.list[this.innerCurrent],t=this.list.slice(0,this.innerCurrent).reduce((e,t)=>e+t.rect.width,0),n=Tw().windowWidth;let o=t-(this.tabsRect.width-e.rect.width)/2-(n-this.tabsRect.right)/2+this.tabsRect.left/2;o=Math.min(o,this.scrollViewWidth-this.tabsRect.width),this.scrollLeft=Math.max(0,o)},resize(){0!==this.list.length&&Promise.all([this.getTabsRect(),this.getAllItemRect()]).then(([e,t=[]])=>{e.left>e.width&&(e.right=e.right-Math.floor(e.left/e.width)*e.width,e.left=e.left%e.width),this.tabsRect=e,this.scrollViewWidth=0,t.map((e,t)=>{this.scrollViewWidth+=e.width,this.list[t].rect=e}),this.setLineLeft(),this.setScrollLeft()})},getTabsRect(){return new Promise(e=>{this.queryRect("u-tabs__wrapper__scroll-view").then(t=>e(t))})},getAllItemRect(){return new Promise(e=>{const t=this.list.map((e,t)=>this.queryRect(`u-tabs__wrapper__nav__item-${t}`,!0));Promise.all(t).then(t=>e(t))})},queryRect(e,t){return new Promise(t=>{this.$uGetRect(`.${e}`).then(e=>{t(e)})})}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Ay,l=wy,c=yx(Po("u-badge"),yS),u=dy;return Ir(),zr(a,{class:Qe(["u-tabs",[e.customClass]])},{default:So(()=>[jr(a,{class:"u-tabs__wrapper"},{default:So(()=>[Mi(e.$slots,"left",{},void 0,!0),jr(a,{class:"u-tabs__wrapper__scroll-view-wrapper"},{default:So(()=>[jr(u,{"scroll-x":e.scrollable,"scroll-left":i.scrollLeft,"scroll-with-animation":"",class:"u-tabs__wrapper__scroll-view","show-scrollbar":!1,ref:"u-tabs__wrapper__scroll-view"},{default:So(()=>[jr(a,{class:"u-tabs__wrapper__nav",ref:"u-tabs__wrapper__nav"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(e.list,(t,n)=>(Ir(),zr(a,{class:Qe(["u-tabs__wrapper__nav__item",[`u-tabs__wrapper__nav__item-${n}`,t.disabled&&"u-tabs__wrapper__nav__item--disabled",i.innerCurrent==n?"u-tabs__wrapper__nav__item-active":""]]),key:n,onClick:e=>r.clickHandler(t,n),onLongpress:e=>r.longPressHandler(t,n),ref_for:!0,ref:`u-tabs__wrapper__nav__item-${n}`,style:qe([r.addStyle(e.itemStyle),{flex:e.scrollable?"":1}])},{default:So(()=>[e.$slots.icon?Mi(e.$slots,"icon",{key:0,item:t,keyName:e.keyName,index:n},void 0,!0):(Ir(),Mr(xr,{key:1},[t.icon?(Ir(),zr(a,{key:0,class:"u-tabs__wrapper__nav__item__prefix-icon"},{default:So(()=>[jr(s,{name:t.icon,customStyle:r.addStyle(e.iconStyle)},null,8,["name","customStyle"])]),_:2},1024)):Wr("",!0)],64)),e.$slots.content?Mi(e.$slots,"content",{key:2,item:t,keyName:e.keyName,index:n},void 0,!0):e.$slots.content||!e.$slots.default&&!e.$slots.$default?(Ir(),zr(l,{key:4,class:Qe([[t.disabled&&"u-tabs__wrapper__nav__item__text--disabled"],"u-tabs__wrapper__nav__item__text"]),style:qe([r.textStyle(n)])},{default:So(()=>[Vr(X(t[e.keyName]),1)]),_:2},1032,["class","style"])):Mi(e.$slots,"default",{key:3,item:t,keyName:e.keyName,index:n},void 0,!0),jr(c,{show:!(!t.badge||!(t.badge.show||t.badge.isDot||t.badge.value)),isDot:t.badge&&t.badge.isDot||r.propsBadge.isDot,value:t.badge&&t.badge.value||r.propsBadge.value,max:t.badge&&t.badge.max||r.propsBadge.max,type:t.badge&&t.badge.type||r.propsBadge.type,showZero:t.badge&&t.badge.showZero||r.propsBadge.showZero,bgColor:t.badge&&t.badge.bgColor||r.propsBadge.bgColor,color:t.badge&&t.badge.color||r.propsBadge.color,shape:t.badge&&t.badge.shape||r.propsBadge.shape,numberType:t.badge&&t.badge.numberType||r.propsBadge.numberType,inverted:t.badge&&t.badge.inverted||r.propsBadge.inverted,customStyle:"margin-left: 4px;"},null,8,["show","isDot","value","max","type","showZero","bgColor","color","shape","numberType","inverted"])]),_:2},1032,["onClick","onLongpress","style","class"]))),128)),jr(a,{class:"u-tabs__wrapper__nav__line",ref:"u-tabs__wrapper__nav__line",style:qe([{width:r.addUnit(e.lineWidth),transform:`translate(${i.lineOffsetLeft}px)`,transitionDuration:`${i.firstTime?0:e.duration}ms`,height:r.addUnit(e.lineHeight),background:e.lineColor,backgroundSize:e.lineBgSize}])},null,8,["style"])]),_:3},512)]),_:3},8,["scroll-x","scroll-left"])]),_:3}),Mi(e.$slots,"right",{},void 0,!0)]),_:3})]),_:3},8,["class"])}],["__scopeId","data-v-bb3fb170"]]),FE=Object.freeze(Object.defineProperty({__proto__:null,default:HE},Symbol.toStringTag,{value:"Module"})),VE={props:{type:{type:String,default:()=>cx.tag.type},disabled:{type:[Boolean,String],default:()=>cx.tag.disabled},size:{type:String,default:()=>cx.tag.size},shape:{type:String,default:()=>cx.tag.shape},text:{type:[String,Number],default:()=>cx.tag.text},bgColor:{type:String,default:()=>cx.tag.bgColor},color:{type:String,default:()=>cx.tag.color},borderColor:{type:String,default:()=>cx.tag.borderColor},closeColor:{type:String,default:()=>cx.tag.closeColor},name:{type:[String,Number],default:()=>cx.tag.name},plainFill:{type:Boolean,default:()=>cx.tag.plainFill},plain:{type:Boolean,default:()=>cx.tag.plain},closable:{type:Boolean,default:()=>cx.tag.closable},show:{type:Boolean,default:()=>cx.tag.show},icon:{type:String,default:()=>cx.tag.icon},iconColor:{type:String,default:()=>cx.tag.iconColor},textSize:{type:String,default:()=>cx.tag.textSize},height:{type:String,default:()=>cx.tag.height},padding:{type:String,default:()=>cx.tag.padding},borderRadius:{type:String,default:()=>cx.tag.borderRadius},autoBgColor:{type:Number,default:()=>cx.tag.autoBgColor}}};const WE=W_({name:"u-tag",mixins:[hx,fx,VE],data:()=>({}),computed:{style(){const e={};return this.bgColor&&(e.backgroundColor=this.bgColor),this.color&&(e.color=this.color),this.borderColor&&(e.borderColor=this.borderColor),this.height&&(e.height=zw(this.height),e.lineHeight=zw(this.height)),this.padding&&(e.padding=this.padding),this.borderRadius&&(e.borderRadius=zw(this.borderRadius)),this.autoBgColor>0&&this.color&&(e.backgroundColor=this.getBagColor(this.color)),e},textColor(){const e={};return this.color&&(e.color=this.color),this.textSize&&(e.textSize=zw(this.textSize)),e},imgStyle(){const e="large"===this.size?"17px":"medium"===this.size?"15px":"13px";return{width:e,height:e}},closeSize(){return"large"===this.size?15:"medium"===this.size?13:12},iconSize(){return"large"===this.size?21:"medium"===this.size?19:16},elIconColor(){return this.iconColor?this.iconColor:this.plain?this.type:"#ffffff"}},emits:["click","close"],methods:{testImage:fw.image,closeHandler(){this.$emit("close",this.name)},clickHandler(){this.$emit("click",this.name)},getBagColor(e){return Xw(e,this.autoBgColor)}}},[["render",function(e,t,n,o,i,r){const s=Jm,a=Bo("up-icon"),l=Ay,c=wy,u=yx(Po("u-transition"),Nx);return Ir(),zr(u,{mode:"fade",show:e.show,style:{display:"inline-flex"}},{default:So(()=>[jr(l,{class:"u-tag-wrapper cursor-pointer"},{default:So(()=>[jr(l,{class:Qe(["u-tag",[`u-tag--${e.shape}`,!e.plain&&`u-tag--${e.type}`,e.plain&&`u-tag--${e.type}--plain`,`u-tag--${e.size}`,e.plain&&e.plainFill&&`u-tag--${e.type}--plain--fill`]]),onClick:ua(r.clickHandler,["stop"]),style:qe([{marginRight:e.closable?"10px":0,marginTop:e.closable?"10px":0},r.style])},{default:So(()=>[Mi(e.$slots,"icon",{},()=>[e.icon?(Ir(),zr(l,{key:0,class:"u-tag__icon"},{default:So(()=>[r.testImage(e.icon)?(Ir(),zr(s,{key:0,src:e.icon,style:qe([r.imgStyle])},null,8,["src","style"])):(Ir(),zr(a,{key:1,color:r.elIconColor,name:e.icon,size:r.iconSize},null,8,["color","name","size"]))]),_:1})):Wr("",!0)],!0),jr(l,{class:"u-tag__content"},{default:So(()=>[Mi(e.$slots,"content",{},void 0,!0),e.$slots.content?Wr("",!0):(Ir(),Mr(xr,{key:0},[e.$slots.default||e.$slots.$default?(Ir(),zr(c,{key:1,class:Qe(["u-tag__text",[`u-tag__text--${e.type}`,e.plain&&`u-tag__text--${e.type}--plain`,`u-tag__text--${e.size}`]]),style:qe([r.textColor])},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["style","class"])):(Ir(),zr(c,{key:0,class:Qe(["u-tag__text",[`u-tag__text--${e.type}`,e.plain&&`u-tag__text--${e.type}--plain`,`u-tag__text--${e.size}`]]),style:qe([r.textColor])},{default:So(()=>[Vr(X(e.text),1)]),_:1},8,["style","class"]))],64))]),_:3})]),_:3},8,["class","onClick","style"]),e.closable?(Ir(),zr(l,{key:0,class:Qe(["u-tag__close",[`u-tag__close--${e.size}`]]),onClick:ua(r.closeHandler,["stop"]),style:qe({backgroundColor:e.closeColor})},{default:So(()=>[jr(a,{name:"close",size:r.closeSize,color:"#ffffff"},null,8,["size"])]),_:1},8,["class","onClick","style"])):Wr("",!0)]),_:3})]),_:3},8,["show"])}],["__scopeId","data-v-72bd2752"]]),UE=Object.freeze(Object.defineProperty({__proto__:null,default:WE},Symbol.toStringTag,{value:"Module"}));const qE=W_({name:"u-td",mixins:[hx,fx,{props:{}}],props:{width:{type:[String],default:"auto"},textAlign:{type:String,default:""},fontSize:{type:String,default:""},borderColor:{type:String,default:""},color:{type:String,default:""}},data:()=>({tdStyle:{}}),created(){this.parent=!1},mounted(){if(this.parent=Pw.call(this,"u-table"),this.parent){let e={};"auto"!=this.width&&(e.flex=`0 0 ${this.width}`),e.textAlign=this.parent.align,e.fontSize=zw(this.parent.fontSize),e.padding=this.parent.padding,e.borderBottom=`solid 1px ${this.parent.borderColor}`,e.borderRight=`solid 1px ${this.parent.borderColor}`,e.color=this.parent.color,""!=this.textAlign&&(e.textAlign=this.textAlign),""!=this.fontSize&&(e.fontSize=this.fontSize),""!=this.borderColor&&(e.borderColor=this.borderColor),""!=this.color&&(e.color=this.color),this.tdStyle=e}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-td",style:qe([i.tdStyle])},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["style"])}],["__scopeId","data-v-6927db0f"]]),QE=Object.freeze(Object.defineProperty({__proto__:null,default:qE},Symbol.toStringTag,{value:"Module"})),YE={props:{type:{type:String,default:()=>cx.text.type},show:{type:Boolean,default:()=>cx.text.show},text:{type:[String,Number],default:()=>cx.text.text},prefixIcon:{type:String,default:()=>cx.text.prefixIcon},suffixIcon:{type:String,default:()=>cx.text.suffixIcon},mode:{type:String,default:()=>cx.text.mode},href:{type:String,default:()=>cx.text.href},format:{type:[String,Function],default:()=>cx.text.format},call:{type:Boolean,default:()=>cx.text.call},openType:{type:String,default:()=>cx.text.openType},bold:{type:Boolean,default:()=>cx.text.bold},block:{type:Boolean,default:()=>cx.text.block},lines:{type:[String,Number],default:()=>cx.text.lines},color:{type:String,default:()=>cx.text.color},size:{type:[String,Number],default:()=>cx.text.size},iconStyle:{type:[Object,String],default:()=>cx.text.iconStyle},decoration:{tepe:String,default:()=>cx.text.decoration},margin:{type:[Object,String,Number],default:()=>cx.text.margin},lineHeight:{type:[String,Number],default:()=>cx.text.lineHeight},align:{type:String,default:()=>cx.text.align},wordWrap:{type:String,default:()=>cx.text.wordWrap},flex1:{type:Boolean,default:()=>cx.text.flex1}}},GE={computed:{value(){const{text:e,mode:t,format:n,href:o}=this;return"price"===t?fw.func(n)?n(e):Ww(e,2):"date"===t?(fw.date(e),fw.func(n)?n(e):$w(e,n||"yyyy-mm-dd")):"phone"===t?fw.func(n)?n(e):"encrypt"===n?`${e.substr(0,3)}****${e.substr(7)}`:e:"name"===t?fw.func(n)?n(e):"encrypt"===n?this.formatName(e):e:"link"===t?(fw.url(o),e):e}},methods:{formatName(e){let t="";if(2===e.length)t=e.substr(0,1)+"*";else if(e.length>2){let n="";for(let t=0,o=e.length-2;t<o;t++)n+="*";t=e.substr(0,1)+n+e.substr(-1,1)}else t=e;return t}}};const XE=W_({name:"up-text",mixins:[hx,fx,GE,YE],emits:["click"],computed:{wrapStyle(){let e={margin:this.margin,justifyContent:"left"===this.align?"flex-start":"center"===this.align?"center":"flex-end"};return this.flex1&&(e.flex=1,e.width="100%"),e},valueStyle(){const e={textDecoration:this.decoration,fontWeight:this.bold?"bold":"normal",wordWrap:this.wordWrap,fontSize:zw(this.size)};return!this.type&&(e.color=this.color),this.isNvue&&this.lines&&(e.lines=this.lines),this.lineHeight&&(e.lineHeight=zw(this.lineHeight)),!this.isNvue&&this.block&&(e.display="block"),Rw(e,Mw(this.customStyle))},isNvue:()=>!1,isMp:()=>!1},data:()=>({}),methods:{addStyle:Mw,clickHandler(e){this.call&&"phone"===this.mode&&Ib({phoneNumber:this.text}),this.$emit("click",e)}}},[["render",function(e,t,n,o,i,r){const s=wy,a=Bo("up-icon"),l=Ay,c=yx(Po("u-link"),TA),u=gd;return e.show?(Ir(),zr(l,{key:0,class:Qe(["u-text",[e.customClass]]),style:qe(r.wrapStyle),onClick:r.clickHandler},{default:So(()=>["price"===e.mode?(Ir(),zr(s,{key:0,class:Qe(["u-text__price",e.type&&`u-text__value--${e.type}`]),style:qe([r.valueStyle])},{default:So(()=>[Vr("￥")]),_:1},8,["class","style"])):Wr("",!0),e.prefixIcon?(Ir(),zr(l,{key:1,class:"u-text__prefix-icon"},{default:So(()=>[jr(a,{name:e.prefixIcon,customStyle:r.addStyle(e.iconStyle)},null,8,["name","customStyle"])]),_:1})):Wr("",!0),"link"===e.mode?(Ir(),zr(c,{key:2,class:Qe(["u-text__value",[e.type&&`u-text__value--${e.type}`,e.lines&&`u-line-${e.lines}`]]),style:qe({fontWeight:r.valueStyle.fontWeight,wordWrap:r.valueStyle.wordWrap,fontSize:r.valueStyle.fontSize}),text:e.value,href:e.href,underLine:""},null,8,["style","class","text","href"])):e.openType&&r.isMp?(Ir(),zr(u,{key:3,class:"u-reset-button u-text__value",style:qe([r.valueStyle]),"data-index":e.index,openType:e.openType,onGetuserinfo:e.onGetUserInfo,onContact:e.onContact,onGetphonenumber:e.onGetPhoneNumber,onError:e.onError,onLaunchapp:e.onLaunchApp,onOpensetting:e.onOpenSetting,lang:e.lang,"session-from":e.sessionFrom,"send-message-title":e.sendMessageTitle,"send-message-path":e.sendMessagePath,"send-message-img":e.sendMessageImg,"show-message-card":e.showMessageCard,"app-parameter":e.appParameter},{default:So(()=>[Vr(X(e.value),1)]),_:1},8,["style","data-index","openType","onGetuserinfo","onContact","onGetphonenumber","onError","onLaunchapp","onOpensetting","lang","session-from","send-message-title","send-message-path","send-message-img","show-message-card","app-parameter"])):(Ir(),zr(s,{key:4,class:Qe(["u-text__value",[e.type&&`u-text__value--${e.type}`,e.lines&&`u-line-${e.lines}`]]),style:qe([r.valueStyle])},{default:So(()=>[Vr(X(e.value),1)]),_:1},8,["style","class"])),e.suffixIcon?(Ir(),zr(l,{key:5,class:"u-text__suffix-icon"},{default:So(()=>[jr(a,{name:e.suffixIcon,customStyle:r.addStyle(e.iconStyle)},null,8,["name","customStyle"])]),_:1})):Wr("",!0)]),_:1},8,["class","style","onClick"])):Wr("",!0)}],["__scopeId","data-v-0773d7ae"]]),KE=Object.freeze(Object.defineProperty({__proto__:null,default:XE},Symbol.toStringTag,{value:"Module"})),JE={props:{value:{type:[String,Number],default:()=>cx.textarea.value},modelValue:{type:[String,Number],default:()=>cx.textarea.value},placeholder:{type:[String,Number],default:()=>cx.textarea.placeholder},placeholderClass:{type:String,default:()=>cx.input.placeholderClass},placeholderStyle:{type:[String,Object],default:()=>cx.input.placeholderStyle},height:{type:[String,Number],default:()=>cx.textarea.height},confirmType:{type:String,default:()=>cx.textarea.confirmType},disabled:{type:Boolean,default:()=>cx.textarea.disabled},count:{type:Boolean,default:()=>cx.textarea.count},focus:{type:Boolean,default:()=>cx.textarea.focus},autoHeight:{type:Boolean,default:()=>cx.textarea.autoHeight},fixed:{type:Boolean,default:()=>cx.textarea.fixed},cursorSpacing:{type:Number,default:()=>cx.textarea.cursorSpacing},cursor:{type:[String,Number],default:()=>cx.textarea.cursor},showConfirmBar:{type:Boolean,default:()=>cx.textarea.showConfirmBar},selectionStart:{type:Number,default:()=>cx.textarea.selectionStart},selectionEnd:{type:Number,default:()=>cx.textarea.selectionEnd},adjustPosition:{type:Boolean,default:()=>cx.textarea.adjustPosition},disableDefaultPadding:{type:Boolean,default:()=>cx.textarea.disableDefaultPadding},holdKeyboard:{type:Boolean,default:()=>cx.textarea.holdKeyboard},maxlength:{type:[String,Number],default:()=>cx.textarea.maxlength},border:{type:String,default:()=>cx.textarea.border},formatter:{type:[Function,null],default:()=>cx.textarea.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}};const ZE=W_({name:"u-textarea",mixins:[hx,fx,JE],data:()=>({innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:e=>e}),created(){},watch:{modelValue:{immediate:!0,handler(e,t){this.innerValue=e,!1===this.firstChange&&!1===this.changeFromInner&&this.valueChange(),this.firstChange=!1,this.changeFromInner=!1}}},computed:{fieldStyle(){let e={};return e.height=zw(this.height),this.autoHeight&&(e.height="auto",e.minHeight=zw(this.height)),e},textareaClass(){let e=[],{border:t,disabled:n}=this;return"surround"===t&&(e=e.concat(["u-border","u-textarea--radius"])),"bottom"===t&&(e=e.concat(["u-border-bottom","u-textarea--no-radius"])),n&&e.push("u-textarea--disabled"),e.join(" ")},textareaStyle(){return Rw({},Mw(this.customStyle))}},emits:["update:modelValue","linechange","focus","blur","change","confirm","keyboardheightchange"],methods:{addStyle:Mw,addUnit:zw,setFormatter(e){this.innerFormatter=e},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e),qw(this,"blur")},onLinechange(e){this.$emit("linechange",e)},onInput(e){let{value:t=""}=e.detail||{};const n=(this.formatter||this.innerFormatter)(t);this.innerValue=t,this.$nextTick(()=>{this.innerValue=n,this.valueChange()})},valueChange(){const e=this.innerValue;this.$nextTick(()=>{this.$emit("update:modelValue",e),this.changeFromInner=!0,this.$emit("change",e),qw(this,"change")})},onConfirm(e){this.$emit("confirm",e)},onKeyboardheightchange(e){this.$emit("keyboardheightchange",e)}}},[["render",function(e,t,n,o,i,r){const s=Cy,a=wy,l=Ay;return Ir(),zr(l,{class:Qe(["u-textarea",r.textareaClass]),style:qe([r.textareaStyle])},{default:So(()=>[jr(s,{class:"u-textarea__field",value:i.innerValue,style:qe(r.fieldStyle),placeholder:e.placeholder,"placeholder-style":r.addStyle(e.placeholderStyle,"string"==typeof e.placeholderStyle?"string":"object"),"placeholder-class":e.placeholderClass,disabled:e.disabled,focus:e.focus,autoHeight:e.autoHeight,fixed:e.fixed,cursorSpacing:e.cursorSpacing,cursor:e.cursor,showConfirmBar:e.showConfirmBar,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,disableDefaultPadding:e.disableDefaultPadding,holdKeyboard:e.holdKeyboard,maxlength:e.maxlength,"confirm-type":e.confirmType,ignoreCompositionEvent:e.ignoreCompositionEvent,onFocus:r.onFocus,onBlur:r.onBlur,onLinechange:r.onLinechange,onInput:r.onInput,onConfirm:r.onConfirm,onKeyboardheightchange:r.onKeyboardheightchange},null,8,["value","style","placeholder","placeholder-style","placeholder-class","disabled","focus","autoHeight","fixed","cursorSpacing","cursor","showConfirmBar","selectionStart","selectionEnd","adjustPosition","disableDefaultPadding","holdKeyboard","maxlength","confirm-type","ignoreCompositionEvent","onFocus","onBlur","onLinechange","onInput","onConfirm","onKeyboardheightchange"]),e.count?(Ir(),zr(a,{key:0,class:"u-textarea__count",style:qe({"background-color":e.disabled?"transparent":"#fff"})},{default:So(()=>[Vr(X(i.innerValue.length)+"/"+X(e.maxlength),1)]),_:1},8,["style"])):Wr("",!0)]),_:1},8,["class","style"])}],["__scopeId","data-v-b59d34ef"]]),eP=Object.freeze(Object.defineProperty({__proto__:null,default:ZE},Symbol.toStringTag,{value:"Module"}));const tP=W_({name:"u-th",mixins:[hx,fx,{props:{}}],props:{width:{type:[String],default:""}},data:()=>({thStyle:{}}),created(){this.parent=!1},mounted(){if(this.parent=Pw.call(this,"u-table"),this.parent){let e={};this.width&&(e.flex=`0 0 ${this.width}`),e.textAlign=this.parent.align,e.padding=this.parent.padding,e.borderBottom=`solid 1px ${this.parent.borderColor}`,e.borderRight=`solid 1px ${this.parent.borderColor}`,Object.assign(e,this.parent.thStyle),this.thStyle=e}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-th",style:qe([i.thStyle])},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["style"])}],["__scopeId","data-v-baeaafd8"]]),nP=Object.freeze(Object.defineProperty({__proto__:null,default:tP},Symbol.toStringTag,{value:"Module"}));const oP=W_({name:"u-title",props:{},data:()=>({}),created:function(){},methods:{}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-title u-flex-row u-flex-y-center"},{default:So(()=>[Mi(e.$slots,"prefix",{},()=>[jr(s,{class:"u-title-prefix"})],!0),Mi(e.$slots,"default",{},void 0,!0)]),_:3})}],["__scopeId","data-v-af64b667"]]),iP=Object.freeze(Object.defineProperty({__proto__:null,default:oP},Symbol.toStringTag,{value:"Module"}));const rP=W_({name:"u-toast",mixins:[hx,fx],data:()=>({isShow:!1,timer:null,config:{message:"",type:"",zIndex:10090,duration:2e3,icon:!0,position:"center",complete:null,overlay:!0,loading:!1},tmpConfig:{}}),computed:{iconName(){return this.tmpConfig.icon&&"none"!=this.tmpConfig.icon?!0===this.tmpConfig.icon?["error","warning","success","primary"].includes(this.tmpConfig.type)?Vw(this.tmpConfig.type):"":this.tmpConfig.icon:""},overlayStyle(){const e={justifyContent:"center",alignItems:"center",display:"flex",backgroundColor:"rgba(0, 0, 0, 0)"};return e},iconStyle(){const e={marginRight:"4px"};return e},loadingIconColor(){let e="rgb(255, 255, 255)";return["error","warning","success","primary"].includes(this.tmpConfig.type)&&(e=Ix(G_[this.tmpConfig.type])),e},contentStyle(){const e=Tw().windowHeight,t={};let n=0;return"top"===this.tmpConfig.position?n=.25*-e:"bottom"===this.tmpConfig.position&&(n=.25*e),t.transform=`translateY(${n}px)`,t}},created(){["primary","success","error","warning","default","loading"].map(e=>{this[e]=t=>this.show({type:e,message:t})})},methods:{show(e){this.tmpConfig=Rw(this.config,e),this.clearTimer(),this.isShow=!0,-1!==this.tmpConfig.duration&&(this.timer=setTimeout(()=>{this.clearTimer(),"function"==typeof this.tmpConfig.complete&&this.tmpConfig.complete()},this.tmpConfig.duration))},hide(){this.clearTimer()},clearTimer(){this.isShow=!1,clearTimeout(this.timer),this.timer=null}},beforeUnmount(){this.clearTimer()}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-loading-icon"),Px),a=Bo("up-icon"),l=yx(Po("u-gap"),zx),c=wy,u=Ay,d=yx(Po("u-overlay"),Hx);return Ir(),zr(u,{class:"u-toast"},{default:So(()=>[jr(d,{show:i.isShow,zIndex:i.tmpConfig.overlay?i.tmpConfig.zIndex:-1,"custom-style":r.overlayStyle},{default:So(()=>[jr(u,{class:Qe(["u-toast__content",["u-type-"+i.tmpConfig.type,"loading"===i.tmpConfig.type||i.tmpConfig.loading?"u-toast__content--loading":""]]),style:qe([r.contentStyle])},{default:So(()=>["loading"===i.tmpConfig.type?(Ir(),zr(s,{key:0,mode:"circle",color:"rgb(255, 255, 255)",inactiveColor:"rgb(120, 120, 120)",size:"25"})):"defalut"!==i.tmpConfig.type&&r.iconName?(Ir(),zr(a,{key:1,name:r.iconName,size:"17",color:i.tmpConfig.type,customStyle:r.iconStyle},null,8,["name","color","customStyle"])):Wr("",!0),"loading"===i.tmpConfig.type||i.tmpConfig.loading?(Ir(),zr(l,{key:2,height:"12",bgColor:"transparent"})):Wr("",!0),jr(c,{class:Qe(["u-toast__content__text",["u-toast__content__text--"+i.tmpConfig.type]]),style:{"max-width":"400rpx"}},{default:So(()=>[Vr(X(i.tmpConfig.message),1)]),_:1},8,["class"])]),_:1},8,["style","class"])]),_:1},8,["show","zIndex","custom-style"])]),_:1})}],["__scopeId","data-v-8bc2c964"]]),sP=Object.freeze(Object.defineProperty({__proto__:null,default:rP},Symbol.toStringTag,{value:"Module"})),aP={props:{text:{type:[String,Number],default:()=>cx.tooltip.text},copyText:{type:[String,Number],default:()=>cx.tooltip.copyText},size:{type:[String,Number],default:()=>cx.tooltip.size},color:{type:String,default:()=>cx.tooltip.color},bgColor:{type:String,default:()=>cx.tooltip.bgColor},popupBgColor:{type:String,default:()=>cx.tooltip.popupBgColor},direction:{type:String,default:()=>cx.tooltip.direction},zIndex:{type:[String,Number],default:()=>cx.tooltip.zIndex},showCopy:{type:Boolean,default:()=>cx.tooltip.showCopy},buttons:{type:Array,default:()=>cx.tooltip.buttons},overlay:{type:Boolean,default:()=>cx.tooltip.overlay},showToast:{type:Boolean,default:()=>cx.tooltip.showToast},triggerMode:{type:String,default:()=>cx.tooltip.triggerMode}}};const lP=W_({name:"u-tooltip",mixins:[hx,fx,aP],data:()=>({showTooltip:!0,textId:Ew(),tooltipId:Ew(),tooltipTop:-1e4,tooltipInfo:{width:0,left:0},textInfo:{width:0,left:0},indicatorStyle:{},screenGap:12,indicatorWidth:14,tooltipStyle:{}}),watch:{async propsChange(){await this.getElRect(),this.getTooltipStyle()}},computed:{propsChange(){return[this.text,this.buttons]}},mounted(){this.init()},emits:["click"],methods:{addStyle:Mw,addUnit:zw,async init(){await this.getElRect(),this.getTooltipStyle()},getTooltipStyle(){const e={},t=Tw();if("left"===this.direction)e.transform="",e.top="-"+zw((this.tooltipInfo.height-this.indicatorWidth)/2,"px"),e.right=zw(this.textInfo.width+this.indicatorWidth,"px"),this.indicatorStyle={},this.indicatorStyle.right="-4px",this.indicatorStyle.top=zw((this.tooltipInfo.height-this.indicatorWidth)/2,"px");else if("right"===this.direction)e.transform="",e.top=zw((this.textInfo.height-this.tooltipInfo.height)/2,"px"),e.left=zw(this.textInfo.width+this.indicatorWidth,"px"),this.indicatorStyle={},this.indicatorStyle.left="-4px",this.indicatorStyle.top=zw((this.textInfo.height-this.indicatorWidth)/2,"px");else if("top"===this.direction||"bottom"===this.direction){if(e.transform=`translateY(${"top"===this.direction?"-100%":"100%"})`,this.tooltipInfo.width/2>this.textInfo.left+this.textInfo.width/2-this.screenGap)this.indicatorStyle={},e.left=`-${zw(this.textInfo.left-this.screenGap)}`,this.indicatorStyle.left=zw(this.textInfo.width/2-Sw(e.left)-this.indicatorWidth/2,"px");else if(this.tooltipInfo.width/2>t.windowWidth-this.textInfo.right+this.textInfo.width/2-this.screenGap)this.indicatorStyle={},e.right=`-${zw(t.windowWidth-this.textInfo.right-this.screenGap)}`,this.indicatorStyle.right=zw(this.textInfo.width/2-Sw(e.right)-this.indicatorWidth/2);else{const t=Math.abs(this.textInfo.width/2-this.tooltipInfo.width/2);e.left=this.textInfo.width>this.tooltipInfo.width?zw(t):-zw(t),this.indicatorStyle={}}"top"===this.direction?(e.marginTop="-10px",this.indicatorStyle.bottom="-4px"):(e.marginBottom="-10px",this.indicatorStyle.top="-4px")}return this.tooltipStyle=e,e},async clickHander(){"click"==this.triggerMode&&(this.tooltipTop=0,this.showTooltip=!0)},async longpressHandler(){"longpress"==this.triggerMode&&(this.tooltipTop=0,this.showTooltip=!0)},overlayClickHandler(){this.showTooltip=!1},btnClickHandler(e){this.showTooltip=!1,this.$emit("click",this.showCopy?e+1:e)},queryRect(e){return new Promise(t=>{this.$uGetRect(`#${e}`).then(e=>{t(e)})})},getElRect(){return new Promise(async e=>{this.showTooltip=!0,this.tooltipTop=-1e4,kw(500).then(async()=>{this.tooltipInfo=await this.queryRect(this.tooltipId),this.showTooltip=!1,this.textInfo=await this.queryRect(this.textId),e()})})},setClipboardData(){this.showTooltip=!1,this.$emit("click",0),Xb({data:this.copyText||this.text,success:()=>{this.showToast&&Fw("复制成功")},fail:()=>{this.showToast&&Fw("复制失败")},complete:()=>{this.showTooltip=!1}})}}},[["render",function(e,t,n,o,i,r){const s=yx(Po("u-overlay"),Hx),a=wy,l=Ay,c=yx(Po("u-line"),mx),u=yx(Po("u-transition"),Nx);return Ir(),zr(l,{class:"u-tooltip",style:qe([r.addStyle(e.customStyle)])},{default:So(()=>[jr(s,{show:i.showTooltip&&-1e4!==i.tooltipTop&&e.overlay,customStyle:"backgroundColor: rgba(0, 0, 0, 0)",onClick:r.overlayClickHandler},null,8,["show","onClick"]),jr(l,{class:"u-tooltip__wrapper"},{default:So(()=>[jr(l,{class:"u-tooltip__trigger",id:i.textId,ref:i.textId,onClick:ua(r.clickHander,["stop"]),onLongpress:ua(r.longpressHandler,["stop"])},{default:So(()=>[Mi(e.$slots,"trigger",{},void 0,!0),e.$slots.trigger?Wr("",!0):(Ir(),zr(a,{key:0,class:"u-tooltip__wrapper__text",userSelect:!1,selectable:!1,style:qe({color:e.color,backgroundColor:e.bgColor&&i.showTooltip&&-1e4!==i.tooltipTop?e.bgColor:"transparent"})},{default:So(()=>[Vr(X(e.text),1)]),_:1},8,["style"]))]),_:3},8,["id","onClick","onLongpress"]),jr(u,{mode:"fade",show:i.showTooltip,duration:"300",customStyle:{position:"absolute",top:r.addUnit(i.tooltipTop),zIndex:e.zIndex,...i.tooltipStyle}},{default:So(()=>[jr(l,{class:"u-tooltip__wrapper__popup",id:i.tooltipId,ref:i.tooltipId},{default:So(()=>[e.showCopy||e.buttons.length?(Ir(),zr(l,{key:0,class:"u-tooltip__wrapper__popup__indicator","hover-class":"u-tooltip__wrapper__popup__indicator--hover",style:qe([i.indicatorStyle,{width:r.addUnit(i.indicatorWidth),height:r.addUnit(i.indicatorWidth),backgroundColor:e.popupBgColor}])},null,8,["style"])):Wr("",!0),jr(l,{class:"u-tooltip__wrapper__popup__list",style:qe({backgroundColor:e.popupBgColor,color:e.color})},{default:So(()=>[Mi(e.$slots,"content",{},void 0,!0),e.$slots.content?Wr("",!0):(Ir(),Mr(xr,{key:0},[e.showCopy?(Ir(),zr(l,{key:0,class:"u-tooltip__wrapper__popup__list__btn","hover-class":"u-tooltip__wrapper__popup__list__btn--hover",style:qe({backgroundColor:e.popupBgColor}),onClick:r.setClipboardData},{default:So(()=>[jr(a,{class:"u-tooltip__wrapper__popup__list__btn__text"},{default:So(()=>[Vr("复制")]),_:1})]),_:1},8,["style","onClick"])):Wr("",!0),e.showCopy&&e.buttons.length>0?(Ir(),zr(c,{key:1,direction:"column",color:"#8d8e90",length:"18"})):Wr("",!0),(Ir(!0),Mr(xr,null,Pi(e.buttons,(t,n)=>(Ir(),Mr(xr,{key:n},[jr(l,{class:"u-tooltip__wrapper__popup__list__btn","hover-class":"u-tooltip__wrapper__popup__list__btn--hover"},{default:So(()=>[jr(a,{class:"u-tooltip__wrapper__popup__list__btn__text",onClick:e=>r.btnClickHandler(n)},{default:So(()=>[Vr(X(t),1)]),_:2},1032,["onClick"])]),_:2},1024),n<e.buttons.length-1?(Ir(),zr(c,{key:0,direction:"column",color:"#8d8e90",length:"18"})):Wr("",!0)],64))),128))],64))]),_:3},8,["style"])]),_:3},8,["id"])]),_:3},8,["show","customStyle"])]),_:3})]),_:3},8,["style"])}],["__scopeId","data-v-18113f80"]]),cP=Object.freeze(Object.defineProperty({__proto__:null,default:lP},Symbol.toStringTag,{value:"Module"}));const uP=W_({name:"u-tr",mixins:[hx,fx,{props:{}}],data:()=>({})},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-tr"},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3})}],["__scopeId","data-v-60a63aef"]]),dP=Object.freeze(Object.defineProperty({__proto__:null,default:uP},Symbol.toStringTag,{value:"Module"}));const hP=W_({name:"u-tree",components:{TreeNode:W_({name:"tree-node",props:{node:{type:Object,required:!0},props:{type:Object,required:!0},showCheckbox:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!0},depth:{type:Number,default:0}},computed:{hasChildren(){return this.node[this.props.children]&&this.node[this.props.children].length>0},isExpanded(){return void 0!==this.node.expanded&&this.node.expanded}},emits:["node-click","check-change"],methods:{toggle(){this.expandOnClickNode&&this.hasChildren&&(this.node.expanded=!this.node.expanded),this.$emit("node-click",this.node)},toggleCheck(e){this.node.checked=e,this.checkStrictly||(this.updateChildCheckStatus(this.node,e),this.updateParentCheckStatus(this.node)),this.$emit("check-change",this.node)},updateChildCheckStatus(e,t){e[this.props.children]&&e[this.props.children].forEach(e=>{e.checked=t,this.updateChildCheckStatus(e,t)})},updateParentCheckStatus(e){let t=this.$parent;for(;t&&t.node;){const e=t.node[this.props.children].every(e=>e.checked);t.node.checked=e,t=t.$parent}}}},[["render",function(e,t,n,o,i,r){const s=Bo("up-icon"),a=Bo("up-checkbox"),l=Ay,c=Bo("tree-node",!0);return Ir(),zr(l,{class:"u-tree-node",style:qe({paddingLeft:20*n.depth+"px"})},{default:So(()=>[jr(l,{class:"u-tree-node-content",onClick:r.toggle},{default:So(()=>[r.hasChildren?(Ir(),zr(s,{key:0,class:"u-tree-node-toggle",name:n.node.expanded?"arrow-down-fill":"play-right-fill",size:"12"},null,8,["name"])):Wr("",!0),n.showCheckbox?(Ir(),zr(a,{key:1,usedAlone:"",size:12,checked:n.node.checked,onChange:r.toggleCheck,style:{"margin-right":"10px"}},null,8,["checked","onChange"])):Wr("",!0),Mi(e.$slots,"default",{nodeData:n.node,level:n.depth+1},()=>[Vr(X(n.node[n.props.label]),1)],!0)]),_:3},8,["onClick"]),r.hasChildren&&(void 0===n.node.expanded||n.node.expanded)?(Ir(),zr(l,{key:0,class:"u-tree-node-children",style:qe({paddingLeft:20*(n.depth+1)+"px"})},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(n.node[n.props.children],o=>(Ir(),zr(c,{key:o[n.props.nodeKey],node:o,props:n.props,"show-checkbox":n.showCheckbox,"check-strictly":n.checkStrictly,"expand-on-click-node":n.expandOnClickNode,depth:n.depth+1,onNodeClick:t[0]||(t[0]=t=>e.$emit("node-click",t)),onCheckChange:t[1]||(t[1]=t=>e.$emit("check-change",t))},{default:So(({nodeData:t,level:n})=>[Mi(e.$slots,"default",{nodeData:t,level:n},void 0,!0)]),_:2},1032,["node","props","show-checkbox","check-strictly","expand-on-click-node","depth"]))),128))]),_:3},8,["style"])):Wr("",!0)]),_:3},8,["style"])}],["__scopeId","data-v-64527d0b"]])},props:{data:{type:Array,required:!0},props:{type:Object,default:()=>({label:"label",children:"children",nodeKey:"id"})},showCheckbox:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1}},data:()=>({treeData:[]}),created(){this.initTree()},watch:{data:{handler(e){this.treeData=JSON.parse(JSON.stringify(e)),this.initExpandedState(this.treeData,this.defaultExpandAll)},deep:!0,immediate:!0}},emits:["node-click","check-change"],methods:{initTree(){this.treeData=JSON.parse(JSON.stringify(this.data)),this.initExpandedState(this.treeData,this.defaultExpandAll)},initExpandedState(e,t){e.forEach(e=>{e.expanded=t,e[this.props.children]&&this.initExpandedState(e[this.props.children],t)})},handleNodeClick(e){this.$emit("node-click",e)},getCheckedNodes(){const e=t=>{let n=[];return t.forEach(t=>{t.checked&&n.push(t),t[this.props.children]&&t[this.props.children].length>0&&(n=n.concat(e(t[this.props.children])))}),n};return e(this.treeData)}}},[["render",function(e,t,n,o,i,r){const s=Bo("tree-node"),a=Ay;return Ir(),zr(a,{class:"u-tree"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(i.treeData,o=>(Ir(),zr(s,{key:o[n.props.nodeKey],node:o,props:n.props,"show-checkbox":n.showCheckbox,"check-strictly":n.checkStrictly,"expand-on-click-node":n.expandOnClickNode,onNodeClick:r.handleNodeClick,onCheckChange:t[0]||(t[0]=t=>e.$emit("check-change",t))},{default:So(({nodeData:t,level:n})=>[Mi(e.$slots,"default",{node:t,level:n},void 0,!0)]),_:2},1032,["node","props","show-checkbox","check-strictly","expand-on-click-node","onNodeClick"]))),128))]),_:3})}],["__scopeId","data-v-f76f3c2b"]]),pP=Object.freeze(Object.defineProperty({__proto__:null,default:hP},Symbol.toStringTag,{value:"Module"}));function fP(e,t){return["[object Object]","[object File]"].includes(Object.prototype.toString.call(e))?Object.keys(e).reduce((n,o)=>(t.includes(o)||(n[o]=e[o]),n),{}):{}}function mP(e){return e.tempFiles.map(e=>({...fP(e,["path"]),url:e.path,size:e.size,name:e.name,type:e.type,file:e}))}function gP({accept:e,multiple:t,capture:n,compressed:o,maxDuration:i,sizeType:r,camera:s,maxCount:a,extension:l}){try{n=fw.array(n)?n:n.split(",")}catch(c){n=[]}return new Promise((c,u)=>{switch(e){case"image":cv({count:t?Math.min(a,9):1,sourceType:n,sizeType:r,success:e=>c(function(e){return e.tempFiles.map(e=>({...fP(e,["path"]),type:"image",url:e.path,thumb:e.path,size:e.size,name:e.name,file:e}))}(e)),fail:u});break;case"video":Iv({sourceType:n,compressed:o,maxDuration:i,camera:s,success:e=>c(function(e){return[{...fP(e,["tempFilePath","thumbTempFilePath","errMsg"]),type:"video",url:e.tempFilePath,thumb:e.thumbTempFilePath,size:e.size,width:e.width||0,height:e.height||0,name:e.name,file:e}]}(e)),fail:u});break;case"file":let d={count:t?a:1,type:e,success:e=>c(mP(e)),fail:u};l.length&&l.length>0&&(d.extension=l),av(d);break;default:let h={count:t?a:1,type:"all",success:e=>c(mP(e)),fail:u};l.length&&l.length>0&&(h.extension=l),av(h)}})}const yP={props:{accept:{type:String,default:()=>cx.upload.accept},extension:{type:Array,default:()=>cx.upload.extension},capture:{type:[String,Array],default:()=>cx.upload.capture},compressed:{type:Boolean,default:()=>cx.upload.compressed},camera:{type:String,default:()=>cx.upload.camera},maxDuration:{type:Number,default:()=>cx.upload.maxDuration},uploadIcon:{type:String,default:()=>cx.upload.uploadIcon},uploadIconColor:{type:String,default:()=>cx.upload.uploadIconColor},useBeforeRead:{type:Boolean,default:()=>cx.upload.useBeforeRead},afterRead:{type:Function,default:null},beforeRead:{type:Function,default:null},previewFullImage:{type:Boolean,default:()=>cx.upload.previewFullImage},maxCount:{type:[String,Number],default:()=>cx.upload.maxCount},disabled:{type:Boolean,default:()=>cx.upload.disabled},imageMode:{type:String,default:()=>cx.upload.imageMode},name:{type:String,default:()=>cx.upload.name},sizeType:{type:Array,default:()=>cx.upload.sizeType},multiple:{type:Boolean,default:()=>cx.upload.multiple},deletable:{type:Boolean,default:()=>cx.upload.deletable},maxSize:{type:[String,Number],default:()=>cx.upload.maxSize},fileList:{type:Array,default:()=>cx.upload.fileList},uploadText:{type:String,default:()=>cx.upload.uploadText},width:{type:[String,Number],default:()=>cx.upload.width},height:{type:[String,Number],default:()=>cx.upload.height},previewImage:{type:Boolean,default:()=>cx.upload.previewImage},autoDelete:{type:Boolean,default:()=>cx.upload.autoDelete},autoUpload:{type:Boolean,default:()=>cx.upload.autoUpload},autoUploadApi:{type:String,default:()=>cx.upload.autoUploadApi},autoUploadDriver:{type:String,default:()=>cx.upload.autoUploadDriver},autoUploadAuthUrl:{type:String,default:()=>cx.upload.autoUploadAuthUrl},autoUploadHeader:{type:Object,default:()=>cx.upload.autoUploadHeader},getVideoThumb:{type:Boolean,default:()=>cx.upload.getVideoThumb},customAfterAutoUpload:{type:Boolean,default:()=>cx.upload.customAfterAutoUpload},videoPreviewObjectFit:{type:String,default:()=>cx.upload.videoPreviewObjectFit}}},bP={name:"u-upload",mixins:[hx,fx,{watch:{accept:{immediate:!0,handler(e){}}}},yP],data:()=>({lists:[],isInCount:!0,popupShow:!1,currentItemIndex:-1}),watch:{fileList:{handler(){this.formatFileList()},immediate:!0,deep:!0},deletable(e){this.formatFileList()},maxCount(e){this.formatFileList()},accept(e){this.formatFileList()},popupShow(e){e||(this.currentItemIndex=-1)}},emits:["error","beforeRead","oversize","afterRead","delete","clickPreview","update:fileList","afterAutoUpload"],methods:{t:Zw,addUnit:zw,addStyle:Mw,videoErrorCallback(){},loadedVideoMetadata(e){if(this.currentItemIndex<0)return;if("local"!=this.autoUploadDriver)return;if(!this.getVideoThumb)return;let t=this.lists[this.currentItemIndex].width,n=this.lists[this.currentItemIndex].height;const o=Hb().pixelRatio;sp().select("#myVideo").context(e=>{console.log("select video",e);const i=e.context;sp().select("#myCanvas").fields({node:!0,size:!0}).exec(([e])=>{console.log("select canvas",e);const r=e[0].node.getContext("2d");e[0].node.width=t*o,e[0].node.height=n*o,setTimeout(()=>{s()},500);const s=()=>{r.drawImage(i,0,0,t*o,n*o),qh({canvas:e[0].node,success:e=>{console.log("First frame image path:",e.tempFilePath),this.fileList.currentItemIndex.thumb=e.tempFilePath},fail:e=>{console.error("Failed to export image:",e)}})};setInterval(()=>{r.drawImage(i,0,0,t*o,n*o)},1e3/24)}).exec()}).exec()},formatFileList(){const{fileList:e=[],maxCount:t}=this,n=e.map(e=>{const t=e.name||e.url||e.thumb;return Object.assign(Object.assign({},e),{isImage:e.name?fw.image(e.name):"image"===this.accept||fw.image(t),isVideo:e.name?fw.video(e.name):"video"===this.accept||fw.video(t),deletable:"boolean"==typeof e.deletable?e.deletable:this.deletable})});this.lists=n,this.isInCount=n.length<t},chooseFile(e){const{maxCount:t,multiple:n,lists:o,disabled:i}=this;if(i)return Promise.reject();const r=Object.assign({accept:this.accept,extension:this.extension,multiple:this.multiple,capture:this.capture,compressed:this.compressed,maxDuration:this.maxDuration,sizeType:this.sizeType,camera:this.camera},{maxCount:t-o.length,...e});return gP(r).then(e=>{const t=r.multiple?e:e[0];return this.onBeforeRead(t),t}).catch(e=>{this.$emit("error",e)})},onBeforeRead(e){const{beforeRead:t,useBeforeRead:n}=this;let o=e;fw.func(t)&&(o=t(e,this.getDetail())),n&&(o=new Promise((t,n)=>{this.$emit("beforeRead",Object.assign(Object.assign({file:e},this.getDetail()),{callback:e=>{e?t():n()}}))})),fw.promise(o)?o.then(t=>this.onAfterRead(t||e)):this.onAfterRead(o||e)},getDetail(e){return{name:this.name,index:null==e?this.fileList.length:e}},async onAfterRead(e){const{maxSize:t,afterRead:n}=this;if(Array.isArray(e)?e.some(e=>e.size>t):e.size>t)return s_({title:Zw("up.upload.sizeExceed")}),void this.$emit("oversize",Object.assign({file:e},this.getDetail()));let o=this.fileList.length;if(this.autoUpload){let t=[].concat(e);this.fileList.length,t.map(e=>{this.fileList.push({...e,status:"uploading",message:Zw("up.upload.uploading"),progress:0})});let n=this;this.$emit("update:fileList",this.fileList);for(let e=0;e<t.length;e++){let i=e,r="";switch(this.autoUploadDriver){case"cos":case"kodo":break;case"oss":case"upload_oss":console.log();let e={},s=(await Bv({url:this.autoUploadAuthUrl,method:"get",header:this.autoUploadHeader,data:{filename:t[i].name}})).data;if(200!=s.code)return void s_({title:s.msg,duration:1500});e=s.data.params,Dv({url:s.data.params.host,filePath:t[i].url,name:"file",formData:e,success:e=>{let t="",a="";n.customAfterAutoUpload&&(a=new Promise((e,t)=>{n.$emit("afterAutoUpload",Object.assign(s,{callback:n=>{n.url?e(n):t()}}))})),fw.promise(a)?a.then(e=>n.succcessUpload(o+i,e.url,e.thumb)):(r=s.data.params.host+"/"+s.data.params.key,("video"===n.accept||fw.video(r))&&(t=r+"?x-oss-process=video/snapshot,t_10000,m_fast"),n.succcessUpload(o+i,r,t))}}).onProgressUpdate(e=>{n.updateUpload(o+i,{progress:e.progress})});break;default:Dv({url:this.autoUploadApi,filePath:t[i].url,name:"file",header:this.autoUploadHeader,success:e=>{let t=e.data,s="";n.customAfterAutoUpload&&(s=new Promise((e,o)=>{n.$emit("afterAutoUpload",Object.assign(t,{callback:t=>{t.url?e(t):o()}}))})),fw.promise(s)?s.then(e=>n.succcessUpload(o+i,e.url)):200!=t.code?s_({title:t.msg}):(r=t.data.url,n.succcessUpload(o+i,r))}}).onProgressUpdate(e=>{n.updateUpload(o+i,{progress:e.progress})})}}}else"function"==typeof n&&n(e,this.getDetail()),this.$emit("afterRead",Object.assign({file:e},this.getDetail()))},updateUpload(e,t){let n=this.fileList[e];this.fileList.splice(e,1,{...n,status:100==t.progress?"success":"uploading",message:"",progress:t.progress}),this.$emit("update:fileList",this.fileList)},succcessUpload(e,t,n=""){let o=this.fileList[e];this.fileList.splice(e,1,{...o,status:"success",message:"",url:t,progress:100,thumb:n}),this.$emit("update:fileList",this.fileList)},deleteItem(e){this.autoDelete?(this.fileList.splice(e,1),this.$emit("update:fileList",this.fileList)):this.$emit("delete",Object.assign(Object.assign({},this.getDetail(e)),{file:this.fileList[e]}))},onPreviewImage(e,t){if(!e.isImage||!this.previewFullImage)return;let n=0;const o=[];let i=0;for(var r=0;r<this.lists.length;r++){const e=this.lists[r];(e.isImage||e.type&&"image"===e.type)&&(o.push(e.url||e.thumb),r===t&&(n=i),i+=1)}o.length<1||Av({urls:o,current:n,fail(){Fw(Zw("up.upload.previewImageFail"))}})},onPreviewVideo(e,t){if(!this.previewFullImage)return;const n=[];for(var o=0;o<this.lists.length;o++){const e=this.lists[o];(e.isVideo||e.type&&"video"===e.type)&&n.push(Object.assign(Object.assign({},e),{type:"video"}))}n.length<1||(this.popupShow=!0,this.currentItemIndex=t,console.log(this.lists[this.currentItemIndex]))},onClickPreview(e,t){if(this.previewFullImage)switch(e.type){case"image":this.onPreviewImage(e,t);break;case"video":this.onPreviewVideo(e,t)}this.$emit("clickPreview",Object.assign(Object.assign({},e),this.getDetail(t)))}}};const vP=W_(bP,[["render",function(e,t,n,o,i,r){const s=Jm,a=Bo("up-icon"),l=Ay,c=wy,u=yx(Po("u-loading-icon"),Px),d=Bo("up-gap"),h=zm,p=db,f=Bo("up-popup");return Ir(),zr(l,{class:"u-upload",style:qe([r.addStyle(e.customStyle)])},{default:So(()=>[jr(l,{class:"u-upload__wrap"},{default:So(()=>[e.previewImage?(Ir(!0),Mr(xr,{key:0},Pi(i.lists,(t,n)=>(Ir(),zr(l,{class:"u-upload__wrap__preview",key:n},{default:So(()=>[t.isImage||t.type&&"image"===t.type?(Ir(),zr(s,{key:0,src:t.thumb||t.url,mode:e.imageMode,class:"u-upload__wrap__preview__image",onClick:e=>r.onClickPreview(t,n),style:qe([{width:r.addUnit(e.width),height:r.addUnit(e.height)}])},null,8,["src","mode","onClick","style"])):(t.isVideo||t.type&&"video"===t.type)&&e.getVideoThumb?(Ir(),zr(l,{key:1,class:"u-upload__wrap__preview__video",style:qe({width:r.addUnit(e.width),height:r.addUnit(e.height)})},{default:So(()=>[t.thumb?(Ir(),zr(s,{key:0,src:t.thumb,mode:e.imageMode,class:"u-upload__wrap__preview__image",onClick:e=>r.onClickPreview(t,n),style:qe([{width:r.addUnit(e.width),height:r.addUnit(e.height)}])},null,8,["src","mode","onClick","style"])):(Ir(),zr(a,{key:1,color:"#80CBF9",size:"26",name:t.isVideo||t.type&&"video"===t.type?"movie":"file-text"},null,8,["name"])),"success"===t.status?(Ir(),zr(l,{key:2,class:"u-upload__wrap__play",onClick:e=>r.onClickPreview(t,n)},{default:So(()=>[Mi(e.$slots,"playIcon",{},void 0,!0),e.$slots.playIcon?Wr("",!0):(Ir(),zr(a,{key:0,class:"u-upload__wrap__play__icon",name:"play-right",size:"22px"}))]),_:2},1032,["onClick"])):Wr("",!0)]),_:2},1032,["style"])):(Ir(),zr(l,{key:2,class:"u-upload__wrap__preview__other",onClick:e=>r.onClickPreview(t,n),style:qe([{width:r.addUnit(e.width),height:r.addUnit(e.height)}])},{default:So(()=>[jr(a,{color:"#80CBF9",size:"26",name:t.isVideo||t.type&&"video"===t.type?"movie":"folder"},null,8,["name"]),jr(c,{class:"u-upload__wrap__preview__other__text"},{default:So(()=>[Vr(X(t.isVideo||t.type&&"video"===t.type?t.name||r.t("up.common.video"):t.name||r.t("up.common.file")),1)]),_:2},1024)]),_:2},1032,["onClick","style"])),"uploading"===t.status||"failed"===t.status?(Ir(),zr(l,{key:3,class:"u-upload__status"},{default:So(()=>[jr(l,{class:"u-upload__status__icon"},{default:So(()=>["failed"===t.status?(Ir(),zr(a,{key:0,name:"close-circle",color:"#ffffff",size:"25"})):(Ir(),zr(u,{key:1,size:"22",mode:"circle"}))]),_:2},1024),t.message?(Ir(),zr(c,{key:0,class:"u-upload__status__message"},{default:So(()=>[Vr(X(t.message),1)]),_:2},1024)):Wr("",!0),jr(d,{class:"u-upload__progress",height:"3px",style:qe({width:t.progress+"%"})},null,8,["style"])]),_:2},1024)):Wr("",!0),"uploading"!==t.status&&(e.deletable||t.deletable)?(Ir(),zr(l,{key:4,class:"u-upload__deletable",onClick:ua(e=>r.deleteItem(n),["stop"])},{default:So(()=>[jr(l,{class:"u-upload__deletable__icon"},{default:So(()=>[jr(a,{name:"close",color:"#ffffff",size:"10"})]),_:1})]),_:2},1032,["onClick"])):Wr("",!0),Mi(e.$slots,"success",{},()=>["success"===t.status?(Ir(),zr(l,{key:0,class:"u-upload__success"},{default:So(()=>[jr(l,{class:"u-upload__success__icon"},{default:So(()=>[jr(a,{name:"checkmark",color:"#ffffff",size:"12"})]),_:1})]),_:1})):Wr("",!0)],!0)]),_:2},1024))),128)):Wr("",!0),jr(h,{id:"myCanvas",type:"2d",style:{width:"100px",height:"150px",display:"none"}}),i.isInCount?(Ir(),Mr(xr,{key:1},[e.$slots.trigger?(Ir(),zr(l,{key:0,onClick:r.chooseFile},{default:So(()=>[Mi(e.$slots,"trigger",{},void 0,!0)]),_:3},8,["onClick"])):e.$slots.trigger||!e.$slots.default&&!e.$slots.$default?(Ir(),zr(l,{key:2,class:Qe(["u-upload__button",[e.disabled&&"u-upload__button--disabled"]]),"hover-class":e.disabled?"":"u-upload__button--hover","hover-stay-time":"150",onClick:r.chooseFile,style:qe([{width:r.addUnit(e.width),height:r.addUnit(e.height)}])},{default:So(()=>[jr(a,{name:e.uploadIcon,size:"26",color:e.uploadIconColor},null,8,["name","color"]),e.uploadText?(Ir(),zr(c,{key:0,class:"u-upload__button__text"},{default:So(()=>[Vr(X(e.uploadText),1)]),_:1})):Wr("",!0)]),_:1},8,["hover-class","onClick","class","style"])):(Ir(),zr(l,{key:1,onClick:r.chooseFile},{default:So(()=>[Mi(e.$slots,"default",{},void 0,!0)]),_:3},8,["onClick"]))],64)):Wr("",!0)]),_:3}),jr(f,{mode:"center",show:i.popupShow,"onUpdate:show":t[0]||(t[0]=e=>i.popupShow=e)},{default:So(()=>[i.popupShow?(Ir(),zr(p,{key:0,id:"myVideo",src:i.currentItemIndex>=0?i.lists[i.currentItemIndex].url:"",onError:r.videoErrorCallback,"show-center-play-btn":"","object-fit":e.videoPreviewObjectFit,"show-fullscreen-btn":"true","enable-play-gesture":"",controls:"",autoplay:!0,"auto-pause-if-open-native":"",onLoadedmetadata:r.loadedVideoMetadata,"initial-time":.1},null,8,["src","onError","object-fit","onLoadedmetadata"])):Wr("",!0)]),_:1},8,["show"])]),_:3},8,["style"])}],["__scopeId","data-v-b01b62af"]]),_P=Object.freeze(Object.defineProperty({__proto__:null,default:vP},Symbol.toStringTag,{value:"Module"}));const wP=W_({name:"up-view",mixins:[hx,fx],emits:["click"],computed:{valueStyle(){}},props:{backgroundColor:"",color:"",flexDirection:"",justifyContent:"",alignItems:"",flex1:"",width:"",height:"",padding:"",margin:"",borderColor:""},data:()=>({}),methods:{addStyle:Mw,clickHandler(){this.$emit("click")}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:Qe(["u-view",e.class]),style:qe({backgroundColor:n.backgroundColor,color:n.color,flexDirection:n.flexDirection,justifyContent:n.justifyContent,alignItems:n.alignItems,flex1:n.flex1,width:n.width,height:n.height,padding:n.padding,margin:n.margin,borderColor:n.borderColor})},null,8,["class","style"])}],["__scopeId","data-v-69cb10b0"]]),xP=Object.freeze(Object.defineProperty({__proto__:null,default:wP},Symbol.toStringTag,{value:"Module"}));const SP=W_({name:"u-waterfall",props:{modelValue:{type:Array,required:!0,default:function(){return[]}},addTime:{type:[Number,String],default:200},idKey:{type:String,default:"id"},columns:{type:[Number,String],default:2},columnsMin:{type:[Number,String],default:2},minColumnWidth:{type:Number,default:230}},mixins:[hx,fx],data:()=>({columnList:[[]],children:[],initialized:!1,windowWidth:375,windowHeight:0}),watch:{copyFlowList:{handler(e,t){if(e&&0!=e.length){1==this.columnList.length&&this.initColumnList();let n=Array.isArray(t)&&t.length>0?t.length:0;this.handleData(e.slice(n))}else this.clear(!1)},immediate:!0},columns:{handler(){this.initColumnList(),this.copyFlowList.length>0&&this.redistributeData()},immediate:!1}},created(){this.initColumnList()},mounted(){this.initialized=!0,"auto"===this.columns&&hp(this.handleWindowResize)},beforeUnmount(){"auto"===this.columns&&pp(this.handleWindowResize)},computed:{copyFlowList(){return this.modelValue&&0!=this.modelValue.length?this.cloneData(this.modelValue):[]}},emits:["update:modelValue"],methods:{initColumnList(){this.windowWidth=Hb().windowWidth;const e=this.getColumnsCount();this.columnList=Array.from({length:e},()=>[])},getColumnsCount(){if("auto"===this.columns){const e=7;let t=Math.max(1,Math.floor(this.windowWidth/(this.minColumnWidth+e)));return t<this.columnsMin&&(t=this.columnsMin),t}return parseInt(this.columns)||2},handleWindowResize(e){this.windowWidth=e.size.windowWidth,this.windowHeight=e.size.windowHeight,this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.getColumnsCount()!==this.columnList.length&&this.redistributeData()},300)},async redistributeData(){this.initColumnList();const e=this.cloneData(this.copyFlowList);this.handleData(e)},async handleData(e){if(!e||0===e.length)return;const t=new Array(this.columnList.length).fill(0);for(let o=0;o<this.columnList.length;o++)try{const e=await this.$uGetRect(`#u-column-${o}`);t[o]=e.height||0}catch(n){t[o]=0}for(let o of e){const e=t.indexOf(Math.min(...t));this.columnList[e].push(o),await kw(30),this.$nextTick(async()=>{try{const n=await this.$uGetRect(`#u-column-${e}`);n.height&&(t[e]=n.height)}catch(n){}})}},cloneData:e=>JSON.parse(JSON.stringify(e)),clear(e=!0){this.initColumnList(),e&&this.$emit("update:modelValue",[])},remove(e){for(let n=0;n<this.columnList.length;n++){const t=this.columnList[n].findIndex(t=>t[this.idKey]==e);if(-1!==t){this.columnList[n].splice(t,1);break}}const t=this.modelValue.findIndex(t=>t[this.idKey]==e);if(-1!==t){const e=this.cloneData(this.modelValue);e.splice(t,1),this.$emit("update:modelValue",e)}},modify(e,t,n){let o=!1,i=null;for(let r=0;r<this.columnList.length;r++){const s=this.columnList[r].findIndex(t=>t[this.idKey]==e);if(-1!==s){this.columnList[r][s][t]=n,i=this.columnList[r][s],o=!0;break}}if(o&&i){const o=this.modelValue.findIndex(t=>t[this.idKey]==e);if(-1!==o){let e=this.cloneData(this.modelValue);e[o][t]=n,this.$emit("update:modelValue",e)}}}}},[["render",function(e,t,n,o,i,r){const s=Ay;return Ir(),zr(s,{class:"u-waterfall"},{default:So(()=>[(Ir(!0),Mr(xr,null,Pi(i.columnList,(t,n)=>(Ir(),zr(s,{key:n,ref_for:!0,ref:`u-column-${n}`,id:`u-column-${n}`,class:"u-column"},{default:So(()=>[Mi(e.$slots,"column",{colIndex:n,colList:t},void 0,!0),Mi(e.$slots,"left",{colIndex:n,leftList:t},void 0,!0),e.$slots.left||e.$slots.column?Wr("",!0):(Ir(!0),Mr(xr,{key:0},Pi(t,(t,n)=>Mi(e.$slots,"default",{key:n,item:t,itemIndex:n},void 0,!0)),128))]),_:2},1032,["id"]))),128))]),_:3})}],["__scopeId","data-v-db7c3646"]]),kP=Object.freeze(Object.defineProperty({__proto__:null,default:SP},Symbol.toStringTag,{value:"Module"}));const CP={add:function(e,t){var n,o,i;try{n=e.toString().split(".")[1].length}catch(r){n=0}try{o=t.toString().split(".")[1].length}catch(r){o=0}return(e*(i=Math.pow(10,Math.max(n,o)))+t*i)/i},sub:function(e,t){var n,o,i,r;try{n=e.toString().split(".")[1].length}catch(s){n=0}try{o=t.toString().split(".")[1].length}catch(s){o=0}return i=Math.pow(10,Math.max(n,o)),r=n>=o?n:o,Math.abs(((e*i-t*i)/i).toFixed(r))},mul:function(e,t){var n=0,o=e.toString(),i=t.toString();try{n+=o.split(".")[1].length}catch(r){}try{n+=i.split(".")[1].length}catch(r){}return Number(o.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)},div:function(e,t){var n,o,i=0,r=0;try{i=e.toString().split(".")[1].length}catch(s){}try{r=t.toString().split(".")[1].length}catch(s){}return n=Number(e.toString().replace(".","")),o=Number(t.toString().replace(".","")),xyutil.mul(n/o,Math.pow(10,r-i))}};let AP="none";AP="vue3",AP="h5";function TP(e){Kw.shallowMerge(Q_,e.config||{}),Kw.shallowMerge(cx,e.props||{}),Kw.shallowMerge(G_,e.color||{}),Kw.shallowMerge(Y_,e.zIndex||{})}Kw.setConfig=TP;const IP={route:px,date:Kw.timeFormat,colorGradient:Ex.colorGradient,hexToRgb:Ex.hexToRgb,rgbToHex:Ex.rgbToHex,colorToRgba:Ex.colorToRgba,test:fw,type:["primary","success","error","warning","info"],http:cw,config:Q_,zIndex:Y_,debounce:function(e,t=500,n=!1){if(null!==hA&&clearTimeout(hA),n){const n=!hA;hA=setTimeout(()=>{hA=null},t),n&&"function"==typeof e&&e()}else hA=setTimeout(()=>{"function"==typeof e&&e()},t)},throttle:CS,calc:CP,mixin:fx,mpMixin:hx,...Kw,color:G_,platform:"h5"},BP=Object.assign({"./components/u-action-sheet-data/u-action-sheet-data.vue":q_,"./components/u-action-sheet/u-action-sheet.vue":Zx,"./components/u-agreement/u-agreement.vue":tS,"./components/u-album/u-album.vue":rS,"./components/u-alert/u-alert.vue":lS,"./components/u-avatar-group/u-avatar-group.vue":fS,"./components/u-avatar/u-avatar.vue":dS,"./components/u-back-top/u-back-top.vue":gS,"./components/u-badge/u-badge.vue":bS,"./components/u-barcode/u-barcode.vue":_S,"./components/u-box/u-box.vue":xS,"./components/u-button/u-button.vue":TS,"./components/u-calendar/u-calendar.vue":OS,"./components/u-car-keyboard/u-car-keyboard.vue":DS,"./components/u-card/u-card.vue":jS,"./components/u-cate-tab/u-cate-tab.vue":FS,"./components/u-cell-group/u-cell-group.vue":US,"./components/u-cell/u-cell.vue":YS,"./components/u-checkbox-group/u-checkbox-group.vue":KS,"./components/u-checkbox/u-checkbox.vue":ek,"./components/u-circle-progress/u-circle-progress.vue":nk,"./components/u-city-locate/u-city-locate.vue":ik,"./components/u-code-input/u-code-input.vue":ak,"./components/u-code/u-code.vue":uk,"./components/u-col/u-col.vue":hk,"./components/u-collapse-item/u-collapse-item.vue":mk,"./components/u-collapse/u-collapse.vue":bk,"./components/u-color-picker/u-color-picker.vue":_k,"./components/u-column-notice/u-column-notice.vue":Sk,"./components/u-copy/u-copy.vue":Ck,"./components/u-count-down/u-count-down.vue":Ok,"./components/u-count-to/u-count-to.vue":Dk,"./components/u-coupon/u-coupon.vue":$k,"./components/u-cropper/u-cropper.vue":Fk,"./components/u-datetime-picker/u-datetime-picker.vue":Kk,"./components/u-divider/u-divider.vue":eC,"./components/u-dragsort/u-dragsort.vue":nC,"./components/u-dropdown-item/u-dropdown-item.vue":rC,"./components/u-dropdown/u-dropdown.vue":lC,"./components/u-empty/u-empty.vue":dC,"./components/u-float-button/u-float-button.vue":pC,"./components/u-form-item/u-form-item.vue":gC,"./components/u-form/u-form.vue":NC,"./components/u-gap/u-gap.vue":Ox,"./components/u-grid-item/u-grid-item.vue":HC,"./components/u-grid/u-grid.vue":QC,"./components/u-icon/u-icon.vue":eA,"./components/u-image/u-image.vue":oA,"./components/u-index-anchor/u-index-anchor.vue":rA,"./components/u-index-item/u-index-item.vue":aA,"./components/u-index-list/u-index-list.vue":uA,"./components/u-input/u-input.vue":fA,"./components/u-keyboard/u-keyboard.vue":_A,"./components/u-lazy-load/u-lazy-load.vue":xA,"./components/u-line-progress/u-line-progress.vue":CA,"./components/u-line/u-line.vue":gx,"./components/u-link/u-link.vue":IA,"./components/u-list-item/u-list-item.vue":EA,"./components/u-list/u-list.vue":zA,"./components/u-loading-icon/u-loading-icon.vue":Mx,"./components/u-loading-page/u-loading-page.vue":LA,"./components/u-loadmore/u-loadmore.vue":$A,"./components/u-markdown/u-markdown.vue":KT,"./components/u-message-input/u-message-input.vue":ZT,"./components/u-modal/u-modal.vue":nI,"./components/u-navbar-mini/u-navbar-mini.vue":rI,"./components/u-navbar/u-navbar.vue":lI,"./components/u-no-network/u-no-network.vue":uI,"./components/u-notice-bar/u-notice-bar.vue":mI,"./components/u-notify/u-notify.vue":bI,"./components/u-number-box/u-number-box.vue":wI,"./components/u-number-keyboard/u-number-keyboard.vue":yA,"./components/u-overlay/u-overlay.vue":Fx,"./components/u-pagination/u-pagination.vue":SI,"./components/u-parse/u-parse.vue":VI,"./components/u-pdf-reader/u-pdf-reader.vue":UI,"./components/u-picker-column/u-picker-column.vue":QI,"./components/u-picker-data/u-picker-data.vue":GI,"./components/u-picker/u-picker.vue":Yk,"./components/u-popup/u-popup.vue":Gx,"./components/u-poster/u-poster.vue":KI,"./components/u-pull-refresh/u-pull-refresh.vue":ZI,"./components/u-qrcode/u-qrcode.vue":iB,"./components/u-radio-group/u-radio-group.vue":lB,"./components/u-radio/u-radio.vue":dB,"./components/u-rate/u-rate.vue":fB,"./components/u-read-more/u-read-more.vue":yB,"./components/u-refresh-virtual-list/u-refresh-virtual-list.vue":wB,"./components/u-row-notice/u-row-notice.vue":hI,"./components/u-row/u-row.vue":SB,"./components/u-safe-bottom/u-safe-bottom.vue":qx,"./components/u-scroll-list/u-scroll-list.vue":EB,"./components/u-search/u-search.vue":zB,"./components/u-select/u-select.vue":LB,"./components/u-short-video/u-short-video.vue":NB,"./components/u-signature/u-signature.vue":jB,"./components/u-skeleton/u-skeleton.vue":VB,"./components/u-slider/u-slider.vue":qB,"./components/u-status-bar/u-status-bar.vue":Wx,"./components/u-steps-item/u-steps-item.vue":GB,"./components/u-steps/u-steps.vue":JB,"./components/u-sticky/u-sticky.vue":tE,"./components/u-subsection/u-subsection.vue":iE,"./components/u-swipe-action-item/u-swipe-action-item.vue":mE,"./components/u-swipe-action/u-swipe-action.vue":bE,"./components/u-swiper-indicator/u-swiper-indicator.vue":_E,"./components/u-swiper/u-swiper.vue":SE,"./components/u-switch/u-switch.vue":AE,"./components/u-tabbar-item/u-tabbar-item.vue":EE,"./components/u-tabbar/u-tabbar.vue":zE,"./components/u-table/u-table.vue":RE,"./components/u-table2/u-table2.vue":DE,"./components/u-tabs-item/u-tabs-item.vue":$E,"./components/u-tabs/u-tabs.vue":FE,"./components/u-tag/u-tag.vue":UE,"./components/u-td/u-td.vue":QE,"./components/u-text/u-text.vue":KE,"./components/u-textarea/u-textarea.vue":eP,"./components/u-th/u-th.vue":nP,"./components/u-title/u-title.vue":iP,"./components/u-toast/u-toast.vue":sP,"./components/u-toolbar/u-toolbar.vue":Uk,"./components/u-tooltip/u-tooltip.vue":cP,"./components/u-tr/u-tr.vue":dP,"./components/u-transition/u-transition.vue":$x,"./components/u-tree/u-tree.vue":pP,"./components/u-upload/u-upload.vue":_P,"./components/u-view/u-view.vue":xP,"./components/u-virtual-list/u-virtual-list.vue":vB,"./components/u-waterfall/u-waterfall.vue":kP});let EP=[];for(const MP in BP){let e=BP[MP].default;e.name&&0!==e.name.indexOf("u--")&&(e.install=function(t){t.component(name,e)},EP.push(e))}const PP={install:(e,t="")=>{if(EP.forEach(function(t){const n=t.name.replace(/u-([a-zA-Z0-9-_]+)/g,"up-$1");n!=t.name&&e.component(t.name,t),e.component(n,t)}),t){uni.upuiParams=t;let e=t();e.httpIns&&e.httpIns(cw),e.options&&TP(e.options)}uni.$u=IP,e.config.globalProperties.$u=IP,e.mixin(fx)}};(function(){const e=pa(V_);return e.use(PP,()=>({options:{config:{unit:"rpx"}}})),{app:e}})().app.use(Uy).mount("#app");export{gh as $,c_ as A,m_ as B,f_ as C,bh as D,Bo as E,xr as F,yx as G,Po as H,Mi as I,Pi as J,Cx as K,Sx as L,kx as M,Hn as N,ds as O,wx as P,Un as Q,$w as R,dy as S,Vo as T,Os as U,jv as V,xx as W,vx as X,_x as Y,Fb as Z,W_ as _,jr as a,No as a0,Ye as a1,Hr as a2,Gv as a3,ao as a4,_g as a5,gd as a6,Zr as a7,xi as a8,db as a9,by as aa,gy as ab,Df as ac,p_ as ad,zn as ae,Gg as af,dd as ag,s_ as ah,pf as ai,mf as aj,df as ak,Bv as al,Vr as b,zr as c,$r as d,wy as e,qe as f,ua as g,Wr as h,Ay as i,Jm as j,ev as k,Cf as l,Hb as m,Qe as n,Ir as o,Mr as p,sp as q,Zy as r,Kb as s,X as t,fh as u,cc as v,So as w,fp as x,nv as y,l_ as z};
