From 9bf69a3223d9527b1bcd586d610bec3cbc237fa8 Mon Sep 17 00:00:00 2001 From: qiang Date: Tue, 2 Nov 2021 18:12:27 +0800 Subject: [PATCH] chore: build --- .../uni-app-plus/dist/uni-app-view.umd.js | 6 +- packages/uni-stat/dist/uni-stat.cjs.js | 1888 ++++++++--------- packages/uni-stat/dist/uni-stat.es.js | 1888 ++++++++--------- 3 files changed, 1891 insertions(+), 1891 deletions(-) diff --git a/packages/uni-app-plus/dist/uni-app-view.umd.js b/packages/uni-app-plus/dist/uni-app-view.umd.js index ae71d71ff..8528eefc6 100644 --- a/packages/uni-app-plus/dist/uni-app-view.umd.js +++ b/packages/uni-app-plus/dist/uni-app-view.umd.js @@ -1,3 +1,3 @@ -(function(yn){typeof define=="function"&&define.amd?define(yn):yn()})(function(){"use strict";var yn="",fy="",cy="",Gt={exports:{}},Jr={exports:{}},Qr={exports:{}},nc=Qr.exports={version:"2.6.12"};typeof __e=="number"&&(__e=nc);var pt={exports:{}},ei=pt.exports=typeof ei!="undefined"&&ei.Math==Math?ei:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=ei);var ac=Qr.exports,Ns=pt.exports,ks="__core-js_shared__",Bs=Ns[ks]||(Ns[ks]={});(Jr.exports=function(e,t){return Bs[e]||(Bs[e]=t!==void 0?t:{})})("versions",[]).push({version:ac.version,mode:"window",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"});var sc=0,oc=Math.random(),Sn=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++sc+oc).toString(36))},xn=Jr.exports("wks"),lc=Sn,Tn=pt.exports.Symbol,Ds=typeof Tn=="function",uc=Gt.exports=function(e){return xn[e]||(xn[e]=Ds&&Tn[e]||(Ds?Tn:lc)("Symbol."+e))};uc.store=xn;var ti={},En=function(e){return typeof e=="object"?e!==null:typeof e=="function"},fc=En,Cn=function(e){if(!fc(e))throw TypeError(e+" is not an object!");return e},ri=function(e){try{return!!e()}catch(t){return!0}},hr=!ri(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Fs=En,On=pt.exports.document,cc=Fs(On)&&Fs(On.createElement),$s=function(e){return cc?On.createElement(e):{}},vc=!hr&&!ri(function(){return Object.defineProperty($s("div"),"a",{get:function(){return 7}}).a!=7}),ii=En,dc=function(e,t){if(!ii(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!ii(i=r.call(e))||typeof(r=e.valueOf)=="function"&&!ii(i=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!ii(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")},Ws=Cn,hc=vc,gc=dc,pc=Object.defineProperty;ti.f=hr?Object.defineProperty:function(t,r,i){if(Ws(t),r=gc(r,!0),Ws(i),hc)try{return pc(t,r,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[r]=i.value),t};var Us=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},mc=ti,_c=Us,Zt=hr?function(e,t,r){return mc.f(e,t,_c(1,r))}:function(e,t,r){return e[t]=r,e},In=Gt.exports("unscopables"),Mn=Array.prototype;Mn[In]==null&&Zt(Mn,In,{});var bc=function(e){Mn[In][e]=!0},wc=function(e,t){return{value:t,done:!!e}},An={},yc={}.toString,Sc=function(e){return yc.call(e).slice(8,-1)},xc=Sc,Tc=Object("z").propertyIsEnumerable(0)?Object:function(e){return xc(e)=="String"?e.split(""):Object(e)},Vs=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Ec=Tc,Cc=Vs,ni=function(e){return Ec(Cc(e))},ai={exports:{}},Oc={}.hasOwnProperty,si=function(e,t){return Oc.call(e,t)},Ic=Jr.exports("native-function-to-string",Function.toString),Mc=pt.exports,oi=Zt,Hs=si,Rn=Sn("src"),Pn=Ic,js="toString",Ac=(""+Pn).split(js);Qr.exports.inspectSource=function(e){return Pn.call(e)},(ai.exports=function(e,t,r,i){var n=typeof r=="function";n&&(Hs(r,"name")||oi(r,"name",t)),e[t]!==r&&(n&&(Hs(r,Rn)||oi(r,Rn,e[t]?""+e[t]:Ac.join(String(t)))),e===Mc?e[t]=r:i?e[t]?e[t]=r:oi(e,t,r):(delete e[t],oi(e,t,r)))})(Function.prototype,js,function(){return typeof this=="function"&&this[Rn]||Pn.call(this)});var zs=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e},Rc=zs,Pc=function(e,t,r){if(Rc(e),t===void 0)return e;switch(r){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,a){return e.call(t,i,n,a)}}return function(){return e.apply(t,arguments)}},Jt=pt.exports,li=Qr.exports,Lc=Zt,Nc=ai.exports,Ys=Pc,Ln="prototype",De=function(e,t,r){var i=e&De.F,n=e&De.G,a=e&De.S,s=e&De.P,o=e&De.B,l=n?Jt:a?Jt[t]||(Jt[t]={}):(Jt[t]||{})[Ln],u=n?li:li[t]||(li[t]={}),v=u[Ln]||(u[Ln]={}),c,_,g,m;n&&(r=t);for(c in r)_=!i&&l&&l[c]!==void 0,g=(_?l:r)[c],m=o&&_?Ys(g,Jt):s&&typeof g=="function"?Ys(Function.call,g):g,l&&Nc(l,c,g,e&De.U),u[c]!=g&&Lc(u,c,m),s&&v[c]!=g&&(v[c]=g)};Jt.core=li,De.F=1,De.G=2,De.S=4,De.P=8,De.B=16,De.W=32,De.U=64,De.R=128;var Nn=De,kc=Math.ceil,Bc=Math.floor,qs=function(e){return isNaN(e=+e)?0:(e>0?Bc:kc)(e)},Dc=qs,Fc=Math.min,$c=function(e){return e>0?Fc(Dc(e),9007199254740991):0},Wc=qs,Uc=Math.max,Vc=Math.min,Hc=function(e,t){return e=Wc(e),e<0?Uc(e+t,0):Vc(e,t)},jc=ni,zc=$c,Yc=Hc,qc=function(e){return function(t,r,i){var n=jc(t),a=zc(n.length),s=Yc(i,a),o;if(e&&r!=r){for(;a>s;)if(o=n[s++],o!=o)return!0}else for(;a>s;s++)if((e||s in n)&&n[s]===r)return e||s||0;return!e&&-1}},Xs=Jr.exports("keys"),Xc=Sn,kn=function(e){return Xs[e]||(Xs[e]=Xc(e))},Ks=si,Kc=ni,Gc=qc(!1),Zc=kn("IE_PROTO"),Jc=function(e,t){var r=Kc(e),i=0,n=[],a;for(a in r)a!=Zc&&Ks(r,a)&&n.push(a);for(;t.length>i;)Ks(r,a=t[i++])&&(~Gc(n,a)||n.push(a));return n},Gs="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Qc=Jc,ev=Gs,Bn=Object.keys||function(t){return Qc(t,ev)},tv=ti,rv=Cn,iv=Bn,nv=hr?Object.defineProperties:function(t,r){rv(t);for(var i=iv(r),n=i.length,a=0,s;n>a;)tv.f(t,s=i[a++],r[s]);return t},Zs=pt.exports.document,av=Zs&&Zs.documentElement,sv=Cn,ov=nv,Js=Gs,lv=kn("IE_PROTO"),Dn=function(){},Fn="prototype",ui=function(){var e=$s("iframe"),t=Js.length,r="<",i=">",n;for(e.style.display="none",av.appendChild(e),e.src="javascript:",n=e.contentWindow.document,n.open(),n.write(r+"script"+i+"document.F=Object"+r+"/script"+i),n.close(),ui=n.F;t--;)delete ui[Fn][Js[t]];return ui()},uv=Object.create||function(t,r){var i;return t!==null?(Dn[Fn]=sv(t),i=new Dn,Dn[Fn]=null,i[lv]=t):i=ui(),r===void 0?i:ov(i,r)},fv=ti.f,cv=si,Qs=Gt.exports("toStringTag"),eo=function(e,t,r){e&&!cv(e=r?e:e.prototype,Qs)&&fv(e,Qs,{configurable:!0,value:t})},vv=uv,dv=Us,hv=eo,to={};Zt(to,Gt.exports("iterator"),function(){return this});var gv=function(e,t,r){e.prototype=vv(to,{next:dv(1,r)}),hv(e,t+" Iterator")},pv=Vs,ro=function(e){return Object(pv(e))},mv=si,_v=ro,io=kn("IE_PROTO"),bv=Object.prototype,wv=Object.getPrototypeOf||function(e){return e=_v(e),mv(e,io)?e[io]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?bv:null},$n=Nn,yv=ai.exports,no=Zt,ao=An,Sv=gv,xv=eo,Tv=wv,gr=Gt.exports("iterator"),Wn=!([].keys&&"next"in[].keys()),Ev="@@iterator",so="keys",fi="values",oo=function(){return this},Cv=function(e,t,r,i,n,a,s){Sv(r,t,i);var o=function(f){if(!Wn&&f in c)return c[f];switch(f){case so:return function(){return new r(this,f)};case fi:return function(){return new r(this,f)}}return function(){return new r(this,f)}},l=t+" Iterator",u=n==fi,v=!1,c=e.prototype,_=c[gr]||c[Ev]||n&&c[n],g=_||o(n),m=n?u?o("entries"):g:void 0,b=t=="Array"&&c.entries||_,w,p,h;if(b&&(h=Tv(b.call(new e)),h!==Object.prototype&&h.next&&(xv(h,l,!0),typeof h[gr]!="function"&&no(h,gr,oo))),u&&_&&_.name!==fi&&(v=!0,g=function(){return _.call(this)}),(Wn||v||!c[gr])&&no(c,gr,g),ao[t]=g,ao[l]=oo,n)if(w={values:u?g:o(fi),keys:a?g:o(so),entries:m},s)for(p in w)p in c||yv(c,p,w[p]);else $n($n.P+$n.F*(Wn||v),t,w);return w},Un=bc,ci=wc,lo=An,Ov=ni,Iv=Cv(Array,"Array",function(e,t){this._t=Ov(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,ci(1)):t=="keys"?ci(0,r):t=="values"?ci(0,e[r]):ci(0,[r,e[r]])},"values");lo.Arguments=lo.Array,Un("keys"),Un("values"),Un("entries");for(var uo=Iv,Mv=Bn,Av=ai.exports,Rv=pt.exports,fo=Zt,co=An,vo=Gt.exports,ho=vo("iterator"),go=vo("toStringTag"),po=co.Array,mo={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},_o=Mv(mo),Vn=0;Vn<_o.length;Vn++){var vi=_o[Vn],Pv=mo[vi],bo=Rv[vi],Pt=bo&&bo.prototype,di;if(Pt&&(Pt[ho]||fo(Pt,ho,po),Pt[go]||fo(Pt,go,vi),co[vi]=po,Pv))for(di in uo)Pt[di]||Av(Pt,di,uo[di],!0)}function hi(e,t){for(var r=Object.create(null),i=e.split(","),n=0;n!!r[a.toLowerCase()]:a=>!!r[a]}var Lv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Nv=hi(Lv);function wo(e){return!!e||e===""}var kv=hi("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width");function Hn(e){if(le(e)){for(var t={},r=0;r{if(r){var i=r.split(Dv);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Fv(e){var t="";if(!e||ye(e))return t;for(var r in e){var i=e[r],n=r.startsWith("--")?r:Ve(r);(ye(i)||typeof i=="number"&&kv(n))&&(t+="".concat(n,":").concat(i,";"))}return t}function jn(e){var t="";if(ye(e))t=e;else if(le(e))for(var r=0;r{},$v=()=>!1,Wv=/^on[^a-z]/,gi=e=>Wv.test(e),zn=e=>e.startsWith("onUpdate:"),ce=Object.assign,So=(e,t)=>{var r=e.indexOf(t);r>-1&&e.splice(r,1)},Uv=Object.prototype.hasOwnProperty,te=(e,t)=>Uv.call(e,t),le=Array.isArray,mr=e=>_r(e)==="[object Map]",Vv=e=>_r(e)==="[object Set]",ae=e=>typeof e=="function",ye=e=>typeof e=="string",Yn=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",xo=e=>Be(e)&&ae(e.then)&&ae(e.catch),Hv=Object.prototype.toString,_r=e=>Hv.call(e),qn=e=>_r(e).slice(8,-1),it=e=>_r(e)==="[object Object]",Xn=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pi=hi(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mi=e=>{var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}},jv=/-(\w)/g,mt=mi(e=>e.replace(jv,(t,r)=>r?r.toUpperCase():"")),zv=/\B([A-Z])/g,Ve=mi(e=>e.replace(zv,"-$1").toLowerCase()),_i=mi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kn=mi(e=>e?"on".concat(_i(e)):""),br=(e,t)=>!Object.is(e,t),Gn=(e,t)=>{for(var r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Yv=e=>{var t=parseFloat(e);return isNaN(t)?e:t},To,qv=()=>To||(To=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"||typeof window!="undefined"?window:{}),Zn=0;function Jn(e){var t=Date.now(),r=Zn?t-Zn:0;Zn=t;for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;aJSON.stringify(s)).join(" "))}function Qn(e){return ce({},e.dataset,e.__uniDataset)}function ea(e){return{passive:e}}function ta(e){var{id:t,offsetTop:r,offsetLeft:i}=e;return{id:t,dataset:Qn(e),offsetTop:r,offsetLeft:i}}function Xv(e,t,r){var i=document.fonts;if(i){var n=new FontFace(e,t,r);return n.load().then(()=>{i.add&&i.add(n)})}return new Promise(a=>{var s=document.createElement("style"),o=[];if(r){var{style:l,weight:u,stretch:v,unicodeRange:c,variant:_,featureSettings:g}=r;l&&o.push("font-style:".concat(l)),u&&o.push("font-weight:".concat(u)),v&&o.push("font-stretch:".concat(v)),c&&o.push("unicode-range:".concat(c)),_&&o.push("font-variant:".concat(_)),g&&o.push("font-feature-settings:".concat(g))}s.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(o.join(";"),"}"),document.head.appendChild(s),a()})}function Kv(e,t){if(ye(e)){var r=document.querySelector(e);r&&(e=r.getBoundingClientRect().top+window.pageYOffset)}e<0&&(e=0);var i=document.documentElement,{clientHeight:n,scrollHeight:a}=i;if(e=Math.min(e,a-n),t===0){i.scrollTop=document.body.scrollTop=e;return}if(window.scrollY!==e){var s=o=>{if(o<=0){window.scrollTo(0,e);return}var l=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+l/o*10),s(o-10)})};s(t)}}function Gv(){return typeof __channelId__=="string"&&__channelId__}function Zv(e,t){switch(qn(t)){case"Function":return"function() { [native code] }";default:return t}}function Jv(e,t,r){if(Gv())return r.push(t.replace("at ","uni-app:///")),console[e].apply(console,r);var i=r.map(function(n){var a=_r(n).toLowerCase();if(a==="[object object]"||a==="[object array]")try{n="---BEGIN:JSON---"+JSON.stringify(n,Zv)+"---END:JSON---"}catch(o){n=a}else if(n===null)n="---NULL---";else if(n===void 0)n="---UNDEFINED---";else{var s=qn(n).toUpperCase();s==="NUMBER"||s==="BOOLEAN"?n="---BEGIN:"+s+"---"+n+"---END:"+s+"---":n=String(n)}return n});return i.join("---COMMA---")+" "+t}function Qv(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n{var i=t[r];return i||(t[r]=e(r))}}function gd(e){return hd(e)}function sa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r;return function(){if(e){for(var i=arguments.length,n=new Array(i),a=0;ae.apply(this,arguments);r=setTimeout(n,t)};return i.cancel=function(){clearTimeout(r)},i}var wr=` -`,Ro=44,yi="#007aff",md=/^([a-z-]+:)?\/\//i,_d=/^data:.*,.*/,Po="wxs://",Lo="json://",bd="wxsModules",wd="renderjsModules",yd="onPageScroll",Sd="onReachBottom",xd="onWxsInvokeCallMethod",Td=Array.isArray,Ed=e=>e!==null&&typeof e=="object",Cd=["{","}"];class Od{constructor(){this._caches=Object.create(null)}interpolate(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Cd;if(!r)return[t];var n=this._caches[t];return n||(n=Ad(t,i),this._caches[t]=n),Rd(n,r)}}var Id=/^(?:\d)+/,Md=/^(?:\w)+/;function Ad(e,t){for(var[r,i]=t,n=[],a=0,s="";aPd.call(e,t),Ld=new Od;function Nd(e,t){return!!t.find(r=>e.indexOf(r)!==-1)}function kd(e,t){return t.find(r=>e.indexOf(r)===0)}function ko(e,t){if(!!e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e==="chinese")return yr;if(e.indexOf("zh")===0)return e.indexOf("-hans")>-1?yr:e.indexOf("-hant")>-1||Nd(e,["-tw","-hk","-mo","-cht"])?Si:yr;var r=kd(e,[_t,oa,la]);if(r)return r}}class Bd{constructor(t){var{locale:r,fallbackLocale:i,messages:n,watcher:a,formater:s}=t;this.locale=_t,this.fallbackLocale=_t,this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=s||Ld,this.messages=n||{},this.setLocale(r||_t),a&&this.watchLocale(a)}setLocale(t){var r=this.locale;this.locale=ko(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach(i=>{i(this.locale,r)})}getLocale(){return this.locale}watchLocale(t){var r=this.watchers.push(t)-1;return()=>{this.watchers.splice(r,1)}}add(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=this.messages[t];n?i?Object.assign(n,r):Object.keys(r).forEach(a=>{No(n,a)||(n[a]=r[a])}):this.messages[t]=r}f(t,r,i){return this.formater.interpolate(t,r,i).join("")}t(t,r,i){var n=this.message;return typeof r=="string"?(r=ko(r,this.messages),r&&(n=this.messages[r])):i=r,No(n,t)?this.formater.interpolate(n[t],i).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}function Dd(e,t){e.$watchLocale?e.$watchLocale(r=>{t.setLocale(r)}):e.$watch(()=>e.$locale,r=>{t.setLocale(r)})}function Fd(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof window!="undefined"&&window.getLocale?window.getLocale():_t}function $d(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;typeof e!="string"&&([e,t]=[t,e]),typeof e!="string"&&(e=Fd()),typeof r!="string"&&(r=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||_t);var n=new Bd({locale:e,fallbackLocale:r,messages:t,watcher:i}),a=(s,o)=>{if(typeof getApp!="function")a=function(u,v){return n.t(u,v)};else{var l=!1;a=function(u,v){var c=getApp().$vm;return c&&(c.$locale,l||(l=!0,Dd(c,n))),n.t(u,v)}}return a(s,o)};return{i18n:n,f(s,o,l){return n.f(s,o,l)},t(s,o){return a(s,o)},add(s,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return n.add(s,o,l)},watch(s){return n.watchLocale(s)},getLocale(){return n.getLocale()},setLocale(s){return n.setLocale(s)}}}var ua;function He(){if(!ua){var e;typeof getApp=="function"?e=weex.requireModule("plus").getLanguage():e=plus.webview.currentWebview().getStyle().locale,ua=$d(e)}return ua}function nt(e,t,r){return t.reduce((i,n,a)=>(i[e+n]=r[a],i),{})}var Wd=sa(()=>{var e="uni.picker.",t=["done","cancel"];He().add(_t,nt(e,t,["Done","Cancel"]),!1),He().add(la,nt(e,t,["OK","Cancelar"]),!1),He().add(oa,nt(e,t,["OK","Annuler"]),!1),He().add(yr,nt(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1),He().add(Si,nt(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1)}),Ud=sa(()=>{var e="uni.button.",t=["feedback.title","feedback.send"];He().add(_t,nt(e,t,["feedback","send"]),!1),He().add(la,nt(e,t,["realimentaci\xF3n","enviar"]),!1),He().add(oa,nt(e,t,["retour d'information","envoyer"]),!1),He().add(yr,nt(e,t,["\u95EE\u9898\u53CD\u9988","\u53D1\u9001"]),!1),He().add(Si,nt(e,t,["\u554F\u984C\u53CD\u994B","\u767C\u9001"]),!1)}),Bo=function(){};Bo.prototype={on:function(e,t,r){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var i=this;function n(){i.off(e,n),t.apply(r,arguments)}return n._=t,this.on(e,n,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),i=0,n=r.length;for(i;i1?i-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:!1;t[n?"once":"on"]("".concat(e,".").concat(r),i)},unsubscribe(r,i){t.off("".concat(e,".").concat(r),i)},subscribeHandler(r,i,n){t.emit("".concat(e,".").concat(r),i,n)}}}var Do="invokeViewApi",Fo="invokeServiceApi",Hd=1,jd=(e,t,r)=>{var{subscribe:i,publishHandler:n}=UniViewJSBridge,a=r?Hd++:0;r&&i(Fo+"."+a,r,!0),n(Fo,{id:a,name:e,args:t})},xi=Object.create(null);function Ti(e,t){return e+"."+t}function zd(e,t){UniViewJSBridge.subscribe(Ti(e,Do),t?t($o):$o)}function ct(e,t,r){t=Ti(e,t),xi[t]||(xi[t]=r)}function Yd(e,t){t=Ti(e,t),delete xi[t]}function $o(e,t){var{id:r,name:i,args:n}=e;i=Ti(t,i);var a=o=>{r&&UniViewJSBridge.publishHandler(Do+"."+r,o)},s=xi[i];s?s(n,a):a({})}var qd=ce(Vd("service"),{invokeServiceMethod:jd}),Xd=350,Wo=10,Ei=ea(!0),Sr;function xr(){Sr&&(clearTimeout(Sr),Sr=null)}var Uo=0,Vo=0;function Kd(e){if(xr(),e.touches.length===1){var{pageX:t,pageY:r}=e.touches[0];Uo=t,Vo=r,Sr=setTimeout(function(){var i=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});i.touches=e.touches,i.changedTouches=e.changedTouches,e.target.dispatchEvent(i)},Xd)}}function Gd(e){if(!!Sr){if(e.touches.length!==1)return xr();var{pageX:t,pageY:r}=e.touches[0];if(Math.abs(t-Uo)>Wo||Math.abs(r-Vo)>Wo)return xr()}}function Zd(){window.addEventListener("touchstart",Kd,Ei),window.addEventListener("touchmove",Gd,Ei),window.addEventListener("touchend",xr,Ei),window.addEventListener("touchcancel",xr,Ei)}function Ho(e,t){var r=Number(e);return isNaN(r)?t:r}function Jd(){var e=/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number",t=e&&Math.abs(window.orientation)===90,r=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,i=Math.min(window.innerWidth,document.documentElement.clientWidth,r)||r;return i}function Qd(){function e(){var t=__uniConfig.globalStyle||{},r=Ho(t.rpxCalcMaxDeviceWidth,960),i=Ho(t.rpxCalcBaseDeviceWidth,375),n=Jd();n=n<=r?n:i,document.documentElement.style.fontSize=n/23.4375+"px"}e(),document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e),window.addEventListener("resize",e)}function eh(){Qd(),Zd()}var th=ri,rh=function(e,t){return!!e&&th(function(){t?e.call(null,function(){},1):e.call(null)})},fa=Nn,ih=zs,jo=ro,zo=ri,ca=[].sort,Yo=[1,2,3];fa(fa.P+fa.F*(zo(function(){Yo.sort(void 0)})||!zo(function(){Yo.sort(null)})||!rh(ca)),"Array",{sort:function(t){return t===void 0?ca.call(jo(this)):ca.call(jo(this),ih(t))}});var Lt,Ci=[];class nh{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.active=!0,this.effects=[],this.cleanups=[],!t&&Lt&&(this.parent=Lt,this.index=(Lt.scopes||(Lt.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(Ci.push(this),Lt=this)}off(){this.active&&(Ci.pop(),Lt=Ci[Ci.length-1])}stop(t){if(this.active){if(this.effects.forEach(i=>i.stop()),this.cleanups.forEach(i=>i()),this.scopes&&this.scopes.forEach(i=>i.stop(!0)),this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function ah(e,t){t=t||Lt,t&&t.active&&t.effects.push(e)}var va=e=>{var t=new Set(e);return t.w=0,t.n=0,t},qo=e=>(e.w&bt)>0,Xo=e=>(e.n&bt)>0,sh=e=>{var{deps:t}=e;if(t.length)for(var r=0;r{var{deps:t}=e;if(t.length){for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],ah(this,i)}run(){if(!this.active)return this.fn();if(!Er.includes(this))try{return Er.push(Nt=this),lh(),bt=1<<++Tr,Tr<=ha?sh(this):Ko(this),this.fn()}finally{Tr<=ha&&oh(this),bt=1<<--Tr,Bt(),Er.pop();var t=Er.length;Nt=t>0?Er[t-1]:void 0}}stop(){this.active&&(Ko(this),this.onStop&&this.onStop(),this.active=!1)}}function Ko(e){var{deps:t}=e;if(t.length){for(var r=0;r{(c==="length"||c>=i)&&o.push(v)});else switch(r!==void 0&&o.push(s.get(r)),t){case"add":le(e)?Xn(r)&&o.push(s.get("length")):(o.push(s.get(kt)),mr(e)&&o.push(s.get(ga)));break;case"delete":le(e)||(o.push(s.get(kt)),mr(e)&&o.push(s.get(ga)));break;case"set":mr(e)&&o.push(s.get(kt));break}if(o.length===1)o[0]&&_a(o[0]);else{var l=[];for(var u of o)u&&l.push(...u);_a(va(l))}}}function _a(e,t){for(var r of le(e)?e:[...e])(r!==Nt||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}var uh=hi("__proto__,__v_isRef,__isVue"),Jo=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Yn)),fh=ba(),ch=ba(!1,!0),vh=ba(!0),Qo=dh();function dh(){var e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(){for(var r=ge(this),i=0,n=this.length;i{e[t]=function(){tr();for(var r=arguments.length,i=new Array(r),n=0;n0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(i,n,a){if(n==="__v_isReactive")return!e;if(n==="__v_isReadonly")return e;if(n==="__v_raw"&&a===(e?t?Mh:ll:t?ol:sl).get(i))return i;var s=le(i);if(!e&&s&&te(Qo,n))return Reflect.get(Qo,n,a);var o=Reflect.get(i,n,a);if((Yn(n)?Jo.has(n):uh(n))||(e||je(i,"get",n),t))return o;if(We(o)){var l=!s||!Xn(n);return l?o.value:o}return Be(o)?e?ul(o):Ee(o):o}}var hh=el(),gh=el(!0);function el(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return function(r,i,n,a){var s=r[i];if(!e&&(n=ge(n),s=ge(s),!le(r)&&We(s)&&!We(n)))return s.value=n,!0;var o=le(r)&&Xn(i)?Number(i)e,Oi=e=>Reflect.getPrototypeOf(e);function Ii(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e=e.__v_raw;var n=ge(e),a=ge(t);t!==a&&!r&&je(n,"get",t),!r&&je(n,"get",a);var{has:s}=Oi(n),o=i?wa:r?xa:Cr;if(s.call(n,t))return o(e.get(t));if(s.call(n,a))return o(e.get(a));e!==n&&e.get(t)}function Mi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.__v_raw,i=ge(r),n=ge(e);return e!==n&&!t&&je(i,"has",e),!t&&je(i,"has",n),e===n?r.has(e):r.has(e)||r.has(n)}function Ai(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e=e.__v_raw,!t&&je(ge(e),"iterate",kt),Reflect.get(e,"size",e)}function rl(e){e=ge(e);var t=ge(this),r=Oi(t),i=r.has.call(t,e);return i||(t.add(e),vt(t,"add",e,e)),this}function il(e,t){t=ge(t);var r=ge(this),{has:i,get:n}=Oi(r),a=i.call(r,e);a||(e=ge(e),a=i.call(r,e));var s=n.call(r,e);return r.set(e,t),a?br(t,s)&&vt(r,"set",e,t):vt(r,"add",e,t),this}function nl(e){var t=ge(this),{has:r,get:i}=Oi(t),n=r.call(t,e);n||(e=ge(e),n=r.call(t,e)),i&&i.call(t,e);var a=t.delete(e);return n&&vt(t,"delete",e,void 0),a}function al(){var e=ge(this),t=e.size!==0,r=e.clear();return t&&vt(e,"clear",void 0,void 0),r}function Ri(e,t){return function(i,n){var a=this,s=a.__v_raw,o=ge(s),l=t?wa:e?xa:Cr;return!e&&je(o,"iterate",kt),s.forEach((u,v)=>i.call(n,l(u),l(v),a))}}function Pi(e,t,r){return function(){var i=this.__v_raw,n=ge(i),a=mr(n),s=e==="entries"||e===Symbol.iterator&&a,o=e==="keys"&&a,l=i[e](...arguments),u=r?wa:t?xa:Cr;return!t&&je(n,"iterate",o?ga:kt),{next(){var{value:v,done:c}=l.next();return c?{value:v,done:c}:{value:s?[u(v[0]),u(v[1])]:u(v),done:c}},[Symbol.iterator](){return this}}}}function wt(e){return function(){return e==="delete"?!1:this}}function yh(){var e={get(a){return Ii(this,a)},get size(){return Ai(this)},has:Mi,add:rl,set:il,delete:nl,clear:al,forEach:Ri(!1,!1)},t={get(a){return Ii(this,a,!1,!0)},get size(){return Ai(this)},has:Mi,add:rl,set:il,delete:nl,clear:al,forEach:Ri(!1,!0)},r={get(a){return Ii(this,a,!0)},get size(){return Ai(this,!0)},has(a){return Mi.call(this,a,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Ri(!0,!1)},i={get(a){return Ii(this,a,!0,!0)},get size(){return Ai(this,!0)},has(a){return Mi.call(this,a,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Ri(!0,!0)},n=["keys","values","entries",Symbol.iterator];return n.forEach(a=>{e[a]=Pi(a,!1,!1),r[a]=Pi(a,!0,!1),t[a]=Pi(a,!1,!0),i[a]=Pi(a,!0,!0)}),[e,r,t,i]}var[Sh,xh,Th,Eh]=yh();function ya(e,t){var r=t?e?Eh:Th:e?xh:Sh;return(i,n,a)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(te(r,n)&&n in i?r:i,n,a)}var Ch={get:ya(!1,!1)},Oh={get:ya(!1,!0)},Ih={get:ya(!0,!1)},sl=new WeakMap,ol=new WeakMap,ll=new WeakMap,Mh=new WeakMap;function Ah(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rh(e){return e.__v_skip||!Object.isExtensible(e)?0:Ah(qn(e))}function Ee(e){return e&&e.__v_isReadonly?e:Sa(e,!1,tl,Ch,sl)}function Ph(e){return Sa(e,!1,wh,Oh,ol)}function ul(e){return Sa(e,!0,bh,Ih,ll)}function Sa(e,t,r,i,n){if(!Be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;var a=n.get(e);if(a)return a;var s=Rh(e);if(s===0)return e;var o=new Proxy(e,s===2?i:r);return n.set(e,o),o}function rr(e){return fl(e)?rr(e.__v_raw):!!(e&&e.__v_isReactive)}function fl(e){return!!(e&&e.__v_isReadonly)}function cl(e){return rr(e)||fl(e)}function ge(e){var t=e&&e.__v_raw;return t?ge(t):e}function Li(e){return bi(e,"__v_skip",!0),e}var Cr=e=>Be(e)?Ee(e):e,xa=e=>Be(e)?ul(e):e;function vl(e){Go()&&(e=ge(e),e.dep||(e.dep=va()),Zo(e.dep))}function dl(e,t){e=ge(e),e.dep&&_a(e.dep)}function We(e){return Boolean(e&&e.__v_isRef===!0)}function $(e){return hl(e,!1)}function Ta(e){return hl(e,!0)}function hl(e,t){return We(e)?e:new Lh(e,t)}class Lh{constructor(t,r){this._shallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ge(t),this._value=r?t:Cr(t)}get value(){return vl(this),this._value}set value(t){t=this._shallow?t:ge(t),br(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Cr(t),dl(this))}}function Nh(e){return We(e)?e.value:e}var kh={get:(e,t,r)=>Nh(Reflect.get(e,t,r)),set:(e,t,r,i)=>{var n=e[t];return We(n)&&!We(r)?(n.value=r,!0):Reflect.set(e,t,r,i)}};function gl(e){return rr(e)?e:new Proxy(e,kh)}class Bh{constructor(t,r,i){this._setter=r,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new pa(t,()=>{this._dirty||(this._dirty=!0,dl(this))}),this.__v_isReadonly=i}get value(){var t=ge(this);return vl(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Q(e,t){var r,i,n=ae(e);n?(r=e,i=rt):(r=e.get,i=e.set);var a=new Bh(r,i,n||!i);return a}function Dh(e,t){for(var r=e.vnode.props||be,i=arguments.length,n=new Array(i>2?i-2:0),a=2;ab.trim()):v&&(s=n.map(Yv))}var _,g=r[_=Kn(t)]||r[_=Kn(mt(t))];!g&&o&&(g=r[_=Kn(Ve(t))]),g&&Qe(g,e,6,s);var m=r[_+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[_])return;e.emitted[_]=!0,Qe(m,e,6,s)}}function pl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.emitsCache,n=i.get(e);if(n!==void 0)return n;var a=e.emits,s={},o=!1;if(!ae(e)){var l=u=>{var v=pl(u,t,!0);v&&(o=!0,ce(s,v))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!o?(i.set(e,null),null):(le(a)?a.forEach(u=>s[u]=null):ce(s,a),i.set(e,s),s)}function Ea(e,t){return!e||!gi(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Ve(t))||te(e,t))}var Je=null,ml=null;function Ni(e){var t=Je;return Je=e,ml=e&&e.type.__scopeId||null,t}function Fh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Je;if(!t||e._n)return e;var r=function(){r._d&&$l(-1);var i=Ni(t),n=e(...arguments);return Ni(i),r._d&&$l(1),n};return r._n=!0,r._c=!0,r._d=!0,r}function vy(){}function Ca(e){var{type:t,vnode:r,proxy:i,withProxy:n,props:a,propsOptions:[s],slots:o,attrs:l,emit:u,render:v,renderCache:c,data:_,setupState:g,ctx:m,inheritAttrs:b}=e,w,p,h=Ni(e);try{if(r.shapeFlag&4){var f=n||i;w=ot(v.call(f,f,c,a,g,_,m)),p=l}else{var d=t;w=ot(d.length>1?d(a,{attrs:l,slots:o,emit:u}):d(a,null)),p=t.props?l:$h(l)}}catch(C){Vi(C,e,1),w=I(Ir)}var y=w;if(p&&b!==!1){var x=Object.keys(p),{shapeFlag:E}=y;x.length&&E&(1|6)&&(s&&x.some(zn)&&(p=Wh(p,s)),y=Ar(y,p))}return r.dirs&&(y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&(y.transition=r.transition),w=y,Ni(h),w}var $h=e=>{var t;for(var r in e)(r==="class"||r==="style"||gi(r))&&((t||(t={}))[r]=e[r]);return t},Wh=(e,t)=>{var r={};for(var i in e)(!zn(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function Uh(e,t,r){var{props:i,children:n,component:a}=e,{props:s,children:o,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return i?_l(i,s,u):!!s;if(l&8)for(var v=t.dynamicProps,c=0;ce.__isSuspense;function jh(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):Ng(e)}function Ne(e,t){if(ke){var r=ke.provides,i=ke.parent&&ke.parent.provides;i===r&&(r=ke.provides=Object.create(i)),r[e]=t}}function pe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=ke||Je;if(i){var n=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(n&&e in n)return n[e];if(arguments.length>1)return r&&ae(t)?t.call(i.proxy):t}}function zh(e){return ae(e)?{setup:e,name:e.name}:e}var Oa=e=>!!e.type.__asyncLoader,bl=e=>e.type.__isKeepAlive;function Ia(e,t){wl(e,"a",t)}function Yh(e,t){wl(e,"da",t)}function wl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ke,i=e.__wdc||(e.__wdc=()=>{for(var a=r;a;){if(a.isDeactivated)return;a=a.parent}e()});if(ki(t,i,r),r)for(var n=r.parent;n&&n.parent;)bl(n.parent.vnode)&&qh(i,t,r,n),n=n.parent}function qh(e,t,r,i){var n=ki(t,e,i,!0);yt(()=>{So(i[t],n)},r)}function ki(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ke,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r){var n=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=function(){if(!r.isUnmounted){tr(),ir(r);for(var s=arguments.length,o=new Array(s),l=0;lfunction(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;return(!Ui||e==="sp")&&ki(e,t,r)},yl=dt("bm"),Ie=dt("m"),Xh=dt("bu"),Kh=dt("u"),xe=dt("bum"),yt=dt("um"),Gh=dt("sp"),Zh=dt("rtg"),Jh=dt("rtc");function Qh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;ki("ec",e,t)}var Ma=!0;function eg(e){var t=Tl(e),r=e.proxy,i=e.ctx;Ma=!1,t.beforeCreate&&Sl(t.beforeCreate,e,"bc");var{data:n,computed:a,methods:s,watch:o,provide:l,inject:u,created:v,beforeMount:c,mounted:_,beforeUpdate:g,updated:m,activated:b,deactivated:w,beforeDestroy:p,beforeUnmount:h,destroyed:f,unmounted:d,render:y,renderTracked:x,renderTriggered:E,errorCaptured:C,serverPrefetch:M,expose:W,inheritAttrs:V,components:q,directives:he,filters:R}=t,B=null;if(u&&tg(u,i,B,e.appContext.config.unwrapInjectedRef),s)for(var ee in s){var ie=s[ee];ae(ie)&&(i[ee]=ie.bind(r))}if(n&&function(){var re=n.call(r,r);Be(re)&&(e.data=Ee(re))}(),Ma=!0,a){var z=function(re){var oe=a[re],Ce=ae(oe)?oe.bind(r,r):ae(oe.get)?oe.get.bind(r,r):rt,Oe=!ae(oe)&&ae(oe.set)?oe.set.bind(r):rt,Ge=Q({get:Ce,set:Oe});Object.defineProperty(i,re,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:At=>Ge.value=At})};for(var J in a)z(J)}if(o)for(var ne in o)xl(o[ne],i,r,ne);if(l){var we=ae(l)?l.call(r):l;Reflect.ownKeys(we).forEach(re=>{Ne(re,we[re])})}v&&Sl(v,e,"c");function se(re,oe){le(oe)?oe.forEach(Ce=>re(Ce.bind(r))):oe&&re(oe.bind(r))}if(se(yl,c),se(Ie,_),se(Xh,g),se(Kh,m),se(Ia,b),se(Yh,w),se(Qh,C),se(Jh,x),se(Zh,E),se(xe,h),se(yt,d),se(Gh,M),le(W))if(W.length){var G=e.exposed||(e.exposed={});W.forEach(re=>{Object.defineProperty(G,re,{get:()=>r[re],set:oe=>r[re]=oe})})}else e.exposed||(e.exposed={});y&&e.render===rt&&(e.render=y),V!=null&&(e.inheritAttrs=V),q&&(e.components=q),he&&(e.directives=he)}function tg(e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;le(e)&&(e=Aa(e));var i=function(a){var s=e[a],o=void 0;Be(s)?"default"in s?o=pe(s.from||a,s.default,!0):o=pe(s.from||a):o=pe(s),We(o)&&r?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[a]=o};for(var n in e)i(n)}function Sl(e,t,r){Qe(le(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function xl(e,t,r,i){var n=i.includes(".")?Jl(r,i):()=>r[i];if(ye(e)){var a=t[e];ae(a)&&U(n,a)}else if(ae(e))U(n,e.bind(r));else if(Be(e))if(le(e))e.forEach(o=>xl(o,t,r,i));else{var s=ae(e.handler)?e.handler.bind(r):t[e.handler];ae(s)&&U(n,s,e)}}function Tl(e){var t=e.type,{mixins:r,extends:i}=t,{mixins:n,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,o=a.get(t),l;return o?l=o:!n.length&&!r&&!i?l=t:(l={},n.length&&n.forEach(u=>Bi(l,u,s,!0)),Bi(l,t,s)),a.set(t,l),l}function Bi(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,{mixins:n,extends:a}=t;a&&Bi(e,a,r,!0),n&&n.forEach(l=>Bi(e,l,r,!0));for(var s in t)if(!(i&&s==="expose")){var o=rg[s]||r&&r[s];e[s]=o?o(e[s],t[s]):t[s]}return e}var rg={data:El,props:Dt,emits:Dt,methods:Dt,computed:Dt,beforeCreate:Fe,created:Fe,beforeMount:Fe,mounted:Fe,beforeUpdate:Fe,updated:Fe,beforeDestroy:Fe,beforeUnmount:Fe,destroyed:Fe,unmounted:Fe,activated:Fe,deactivated:Fe,errorCaptured:Fe,serverPrefetch:Fe,components:Dt,directives:Dt,watch:ng,provide:El,inject:ig};function El(e,t){return t?e?function(){return ce(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function ig(e,t){return Dt(Aa(e),Aa(t))}function Aa(e){if(le(e)){for(var t={},r=0;r3&&arguments[3]!==void 0?arguments[3]:!1,n={},a={};bi(a,Fi,1),e.propsDefaults=Object.create(null),Cl(e,t,n,a);for(var s in e.propsOptions[0])s in n||(n[s]=void 0);r?e.props=i?n:Ph(n):e.type.props?e.props=n:e.props=a,e.attrs=a}function sg(e,t,r,i){var{props:n,attrs:a,vnode:{patchFlag:s}}=e,o=ge(n),[l]=e.propsOptions,u=!1;if((i||s>0)&&!(s&16)){if(s&8)for(var v=e.vnode.dynamicProps,c=0;c2&&arguments[2]!==void 0?arguments[2]:!1,i=t.propsCache,n=i.get(e);if(n)return n;var a=e.props,s={},o=[],l=!1;if(!ae(e)){var u=f=>{l=!0;var[d,y]=Ol(f,t,!0);ce(s,d),y&&o.push(...y)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return i.set(e,pr),pr;if(le(a))for(var v=0;v-1,b[1]=p<0||w-1||te(b,"default"))&&o.push(g)}}}var h=[s,o];return i.set(e,h),h}function Il(e){return e[0]!=="$"}function Ml(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Al(e,t){return Ml(e)===Ml(t)}function Rl(e,t){return le(t)?t.findIndex(r=>Al(r,e)):ae(t)&&Al(t,e)?0:-1}var Pl=e=>e[0]==="_"||e==="$stable",Pa=e=>le(e)?e.map(ot):[ot(e)],og=(e,t,r)=>{var i=Fh(function(){return Pa(t(...arguments))},r);return i._c=!1,i},Ll=(e,t,r)=>{var i=e._ctx;for(var n in e)if(!Pl(n)){var a=e[n];ae(a)?t[n]=og(n,a,i):a!=null&&function(){var s=Pa(a);t[n]=()=>s}()}},Nl=(e,t)=>{var r=Pa(t);e.slots.default=()=>r},lg=(e,t)=>{if(e.vnode.shapeFlag&32){var r=t._;r?(e.slots=ge(t),bi(t,"_",r)):Ll(t,e.slots={})}else e.slots={},t&&Nl(e,t);bi(e.slots,Fi,1)},ug=(e,t,r)=>{var{vnode:i,slots:n}=e,a=!0,s=be;if(i.shapeFlag&32){var o=t._;o?r&&o===1?a=!1:(ce(n,t),!r&&o===1&&delete n._):(a=!t.$stable,Ll(t,n)),s=t}else t&&(Nl(e,t),s={default:1});if(a)for(var l in n)!Pl(l)&&!(l in s)&&delete n[l]};function Or(e,t){var r=Je;if(r===null)return e;for(var i=r.proxy,n=e.dirs||(e.dirs=[]),a=0;a1&&arguments[1]!==void 0?arguments[1]:null;n!=null&&!Be(n)&&(n=null);var a=kl(),s=new Set,o=!1,l=a.app={_uid:fg++,_component:i,_props:n,_container:null,_context:a,_instance:null,version:Fg,get config(){return a.config},set config(u){},use(u){for(var v=arguments.length,c=new Array(v>1?v-1:0),_=1;_3&&arguments[3]!==void 0?arguments[3]:null,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,H=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,D=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,k=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!!T.dynamicChildren;if(S!==T){S&&!Mr(S,T)&&(P=Ge(S),G(S,L,F,!0),S=null),T.patchFlag===-2&&(k=!1,T.dynamicChildren=null);var{type:N,ref:Z,shapeFlag:K}=T;switch(N){case Na:p(S,T,A,P);break;case Ir:h(S,T,A,P);break;case ka:S==null&&f(T,A,P,H);break;case st:he(S,T,A,P,L,F,H,D,k);break;default:K&1?x(S,T,A,P,L,F,H,D,k):K&6?R(S,T,A,P,L,F,H,D,k):(K&64||K&128)&&N.process(S,T,A,P,L,F,H,D,k,Me)}Z!=null&&L&&La(Z,S&&S.ref,F,T||S,!T)}},p=(S,T,A,P)=>{if(S==null)i(T.el=o(T.children),A,P);else{var L=T.el=S.el;T.children!==S.children&&u(L,T.children)}},h=(S,T,A,P)=>{S==null?i(T.el=l(T.children||""),A,P):T.el=S.el},f=(S,T,A,P)=>{[S.el,S.anchor]=b(S.children,T,A,P)},d=(S,T,A)=>{for(var{el:P,anchor:L}=S,F;P&&P!==L;)F=_(P),i(P,T,A),P=F;i(L,T,A)},y=S=>{for(var{el:T,anchor:A}=S,P;T&&T!==A;)P=_(T),n(T),T=P;n(A)},x=(S,T,A,P,L,F,H,D,k)=>{H=H||T.type==="svg",S==null?E(T,A,P,L,F,H,D,k):W(S,T,L,F,H,D,k)},E=(S,T,A,P,L,F,H,D)=>{var k,N,{type:Z,props:K,shapeFlag:X,transition:fe,patchFlag:Pe,dirs:Se}=S;if(S.el&&m!==void 0&&Pe===-1)k=S.el=m(S.el);else{if(k=S.el=s(S.type,F,K&&K.is,K),X&8?v(k,S.children):X&16&&M(S.children,k,null,P,L,F&&Z!=="foreignObject",H,D),Se&&Ft(S,null,P,"created"),K){for(var O in K)O!=="value"&&!pi(O)&&a(k,O,null,K[O],F,S.children,P,L,Oe);"value"in K&&a(k,"value",null,K.value),(N=K.onVnodeBeforeMount)&&at(N,P,S)}C(k,S,S.scopeId,H,P)}Object.defineProperty(k,"__vueParentComponent",{value:P,enumerable:!1}),Se&&Ft(S,null,P,"beforeMount");var j=(!L||L&&!L.pendingBranch)&&fe&&!fe.persisted;j&&fe.beforeEnter(k),i(k,T,A),((N=K&&K.onVnodeMounted)||j||Se)&&$e(()=>{N&&at(N,P,S),j&&fe.enter(k),Se&&Ft(S,null,P,"mounted")},L)},C=(S,T,A,P,L)=>{if(A&&g(S,A),P)for(var F=0;F8&&arguments[8]!==void 0?arguments[8]:0,N=k;N{var D=T.el=S.el,{patchFlag:k,dynamicChildren:N,dirs:Z}=T;k|=S.patchFlag&16;var K=S.props||be,X=T.props||be,fe;(fe=X.onVnodeBeforeUpdate)&&at(fe,A,T,S),Z&&Ft(T,S,A,"beforeUpdate");var Pe=L&&T.type!=="foreignObject";if(N?V(S.dynamicChildren,N,D,A,P,Pe,F):H||J(S,T,D,null,A,P,Pe,F,!1),k>0){if(k&16)q(D,T,K,X,A,P,L);else if(k&2&&K.class!==X.class&&a(D,"class",null,X.class,L),k&4&&a(D,"style",K.style,X.style,L),k&8)for(var Se=T.dynamicProps,O=0;O{fe&&at(fe,A,T,S),Z&&Ft(T,S,A,"updated")},P)},V=(S,T,A,P,L,F,H)=>{for(var D=0;D{if(A!==P){for(var D in P)if(!pi(D)){var k=P[D],N=A[D];k!==N&&D!=="value"&&a(S,D,N,k,H,T.children,L,F,Oe)}if(A!==be)for(var Z in A)!pi(Z)&&!(Z in P)&&a(S,Z,A[Z],null,H,T.children,L,F,Oe);"value"in P&&a(S,"value",A.value,P.value)}},he=(S,T,A,P,L,F,H,D,k)=>{var N=T.el=S?S.el:o(""),Z=T.anchor=S?S.anchor:o(""),{patchFlag:K,dynamicChildren:X,slotScopeIds:fe}=T;fe&&(D=D?D.concat(fe):fe),S==null?(i(N,A,P),i(Z,A,P),M(T.children,A,Z,L,F,H,D,k)):K>0&&K&64&&X&&S.dynamicChildren?(V(S.dynamicChildren,X,A,L,F,H,D),(T.key!=null||L&&T===L.subTree)&&Bl(S,T,!0)):J(S,T,A,Z,L,F,H,D,k)},R=(S,T,A,P,L,F,H,D,k)=>{T.slotScopeIds=D,S==null?T.shapeFlag&512?L.ctx.activate(T,A,P,H,k):B(T,A,P,L,F,H,k):ee(S,T,k)},B=(S,T,A,P,L,F,H)=>{var D=S.component=Tg(S,P,L);if(bl(S)&&(D.ctx.renderer=Me),Eg(D),D.asyncDep){if(L&&L.registerDep(D,ie),!S.el){var k=D.subTree=I(Ir);h(null,k,T,A)}return}ie(D,S,T,A,L,F,H)},ee=(S,T,A)=>{var P=T.component=S.component;if(Uh(S,T,A))if(P.asyncDep&&!P.asyncResolved){z(P,T,A);return}else P.next=T,Pg(P.update),P.update();else T.component=S.component,T.el=S.el,P.vnode=T},ie=(S,T,A,P,L,F,H)=>{var D=()=>{if(S.isMounted){var{next:ue,bu:Le,u:Ue,parent:Ae,vnode:tt}=S,Rt=ue,ft;k.allowRecurse=!1,ue?(ue.el=tt.el,z(S,ue,H)):ue=tt,Le&&Gn(Le),(ft=ue.props&&ue.props.onVnodeBeforeUpdate)&&at(ft,Ae,ue,tt),k.allowRecurse=!0;var Xt=Ca(S),gt=S.subTree;S.subTree=Xt,w(gt,Xt,c(gt.el),Ge(gt),S,L,F),ue.el=Xt.el,Rt===null&&Vh(S,Xt.el),Ue&&$e(Ue,L),(ft=ue.props&&ue.props.onVnodeUpdated)&&$e(()=>at(ft,Ae,ue,tt),L)}else{var Z,{el:K,props:X}=T,{bm:fe,m:Pe,parent:Se}=S,O=Oa(T);if(k.allowRecurse=!1,fe&&Gn(fe),!O&&(Z=X&&X.onVnodeBeforeMount)&&at(Z,Se,T),k.allowRecurse=!0,K&&Zr){var j=()=>{S.subTree=Ca(S),Zr(K,S.subTree,S,L,null)};O?T.type.__asyncLoader().then(()=>!S.isUnmounted&&j()):j()}else{var Y=S.subTree=Ca(S);w(null,Y,A,P,S,L,F),T.el=Y.el}if(Pe&&$e(Pe,L),!O&&(Z=X&&X.onVnodeMounted)){var ve=T;$e(()=>at(Z,Se,ve),L)}T.shapeFlag&256&&S.a&&$e(S.a,L),S.isMounted=!0,T=A=P=null}},k=new pa(D,()=>Yl(S.update),S.scope),N=S.update=k.run.bind(k);N.id=S.uid,k.allowRecurse=N.allowRecurse=!0,N()},z=(S,T,A)=>{T.component=S;var P=S.vnode.props;S.vnode=T,S.next=null,sg(S,T.props,P,A),ug(S,T.children,A),tr(),Va(void 0,S.update),Bt()},J=function(S,T,A,P,L,F,H,D){var k=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,N=S&&S.children,Z=S?S.shapeFlag:0,K=T.children,{patchFlag:X,shapeFlag:fe}=T;if(X>0){if(X&128){we(N,K,A,P,L,F,H,D,k);return}else if(X&256){ne(N,K,A,P,L,F,H,D,k);return}}fe&8?(Z&16&&Oe(N,L,F),K!==N&&v(A,K)):Z&16?fe&16?we(N,K,A,P,L,F,H,D,k):Oe(N,L,F,!0):(Z&8&&v(A,""),fe&16&&M(K,A,P,L,F,H,D,k))},ne=(S,T,A,P,L,F,H,D,k)=>{S=S||pr,T=T||pr;var N=S.length,Z=T.length,K=Math.min(N,Z),X;for(X=0;XZ?Oe(S,L,F,!0,!1,K):M(T,A,P,L,F,H,D,k,K)},we=(S,T,A,P,L,F,H,D,k)=>{for(var N=0,Z=T.length,K=S.length-1,X=Z-1;N<=K&&N<=X;){var fe=S[N],Pe=T[N]=k?St(T[N]):ot(T[N]);if(Mr(fe,Pe))w(fe,Pe,A,null,L,F,H,D,k);else break;N++}for(;N<=K&&N<=X;){var Se=S[K],O=T[X]=k?St(T[X]):ot(T[X]);if(Mr(Se,O))w(Se,O,A,null,L,F,H,D,k);else break;K--,X--}if(N>K){if(N<=X)for(var j=X+1,Y=jX)for(;N<=K;)G(S[N],L,F,!0),N++;else{var ve=N,ue=N,Le=new Map;for(N=ue;N<=X;N++){var Ue=T[N]=k?St(T[N]):ot(T[N]);Ue.key!=null&&Le.set(Ue.key,N)}var Ae,tt=0,Rt=X-ue+1,ft=!1,Xt=0,gt=new Array(Rt);for(N=0;N=Rt){G(dr,L,F,!0);continue}var Kt=void 0;if(dr.key!=null)Kt=Le.get(dr.key);else for(Ae=ue;Ae<=X;Ae++)if(gt[Ae-ue]===0&&Mr(dr,T[Ae])){Kt=Ae;break}Kt===void 0?G(dr,L,F,!0):(gt[Kt-ue]=N+1,Kt>=Xt?Xt=Kt:ft=!0,w(dr,T[Kt],A,null,L,F,H,D,k),tt++)}var tc=ft?hg(gt):pr;for(Ae=tc.length-1,N=Rt-1;N>=0;N--){var Ls=ue+N,rc=T[Ls],ic=Ls+14&&arguments[4]!==void 0?arguments[4]:null,{el:F,type:H,transition:D,children:k,shapeFlag:N}=S;if(N&6){se(S.component.subTree,T,A,P);return}if(N&128){S.suspense.move(T,A,P);return}if(N&64){H.move(S,T,A,Me);return}if(H===st){i(F,T,A);for(var Z=0;ZD.enter(F),L);else{var{leave:X,delayLeave:fe,afterLeave:Pe}=D,Se=()=>i(F,T,A),O=()=>{X(F,()=>{Se(),Pe&&Pe()})};fe?fe(F,Se,O):O()}else i(F,T,A)},G=function(S,T,A){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,{type:F,props:H,ref:D,children:k,dynamicChildren:N,shapeFlag:Z,patchFlag:K,dirs:X}=S;if(D!=null&&La(D,null,A,S,!0),Z&256){T.ctx.deactivate(S);return}var fe=Z&1&&X,Pe=!Oa(S),Se;if(Pe&&(Se=H&&H.onVnodeBeforeUnmount)&&at(Se,T,S),Z&6)Ce(S.component,A,P);else{if(Z&128){S.suspense.unmount(A,P);return}fe&&Ft(S,null,T,"beforeUnmount"),Z&64?S.type.remove(S,T,A,L,Me,P):N&&(F!==st||K>0&&K&64)?Oe(N,T,A,!1,!0):(F===st&&K&(128|256)||!L&&Z&16)&&Oe(k,T,A),P&&re(S)}(Pe&&(Se=H&&H.onVnodeUnmounted)||fe)&&$e(()=>{Se&&at(Se,T,S),fe&&Ft(S,null,T,"unmounted")},A)},re=S=>{var{type:T,el:A,anchor:P,transition:L}=S;if(T===st){oe(A,P);return}if(T===ka){y(S);return}var F=()=>{n(A),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(S.shapeFlag&1&&L&&!L.persisted){var{leave:H,delayLeave:D}=L,k=()=>H(A,F);D?D(S.el,F,k):k()}else F()},oe=(S,T)=>{for(var A;S!==T;)A=_(S),n(S),S=A;n(T)},Ce=(S,T,A)=>{var{bum:P,scope:L,update:F,subTree:H,um:D}=S;P&&Gn(P),L.stop(),F&&(F.active=!1,G(H,S,T,A)),D&&$e(D,T),$e(()=>{S.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},Oe=function(S,T,A){for(var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,H=F;HS.shapeFlag&6?Ge(S.component.subTree):S.shapeFlag&128?S.suspense.next():_(S.anchor||S.el),At=(S,T,A)=>{if(S==null)T._vnode&&G(T._vnode,null,null,!0);else{var P=T.__vueParent;w(T._vnode||null,S,T,null,P,null,A)}T._vnode=S},Me={p:w,um:G,m:se,r:re,mt:B,mc:M,pc:J,pbc:V,n:Ge,o:e},Gr,Zr;return t&&([Gr,Zr]=t(Me)),{render:At,hydrate:Gr,createApp:cg(At,Gr)}}function La(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(le(e)){e.forEach((m,b)=>La(m,t&&(le(t)?t[b]:t),r,i,n));return}if(!(Oa(i)&&!n)){var a=i.shapeFlag&4?Fa(i.component)||i.component.proxy:i.el,s=n?null:a,{i:o,r:l}=e,u=t&&t.r,v=o.refs===be?o.refs={}:o.refs,c=o.setupState;if(u!=null&&u!==l&&(ye(u)?(v[u]=null,te(c,u)&&(c[u]=null)):We(u)&&(u.value=null)),ye(l)){var _=()=>{v[l]=s,te(c,l)&&(c[l]=s)};s?(_.id=-1,$e(_,r)):_()}else if(We(l)){var g=()=>{l.value=s};s?(g.id=-1,$e(g,r)):g()}else ae(l)&&Tt(l,o,12,[s,v])}}function at(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Qe(e,t,7,[r,i])}function Bl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=e.children,n=t.children;if(le(i)&&le(n))for(var a=0;a>1,e[r[o]]0&&(t[i]=r[a-1]),r[a]=i)}}for(a=r.length,s=r[a-1];a-- >0;)r[a]=s,s=t[s];return r}var gg=e=>e.__isTeleport,pg=Symbol(),st=Symbol(void 0),Na=Symbol(void 0),Ir=Symbol(void 0),ka=Symbol(void 0),Dl=null,Fl=1;function $l(e){Fl+=e}function Di(e){return e?e.__v_isVNode===!0:!1}function Mr(e,t){return e.type===t.type&&e.key===t.key}var Fi="__vInternal",Wl=e=>{var{key:t}=e;return t!=null?t:null},$i=e=>{var{ref:t}=e;return t!=null?ye(t)||We(t)||ae(t)?{i:Je,r:t}:t:null};function mg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e===st?0:1,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,o=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wl(t),ref:t&&$i(t),scopeId:ml,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null};return o?(Ba(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=ye(r)?8:16),Fl>0&&!s&&Dl&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Dl.push(l),l}var I=_g;function _g(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;if((!e||e===pg)&&(e=Ir),Di(e)){var s=Ar(e,t,!0);return r&&Ba(s,r),s}if(Mg(e)&&(e=e.__vccOpts),t){t=bg(t);var{class:o,style:l}=t;o&&!ye(o)&&(t.class=jn(o)),Be(l)&&(cl(l)&&!le(l)&&(l=ce({},l)),t.style=Hn(l))}var u=ye(e)?1:Hh(e)?128:gg(e)?64:Be(e)?4:ae(e)?2:0;return mg(e,t,r,i,n,u,a,!0)}function bg(e){return e?cl(e)||Fi in e?ce({},e):e:null}function Ar(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{props:i,ref:n,patchFlag:a,children:s}=e,o=t?ze(i||{},t):i,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Wl(o),ref:t&&t.ref?r&&n?le(n)?n.concat($i(t)):[n,$i(t)]:$i(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==st?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ar(e.ssContent),ssFallback:e.ssFallback&&Ar(e.ssFallback),el:e.el,anchor:e.anchor};return l}function wg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return I(Na,null,e,t)}function ot(e){return e==null||typeof e=="boolean"?I(Ir):le(e)?I(st,null,e.slice()):typeof e=="object"?St(e):I(Na,null,String(e))}function St(e){return e.el===null||e.memo?e:Ar(e)}function Ba(e,t){var r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(le(t))r=16;else if(typeof t=="object")if(i&(1|64)){var n=t.default;n&&(n._c&&(n._d=!1),Ba(e,n()),n._c&&(n._d=!0));return}else{r=32;var a=t._;!a&&!(Fi in t)?t._ctx=Je:a===3&&Je&&(Je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:Je},r=32):(t=String(t),i&64?(r=16,t=[wg(t)]):r=8);e.children=t,e.shapeFlag|=r}function ze(){for(var e={},t=0;te?Ul(e)?Fa(e)||e.proxy:Da(e.parent):null,Wi=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Da(e.parent),$root:e=>Da(e.root),$emit:e=>e.emit,$options:e=>Tl(e),$forceUpdate:e=>()=>Yl(e.update),$nextTick:e=>sr.bind(e.proxy),$watch:e=>Bg.bind(e)}),yg={get(e,t){var{_:r}=e,{ctx:i,setupState:n,data:a,props:s,accessCache:o,type:l,appContext:u}=r,v;if(t[0]!=="$"){var c=o[t];if(c!==void 0)switch(c){case 0:return n[t];case 1:return a[t];case 3:return i[t];case 2:return s[t]}else{if(n!==be&&te(n,t))return o[t]=0,n[t];if(a!==be&&te(a,t))return o[t]=1,a[t];if((v=r.propsOptions[0])&&te(v,t))return o[t]=2,s[t];if(i!==be&&te(i,t))return o[t]=3,i[t];Ma&&(o[t]=4)}}var _=Wi[t],g,m;if(_)return t==="$attrs"&&je(r,"get",t),_(r);if((g=l.__cssModules)&&(g=g[t]))return g;if(i!==be&&te(i,t))return o[t]=3,i[t];if(m=u.config.globalProperties,te(m,t))return m[t]},set(e,t,r){var{_:i}=e,{data:n,setupState:a,ctx:s}=i;if(a!==be&&te(a,t))a[t]=r;else if(n!==be&&te(n,t))n[t]=r;else if(te(i.props,t))return!1;return t[0]==="$"&&t.slice(1)in i?!1:(s[t]=r,!0)},has(e,t){var{_:{data:r,setupState:i,accessCache:n,ctx:a,appContext:s,propsOptions:o}}=e,l;return n[t]!==void 0||r!==be&&te(r,t)||i!==be&&te(i,t)||(l=o[0])&&te(l,t)||te(a,t)||te(Wi,t)||te(s.config.globalProperties,t)}},Sg=kl(),xg=0;function Tg(e,t,r){var i=e.type,n=(t?t.appContext:e.appContext)||Sg,a={uid:xg++,vnode:e,type:i,parent:t,appContext:n,root:null,next:null,subTree:null,update:null,scope:new nh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ol(i,n),emitsOptions:pl(i,n),emit:null,emitted:null,propsDefaults:be,inheritAttrs:i.inheritAttrs,ctx:be,data:be,props:be,attrs:be,slots:be,refs:be,setupState:be,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Dh.bind(null,a),e.ce&&e.ce(a),a}var ke=null,xt=()=>ke||Je,ir=e=>{ke=e,e.scope.on()},$t=()=>{ke&&ke.scope.off(),ke=null};function Ul(e){return e.vnode.shapeFlag&4}var Ui=!1;function Eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ui=t;var{props:r,children:i}=e.vnode,n=Ul(e);ag(e,r,n,t),lg(e,i);var a=n?Cg(e,t):void 0;return Ui=!1,a}function Cg(e,t){var r=e.type;e.accessCache=Object.create(null),e.proxy=Li(new Proxy(e.ctx,yg));var{setup:i}=r;if(i){var n=e.setupContext=i.length>1?Ig(e):null;ir(e),tr();var a=Tt(i,e,0,[e.props,n]);if(Bt(),$t(),xo(a)){if(a.then($t,$t),t)return a.then(s=>{Vl(e,s,t)}).catch(s=>{Vi(s,e,0)});e.asyncDep=a}else Vl(e,a,t)}else jl(e,t)}function Vl(e,t,r){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Be(t)&&(e.setupState=gl(t)),jl(e,r)}var Hl;function jl(e,t,r){var i=e.type;if(!e.render){if(!t&&Hl&&!i.render){var n=i.template;if(n){var{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:l}=i,u=ce(ce({isCustomElement:a,delimiters:o},s),l);i.render=Hl(n,u)}}e.render=i.render||rt}ir(e),tr(),eg(e),Bt(),$t()}function Og(e){return new Proxy(e.attrs,{get(t,r){return je(e,"get","$attrs"),t[r]}})}function Ig(e){var t=i=>{e.exposed=i||{}},r;return{get attrs(){return r||(r=Og(e))},slots:e.slots,emit:e.emit,expose:t}}function Fa(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gl(Li(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Wi)return Wi[r](e)}}))}function Mg(e){return ae(e)&&"__vccOpts"in e}function Tt(e,t,r,i){var n;try{n=i?e(...i):e()}catch(a){Vi(a,t,r)}return n}function Qe(e,t,r,i){if(ae(e)){var n=Tt(e,t,r,i);return n&&xo(n)&&n.catch(o=>{Vi(o,t,r)}),n}for(var a=[],s=0;s>>1,n=Nr(Ye[i]);nht&&Ye.splice(t,1)}function Xl(e,t,r,i){le(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?i+1:i))&&r.push(e),ql()}function Lg(e){Xl(e,Pr,Rr,nr)}function Ng(e){Xl(e,Et,Lr,ar)}function Va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(Rr.length){for(Ua=t,Pr=[...new Set(Rr)],Rr.length=0,nr=0;nrNr(r)-Nr(i)),ar=0;are.id==null?1/0:e.id;function Gl(e){$a=!1,Hi=!0,Va(e),Ye.sort((i,n)=>Nr(i)-Nr(n));var t=rt;try{for(ht=0;ht2&&arguments[2]!==void 0?arguments[2]:be,o=ke,l,u=!1,v=!1;if(We(e)?(l=()=>e.value,u=!!e._shallow):rr(e)?(l=()=>e,i=!0):le(e)?(v=!0,u=e.some(rr),l=()=>e.map(h=>{if(We(h))return h.value;if(rr(h))return Wt(h);if(ae(h))return Tt(h,o,2)})):ae(e)?t?l=()=>Tt(e,o,2):l=()=>{if(!(o&&o.isUnmounted))return _&&_(),Qe(e,o,3,[g])}:l=rt,t&&i){var c=l;l=()=>Wt(c())}var _,g=h=>{_=p.onStop=()=>{Tt(h,o,4)}};if(Ui)return g=rt,t?r&&Qe(t,o,3,[l(),v?[]:void 0,g]):l(),rt;var m=v?[]:Zl,b=()=>{if(!!p.active)if(t){var h=p.run();(i||u||(v?h.some((f,d)=>br(f,m[d])):br(h,m)))&&(_&&_(),Qe(t,o,3,[h,m===Zl?void 0:m,g]),m=h)}else p.run()};b.allowRecurse=!!t;var w;n==="sync"?w=b:n==="post"?w=()=>$e(b,o&&o.suspense):w=()=>{!o||o.isMounted?Lg(b):b()};var p=new pa(l,w);return t?r?b():m=p.run():n==="post"?$e(p.run.bind(p),o&&o.suspense):p.run(),()=>{p.stop(),o&&o.scope&&So(o.scope.effects,p)}}function Bg(e,t,r){var i=this.proxy,n=ye(e)?e.includes(".")?Jl(i,e):()=>i[e]:e.bind(i,i),a;ae(t)?a=t:(a=t.handler,r=t);var s=ke;ir(this);var o=Ha(n,a.bind(i),r);return s?ir(s):$t(),o}function Jl(e,t){var r=t.split(".");return()=>{for(var i=e,n=0;n{Wt(n,t)});else if(it(e))for(var i in e)Wt(e[i],t);return e}function Dg(e,t,r){var i=arguments.length;return i===2?Be(t)&&!le(t)?Di(t)?I(e,null,[t]):I(e,t):I(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Di(r)&&(r=[r]),I(e,t,r))}var Fg="3.2.20",$g="http://www.w3.org/2000/svg",or=typeof document!="undefined"?document:null,Ql=new Map,Wg={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{var n=t?or.createElementNS($g,e):or.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>or.createTextNode(e),createComment:e=>or.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>or.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,i){var n=r?r.previousSibling:t.lastChild,a=Ql.get(e);if(!a){var s=or.createElement("template");if(s.innerHTML=i?"".concat(e,""):e,a=s.content,i){for(var o=a.firstChild;o.firstChild;)a.appendChild(o.firstChild);a.removeChild(o)}Ql.set(e,a)}return t.insertBefore(a.cloneNode(!0),r),[n?n.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function Ug(e,t,r){var i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function Vg(e,t,r){var i=e.style,n=i.display;if(!r)e.removeAttribute("style");else if(ye(r))t!==r&&(i.cssText=r);else{for(var a in r)ja(i,a,r[a]);if(t&&!ye(t))for(var s in t)r[s]==null&&ja(i,s,"")}"_vod"in e&&(i.display=n)}var eu=/\s*!important$/;function ja(e,t,r){if(le(r))r.forEach(n=>ja(e,t,n));else if(r=zg(r),t.startsWith("--"))e.setProperty(t,r);else{var i=Hg(e,t);eu.test(r)?e.setProperty(Ve(i),r.replace(eu,""),"important"):e[i]=r}}var tu=["Webkit","Moz","ms"],za={};function Hg(e,t){var r=za[t];if(r)return r;var i=mt(t);if(i!=="filter"&&i in e)return za[t]=i;i=_i(i);for(var n=0;ntypeof rpx2px!="function"?e:ye(e)?e.replace(jg,(t,r)=>rpx2px(r)+"px"):e,ru="http://www.w3.org/1999/xlink";function Yg(e,t,r,i,n){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(ru,t.slice(6,t.length)):e.setAttributeNS(ru,t,r);else{var a=Nv(t);r==null||a&&!wo(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function qg(e,t,r,i,n,a,s){if(t==="innerHTML"||t==="textContent"){i&&s(i,n,a),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"){e._value=r;var o=r==null?"":r;e.value!==o&&(e.value=o),r==null&&e.removeAttribute(t);return}if(r===""||r==null){var l=typeof e[t];if(l==="boolean"){e[t]=wo(r);return}else if(r==null&&l==="string"){e[t]="",e.removeAttribute(t);return}else if(l==="number"){try{e[t]=0}catch(u){}e.removeAttribute(t);return}}try{e[t]=r}catch(u){}}var ji=Date.now,iu=!1;if(typeof window!="undefined"){ji()>document.createEvent("Event").timeStamp&&(ji=()=>performance.now());var nu=navigator.userAgent.match(/firefox\/(\d+)/i);iu=!!(nu&&Number(nu[1])<=53)}var Ya=0,Xg=Promise.resolve(),Kg=()=>{Ya=0},Gg=()=>Ya||(Xg.then(Kg),Ya=ji());function Zg(e,t,r,i){e.addEventListener(t,r,i)}function Jg(e,t,r,i){e.removeEventListener(t,r,i)}function Qg(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,a=e._vei||(e._vei={}),s=a[t];if(i&&s)s.value=i;else{var[o,l]=ep(t);if(i){var u=a[t]=tp(i,n);Zg(e,o,u,l)}else s&&(Jg(e,o,s,l),a[t]=void 0)}}var au=/(?:Once|Passive|Capture)$/;function ep(e){var t;if(au.test(e)){t={};for(var r;r=e.match(au);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Ve(e.slice(2)),t]}function tp(e,t){var r=i=>{var n=i.timeStamp||ji();(iu||n>=r.attached-1)&&Qe(rp(i,r.value),t,5,[i])};return r.value=e,r.attached=Gg(),r}function rp(e,t){if(le(t)){var r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>n=>!n._stopped&&i(n))}else return t}var su=/^on[a-z]/,ip=function(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,o=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;t==="class"?Ug(e,i,n):t==="style"?Vg(e,r,i):gi(t)?zn(t)||Qg(e,t,r,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):np(e,t,i,n))?qg(e,t,i,a,s,o,l):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Yg(e,t,i,n))};function np(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&su.test(t)&&ae(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||su.test(t)&&ye(r)?!1:t in e}var ap=["ctrl","shift","alt","meta"],sp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ap.some(r=>e["".concat(r,"Key")]&&!t.includes(r))},qa=(e,t)=>function(r){for(var i=0;i1?a-1:0),o=1;o{Br(e,!1)}):Br(e,i))},beforeUnmount(e,t){var{value:r}=t;Br(e,r)}};function Br(e,t){e.style.display=t?e._vod:"none"}var op=ce({patchProp:ip},Wg),ou;function lp(){return ou||(ou=vg(op))}var lu=function(){var e=lp().createApp(...arguments),{mount:t}=e;return e.mount=r=>{var i=up(r);if(!!i){var n=e._component;!ae(n)&&!n.render&&!n.template&&(n.template=i.innerHTML),i.innerHTML="";var a=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a}},e};function up(e){if(ye(e)){var t=document.querySelector(e);return t}return e}var uu=["top","left","right","bottom"],Xa,zi={},Ze;function Ka(){return!("CSS"in window)||typeof CSS.supports!="function"?Ze="":CSS.supports("top: env(safe-area-inset-top)")?Ze="env":CSS.supports("top: constant(safe-area-inset-top)")?Ze="constant":Ze="",Ze}function fu(){if(Ze=typeof Ze=="string"?Ze:Ka(),!Ze){uu.forEach(function(o){zi[o]=0});return}function e(o,l){var u=o.style;Object.keys(l).forEach(function(v){var c=l[v];u[v]=c})}var t=[];function r(o){o?t.push(o):t.forEach(function(l){l()})}var i=!1;try{var n=Object.defineProperty({},"passive",{get:function(){i={passive:!0}}});window.addEventListener("test",null,n)}catch(o){}function a(o,l){var u=document.createElement("div"),v=document.createElement("div"),c=document.createElement("div"),_=document.createElement("div"),g=100,m=1e4,b={position:"absolute",width:g+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Ze+"(safe-area-inset-"+l+")"};e(u,b),e(v,b),e(c,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(_,{transition:"0s",animation:"none",width:"250%",height:"250%"}),u.appendChild(c),v.appendChild(_),o.appendChild(u),o.appendChild(v),r(function(){u.scrollTop=v.scrollTop=m;var p=u.scrollTop,h=v.scrollTop;function f(){this.scrollTop!==(this===u?p:h)&&(u.scrollTop=v.scrollTop=m,p=u.scrollTop,h=v.scrollTop,fp(l))}u.addEventListener("scroll",f,i),v.addEventListener("scroll",f,i)});var w=getComputedStyle(u);Object.defineProperty(zi,l,{configurable:!0,get:function(){return parseFloat(w.paddingBottom)}})}var s=document.createElement("div");e(s,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),uu.forEach(function(o){a(s,o)}),document.body.appendChild(s),r(),Xa=!0}function Yi(e){return Xa||fu(),zi[e]}var qi=[];function fp(e){qi.length||setTimeout(function(){var t={};qi.forEach(function(r){t[r]=zi[r]}),qi.length=0,Xi.forEach(function(r){r(t)})},0),qi.push(e)}var Xi=[];function cp(e){!Ka()||(Xa||fu(),typeof e=="function"&&Xi.push(e))}function vp(e){var t=Xi.indexOf(e);t>=0&&Xi.splice(t,1)}var dp={get support(){return(typeof Ze=="string"?Ze:Ka()).length!=0},get top(){return Yi("top")},get left(){return Yi("left")},get right(){return Yi("right")},get bottom(){return Yi("bottom")},onChange:cp,offChange:vp},Ki=dp,hp=qa(()=>{},["prevent"]);function Ga(){var e=document.documentElement.style,t=parseInt(e.getPropertyValue("--window-top"));return t?t+Ki.top:0}function gp(){var e=document.documentElement.style,t=Ga(),r=parseInt(e.getPropertyValue("--window-bottom")),i=parseInt(e.getPropertyValue("--window-left")),n=parseInt(e.getPropertyValue("--window-right"));return{top:t,bottom:r?r+Ki.bottom:0,left:i?i+Ki.left:0,right:n?n+Ki.right:0}}function pp(e){var t=document.documentElement.style;Object.keys(e).forEach(r=>{t.setProperty(r,e[r])})}function Gi(e){return Symbol(e)}function cu(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function Ut(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t)return mp(e);if(typeof e=="string"){var r=parseInt(e)||0;return cu(e)?uni.upx2px(r):r}return e}function mp(e){return cu(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,r)=>uni.upx2px(parseFloat(r))+"px"):e}var _p="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",bp="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",wp="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",yp="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",Sp="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",Zi="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",xp="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",Tp="M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",Ep="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function Ji(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#000",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:27;return I("svg",{width:r,height:r,viewBox:"0 0 32 32"},[I("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Qi(){return Ct()}function Cp(){return window.__PAGE_INFO__}function Ct(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function Op(e){e.preventDefault()}var vu,du=0;function Ip(e){var{onPageScroll:t,onReachBottom:r,onReachBottomDistance:i}=e,n=!1,a=!1,s=!0,o=()=>{var{scrollHeight:u}=document.documentElement,v=window.innerHeight,c=window.scrollY,_=c>0&&u>v&&c+v+i>=u,g=Math.abs(u-du)>i;return _&&(!a||g)?(du=u,a=!0,!0):(!_&&a&&(a=!1),!1)},l=()=>{t&&t(window.pageYOffset);function u(){if(o())return r&&r(),s=!1,setTimeout(function(){s=!0},350),!0}r&&s&&(u()||(vu=setTimeout(u,300))),n=!1};return function(){clearTimeout(vu),n||requestAnimationFrame(l),n=!0}}function Za(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return Za(e,t.substr(2));for(var r=t.split("/"),i=r.length,n=0;n0?e.split("/"):[];return a.splice(a.length-n-1,n+1),"/"+a.concat(r).join("/")}class Mp{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=t.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!(!this.$el||!t)){var r=hu(this.$el.querySelector(t));if(!!r)return Ja(r)}}selectAllComponents(t){if(!this.$el||!t)return[];for(var r=[],i=this.$el.querySelectorAll(t),n=0;n-1&&r.splice(i,1)}var n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return n.indexOf(t)===-1&&(n.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.$vm[t];ae(i)?i(JSON.parse(JSON.stringify(r))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(xd,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:r})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$vm.$emit(t,r),this}getComputedStyle(t){if(this.$el){var r=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((i,n)=>(i[n]=r[n],i),{}):r}return{}}setTimeout(t,r){return window.setTimeout(t,r)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Ja(e){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Mp(e)),e.$el.__wxsComponentDescriptor}function en(e,t){return Ja(e)}function hu(e){if(!!e)return Dr(e)}function Dr(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var{__wxsStyle:t,__wxsAddClass:r,__wxsRemoveClass:i,__wxsStyleChanged:n,__wxsClassChanged:a}=e,s,o;n&&(e.__wxsStyleChanged=!1,t&&(o=()=>{Object.keys(t).forEach(l=>{e.style[l]=t[l]})})),a&&(e.__wxsClassChanged=!1,s=()=>{i&&i.forEach(l=>{e.classList.remove(l)}),r&&r.forEach(l=>{e.classList.add(l)})}),requestAnimationFrame(()=>{s&&s(),o&&o()})}})}var Ap=e=>e.type==="click";function gu(e,t,r){var{currentTarget:i}=e;if(!(e instanceof Event)||!(i instanceof HTMLElement))return[e];if(i.tagName.indexOf("UNI-")!==0)return[e];var n=pu(e);if(Ap(e))Pp(n,e);else if(e instanceof TouchEvent){var a=Ga();n.touches=mu(e.touches,a),n.changedTouches=mu(e.changedTouches,a)}return[n]}function Rp(e){for(;e&&e.tagName.indexOf("UNI-")!==0;)e=e.parentElement;return e}function pu(e){var{type:t,timeStamp:r,target:i,currentTarget:n}=e,a={type:t,timeStamp:r,target:ta(Rp(i)),detail:{},currentTarget:ta(n)};return e._stopped&&(a._stopped=!0),e.type.startsWith("touch")&&(a.touches=e.touches,a.changedTouches=e.changedTouches),a}function Pp(e,t){var{x:r,y:i}=t,n=Ga();e.detail={x:r,y:i-n},e.touches=e.changedTouches=[Lp(t)]}function Lp(e){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}function mu(e,t){for(var r=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:{},r=Ct()+"";plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:e,data:t,pageId:r}},Np)}function Vp(e,t){var r=e[0];if(!(!t||!it(t.formatArgs)&&it(r)))for(var i=t.formatArgs,n=Object.keys(i),a=0;aplus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,""));function Yp(e){return e.indexOf("_www")===0||e.indexOf("_doc")===0||e.indexOf("_documents")===0||e.indexOf("_downloads")===0}function qp(e,t,r){}function Xp(e){return Promise.resolve(e)}var Kp="upx2px",Gp=1e-4,Zp=750,Su=!1,Qa=0,xu=0;function Jp(){var{platform:e,pixelRatio:t,windowWidth:r}=wu();Qa=r,xu=t,Su=e==="ios"}function Tu(e,t){var r=Number(e);return isNaN(r)?t:r}var Eu=zp(Kp,(e,t)=>{if(Qa===0&&Jp(),e=Number(e),e===0)return 0;var r=t||Qa;{var i=__uniConfig.globalStyle||{},n=Tu(i.rpxCalcMaxDeviceWidth,960),a=Tu(i.rpxCalcBaseDeviceWidth,375);r=r<=n?r:a}var s=e/Zp*r;return s<0&&(s=-s),s=Math.floor(s+Gp),s===0&&(xu===1||!Su?s=1:s=.5),e<0?-s:s}),Qp=[{name:"id",type:String,required:!0}];Qp.concat({name:"componentInstance",type:Object});var Cu={};Cu.f={}.propertyIsEnumerable;var em=hr,tm=Bn,rm=ni,im=Cu.f,nm=function(e){return function(t){for(var r=rm(t),i=tm(r),n=i.length,a=0,s=[],o;n>a;)o=i[a++],(!em||im.call(r,o))&&s.push(e?[o,r[o]]:r[o]);return s}},Ou=Nn,am=nm(!1);Ou(Ou.S,"Object",{values:function(t){return am(t)}});var sm="loadFontFace",om="pageScrollTo",lm=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(f){try{return f.defaultView&&f.defaultView.frameElement||null}catch(d){return null}}var t=function(f){for(var d=f,y=e(d);y;)d=y.ownerDocument,y=e(d);return d}(window.document),r=[],i=null,n=null;function a(f){this.time=f.time,this.target=f.target,this.rootBounds=m(f.rootBounds),this.boundingClientRect=m(f.boundingClientRect),this.intersectionRect=m(f.intersectionRect||g()),this.isIntersecting=!!f.intersectionRect;var d=this.boundingClientRect,y=d.width*d.height,x=this.intersectionRect,E=x.width*x.height;y?this.intersectionRatio=Number((E/y).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(f,d){var y=d||{};if(typeof f!="function")throw new Error("callback must be a function");if(y.root&&y.root.nodeType!=1&&y.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(y.rootMargin),this.thresholds=this._initThresholds(y.threshold),this.root=y.root||null,this.rootMargin=this._rootMarginValues.map(function(x){return x.value+x.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return i||(i=function(f,d){!f||!d?n=g():n=b(f,d),r.forEach(function(y){y._checkForIntersections()})}),i},s._resetCrossOriginUpdater=function(){i=null,n=null},s.prototype.observe=function(f){var d=this._observationTargets.some(function(y){return y.element==f});if(!d){if(!(f&&f.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:f,entry:null}),this._monitorIntersections(f.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(f){this._observationTargets=this._observationTargets.filter(function(d){return d.element!=f}),this._unmonitorIntersections(f.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var f=this._queuedEntries.slice();return this._queuedEntries=[],f},s.prototype._initThresholds=function(f){var d=f||[0];return Array.isArray(d)||(d=[d]),d.sort().filter(function(y,x,E){if(typeof y!="number"||isNaN(y)||y<0||y>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return y!==E[x-1]})},s.prototype._parseRootMargin=function(f){var d=f||"0px",y=d.split(/\s+/).map(function(x){var E=/^(-?\d*\.?\d+)(px|%)$/.exec(x);if(!E)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(E[1]),unit:E[2]}});return y[1]=y[1]||y[0],y[2]=y[2]||y[0],y[3]=y[3]||y[1],y},s.prototype._monitorIntersections=function(f){var d=f.defaultView;if(!!d&&this._monitoringDocuments.indexOf(f)==-1){var y=this._checkForIntersections,x=null,E=null;this.POLL_INTERVAL?x=d.setInterval(y,this.POLL_INTERVAL):(u(d,"resize",y,!0),u(f,"scroll",y,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in d&&(E=new d.MutationObserver(y),E.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(f),this._monitoringUnsubscribes.push(function(){var W=f.defaultView;W&&(x&&W.clearInterval(x),v(W,"resize",y,!0)),v(f,"scroll",y,!0),E&&E.disconnect()});var C=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=C){var M=e(f);M&&this._monitorIntersections(M.ownerDocument)}}},s.prototype._unmonitorIntersections=function(f){var d=this._monitoringDocuments.indexOf(f);if(d!=-1){var y=this.root&&(this.root.ownerDocument||this.root)||t,x=this._observationTargets.some(function(M){var W=M.element.ownerDocument;if(W==f)return!0;for(;W&&W!=y;){var V=e(W);if(W=V&&V.ownerDocument,W==f)return!0}return!1});if(!x){var E=this._monitoringUnsubscribes[d];if(this._monitoringDocuments.splice(d,1),this._monitoringUnsubscribes.splice(d,1),E(),f!=y){var C=e(f);C&&this._unmonitorIntersections(C.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var d=0;d=0&&W>=0&&{top:y,bottom:x,left:E,right:C,width:M,height:W}||null}function _(f){var d;try{d=f.getBoundingClientRect()}catch(y){}return d?(d.width&&d.height||(d={top:d.top,right:d.right,bottom:d.bottom,left:d.left,width:d.right-d.left,height:d.bottom-d.top}),d):g()}function g(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function m(f){return!f||"x"in f?f:{top:f.top,y:f.top,bottom:f.bottom,left:f.left,x:f.left,right:f.right,width:f.width,height:f.height}}function b(f,d){var y=d.top-f.top,x=d.left-f.left;return{top:y,left:x,height:d.height,width:d.width,bottom:y+d.height,right:x+d.width}}function w(f,d){for(var y=d;y;){if(y==f)return!0;y=p(y)}return!1}function p(f){var d=f.parentNode;return f.nodeType==9&&f!=t?e(f):(d&&d.assignedSlot&&(d=d.assignedSlot.parentNode),d&&d.nodeType==11&&d.host?d.host:d)}function h(f){return f&&f.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=a};function es(e){var{bottom:t,height:r,left:i,right:n,top:a,width:s}=e||{};return{bottom:t,height:r,left:i,right:n,top:a,width:s}}function um(e){var{intersectionRatio:t,boundingClientRect:{height:r,width:i},intersectionRect:{height:n,width:a}}=e;return t!==0?t:n===r?a/i:n/r}function fm(e,t,r){lm();var i=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,n=new IntersectionObserver(l=>{l.forEach(u=>{r({intersectionRatio:um(u),intersectionRect:es(u.intersectionRect),boundingClientRect:es(u.boundingClientRect),relativeRect:es(u.rootBounds),time:Date.now(),dataset:Qn(u.target),id:u.target.id})})},{root:i,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){n.USE_MUTATION_OBSERVER=!0;for(var a=e.querySelectorAll(t.selector),s=0;s{var i=450,n=44;clearTimeout(t),e&&Math.abs(r.pageX-e.pageX)<=n&&Math.abs(r.pageY-e.pageY)<=n&&r.timeStamp-e.timeStamp<=i&&r.preventDefault(),e=r,t=setTimeout(()=>{e=null},i)})}}function _m(e){if(!e.length)return r=>r;var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof r=="number")return e[r];var n={};return r.forEach(a=>{var[s,o]=a;i?n[t(s)]=t(o):n[t(s)]=o}),n};return t}function bm(e,t){if(!!t)return t.a&&(t.a=e(t.a)),t.e&&(t.e=e(t.e,!1)),t.w&&(t.w=wm(t.w,e)),t.s&&(t.s=e(t.s)),t.t&&(t.t=e(t.t)),t}function wm(e,t){var r={};return e.forEach(i=>{var[n,[a,s]]=i;r[t(n)]=[t(a),s]}),r}function ym(e,t){return e.priority=t,e}var ts=new Set,Sm=1,rs=2,Iu=3,Mu=4;function Ot(e,t){ts.add(ym(e,t))}function xm(){try{[...ts].sort((e,t)=>e.priority-t.priority).forEach(e=>e())}finally{ts.clear()}}function Au(e,t){var r=window["__"+bd],i=r&&r[e];if(i)return i;if(t&&t.__renderjsInstances)return t.__renderjsInstances[e]}var Tm=Po.length;function Em(e,t,r){var[i,n,a,s]=ns(t),o=is(e,i);if(le(r)||le(s)){var[l,u]=a.split(".");return as(o,n,l,u,r||s)}return Im(o,n,a)}function Cm(e,t,r){var[i,n,a]=ns(t),[s,o]=a.split("."),l=is(e,i);return as(l,n,s,o,[Am(r,e),en(Dr(l))])}function is(e,t){if(e.__ownerId===t)return e;for(var r=e.parentElement;r;){if(r.__ownerId===t)return r;r=r.parentElement}return e}function ns(e){return JSON.parse(e.substr(Tm))}function Om(e,t,r,i){var[n,a,s]=ns(e),o=is(t,n),[l,u]=s.split(".");return as(o,a,l,u,[r,i,en(Dr(o)),en(Dr(t))])}function as(e,t,r,i,n){var a=Au(t,e);if(!a)return console.error(Jn("wxs","module "+r+" not found"));var s=a[i];return ae(s)?s.apply(a,n):console.error(r+"."+i+" is not a function")}function Im(e,t,r){var i=Au(t,e);return i?Ao(i,r.substr(r.indexOf(".")+1)):console.error(Jn("wxs","module "+r+" not found"))}function Mm(e,t,r){var i=r;return n=>{try{Om(t,e.$,n,i)}catch(a){console.error(a)}i=n}}function Am(e,t){var r=Dr(t);return Object.defineProperty(e,"instance",{get(){return en(r)}}),e}function Ru(e,t){Object.keys(t).forEach(r=>{Pm(e,t[r])})}function Rm(e){var{__renderjsInstances:t}=e.$;!t||Object.keys(t).forEach(r=>{t[r].$.appContext.app.unmount()})}function Pm(e,t){var r=Lm(t);if(!!r){var i=e.$;(i.__renderjsInstances||(i.__renderjsInstances={}))[t]=Nm(r)}}function Lm(e){var t=window["__"+wd],r=t&&t[e];return r||console.error(Jn("renderjs",e+" not found"))}function Nm(e){return e=e.default||e,e.render=()=>{},lu(e).mount(document.createElement("div"))}class lr{constructor(t,r,i,n){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.$children=[],this.id=t,this.tag=r,this.pid=i,n&&(this.$=n),this.$wxsProps=new Map;var a=this.$parent=$w(i);a&&a.appendUniChild(this)}init(t){te(t,"t")&&(this.$.textContent=t.t)}setText(t){this.$.textContent=t}insert(t,r){var i=this.$,n=Ke(t);r===-1?n.appendChild(i):n.insertBefore(i,Ke(r).$),this.isMounted=!0}remove(){this.removeUniParent();var{$:t}=this;t.parentNode.removeChild(t),this.isUnmounted=!0,zf(this.id),Rm(this),this.removeUniChildren()}appendChild(t){return this.$.appendChild(t)}insertBefore(t,r){return this.$.insertBefore(t,r)}appendUniChild(t){this.$children.push(t)}removeUniChild(t){var r=this.$children.indexOf(t);r>=0&&this.$children.splice(r,1)}removeUniParent(){var{$parent:t}=this;t&&(t.removeUniChild(this),this.$parent=void 0)}removeUniChildren(){this.$children.forEach(t=>t.remove()),this.$children.length=0}setWxsProps(t){Object.keys(t).forEach(r=>{if(r.indexOf(aa)===0){var i=r.replace(aa,""),n=t[i],a=Mm(this,t[r],n);Ot(()=>a(n),Mu),this.$wxsProps.set(r,a),delete t[r],delete t[i],this.$hasWxsProps=!0}})}addWxsEvents(t){Object.keys(t).forEach(r=>{var[i,n]=t[r];this.addWxsEvent(r,i,n)})}addWxsEvent(t,r,i){}wxsPropsInvoke(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.$hasWxsProps&&this.$wxsProps.get(aa+t);if(n)return Ot(()=>i?sr(()=>n(r)):n(r),Mu),!0}}function Pu(e,t){var{__wxsAddClass:r,__wxsRemoveClass:i}=e;i&&i.length&&(t=t.split(/\s+/).filter(n=>i.indexOf(n)===-1).join(" "),i.length=0),r&&r.length&&(t=t+" "+r.join(" ")),e.className=t}function Lu(e,t){var r=e.style;if(ye(t))t===""?e.removeAttribute("style"):r.cssText=Ut(t,!0);else for(var i in t)ss(r,i,t[i]);var{__wxsStyle:n}=e;if(n)for(var a in n)ss(r,a,n[a])}var Nu=/\s*!important$/;function ss(e,t,r){if(le(r))r.forEach(n=>ss(e,t,n));else if(r=Ut(r,!0),t.startsWith("--"))e.setProperty(t,r);else{var i=km(e,t);Nu.test(r)?e.setProperty(Ve(i),r.replace(Nu,""),"important"):e[i]=r}}var ku=["Webkit"],os={};function km(e,t){var r=os[t];if(r)return r;var i=mt(t);if(i!=="filter"&&i in e)return os[t]=i;i=_i(i);for(var n=0;n{var[a]=gu(n);a.type=ed(n.type,r),UniViewJSBridge.publishHandler(_u,[[dd,e,a]])};return t?qa(i,Wu(t)):i}function Wu(e){var t=[];return e&ia.prevent&&t.push("prevent"),e&ia.self&&t.push("self"),e&ia.stop&&t.push("stop"),t}function Bm(e,t,r,i){var[n,a]=ra(t);i===-1?Bu(e,n):Du(e,n)||e.addEventListener(n,e.__listeners[n]=Uu(e,r,i),a)}function Uu(e,t,r){var i=n=>{Cm(e,t,gu(n)[0])};return r?qa(i,Wu(r)):i}var Dm=Lo.length;function ls(e,t){return ye(t)&&(t.indexOf(Lo)===0?t=JSON.parse(t.substr(Dm)):t.indexOf(Po)===0&&(t=Em(e,t))),t}function us(e,t){e._vod=e.style.display==="none"?"":e.style.display,e.style.display=t?e._vod:"none"}class Vu extends lr{constructor(t,r,i,n,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r.tagName,i,r);this.$props=Ee({}),this.$.__id=t,this.$.__listeners=Object.create(null),this.$propNames=s,this._update=this.update.bind(this),this.init(a),this.insert(i,n)}init(t){te(t,"a")&&this.setAttrs(t.a),te(t,"s")&&this.setAttr("style",t.s),te(t,"e")&&this.addEvents(t.e),te(t,"w")&&this.addWxsEvents(t.w),super.init(t),U(this.$props,()=>{Ot(this._update,Sm)},{flush:"sync"}),this.update(!0)}setAttrs(t){this.setWxsProps(t),Object.keys(t).forEach(r=>{this.setAttr(r,t[r])})}addEvents(t){Object.keys(t).forEach(r=>{this.addEvent(r,t[r])})}addWxsEvent(t,r,i){Bm(this.$,t,r,i)}addEvent(t,r){Fu(this.$,t,r)}removeEvent(t){Fu(this.$,t,-1)}setAttr(t,r){t===Co?Pu(this.$,r):t===na?Lu(this.$,r):t===wi?us(this.$,r):t===Oo?this.$.__ownerId=r:t===Io?Ot(()=>Ru(this,r),Iu):t===td?this.$.innerHTML=r:t===rd?this.setText(r):this.setAttribute(t,r)}removeAttr(t){t===Co?Pu(this.$,""):t===na?Lu(this.$,""):this.removeAttribute(t)}setAttribute(t,r){r=ls(this.$,r),this.$propNames.indexOf(t)!==-1?this.$props[t]=r:this.wxsPropsInvoke(t,r)||this.$.setAttribute(t,r)}removeAttribute(t){this.$propNames.indexOf(t)!==-1?delete this.$props[t]:this.$.removeAttribute(t)}update(){}}class Fm extends lr{constructor(t,r,i){super(t,"#comment",r,document.createComment(""));this.insert(r,i)}}var dy="";function Hu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,r)=>"".concat(uni.upx2px(parseFloat(r)),"px")):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function $m(e){return e.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase())).replace("webkit","-webkit")}function Wm(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],r=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],n=["width","height","left","right","top","bottom"],a=e.animates,s=e.option,o=s.transition,l={},u=[];return a.forEach(v=>{var c=v.type,_=[...v.args];if(t.concat(r).includes(c))c.startsWith("rotate")||c.startsWith("skew")?_=_.map(m=>parseFloat(m)+"deg"):c.startsWith("translate")&&(_=_.map(Hu)),r.indexOf(c)>=0&&(_.length=1),u.push("".concat(c,"(").concat(_.join(","),")"));else if(i.concat(n).includes(_[0])){c=_[0];var g=_[1];l[c]=n.includes(c)?Hu(g):g}}),l.transform=l.webkitTransform=u.join(" "),l.transition=l.webkitTransition=Object.keys(l).map(v=>"".concat($m(v)," ").concat(o.duration,"ms ").concat(o.timingFunction," ").concat(o.delay,"ms")).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}function ju(e){var t=e.animation;if(!t||!t.actions||!t.actions.length)return;var r=0,i=t.actions,n=t.actions.length;function a(){var s=i[r],o=s.option.transition,l=Wm(s);Object.keys(l).forEach(u=>{e.$el.style[u]=l[u]}),r+=1,r{a()},0)}var tn={props:["animation"],watch:{animation:{deep:!0,handler(){ju(this)}}},mounted(){ju(this)}},de=e=>{var{props:t,mixins:r}=e;return(!t||!t.animation)&&(r||(e.mixins=[])).push(tn),Um(e)},Um=e=>(e.compatConfig={MODE:3},zh(e)),Vm={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function fs(e){var t=$(!1),r=!1,i,n;function a(){requestAnimationFrame(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function s(u){u._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||u.touches.length>1||(e.hoverStopPropagation&&(u._hoverPropagationStopped=!0),r=!0,i=setTimeout(()=>{t.value=!0,r||a()},parseInt(e.hoverStartTime)))}function o(){r=!1,t.value&&a()}function l(){r=!1,t.value=!1,clearTimeout(i)}return{hovering:t,binding:{onTouchstartPassive:s,onTouchend:o,onTouchcancel:l}}}function Fr(e,t){return ye(t)&&(t=[t]),t.reduce((r,i)=>(e[i]&&(r[i]=!0),r),Object.create(null))}function Vt(e){return e.__wwe=!0,e}function Re(e,t){return(r,i,n)=>{e.value&&t(r,jm(r,i,e.value,n||{}))}}function Hm(e){return(t,r)=>{e(t,pu(r))}}function jm(e,t,r,i){var n=ta(r);return{type:i.type||e,timeStamp:t.timeStamp||0,target:n,currentTarget:n,detail:i}}var lt=Gi("uf"),zm=de({name:"Form",emits:["submit","reset"],setup(e,t){var{slots:r,emit:i}=t,n=$(null);return Ym(Re(n,i)),()=>I("uni-form",{ref:n},[I("span",null,[r.default&&r.default()])],512)}});function Ym(e){var t=[];return Ne(lt,{addField(r){t.push(r)},removeField(r){t.splice(t.indexOf(r),1)},submit(r){e("submit",r,{value:t.reduce((i,n)=>{if(n.submit){var[a,s]=n.submit();a&&(i[a]=s)}return i},Object.create(null))})},reset(r){t.forEach(i=>i.reset&&i.reset()),e("reset",r)}}),t}var $r=Gi("ul"),qm={for:{type:String,default:""}},Xm=de({name:"Label",props:qm,setup(e,t){var{slots:r}=t,i=Qi(),n=Km(),a=Q(()=>e.for||r.default&&r.default.length),s=Vt(o=>{var l=o.target,u=/^uni-(checkbox|radio|switch)-/.test(l.className);u||(u=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(l.tagName)),!u&&(e.for?UniViewJSBridge.emit("uni-label-click-"+i+"-"+e.for,o,!0):n.length&&n[0](o,!0))});return()=>I("uni-label",{class:{"uni-label-pointer":a},onClick:s},[r.default&&r.default()],10,["onClick"])}});function Km(){var e=[];return Ne($r,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}function rn(e,t){zu(e.id,t),U(()=>e.id,(r,i)=>{Yu(i,t,!0),zu(r,t,!0)}),yt(()=>{Yu(e.id,t)})}function zu(e,t,r){var i=Qi();r&&!e||!it(t)||Object.keys(t).forEach(n=>{r?n.indexOf("@")!==0&&n.indexOf("uni-")!==0&&UniViewJSBridge.on("uni-".concat(n,"-").concat(i,"-").concat(e),t[n]):n.indexOf("uni-")===0?UniViewJSBridge.on(n,t[n]):e&&UniViewJSBridge.on("uni-".concat(n,"-").concat(i,"-").concat(e),t[n])})}function Yu(e,t,r){var i=Qi();r&&!e||!it(t)||Object.keys(t).forEach(n=>{r?n.indexOf("@")!==0&&n.indexOf("uni-")!==0&&UniViewJSBridge.off("uni-".concat(n,"-").concat(i,"-").concat(e),t[n]):n.indexOf("uni-")===0?UniViewJSBridge.off(n,t[n]):e&&UniViewJSBridge.off("uni-".concat(n,"-").concat(i,"-").concat(e),t[n])})}var Gm=de({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1}},setup(e,t){var{slots:r}=t,i=$(null);Ud();var n=pe(lt,!1),{hovering:a,binding:s}=fs(e),{t:o}=He(),l=Vt((v,c)=>{if(e.disabled)return v.stopImmediatePropagation();c&&i.value.click();var _=e.formType;if(_){if(!n)return;_==="submit"?n.submit(v):_==="reset"&&n.reset(v);return}e.openType==="feedback"&&Zm(o("uni.button.feedback.title"),o("uni.button.feedback.send"))}),u=pe($r,!1);return u&&(u.addHandler(l),xe(()=>{u.removeHandler(l)})),rn(e,{"label-click":l}),()=>{var v=e.hoverClass,c=Fr(e,"disabled"),_=Fr(e,"loading"),g=v&&v!=="none";return I("uni-button",ze({ref:i,onClick:l,class:g&&a.value?v:""},g&&s,c,_),[r.default&&r.default()],16,["onClick"])}}});function Zm(e,t){var r=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:e,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:t,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){r.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}});r.show("slide-in-right")}var Ht=de({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,t){var{emit:r}=t,i=$(null),n=Qm(i),a=Jm(i,r,n);return e0(i,e,a,n),()=>I("uni-resize-sensor",{ref:i,onAnimationstartOnce:a},[I("div",{onScroll:a},[I("div",null,null)],40,["onScroll"]),I("div",{onScroll:a},[I("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Jm(e,t,r){var i=Ee({width:-1,height:-1});return U(()=>ce({},i),n=>t("resize",n)),()=>{var n=e.value;i.width=n.offsetWidth,i.height=n.offsetHeight,r()}}function Qm(e){return()=>{var{firstElementChild:t,lastElementChild:r}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,r.scrollLeft=1e5,r.scrollTop=1e5}}function e0(e,t,r,i){Ia(i),Ie(()=>{t.initial&&sr(r);var n=e.value;n.offsetParent!==n.parentElement&&(n.parentElement.style.position="relative"),"AnimationEvent"in window||i()})}var me=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}();function qu(e){e.width=e.offsetWidth*me,e.height=e.offsetHeight*me,e.getContext("2d").__hidpi__=!0}var Xu=!1;function t0(){if(!Xu){Xu=!0;var e=function(i,n){for(var a in i)te(i,a)&&n(i[a],a)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]},r=CanvasRenderingContext2D.prototype;r.drawImageByCanvas=function(i){return function(n,a,s,o,l,u,v,c,_,g){if(!this.__hidpi__)return i.apply(this,arguments);a*=me,s*=me,o*=me,l*=me,u*=me,v*=me,c=g?c*me:c,_=g?_*me:_,i.call(this,n,a,s,o,l,u,v,c,_)}}(r.drawImage),me!==1&&(e(t,function(i,n){r[n]=function(a){return function(){if(!this.__hidpi__)return a.apply(this,arguments);var s=Array.prototype.slice.call(arguments);if(i==="all")s=s.map(function(l){return l*me});else if(Array.isArray(i))for(var o=0;ot0());function Ku(e){return e&&et(e)}function nn(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Gu(e,t){var r=e;return Array.from(t).map(i=>{var n=r.getBoundingClientRect();return{identifier:i.identifier,x:i.clientX-n.left,y:i.clientY-n.top}})}var Wr;function Zu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Wr||(Wr=document.createElement("canvas")),Wr.width=e,Wr.height=t,Wr}var i0={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1}},n0=de({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:i0,computed:{id(){return this.canvasId}},setup(e,t){var{emit:r,slots:i}=t;r0();var n=$(null),a=$(null),s=$(!1),o=Hm(r),{$attrs:l,$excludeAttrs:u,$listeners:v}=mf({excludeListeners:!0}),{_listeners:c}=a0(e,v,o),{_handleSubscribe:_,_resize:g}=s0(n,s);return gn(_,pn(e.canvasId),!0),Ie(()=>{g()}),()=>{var{canvasId:m,disableScroll:b}=e;return I("uni-canvas",ze({"canvas-id":m,"disable-scroll":b},l.value,u.value,c.value),[I("canvas",{ref:n,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),I("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[i.default&&i.default()]),I(Ht,{ref:a,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function a0(e,t,r){var i=Q(()=>{var n=["onTouchstart","onTouchmove","onTouchend"],a=t.value,s=ce({},(()=>{var o={};for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){var u=a[l];o[l]=u}return o})());return n.forEach(o=>{var l=s[o],u=[];l&&u.push(Vt(v=>{r(o.replace("on","").toLocaleLowerCase(),ce({},(()=>{var c={};for(var _ in v)c[_]=v[_];return c})(),{touches:Gu(v.currentTarget,v.touches),changedTouches:Gu(v.currentTarget,v.changedTouches)}))})),e.disableScroll&&o==="onTouchmove"&&u.push(hp),s[o]=u}),s});return{_listeners:i}}function s0(e,t){var r=[],i={};function n(g){var m=e.value,b=!g||m.width!==Math.floor(g.width*me)||m.height!==Math.floor(g.height*me);if(!!b)if(m.width>0&&m.height>0){var w=m.getContext("2d"),p=w.getImageData(0,0,m.width,m.height);qu(m),w.putImageData(p,0,0)}else qu(m)}function a(g,m){var{actions:b,reserve:w}=g;if(!!b){if(t.value){r.push([b,w]);return}var p=e.value,h=p.getContext("2d");w||(h.fillStyle="#000000",h.strokeStyle="#000000",h.shadowColor="#000000",h.shadowBlur=0,h.shadowOffsetX=0,h.shadowOffsetY=0,h.setTransform(1,0,0,1,0,0),h.clearRect(0,0,p.width,p.height)),s(b);for(var f=function(x){var E=b[x],C=E.method,M=E.data,W=M[0];if(/^set/.test(C)&&C!=="setTransform"){var V=C[3].toLowerCase()+C.slice(4),q;if(V==="fillStyle"||V==="strokeStyle"){if(W==="normal")q=nn(M[1]);else if(W==="linear"){var he=h.createLinearGradient(...M[1]);M[2].forEach(function(G){var re=G[0],oe=nn(G[1]);he.addColorStop(re,oe)}),q=he}else if(W==="radial"){var R=M[1],B=R[0],ee=R[1],ie=R[2],z=h.createRadialGradient(B,ee,0,B,ee,ie);M[2].forEach(function(G){var re=G[0],oe=nn(G[1]);z.addColorStop(re,oe)}),q=z}else if(W==="pattern"){var J=o(M[1],b.slice(x+1),m,function(G){G&&(h[V]=h.createPattern(G,M[2]))});return J?"continue":"break"}h[V]=q}else if(V==="globalAlpha")h[V]=Number(W)/255;else if(V==="shadow"){var ne=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];M.forEach(function(G,re){h[ne[re]]=ne[re]==="shadowColor"?nn(G):G})}else if(V==="fontSize"){var we=h.__font__||h.font;h.__font__=h.font=we.replace(/\d+\.?\d*px/,W+"px")}else V==="lineDash"?(h.setLineDash(W),h.lineDashOffset=M[1]||0):V==="textBaseline"?(W==="normal"&&(M[0]="alphabetic"),h[V]=W):V==="font"?h.__font__=h.font=W:h[V]=W}else if(C==="fillPath"||C==="strokePath")C=C.replace(/Path/,""),h.beginPath(),M.forEach(function(G){h[G.method].apply(h,G.data)}),h[C]();else if(C==="fillText")h.fillText.apply(h,M);else if(C==="drawImage"){var se=function(){var G=[...M],re=G[0],oe=G.slice(1);if(i=i||{},o(re,b.slice(x+1),m,function(Ce){Ce&&h.drawImage.apply(h,[Ce].concat([...oe.slice(4,8)],[...oe.slice(0,4)]))}))return"break"}();if(se==="break")return"break"}else C==="clip"?(M.forEach(function(G){h[G.method].apply(h,G.data)}),h.clip()):h[C].apply(h,M)},d=0;d{f.src=d}).catch(()=>{f.src=p})}})}function o(g,m,b,w){var p=i[g];return p.ready?(w(p),!0):(r.unshift([m,!0]),t.value=!0,p.onload=function(){p.ready=!0,w(p),t.value=!1;var h=r.slice(0);r=[];for(var f=h.shift();f;)a({actions:f[0],reserve:f[1]},b),f=h.shift()},!1)}function l(g,m){var{x:b=0,y:w=0,width:p,height:h,destWidth:f,destHeight:d,hidpi:y=!0,dataType:x,quality:E=1,type:C="png"}=g,M=e.value,W,V=M.offsetWidth-b;p=p?Math.min(p,V):V;var q=M.offsetHeight-w;h=h?Math.min(h,q):q,y?(f=p,d=h):!f&&!d?(f=Math.round(p*me),d=Math.round(h*me)):f?d||(d=Math.round(h/p*f)):f=Math.round(p/h*d);var he=Zu(f,d),R=he.getContext("2d");(C==="jpeg"||C==="jpg")&&(C="jpeg",R.fillStyle="#fff",R.fillRect(0,0,f,d)),R.__hidpi__=!0,R.drawImageByCanvas(M,b,w,p,h,0,0,f,d,!1);var B;try{var ee;if(x==="base64")W=he.toDataURL("image/".concat(C),E);else{var ie=R.getImageData(0,0,f,d),z=require("pako");W=z.deflateRaw(ie.data,{to:"string"}),ee=!0}B={data:W,compressed:ee,width:f,height:d}}catch(J){B={errMsg:"canvasGetImageData:fail ".concat(J)}}if(he.height=he.width=0,R.__hidpi__=!1,m)m(B);else return B}function u(g,m){var{data:b,x:w,y:p,width:h,height:f,compressed:d}=g;try{f||(f=Math.round(b.length/4/h));var y=Zu(h,f),x=y.getContext("2d");if(d){var E=require("pako");b=E.inflateRaw(b)}x.putImageData(new ImageData(new Uint8ClampedArray(b),h,f),0,0),e.value.getContext("2d").drawImage(y,w,p,h,f),y.height=y.width=0}catch(C){m({errMsg:"canvasPutImageData:fail"});return}m({errMsg:"canvasPutImageData:ok"})}function v(g,m){var{x:b=0,y:w=0,width:p,height:h,destWidth:f,destHeight:d,fileType:y,quality:x,dirname:E}=g,C=l({x:b,y:w,width:p,height:h,destWidth:f,destHeight:d,hidpi:!1,dataType:"base64",type:y,quality:x});if(!C.data||!C.data.length){m({errMsg:C.errMsg.replace("canvasPutImageData","toTempFilePath")});return}qp(C.data)}var c={actionsChanged:a,getImageData:l,putImageData:u,toTempFilePath:v};function _(g,m,b){var w=c[g];g.indexOf("_")!==0&&typeof w=="function"&&w(m,b)}return ce(c,{_resize:n,_handleSubscribe:_})}var Ju=Gi("ucg"),o0={name:{type:String,default:""}},l0=de({name:"CheckboxGroup",props:o0,emits:["change"],setup(e,t){var{emit:r,slots:i}=t,n=$(null),a=Re(n,r);return u0(e,a),()=>I("uni-checkbox-group",{ref:n},[i.default&&i.default()],512)}});function u0(e,t){var r=[],i=()=>r.reduce((a,s)=>(s.value.checkboxChecked&&a.push(s.value.value),a),new Array);Ne(Ju,{addField(a){r.push(a)},removeField(a){r.splice(r.indexOf(a),1)},checkboxChange(a){t("change",a,{value:i()})}});var n=pe(lt,!1);return n&&n.addField({submit:()=>{var a=["",null];return e.name!==""&&(a[0]=e.name,a[1]=i()),a}}),i}var f0={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},c0=de({name:"Checkbox",props:f0,setup(e,t){var{slots:r}=t,i=$(e.checked),n=$(e.value);U([()=>e.checked,()=>e.value],u=>{var[v,c]=u;i.value=v,n.value=c});var a=()=>{i.value=!1},{uniCheckGroup:s,uniLabel:o}=v0(i,n,a),l=u=>{e.disabled||(i.value=!i.value,s&&s.checkboxChange(u))};return o&&(o.addHandler(l),xe(()=>{o.removeHandler(l)})),rn(e,{"label-click":l}),()=>{var u=Fr(e,"disabled");return I("uni-checkbox",ze(u,{onClick:l}),[I("div",{class:"uni-checkbox-wrapper"},[I("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[i.value?Ji(Zi,e.color,22):""],2),r.default&&r.default()])],16,["onClick"])}}});function v0(e,t,r){var i=Q(()=>({checkboxChecked:Boolean(e.value),value:t.value})),n={reset:r},a=pe(Ju,!1);a&&a.addField(i);var s=pe(lt,!1);s&&s.addField(n);var o=pe($r,!1);return xe(()=>{a&&a.removeField(i),s&&s.removeField(n)}),{uniCheckGroup:a,uniForm:s,uniLabel:o}}var Qu,Ur,an,It,sn,cs;Qt(()=>{Ur=plus.os.name==="Android",an=plus.os.version||""}),document.addEventListener("keyboardchange",function(e){It=e.height,sn&&sn()},!1);function ef(){}function Vr(e,t,r){Qt(()=>{var i="adjustResize",n="adjustPan",a="nothing",s=plus.webview.currentWebview(),o=cs||s.getStyle()||{},l={mode:r||o.softinputMode===i?i:e.adjustPosition?n:a,position:{top:0,height:0}};if(l.mode===n){var u=t.getBoundingClientRect();l.position.top=u.top,l.position.height=u.height+(Number(e.cursorSpacing)||0)}s.setSoftinputTemporary(l)})}function d0(e,t){if(e.showConfirmBar==="auto"){delete t.softinputNavBar;return}Qt(()=>{var r=plus.webview.currentWebview(),{softinputNavBar:i}=r.getStyle()||{},n=i!=="none";n!==e.showConfirmBar?(t.softinputNavBar=i||"auto",r.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})}function h0(e){var t=e.softinputNavBar;t&&Qt(()=>{var r=plus.webview.currentWebview();r.setStyle({softinputNavBar:t})})}var tf={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},rf=["keyboardheightchange"];function nf(e,t,r){var i={};function n(a){var s,o=()=>{r("keyboardheightchange",{},{height:It,duration:.25}),s&&It===0&&Vr(e,a),e.autoBlur&&s&&It===0&&(Ur||parseInt(an)>=13)&&document.activeElement.blur()};a.addEventListener("focus",()=>{s=!0,clearTimeout(Qu),document.addEventListener("click",ef,!1),sn=o,It&&r("keyboardheightchange",{},{height:It,duration:0}),d0(e,i),Vr(e,a)}),Ur&&a.addEventListener("click",()=>{!e.disabled&&!e.readOnly&&s&&It===0&&Vr(e,a)}),Ur||(parseInt(an)<12&&a.addEventListener("touchstart",()=>{!e.disabled&&!e.readOnly&&!s&&Vr(e,a)}),parseFloat(an)>=14.6&&!cs&&Qt(()=>{var u=plus.webview.currentWebview();cs=u.getStyle()||{}}));var l=()=>{document.removeEventListener("click",ef,!1),sn=null,It&&r("keyboardheightchange",{},{height:0,duration:0}),h0(i),Ur&&(Qu=setTimeout(()=>{Vr(e,a,!0)},300)),String(navigator.vendor).indexOf("Apple")===0&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};a.addEventListener("blur",()=>{a.blur(),s=!1,l()})}U(()=>t.value,a=>n(a))}var af=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,sf=/^<\/([-A-Za-z0-9_]+)[^>]*>/,g0=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,p0=ur("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),m0=ur("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),_0=ur("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),b0=ur("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),w0=ur("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),y0=ur("script,style");function of(e,t){var r,i,n,a=[],s=e;for(a.last=function(){return this[this.length-1]};e;){if(i=!0,!a.last()||!y0[a.last()]){if(e.indexOf(""),r>=0&&(t.comment&&t.comment(e.substring(4,r)),e=e.substring(r+3),i=!1)):e.indexOf("]*>"),function(v,c){return c=c.replace(/|/g,"$1$2"),t.chars&&t.chars(c),""}),u("",a.last());if(e==s)throw"Parse Error: "+e;s=e}u();function l(v,c,_,g){if(c=c.toLowerCase(),m0[c])for(;a.last()&&_0[a.last()];)u("",a.last());if(b0[c]&&a.last()==c&&u("",c),g=p0[c]||!!g,g||a.push(c),t.start){var m=[];_.replace(g0,function(b,w){var p=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:w0[w]?w:"";m.push({name:w,value:p,escaped:p.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(c,m,g)}}function u(v,c){if(c)for(var _=a.length-1;_>=0&&a[_]!=c;_--);else var _=0;if(_>=0){for(var g=a.length-1;g>=_;g--)t.end&&t.end(a[g]);a.length=_}}}function ur(e){for(var t={},r=e.split(","),i=0;is()),delete vs[t]}}n.push(r)}function S0(e){var t=e.import("blots/block/embed");class r extends t{}return r.blotName="divider",r.tagName="HR",{"formats/divider":r}}function x0(e){var t=e.import("blots/inline");class r extends t{}return r.blotName="ins",r.tagName="INS",{"formats/ins":r}}function T0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["left","right","center","justify"]},n=new r.Style("align","text-align",i);return{"formats/align":n}}function E0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["rtl"]},n=new r.Style("direction","direction",i);return{"formats/direction":n}}function C0(e){var t=e.import("parchment"),r=e.import("blots/container"),i=e.import("formats/list/item");class n extends r{static create(s){var o=s==="ordered"?"OL":"UL",l=super.create(o);return(s==="checked"||s==="unchecked")&&l.setAttribute("data-checked",s==="checked"),l}static formats(s){if(s.tagName==="OL")return"ordered";if(s.tagName==="UL")return s.hasAttribute("data-checked")?s.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(s){super(s);var o=l=>{if(l.target.parentNode===s){var u=this.statics.formats(s),v=t.find(l.target);u==="checked"?v.format("list","unchecked"):u==="unchecked"&&v.format("list","checked")}};s.addEventListener("click",o)}format(s,o){this.children.length>0&&this.children.tail.format(s,o)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(s,o){if(s instanceof i)super.insertBefore(s,o);else{var l=o==null?this.length():o.offset(this),u=this.split(l);u.parent.insertBefore(s,u)}}optimize(s){super.optimize(s);var o=this.next;o!=null&&o.prev===this&&o.statics.blotName===this.statics.blotName&&o.domNode.tagName===this.domNode.tagName&&o.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(o.moveChildren(this),o.remove())}replace(s){if(s.statics.blotName!==this.statics.blotName){var o=t.create(this.statics.defaultChild);s.moveChildren(o),this.appendChild(o)}super.replace(s)}}return n.blotName="list",n.scope=t.Scope.BLOCK_BLOT,n.tagName=["OL","UL"],n.defaultChild="list-item",n.allowedChildren=[i],{"formats/list":n}}function O0(e){var{Scope:t}=e.import("parchment"),r=e.import("formats/background"),i=new r.constructor("backgroundColor","background-color",{scope:t.INLINE});return{"formats/backgroundColor":i}}function I0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK},n=["margin","marginTop","marginBottom","marginLeft","marginRight"],a=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],s={};return n.concat(a).forEach(o=>{s["formats/".concat(o)]=new r.Style(o,Ve(o),i)}),s}function M0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.INLINE},n=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],a={};return n.forEach(s=>{a["formats/".concat(s)]=new r.Style(s,Ve(s),i)}),a}function A0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],n={};return i.forEach(a=>{var{name:s,scope:o}=a;n["formats/".concat(s)]=new r.Style(s,Ve(s),{scope:o})}),n}function R0(e){var t=e.import("formats/image"),r=["alt","height","width","data-custom","class","data-local"];t.sanitize=n=>n&&et(n),t.formats=function(a){return r.reduce(function(s,o){return a.hasAttribute(o)&&(s[o]=a.getAttribute(o)),s},{})};var i=t.prototype.format;t.prototype.format=function(n,a){r.indexOf(n)>-1?a?this.domNode.setAttribute(n,a):this.domNode.removeAttribute(n):i.call(this,n,a)}}function P0(e){var t=e.import("formats/link");t.sanitize=r=>{var i=document.createElement("a");i.href=r;var n=i.href.slice(0,i.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(n)>-1?r:t.SANITIZED_URL}}function L0(e){var t={divider:S0,ins:x0,align:T0,direction:E0,list:C0,background:O0,box:I0,font:M0,text:A0,image:R0,link:P0},r={};Object.values(t).forEach(i=>ce(r,i(e))),e.register(r,!0)}function N0(e,t,r){var i,n,a,s=!1;U(()=>e.readOnly,m=>{i&&(a.enable(!m),m||a.blur())}),U(()=>e.placeholder,m=>{i&&u(m)});function o(m){var b=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],w="",p;of(m,{start:function(f,d,y){if(!b.includes(f)){p=!y;return}p=!1;var x=d.map(C=>{var{name:M,value:W}=C;return"".concat(M,'="').concat(W,'"')}).join(" "),E="<".concat(f," ").concat(x," ").concat(y?"/":"",">");w+=E},end:function(f){p||(w+=""))},chars:function(f){p||(w+=f)}}),n=!0;var h=a.clipboard.convert(w);return n=!1,h}function l(){var m=a.root.innerHTML,b=a.getText(),w=a.getContents();return{html:m,text:b,delta:w}}function u(m){var b="data-placeholder",w=a.root;w.getAttribute(b)!==m&&w.setAttribute(b,m)}var v={};function c(m){var b=m?a.getFormat(m):{},w=Object.keys(b);(w.length!==Object.keys(v).length||w.find(p=>b[p]!==v[p]))&&(v=b,r("statuschange",{},b))}function _(m){var b=window.Quill;L0(b);var w={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};m.length&&(b.register("modules/ImageResize",window.ImageResize.default),w.modules={ImageResize:{modules:m}});var p=t.value;a=new b(p,w);var h=a.root,f=["focus","blur","input"];f.forEach(d=>{h.addEventListener(d,y=>{var x=l();if(d==="input"){if(wu().platform==="ios"){var E=(x.html.match(/([\s\S]*)<\/span>/)||[])[1],C=E&&E.replace(/\s/g,"")?"":e.placeholder;u(C)}y.stopPropagation()}else r(d,y,x)})}),a.on("text-change",()=>{s||r("input",{},l())}),a.on("selection-change",c),a.on("scroll-optimize",()=>{var d=a.selection.getRange()[0];c(d)}),a.clipboard.addMatcher(Node.ELEMENT_NODE,(d,y)=>(n||y.ops&&(y.ops=y.ops.filter(x=>{var{insert:E}=x;return typeof E=="string"}).map(x=>{var{insert:E}=x;return{insert:E}})),y)),i=!0,r("ready",{},{})}Ie(()=>{var m=[];e.showImgSize&&m.push("DisplaySize"),e.showImgToolbar&&m.push("Toolbar"),e.showImgResize&&m.push("Resize");var b="./__uniappquill.js";lf(window.Quill,b,()=>{if(m.length){var w="./__uniappquillimageresize.js";lf(window.ImageResize,w,()=>{_(m)})}else _(m)})});var g=pn();gn((m,b,w)=>{var{options:p,callbackId:h}=b,f,d,y;if(i){var x=window.Quill;switch(m){case"format":{var{name:E="",value:C=!1}=p;d=a.getSelection(!0);var M=a.getFormat(d)[E]||!1;if(["bold","italic","underline","strike","ins"].includes(E))C=!M;else if(E==="direction"){C=C==="rtl"&&M?!1:C;var W=a.getFormat(d).align;C==="rtl"&&!W?a.format("align","right","user"):!C&&W==="right"&&a.format("align",!1,"user")}else if(E==="indent"){var V=a.getFormat(d).direction==="rtl";C=C==="+1",V&&(C=!C),C=C?"+1":"-1"}else E==="list"&&(C=C==="check"?"unchecked":C,M=M==="checked"?"unchecked":M),C=M&&M!==(C||!1)||!M&&C?C:!M;a.format(E,C,"user")}break;case"insertDivider":d=a.getSelection(!0),a.insertText(d.index,wr,"user"),a.insertEmbed(d.index+1,"divider",!0,"user"),a.setSelection(d.index+2,0,"silent");break;case"insertImage":{d=a.getSelection(!0);var{src:q="",alt:he="",width:R="",height:B="",extClass:ee="",data:ie={}}=p,z=et(q);a.insertEmbed(d.index,"image",z,"user");var J=/^(file|blob):/.test(z)?z:!1;s=!0,a.formatText(d.index,1,"data-local",J),a.formatText(d.index,1,"alt",he),a.formatText(d.index,1,"width",R),a.formatText(d.index,1,"height",B),a.formatText(d.index,1,"class",ee),s=!1,a.formatText(d.index,1,"data-custom",Object.keys(ie).map(re=>"".concat(re,"=").concat(ie[re])).join("&")),a.setSelection(d.index+1,0,"silent")}break;case"insertText":{d=a.getSelection(!0);var{text:ne=""}=p;a.insertText(d.index,ne,"user"),a.setSelection(d.index+ne.length,0,"silent")}break;case"setContents":{var{delta:we,html:se}=p;typeof we=="object"?a.setContents(we,"silent"):typeof se=="string"?a.setContents(o(se),"silent"):y="contents is missing"}break;case"getContents":f=l();break;case"clear":a.setText("");break;case"removeFormat":{d=a.getSelection(!0);var G=x.import("parchment");d.length?a.removeFormat(d.index,d.length,"user"):Object.keys(a.getFormat(d)).forEach(re=>{G.query(re,G.Scope.INLINE)&&a.format(re,!1)})}break;case"undo":a.history.undo();break;case"redo":a.history.redo();break;case"blur":a.blur();break;case"getSelectionText":d=a.selection.savedRange,f={text:""},d&&d.length!==0&&(f.text=a.getText(d.index,d.length));break;case"scrollIntoView":a.scrollIntoView();break}c(d)}else y="not ready";h&&w({callbackId:h,data:ce({},f,{errMsg:"".concat(m,":").concat(y?"fail "+y:"ok")})})},g,!0)}var k0=ce({},tf,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),B0=de({name:"Editor",props:k0,emit:["ready","focus","blur","input","statuschange",...rf],setup(e,t){var{emit:r}=t,i=$(null),n=Re(i,r);return N0(e,i,n),nf(e,i,n),()=>I("uni-editor",{ref:i,id:e.id,class:"ql-container"},null,8,["id"])}}),uf="#10aeff",D0="#f76260",ff="#b2b2b2",F0="#f43530",$0={success:{d:xp,c:yi},success_no_circle:{d:Zi,c:yi},info:{d:yp,c:uf},warn:{d:Ep,c:D0},waiting:{d:Tp,c:uf},cancel:{d:_p,c:F0},download:{d:wp,c:yi},search:{d:Sp,c:ff},clear:{d:bp,c:ff}},W0=de({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=Q(()=>$0[e.type]);return()=>{var{value:r}=t;return I("uni-icon",null,[r&&r.d&&Ji(r.d,e.color||r.c,Ut(e.size))])}}}),U0={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!0}},on={widthFix:["offsetWidth","height"],heightFix:["offsetHeight","width"]},V0={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"]},H0=de({name:"Image",props:U0,setup(e,t){var{emit:r}=t,i=$(null),n=j0(i,e),a=Re(i,r),{fixSize:s}=X0(i,e,n);return z0(n,s,a),()=>{var{mode:o}=e,{imgSrc:l,modeStyle:u,src:v}=n,c;return c=l?I("img",{src:l,draggable:e.draggable},null,8,["src","draggable"]):I("img",null,null),I("uni-image",{ref:i},[I("div",{style:u},null,4),c,on[o]?I(Ht,{onResize:s},null,8,["onResize"]):I("span",null,null)],512)}}});function j0(e,t){var r=$(""),i=Q(()=>{var a="auto",s="",o=V0[t.mode];return o?(o[0]&&(s=o[0]),o[1]&&(a=o[1])):(s="0% 0%",a="100% 100%"),"background-image:".concat(r.value?'url("'+r.value+'")':"none",";background-position:").concat(s,";background-size:").concat(a,";")}),n=Ee({rootEl:e,src:Q(()=>t.src?et(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:r});return Ie(()=>{var a=e.value,s=a.style;n.origWidth=Number(s.width)||0,n.origHeight=Number(s.height)||0}),n}function z0(e,t,r){var i,n=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";e.origWidth=o,e.origHeight=l,e.imgSrc=u},a=o=>{if(!o){s(),n();return}i=i||new Image,i.onload=l=>{var{width:u,height:v}=i;n(u,v,o),t(),s(),r("load",l,{width:u,height:v})},i.onerror=l=>{n(),s(),r("error",l,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},i.src=o},s=()=>{i&&(i.onload=null,i.onerror=null,i=null)};U(()=>e.src,o=>a(o)),Ie(()=>a(e.src)),xe(()=>s())}var Y0=navigator.vendor==="Google Inc.";function q0(e){return Y0&&e>10&&(e=Math.round(e/2)*2),e}function X0(e,t,r){var i=()=>{var{mode:a}=t,s=on[a];if(!!s){var{origWidth:o,origHeight:l}=r,u=o&&l?o/l:0;if(!!u){var v=e.value,c=v[s[0]];c&&(v.style[s[1]]=q0(c/u)+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},n=()=>{var{style:a}=e.value,{origStyle:{width:s,height:o}}=r;a.width=s,a.height=o};return U(()=>t.mode,(a,s)=>{on[s]&&n(),on[a]&&i()}),{fixSize:i,resetSize:n}}function K0(e,t){var r=0,i,n,a=function(){for(var s=arguments.length,o=new Array(s),l=0;l{n=null,r=u,e.apply(this,o)},u-rln.forEach(t=>t.userAction=e);function Z0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{userAction:!1};if(!cf){var t=["touchstart","touchmove","touchend","mousedown","mouseup"];t.forEach(r=>{document.addEventListener(r,function(){!ds&&vf(!0),ds++,setTimeout(()=>{!--ds&&vf(!1)},0)},G0)}),cf=!0}ln.push(e)}function J0(e){var t=ln.indexOf(e);t>=0&&ln.splice(t,1)}function Q0(){var e=Ee({userAction:!1});return Ie(()=>{Z0(e)}),xe(()=>{J0(e)}),{state:e}}function df(){var e=Ee({attrs:{}});return Ie(()=>{for(var t=xt();t;){var r=t.type.__scopeId;r&&(e.attrs[r]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function e_(e,t){var r=pe(lt,!1);if(!!r){var i=xt(),n={submit(){var a=i.proxy;return[a[e],typeof t=="string"?a[t]:t.value]},reset(){typeof t=="string"?i.proxy[t]="":t.value=""}};r.addField(n),xe(()=>{r.removeField(n)})}}function t_(e,t){var r=document.activeElement;if(!r)return t({});var i={};["input","textarea"].includes(r.tagName.toLowerCase())&&(i.start=r.selectionStart,i.end=r.selectionEnd),t(i)}var r_=function(){ct(Ct(),"getSelectedTextRange",t_)},i_=200,hs;function gs(e){return e===null?"":String(e)}var hf=ce({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"}},tf),gf=["input","focus","blur","update:value","update:modelValue","update:focus",...rf];function n_(e,t,r){var i=$(null),n=Re(t,r),a=Q(()=>{var c=Number(e.selectionStart);return isNaN(c)?-1:c}),s=Q(()=>{var c=Number(e.selectionEnd);return isNaN(c)?-1:c}),o=Q(()=>{var c=Number(e.cursor);return isNaN(c)?-1:c}),l=Q(()=>{var c=Number(e.maxlength);return isNaN(c)?140:c}),u=gs(e.modelValue)||gs(e.value),v=Ee({value:u,valueOrigin:u,maxlength:l,focus:e.focus,composing:!1,selectionStart:a,selectionEnd:s,cursor:o});return U(()=>v.focus,c=>r("update:focus",c)),U(()=>v.maxlength,c=>v.value=v.value.slice(0,c)),{fieldRef:i,state:v,trigger:n}}function a_(e,t,r,i){var n=pd(o=>{t.value=gs(o)},100);U(()=>e.modelValue,n),U(()=>e.value,n);var a=K0((o,l)=>{n.cancel(),r("update:modelValue",l.value),r("update:value",l.value),i("input",o,l)},100),s=(o,l,u)=>{n.cancel(),a(o,l),u&&a.flush()};return yl(()=>{n.cancel(),a.cancel()}),{trigger:i,triggerInput:s}}function s_(e,t){var{state:r}=Q0(),i=Q(()=>e.autoFocus||e.focus);function n(){if(!!i.value){var s=t.value;if(!s||!("plus"in window)){setTimeout(n,100);return}{var o=i_-(Date.now()-hs);if(o>0){setTimeout(n,o);return}s.focus(),r.userAction||plus.key.showSoftKeybord()}}}function a(){var s=t.value;s&&s.blur()}U(()=>e.focus,s=>{s?n():a()}),Ie(()=>{hs=hs||Date.now(),i.value&&sr(n)})}function o_(e,t,r,i,n){function a(){var l=e.value;l&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&(l.selectionStart=t.selectionStart,l.selectionEnd=t.selectionEnd)}function s(){var l=e.value;l&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&(l.selectionEnd=l.selectionStart=t.cursor)}function o(){var l=e.value,u=function(_){t.focus=!0,r("focus",_,{value:t.value}),a(),s()},v=function(_,g){_.stopPropagation(),!(typeof n=="function"&&n(_,t)===!1)&&(t.value=l.value,t.composing||i(_,{value:l.value,cursor:l.selectionEnd},g))},c=function(_){t.composing&&(t.composing=!1,v(_,!0)),t.focus=!1,r("blur",_,{value:t.value,cursor:_.target.selectionEnd})};l.addEventListener("change",_=>_.stopPropagation()),l.addEventListener("focus",u),l.addEventListener("blur",c),l.addEventListener("input",v),l.addEventListener("compositionstart",_=>{_.stopPropagation(),t.composing=!0}),l.addEventListener("compositionend",_=>{_.stopPropagation(),t.composing&&(t.composing=!1,v(_))})}U([()=>t.selectionStart,()=>t.selectionEnd],a),U(()=>t.cursor,s),U(()=>e.value,o)}function pf(e,t,r,i){r_();var{fieldRef:n,state:a,trigger:s}=n_(e,t,r),{triggerInput:o}=a_(e,a,r,s);s_(e,n),nf(e,n,s);var{state:l}=df();e_("name",a),o_(n,a,s,o,i);var u=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:n,state:a,scopedAttrsState:l,fixDisabledColor:u,trigger:s}}var l_=ce({},hf,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),u_=de({name:"Input",props:l_,emits:["confirm",...gf],setup(e,t){var{emit:r}=t,i=["text","number","idcard","digit","password","tel"],n=["off","one-time-code"],a=Q(()=>{var h="";switch(e.type){case"text":e.confirmType==="search"&&(h="search");break;case"idcard":h="text";break;case"digit":h="number";break;default:h=~i.includes(e.type)?e.type:"text";break}return e.password?"password":h}),s=Q(()=>{var h=n.indexOf(e.textContentType),f=n.indexOf(Ve(e.textContentType)),d=h!==-1?h:f!==-1?f:0;return n[d]}),o=$(""),l,u=$(null),{fieldRef:v,state:c,scopedAttrsState:_,fixDisabledColor:g,trigger:m}=pf(e,u,r,(h,f)=>{var d=h.target;if(a.value==="number"){if(l&&(d.removeEventListener("blur",l),l=null),d.validity&&!d.validity.valid)return!o.value&&h.data==="-"||o.value[0]==="-"&&h.inputType==="deleteContentBackward"?(o.value="-",f.value="",l=()=>{o.value=d.value=""},d.addEventListener("blur",l),!1):(o.value=f.value=d.value=o.value==="-"?"":o.value,!1);o.value=d.value;var y=f.maxlength;if(y>0&&d.value.length>y)return d.value=d.value.slice(0,y),f.value=d.value,!1}}),b=["number","digit"],w=Q(()=>b.includes(e.type)?"0.000000000000000001":"");function p(h){h.key==="Enter"&&(h.stopPropagation(),m("confirm",h,{value:h.target.value}))}return()=>{var h=e.disabled&&g?I("input",{ref:v,value:c.value,tabindex:"-1",readonly:!!e.disabled,type:a.value,maxlength:c.maxlength,step:w.value,class:"uni-input-input",onFocus:f=>f.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):I("input",{ref:v,value:c.value,disabled:!!e.disabled,type:a.value,maxlength:c.maxlength,step:w.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",autocomplete:s.value,onKeyup:p},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return I("uni-input",{ref:u},[I("div",{class:"uni-input-wrapper"},[Or(I("div",ze(_.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[kr,!(c.value.length||o.value==="-")]]),e.confirmType==="search"?I("form",{action:"",onSubmit:f=>f.preventDefault(),class:"uni-input-form"},[h],40,["onSubmit"]):h])],512)}}});function f_(e){return Object.keys(e).map(t=>[t,e[t]])}var c_=["class","style"],v_=/^on[A-Z]+/,mf=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{excludeListeners:t=!1,excludeKeys:r=[]}=e,i=xt(),n=Ta({}),a=Ta({}),s=Ta({}),o=r.concat(c_);return i.attrs=Ee(i.attrs),kg(()=>{var l=f_(i.attrs).reduce((u,v)=>{var[c,_]=v;return o.includes(c)?u.exclude[c]=_:v_.test(c)?(t||(u.attrs[c]=_),u.listeners[c]=_):u.attrs[c]=_,u},{exclude:{},attrs:{},listeners:{}});n.value=l.attrs,a.value=l.listeners,s.value=l.exclude}),{$attrs:n,$listeners:a,$excludeAttrs:s}},un,Hr;function fn(){Qt(()=>{un||(un=plus.webview.currentWebview()),Hr||(Hr=(un.getStyle()||{}).pullToRefresh||{})})}function Mt(e){var{disable:t}=e;Hr&&Hr.support&&un.setPullToRefresh(Object.assign({},Hr,{support:!t}))}function ps(e){var t=[];return Array.isArray(e)&&e.forEach(r=>{Di(r)?r.type===st?t.push(...ps(r.children)):t.push(r):Array.isArray(r)&&t.push(...ps(r))}),t}function jr(e){var t=xt();t.rebuild=e}var d_={scaleArea:{type:Boolean,default:!1}},h_=de({inheritAttrs:!1,name:"MovableArea",props:d_,setup(e,t){var{slots:r}=t,i=$(null),n=$(!1),{setContexts:a,events:s}=g_(e,i),{$listeners:o,$attrs:l,$excludeAttrs:u}=mf(),v=o.value,c=["onTouchstart","onTouchmove","onTouchend"];c.forEach(p=>{var h=v[p],f=s["_".concat(p)];v[p]=h?[].concat(h,f):f}),Ie(()=>{s._resize(),fn(),n.value=!0});var _=[],g=[];function m(){for(var p=[],h=function(d){var y=_[d];y instanceof Element||(y=y.el);var x=g.find(E=>y===E.rootRef.value);x&&p.push(Li(x))},f=0;f<_.length;f++)h(f);a(p)}jr(()=>{_=i.value.children,m()});var b=p=>{g.push(p),m()},w=p=>{var h=g.indexOf(p);h>=0&&(g.splice(h,1),m())};return Ne("_isMounted",n),Ne("movableAreaRootRef",i),Ne("addMovableViewContext",b),Ne("removeMovableViewContext",w),()=>(r.default&&r.default(),I("uni-movable-area",ze({ref:i},l.value,u.value,v),[I(Ht,{onReize:s._resize},null,8,["onReize"]),_],16))}});function _f(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function g_(e,t){var r=$(0),i=$(0),n=Ee({x:null,y:null}),a=$(null),s=null,o=[];function l(b){b&&b!==1&&(e.scaleArea?o.forEach(function(w){w._setScale(b)}):s&&s._setScale(b))}function u(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,p=t.value;function h(f){for(var d=0;d{Mt({disable:!0});var w=b.touches;if(w&&w.length>1){var p={x:w[1].pageX-w[0].pageX,y:w[1].pageY-w[0].pageY};if(a.value=_f(p),n.x=p.x,n.y=p.y,!e.scaleArea){var h=u(w[0].target),f=u(w[1].target);s=h&&h===f?h:null}}}),c=Vt(b=>{var w=b.touches;if(w&&w.length>1){b.preventDefault();var p={x:w[1].pageX-w[0].pageX,y:w[1].pageY-w[0].pageY};if(n.x!==null&&a.value&&a.value>0){var h=_f(p)/a.value;l(h)}n.x=p.x,n.y=p.y}}),_=Vt(b=>{Mt({disable:!1});var w=b.touches;w&&w.length||b.changedTouches&&(n.x=0,n.y=0,a.value=null,e.scaleArea?o.forEach(function(p){p._endScale()}):s&&s._endScale())});function g(){m(),o.forEach(function(b,w){b.setParent()})}function m(){var b=window.getComputedStyle(t.value),w=t.value.getBoundingClientRect();r.value=w.width-["Left","Right"].reduce(function(p,h){var f="border"+h+"Width",d="padding"+h;return p+parseFloat(b[f])+parseFloat(b[d])},0),i.value=w.height-["Top","Bottom"].reduce(function(p,h){var f="border"+h+"Width",d="padding"+h;return p+parseFloat(b[f])+parseFloat(b[d])},0)}return Ne("movableAreaWidth",r),Ne("movableAreaHeight",i),{setContexts(b){o=b},events:{_onTouchstart:v,_onTouchmove:c,_onTouchend:_,_resize:g}}}var zr=function(e,t,r,i){e.addEventListener(t,n=>{typeof r=="function"&&r(n)===!1&&((typeof n.cancelable!="undefined"?n.cancelable:!0)&&n.preventDefault(),n.stopPropagation())},{passive:!1})},bf,wf;function cn(e,t,r){xe(()=>{document.removeEventListener("mousemove",bf),document.removeEventListener("mouseup",wf)});var i=0,n=0,a=0,s=0,o=function(g,m,b,w){if(t({target:g.target,currentTarget:g.currentTarget,preventDefault:g.preventDefault.bind(g),stopPropagation:g.stopPropagation.bind(g),touches:g.touches,changedTouches:g.changedTouches,detail:{state:m,x:b,y:w,dx:b-i,dy:w-n,ddx:b-a,ddy:w-s,timeStamp:g.timeStamp}})===!1)return!1},l=null,u,v;zr(e,"touchstart",function(g){if(u=!0,g.touches.length===1&&!l)return l=g,i=a=g.touches[0].pageX,n=s=g.touches[0].pageY,o(g,"start",i,n)}),zr(e,"mousedown",function(g){if(v=!0,!u&&!l)return l=g,i=a=g.pageX,n=s=g.pageY,o(g,"start",i,n)}),zr(e,"touchmove",function(g){if(g.touches.length===1&&l){var m=o(g,"move",g.touches[0].pageX,g.touches[0].pageY);return a=g.touches[0].pageX,s=g.touches[0].pageY,m}});var c=bf=function(g){if(!u&&v&&l){var m=o(g,"move",g.pageX,g.pageY);return a=g.pageX,s=g.pageY,m}};document.addEventListener("mousemove",c),zr(e,"touchend",function(g){if(g.touches.length===0&&l)return u=!1,l=null,o(g,"end",g.changedTouches[0].pageX,g.changedTouches[0].pageY)});var _=wf=function(g){if(v=!1,!u&&l)return l=null,o(g,"end",g.pageX,g.pageY)};document.addEventListener("mouseup",_),zr(e,"touchcancel",function(g){if(l){u=!1;var m=l;return l=null,o(g,r?"cancel":"end",m.touches[0].pageX,m.touches[0].pageY)}})}function vn(e,t,r){return e>t-r&&ethis._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,r=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&rthis._endPositionY)&&(r=this._endPositionY),{x:t,y:r}},ut.prototype.ds=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},ut.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}},ut.prototype.dt=function(){return-this._x_v/this._x_a},ut.prototype.done=function(){var e=vn(this.s().x,this._endPositionX)||vn(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},ut.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},ut.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function qe(e,t,r){this._m=e,this._k=t,this._c=r,this._solution=null,this._endPosition=0,this._startTime=0}qe.prototype._solve=function(e,t){var r=this._c,i=this._m,n=this._k,a=r*r-4*i*n;if(a===0){var s=-r/(2*i),o=e,l=t/(s*e);return{x:function(p){return(o+l*p)*Math.pow(Math.E,s*p)},dx:function(p){var h=Math.pow(Math.E,s*p);return s*(o+l*p)*h+l*h}}}if(a>0){var u=(-r-Math.sqrt(a))/(2*i),v=(-r+Math.sqrt(a))/(2*i),c=(t-u*e)/(v-u),_=e-c;return{x:function(p){var h,f;return p===this._t&&(h=this._powER1T,f=this._powER2T),this._t=p,h||(h=this._powER1T=Math.pow(Math.E,u*p)),f||(f=this._powER2T=Math.pow(Math.E,v*p)),_*h+c*f},dx:function(p){var h,f;return p===this._t&&(h=this._powER1T,f=this._powER2T),this._t=p,h||(h=this._powER1T=Math.pow(Math.E,u*p)),f||(f=this._powER2T=Math.pow(Math.E,v*p)),_*u*h+c*v*f}}}var g=Math.sqrt(4*i*n-r*r)/(2*i),m=-r/2*i,b=e,w=(t-m*e)/g;return{x:function(p){return Math.pow(Math.E,m*p)*(b*Math.cos(g*p)+w*Math.sin(g*p))},dx:function(p){var h=Math.pow(Math.E,m*p),f=Math.cos(g*p),d=Math.sin(g*p);return h*(w*g*f-b*g*d)+m*h*(w*d+b*f)}}},qe.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},qe.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},qe.prototype.setEnd=function(e,t,r){if(r||(r=new Date().getTime()),e!==this._endPosition||!jt(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(jt(t,.1)&&(t=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),jt(t,.1)&&(t=0),jt(i,.1)&&(i=0),i+=this._endPosition),this._solution&&jt(i-e,.1)&&jt(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=r)}},qe.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},qe.prototype.done=function(e){return e||(e=new Date().getTime()),vn(this.x(),this._endPosition,.1)&&jt(this.dx(),.1)},qe.prototype.reconfigure=function(e,t,r){this._m=e,this._k=t,this._c=r,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())},qe.prototype.springConstant=function(){return this._k},qe.prototype.damping=function(){return this._c},qe.prototype.configuration=function(){function e(r,i){r.reconfigure(1,i,r.damping())}function t(r,i){r.reconfigure(1,r.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function Yr(e,t,r){this._springX=new qe(e,t,r),this._springY=new qe(e,t,r),this._springScale=new qe(e,t,r),this._startTime=0}Yr.prototype.setEnd=function(e,t,r,i){var n=new Date().getTime();this._springX.setEnd(e,i,n),this._springY.setEnd(t,i,n),this._springScale.setEnd(r,i,n),this._startTime=n},Yr.prototype.x=function(){var e=(new Date().getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Yr.prototype.done=function(){var e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Yr.prototype.reconfigure=function(e,t,r){this._springX.reconfigure(e,t,r),this._springY.reconfigure(e,t,r),this._springScale.reconfigure(e,t,r)};var p_={direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},m_=de({name:"MovableView",props:p_,emits:["change","scale"],setup(e,t){var{slots:r,emit:i}=t,n=$(null),a=Re(n,i),{setParent:s}=__(e,a,n);return()=>I("uni-movable-view",{ref:n},[I(Ht,{onResize:s},null,8,["onResize"]),r.default&&r.default()],512)}}),_s=!1;function yf(e){_s||(_s=!0,requestAnimationFrame(function(){e(),_s=!1}))}function Sf(e,t){if(e===t)return 0;var r=e.offsetLeft;return e.offsetParent?r+=Sf(e.offsetParent,t):0}function xf(e,t){if(e===t)return 0;var r=e.offsetTop;return e.offsetParent?r+=xf(e.offsetParent,t):0}function Tf(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function Ef(e,t,r){var i={id:0,cancelled:!1},n=function(s){s&&s.id&&cancelAnimationFrame(s.id),s&&(s.cancelled=!0)};function a(s,o,l,u){if(!s||!s.cancelled){l(o);var v=o.done();v||s.cancelled||(s.id=requestAnimationFrame(a.bind(null,s,o,l,u))),v&&u&&u(o)}}return a(i,e,t,r),{cancel:n.bind(null,i),model:e}}function dn(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function __(e,t,r){var i=pe("movableAreaWidth",$(0)),n=pe("movableAreaHeight",$(0)),a=pe("_isMounted",$(!1)),s=pe("movableAreaRootRef"),o=pe("addMovableViewContext",()=>{}),l=pe("removeMovableViewContext",()=>{}),u=$(dn(e.x)),v=$(dn(e.y)),c=$(Number(e.scaleValue)||1),_=$(0),g=$(0),m=$(0),b=$(0),w=$(0),p=$(0),h=null,f=null,d={x:0,y:0},y={x:0,y:0},x=1,E=1,C=0,M=0,W=!1,V=!1,q,he,R=null,B=null,ee=new ms,ie=new ms,z={historyX:[0,0],historyY:[0,0],historyT:[0,0]},J=Q(()=>{var O=Number(e.damping);return isNaN(O)?20:O}),ne=Q(()=>{var O=Number(e.friction);return isNaN(O)||O<=0?2:O}),we=Q(()=>{var O=Number(e.scaleMin);return isNaN(O)?.5:O}),se=Q(()=>{var O=Number(e.scaleMax);return isNaN(O)?10:O}),G=Q(()=>e.direction==="all"||e.direction==="horizontal"),re=Q(()=>e.direction==="all"||e.direction==="vertical"),oe=new Yr(1,9*Math.pow(J.value,2)/40,J.value),Ce=new ut(1,ne.value);U(()=>e.x,O=>{u.value=dn(O)}),U(()=>e.y,O=>{v.value=dn(O)}),U(u,O=>{Ge(O)}),U(v,O=>{At(O)}),U(()=>e.scaleValue,O=>{c.value=Number(O)||0}),U(c,O=>{Gr(O)}),U(we,()=>{Me()}),U(se,()=>{Me()});function Oe(){f&&f.cancel(),h&&h.cancel()}function Ge(O){if(G.value){if(O+y.x===C)return C;h&&h.cancel(),Z(O+y.x,v.value+y.y,x)}return O}function At(O){if(re.value){if(O+y.y===M)return M;h&&h.cancel(),Z(u.value+y.x,O+y.y,x)}return O}function Me(){if(!e.scale)return!1;D(x,!0),k(x)}function Gr(O){return e.scale?(O=N(O),D(O,!0),k(O),O):!1}function Zr(){W||e.disabled||(Mt({disable:!0}),Oe(),z.historyX=[0,0],z.historyY=[0,0],z.historyT=[0,0],G.value&&(q=C),re.value&&(he=M),r.value.style.willChange="transform",R=null,B=null,V=!0)}function S(O){if(!W&&!e.disabled&&V){var j=C,Y=M;if(B===null&&(B=Math.abs(O.detail.dx/O.detail.dy)>1?"htouchmove":"vtouchmove"),G.value&&(j=O.detail.dx+q,z.historyX.shift(),z.historyX.push(j),!re.value&&R===null&&(R=Math.abs(O.detail.dx/O.detail.dy)<1)),re.value&&(Y=O.detail.dy+he,z.historyY.shift(),z.historyY.push(Y),!G.value&&R===null&&(R=Math.abs(O.detail.dy/O.detail.dx)<1)),z.historyT.shift(),z.historyT.push(O.detail.timeStamp),!R){O.preventDefault();var ve="touch";jw.value&&(e.outOfBounds?(ve="touch-out-of-bounds",j=w.value+ee.x(j-w.value)):j=w.value),Yp.value&&(e.outOfBounds?(ve="touch-out-of-bounds",Y=p.value+ie.x(Y-p.value)):Y=p.value),yf(function(){X(j,Y,x,ve)})}}}function T(){if(!W&&!e.disabled&&V&&(Mt({disable:!1}),r.value.style.willChange="auto",V=!1,!R&&!K("out-of-bounds")&&e.inertia)){var O=1e3*(z.historyX[1]-z.historyX[0])/(z.historyT[1]-z.historyT[0]),j=1e3*(z.historyY[1]-z.historyY[0])/(z.historyT[1]-z.historyT[0]);Ce.setV(O,j),Ce.setS(C,M);var Y=Ce.delta().x,ve=Ce.delta().y,ue=Y+C,Le=ve+M;uew.value&&(ue=w.value,Le=M+(w.value-C)*ve/Y),Lep.value&&(Le=p.value,ue=C+(p.value-M)*Y/ve),Ce.setEnd(ue,Le),f=Ef(Ce,function(){var Ue=Ce.s(),Ae=Ue.x,tt=Ue.y;X(Ae,tt,x,"friction")},function(){f.cancel()})}!e.outOfBounds&&!e.inertia&&Oe()}function A(O,j){var Y=!1;return O>w.value?(O=w.value,Y=!0):Op.value?(j=p.value,Y=!0):j3&&arguments[3]!==void 0?arguments[3]:"",ue=arguments.length>4?arguments[4]:void 0,Le=arguments.length>5?arguments[5]:void 0;O!==null&&O.toString()!=="NaN"&&typeof O=="number"||(O=C||0),j!==null&&j.toString()!=="NaN"&&typeof j=="number"||(j=M||0),O=Number(O.toFixed(1)),j=Number(j.toFixed(1)),Y=Number(Y.toFixed(1)),C===O&&M===j||ue||t("change",{},{x:Tf(O,y.x),y:Tf(j,y.y),source:ve}),e.scale||(Y=x),Y=N(Y),Y=+Y.toFixed(3),Le&&Y!==x&&t("scale",{},{x:O,y:j,scale:Y});var Ue="translateX("+O+"px) translateY("+j+"px) translateZ(0px) scale("+Y+")";r.value.style.transform=Ue,r.value.style.webkitTransform=Ue,C=O,M=j,x=Y}function fe(){if(!!a.value){Oe();var O=e.scale?c.value:1;P(),L(O),F(),C=u.value+y.x,M=v.value+y.y;var j=A(C,M),Y=j.x,ve=j.y;X(Y,ve,O,"",!0),k(O)}}function Pe(){W=!1,k(x)}function Se(O){O&&(O=E*O,H(),D(O))}return Ie(()=>{cn(r.value,j=>{switch(j.detail.state){case"start":Zr();break;case"move":S(j);break;case"end":T()}}),fe(),Ce.reconfigure(1,ne.value),oe.reconfigure(1,9*Math.pow(J.value,2)/40,J.value),r.value.style.transformOrigin="center",fn();var O={rootRef:r,setParent:fe,_endScale:Pe,_setScale:Se};o(O),yt(()=>{l(O)})}),yt(()=>{Oe()}),{setParent:fe}}var b_=["navigate","redirect","switchTab","reLaunch","navigateBack"],w_={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return Boolean(~b_.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}},y_=de({name:"Navigator",compatConfig:{MODE:3},props:w_,setup(e,t){var{slots:r}=t,{hovering:i,binding:n}=fs(e);function a(s){if(e.openType!=="navigateBack"&&!e.url){console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}switch(e.openType){case"navigate":uni.navigateTo({url:e.url});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta});break}}return()=>{var{hoverClass:s}=e,o=e.hoverClass&&e.hoverClass!=="none";return I("uni-navigator",ze({class:o&&i.value?s:""},o&&n,{onClick:a}),[r.default&&r.default()],16,["onClick"])}}}),S_={value:{type:Array,default(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function x_(e){var t=Ee([...e.value]),r=Ee({value:t,height:34});return U(()=>e.value,(i,n)=>{(i===n||i.length!==n.length||i.findIndex((a,s)=>a!==n[s])>=0)&&(r.value.length=i.length,i.forEach((a,s)=>{a!==r.value[s]&&r.value.splice(s,1,a)}))}),r}var T_=de({name:"PickerView",props:S_,emits:["change","pickstart","pickend","update:value"],setup(e,t){var{slots:r,emit:i}=t,n=$(null),a=$(null),s=Re(n,i),o=x_(e),l=$(null),u=()=>{var m=l.value;o.height=m.$el.offsetHeight},v=$([]),c=$([]);function _(m){var b=c.value;if(b instanceof HTMLCollection)return Array.prototype.indexOf.call(b,m.el);var w=b.indexOf(m);return w!==-1?w:v.value.indexOf(m)}var g=function(m){var b=Q({get(){var w=_(m.vnode);return o.value[w]||0},set(w){var p=_(m.vnode);if(!(p<0)){var h=o.value[p];if(h!==w){o.value[p]=w;var f=o.value.map(d=>d);i("update:value",f),s("change",{},{value:f})}}}});return b};return Ne("getPickerViewColumn",g),Ne("pickerViewProps",e),Ne("pickerViewState",o),jr(()=>{u(),c.value=a.value.children}),()=>{var m=r.default&&r.default();return I("uni-picker-view",{ref:n},[I(Ht,{ref:l,onResize:b=>{var{height:w}=b;return o.height=w}},null,8,["onResize"]),I("div",{ref:a,class:"uni-picker-view-wrapper"},[m],512)],512)}}});class Cf{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,r){this._x=t,this._v=r,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*r/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*r}done(){return Math.abs(this.dx())<3}reconfigure(t){var r=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(r,i)}configuration(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(r){t.reconfigure(r)},min:.001,max:.1,step:.001}]}}function Of(e,t,r){return e>t-r&&e0){var v=(-i-Math.sqrt(s))/(2*n),c=(-i+Math.sqrt(s))/(2*n),_=(r-v*t)/(c-v),g=t-_;return{x:function(h){var f,d;return h===this._t&&(f=this._powER1T,d=this._powER2T),this._t=h,f||(f=this._powER1T=Math.pow(Math.E,v*h)),d||(d=this._powER2T=Math.pow(Math.E,c*h)),g*f+_*d},dx:function(h){var f,d;return h===this._t&&(f=this._powER1T,d=this._powER2T),this._t=h,f||(f=this._powER1T=Math.pow(Math.E,v*h)),d||(d=this._powER2T=Math.pow(Math.E,c*h)),g*v*f+_*c*d}}}var m=Math.sqrt(4*n*a-i*i)/(2*n),b=-i/2*n,w=t,p=(r-b*t)/m;return{x:function(h){return Math.pow(Math.E,b*h)*(w*Math.cos(m*h)+p*Math.sin(m*h))},dx:function(h){var f=Math.pow(Math.E,b*h),d=Math.cos(m*h),y=Math.sin(m*h);return f*(p*m*d-w*m*y)+b*f*(p*y+w*d)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,r,i){if(i||(i=new Date().getTime()),t!==this._endPosition||!zt(r,.4)){r=r||0;var n=this._endPosition;this._solution&&(zt(r,.4)&&(r=this._solution.dx((i-this._startTime)/1e3)),n=this._solution.x((i-this._startTime)/1e3),zt(r,.4)&&(r=0),zt(n,.4)&&(n=0),n+=this._endPosition),this._solution&&zt(n-t,.4)&&zt(r,.4)||(this._endPosition=t,this._solution=this._solve(n-this._endPosition,r),this._startTime=i)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),Of(this.x(),this._endPosition,.4)&&zt(this.dx(),.4)}reconfigure(t,r,i){this._m=t,this._k=r,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(i,n){i.reconfigure(1,n,i.damping())}function r(i,n){i.reconfigure(1,i.springConstant(),n)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:r.bind(this,this),min:1,max:500}]}}class E_{constructor(t,r,i){this._extent=t,this._friction=r||new Cf(.01),this._spring=i||new If(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,r){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(r)}set(t,r){this._friction.set(t,r),t>0&&r>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&r<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var r=this._friction.x(t),i=this.dx(t);return(r>0&&i>=0||r<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),r<-this._extent?this._springOffset=-this._extent:this._springOffset=0,r=this._spring.x()+this._springOffset),r}dx(t){var r;return this._lastTime===t?r=this._lastDx:r=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=r,r}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function C_(e,t,r){var i={id:0,cancelled:!1};function n(s,o,l,u){if(!s||!s.cancelled){l(o);var v=o.done();v||s.cancelled||(s.id=requestAnimationFrame(n.bind(null,s,o,l,u))),v&&u&&u(o)}}function a(s){s&&s.id&&cancelAnimationFrame(s.id),s&&(s.cancelled=!0)}return n(i,e,t,r),{cancel:a.bind(null,i),model:e}}class O_{constructor(t,r){r=r||{},this._element=t,this._options=r,this._enableSnap=r.enableSnap||!1,this._itemSize=r.itemSize||0,this._enableX=r.enableX||!1,this._enableY=r.enableY||!1,this._shouldDispatchScrollEvent=!!r.onScroll,this._enableX?(this._extent=(r.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=r.scrollWidth):(this._extent=(r.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=r.scrollHeight),this._position=0,this._scroll=new E_(this._extent,r.friction,r.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,r){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=r),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,r,i){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(r)this._itemSize/2?a-(this._itemSize-Math.abs(s)):a-s,n<=0&&n>=-this._extent&&this._scroll.setVelocityByEnd(n)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=C_(this._scroll,()=>{var o=Date.now(),l=(o-this._scroll._startTime)/1e3,u=this._scroll.x(l);this._position=u,this.updatePosition();var v=this._scroll.dx(l);this._shouldDispatchScrollEvent&&o-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/v),this._lastTime=o)},()=>{this._enableSnap&&(n<=0&&n>=-this._extent&&(this._position=n,this.updatePosition()),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var t=this._itemSize,r=this._position%t,i=Math.abs(r)>this._itemSize/2?this._position-(t-Math.abs(r)):this._position-r;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,r){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var i="transform "+(r||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+i,this._element.style.transition=i,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(typeof this._options.onScroll=="function"&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,r,i){var n=0,a=this._position;this._enableX?(n=this._element.childNodes.length?(r||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=r):(n=this._element.childNodes.length?(r||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=r),typeof t=="number"&&(this._position=-t),this._position<-n?this._position=-n:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),a!==this._position&&(this.dispatchScroll(),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=n,this._scroll._extent=n}updatePosition(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function I_(e,t){var r={trackingID:-1,maxDy:0,maxDx:0},i=new O_(e,t);function n(l){var u=l,v=l;return u.detail.state==="move"||u.detail.state==="end"?{x:u.detail.dx,y:u.detail.dy}:{x:v.screenX-r.x,y:v.screenY-r.y}}function a(l){var u=l,v=l;u.detail.state==="start"?(r.trackingID="touch",r.x=u.detail.x,r.y=u.detail.y):(r.trackingID="mouse",r.x=v.screenX,r.y=v.screenY),r.maxDx=0,r.maxDy=0,r.historyX=[0],r.historyY=[0],r.historyTime=[u.detail.timeStamp||v.timeStamp],r.listener=i,i.onTouchStart&&i.onTouchStart(),l.preventDefault()}function s(l){var u=l,v=l;if(r.trackingID!==-1){l.preventDefault();var c=n(l);if(c){for(r.maxDy=Math.max(r.maxDy,Math.abs(c.y)),r.maxDx=Math.max(r.maxDx,Math.abs(c.x)),r.historyX.push(c.x),r.historyY.push(c.y),r.historyTime.push(u.detail.timeStamp||v.timeStamp);r.historyTime.length>10;)r.historyTime.shift(),r.historyX.shift(),r.historyY.shift();r.listener&&r.listener.onTouchMove&&r.listener.onTouchMove(c.x,c.y)}}}function o(l){if(r.trackingID!==-1){l.preventDefault();var u=n(l);if(u){var v=r.listener;r.trackingID=-1,r.listener=null;var c=r.historyTime.length,_={x:0,y:0};if(c>2)for(var g=r.historyTime.length-1,m=r.historyTime[g],b=r.historyX[g],w=r.historyY[g];g>0;){g--;var p=r.historyTime[g],h=m-p;if(h>30&&h<50){_.x=(b-r.historyX[g])/(h/1e3),_.y=(w-r.historyY[g])/(h/1e3);break}}r.historyTime=[],r.historyX=[],r.historyY=[],v&&v.onTouchEnd&&v.onTouchEnd(u.x,u.y,_)}}}return{scroller:i,handleTouchStart:a,handleTouchMove:s,handleTouchEnd:o}}var M_=0;function A_(e){var t="uni-picker-view-content-".concat(M_++);function r(){var i=document.createElement("style");i.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(i)}return U(()=>e.value,r),t}function R_(e){var t=20,r=0,i=0;e.addEventListener("touchstart",n=>{var a=n.changedTouches[0];r=a.clientX,i=a.clientY}),e.addEventListener("touchend",n=>{var a=n.changedTouches[0];if(Math.abs(a.clientX-r){o[u]=a[u]}),n.target.dispatchEvent(o)}})}var P_=de({name:"PickerViewColumn",setup(e,t){var{slots:r,emit:i}=t,n=$(null),a=$(null),s=pe("getPickerViewColumn"),o=xt(),l=s?s(o):$(0),u=pe("pickerViewProps"),v=pe("pickerViewState"),c=$(34),_=$(null),g=()=>{var M=_.value;c.value=M.$el.offsetHeight},m=Q(()=>(v.height-c.value)/2),{state:b}=df(),w=A_(c),p,h=Ee({current:l.value,length:0}),f;function d(){p&&!f&&(f=!0,sr(()=>{f=!1;var M=Math.min(h.current,h.length-1);M=Math.max(M,0),p.update(M*c.value,void 0,c.value)}))}U(()=>l.value,M=>{M!==h.current&&(h.current=M,d())}),U(()=>h.current,M=>l.value=M),U([()=>c.value,()=>h.length,()=>v.height],d);var y=0;function x(M){var W=y+M.deltaY;if(Math.abs(W)>10){y=0;var V=Math.min(h.current+(W<0?-1:1),h.length-1);h.current=V=Math.max(V,0),p.scrollTo(V*c.value)}else y=W;M.preventDefault()}function E(M){var{clientY:W}=M,V=n.value;if(!p.isScrolling()){var q=V.getBoundingClientRect(),he=W-q.top-v.height/2,R=c.value/2;if(!(Math.abs(he)<=R)){var B=Math.ceil((Math.abs(he)-R)/c.value),ee=he<0?-B:B,ie=Math.min(h.current+ee,h.length-1);h.current=ie=Math.max(ie,0),p.scrollTo(ie*c.value)}}}var C=()=>{var M=n.value,W=a.value,{scroller:V,handleTouchStart:q,handleTouchMove:he,handleTouchEnd:R}=I_(W,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:c.value,friction:new Cf(1e-4),spring:new If(2,90,20),onSnap:B=>{!isNaN(B)&&B!==h.current&&(h.current=B)}});p=V,cn(M,B=>{switch(B.detail.state){case"start":q(B),Mt({disable:!0});break;case"move":he(B),B.stopPropagation();break;case"end":case"cancel":R(B),Mt({disable:!1})}},!0),R_(M),fn(),d()};return jr(()=>{h.length=a.value.children.length,g(),C()}),()=>{var M=r.default&&r.default(),W="".concat(m.value,"px 0");return I("uni-picker-view-column",{ref:n},[I("div",{onWheel:x,onClick:E,class:"uni-picker-view-group"},[I("div",ze(b.attrs,{class:["uni-picker-view-mask",u.maskClass],style:"background-size: 100% ".concat(m.value,"px;").concat(u.maskStyle)}),null,16),I("div",ze(b.attrs,{class:["uni-picker-view-indicator",u.indicatorClass],style:u.indicatorStyle}),[I(Ht,{ref:_,onResize:V=>{var{height:q}=V;return c.value=q}},null,8,["onResize"])],16),I("div",{ref:a,class:["uni-picker-view-content",w],style:{padding:W}},[M],6)],40,["onWheel","onClick"])],512)}}}),Yt={activeColor:yi,backgroundColor:"#EBEBEB",activeMode:"backwards"},L_={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:Yt.activeColor},activeColor:{type:String,default:Yt.activeColor},backgroundColor:{type:String,default:Yt.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:Yt.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}}},N_=de({name:"Progress",props:L_,setup(e){var t=k_(e);return Mf(t,e),U(()=>t.realPercent,(r,i)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=i||0,Mf(t,e)}),()=>{var{showInfo:r}=e,{outerBarStyle:i,innerBarStyle:n,currentPercent:a}=t;return I("uni-progress",{class:"uni-progress"},[I("div",{style:i,class:"uni-progress-bar"},[I("div",{style:n,class:"uni-progress-inner-bar"},null,4)],4),r?I("p",{class:"uni-progress-info"},[a+"%"]):""])}}});function k_(e){var t=$(0),r=Q(()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;")),i=Q(()=>{var s=e.color!==Yt.activeColor&&e.activeColor===Yt.activeColor?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(s)}),n=Q(()=>{var s=parseFloat(e.percent);return s<0&&(s=0),s>100&&(s=100),s}),a=Ee({outerBarStyle:r,innerBarStyle:i,realPercent:n,currentPercent:t,strokeTimer:0,lastPercent:0});return a}function Mf(e,t){t.active?(e.currentPercent=t.activeMode===Yt.activeMode?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}var Af=Gi("ucg"),B_={name:{type:String,default:""}},D_=de({name:"RadioGroup",props:B_,setup(e,t){var{emit:r,slots:i}=t,n=$(null),a=Re(n,r);return F_(e,a),()=>I("uni-radio-group",{ref:n},[i.default&&i.default()],512)}});function F_(e,t){var r=[];Ie(()=>{o(r.length-1)});var i=()=>{var l;return(l=r.find(u=>u.value.radioChecked))===null||l===void 0?void 0:l.value.value};Ne(Af,{addField(l){r.push(l)},removeField(l){r.splice(r.indexOf(l),1)},radioChange(l,u){var v=r.indexOf(u);o(v,!0),t("change",l,{value:i()})}});var n=pe(lt,!1),a={submit:()=>{var l=["",null];return e.name!==""&&(l[0]=e.name,l[1]=i()),l}};n&&(n.addField(a),xe(()=>{n.removeField(a)}));function s(l,u){l.value={radioChecked:u,value:l.value.value}}function o(l,u){r.forEach((v,c)=>{c!==l&&(u?s(r[c],!1):r.forEach((_,g)=>{c>=g||r[g].value.radioChecked&&s(r[c],!1)}))})}return r}var $_={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},W_=de({name:"Radio",props:$_,setup(e,t){var{slots:r}=t,i=$(e.checked),n=$(e.value),a=Q(()=>"background-color: ".concat(e.color,";border-color: ").concat(e.color,";"));U([()=>e.checked,()=>e.value],c=>{var[_,g]=c;i.value=_,n.value=g});var s=()=>{i.value=!1},{uniCheckGroup:o,uniLabel:l,field:u}=U_(i,n,s),v=c=>{e.disabled||(i.value=!0,o&&o.radioChange(c,u))};return l&&(l.addHandler(v),xe(()=>{l.removeHandler(v)})),rn(e,{"label-click":v}),()=>{var c=Fr(e,"disabled");return I("uni-radio",ze(c,{onClick:v}),[I("div",{class:"uni-radio-wrapper"},[I("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:i.value?a.value:""},[i.value?Ji(Zi,"#fff",18):""],6),r.default&&r.default()])],16,["onClick"])}}});function U_(e,t,r){var i=Q({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:l=>{var{radioChecked:u}=l;e.value=u}}),n={reset:r},a=pe(Af,!1);a&&a.addField(i);var s=pe(lt,!1);s&&s.addField(n);var o=pe($r,!1);return xe(()=>{a&&a.removeField(i),s&&s.removeField(n)}),{uniCheckGroup:a,uniForm:s,uniLabel:o,field:i}}function V_(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}function H_(e){return e.reduce(function(t,r){var i=r.value,n=r.name;return i.match(/ /)&&n!=="style"&&(i=i.split(" ")),t[n]?Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i,t},{})}function j_(e){e=V_(e);var t=[],r={node:"root",children:[]};return of(e,{start:function(i,n,a){var s={name:i};if(n.length!==0&&(s.attrs=H_(n)),a){var o=t[0]||r;o.children||(o.children=[]),o.children.push(s)}else t.unshift(s)},end:function(i){var n=t.shift();if(n.name!==i&&console.error("invalid state: mismatch end tag"),t.length===0)r.children.push(n);else{var a=t[0];a.children||(a.children=[]),a.children.push(n)}},chars:function(i){var n={type:"text",text:i};if(t.length===0)r.children.push(n);else{var a=t[0];a.children||(a.children=[]),a.children.push(n)}},comment:function(i){var n={node:"comment",text:i},a=t[0];a.children||(a.children=[]),a.children.push(n)}}),r.children}var Rf={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:""},bs={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function z_(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,r){if(te(bs,r)&&bs[r])return bs[r];if(/^#[0-9]{1,4}$/.test(r))return String.fromCharCode(r.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(r))return String.fromCharCode("0"+r.slice(1));var i=document.createElement("div");return i.innerHTML=t,i.innerText||i.textContent})}function Y_(e,t,r){return e==="img"&&t==="src"?et(r):r}function Pf(e,t,r){return e.forEach(function(i){if(!!it(i))if(!te(i,"type")||i.type==="node"){if(!(typeof i.name=="string"&&i.name))return;var n=i.name.toLowerCase();if(!te(Rf,n))return;var a=document.createElement(n);if(!a)return;var s=i.attrs;if(it(s)){var o=Rf[n]||[];Object.keys(s).forEach(function(u){var v=s[u];switch(u){case"class":Array.isArray(v)&&(v=v.join(" "));case"style":a.setAttribute(u,v),r&&a.setAttribute(r,"");break;default:o.indexOf(u)!==-1&&a.setAttribute(u,Y_(n,u,v))}})}var l=i.children;Array.isArray(l)&&l.length&&Pf(i.children,a),t.appendChild(a)}else i.type==="text"&&typeof i.text=="string"&&i.text!==""&&t.appendChild(document.createTextNode(z_(i.text)))}),t}var q_={nodes:{type:[Array,String],default:function(){return[]}}},X_=de({name:"RichText",compatConfig:{MODE:3},props:q_,setup(e){var t=xt(),r=$(null);function i(n){typeof n=="string"&&(n=j_(n));var a=Pf(n,document.createDocumentFragment(),(t==null?void 0:t.root.type).__scopeId||"");r.value.firstElementChild.innerHTML="",r.value.firstElementChild.appendChild(a)}return U(()=>e.nodes,n=>{i(n)}),Ie(()=>{i(e.nodes)}),()=>I("uni-rich-text",{ref:r},[I("div",null,null)],512)}}),ws=ea(!0),K_={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},G_=de({name:"ScrollView",compatConfig:{MODE:3},props:K_,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,t){var{emit:r,slots:i}=t,n=$(null),a=$(null),s=$(null),o=$(null),l=$(null),u=Re(n,r),{state:v,scrollTopNumber:c,scrollLeftNumber:_}=Z_(e);J_(e,v,c,_,u,n,a,o,r);var g=Q(()=>{var m="";return e.scrollX?m+="overflow-x:auto;":m+="overflow-x:hidden;",e.scrollY?m+="overflow-y:auto;":m+="overflow-y:hidden;",m});return()=>{var{refresherEnabled:m,refresherBackground:b,refresherDefaultStyle:w}=e,{refresherHeight:p,refreshState:h,refreshRotate:f}=v;return I("uni-scroll-view",{ref:n},[I("div",{ref:s,class:"uni-scroll-view"},[I("div",{ref:a,style:g.value,class:"uni-scroll-view"},[I("div",{ref:o,class:"uni-scroll-view-content"},[m?I("div",{ref:l,style:{backgroundColor:b,height:p+"px"},class:"uni-scroll-view-refresher"},[w!=="none"?I("div",{class:"uni-scroll-view-refresh"},[I("div",{class:"uni-scroll-view-refresh-inner"},[h=="pulling"?I("svg",{key:"refresh__icon",style:{transform:"rotate("+f+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[I("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),I("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,h=="refreshing"?I("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[I("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,w=="none"?i.refresher&&i.refresher():null],4):null,i.default&&i.default()],512)],4)],512)],512)}}});function Z_(e){var t=Q(()=>Number(e.scrollTop)||0),r=Q(()=>Number(e.scrollLeft)||0),i=Ee({lastScrollTop:t.value,lastScrollLeft:r.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:i,scrollTopNumber:t,scrollLeftNumber:r}}function J_(e,t,r,i,n,a,s,o,l){var u=!1,v=0,c=!1,_=()=>{},g=Q(()=>{var x=Number(e.upperThreshold);return isNaN(x)?50:x}),m=Q(()=>{var x=Number(e.lowerThreshold);return isNaN(x)?50:x});function b(x,E){var C=s.value,M=0,W="";if(x<0?x=0:E==="x"&&x>C.scrollWidth-C.offsetWidth?x=C.scrollWidth-C.offsetWidth:E==="y"&&x>C.scrollHeight-C.offsetHeight&&(x=C.scrollHeight-C.offsetHeight),E==="x"?M=C.scrollLeft-x:E==="y"&&(M=C.scrollTop-x),M!==0){var V=o.value;V.style.transition="transform .3s ease-out",V.style.webkitTransition="-webkit-transform .3s ease-out",E==="x"?W="translateX("+M+"px) translateZ(0)":E==="y"&&(W="translateY("+M+"px) translateZ(0)"),V.removeEventListener("transitionend",_),V.removeEventListener("webkitTransitionEnd",_),_=()=>d(x,E),V.addEventListener("transitionend",_),V.addEventListener("webkitTransitionEnd",_),E==="x"?C.style.overflowX="hidden":E==="y"&&(C.style.overflowY="hidden"),V.style.transform=W,V.style.webkitTransform=W}}function w(x){var E=x.target;n("scroll",x,{scrollLeft:E.scrollLeft,scrollTop:E.scrollTop,scrollHeight:E.scrollHeight,scrollWidth:E.scrollWidth,deltaX:t.lastScrollLeft-E.scrollLeft,deltaY:t.lastScrollTop-E.scrollTop}),e.scrollY&&(E.scrollTop<=g.value&&t.lastScrollTop-E.scrollTop>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(n("scrolltoupper",x,{direction:"top"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollTop+E.offsetHeight+m.value>=E.scrollHeight&&t.lastScrollTop-E.scrollTop<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(n("scrolltolower",x,{direction:"bottom"}),t.lastScrollToLowerTime=x.timeStamp)),e.scrollX&&(E.scrollLeft<=g.value&&t.lastScrollLeft-E.scrollLeft>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(n("scrolltoupper",x,{direction:"left"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollLeft+E.offsetWidth+m.value>=E.scrollWidth&&t.lastScrollLeft-E.scrollLeft<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(n("scrolltolower",x,{direction:"right"}),t.lastScrollToLowerTime=x.timeStamp)),t.lastScrollTop=E.scrollTop,t.lastScrollLeft=E.scrollLeft}function p(x){e.scrollY&&(e.scrollWithAnimation?b(x,"y"):s.value.scrollTop=x)}function h(x){e.scrollX&&(e.scrollWithAnimation?b(x,"x"):s.value.scrollLeft=x)}function f(x){if(x){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(x)){console.error("id error: scroll-into-view=".concat(x));return}var E=a.value.querySelector("#"+x);if(E){var C=s.value.getBoundingClientRect(),M=E.getBoundingClientRect();if(e.scrollX){var W=M.left-C.left,V=s.value.scrollLeft,q=V+W;e.scrollWithAnimation?b(q,"x"):s.value.scrollLeft=q}if(e.scrollY){var he=M.top-C.top,R=s.value.scrollTop,B=R+he;e.scrollWithAnimation?b(B,"y"):s.value.scrollTop=B}}}}function d(x,E){o.value.style.transition="",o.value.style.webkitTransition="",o.value.style.transform="",o.value.style.webkitTransform="";var C=s.value;E==="x"?(C.style.overflowX=e.scrollX?"auto":"hidden",C.scrollLeft=x):E==="y"&&(C.style.overflowY=e.scrollY?"auto":"hidden",C.scrollTop=x),o.value.removeEventListener("transitionend",_),o.value.removeEventListener("webkitTransitionEnd",_)}function y(x){switch(x){case"refreshing":t.refresherHeight=e.refresherThreshold,u||(u=!0,n("refresherrefresh",{},{}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":u=!1,t.refresherHeight=v=0,x==="restore"&&(c=!1,n("refresherrestore",{},{})),x==="refresherabort"&&c&&(c=!1,n("refresherabort",{},{}));break}t.refreshState=x}Ie(()=>{sr(()=>{p(r.value),h(i.value)}),f(e.scrollIntoView);var x=function(q){q.stopPropagation(),w(q)},E={x:0,y:0},C=null,M=function(q){var he=q.touches[0].pageX,R=q.touches[0].pageY,B=s.value;if(Math.abs(he-E.x)>Math.abs(R-E.y))if(e.scrollX){if(B.scrollLeft===0&&he>E.x){C=!1;return}else if(B.scrollWidth===B.offsetWidth+B.scrollLeft&&heE.y)C=!1,e.refresherEnabled&&q.cancelable!==!1&&q.preventDefault();else if(B.scrollHeight===B.offsetHeight+B.scrollTop&&R0&&(c=!0,n("refresherpulling",q,{deltaY:ee})));var ie=t.refresherHeight/e.refresherThreshold;t.refreshRotate=(ie>1?1:ie)*360}},W=function(q){q.touches.length===1&&(Mt({disable:!0}),E={x:q.touches[0].pageX,y:q.touches[0].pageY})},V=function(q){E={x:0,y:0},Mt({disable:!1}),t.refresherHeight>=e.refresherThreshold?y("refreshing"):y("refresherabort")};s.value.addEventListener("touchstart",W,ws),s.value.addEventListener("touchmove",M),s.value.addEventListener("scroll",x,ws),s.value.addEventListener("touchend",V,ws),fn(),xe(()=>{s.value.removeEventListener("touchstart",W),s.value.removeEventListener("touchmove",M),s.value.removeEventListener("scroll",x),s.value.removeEventListener("touchend",V)})}),Ia(()=>{e.scrollY&&(s.value.scrollTop=t.lastScrollTop),e.scrollX&&(s.value.scrollLeft=t.lastScrollLeft)}),U(r,x=>{p(x)}),U(i,x=>{h(x)}),U(()=>e.scrollIntoView,x=>{f(x)}),U(()=>e.refresherTriggered,x=>{x===!0?y("refreshing"):x===!1&&y("restore")})}var Q_={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}},eb=de({name:"Slider",props:Q_,emits:["changing","change"],setup(e,t){var{emit:r}=t,i=$(null),n=$(null),a=$(null),s=$(Number(e.value));U(()=>e.value,c=>{s.value=Number(c)});var o=Re(i,r),l=tb(e,s),{_onClick:u,_onTrack:v}=rb(e,s,i,n,o);return Ie(()=>{cn(a.value,v)}),()=>{var{setBgColor:c,setBlockBg:_,setActiveColor:g,setBlockStyle:m}=l;return I("uni-slider",{ref:i,onClick:Vt(u)},[I("div",{class:"uni-slider-wrapper"},[I("div",{class:"uni-slider-tap-area"},[I("div",{style:c.value,class:"uni-slider-handle-wrapper"},[I("div",{ref:a,style:_.value,class:"uni-slider-handle"},null,4),I("div",{style:m.value,class:"uni-slider-thumb"},null,4),I("div",{style:g.value,class:"uni-slider-track"},null,4)],4)]),Or(I("span",{ref:n,class:"uni-slider-value"},[s.value],512),[[kr,e.showValue]])]),I("slot",null,null)],8,["onClick"])}}});function tb(e,t){var r=()=>{var s=Number(e.max),o=Number(e.min);return 100*(t.value-o)/(s-o)+"%"},i=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",n=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9",a={setBgColor:Q(()=>({backgroundColor:i()})),setBlockBg:Q(()=>({left:r()})),setActiveColor:Q(()=>({backgroundColor:n(),width:r()})),setBlockStyle:Q(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:r(),backgroundColor:e.blockColor}))};return a}function rb(e,t,r,i,n){var a=c=>{e.disabled||(o(c),n("change",c,{value:t.value}))},s=c=>{var _=Number(e.max),g=Number(e.min),m=Number(e.step);return c_?_:ib.mul.call(Math.round((c-g)/m),m)+g},o=c=>{var _=Number(e.max),g=Number(e.min),m=i.value,b=getComputedStyle(m,null).marginLeft,w=m.offsetWidth;w=w+parseInt(b);var p=r.value,h=p.offsetWidth-(e.showValue?w:0),f=p.getBoundingClientRect().left,d=(c.x-f)*(_-g)/h+g;t.value=s(d)},l=c=>{if(!e.disabled)return c.detail.state==="move"?(o({x:c.detail.x}),n("changing",c,{value:t.value}),!1):c.detail.state==="end"&&n("change",c,{value:t.value})},u=pe(lt,!1);if(u){var v={reset:()=>t.value=Number(e.min),submit:()=>{var c=["",null];return e.name!==""&&(c[0]=e.name,c[1]=t.value),c}};u.addField(v),xe(()=>{u.removeField(v)})}return{_onClick:a,_onTrack:l}}var ib={mul:function(e){var t=0,r=this.toString(),i=e.toString();try{t+=r.split(".")[1].length}catch(n){}try{t+=i.split(".")[1].length}catch(n){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)}},nb={indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}};function ab(e){var t=Q(()=>{var a=Number(e.interval);return isNaN(a)?5e3:a}),r=Q(()=>{var a=Number(e.duration);return isNaN(a)?500:a}),i=Q(()=>{var a=Math.round(e.displayMultipleItems);return isNaN(a)?1:a}),n=Ee({interval:t,duration:r,displayMultipleItems:i,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1});return n}function sb(e,t,r,i,n,a){function s(){o&&(clearTimeout(o),o=null)}var o=null,l=!0,u=0,v=1,c=null,_=!1,g=0,m,b="",w,p=Q(()=>e.circular&&r.value.length>t.displayMultipleItems);function h(R){if(!l)for(var B=r.value,ee=B.length,ie=R+t.displayMultipleItems,z=0;z=J.length&&(R-=J.length),R=m%1>.5||m<0?R-1:R,a("transition",{},{dx:e.vertical?0:R*z.offsetWidth,dy:e.vertical?R*z.offsetHeight:0})}function d(){c&&(f(c.toPos),c=null)}function y(R){var B=r.value.length;if(!B)return-1;var ee=(Math.round(R)%B+B)%B;if(p.value){if(B<=t.displayMultipleItems)return 0}else if(ee>B-t.displayMultipleItems)return B-t.displayMultipleItems;return ee}function x(){c=null}function E(){if(!c){_=!1;return}var R=c,B=R.toPos,ee=R.acc,ie=R.endTime,z=R.source,J=ie-Date.now();if(J<=0){f(B),c=null,_=!1,m=null;var ne=r.value[t.current];if(ne){var we=ne.getItemId();a("animationfinish",{},{current:t.current,currentItemId:we,source:z})}return}var se=ee*J*J/2,G=B+se;f(G),w=requestAnimationFrame(E)}function C(R,B,ee){x();var ie=t.duration,z=r.value.length,J=u;if(p.value)if(ee<0){for(;JR;)J-=z}else if(ee>0){for(;J>R;)J-=z;for(;J+zR;)J-=z;J+z-R0&&v<1||(v=1)}var J=u;u=-2;var ne=t.current;ne>=0?(l=!1,t.userTracking?(f(J+ne-g),g=ne):(f(ne),e.autoplay&&M())):(l=!0,f(-t.displayMultipleItems-1))}U([()=>e.current,()=>e.currentItemId,()=>[...r.value]],()=>{var R=-1;if(e.currentItemId)for(var B=0,ee=r.value;Be.vertical,()=>p.value,()=>t.displayMultipleItems,()=>[...r.value]],W),U(()=>t.interval,()=>{o&&(s(),M())});function V(R,B){var ee=b;b="";var ie=r.value;if(!ee){var z=ie.length;C(R,"",p.value&&B+(z-R)%z>z/2?1:0)}var J=ie[R];if(J){var ne=t.currentItemId=J.getItemId();a("change",{},{current:t.current,currentItemId:ne,source:ee})}}U(()=>t.current,(R,B)=>{V(R,B),n("update:current",R)}),U(()=>t.currentItemId,R=>{n("update:currentItemId",R)});function q(R){R?M():s()}U(()=>e.autoplay&&!t.userTracking,q),q(e.autoplay&&!t.userTracking),Ie(()=>{var R=!1,B=0,ee=0;function ie(){s(),g=u,B=0,ee=Date.now(),x()}function z(ne){var we=ee;ee=Date.now();var se=r.value.length,G=se-t.displayMultipleItems;function re(Ge){return .5-.25/(Ge+.5)}function oe(Ge,At){var Me=g+Ge;B=.6*B+.4*At,p.value||(Me<0||Me>G)&&(Me<0?Me=-re(-Me):Me>G&&(Me=G+re(Me-G)),B=0),f(Me)}var Ce=ee-we||1,Oe=i.value;e.vertical?oe(-ne.dy/Oe.offsetHeight,-ne.ddy/Ce):oe(-ne.dx/Oe.offsetWidth,-ne.ddx/Ce)}function J(ne){t.userTracking=!1;var we=B/Math.abs(B),se=0;!ne&&Math.abs(B)>.2&&(se=.5*we);var G=y(u+se);ne?f(g):(b="touch",t.current=G,C(G,"touch",se!==0?se:G===0&&p.value&&u>=1?1:0))}cn(i.value,ne=>{if(!e.disableTouch&&!l){if(ne.detail.state==="start")return t.userTracking=!0,R=!1,ie();if(ne.detail.state==="end")return J(!1);if(ne.detail.state==="cancel")return J(!0);if(t.userTracking){if(!R){R=!0;var we=Math.abs(ne.detail.dx),se=Math.abs(ne.detail.dy);if((we>=se&&e.vertical||we<=se&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&M();return}}return z(ne.detail),!1}}})}),yt(()=>{s(),cancelAnimationFrame(w)});function he(R){C(t.current=R,b="click",p.value?1:0)}return{onSwiperDotClick:he}}var ob=de({name:"Swiper",props:nb,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,t){var{slots:r,emit:i}=t,n=$(null),a=Re(n,i),s=$(null),o=$(null),l=ab(e),u=Q(()=>{var h={};return(e.nextMargin||e.previousMargin)&&(h=e.vertical?{left:0,right:0,top:Ut(e.previousMargin,!0),bottom:Ut(e.nextMargin,!0)}:{top:0,bottom:0,left:Ut(e.previousMargin,!0),right:Ut(e.nextMargin,!0)}),h}),v=Q(()=>{var h=Math.abs(100/l.displayMultipleItems)+"%";return{width:e.vertical?"100%":h,height:e.vertical?h:"100%"}}),c=[],_=[],g=$([]);function m(){for(var h=[],f=function(y){var x=c[y];x instanceof Element||(x=x.el);var E=_.find(C=>x===C.rootRef.value);E&&h.push(Li(E))},d=0;d{c=o.value.children,m()});var b=function(h){_.push(h),m()};Ne("addSwiperContext",b);var w=function(h){var f=_.indexOf(h);f>=0&&(_.splice(f,1),m())};Ne("removeSwiperContext",w);var{onSwiperDotClick:p}=sb(e,l,g,o,i,a);return()=>{var h=r.default&&r.default();return c=ps(h),I("uni-swiper",{ref:n},[I("div",{ref:s,class:"uni-swiper-wrapper"},[I("div",{class:"uni-swiper-slides",style:u.value},[I("div",{ref:o,class:"uni-swiper-slide-frame",style:v.value},[h],4)],4),e.indicatorDots&&I("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[g.value.map((f,d,y)=>I("div",{onClick:()=>p(d),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":d=l.current||d{var a=pe("addSwiperContext");a&&a(n)}),yt(()=>{var a=pe("removeSwiperContext");a&&a(n)}),()=>I("uni-swiper-item",{ref:i,style:{position:"absolute",width:"100%",height:"100%"}},[r.default&&r.default()],512)}}),fb={name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},cb=de({name:"Switch",props:fb,emits:["change"],setup(e,t){var{emit:r}=t,i=$(null),n=$(e.checked),a=vb(e,n),s=Re(i,r);U(()=>e.checked,l=>{n.value=l});var o=l=>{e.disabled||(n.value=!n.value,s("change",l,{value:n.value}))};return a&&(a.addHandler(o),xe(()=>{a.removeHandler(o)})),rn(e,{"label-click":o}),()=>{var{color:l,type:u}=e,v=Fr(e,"disabled");return I("uni-switch",ze({ref:i},v,{onClick:o}),[I("div",{class:"uni-switch-wrapper"},[Or(I("div",{class:["uni-switch-input",[n.value?"uni-switch-input-checked":""]],style:{backgroundColor:n.value?l:"#DFDFDF",borderColor:n.value?l:"#DFDFDF"}},null,6),[[kr,u==="switch"]]),Or(I("div",{class:"uni-checkbox-input"},[n.value?Ji(Zi,e.color,22):""],512),[[kr,u==="checkbox"]])])],16,["onClick"])}}});function vb(e,t){var r=pe(lt,!1),i=pe($r,!1),n={submit:()=>{var a=["",null];return e.name&&(a[0]=e.name,a[1]=t.value),a},reset:()=>{t.value=!1}};return r&&(r.addField(n),yt(()=>{r.removeField(n)})),i}var qr={ensp:"\u2002",emsp:"\u2003",nbsp:"\xA0"};function db(e,t){return e.replace(/\\n/g,wr).split(wr).map(r=>hb(r,t))}function hb(e,t){var{space:r,decode:i}=t;return!e||(r&&qr[r]&&(e=e.replace(/ /g,qr[r])),!i)?e:e.replace(/ /g,qr.nbsp).replace(/ /g,qr.ensp).replace(/ /g,qr.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")}var gb=ce({},hf,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:""}}),ys=!1;function pb(){var e="(prefers-color-scheme: dark)";ys=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}var mb=de({name:"Textarea",props:gb,emit:["confirm","linechange",...gf],setup(e,t){var{emit:r}=t,i=$(null),{fieldRef:n,state:a,scopedAttrsState:s,fixDisabledColor:o,trigger:l}=pf(e,i,r),u=Q(()=>a.value.split(wr)),v=Q(()=>["done","go","next","search","send"].includes(e.confirmType)),c=$(0),_=$(null);U(()=>c.value,p=>{var h=i.value,f=_.value,d=parseFloat(getComputedStyle(h).lineHeight);isNaN(d)&&(d=f.offsetHeight);var y=Math.round(p/d);l("linechange",{},{height:p,heightRpx:750/window.innerWidth*p,lineCount:y}),e.autoHeight&&(h.style.height=p+"px")});function g(p){var{height:h}=p;c.value=h}function m(p){l("confirm",p,{value:a.value})}function b(p){p.key==="Enter"&&v.value&&p.preventDefault()}function w(p){if(p.key==="Enter"&&v.value){m(p);var h=p.target;h.blur()}}return pb(),()=>{var p=e.disabled&&o?I("textarea",{ref:n,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":ys},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:h=>h.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):I("textarea",{ref:n,value:a.value,disabled:!!e.disabled,maxlength:a.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":ys},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:b,onKeyup:w},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return I("uni-textarea",{ref:i},[I("div",{class:"uni-textarea-wrapper"},[Or(I("div",ze(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[kr,!a.value.length]]),I("div",{ref:_,class:"uni-textarea-line"},[" "],512),I("div",{class:"uni-textarea-compute"},[u.value.map(h=>I("div",null,[h.trim()?h:"."])),I(Ht,{initial:!0,onResize:g},null,8,["initial","onResize"])]),e.confirmType==="search"?I("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[p],40,["onSubmit"]):p])],512)}}});ce({},Vm);function hn(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function Lf(e,t,r){!e||ct(r||Ct(),e,(i,n)=>{var{type:a,data:s}=i;t(a,s,n)})}function Nf(e){!e||Yd(Ct(),e)}function gn(e,t,r,i){var n=xt(),a=n.proxy;Ie(()=>{Lf(t||hn(a),e,i),(r||!t)&&U(()=>a.id,(s,o)=>{Lf(hn(a,s),e,i),Nf(o&&hn(a,o))})}),xe(()=>{Nf(t||hn(a))})}var _b=0;function pn(e){var t=Qi(),r=xt(),i=r.proxy,n=i.$options.name.toLowerCase(),a=e||i.id||"context".concat(_b++);return Ie(()=>{var s=i.$el;s.__uniContextInfo={id:a,type:n,page:t}}),"".concat(n,".").concat(a)}function bb(e){return e.__uniContextInfo}class kf extends Vu{constructor(t,r,i,n,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,n,a,[...tn.props,...s])}call(t){var r={animation:this.$props.animation,$el:this.$};t.call(r)}setAttribute(t,r){return t==="animation"&&(this.$animate=!0),super.setAttribute(t,r)}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!!this.$animate){if(t)return this.call(tn.mounted);this.$animate&&(this.$animate=!1,this.call(tn.watch.animation.handler))}}}var wb=["space","decode"];class yb extends kf{constructor(t,r,i,n){super(t,document.createElement("uni-text"),r,i,n,wb);this._text=""}init(t){this._text=t.t||"",super.init(t)}setText(t){this._text=t,this.update()}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{$props:{space:r,decode:i}}=this;this.$.textContent=db(this._text,{space:r,decode:i}).join(wr),super.update(t)}}class Sb extends lr{constructor(t,r,i,n){super(t,"#text",r,document.createTextNode(""));this.init(n),this.insert(r,i)}}var hy="",xb=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class Tb extends kf{constructor(t,r,i,n,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,n,a,[...xb,...s])}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.$props["hover-class"];r&&r!=="none"?(this._hover||(this._hover=new Eb(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(t)}}class Eb{constructor(t,r){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=t,this.props=r,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(t){this._hovering=t;var r=this.props["hover-class"];t?this.$.classList.add(r):this.$.classList.remove(r)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){!this._listening||(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(t){if(!t._hoverPropagationStopped){var r=this.props["hover-class"];!r||r==="none"||this.$.disabled||t.touches.length>1||(this.props["hover-stop-propagation"]&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()},this.props["hover-start-time"]))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame(()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout(()=>{this.hovering=!1},this.props["hover-stay-time"])})}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}class Cb extends Tb{constructor(t,r,i,n){super(t,document.createElement("uni-view"),r,i,n)}}function Bf(){return plus.navigator.isImmersedStatusbar()?Math.round(plus.os.name==="iOS"?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function Df(){var e=plus.webview.currentWebview(),t=e.getStyle(),r=t&&t.titleNView;return r&&r.type==="default"?Ro+Bf():0}var Ff=Symbol("onDraw");function Ob(e){for(var t;e;){var r=getComputedStyle(e),i=r.transform||r.webkitTransform;t=i&&i!=="none"?!1:t,t=r.position==="fixed"?!0:t,e=e.parentElement}return t}function Ss(e,t){return Q(()=>{var r={};return Object.keys(e).forEach(i=>{if(!(t&&t.includes(i))){var n=e[i];n=i==="src"?et(n):n,r[i.replace(/[A-Z]/g,a=>"-"+a.toLowerCase())]=n}}),r})}function Xr(e){var t=Ee({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),r=$(!1);function i(){var c=e.value,_=c.getBoundingClientRect(),g=["width","height"];r.value=_.width===0||_.height===0,r.value||(t.position=Ob(c)?"absolute":"static",g.push("top","left")),g.forEach(m=>{var b=_[m];b=m==="top"?b+(t.position==="static"?document.documentElement.scrollTop||document.body.scrollTop||0:Df()):b,t[m]=b+"px"})}var n=null;function a(){n&&cancelAnimationFrame(n),n=requestAnimationFrame(()=>{n=null,i()})}window.addEventListener("updateview",a);var s=[],o=[];function l(c){o?o.push(c):c()}function u(c){var _=pe(Ff),g=m=>{c(m),s.forEach(b=>b(t)),s=null};l(()=>{_?_(g):g({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})})}var v=function(c){s?s.push(c):c(t)};return Ne(Ff,v),Ie(()=>{i(),o.forEach(c=>c()),o=null}),xe(()=>{window.removeEventListener("updateview",a)}),{position:t,hidden:r,onParentReady:u}}var Ib=de({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,t){var{emit:r}=t,i=$(null),n=$(null),a=Re(i,r),s=Ss(e,["id"]),{position:o,onParentReady:l}=Xr(n),u;return l(()=>{u=plus.ad.createAdView(Object.assign({},s.value,o)),plus.webview.currentWebview().append(u),u.setDislikeListener(c=>{n.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),a("close",{},c)}),u.setRenderingListener(c=>{c.result===0?(n.value.style.height=c.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):a("error",{},{errCode:c.result})}),u.setAdClickedListener(()=>{a("adclicked",{},{})}),U(()=>o,c=>u.setStyle(c),{deep:!0}),U(()=>e.adpid,c=>{c&&v()}),U(()=>e.data,c=>{c&&u.renderingBind(c)});function v(){var c={adpid:e.adpid,width:o.width,count:e.dataCount};e.channel!==void 0&&(c.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",c,_=>{var{code:g,data:m,message:b}=_;g===0?u.renderingBind(m):a("error",{},{errMsg:b})})}e.adpid&&v()}),xe(()=>{u&&u.close()}),()=>I("uni-ad",{ref:i},[I("div",{ref:n,class:"uni-ad-container"},null,512)],512)}});class _e extends lr{constructor(t,r,i,n,a,s,o){super(t,r,n);var l=document.createElement("div");l.__vueParent=Mb(this),this.$props=Ee({}),this.init(s),this.$app=lu(Fw(i,this.$props)),this.$app.mount(l),this.$=l.firstElementChild,o&&(this.$holder=this.$.querySelector(o)),te(s,"t")&&this.setText(s.t||""),s.a&&te(s.a,wi)&&us(this.$,s.a[wi]),this.insert(n,a),Kl()}init(t){var{a:r,e:i,w:n}=t;r&&(this.setWxsProps(r),Object.keys(r).forEach(a=>{this.setAttr(a,r[a])})),te(t,"s")&&this.setAttr("style",t.s),i&&Object.keys(i).forEach(a=>{this.addEvent(a,i[a])}),n&&this.addWxsEvents(t.w)}setText(t){(this.$holder||this.$).textContent=t}addWxsEvent(t,r,i){this.$props[t]=Uu(this.$,r,i)}addEvent(t,r){this.$props[t]=$u(this.id,r,ra(t)[1])}removeEvent(t){this.$props[t]=null}setAttr(t,r){if(t===wi)this.$&&us(this.$,r);else if(t===Oo)this.$.__ownerId=r;else if(t===Io)Ot(()=>Ru(this,r),Iu);else if(t===na){var i=ls(this.$||Ke(this.pid).$,r),n=this.$props.style;it(i)&&it(n)?Object.keys(i).forEach(a=>{n[a]=i[a]}):this.$props.style=i}else r=ls(this.$||Ke(this.pid).$,r),this.wxsPropsInvoke(t,r,!0)||(this.$props[t]=r)}removeAttr(t){this.$props[t]=null}remove(){this.removeUniParent(),this.isUnmounted=!0,this.$app.unmount(),zf(this.id),this.removeUniChildren()}appendChild(t){return(this.$holder||this.$).appendChild(t)}insertBefore(t,r){return(this.$holder||this.$).insertBefore(t,r)}}class Kr extends _e{constructor(t,r,i,n,a,s,o){super(t,r,i,n,a,s,o)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(t){return Ot(this.getRebuildFn(),rs),super.setText(t)}appendChild(t){return Ot(this.getRebuildFn(),rs),super.appendChild(t)}insertBefore(t,r){return Ot(this.getRebuildFn(),rs),super.insertBefore(t,r)}rebuild(){var t=this.$.__vueParentComponent;t.rebuild&&t.rebuild()}}function Mb(e){for(;e&&e.pid>0;)if(e=Ke(e.pid),e){var{__vueParentComponent:t}=e.$;if(t)return t}return null}function xs(e,t,r){e.childNodes.forEach(i=>{i instanceof Element?i.className.indexOf(t)===-1&&e.removeChild(i):e.removeChild(i)}),e.appendChild(document.createTextNode(r))}class Ab extends _e{constructor(t,r,i,n){super(t,"uni-ad",Ib,r,i,n)}}var gy="";class Rb extends _e{constructor(t,r,i,n){super(t,"uni-button",Gm,r,i,n)}}class fr extends lr{constructor(t,r,i,n){super(t,r,i);this.insert(i,n)}}class Pb extends fr{constructor(t,r,i){super(t,"uni-camera",r,i)}}var py="";class Lb extends _e{constructor(t,r,i,n){super(t,"uni-canvas",n0,r,i,n,"uni-canvas > div")}}var my="";class Nb extends _e{constructor(t,r,i,n){super(t,"uni-checkbox",c0,r,i,n,".uni-checkbox-wrapper")}setText(t){xs(this.$holder,"uni-checkbox-input",t)}}var _y="";class kb extends _e{constructor(t,r,i,n){super(t,"uni-checkbox-group",l0,r,i,n)}}var by="",Bb=0;function $f(e,t,r){var{position:i,hidden:n,onParentReady:a}=Xr(e),s,o;a(l=>{var u=Q(()=>{var f={};for(var d in i){var y=i[d],x=parseFloat(y),E=parseFloat(l[d]);if(d==="top"||d==="left")y=Math.max(x,E)+"px";else if(d==="width"||d==="height"){var C=d==="width"?"left":"top",M=parseFloat(l[C]),W=parseFloat(i[C]),V=Math.max(M-W,0),q=Math.max(W+x-(M+E),0);y=Math.max(x-V-q,0)+"px"}f[d]=y}return f}),v=["borderRadius","borderColor","borderWidth","backgroundColor"],c=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],_=[],g={start:"left",end:"right"};function m(f){var d=getComputedStyle(e.value);return v.concat(c,_).forEach(y=>{f[y]=d[y]}),f}var b=Ee(m({})),w=null;o=function(){w&&cancelAnimationFrame(w),w=requestAnimationFrame(()=>{w=null,m(b)})},window.addEventListener("updateview",o);function p(){var f={};for(var d in f){var y=f[d];(d==="top"||d==="left")&&(y=Math.min(parseFloat(y)-parseFloat(l[d]),0)+"px"),f[d]=y}return f}var h=Q(()=>{var f=p(),d=[{tag:"rect",position:f,rectStyles:{color:b.backgroundColor,radius:b.borderRadius,borderColor:b.borderColor,borderWidth:b.borderWidth}}];if("src"in r)r.src&&d.push({tag:"img",position:f,src:r.src});else{var y=parseFloat(b.lineHeight)-parseFloat(b.fontSize),x=parseFloat(f.width)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight);x=x<0?0:x;var E=parseFloat(f.height)-parseFloat(b.paddingTop)-y/2-parseFloat(b.paddingBottom);E=E<0?0:E,d.push({tag:"font",position:{top:"".concat(parseFloat(f.top)+parseFloat(b.paddingTop)+y/2,"px"),left:"".concat(parseFloat(f.left)+parseFloat(b.paddingLeft),"px"),width:"".concat(x,"px"),height:"".concat(E,"px")},textStyles:{align:g[b.textAlign]||b.textAlign,color:b.color,decoration:"none",lineSpacing:"".concat(y,"px"),margin:"0px",overflow:b.textOverflow,size:b.fontSize,verticalAlign:"top",weight:b.fontWeight,whiteSpace:b.whiteSpace},text:r.text})}return d});s=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(Bb++),u.value,h.value),plus.webview.currentWebview().append(s),n.value&&s.hide(),s.addEventListener("click",()=>{t("click",{},{})}),U(()=>n.value,f=>{s[f?"hide":"show"]()}),U(()=>u.value,f=>{s.setStyle(f)},{deep:!0}),U(()=>h.value,()=>{s.reset(),s.draw(h.value)},{deep:!0})}),xe(()=>{s&&s.close(),o&&window.removeEventListener("updateview",o)})}var Db="_doc/uniapp_temp/",Fb={src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}};function $b(e,t,r){var i=$(""),n;function a(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var o=e.src?et(e.src):"";o.indexOf("http://")===0||o.indexOf("https://")===0?(n=plus.downloader.createDownload(o,{filename:Db+"/download/"},(l,u)=>{u===200?s(l.filename):r("error",{},{errMsg:"error"})}),n.start()):o&&s(o)}function s(o){t.src=o,plus.io.getImageInfo({src:o,success:l=>{var{width:u,height:v}=l;e.autoSize&&(i.value="width:".concat(u,"px;height:").concat(v,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),r("load",{},{width:u,height:v})},fail:()=>{r("error",{},{errMsg:"error"})}})}return e.src&&a(),U(()=>e.src,a),xe(()=>{n&&n.abort()}),i}var Wf=de({name:"CoverImage",props:Fb,emits:["click","load","error"],setup(e,t){var{emit:r}=t,i=$(null),n=Re(i,r),a=Ee({src:""}),s=$b(e,a,n);return $f(i,n,a),()=>I("uni-cover-image",{ref:i,style:s.value},[I("div",{class:"uni-cover-image"},null)],4)}});class Wb extends _e{constructor(t,r,i,n){super(t,"uni-cover-image",Wf,r,i,n)}}var wy="",Ub=de({name:"CoverView",emits:["click"],setup(e,t){var{emit:r}=t,i=$(null),n=$(null),a=Re(i,r),s=Ee({text:""});return $f(i,a,s),jr(()=>{var o=n.value.childNodes[0];s.text=o&&o instanceof Text?o.textContent:"",window.dispatchEvent(new CustomEvent("updateview"))}),()=>I("uni-cover-view",{ref:i},[I("div",{ref:n,class:"uni-cover-view"},null,512)],512)}});class Vb extends Kr{constructor(t,r,i,n){super(t,"uni-cover-view",Ub,r,i,n,".uni-cover-view")}}var yy="";class Hb extends _e{constructor(t,r,i,n){super(t,"uni-editor",B0,r,i,n)}}var Sy="";class jb extends _e{constructor(t,r,i,n){super(t,"uni-form",zm,r,i,n,"span")}}class zb extends fr{constructor(t,r,i){super(t,"uni-functional-page-navigator",r,i)}}var xy="";class Yb extends _e{constructor(t,r,i,n){super(t,"uni-icon",W0,r,i,n)}}var Ty="";class qb extends _e{constructor(t,r,i,n){super(t,"uni-image",H0,r,i,n)}}var Ey="";class Xb extends _e{constructor(t,r,i,n){super(t,"uni-input",u_,r,i,n)}}var Cy="";class Kb extends _e{constructor(t,r,i,n){super(t,"uni-label",Xm,r,i,n)}}class Gb extends fr{constructor(t,r,i){super(t,"uni-live-player",r,i)}}class Zb extends fr{constructor(t,r,i){super(t,"uni-live-pusher",r,i)}}var Oy="",Jb=(e,t,r)=>{r({coord:{latitude:t,longitude:e}})};function Ts(e){if(e.indexOf("#")!==0)return{color:e,opacity:1};var t=e.substr(7,2);return{color:e.substr(0,7),opacity:t?Number("0x"+t)/255:1}}var Qb={id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}}},ew=de({name:"Map",props:Qb,emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,t){var{emit:r}=t,i=$(null),n=Re(i,r),a=$(null),s=Ss(e,["id"]),{position:o,hidden:l,onParentReady:u}=Xr(a),v,{_addMarkers:c,_addMapLines:_,_addMapCircles:g,_setMap:m}=tw(e,n);u(()=>{v=ce(plus.maps.create(Ct()+"-map-"+(e.id||Date.now()),Object.assign({},s.value,o,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[]}),v.setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(v),l.value&&v.hide(),v.onclick=w=>{n("click",{},w)},v.onstatuschanged=w=>{n("regionchange",{},{})},m(v),c(e.markers),_(e.polyline),g(e.circles),U(()=>s.value,w=>v&&v.setStyles(w),{deep:!0}),U(()=>o,w=>v&&v.setStyles(w),{deep:!0}),U(l,w=>{v&&v[w?"hide":"show"]()}),U(()=>e.scale,w=>{v&&v.setZoom(parseInt(String(w)))}),U([()=>e.latitude,()=>e.longitude],w=>{var[p,h]=w;v&&v.setStyles({center:new plus.maps.Point(Number(p),Number(h))})}),U(()=>e.markers,w=>{c(w,!0)},{deep:!0}),U(()=>e.polyline,w=>{_(w)},{deep:!0}),U(()=>e.circles,w=>{g(w)},{deep:!0})});var b=Q(()=>e.controls.map(w=>{var p={position:"absolute"};return["top","left","width","height"].forEach(h=>{w.position[h]&&(p[h]=w.position[h]+"px")}),{id:w.id,iconPath:et(w.iconPath),position:p,clickable:w.clickable}}));return xe(()=>{v&&(v.close(),m(null))}),()=>I("uni-map",{ref:i,id:e.id},[I("div",{ref:a,class:"uni-map-container"},null,512),b.value.map((w,p)=>I(Wf,{key:p,src:w.iconPath,style:w.position,"auto-size":!0,onClick:()=>w.clickable&&n("controltap",{},{controlId:w.id})},null,8,["src","style","auto-size","onClick"])),I("div",{class:"uni-map-slot"},null)],8,["id"])}});function tw(e,t){var r;function i(g){var{longitude:m,latitude:b}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};!r||(r.setCenter(new plus.maps.Point(Number(m||e.longitude),Number(b||e.latitude))),g({errMsg:"moveToLocation:ok"}))}function n(g){!r||r.getCurrentCenter((m,b)=>{g({longitude:b.getLng(),latitude:b.getLat(),errMsg:"getCenterLocation:ok"})})}function a(g){if(!!r){var m=r.getBounds();g({southwest:m.getSouthWest(),northeast:m.getNorthEast(),errMsg:"getRegion:ok"})}}function s(g){!r||g({scale:r.getZoom(),errMsg:"getScale:ok"})}function o(g){if(!!r){var{id:m,latitude:b,longitude:w,iconPath:p,callout:h,label:f}=g;Jb(w,b,d=>{var y,{latitude:x,longitude:E}=d.coord,C=new plus.maps.Marker(new plus.maps.Point(E,x));p&&C.setIcon(et(p)),f&&f.content&&C.setLabel(f.content);var M=void 0;h&&h.content&&(M=new plus.maps.Bubble(h.content)),M&&C.setBubble(M),(m||m===0)&&(C.onclick=W=>{t("markertap",{},{markerId:m})},M&&(M.onclick=()=>{t("callouttap",{},{markerId:m})})),(y=r)===null||y===void 0||y.addOverlay(C),r.__markers__.push(C)})}}function l(){if(!!r){var g=r.__markers__;g.forEach(m=>{var b;(b=r)===null||b===void 0||b.removeOverlay(m)}),r.__markers__=[]}}function u(g,m){m&&l(),g.forEach(b=>{o(b)})}function v(g){!r||(r.__lines__.length>0&&(r.__lines__.forEach(m=>{var b;(b=r)===null||b===void 0||b.removeOverlay(m)}),r.__lines__=[]),g.forEach(m=>{var b,{color:w,width:p}=m,h=m.points.map(y=>new plus.maps.Point(y.longitude,y.latitude)),f=new plus.maps.Polyline(h);if(w){var d=Ts(w);f.setStrokeColor(d.color),f.setStrokeOpacity(d.opacity)}p&&f.setLineWidth(p),(b=r)===null||b===void 0||b.addOverlay(f),r.__lines__.push(f)}))}function c(g){!r||(r.__circles__.length>0&&(r.__circles__.forEach(m=>{var b;(b=r)===null||b===void 0||b.removeOverlay(m)}),r.__circles__=[]),g.forEach(m=>{var b,{latitude:w,longitude:p,color:h,fillColor:f,radius:d,strokeWidth:y}=m,x=new plus.maps.Circle(new plus.maps.Point(p,w),d);if(h){var E=Ts(h);x.setStrokeColor(E.color),x.setStrokeOpacity(E.opacity)}if(f){var C=Ts(f);x.setFillColor(C.color),x.setFillOpacity(C.opacity)}y&&x.setLineWidth(y),(b=r)===null||b===void 0||b.addOverlay(x),r.__circles__.push(x)}))}var _={moveToLocation:i,getCenterLocation:n,getRegion:a,getScale:s};return gn((g,m,b)=>{_[g]&&_[g](b,m)},pn(),!0),{_addMarkers:u,_addMapLines:v,_addMapCircles:c,_setMap(g){r=g}}}class rw extends _e{constructor(t,r,i,n){super(t,"uni-map",ew,r,i,n,".uni-map-slot")}}var Iy="";class iw extends Kr{constructor(t,r,i,n){super(t,"uni-movable-area",h_,r,i,n)}}var My="";class nw extends _e{constructor(t,r,i,n){super(t,"uni-movable-view",m_,r,i,n)}}var Ay="";class aw extends _e{constructor(t,r,i,n){super(t,"uni-navigator",y_,r,i,n)}}class sw extends fr{constructor(t,r,i){super(t,"uni-official-account",r,i)}}class ow extends fr{constructor(t,r,i){super(t,"uni-open-data",r,i)}}var qt,Uf,cr;function Vf(){return typeof window=="object"&&typeof navigator=="object"&&typeof document=="object"?"webview":"v8"}function Hf(){return qt.webview.currentWebview().id}var mn,Es,Cs={};function Os(e){var t=e.data&&e.data.__message;if(!(!t||!t.__page)){var r=t.__page,i=Cs[r];i&&i(t),t.keep||delete Cs[r]}}function lw(e,t){Vf()==="v8"?cr?(mn&&mn.close(),mn=new cr(Hf()),mn.onmessage=Os):Es||(Es=Uf.requireModule("globalEvent"),Es.addEventListener("plusMessage",Os)):window.__plusMessage=Os,Cs[e]=t}class uw{constructor(t){this.webview=t}sendMessage(t){var r=JSON.parse(JSON.stringify({__message:{data:t}})),i=this.webview.id;if(cr){var n=new cr(i);n.postMessage(r)}else qt.webview.postMessageToUniNView&&qt.webview.postMessageToUniNView(r,i)}close(){this.webview.close()}}function fw(e){var{context:t={},url:r,data:i={},style:n={},onMessage:a,onClose:s}=e;qt=t.plus||plus,Uf=t.weex||(typeof weex=="object"?weex:null),cr=t.BroadcastChannel||(typeof BroadcastChannel=="object"?BroadcastChannel:null);var o={autoBackButton:!0,titleSize:"17px"},l="page".concat(Date.now());n=ce({},n),n.titleNView!==!1&&n.titleNView!=="none"&&(n.titleNView=ce(o,n.titleNView));var u={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"".concat(typeof process=="object"&&process.env&&{}.VUE_APP_TEMPLATE_PATH||"","/").concat(r,".js"),defaultFontSize:qt.screen.resolutionWidth/20,viewport:qt.screen.resolutionWidth}};n=ce(u,n);var v=qt.webview.create("",l,n,{extras:{from:Hf(),runtime:Vf(),data:i,useGlobalEvent:!cr}});return v.addEventListener("close",s),lw(l,c=>{typeof a=="function"&&a(c.data),c.keep||v.close("auto")}),v.show(n.animationType,n.animationDuration),new uw(v)}var Te={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},vr={YEAR:"year",MONTH:"month",DAY:"day"};function _n(e){return e>9?e:"0".concat(e)}function bn(e,t){e=String(e||"");var r=new Date;if(t===Te.TIME){var i=e.split(":");i.length===2&&r.setHours(parseInt(i[0]),parseInt(i[1]))}else{var n=e.split("-");n.length===3&&r.setFullYear(parseInt(n[0]),parseInt(String(parseFloat(n[1])-1)),parseInt(n[2]))}return r}function cw(e){if(e.mode===Te.TIME)return"00:00";if(e.mode===Te.DATE){var t=new Date().getFullYear()-100;switch(e.fields){case vr.YEAR:return t;case vr.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function vw(e){if(e.mode===Te.TIME)return"23:59";if(e.mode===Te.DATE){var t=new Date().getFullYear()+100;switch(e.fields){case vr.YEAR:return t;case vr.MONTH:return t+"-12";default:return t+"-12-31"}}return""}var dw={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Te.SELECTOR,validator(e){return Object.values(Te).indexOf(e)>=0}},fields:{type:String,default:""},start:{type:String,default:cw},end:{type:String,default:vw},disabled:{type:[Boolean,String],default:!1}},hw=de({name:"Picker",props:dw,emits:["change","cancel","columnchange"],setup(e,t){var{emit:r}=t;Wd();var{t:i,getLocale:n}=He(),a=$(null),s=Re(a,r),o=$(null),l=$(null),u=()=>{var p=e.value;switch(e.mode){case Te.MULTISELECTOR:{Array.isArray(p)||(p=[]),Array.isArray(o.value)||(o.value=[]);for(var h=o.value.length=Math.max(p.length,e.range.length),f=0;f{l.value&&l.value.sendMessage(p)},c=p=>{var h={event:"cancel"};l.value=fw({url:"__uniapppicker",data:p,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:f=>{var d=f.event;if(d==="created"){v(p);return}if(d==="columnchange"){delete f.event,s(d,{},f);return}h=f},onClose:()=>{l.value=null;var f=h.event;delete h.event,f&&s(f,{},h)}})},_=(p,h)=>{plus.nativeUI[e.mode===Te.TIME?"pickTime":"pickDate"](f=>{var d=f.date;s("change",{},{value:e.mode===Te.TIME?"".concat(_n(d.getHours()),":").concat(_n(d.getMinutes())):"".concat(d.getFullYear(),"-").concat(_n(d.getMonth()+1),"-").concat(_n(d.getDate()))})},()=>{s("cancel",{},{})},e.mode===Te.TIME?{time:bn(e.value,Te.TIME),popover:h}:{date:bn(e.value,Te.DATE),minDate:bn(e.start,Te.DATE),maxDate:bn(e.end,Te.DATE),popover:h})},g=(p,h)=>{(p.mode===Te.TIME||p.mode===Te.DATE)&&!p.fields?_(p,h):(p.fields=Object.values(vr).includes(p.fields)?p.fields:vr.DAY,c(p))},m=p=>{if(!e.disabled){var h=p.currentTarget,f=h.getBoundingClientRect();g(Object.assign({},e,{value:o.value,locale:n(),messages:{done:i("uni.picker.done"),cancel:i("uni.picker.cancel")}}),{top:f.top+Df(),left:f.left,width:f.width,height:f.height})}},b=pe(lt,!1),w={submit:()=>[e.name,o.value],reset:()=>{switch(e.mode){case Te.SELECTOR:o.value=0;break;case Te.MULTISELECTOR:Array.isArray(e.value)&&(o.value=e.value.map(p=>0));break;case Te.DATE:case Te.TIME:o.value="";break}}};return b&&(b.addField(w),xe(()=>b.removeField(w))),Object.keys(e).forEach(p=>{p!=="name"&&U(()=>e[p],h=>{var f={};f[p]=h,v(f)},{deep:!0})}),U(()=>e.value,u,{deep:!0}),u(),()=>I("uni-picker",{ref:a,onClick:m},[I("slot",null,null)],8,["onClick"])}});class gw extends _e{constructor(t,r,i,n){super(t,"uni-picker",hw,r,i,n)}}var Ry="";class pw extends Kr{constructor(t,r,i,n){super(t,"uni-picker-view",T_,r,i,n,".uni-picker-view-wrapper")}}var Py="";class mw extends Kr{constructor(t,r,i,n){super(t,"uni-picker-view-column",P_,r,i,n,".uni-picker-view-content")}}var Ly="";class _w extends _e{constructor(t,r,i,n){super(t,"uni-progress",N_,r,i,n)}}var Ny="";class bw extends _e{constructor(t,r,i,n){super(t,"uni-radio",W_,r,i,n,".uni-radio-wrapper")}setText(t){xs(this.$holder,"uni-radio-input",t)}}var ky="";class ww extends _e{constructor(t,r,i,n){super(t,"uni-radio-group",D_,r,i,n)}}var By="";class yw extends _e{constructor(t,r,i,n){super(t,"uni-rich-text",X_,r,i,n)}}var Dy="";class Sw extends _e{constructor(t,r,i,n){super(t,"uni-scroll-view",G_,r,i,n,".uni-scroll-view-content")}setText(t){xs(this.$holder,"uni-scroll-view-refresher",t)}}var Fy="";class xw extends _e{constructor(t,r,i,n){super(t,"uni-slider",eb,r,i,n)}}var $y="";class Tw extends Kr{constructor(t,r,i,n){super(t,"uni-swiper",ob,r,i,n,".uni-swiper-slide-frame")}}var Wy="";class Ew extends _e{constructor(t,r,i,n){super(t,"uni-swiper-item",ub,r,i,n)}}var Uy="";class Cw extends _e{constructor(t,r,i,n){super(t,"uni-switch",cb,r,i,n)}}var Vy="";class Ow extends _e{constructor(t,r,i,n){super(t,"uni-textarea",mb,r,i,n)}}var Hy="",Iw={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default(){return{}}},advanced:{type:Array,default(){return[]}}},jf=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],Mw=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],Aw=de({name:"Video",props:Iw,emits:jf,setup(e,t){var{emit:r}=t,i=$(null),n=Re(i,r),a=$(null),s=Ss(e,["id"]),{position:o,hidden:l,onParentReady:u}=Xr(a),v;u(()=>{v=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},s.value,o)),plus.webview.currentWebview().append(v),l.value&&v.hide(),jf.forEach(_=>{v.addEventListener(_,g=>{n(_,{},g.detail)})}),U(()=>s.value,_=>v.setStyles(_),{deep:!0}),U(()=>o,_=>v.setStyles(_),{deep:!0}),U(()=>l.value,_=>{v[_?"hide":"show"](),_||v.setStyles(o)})});var c=pn();return gn((_,g)=>{if(Mw.includes(_)){var m;switch(_){case"seek":m=g.position;break;case"sendDanmu":m=g;break;case"playbackRate":m=g.rate;break;case"requestFullScreen":m=g.direction;break}v&&v[_](m)}},c,!0),xe(()=>{v&&v.close()}),()=>I("uni-video",{ref:i,id:e.id},[I("div",{ref:a,class:"uni-video-container"},null,512),I("div",{class:"uni-video-slot"},null)],8,["id"])}});class Rw extends _e{constructor(t,r,i,n){super(t,"uni-video",Aw,r,i,n,".uni-video-slot")}}var jy="",Pw={src:{type:String,default:""},webviewStyles:{type:Object,default(){return{}}}},Xe,Lw=e=>{var{htmlId:t,src:r,webviewStyles:i}=e,n=plus.webview.currentWebview(),a=ce(i,{"uni-app":"none",isUniH5:!0}),s=n.getTitleNView();if(s){var o=Ro+parseFloat(a.top||"0");plus.navigator.isImmersedStatusbar()&&(o+=Bf()),a.top=String(o),a.bottom=a.bottom||"0"}Xe=plus.webview.create(r,t,a),s&&Xe.addEventListener("titleUpdate",function(){var l,u=(l=Xe)===null||l===void 0?void 0:l.getTitle();n.setStyle({titleNView:{titleText:!u||u==="null"?" ":u}})}),plus.webview.currentWebview().append(Xe)},Nw=()=>{var e;plus.webview.currentWebview().remove(Xe),(e=Xe)===null||e===void 0||e.close("none"),Xe=null},kw=de({name:"WebView",props:Pw,setup(e){var t=Ct(),r=$(null),{hidden:i,onParentReady:n}=Xr(r),a=Q(()=>e.webviewStyles);return n(()=>{var s,o=$($p+t);Lw({htmlId:o.value,src:et(e.src),webviewStyles:a.value}),UniViewJSBridge.publishHandler(Dp,{},t),i.value&&((s=Xe)===null||s===void 0||s.hide())}),xe(()=>{Nw(),UniViewJSBridge.publishHandler(Fp,{},t)}),U(()=>e.src,s=>{var o,l=et(s)||"";if(!!l){if(/^(http|https):\/\//.test(l)&&e.webviewStyles.progress){var u;(u=Xe)===null||u===void 0||u.setStyle({progress:{color:e.webviewStyles.progress.color}})}(o=Xe)===null||o===void 0||o.loadURL(l)}}),U(a,s=>{var o;(o=Xe)===null||o===void 0||o.setStyle(s)}),U(i,s=>{Xe&&Xe[s?"hide":"show"]()}),()=>I("uni-web-view",{ref:r},null,512)}});class Bw extends _e{constructor(t,r,i,n){super(t,"uni-web-view",kw,r,i,n)}}var Dw={"#text":Sb,"#comment":Fm,VIEW:Cb,IMAGE:qb,TEXT:yb,NAVIGATOR:aw,FORM:jb,BUTTON:Rb,INPUT:Xb,LABEL:Kb,RADIO:bw,CHECKBOX:Nb,"CHECKBOX-GROUP":kb,AD:Ab,CAMERA:Pb,CANVAS:Lb,"COVER-IMAGE":Wb,"COVER-VIEW":Vb,EDITOR:Hb,"FUNCTIONAL-PAGE-NAVIGATOR":zb,ICON:Yb,"RADIO-GROUP":ww,"LIVE-PLAYER":Gb,"LIVE-PUSHER":Zb,MAP:rw,"MOVABLE-AREA":iw,"MOVABLE-VIEW":nw,"OFFICIAL-ACCOUNT":sw,"OPEN-DATA":ow,PICKER:gw,"PICKER-VIEW":pw,"PICKER-VIEW-COLUMN":mw,PROGRESS:_w,"RICH-TEXT":yw,"SCROLL-VIEW":Sw,SLIDER:xw,SWIPER:Tw,"SWIPER-ITEM":Ew,SWITCH:Cw,TEXTAREA:Ow,VIDEO:Rw,"WEB-VIEW":Bw};function Fw(e,t){return()=>Dg(e,t)}var wn=new Map;function Ke(e){return wn.get(e)}function $w(e){return wn.get(e)}function zf(e){return wn.delete(e)}function Yf(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a;if(e===0)a=new lr(e,t,r,document.createElement(t));else{var s=Dw[t];s?a=new s(e,r,i,n):a=new Vu(e,document.createElement(t),r,i,n)}return wn.set(e,a),a}var Is=[],qf=!1;function Xf(e){if(qf)return e();Is.push(e)}function Ms(){qf=!0,Is.forEach(e=>e()),Is.length=0}function Ww(){}function Kf(e){var{css:t,route:r,platform:i,pixelRatio:n,windowWidth:a,disableScroll:s,statusbarHeight:o,windowTop:l,windowBottom:u}=e;Uw(r),Vw(i,n,a),Hw();var v=plus.webview.currentWebview().id;window.__id__=v,document.title="".concat(r,"[").concat(v,"]"),zw(o,l,u),s&&document.addEventListener("touchmove",Op),t?jw(r):Ms()}function Uw(e){window.__PAGE_INFO__={route:e}}function Vw(e,t,r){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:r}}function Hw(){Yf(0,"div",-1,-1).$=document.getElementById("app")}function jw(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=Ms,t.onerror=Ms,document.head.appendChild(t)}function zw(e,t,r){var i={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":r+"px","--status-bar-height":e+"px"};pp(i)}var Gf=!1;function Yw(e){if(!Gf){Gf=!0;var t={onReachBottomDistance:e,onPageScroll(r){UniViewJSBridge.publishHandler(yd,{scrollTop:r})},onReachBottom(){UniViewJSBridge.publishHandler(Sd)}};requestAnimationFrame(()=>document.addEventListener("scroll",Ip(t)))}}function qw(e,t){var{scrollTop:r,selector:i,duration:n}=e;Kv(i||r||0,n),t()}function Xw(e){var t=e[0];t[0]===Mo?Kw(t):Xf(()=>Gw(e))}function Kw(e){return Kf(e[1])}function Gw(e){var t=e[0],r=_m(t[0]===Bp?t[1]:[]);e.forEach(i=>{switch(i[0]){case Mo:return Kf(i[1]);case id:return Ww();case nd:return Yf(i[1],r(i[2]),i[3],i[4],bm(r,i[5]));case ad:return Ke(i[1]).remove();case sd:return Ke(i[1]).setAttr(r(i[2]),r(i[3]));case od:return Ke(i[1]).removeAttr(r(i[2]));case ld:return Ke(i[1]).addEvent(r(i[2]),i[3]);case cd:return Ke(i[1]).addWxsEvent(r(i[2]),r(i[3]),i[4]);case ud:return Ke(i[1]).removeEvent(r(i[2]));case fd:return Ke(i[1]).setText(r(i[2]));case vd:return Yw(i[1])}}),xm()}function Zw(){var{subscribe:e}=UniViewJSBridge;e(_u,Xw),e(Wp,He().setLocale)}function Zf(e){return window.__$__(e).$}function Jw(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var r=document.documentElement,i=document.body;t.scrollLeft=r.scrollLeft||i.scrollLeft||0,t.scrollTop=r.scrollTop||i.scrollTop||0,t.scrollHeight=r.scrollHeight||i.scrollHeight||0,t.scrollWidth=r.scrollWidth||i.scrollWidth||0}return t}function As(e,t){var r={},{top:i}=gp();if(t.id&&(r.id=e.id),t.dataset&&(r.dataset=Qn(e)),t.rect||t.size){var n=e.getBoundingClientRect();t.rect&&(r.left=n.left,r.right=n.right,r.top=n.top-i,r.bottom=n.bottom-i),t.size&&(r.width=n.width,r.height=n.height)}if(Array.isArray(t.properties)&&t.properties.forEach(o=>{o=o.replace(/-([a-z])/g,function(l,u){return u.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){var a=e.children[0].children[0];r.scrollLeft=a.scrollLeft,r.scrollTop=a.scrollTop,r.scrollHeight=a.scrollHeight,r.scrollWidth=a.scrollWidth}else r.scrollLeft=0,r.scrollTop=0,r.scrollHeight=0,r.scrollWidth=0;if(Array.isArray(t.computedStyle)){var s=getComputedStyle(e);t.computedStyle.forEach(o=>{r[o]=s[o]})}return t.context&&(r.contextInfo=bb(e)),r}function Qw(e,t){return e?window.__$__(e).$:t.$el}function Jf(e,t){var r=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(i){for(var n=this.parentElement.querySelectorAll(i),a=n.length;--a>=0&&n.item(a)!==this;);return a>-1};return r.call(e,t)}function ey(e,t,r,i,n){var a=Qw(t,e),s=a.parentElement;if(!s)return i?null:[];var{nodeType:o}=a,l=o===3||o===8;if(i){var u=l?s.querySelector(r):Jf(a,r)?a:a.querySelector(r);return u?As(u,n):null}else{var v=[],c=(l?s:a).querySelectorAll(r);return c&&c.length&&[].forEach.call(c,_=>{v.push(As(_,n))}),!l&&Jf(a,r)&&v.unshift(As(a,n)),v}}function ty(e,t,r){var i=[];t.forEach(n=>{var{component:a,selector:s,single:o,fields:l}=n;a===null?i.push(Jw(l)):i.push(ey(e,a,s,o,l))}),r(i)}function ry(e,t){var{reqId:r,component:i,options:n,callback:a}=e,s=Zf(i);(s.__io||(s.__io={}))[r]=fm(s,n,a)}function iy(e,t){var{reqId:r,component:i}=e,n=Zf(i),a=n.__io&&n.__io[r];a&&(a.disconnect(),delete n.__io[r])}var Rs={},Ps={};function ny(e){var t=[],r=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(var i of r)i!=="orientation"&&e[i]&&Number(e[i]>=0)&&t.push("(".concat(Qf(i),": ").concat(Number(e[i]),"px)")),i==="orientation"&&e[i]&&t.push("(".concat(Qf(i),": ").concat(e[i],")"));var n=t.join(" and ");return n}function Qf(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function ay(e,t){var{reqId:r,component:i,options:n,callback:a}=e,s=Rs[r]=window.matchMedia(ny(n)),o=Ps[r]=l=>a(l.matches);o(s),s.addListener(o)}function sy(e,t){var{reqId:r,component:i}=e,n=Ps[r],a=Rs[r];a&&(a.removeListener(n),delete Ps[r],delete Rs[r])}function oy(e,t){var{family:r,source:i,desc:n}=e;Xv(r,i,n).then(()=>{t()}).catch(a=>{t(a.toString())})}var ly={$el:document.body};function uy(){var e=Ct();zd(e,t=>function(){for(var r=arguments.length,i=new Array(r),n=0;n{t.apply(null,i)})}),ct(e,"requestComponentInfo",(t,r)=>{ty(ly,t.reqs,r)}),ct(e,"addIntersectionObserver",t=>{ry(ce({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),ct(e,"removeIntersectionObserver",t=>{iy(t)}),ct(e,"addMediaQueryObserver",t=>{ay(ce({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),ct(e,"removeMediaQueryObserver",t=>{sy(t)}),ct(e,om,qw),ct(e,sm,oy)}window.uni=pm,window.UniViewJSBridge=bu,window.rpx2px=Eu,window.__$__=Ke,window.__f__=Qv;function ec(){eh(),uy(),Zw(),mm(),bu.publishHandler(kp)}typeof plus!="undefined"?ec():document.addEventListener("plusready",ec)}); +(function(yn){typeof define=="function"&&define.amd?define(yn):yn()})(function(){"use strict";var yn="",cy="",vy="",Gt={exports:{}},Jr={exports:{}},Qr={exports:{}},nc=Qr.exports={version:"2.6.12"};typeof __e=="number"&&(__e=nc);var pt={exports:{}},ei=pt.exports=typeof ei!="undefined"&&ei.Math==Math?ei:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=ei);var ac=Qr.exports,Ns=pt.exports,ks="__core-js_shared__",Bs=Ns[ks]||(Ns[ks]={});(Jr.exports=function(e,t){return Bs[e]||(Bs[e]=t!==void 0?t:{})})("versions",[]).push({version:ac.version,mode:"window",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"});var sc=0,oc=Math.random(),Sn=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++sc+oc).toString(36))},xn=Jr.exports("wks"),lc=Sn,Tn=pt.exports.Symbol,Ds=typeof Tn=="function",uc=Gt.exports=function(e){return xn[e]||(xn[e]=Ds&&Tn[e]||(Ds?Tn:lc)("Symbol."+e))};uc.store=xn;var ti={},En=function(e){return typeof e=="object"?e!==null:typeof e=="function"},fc=En,Cn=function(e){if(!fc(e))throw TypeError(e+" is not an object!");return e},ri=function(e){try{return!!e()}catch(t){return!0}},hr=!ri(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Fs=En,On=pt.exports.document,cc=Fs(On)&&Fs(On.createElement),$s=function(e){return cc?On.createElement(e):{}},vc=!hr&&!ri(function(){return Object.defineProperty($s("div"),"a",{get:function(){return 7}}).a!=7}),ii=En,dc=function(e,t){if(!ii(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!ii(i=r.call(e))||typeof(r=e.valueOf)=="function"&&!ii(i=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!ii(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")},Ws=Cn,hc=vc,gc=dc,pc=Object.defineProperty;ti.f=hr?Object.defineProperty:function(t,r,i){if(Ws(t),r=gc(r,!0),Ws(i),hc)try{return pc(t,r,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[r]=i.value),t};var Us=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},mc=ti,_c=Us,Zt=hr?function(e,t,r){return mc.f(e,t,_c(1,r))}:function(e,t,r){return e[t]=r,e},In=Gt.exports("unscopables"),Mn=Array.prototype;Mn[In]==null&&Zt(Mn,In,{});var bc=function(e){Mn[In][e]=!0},wc=function(e,t){return{value:t,done:!!e}},An={},yc={}.toString,Sc=function(e){return yc.call(e).slice(8,-1)},xc=Sc,Tc=Object("z").propertyIsEnumerable(0)?Object:function(e){return xc(e)=="String"?e.split(""):Object(e)},Vs=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Ec=Tc,Cc=Vs,ni=function(e){return Ec(Cc(e))},ai={exports:{}},Oc={}.hasOwnProperty,si=function(e,t){return Oc.call(e,t)},Ic=Jr.exports("native-function-to-string",Function.toString),Mc=pt.exports,oi=Zt,Hs=si,Rn=Sn("src"),Pn=Ic,js="toString",Ac=(""+Pn).split(js);Qr.exports.inspectSource=function(e){return Pn.call(e)},(ai.exports=function(e,t,r,i){var n=typeof r=="function";n&&(Hs(r,"name")||oi(r,"name",t)),e[t]!==r&&(n&&(Hs(r,Rn)||oi(r,Rn,e[t]?""+e[t]:Ac.join(String(t)))),e===Mc?e[t]=r:i?e[t]?e[t]=r:oi(e,t,r):(delete e[t],oi(e,t,r)))})(Function.prototype,js,function(){return typeof this=="function"&&this[Rn]||Pn.call(this)});var zs=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e},Rc=zs,Pc=function(e,t,r){if(Rc(e),t===void 0)return e;switch(r){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,a){return e.call(t,i,n,a)}}return function(){return e.apply(t,arguments)}},Jt=pt.exports,li=Qr.exports,Lc=Zt,Nc=ai.exports,Ys=Pc,Ln="prototype",De=function(e,t,r){var i=e&De.F,n=e&De.G,a=e&De.S,s=e&De.P,o=e&De.B,l=n?Jt:a?Jt[t]||(Jt[t]={}):(Jt[t]||{})[Ln],u=n?li:li[t]||(li[t]={}),v=u[Ln]||(u[Ln]={}),c,m,g,_;n&&(r=t);for(c in r)m=!i&&l&&l[c]!==void 0,g=(m?l:r)[c],_=o&&m?Ys(g,Jt):s&&typeof g=="function"?Ys(Function.call,g):g,l&&Nc(l,c,g,e&De.U),u[c]!=g&&Lc(u,c,_),s&&v[c]!=g&&(v[c]=g)};Jt.core=li,De.F=1,De.G=2,De.S=4,De.P=8,De.B=16,De.W=32,De.U=64,De.R=128;var Nn=De,kc=Math.ceil,Bc=Math.floor,qs=function(e){return isNaN(e=+e)?0:(e>0?Bc:kc)(e)},Dc=qs,Fc=Math.min,$c=function(e){return e>0?Fc(Dc(e),9007199254740991):0},Wc=qs,Uc=Math.max,Vc=Math.min,Hc=function(e,t){return e=Wc(e),e<0?Uc(e+t,0):Vc(e,t)},jc=ni,zc=$c,Yc=Hc,qc=function(e){return function(t,r,i){var n=jc(t),a=zc(n.length),s=Yc(i,a),o;if(e&&r!=r){for(;a>s;)if(o=n[s++],o!=o)return!0}else for(;a>s;s++)if((e||s in n)&&n[s]===r)return e||s||0;return!e&&-1}},Xs=Jr.exports("keys"),Xc=Sn,kn=function(e){return Xs[e]||(Xs[e]=Xc(e))},Ks=si,Kc=ni,Gc=qc(!1),Zc=kn("IE_PROTO"),Jc=function(e,t){var r=Kc(e),i=0,n=[],a;for(a in r)a!=Zc&&Ks(r,a)&&n.push(a);for(;t.length>i;)Ks(r,a=t[i++])&&(~Gc(n,a)||n.push(a));return n},Gs="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Qc=Jc,ev=Gs,Bn=Object.keys||function(t){return Qc(t,ev)},tv=ti,rv=Cn,iv=Bn,nv=hr?Object.defineProperties:function(t,r){rv(t);for(var i=iv(r),n=i.length,a=0,s;n>a;)tv.f(t,s=i[a++],r[s]);return t},Zs=pt.exports.document,av=Zs&&Zs.documentElement,sv=Cn,ov=nv,Js=Gs,lv=kn("IE_PROTO"),Dn=function(){},Fn="prototype",ui=function(){var e=$s("iframe"),t=Js.length,r="<",i=">",n;for(e.style.display="none",av.appendChild(e),e.src="javascript:",n=e.contentWindow.document,n.open(),n.write(r+"script"+i+"document.F=Object"+r+"/script"+i),n.close(),ui=n.F;t--;)delete ui[Fn][Js[t]];return ui()},uv=Object.create||function(t,r){var i;return t!==null?(Dn[Fn]=sv(t),i=new Dn,Dn[Fn]=null,i[lv]=t):i=ui(),r===void 0?i:ov(i,r)},fv=ti.f,cv=si,Qs=Gt.exports("toStringTag"),eo=function(e,t,r){e&&!cv(e=r?e:e.prototype,Qs)&&fv(e,Qs,{configurable:!0,value:t})},vv=uv,dv=Us,hv=eo,to={};Zt(to,Gt.exports("iterator"),function(){return this});var gv=function(e,t,r){e.prototype=vv(to,{next:dv(1,r)}),hv(e,t+" Iterator")},pv=Vs,ro=function(e){return Object(pv(e))},mv=si,_v=ro,io=kn("IE_PROTO"),bv=Object.prototype,wv=Object.getPrototypeOf||function(e){return e=_v(e),mv(e,io)?e[io]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?bv:null},$n=Nn,yv=ai.exports,no=Zt,ao=An,Sv=gv,xv=eo,Tv=wv,gr=Gt.exports("iterator"),Wn=!([].keys&&"next"in[].keys()),Ev="@@iterator",so="keys",fi="values",oo=function(){return this},Cv=function(e,t,r,i,n,a,s){Sv(r,t,i);var o=function(f){if(!Wn&&f in c)return c[f];switch(f){case so:return function(){return new r(this,f)};case fi:return function(){return new r(this,f)}}return function(){return new r(this,f)}},l=t+" Iterator",u=n==fi,v=!1,c=e.prototype,m=c[gr]||c[Ev]||n&&c[n],g=m||o(n),_=n?u?o("entries"):g:void 0,b=t=="Array"&&c.entries||m,w,p,h;if(b&&(h=Tv(b.call(new e)),h!==Object.prototype&&h.next&&(xv(h,l,!0),typeof h[gr]!="function"&&no(h,gr,oo))),u&&m&&m.name!==fi&&(v=!0,g=function(){return m.call(this)}),(Wn||v||!c[gr])&&no(c,gr,g),ao[t]=g,ao[l]=oo,n)if(w={values:u?g:o(fi),keys:a?g:o(so),entries:_},s)for(p in w)p in c||yv(c,p,w[p]);else $n($n.P+$n.F*(Wn||v),t,w);return w},Un=bc,ci=wc,lo=An,Ov=ni,Iv=Cv(Array,"Array",function(e,t){this._t=Ov(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,ci(1)):t=="keys"?ci(0,r):t=="values"?ci(0,e[r]):ci(0,[r,e[r]])},"values");lo.Arguments=lo.Array,Un("keys"),Un("values"),Un("entries");for(var uo=Iv,Mv=Bn,Av=ai.exports,Rv=pt.exports,fo=Zt,co=An,vo=Gt.exports,ho=vo("iterator"),go=vo("toStringTag"),po=co.Array,mo={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},_o=Mv(mo),Vn=0;Vn<_o.length;Vn++){var vi=_o[Vn],Pv=mo[vi],bo=Rv[vi],Pt=bo&&bo.prototype,di;if(Pt&&(Pt[ho]||fo(Pt,ho,po),Pt[go]||fo(Pt,go,vi),co[vi]=po,Pv))for(di in uo)Pt[di]||Av(Pt,di,uo[di],!0)}function hi(e,t){for(var r=Object.create(null),i=e.split(","),n=0;n!!r[a.toLowerCase()]:a=>!!r[a]}var Lv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Nv=hi(Lv);function wo(e){return!!e||e===""}var kv=hi("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width");function Hn(e){if(le(e)){for(var t={},r=0;r{if(r){var i=r.split(Dv);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Fv(e){var t="";if(!e||ye(e))return t;for(var r in e){var i=e[r],n=r.startsWith("--")?r:Ve(r);(ye(i)||typeof i=="number"&&kv(n))&&(t+="".concat(n,":").concat(i,";"))}return t}function jn(e){var t="";if(ye(e))t=e;else if(le(e))for(var r=0;r{},$v=()=>!1,Wv=/^on[^a-z]/,gi=e=>Wv.test(e),zn=e=>e.startsWith("onUpdate:"),ce=Object.assign,So=(e,t)=>{var r=e.indexOf(t);r>-1&&e.splice(r,1)},Uv=Object.prototype.hasOwnProperty,te=(e,t)=>Uv.call(e,t),le=Array.isArray,mr=e=>_r(e)==="[object Map]",Vv=e=>_r(e)==="[object Set]",ae=e=>typeof e=="function",ye=e=>typeof e=="string",Yn=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",xo=e=>Be(e)&&ae(e.then)&&ae(e.catch),Hv=Object.prototype.toString,_r=e=>Hv.call(e),qn=e=>_r(e).slice(8,-1),it=e=>_r(e)==="[object Object]",Xn=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pi=hi(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mi=e=>{var t=Object.create(null);return r=>{var i=t[r];return i||(t[r]=e(r))}},jv=/-(\w)/g,mt=mi(e=>e.replace(jv,(t,r)=>r?r.toUpperCase():"")),zv=/\B([A-Z])/g,Ve=mi(e=>e.replace(zv,"-$1").toLowerCase()),_i=mi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kn=mi(e=>e?"on".concat(_i(e)):""),br=(e,t)=>!Object.is(e,t),Gn=(e,t)=>{for(var r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Yv=e=>{var t=parseFloat(e);return isNaN(t)?e:t},To,qv=()=>To||(To=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"||typeof window!="undefined"?window:{}),Zn=0;function Jn(e){var t=Date.now(),r=Zn?t-Zn:0;Zn=t;for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;aJSON.stringify(s)).join(" "))}function Qn(e){return ce({},e.dataset,e.__uniDataset)}function ea(e){return{passive:e}}function ta(e){var{id:t,offsetTop:r,offsetLeft:i}=e;return{id:t,dataset:Qn(e),offsetTop:r,offsetLeft:i}}function Xv(e,t,r){var i=document.fonts;if(i){var n=new FontFace(e,t,r);return n.load().then(()=>{i.add&&i.add(n)})}return new Promise(a=>{var s=document.createElement("style"),o=[];if(r){var{style:l,weight:u,stretch:v,unicodeRange:c,variant:m,featureSettings:g}=r;l&&o.push("font-style:".concat(l)),u&&o.push("font-weight:".concat(u)),v&&o.push("font-stretch:".concat(v)),c&&o.push("unicode-range:".concat(c)),m&&o.push("font-variant:".concat(m)),g&&o.push("font-feature-settings:".concat(g))}s.innerText='@font-face{font-family:"'.concat(e,'";src:').concat(t,";").concat(o.join(";"),"}"),document.head.appendChild(s),a()})}function Kv(e,t){if(ye(e)){var r=document.querySelector(e);r&&(e=r.getBoundingClientRect().top+window.pageYOffset)}e<0&&(e=0);var i=document.documentElement,{clientHeight:n,scrollHeight:a}=i;if(e=Math.min(e,a-n),t===0){i.scrollTop=document.body.scrollTop=e;return}if(window.scrollY!==e){var s=o=>{if(o<=0){window.scrollTo(0,e);return}var l=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+l/o*10),s(o-10)})};s(t)}}function Gv(){return typeof __channelId__=="string"&&__channelId__}function Zv(e,t){switch(qn(t)){case"Function":return"function() { [native code] }";default:return t}}function Jv(e,t,r){if(Gv())return r.push(t.replace("at ","uni-app:///")),console[e].apply(console,r);var i=r.map(function(n){var a=_r(n).toLowerCase();if(a==="[object object]"||a==="[object array]")try{n="---BEGIN:JSON---"+JSON.stringify(n,Zv)+"---END:JSON---"}catch(o){n=a}else if(n===null)n="---NULL---";else if(n===void 0)n="---UNDEFINED---";else{var s=qn(n).toUpperCase();s==="NUMBER"||s==="BOOLEAN"?n="---BEGIN:"+s+"---"+n+"---END:"+s+"---":n=String(n)}return n});return i.join("---COMMA---")+" "+t}function Qv(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n{var i=t[r];return i||(t[r]=e(r))}}function gd(e){return hd(e)}function sa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r;return function(){if(e){for(var i=arguments.length,n=new Array(i),a=0;ae.apply(this,arguments);r=setTimeout(n,t)};return i.cancel=function(){clearTimeout(r)},i}var wr=` +`,Ro=44,yi="#007aff",md=/^([a-z-]+:)?\/\//i,_d=/^data:.*,.*/,Po="wxs://",Lo="json://",bd="wxsModules",wd="renderjsModules",yd="onPageScroll",Sd="onReachBottom",xd="onWxsInvokeCallMethod",Td=Array.isArray,Ed=e=>e!==null&&typeof e=="object",Cd=["{","}"];class Od{constructor(){this._caches=Object.create(null)}interpolate(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Cd;if(!r)return[t];var n=this._caches[t];return n||(n=Ad(t,i),this._caches[t]=n),Rd(n,r)}}var Id=/^(?:\d)+/,Md=/^(?:\w)+/;function Ad(e,t){for(var[r,i]=t,n=[],a=0,s="";aPd.call(e,t),Ld=new Od;function Nd(e,t){return!!t.find(r=>e.indexOf(r)!==-1)}function kd(e,t){return t.find(r=>e.indexOf(r)===0)}function ko(e,t){if(!!e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e==="chinese")return yr;if(e.indexOf("zh")===0)return e.indexOf("-hans")>-1?yr:e.indexOf("-hant")>-1||Nd(e,["-tw","-hk","-mo","-cht"])?Si:yr;var r=kd(e,[_t,oa,la]);if(r)return r}}class Bd{constructor(t){var{locale:r,fallbackLocale:i,messages:n,watcher:a,formater:s}=t;this.locale=_t,this.fallbackLocale=_t,this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=s||Ld,this.messages=n||{},this.setLocale(r||_t),a&&this.watchLocale(a)}setLocale(t){var r=this.locale;this.locale=ko(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach(i=>{i(this.locale,r)})}getLocale(){return this.locale}watchLocale(t){var r=this.watchers.push(t)-1;return()=>{this.watchers.splice(r,1)}}add(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=this.messages[t];n?i?Object.assign(n,r):Object.keys(r).forEach(a=>{No(n,a)||(n[a]=r[a])}):this.messages[t]=r}f(t,r,i){return this.formater.interpolate(t,r,i).join("")}t(t,r,i){var n=this.message;return typeof r=="string"?(r=ko(r,this.messages),r&&(n=this.messages[r])):i=r,No(n,t)?this.formater.interpolate(n[t],i).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}function Dd(e,t){e.$watchLocale?e.$watchLocale(r=>{t.setLocale(r)}):e.$watch(()=>e.$locale,r=>{t.setLocale(r)})}function Fd(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof window!="undefined"&&window.getLocale?window.getLocale():_t}function $d(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;typeof e!="string"&&([e,t]=[t,e]),typeof e!="string"&&(e=Fd()),typeof r!="string"&&(r=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||_t);var n=new Bd({locale:e,fallbackLocale:r,messages:t,watcher:i}),a=(s,o)=>{if(typeof getApp!="function")a=function(u,v){return n.t(u,v)};else{var l=!1;a=function(u,v){var c=getApp().$vm;return c&&(c.$locale,l||(l=!0,Dd(c,n))),n.t(u,v)}}return a(s,o)};return{i18n:n,f(s,o,l){return n.f(s,o,l)},t(s,o){return a(s,o)},add(s,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return n.add(s,o,l)},watch(s){return n.watchLocale(s)},getLocale(){return n.getLocale()},setLocale(s){return n.setLocale(s)}}}var ua;function He(){if(!ua){var e;typeof getApp=="function"?e=weex.requireModule("plus").getLanguage():e=plus.webview.currentWebview().getStyle().locale,ua=$d(e)}return ua}function nt(e,t,r){return t.reduce((i,n,a)=>(i[e+n]=r[a],i),{})}var Wd=sa(()=>{var e="uni.picker.",t=["done","cancel"];He().add(_t,nt(e,t,["Done","Cancel"]),!1),He().add(la,nt(e,t,["OK","Cancelar"]),!1),He().add(oa,nt(e,t,["OK","Annuler"]),!1),He().add(yr,nt(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1),He().add(Si,nt(e,t,["\u5B8C\u6210","\u53D6\u6D88"]),!1)}),Ud=sa(()=>{var e="uni.button.",t=["feedback.title","feedback.send"];He().add(_t,nt(e,t,["feedback","send"]),!1),He().add(la,nt(e,t,["realimentaci\xF3n","enviar"]),!1),He().add(oa,nt(e,t,["retour d'information","envoyer"]),!1),He().add(yr,nt(e,t,["\u95EE\u9898\u53CD\u9988","\u53D1\u9001"]),!1),He().add(Si,nt(e,t,["\u554F\u984C\u53CD\u994B","\u767C\u9001"]),!1)}),Bo=function(){};Bo.prototype={on:function(e,t,r){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var i=this;function n(){i.off(e,n),t.apply(r,arguments)}return n._=t,this.on(e,n,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),i=0,n=r.length;for(i;i1?i-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:!1;t[n?"once":"on"]("".concat(e,".").concat(r),i)},unsubscribe(r,i){t.off("".concat(e,".").concat(r),i)},subscribeHandler(r,i,n){t.emit("".concat(e,".").concat(r),i,n)}}}var Do="invokeViewApi",Fo="invokeServiceApi",Hd=1,jd=(e,t,r)=>{var{subscribe:i,publishHandler:n}=UniViewJSBridge,a=r?Hd++:0;r&&i(Fo+"."+a,r,!0),n(Fo,{id:a,name:e,args:t})},xi=Object.create(null);function Ti(e,t){return e+"."+t}function zd(e,t){UniViewJSBridge.subscribe(Ti(e,Do),t?t($o):$o)}function ct(e,t,r){t=Ti(e,t),xi[t]||(xi[t]=r)}function Yd(e,t){t=Ti(e,t),delete xi[t]}function $o(e,t){var{id:r,name:i,args:n}=e;i=Ti(t,i);var a=o=>{r&&UniViewJSBridge.publishHandler(Do+"."+r,o)},s=xi[i];s?s(n,a):a({})}var qd=ce(Vd("service"),{invokeServiceMethod:jd}),Xd=350,Wo=10,Ei=ea(!0),Sr;function xr(){Sr&&(clearTimeout(Sr),Sr=null)}var Uo=0,Vo=0;function Kd(e){if(xr(),e.touches.length===1){var{pageX:t,pageY:r}=e.touches[0];Uo=t,Vo=r,Sr=setTimeout(function(){var i=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});i.touches=e.touches,i.changedTouches=e.changedTouches,e.target.dispatchEvent(i)},Xd)}}function Gd(e){if(!!Sr){if(e.touches.length!==1)return xr();var{pageX:t,pageY:r}=e.touches[0];if(Math.abs(t-Uo)>Wo||Math.abs(r-Vo)>Wo)return xr()}}function Zd(){window.addEventListener("touchstart",Kd,Ei),window.addEventListener("touchmove",Gd,Ei),window.addEventListener("touchend",xr,Ei),window.addEventListener("touchcancel",xr,Ei)}function Ho(e,t){var r=Number(e);return isNaN(r)?t:r}function Jd(){var e=/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number",t=e&&Math.abs(window.orientation)===90,r=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,i=Math.min(window.innerWidth,document.documentElement.clientWidth,r)||r;return i}function Qd(){function e(){var t=__uniConfig.globalStyle||{},r=Ho(t.rpxCalcMaxDeviceWidth,960),i=Ho(t.rpxCalcBaseDeviceWidth,375),n=Jd();n=n<=r?n:i,document.documentElement.style.fontSize=n/23.4375+"px"}e(),document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e),window.addEventListener("resize",e)}function eh(){Qd(),Zd()}var th=ri,rh=function(e,t){return!!e&&th(function(){t?e.call(null,function(){},1):e.call(null)})},fa=Nn,ih=zs,jo=ro,zo=ri,ca=[].sort,Yo=[1,2,3];fa(fa.P+fa.F*(zo(function(){Yo.sort(void 0)})||!zo(function(){Yo.sort(null)})||!rh(ca)),"Array",{sort:function(t){return t===void 0?ca.call(jo(this)):ca.call(jo(this),ih(t))}});var Lt,Ci=[];class nh{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.active=!0,this.effects=[],this.cleanups=[],!t&&Lt&&(this.parent=Lt,this.index=(Lt.scopes||(Lt.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(Ci.push(this),Lt=this)}off(){this.active&&(Ci.pop(),Lt=Ci[Ci.length-1])}stop(t){if(this.active){if(this.effects.forEach(i=>i.stop()),this.cleanups.forEach(i=>i()),this.scopes&&this.scopes.forEach(i=>i.stop(!0)),this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function ah(e,t){t=t||Lt,t&&t.active&&t.effects.push(e)}var va=e=>{var t=new Set(e);return t.w=0,t.n=0,t},qo=e=>(e.w&bt)>0,Xo=e=>(e.n&bt)>0,sh=e=>{var{deps:t}=e;if(t.length)for(var r=0;r{var{deps:t}=e;if(t.length){for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],ah(this,i)}run(){if(!this.active)return this.fn();if(!Er.includes(this))try{return Er.push(Nt=this),lh(),bt=1<<++Tr,Tr<=ha?sh(this):Ko(this),this.fn()}finally{Tr<=ha&&oh(this),bt=1<<--Tr,Bt(),Er.pop();var t=Er.length;Nt=t>0?Er[t-1]:void 0}}stop(){this.active&&(Ko(this),this.onStop&&this.onStop(),this.active=!1)}}function Ko(e){var{deps:t}=e;if(t.length){for(var r=0;r{(c==="length"||c>=i)&&o.push(v)});else switch(r!==void 0&&o.push(s.get(r)),t){case"add":le(e)?Xn(r)&&o.push(s.get("length")):(o.push(s.get(kt)),mr(e)&&o.push(s.get(ga)));break;case"delete":le(e)||(o.push(s.get(kt)),mr(e)&&o.push(s.get(ga)));break;case"set":mr(e)&&o.push(s.get(kt));break}if(o.length===1)o[0]&&_a(o[0]);else{var l=[];for(var u of o)u&&l.push(...u);_a(va(l))}}}function _a(e,t){for(var r of le(e)?e:[...e])(r!==Nt||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}var uh=hi("__proto__,__v_isRef,__isVue"),Jo=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Yn)),fh=ba(),ch=ba(!1,!0),vh=ba(!0),Qo=dh();function dh(){var e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(){for(var r=ge(this),i=0,n=this.length;i{e[t]=function(){tr();for(var r=arguments.length,i=new Array(r),n=0;n0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(i,n,a){if(n==="__v_isReactive")return!e;if(n==="__v_isReadonly")return e;if(n==="__v_raw"&&a===(e?t?Mh:ll:t?ol:sl).get(i))return i;var s=le(i);if(!e&&s&&te(Qo,n))return Reflect.get(Qo,n,a);var o=Reflect.get(i,n,a);if((Yn(n)?Jo.has(n):uh(n))||(e||je(i,"get",n),t))return o;if(We(o)){var l=!s||!Xn(n);return l?o.value:o}return Be(o)?e?ul(o):Ee(o):o}}var hh=el(),gh=el(!0);function el(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return function(r,i,n,a){var s=r[i];if(!e&&(n=ge(n),s=ge(s),!le(r)&&We(s)&&!We(n)))return s.value=n,!0;var o=le(r)&&Xn(i)?Number(i)e,Oi=e=>Reflect.getPrototypeOf(e);function Ii(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e=e.__v_raw;var n=ge(e),a=ge(t);t!==a&&!r&&je(n,"get",t),!r&&je(n,"get",a);var{has:s}=Oi(n),o=i?wa:r?xa:Cr;if(s.call(n,t))return o(e.get(t));if(s.call(n,a))return o(e.get(a));e!==n&&e.get(t)}function Mi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.__v_raw,i=ge(r),n=ge(e);return e!==n&&!t&&je(i,"has",e),!t&&je(i,"has",n),e===n?r.has(e):r.has(e)||r.has(n)}function Ai(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e=e.__v_raw,!t&&je(ge(e),"iterate",kt),Reflect.get(e,"size",e)}function rl(e){e=ge(e);var t=ge(this),r=Oi(t),i=r.has.call(t,e);return i||(t.add(e),vt(t,"add",e,e)),this}function il(e,t){t=ge(t);var r=ge(this),{has:i,get:n}=Oi(r),a=i.call(r,e);a||(e=ge(e),a=i.call(r,e));var s=n.call(r,e);return r.set(e,t),a?br(t,s)&&vt(r,"set",e,t):vt(r,"add",e,t),this}function nl(e){var t=ge(this),{has:r,get:i}=Oi(t),n=r.call(t,e);n||(e=ge(e),n=r.call(t,e)),i&&i.call(t,e);var a=t.delete(e);return n&&vt(t,"delete",e,void 0),a}function al(){var e=ge(this),t=e.size!==0,r=e.clear();return t&&vt(e,"clear",void 0,void 0),r}function Ri(e,t){return function(i,n){var a=this,s=a.__v_raw,o=ge(s),l=t?wa:e?xa:Cr;return!e&&je(o,"iterate",kt),s.forEach((u,v)=>i.call(n,l(u),l(v),a))}}function Pi(e,t,r){return function(){var i=this.__v_raw,n=ge(i),a=mr(n),s=e==="entries"||e===Symbol.iterator&&a,o=e==="keys"&&a,l=i[e](...arguments),u=r?wa:t?xa:Cr;return!t&&je(n,"iterate",o?ga:kt),{next(){var{value:v,done:c}=l.next();return c?{value:v,done:c}:{value:s?[u(v[0]),u(v[1])]:u(v),done:c}},[Symbol.iterator](){return this}}}}function wt(e){return function(){return e==="delete"?!1:this}}function yh(){var e={get(a){return Ii(this,a)},get size(){return Ai(this)},has:Mi,add:rl,set:il,delete:nl,clear:al,forEach:Ri(!1,!1)},t={get(a){return Ii(this,a,!1,!0)},get size(){return Ai(this)},has:Mi,add:rl,set:il,delete:nl,clear:al,forEach:Ri(!1,!0)},r={get(a){return Ii(this,a,!0)},get size(){return Ai(this,!0)},has(a){return Mi.call(this,a,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Ri(!0,!1)},i={get(a){return Ii(this,a,!0,!0)},get size(){return Ai(this,!0)},has(a){return Mi.call(this,a,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Ri(!0,!0)},n=["keys","values","entries",Symbol.iterator];return n.forEach(a=>{e[a]=Pi(a,!1,!1),r[a]=Pi(a,!0,!1),t[a]=Pi(a,!1,!0),i[a]=Pi(a,!0,!0)}),[e,r,t,i]}var[Sh,xh,Th,Eh]=yh();function ya(e,t){var r=t?e?Eh:Th:e?xh:Sh;return(i,n,a)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(te(r,n)&&n in i?r:i,n,a)}var Ch={get:ya(!1,!1)},Oh={get:ya(!1,!0)},Ih={get:ya(!0,!1)},sl=new WeakMap,ol=new WeakMap,ll=new WeakMap,Mh=new WeakMap;function Ah(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rh(e){return e.__v_skip||!Object.isExtensible(e)?0:Ah(qn(e))}function Ee(e){return e&&e.__v_isReadonly?e:Sa(e,!1,tl,Ch,sl)}function Ph(e){return Sa(e,!1,wh,Oh,ol)}function ul(e){return Sa(e,!0,bh,Ih,ll)}function Sa(e,t,r,i,n){if(!Be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;var a=n.get(e);if(a)return a;var s=Rh(e);if(s===0)return e;var o=new Proxy(e,s===2?i:r);return n.set(e,o),o}function rr(e){return fl(e)?rr(e.__v_raw):!!(e&&e.__v_isReactive)}function fl(e){return!!(e&&e.__v_isReadonly)}function cl(e){return rr(e)||fl(e)}function ge(e){var t=e&&e.__v_raw;return t?ge(t):e}function Li(e){return bi(e,"__v_skip",!0),e}var Cr=e=>Be(e)?Ee(e):e,xa=e=>Be(e)?ul(e):e;function vl(e){Go()&&(e=ge(e),e.dep||(e.dep=va()),Zo(e.dep))}function dl(e,t){e=ge(e),e.dep&&_a(e.dep)}function We(e){return Boolean(e&&e.__v_isRef===!0)}function $(e){return hl(e,!1)}function Ta(e){return hl(e,!0)}function hl(e,t){return We(e)?e:new Lh(e,t)}class Lh{constructor(t,r){this._shallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ge(t),this._value=r?t:Cr(t)}get value(){return vl(this),this._value}set value(t){t=this._shallow?t:ge(t),br(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Cr(t),dl(this))}}function Nh(e){return We(e)?e.value:e}var kh={get:(e,t,r)=>Nh(Reflect.get(e,t,r)),set:(e,t,r,i)=>{var n=e[t];return We(n)&&!We(r)?(n.value=r,!0):Reflect.set(e,t,r,i)}};function gl(e){return rr(e)?e:new Proxy(e,kh)}class Bh{constructor(t,r,i){this._setter=r,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new pa(t,()=>{this._dirty||(this._dirty=!0,dl(this))}),this.__v_isReadonly=i}get value(){var t=ge(this);return vl(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Q(e,t){var r,i,n=ae(e);n?(r=e,i=rt):(r=e.get,i=e.set);var a=new Bh(r,i,n||!i);return a}function Dh(e,t){for(var r=e.vnode.props||be,i=arguments.length,n=new Array(i>2?i-2:0),a=2;ab.trim()):v&&(s=n.map(Yv))}var m,g=r[m=Kn(t)]||r[m=Kn(mt(t))];!g&&o&&(g=r[m=Kn(Ve(t))]),g&&Qe(g,e,6,s);var _=r[m+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[m])return;e.emitted[m]=!0,Qe(_,e,6,s)}}function pl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t.emitsCache,n=i.get(e);if(n!==void 0)return n;var a=e.emits,s={},o=!1;if(!ae(e)){var l=u=>{var v=pl(u,t,!0);v&&(o=!0,ce(s,v))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!o?(i.set(e,null),null):(le(a)?a.forEach(u=>s[u]=null):ce(s,a),i.set(e,s),s)}function Ea(e,t){return!e||!gi(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Ve(t))||te(e,t))}var Je=null,ml=null;function Ni(e){var t=Je;return Je=e,ml=e&&e.type.__scopeId||null,t}function Fh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Je;if(!t||e._n)return e;var r=function(){r._d&&$l(-1);var i=Ni(t),n=e(...arguments);return Ni(i),r._d&&$l(1),n};return r._n=!0,r._c=!0,r._d=!0,r}function dy(){}function Ca(e){var{type:t,vnode:r,proxy:i,withProxy:n,props:a,propsOptions:[s],slots:o,attrs:l,emit:u,render:v,renderCache:c,data:m,setupState:g,ctx:_,inheritAttrs:b}=e,w,p,h=Ni(e);try{if(r.shapeFlag&4){var f=n||i;w=ot(v.call(f,f,c,a,g,m,_)),p=l}else{var d=t;w=ot(d.length>1?d(a,{attrs:l,slots:o,emit:u}):d(a,null)),p=t.props?l:$h(l)}}catch(C){Vi(C,e,1),w=I(Ir)}var y=w;if(p&&b!==!1){var x=Object.keys(p),{shapeFlag:E}=y;x.length&&E&(1|6)&&(s&&x.some(zn)&&(p=Wh(p,s)),y=Ar(y,p))}return r.dirs&&(y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&(y.transition=r.transition),w=y,Ni(h),w}var $h=e=>{var t;for(var r in e)(r==="class"||r==="style"||gi(r))&&((t||(t={}))[r]=e[r]);return t},Wh=(e,t)=>{var r={};for(var i in e)(!zn(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function Uh(e,t,r){var{props:i,children:n,component:a}=e,{props:s,children:o,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return i?_l(i,s,u):!!s;if(l&8)for(var v=t.dynamicProps,c=0;ce.__isSuspense;function jh(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):Ng(e)}function Ne(e,t){if(ke){var r=ke.provides,i=ke.parent&&ke.parent.provides;i===r&&(r=ke.provides=Object.create(i)),r[e]=t}}function pe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=ke||Je;if(i){var n=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(n&&e in n)return n[e];if(arguments.length>1)return r&&ae(t)?t.call(i.proxy):t}}function zh(e){return ae(e)?{setup:e,name:e.name}:e}var Oa=e=>!!e.type.__asyncLoader,bl=e=>e.type.__isKeepAlive;function Ia(e,t){wl(e,"a",t)}function Yh(e,t){wl(e,"da",t)}function wl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ke,i=e.__wdc||(e.__wdc=()=>{for(var a=r;a;){if(a.isDeactivated)return;a=a.parent}e()});if(ki(t,i,r),r)for(var n=r.parent;n&&n.parent;)bl(n.parent.vnode)&&qh(i,t,r,n),n=n.parent}function qh(e,t,r,i){var n=ki(t,e,i,!0);yt(()=>{So(i[t],n)},r)}function ki(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ke,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r){var n=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=function(){if(!r.isUnmounted){tr(),ir(r);for(var s=arguments.length,o=new Array(s),l=0;lfunction(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;return(!Ui||e==="sp")&&ki(e,t,r)},yl=dt("bm"),Ie=dt("m"),Xh=dt("bu"),Kh=dt("u"),xe=dt("bum"),yt=dt("um"),Gh=dt("sp"),Zh=dt("rtg"),Jh=dt("rtc");function Qh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;ki("ec",e,t)}var Ma=!0;function eg(e){var t=Tl(e),r=e.proxy,i=e.ctx;Ma=!1,t.beforeCreate&&Sl(t.beforeCreate,e,"bc");var{data:n,computed:a,methods:s,watch:o,provide:l,inject:u,created:v,beforeMount:c,mounted:m,beforeUpdate:g,updated:_,activated:b,deactivated:w,beforeDestroy:p,beforeUnmount:h,destroyed:f,unmounted:d,render:y,renderTracked:x,renderTriggered:E,errorCaptured:C,serverPrefetch:M,expose:W,inheritAttrs:V,components:q,directives:he,filters:R}=t,B=null;if(u&&tg(u,i,B,e.appContext.config.unwrapInjectedRef),s)for(var ee in s){var ie=s[ee];ae(ie)&&(i[ee]=ie.bind(r))}if(n&&function(){var re=n.call(r,r);Be(re)&&(e.data=Ee(re))}(),Ma=!0,a){var z=function(re){var oe=a[re],Ce=ae(oe)?oe.bind(r,r):ae(oe.get)?oe.get.bind(r,r):rt,Oe=!ae(oe)&&ae(oe.set)?oe.set.bind(r):rt,Ge=Q({get:Ce,set:Oe});Object.defineProperty(i,re,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:At=>Ge.value=At})};for(var J in a)z(J)}if(o)for(var ne in o)xl(o[ne],i,r,ne);if(l){var we=ae(l)?l.call(r):l;Reflect.ownKeys(we).forEach(re=>{Ne(re,we[re])})}v&&Sl(v,e,"c");function se(re,oe){le(oe)?oe.forEach(Ce=>re(Ce.bind(r))):oe&&re(oe.bind(r))}if(se(yl,c),se(Ie,m),se(Xh,g),se(Kh,_),se(Ia,b),se(Yh,w),se(Qh,C),se(Jh,x),se(Zh,E),se(xe,h),se(yt,d),se(Gh,M),le(W))if(W.length){var G=e.exposed||(e.exposed={});W.forEach(re=>{Object.defineProperty(G,re,{get:()=>r[re],set:oe=>r[re]=oe})})}else e.exposed||(e.exposed={});y&&e.render===rt&&(e.render=y),V!=null&&(e.inheritAttrs=V),q&&(e.components=q),he&&(e.directives=he)}function tg(e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;le(e)&&(e=Aa(e));var i=function(a){var s=e[a],o=void 0;Be(s)?"default"in s?o=pe(s.from||a,s.default,!0):o=pe(s.from||a):o=pe(s),We(o)&&r?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[a]=o};for(var n in e)i(n)}function Sl(e,t,r){Qe(le(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function xl(e,t,r,i){var n=i.includes(".")?Jl(r,i):()=>r[i];if(ye(e)){var a=t[e];ae(a)&&U(n,a)}else if(ae(e))U(n,e.bind(r));else if(Be(e))if(le(e))e.forEach(o=>xl(o,t,r,i));else{var s=ae(e.handler)?e.handler.bind(r):t[e.handler];ae(s)&&U(n,s,e)}}function Tl(e){var t=e.type,{mixins:r,extends:i}=t,{mixins:n,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,o=a.get(t),l;return o?l=o:!n.length&&!r&&!i?l=t:(l={},n.length&&n.forEach(u=>Bi(l,u,s,!0)),Bi(l,t,s)),a.set(t,l),l}function Bi(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,{mixins:n,extends:a}=t;a&&Bi(e,a,r,!0),n&&n.forEach(l=>Bi(e,l,r,!0));for(var s in t)if(!(i&&s==="expose")){var o=rg[s]||r&&r[s];e[s]=o?o(e[s],t[s]):t[s]}return e}var rg={data:El,props:Dt,emits:Dt,methods:Dt,computed:Dt,beforeCreate:Fe,created:Fe,beforeMount:Fe,mounted:Fe,beforeUpdate:Fe,updated:Fe,beforeDestroy:Fe,beforeUnmount:Fe,destroyed:Fe,unmounted:Fe,activated:Fe,deactivated:Fe,errorCaptured:Fe,serverPrefetch:Fe,components:Dt,directives:Dt,watch:ng,provide:El,inject:ig};function El(e,t){return t?e?function(){return ce(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function ig(e,t){return Dt(Aa(e),Aa(t))}function Aa(e){if(le(e)){for(var t={},r=0;r3&&arguments[3]!==void 0?arguments[3]:!1,n={},a={};bi(a,Fi,1),e.propsDefaults=Object.create(null),Cl(e,t,n,a);for(var s in e.propsOptions[0])s in n||(n[s]=void 0);r?e.props=i?n:Ph(n):e.type.props?e.props=n:e.props=a,e.attrs=a}function sg(e,t,r,i){var{props:n,attrs:a,vnode:{patchFlag:s}}=e,o=ge(n),[l]=e.propsOptions,u=!1;if((i||s>0)&&!(s&16)){if(s&8)for(var v=e.vnode.dynamicProps,c=0;c2&&arguments[2]!==void 0?arguments[2]:!1,i=t.propsCache,n=i.get(e);if(n)return n;var a=e.props,s={},o=[],l=!1;if(!ae(e)){var u=f=>{l=!0;var[d,y]=Ol(f,t,!0);ce(s,d),y&&o.push(...y)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return i.set(e,pr),pr;if(le(a))for(var v=0;v-1,b[1]=p<0||w-1||te(b,"default"))&&o.push(g)}}}var h=[s,o];return i.set(e,h),h}function Il(e){return e[0]!=="$"}function Ml(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Al(e,t){return Ml(e)===Ml(t)}function Rl(e,t){return le(t)?t.findIndex(r=>Al(r,e)):ae(t)&&Al(t,e)?0:-1}var Pl=e=>e[0]==="_"||e==="$stable",Pa=e=>le(e)?e.map(ot):[ot(e)],og=(e,t,r)=>{var i=Fh(function(){return Pa(t(...arguments))},r);return i._c=!1,i},Ll=(e,t,r)=>{var i=e._ctx;for(var n in e)if(!Pl(n)){var a=e[n];ae(a)?t[n]=og(n,a,i):a!=null&&function(){var s=Pa(a);t[n]=()=>s}()}},Nl=(e,t)=>{var r=Pa(t);e.slots.default=()=>r},lg=(e,t)=>{if(e.vnode.shapeFlag&32){var r=t._;r?(e.slots=ge(t),bi(t,"_",r)):Ll(t,e.slots={})}else e.slots={},t&&Nl(e,t);bi(e.slots,Fi,1)},ug=(e,t,r)=>{var{vnode:i,slots:n}=e,a=!0,s=be;if(i.shapeFlag&32){var o=t._;o?r&&o===1?a=!1:(ce(n,t),!r&&o===1&&delete n._):(a=!t.$stable,Ll(t,n)),s=t}else t&&(Nl(e,t),s={default:1});if(a)for(var l in n)!Pl(l)&&!(l in s)&&delete n[l]};function Or(e,t){var r=Je;if(r===null)return e;for(var i=r.proxy,n=e.dirs||(e.dirs=[]),a=0;a1&&arguments[1]!==void 0?arguments[1]:null;n!=null&&!Be(n)&&(n=null);var a=kl(),s=new Set,o=!1,l=a.app={_uid:fg++,_component:i,_props:n,_container:null,_context:a,_instance:null,version:Fg,get config(){return a.config},set config(u){},use(u){for(var v=arguments.length,c=new Array(v>1?v-1:0),m=1;m3&&arguments[3]!==void 0?arguments[3]:null,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,H=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,D=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,k=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!!T.dynamicChildren;if(S!==T){S&&!Mr(S,T)&&(P=Ge(S),G(S,L,F,!0),S=null),T.patchFlag===-2&&(k=!1,T.dynamicChildren=null);var{type:N,ref:Z,shapeFlag:K}=T;switch(N){case Na:p(S,T,A,P);break;case Ir:h(S,T,A,P);break;case ka:S==null&&f(T,A,P,H);break;case st:he(S,T,A,P,L,F,H,D,k);break;default:K&1?x(S,T,A,P,L,F,H,D,k):K&6?R(S,T,A,P,L,F,H,D,k):(K&64||K&128)&&N.process(S,T,A,P,L,F,H,D,k,Ae)}Z!=null&&L&&La(Z,S&&S.ref,F,T||S,!T)}},p=(S,T,A,P)=>{if(S==null)i(T.el=o(T.children),A,P);else{var L=T.el=S.el;T.children!==S.children&&u(L,T.children)}},h=(S,T,A,P)=>{S==null?i(T.el=l(T.children||""),A,P):T.el=S.el},f=(S,T,A,P)=>{[S.el,S.anchor]=b(S.children,T,A,P)},d=(S,T,A)=>{for(var{el:P,anchor:L}=S,F;P&&P!==L;)F=m(P),i(P,T,A),P=F;i(L,T,A)},y=S=>{for(var{el:T,anchor:A}=S,P;T&&T!==A;)P=m(T),n(T),T=P;n(A)},x=(S,T,A,P,L,F,H,D,k)=>{H=H||T.type==="svg",S==null?E(T,A,P,L,F,H,D,k):W(S,T,L,F,H,D,k)},E=(S,T,A,P,L,F,H,D)=>{var k,N,{type:Z,props:K,shapeFlag:X,transition:fe,patchFlag:Pe,dirs:Se}=S;if(S.el&&_!==void 0&&Pe===-1)k=S.el=_(S.el);else{if(k=S.el=s(S.type,F,K&&K.is,K),X&8?v(k,S.children):X&16&&M(S.children,k,null,P,L,F&&Z!=="foreignObject",H,D),Se&&Ft(S,null,P,"created"),K){for(var O in K)O!=="value"&&!pi(O)&&a(k,O,null,K[O],F,S.children,P,L,Oe);"value"in K&&a(k,"value",null,K.value),(N=K.onVnodeBeforeMount)&&at(N,P,S)}C(k,S,S.scopeId,H,P)}Object.defineProperty(k,"__vueParentComponent",{value:P,enumerable:!1}),Se&&Ft(S,null,P,"beforeMount");var j=(!L||L&&!L.pendingBranch)&&fe&&!fe.persisted;j&&fe.beforeEnter(k),i(k,T,A),((N=K&&K.onVnodeMounted)||j||Se)&&$e(()=>{N&&at(N,P,S),j&&fe.enter(k),Se&&Ft(S,null,P,"mounted")},L)},C=(S,T,A,P,L)=>{if(A&&g(S,A),P)for(var F=0;F8&&arguments[8]!==void 0?arguments[8]:0,N=k;N{var D=T.el=S.el,{patchFlag:k,dynamicChildren:N,dirs:Z}=T;k|=S.patchFlag&16;var K=S.props||be,X=T.props||be,fe;(fe=X.onVnodeBeforeUpdate)&&at(fe,A,T,S),Z&&Ft(T,S,A,"beforeUpdate");var Pe=L&&T.type!=="foreignObject";if(N?V(S.dynamicChildren,N,D,A,P,Pe,F):H||J(S,T,D,null,A,P,Pe,F,!1),k>0){if(k&16)q(D,T,K,X,A,P,L);else if(k&2&&K.class!==X.class&&a(D,"class",null,X.class,L),k&4&&a(D,"style",K.style,X.style,L),k&8)for(var Se=T.dynamicProps,O=0;O{fe&&at(fe,A,T,S),Z&&Ft(T,S,A,"updated")},P)},V=(S,T,A,P,L,F,H)=>{for(var D=0;D{if(A!==P){for(var D in P)if(!pi(D)){var k=P[D],N=A[D];k!==N&&D!=="value"&&a(S,D,N,k,H,T.children,L,F,Oe)}if(A!==be)for(var Z in A)!pi(Z)&&!(Z in P)&&a(S,Z,A[Z],null,H,T.children,L,F,Oe);"value"in P&&a(S,"value",A.value,P.value)}},he=(S,T,A,P,L,F,H,D,k)=>{var N=T.el=S?S.el:o(""),Z=T.anchor=S?S.anchor:o(""),{patchFlag:K,dynamicChildren:X,slotScopeIds:fe}=T;fe&&(D=D?D.concat(fe):fe),S==null?(i(N,A,P),i(Z,A,P),M(T.children,A,Z,L,F,H,D,k)):K>0&&K&64&&X&&S.dynamicChildren?(V(S.dynamicChildren,X,A,L,F,H,D),(T.key!=null||L&&T===L.subTree)&&Bl(S,T,!0)):J(S,T,A,Z,L,F,H,D,k)},R=(S,T,A,P,L,F,H,D,k)=>{T.slotScopeIds=D,S==null?T.shapeFlag&512?L.ctx.activate(T,A,P,H,k):B(T,A,P,L,F,H,k):ee(S,T,k)},B=(S,T,A,P,L,F,H)=>{var D=S.component=Tg(S,P,L);if(bl(S)&&(D.ctx.renderer=Ae),Eg(D),D.asyncDep){if(L&&L.registerDep(D,ie),!S.el){var k=D.subTree=I(Ir);h(null,k,T,A)}return}ie(D,S,T,A,L,F,H)},ee=(S,T,A)=>{var P=T.component=S.component;if(Uh(S,T,A))if(P.asyncDep&&!P.asyncResolved){z(P,T,A);return}else P.next=T,Pg(P.update),P.update();else T.component=S.component,T.el=S.el,P.vnode=T},ie=(S,T,A,P,L,F,H)=>{var D=()=>{if(S.isMounted){var{next:ue,bu:Le,u:Ue,parent:Re,vnode:tt}=S,Rt=ue,ft;k.allowRecurse=!1,ue?(ue.el=tt.el,z(S,ue,H)):ue=tt,Le&&Gn(Le),(ft=ue.props&&ue.props.onVnodeBeforeUpdate)&&at(ft,Re,ue,tt),k.allowRecurse=!0;var Xt=Ca(S),gt=S.subTree;S.subTree=Xt,w(gt,Xt,c(gt.el),Ge(gt),S,L,F),ue.el=Xt.el,Rt===null&&Vh(S,Xt.el),Ue&&$e(Ue,L),(ft=ue.props&&ue.props.onVnodeUpdated)&&$e(()=>at(ft,Re,ue,tt),L)}else{var Z,{el:K,props:X}=T,{bm:fe,m:Pe,parent:Se}=S,O=Oa(T);if(k.allowRecurse=!1,fe&&Gn(fe),!O&&(Z=X&&X.onVnodeBeforeMount)&&at(Z,Se,T),k.allowRecurse=!0,K&&Zr){var j=()=>{S.subTree=Ca(S),Zr(K,S.subTree,S,L,null)};O?T.type.__asyncLoader().then(()=>!S.isUnmounted&&j()):j()}else{var Y=S.subTree=Ca(S);w(null,Y,A,P,S,L,F),T.el=Y.el}if(Pe&&$e(Pe,L),!O&&(Z=X&&X.onVnodeMounted)){var ve=T;$e(()=>at(Z,Se,ve),L)}T.shapeFlag&256&&S.a&&$e(S.a,L),S.isMounted=!0,T=A=P=null}},k=new pa(D,()=>Yl(S.update),S.scope),N=S.update=k.run.bind(k);N.id=S.uid,k.allowRecurse=N.allowRecurse=!0,N()},z=(S,T,A)=>{T.component=S;var P=S.vnode.props;S.vnode=T,S.next=null,sg(S,T.props,P,A),ug(S,T.children,A),tr(),Va(void 0,S.update),Bt()},J=function(S,T,A,P,L,F,H,D){var k=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,N=S&&S.children,Z=S?S.shapeFlag:0,K=T.children,{patchFlag:X,shapeFlag:fe}=T;if(X>0){if(X&128){we(N,K,A,P,L,F,H,D,k);return}else if(X&256){ne(N,K,A,P,L,F,H,D,k);return}}fe&8?(Z&16&&Oe(N,L,F),K!==N&&v(A,K)):Z&16?fe&16?we(N,K,A,P,L,F,H,D,k):Oe(N,L,F,!0):(Z&8&&v(A,""),fe&16&&M(K,A,P,L,F,H,D,k))},ne=(S,T,A,P,L,F,H,D,k)=>{S=S||pr,T=T||pr;var N=S.length,Z=T.length,K=Math.min(N,Z),X;for(X=0;XZ?Oe(S,L,F,!0,!1,K):M(T,A,P,L,F,H,D,k,K)},we=(S,T,A,P,L,F,H,D,k)=>{for(var N=0,Z=T.length,K=S.length-1,X=Z-1;N<=K&&N<=X;){var fe=S[N],Pe=T[N]=k?St(T[N]):ot(T[N]);if(Mr(fe,Pe))w(fe,Pe,A,null,L,F,H,D,k);else break;N++}for(;N<=K&&N<=X;){var Se=S[K],O=T[X]=k?St(T[X]):ot(T[X]);if(Mr(Se,O))w(Se,O,A,null,L,F,H,D,k);else break;K--,X--}if(N>K){if(N<=X)for(var j=X+1,Y=jX)for(;N<=K;)G(S[N],L,F,!0),N++;else{var ve=N,ue=N,Le=new Map;for(N=ue;N<=X;N++){var Ue=T[N]=k?St(T[N]):ot(T[N]);Ue.key!=null&&Le.set(Ue.key,N)}var Re,tt=0,Rt=X-ue+1,ft=!1,Xt=0,gt=new Array(Rt);for(N=0;N=Rt){G(dr,L,F,!0);continue}var Kt=void 0;if(dr.key!=null)Kt=Le.get(dr.key);else for(Re=ue;Re<=X;Re++)if(gt[Re-ue]===0&&Mr(dr,T[Re])){Kt=Re;break}Kt===void 0?G(dr,L,F,!0):(gt[Kt-ue]=N+1,Kt>=Xt?Xt=Kt:ft=!0,w(dr,T[Kt],A,null,L,F,H,D,k),tt++)}var tc=ft?hg(gt):pr;for(Re=tc.length-1,N=Rt-1;N>=0;N--){var Ls=ue+N,rc=T[Ls],ic=Ls+14&&arguments[4]!==void 0?arguments[4]:null,{el:F,type:H,transition:D,children:k,shapeFlag:N}=S;if(N&6){se(S.component.subTree,T,A,P);return}if(N&128){S.suspense.move(T,A,P);return}if(N&64){H.move(S,T,A,Ae);return}if(H===st){i(F,T,A);for(var Z=0;ZD.enter(F),L);else{var{leave:X,delayLeave:fe,afterLeave:Pe}=D,Se=()=>i(F,T,A),O=()=>{X(F,()=>{Se(),Pe&&Pe()})};fe?fe(F,Se,O):O()}else i(F,T,A)},G=function(S,T,A){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,{type:F,props:H,ref:D,children:k,dynamicChildren:N,shapeFlag:Z,patchFlag:K,dirs:X}=S;if(D!=null&&La(D,null,A,S,!0),Z&256){T.ctx.deactivate(S);return}var fe=Z&1&&X,Pe=!Oa(S),Se;if(Pe&&(Se=H&&H.onVnodeBeforeUnmount)&&at(Se,T,S),Z&6)Ce(S.component,A,P);else{if(Z&128){S.suspense.unmount(A,P);return}fe&&Ft(S,null,T,"beforeUnmount"),Z&64?S.type.remove(S,T,A,L,Ae,P):N&&(F!==st||K>0&&K&64)?Oe(N,T,A,!1,!0):(F===st&&K&(128|256)||!L&&Z&16)&&Oe(k,T,A),P&&re(S)}(Pe&&(Se=H&&H.onVnodeUnmounted)||fe)&&$e(()=>{Se&&at(Se,T,S),fe&&Ft(S,null,T,"unmounted")},A)},re=S=>{var{type:T,el:A,anchor:P,transition:L}=S;if(T===st){oe(A,P);return}if(T===ka){y(S);return}var F=()=>{n(A),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(S.shapeFlag&1&&L&&!L.persisted){var{leave:H,delayLeave:D}=L,k=()=>H(A,F);D?D(S.el,F,k):k()}else F()},oe=(S,T)=>{for(var A;S!==T;)A=m(S),n(S),S=A;n(T)},Ce=(S,T,A)=>{var{bum:P,scope:L,update:F,subTree:H,um:D}=S;P&&Gn(P),L.stop(),F&&(F.active=!1,G(H,S,T,A)),D&&$e(D,T),$e(()=>{S.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},Oe=function(S,T,A){for(var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,H=F;HS.shapeFlag&6?Ge(S.component.subTree):S.shapeFlag&128?S.suspense.next():m(S.anchor||S.el),At=(S,T,A)=>{if(S==null)T._vnode&&G(T._vnode,null,null,!0);else{var P=T.__vueParent;w(T._vnode||null,S,T,null,P,null,A)}T._vnode=S},Ae={p:w,um:G,m:se,r:re,mt:B,mc:M,pc:J,pbc:V,n:Ge,o:e},Gr,Zr;return t&&([Gr,Zr]=t(Ae)),{render:At,hydrate:Gr,createApp:cg(At,Gr)}}function La(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(le(e)){e.forEach((_,b)=>La(_,t&&(le(t)?t[b]:t),r,i,n));return}if(!(Oa(i)&&!n)){var a=i.shapeFlag&4?Fa(i.component)||i.component.proxy:i.el,s=n?null:a,{i:o,r:l}=e,u=t&&t.r,v=o.refs===be?o.refs={}:o.refs,c=o.setupState;if(u!=null&&u!==l&&(ye(u)?(v[u]=null,te(c,u)&&(c[u]=null)):We(u)&&(u.value=null)),ye(l)){var m=()=>{v[l]=s,te(c,l)&&(c[l]=s)};s?(m.id=-1,$e(m,r)):m()}else if(We(l)){var g=()=>{l.value=s};s?(g.id=-1,$e(g,r)):g()}else ae(l)&&Tt(l,o,12,[s,v])}}function at(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Qe(e,t,7,[r,i])}function Bl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=e.children,n=t.children;if(le(i)&&le(n))for(var a=0;a>1,e[r[o]]0&&(t[i]=r[a-1]),r[a]=i)}}for(a=r.length,s=r[a-1];a-- >0;)r[a]=s,s=t[s];return r}var gg=e=>e.__isTeleport,pg=Symbol(),st=Symbol(void 0),Na=Symbol(void 0),Ir=Symbol(void 0),ka=Symbol(void 0),Dl=null,Fl=1;function $l(e){Fl+=e}function Di(e){return e?e.__v_isVNode===!0:!1}function Mr(e,t){return e.type===t.type&&e.key===t.key}var Fi="__vInternal",Wl=e=>{var{key:t}=e;return t!=null?t:null},$i=e=>{var{ref:t}=e;return t!=null?ye(t)||We(t)||ae(t)?{i:Je,r:t}:t:null};function mg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e===st?0:1,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,o=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wl(t),ref:t&&$i(t),scopeId:ml,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null};return o?(Ba(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=ye(r)?8:16),Fl>0&&!s&&Dl&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Dl.push(l),l}var I=_g;function _g(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;if((!e||e===pg)&&(e=Ir),Di(e)){var s=Ar(e,t,!0);return r&&Ba(s,r),s}if(Mg(e)&&(e=e.__vccOpts),t){t=bg(t);var{class:o,style:l}=t;o&&!ye(o)&&(t.class=jn(o)),Be(l)&&(cl(l)&&!le(l)&&(l=ce({},l)),t.style=Hn(l))}var u=ye(e)?1:Hh(e)?128:gg(e)?64:Be(e)?4:ae(e)?2:0;return mg(e,t,r,i,n,u,a,!0)}function bg(e){return e?cl(e)||Fi in e?ce({},e):e:null}function Ar(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{props:i,ref:n,patchFlag:a,children:s}=e,o=t?ze(i||{},t):i,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Wl(o),ref:t&&t.ref?r&&n?le(n)?n.concat($i(t)):[n,$i(t)]:$i(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==st?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ar(e.ssContent),ssFallback:e.ssFallback&&Ar(e.ssFallback),el:e.el,anchor:e.anchor};return l}function wg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return I(Na,null,e,t)}function ot(e){return e==null||typeof e=="boolean"?I(Ir):le(e)?I(st,null,e.slice()):typeof e=="object"?St(e):I(Na,null,String(e))}function St(e){return e.el===null||e.memo?e:Ar(e)}function Ba(e,t){var r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(le(t))r=16;else if(typeof t=="object")if(i&(1|64)){var n=t.default;n&&(n._c&&(n._d=!1),Ba(e,n()),n._c&&(n._d=!0));return}else{r=32;var a=t._;!a&&!(Fi in t)?t._ctx=Je:a===3&&Je&&(Je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:Je},r=32):(t=String(t),i&64?(r=16,t=[wg(t)]):r=8);e.children=t,e.shapeFlag|=r}function ze(){for(var e={},t=0;te?Ul(e)?Fa(e)||e.proxy:Da(e.parent):null,Wi=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Da(e.parent),$root:e=>Da(e.root),$emit:e=>e.emit,$options:e=>Tl(e),$forceUpdate:e=>()=>Yl(e.update),$nextTick:e=>sr.bind(e.proxy),$watch:e=>Bg.bind(e)}),yg={get(e,t){var{_:r}=e,{ctx:i,setupState:n,data:a,props:s,accessCache:o,type:l,appContext:u}=r,v;if(t[0]!=="$"){var c=o[t];if(c!==void 0)switch(c){case 0:return n[t];case 1:return a[t];case 3:return i[t];case 2:return s[t]}else{if(n!==be&&te(n,t))return o[t]=0,n[t];if(a!==be&&te(a,t))return o[t]=1,a[t];if((v=r.propsOptions[0])&&te(v,t))return o[t]=2,s[t];if(i!==be&&te(i,t))return o[t]=3,i[t];Ma&&(o[t]=4)}}var m=Wi[t],g,_;if(m)return t==="$attrs"&&je(r,"get",t),m(r);if((g=l.__cssModules)&&(g=g[t]))return g;if(i!==be&&te(i,t))return o[t]=3,i[t];if(_=u.config.globalProperties,te(_,t))return _[t]},set(e,t,r){var{_:i}=e,{data:n,setupState:a,ctx:s}=i;if(a!==be&&te(a,t))a[t]=r;else if(n!==be&&te(n,t))n[t]=r;else if(te(i.props,t))return!1;return t[0]==="$"&&t.slice(1)in i?!1:(s[t]=r,!0)},has(e,t){var{_:{data:r,setupState:i,accessCache:n,ctx:a,appContext:s,propsOptions:o}}=e,l;return n[t]!==void 0||r!==be&&te(r,t)||i!==be&&te(i,t)||(l=o[0])&&te(l,t)||te(a,t)||te(Wi,t)||te(s.config.globalProperties,t)}},Sg=kl(),xg=0;function Tg(e,t,r){var i=e.type,n=(t?t.appContext:e.appContext)||Sg,a={uid:xg++,vnode:e,type:i,parent:t,appContext:n,root:null,next:null,subTree:null,update:null,scope:new nh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ol(i,n),emitsOptions:pl(i,n),emit:null,emitted:null,propsDefaults:be,inheritAttrs:i.inheritAttrs,ctx:be,data:be,props:be,attrs:be,slots:be,refs:be,setupState:be,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Dh.bind(null,a),e.ce&&e.ce(a),a}var ke=null,xt=()=>ke||Je,ir=e=>{ke=e,e.scope.on()},$t=()=>{ke&&ke.scope.off(),ke=null};function Ul(e){return e.vnode.shapeFlag&4}var Ui=!1;function Eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ui=t;var{props:r,children:i}=e.vnode,n=Ul(e);ag(e,r,n,t),lg(e,i);var a=n?Cg(e,t):void 0;return Ui=!1,a}function Cg(e,t){var r=e.type;e.accessCache=Object.create(null),e.proxy=Li(new Proxy(e.ctx,yg));var{setup:i}=r;if(i){var n=e.setupContext=i.length>1?Ig(e):null;ir(e),tr();var a=Tt(i,e,0,[e.props,n]);if(Bt(),$t(),xo(a)){if(a.then($t,$t),t)return a.then(s=>{Vl(e,s,t)}).catch(s=>{Vi(s,e,0)});e.asyncDep=a}else Vl(e,a,t)}else jl(e,t)}function Vl(e,t,r){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Be(t)&&(e.setupState=gl(t)),jl(e,r)}var Hl;function jl(e,t,r){var i=e.type;if(!e.render){if(!t&&Hl&&!i.render){var n=i.template;if(n){var{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:l}=i,u=ce(ce({isCustomElement:a,delimiters:o},s),l);i.render=Hl(n,u)}}e.render=i.render||rt}ir(e),tr(),eg(e),Bt(),$t()}function Og(e){return new Proxy(e.attrs,{get(t,r){return je(e,"get","$attrs"),t[r]}})}function Ig(e){var t=i=>{e.exposed=i||{}},r;return{get attrs(){return r||(r=Og(e))},slots:e.slots,emit:e.emit,expose:t}}function Fa(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gl(Li(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Wi)return Wi[r](e)}}))}function Mg(e){return ae(e)&&"__vccOpts"in e}function Tt(e,t,r,i){var n;try{n=i?e(...i):e()}catch(a){Vi(a,t,r)}return n}function Qe(e,t,r,i){if(ae(e)){var n=Tt(e,t,r,i);return n&&xo(n)&&n.catch(o=>{Vi(o,t,r)}),n}for(var a=[],s=0;s>>1,n=Nr(Ye[i]);nht&&Ye.splice(t,1)}function Xl(e,t,r,i){le(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?i+1:i))&&r.push(e),ql()}function Lg(e){Xl(e,Pr,Rr,nr)}function Ng(e){Xl(e,Et,Lr,ar)}function Va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(Rr.length){for(Ua=t,Pr=[...new Set(Rr)],Rr.length=0,nr=0;nrNr(r)-Nr(i)),ar=0;are.id==null?1/0:e.id;function Gl(e){$a=!1,Hi=!0,Va(e),Ye.sort((i,n)=>Nr(i)-Nr(n));var t=rt;try{for(ht=0;ht2&&arguments[2]!==void 0?arguments[2]:be,o=ke,l,u=!1,v=!1;if(We(e)?(l=()=>e.value,u=!!e._shallow):rr(e)?(l=()=>e,i=!0):le(e)?(v=!0,u=e.some(rr),l=()=>e.map(h=>{if(We(h))return h.value;if(rr(h))return Wt(h);if(ae(h))return Tt(h,o,2)})):ae(e)?t?l=()=>Tt(e,o,2):l=()=>{if(!(o&&o.isUnmounted))return m&&m(),Qe(e,o,3,[g])}:l=rt,t&&i){var c=l;l=()=>Wt(c())}var m,g=h=>{m=p.onStop=()=>{Tt(h,o,4)}};if(Ui)return g=rt,t?r&&Qe(t,o,3,[l(),v?[]:void 0,g]):l(),rt;var _=v?[]:Zl,b=()=>{if(!!p.active)if(t){var h=p.run();(i||u||(v?h.some((f,d)=>br(f,_[d])):br(h,_)))&&(m&&m(),Qe(t,o,3,[h,_===Zl?void 0:_,g]),_=h)}else p.run()};b.allowRecurse=!!t;var w;n==="sync"?w=b:n==="post"?w=()=>$e(b,o&&o.suspense):w=()=>{!o||o.isMounted?Lg(b):b()};var p=new pa(l,w);return t?r?b():_=p.run():n==="post"?$e(p.run.bind(p),o&&o.suspense):p.run(),()=>{p.stop(),o&&o.scope&&So(o.scope.effects,p)}}function Bg(e,t,r){var i=this.proxy,n=ye(e)?e.includes(".")?Jl(i,e):()=>i[e]:e.bind(i,i),a;ae(t)?a=t:(a=t.handler,r=t);var s=ke;ir(this);var o=Ha(n,a.bind(i),r);return s?ir(s):$t(),o}function Jl(e,t){var r=t.split(".");return()=>{for(var i=e,n=0;n{Wt(n,t)});else if(it(e))for(var i in e)Wt(e[i],t);return e}function Dg(e,t,r){var i=arguments.length;return i===2?Be(t)&&!le(t)?Di(t)?I(e,null,[t]):I(e,t):I(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Di(r)&&(r=[r]),I(e,t,r))}var Fg="3.2.20",$g="http://www.w3.org/2000/svg",or=typeof document!="undefined"?document:null,Ql=new Map,Wg={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{var t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{var n=t?or.createElementNS($g,e):or.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>or.createTextNode(e),createComment:e=>or.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>or.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,i){var n=r?r.previousSibling:t.lastChild,a=Ql.get(e);if(!a){var s=or.createElement("template");if(s.innerHTML=i?"".concat(e,""):e,a=s.content,i){for(var o=a.firstChild;o.firstChild;)a.appendChild(o.firstChild);a.removeChild(o)}Ql.set(e,a)}return t.insertBefore(a.cloneNode(!0),r),[n?n.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function Ug(e,t,r){var i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function Vg(e,t,r){var i=e.style,n=i.display;if(!r)e.removeAttribute("style");else if(ye(r))t!==r&&(i.cssText=r);else{for(var a in r)ja(i,a,r[a]);if(t&&!ye(t))for(var s in t)r[s]==null&&ja(i,s,"")}"_vod"in e&&(i.display=n)}var eu=/\s*!important$/;function ja(e,t,r){if(le(r))r.forEach(n=>ja(e,t,n));else if(r=zg(r),t.startsWith("--"))e.setProperty(t,r);else{var i=Hg(e,t);eu.test(r)?e.setProperty(Ve(i),r.replace(eu,""),"important"):e[i]=r}}var tu=["Webkit","Moz","ms"],za={};function Hg(e,t){var r=za[t];if(r)return r;var i=mt(t);if(i!=="filter"&&i in e)return za[t]=i;i=_i(i);for(var n=0;ntypeof rpx2px!="function"?e:ye(e)?e.replace(jg,(t,r)=>rpx2px(r)+"px"):e,ru="http://www.w3.org/1999/xlink";function Yg(e,t,r,i,n){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(ru,t.slice(6,t.length)):e.setAttributeNS(ru,t,r);else{var a=Nv(t);r==null||a&&!wo(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function qg(e,t,r,i,n,a,s){if(t==="innerHTML"||t==="textContent"){i&&s(i,n,a),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"){e._value=r;var o=r==null?"":r;e.value!==o&&(e.value=o),r==null&&e.removeAttribute(t);return}if(r===""||r==null){var l=typeof e[t];if(l==="boolean"){e[t]=wo(r);return}else if(r==null&&l==="string"){e[t]="",e.removeAttribute(t);return}else if(l==="number"){try{e[t]=0}catch(u){}e.removeAttribute(t);return}}try{e[t]=r}catch(u){}}var ji=Date.now,iu=!1;if(typeof window!="undefined"){ji()>document.createEvent("Event").timeStamp&&(ji=()=>performance.now());var nu=navigator.userAgent.match(/firefox\/(\d+)/i);iu=!!(nu&&Number(nu[1])<=53)}var Ya=0,Xg=Promise.resolve(),Kg=()=>{Ya=0},Gg=()=>Ya||(Xg.then(Kg),Ya=ji());function Zg(e,t,r,i){e.addEventListener(t,r,i)}function Jg(e,t,r,i){e.removeEventListener(t,r,i)}function Qg(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,a=e._vei||(e._vei={}),s=a[t];if(i&&s)s.value=i;else{var[o,l]=ep(t);if(i){var u=a[t]=tp(i,n);Zg(e,o,u,l)}else s&&(Jg(e,o,s,l),a[t]=void 0)}}var au=/(?:Once|Passive|Capture)$/;function ep(e){var t;if(au.test(e)){t={};for(var r;r=e.match(au);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Ve(e.slice(2)),t]}function tp(e,t){var r=i=>{var n=i.timeStamp||ji();(iu||n>=r.attached-1)&&Qe(rp(i,r.value),t,5,[i])};return r.value=e,r.attached=Gg(),r}function rp(e,t){if(le(t)){var r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>n=>!n._stopped&&i(n))}else return t}var su=/^on[a-z]/,ip=function(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,o=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;t==="class"?Ug(e,i,n):t==="style"?Vg(e,r,i):gi(t)?zn(t)||Qg(e,t,r,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):np(e,t,i,n))?qg(e,t,i,a,s,o,l):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Yg(e,t,i,n))};function np(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&su.test(t)&&ae(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||su.test(t)&&ye(r)?!1:t in e}var ap=["ctrl","shift","alt","meta"],sp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ap.some(r=>e["".concat(r,"Key")]&&!t.includes(r))},qa=(e,t)=>function(r){for(var i=0;i1?a-1:0),o=1;o{Br(e,!1)}):Br(e,i))},beforeUnmount(e,t){var{value:r}=t;Br(e,r)}};function Br(e,t){e.style.display=t?e._vod:"none"}var op=ce({patchProp:ip},Wg),ou;function lp(){return ou||(ou=vg(op))}var lu=function(){var e=lp().createApp(...arguments),{mount:t}=e;return e.mount=r=>{var i=up(r);if(!!i){var n=e._component;!ae(n)&&!n.render&&!n.template&&(n.template=i.innerHTML),i.innerHTML="";var a=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a}},e};function up(e){if(ye(e)){var t=document.querySelector(e);return t}return e}var uu=["top","left","right","bottom"],Xa,zi={},Ze;function Ka(){return!("CSS"in window)||typeof CSS.supports!="function"?Ze="":CSS.supports("top: env(safe-area-inset-top)")?Ze="env":CSS.supports("top: constant(safe-area-inset-top)")?Ze="constant":Ze="",Ze}function fu(){if(Ze=typeof Ze=="string"?Ze:Ka(),!Ze){uu.forEach(function(o){zi[o]=0});return}function e(o,l){var u=o.style;Object.keys(l).forEach(function(v){var c=l[v];u[v]=c})}var t=[];function r(o){o?t.push(o):t.forEach(function(l){l()})}var i=!1;try{var n=Object.defineProperty({},"passive",{get:function(){i={passive:!0}}});window.addEventListener("test",null,n)}catch(o){}function a(o,l){var u=document.createElement("div"),v=document.createElement("div"),c=document.createElement("div"),m=document.createElement("div"),g=100,_=1e4,b={position:"absolute",width:g+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Ze+"(safe-area-inset-"+l+")"};e(u,b),e(v,b),e(c,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(m,{transition:"0s",animation:"none",width:"250%",height:"250%"}),u.appendChild(c),v.appendChild(m),o.appendChild(u),o.appendChild(v),r(function(){u.scrollTop=v.scrollTop=_;var p=u.scrollTop,h=v.scrollTop;function f(){this.scrollTop!==(this===u?p:h)&&(u.scrollTop=v.scrollTop=_,p=u.scrollTop,h=v.scrollTop,fp(l))}u.addEventListener("scroll",f,i),v.addEventListener("scroll",f,i)});var w=getComputedStyle(u);Object.defineProperty(zi,l,{configurable:!0,get:function(){return parseFloat(w.paddingBottom)}})}var s=document.createElement("div");e(s,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),uu.forEach(function(o){a(s,o)}),document.body.appendChild(s),r(),Xa=!0}function Yi(e){return Xa||fu(),zi[e]}var qi=[];function fp(e){qi.length||setTimeout(function(){var t={};qi.forEach(function(r){t[r]=zi[r]}),qi.length=0,Xi.forEach(function(r){r(t)})},0),qi.push(e)}var Xi=[];function cp(e){!Ka()||(Xa||fu(),typeof e=="function"&&Xi.push(e))}function vp(e){var t=Xi.indexOf(e);t>=0&&Xi.splice(t,1)}var dp={get support(){return(typeof Ze=="string"?Ze:Ka()).length!=0},get top(){return Yi("top")},get left(){return Yi("left")},get right(){return Yi("right")},get bottom(){return Yi("bottom")},onChange:cp,offChange:vp},Ki=dp,hp=qa(()=>{},["prevent"]);function Ga(){var e=document.documentElement.style,t=parseInt(e.getPropertyValue("--window-top"));return t?t+Ki.top:0}function gp(){var e=document.documentElement.style,t=Ga(),r=parseInt(e.getPropertyValue("--window-bottom")),i=parseInt(e.getPropertyValue("--window-left")),n=parseInt(e.getPropertyValue("--window-right"));return{top:t,bottom:r?r+Ki.bottom:0,left:i?i+Ki.left:0,right:n?n+Ki.right:0}}function pp(e){var t=document.documentElement.style;Object.keys(e).forEach(r=>{t.setProperty(r,e[r])})}function Gi(e){return Symbol(e)}function cu(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function Ut(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t)return mp(e);if(typeof e=="string"){var r=parseInt(e)||0;return cu(e)?uni.upx2px(r):r}return e}function mp(e){return cu(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,r)=>uni.upx2px(parseFloat(r))+"px"):e}var _p="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",bp="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",wp="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",yp="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",Sp="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",Zi="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",xp="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",Tp="M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",Ep="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function Ji(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#000",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:27;return I("svg",{width:r,height:r,viewBox:"0 0 32 32"},[I("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Qi(){return Ct()}function Cp(){return window.__PAGE_INFO__}function Ct(){return window.__id__||(window.__id__=plus.webview.currentWebview().id),parseInt(window.__id__)}function Op(e){e.preventDefault()}var vu,du=0;function Ip(e){var{onPageScroll:t,onReachBottom:r,onReachBottomDistance:i}=e,n=!1,a=!1,s=!0,o=()=>{var{scrollHeight:u}=document.documentElement,v=window.innerHeight,c=window.scrollY,m=c>0&&u>v&&c+v+i>=u,g=Math.abs(u-du)>i;return m&&(!a||g)?(du=u,a=!0,!0):(!m&&a&&(a=!1),!1)},l=()=>{t&&t(window.pageYOffset);function u(){if(o())return r&&r(),s=!1,setTimeout(function(){s=!0},350),!0}r&&s&&(u()||(vu=setTimeout(u,300))),n=!1};return function(){clearTimeout(vu),n||requestAnimationFrame(l),n=!0}}function Za(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return Za(e,t.substr(2));for(var r=t.split("/"),i=r.length,n=0;n0?e.split("/"):[];return a.splice(a.length-n-1,n+1),"/"+a.concat(r).join("/")}class Mp{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=t.$el,this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!(!this.$el||!t)){var r=hu(this.$el.querySelector(t));if(!!r)return Ja(r)}}selectAllComponents(t){if(!this.$el||!t)return[];for(var r=[],i=this.$el.querySelectorAll(t),n=0;n-1&&r.splice(i,1)}var n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return n.indexOf(t)===-1&&(n.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.$vm[t];ae(i)?i(JSON.parse(JSON.stringify(r))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(xd,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:r})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$vm.$emit(t,r),this}getComputedStyle(t){if(this.$el){var r=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((i,n)=>(i[n]=r[n],i),{}):r}return{}}setTimeout(t,r){return window.setTimeout(t,r)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Ja(e){if(e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Mp(e)),e.$el.__wxsComponentDescriptor}function en(e,t){return Ja(e)}function hu(e){if(!!e)return Dr(e)}function Dr(e){return e.__wxsVm||(e.__wxsVm={ownerId:e.__ownerId,$el:e,$emit(){},$forceUpdate(){var{__wxsStyle:t,__wxsAddClass:r,__wxsRemoveClass:i,__wxsStyleChanged:n,__wxsClassChanged:a}=e,s,o;n&&(e.__wxsStyleChanged=!1,t&&(o=()=>{Object.keys(t).forEach(l=>{e.style[l]=t[l]})})),a&&(e.__wxsClassChanged=!1,s=()=>{i&&i.forEach(l=>{e.classList.remove(l)}),r&&r.forEach(l=>{e.classList.add(l)})}),requestAnimationFrame(()=>{s&&s(),o&&o()})}})}var Ap=e=>e.type==="click";function gu(e,t,r){var{currentTarget:i}=e;if(!(e instanceof Event)||!(i instanceof HTMLElement))return[e];if(i.tagName.indexOf("UNI-")!==0)return[e];var n=pu(e);if(Ap(e))Pp(n,e);else if(e instanceof TouchEvent){var a=Ga();n.touches=mu(e.touches,a),n.changedTouches=mu(e.changedTouches,a)}return[n]}function Rp(e){for(;e&&e.tagName.indexOf("UNI-")!==0;)e=e.parentElement;return e}function pu(e){var{type:t,timeStamp:r,target:i,currentTarget:n}=e,a={type:t,timeStamp:r,target:ta(Rp(i)),detail:{},currentTarget:ta(n)};return e._stopped&&(a._stopped=!0),e.type.startsWith("touch")&&(a.touches=e.touches,a.changedTouches=e.changedTouches),a}function Pp(e,t){var{x:r,y:i}=t,n=Ga();e.detail={x:r,y:i-n},e.touches=e.changedTouches=[Lp(t)]}function Lp(e){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}function mu(e,t){for(var r=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:{},r=Ct()+"";plus.webview.postMessageToUniNView({type:"subscribeHandler",args:{type:e,data:t,pageId:r}},Np)}function Vp(e,t){var r=e[0];if(!(!t||!it(t.formatArgs)&&it(r)))for(var i=t.formatArgs,n=Object.keys(i),a=0;aplus.io.convertLocalFileSystemURL(e).replace(/^\/?apps\//,"/android_asset/apps/").replace(/\/$/,""));function Yp(e){return e.indexOf("_www")===0||e.indexOf("_doc")===0||e.indexOf("_documents")===0||e.indexOf("_downloads")===0}function qp(e,t,r){}function Xp(e){return Promise.resolve(e)}var Kp="upx2px",Gp=1e-4,Zp=750,Su=!1,Qa=0,xu=0;function Jp(){var{platform:e,pixelRatio:t,windowWidth:r}=wu();Qa=r,xu=t,Su=e==="ios"}function Tu(e,t){var r=Number(e);return isNaN(r)?t:r}var Eu=zp(Kp,(e,t)=>{if(Qa===0&&Jp(),e=Number(e),e===0)return 0;var r=t||Qa;{var i=__uniConfig.globalStyle||{},n=Tu(i.rpxCalcMaxDeviceWidth,960),a=Tu(i.rpxCalcBaseDeviceWidth,375);r=r<=n?r:a}var s=e/Zp*r;return s<0&&(s=-s),s=Math.floor(s+Gp),s===0&&(xu===1||!Su?s=1:s=.5),e<0?-s:s}),Qp=[{name:"id",type:String,required:!0}];Qp.concat({name:"componentInstance",type:Object});var Cu={};Cu.f={}.propertyIsEnumerable;var em=hr,tm=Bn,rm=ni,im=Cu.f,nm=function(e){return function(t){for(var r=rm(t),i=tm(r),n=i.length,a=0,s=[],o;n>a;)o=i[a++],(!em||im.call(r,o))&&s.push(e?[o,r[o]]:r[o]);return s}},Ou=Nn,am=nm(!1);Ou(Ou.S,"Object",{values:function(t){return am(t)}});var sm="loadFontFace",om="pageScrollTo",lm=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(f){try{return f.defaultView&&f.defaultView.frameElement||null}catch(d){return null}}var t=function(f){for(var d=f,y=e(d);y;)d=y.ownerDocument,y=e(d);return d}(window.document),r=[],i=null,n=null;function a(f){this.time=f.time,this.target=f.target,this.rootBounds=_(f.rootBounds),this.boundingClientRect=_(f.boundingClientRect),this.intersectionRect=_(f.intersectionRect||g()),this.isIntersecting=!!f.intersectionRect;var d=this.boundingClientRect,y=d.width*d.height,x=this.intersectionRect,E=x.width*x.height;y?this.intersectionRatio=Number((E/y).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(f,d){var y=d||{};if(typeof f!="function")throw new Error("callback must be a function");if(y.root&&y.root.nodeType!=1&&y.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(y.rootMargin),this.thresholds=this._initThresholds(y.threshold),this.root=y.root||null,this.rootMargin=this._rootMarginValues.map(function(x){return x.value+x.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return i||(i=function(f,d){!f||!d?n=g():n=b(f,d),r.forEach(function(y){y._checkForIntersections()})}),i},s._resetCrossOriginUpdater=function(){i=null,n=null},s.prototype.observe=function(f){var d=this._observationTargets.some(function(y){return y.element==f});if(!d){if(!(f&&f.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:f,entry:null}),this._monitorIntersections(f.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(f){this._observationTargets=this._observationTargets.filter(function(d){return d.element!=f}),this._unmonitorIntersections(f.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var f=this._queuedEntries.slice();return this._queuedEntries=[],f},s.prototype._initThresholds=function(f){var d=f||[0];return Array.isArray(d)||(d=[d]),d.sort().filter(function(y,x,E){if(typeof y!="number"||isNaN(y)||y<0||y>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return y!==E[x-1]})},s.prototype._parseRootMargin=function(f){var d=f||"0px",y=d.split(/\s+/).map(function(x){var E=/^(-?\d*\.?\d+)(px|%)$/.exec(x);if(!E)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(E[1]),unit:E[2]}});return y[1]=y[1]||y[0],y[2]=y[2]||y[0],y[3]=y[3]||y[1],y},s.prototype._monitorIntersections=function(f){var d=f.defaultView;if(!!d&&this._monitoringDocuments.indexOf(f)==-1){var y=this._checkForIntersections,x=null,E=null;this.POLL_INTERVAL?x=d.setInterval(y,this.POLL_INTERVAL):(u(d,"resize",y,!0),u(f,"scroll",y,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in d&&(E=new d.MutationObserver(y),E.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(f),this._monitoringUnsubscribes.push(function(){var W=f.defaultView;W&&(x&&W.clearInterval(x),v(W,"resize",y,!0)),v(f,"scroll",y,!0),E&&E.disconnect()});var C=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=C){var M=e(f);M&&this._monitorIntersections(M.ownerDocument)}}},s.prototype._unmonitorIntersections=function(f){var d=this._monitoringDocuments.indexOf(f);if(d!=-1){var y=this.root&&(this.root.ownerDocument||this.root)||t,x=this._observationTargets.some(function(M){var W=M.element.ownerDocument;if(W==f)return!0;for(;W&&W!=y;){var V=e(W);if(W=V&&V.ownerDocument,W==f)return!0}return!1});if(!x){var E=this._monitoringUnsubscribes[d];if(this._monitoringDocuments.splice(d,1),this._monitoringUnsubscribes.splice(d,1),E(),f!=y){var C=e(f);C&&this._unmonitorIntersections(C.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var d=0;d=0&&W>=0&&{top:y,bottom:x,left:E,right:C,width:M,height:W}||null}function m(f){var d;try{d=f.getBoundingClientRect()}catch(y){}return d?(d.width&&d.height||(d={top:d.top,right:d.right,bottom:d.bottom,left:d.left,width:d.right-d.left,height:d.bottom-d.top}),d):g()}function g(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function _(f){return!f||"x"in f?f:{top:f.top,y:f.top,bottom:f.bottom,left:f.left,x:f.left,right:f.right,width:f.width,height:f.height}}function b(f,d){var y=d.top-f.top,x=d.left-f.left;return{top:y,left:x,height:d.height,width:d.width,bottom:y+d.height,right:x+d.width}}function w(f,d){for(var y=d;y;){if(y==f)return!0;y=p(y)}return!1}function p(f){var d=f.parentNode;return f.nodeType==9&&f!=t?e(f):(d&&d.assignedSlot&&(d=d.assignedSlot.parentNode),d&&d.nodeType==11&&d.host?d.host:d)}function h(f){return f&&f.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=a};function es(e){var{bottom:t,height:r,left:i,right:n,top:a,width:s}=e||{};return{bottom:t,height:r,left:i,right:n,top:a,width:s}}function um(e){var{intersectionRatio:t,boundingClientRect:{height:r,width:i},intersectionRect:{height:n,width:a}}=e;return t!==0?t:n===r?a/i:n/r}function fm(e,t,r){lm();var i=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,n=new IntersectionObserver(l=>{l.forEach(u=>{r({intersectionRatio:um(u),intersectionRect:es(u.intersectionRect),boundingClientRect:es(u.boundingClientRect),relativeRect:es(u.rootBounds),time:Date.now(),dataset:Qn(u.target),id:u.target.id})})},{root:i,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){n.USE_MUTATION_OBSERVER=!0;for(var a=e.querySelectorAll(t.selector),s=0;s{var i=450,n=44;clearTimeout(t),e&&Math.abs(r.pageX-e.pageX)<=n&&Math.abs(r.pageY-e.pageY)<=n&&r.timeStamp-e.timeStamp<=i&&r.preventDefault(),e=r,t=setTimeout(()=>{e=null},i)})}}function _m(e){if(!e.length)return r=>r;var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof r=="number")return e[r];var n={};return r.forEach(a=>{var[s,o]=a;i?n[t(s)]=t(o):n[t(s)]=o}),n};return t}function bm(e,t){if(!!t)return t.a&&(t.a=e(t.a)),t.e&&(t.e=e(t.e,!1)),t.w&&(t.w=wm(t.w,e)),t.s&&(t.s=e(t.s)),t.t&&(t.t=e(t.t)),t}function wm(e,t){var r={};return e.forEach(i=>{var[n,[a,s]]=i;r[t(n)]=[t(a),s]}),r}function ym(e,t){return e.priority=t,e}var ts=new Set,Sm=1,rs=2,Iu=3,Mu=4;function Ot(e,t){ts.add(ym(e,t))}function xm(){try{[...ts].sort((e,t)=>e.priority-t.priority).forEach(e=>e())}finally{ts.clear()}}function Au(e,t){var r=window["__"+bd],i=r&&r[e];if(i)return i;if(t&&t.__renderjsInstances)return t.__renderjsInstances[e]}var Tm=Po.length;function Em(e,t,r){var[i,n,a,s]=ns(t),o=is(e,i);if(le(r)||le(s)){var[l,u]=a.split(".");return as(o,n,l,u,r||s)}return Im(o,n,a)}function Cm(e,t,r){var[i,n,a]=ns(t),[s,o]=a.split("."),l=is(e,i);return as(l,n,s,o,[Am(r,e),en(Dr(l))])}function is(e,t){if(e.__ownerId===t)return e;for(var r=e.parentElement;r;){if(r.__ownerId===t)return r;r=r.parentElement}return e}function ns(e){return JSON.parse(e.substr(Tm))}function Om(e,t,r,i){var[n,a,s]=ns(e),o=is(t,n),[l,u]=s.split(".");return as(o,a,l,u,[r,i,en(Dr(o)),en(Dr(t))])}function as(e,t,r,i,n){var a=Au(t,e);if(!a)return console.error(Jn("wxs","module "+r+" not found"));var s=a[i];return ae(s)?s.apply(a,n):console.error(r+"."+i+" is not a function")}function Im(e,t,r){var i=Au(t,e);return i?Ao(i,r.substr(r.indexOf(".")+1)):console.error(Jn("wxs","module "+r+" not found"))}function Mm(e,t,r){var i=r;return n=>{try{Om(t,e.$,n,i)}catch(a){console.error(a)}i=n}}function Am(e,t){var r=Dr(t);return Object.defineProperty(e,"instance",{get(){return en(r)}}),e}function Ru(e,t){Object.keys(t).forEach(r=>{Pm(e,t[r])})}function Rm(e){var{__renderjsInstances:t}=e.$;!t||Object.keys(t).forEach(r=>{t[r].$.appContext.app.unmount()})}function Pm(e,t){var r=Lm(t);if(!!r){var i=e.$;(i.__renderjsInstances||(i.__renderjsInstances={}))[t]=Nm(r)}}function Lm(e){var t=window["__"+wd],r=t&&t[e];return r||console.error(Jn("renderjs",e+" not found"))}function Nm(e){return e=e.default||e,e.render=()=>{},lu(e).mount(document.createElement("div"))}class lr{constructor(t,r,i,n){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.$children=[],this.id=t,this.tag=r,this.pid=i,n&&(this.$=n),this.$wxsProps=new Map;var a=this.$parent=Ww(i);a&&a.appendUniChild(this)}init(t){te(t,"t")&&(this.$.textContent=t.t)}setText(t){this.$.textContent=t}insert(t,r){var i=this.$,n=Ke(t);r===-1?n.appendChild(i):n.insertBefore(i,Ke(r).$),this.isMounted=!0}remove(){this.removeUniParent();var{$:t}=this;t.parentNode.removeChild(t),this.isUnmounted=!0,zf(this.id),Rm(this),this.removeUniChildren()}appendChild(t){return this.$.appendChild(t)}insertBefore(t,r){return this.$.insertBefore(t,r)}appendUniChild(t){this.$children.push(t)}removeUniChild(t){var r=this.$children.indexOf(t);r>=0&&this.$children.splice(r,1)}removeUniParent(){var{$parent:t}=this;t&&(t.removeUniChild(this),this.$parent=void 0)}removeUniChildren(){this.$children.forEach(t=>t.remove()),this.$children.length=0}setWxsProps(t){Object.keys(t).forEach(r=>{if(r.indexOf(aa)===0){var i=r.replace(aa,""),n=t[i],a=Mm(this,t[r],n);Ot(()=>a(n),Mu),this.$wxsProps.set(r,a),delete t[r],delete t[i],this.$hasWxsProps=!0}})}addWxsEvents(t){Object.keys(t).forEach(r=>{var[i,n]=t[r];this.addWxsEvent(r,i,n)})}addWxsEvent(t,r,i){}wxsPropsInvoke(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.$hasWxsProps&&this.$wxsProps.get(aa+t);if(n)return Ot(()=>i?sr(()=>n(r)):n(r),Mu),!0}}function Pu(e,t){var{__wxsAddClass:r,__wxsRemoveClass:i}=e;i&&i.length&&(t=t.split(/\s+/).filter(n=>i.indexOf(n)===-1).join(" "),i.length=0),r&&r.length&&(t=t+" "+r.join(" ")),e.className=t}function Lu(e,t){var r=e.style;if(ye(t))t===""?e.removeAttribute("style"):r.cssText=Ut(t,!0);else for(var i in t)ss(r,i,t[i]);var{__wxsStyle:n}=e;if(n)for(var a in n)ss(r,a,n[a])}var Nu=/\s*!important$/;function ss(e,t,r){if(le(r))r.forEach(n=>ss(e,t,n));else if(r=Ut(r,!0),t.startsWith("--"))e.setProperty(t,r);else{var i=km(e,t);Nu.test(r)?e.setProperty(Ve(i),r.replace(Nu,""),"important"):e[i]=r}}var ku=["Webkit"],os={};function km(e,t){var r=os[t];if(r)return r;var i=mt(t);if(i!=="filter"&&i in e)return os[t]=i;i=_i(i);for(var n=0;n{var[a]=gu(n);a.type=ed(n.type,r),UniViewJSBridge.publishHandler(_u,[[dd,e,a]])};return t?qa(i,Wu(t)):i}function Wu(e){var t=[];return e&ia.prevent&&t.push("prevent"),e&ia.self&&t.push("self"),e&ia.stop&&t.push("stop"),t}function Bm(e,t,r,i){var[n,a]=ra(t);i===-1?Bu(e,n):Du(e,n)||e.addEventListener(n,e.__listeners[n]=Uu(e,r,i),a)}function Uu(e,t,r){var i=n=>{Cm(e,t,gu(n)[0])};return r?qa(i,Wu(r)):i}var Dm=Lo.length;function ls(e,t){return ye(t)&&(t.indexOf(Lo)===0?t=JSON.parse(t.substr(Dm)):t.indexOf(Po)===0&&(t=Em(e,t))),t}function us(e,t){e._vod=e.style.display==="none"?"":e.style.display,e.style.display=t?e._vod:"none"}class Vu extends lr{constructor(t,r,i,n,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r.tagName,i,r);this.$props=Ee({}),this.$.__id=t,this.$.__listeners=Object.create(null),this.$propNames=s,this._update=this.update.bind(this),this.init(a),this.insert(i,n)}init(t){te(t,"a")&&this.setAttrs(t.a),te(t,"s")&&this.setAttr("style",t.s),te(t,"e")&&this.addEvents(t.e),te(t,"w")&&this.addWxsEvents(t.w),super.init(t),U(this.$props,()=>{Ot(this._update,Sm)},{flush:"sync"}),this.update(!0)}setAttrs(t){this.setWxsProps(t),Object.keys(t).forEach(r=>{this.setAttr(r,t[r])})}addEvents(t){Object.keys(t).forEach(r=>{this.addEvent(r,t[r])})}addWxsEvent(t,r,i){Bm(this.$,t,r,i)}addEvent(t,r){Fu(this.$,t,r)}removeEvent(t){Fu(this.$,t,-1)}setAttr(t,r){t===Co?Pu(this.$,r):t===na?Lu(this.$,r):t===wi?us(this.$,r):t===Oo?this.$.__ownerId=r:t===Io?Ot(()=>Ru(this,r),Iu):t===td?this.$.innerHTML=r:t===rd?this.setText(r):this.setAttribute(t,r)}removeAttr(t){t===Co?Pu(this.$,""):t===na?Lu(this.$,""):this.removeAttribute(t)}setAttribute(t,r){r=ls(this.$,r),this.$propNames.indexOf(t)!==-1?this.$props[t]=r:this.wxsPropsInvoke(t,r)||this.$.setAttribute(t,r)}removeAttribute(t){this.$propNames.indexOf(t)!==-1?delete this.$props[t]:this.$.removeAttribute(t)}update(){}}class Fm extends lr{constructor(t,r,i){super(t,"#comment",r,document.createComment(""));this.insert(r,i)}}var hy="";function Hu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,r)=>"".concat(uni.upx2px(parseFloat(r)),"px")):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function $m(e){return e.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase())).replace("webkit","-webkit")}function Wm(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],r=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],n=["width","height","left","right","top","bottom"],a=e.animates,s=e.option,o=s.transition,l={},u=[];return a.forEach(v=>{var c=v.type,m=[...v.args];if(t.concat(r).includes(c))c.startsWith("rotate")||c.startsWith("skew")?m=m.map(_=>parseFloat(_)+"deg"):c.startsWith("translate")&&(m=m.map(Hu)),r.indexOf(c)>=0&&(m.length=1),u.push("".concat(c,"(").concat(m.join(","),")"));else if(i.concat(n).includes(m[0])){c=m[0];var g=m[1];l[c]=n.includes(c)?Hu(g):g}}),l.transform=l.webkitTransform=u.join(" "),l.transition=l.webkitTransition=Object.keys(l).map(v=>"".concat($m(v)," ").concat(o.duration,"ms ").concat(o.timingFunction," ").concat(o.delay,"ms")).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}function ju(e){var t=e.animation;if(!t||!t.actions||!t.actions.length)return;var r=0,i=t.actions,n=t.actions.length;function a(){var s=i[r],o=s.option.transition,l=Wm(s);Object.keys(l).forEach(u=>{e.$el.style[u]=l[u]}),r+=1,r{a()},0)}var tn={props:["animation"],watch:{animation:{deep:!0,handler(){ju(this)}}},mounted(){ju(this)}},de=e=>{var{props:t,mixins:r}=e;return(!t||!t.animation)&&(r||(e.mixins=[])).push(tn),Um(e)},Um=e=>(e.compatConfig={MODE:3},zh(e)),Vm={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function fs(e){var t=$(!1),r=!1,i,n;function a(){requestAnimationFrame(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function s(u){u._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||u.touches.length>1||(e.hoverStopPropagation&&(u._hoverPropagationStopped=!0),r=!0,i=setTimeout(()=>{t.value=!0,r||a()},parseInt(e.hoverStartTime)))}function o(){r=!1,t.value&&a()}function l(){r=!1,t.value=!1,clearTimeout(i)}return{hovering:t,binding:{onTouchstartPassive:s,onTouchend:o,onTouchcancel:l}}}function Fr(e,t){return ye(t)&&(t=[t]),t.reduce((r,i)=>(e[i]&&(r[i]=!0),r),Object.create(null))}function Vt(e){return e.__wwe=!0,e}function Me(e,t){return(r,i,n)=>{e.value&&t(r,jm(r,i,e.value,n||{}))}}function Hm(e){return(t,r)=>{e(t,pu(r))}}function jm(e,t,r,i){var n=ta(r);return{type:i.type||e,timeStamp:t.timeStamp||0,target:n,currentTarget:n,detail:i}}var lt=Gi("uf"),zm=de({name:"Form",emits:["submit","reset"],setup(e,t){var{slots:r,emit:i}=t,n=$(null);return Ym(Me(n,i)),()=>I("uni-form",{ref:n},[I("span",null,[r.default&&r.default()])],512)}});function Ym(e){var t=[];return Ne(lt,{addField(r){t.push(r)},removeField(r){t.splice(t.indexOf(r),1)},submit(r){e("submit",r,{value:t.reduce((i,n)=>{if(n.submit){var[a,s]=n.submit();a&&(i[a]=s)}return i},Object.create(null))})},reset(r){t.forEach(i=>i.reset&&i.reset()),e("reset",r)}}),t}var $r=Gi("ul"),qm={for:{type:String,default:""}},Xm=de({name:"Label",props:qm,setup(e,t){var{slots:r}=t,i=Qi(),n=Km(),a=Q(()=>e.for||r.default&&r.default.length),s=Vt(o=>{var l=o.target,u=/^uni-(checkbox|radio|switch)-/.test(l.className);u||(u=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(l.tagName)),!u&&(e.for?UniViewJSBridge.emit("uni-label-click-"+i+"-"+e.for,o,!0):n.length&&n[0](o,!0))});return()=>I("uni-label",{class:{"uni-label-pointer":a},onClick:s},[r.default&&r.default()],10,["onClick"])}});function Km(){var e=[];return Ne($r,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}function rn(e,t){zu(e.id,t),U(()=>e.id,(r,i)=>{Yu(i,t,!0),zu(r,t,!0)}),yt(()=>{Yu(e.id,t)})}function zu(e,t,r){var i=Qi();r&&!e||!it(t)||Object.keys(t).forEach(n=>{r?n.indexOf("@")!==0&&n.indexOf("uni-")!==0&&UniViewJSBridge.on("uni-".concat(n,"-").concat(i,"-").concat(e),t[n]):n.indexOf("uni-")===0?UniViewJSBridge.on(n,t[n]):e&&UniViewJSBridge.on("uni-".concat(n,"-").concat(i,"-").concat(e),t[n])})}function Yu(e,t,r){var i=Qi();r&&!e||!it(t)||Object.keys(t).forEach(n=>{r?n.indexOf("@")!==0&&n.indexOf("uni-")!==0&&UniViewJSBridge.off("uni-".concat(n,"-").concat(i,"-").concat(e),t[n]):n.indexOf("uni-")===0?UniViewJSBridge.off(n,t[n]):e&&UniViewJSBridge.off("uni-".concat(n,"-").concat(i,"-").concat(e),t[n])})}var Gm=de({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1}},setup(e,t){var{slots:r}=t,i=$(null);Ud();var n=pe(lt,!1),{hovering:a,binding:s}=fs(e),{t:o}=He(),l=Vt((v,c)=>{if(e.disabled)return v.stopImmediatePropagation();c&&i.value.click();var m=e.formType;if(m){if(!n)return;m==="submit"?n.submit(v):m==="reset"&&n.reset(v);return}e.openType==="feedback"&&Zm(o("uni.button.feedback.title"),o("uni.button.feedback.send"))}),u=pe($r,!1);return u&&(u.addHandler(l),xe(()=>{u.removeHandler(l)})),rn(e,{"label-click":l}),()=>{var v=e.hoverClass,c=Fr(e,"disabled"),m=Fr(e,"loading"),g=v&&v!=="none";return I("uni-button",ze({ref:i,onClick:l,class:g&&a.value?v:""},g&&s,c,m),[r.default&&r.default()],16,["onClick"])}}});function Zm(e,t){var r=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:e,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:t,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){r.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}});r.show("slide-in-right")}var Ht=de({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,t){var{emit:r}=t,i=$(null),n=Qm(i),a=Jm(i,r,n);return e0(i,e,a,n),()=>I("uni-resize-sensor",{ref:i,onAnimationstartOnce:a},[I("div",{onScroll:a},[I("div",null,null)],40,["onScroll"]),I("div",{onScroll:a},[I("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Jm(e,t,r){var i=Ee({width:-1,height:-1});return U(()=>ce({},i),n=>t("resize",n)),()=>{var n=e.value;i.width=n.offsetWidth,i.height=n.offsetHeight,r()}}function Qm(e){return()=>{var{firstElementChild:t,lastElementChild:r}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,r.scrollLeft=1e5,r.scrollTop=1e5}}function e0(e,t,r,i){Ia(i),Ie(()=>{t.initial&&sr(r);var n=e.value;n.offsetParent!==n.parentElement&&(n.parentElement.style.position="relative"),"AnimationEvent"in window||i()})}var me=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}();function qu(e){e.width=e.offsetWidth*me,e.height=e.offsetHeight*me,e.getContext("2d").__hidpi__=!0}var Xu=!1;function t0(){if(!Xu){Xu=!0;var e=function(i,n){for(var a in i)te(i,a)&&n(i[a],a)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]},r=CanvasRenderingContext2D.prototype;r.drawImageByCanvas=function(i){return function(n,a,s,o,l,u,v,c,m,g){if(!this.__hidpi__)return i.apply(this,arguments);a*=me,s*=me,o*=me,l*=me,u*=me,v*=me,c=g?c*me:c,m=g?m*me:m,i.call(this,n,a,s,o,l,u,v,c,m)}}(r.drawImage),me!==1&&(e(t,function(i,n){r[n]=function(a){return function(){if(!this.__hidpi__)return a.apply(this,arguments);var s=Array.prototype.slice.call(arguments);if(i==="all")s=s.map(function(l){return l*me});else if(Array.isArray(i))for(var o=0;ot0());function Ku(e){return e&&et(e)}function nn(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Gu(e,t){var r=e;return Array.from(t).map(i=>{var n=r.getBoundingClientRect();return{identifier:i.identifier,x:i.clientX-n.left,y:i.clientY-n.top}})}var Wr;function Zu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Wr||(Wr=document.createElement("canvas")),Wr.width=e,Wr.height=t,Wr}var i0={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1}},n0=de({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:i0,computed:{id(){return this.canvasId}},setup(e,t){var{emit:r,slots:i}=t;r0();var n=$(null),a=$(null),s=$(!1),o=Hm(r),{$attrs:l,$excludeAttrs:u,$listeners:v}=mf({excludeListeners:!0}),{_listeners:c}=a0(e,v,o),{_handleSubscribe:m,_resize:g}=s0(n,s);return gn(m,pn(e.canvasId),!0),Ie(()=>{g()}),()=>{var{canvasId:_,disableScroll:b}=e;return I("uni-canvas",ze({"canvas-id":_,"disable-scroll":b},l.value,u.value,c.value),[I("canvas",{ref:n,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),I("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[i.default&&i.default()]),I(Ht,{ref:a,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function a0(e,t,r){var i=Q(()=>{var n=["onTouchstart","onTouchmove","onTouchend"],a=t.value,s=ce({},(()=>{var o={};for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){var u=a[l];o[l]=u}return o})());return n.forEach(o=>{var l=s[o],u=[];l&&u.push(Vt(v=>{r(o.replace("on","").toLocaleLowerCase(),ce({},(()=>{var c={};for(var m in v)c[m]=v[m];return c})(),{touches:Gu(v.currentTarget,v.touches),changedTouches:Gu(v.currentTarget,v.changedTouches)}))})),e.disableScroll&&o==="onTouchmove"&&u.push(hp),s[o]=u}),s});return{_listeners:i}}function s0(e,t){var r=[],i={};function n(g){var _=e.value,b=!g||_.width!==Math.floor(g.width*me)||_.height!==Math.floor(g.height*me);if(!!b)if(_.width>0&&_.height>0){var w=_.getContext("2d"),p=w.getImageData(0,0,_.width,_.height);qu(_),w.putImageData(p,0,0)}else qu(_)}function a(g,_){var{actions:b,reserve:w}=g;if(!!b){if(t.value){r.push([b,w]);return}var p=e.value,h=p.getContext("2d");w||(h.fillStyle="#000000",h.strokeStyle="#000000",h.shadowColor="#000000",h.shadowBlur=0,h.shadowOffsetX=0,h.shadowOffsetY=0,h.setTransform(1,0,0,1,0,0),h.clearRect(0,0,p.width,p.height)),s(b);for(var f=function(x){var E=b[x],C=E.method,M=E.data,W=M[0];if(/^set/.test(C)&&C!=="setTransform"){var V=C[3].toLowerCase()+C.slice(4),q;if(V==="fillStyle"||V==="strokeStyle"){if(W==="normal")q=nn(M[1]);else if(W==="linear"){var he=h.createLinearGradient(...M[1]);M[2].forEach(function(G){var re=G[0],oe=nn(G[1]);he.addColorStop(re,oe)}),q=he}else if(W==="radial"){var R=M[1],B=R[0],ee=R[1],ie=R[2],z=h.createRadialGradient(B,ee,0,B,ee,ie);M[2].forEach(function(G){var re=G[0],oe=nn(G[1]);z.addColorStop(re,oe)}),q=z}else if(W==="pattern"){var J=o(M[1],b.slice(x+1),_,function(G){G&&(h[V]=h.createPattern(G,M[2]))});return J?"continue":"break"}h[V]=q}else if(V==="globalAlpha")h[V]=Number(W)/255;else if(V==="shadow"){var ne=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];M.forEach(function(G,re){h[ne[re]]=ne[re]==="shadowColor"?nn(G):G})}else if(V==="fontSize"){var we=h.__font__||h.font;h.__font__=h.font=we.replace(/\d+\.?\d*px/,W+"px")}else V==="lineDash"?(h.setLineDash(W),h.lineDashOffset=M[1]||0):V==="textBaseline"?(W==="normal"&&(M[0]="alphabetic"),h[V]=W):V==="font"?h.__font__=h.font=W:h[V]=W}else if(C==="fillPath"||C==="strokePath")C=C.replace(/Path/,""),h.beginPath(),M.forEach(function(G){h[G.method].apply(h,G.data)}),h[C]();else if(C==="fillText")h.fillText.apply(h,M);else if(C==="drawImage"){var se=function(){var G=[...M],re=G[0],oe=G.slice(1);if(i=i||{},o(re,b.slice(x+1),_,function(Ce){Ce&&h.drawImage.apply(h,[Ce].concat([...oe.slice(4,8)],[...oe.slice(0,4)]))}))return"break"}();if(se==="break")return"break"}else C==="clip"?(M.forEach(function(G){h[G.method].apply(h,G.data)}),h.clip()):h[C].apply(h,M)},d=0;d{f.src=d}).catch(()=>{f.src=p})}})}function o(g,_,b,w){var p=i[g];return p.ready?(w(p),!0):(r.unshift([_,!0]),t.value=!0,p.onload=function(){p.ready=!0,w(p),t.value=!1;var h=r.slice(0);r=[];for(var f=h.shift();f;)a({actions:f[0],reserve:f[1]},b),f=h.shift()},!1)}function l(g,_){var{x:b=0,y:w=0,width:p,height:h,destWidth:f,destHeight:d,hidpi:y=!0,dataType:x,quality:E=1,type:C="png"}=g,M=e.value,W,V=M.offsetWidth-b;p=p?Math.min(p,V):V;var q=M.offsetHeight-w;h=h?Math.min(h,q):q,y?(f=p,d=h):!f&&!d?(f=Math.round(p*me),d=Math.round(h*me)):f?d||(d=Math.round(h/p*f)):f=Math.round(p/h*d);var he=Zu(f,d),R=he.getContext("2d");(C==="jpeg"||C==="jpg")&&(C="jpeg",R.fillStyle="#fff",R.fillRect(0,0,f,d)),R.__hidpi__=!0,R.drawImageByCanvas(M,b,w,p,h,0,0,f,d,!1);var B;try{var ee;if(x==="base64")W=he.toDataURL("image/".concat(C),E);else{var ie=R.getImageData(0,0,f,d),z=require("pako");W=z.deflateRaw(ie.data,{to:"string"}),ee=!0}B={data:W,compressed:ee,width:f,height:d}}catch(J){B={errMsg:"canvasGetImageData:fail ".concat(J)}}if(he.height=he.width=0,R.__hidpi__=!1,_)_(B);else return B}function u(g,_){var{data:b,x:w,y:p,width:h,height:f,compressed:d}=g;try{f||(f=Math.round(b.length/4/h));var y=Zu(h,f),x=y.getContext("2d");if(d){var E=require("pako");b=E.inflateRaw(b)}x.putImageData(new ImageData(new Uint8ClampedArray(b),h,f),0,0),e.value.getContext("2d").drawImage(y,w,p,h,f),y.height=y.width=0}catch(C){_({errMsg:"canvasPutImageData:fail"});return}_({errMsg:"canvasPutImageData:ok"})}function v(g,_){var{x:b=0,y:w=0,width:p,height:h,destWidth:f,destHeight:d,fileType:y,quality:x,dirname:E}=g,C=l({x:b,y:w,width:p,height:h,destWidth:f,destHeight:d,hidpi:!1,dataType:"base64",type:y,quality:x});if(!C.data||!C.data.length){_({errMsg:C.errMsg.replace("canvasPutImageData","toTempFilePath")});return}qp(C.data)}var c={actionsChanged:a,getImageData:l,putImageData:u,toTempFilePath:v};function m(g,_,b){var w=c[g];g.indexOf("_")!==0&&typeof w=="function"&&w(_,b)}return ce(c,{_resize:n,_handleSubscribe:m})}var Ju=Gi("ucg"),o0={name:{type:String,default:""}},l0=de({name:"CheckboxGroup",props:o0,emits:["change"],setup(e,t){var{emit:r,slots:i}=t,n=$(null),a=Me(n,r);return u0(e,a),()=>I("uni-checkbox-group",{ref:n},[i.default&&i.default()],512)}});function u0(e,t){var r=[],i=()=>r.reduce((a,s)=>(s.value.checkboxChecked&&a.push(s.value.value),a),new Array);Ne(Ju,{addField(a){r.push(a)},removeField(a){r.splice(r.indexOf(a),1)},checkboxChange(a){t("change",a,{value:i()})}});var n=pe(lt,!1);return n&&n.addField({submit:()=>{var a=["",null];return e.name!==""&&(a[0]=e.name,a[1]=i()),a}}),i}var f0={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},c0=de({name:"Checkbox",props:f0,setup(e,t){var{slots:r}=t,i=$(e.checked),n=$(e.value);U([()=>e.checked,()=>e.value],u=>{var[v,c]=u;i.value=v,n.value=c});var a=()=>{i.value=!1},{uniCheckGroup:s,uniLabel:o}=v0(i,n,a),l=u=>{e.disabled||(i.value=!i.value,s&&s.checkboxChange(u))};return o&&(o.addHandler(l),xe(()=>{o.removeHandler(l)})),rn(e,{"label-click":l}),()=>{var u=Fr(e,"disabled");return I("uni-checkbox",ze(u,{onClick:l}),[I("div",{class:"uni-checkbox-wrapper"},[I("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[i.value?Ji(Zi,e.color,22):""],2),r.default&&r.default()])],16,["onClick"])}}});function v0(e,t,r){var i=Q(()=>({checkboxChecked:Boolean(e.value),value:t.value})),n={reset:r},a=pe(Ju,!1);a&&a.addField(i);var s=pe(lt,!1);s&&s.addField(n);var o=pe($r,!1);return xe(()=>{a&&a.removeField(i),s&&s.removeField(n)}),{uniCheckGroup:a,uniForm:s,uniLabel:o}}var Qu,Ur,an,It,sn,cs;Qt(()=>{Ur=plus.os.name==="Android",an=plus.os.version||""}),document.addEventListener("keyboardchange",function(e){It=e.height,sn&&sn()},!1);function ef(){}function Vr(e,t,r){Qt(()=>{var i="adjustResize",n="adjustPan",a="nothing",s=plus.webview.currentWebview(),o=cs||s.getStyle()||{},l={mode:r||o.softinputMode===i?i:e.adjustPosition?n:a,position:{top:0,height:0}};if(l.mode===n){var u=t.getBoundingClientRect();l.position.top=u.top,l.position.height=u.height+(Number(e.cursorSpacing)||0)}s.setSoftinputTemporary(l)})}function d0(e,t){if(e.showConfirmBar==="auto"){delete t.softinputNavBar;return}Qt(()=>{var r=plus.webview.currentWebview(),{softinputNavBar:i}=r.getStyle()||{},n=i!=="none";n!==e.showConfirmBar?(t.softinputNavBar=i||"auto",r.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})}function h0(e){var t=e.softinputNavBar;t&&Qt(()=>{var r=plus.webview.currentWebview();r.setStyle({softinputNavBar:t})})}var tf={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},rf=["keyboardheightchange"];function nf(e,t,r){var i={};function n(a){var s,o=()=>{r("keyboardheightchange",{},{height:It,duration:.25}),s&&It===0&&Vr(e,a),e.autoBlur&&s&&It===0&&(Ur||parseInt(an)>=13)&&document.activeElement.blur()};a.addEventListener("focus",()=>{s=!0,clearTimeout(Qu),document.addEventListener("click",ef,!1),sn=o,It&&r("keyboardheightchange",{},{height:It,duration:0}),d0(e,i),Vr(e,a)}),Ur&&a.addEventListener("click",()=>{!e.disabled&&!e.readOnly&&s&&It===0&&Vr(e,a)}),Ur||(parseInt(an)<12&&a.addEventListener("touchstart",()=>{!e.disabled&&!e.readOnly&&!s&&Vr(e,a)}),parseFloat(an)>=14.6&&!cs&&Qt(()=>{var u=plus.webview.currentWebview();cs=u.getStyle()||{}}));var l=()=>{document.removeEventListener("click",ef,!1),sn=null,It&&r("keyboardheightchange",{},{height:0,duration:0}),h0(i),Ur&&(Qu=setTimeout(()=>{Vr(e,a,!0)},300)),String(navigator.vendor).indexOf("Apple")===0&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};a.addEventListener("blur",()=>{a.blur(),s=!1,l()})}U(()=>t.value,a=>n(a))}var af=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,sf=/^<\/([-A-Za-z0-9_]+)[^>]*>/,g0=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,p0=ur("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),m0=ur("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),_0=ur("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),b0=ur("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),w0=ur("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),y0=ur("script,style");function of(e,t){var r,i,n,a=[],s=e;for(a.last=function(){return this[this.length-1]};e;){if(i=!0,!a.last()||!y0[a.last()]){if(e.indexOf(""),r>=0&&(t.comment&&t.comment(e.substring(4,r)),e=e.substring(r+3),i=!1)):e.indexOf("]*>"),function(v,c){return c=c.replace(/|/g,"$1$2"),t.chars&&t.chars(c),""}),u("",a.last());if(e==s)throw"Parse Error: "+e;s=e}u();function l(v,c,m,g){if(c=c.toLowerCase(),m0[c])for(;a.last()&&_0[a.last()];)u("",a.last());if(b0[c]&&a.last()==c&&u("",c),g=p0[c]||!!g,g||a.push(c),t.start){var _=[];m.replace(g0,function(b,w){var p=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:w0[w]?w:"";_.push({name:w,value:p,escaped:p.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(c,_,g)}}function u(v,c){if(c)for(var m=a.length-1;m>=0&&a[m]!=c;m--);else var m=0;if(m>=0){for(var g=a.length-1;g>=m;g--)t.end&&t.end(a[g]);a.length=m}}}function ur(e){for(var t={},r=e.split(","),i=0;is()),delete vs[t]}}n.push(r)}function S0(e){var t=e.import("blots/block/embed");class r extends t{}return r.blotName="divider",r.tagName="HR",{"formats/divider":r}}function x0(e){var t=e.import("blots/inline");class r extends t{}return r.blotName="ins",r.tagName="INS",{"formats/ins":r}}function T0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["left","right","center","justify"]},n=new r.Style("align","text-align",i);return{"formats/align":n}}function E0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK,whitelist:["rtl"]},n=new r.Style("direction","direction",i);return{"formats/direction":n}}function C0(e){var t=e.import("parchment"),r=e.import("blots/container"),i=e.import("formats/list/item");class n extends r{static create(s){var o=s==="ordered"?"OL":"UL",l=super.create(o);return(s==="checked"||s==="unchecked")&&l.setAttribute("data-checked",s==="checked"),l}static formats(s){if(s.tagName==="OL")return"ordered";if(s.tagName==="UL")return s.hasAttribute("data-checked")?s.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(s){super(s);var o=l=>{if(l.target.parentNode===s){var u=this.statics.formats(s),v=t.find(l.target);u==="checked"?v.format("list","unchecked"):u==="unchecked"&&v.format("list","checked")}};s.addEventListener("click",o)}format(s,o){this.children.length>0&&this.children.tail.format(s,o)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(s,o){if(s instanceof i)super.insertBefore(s,o);else{var l=o==null?this.length():o.offset(this),u=this.split(l);u.parent.insertBefore(s,u)}}optimize(s){super.optimize(s);var o=this.next;o!=null&&o.prev===this&&o.statics.blotName===this.statics.blotName&&o.domNode.tagName===this.domNode.tagName&&o.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(o.moveChildren(this),o.remove())}replace(s){if(s.statics.blotName!==this.statics.blotName){var o=t.create(this.statics.defaultChild);s.moveChildren(o),this.appendChild(o)}super.replace(s)}}return n.blotName="list",n.scope=t.Scope.BLOCK_BLOT,n.tagName=["OL","UL"],n.defaultChild="list-item",n.allowedChildren=[i],{"formats/list":n}}function O0(e){var{Scope:t}=e.import("parchment"),r=e.import("formats/background"),i=new r.constructor("backgroundColor","background-color",{scope:t.INLINE});return{"formats/backgroundColor":i}}function I0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.BLOCK},n=["margin","marginTop","marginBottom","marginLeft","marginRight"],a=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],s={};return n.concat(a).forEach(o=>{s["formats/".concat(o)]=new r.Style(o,Ve(o),i)}),s}function M0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i={scope:t.INLINE},n=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],a={};return n.forEach(s=>{a["formats/".concat(s)]=new r.Style(s,Ve(s),i)}),a}function A0(e){var{Scope:t,Attributor:r}=e.import("parchment"),i=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],n={};return i.forEach(a=>{var{name:s,scope:o}=a;n["formats/".concat(s)]=new r.Style(s,Ve(s),{scope:o})}),n}function R0(e){var t=e.import("formats/image"),r=["alt","height","width","data-custom","class","data-local"];t.sanitize=n=>n&&et(n),t.formats=function(a){return r.reduce(function(s,o){return a.hasAttribute(o)&&(s[o]=a.getAttribute(o)),s},{})};var i=t.prototype.format;t.prototype.format=function(n,a){r.indexOf(n)>-1?a?this.domNode.setAttribute(n,a):this.domNode.removeAttribute(n):i.call(this,n,a)}}function P0(e){var t=e.import("formats/link");t.sanitize=r=>{var i=document.createElement("a");i.href=r;var n=i.href.slice(0,i.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(n)>-1?r:t.SANITIZED_URL}}function L0(e){var t={divider:S0,ins:x0,align:T0,direction:E0,list:C0,background:O0,box:I0,font:M0,text:A0,image:R0,link:P0},r={};Object.values(t).forEach(i=>ce(r,i(e))),e.register(r,!0)}function N0(e,t,r){var i,n,a,s=!1;U(()=>e.readOnly,_=>{i&&(a.enable(!_),_||a.blur())}),U(()=>e.placeholder,_=>{i&&u(_)});function o(_){var b=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],w="",p;of(_,{start:function(f,d,y){if(!b.includes(f)){p=!y;return}p=!1;var x=d.map(C=>{var{name:M,value:W}=C;return"".concat(M,'="').concat(W,'"')}).join(" "),E="<".concat(f," ").concat(x," ").concat(y?"/":"",">");w+=E},end:function(f){p||(w+=""))},chars:function(f){p||(w+=f)}}),n=!0;var h=a.clipboard.convert(w);return n=!1,h}function l(){var _=a.root.innerHTML,b=a.getText(),w=a.getContents();return{html:_,text:b,delta:w}}function u(_){var b="data-placeholder",w=a.root;w.getAttribute(b)!==_&&w.setAttribute(b,_)}var v={};function c(_){var b=_?a.getFormat(_):{},w=Object.keys(b);(w.length!==Object.keys(v).length||w.find(p=>b[p]!==v[p]))&&(v=b,r("statuschange",{},b))}function m(_){var b=window.Quill;L0(b);var w={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};_.length&&(b.register("modules/ImageResize",window.ImageResize.default),w.modules={ImageResize:{modules:_}});var p=t.value;a=new b(p,w);var h=a.root,f=["focus","blur","input"];f.forEach(d=>{h.addEventListener(d,y=>{var x=l();if(d==="input"){if(wu().platform==="ios"){var E=(x.html.match(/([\s\S]*)<\/span>/)||[])[1],C=E&&E.replace(/\s/g,"")?"":e.placeholder;u(C)}y.stopPropagation()}else r(d,y,x)})}),a.on("text-change",()=>{s||r("input",{},l())}),a.on("selection-change",c),a.on("scroll-optimize",()=>{var d=a.selection.getRange()[0];c(d)}),a.clipboard.addMatcher(Node.ELEMENT_NODE,(d,y)=>(n||y.ops&&(y.ops=y.ops.filter(x=>{var{insert:E}=x;return typeof E=="string"}).map(x=>{var{insert:E}=x;return{insert:E}})),y)),i=!0,r("ready",{},{})}Ie(()=>{var _=[];e.showImgSize&&_.push("DisplaySize"),e.showImgToolbar&&_.push("Toolbar"),e.showImgResize&&_.push("Resize");var b="./__uniappquill.js";lf(window.Quill,b,()=>{if(_.length){var w="./__uniappquillimageresize.js";lf(window.ImageResize,w,()=>{m(_)})}else m(_)})});var g=pn();gn((_,b,w)=>{var{options:p,callbackId:h}=b,f,d,y;if(i){var x=window.Quill;switch(_){case"format":{var{name:E="",value:C=!1}=p;d=a.getSelection(!0);var M=a.getFormat(d)[E]||!1;if(["bold","italic","underline","strike","ins"].includes(E))C=!M;else if(E==="direction"){C=C==="rtl"&&M?!1:C;var W=a.getFormat(d).align;C==="rtl"&&!W?a.format("align","right","user"):!C&&W==="right"&&a.format("align",!1,"user")}else if(E==="indent"){var V=a.getFormat(d).direction==="rtl";C=C==="+1",V&&(C=!C),C=C?"+1":"-1"}else E==="list"&&(C=C==="check"?"unchecked":C,M=M==="checked"?"unchecked":M),C=M&&M!==(C||!1)||!M&&C?C:!M;a.format(E,C,"user")}break;case"insertDivider":d=a.getSelection(!0),a.insertText(d.index,wr,"user"),a.insertEmbed(d.index+1,"divider",!0,"user"),a.setSelection(d.index+2,0,"silent");break;case"insertImage":{d=a.getSelection(!0);var{src:q="",alt:he="",width:R="",height:B="",extClass:ee="",data:ie={}}=p,z=et(q);a.insertEmbed(d.index,"image",z,"user");var J=/^(file|blob):/.test(z)?z:!1;s=!0,a.formatText(d.index,1,"data-local",J),a.formatText(d.index,1,"alt",he),a.formatText(d.index,1,"width",R),a.formatText(d.index,1,"height",B),a.formatText(d.index,1,"class",ee),s=!1,a.formatText(d.index,1,"data-custom",Object.keys(ie).map(re=>"".concat(re,"=").concat(ie[re])).join("&")),a.setSelection(d.index+1,0,"silent")}break;case"insertText":{d=a.getSelection(!0);var{text:ne=""}=p;a.insertText(d.index,ne,"user"),a.setSelection(d.index+ne.length,0,"silent")}break;case"setContents":{var{delta:we,html:se}=p;typeof we=="object"?a.setContents(we,"silent"):typeof se=="string"?a.setContents(o(se),"silent"):y="contents is missing"}break;case"getContents":f=l();break;case"clear":a.setText("");break;case"removeFormat":{d=a.getSelection(!0);var G=x.import("parchment");d.length?a.removeFormat(d.index,d.length,"user"):Object.keys(a.getFormat(d)).forEach(re=>{G.query(re,G.Scope.INLINE)&&a.format(re,!1)})}break;case"undo":a.history.undo();break;case"redo":a.history.redo();break;case"blur":a.blur();break;case"getSelectionText":d=a.selection.savedRange,f={text:""},d&&d.length!==0&&(f.text=a.getText(d.index,d.length));break;case"scrollIntoView":a.scrollIntoView();break}c(d)}else y="not ready";h&&w({callbackId:h,data:ce({},f,{errMsg:"".concat(_,":").concat(y?"fail "+y:"ok")})})},g,!0)}var k0=ce({},tf,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),B0=de({name:"Editor",props:k0,emit:["ready","focus","blur","input","statuschange",...rf],setup(e,t){var{emit:r}=t,i=$(null),n=Me(i,r);return N0(e,i,n),nf(e,i,n),()=>I("uni-editor",{ref:i,id:e.id,class:"ql-container"},null,8,["id"])}}),uf="#10aeff",D0="#f76260",ff="#b2b2b2",F0="#f43530",$0={success:{d:xp,c:yi},success_no_circle:{d:Zi,c:yi},info:{d:yp,c:uf},warn:{d:Ep,c:D0},waiting:{d:Tp,c:uf},cancel:{d:_p,c:F0},download:{d:wp,c:yi},search:{d:Sp,c:ff},clear:{d:bp,c:ff}},W0=de({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=Q(()=>$0[e.type]);return()=>{var{value:r}=t;return I("uni-icon",null,[r&&r.d&&Ji(r.d,e.color||r.c,Ut(e.size))])}}}),U0={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!0}},on={widthFix:["offsetWidth","height"],heightFix:["offsetHeight","width"]},V0={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"]},H0=de({name:"Image",props:U0,setup(e,t){var{emit:r}=t,i=$(null),n=j0(i,e),a=Me(i,r),{fixSize:s}=X0(i,e,n);return z0(n,s,a),()=>{var{mode:o}=e,{imgSrc:l,modeStyle:u,src:v}=n,c;return c=l?I("img",{src:l,draggable:e.draggable},null,8,["src","draggable"]):I("img",null,null),I("uni-image",{ref:i},[I("div",{style:u},null,4),c,on[o]?I(Ht,{onResize:s},null,8,["onResize"]):I("span",null,null)],512)}}});function j0(e,t){var r=$(""),i=Q(()=>{var a="auto",s="",o=V0[t.mode];return o?(o[0]&&(s=o[0]),o[1]&&(a=o[1])):(s="0% 0%",a="100% 100%"),"background-image:".concat(r.value?'url("'+r.value+'")':"none",";background-position:").concat(s,";background-size:").concat(a,";")}),n=Ee({rootEl:e,src:Q(()=>t.src?et(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:r});return Ie(()=>{var a=e.value,s=a.style;n.origWidth=Number(s.width)||0,n.origHeight=Number(s.height)||0}),n}function z0(e,t,r){var i,n=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";e.origWidth=o,e.origHeight=l,e.imgSrc=u},a=o=>{if(!o){s(),n();return}i=i||new Image,i.onload=l=>{var{width:u,height:v}=i;n(u,v,o),t(),s(),r("load",l,{width:u,height:v})},i.onerror=l=>{n(),s(),r("error",l,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},i.src=o},s=()=>{i&&(i.onload=null,i.onerror=null,i=null)};U(()=>e.src,o=>a(o)),Ie(()=>a(e.src)),xe(()=>s())}var Y0=navigator.vendor==="Google Inc.";function q0(e){return Y0&&e>10&&(e=Math.round(e/2)*2),e}function X0(e,t,r){var i=()=>{var{mode:a}=t,s=on[a];if(!!s){var{origWidth:o,origHeight:l}=r,u=o&&l?o/l:0;if(!!u){var v=e.value,c=v[s[0]];c&&(v.style[s[1]]=q0(c/u)+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},n=()=>{var{style:a}=e.value,{origStyle:{width:s,height:o}}=r;a.width=s,a.height=o};return U(()=>t.mode,(a,s)=>{on[s]&&n(),on[a]&&i()}),{fixSize:i,resetSize:n}}function K0(e,t){var r=0,i,n,a=function(){for(var s=arguments.length,o=new Array(s),l=0;l{n=null,r=u,e.apply(this,o)},u-rln.forEach(t=>t.userAction=e);function Z0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{userAction:!1};if(!cf){var t=["touchstart","touchmove","touchend","mousedown","mouseup"];t.forEach(r=>{document.addEventListener(r,function(){!ds&&vf(!0),ds++,setTimeout(()=>{!--ds&&vf(!1)},0)},G0)}),cf=!0}ln.push(e)}function J0(e){var t=ln.indexOf(e);t>=0&&ln.splice(t,1)}function Q0(){var e=Ee({userAction:!1});return Ie(()=>{Z0(e)}),xe(()=>{J0(e)}),{state:e}}function df(){var e=Ee({attrs:{}});return Ie(()=>{for(var t=xt();t;){var r=t.type.__scopeId;r&&(e.attrs[r]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function e_(e,t){var r=pe(lt,!1);if(!!r){var i=xt(),n={submit(){var a=i.proxy;return[a[e],typeof t=="string"?a[t]:t.value]},reset(){typeof t=="string"?i.proxy[t]="":t.value=""}};r.addField(n),xe(()=>{r.removeField(n)})}}function t_(e,t){var r=document.activeElement;if(!r)return t({});var i={};["input","textarea"].includes(r.tagName.toLowerCase())&&(i.start=r.selectionStart,i.end=r.selectionEnd),t(i)}var r_=function(){ct(Ct(),"getSelectedTextRange",t_)},i_=200,hs;function gs(e){return e===null?"":String(e)}var hf=ce({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"}},tf),gf=["input","focus","blur","update:value","update:modelValue","update:focus",...rf];function n_(e,t,r){var i=$(null),n=Me(t,r),a=Q(()=>{var c=Number(e.selectionStart);return isNaN(c)?-1:c}),s=Q(()=>{var c=Number(e.selectionEnd);return isNaN(c)?-1:c}),o=Q(()=>{var c=Number(e.cursor);return isNaN(c)?-1:c}),l=Q(()=>{var c=Number(e.maxlength);return isNaN(c)?140:c}),u=gs(e.modelValue)||gs(e.value),v=Ee({value:u,valueOrigin:u,maxlength:l,focus:e.focus,composing:!1,selectionStart:a,selectionEnd:s,cursor:o});return U(()=>v.focus,c=>r("update:focus",c)),U(()=>v.maxlength,c=>v.value=v.value.slice(0,c)),{fieldRef:i,state:v,trigger:n}}function a_(e,t,r,i){var n=pd(o=>{t.value=gs(o)},100);U(()=>e.modelValue,n),U(()=>e.value,n);var a=K0((o,l)=>{n.cancel(),r("update:modelValue",l.value),r("update:value",l.value),i("input",o,l)},100),s=(o,l,u)=>{n.cancel(),a(o,l),u&&a.flush()};return yl(()=>{n.cancel(),a.cancel()}),{trigger:i,triggerInput:s}}function s_(e,t){var{state:r}=Q0(),i=Q(()=>e.autoFocus||e.focus);function n(){if(!!i.value){var s=t.value;if(!s||!("plus"in window)){setTimeout(n,100);return}{var o=i_-(Date.now()-hs);if(o>0){setTimeout(n,o);return}s.focus(),r.userAction||plus.key.showSoftKeybord()}}}function a(){var s=t.value;s&&s.blur()}U(()=>e.focus,s=>{s?n():a()}),Ie(()=>{hs=hs||Date.now(),i.value&&sr(n)})}function o_(e,t,r,i,n){function a(){var l=e.value;l&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&(l.selectionStart=t.selectionStart,l.selectionEnd=t.selectionEnd)}function s(){var l=e.value;l&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&(l.selectionEnd=l.selectionStart=t.cursor)}function o(){var l=e.value,u=function(m){t.focus=!0,r("focus",m,{value:t.value}),a(),s()},v=function(m,g){m.stopPropagation(),!(typeof n=="function"&&n(m,t)===!1)&&(t.value=l.value,t.composing||i(m,{value:l.value,cursor:l.selectionEnd},g))},c=function(m){t.composing&&(t.composing=!1,v(m,!0)),t.focus=!1,r("blur",m,{value:t.value,cursor:m.target.selectionEnd})};l.addEventListener("change",m=>m.stopPropagation()),l.addEventListener("focus",u),l.addEventListener("blur",c),l.addEventListener("input",v),l.addEventListener("compositionstart",m=>{m.stopPropagation(),t.composing=!0}),l.addEventListener("compositionend",m=>{m.stopPropagation(),t.composing&&(t.composing=!1,v(m))})}U([()=>t.selectionStart,()=>t.selectionEnd],a),U(()=>t.cursor,s),U(()=>e.value,o)}function pf(e,t,r,i){r_();var{fieldRef:n,state:a,trigger:s}=n_(e,t,r),{triggerInput:o}=a_(e,a,r,s);s_(e,n),nf(e,n,s);var{state:l}=df();e_("name",a),o_(n,a,s,o,i);var u=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:n,state:a,scopedAttrsState:l,fixDisabledColor:u,trigger:s}}var l_=ce({},hf,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),u_=de({name:"Input",props:l_,emits:["confirm",...gf],setup(e,t){var{emit:r}=t,i=["text","number","idcard","digit","password","tel"],n=["off","one-time-code"],a=Q(()=>{var h="";switch(e.type){case"text":e.confirmType==="search"&&(h="search");break;case"idcard":h="text";break;case"digit":h="number";break;default:h=~i.includes(e.type)?e.type:"text";break}return e.password?"password":h}),s=Q(()=>{var h=n.indexOf(e.textContentType),f=n.indexOf(Ve(e.textContentType)),d=h!==-1?h:f!==-1?f:0;return n[d]}),o=$(""),l,u=$(null),{fieldRef:v,state:c,scopedAttrsState:m,fixDisabledColor:g,trigger:_}=pf(e,u,r,(h,f)=>{var d=h.target;if(a.value==="number"){if(l&&(d.removeEventListener("blur",l),l=null),d.validity&&!d.validity.valid)return!o.value&&h.data==="-"||o.value[0]==="-"&&h.inputType==="deleteContentBackward"?(o.value="-",f.value="",l=()=>{o.value=d.value=""},d.addEventListener("blur",l),!1):(o.value=f.value=d.value=o.value==="-"?"":o.value,!1);o.value=d.value;var y=f.maxlength;if(y>0&&d.value.length>y)return d.value=d.value.slice(0,y),f.value=d.value,!1}}),b=["number","digit"],w=Q(()=>b.includes(e.type)?"0.000000000000000001":"");function p(h){h.key==="Enter"&&(h.stopPropagation(),_("confirm",h,{value:h.target.value}))}return()=>{var h=e.disabled&&g?I("input",{ref:v,value:c.value,tabindex:"-1",readonly:!!e.disabled,type:a.value,maxlength:c.maxlength,step:w.value,class:"uni-input-input",onFocus:f=>f.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):I("input",{ref:v,value:c.value,disabled:!!e.disabled,type:a.value,maxlength:c.maxlength,step:w.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",autocomplete:s.value,onKeyup:p},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return I("uni-input",{ref:u},[I("div",{class:"uni-input-wrapper"},[Or(I("div",ze(m.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[kr,!(c.value.length||o.value==="-")]]),e.confirmType==="search"?I("form",{action:"",onSubmit:f=>f.preventDefault(),class:"uni-input-form"},[h],40,["onSubmit"]):h])],512)}}});function f_(e){return Object.keys(e).map(t=>[t,e[t]])}var c_=["class","style"],v_=/^on[A-Z]+/,mf=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{excludeListeners:t=!1,excludeKeys:r=[]}=e,i=xt(),n=Ta({}),a=Ta({}),s=Ta({}),o=r.concat(c_);return i.attrs=Ee(i.attrs),kg(()=>{var l=f_(i.attrs).reduce((u,v)=>{var[c,m]=v;return o.includes(c)?u.exclude[c]=m:v_.test(c)?(t||(u.attrs[c]=m),u.listeners[c]=m):u.attrs[c]=m,u},{exclude:{},attrs:{},listeners:{}});n.value=l.attrs,a.value=l.listeners,s.value=l.exclude}),{$attrs:n,$listeners:a,$excludeAttrs:s}},un,Hr;function fn(){Qt(()=>{un||(un=plus.webview.currentWebview()),Hr||(Hr=(un.getStyle()||{}).pullToRefresh||{})})}function Mt(e){var{disable:t}=e;Hr&&Hr.support&&un.setPullToRefresh(Object.assign({},Hr,{support:!t}))}function ps(e){var t=[];return Array.isArray(e)&&e.forEach(r=>{Di(r)?r.type===st?t.push(...ps(r.children)):t.push(r):Array.isArray(r)&&t.push(...ps(r))}),t}function jr(e){var t=xt();t.rebuild=e}var d_={scaleArea:{type:Boolean,default:!1}},h_=de({inheritAttrs:!1,name:"MovableArea",props:d_,setup(e,t){var{slots:r}=t,i=$(null),n=$(!1),{setContexts:a,events:s}=g_(e,i),{$listeners:o,$attrs:l,$excludeAttrs:u}=mf(),v=o.value,c=["onTouchstart","onTouchmove","onTouchend"];c.forEach(p=>{var h=v[p],f=s["_".concat(p)];v[p]=h?[].concat(h,f):f}),Ie(()=>{s._resize(),fn(),n.value=!0});var m=[],g=[];function _(){for(var p=[],h=function(d){var y=m[d];y instanceof Element||(y=y.el);var x=g.find(E=>y===E.rootRef.value);x&&p.push(Li(x))},f=0;f{m=i.value.children,_()});var b=p=>{g.push(p),_()},w=p=>{var h=g.indexOf(p);h>=0&&(g.splice(h,1),_())};return Ne("_isMounted",n),Ne("movableAreaRootRef",i),Ne("addMovableViewContext",b),Ne("removeMovableViewContext",w),()=>(r.default&&r.default(),I("uni-movable-area",ze({ref:i},l.value,u.value,v),[I(Ht,{onReize:s._resize},null,8,["onReize"]),m],16))}});function _f(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function g_(e,t){var r=$(0),i=$(0),n=Ee({x:null,y:null}),a=$(null),s=null,o=[];function l(b){b&&b!==1&&(e.scaleArea?o.forEach(function(w){w._setScale(b)}):s&&s._setScale(b))}function u(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,p=t.value;function h(f){for(var d=0;d{Mt({disable:!0});var w=b.touches;if(w&&w.length>1){var p={x:w[1].pageX-w[0].pageX,y:w[1].pageY-w[0].pageY};if(a.value=_f(p),n.x=p.x,n.y=p.y,!e.scaleArea){var h=u(w[0].target),f=u(w[1].target);s=h&&h===f?h:null}}}),c=Vt(b=>{var w=b.touches;if(w&&w.length>1){b.preventDefault();var p={x:w[1].pageX-w[0].pageX,y:w[1].pageY-w[0].pageY};if(n.x!==null&&a.value&&a.value>0){var h=_f(p)/a.value;l(h)}n.x=p.x,n.y=p.y}}),m=Vt(b=>{Mt({disable:!1});var w=b.touches;w&&w.length||b.changedTouches&&(n.x=0,n.y=0,a.value=null,e.scaleArea?o.forEach(function(p){p._endScale()}):s&&s._endScale())});function g(){_(),o.forEach(function(b,w){b.setParent()})}function _(){var b=window.getComputedStyle(t.value),w=t.value.getBoundingClientRect();r.value=w.width-["Left","Right"].reduce(function(p,h){var f="border"+h+"Width",d="padding"+h;return p+parseFloat(b[f])+parseFloat(b[d])},0),i.value=w.height-["Top","Bottom"].reduce(function(p,h){var f="border"+h+"Width",d="padding"+h;return p+parseFloat(b[f])+parseFloat(b[d])},0)}return Ne("movableAreaWidth",r),Ne("movableAreaHeight",i),{setContexts(b){o=b},events:{_onTouchstart:v,_onTouchmove:c,_onTouchend:m,_resize:g}}}var zr=function(e,t,r,i){e.addEventListener(t,n=>{typeof r=="function"&&r(n)===!1&&((typeof n.cancelable!="undefined"?n.cancelable:!0)&&n.preventDefault(),n.stopPropagation())},{passive:!1})},bf,wf;function cn(e,t,r){xe(()=>{document.removeEventListener("mousemove",bf),document.removeEventListener("mouseup",wf)});var i=0,n=0,a=0,s=0,o=function(g,_,b,w){if(t({target:g.target,currentTarget:g.currentTarget,preventDefault:g.preventDefault.bind(g),stopPropagation:g.stopPropagation.bind(g),touches:g.touches,changedTouches:g.changedTouches,detail:{state:_,x:b,y:w,dx:b-i,dy:w-n,ddx:b-a,ddy:w-s,timeStamp:g.timeStamp}})===!1)return!1},l=null,u,v;zr(e,"touchstart",function(g){if(u=!0,g.touches.length===1&&!l)return l=g,i=a=g.touches[0].pageX,n=s=g.touches[0].pageY,o(g,"start",i,n)}),zr(e,"mousedown",function(g){if(v=!0,!u&&!l)return l=g,i=a=g.pageX,n=s=g.pageY,o(g,"start",i,n)}),zr(e,"touchmove",function(g){if(g.touches.length===1&&l){var _=o(g,"move",g.touches[0].pageX,g.touches[0].pageY);return a=g.touches[0].pageX,s=g.touches[0].pageY,_}});var c=bf=function(g){if(!u&&v&&l){var _=o(g,"move",g.pageX,g.pageY);return a=g.pageX,s=g.pageY,_}};document.addEventListener("mousemove",c),zr(e,"touchend",function(g){if(g.touches.length===0&&l)return u=!1,l=null,o(g,"end",g.changedTouches[0].pageX,g.changedTouches[0].pageY)});var m=wf=function(g){if(v=!1,!u&&l)return l=null,o(g,"end",g.pageX,g.pageY)};document.addEventListener("mouseup",m),zr(e,"touchcancel",function(g){if(l){u=!1;var _=l;return l=null,o(g,r?"cancel":"end",_.touches[0].pageX,_.touches[0].pageY)}})}function vn(e,t,r){return e>t-r&&ethis._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,r=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&rthis._endPositionY)&&(r=this._endPositionY),{x:t,y:r}},ut.prototype.ds=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},ut.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}},ut.prototype.dt=function(){return-this._x_v/this._x_a},ut.prototype.done=function(){var e=vn(this.s().x,this._endPositionX)||vn(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},ut.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},ut.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function qe(e,t,r){this._m=e,this._k=t,this._c=r,this._solution=null,this._endPosition=0,this._startTime=0}qe.prototype._solve=function(e,t){var r=this._c,i=this._m,n=this._k,a=r*r-4*i*n;if(a===0){var s=-r/(2*i),o=e,l=t/(s*e);return{x:function(p){return(o+l*p)*Math.pow(Math.E,s*p)},dx:function(p){var h=Math.pow(Math.E,s*p);return s*(o+l*p)*h+l*h}}}if(a>0){var u=(-r-Math.sqrt(a))/(2*i),v=(-r+Math.sqrt(a))/(2*i),c=(t-u*e)/(v-u),m=e-c;return{x:function(p){var h,f;return p===this._t&&(h=this._powER1T,f=this._powER2T),this._t=p,h||(h=this._powER1T=Math.pow(Math.E,u*p)),f||(f=this._powER2T=Math.pow(Math.E,v*p)),m*h+c*f},dx:function(p){var h,f;return p===this._t&&(h=this._powER1T,f=this._powER2T),this._t=p,h||(h=this._powER1T=Math.pow(Math.E,u*p)),f||(f=this._powER2T=Math.pow(Math.E,v*p)),m*u*h+c*v*f}}}var g=Math.sqrt(4*i*n-r*r)/(2*i),_=-r/2*i,b=e,w=(t-_*e)/g;return{x:function(p){return Math.pow(Math.E,_*p)*(b*Math.cos(g*p)+w*Math.sin(g*p))},dx:function(p){var h=Math.pow(Math.E,_*p),f=Math.cos(g*p),d=Math.sin(g*p);return h*(w*g*f-b*g*d)+_*h*(w*d+b*f)}}},qe.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},qe.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},qe.prototype.setEnd=function(e,t,r){if(r||(r=new Date().getTime()),e!==this._endPosition||!jt(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(jt(t,.1)&&(t=this._solution.dx((r-this._startTime)/1e3)),i=this._solution.x((r-this._startTime)/1e3),jt(t,.1)&&(t=0),jt(i,.1)&&(i=0),i+=this._endPosition),this._solution&&jt(i-e,.1)&&jt(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=r)}},qe.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},qe.prototype.done=function(e){return e||(e=new Date().getTime()),vn(this.x(),this._endPosition,.1)&&jt(this.dx(),.1)},qe.prototype.reconfigure=function(e,t,r){this._m=e,this._k=t,this._c=r,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())},qe.prototype.springConstant=function(){return this._k},qe.prototype.damping=function(){return this._c},qe.prototype.configuration=function(){function e(r,i){r.reconfigure(1,i,r.damping())}function t(r,i){r.reconfigure(1,r.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function Yr(e,t,r){this._springX=new qe(e,t,r),this._springY=new qe(e,t,r),this._springScale=new qe(e,t,r),this._startTime=0}Yr.prototype.setEnd=function(e,t,r,i){var n=new Date().getTime();this._springX.setEnd(e,i,n),this._springY.setEnd(t,i,n),this._springScale.setEnd(r,i,n),this._startTime=n},Yr.prototype.x=function(){var e=(new Date().getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Yr.prototype.done=function(){var e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Yr.prototype.reconfigure=function(e,t,r){this._springX.reconfigure(e,t,r),this._springY.reconfigure(e,t,r),this._springScale.reconfigure(e,t,r)};var p_={direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},m_=de({name:"MovableView",props:p_,emits:["change","scale"],setup(e,t){var{slots:r,emit:i}=t,n=$(null),a=Me(n,i),{setParent:s}=__(e,a,n);return()=>I("uni-movable-view",{ref:n},[I(Ht,{onResize:s},null,8,["onResize"]),r.default&&r.default()],512)}}),_s=!1;function yf(e){_s||(_s=!0,requestAnimationFrame(function(){e(),_s=!1}))}function Sf(e,t){if(e===t)return 0;var r=e.offsetLeft;return e.offsetParent?r+=Sf(e.offsetParent,t):0}function xf(e,t){if(e===t)return 0;var r=e.offsetTop;return e.offsetParent?r+=xf(e.offsetParent,t):0}function Tf(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function Ef(e,t,r){var i={id:0,cancelled:!1},n=function(s){s&&s.id&&cancelAnimationFrame(s.id),s&&(s.cancelled=!0)};function a(s,o,l,u){if(!s||!s.cancelled){l(o);var v=o.done();v||s.cancelled||(s.id=requestAnimationFrame(a.bind(null,s,o,l,u))),v&&u&&u(o)}}return a(i,e,t,r),{cancel:n.bind(null,i),model:e}}function dn(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function __(e,t,r){var i=pe("movableAreaWidth",$(0)),n=pe("movableAreaHeight",$(0)),a=pe("_isMounted",$(!1)),s=pe("movableAreaRootRef"),o=pe("addMovableViewContext",()=>{}),l=pe("removeMovableViewContext",()=>{}),u=$(dn(e.x)),v=$(dn(e.y)),c=$(Number(e.scaleValue)||1),m=$(0),g=$(0),_=$(0),b=$(0),w=$(0),p=$(0),h=null,f=null,d={x:0,y:0},y={x:0,y:0},x=1,E=1,C=0,M=0,W=!1,V=!1,q,he,R=null,B=null,ee=new ms,ie=new ms,z={historyX:[0,0],historyY:[0,0],historyT:[0,0]},J=Q(()=>{var O=Number(e.damping);return isNaN(O)?20:O}),ne=Q(()=>{var O=Number(e.friction);return isNaN(O)||O<=0?2:O}),we=Q(()=>{var O=Number(e.scaleMin);return isNaN(O)?.5:O}),se=Q(()=>{var O=Number(e.scaleMax);return isNaN(O)?10:O}),G=Q(()=>e.direction==="all"||e.direction==="horizontal"),re=Q(()=>e.direction==="all"||e.direction==="vertical"),oe=new Yr(1,9*Math.pow(J.value,2)/40,J.value),Ce=new ut(1,ne.value);U(()=>e.x,O=>{u.value=dn(O)}),U(()=>e.y,O=>{v.value=dn(O)}),U(u,O=>{Ge(O)}),U(v,O=>{At(O)}),U(()=>e.scaleValue,O=>{c.value=Number(O)||0}),U(c,O=>{Gr(O)}),U(we,()=>{Ae()}),U(se,()=>{Ae()});function Oe(){f&&f.cancel(),h&&h.cancel()}function Ge(O){if(G.value){if(O+y.x===C)return C;h&&h.cancel(),Z(O+y.x,v.value+y.y,x)}return O}function At(O){if(re.value){if(O+y.y===M)return M;h&&h.cancel(),Z(u.value+y.x,O+y.y,x)}return O}function Ae(){if(!e.scale)return!1;D(x,!0),k(x)}function Gr(O){return e.scale?(O=N(O),D(O,!0),k(O),O):!1}function Zr(){W||e.disabled||(Mt({disable:!0}),Oe(),z.historyX=[0,0],z.historyY=[0,0],z.historyT=[0,0],G.value&&(q=C),re.value&&(he=M),r.value.style.willChange="transform",R=null,B=null,V=!0)}function S(O){if(!W&&!e.disabled&&V){var j=C,Y=M;if(B===null&&(B=Math.abs(O.detail.dx/O.detail.dy)>1?"htouchmove":"vtouchmove"),G.value&&(j=O.detail.dx+q,z.historyX.shift(),z.historyX.push(j),!re.value&&R===null&&(R=Math.abs(O.detail.dx/O.detail.dy)<1)),re.value&&(Y=O.detail.dy+he,z.historyY.shift(),z.historyY.push(Y),!G.value&&R===null&&(R=Math.abs(O.detail.dy/O.detail.dx)<1)),z.historyT.shift(),z.historyT.push(O.detail.timeStamp),!R){O.preventDefault();var ve="touch";j<_.value?e.outOfBounds?(ve="touch-out-of-bounds",j=_.value-ee.x(_.value-j)):j=_.value:j>w.value&&(e.outOfBounds?(ve="touch-out-of-bounds",j=w.value+ee.x(j-w.value)):j=w.value),Yp.value&&(e.outOfBounds?(ve="touch-out-of-bounds",Y=p.value+ie.x(Y-p.value)):Y=p.value),yf(function(){X(j,Y,x,ve)})}}}function T(){if(!W&&!e.disabled&&V&&(Mt({disable:!1}),r.value.style.willChange="auto",V=!1,!R&&!K("out-of-bounds")&&e.inertia)){var O=1e3*(z.historyX[1]-z.historyX[0])/(z.historyT[1]-z.historyT[0]),j=1e3*(z.historyY[1]-z.historyY[0])/(z.historyT[1]-z.historyT[0]);Ce.setV(O,j),Ce.setS(C,M);var Y=Ce.delta().x,ve=Ce.delta().y,ue=Y+C,Le=ve+M;ue<_.value?(ue=_.value,Le=M+(_.value-C)*ve/Y):ue>w.value&&(ue=w.value,Le=M+(w.value-C)*ve/Y),Lep.value&&(Le=p.value,ue=C+(p.value-M)*Y/ve),Ce.setEnd(ue,Le),f=Ef(Ce,function(){var Ue=Ce.s(),Re=Ue.x,tt=Ue.y;X(Re,tt,x,"friction")},function(){f.cancel()})}!e.outOfBounds&&!e.inertia&&Oe()}function A(O,j){var Y=!1;return O>w.value?(O=w.value,Y=!0):O<_.value&&(O=_.value,Y=!0),j>p.value?(j=p.value,Y=!0):j3&&arguments[3]!==void 0?arguments[3]:"",ue=arguments.length>4?arguments[4]:void 0,Le=arguments.length>5?arguments[5]:void 0;O!==null&&O.toString()!=="NaN"&&typeof O=="number"||(O=C||0),j!==null&&j.toString()!=="NaN"&&typeof j=="number"||(j=M||0),O=Number(O.toFixed(1)),j=Number(j.toFixed(1)),Y=Number(Y.toFixed(1)),C===O&&M===j||ue||t("change",{},{x:Tf(O,y.x),y:Tf(j,y.y),source:ve}),e.scale||(Y=x),Y=N(Y),Y=+Y.toFixed(3),Le&&Y!==x&&t("scale",{},{x:O,y:j,scale:Y});var Ue="translateX("+O+"px) translateY("+j+"px) translateZ(0px) scale("+Y+")";r.value.style.transform=Ue,r.value.style.webkitTransform=Ue,C=O,M=j,x=Y}function fe(){if(!!a.value){Oe();var O=e.scale?c.value:1;P(),L(O),F(),C=u.value+y.x,M=v.value+y.y;var j=A(C,M),Y=j.x,ve=j.y;X(Y,ve,O,"",!0),k(O)}}function Pe(){W=!1,k(x)}function Se(O){O&&(O=E*O,H(),D(O))}return Ie(()=>{cn(r.value,j=>{switch(j.detail.state){case"start":Zr();break;case"move":S(j);break;case"end":T()}}),fe(),Ce.reconfigure(1,ne.value),oe.reconfigure(1,9*Math.pow(J.value,2)/40,J.value),r.value.style.transformOrigin="center",fn();var O={rootRef:r,setParent:fe,_endScale:Pe,_setScale:Se};o(O),yt(()=>{l(O)})}),yt(()=>{Oe()}),{setParent:fe}}var b_=["navigate","redirect","switchTab","reLaunch","navigateBack"],w_={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return Boolean(~b_.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}},y_=de({name:"Navigator",compatConfig:{MODE:3},props:w_,setup(e,t){var{slots:r}=t,{hovering:i,binding:n}=fs(e);function a(s){if(e.openType!=="navigateBack"&&!e.url){console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}switch(e.openType){case"navigate":uni.navigateTo({url:e.url});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta});break}}return()=>{var{hoverClass:s}=e,o=e.hoverClass&&e.hoverClass!=="none";return I("uni-navigator",ze({class:o&&i.value?s:""},o&&n,{onClick:a}),[r.default&&r.default()],16,["onClick"])}}}),S_={value:{type:Array,default(){return[]},validator:function(e){return Array.isArray(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function x_(e){var t=Ee([...e.value]),r=Ee({value:t,height:34});return U(()=>e.value,(i,n)=>{(i===n||i.length!==n.length||i.findIndex((a,s)=>a!==n[s])>=0)&&(r.value.length=i.length,i.forEach((a,s)=>{a!==r.value[s]&&r.value.splice(s,1,a)}))}),r}var T_=de({name:"PickerView",props:S_,emits:["change","pickstart","pickend","update:value"],setup(e,t){var{slots:r,emit:i}=t,n=$(null),a=$(null),s=Me(n,i),o=x_(e),l=$(null),u=()=>{var _=l.value;o.height=_.$el.offsetHeight},v=$([]),c=$([]);function m(_){var b=c.value;if(b instanceof HTMLCollection)return Array.prototype.indexOf.call(b,_.el);var w=b.indexOf(_);return w!==-1?w:v.value.indexOf(_)}var g=function(_){var b=Q({get(){var w=m(_.vnode);return o.value[w]||0},set(w){var p=m(_.vnode);if(!(p<0)){var h=o.value[p];if(h!==w){o.value[p]=w;var f=o.value.map(d=>d);i("update:value",f),s("change",{},{value:f})}}}});return b};return Ne("getPickerViewColumn",g),Ne("pickerViewProps",e),Ne("pickerViewState",o),jr(()=>{u(),c.value=a.value.children}),()=>{var _=r.default&&r.default();return I("uni-picker-view",{ref:n},[I(Ht,{ref:l,onResize:b=>{var{height:w}=b;return o.height=w}},null,8,["onResize"]),I("div",{ref:a,class:"uni-picker-view-wrapper"},[_],512)],512)}}});class Cf{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,r){this._x=t,this._v=r,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*r/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);var r=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*r}done(){return Math.abs(this.dx())<3}reconfigure(t){var r=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(r,i)}configuration(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(r){t.reconfigure(r)},min:.001,max:.1,step:.001}]}}function Of(e,t,r){return e>t-r&&e0){var v=(-i-Math.sqrt(s))/(2*n),c=(-i+Math.sqrt(s))/(2*n),m=(r-v*t)/(c-v),g=t-m;return{x:function(h){var f,d;return h===this._t&&(f=this._powER1T,d=this._powER2T),this._t=h,f||(f=this._powER1T=Math.pow(Math.E,v*h)),d||(d=this._powER2T=Math.pow(Math.E,c*h)),g*f+m*d},dx:function(h){var f,d;return h===this._t&&(f=this._powER1T,d=this._powER2T),this._t=h,f||(f=this._powER1T=Math.pow(Math.E,v*h)),d||(d=this._powER2T=Math.pow(Math.E,c*h)),g*v*f+m*c*d}}}var _=Math.sqrt(4*n*a-i*i)/(2*n),b=-i/2*n,w=t,p=(r-b*t)/_;return{x:function(h){return Math.pow(Math.E,b*h)*(w*Math.cos(_*h)+p*Math.sin(_*h))},dx:function(h){var f=Math.pow(Math.E,b*h),d=Math.cos(_*h),y=Math.sin(_*h);return f*(p*_*d-w*_*y)+b*f*(p*y+w*d)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,r,i){if(i||(i=new Date().getTime()),t!==this._endPosition||!zt(r,.4)){r=r||0;var n=this._endPosition;this._solution&&(zt(r,.4)&&(r=this._solution.dx((i-this._startTime)/1e3)),n=this._solution.x((i-this._startTime)/1e3),zt(r,.4)&&(r=0),zt(n,.4)&&(n=0),n+=this._endPosition),this._solution&&zt(n-t,.4)&&zt(r,.4)||(this._endPosition=t,this._solution=this._solve(n-this._endPosition,r),this._startTime=i)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),Of(this.x(),this._endPosition,.4)&&zt(this.dx(),.4)}reconfigure(t,r,i){this._m=t,this._k=r,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(i,n){i.reconfigure(1,n,i.damping())}function r(i,n){i.reconfigure(1,i.springConstant(),n)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:r.bind(this,this),min:1,max:500}]}}class E_{constructor(t,r,i){this._extent=t,this._friction=r||new Cf(.01),this._spring=i||new If(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,r){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(r)}set(t,r){this._friction.set(t,r),t>0&&r>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&r<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var r=this._friction.x(t),i=this.dx(t);return(r>0&&i>=0||r<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),r<-this._extent?this._springOffset=-this._extent:this._springOffset=0,r=this._spring.x()+this._springOffset),r}dx(t){var r;return this._lastTime===t?r=this._lastDx:r=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=r,r}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function C_(e,t,r){var i={id:0,cancelled:!1};function n(s,o,l,u){if(!s||!s.cancelled){l(o);var v=o.done();v||s.cancelled||(s.id=requestAnimationFrame(n.bind(null,s,o,l,u))),v&&u&&u(o)}}function a(s){s&&s.id&&cancelAnimationFrame(s.id),s&&(s.cancelled=!0)}return n(i,e,t,r),{cancel:a.bind(null,i),model:e}}class O_{constructor(t,r){r=r||{},this._element=t,this._options=r,this._enableSnap=r.enableSnap||!1,this._itemSize=r.itemSize||0,this._enableX=r.enableX||!1,this._enableY=r.enableY||!1,this._shouldDispatchScrollEvent=!!r.onScroll,this._enableX?(this._extent=(r.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=r.scrollWidth):(this._extent=(r.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=r.scrollHeight),this._position=0,this._scroll=new E_(this._extent,r.friction,r.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,r){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=r),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,r,i){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(r)this._itemSize/2?a-(this._itemSize-Math.abs(s)):a-s,n<=0&&n>=-this._extent&&this._scroll.setVelocityByEnd(n)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=C_(this._scroll,()=>{var o=Date.now(),l=(o-this._scroll._startTime)/1e3,u=this._scroll.x(l);this._position=u,this.updatePosition();var v=this._scroll.dx(l);this._shouldDispatchScrollEvent&&o-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/v),this._lastTime=o)},()=>{this._enableSnap&&(n<=0&&n>=-this._extent&&(this._position=n,this.updatePosition()),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){var t=this._itemSize,r=this._position%t,i=Math.abs(r)>this._itemSize/2?this._position-(t-Math.abs(r)):this._position-r;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,r){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);var i="transform "+(r||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+i,this._element.style.transition=i,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(typeof this._options.onScroll=="function"&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,r,i){var n=0,a=this._position;this._enableX?(n=this._element.childNodes.length?(r||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=r):(n=this._element.childNodes.length?(r||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=r),typeof t=="number"&&(this._position=-t),this._position<-n?this._position=-n:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),a!==this._position&&(this.dispatchScroll(),typeof this._options.onSnap=="function"&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=n,this._scroll._extent=n}updatePosition(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function I_(e,t){var r={trackingID:-1,maxDy:0,maxDx:0},i=new O_(e,t);function n(l){var u=l,v=l;return u.detail.state==="move"||u.detail.state==="end"?{x:u.detail.dx,y:u.detail.dy}:{x:v.screenX-r.x,y:v.screenY-r.y}}function a(l){var u=l,v=l;u.detail.state==="start"?(r.trackingID="touch",r.x=u.detail.x,r.y=u.detail.y):(r.trackingID="mouse",r.x=v.screenX,r.y=v.screenY),r.maxDx=0,r.maxDy=0,r.historyX=[0],r.historyY=[0],r.historyTime=[u.detail.timeStamp||v.timeStamp],r.listener=i,i.onTouchStart&&i.onTouchStart(),l.preventDefault()}function s(l){var u=l,v=l;if(r.trackingID!==-1){l.preventDefault();var c=n(l);if(c){for(r.maxDy=Math.max(r.maxDy,Math.abs(c.y)),r.maxDx=Math.max(r.maxDx,Math.abs(c.x)),r.historyX.push(c.x),r.historyY.push(c.y),r.historyTime.push(u.detail.timeStamp||v.timeStamp);r.historyTime.length>10;)r.historyTime.shift(),r.historyX.shift(),r.historyY.shift();r.listener&&r.listener.onTouchMove&&r.listener.onTouchMove(c.x,c.y)}}}function o(l){if(r.trackingID!==-1){l.preventDefault();var u=n(l);if(u){var v=r.listener;r.trackingID=-1,r.listener=null;var c=r.historyTime.length,m={x:0,y:0};if(c>2)for(var g=r.historyTime.length-1,_=r.historyTime[g],b=r.historyX[g],w=r.historyY[g];g>0;){g--;var p=r.historyTime[g],h=_-p;if(h>30&&h<50){m.x=(b-r.historyX[g])/(h/1e3),m.y=(w-r.historyY[g])/(h/1e3);break}}r.historyTime=[],r.historyX=[],r.historyY=[],v&&v.onTouchEnd&&v.onTouchEnd(u.x,u.y,m)}}}return{scroller:i,handleTouchStart:a,handleTouchMove:s,handleTouchEnd:o}}var M_=0;function A_(e){var t="uni-picker-view-content-".concat(M_++);function r(){var i=document.createElement("style");i.innerText=".uni-picker-view-content.".concat(t,">*{height: ").concat(e.value,"px;overflow: hidden;}"),document.head.appendChild(i)}return U(()=>e.value,r),t}function R_(e){var t=20,r=0,i=0;e.addEventListener("touchstart",n=>{var a=n.changedTouches[0];r=a.clientX,i=a.clientY}),e.addEventListener("touchend",n=>{var a=n.changedTouches[0];if(Math.abs(a.clientX-r){o[u]=a[u]}),n.target.dispatchEvent(o)}})}var P_=de({name:"PickerViewColumn",setup(e,t){var{slots:r,emit:i}=t,n=$(null),a=$(null),s=pe("getPickerViewColumn"),o=xt(),l=s?s(o):$(0),u=pe("pickerViewProps"),v=pe("pickerViewState"),c=$(34),m=$(null),g=()=>{var M=m.value;c.value=M.$el.offsetHeight},_=Q(()=>(v.height-c.value)/2),{state:b}=df(),w=A_(c),p,h=Ee({current:l.value,length:0}),f;function d(){p&&!f&&(f=!0,sr(()=>{f=!1;var M=Math.min(h.current,h.length-1);M=Math.max(M,0),p.update(M*c.value,void 0,c.value)}))}U(()=>l.value,M=>{M!==h.current&&(h.current=M,d())}),U(()=>h.current,M=>l.value=M),U([()=>c.value,()=>h.length,()=>v.height],d);var y=0;function x(M){var W=y+M.deltaY;if(Math.abs(W)>10){y=0;var V=Math.min(h.current+(W<0?-1:1),h.length-1);h.current=V=Math.max(V,0),p.scrollTo(V*c.value)}else y=W;M.preventDefault()}function E(M){var{clientY:W}=M,V=n.value;if(!p.isScrolling()){var q=V.getBoundingClientRect(),he=W-q.top-v.height/2,R=c.value/2;if(!(Math.abs(he)<=R)){var B=Math.ceil((Math.abs(he)-R)/c.value),ee=he<0?-B:B,ie=Math.min(h.current+ee,h.length-1);h.current=ie=Math.max(ie,0),p.scrollTo(ie*c.value)}}}var C=()=>{var M=n.value,W=a.value,{scroller:V,handleTouchStart:q,handleTouchMove:he,handleTouchEnd:R}=I_(W,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:c.value,friction:new Cf(1e-4),spring:new If(2,90,20),onSnap:B=>{!isNaN(B)&&B!==h.current&&(h.current=B)}});p=V,cn(M,B=>{switch(B.detail.state){case"start":q(B),Mt({disable:!0});break;case"move":he(B),B.stopPropagation();break;case"end":case"cancel":R(B),Mt({disable:!1})}},!0),R_(M),fn(),d()};return jr(()=>{h.length=a.value.children.length,g(),C()}),()=>{var M=r.default&&r.default(),W="".concat(_.value,"px 0");return I("uni-picker-view-column",{ref:n},[I("div",{onWheel:x,onClick:E,class:"uni-picker-view-group"},[I("div",ze(b.attrs,{class:["uni-picker-view-mask",u.maskClass],style:"background-size: 100% ".concat(_.value,"px;").concat(u.maskStyle)}),null,16),I("div",ze(b.attrs,{class:["uni-picker-view-indicator",u.indicatorClass],style:u.indicatorStyle}),[I(Ht,{ref:m,onResize:V=>{var{height:q}=V;return c.value=q}},null,8,["onResize"])],16),I("div",{ref:a,class:["uni-picker-view-content",w],style:{padding:W}},[M],6)],40,["onWheel","onClick"])],512)}}}),Yt={activeColor:yi,backgroundColor:"#EBEBEB",activeMode:"backwards"},L_={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:Yt.activeColor},activeColor:{type:String,default:Yt.activeColor},backgroundColor:{type:String,default:Yt.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:Yt.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}}},N_=de({name:"Progress",props:L_,setup(e){var t=k_(e);return Mf(t,e),U(()=>t.realPercent,(r,i)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=i||0,Mf(t,e)}),()=>{var{showInfo:r}=e,{outerBarStyle:i,innerBarStyle:n,currentPercent:a}=t;return I("uni-progress",{class:"uni-progress"},[I("div",{style:i,class:"uni-progress-bar"},[I("div",{style:n,class:"uni-progress-inner-bar"},null,4)],4),r?I("p",{class:"uni-progress-info"},[a+"%"]):""])}}});function k_(e){var t=$(0),r=Q(()=>"background-color: ".concat(e.backgroundColor,"; height: ").concat(e.strokeWidth,"px;")),i=Q(()=>{var s=e.color!==Yt.activeColor&&e.activeColor===Yt.activeColor?e.color:e.activeColor;return"width: ".concat(t.value,"%;background-color: ").concat(s)}),n=Q(()=>{var s=parseFloat(e.percent);return s<0&&(s=0),s>100&&(s=100),s}),a=Ee({outerBarStyle:r,innerBarStyle:i,realPercent:n,currentPercent:t,strokeTimer:0,lastPercent:0});return a}function Mf(e,t){t.active?(e.currentPercent=t.activeMode===Yt.activeMode?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}var Af=Gi("ucg"),B_={name:{type:String,default:""}},D_=de({name:"RadioGroup",props:B_,setup(e,t){var{emit:r,slots:i}=t,n=$(null),a=Me(n,r);return F_(e,a),()=>I("uni-radio-group",{ref:n},[i.default&&i.default()],512)}});function F_(e,t){var r=[];Ie(()=>{o(r.length-1)});var i=()=>{var l;return(l=r.find(u=>u.value.radioChecked))===null||l===void 0?void 0:l.value.value};Ne(Af,{addField(l){r.push(l)},removeField(l){r.splice(r.indexOf(l),1)},radioChange(l,u){var v=r.indexOf(u);o(v,!0),t("change",l,{value:i()})}});var n=pe(lt,!1),a={submit:()=>{var l=["",null];return e.name!==""&&(l[0]=e.name,l[1]=i()),l}};n&&(n.addField(a),xe(()=>{n.removeField(a)}));function s(l,u){l.value={radioChecked:u,value:l.value.value}}function o(l,u){r.forEach((v,c)=>{c!==l&&(u?s(r[c],!1):r.forEach((m,g)=>{c>=g||r[g].value.radioChecked&&s(r[c],!1)}))})}return r}var $_={checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},W_=de({name:"Radio",props:$_,setup(e,t){var{slots:r}=t,i=$(e.checked),n=$(e.value),a=Q(()=>"background-color: ".concat(e.color,";border-color: ").concat(e.color,";"));U([()=>e.checked,()=>e.value],c=>{var[m,g]=c;i.value=m,n.value=g});var s=()=>{i.value=!1},{uniCheckGroup:o,uniLabel:l,field:u}=U_(i,n,s),v=c=>{e.disabled||(i.value=!0,o&&o.radioChange(c,u))};return l&&(l.addHandler(v),xe(()=>{l.removeHandler(v)})),rn(e,{"label-click":v}),()=>{var c=Fr(e,"disabled");return I("uni-radio",ze(c,{onClick:v}),[I("div",{class:"uni-radio-wrapper"},[I("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:i.value?a.value:""},[i.value?Ji(Zi,"#fff",18):""],6),r.default&&r.default()])],16,["onClick"])}}});function U_(e,t,r){var i=Q({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:l=>{var{radioChecked:u}=l;e.value=u}}),n={reset:r},a=pe(Af,!1);a&&a.addField(i);var s=pe(lt,!1);s&&s.addField(n);var o=pe($r,!1);return xe(()=>{a&&a.removeField(i),s&&s.removeField(n)}),{uniCheckGroup:a,uniForm:s,uniLabel:o,field:i}}function V_(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}function H_(e){return e.reduce(function(t,r){var i=r.value,n=r.name;return i.match(/ /)&&n!=="style"&&(i=i.split(" ")),t[n]?Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i,t},{})}function j_(e){e=V_(e);var t=[],r={node:"root",children:[]};return of(e,{start:function(i,n,a){var s={name:i};if(n.length!==0&&(s.attrs=H_(n)),a){var o=t[0]||r;o.children||(o.children=[]),o.children.push(s)}else t.unshift(s)},end:function(i){var n=t.shift();if(n.name!==i&&console.error("invalid state: mismatch end tag"),t.length===0)r.children.push(n);else{var a=t[0];a.children||(a.children=[]),a.children.push(n)}},chars:function(i){var n={type:"text",text:i};if(t.length===0)r.children.push(n);else{var a=t[0];a.children||(a.children=[]),a.children.push(n)}},comment:function(i){var n={node:"comment",text:i},a=t[0];a.children||(a.children=[]),a.children.push(n)}}),r.children}var Rf={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:""},bs={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function z_(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,r){if(te(bs,r)&&bs[r])return bs[r];if(/^#[0-9]{1,4}$/.test(r))return String.fromCharCode(r.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(r))return String.fromCharCode("0"+r.slice(1));var i=document.createElement("div");return i.innerHTML=t,i.innerText||i.textContent})}function Y_(e,t,r){return e==="img"&&t==="src"?et(r):r}function Pf(e,t,r,i){return e.forEach(function(n){if(!!it(n))if(!te(n,"type")||n.type==="node"){if(!(typeof n.name=="string"&&n.name))return;var a=n.name.toLowerCase();if(!te(Rf,a))return;var s=document.createElement(a);if(!s)return;var o=n.attrs;if(it(o)){var l=Rf[a]||[];Object.keys(o).forEach(function(v){var c=o[v];switch(v){case"class":Array.isArray(c)&&(c=c.join(" "));case"style":s.setAttribute(v,c),r&&s.setAttribute(r,"");break;default:l.indexOf(v)!==-1&&s.setAttribute(v,Y_(a,v,c))}})}q_(n,s,i);var u=n.children;Array.isArray(u)&&u.length&&Pf(n.children,s,r,i),t.appendChild(s)}else n.type==="text"&&typeof n.text=="string"&&n.text!==""&&t.appendChild(document.createTextNode(z_(n.text)))}),t}function q_(e,t,r){["a","img"].includes(e.name)&&r&&(t.setAttribute("onClick","return false;"),t.addEventListener("click",i=>{r(i,{node:e}),i.stopPropagation()},!0))}var X_={nodes:{type:[Array,String],default:function(){return[]}}},K_=de({name:"RichText",compatConfig:{MODE:3},props:X_,emits:["click","touchstart","touchmove","touchcancel","touchend","longpress"],setup(e,t){var{emit:r,attrs:i}=t,n=xt(),a=$(null),s=Me(a,r),o=!!i.onItemclick;function l(v){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s("itemclick",v,c)}function u(v){var c;typeof v=="string"&&(v=j_(v));var m=Pf(v,document.createDocumentFragment(),(n==null||(c=n.root)===null||c===void 0?void 0:c.type).__scopeId||"",o&&l);a.value.firstElementChild.innerHTML="",a.value.firstElementChild.appendChild(m)}return U(()=>e.nodes,v=>{u(v)}),Ie(()=>{u(e.nodes)}),()=>I("uni-rich-text",{ref:a},[I("div",null,null)],512)}}),ws=ea(!0),G_={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},Z_=de({name:"ScrollView",compatConfig:{MODE:3},props:G_,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,t){var{emit:r,slots:i}=t,n=$(null),a=$(null),s=$(null),o=$(null),l=$(null),u=Me(n,r),{state:v,scrollTopNumber:c,scrollLeftNumber:m}=J_(e);Q_(e,v,c,m,u,n,a,o,r);var g=Q(()=>{var _="";return e.scrollX?_+="overflow-x:auto;":_+="overflow-x:hidden;",e.scrollY?_+="overflow-y:auto;":_+="overflow-y:hidden;",_});return()=>{var{refresherEnabled:_,refresherBackground:b,refresherDefaultStyle:w}=e,{refresherHeight:p,refreshState:h,refreshRotate:f}=v;return I("uni-scroll-view",{ref:n},[I("div",{ref:s,class:"uni-scroll-view"},[I("div",{ref:a,style:g.value,class:"uni-scroll-view"},[I("div",{ref:o,class:"uni-scroll-view-content"},[_?I("div",{ref:l,style:{backgroundColor:b,height:p+"px"},class:"uni-scroll-view-refresher"},[w!=="none"?I("div",{class:"uni-scroll-view-refresh"},[I("div",{class:"uni-scroll-view-refresh-inner"},[h=="pulling"?I("svg",{key:"refresh__icon",style:{transform:"rotate("+f+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[I("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),I("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,h=="refreshing"?I("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[I("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,w=="none"?i.refresher&&i.refresher():null],4):null,i.default&&i.default()],512)],4)],512)],512)}}});function J_(e){var t=Q(()=>Number(e.scrollTop)||0),r=Q(()=>Number(e.scrollLeft)||0),i=Ee({lastScrollTop:t.value,lastScrollLeft:r.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:i,scrollTopNumber:t,scrollLeftNumber:r}}function Q_(e,t,r,i,n,a,s,o,l){var u=!1,v=0,c=!1,m=()=>{},g=Q(()=>{var x=Number(e.upperThreshold);return isNaN(x)?50:x}),_=Q(()=>{var x=Number(e.lowerThreshold);return isNaN(x)?50:x});function b(x,E){var C=s.value,M=0,W="";if(x<0?x=0:E==="x"&&x>C.scrollWidth-C.offsetWidth?x=C.scrollWidth-C.offsetWidth:E==="y"&&x>C.scrollHeight-C.offsetHeight&&(x=C.scrollHeight-C.offsetHeight),E==="x"?M=C.scrollLeft-x:E==="y"&&(M=C.scrollTop-x),M!==0){var V=o.value;V.style.transition="transform .3s ease-out",V.style.webkitTransition="-webkit-transform .3s ease-out",E==="x"?W="translateX("+M+"px) translateZ(0)":E==="y"&&(W="translateY("+M+"px) translateZ(0)"),V.removeEventListener("transitionend",m),V.removeEventListener("webkitTransitionEnd",m),m=()=>d(x,E),V.addEventListener("transitionend",m),V.addEventListener("webkitTransitionEnd",m),E==="x"?C.style.overflowX="hidden":E==="y"&&(C.style.overflowY="hidden"),V.style.transform=W,V.style.webkitTransform=W}}function w(x){var E=x.target;n("scroll",x,{scrollLeft:E.scrollLeft,scrollTop:E.scrollTop,scrollHeight:E.scrollHeight,scrollWidth:E.scrollWidth,deltaX:t.lastScrollLeft-E.scrollLeft,deltaY:t.lastScrollTop-E.scrollTop}),e.scrollY&&(E.scrollTop<=g.value&&t.lastScrollTop-E.scrollTop>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(n("scrolltoupper",x,{direction:"top"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollTop+E.offsetHeight+_.value>=E.scrollHeight&&t.lastScrollTop-E.scrollTop<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(n("scrolltolower",x,{direction:"bottom"}),t.lastScrollToLowerTime=x.timeStamp)),e.scrollX&&(E.scrollLeft<=g.value&&t.lastScrollLeft-E.scrollLeft>0&&x.timeStamp-t.lastScrollToUpperTime>200&&(n("scrolltoupper",x,{direction:"left"}),t.lastScrollToUpperTime=x.timeStamp),E.scrollLeft+E.offsetWidth+_.value>=E.scrollWidth&&t.lastScrollLeft-E.scrollLeft<0&&x.timeStamp-t.lastScrollToLowerTime>200&&(n("scrolltolower",x,{direction:"right"}),t.lastScrollToLowerTime=x.timeStamp)),t.lastScrollTop=E.scrollTop,t.lastScrollLeft=E.scrollLeft}function p(x){e.scrollY&&(e.scrollWithAnimation?b(x,"y"):s.value.scrollTop=x)}function h(x){e.scrollX&&(e.scrollWithAnimation?b(x,"x"):s.value.scrollLeft=x)}function f(x){if(x){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(x)){console.error("id error: scroll-into-view=".concat(x));return}var E=a.value.querySelector("#"+x);if(E){var C=s.value.getBoundingClientRect(),M=E.getBoundingClientRect();if(e.scrollX){var W=M.left-C.left,V=s.value.scrollLeft,q=V+W;e.scrollWithAnimation?b(q,"x"):s.value.scrollLeft=q}if(e.scrollY){var he=M.top-C.top,R=s.value.scrollTop,B=R+he;e.scrollWithAnimation?b(B,"y"):s.value.scrollTop=B}}}}function d(x,E){o.value.style.transition="",o.value.style.webkitTransition="",o.value.style.transform="",o.value.style.webkitTransform="";var C=s.value;E==="x"?(C.style.overflowX=e.scrollX?"auto":"hidden",C.scrollLeft=x):E==="y"&&(C.style.overflowY=e.scrollY?"auto":"hidden",C.scrollTop=x),o.value.removeEventListener("transitionend",m),o.value.removeEventListener("webkitTransitionEnd",m)}function y(x){switch(x){case"refreshing":t.refresherHeight=e.refresherThreshold,u||(u=!0,n("refresherrefresh",{},{}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":u=!1,t.refresherHeight=v=0,x==="restore"&&(c=!1,n("refresherrestore",{},{})),x==="refresherabort"&&c&&(c=!1,n("refresherabort",{},{}));break}t.refreshState=x}Ie(()=>{sr(()=>{p(r.value),h(i.value)}),f(e.scrollIntoView);var x=function(q){q.stopPropagation(),w(q)},E={x:0,y:0},C=null,M=function(q){var he=q.touches[0].pageX,R=q.touches[0].pageY,B=s.value;if(Math.abs(he-E.x)>Math.abs(R-E.y))if(e.scrollX){if(B.scrollLeft===0&&he>E.x){C=!1;return}else if(B.scrollWidth===B.offsetWidth+B.scrollLeft&&heE.y)C=!1,e.refresherEnabled&&q.cancelable!==!1&&q.preventDefault();else if(B.scrollHeight===B.offsetHeight+B.scrollTop&&R0&&(c=!0,n("refresherpulling",q,{deltaY:ee})));var ie=t.refresherHeight/e.refresherThreshold;t.refreshRotate=(ie>1?1:ie)*360}},W=function(q){q.touches.length===1&&(Mt({disable:!0}),E={x:q.touches[0].pageX,y:q.touches[0].pageY})},V=function(q){E={x:0,y:0},Mt({disable:!1}),t.refresherHeight>=e.refresherThreshold?y("refreshing"):y("refresherabort")};s.value.addEventListener("touchstart",W,ws),s.value.addEventListener("touchmove",M),s.value.addEventListener("scroll",x,ws),s.value.addEventListener("touchend",V,ws),fn(),xe(()=>{s.value.removeEventListener("touchstart",W),s.value.removeEventListener("touchmove",M),s.value.removeEventListener("scroll",x),s.value.removeEventListener("touchend",V)})}),Ia(()=>{e.scrollY&&(s.value.scrollTop=t.lastScrollTop),e.scrollX&&(s.value.scrollLeft=t.lastScrollLeft)}),U(r,x=>{p(x)}),U(i,x=>{h(x)}),U(()=>e.scrollIntoView,x=>{f(x)}),U(()=>e.refresherTriggered,x=>{x===!0?y("refreshing"):x===!1&&y("restore")})}var eb={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}},tb=de({name:"Slider",props:eb,emits:["changing","change"],setup(e,t){var{emit:r}=t,i=$(null),n=$(null),a=$(null),s=$(Number(e.value));U(()=>e.value,c=>{s.value=Number(c)});var o=Me(i,r),l=rb(e,s),{_onClick:u,_onTrack:v}=ib(e,s,i,n,o);return Ie(()=>{cn(a.value,v)}),()=>{var{setBgColor:c,setBlockBg:m,setActiveColor:g,setBlockStyle:_}=l;return I("uni-slider",{ref:i,onClick:Vt(u)},[I("div",{class:"uni-slider-wrapper"},[I("div",{class:"uni-slider-tap-area"},[I("div",{style:c.value,class:"uni-slider-handle-wrapper"},[I("div",{ref:a,style:m.value,class:"uni-slider-handle"},null,4),I("div",{style:_.value,class:"uni-slider-thumb"},null,4),I("div",{style:g.value,class:"uni-slider-track"},null,4)],4)]),Or(I("span",{ref:n,class:"uni-slider-value"},[s.value],512),[[kr,e.showValue]])]),I("slot",null,null)],8,["onClick"])}}});function rb(e,t){var r=()=>{var s=Number(e.max),o=Number(e.min);return 100*(t.value-o)/(s-o)+"%"},i=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",n=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9",a={setBgColor:Q(()=>({backgroundColor:i()})),setBlockBg:Q(()=>({left:r()})),setActiveColor:Q(()=>({backgroundColor:n(),width:r()})),setBlockStyle:Q(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:r(),backgroundColor:e.blockColor}))};return a}function ib(e,t,r,i,n){var a=c=>{e.disabled||(o(c),n("change",c,{value:t.value}))},s=c=>{var m=Number(e.max),g=Number(e.min),_=Number(e.step);return cm?m:nb.mul.call(Math.round((c-g)/_),_)+g},o=c=>{var m=Number(e.max),g=Number(e.min),_=i.value,b=getComputedStyle(_,null).marginLeft,w=_.offsetWidth;w=w+parseInt(b);var p=r.value,h=p.offsetWidth-(e.showValue?w:0),f=p.getBoundingClientRect().left,d=(c.x-f)*(m-g)/h+g;t.value=s(d)},l=c=>{if(!e.disabled)return c.detail.state==="move"?(o({x:c.detail.x}),n("changing",c,{value:t.value}),!1):c.detail.state==="end"&&n("change",c,{value:t.value})},u=pe(lt,!1);if(u){var v={reset:()=>t.value=Number(e.min),submit:()=>{var c=["",null];return e.name!==""&&(c[0]=e.name,c[1]=t.value),c}};u.addField(v),xe(()=>{u.removeField(v)})}return{_onClick:a,_onTrack:l}}var nb={mul:function(e){var t=0,r=this.toString(),i=e.toString();try{t+=r.split(".")[1].length}catch(n){}try{t+=i.split(".")[1].length}catch(n){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)}},ab={indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}};function sb(e){var t=Q(()=>{var a=Number(e.interval);return isNaN(a)?5e3:a}),r=Q(()=>{var a=Number(e.duration);return isNaN(a)?500:a}),i=Q(()=>{var a=Math.round(e.displayMultipleItems);return isNaN(a)?1:a}),n=Ee({interval:t,duration:r,displayMultipleItems:i,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1});return n}function ob(e,t,r,i,n,a){function s(){o&&(clearTimeout(o),o=null)}var o=null,l=!0,u=0,v=1,c=null,m=!1,g=0,_,b="",w,p=Q(()=>e.circular&&r.value.length>t.displayMultipleItems);function h(R){if(!l)for(var B=r.value,ee=B.length,ie=R+t.displayMultipleItems,z=0;z=J.length&&(R-=J.length),R=_%1>.5||_<0?R-1:R,a("transition",{},{dx:e.vertical?0:R*z.offsetWidth,dy:e.vertical?R*z.offsetHeight:0})}function d(){c&&(f(c.toPos),c=null)}function y(R){var B=r.value.length;if(!B)return-1;var ee=(Math.round(R)%B+B)%B;if(p.value){if(B<=t.displayMultipleItems)return 0}else if(ee>B-t.displayMultipleItems)return B-t.displayMultipleItems;return ee}function x(){c=null}function E(){if(!c){m=!1;return}var R=c,B=R.toPos,ee=R.acc,ie=R.endTime,z=R.source,J=ie-Date.now();if(J<=0){f(B),c=null,m=!1,_=null;var ne=r.value[t.current];if(ne){var we=ne.getItemId();a("animationfinish",{},{current:t.current,currentItemId:we,source:z})}return}var se=ee*J*J/2,G=B+se;f(G),w=requestAnimationFrame(E)}function C(R,B,ee){x();var ie=t.duration,z=r.value.length,J=u;if(p.value)if(ee<0){for(;JR;)J-=z}else if(ee>0){for(;J>R;)J-=z;for(;J+zR;)J-=z;J+z-R0&&v<1||(v=1)}var J=u;u=-2;var ne=t.current;ne>=0?(l=!1,t.userTracking?(f(J+ne-g),g=ne):(f(ne),e.autoplay&&M())):(l=!0,f(-t.displayMultipleItems-1))}U([()=>e.current,()=>e.currentItemId,()=>[...r.value]],()=>{var R=-1;if(e.currentItemId)for(var B=0,ee=r.value;Be.vertical,()=>p.value,()=>t.displayMultipleItems,()=>[...r.value]],W),U(()=>t.interval,()=>{o&&(s(),M())});function V(R,B){var ee=b;b="";var ie=r.value;if(!ee){var z=ie.length;C(R,"",p.value&&B+(z-R)%z>z/2?1:0)}var J=ie[R];if(J){var ne=t.currentItemId=J.getItemId();a("change",{},{current:t.current,currentItemId:ne,source:ee})}}U(()=>t.current,(R,B)=>{V(R,B),n("update:current",R)}),U(()=>t.currentItemId,R=>{n("update:currentItemId",R)});function q(R){R?M():s()}U(()=>e.autoplay&&!t.userTracking,q),q(e.autoplay&&!t.userTracking),Ie(()=>{var R=!1,B=0,ee=0;function ie(){s(),g=u,B=0,ee=Date.now(),x()}function z(ne){var we=ee;ee=Date.now();var se=r.value.length,G=se-t.displayMultipleItems;function re(Ge){return .5-.25/(Ge+.5)}function oe(Ge,At){var Ae=g+Ge;B=.6*B+.4*At,p.value||(Ae<0||Ae>G)&&(Ae<0?Ae=-re(-Ae):Ae>G&&(Ae=G+re(Ae-G)),B=0),f(Ae)}var Ce=ee-we||1,Oe=i.value;e.vertical?oe(-ne.dy/Oe.offsetHeight,-ne.ddy/Ce):oe(-ne.dx/Oe.offsetWidth,-ne.ddx/Ce)}function J(ne){t.userTracking=!1;var we=B/Math.abs(B),se=0;!ne&&Math.abs(B)>.2&&(se=.5*we);var G=y(u+se);ne?f(g):(b="touch",t.current=G,C(G,"touch",se!==0?se:G===0&&p.value&&u>=1?1:0))}cn(i.value,ne=>{if(!e.disableTouch&&!l){if(ne.detail.state==="start")return t.userTracking=!0,R=!1,ie();if(ne.detail.state==="end")return J(!1);if(ne.detail.state==="cancel")return J(!0);if(t.userTracking){if(!R){R=!0;var we=Math.abs(ne.detail.dx),se=Math.abs(ne.detail.dy);if((we>=se&&e.vertical||we<=se&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&M();return}}return z(ne.detail),!1}}})}),yt(()=>{s(),cancelAnimationFrame(w)});function he(R){C(t.current=R,b="click",p.value?1:0)}return{onSwiperDotClick:he}}var lb=de({name:"Swiper",props:ab,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,t){var{slots:r,emit:i}=t,n=$(null),a=Me(n,i),s=$(null),o=$(null),l=sb(e),u=Q(()=>{var h={};return(e.nextMargin||e.previousMargin)&&(h=e.vertical?{left:0,right:0,top:Ut(e.previousMargin,!0),bottom:Ut(e.nextMargin,!0)}:{top:0,bottom:0,left:Ut(e.previousMargin,!0),right:Ut(e.nextMargin,!0)}),h}),v=Q(()=>{var h=Math.abs(100/l.displayMultipleItems)+"%";return{width:e.vertical?"100%":h,height:e.vertical?h:"100%"}}),c=[],m=[],g=$([]);function _(){for(var h=[],f=function(y){var x=c[y];x instanceof Element||(x=x.el);var E=m.find(C=>x===C.rootRef.value);E&&h.push(Li(E))},d=0;d{c=o.value.children,_()});var b=function(h){m.push(h),_()};Ne("addSwiperContext",b);var w=function(h){var f=m.indexOf(h);f>=0&&(m.splice(f,1),_())};Ne("removeSwiperContext",w);var{onSwiperDotClick:p}=ob(e,l,g,o,i,a);return()=>{var h=r.default&&r.default();return c=ps(h),I("uni-swiper",{ref:n},[I("div",{ref:s,class:"uni-swiper-wrapper"},[I("div",{class:"uni-swiper-slides",style:u.value},[I("div",{ref:o,class:"uni-swiper-slide-frame",style:v.value},[h],4)],4),e.indicatorDots&&I("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[g.value.map((f,d,y)=>I("div",{onClick:()=>p(d),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":d=l.current||d{var a=pe("addSwiperContext");a&&a(n)}),yt(()=>{var a=pe("removeSwiperContext");a&&a(n)}),()=>I("uni-swiper-item",{ref:i,style:{position:"absolute",width:"100%",height:"100%"}},[r.default&&r.default()],512)}}),cb={name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},vb=de({name:"Switch",props:cb,emits:["change"],setup(e,t){var{emit:r}=t,i=$(null),n=$(e.checked),a=db(e,n),s=Me(i,r);U(()=>e.checked,l=>{n.value=l});var o=l=>{e.disabled||(n.value=!n.value,s("change",l,{value:n.value}))};return a&&(a.addHandler(o),xe(()=>{a.removeHandler(o)})),rn(e,{"label-click":o}),()=>{var{color:l,type:u}=e,v=Fr(e,"disabled");return I("uni-switch",ze({ref:i},v,{onClick:o}),[I("div",{class:"uni-switch-wrapper"},[Or(I("div",{class:["uni-switch-input",[n.value?"uni-switch-input-checked":""]],style:{backgroundColor:n.value?l:"#DFDFDF",borderColor:n.value?l:"#DFDFDF"}},null,6),[[kr,u==="switch"]]),Or(I("div",{class:"uni-checkbox-input"},[n.value?Ji(Zi,e.color,22):""],512),[[kr,u==="checkbox"]])])],16,["onClick"])}}});function db(e,t){var r=pe(lt,!1),i=pe($r,!1),n={submit:()=>{var a=["",null];return e.name&&(a[0]=e.name,a[1]=t.value),a},reset:()=>{t.value=!1}};return r&&(r.addField(n),yt(()=>{r.removeField(n)})),i}var qr={ensp:"\u2002",emsp:"\u2003",nbsp:"\xA0"};function hb(e,t){return e.replace(/\\n/g,wr).split(wr).map(r=>gb(r,t))}function gb(e,t){var{space:r,decode:i}=t;return!e||(r&&qr[r]&&(e=e.replace(/ /g,qr[r])),!i)?e:e.replace(/ /g,qr.nbsp).replace(/ /g,qr.ensp).replace(/ /g,qr.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")}var pb=ce({},hf,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:""}}),ys=!1;function mb(){var e="(prefers-color-scheme: dark)";ys=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}var _b=de({name:"Textarea",props:pb,emit:["confirm","linechange",...gf],setup(e,t){var{emit:r}=t,i=$(null),{fieldRef:n,state:a,scopedAttrsState:s,fixDisabledColor:o,trigger:l}=pf(e,i,r),u=Q(()=>a.value.split(wr)),v=Q(()=>["done","go","next","search","send"].includes(e.confirmType)),c=$(0),m=$(null);U(()=>c.value,p=>{var h=i.value,f=m.value,d=parseFloat(getComputedStyle(h).lineHeight);isNaN(d)&&(d=f.offsetHeight);var y=Math.round(p/d);l("linechange",{},{height:p,heightRpx:750/window.innerWidth*p,lineCount:y}),e.autoHeight&&(h.style.height=p+"px")});function g(p){var{height:h}=p;c.value=h}function _(p){l("confirm",p,{value:a.value})}function b(p){p.key==="Enter"&&v.value&&p.preventDefault()}function w(p){if(p.key==="Enter"&&v.value){_(p);var h=p.target;h.blur()}}return mb(),()=>{var p=e.disabled&&o?I("textarea",{ref:n,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":ys},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:h=>h.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):I("textarea",{ref:n,value:a.value,disabled:!!e.disabled,maxlength:a.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":ys},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:b,onKeyup:w},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return I("uni-textarea",{ref:i},[I("div",{class:"uni-textarea-wrapper"},[Or(I("div",ze(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[kr,!a.value.length]]),I("div",{ref:m,class:"uni-textarea-line"},[" "],512),I("div",{class:"uni-textarea-compute"},[u.value.map(h=>I("div",null,[h.trim()?h:"."])),I(Ht,{initial:!0,onResize:g},null,8,["initial","onResize"])]),e.confirmType==="search"?I("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[p],40,["onSubmit"]):p])],512)}}});ce({},Vm);function hn(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function Lf(e,t,r){!e||ct(r||Ct(),e,(i,n)=>{var{type:a,data:s}=i;t(a,s,n)})}function Nf(e){!e||Yd(Ct(),e)}function gn(e,t,r,i){var n=xt(),a=n.proxy;Ie(()=>{Lf(t||hn(a),e,i),(r||!t)&&U(()=>a.id,(s,o)=>{Lf(hn(a,s),e,i),Nf(o&&hn(a,o))})}),xe(()=>{Nf(t||hn(a))})}var bb=0;function pn(e){var t=Qi(),r=xt(),i=r.proxy,n=i.$options.name.toLowerCase(),a=e||i.id||"context".concat(bb++);return Ie(()=>{var s=i.$el;s.__uniContextInfo={id:a,type:n,page:t}}),"".concat(n,".").concat(a)}function wb(e){return e.__uniContextInfo}class kf extends Vu{constructor(t,r,i,n,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,n,a,[...tn.props,...s])}call(t){var r={animation:this.$props.animation,$el:this.$};t.call(r)}setAttribute(t,r){return t==="animation"&&(this.$animate=!0),super.setAttribute(t,r)}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!!this.$animate){if(t)return this.call(tn.mounted);this.$animate&&(this.$animate=!1,this.call(tn.watch.animation.handler))}}}var yb=["space","decode"];class Sb extends kf{constructor(t,r,i,n){super(t,document.createElement("uni-text"),r,i,n,yb);this._text=""}init(t){this._text=t.t||"",super.init(t)}setText(t){this._text=t,this.update()}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{$props:{space:r,decode:i}}=this;this.$.textContent=hb(this._text,{space:r,decode:i}).join(wr),super.update(t)}}class xb extends lr{constructor(t,r,i,n){super(t,"#text",r,document.createTextNode(""));this.init(n),this.insert(r,i)}}var gy="",Tb=["hover-class","hover-stop-propagation","hover-start-time","hover-stay-time"];class Eb extends kf{constructor(t,r,i,n,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];super(t,r,i,n,a,[...Tb,...s])}update(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.$props["hover-class"];r&&r!=="none"?(this._hover||(this._hover=new Cb(this.$,this.$props)),this._hover.addEvent()):this._hover&&this._hover.removeEvent(),super.update(t)}}class Cb{constructor(t,r){this._listening=!1,this._hovering=!1,this._hoverTouch=!1,this.$=t,this.props=r,this.__hoverTouchStart=this._hoverTouchStart.bind(this),this.__hoverTouchEnd=this._hoverTouchEnd.bind(this),this.__hoverTouchCancel=this._hoverTouchCancel.bind(this)}get hovering(){return this._hovering}set hovering(t){this._hovering=t;var r=this.props["hover-class"];t?this.$.classList.add(r):this.$.classList.remove(r)}addEvent(){this._listening||(this._listening=!0,this.$.addEventListener("touchstart",this.__hoverTouchStart),this.$.addEventListener("touchend",this.__hoverTouchEnd),this.$.addEventListener("touchcancel",this.__hoverTouchCancel))}removeEvent(){!this._listening||(this._listening=!1,this.$.removeEventListener("touchstart",this.__hoverTouchStart),this.$.removeEventListener("touchend",this.__hoverTouchEnd),this.$.removeEventListener("touchcancel",this.__hoverTouchCancel))}_hoverTouchStart(t){if(!t._hoverPropagationStopped){var r=this.props["hover-class"];!r||r==="none"||this.$.disabled||t.touches.length>1||(this.props["hover-stop-propagation"]&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(()=>{this.hovering=!0,this._hoverTouch||this._hoverReset()},this.props["hover-start-time"]))}}_hoverTouchEnd(){this._hoverTouch=!1,this.hovering&&this._hoverReset()}_hoverReset(){requestAnimationFrame(()=>{clearTimeout(this._hoverStayTimer),this._hoverStayTimer=setTimeout(()=>{this.hovering=!1},this.props["hover-stay-time"])})}_hoverTouchCancel(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}class Ob extends Eb{constructor(t,r,i,n){super(t,document.createElement("uni-view"),r,i,n)}}function Bf(){return plus.navigator.isImmersedStatusbar()?Math.round(plus.os.name==="iOS"?plus.navigator.getSafeAreaInsets().top:plus.navigator.getStatusbarHeight()):0}function Df(){var e=plus.webview.currentWebview(),t=e.getStyle(),r=t&&t.titleNView;return r&&r.type==="default"?Ro+Bf():0}var Ff=Symbol("onDraw");function Ib(e){for(var t;e;){var r=getComputedStyle(e),i=r.transform||r.webkitTransform;t=i&&i!=="none"?!1:t,t=r.position==="fixed"?!0:t,e=e.parentElement}return t}function Ss(e,t){return Q(()=>{var r={};return Object.keys(e).forEach(i=>{if(!(t&&t.includes(i))){var n=e[i];n=i==="src"?et(n):n,r[i.replace(/[A-Z]/g,a=>"-"+a.toLowerCase())]=n}}),r})}function Xr(e){var t=Ee({top:"0px",left:"0px",width:"0px",height:"0px",position:"static"}),r=$(!1);function i(){var c=e.value,m=c.getBoundingClientRect(),g=["width","height"];r.value=m.width===0||m.height===0,r.value||(t.position=Ib(c)?"absolute":"static",g.push("top","left")),g.forEach(_=>{var b=m[_];b=_==="top"?b+(t.position==="static"?document.documentElement.scrollTop||document.body.scrollTop||0:Df()):b,t[_]=b+"px"})}var n=null;function a(){n&&cancelAnimationFrame(n),n=requestAnimationFrame(()=>{n=null,i()})}window.addEventListener("updateview",a);var s=[],o=[];function l(c){o?o.push(c):c()}function u(c){var m=pe(Ff),g=_=>{c(_),s.forEach(b=>b(t)),s=null};l(()=>{m?m(g):g({top:"0px",left:"0px",width:Number.MAX_SAFE_INTEGER+"px",height:Number.MAX_SAFE_INTEGER+"px",position:"static"})})}var v=function(c){s?s.push(c):c(t)};return Ne(Ff,v),Ie(()=>{i(),o.forEach(c=>c()),o=null}),xe(()=>{window.removeEventListener("updateview",a)}),{position:t,hidden:r,onParentReady:u}}var Mb=de({name:"Ad",props:{adpid:{type:[Number,String],default:""},data:{type:Object,default:null},dataCount:{type:Number,default:5},channel:{type:String,default:""}},setup(e,t){var{emit:r}=t,i=$(null),n=$(null),a=Me(i,r),s=Ss(e,["id"]),{position:o,onParentReady:l}=Xr(n),u;return l(()=>{u=plus.ad.createAdView(Object.assign({},s.value,o)),plus.webview.currentWebview().append(u),u.setDislikeListener(c=>{n.value.style.height="0",window.dispatchEvent(new CustomEvent("updateview")),a("close",{},c)}),u.setRenderingListener(c=>{c.result===0?(n.value.style.height=c.height+"px",window.dispatchEvent(new CustomEvent("updateview"))):a("error",{},{errCode:c.result})}),u.setAdClickedListener(()=>{a("adclicked",{},{})}),U(()=>o,c=>u.setStyle(c),{deep:!0}),U(()=>e.adpid,c=>{c&&v()}),U(()=>e.data,c=>{c&&u.renderingBind(c)});function v(){var c={adpid:e.adpid,width:o.width,count:e.dataCount};e.channel!==void 0&&(c.ext={channel:e.channel}),UniViewJSBridge.invokeServiceMethod("getAdData",c,m=>{var{code:g,data:_,message:b}=m;g===0?u.renderingBind(_):a("error",{},{errMsg:b})})}e.adpid&&v()}),xe(()=>{u&&u.close()}),()=>I("uni-ad",{ref:i},[I("div",{ref:n,class:"uni-ad-container"},null,512)],512)}});class _e extends lr{constructor(t,r,i,n,a,s,o){super(t,r,n);var l=document.createElement("div");l.__vueParent=Ab(this),this.$props=Ee({}),this.init(s),this.$app=lu($w(i,this.$props)),this.$app.mount(l),this.$=l.firstElementChild,o&&(this.$holder=this.$.querySelector(o)),te(s,"t")&&this.setText(s.t||""),s.a&&te(s.a,wi)&&us(this.$,s.a[wi]),this.insert(n,a),Kl()}init(t){var{a:r,e:i,w:n}=t;r&&(this.setWxsProps(r),Object.keys(r).forEach(a=>{this.setAttr(a,r[a])})),te(t,"s")&&this.setAttr("style",t.s),i&&Object.keys(i).forEach(a=>{this.addEvent(a,i[a])}),n&&this.addWxsEvents(t.w)}setText(t){(this.$holder||this.$).textContent=t}addWxsEvent(t,r,i){this.$props[t]=Uu(this.$,r,i)}addEvent(t,r){this.$props[t]=$u(this.id,r,ra(t)[1])}removeEvent(t){this.$props[t]=null}setAttr(t,r){if(t===wi)this.$&&us(this.$,r);else if(t===Oo)this.$.__ownerId=r;else if(t===Io)Ot(()=>Ru(this,r),Iu);else if(t===na){var i=ls(this.$||Ke(this.pid).$,r),n=this.$props.style;it(i)&&it(n)?Object.keys(i).forEach(a=>{n[a]=i[a]}):this.$props.style=i}else r=ls(this.$||Ke(this.pid).$,r),this.wxsPropsInvoke(t,r,!0)||(this.$props[t]=r)}removeAttr(t){this.$props[t]=null}remove(){this.removeUniParent(),this.isUnmounted=!0,this.$app.unmount(),zf(this.id),this.removeUniChildren()}appendChild(t){return(this.$holder||this.$).appendChild(t)}insertBefore(t,r){return(this.$holder||this.$).insertBefore(t,r)}}class Kr extends _e{constructor(t,r,i,n,a,s,o){super(t,r,i,n,a,s,o)}getRebuildFn(){return this._rebuild||(this._rebuild=this.rebuild.bind(this)),this._rebuild}setText(t){return Ot(this.getRebuildFn(),rs),super.setText(t)}appendChild(t){return Ot(this.getRebuildFn(),rs),super.appendChild(t)}insertBefore(t,r){return Ot(this.getRebuildFn(),rs),super.insertBefore(t,r)}rebuild(){var t=this.$.__vueParentComponent;t.rebuild&&t.rebuild()}}function Ab(e){for(;e&&e.pid>0;)if(e=Ke(e.pid),e){var{__vueParentComponent:t}=e.$;if(t)return t}return null}function xs(e,t,r){e.childNodes.forEach(i=>{i instanceof Element?i.className.indexOf(t)===-1&&e.removeChild(i):e.removeChild(i)}),e.appendChild(document.createTextNode(r))}class Rb extends _e{constructor(t,r,i,n){super(t,"uni-ad",Mb,r,i,n)}}var py="";class Pb extends _e{constructor(t,r,i,n){super(t,"uni-button",Gm,r,i,n)}}class fr extends lr{constructor(t,r,i,n){super(t,r,i);this.insert(i,n)}}class Lb extends fr{constructor(t,r,i){super(t,"uni-camera",r,i)}}var my="";class Nb extends _e{constructor(t,r,i,n){super(t,"uni-canvas",n0,r,i,n,"uni-canvas > div")}}var _y="";class kb extends _e{constructor(t,r,i,n){super(t,"uni-checkbox",c0,r,i,n,".uni-checkbox-wrapper")}setText(t){xs(this.$holder,"uni-checkbox-input",t)}}var by="";class Bb extends _e{constructor(t,r,i,n){super(t,"uni-checkbox-group",l0,r,i,n)}}var wy="",Db=0;function $f(e,t,r){var{position:i,hidden:n,onParentReady:a}=Xr(e),s,o;a(l=>{var u=Q(()=>{var f={};for(var d in i){var y=i[d],x=parseFloat(y),E=parseFloat(l[d]);if(d==="top"||d==="left")y=Math.max(x,E)+"px";else if(d==="width"||d==="height"){var C=d==="width"?"left":"top",M=parseFloat(l[C]),W=parseFloat(i[C]),V=Math.max(M-W,0),q=Math.max(W+x-(M+E),0);y=Math.max(x-V-q,0)+"px"}f[d]=y}return f}),v=["borderRadius","borderColor","borderWidth","backgroundColor"],c=["paddingTop","paddingRight","paddingBottom","paddingLeft","color","textAlign","lineHeight","fontSize","fontWeight","textOverflow","whiteSpace"],m=[],g={start:"left",end:"right"};function _(f){var d=getComputedStyle(e.value);return v.concat(c,m).forEach(y=>{f[y]=d[y]}),f}var b=Ee(_({})),w=null;o=function(){w&&cancelAnimationFrame(w),w=requestAnimationFrame(()=>{w=null,_(b)})},window.addEventListener("updateview",o);function p(){var f={};for(var d in f){var y=f[d];(d==="top"||d==="left")&&(y=Math.min(parseFloat(y)-parseFloat(l[d]),0)+"px"),f[d]=y}return f}var h=Q(()=>{var f=p(),d=[{tag:"rect",position:f,rectStyles:{color:b.backgroundColor,radius:b.borderRadius,borderColor:b.borderColor,borderWidth:b.borderWidth}}];if("src"in r)r.src&&d.push({tag:"img",position:f,src:r.src});else{var y=parseFloat(b.lineHeight)-parseFloat(b.fontSize),x=parseFloat(f.width)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight);x=x<0?0:x;var E=parseFloat(f.height)-parseFloat(b.paddingTop)-y/2-parseFloat(b.paddingBottom);E=E<0?0:E,d.push({tag:"font",position:{top:"".concat(parseFloat(f.top)+parseFloat(b.paddingTop)+y/2,"px"),left:"".concat(parseFloat(f.left)+parseFloat(b.paddingLeft),"px"),width:"".concat(x,"px"),height:"".concat(E,"px")},textStyles:{align:g[b.textAlign]||b.textAlign,color:b.color,decoration:"none",lineSpacing:"".concat(y,"px"),margin:"0px",overflow:b.textOverflow,size:b.fontSize,verticalAlign:"top",weight:b.fontWeight,whiteSpace:b.whiteSpace},text:r.text})}return d});s=new plus.nativeObj.View("cover-".concat(Date.now(),"-").concat(Db++),u.value,h.value),plus.webview.currentWebview().append(s),n.value&&s.hide(),s.addEventListener("click",()=>{t("click",{},{})}),U(()=>n.value,f=>{s[f?"hide":"show"]()}),U(()=>u.value,f=>{s.setStyle(f)},{deep:!0}),U(()=>h.value,()=>{s.reset(),s.draw(h.value)},{deep:!0})}),xe(()=>{s&&s.close(),o&&window.removeEventListener("updateview",o)})}var Fb="_doc/uniapp_temp/",$b={src:{type:String,default:""},autoSize:{type:[Boolean,String],default:!1}};function Wb(e,t,r){var i=$(""),n;function a(){t.src="",i.value=e.autoSize?"width:0;height:0;":"";var o=e.src?et(e.src):"";o.indexOf("http://")===0||o.indexOf("https://")===0?(n=plus.downloader.createDownload(o,{filename:Fb+"/download/"},(l,u)=>{u===200?s(l.filename):r("error",{},{errMsg:"error"})}),n.start()):o&&s(o)}function s(o){t.src=o,plus.io.getImageInfo({src:o,success:l=>{var{width:u,height:v}=l;e.autoSize&&(i.value="width:".concat(u,"px;height:").concat(v,"px;"),window.dispatchEvent(new CustomEvent("updateview"))),r("load",{},{width:u,height:v})},fail:()=>{r("error",{},{errMsg:"error"})}})}return e.src&&a(),U(()=>e.src,a),xe(()=>{n&&n.abort()}),i}var Wf=de({name:"CoverImage",props:$b,emits:["click","load","error"],setup(e,t){var{emit:r}=t,i=$(null),n=Me(i,r),a=Ee({src:""}),s=Wb(e,a,n);return $f(i,n,a),()=>I("uni-cover-image",{ref:i,style:s.value},[I("div",{class:"uni-cover-image"},null)],4)}});class Ub extends _e{constructor(t,r,i,n){super(t,"uni-cover-image",Wf,r,i,n)}}var yy="",Vb=de({name:"CoverView",emits:["click"],setup(e,t){var{emit:r}=t,i=$(null),n=$(null),a=Me(i,r),s=Ee({text:""});return $f(i,a,s),jr(()=>{var o=n.value.childNodes[0];s.text=o&&o instanceof Text?o.textContent:"",window.dispatchEvent(new CustomEvent("updateview"))}),()=>I("uni-cover-view",{ref:i},[I("div",{ref:n,class:"uni-cover-view"},null,512)],512)}});class Hb extends Kr{constructor(t,r,i,n){super(t,"uni-cover-view",Vb,r,i,n,".uni-cover-view")}}var Sy="";class jb extends _e{constructor(t,r,i,n){super(t,"uni-editor",B0,r,i,n)}}var xy="";class zb extends _e{constructor(t,r,i,n){super(t,"uni-form",zm,r,i,n,"span")}}class Yb extends fr{constructor(t,r,i){super(t,"uni-functional-page-navigator",r,i)}}var Ty="";class qb extends _e{constructor(t,r,i,n){super(t,"uni-icon",W0,r,i,n)}}var Ey="";class Xb extends _e{constructor(t,r,i,n){super(t,"uni-image",H0,r,i,n)}}var Cy="";class Kb extends _e{constructor(t,r,i,n){super(t,"uni-input",u_,r,i,n)}}var Oy="";class Gb extends _e{constructor(t,r,i,n){super(t,"uni-label",Xm,r,i,n)}}class Zb extends fr{constructor(t,r,i){super(t,"uni-live-player",r,i)}}class Jb extends fr{constructor(t,r,i){super(t,"uni-live-pusher",r,i)}}var Iy="",Qb=(e,t,r)=>{r({coord:{latitude:t,longitude:e}})};function Ts(e){if(e.indexOf("#")!==0)return{color:e,opacity:1};var t=e.substr(7,2);return{color:e.substr(0,7),opacity:t?Number("0x"+t)/255:1}}var ew={id:{type:String,default:""},latitude:{type:[Number,String],default:""},longitude:{type:[Number,String],default:""},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}}},tw=de({name:"Map",props:ew,emits:["click","regionchange","controltap","markertap","callouttap"],setup(e,t){var{emit:r}=t,i=$(null),n=Me(i,r),a=$(null),s=Ss(e,["id"]),{position:o,hidden:l,onParentReady:u}=Xr(a),v,{_addMarkers:c,_addMapLines:m,_addMapCircles:g,_setMap:_}=rw(e,n);u(()=>{v=ce(plus.maps.create(Ct()+"-map-"+(e.id||Date.now()),Object.assign({},s.value,o,(()=>{if(e.latitude&&e.longitude)return{center:new plus.maps.Point(Number(e.longitude),Number(e.latitude))}})())),{__markers__:[],__lines__:[],__circles__:[]}),v.setZoom(parseInt(String(e.scale))),plus.webview.currentWebview().append(v),l.value&&v.hide(),v.onclick=w=>{n("click",{},w)},v.onstatuschanged=w=>{n("regionchange",{},{})},_(v),c(e.markers),m(e.polyline),g(e.circles),U(()=>s.value,w=>v&&v.setStyles(w),{deep:!0}),U(()=>o,w=>v&&v.setStyles(w),{deep:!0}),U(l,w=>{v&&v[w?"hide":"show"]()}),U(()=>e.scale,w=>{v&&v.setZoom(parseInt(String(w)))}),U([()=>e.latitude,()=>e.longitude],w=>{var[p,h]=w;v&&v.setStyles({center:new plus.maps.Point(Number(p),Number(h))})}),U(()=>e.markers,w=>{c(w,!0)},{deep:!0}),U(()=>e.polyline,w=>{m(w)},{deep:!0}),U(()=>e.circles,w=>{g(w)},{deep:!0})});var b=Q(()=>e.controls.map(w=>{var p={position:"absolute"};return["top","left","width","height"].forEach(h=>{w.position[h]&&(p[h]=w.position[h]+"px")}),{id:w.id,iconPath:et(w.iconPath),position:p,clickable:w.clickable}}));return xe(()=>{v&&(v.close(),_(null))}),()=>I("uni-map",{ref:i,id:e.id},[I("div",{ref:a,class:"uni-map-container"},null,512),b.value.map((w,p)=>I(Wf,{key:p,src:w.iconPath,style:w.position,"auto-size":!0,onClick:()=>w.clickable&&n("controltap",{},{controlId:w.id})},null,8,["src","style","auto-size","onClick"])),I("div",{class:"uni-map-slot"},null)],8,["id"])}});function rw(e,t){var r;function i(g){var{longitude:_,latitude:b}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};!r||(r.setCenter(new plus.maps.Point(Number(_||e.longitude),Number(b||e.latitude))),g({errMsg:"moveToLocation:ok"}))}function n(g){!r||r.getCurrentCenter((_,b)=>{g({longitude:b.getLng(),latitude:b.getLat(),errMsg:"getCenterLocation:ok"})})}function a(g){if(!!r){var _=r.getBounds();g({southwest:_.getSouthWest(),northeast:_.getNorthEast(),errMsg:"getRegion:ok"})}}function s(g){!r||g({scale:r.getZoom(),errMsg:"getScale:ok"})}function o(g){if(!!r){var{id:_,latitude:b,longitude:w,iconPath:p,callout:h,label:f}=g;Qb(w,b,d=>{var y,{latitude:x,longitude:E}=d.coord,C=new plus.maps.Marker(new plus.maps.Point(E,x));p&&C.setIcon(et(p)),f&&f.content&&C.setLabel(f.content);var M=void 0;h&&h.content&&(M=new plus.maps.Bubble(h.content)),M&&C.setBubble(M),(_||_===0)&&(C.onclick=W=>{t("markertap",{},{markerId:_})},M&&(M.onclick=()=>{t("callouttap",{},{markerId:_})})),(y=r)===null||y===void 0||y.addOverlay(C),r.__markers__.push(C)})}}function l(){if(!!r){var g=r.__markers__;g.forEach(_=>{var b;(b=r)===null||b===void 0||b.removeOverlay(_)}),r.__markers__=[]}}function u(g,_){_&&l(),g.forEach(b=>{o(b)})}function v(g){!r||(r.__lines__.length>0&&(r.__lines__.forEach(_=>{var b;(b=r)===null||b===void 0||b.removeOverlay(_)}),r.__lines__=[]),g.forEach(_=>{var b,{color:w,width:p}=_,h=_.points.map(y=>new plus.maps.Point(y.longitude,y.latitude)),f=new plus.maps.Polyline(h);if(w){var d=Ts(w);f.setStrokeColor(d.color),f.setStrokeOpacity(d.opacity)}p&&f.setLineWidth(p),(b=r)===null||b===void 0||b.addOverlay(f),r.__lines__.push(f)}))}function c(g){!r||(r.__circles__.length>0&&(r.__circles__.forEach(_=>{var b;(b=r)===null||b===void 0||b.removeOverlay(_)}),r.__circles__=[]),g.forEach(_=>{var b,{latitude:w,longitude:p,color:h,fillColor:f,radius:d,strokeWidth:y}=_,x=new plus.maps.Circle(new plus.maps.Point(p,w),d);if(h){var E=Ts(h);x.setStrokeColor(E.color),x.setStrokeOpacity(E.opacity)}if(f){var C=Ts(f);x.setFillColor(C.color),x.setFillOpacity(C.opacity)}y&&x.setLineWidth(y),(b=r)===null||b===void 0||b.addOverlay(x),r.__circles__.push(x)}))}var m={moveToLocation:i,getCenterLocation:n,getRegion:a,getScale:s};return gn((g,_,b)=>{m[g]&&m[g](b,_)},pn(),!0),{_addMarkers:u,_addMapLines:v,_addMapCircles:c,_setMap(g){r=g}}}class iw extends _e{constructor(t,r,i,n){super(t,"uni-map",tw,r,i,n,".uni-map-slot")}}var My="";class nw extends Kr{constructor(t,r,i,n){super(t,"uni-movable-area",h_,r,i,n)}}var Ay="";class aw extends _e{constructor(t,r,i,n){super(t,"uni-movable-view",m_,r,i,n)}}var Ry="";class sw extends _e{constructor(t,r,i,n){super(t,"uni-navigator",y_,r,i,n)}}class ow extends fr{constructor(t,r,i){super(t,"uni-official-account",r,i)}}class lw extends fr{constructor(t,r,i){super(t,"uni-open-data",r,i)}}var qt,Uf,cr;function Vf(){return typeof window=="object"&&typeof navigator=="object"&&typeof document=="object"?"webview":"v8"}function Hf(){return qt.webview.currentWebview().id}var mn,Es,Cs={};function Os(e){var t=e.data&&e.data.__message;if(!(!t||!t.__page)){var r=t.__page,i=Cs[r];i&&i(t),t.keep||delete Cs[r]}}function uw(e,t){Vf()==="v8"?cr?(mn&&mn.close(),mn=new cr(Hf()),mn.onmessage=Os):Es||(Es=Uf.requireModule("globalEvent"),Es.addEventListener("plusMessage",Os)):window.__plusMessage=Os,Cs[e]=t}class fw{constructor(t){this.webview=t}sendMessage(t){var r=JSON.parse(JSON.stringify({__message:{data:t}})),i=this.webview.id;if(cr){var n=new cr(i);n.postMessage(r)}else qt.webview.postMessageToUniNView&&qt.webview.postMessageToUniNView(r,i)}close(){this.webview.close()}}function cw(e){var{context:t={},url:r,data:i={},style:n={},onMessage:a,onClose:s}=e;qt=t.plus||plus,Uf=t.weex||(typeof weex=="object"?weex:null),cr=t.BroadcastChannel||(typeof BroadcastChannel=="object"?BroadcastChannel:null);var o={autoBackButton:!0,titleSize:"17px"},l="page".concat(Date.now());n=ce({},n),n.titleNView!==!1&&n.titleNView!=="none"&&(n.titleNView=ce(o,n.titleNView));var u={top:0,bottom:0,usingComponents:{},popGesture:"close",scrollIndicator:"none",animationType:"pop-in",animationDuration:200,uniNView:{path:"".concat(typeof process=="object"&&process.env&&{}.VUE_APP_TEMPLATE_PATH||"","/").concat(r,".js"),defaultFontSize:qt.screen.resolutionWidth/20,viewport:qt.screen.resolutionWidth}};n=ce(u,n);var v=qt.webview.create("",l,n,{extras:{from:Hf(),runtime:Vf(),data:i,useGlobalEvent:!cr}});return v.addEventListener("close",s),uw(l,c=>{typeof a=="function"&&a(c.data),c.keep||v.close("auto")}),v.show(n.animationType,n.animationDuration),new fw(v)}var Te={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},vr={YEAR:"year",MONTH:"month",DAY:"day"};function _n(e){return e>9?e:"0".concat(e)}function bn(e,t){e=String(e||"");var r=new Date;if(t===Te.TIME){var i=e.split(":");i.length===2&&r.setHours(parseInt(i[0]),parseInt(i[1]))}else{var n=e.split("-");n.length===3&&r.setFullYear(parseInt(n[0]),parseInt(String(parseFloat(n[1])-1)),parseInt(n[2]))}return r}function vw(e){if(e.mode===Te.TIME)return"00:00";if(e.mode===Te.DATE){var t=new Date().getFullYear()-100;switch(e.fields){case vr.YEAR:return t;case vr.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function dw(e){if(e.mode===Te.TIME)return"23:59";if(e.mode===Te.DATE){var t=new Date().getFullYear()+100;switch(e.fields){case vr.YEAR:return t;case vr.MONTH:return t+"-12";default:return t+"-12-31"}}return""}var hw={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Te.SELECTOR,validator(e){return Object.values(Te).indexOf(e)>=0}},fields:{type:String,default:""},start:{type:String,default:vw},end:{type:String,default:dw},disabled:{type:[Boolean,String],default:!1}},gw=de({name:"Picker",props:hw,emits:["change","cancel","columnchange"],setup(e,t){var{emit:r}=t;Wd();var{t:i,getLocale:n}=He(),a=$(null),s=Me(a,r),o=$(null),l=$(null),u=()=>{var p=e.value;switch(e.mode){case Te.MULTISELECTOR:{Array.isArray(p)||(p=[]),Array.isArray(o.value)||(o.value=[]);for(var h=o.value.length=Math.max(p.length,e.range.length),f=0;f{l.value&&l.value.sendMessage(p)},c=p=>{var h={event:"cancel"};l.value=cw({url:"__uniapppicker",data:p,style:{titleNView:!1,animationType:"none",animationDuration:0,background:"rgba(0,0,0,0)",popGesture:"none"},onMessage:f=>{var d=f.event;if(d==="created"){v(p);return}if(d==="columnchange"){delete f.event,s(d,{},f);return}h=f},onClose:()=>{l.value=null;var f=h.event;delete h.event,f&&s(f,{},h)}})},m=(p,h)=>{plus.nativeUI[e.mode===Te.TIME?"pickTime":"pickDate"](f=>{var d=f.date;s("change",{},{value:e.mode===Te.TIME?"".concat(_n(d.getHours()),":").concat(_n(d.getMinutes())):"".concat(d.getFullYear(),"-").concat(_n(d.getMonth()+1),"-").concat(_n(d.getDate()))})},()=>{s("cancel",{},{})},e.mode===Te.TIME?{time:bn(e.value,Te.TIME),popover:h}:{date:bn(e.value,Te.DATE),minDate:bn(e.start,Te.DATE),maxDate:bn(e.end,Te.DATE),popover:h})},g=(p,h)=>{(p.mode===Te.TIME||p.mode===Te.DATE)&&!p.fields?m(p,h):(p.fields=Object.values(vr).includes(p.fields)?p.fields:vr.DAY,c(p))},_=p=>{if(!e.disabled){var h=p.currentTarget,f=h.getBoundingClientRect();g(Object.assign({},e,{value:o.value,locale:n(),messages:{done:i("uni.picker.done"),cancel:i("uni.picker.cancel")}}),{top:f.top+Df(),left:f.left,width:f.width,height:f.height})}},b=pe(lt,!1),w={submit:()=>[e.name,o.value],reset:()=>{switch(e.mode){case Te.SELECTOR:o.value=0;break;case Te.MULTISELECTOR:Array.isArray(e.value)&&(o.value=e.value.map(p=>0));break;case Te.DATE:case Te.TIME:o.value="";break}}};return b&&(b.addField(w),xe(()=>b.removeField(w))),Object.keys(e).forEach(p=>{p!=="name"&&U(()=>e[p],h=>{var f={};f[p]=h,v(f)},{deep:!0})}),U(()=>e.value,u,{deep:!0}),u(),()=>I("uni-picker",{ref:a,onClick:_},[I("slot",null,null)],8,["onClick"])}});class pw extends _e{constructor(t,r,i,n){super(t,"uni-picker",gw,r,i,n)}}var Py="";class mw extends Kr{constructor(t,r,i,n){super(t,"uni-picker-view",T_,r,i,n,".uni-picker-view-wrapper")}}var Ly="";class _w extends Kr{constructor(t,r,i,n){super(t,"uni-picker-view-column",P_,r,i,n,".uni-picker-view-content")}}var Ny="";class bw extends _e{constructor(t,r,i,n){super(t,"uni-progress",N_,r,i,n)}}var ky="";class ww extends _e{constructor(t,r,i,n){super(t,"uni-radio",W_,r,i,n,".uni-radio-wrapper")}setText(t){xs(this.$holder,"uni-radio-input",t)}}var By="";class yw extends _e{constructor(t,r,i,n){super(t,"uni-radio-group",D_,r,i,n)}}var Dy="";class Sw extends _e{constructor(t,r,i,n){super(t,"uni-rich-text",K_,r,i,n)}}var Fy="";class xw extends _e{constructor(t,r,i,n){super(t,"uni-scroll-view",Z_,r,i,n,".uni-scroll-view-content")}setText(t){xs(this.$holder,"uni-scroll-view-refresher",t)}}var $y="";class Tw extends _e{constructor(t,r,i,n){super(t,"uni-slider",tb,r,i,n)}}var Wy="";class Ew extends Kr{constructor(t,r,i,n){super(t,"uni-swiper",lb,r,i,n,".uni-swiper-slide-frame")}}var Uy="";class Cw extends _e{constructor(t,r,i,n){super(t,"uni-swiper-item",fb,r,i,n)}}var Vy="";class Ow extends _e{constructor(t,r,i,n){super(t,"uni-switch",vb,r,i,n)}}var Hy="";class Iw extends _e{constructor(t,r,i,n){super(t,"uni-textarea",_b,r,i,n)}}var jy="",Mw={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},enablePlayGesture:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0},showLoading:{type:[Boolean,String],default:!0},codec:{type:String,default:"hardware"},httpCache:{type:[Boolean,String],default:!1},playStrategy:{type:[Number,String],default:0},header:{type:Object,default(){return{}}},advanced:{type:Array,default(){return[]}}},jf=["play","pause","ended","timeupdate","fullscreenchange","fullscreenclick","waiting","error"],Aw=["play","pause","stop","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"],Rw=de({name:"Video",props:Mw,emits:jf,setup(e,t){var{emit:r}=t,i=$(null),n=Me(i,r),a=$(null),s=Ss(e,["id"]),{position:o,hidden:l,onParentReady:u}=Xr(a),v;u(()=>{v=plus.video.createVideoPlayer("video"+Date.now(),Object.assign({},s.value,o)),plus.webview.currentWebview().append(v),l.value&&v.hide(),jf.forEach(m=>{v.addEventListener(m,g=>{n(m,{},g.detail)})}),U(()=>s.value,m=>v.setStyles(m),{deep:!0}),U(()=>o,m=>v.setStyles(m),{deep:!0}),U(()=>l.value,m=>{v[m?"hide":"show"](),m||v.setStyles(o)})});var c=pn();return gn((m,g)=>{if(Aw.includes(m)){var _;switch(m){case"seek":_=g.position;break;case"sendDanmu":_=g;break;case"playbackRate":_=g.rate;break;case"requestFullScreen":_=g.direction;break}v&&v[m](_)}},c,!0),xe(()=>{v&&v.close()}),()=>I("uni-video",{ref:i,id:e.id},[I("div",{ref:a,class:"uni-video-container"},null,512),I("div",{class:"uni-video-slot"},null)],8,["id"])}});class Pw extends _e{constructor(t,r,i,n){super(t,"uni-video",Rw,r,i,n,".uni-video-slot")}}var zy="",Lw={src:{type:String,default:""},webviewStyles:{type:Object,default(){return{}}}},Xe,Nw=e=>{var{htmlId:t,src:r,webviewStyles:i}=e,n=plus.webview.currentWebview(),a=ce(i,{"uni-app":"none",isUniH5:!0}),s=n.getTitleNView();if(s){var o=Ro+parseFloat(a.top||"0");plus.navigator.isImmersedStatusbar()&&(o+=Bf()),a.top=String(o),a.bottom=a.bottom||"0"}Xe=plus.webview.create(r,t,a),s&&Xe.addEventListener("titleUpdate",function(){var l,u=(l=Xe)===null||l===void 0?void 0:l.getTitle();n.setStyle({titleNView:{titleText:!u||u==="null"?" ":u}})}),plus.webview.currentWebview().append(Xe)},kw=()=>{var e;plus.webview.currentWebview().remove(Xe),(e=Xe)===null||e===void 0||e.close("none"),Xe=null},Bw=de({name:"WebView",props:Lw,setup(e){var t=Ct(),r=$(null),{hidden:i,onParentReady:n}=Xr(r),a=Q(()=>e.webviewStyles);return n(()=>{var s,o=$($p+t);Nw({htmlId:o.value,src:et(e.src),webviewStyles:a.value}),UniViewJSBridge.publishHandler(Dp,{},t),i.value&&((s=Xe)===null||s===void 0||s.hide())}),xe(()=>{kw(),UniViewJSBridge.publishHandler(Fp,{},t)}),U(()=>e.src,s=>{var o,l=et(s)||"";if(!!l){if(/^(http|https):\/\//.test(l)&&e.webviewStyles.progress){var u;(u=Xe)===null||u===void 0||u.setStyle({progress:{color:e.webviewStyles.progress.color}})}(o=Xe)===null||o===void 0||o.loadURL(l)}}),U(a,s=>{var o;(o=Xe)===null||o===void 0||o.setStyle(s)}),U(i,s=>{Xe&&Xe[s?"hide":"show"]()}),()=>I("uni-web-view",{ref:r},null,512)}});class Dw extends _e{constructor(t,r,i,n){super(t,"uni-web-view",Bw,r,i,n)}}var Fw={"#text":xb,"#comment":Fm,VIEW:Ob,IMAGE:Xb,TEXT:Sb,NAVIGATOR:sw,FORM:zb,BUTTON:Pb,INPUT:Kb,LABEL:Gb,RADIO:ww,CHECKBOX:kb,"CHECKBOX-GROUP":Bb,AD:Rb,CAMERA:Lb,CANVAS:Nb,"COVER-IMAGE":Ub,"COVER-VIEW":Hb,EDITOR:jb,"FUNCTIONAL-PAGE-NAVIGATOR":Yb,ICON:qb,"RADIO-GROUP":yw,"LIVE-PLAYER":Zb,"LIVE-PUSHER":Jb,MAP:iw,"MOVABLE-AREA":nw,"MOVABLE-VIEW":aw,"OFFICIAL-ACCOUNT":ow,"OPEN-DATA":lw,PICKER:pw,"PICKER-VIEW":mw,"PICKER-VIEW-COLUMN":_w,PROGRESS:bw,"RICH-TEXT":Sw,"SCROLL-VIEW":xw,SLIDER:Tw,SWIPER:Ew,"SWIPER-ITEM":Cw,SWITCH:Ow,TEXTAREA:Iw,VIDEO:Pw,"WEB-VIEW":Dw};function $w(e,t){return()=>Dg(e,t)}var wn=new Map;function Ke(e){return wn.get(e)}function Ww(e){return wn.get(e)}function zf(e){return wn.delete(e)}function Yf(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a;if(e===0)a=new lr(e,t,r,document.createElement(t));else{var s=Fw[t];s?a=new s(e,r,i,n):a=new Vu(e,document.createElement(t),r,i,n)}return wn.set(e,a),a}var Is=[],qf=!1;function Xf(e){if(qf)return e();Is.push(e)}function Ms(){qf=!0,Is.forEach(e=>e()),Is.length=0}function Uw(){}function Kf(e){var{css:t,route:r,platform:i,pixelRatio:n,windowWidth:a,disableScroll:s,statusbarHeight:o,windowTop:l,windowBottom:u}=e;Vw(r),Hw(i,n,a),jw();var v=plus.webview.currentWebview().id;window.__id__=v,document.title="".concat(r,"[").concat(v,"]"),Yw(o,l,u),s&&document.addEventListener("touchmove",Op),t?zw(r):Ms()}function Vw(e){window.__PAGE_INFO__={route:e}}function Hw(e,t,r){window.__SYSTEM_INFO__={platform:e,pixelRatio:t,windowWidth:r}}function jw(){Yf(0,"div",-1,-1).$=document.getElementById("app")}function zw(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e+".css",t.onload=Ms,t.onerror=Ms,document.head.appendChild(t)}function Yw(e,t,r){var i={"--window-left":"0px","--window-right":"0px","--window-top":t+"px","--window-bottom":r+"px","--status-bar-height":e+"px"};pp(i)}var Gf=!1;function qw(e){if(!Gf){Gf=!0;var t={onReachBottomDistance:e,onPageScroll(r){UniViewJSBridge.publishHandler(yd,{scrollTop:r})},onReachBottom(){UniViewJSBridge.publishHandler(Sd)}};requestAnimationFrame(()=>document.addEventListener("scroll",Ip(t)))}}function Xw(e,t){var{scrollTop:r,selector:i,duration:n}=e;Kv(i||r||0,n),t()}function Kw(e){var t=e[0];t[0]===Mo?Gw(t):Xf(()=>Zw(e))}function Gw(e){return Kf(e[1])}function Zw(e){var t=e[0],r=_m(t[0]===Bp?t[1]:[]);e.forEach(i=>{switch(i[0]){case Mo:return Kf(i[1]);case id:return Uw();case nd:return Yf(i[1],r(i[2]),i[3],i[4],bm(r,i[5]));case ad:return Ke(i[1]).remove();case sd:return Ke(i[1]).setAttr(r(i[2]),r(i[3]));case od:return Ke(i[1]).removeAttr(r(i[2]));case ld:return Ke(i[1]).addEvent(r(i[2]),i[3]);case cd:return Ke(i[1]).addWxsEvent(r(i[2]),r(i[3]),i[4]);case ud:return Ke(i[1]).removeEvent(r(i[2]));case fd:return Ke(i[1]).setText(r(i[2]));case vd:return qw(i[1])}}),xm()}function Jw(){var{subscribe:e}=UniViewJSBridge;e(_u,Kw),e(Wp,He().setLocale)}function Zf(e){return window.__$__(e).$}function Qw(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var r=document.documentElement,i=document.body;t.scrollLeft=r.scrollLeft||i.scrollLeft||0,t.scrollTop=r.scrollTop||i.scrollTop||0,t.scrollHeight=r.scrollHeight||i.scrollHeight||0,t.scrollWidth=r.scrollWidth||i.scrollWidth||0}return t}function As(e,t){var r={},{top:i}=gp();if(t.id&&(r.id=e.id),t.dataset&&(r.dataset=Qn(e)),t.rect||t.size){var n=e.getBoundingClientRect();t.rect&&(r.left=n.left,r.right=n.right,r.top=n.top-i,r.bottom=n.bottom-i),t.size&&(r.width=n.width,r.height=n.height)}if(Array.isArray(t.properties)&&t.properties.forEach(o=>{o=o.replace(/-([a-z])/g,function(l,u){return u.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){var a=e.children[0].children[0];r.scrollLeft=a.scrollLeft,r.scrollTop=a.scrollTop,r.scrollHeight=a.scrollHeight,r.scrollWidth=a.scrollWidth}else r.scrollLeft=0,r.scrollTop=0,r.scrollHeight=0,r.scrollWidth=0;if(Array.isArray(t.computedStyle)){var s=getComputedStyle(e);t.computedStyle.forEach(o=>{r[o]=s[o]})}return t.context&&(r.contextInfo=wb(e)),r}function ey(e,t){return e?window.__$__(e).$:t.$el}function Jf(e,t){var r=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(i){for(var n=this.parentElement.querySelectorAll(i),a=n.length;--a>=0&&n.item(a)!==this;);return a>-1};return r.call(e,t)}function ty(e,t,r,i,n){var a=ey(t,e),s=a.parentElement;if(!s)return i?null:[];var{nodeType:o}=a,l=o===3||o===8;if(i){var u=l?s.querySelector(r):Jf(a,r)?a:a.querySelector(r);return u?As(u,n):null}else{var v=[],c=(l?s:a).querySelectorAll(r);return c&&c.length&&[].forEach.call(c,m=>{v.push(As(m,n))}),!l&&Jf(a,r)&&v.unshift(As(a,n)),v}}function ry(e,t,r){var i=[];t.forEach(n=>{var{component:a,selector:s,single:o,fields:l}=n;a===null?i.push(Qw(l)):i.push(ty(e,a,s,o,l))}),r(i)}function iy(e,t){var{reqId:r,component:i,options:n,callback:a}=e,s=Zf(i);(s.__io||(s.__io={}))[r]=fm(s,n,a)}function ny(e,t){var{reqId:r,component:i}=e,n=Zf(i),a=n.__io&&n.__io[r];a&&(a.disconnect(),delete n.__io[r])}var Rs={},Ps={};function ay(e){var t=[],r=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(var i of r)i!=="orientation"&&e[i]&&Number(e[i]>=0)&&t.push("(".concat(Qf(i),": ").concat(Number(e[i]),"px)")),i==="orientation"&&e[i]&&t.push("(".concat(Qf(i),": ").concat(e[i],")"));var n=t.join(" and ");return n}function Qf(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function sy(e,t){var{reqId:r,component:i,options:n,callback:a}=e,s=Rs[r]=window.matchMedia(ay(n)),o=Ps[r]=l=>a(l.matches);o(s),s.addListener(o)}function oy(e,t){var{reqId:r,component:i}=e,n=Ps[r],a=Rs[r];a&&(a.removeListener(n),delete Ps[r],delete Rs[r])}function ly(e,t){var{family:r,source:i,desc:n}=e;Xv(r,i,n).then(()=>{t()}).catch(a=>{t(a.toString())})}var uy={$el:document.body};function fy(){var e=Ct();zd(e,t=>function(){for(var r=arguments.length,i=new Array(r),n=0;n{t.apply(null,i)})}),ct(e,"requestComponentInfo",(t,r)=>{ry(uy,t.reqs,r)}),ct(e,"addIntersectionObserver",t=>{iy(ce({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),ct(e,"removeIntersectionObserver",t=>{ny(t)}),ct(e,"addMediaQueryObserver",t=>{sy(ce({},t,{callback(r){UniViewJSBridge.publishHandler(t.eventName,r)}}))}),ct(e,"removeMediaQueryObserver",t=>{oy(t)}),ct(e,om,Xw),ct(e,sm,ly)}window.uni=pm,window.UniViewJSBridge=bu,window.rpx2px=Eu,window.__$__=Ke,window.__f__=Qv;function ec(){eh(),fy(),Jw(),mm(),bu.publishHandler(kp)}typeof plus!="undefined"?ec():document.addEventListener("plusready",ec)}); diff --git a/packages/uni-stat/dist/uni-stat.cjs.js b/packages/uni-stat/dist/uni-stat.cjs.js index cf5f124ce..36c3e592c 100644 --- a/packages/uni-stat/dist/uni-stat.cjs.js +++ b/packages/uni-stat/dist/uni-stat.cjs.js @@ -10,952 +10,952 @@ const APP_PVER_TIME = 300; const OPERATING_TIME = 10; const DIFF_TIME = 60 * 1000 * 60 * 24; -const statConfig$1 = { - appid: process.env.UNI_APP_ID, -}; -const UUID_KEY = '__DC_STAT_UUID'; -const UUID_VALUE = '__DC_UUID_VALUE'; - -function getUuid() { - let uuid = ''; - if (getPlatformName() === 'n') { - try { - uuid = plus.runtime.getDCloudId(); - } catch (e) { - uuid = ''; - } - return uuid - } - - try { - uuid = uni.getStorageSync(UUID_KEY); - } catch (e) { - uuid = UUID_VALUE; - } - - if (!uuid) { - uuid = Date.now() + '' + Math.floor(Math.random() * 1e7); - try { - uni.setStorageSync(UUID_KEY, uuid); - } catch (e) { - uni.setStorageSync(UUID_KEY, UUID_VALUE); - } - } - return uuid -} - -const getSgin = (statData) => { - let arr = Object.keys(statData); - let sortArr = arr.sort(); - let sgin = {}; - let sginStr = ''; - for (var i in sortArr) { - sgin[sortArr[i]] = statData[sortArr[i]]; - sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&'; - } - // const options = sginStr.substr(0, sginStr.length - 1) - // sginStr = sginStr.substr(0, sginStr.length - 1) + '&key=' + STAT_KEY; - // const si = crypto.createHash('md5').update(sginStr).digest('hex'); - return { - sign: '', - options: sginStr.substr(0, sginStr.length - 1), - } -}; - -const getSplicing = (data) => { - let str = ''; - for (var i in data) { - str += i + '=' + data[i] + '&'; - } - return str.substr(0, str.length - 1) -}; - -const getTime = () => { - return parseInt(new Date().getTime() / 1000) -}; - -const getPlatformName = () => { - const aliArr = ['y', 'a', 'p', 'mp-ali']; - const platformList = { - 'app-plus': 'n', - h5: 'h5', - 'mp-weixin': 'wx', - [aliArr.reverse().join('')]: 'ali', - 'mp-baidu': 'bd', - 'mp-toutiao': 'tt', - 'mp-qq': 'qq', - 'quickapp-native': 'qn', - 'mp-kuaishou': 'ks', - }; - return platformList[process.env.VUE_APP_PLATFORM] -}; - -const getPackName = () => { - let packName = ''; - if (getPlatformName() === 'wx' || getPlatformName() === 'qq') { - // 兼容微信小程序低版本基础库 - if (uni.canIUse('getAccountInfoSync')) { - packName = uni.getAccountInfoSync().miniProgram.appId || ''; - } - } - return packName -}; - -const getVersion = () => { - return getPlatformName() === 'n' ? plus.runtime.version : '' -}; - -const getChannel = () => { - const platformName = getPlatformName(); - let channel = ''; - if (platformName === 'n') { - channel = plus.runtime.channel; - } - return channel -}; - -const getScene = (options) => { - const platformName = getPlatformName(); - let scene = ''; - if (options) { - return options - } - if (platformName === 'wx') { - scene = uni.getLaunchOptionsSync().scene; - } - return scene -}; -const First__Visit__Time__KEY = 'First__Visit__Time'; -const Last__Visit__Time__KEY = 'Last__Visit__Time'; - -const getFirstVisitTime = () => { - const timeStorge = uni.getStorageSync(First__Visit__Time__KEY); - let time = 0; - if (timeStorge) { - time = timeStorge; - } else { - time = getTime(); - uni.setStorageSync(First__Visit__Time__KEY, time); - uni.removeStorageSync(Last__Visit__Time__KEY); - } - return time -}; - -const getLastVisitTime = () => { - const timeStorge = uni.getStorageSync(Last__Visit__Time__KEY); - let time = 0; - if (timeStorge) { - time = timeStorge; - } else { - time = ''; - } - uni.setStorageSync(Last__Visit__Time__KEY, getTime()); - return time -}; - -const PAGE_RESIDENCE_TIME = '__page__residence__time'; -let First_Page_residence_time = 0; -let Last_Page_residence_time = 0; - -const setPageResidenceTime = () => { - First_Page_residence_time = getTime(); - if (getPlatformName() === 'n') { - uni.setStorageSync(PAGE_RESIDENCE_TIME, getTime()); - } - return First_Page_residence_time -}; - -const getPageResidenceTime = () => { - Last_Page_residence_time = getTime(); - if (getPlatformName() === 'n') { - First_Page_residence_time = uni.getStorageSync(PAGE_RESIDENCE_TIME); - } - return Last_Page_residence_time - First_Page_residence_time -}; -const TOTAL__VISIT__COUNT = 'Total__Visit__Count'; -const getTotalVisitCount = () => { - const timeStorge = uni.getStorageSync(TOTAL__VISIT__COUNT); - let count = 1; - if (timeStorge) { - count = timeStorge; - count++; - } - uni.setStorageSync(TOTAL__VISIT__COUNT, count); - return count -}; - -const GetEncodeURIComponentOptions = (statData) => { - let data = {}; - for (let prop in statData) { - data[prop] = encodeURIComponent(statData[prop]); - } - return data -}; - -let Set__First__Time = 0; -let Set__Last__Time = 0; - -const getFirstTime = () => { - let time = new Date().getTime(); - Set__First__Time = time; - Set__Last__Time = 0; - return time -}; - -const getLastTime = () => { - let time = new Date().getTime(); - Set__Last__Time = time; - return time -}; - -const getResidenceTime = (type) => { - let residenceTime = 0; - if (Set__First__Time !== 0) { - residenceTime = Set__Last__Time - Set__First__Time; - } - - residenceTime = parseInt(residenceTime / 1000); - residenceTime = residenceTime < 1 ? 1 : residenceTime; - if (type === 'app') { - let overtime = residenceTime > APP_PVER_TIME ? true : false; - return { - residenceTime, - overtime, - } - } - if (type === 'page') { - let overtime = residenceTime > PAGE_PVER_TIME ? true : false; - return { - residenceTime, - overtime, - } - } - - return { - residenceTime, - } -}; - -const getRoute = () => { - var pages = getCurrentPages(); - var page = pages[pages.length - 1]; - if (!page) return '' - // TODO 需要确认如果不用 $vm ,其他平台会不会出错 - let _self = page.$vm; - - if (getPlatformName() === 'bd') { - return _self.$mp && _self.$mp.page.is - } else { - return _self.route || (_self.$scope && _self.$scope.route) - } -}; - -const getPageRoute = (_this) => { - let pageVm = _this.self; - let page = pageVm.$page || pageVm.$scope.$page; - return page.fullPath === '/' ? page.route : page.fullPath -}; - -const getPageTypes = (self) => { - if ( - self.$mpType === 'page' || - (self.$mp && self.$mp.mpType === 'page') || - self.$options.mpType === 'page' - ) { - return true - } - return false -}; - -const calibration = (eventName, options) => { - // login 、 share 、pay_success 、pay_fail 、register 、title - if (!eventName) { - console.error(`uni.report 缺少 [eventName] 参数`); - return true - } - if (typeof eventName !== 'string') { - console.error(`uni.report [eventName] 参数类型错误,只能为 String 类型`); - return true - } - if (eventName.length > 255) { - console.error(`uni.report [eventName] 参数长度不能大于 255`); - return true - } - - if (typeof options !== 'string' && typeof options !== 'object') { - console.error( - `uni.report [options] 参数类型错误,只能为 String 或 Object 类型` - ); - return true - } - - if (typeof options === 'string' && options.length > 255) { - console.error(`uni.report [options] 参数长度不能大于 255`); - return true - } - - if (eventName === 'title' && typeof options !== 'string') { - console.error( - 'uni.report [eventName] 参数为 title 时,[options] 参数只能为 String 类型' - ); - return true - } -}; - -const Report_Data_Time = 'Report_Data_Time'; -const Report_Status = 'Report_Status'; -const isReportData = () => { - return new Promise((resolve, reject) => { - let start_time = ''; - let end_time = new Date().getTime(); - let diff_time = DIFF_TIME; - let report_status = 1; - try { - start_time = uni.getStorageSync(Report_Data_Time); - report_status = uni.getStorageSync(Report_Status); - } catch (e) { - start_time = ''; - report_status = 1; - } - - if (report_status === '') { - requestData(({ enable }) => { - uni.setStorageSync(Report_Data_Time, end_time); - uni.setStorageSync(Report_Status, enable); - if (enable === 1) { - resolve(); - } - }); - return - } - - if (report_status === 1) { - resolve(); - } - - if (!start_time) { - uni.setStorageSync(Report_Data_Time, end_time); - start_time = end_time; - } - - if (end_time - start_time > diff_time) { - requestData(({ enable }) => { - uni.setStorageSync(Report_Data_Time, end_time); - uni.setStorageSync(Report_Status, enable); - }); - } - }) -}; - -const requestData = (done) => { - let formData = { - usv: STAT_VERSION, - conf: JSON.stringify({ - ak: statConfig$1.appid, - }), - }; - uni.request({ - url: STAT_URL, - method: 'GET', - data: formData, - success: (res) => { - const { data } = res; - if (data.ret === 0) { - typeof done === 'function' && - done({ - enable: data.enable, - }); - } - }, - fail: (e) => { - let report_status_code = 1; - try { - report_status_code = uni.getStorageSync(Report_Status); - } catch (e) { - report_status_code = 1; - } - if (report_status_code === '') { - report_status_code = 1; - } - typeof done === 'function' && - done({ - enable: report_status_code, - }); - }, - }); +const statConfig$1 = { + appid: process.env.UNI_APP_ID, }; +const UUID_KEY = '__DC_STAT_UUID'; +const UUID_VALUE = '__DC_UUID_VALUE'; -let titleJsons = {}; -// #ifdef MP -let pagesTitle = require('uni-pages?{"type":"style"}').default; -pagesTitle = pagesTitle.pages; -for (let i in pagesTitle) { - titleJsons[i] = pagesTitle[i].navigationBarTitleText || ''; -} -// #endif -// #ifndef MP -titleJsons = process.env.UNI_STAT_TITLE_JSON; -// #endif - -const statConfig = { - appid: process.env.UNI_APP_ID, -}; -const resultOptions = uni.getSystemInfoSync(); - -class Util { - constructor() { - this.self = ''; - this._retry = 0; - this._platform = ''; - this._query = {}; - this._navigationBarTitle = { - config: '', - page: '', - report: '', - lt: '', - }; - this._operatingTime = 0; - this._reportingRequestData = { - 1: [], - 11: [], - }; - this.__prevent_triggering = false; - - this.__licationHide = false; - this.__licationShow = false; - this._lastPageRoute = ''; - this.statData = { - uuid: getUuid(), - ut: getPlatformName(), - mpn: getPackName(), - ak: statConfig.appid, - usv: STAT_VERSION, - v: getVersion(), - ch: getChannel(), - cn: '', - pn: '', - ct: '', - t: getTime(), - tt: '', - p: resultOptions.platform === 'android' ? 'a' : 'i', - brand: resultOptions.brand || '', - md: resultOptions.model, - sv: resultOptions.system.replace(/(Android|iOS)\s/, ''), - mpsdk: resultOptions.SDKVersion || '', - mpv: resultOptions.version || '', - lang: resultOptions.language, - pr: resultOptions.pixelRatio, - ww: resultOptions.windowWidth, - wh: resultOptions.windowHeight, - sw: resultOptions.screenWidth, - sh: resultOptions.screenHeight, - }; - // 注册拦截器 - let registerInterceptor = - typeof uni.addInterceptor === 'function' && - process.env.NODE_ENV !== 'development'; - if (registerInterceptor) { - this.addInterceptorInit(); - this.interceptLogin(); - this.interceptShare(true); - this.interceptRequestPayment(); - } - } - - addInterceptorInit() { - let self = this; - uni.addInterceptor('setNavigationBarTitle', { - invoke(args) { - self._navigationBarTitle.page = args.title; - }, - }); - } - - interceptLogin() { - let self = this; - uni.addInterceptor('login', { - complete() { - self._login(); - }, - }); - } - - interceptShare(type) { - let self = this; - if (!type) { - self._share(); - return - } - uni.addInterceptor('share', { - success() { - self._share(); - }, - fail() { - self._share(); - }, - }); - } - - interceptRequestPayment() { - let self = this; - uni.addInterceptor('requestPayment', { - success() { - self._payment('pay_success'); - }, - fail() { - self._payment('pay_fail'); - }, - }); - } - - getIsReportData() { - return isReportData() - } - - _applicationShow() { - if (this.__licationHide) { - getLastTime(); - const time = getResidenceTime('app'); - if (time.overtime) { - let options = { - path: this._lastPageRoute, - scene: this.statData.sc, - }; - this._sendReportRequest(options); - } - this.__licationHide = false; - } - } - - _applicationHide(self, type) { - this.__licationHide = true; - getLastTime(); - const time = getResidenceTime(); - getFirstTime(); - const route = getPageRoute(this); - this._sendHideRequest( - { - urlref: route, - urlref_ts: time.residenceTime, - }, - type - ); - } - - _pageShow() { - const route = getPageRoute(this); - const routepath = getRoute(); - this._navigationBarTitle.config = - (titleJsons && titleJsons[routepath]) || ''; - if (this.__licationShow) { - getFirstTime(); - this.__licationShow = false; - this._lastPageRoute = route; - return - } - - getLastTime(); - const time = getResidenceTime('page'); - // 停留时间 - if (time.overtime) { - let options = { - path: route, - scene: this.statData.sc, - }; - this._sendReportRequest(options); - } - getFirstTime(); - } - - _pageHide() { - if (!this.__licationHide) { - getLastTime(); - const time = getResidenceTime('page'); - let route = getPageRoute(this); - if (!this._lastPageRoute) { - this._lastPageRoute = route; - } - this._sendPageRequest({ - url: route, - urlref: this._lastPageRoute, - urlref_ts: time.residenceTime, - }); - this._lastPageRoute = route; - this._navigationBarTitle = { - config: '', - page: '', - report: '', - lt: '', - }; - return - } - } - - _login() { - this._sendEventRequest( - { - key: 'login', - }, - 0 - ); - } - - _share() { - this._sendEventRequest( - { - key: 'share', - }, - 0 - ); - } - _payment(key) { - this._sendEventRequest( - { - key, - }, - 0 - ); - } - _sendReportRequest(options) { - this._navigationBarTitle.lt = '1'; - this._navigationBarTitle.config = - (titleJsons && titleJsons[options.path]) || ''; - let query = - options.query && JSON.stringify(options.query) !== '{}' - ? '?' + JSON.stringify(options.query) - : ''; - this.statData.lt = '1'; - this.statData.url = options.path + query || ''; - this.statData.t = getTime(); - this.statData.sc = getScene(options.scene); - this.statData.fvts = getFirstVisitTime(); - this.statData.lvts = getLastVisitTime(); - this.statData.tvc = getTotalVisitCount(); - if (getPlatformName() === 'n') { - this.getProperty(); - } else { - this.getNetworkInfo(); - } - } - - _sendPageRequest(opt) { - let { url, urlref, urlref_ts } = opt; - this._navigationBarTitle.lt = '11'; - let options = { - ak: this.statData.ak, - uuid: this.statData.uuid, - lt: '11', - ut: this.statData.ut, - url, - tt: this.statData.tt, - urlref, - urlref_ts, - ch: this.statData.ch, - usv: this.statData.usv, - t: getTime(), - p: this.statData.p, - }; - this.request(options); - } - - _sendHideRequest(opt, type) { - let { urlref, urlref_ts } = opt; - let options = { - ak: this.statData.ak, - uuid: this.statData.uuid, - lt: '3', - ut: this.statData.ut, - urlref, - urlref_ts, - ch: this.statData.ch, - usv: this.statData.usv, - t: getTime(), - p: this.statData.p, - }; - this.request(options, type); - } - _sendEventRequest({ key = '', value = '' } = {}) { - const route = this._lastPageRoute; - let options = { - ak: this.statData.ak, - uuid: this.statData.uuid, - lt: '21', - ut: this.statData.ut, - url: route, - ch: this.statData.ch, - e_n: key, - e_v: typeof value === 'object' ? JSON.stringify(value) : value.toString(), - usv: this.statData.usv, - t: getTime(), - p: this.statData.p, - }; - this.request(options); - } - - getNetworkInfo() { - uni.getNetworkType({ - success: (result) => { - this.statData.net = result.networkType; - this.getLocation(); - }, - }); - } - - getProperty() { - plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => { - this.statData.v = wgtinfo.version || ''; - this.getNetworkInfo(); - }); - } - - getLocation() { - { - this.statData.lat = 0; - this.statData.lng = 0; - this.request(this.statData); - } - } - - request(data, type) { - let time = getTime(); - const title = this._navigationBarTitle; - data.ttn = title.page; - data.ttpj = title.config; - data.ttc = title.report; - let requestData = this._reportingRequestData; - if (getPlatformName() === 'n') { - requestData = uni.getStorageSync('__UNI__STAT__DATA') || {}; - } - if (!requestData[data.lt]) { - requestData[data.lt] = []; - } - requestData[data.lt].push(data); - if (getPlatformName() === 'n') { - uni.setStorageSync('__UNI__STAT__DATA', requestData); - } - if (getPageResidenceTime() < OPERATING_TIME && !type) { - return - } - let uniStatData = this._reportingRequestData; - if (getPlatformName() === 'n') { - uniStatData = uni.getStorageSync('__UNI__STAT__DATA'); - } - // 时间超过,重新获取时间戳 - setPageResidenceTime(); - let firstArr = []; - let contentArr = []; - let lastArr = []; - - for (let i in uniStatData) { - const rd = uniStatData[i]; - rd.forEach((elm) => { - const newData = getSplicing(elm); - if (i === 0) { - firstArr.push(newData); - } else if (i === 3) { - lastArr.push(newData); - } else { - contentArr.push(newData); - } - }); - } - - firstArr.push(...contentArr, ...lastArr); - let optionsData = { - usv: STAT_VERSION, //统计 SDK 版本号 - t: time, //发送请求时的时间戮 - requests: JSON.stringify(firstArr), - }; - - this._reportingRequestData = {}; - if (getPlatformName() === 'n') { - uni.removeStorageSync('__UNI__STAT__DATA'); - } - - if (data.ut === 'h5') { - this.imageRequest(optionsData); - return - } - - if (getPlatformName() === 'n' && this.statData.p === 'a') { - setTimeout(() => { - this._sendRequest(optionsData); - }, 200); - return - } - this._sendRequest(optionsData); - } - _sendRequest(optionsData) { - this.getIsReportData().then(() => { - uni.request({ - url: STAT_URL, - method: 'POST', - data: optionsData, - success: () => {}, - fail: (e) => { - if (++this._retry < 3) { - setTimeout(() => { - this._sendRequest(optionsData); - }, 1000); - } - }, - }); - }); - } - /** - * h5 请求 - */ - imageRequest(data) { - this.getIsReportData().then(() => { - let image = new Image(); - let options = getSgin(GetEncodeURIComponentOptions(data)).options; - image.src = STAT_H5_URL + '?' + options; - }); - } - - sendEvent(key, value) { - // 校验 type 参数 - if (calibration(key, value)) return - - if (key === 'title') { - this._navigationBarTitle.report = value; - return - } - this._sendEventRequest( - { - key, - value: typeof value === 'object' ? JSON.stringify(value) : value, - }, - 1 - ); - } -} - -class Stat extends Util { - static getInstance() { - if (!this.instance) { - this.instance = new Stat(); - } - return this.instance - } - constructor() { - super(); - this.instance = null; - } - - report(options, self) { - // TODO 需要确认如果不用 $vm ,其他平台会不会出错 - setPageResidenceTime(); - this.__licationShow = true; - this._sendReportRequest(options, true); - } - - load(options, self) { - this.self = self; - this._query = options; - } - - show(self) { - this.self = self; - if (getPageTypes(self)) { - this._pageShow(self); - } else { - this._applicationShow(self); - } - } - ready(self) {} - hide(self) { - this.self = self; - if (getPageTypes(self)) { - this._pageHide(self); - } else { - this._applicationHide(self, true); - } - } - error(em) { - if (this._platform === 'devtools') { - if (process.env.NODE_ENV === 'development') { - console.info('当前运行环境为开发者工具,不上报数据。'); - } - } - let emVal = ''; - if (!em.message) { - emVal = JSON.stringify(em); - } else { - emVal = em.stack; - } - let options = { - ak: this.statData.ak, - uuid: this.statData.uuid, - lt: '31', - ut: this.statData.ut, - ch: this.statData.ch, - mpsdk: this.statData.mpsdk, - mpv: this.statData.mpv, - v: this.statData.v, - em: emVal, - usv: this.statData.usv, - t: getTime(), - p: this.statData.p, - }; - this.request(options); - } -} +function getUuid() { + let uuid = ''; + if (getPlatformName() === 'n') { + try { + uuid = plus.runtime.getDCloudId(); + } catch (e) { + uuid = ''; + } + return uuid + } + + try { + uuid = uni.getStorageSync(UUID_KEY); + } catch (e) { + uuid = UUID_VALUE; + } + + if (!uuid) { + uuid = Date.now() + '' + Math.floor(Math.random() * 1e7); + try { + uni.setStorageSync(UUID_KEY, uuid); + } catch (e) { + uni.setStorageSync(UUID_KEY, UUID_VALUE); + } + } + return uuid +} + +const getSgin = (statData) => { + let arr = Object.keys(statData); + let sortArr = arr.sort(); + let sgin = {}; + let sginStr = ''; + for (var i in sortArr) { + sgin[sortArr[i]] = statData[sortArr[i]]; + sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&'; + } + // const options = sginStr.substr(0, sginStr.length - 1) + // sginStr = sginStr.substr(0, sginStr.length - 1) + '&key=' + STAT_KEY; + // const si = crypto.createHash('md5').update(sginStr).digest('hex'); + return { + sign: '', + options: sginStr.substr(0, sginStr.length - 1), + } +}; + +const getSplicing = (data) => { + let str = ''; + for (var i in data) { + str += i + '=' + data[i] + '&'; + } + return str.substr(0, str.length - 1) +}; + +const getTime = () => { + return parseInt(new Date().getTime() / 1000) +}; + +const getPlatformName = () => { + const aliArr = ['y', 'a', 'p', 'mp-ali']; + const platformList = { + 'app-plus': 'n', + h5: 'h5', + 'mp-weixin': 'wx', + [aliArr.reverse().join('')]: 'ali', + 'mp-baidu': 'bd', + 'mp-toutiao': 'tt', + 'mp-qq': 'qq', + 'quickapp-native': 'qn', + 'mp-kuaishou': 'ks', + }; + return platformList[process.env.VUE_APP_PLATFORM] +}; + +const getPackName = () => { + let packName = ''; + if (getPlatformName() === 'wx' || getPlatformName() === 'qq') { + // 兼容微信小程序低版本基础库 + if (uni.canIUse('getAccountInfoSync')) { + packName = uni.getAccountInfoSync().miniProgram.appId || ''; + } + } + return packName +}; + +const getVersion = () => { + return getPlatformName() === 'n' ? plus.runtime.version : '' +}; + +const getChannel = () => { + const platformName = getPlatformName(); + let channel = ''; + if (platformName === 'n') { + channel = plus.runtime.channel; + } + return channel +}; + +const getScene = (options) => { + const platformName = getPlatformName(); + let scene = ''; + if (options) { + return options + } + if (platformName === 'wx') { + scene = uni.getLaunchOptionsSync().scene; + } + return scene +}; +const First__Visit__Time__KEY = 'First__Visit__Time'; +const Last__Visit__Time__KEY = 'Last__Visit__Time'; + +const getFirstVisitTime = () => { + const timeStorge = uni.getStorageSync(First__Visit__Time__KEY); + let time = 0; + if (timeStorge) { + time = timeStorge; + } else { + time = getTime(); + uni.setStorageSync(First__Visit__Time__KEY, time); + uni.removeStorageSync(Last__Visit__Time__KEY); + } + return time +}; + +const getLastVisitTime = () => { + const timeStorge = uni.getStorageSync(Last__Visit__Time__KEY); + let time = 0; + if (timeStorge) { + time = timeStorge; + } else { + time = ''; + } + uni.setStorageSync(Last__Visit__Time__KEY, getTime()); + return time +}; + +const PAGE_RESIDENCE_TIME = '__page__residence__time'; +let First_Page_residence_time = 0; +let Last_Page_residence_time = 0; + +const setPageResidenceTime = () => { + First_Page_residence_time = getTime(); + if (getPlatformName() === 'n') { + uni.setStorageSync(PAGE_RESIDENCE_TIME, getTime()); + } + return First_Page_residence_time +}; + +const getPageResidenceTime = () => { + Last_Page_residence_time = getTime(); + if (getPlatformName() === 'n') { + First_Page_residence_time = uni.getStorageSync(PAGE_RESIDENCE_TIME); + } + return Last_Page_residence_time - First_Page_residence_time +}; +const TOTAL__VISIT__COUNT = 'Total__Visit__Count'; +const getTotalVisitCount = () => { + const timeStorge = uni.getStorageSync(TOTAL__VISIT__COUNT); + let count = 1; + if (timeStorge) { + count = timeStorge; + count++; + } + uni.setStorageSync(TOTAL__VISIT__COUNT, count); + return count +}; + +const GetEncodeURIComponentOptions = (statData) => { + let data = {}; + for (let prop in statData) { + data[prop] = encodeURIComponent(statData[prop]); + } + return data +}; + +let Set__First__Time = 0; +let Set__Last__Time = 0; + +const getFirstTime = () => { + let time = new Date().getTime(); + Set__First__Time = time; + Set__Last__Time = 0; + return time +}; + +const getLastTime = () => { + let time = new Date().getTime(); + Set__Last__Time = time; + return time +}; + +const getResidenceTime = (type) => { + let residenceTime = 0; + if (Set__First__Time !== 0) { + residenceTime = Set__Last__Time - Set__First__Time; + } + + residenceTime = parseInt(residenceTime / 1000); + residenceTime = residenceTime < 1 ? 1 : residenceTime; + if (type === 'app') { + let overtime = residenceTime > APP_PVER_TIME ? true : false; + return { + residenceTime, + overtime, + } + } + if (type === 'page') { + let overtime = residenceTime > PAGE_PVER_TIME ? true : false; + return { + residenceTime, + overtime, + } + } + + return { + residenceTime, + } +}; + +const getRoute = () => { + var pages = getCurrentPages(); + var page = pages[pages.length - 1]; + if (!page) return '' + // TODO 需要确认如果不用 $vm ,其他平台会不会出错 + let _self = page.$vm; + + if (getPlatformName() === 'bd') { + return _self.$mp && _self.$mp.page.is + } else { + return _self.route || (_self.$scope && _self.$scope.route) + } +}; + +const getPageRoute = (_this) => { + let pageVm = _this.self; + let page = pageVm.$page || pageVm.$scope.$page; + return page.fullPath === '/' ? page.route : page.fullPath +}; + +const getPageTypes = (self) => { + if ( + self.$mpType === 'page' || + (self.$mp && self.$mp.mpType === 'page') || + self.$options.mpType === 'page' + ) { + return true + } + return false +}; + +const calibration = (eventName, options) => { + // login 、 share 、pay_success 、pay_fail 、register 、title + if (!eventName) { + console.error(`uni.report 缺少 [eventName] 参数`); + return true + } + if (typeof eventName !== 'string') { + console.error(`uni.report [eventName] 参数类型错误,只能为 String 类型`); + return true + } + if (eventName.length > 255) { + console.error(`uni.report [eventName] 参数长度不能大于 255`); + return true + } + + if (typeof options !== 'string' && typeof options !== 'object') { + console.error( + `uni.report [options] 参数类型错误,只能为 String 或 Object 类型` + ); + return true + } + + if (typeof options === 'string' && options.length > 255) { + console.error(`uni.report [options] 参数长度不能大于 255`); + return true + } + + if (eventName === 'title' && typeof options !== 'string') { + console.error( + 'uni.report [eventName] 参数为 title 时,[options] 参数只能为 String 类型' + ); + return true + } +}; + +const Report_Data_Time = 'Report_Data_Time'; +const Report_Status = 'Report_Status'; +const isReportData = () => { + return new Promise((resolve, reject) => { + let start_time = ''; + let end_time = new Date().getTime(); + let diff_time = DIFF_TIME; + let report_status = 1; + try { + start_time = uni.getStorageSync(Report_Data_Time); + report_status = uni.getStorageSync(Report_Status); + } catch (e) { + start_time = ''; + report_status = 1; + } + + if (report_status === '') { + requestData(({ enable }) => { + uni.setStorageSync(Report_Data_Time, end_time); + uni.setStorageSync(Report_Status, enable); + if (enable === 1) { + resolve(); + } + }); + return + } + + if (report_status === 1) { + resolve(); + } + + if (!start_time) { + uni.setStorageSync(Report_Data_Time, end_time); + start_time = end_time; + } + + if (end_time - start_time > diff_time) { + requestData(({ enable }) => { + uni.setStorageSync(Report_Data_Time, end_time); + uni.setStorageSync(Report_Status, enable); + }); + } + }) +}; + +const requestData = (done) => { + let formData = { + usv: STAT_VERSION, + conf: JSON.stringify({ + ak: statConfig$1.appid, + }), + }; + uni.request({ + url: STAT_URL, + method: 'GET', + data: formData, + success: (res) => { + const { data } = res; + if (data.ret === 0) { + typeof done === 'function' && + done({ + enable: data.enable, + }); + } + }, + fail: (e) => { + let report_status_code = 1; + try { + report_status_code = uni.getStorageSync(Report_Status); + } catch (e) { + report_status_code = 1; + } + if (report_status_code === '') { + report_status_code = 1; + } + typeof done === 'function' && + done({ + enable: report_status_code, + }); + }, + }); +}; + +let titleJsons = {}; +// #ifdef MP +let pagesTitle = require('uni-pages?{"type":"style"}').default; +pagesTitle = pagesTitle.pages; +for (let i in pagesTitle) { + titleJsons[i] = pagesTitle[i].navigationBarTitleText || ''; +} +// #endif +// #ifndef MP +titleJsons = process.env.UNI_STAT_TITLE_JSON; +// #endif + +const statConfig = { + appid: process.env.UNI_APP_ID, +}; +const resultOptions = uni.getSystemInfoSync(); + +class Util { + constructor() { + this.self = ''; + this._retry = 0; + this._platform = ''; + this._query = {}; + this._navigationBarTitle = { + config: '', + page: '', + report: '', + lt: '', + }; + this._operatingTime = 0; + this._reportingRequestData = { + 1: [], + 11: [], + }; + this.__prevent_triggering = false; + + this.__licationHide = false; + this.__licationShow = false; + this._lastPageRoute = ''; + this.statData = { + uuid: getUuid(), + ut: getPlatformName(), + mpn: getPackName(), + ak: statConfig.appid, + usv: STAT_VERSION, + v: getVersion(), + ch: getChannel(), + cn: '', + pn: '', + ct: '', + t: getTime(), + tt: '', + p: resultOptions.platform === 'android' ? 'a' : 'i', + brand: resultOptions.brand || '', + md: resultOptions.model, + sv: resultOptions.system.replace(/(Android|iOS)\s/, ''), + mpsdk: resultOptions.SDKVersion || '', + mpv: resultOptions.version || '', + lang: resultOptions.language, + pr: resultOptions.pixelRatio, + ww: resultOptions.windowWidth, + wh: resultOptions.windowHeight, + sw: resultOptions.screenWidth, + sh: resultOptions.screenHeight, + }; + // 注册拦截器 + let registerInterceptor = + typeof uni.addInterceptor === 'function' && + process.env.NODE_ENV !== 'development'; + if (registerInterceptor) { + this.addInterceptorInit(); + this.interceptLogin(); + this.interceptShare(true); + this.interceptRequestPayment(); + } + } + + addInterceptorInit() { + let self = this; + uni.addInterceptor('setNavigationBarTitle', { + invoke(args) { + self._navigationBarTitle.page = args.title; + }, + }); + } + + interceptLogin() { + let self = this; + uni.addInterceptor('login', { + complete() { + self._login(); + }, + }); + } + + interceptShare(type) { + let self = this; + if (!type) { + self._share(); + return + } + uni.addInterceptor('share', { + success() { + self._share(); + }, + fail() { + self._share(); + }, + }); + } + + interceptRequestPayment() { + let self = this; + uni.addInterceptor('requestPayment', { + success() { + self._payment('pay_success'); + }, + fail() { + self._payment('pay_fail'); + }, + }); + } + + getIsReportData() { + return isReportData() + } + + _applicationShow() { + if (this.__licationHide) { + getLastTime(); + const time = getResidenceTime('app'); + if (time.overtime) { + let options = { + path: this._lastPageRoute, + scene: this.statData.sc, + }; + this._sendReportRequest(options); + } + this.__licationHide = false; + } + } + + _applicationHide(self, type) { + this.__licationHide = true; + getLastTime(); + const time = getResidenceTime(); + getFirstTime(); + const route = getPageRoute(this); + this._sendHideRequest( + { + urlref: route, + urlref_ts: time.residenceTime, + }, + type + ); + } + + _pageShow() { + const route = getPageRoute(this); + const routepath = getRoute(); + this._navigationBarTitle.config = + (titleJsons && titleJsons[routepath]) || ''; + if (this.__licationShow) { + getFirstTime(); + this.__licationShow = false; + this._lastPageRoute = route; + return + } + + getLastTime(); + const time = getResidenceTime('page'); + // 停留时间 + if (time.overtime) { + let options = { + path: route, + scene: this.statData.sc, + }; + this._sendReportRequest(options); + } + getFirstTime(); + } + + _pageHide() { + if (!this.__licationHide) { + getLastTime(); + const time = getResidenceTime('page'); + let route = getPageRoute(this); + if (!this._lastPageRoute) { + this._lastPageRoute = route; + } + this._sendPageRequest({ + url: route, + urlref: this._lastPageRoute, + urlref_ts: time.residenceTime, + }); + this._lastPageRoute = route; + this._navigationBarTitle = { + config: '', + page: '', + report: '', + lt: '', + }; + return + } + } + + _login() { + this._sendEventRequest( + { + key: 'login', + }, + 0 + ); + } + + _share() { + this._sendEventRequest( + { + key: 'share', + }, + 0 + ); + } + _payment(key) { + this._sendEventRequest( + { + key, + }, + 0 + ); + } + _sendReportRequest(options) { + this._navigationBarTitle.lt = '1'; + this._navigationBarTitle.config = + (titleJsons && titleJsons[options.path]) || ''; + let query = + options.query && JSON.stringify(options.query) !== '{}' + ? '?' + JSON.stringify(options.query) + : ''; + this.statData.lt = '1'; + this.statData.url = options.path + query || ''; + this.statData.t = getTime(); + this.statData.sc = getScene(options.scene); + this.statData.fvts = getFirstVisitTime(); + this.statData.lvts = getLastVisitTime(); + this.statData.tvc = getTotalVisitCount(); + if (getPlatformName() === 'n') { + this.getProperty(); + } else { + this.getNetworkInfo(); + } + } + + _sendPageRequest(opt) { + let { url, urlref, urlref_ts } = opt; + this._navigationBarTitle.lt = '11'; + let options = { + ak: this.statData.ak, + uuid: this.statData.uuid, + lt: '11', + ut: this.statData.ut, + url, + tt: this.statData.tt, + urlref, + urlref_ts, + ch: this.statData.ch, + usv: this.statData.usv, + t: getTime(), + p: this.statData.p, + }; + this.request(options); + } + + _sendHideRequest(opt, type) { + let { urlref, urlref_ts } = opt; + let options = { + ak: this.statData.ak, + uuid: this.statData.uuid, + lt: '3', + ut: this.statData.ut, + urlref, + urlref_ts, + ch: this.statData.ch, + usv: this.statData.usv, + t: getTime(), + p: this.statData.p, + }; + this.request(options, type); + } + _sendEventRequest({ key = '', value = '' } = {}) { + const route = this._lastPageRoute; + let options = { + ak: this.statData.ak, + uuid: this.statData.uuid, + lt: '21', + ut: this.statData.ut, + url: route, + ch: this.statData.ch, + e_n: key, + e_v: typeof value === 'object' ? JSON.stringify(value) : value.toString(), + usv: this.statData.usv, + t: getTime(), + p: this.statData.p, + }; + this.request(options); + } + + getNetworkInfo() { + uni.getNetworkType({ + success: (result) => { + this.statData.net = result.networkType; + this.getLocation(); + }, + }); + } + + getProperty() { + plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => { + this.statData.v = wgtinfo.version || ''; + this.getNetworkInfo(); + }); + } + + getLocation() { + { + this.statData.lat = 0; + this.statData.lng = 0; + this.request(this.statData); + } + } + + request(data, type) { + let time = getTime(); + const title = this._navigationBarTitle; + data.ttn = title.page; + data.ttpj = title.config; + data.ttc = title.report; + let requestData = this._reportingRequestData; + if (getPlatformName() === 'n') { + requestData = uni.getStorageSync('__UNI__STAT__DATA') || {}; + } + if (!requestData[data.lt]) { + requestData[data.lt] = []; + } + requestData[data.lt].push(data); + if (getPlatformName() === 'n') { + uni.setStorageSync('__UNI__STAT__DATA', requestData); + } + if (getPageResidenceTime() < OPERATING_TIME && !type) { + return + } + let uniStatData = this._reportingRequestData; + if (getPlatformName() === 'n') { + uniStatData = uni.getStorageSync('__UNI__STAT__DATA'); + } + // 时间超过,重新获取时间戳 + setPageResidenceTime(); + let firstArr = []; + let contentArr = []; + let lastArr = []; + + for (let i in uniStatData) { + const rd = uniStatData[i]; + rd.forEach((elm) => { + const newData = getSplicing(elm); + if (i === 0) { + firstArr.push(newData); + } else if (i === 3) { + lastArr.push(newData); + } else { + contentArr.push(newData); + } + }); + } + + firstArr.push(...contentArr, ...lastArr); + let optionsData = { + usv: STAT_VERSION, //统计 SDK 版本号 + t: time, //发送请求时的时间戮 + requests: JSON.stringify(firstArr), + }; + + this._reportingRequestData = {}; + if (getPlatformName() === 'n') { + uni.removeStorageSync('__UNI__STAT__DATA'); + } + + if (data.ut === 'h5') { + this.imageRequest(optionsData); + return + } + + if (getPlatformName() === 'n' && this.statData.p === 'a') { + setTimeout(() => { + this._sendRequest(optionsData); + }, 200); + return + } + this._sendRequest(optionsData); + } + _sendRequest(optionsData) { + this.getIsReportData().then(() => { + uni.request({ + url: STAT_URL, + method: 'POST', + data: optionsData, + success: () => {}, + fail: (e) => { + if (++this._retry < 3) { + setTimeout(() => { + this._sendRequest(optionsData); + }, 1000); + } + }, + }); + }); + } + /** + * h5 请求 + */ + imageRequest(data) { + this.getIsReportData().then(() => { + let image = new Image(); + let options = getSgin(GetEncodeURIComponentOptions(data)).options; + image.src = STAT_H5_URL + '?' + options; + }); + } + + sendEvent(key, value) { + // 校验 type 参数 + if (calibration(key, value)) return + + if (key === 'title') { + this._navigationBarTitle.report = value; + return + } + this._sendEventRequest( + { + key, + value: typeof value === 'object' ? JSON.stringify(value) : value, + }, + 1 + ); + } +} + +class Stat extends Util { + static getInstance() { + if (!this.instance) { + this.instance = new Stat(); + } + return this.instance + } + constructor() { + super(); + this.instance = null; + } + + report(options, self) { + // TODO 需要确认如果不用 $vm ,其他平台会不会出错 + setPageResidenceTime(); + this.__licationShow = true; + this._sendReportRequest(options, true); + } + + load(options, self) { + this.self = self; + this._query = options; + } + + show(self) { + this.self = self; + if (getPageTypes(self)) { + this._pageShow(self); + } else { + this._applicationShow(self); + } + } + ready(self) {} + hide(self) { + this.self = self; + if (getPageTypes(self)) { + this._pageHide(self); + } else { + this._applicationHide(self, true); + } + } + error(em) { + if (this._platform === 'devtools') { + if (process.env.NODE_ENV === 'development') { + console.info('当前运行环境为开发者工具,不上报数据。'); + } + } + let emVal = ''; + if (!em.message) { + emVal = JSON.stringify(em); + } else { + emVal = em.stack; + } + let options = { + ak: this.statData.ak, + uuid: this.statData.uuid, + lt: '31', + ut: this.statData.ut, + ch: this.statData.ch, + mpsdk: this.statData.mpsdk, + mpv: this.statData.mpv, + v: this.statData.v, + em: emVal, + usv: this.statData.usv, + t: getTime(), + p: this.statData.p, + }; + this.request(options); + } +} var Stat$1 = Stat; -const stat = Stat$1.getInstance(); -let isHide = false; -const lifecycle = { - onLaunch(options) { - stat.report(options, this); - }, - onReady() { - stat.ready(this); - }, - onLoad(options) { - stat.load(options, this); - // 重写分享,获取分享上报事件 - if (this.$scope && this.$scope.onShareAppMessage) { - let oldShareAppMessage = this.$scope.onShareAppMessage; - this.$scope.onShareAppMessage = function (options) { - stat.interceptShare(false); - return oldShareAppMessage.call(this, options) - }; - } - }, - onShow() { - isHide = false; - stat.show(this); - }, - onHide() { - isHide = true; - stat.hide(this); - }, - onUnload() { - if (isHide) { - isHide = false; - return - } - stat.hide(this); - }, - onError(e) { - stat.error(e); - }, -}; - -function main() { - if (process.env.NODE_ENV === 'development') { - uni.report = function (type, options) {}; - } else { - uni.onAppLaunch((options) => { - stat.report(options); - // 小程序平台此时也无法获取getApp,统一在options中传递一个app对象 - options.app.$vm.$.appContext.app.mixin(lifecycle); - uni.report = function (type, options) { - stat.sendEvent(type, options); - }; - }); - } -} - +const stat = Stat$1.getInstance(); +let isHide = false; +const lifecycle = { + onLaunch(options) { + stat.report(options, this); + }, + onReady() { + stat.ready(this); + }, + onLoad(options) { + stat.load(options, this); + // 重写分享,获取分享上报事件 + if (this.$scope && this.$scope.onShareAppMessage) { + let oldShareAppMessage = this.$scope.onShareAppMessage; + this.$scope.onShareAppMessage = function (options) { + stat.interceptShare(false); + return oldShareAppMessage.call(this, options) + }; + } + }, + onShow() { + isHide = false; + stat.show(this); + }, + onHide() { + isHide = true; + stat.hide(this); + }, + onUnload() { + if (isHide) { + isHide = false; + return + } + stat.hide(this); + }, + onError(e) { + stat.error(e); + }, +}; + +function main() { + if (process.env.NODE_ENV === 'development') { + uni.report = function (type, options) {}; + } else { + uni.onAppLaunch((options) => { + stat.report(options); + // 小程序平台此时也无法获取getApp,统一在options中传递一个app对象 + options.app.$vm.$.appContext.app.mixin(lifecycle); + uni.report = function (type, options) { + stat.sendEvent(type, options); + }; + }); + } +} + main(); diff --git a/packages/uni-stat/dist/uni-stat.es.js b/packages/uni-stat/dist/uni-stat.es.js index dd9fac518..4138546a0 100644 --- a/packages/uni-stat/dist/uni-stat.es.js +++ b/packages/uni-stat/dist/uni-stat.es.js @@ -8,952 +8,952 @@ const APP_PVER_TIME = 300; const OPERATING_TIME = 10; const DIFF_TIME = 60 * 1000 * 60 * 24; -const statConfig$1 = { - appid: process.env.UNI_APP_ID, -}; -const UUID_KEY = '__DC_STAT_UUID'; -const UUID_VALUE = '__DC_UUID_VALUE'; - -function getUuid() { - let uuid = ''; - if (getPlatformName() === 'n') { - try { - uuid = plus.runtime.getDCloudId(); - } catch (e) { - uuid = ''; - } - return uuid - } - - try { - uuid = uni.getStorageSync(UUID_KEY); - } catch (e) { - uuid = UUID_VALUE; - } - - if (!uuid) { - uuid = Date.now() + '' + Math.floor(Math.random() * 1e7); - try { - uni.setStorageSync(UUID_KEY, uuid); - } catch (e) { - uni.setStorageSync(UUID_KEY, UUID_VALUE); - } - } - return uuid -} - -const getSgin = (statData) => { - let arr = Object.keys(statData); - let sortArr = arr.sort(); - let sgin = {}; - let sginStr = ''; - for (var i in sortArr) { - sgin[sortArr[i]] = statData[sortArr[i]]; - sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&'; - } - // const options = sginStr.substr(0, sginStr.length - 1) - // sginStr = sginStr.substr(0, sginStr.length - 1) + '&key=' + STAT_KEY; - // const si = crypto.createHash('md5').update(sginStr).digest('hex'); - return { - sign: '', - options: sginStr.substr(0, sginStr.length - 1), - } -}; - -const getSplicing = (data) => { - let str = ''; - for (var i in data) { - str += i + '=' + data[i] + '&'; - } - return str.substr(0, str.length - 1) -}; - -const getTime = () => { - return parseInt(new Date().getTime() / 1000) -}; - -const getPlatformName = () => { - const aliArr = ['y', 'a', 'p', 'mp-ali']; - const platformList = { - 'app-plus': 'n', - h5: 'h5', - 'mp-weixin': 'wx', - [aliArr.reverse().join('')]: 'ali', - 'mp-baidu': 'bd', - 'mp-toutiao': 'tt', - 'mp-qq': 'qq', - 'quickapp-native': 'qn', - 'mp-kuaishou': 'ks', - }; - return platformList[process.env.VUE_APP_PLATFORM] -}; - -const getPackName = () => { - let packName = ''; - if (getPlatformName() === 'wx' || getPlatformName() === 'qq') { - // 兼容微信小程序低版本基础库 - if (uni.canIUse('getAccountInfoSync')) { - packName = uni.getAccountInfoSync().miniProgram.appId || ''; - } - } - return packName -}; - -const getVersion = () => { - return getPlatformName() === 'n' ? plus.runtime.version : '' -}; - -const getChannel = () => { - const platformName = getPlatformName(); - let channel = ''; - if (platformName === 'n') { - channel = plus.runtime.channel; - } - return channel -}; - -const getScene = (options) => { - const platformName = getPlatformName(); - let scene = ''; - if (options) { - return options - } - if (platformName === 'wx') { - scene = uni.getLaunchOptionsSync().scene; - } - return scene -}; -const First__Visit__Time__KEY = 'First__Visit__Time'; -const Last__Visit__Time__KEY = 'Last__Visit__Time'; - -const getFirstVisitTime = () => { - const timeStorge = uni.getStorageSync(First__Visit__Time__KEY); - let time = 0; - if (timeStorge) { - time = timeStorge; - } else { - time = getTime(); - uni.setStorageSync(First__Visit__Time__KEY, time); - uni.removeStorageSync(Last__Visit__Time__KEY); - } - return time -}; - -const getLastVisitTime = () => { - const timeStorge = uni.getStorageSync(Last__Visit__Time__KEY); - let time = 0; - if (timeStorge) { - time = timeStorge; - } else { - time = ''; - } - uni.setStorageSync(Last__Visit__Time__KEY, getTime()); - return time -}; - -const PAGE_RESIDENCE_TIME = '__page__residence__time'; -let First_Page_residence_time = 0; -let Last_Page_residence_time = 0; - -const setPageResidenceTime = () => { - First_Page_residence_time = getTime(); - if (getPlatformName() === 'n') { - uni.setStorageSync(PAGE_RESIDENCE_TIME, getTime()); - } - return First_Page_residence_time -}; - -const getPageResidenceTime = () => { - Last_Page_residence_time = getTime(); - if (getPlatformName() === 'n') { - First_Page_residence_time = uni.getStorageSync(PAGE_RESIDENCE_TIME); - } - return Last_Page_residence_time - First_Page_residence_time -}; -const TOTAL__VISIT__COUNT = 'Total__Visit__Count'; -const getTotalVisitCount = () => { - const timeStorge = uni.getStorageSync(TOTAL__VISIT__COUNT); - let count = 1; - if (timeStorge) { - count = timeStorge; - count++; - } - uni.setStorageSync(TOTAL__VISIT__COUNT, count); - return count -}; - -const GetEncodeURIComponentOptions = (statData) => { - let data = {}; - for (let prop in statData) { - data[prop] = encodeURIComponent(statData[prop]); - } - return data -}; - -let Set__First__Time = 0; -let Set__Last__Time = 0; - -const getFirstTime = () => { - let time = new Date().getTime(); - Set__First__Time = time; - Set__Last__Time = 0; - return time -}; - -const getLastTime = () => { - let time = new Date().getTime(); - Set__Last__Time = time; - return time -}; - -const getResidenceTime = (type) => { - let residenceTime = 0; - if (Set__First__Time !== 0) { - residenceTime = Set__Last__Time - Set__First__Time; - } - - residenceTime = parseInt(residenceTime / 1000); - residenceTime = residenceTime < 1 ? 1 : residenceTime; - if (type === 'app') { - let overtime = residenceTime > APP_PVER_TIME ? true : false; - return { - residenceTime, - overtime, - } - } - if (type === 'page') { - let overtime = residenceTime > PAGE_PVER_TIME ? true : false; - return { - residenceTime, - overtime, - } - } - - return { - residenceTime, - } -}; - -const getRoute = () => { - var pages = getCurrentPages(); - var page = pages[pages.length - 1]; - if (!page) return '' - // TODO 需要确认如果不用 $vm ,其他平台会不会出错 - let _self = page.$vm; - - if (getPlatformName() === 'bd') { - return _self.$mp && _self.$mp.page.is - } else { - return _self.route || (_self.$scope && _self.$scope.route) - } -}; - -const getPageRoute = (_this) => { - let pageVm = _this.self; - let page = pageVm.$page || pageVm.$scope.$page; - return page.fullPath === '/' ? page.route : page.fullPath -}; - -const getPageTypes = (self) => { - if ( - self.$mpType === 'page' || - (self.$mp && self.$mp.mpType === 'page') || - self.$options.mpType === 'page' - ) { - return true - } - return false -}; - -const calibration = (eventName, options) => { - // login 、 share 、pay_success 、pay_fail 、register 、title - if (!eventName) { - console.error(`uni.report 缺少 [eventName] 参数`); - return true - } - if (typeof eventName !== 'string') { - console.error(`uni.report [eventName] 参数类型错误,只能为 String 类型`); - return true - } - if (eventName.length > 255) { - console.error(`uni.report [eventName] 参数长度不能大于 255`); - return true - } - - if (typeof options !== 'string' && typeof options !== 'object') { - console.error( - `uni.report [options] 参数类型错误,只能为 String 或 Object 类型` - ); - return true - } - - if (typeof options === 'string' && options.length > 255) { - console.error(`uni.report [options] 参数长度不能大于 255`); - return true - } - - if (eventName === 'title' && typeof options !== 'string') { - console.error( - 'uni.report [eventName] 参数为 title 时,[options] 参数只能为 String 类型' - ); - return true - } -}; - -const Report_Data_Time = 'Report_Data_Time'; -const Report_Status = 'Report_Status'; -const isReportData = () => { - return new Promise((resolve, reject) => { - let start_time = ''; - let end_time = new Date().getTime(); - let diff_time = DIFF_TIME; - let report_status = 1; - try { - start_time = uni.getStorageSync(Report_Data_Time); - report_status = uni.getStorageSync(Report_Status); - } catch (e) { - start_time = ''; - report_status = 1; - } - - if (report_status === '') { - requestData(({ enable }) => { - uni.setStorageSync(Report_Data_Time, end_time); - uni.setStorageSync(Report_Status, enable); - if (enable === 1) { - resolve(); - } - }); - return - } - - if (report_status === 1) { - resolve(); - } - - if (!start_time) { - uni.setStorageSync(Report_Data_Time, end_time); - start_time = end_time; - } - - if (end_time - start_time > diff_time) { - requestData(({ enable }) => { - uni.setStorageSync(Report_Data_Time, end_time); - uni.setStorageSync(Report_Status, enable); - }); - } - }) -}; - -const requestData = (done) => { - let formData = { - usv: STAT_VERSION, - conf: JSON.stringify({ - ak: statConfig$1.appid, - }), - }; - uni.request({ - url: STAT_URL, - method: 'GET', - data: formData, - success: (res) => { - const { data } = res; - if (data.ret === 0) { - typeof done === 'function' && - done({ - enable: data.enable, - }); - } - }, - fail: (e) => { - let report_status_code = 1; - try { - report_status_code = uni.getStorageSync(Report_Status); - } catch (e) { - report_status_code = 1; - } - if (report_status_code === '') { - report_status_code = 1; - } - typeof done === 'function' && - done({ - enable: report_status_code, - }); - }, - }); +const statConfig$1 = { + appid: process.env.UNI_APP_ID, }; +const UUID_KEY = '__DC_STAT_UUID'; +const UUID_VALUE = '__DC_UUID_VALUE'; -let titleJsons = {}; -// #ifdef MP -let pagesTitle = require('uni-pages?{"type":"style"}').default; -pagesTitle = pagesTitle.pages; -for (let i in pagesTitle) { - titleJsons[i] = pagesTitle[i].navigationBarTitleText || ''; -} -// #endif -// #ifndef MP -titleJsons = process.env.UNI_STAT_TITLE_JSON; -// #endif - -const statConfig = { - appid: process.env.UNI_APP_ID, -}; -const resultOptions = uni.getSystemInfoSync(); - -class Util { - constructor() { - this.self = ''; - this._retry = 0; - this._platform = ''; - this._query = {}; - this._navigationBarTitle = { - config: '', - page: '', - report: '', - lt: '', - }; - this._operatingTime = 0; - this._reportingRequestData = { - 1: [], - 11: [], - }; - this.__prevent_triggering = false; - - this.__licationHide = false; - this.__licationShow = false; - this._lastPageRoute = ''; - this.statData = { - uuid: getUuid(), - ut: getPlatformName(), - mpn: getPackName(), - ak: statConfig.appid, - usv: STAT_VERSION, - v: getVersion(), - ch: getChannel(), - cn: '', - pn: '', - ct: '', - t: getTime(), - tt: '', - p: resultOptions.platform === 'android' ? 'a' : 'i', - brand: resultOptions.brand || '', - md: resultOptions.model, - sv: resultOptions.system.replace(/(Android|iOS)\s/, ''), - mpsdk: resultOptions.SDKVersion || '', - mpv: resultOptions.version || '', - lang: resultOptions.language, - pr: resultOptions.pixelRatio, - ww: resultOptions.windowWidth, - wh: resultOptions.windowHeight, - sw: resultOptions.screenWidth, - sh: resultOptions.screenHeight, - }; - // 注册拦截器 - let registerInterceptor = - typeof uni.addInterceptor === 'function' && - process.env.NODE_ENV !== 'development'; - if (registerInterceptor) { - this.addInterceptorInit(); - this.interceptLogin(); - this.interceptShare(true); - this.interceptRequestPayment(); - } - } - - addInterceptorInit() { - let self = this; - uni.addInterceptor('setNavigationBarTitle', { - invoke(args) { - self._navigationBarTitle.page = args.title; - }, - }); - } - - interceptLogin() { - let self = this; - uni.addInterceptor('login', { - complete() { - self._login(); - }, - }); - } - - interceptShare(type) { - let self = this; - if (!type) { - self._share(); - return - } - uni.addInterceptor('share', { - success() { - self._share(); - }, - fail() { - self._share(); - }, - }); - } - - interceptRequestPayment() { - let self = this; - uni.addInterceptor('requestPayment', { - success() { - self._payment('pay_success'); - }, - fail() { - self._payment('pay_fail'); - }, - }); - } - - getIsReportData() { - return isReportData() - } - - _applicationShow() { - if (this.__licationHide) { - getLastTime(); - const time = getResidenceTime('app'); - if (time.overtime) { - let options = { - path: this._lastPageRoute, - scene: this.statData.sc, - }; - this._sendReportRequest(options); - } - this.__licationHide = false; - } - } - - _applicationHide(self, type) { - this.__licationHide = true; - getLastTime(); - const time = getResidenceTime(); - getFirstTime(); - const route = getPageRoute(this); - this._sendHideRequest( - { - urlref: route, - urlref_ts: time.residenceTime, - }, - type - ); - } - - _pageShow() { - const route = getPageRoute(this); - const routepath = getRoute(); - this._navigationBarTitle.config = - (titleJsons && titleJsons[routepath]) || ''; - if (this.__licationShow) { - getFirstTime(); - this.__licationShow = false; - this._lastPageRoute = route; - return - } - - getLastTime(); - const time = getResidenceTime('page'); - // 停留时间 - if (time.overtime) { - let options = { - path: route, - scene: this.statData.sc, - }; - this._sendReportRequest(options); - } - getFirstTime(); - } - - _pageHide() { - if (!this.__licationHide) { - getLastTime(); - const time = getResidenceTime('page'); - let route = getPageRoute(this); - if (!this._lastPageRoute) { - this._lastPageRoute = route; - } - this._sendPageRequest({ - url: route, - urlref: this._lastPageRoute, - urlref_ts: time.residenceTime, - }); - this._lastPageRoute = route; - this._navigationBarTitle = { - config: '', - page: '', - report: '', - lt: '', - }; - return - } - } - - _login() { - this._sendEventRequest( - { - key: 'login', - }, - 0 - ); - } - - _share() { - this._sendEventRequest( - { - key: 'share', - }, - 0 - ); - } - _payment(key) { - this._sendEventRequest( - { - key, - }, - 0 - ); - } - _sendReportRequest(options) { - this._navigationBarTitle.lt = '1'; - this._navigationBarTitle.config = - (titleJsons && titleJsons[options.path]) || ''; - let query = - options.query && JSON.stringify(options.query) !== '{}' - ? '?' + JSON.stringify(options.query) - : ''; - this.statData.lt = '1'; - this.statData.url = options.path + query || ''; - this.statData.t = getTime(); - this.statData.sc = getScene(options.scene); - this.statData.fvts = getFirstVisitTime(); - this.statData.lvts = getLastVisitTime(); - this.statData.tvc = getTotalVisitCount(); - if (getPlatformName() === 'n') { - this.getProperty(); - } else { - this.getNetworkInfo(); - } - } - - _sendPageRequest(opt) { - let { url, urlref, urlref_ts } = opt; - this._navigationBarTitle.lt = '11'; - let options = { - ak: this.statData.ak, - uuid: this.statData.uuid, - lt: '11', - ut: this.statData.ut, - url, - tt: this.statData.tt, - urlref, - urlref_ts, - ch: this.statData.ch, - usv: this.statData.usv, - t: getTime(), - p: this.statData.p, - }; - this.request(options); - } - - _sendHideRequest(opt, type) { - let { urlref, urlref_ts } = opt; - let options = { - ak: this.statData.ak, - uuid: this.statData.uuid, - lt: '3', - ut: this.statData.ut, - urlref, - urlref_ts, - ch: this.statData.ch, - usv: this.statData.usv, - t: getTime(), - p: this.statData.p, - }; - this.request(options, type); - } - _sendEventRequest({ key = '', value = '' } = {}) { - const route = this._lastPageRoute; - let options = { - ak: this.statData.ak, - uuid: this.statData.uuid, - lt: '21', - ut: this.statData.ut, - url: route, - ch: this.statData.ch, - e_n: key, - e_v: typeof value === 'object' ? JSON.stringify(value) : value.toString(), - usv: this.statData.usv, - t: getTime(), - p: this.statData.p, - }; - this.request(options); - } - - getNetworkInfo() { - uni.getNetworkType({ - success: (result) => { - this.statData.net = result.networkType; - this.getLocation(); - }, - }); - } - - getProperty() { - plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => { - this.statData.v = wgtinfo.version || ''; - this.getNetworkInfo(); - }); - } - - getLocation() { - { - this.statData.lat = 0; - this.statData.lng = 0; - this.request(this.statData); - } - } - - request(data, type) { - let time = getTime(); - const title = this._navigationBarTitle; - data.ttn = title.page; - data.ttpj = title.config; - data.ttc = title.report; - let requestData = this._reportingRequestData; - if (getPlatformName() === 'n') { - requestData = uni.getStorageSync('__UNI__STAT__DATA') || {}; - } - if (!requestData[data.lt]) { - requestData[data.lt] = []; - } - requestData[data.lt].push(data); - if (getPlatformName() === 'n') { - uni.setStorageSync('__UNI__STAT__DATA', requestData); - } - if (getPageResidenceTime() < OPERATING_TIME && !type) { - return - } - let uniStatData = this._reportingRequestData; - if (getPlatformName() === 'n') { - uniStatData = uni.getStorageSync('__UNI__STAT__DATA'); - } - // 时间超过,重新获取时间戳 - setPageResidenceTime(); - let firstArr = []; - let contentArr = []; - let lastArr = []; - - for (let i in uniStatData) { - const rd = uniStatData[i]; - rd.forEach((elm) => { - const newData = getSplicing(elm); - if (i === 0) { - firstArr.push(newData); - } else if (i === 3) { - lastArr.push(newData); - } else { - contentArr.push(newData); - } - }); - } - - firstArr.push(...contentArr, ...lastArr); - let optionsData = { - usv: STAT_VERSION, //统计 SDK 版本号 - t: time, //发送请求时的时间戮 - requests: JSON.stringify(firstArr), - }; - - this._reportingRequestData = {}; - if (getPlatformName() === 'n') { - uni.removeStorageSync('__UNI__STAT__DATA'); - } - - if (data.ut === 'h5') { - this.imageRequest(optionsData); - return - } - - if (getPlatformName() === 'n' && this.statData.p === 'a') { - setTimeout(() => { - this._sendRequest(optionsData); - }, 200); - return - } - this._sendRequest(optionsData); - } - _sendRequest(optionsData) { - this.getIsReportData().then(() => { - uni.request({ - url: STAT_URL, - method: 'POST', - data: optionsData, - success: () => {}, - fail: (e) => { - if (++this._retry < 3) { - setTimeout(() => { - this._sendRequest(optionsData); - }, 1000); - } - }, - }); - }); - } - /** - * h5 请求 - */ - imageRequest(data) { - this.getIsReportData().then(() => { - let image = new Image(); - let options = getSgin(GetEncodeURIComponentOptions(data)).options; - image.src = STAT_H5_URL + '?' + options; - }); - } - - sendEvent(key, value) { - // 校验 type 参数 - if (calibration(key, value)) return - - if (key === 'title') { - this._navigationBarTitle.report = value; - return - } - this._sendEventRequest( - { - key, - value: typeof value === 'object' ? JSON.stringify(value) : value, - }, - 1 - ); - } -} - -class Stat extends Util { - static getInstance() { - if (!this.instance) { - this.instance = new Stat(); - } - return this.instance - } - constructor() { - super(); - this.instance = null; - } - - report(options, self) { - // TODO 需要确认如果不用 $vm ,其他平台会不会出错 - setPageResidenceTime(); - this.__licationShow = true; - this._sendReportRequest(options, true); - } - - load(options, self) { - this.self = self; - this._query = options; - } - - show(self) { - this.self = self; - if (getPageTypes(self)) { - this._pageShow(self); - } else { - this._applicationShow(self); - } - } - ready(self) {} - hide(self) { - this.self = self; - if (getPageTypes(self)) { - this._pageHide(self); - } else { - this._applicationHide(self, true); - } - } - error(em) { - if (this._platform === 'devtools') { - if (process.env.NODE_ENV === 'development') { - console.info('当前运行环境为开发者工具,不上报数据。'); - } - } - let emVal = ''; - if (!em.message) { - emVal = JSON.stringify(em); - } else { - emVal = em.stack; - } - let options = { - ak: this.statData.ak, - uuid: this.statData.uuid, - lt: '31', - ut: this.statData.ut, - ch: this.statData.ch, - mpsdk: this.statData.mpsdk, - mpv: this.statData.mpv, - v: this.statData.v, - em: emVal, - usv: this.statData.usv, - t: getTime(), - p: this.statData.p, - }; - this.request(options); - } -} +function getUuid() { + let uuid = ''; + if (getPlatformName() === 'n') { + try { + uuid = plus.runtime.getDCloudId(); + } catch (e) { + uuid = ''; + } + return uuid + } + + try { + uuid = uni.getStorageSync(UUID_KEY); + } catch (e) { + uuid = UUID_VALUE; + } + + if (!uuid) { + uuid = Date.now() + '' + Math.floor(Math.random() * 1e7); + try { + uni.setStorageSync(UUID_KEY, uuid); + } catch (e) { + uni.setStorageSync(UUID_KEY, UUID_VALUE); + } + } + return uuid +} + +const getSgin = (statData) => { + let arr = Object.keys(statData); + let sortArr = arr.sort(); + let sgin = {}; + let sginStr = ''; + for (var i in sortArr) { + sgin[sortArr[i]] = statData[sortArr[i]]; + sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&'; + } + // const options = sginStr.substr(0, sginStr.length - 1) + // sginStr = sginStr.substr(0, sginStr.length - 1) + '&key=' + STAT_KEY; + // const si = crypto.createHash('md5').update(sginStr).digest('hex'); + return { + sign: '', + options: sginStr.substr(0, sginStr.length - 1), + } +}; + +const getSplicing = (data) => { + let str = ''; + for (var i in data) { + str += i + '=' + data[i] + '&'; + } + return str.substr(0, str.length - 1) +}; + +const getTime = () => { + return parseInt(new Date().getTime() / 1000) +}; + +const getPlatformName = () => { + const aliArr = ['y', 'a', 'p', 'mp-ali']; + const platformList = { + 'app-plus': 'n', + h5: 'h5', + 'mp-weixin': 'wx', + [aliArr.reverse().join('')]: 'ali', + 'mp-baidu': 'bd', + 'mp-toutiao': 'tt', + 'mp-qq': 'qq', + 'quickapp-native': 'qn', + 'mp-kuaishou': 'ks', + }; + return platformList[process.env.VUE_APP_PLATFORM] +}; + +const getPackName = () => { + let packName = ''; + if (getPlatformName() === 'wx' || getPlatformName() === 'qq') { + // 兼容微信小程序低版本基础库 + if (uni.canIUse('getAccountInfoSync')) { + packName = uni.getAccountInfoSync().miniProgram.appId || ''; + } + } + return packName +}; + +const getVersion = () => { + return getPlatformName() === 'n' ? plus.runtime.version : '' +}; + +const getChannel = () => { + const platformName = getPlatformName(); + let channel = ''; + if (platformName === 'n') { + channel = plus.runtime.channel; + } + return channel +}; + +const getScene = (options) => { + const platformName = getPlatformName(); + let scene = ''; + if (options) { + return options + } + if (platformName === 'wx') { + scene = uni.getLaunchOptionsSync().scene; + } + return scene +}; +const First__Visit__Time__KEY = 'First__Visit__Time'; +const Last__Visit__Time__KEY = 'Last__Visit__Time'; + +const getFirstVisitTime = () => { + const timeStorge = uni.getStorageSync(First__Visit__Time__KEY); + let time = 0; + if (timeStorge) { + time = timeStorge; + } else { + time = getTime(); + uni.setStorageSync(First__Visit__Time__KEY, time); + uni.removeStorageSync(Last__Visit__Time__KEY); + } + return time +}; + +const getLastVisitTime = () => { + const timeStorge = uni.getStorageSync(Last__Visit__Time__KEY); + let time = 0; + if (timeStorge) { + time = timeStorge; + } else { + time = ''; + } + uni.setStorageSync(Last__Visit__Time__KEY, getTime()); + return time +}; + +const PAGE_RESIDENCE_TIME = '__page__residence__time'; +let First_Page_residence_time = 0; +let Last_Page_residence_time = 0; + +const setPageResidenceTime = () => { + First_Page_residence_time = getTime(); + if (getPlatformName() === 'n') { + uni.setStorageSync(PAGE_RESIDENCE_TIME, getTime()); + } + return First_Page_residence_time +}; + +const getPageResidenceTime = () => { + Last_Page_residence_time = getTime(); + if (getPlatformName() === 'n') { + First_Page_residence_time = uni.getStorageSync(PAGE_RESIDENCE_TIME); + } + return Last_Page_residence_time - First_Page_residence_time +}; +const TOTAL__VISIT__COUNT = 'Total__Visit__Count'; +const getTotalVisitCount = () => { + const timeStorge = uni.getStorageSync(TOTAL__VISIT__COUNT); + let count = 1; + if (timeStorge) { + count = timeStorge; + count++; + } + uni.setStorageSync(TOTAL__VISIT__COUNT, count); + return count +}; + +const GetEncodeURIComponentOptions = (statData) => { + let data = {}; + for (let prop in statData) { + data[prop] = encodeURIComponent(statData[prop]); + } + return data +}; + +let Set__First__Time = 0; +let Set__Last__Time = 0; + +const getFirstTime = () => { + let time = new Date().getTime(); + Set__First__Time = time; + Set__Last__Time = 0; + return time +}; + +const getLastTime = () => { + let time = new Date().getTime(); + Set__Last__Time = time; + return time +}; + +const getResidenceTime = (type) => { + let residenceTime = 0; + if (Set__First__Time !== 0) { + residenceTime = Set__Last__Time - Set__First__Time; + } + + residenceTime = parseInt(residenceTime / 1000); + residenceTime = residenceTime < 1 ? 1 : residenceTime; + if (type === 'app') { + let overtime = residenceTime > APP_PVER_TIME ? true : false; + return { + residenceTime, + overtime, + } + } + if (type === 'page') { + let overtime = residenceTime > PAGE_PVER_TIME ? true : false; + return { + residenceTime, + overtime, + } + } + + return { + residenceTime, + } +}; + +const getRoute = () => { + var pages = getCurrentPages(); + var page = pages[pages.length - 1]; + if (!page) return '' + // TODO 需要确认如果不用 $vm ,其他平台会不会出错 + let _self = page.$vm; + + if (getPlatformName() === 'bd') { + return _self.$mp && _self.$mp.page.is + } else { + return _self.route || (_self.$scope && _self.$scope.route) + } +}; + +const getPageRoute = (_this) => { + let pageVm = _this.self; + let page = pageVm.$page || pageVm.$scope.$page; + return page.fullPath === '/' ? page.route : page.fullPath +}; + +const getPageTypes = (self) => { + if ( + self.$mpType === 'page' || + (self.$mp && self.$mp.mpType === 'page') || + self.$options.mpType === 'page' + ) { + return true + } + return false +}; + +const calibration = (eventName, options) => { + // login 、 share 、pay_success 、pay_fail 、register 、title + if (!eventName) { + console.error(`uni.report 缺少 [eventName] 参数`); + return true + } + if (typeof eventName !== 'string') { + console.error(`uni.report [eventName] 参数类型错误,只能为 String 类型`); + return true + } + if (eventName.length > 255) { + console.error(`uni.report [eventName] 参数长度不能大于 255`); + return true + } + + if (typeof options !== 'string' && typeof options !== 'object') { + console.error( + `uni.report [options] 参数类型错误,只能为 String 或 Object 类型` + ); + return true + } + + if (typeof options === 'string' && options.length > 255) { + console.error(`uni.report [options] 参数长度不能大于 255`); + return true + } + + if (eventName === 'title' && typeof options !== 'string') { + console.error( + 'uni.report [eventName] 参数为 title 时,[options] 参数只能为 String 类型' + ); + return true + } +}; + +const Report_Data_Time = 'Report_Data_Time'; +const Report_Status = 'Report_Status'; +const isReportData = () => { + return new Promise((resolve, reject) => { + let start_time = ''; + let end_time = new Date().getTime(); + let diff_time = DIFF_TIME; + let report_status = 1; + try { + start_time = uni.getStorageSync(Report_Data_Time); + report_status = uni.getStorageSync(Report_Status); + } catch (e) { + start_time = ''; + report_status = 1; + } + + if (report_status === '') { + requestData(({ enable }) => { + uni.setStorageSync(Report_Data_Time, end_time); + uni.setStorageSync(Report_Status, enable); + if (enable === 1) { + resolve(); + } + }); + return + } + + if (report_status === 1) { + resolve(); + } + + if (!start_time) { + uni.setStorageSync(Report_Data_Time, end_time); + start_time = end_time; + } + + if (end_time - start_time > diff_time) { + requestData(({ enable }) => { + uni.setStorageSync(Report_Data_Time, end_time); + uni.setStorageSync(Report_Status, enable); + }); + } + }) +}; + +const requestData = (done) => { + let formData = { + usv: STAT_VERSION, + conf: JSON.stringify({ + ak: statConfig$1.appid, + }), + }; + uni.request({ + url: STAT_URL, + method: 'GET', + data: formData, + success: (res) => { + const { data } = res; + if (data.ret === 0) { + typeof done === 'function' && + done({ + enable: data.enable, + }); + } + }, + fail: (e) => { + let report_status_code = 1; + try { + report_status_code = uni.getStorageSync(Report_Status); + } catch (e) { + report_status_code = 1; + } + if (report_status_code === '') { + report_status_code = 1; + } + typeof done === 'function' && + done({ + enable: report_status_code, + }); + }, + }); +}; + +let titleJsons = {}; +// #ifdef MP +let pagesTitle = require('uni-pages?{"type":"style"}').default; +pagesTitle = pagesTitle.pages; +for (let i in pagesTitle) { + titleJsons[i] = pagesTitle[i].navigationBarTitleText || ''; +} +// #endif +// #ifndef MP +titleJsons = process.env.UNI_STAT_TITLE_JSON; +// #endif + +const statConfig = { + appid: process.env.UNI_APP_ID, +}; +const resultOptions = uni.getSystemInfoSync(); + +class Util { + constructor() { + this.self = ''; + this._retry = 0; + this._platform = ''; + this._query = {}; + this._navigationBarTitle = { + config: '', + page: '', + report: '', + lt: '', + }; + this._operatingTime = 0; + this._reportingRequestData = { + 1: [], + 11: [], + }; + this.__prevent_triggering = false; + + this.__licationHide = false; + this.__licationShow = false; + this._lastPageRoute = ''; + this.statData = { + uuid: getUuid(), + ut: getPlatformName(), + mpn: getPackName(), + ak: statConfig.appid, + usv: STAT_VERSION, + v: getVersion(), + ch: getChannel(), + cn: '', + pn: '', + ct: '', + t: getTime(), + tt: '', + p: resultOptions.platform === 'android' ? 'a' : 'i', + brand: resultOptions.brand || '', + md: resultOptions.model, + sv: resultOptions.system.replace(/(Android|iOS)\s/, ''), + mpsdk: resultOptions.SDKVersion || '', + mpv: resultOptions.version || '', + lang: resultOptions.language, + pr: resultOptions.pixelRatio, + ww: resultOptions.windowWidth, + wh: resultOptions.windowHeight, + sw: resultOptions.screenWidth, + sh: resultOptions.screenHeight, + }; + // 注册拦截器 + let registerInterceptor = + typeof uni.addInterceptor === 'function' && + process.env.NODE_ENV !== 'development'; + if (registerInterceptor) { + this.addInterceptorInit(); + this.interceptLogin(); + this.interceptShare(true); + this.interceptRequestPayment(); + } + } + + addInterceptorInit() { + let self = this; + uni.addInterceptor('setNavigationBarTitle', { + invoke(args) { + self._navigationBarTitle.page = args.title; + }, + }); + } + + interceptLogin() { + let self = this; + uni.addInterceptor('login', { + complete() { + self._login(); + }, + }); + } + + interceptShare(type) { + let self = this; + if (!type) { + self._share(); + return + } + uni.addInterceptor('share', { + success() { + self._share(); + }, + fail() { + self._share(); + }, + }); + } + + interceptRequestPayment() { + let self = this; + uni.addInterceptor('requestPayment', { + success() { + self._payment('pay_success'); + }, + fail() { + self._payment('pay_fail'); + }, + }); + } + + getIsReportData() { + return isReportData() + } + + _applicationShow() { + if (this.__licationHide) { + getLastTime(); + const time = getResidenceTime('app'); + if (time.overtime) { + let options = { + path: this._lastPageRoute, + scene: this.statData.sc, + }; + this._sendReportRequest(options); + } + this.__licationHide = false; + } + } + + _applicationHide(self, type) { + this.__licationHide = true; + getLastTime(); + const time = getResidenceTime(); + getFirstTime(); + const route = getPageRoute(this); + this._sendHideRequest( + { + urlref: route, + urlref_ts: time.residenceTime, + }, + type + ); + } + + _pageShow() { + const route = getPageRoute(this); + const routepath = getRoute(); + this._navigationBarTitle.config = + (titleJsons && titleJsons[routepath]) || ''; + if (this.__licationShow) { + getFirstTime(); + this.__licationShow = false; + this._lastPageRoute = route; + return + } + + getLastTime(); + const time = getResidenceTime('page'); + // 停留时间 + if (time.overtime) { + let options = { + path: route, + scene: this.statData.sc, + }; + this._sendReportRequest(options); + } + getFirstTime(); + } + + _pageHide() { + if (!this.__licationHide) { + getLastTime(); + const time = getResidenceTime('page'); + let route = getPageRoute(this); + if (!this._lastPageRoute) { + this._lastPageRoute = route; + } + this._sendPageRequest({ + url: route, + urlref: this._lastPageRoute, + urlref_ts: time.residenceTime, + }); + this._lastPageRoute = route; + this._navigationBarTitle = { + config: '', + page: '', + report: '', + lt: '', + }; + return + } + } + + _login() { + this._sendEventRequest( + { + key: 'login', + }, + 0 + ); + } + + _share() { + this._sendEventRequest( + { + key: 'share', + }, + 0 + ); + } + _payment(key) { + this._sendEventRequest( + { + key, + }, + 0 + ); + } + _sendReportRequest(options) { + this._navigationBarTitle.lt = '1'; + this._navigationBarTitle.config = + (titleJsons && titleJsons[options.path]) || ''; + let query = + options.query && JSON.stringify(options.query) !== '{}' + ? '?' + JSON.stringify(options.query) + : ''; + this.statData.lt = '1'; + this.statData.url = options.path + query || ''; + this.statData.t = getTime(); + this.statData.sc = getScene(options.scene); + this.statData.fvts = getFirstVisitTime(); + this.statData.lvts = getLastVisitTime(); + this.statData.tvc = getTotalVisitCount(); + if (getPlatformName() === 'n') { + this.getProperty(); + } else { + this.getNetworkInfo(); + } + } + + _sendPageRequest(opt) { + let { url, urlref, urlref_ts } = opt; + this._navigationBarTitle.lt = '11'; + let options = { + ak: this.statData.ak, + uuid: this.statData.uuid, + lt: '11', + ut: this.statData.ut, + url, + tt: this.statData.tt, + urlref, + urlref_ts, + ch: this.statData.ch, + usv: this.statData.usv, + t: getTime(), + p: this.statData.p, + }; + this.request(options); + } + + _sendHideRequest(opt, type) { + let { urlref, urlref_ts } = opt; + let options = { + ak: this.statData.ak, + uuid: this.statData.uuid, + lt: '3', + ut: this.statData.ut, + urlref, + urlref_ts, + ch: this.statData.ch, + usv: this.statData.usv, + t: getTime(), + p: this.statData.p, + }; + this.request(options, type); + } + _sendEventRequest({ key = '', value = '' } = {}) { + const route = this._lastPageRoute; + let options = { + ak: this.statData.ak, + uuid: this.statData.uuid, + lt: '21', + ut: this.statData.ut, + url: route, + ch: this.statData.ch, + e_n: key, + e_v: typeof value === 'object' ? JSON.stringify(value) : value.toString(), + usv: this.statData.usv, + t: getTime(), + p: this.statData.p, + }; + this.request(options); + } + + getNetworkInfo() { + uni.getNetworkType({ + success: (result) => { + this.statData.net = result.networkType; + this.getLocation(); + }, + }); + } + + getProperty() { + plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => { + this.statData.v = wgtinfo.version || ''; + this.getNetworkInfo(); + }); + } + + getLocation() { + { + this.statData.lat = 0; + this.statData.lng = 0; + this.request(this.statData); + } + } + + request(data, type) { + let time = getTime(); + const title = this._navigationBarTitle; + data.ttn = title.page; + data.ttpj = title.config; + data.ttc = title.report; + let requestData = this._reportingRequestData; + if (getPlatformName() === 'n') { + requestData = uni.getStorageSync('__UNI__STAT__DATA') || {}; + } + if (!requestData[data.lt]) { + requestData[data.lt] = []; + } + requestData[data.lt].push(data); + if (getPlatformName() === 'n') { + uni.setStorageSync('__UNI__STAT__DATA', requestData); + } + if (getPageResidenceTime() < OPERATING_TIME && !type) { + return + } + let uniStatData = this._reportingRequestData; + if (getPlatformName() === 'n') { + uniStatData = uni.getStorageSync('__UNI__STAT__DATA'); + } + // 时间超过,重新获取时间戳 + setPageResidenceTime(); + let firstArr = []; + let contentArr = []; + let lastArr = []; + + for (let i in uniStatData) { + const rd = uniStatData[i]; + rd.forEach((elm) => { + const newData = getSplicing(elm); + if (i === 0) { + firstArr.push(newData); + } else if (i === 3) { + lastArr.push(newData); + } else { + contentArr.push(newData); + } + }); + } + + firstArr.push(...contentArr, ...lastArr); + let optionsData = { + usv: STAT_VERSION, //统计 SDK 版本号 + t: time, //发送请求时的时间戮 + requests: JSON.stringify(firstArr), + }; + + this._reportingRequestData = {}; + if (getPlatformName() === 'n') { + uni.removeStorageSync('__UNI__STAT__DATA'); + } + + if (data.ut === 'h5') { + this.imageRequest(optionsData); + return + } + + if (getPlatformName() === 'n' && this.statData.p === 'a') { + setTimeout(() => { + this._sendRequest(optionsData); + }, 200); + return + } + this._sendRequest(optionsData); + } + _sendRequest(optionsData) { + this.getIsReportData().then(() => { + uni.request({ + url: STAT_URL, + method: 'POST', + data: optionsData, + success: () => {}, + fail: (e) => { + if (++this._retry < 3) { + setTimeout(() => { + this._sendRequest(optionsData); + }, 1000); + } + }, + }); + }); + } + /** + * h5 请求 + */ + imageRequest(data) { + this.getIsReportData().then(() => { + let image = new Image(); + let options = getSgin(GetEncodeURIComponentOptions(data)).options; + image.src = STAT_H5_URL + '?' + options; + }); + } + + sendEvent(key, value) { + // 校验 type 参数 + if (calibration(key, value)) return + + if (key === 'title') { + this._navigationBarTitle.report = value; + return + } + this._sendEventRequest( + { + key, + value: typeof value === 'object' ? JSON.stringify(value) : value, + }, + 1 + ); + } +} + +class Stat extends Util { + static getInstance() { + if (!this.instance) { + this.instance = new Stat(); + } + return this.instance + } + constructor() { + super(); + this.instance = null; + } + + report(options, self) { + // TODO 需要确认如果不用 $vm ,其他平台会不会出错 + setPageResidenceTime(); + this.__licationShow = true; + this._sendReportRequest(options, true); + } + + load(options, self) { + this.self = self; + this._query = options; + } + + show(self) { + this.self = self; + if (getPageTypes(self)) { + this._pageShow(self); + } else { + this._applicationShow(self); + } + } + ready(self) {} + hide(self) { + this.self = self; + if (getPageTypes(self)) { + this._pageHide(self); + } else { + this._applicationHide(self, true); + } + } + error(em) { + if (this._platform === 'devtools') { + if (process.env.NODE_ENV === 'development') { + console.info('当前运行环境为开发者工具,不上报数据。'); + } + } + let emVal = ''; + if (!em.message) { + emVal = JSON.stringify(em); + } else { + emVal = em.stack; + } + let options = { + ak: this.statData.ak, + uuid: this.statData.uuid, + lt: '31', + ut: this.statData.ut, + ch: this.statData.ch, + mpsdk: this.statData.mpsdk, + mpv: this.statData.mpv, + v: this.statData.v, + em: emVal, + usv: this.statData.usv, + t: getTime(), + p: this.statData.p, + }; + this.request(options); + } +} var Stat$1 = Stat; -const stat = Stat$1.getInstance(); -let isHide = false; -const lifecycle = { - onLaunch(options) { - stat.report(options, this); - }, - onReady() { - stat.ready(this); - }, - onLoad(options) { - stat.load(options, this); - // 重写分享,获取分享上报事件 - if (this.$scope && this.$scope.onShareAppMessage) { - let oldShareAppMessage = this.$scope.onShareAppMessage; - this.$scope.onShareAppMessage = function (options) { - stat.interceptShare(false); - return oldShareAppMessage.call(this, options) - }; - } - }, - onShow() { - isHide = false; - stat.show(this); - }, - onHide() { - isHide = true; - stat.hide(this); - }, - onUnload() { - if (isHide) { - isHide = false; - return - } - stat.hide(this); - }, - onError(e) { - stat.error(e); - }, -}; - -function main() { - if (process.env.NODE_ENV === 'development') { - uni.report = function (type, options) {}; - } else { - uni.onAppLaunch((options) => { - stat.report(options); - // 小程序平台此时也无法获取getApp,统一在options中传递一个app对象 - options.app.$vm.$.appContext.app.mixin(lifecycle); - uni.report = function (type, options) { - stat.sendEvent(type, options); - }; - }); - } -} - +const stat = Stat$1.getInstance(); +let isHide = false; +const lifecycle = { + onLaunch(options) { + stat.report(options, this); + }, + onReady() { + stat.ready(this); + }, + onLoad(options) { + stat.load(options, this); + // 重写分享,获取分享上报事件 + if (this.$scope && this.$scope.onShareAppMessage) { + let oldShareAppMessage = this.$scope.onShareAppMessage; + this.$scope.onShareAppMessage = function (options) { + stat.interceptShare(false); + return oldShareAppMessage.call(this, options) + }; + } + }, + onShow() { + isHide = false; + stat.show(this); + }, + onHide() { + isHide = true; + stat.hide(this); + }, + onUnload() { + if (isHide) { + isHide = false; + return + } + stat.hide(this); + }, + onError(e) { + stat.error(e); + }, +}; + +function main() { + if (process.env.NODE_ENV === 'development') { + uni.report = function (type, options) {}; + } else { + uni.onAppLaunch((options) => { + stat.report(options); + // 小程序平台此时也无法获取getApp,统一在options中传递一个app对象 + options.app.$vm.$.appContext.app.mixin(lifecycle); + uni.report = function (type, options) { + stat.sendEvent(type, options); + }; + }); + } +} + main(); -- GitLab