(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"011a":function(t,e){function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(t.exports=n=function(){return!!e},t.exports.__esModule=!0,t.exports["default"]=t.exports)()}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"02c7":function(t,e,n){"use strict";var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"$Api",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"$App",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"$Config",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"$Qrcode",{enumerable:!0,get:function(){return s.default}});var i=r(n("feec")),o=r(n("3186")),a=r(n("4874")),s=r(n("95da"))},"0bdb":function(t,e,n){var r=n("d551");function i(t,e){for(var n=0;n=200&&t.statusCode<300);e?r(t.data):i(t),n&&"function"==typeof n&&n(t)}}))}))},p=function(){for(var t=arguments.length,e=new Array(t),n=0;n-1||"function"===typeof s[t])}o[a]=function(){var t={};for(var e in s)u(e)&&(t[e]=s[e]);return t}(),o[a].canIUse("getAppBaseInfo")||(o[a].getAppBaseInfo=o[a].getSystemInfoSync),o[a].canIUse("getWindowInfo")||(o[a].getWindowInfo=o[a].getSystemInfoSync),o[a].canIUse("getDeviceInfo")||(o[a].getDeviceInfo=o[a].getSystemInfoSync);var f=o[a];e.default=f},3240:function(t,e,n){"use strict";n.r(e),function(t){ /*! * Vue.js v2.6.11 * (c) 2014-2024 Evan You * Released under the MIT License. */ var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function s(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function l(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function h(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function p(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function m(t,e){return y.call(t,e)}function b(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,_=b((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),x=b((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,O=b((function(t){return t.replace(S,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function j(t){for(var e={},n=0;n0),J=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===q),K=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/),{}.watch);if(U)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Q)}catch(Dn){}var Z=function(){return void 0===W&&(W=!U&&!V&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),W},tt=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function et(t){return"function"===typeof t&&/native code/.test(t.toString())}var nt,rt="undefined"!==typeof Symbol&&et(Symbol)&&"undefined"!==typeof Reflect&&et(Reflect.ownKeys);nt="undefined"!==typeof Set&&et(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var it=$,ot=0,at=function(){this.id=ot++,this.subs=[]};function st(t){at.SharedObject.targetStack.push(t),at.SharedObject.target=t,at.target=t}function ct(){at.SharedObject.targetStack.pop(),at.SharedObject.target=at.SharedObject.targetStack[at.SharedObject.targetStack.length-1],at.target=at.SharedObject.target}at.prototype.addSub=function(t){this.subs.push(t)},at.prototype.removeSub=function(t){g(this.subs,t)},at.prototype.depend=function(){at.SharedObject.target&&at.SharedObject.target.addDep(this)},at.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!m(i,"default"))a=!1;else if(""===a||a===O(t)){var c=Bt(String,i.type);(c<0||s0&&(c=t(c,(n||"")+"_"+s),re(c[0])&&re(f)&&(l[u]=ht(f.text+c[0].text),c.shift()),l.push.apply(l,c)):a(c)?re(f)?l[u]=ht(f.text+c):""!==c&&l.push(ht(c)):re(c)&&re(f)?l[u]=ht(f.text+c.text):(o(e._isVList)&&i(c.tag)&&r(c.key)&&i(n)&&(c.key="__vlist"+n+"_"+s+"__"),l.push(c)));return l}(t):void 0}function re(t){return i(t)&&i(t.text)&&function(t){return!1===t}(t.isComment)}function ie(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function oe(t){var e=ae(t.$options.inject,t);e&&(yt(!1),Object.keys(e).forEach((function(n){_t(t,n,e[n])})),yt(!0))}function ae(t,e){if(t){for(var n=Object.create(null),r=rt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=fe(e,c,t[c]))}else i={};for(var u in e)u in i||(i[u]=le(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),N(i,"$stable",a),N(i,"$key",s),N(i,"$hasNormal",o),i}function fe(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:ne(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function le(t,e){return function(){return t[e]}}function he(t,e){var n,r,o,a,c;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;rdocument.createEvent("Event").timeStamp&&(Ze=function(){return tn.now()})}function en(){var t,e;for(Ze(),Ke=!0,Ge.sort((function(t,e){return t.id-e.id})),Qe=0;QeQe&&Ge[n].id>t.id)n--;Ge.splice(n+1,0,t)}else Ge.push(t);Je||(Je=!0,Xt(en))}}(this)},rn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Dn){Dt(Dn,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},rn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rn.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},rn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var on={enumerable:!0,configurable:!0,get:$,set:$};function an(t,e,n){on.get=function(){return this[e][n]},on.set=function(t){this[e][n]=t},Object.defineProperty(t,n,on)}function sn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||yt(!1);var a=function(o){i.push(o);var a=Ct(o,e,n,t);_t(r,o,a),o in t||an(t,"_props",o)};for(var s in e)a(s);yt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?$:k(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;e=t._data="function"===typeof e?function(t,e){st();try{return t.call(e,e)}catch(Dn){return Dt(Dn,e,"data()"),{}}finally{ct()}}(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&m(r,o)||R(o)||an(t,"_data",o)}wt(e,!0)}(t):wt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=Z();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new rn(t,a||$,$,cn)),i in t||un(t,i,o)}}(t,e.computed),e.watch&&e.watch!==K&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!function(t){return"[object RegExp]"===c.call(t)}(t)&&t.test(e)}function bn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=yn(a.componentOptions);s&&!e(s)&&wn(n,o,r,i)}}}function wn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,g(n,e)}(function(t){t.prototype._init=function(t){var e=this;e._uid=dn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Tt(pn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&We(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=se(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return Me(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Me(t,e,n,r,i,!0)};var o=r&&r.data;_t(t,"$attrs",o&&o.attrs||n,null,!0),_t(t,"$listeners",e._parentListeners||n,null,!0)}(e),qe(e,"beforeCreate"),!e._$fallback&&oe(e),sn(e),!e._$fallback&&ie(e),!e._$fallback&&qe(e,"created"),e.$options.el&&e.$mount(e.$options.el)}})(vn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=xt,t.prototype.$delete=St,t.prototype.$watch=function(t,e,n){if(u(e))return hn(this,t,e,n);n=n||{},n.user=!0;var r=new rn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(i){Dt(i,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(vn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?A(n):n;for(var r=A(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;oparseInt(this.max)&&wn(s,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Sn={KeepAlive:xn};(function(t){var e={get:function(){return D}};Object.defineProperty(t,"config",e),t.util={warn:it,extend:P,mergeOptions:Tt,defineReactive:_t},t.set=xt,t.delete=St,t.nextTick=Xt,t.observable=function(t){return wt(t),t},t.options=Object.create(null),L.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,Sn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Tt(this.options,t),this}}(t),gn(t),function(t){L.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)})(vn),Object.defineProperty(vn.prototype,"$isServer",{get:Z}),Object.defineProperty(vn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(vn,"FunctionalRenderContext",{value:Pe}),vn.version="2.6.11";var On="[object Array]",kn="[object Object]";function An(t,e){var n={};return function t(e,n){if(e===n)return;var r=jn(e),i=jn(n);if(r==kn&&i==kn){if(Object.keys(e).length>=Object.keys(n).length)for(var o in n){var a=e[o];void 0===a?e[o]=null:t(a,n[o])}}else r==On&&i==On&&e.length>=n.length&&n.forEach((function(n,r){t(e[r],n)}))}(t,e),function t(e,n,r,i){if(e===n)return;var o=jn(e),a=jn(n);if(o==kn)if(a!=kn||Object.keys(e).length1&&(e[r[0].trim()]=r[1].trim())}})),e}));var Ln=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var Bn=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];vn.prototype.__patch__=function(t,e){var n=this;if(null!==e&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=function(t){var e=Object.create(null),n=[].concat(Object.keys(t._data||{}),Object.keys(t._computedWatchers||{}));n.reduce((function(e,n){return e[n]=t[n],e}),e);var r=t.__composition_api_state__||t.__secret_vfa_state__,i=r&&r.rawBindings;return i&&Object.keys(i).forEach((function(n){e[n]=t[n]})),Object.assign(e,t.$mp.data||{}),Array.isArray(t.$options.behaviors)&&-1!==t.$options.behaviors.indexOf("uni://form-field")&&(e["name"]=t.name,e["value"]=t.value),JSON.parse(JSON.stringify(e,Tn))}(this)}catch(s){console.error(s)}i.__webviewId__=r.data.__webviewId__;var o=Object.create(null);Object.keys(i).forEach((function(t){o[t]=r.data[t]}));var a=!1===this.$shouldDiffData?i:An(i,o);Object.keys(a).length?(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"chargingPile",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,r.setData(a,(function(){n.__next_tick_pending=!1,$n(n)}))):$n(this)}},vn.prototype.$mount=function(t,e){return function(t,e,n){return t.mpType?("app"===t.mpType&&(t.$options.render=In),t.$options.render||(t.$options.render=In),!t._$fallback&&qe(t,"beforeMount"),new rn(t,(function(){t._update(t._render(),n)}),$,{before:function(){t._isMounted&&!t._isDestroyed&&qe(t,"beforeUpdate")}},!0),n=!1,t):t}(this,0,e)},function(t){var e=t.extend;t.extend=function(t){t=t||{};var n=t.methods;return n&&Object.keys(n).forEach((function(e){-1!==Bn.indexOf(e)&&(t[e]=n[e],delete n[e])})),e.call(this,t)};var n=t.config.optionMergeStrategies,r=n.created;Bn.forEach((function(t){n[t]=r})),t.prototype.__lifecycle_hooks__=Bn}(vn),function(t){t.config.errorHandler=function(e,n,r){t.util.warn("Error in "+r+': "'+e.toString()+'"',n),console.error(e);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(e)};var e=t.prototype.$emit;t.prototype.$emit=function(t){if(this.$scope&&t){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,t,{__args__:A(arguments,1)})}catch(r){}}return e.apply(this,arguments)},t.prototype.$nextTick=function(t){return En(this,t)},Ln.forEach((function(e){t.prototype[e]=function(t){return this.$scope&&this.$scope[e]?this.$scope[e](t):"undefined"!==typeof my?"createSelectorQuery"===e?my.createSelectorQuery(t):"createIntersectionObserver"===e?my.createIntersectionObserver(t):void 0:void 0}})),t.prototype.__init_provide=ie,t.prototype.__init_injections=oe,t.prototype.__call_hook=function(t,e){var n=this;st();var r,i=n.$options[t],o=t+" hook";if(i)for(var a=0,s=i.length;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function z(t){return"number"==typeof t}function R(t){return"auto"===t||null===t}function N(t){return/%$/.test(t)}var F=m,W=y,H=b,U=_,V=x;function q(t){return t.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()}))}function G(t,e){var n,r,i=function(t){var e=t.match(/([a-z]+)/)[1];return[e,q(t.split(e)[1])]}(t),o=i[0],a=i[1],s=e.split(" ");if(a)return(n={})[o+a]=e,n;if(s.length&&!a){var c=s[0],u=s[1],l=s[2],h=s[3];return(r={})[o+f[0]]=c,r[o+f[1]]=u||c,r[o+f[2]]=l||c,r[o+f[3]]=h||u||c,r}}var Y,X=0,J=function(){function t(){C(this,"elements",[]),C(this,"afterElements",[]),C(this,"beforeElements",[]),C(this,"ids",[]),C(this,"width",0),C(this,"height",0),C(this,"top",0),C(this,"left",0),C(this,"pre",null),C(this,"offsetX",0),C(this,"offsetY",0),X++,this.id=X}var e=t.prototype;return e.fixedBind=function(t,e){void 0===e&&(e=0),this.container=e?t.parent:t.root,this.container.fixedLine=this,this.fixedAdd(t)},e.fixedAdd=function(t){if(!this.ids.includes(t.id)){this.ids.push(t.id),this.elements.push(t);var e=t.computedStyle.zIndex;(void 0===e?0:e)>=0?this.afterElements.push(t):this.beforeElements.push(t),this.refreshLayout()}},e.bind=function(t){this.container=t.parent,this.container.line=null,this.container.lines?(this.container.lines.push(this),this.pre=this.getPreLine(),this.top=this.pre.top+this.pre.height,this.left=this.container.contentSize.left):(this.top=this.container.contentSize.top,this.left=this.container.contentSize.left,this.container.lines=[this]),this.isInline=t.isInline(),this.container.line=this,this.outerWidth=t.parent&&t.parent.contentSize.width?t.parent.contentSize.width:1/0,this.add(t)},e.getPreLine=function(){return this.container.lines[this.container.lines.length-2]},e.canIEnter=function(t){return!((100*t.offsetSize.width+100*this.width)/100>this.outerWidth)||(this.closeLine(),!1)},e.closeLine=function(){delete this.container.line},e.add=function(t){this.ids.includes(t.id)||(this.ids.push(t.id),this.elements.push(t),this.refreshWidthHeight(t))},e.refreshWidthHeight=function(t){t.offsetSize.height>this.height&&(this.height=t.offsetSize.height),this.width+=t.offsetSize.width||0,(this.container.lineMaxWidth||0)0;)"("===e[c+=1]&&(s+=1),")"===e[c]&&(s-=1);i="".concat(t(e.slice(a+1,c))),a=c}if(isNaN(Number(e[a]))&&"."!==e[a]||a===o-1){var u=parseFloat(i);switch(r){case"+":n.push(u);break;case"-":n.push(-u);break;case"*":n.push(n.pop()*u);break;case"/":n.push(n.pop()/u)}r=e[a],i=""}}for(var f=0;n.length;)f+=n.pop();return f}(r.replace(new RegExp(/-?[0-9]+(\.[0-9]+)?(rpx|px|%)/,"g"),$));t.style.textIndent=i}}},e.layout=function(t,e){var n=this;this.refreshXAlign(),this.pre?(this.top=this.pre.top+this.pre.height+this.offsetY,this.left=e+this.offsetX):(this.top=Math.max(this.top,this.container.contentSize.top,t)+this.offsetY,this.left=Math.max(this.left,this.container.contentSize.left,e)+this.offsetX),this.elements.forEach((function(t,e){n.setIndent(t);var r=n.elements[e-1],i=n.getOffsetY(t);t.style.top=n.top+i,t.style.left=r?r.offsetSize.left+r.offsetSize.width:n.left,t.getBoxPosition()}))},e.refreshLayout=function(){this.afterElements=this.afterElements.sort((function(t,e){return t.computedStyle.zIndex-e.computedStyle.zIndex})),this.beforeElements=this.beforeElements.sort((function(t,e){return t.computedStyle.zIndex-e.computedStyle.zIndex}))},t}(),K=((Y={})["row"]={width:"width",contentWidth:"width",lineMaxWidth:"lineMaxWidth",left:"left",top:"top",height:"height",lineMaxHeight:"lineMaxHeight",marginLeft:"marginLeft"},Y["column"]={width:"height",contentWidth:"height",lineMaxWidth:"lineMaxWidth",left:"top",top:"left",height:"width",lineMaxHeight:"lineMaxHeight",marginLeft:"marginTop"},Y),Q=function(t){var e,n;function r(){var e;return C(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call(this)||this),"outerWidth",0),e.exactValue=0,e.flexTotal=0,e.width=0,e.key=null,e.flexDirection="row",e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,L(e,n);var i=r.prototype;return i.bind=function(t){this.container=t.parent,this.container.line=this,this.container.lines?(this.container.lines.push(this),this.pre=this.getPreLine(),this.top=this.pre.top+this.pre.height,this.left=this.container.contentSize.left):(this.top=this.container.contentSize.top,this.left=this.container.contentSize.left,this.container.lines=[this]),t.parent&&(this.flexDirection=t.parent.style.flexDirection,this.key=K[this.flexDirection]),this.initHeight(t),this.outerWidth=t.parent&&t.parent.contentSize[this.key.contentWidth]?t.parent.contentSize[this.key.contentWidth]:1/0,this.add(t)},i.add=function(t){this.ids.push(t.id);var e=t.style.flex;z(e)?this.flexTotal+=e:z(this.getWidth(t.style))&&(this.exactValue+=this.getWidth(t.offsetSize)),this.elements.push(t),this.refreshWidthHeight(t),t.next||this.closeLine()},i.closeLine=function(){this.calcFlex()},i.initHeight=function(t){this[this.key.height]=0},i.getWidth=function(t){return t[this.key.width]||0},i.getHeight=function(t){return t[this.key.height]||0},i.setWidth=function(t,e){t[this.key.width]=e},i.setHeight=function(t,e){t[this.key.height]=e},i.calcFlex=function(){var t=this,e=this.container.contentSize[this.key.contentWidth],n=0;this.elements.forEach((function(r){var i=r.style,o=r.contentSize,a=t.getWidth(i)||t.getWidth(o);z(i.flex)&&(a=i.flex/t.flexTotal*(e-t.exactValue)),t.setWidth(r.computedStyle,a),r.isFlexCalc=!0,delete r.line,delete r.lines,delete r.lineMaxWidth,r.getBoxWidthHeight(),n=Math.max(n,t.getHeight(r.offsetSize))})),this.setHeight(this,n)},i.refreshWidthHeight=function(t){var e=this.container.style.alignItems;e&&!t.style.alignSelf&&(t.style.alignSelf=e);var n=this.getHeight(t.offsetSize);n>this[this.key.height]&&(this.container[this.key.lineMaxHeight]=this[this.key.height]=n),this[this.key.width]+=this.getWidth(t.offsetSize);var r=Math.min(this.getWidth(this),!this.getWidth(this.container.contentSize)&&1/0);(this.container[this.key.lineMaxWidth]||0)1)return 0;var e=t.style.alignSelf,n=this.getHeight(this.container.contentSize),r=n-this.getHeight(t.offsetSize);return"flex-end"===e?r:"center"===e?r/2:"stretch"===e?(r&&t.name==g&&(t.style[this.key.width]=this.getWidth(t.offsetSize),t.style[this.key.height]=n,delete t.line,delete t.lines,t.getBoxWidthHeight()),0):0},i.layout=function(t,e){var n=this;this.refreshXAlign(),this.pre?(this.top=this.pre.top+this.pre.height+this.offsetY,this.left=e+this.offsetX):(this.top=Math.max(this.top,this.container.contentSize.top,t)+this.offsetY,this.left=Math.max(this.left,this.container.contentSize.left,e)+this.offsetX),this.elements.forEach((function(t,e){n.setIndent(t);var r=n.elements[e-1],i=n.getOffsetY(t);t.style[n.key.top]=n[n.key.top]+i,t.style[n.key.left]=r?r.offsetSize[n.key.left]+n.getWidth(r.offsetSize):n[n.key.left],t.getBoxPosition()}))},r}(J),Z=y,et=g,nt=_,rt=0,it={left:null,top:null,width:null,height:null},ot=new Map,at=function(){function t(t,e,n,r){var i=this;C(this,"id",rt++),C(this,"style",{left:null,top:null,width:null,height:null}),C(this,"computedStyle",{}),C(this,"originStyle",{}),C(this,"children",{}),C(this,"layoutBox",M({},it)),C(this,"contentSize",M({},it)),C(this,"clientSize",M({},it)),C(this,"borderSize",M({},it)),C(this,"offsetSize",M({},it)),this.ctx=r,this.root=n,e&&(this.parent=e),this.name=t.type||t.name,this.attributes=this.getAttributes(t);var a=function(t,e){var n,r=["color","fontSize","lineHeight","verticalAlign","fontWeight","textAlign"],i=t.type,a=void 0===i?"view":i,s=t.styles,c=void 0===s?{}:s,u=(e||{}).computedStyle,l=Object.assign({},S);if([W,F,H].includes(a)&&!c.display&&(l.display="inline-block"),u)for(var h=0;h=0&&f<0,F=c>=0&&h<0;return n==d[0]&&(this[n].left=t.left+a+g+D+(N?2*-f:0),this[n].top=t.top+c+m+j+(F?2*-h:0),this[n].width=t.width+(this[n].widthAdd?0:z),this[n].height=t.height+(this[n].heightAdd?0:R),this[n].widthAdd=z,this[n].heightAdd=R),n==d[1]&&(this[n].left=t.left+a+D+(N<0?-f:0),this[n].top=t.top+c+j+(F?-h:0),this[n].width=t.width+g+w,this[n].height=t.height+m+x),n==d[2]&&(this[n].left=t.left+a+D/2+(N<0?-f:0),this[n].top=t.top+c+j/2+(F?-h:0),this[n].width=t.width+g+w+D/2+M/2,this[n].height=t.height+m+x+T/2+j/2),n==d[3]&&(this[n].left=t.left+(N<0?-f:0),this[n].top=t.top+(F?-h:0),this[n].width=t.width+g+w+D+M+a+f,this[n].height=t.height+m+x+T+j+h+c),this[n]},e.layoutBoxUpdate=function(t,e,n,r){var i=this;if(void 0===n&&(n=-1),"border-box"==e.boxSizing){var o=e||{},a=o.border,s=(a=void 0===a?{}:a).borderWidth,c=void 0===s?0:s,u=o.borderTop,f=(u=void 0===u?{}:u).borderTopWidth,l=void 0===f?c:f,h=o.borderBottom,p=(h=void 0===h?{}:h).borderBottomWidth,v=void 0===p?c:p,g=o.borderRight,y=(g=void 0===g?{}:g).borderRightWidth,m=void 0===y?c:y,b=o.borderLeft,w=(b=void 0===b?{}:b).borderLeftWidth,_=void 0===w?c:w,x=o.padding,S=(x=void 0===x?{}:x).paddingTop,O=void 0===S?0:S,k=x.paddingRight,A=void 0===k?0:k,P=x.paddingBottom,j=void 0===P?0:P,$=x.paddingLeft,E=void 0===$?0:$;n||(t.width-=E+A+m+_),1!==n||r||(t.height-=O+j+l+v)}this.layoutBox&&(d.forEach((function(n){return i.layoutBox[n]=i.getOffsetSize(t,e,n)})),this.layoutBox=Object.assign({},this.layoutBox,this.layoutBox.borderSize))},e.getBoxPosition=function(){var t=this.computedStyle,e=this.fixedLine,n=this.lines,r=t.left,i=void 0===r?0:r,o=t.top,a=void 0===o?0:o,s=M({},this.contentSize,{left:i,top:a}),c=this.contentSize.top-this.offsetSize.top,u=this.contentSize.left-this.offsetSize.left;if(this.root.fixedLine&&!this.root.isDone){this.root.isDone=!0;for(var f,l=D(this.root.fixedLine.elements);!(f=l()).done;){var h=f.value;h.setPosition(h,this.root.offsetSize),h.getBoxPosition()}}if(e)for(var d,p=D(e.elements);!(d=p()).done;){var v=d.value,g=M({},this.borderSize,{left:i,top:a});v.setPosition(v,g);var y=this.borderSize.top-this.offsetSize.top,m=this.borderSize.left-this.offsetSize.left;v.style.left+=i+m,v.style.top+=a+y,v.getBoxPosition()}if(n)for(var b,w=D(n);!(b=w()).done;)b.value.layout(s.top+c,s.left+u);return this.layoutBoxUpdate(s,t),this.layoutBox},e.getBoxState=function(t,e){return this.isBlock(t)||this.isBlock(e)},e.isBlock=function(t){return void 0===t&&(t=this),t&&"block"==t.style.display},e.isFlex=function(t){return void 0===t&&(t=this),t&&"flex"==t.style.display},e.isInFlow=function(){return!(this.isAbsolute||this.isFixed)},e.inFlexBox=function(t){return void 0===t&&(t=this),!!t.isInFlow()&&!!t.parent&&(!(!t.parent||"flex"!==t.parent.style.display)||void 0)},e.isInline=function(t){return void 0===t&&(t=this),t&&"inline-block"==t.style.display},e.contrastSize=function(t,e,n){var r=t;return n&&(r=Math.min(r,n)),e&&(r=Math.max(r,e)),r},e.measureText=function(t,e){var n=this.ctx.measureText(t),r=n.width,i=n.actualBoundingBoxAscent,o=n.actualBoundingBoxDescent;return{ascent:i,descent:o,width:r,fontHeight:i+o||.7*e+1}},e.getParentSize=function(t,e){if(void 0===t&&(t=this),void 0===e&&(e=!1),t&&t.parent){if(t.parent.contentSize.width)return t.parent.contentSize;if(e)return this.getParentSize(t.parent,e)}return null},e.getBoxWidthHeight=function(){var t=this,e=this.name,n=this.computedStyle,r=this.attributes,i=this.parent,o=void 0===i?{}:i,a=this.ctx,s=this.getChildren(),c=n.left,u=void 0===c?0:c,f=n.top,l=void 0===f?0:f,h=n.bottom,d=n.right,p=n.width,v=void 0===p?0:p,g=n.minWidth,y=n.maxWidth,m=n.minHeight,b=n.maxHeight,w=n.height,_=void 0===w?0:w,x=n.fontSize,S=n.fontWeight,O=n.fontFamily,k=n.fontStyle,A=n.position;n.textIndent;var P=n.lineClamp,j=n.lineHeight,E=n.padding,T=void 0===E?{}:E,I=n.margin,C=void 0===I?{}:I,M=n.border,L=(M=void 0===M?{}:M).borderWidth,B=void 0===L?0:L,D=n.borderRight,z=(D=void 0===D?{}:D).borderRightWidth,F=void 0===z?B:z,W=n.borderLeft,H=(W=void 0===W?{}:W).borderLeftWidth,U=void 0===H?B:H,V=o.contentSize&&o.contentSize.width,q=o.contentSize&&o.contentSize.height;if(N(v)&&V&&(v=$(v,V)),N(v)&&!V&&(v=null),N(_)&&q&&(_=$(_,q)),N(_)&&!q&&(_=null),N(g)&&V&&(g=$(g,V)),N(y)&&V&&(y=$(y,V)),N(m)&&q&&(m=$(m,q)),N(b)&&q&&(b=$(b,q)),n.padding&&V)for(var G in n.padding)Object.hasOwnProperty.call(T,G)&&(T[G]=$(T[G],V));var Y=T.paddingRight,X=void 0===Y?0:Y,K=T.paddingLeft,tt=void 0===K?0:K;if(n.margin&&[C.marginLeft,C.marginRight].includes("auto"))if(v){var rt=V&&V-v-X-tt-U-F||0;C.marginLeft==C.marginRight?C.marginLeft=C.marginRight=rt/2:R(C.marginLeft)?C.marginLeft=rt:C.marginRight=rt}else C.marginLeft=C.marginRight=0;var it=C.marginRight,at=void 0===it?0:it,st=C.marginLeft,ct={width:v,height:_,left:0,top:0},ut=tt+X+U+F+(void 0===st?0:st)+at;if(this.offsetWidth=ut,e==Z&&!this.attributes.widths){var ft=r.text||"";a.save(),a.setFonts({fontFamily:O,fontSize:x,fontWeight:S,fontStyle:k}),ft.length,"\n"==ft&&(ft="",this.isBr=!0),(""+ft).split("\n").map((function(e){var n=Array.from(e).map((function(e){var n=""+(/^[\u4e00-\u9fa5]+$/.test(e)?"cn":e)+O+x+S+k,r=ot.get(n);if(r)return{width:r,text:e};var i=t.measureText(e,x).width;return ot.set(n,i),{width:i,text:e}})),r=t.measureText(e,x),i=r.fontHeight,o=r.ascent,a=r.descent;t.attributes.fontHeight=i,t.attributes.ascent=o,t.attributes.descent=a,t.attributes.widths||(t.attributes.widths=[]),t.attributes.widths.push({widths:n,total:n.reduce((function(t,e){return t+e.width}),0)})})),a.restore()}if("image"==e&&null==v){var lt=r.width,ht=r.height;ct.width=this.contrastSize(Math.round(lt*_/ht)||0,g,y),this.layoutBoxUpdate(ct,n,0)}if(e==Z&&null==v){var dt=this.attributes.widths,pt=Math.max.apply(Math,dt.map((function(t){return t.total})));o&&V>0&&(pt>V||this.isBlock(this))&&!this.isAbsolute&&!this.isFixed&&(pt=V),ct.width=this.contrastSize(pt,g,y),this.layoutBoxUpdate(ct,n,0)}if(e==Z&&(o.style.flex||!this.attributes.lines)){var vt=this.attributes.widths.length;this.attributes.widths.forEach((function(t){return t.widths.reduce((function(t,e,n){return t+e.width>ct.width?(vt++,e.width):t+e.width}),0)})),vt=P&&vt>P?P:vt,this.attributes.lines=vt}if("image"==e&&null==_){var gt=r.width,yt=r.height;r.text,ct.height=this.contrastSize($(ct.width*yt/gt)||0,m,b),this.layoutBoxUpdate(ct,n,1)}e==Z&&null==_&&(j=$(j,x),ct.height=this.contrastSize($(this.attributes.lines*j),m,b),this.layoutBoxUpdate(ct,n,1,!0)),!v&&o&&o.children&&V&&(!this.isFlex(o)||o.isFlexCalc)&&([et,Z].includes(e)&&this.isFlex()||e==et&&this.isBlock(this)&&this.isInFlow())&&(ct.width=this.contrastSize(V-(o.isFlexCalc?0:ut),g,y),this.layoutBoxUpdate(ct,n)),v&&!N(v)&&(ct.width=this.contrastSize(v,g,y),this.layoutBoxUpdate(ct,n,0)),_&&!N(_)&&(ct.height=this.contrastSize(ct.height,m,b),this.layoutBoxUpdate(ct,n,1));var mt=0;if(s.length){var bt=null,wt=!1;s.forEach((function(e,r){e.getBoxWidthHeight();var i=s[r+1];if(i&&i.isInFlow()&&(e.next=i),!t.line||!t.line.ids.includes(e.id))if(e.isInFlow()&&!e.inFlexBox()){var o=t.getBoxState(bt,e);if(e.isBr)return wt=!0;t.line&&t.line.canIEnter(e)&&!o&&!wt?t.line.add(e):(wt=!1,(new J).bind(e)),bt=e}else e.inFlexBox()?t.line&&(t.line.canIEnter(e)||"nowrap"==n.flexWrap)?t.line.add(e):(new Q).bind(e):e.isFixed?t.root.fixedLine?t.root.fixedLine.fixedAdd(e):(new J).fixedBind(e):t.fixedLine?t.fixedLine.fixedAdd(e):(new J).fixedBind(e,1)})),this.lines&&(mt=this.lines.reduce((function(t,e){return t+e.height}),0))}var _t=0,xt=0;if(!v&&(this.isAbsolute||this.isFixed)&&V){var St=A==nt?V:this.root.width,Ot=St-(N(u)?$(u,St):u)-(N(d)?$(d,St):d);_t=n.left?Ot:this.lineMaxWidth}if(!_&&(null!=l?l:this.isAbsolute||this.isFixed&&q)){var kt=A==nt?q:this.root.height,At=kt-(N(l)?$(l,kt):l)-(N(h)?$(h,kt):h);xt=n.top?At:0}if(v&&!N(v)||ct.width||(ct.width=_t||this.contrastSize((this.isBlock(this)&&!this.isInFlow()?V||o.lineMaxWidth:this.lineMaxWidth)||this.lineMaxWidth,g,y),this.layoutBoxUpdate(ct,n,0)),_||!mt&&!xt||(ct.height=xt||this.contrastSize(mt,m,b),this.layoutBoxUpdate(ct,n)),n.borderRadius&&this.borderSize&&this.borderSize.width)for(var G in n.borderRadius)Object.hasOwnProperty.call(n.borderRadius,G)&&(n.borderRadius[G]=$(n.borderRadius[G],this.borderSize.width));return this.layoutBox},e.layout=function(){return this.getBoxWidthHeight(),this.root.offsetSize=this.offsetSize,this.root.contentSize=this.contentSize,this.getBoxPosition(),this.offsetSize},t}(),st=function(){var t,e,n,r,i,o,a=[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28],s=[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177],c=[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],u=[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,30,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],f=[255,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175],l=[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142,0],h=[],d=[],p=[],v=[],g=[],y=2;function m(t,e){var n;t>e&&(n=t,t=e,e=n),n=e,n*=e,n+=e,n>>=1,v[n+=t]=1}function b(t,n){var r;for(p[t+e*n]=1,r=-2;r<2;r++)p[t+r+e*(n-2)]=1,p[t-2+e*(n+r+1)]=1,p[t+2+e*(n+r)]=1,p[t+r+1+e*(n+2)]=1;for(r=0;r<2;r++)m(t-1,n+r),m(t+1,n-r),m(t-r,n-1),m(t+r,n+1)}function w(t){for(;t>=255;)t=((t-=255)>>8)+(255&t);return t}var _=[];function x(t,e,n,r){var i,o,a;for(i=0;ie&&(n=t,t=e,e=n),n=e,n+=e*e,n>>=1,v[n+=t]}function O(t){var n,r,i,o;switch(t){case 0:for(r=0;r>1&1,n=0;n=5&&(n+=3+g[e]-5);for(e=3;et||3*g[e-3]>=4*g[e]||3*g[e+3]>=4*g[e])&&(n+=40);return n}function A(){var t,n,r,i,o,a=0,s=0;for(n=0;ne*e;)c-=e*e,u++;for(a+=10*u,t=0;t1)for($=a[t],P=e-7;;){for(k=e-7;k>$-3&&(b(k,P),!(k<$));)k-=$;if(P<=$+9)break;b(6,P-=$),b(P,6)}for(p[8+e*(e-8)]=1,P=0;P<7;P++)m(7,P),m(e-8,P),m(7,P+e-7);for(k=0;k<8;k++)m(k,7),m(k+e-8,7),m(k,e-8);for(k=0;k<9;k++)m(k,8);for(k=0;k<8;k++)m(k+e-8,8),m(8,k);for(P=0;P<7;P++)m(8,P+e-7);for(k=0;k6)for($=s[t-7],j=17,k=0;k<6;k++)for(P=0;P<3;P++,j--)1&(j>11?t>>j-12:$>>j)?(p[5-k+e*(2-P+e-11)]=1,p[2-P+e-11+e*(5-k)]=1):(m(5-k,2-P+e-11),m(2-P+e-11,5-k));for(P=0;P=(k=i*(n+r)+r)-2&&(E=k-2,t>9&&E--),T=E,t>9){for(h[T+2]=0,h[T+3]=0;T--;)$=h[T],h[T+3]|=255&$<<4,h[T+2]=$>>4;h[2]|=255&E<<4,h[1]=E>>4,h[0]=64|E>>12}else{for(h[T+1]=0,h[T+2]=0;T--;)$=h[T],h[T+2]|=255&$<<4,h[T+1]=$>>4;h[1]|=255&E<<4,h[0]=64|E>>4}for(T=E+3-(t<10);T0;I--)_[I]=_[I]?_[I-1]^l[w(f[_[I]]+T)]:_[I-1];_[0]=l[w(f[_[0]]+T)]}for(T=0;T<=o;T++)_[T]=f[_[T]];for(j=k,P=0,T=0;T>=1)1&P&&(p[e-1-j+8*e]=1,j<6?p[8+e*j]=1:p[8+e*(j+1)]=1);for(j=0;j<7;j++,P>>=1)1&P&&(p[8+e*(e-7+j)]=1,j?p[6-j+8*e]=1:p[7+8*e]=1);return p}(g)},utf16to8:function(t){var e,n,r,i;for(e="",r=t.length,n=0;n=1&&i<=127?e+=t.charAt(n):i>2047?(e+=String.fromCharCode(224|i>>12&15),e+=String.fromCharCode(128|i>>6&63),e+=String.fromCharCode(128|i>>0&63)):(e+=String.fromCharCode(192|i>>6&31),e+=String.fromCharCode(128|i>>0&63));return e},draw:function(t,n,r,i,o){n.drawView(r,i);var a=n.ctx,s=r.contentSize,c=s.width,u=s.height,f=s.left,l=s.top;i.borderRadius,i.backgroundColor;var h=i.color,d=void 0===h?"#000000":h;if(i.border,r.contentSize.left,r.borderSize.left,r.contentSize.top,r.borderSize.top,y=o||y,a){a.save(),n.setOpacity(i),n.setTransform(r,i);var p=Math.min(c,u);t=this.utf16to8(t);var v=this.getFrame(t),g=p/e;a.setFillStyle(d);for(var m=0;m=360&&(a-=360),a<0&&(a+=360),0===(a=Math.round(a)))return{x0:Math.round(e/2)+r,y0:n+i,x1:Math.round(e/2)+r,y1:i};if(180===a)return{x0:Math.round(e/2)+r,y0:i,x1:Math.round(e/2)+r,y1:n+i};if(90===a)return{x0:r,y0:Math.round(n/2)+i,x1:e+r,y1:Math.round(n/2)+i};if(270===a)return{x0:e+r,y0:Math.round(n/2)+i,x1:r,y1:Math.round(n/2)+i};var s=Math.round(180*Math.asin(e/Math.sqrt(Math.pow(e,2)+Math.pow(n,2)))/Math.PI);if(a===s)return{x0:r,y0:n+i,x1:e+r,y1:i};if(a===180-s)return{x0:r,y0:i,x1:e+r,y1:n+i};if(a===180+s)return{x0:e+r,y0:i,x1:r,y1:n+i};if(a===360-s)return{x0:e+r,y0:n+i,x1:r,y1:i};var c,u=0,f=0,l=0,h=0;if(a180-s&&a<180||a>180&&a<180+s||a>360-s){var d=a*Math.PI/180,p=a360-s?n/2:-n/2,v=Math.tan(d)*p,g=a180-s&&a<180?e/2-v:-e/2-v;u=-(l=v+(c=Math.pow(Math.sin(d),2)*g)),f=-(h=p+c/Math.tan(d))}(a>s&&a<90||a>90&&a<90+s||a>180+s&&a<270||a>270&&a<360-s)&&(d=(90-a)*Math.PI/180,v=a>s&&a<90||a>90&&a<90+s?e/2:-e/2,p=Math.tan(d)*v,g=a>s&&a<90||a>270&&a<360-s?n/2-p:-n/2-p,u=-(l=v+(c=Math.pow(Math.sin(d),2)*g)/Math.tan(d)),f=-(h=p+c));return u=Math.round(u+e/2)+r,f=Math.round(n/2-f)+i,l=Math.round(l+e/2)+r,h=Math.round(n/2-h)+i,{x0:u,y0:f,x1:l,y1:h}}(i,t,e,n,r),s=a.x0,c=a.y0,u=a.x1,f=a.y1,l=o.createLinearGradient(s,c,u,f),h=i.match(/linear-gradient\((.+)\)/)[1],d=I(h.substring(h.indexOf(",")+1)),p=0;p=a||r==u&&o=a)&&(s=e.width/n.width);var f=n.width*s,l=n.height*s,h=i||[],d=h[0],p=h[1],v=T(d)?$(d,e.width):(e.width-f)*(E(d)?$(d,1):{left:0,center:.5,right:1}[d||"center"]),g=T(p)?$(p,e.height):(e.height-l)*(E(p)?$(p,1):{top:0,center:.5,bottom:1}[p||"center"]),y=function(t,e){return[(t-v)/s,(e-g)/s]},m=y(0,0),b=m[0],w=m[1],_=y(e.width,e.height),x=_[0],S=_[1],O=Math.max,k=Math.min;return{sx:O(b,0),sy:O(w,0),sw:k(x-b,n.width),sh:k(S-w,n.height),dx:O(v,0),dy:O(g,0),dw:k(f,e.width),dh:k(l,e.height)}}({objectFit:d,objectPosition:g},e.contentSize,t),r=n.sx,o=n.sy,a=n.sh,s=n.sw,c=n.dx,f=n.dy,l=n.dh,h=n.dw;k==u.MP_BAIDU?i.drawImage(t.src,c+_,f+x,h,l,r,o,s,a):i.drawImage(t.src,r,o,s,a,c+_,f+x,h,l)}else i.drawImage(t.src,_,x,b,w)},P=function(){i.restore(),I.drawView(e,n,!1,!0,!1),o(1)},j=function(t){A(t),P()},j(t),[2]}))}))}))];case 1:return o.sent(),[2]}}))}))},t.prototype.drawText=function(t,e,n,r){var i=this,o=this.ctx,a=e.borderSize,s=e.contentSize,c=e.left,u=e.top,f=s.width,l=s.height,h=s.left-a.left||0,d=s.top-a.top||0,p=n.color,v=n.lineHeight,g=n.fontSize,y=n.fontWeight,m=n.fontFamily,b=n.fontStyle,w=n.textIndent,_=void 0===w?0:w,x=n.textAlign,S=n.textStroke,O=n.verticalAlign,k=void 0===O?dt:O,A=n.backgroundColor,P=n.lineClamp,E=n.backgroundClip,T=n.textShadow,I=n.textDecoration;if(_=j(_)?_:0,this.drawView(e,n,E!=ut),v=$(v,g),t){o.save(),c+=h,u+=d;var C=r.fontHeight,M=r.descent,L=void 0===M?0:M,B=r.ascent,D=L+(void 0===B?0:B);switch(o.setFonts({fontFamily:m,fontSize:g,fontWeight:y,fontStyle:b}),o.setTextBaseline(dt),o.setTextAlign(x),E?this.setBackground(A,f,l,c,u):o.setFillStyle(p),x){case vt:break;case gt:c+=.5*f;break;case yt:c+=f}var z=r.lines*v,R=Math.ceil((l-z)/2);switch(R<0&&(R=0),k){case ht:break;case dt:u+=R;break;case pt:u+=2*R}var N=(v-C)/2,F=v/2,W=function(t){var e=o.measureText(t),n=e.actualBoundingBoxDescent,r=void 0===n?0:n,i=e.actualBoundingBoxAscent;return k==ht?{fix:D?void 0===i?0:i:F-N/2,lineY:D?0:N-N/2}:k==dt?{fix:D?F+r/4:F,lineY:D?0:N}:k==pt?{fix:D?v-r:F+N/2,lineY:D?2*N:N+N/2}:{fix:0,height:0,lineY:0}},H=function(t,e,n){var i=t;switch(x){case vt:i+=n;break;case gt:i=(t-=n/2)+n;break;case yt:i=t,t-=n}if(I){o.setLineWidth(g/13),o.beginPath();var a=.1*r.fontHeight;/\bunderline\b/.test(I)&&(o.moveTo(t,e+r.fontHeight+a),o.lineTo(i,e+r.fontHeight+a)),/\boverline\b/.test(I)&&(o.moveTo(t,e-a),o.lineTo(i,e-a)),/\bline-through\b/.test(I)&&(o.moveTo(t,e+.5*r.fontHeight),o.lineTo(i,e+.5*r.fontHeight)),o.closePath(),o.setStrokeStyle(p),o.stroke()}},U=function(t,e,n){var r=function(){o.setLineWidth(S.width),o.setStrokeStyle(S.color),o.strokeText(t,e,n)},a="outset";S&&S.type!==a?(o.save(),i.setShadow({boxShadow:T}),o.fillText(t,e,n),o.restore(),r()):S&&S.type==a?(o.save(),i.setShadow({boxShadow:T}),r(),o.restore(),o.save(),o.fillText(t,e,n),o.restore()):(i.setShadow({boxShadow:T}),o.fillText(t,e,n))};if(!r.widths||1==r.widths.length&&r.widths[0].total+_<=s.width){var V=W(t),q=V.fix,G=void 0===q?0:q,Y=V.lineY;return U(t,c+_,u+G),H(c+_,u+Y,r&&r.widths&&r.widths[0].total||r.text),u+=v,o.restore(),void this.setBorder(e,n)}for(var X=u,J=c,K="",Q=0,Z=o.measureText("...").width,tt=r.widths,et=0;ets.width){Q>=P&&(K+="…"),Q++,rt=0;var ft=W(K);G=ft.fix,Y=ft.lineY,U(K,J,u+G),H(J,u+Y,rt),u+=v,K=""}else if(it==nt.length-1){et!=tt.length-1&&Q==P&&Z+rtX+l||Q>P)break}}o.restore()}},t.prototype.source=function(t){return s(this,void 0,void 0,(function(){var e,n,r,i,o=this;return c(this,(function(a){switch(a.label){case 0:if(this.node=null,e=+new Date,"{}"==JSON.stringify(t))return[2];if(t.styles=t.styles||t.css||{},!t.type)for(n in t.type=lt,t)["views","children","type","css","styles"].includes(n)||(t.styles[n]=t[n],delete t[n]);return t.styles.boxSizing||(t.styles.boxSizing="border-box"),[4,this.create(t)];case 1:return(r=a.sent())?(i=r.layout()||{},this.size=i,this.node=r,this.onEffectFinished().then((function(t){return o.lifecycle("onEffectSuccess",t)})).catch((function(t){return o.lifecycle("onEffectFail",t)})),this.performance&&console.log("布局用时:"+(+new Date-e)+"ms"),[2,this.size]):[2,console.warn("no node")]}}))}))},t.prototype.getImageInfo=function(t){return this.imageBus[t]||(this.imageBus[t]=this.createImage(t,this.useCORS)),this.imageBus[t]},t.prototype.create=function(t,e){return s(this,void 0,void 0,(function(){var n,r,i,o,s,u,f,l,h,d,p,v,g,y,m,b,w,_,x,S,O,k,A,P;return c(this,(function(c){switch(c.label){case 0:if(!t)return[2];if(t.styles||(t.styles=t.css||{}),n=t.type,r=t.show,i=void 0===r||r,o=n==ct,s=[ut,ft].includes(n),u="textBox"==n,f=t.styles||{},l=f.backgroundImage,h=f.display,o&&!t.src&&!t.url)return[2];if("none"==h||!i)return[2];if(s||u){if(d=t.children,p=t.views,!d&&p&&(t.children=d=p),!t.text&&(!d||d&&!d.length))return[2];d&&d.length&&!t.flattened&&(v=function t(e,n,r){void 0===n&&(n={}),void 0===r&&(r=!0);var i=[];return e.forEach((function(e){var o=e.styles,s=void 0===o?{}:o,c=e.css,u=void 0===c?{}:c,f=e.children,l=void 0===f?[]:f,h=e.views,d=void 0===h?[]:h,p=e.text,v=void 0===p?"":p,g=e.type,y=void 0===g?"":g;!l&&d&&(e.children=l=d);var m;m=a(a(r?a({},n):{},s),u);var b={},w={},_={};if(Object.keys(m).map((function(t){if(t.includes("padding")||t.includes("margin")){var e=G(t,m[t]);Object.keys(e).map((function(t){t.includes("Left")?w[t]=e[t]:t.includes("Right")?_[t]=e[t]:b[t]=e[t]}))}})),m.textIndent&&(w.textIndent=m.textIndent,delete n.textIndent),""!==v){var x=Array.from(v);x.forEach((function(t,e){var n=Object.assign({},m,b);0===e?Object.assign(n,w):e==x.length-1&&Object.assign(n,_),delete n.padding,delete n.margin,i.push({type:"text",text:t,styles:n})}))}if(y==ct||y==ft)i.push(e);else if("block"===s.display&&l.length>0){var S=t(l,m,!1);e.children=S,e.flattened=!0,i.push(e)}else l.length>0&&(S=t(l,m,r),i=i.concat(S))})),i}(t.children||t.views),t.type="view",t.children=v)}if(!(o||t.type==lt&&l))return[3,4];g=o?t.src:"",y=/url\(['"]?(.*?)['"]?\)/.exec(l),l&&y&&y[1]&&(g=y[1]||""),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.getImageInfo(g)];case 2:return m=c.sent(),b=m.width,w=m.height,!(_=m.path)&&o?[2]:(_&&(t.attributes=Object.assign(t.attributes||{},{width:b,height:w,path:_,src:_,naturalSrc:g})),[3,4]);case 3:return x=c.sent(),t.type!=lt?[2]:(this.lifecycle("onEffectFail",a(a({},x),{src:g})),[3,4]);case 4:if(this.count+=1,S=new at(t,e,this.root,this.ctx),!(O=t.children||t.views))return[3,8];k=0,c.label=5;case 5:return k=7&&w(t),null==h&&(h=S(n,r,d)),x(h,e)},y=function(t,e){for(var n=-1;n<=7;n+=1)if(!(t+n<=-1||s<=t+n))for(var r=-1;r<=7;r+=1)e+r<=-1||s<=e+r||(o[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},m=function(){for(var t=8;t>r&1);o[Math.floor(r/3)][r%3+s-8-3]=i}for(r=0;r<18;r+=1){i=!t&&1==(e>>r&1);o[r%3+s-8-3][Math.floor(r/3)]=i}},_=function(t,e){for(var n=r<<3|e,i=a.getBCHTypeInfo(n),c=0;c<15;c+=1){var u=!t&&1==(i>>c&1);c<6?o[c][8]=u:c<8?o[c+1][8]=u:o[s-15+c][8]=u}for(c=0;c<15;c+=1){u=!t&&1==(i>>c&1);c<8?o[8][s-c-1]=u:c<9?o[8][15-c-1+1]=u:o[8][15-c-1]=u}o[s-8][8]=!t},x=function(t,e){for(var n=-1,r=s-1,i=7,c=0,u=a.getMaskFunction(e),f=s-1;f>0;f-=2){6==f&&(f-=1);while(1){for(var l=0;l<2;l+=1)if(null==o[r][f-l]){var h=!1;c>>i&1));var d=u(r,f-l);d&&(h=!h),o[r][f-l]=h,i-=1,-1==i&&(c+=1,i=7)}if(r+=n,r<0||s<=r){r-=n,n=-n;break}}}},S=function(t,e,n){for(var r=u.getRSBlocks(t,e),i=f(),o=0;o8*l)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*l+")");i.getLengthInBits()+4<=8*l&&i.put(0,4);while(i.getLengthInBits()%8!=0)i.putBit(!1);while(1){if(i.getLengthInBits()>=8*l)break;if(i.put(236,8),i.getLengthInBits()>=8*l)break;i.put(17,8)}return function(t,e){for(var n=0,r=0,i=0,o=new Array(e.length),s=new Array(e.length),u=0;u=0?v.getAt(g):0}}var y=0;for(h=0;hr)&&(t=r,e=n)}return e}())},p.createTableTag=function(t,e){t=t||2,e="undefined"==typeof e?4*t:e;var n="";n+='";for(var i=0;i';n+=""}return n+="",n+="
",n},p.createImgTag=function(t,e,n){t=t||2,e="undefined"==typeof e?4*t:e;var r=e,i=p.getModuleCount()*t+e;return v(n,n,(function(e,n){if(r<=e&&e>>8),e.push(255&a)):e.push(r)}}return e}};var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a=function(){var t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],e={},n=function(t){var e=0;while(0!=t)e+=1,t>>>=1;return e};return e.getBCHTypeInfo=function(t){var e=t<<10;while(n(e)-n(1335)>=0)e^=1335<=0)e^=7973<5&&(n+=3+o-5)}for(r=0;r=256)e-=255;return t[e]}};return r}();function c(t,e){if("undefined"==typeof t.length)throw new Error(t.length+"/"+e);var n=function(){var n=0;while(n>>7-e%8&1)},put:function(t,e){for(var r=0;r>>e-r-1&1))},getLengthInBits:function(){return e},putBit:function(n){var r=Math.floor(e/8);t.length<=r&&t.push(0),n&&(t[r]|=128>>>e%8),e+=1}};return n},l=function(t){for(var e=r.MODE_8BIT_BYTE,n=t,i=[],o={},a=0,s=n.length;a65536?(c[0]=240|(1835008&u)>>>18,c[1]=128|(258048&u)>>>12,c[2]=128|(4032&u)>>>6,c[3]=128|63&u):u>2048?(c[0]=224|(61440&u)>>>12,c[1]=128|(4032&u)>>>6,c[2]=128|63&u):u>128?(c[0]=192|(1984&u)>>>6,c[1]=128|63&u):c[0]=u,i.push(c)}i=Array.prototype.concat.apply([],i),i.length!=n.length&&(i.unshift(191),i.unshift(187),i.unshift(239));var f=i;return o.getMode=function(){return e},o.getLength=function(t){return f.length},o.write=function(t){for(var e=0;e>>8)},writeBytes:function(t,n,r){n=n||0,r=r||t.length;for(var i=0;i0&&(e+=","),e+=t[n];return e+="]",e}};return e},d=function(t){var e=t,n=0,r=0,i=0,o={read:function(){while(i<8){if(n>=e.length){if(0==i)return-1;throw new Error("unexpected end of file./"+i)}var t=e.charAt(n);if(n+=1,"="==t)return i=0,-1;t.match(/^\s$/)||(r=r<<6|a(t.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw new Error("c:"+t)};return o},p=function(t,e){var n=t,r=e,i=new Array(t*e),o={setPixel:function(t,e,r){i[e*n+t]=r},write:function(t){t.writeString("GIF87a"),t.writeShort(n),t.writeShort(r),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(n),t.writeShort(r),t.writeByte(0);var e=a(2);t.writeByte(2);var i=0;while(e.length-i>255)t.writeByte(255),t.writeBytes(e,i,255),i+=255;t.writeByte(e.length-i),t.writeBytes(e,i,e.length-i),t.writeByte(0),t.writeString(";")}},a=function(t){for(var e=1<>>i!=0)throw new Error("length over");while(n+i>=8)e.writeByte(255&(t<>>=8-n,r=0,n=0;r|=t<0&&e.writeByte(r)}};return i}(c);u.write(e,r);var f=0,l=String.fromCharCode(i[f]);f+=1;while(f=6)o(t>>>e-6),e-=6},i.flush=function(){if(e>0&&(o(t<<6-e),t=0,e=0),n%3!=0)for(var i=3-n%3,a=0;a=40)throw new Error("Text too long to encode");return t(e,{size:s,errorCorrectLevel:a,typeNumber:o+1})}var c=parseInt(s/i.getModuleCount()),u=parseInt((s-i.getModuleCount()*c)/2);return i.createImgTag(c,u,s)}}},"9fc1":function(t,e,n){var r=n("3b2d")["default"];function i(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",f=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(e){h=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),a=new I(r||[]);return s(o,"_invoke",{value:j(t,n,a)}),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=d;var v="suspendedStart",g="executing",y="completed",m={};function b(){}function w(){}function _(){}var x={};h(x,u,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(C([])));O&&O!==o&&a.call(O,u)&&(x=O);var k=_.prototype=b.prototype=Object.create(x);function A(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function n(i,o,s,c){var u=p(t[i],t,o);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==r(l)&&a.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)}var i;s(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function j(t,n,r){var i=v;return function(o,a){if(i===g)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=$(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===v)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var u=p(t,n,r);if("normal"===u.type){if(i=r.done?y:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=y,r.method="throw",r.arg=u.arg)}}}function $(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator["return"]&&(n.method="return",n.arg=e,$(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},a708:function(t,e,n){var r=n("6454");t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},af34:function(t,e,n){var r=n("a708"),i=n("b893"),o=n("6382"),a=n("9008");t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports["default"]=t.exports},b893:function(t,e){t.exports=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},d3b4:function(t,e,n){"use strict";(function(t,r){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.LOCALE_ZH_HANT=e.LOCALE_ZH_HANS=e.LOCALE_FR=e.LOCALE_ES=e.LOCALE_EN=e.I18n=e.Formatter=void 0,e.compileI18nJsonStr=function(t,e){var n=e.locale,r=e.locales,i=e.delimiters;if(!k(t,i))return t;S||(S=new l);var o=[];Object.keys(r).forEach((function(t){t!==n&&o.push({locale:t,values:r[t]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(P(JSON.parse(t),o,i),null,2)}catch(a){}return t},e.hasI18nJson=function t(e,n){S||(S=new l);return j(e,(function(e,r){var i=e[r];return O(i)?!!k(i,n)||void 0:t(i,n)}))},e.initVueI18n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof t){var i=[e,t];t=i[0],e=i[1]}"string"!==typeof t&&(t=x());"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var o=new w({locale:t,fallbackLocale:n,messages:e,watcher:r}),a=function(t,e){if("function"!==typeof getApp)a=function(t,e){return o.t(t,e)};else{var n=!1;a=function(t,e){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,_(r,o))),o.t(t,e)}}return a(t,e)};return{i18n:o,f:function(t,e,n){return o.f(t,e,n)},t:function(t,e){return a(t,e)},add:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(t,e,n)},watch:function(t){return o.watchLocale(t)},getLocale:function(){return o.getLocale()},setLocale:function(t){return o.setLocale(t)}}},e.isI18nStr=k,e.isString=void 0,e.normalizeLocale=b,e.parseI18nJson=function t(e,n,r){S||(S=new l);return j(e,(function(e,i){var o=e[i];O(o)?k(o,r)&&(e[i]=A(o,n,r)):t(o,n,r)})),e},e.resolveLocale=function(t){return function(e){return e?(e=b(e)||e,function(t){var e=[],n=t.split("-");while(n.length)e.push(n.join("-")),n.pop();return e}(e).find((function(e){return t.indexOf(e)>-1}))):e}};var o=i(n("34cf")),a=i(n("67ad")),s=i(n("0bdb")),c=i(n("3b2d")),u=function(t){return null!==t&&"object"===(0,c.default)(t)},f=["{","}"],l=function(){function t(){(0,a.default)(this,t),this._caches=Object.create(null)}return(0,s.default)(t,[{key:"interpolate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;if(!e)return[t];var r=this._caches[t];return r||(r=p(t,n),this._caches[t]=r),v(r,e)}}]),t}();e.Formatter=l;var h=/^(?:\d)+/,d=/^(?:\w)+/;function p(t,e){var n=(0,o.default)(e,2),r=n[0],i=n[1],a=[],s=0,c="";while(s-1?"zh-Hans":t.indexOf("-hant")>-1||function(t,e){return!!e.find((function(e){return-1!==t.indexOf(e)}))}(t,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=["en","fr","es"];e&&Object.keys(e).length>0&&(n=Object.keys(e));var r=function(t,e){return e.find((function(e){return 0===t.indexOf(e)}))}(t,n);return r||void 0}}var w=function(){function t(e){var n=e.locale,r=e.fallbackLocale,i=e.messages,o=e.watcher,s=e.formater;(0,a.default)(this,t),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||m,this.messages=i||{},this.setLocale(n||"en"),o&&this.watchLocale(o)}return(0,s.default)(t,[{key:"setLocale",value:function(t){var e=this,n=this.locale;this.locale=b(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(t){t(e.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(t){var e=this,n=this.watchers.push(t)-1;return function(){e.watchers.splice(n,1)}}},{key:"add",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[t];r?n?Object.assign(r,e):Object.keys(e).forEach((function(t){y(r,t)||(r[t]=e[t])})):this.messages[t]=e}},{key:"f",value:function(t,e,n){return this.formater.interpolate(t,e,n).join("")}},{key:"t",value:function(t,e,n){var r=this.message;return"string"===typeof e?(e=b(e,this.messages),e&&(r=this.messages[e])):n=e,y(r,t)?this.formater.interpolate(r[t],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}]),t}();function _(t,e){t.$watchLocale?t.$watchLocale((function(t){e.setLocale(t)})):t.$watch((function(){return t.$locale}),(function(t){e.setLocale(t)}))}function x(){return"undefined"!==typeof t&&t.getLocale?t.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():"en"}e.I18n=w;var S,O=function(t){return"string"===typeof t};function k(t,e){return t.indexOf(e[0])>-1}function A(t,e,n){return S.interpolate(t,e,n).join("")}function P(t,e,n){return j(t,(function(t,r){(function(t,e,n,r){var i=t[e];if(O(i)){if(k(i,r)&&(t[e]=A(i,n[0].values,r),n.length>1)){var o=t[e+"Locales"]={};n.forEach((function(t){o[t.locale]=A(i,t.values,r)}))}}else P(i,n,r)})(t,r,e,n)})),t}function j(t,e){if(Array.isArray(t)){for(var n=0;n=0}("2.9.2")},e.compareVersion=m,e.getImageInfo=function(e,n){var r=this,i=this&&this.canvas&&this.canvas.createImage;return new Promise(function(){var n=(0,s.default)(o.default.mark((function n(a,s){var c,u;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(c=e.replace(/^@\//,"/"),!g[e]||!g[e].errMsg){n.next=5;break}a(g[e]),n.next=22;break;case 5:if(n.prev=5,!l(e)||i&&!v){n.next=10;break}return n.next=9,w(e);case 9:c=n.sent;case 10:n.next=15;break;case 12:n.prev=12,n.t0=n["catch"](5),s(f(f({},n.t0),{},{src:c}));case 15:if(!i||v){n.next=21;break}return u=r.canvas.createImage(),u.onload=function(){var t={path:u,width:u.width,height:u.height};g[e]=t,a(g[e])},u.onerror=function(t){s({err:t,path:e})},u.src=c,n.abrupt("return");case 21:t.getImageInfo({src:c,success:function(t){if(t.path=/^\.|^\/(?=[^\/])/.test(c)?"/".concat(t.path):t.path,i){var n=r.canvas.createImage();return n.onload=function(){t.path=n,g[e]=t,a(g[e])},n.onerror=function(t){s({err:t,path:e})},void(n.src=c)}g[e]=t,a(g[e])},fail:function(t){console.error({err:t,path:e}),s({err:t,path:e})}});case 22:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(t,e){return n.apply(this,arguments)}}())},e.isBase64=void 0,e.isNumber=y,e.networkReg=e.isPC=void 0,e.pathToBase64=function(e){return/^data:/.test(e)?e:new Promise((function(n,r){t.canIUse("getFileSystemManager")&&t.getFileSystemManager().readFile({filePath:e,encoding:"base64",success:function(t){n("data:image/png;base64,"+t.data)},fail:function(t){console.error({error:t,path:e}),r(t)}})}))},e.prefix=void 0,e.sleep=function(t){return new Promise((function(e){return setTimeout(e,t)}))},e.toPx=function e(n,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"===typeof n)return n;if(y(n))return 1*n;if("string"===typeof n){var o=/^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|px|%)$/g,a=o.exec(n);if(!n||!a)return 0;var s=a[3];n=parseFloat(n);var c=0;return"rpx"===s?c=t.upx2px(n):"px"===s?c=1*n:"%"===s?c=n*e(r)/100:"em"===s&&(c=n*e(r||14)),i?1*c.toFixed(2):Math.round(c)}return 0};var o=i(n("7eb4")),a=i(n("7ca3")),s=i(n("ee10")),c=i(n("34cf"));function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;eo)return 1;if(i>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var m=Object.prototype.toString,b=Object.prototype.hasOwnProperty;function w(t){return"function"===typeof t}function _(t){return"string"===typeof t}function x(t){return"[object Object]"===m.call(t)}function S(t,e){return b.call(t,e)}function O(){}function k(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var A=/-(\w)/g,P=k((function(t){return t.replace(A,(function(t,e){return e?e.toUpperCase():""}))}));function j(t){var e={};return x(t)&&Object.keys(t).sort().forEach((function(n){e[n]=t[n]})),Object.keys(e)?e:t}var $=["invoke","success","fail","complete","returnValue"],E={},T={};function I(t,e){Object.keys(e).forEach((function(n){-1!==$.indexOf(n)&&w(e[n])&&(t[n]=function(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(t[n])){var r=e[n];e[n]=function(i){B(t[n],i,e).then((function(t){return w(r)&&r(t)||t}))}}})),e}function z(t,e){var n=[];Array.isArray(E.returnValue)&&n.push.apply(n,(0,u.default)(E.returnValue));var r=T[t];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,u.default)(r.returnValue)),n.forEach((function(t){e=t(e)||e})),e}function R(t){var e=Object.create(null);Object.keys(E).forEach((function(t){"returnValue"!==t&&(e[t]=E[t].slice())}));var n=T[t];return n&&Object.keys(n).forEach((function(t){"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))})),e}function N(t,e,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),o=1;o-1?"zh-Hans":t.indexOf("-hant")>-1||function(t,e){return!!e.find((function(e){return-1!==t.indexOf(e)}))}(t,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=function(t,e){return e.find((function(e){return 0===t.indexOf(e)}))}(t,["en","fr","es"]);return n||void 0}}function ct(){if(w(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return it()}var ut=[];"undefined"!==typeof r&&(r.getLocale=ct);var ft={promiseInterceptor:F},lt=Object.freeze({__proto__:null,upx2px:et,rpx2px:et,getLocale:ct,setLocale:function(t){var e=!!w(getApp)&&getApp();if(!e)return!1;var n=e.$vm.$locale;return n!==t&&(e.$vm.$locale=t,ut.forEach((function(e){return e({locale:t})})),!0)},onLocaleChange:function(t){-1===ut.indexOf(t)&&ut.push(t)},addInterceptor:function(t,e){"string"===typeof t&&x(e)?I(T[t]||(T[t]={}),e):x(t)&&I(E,t)},removeInterceptor:function(t,e){"string"===typeof t?x(e)?C(T[t],e):delete T[t]:x(t)&&C(E,t)},interceptors:ft});var ht,dt={name:function(t){return"back"===t.exists&&t.delta?"navigateBack":"redirectTo"},args:function(t){if("back"===t.exists&&t.url){var e=function(t){var e=getCurrentPages(),n=e.length;while(n--){var r=e[n];if(r.$page&&r.$page.fullPath===t)return n}return-1}(t.url);if(-1!==e){var n=getCurrentPages().length-1-e;n>0&&(t.delta=n)}}}},pt={args:function(t){var e=parseInt(t.current);if(!isNaN(e)){var n=t.urls;if(Array.isArray(n)){var r=n.length;if(r)return e<0?e=0:e>=r&&(e=r-1),e>0?(t.current=n[e],t.urls=n.filter((function(t,r){return!(r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(x(e)){var o=!0===i?e:{};for(var a in w(n)&&(n=n(e,o)||{}),e)if(S(n,a)){var s=n[a];w(s)&&(s=s(e[a],e,o)),s?_(s)?o[s]=e[a]:x(s)&&(o[s.name?s.name:a]=s.value):console.warn("The '".concat(t,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==jt.indexOf(a)?w(e[a])&&(o[a]=$t(t,e[a],r)):i||(o[a]=e[a]);return o}return w(e)&&(e=$t(t,e,r)),e}function Tt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return w(Pt.returnValue)&&(e=Pt.returnValue(t,e)),Et(t,e,n,{},r)}function It(e,n){if(S(Pt,e)){var r=Pt[e];return r?function(n,i){var o=r;w(r)&&(o=r(n)),n=Et(e,n,o.args,o.returnValue);var a=[n];"undefined"!==typeof i&&a.push(i),w(o.name)?e=o.name(n):_(o.name)&&(e=o.name);var s=t[e].apply(t,a);return Y(e)?Tt(e,s,o.returnValue,G(e)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(e,"'."))}}return n}var Ct=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(t){Ct[t]=function(t){return function(e){var n=e.fail,r=e.complete,i={errMsg:"".concat(t,":fail method '").concat(t,"' not supported")};w(n)&&n(i),w(r)&&r(i)}}(t)}));var Mt={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Lt=Object.freeze({__proto__:null,getProvider:function(t){var e=t.service,n=t.success,r=t.fail,i=t.complete,o=!1;Mt[e]?(o={errMsg:"getProvider:ok",service:e,provider:Mt[e]},w(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},w(r)&&r(o)),w(i)&&i(o)}}),Bt=function(){var t;return function(){return t||(t=new h.default),t}}();function Dt(t,e,n){return t[e].apply(t,n)}var zt,Rt,Nt,Ft=Object.freeze({__proto__:null,$on:function(){return Dt(Bt(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return Dt(Bt(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return Dt(Bt(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return Dt(Bt(),"$emit",Array.prototype.slice.call(arguments))}});function Wt(t){return function(){try{return t.apply(t,arguments)}catch(e){console.error(e)}}}function Ht(t){try{return JSON.parse(t)}catch(e){}return t}var Ut=[];function Vt(t,e){Ut.forEach((function(n){n(t,e)})),Ut.length=0}var qt=[];var Gt=t.getAppBaseInfo&&t.getAppBaseInfo();Gt||(Gt=t.getSystemInfoSync());var Yt=Gt?Gt.host:null,Xt=Yt&&"SAAASDK"===Yt.env?t.miniapp.shareVideoMessage:t.shareVideoMessage,Jt=Object.freeze({__proto__:null,shareVideoMessage:Xt,getPushClientId:function(t){x(t)||(t={});var e=function(t){var e={};for(var n in t){var r=t[n];w(r)&&(e[n]=Wt(r),delete t[n])}return e}(t),n=e.success,r=e.fail,i=e.complete,o=w(n),a=w(r),s=w(i);Promise.resolve().then((function(){"undefined"===typeof Nt&&(Nt=!1,zt="",Rt="uniPush is not enabled"),Ut.push((function(t,e){var c;t?(c={errMsg:"getPushClientId:ok",cid:t},o&&n(c)):(c={errMsg:"getPushClientId:fail"+(e?" "+e:"")},a&&r(c)),s&&i(c)})),"undefined"!==typeof zt&&Vt(zt,Rt)}))},onPushMessage:function(t){-1===qt.indexOf(t)&&qt.push(t)},offPushMessage:function(t){if(t){var e=qt.indexOf(t);e>-1&&qt.splice(e,1)}else qt.length=0},invokePushCallback:function(t){if("enabled"===t.type)Nt=!0;else if("clientId"===t.type)zt=t.cid,Rt=t.errMsg,Vt(zt,t.errMsg);else if("pushMsg"===t.type)for(var e={type:"receive",data:Ht(t.message)},n=0;n1?e-1:0),r=1;r=0;o--){var a=i[o];if(a.$scope._$vueId===n)return a}for(var s=i.length-1;s>=0;s--)if(r=t(i[s],n),r)return r}(this.$vm,r)),e||(e=this.$vm),i.parent=e}function re(t){return Object.defineProperty(t,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),t}function ie(t){return function(t){return null!==t&&"object"===(0,f.default)(t)}(t)&&Object.isExtensible(t)&&Object.defineProperty(t,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),t}var oe=/_(.*)_worklet_factory_/;var ae=Page,se=Component,ce=/:/g,ue=k((function(t){return P(t.replace(ce,"-"))}));function fe(t){var e=t.triggerEvent,n=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return le("onLoad",t),ae(t)},Page.after=ae.after,Component=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return le("created",t),se(t)});function he(t,e,n){e.forEach((function(e){(function t(e,n){if(!n)return!0;if(h.default.options&&Array.isArray(h.default.options[e]))return!0;if(n=n.default||n,w(n))return!!w(n.extendOptions[e])||!!(n.super&&n.super.options&&Array.isArray(n.super.options[e]));if(w(n[e])||Array.isArray(n[e]))return!0;var r=n.mixins;return Array.isArray(r)?!!r.find((function(n){return t(e,n)})):void 0})(e,n)&&(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}))}function de(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];pe(e).forEach((function(e){return ve(t,e,n)}))}function pe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&Object.keys(t).forEach((function(n){0===n.indexOf("on")&&w(t[n])&&e.push(n)})),e}function ve(t,e,n){-1!==n.indexOf(e)||S(t,e)||(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}function ge(t,e){var n;return e=e.default||e,n=w(e)?e:t.extend(e),e=n.options,[n,e]}function ye(t,e){if(Array.isArray(e)&&e.length){var n=Object.create(null);e.forEach((function(t){n[t]=!0})),t.$scopedSlots=t.$slots=n}}function me(t,e){t=(t||"").split(",");var n=t.length;1===n?e._$vueId=t[0]:2===n&&(e._$vueId=t[0],e._$vuePid=t[1])}function be(t,e){var n=t.data||{},r=t.methods||{};if("function"===typeof n)try{n=n.call(e)}catch(i){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"chargingPile",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return x(n)||(n={}),Object.keys(r).forEach((function(t){-1!==e.__lifecycle_hooks__.indexOf(t)||S(n,t)||(n[t]=r[t])})),n}var we=[String,Number,Boolean,Object,Array,null];function _e(t){return function(e,n){this.$vm&&(this.$vm[t]=e)}}function xe(t,e){var n=t.behaviors,r=t.extends,i=t.mixins,o=t.props;o||(t.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(t){a.push(t.replace("uni://","wx".concat("://"))),"uni://form-field"===t&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),x(r)&&r.props&&a.push(e({properties:Oe(r.props,!0)})),Array.isArray(i)&&i.forEach((function(t){x(t)&&t.props&&a.push(e({properties:Oe(t.props,!0)}))})),a}function Se(t,e,n,r){return Array.isArray(e)&&1===e.length?e[0]:e}function Oe(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return e||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(t,e){var n=Object.create(null);t.forEach((function(t){n[t]=!0})),this.setData({$slots:n})}}),Array.isArray(t)?t.forEach((function(t){r[t]={type:null,observer:_e(t)}})):x(t)&&Object.keys(t).forEach((function(e){var n=t[e];if(x(n)){var i=n.default;w(i)&&(i=i()),n.type=Se(0,n.type),r[e]={type:-1!==we.indexOf(n.type)?n.type:null,value:i,observer:_e(e)}}else{var o=Se(0,n);r[e]={type:-1!==we.indexOf(o)?o:null,observer:_e(e)}}})),r}function ke(t,e,n,r){var i={};return Array.isArray(e)&&e.length&&e.forEach((function(e,o){"string"===typeof e?e?"$event"===e?i["$"+o]=n:"arguments"===e?i["$"+o]=n.detail&&n.detail.__args__||r:0===e.indexOf("$event.")?i["$"+o]=t.__get_value(e.replace("$event.",""),n):i["$"+o]=t.__get_value(e):i["$"+o]=t:i["$"+o]=function(t,e){var n=t;return e.forEach((function(e){var r=e[0],i=e[2];if(r||"undefined"!==typeof i){var o,a=e[1],s=e[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):t.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(e){return t.__get_value(a,e)===i})):x(o)?n=Object.keys(o).find((function(e){return t.__get_value(a,o[e])===i})):console.error("v-for 暂不支持循环数据:",o):n=o[i],s&&(n=t.__get_value(s,n))}})),n}(t,e)})),i}function Ae(t){for(var e={},n=1;n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1,s=x(e.detail)&&e.detail.__args__||[e.detail];if(i&&(a=e.currentTarget&&e.currentTarget.dataset&&"wx"===e.currentTarget.dataset.comType,!n.length))return a?[e]:s;var c=ke(t,r,e,s),u=[];return n.forEach((function(t){"$event"===t?"__set_model"!==o||i?i&&!a?u.push(s[0]):u.push(e):u.push(e.target.value):Array.isArray(t)&&"o"===t[0]?u.push(Ae(t)):"string"===typeof t&&S(c,t)?u.push(c[t]):u.push(t)})),u}function je(t){var e=this;t=function(t){try{t.mp=JSON.parse(JSON.stringify(t))}catch(e){}return t.stopPropagation=O,t.preventDefault=O,t.target=t.target||{},S(t,"detail")||(t.detail={}),S(t,"markerId")&&(t.detail="object"===(0,f.default)(t.detail)?t.detail:{},t.detail.markerId=t.markerId),x(t.detail)&&(t.target=Object.assign({},t.target,t.detail)),t}(t);var n=(t.currentTarget||t.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var i=t.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s="^"===r.charAt(0);r=s?r.slice(1):r;var c="~"===r.charAt(0);r=c?r.slice(1):r,a&&function(t,e){return t===e||"regionchange"===e&&("begin"===t||"end"===t)}(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=e.$vm;if(i.$options.generic&&(i=function(t){var e=t.$parent;while(e&&e.$parent&&(e.$options.generic||e.$parent.$options.generic||e.$scope._$vuePid))e=e.$parent;return e&&e.$parent}(i)||i),"$emit"===r)return void i.$emit.apply(i,Pe(e.$vm,t,n[1],n[2],s,r));var a=i[r];if(!w(a)){var u="page"===e.$vm.mpType?"Page":"Component",f=e.route||e.is;throw new Error("".concat(u,' "').concat(f,'" does not have a method "').concat(r,'"'))}if(c){if(a.once)return;a.once=!0}var l=Pe(e.$vm,t,n[1],n[2],s,r);l=Array.isArray(l)?l:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(l=l.concat([,,,,,,,,,,t])),o.push(a.apply(i,l))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var $e={};var Ee=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Te(){h.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var t=h.default.prototype.__call_hook;h.default.prototype.__call_hook=function(e,n){return"onLoad"===e&&n&&n.__id__&&(this.__eventChannel__=function(t){var e=$e[t];return delete $e[t],e}(n.__id__),delete n.__id__),t.call(this,e,n)}}function Ie(e,n){var r=n.mocks,i=n.initRefs;Te(),function(){var t={},e={};function n(t){var e=this.$options.propsData.vueId;if(e){var n=e.split(",")[0];t(n)}}h.default.prototype.$hasSSP=function(n){var r=t[n];return r||(e[n]=this,this.$on("hook:destroyed",(function(){delete e[n]}))),r},h.default.prototype.$getSSP=function(e,n,r){var i=t[e];if(i){var o=i[n]||[];return r?o:o[0]}},h.default.prototype.$setSSP=function(e,r){var i=0;return n.call(this,(function(n){var o=t[n],a=o[e]=o[e]||[];a.push(r),i=a.length-1})),i},h.default.prototype.$initSSP=function(){n.call(this,(function(e){t[e]={}}))},h.default.prototype.$callSSP=function(){n.call(this,(function(t){e[t]&&e[t].$forceUpdate()}))},h.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete t[r],delete e[r])}})}(),e.$options.store&&(h.default.prototype.$store=e.$options.store),function(t){t.prototype.uniIDHasRole=function(t){var e=y(),n=e.role;return n.indexOf(t)>-1},t.prototype.uniIDHasPermission=function(t){var e=y(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=y(),e=t.tokenExpired;return e>Date.now()}}(h.default),h.default.prototype.mpHost="mp-weixin",h.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var t=getApp();t.$vm&&t.$vm.$i18n&&(this._i18n=t.$vm.$i18n)}"app"!==this.mpType&&(i(this),function(t,e){var n=t.$mp[t.mpType];e.forEach((function(e){S(n,e)&&(t[e]=n[e])}))}(this,r))}}});var o={onLaunch:function(n){this.$vm||(t.canIUse&&!t.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=e,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};o.globalData=e.$options.globalData||{};var a=e.$options.methods;return a&&Object.keys(a).forEach((function(t){o[t]=a[t]})),function(t,e,n){var r=t.observable({locale:n||ot.getLocale()}),i=[];e.$watchLocale=function(t){i.push(t)},Object.defineProperty(e,"$locale",{get:function(){return r.locale},set:function(t){r.locale=t,i.forEach((function(e){return e(t)}))}})}(h.default,e,function(){var e,n=t.getAppBaseInfo(),r=n&&n.language?n.language:"en";return e=st(r)||"en",e}()),he(o,Ee),de(o,e.$options),o}function Ce(t){return Ie(t,{mocks:Kt,initRefs:ee})}function Me(t){return App(Ce(t)),t}var Le=/[!'()*]/g,Be=function(t){return"%"+t.charCodeAt(0).toString(16)},De=/%2C/g,ze=function(t){return encodeURIComponent(t).replace(Le,Be).replace(De,",")};function Re(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze,n=t?Object.keys(t).map((function(n){var r=t[n];if(void 0===r)return"";if(null===r)return e(n);if(Array.isArray(r)){var i=[];return r.forEach((function(t){void 0!==t&&(null===t?i.push(e(n)):i.push(e(n)+"="+e(t)))})),i.join("&")}return e(n)+"="+e(r)})).filter((function(t){return t.length>0})).join("&"):null;return n?"?".concat(n):""}function Ne(t,e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isPage,r=e.initRelation,i=arguments.length>2?arguments[2]:void 0,o=ge(h.default,t),s=(0,a.default)(o,2),c=s[0],u=s[1],f=p({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(f,u["mp-weixin"].options);var l={options:f,data:be(u,h.default.prototype),behaviors:xe(u,Qt),properties:Oe(u.props,!1,u.__file,f),lifetimes:{attached:function(){var t=this.properties,e={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:t};me(t.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:e}),this.$vm=new c(e),ye(this.$vm,t.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(t){this.$vm&&this.$vm.__call_hook("onPageShow",t)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(t){this.$vm&&this.$vm.__call_hook("onPageResize",t)}},methods:{__l:ne,__e:je}};return u.externalClasses&&(l.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(t){l.methods[t]=function(e){return this.$vm[t](e)}})),i?[l,u,c]:n?l:[l,c]}(t,{isPage:Zt,initRelation:te},e)}var Fe=["onShow","onHide","onUnload"];function We(t){var e=Ne(t,!0),n=(0,a.default)(e,2),r=n[0],i=n[1];return he(r.methods,Fe,i),r.methods.onLoad=function(t){this.options=t;var e=Object.assign({},t);delete e.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Re(e)},this.$vm.$mp.query=t,this.$vm.__call_hook("onLoad",t)},de(r.methods,t,["onReady"]),function(t,e){e&&Object.keys(e).forEach((function(n){var r=n.match(oe);if(r){var i=r[1];t[n]=e[n],t[i]=e[i]}}))}(r.methods,i.methods),r}function He(t){return Component(function(t){return We(t)}(t))}function Ue(t){return Component(Ne(t))}function Ve(e){var n=Ce(e),r=getApp({allowDefault:!0});e.$scope=r;var i=r.globalData;if(i&&Object.keys(n.globalData).forEach((function(t){S(i,t)||(i[t]=n.globalData[t])})),Object.keys(n).forEach((function(t){S(r,t)||(r[t]=n[t])})),w(n.onShow)&&t.onAppShow&&t.onAppShow((function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};e.indexKey;return{inject:(0,a.default)({},t,{default:null}),watch:{el:{handler:function(t,e){JSON.stringify(t)!=JSON.stringify(e)&&this.bindRelation()},deep:!0,immediate:!0},src:{handler:function(t,e){t!=e&&this.bindRelation()},immediate:!0},text:{handler:function(t,e){t!=e&&this.bindRelation()},immediate:!0},css:{handler:function(t,e){t!=e&&(this.el.css=("object"==(0,o.default)(t)?t:t&&Object.assign.apply(Object,(0,i.default)(s(t))))||{})},immediate:!0},replace:{handler:function(t,e){JSON.stringify(t)!=JSON.stringify(e)&&this.bindRelation()},deep:!0,immediate:!0}},created:function(){var e=this;this._uid||(this._uid=this._.uid),Object.defineProperty(this,"parent",{get:function(){return e[t]||[]}}),Object.defineProperty(this,"index",{get:function(){e.bindRelation();var t=e.parent;t=void 0===t?{}:t;var n=t.el;n=void 0===n?{}:n;var r=n.views,i=void 0===r?[]:r;return i.indexOf(e.el)}}),this.el.type=this.type,this.uid&&(this.el.uid=this.uid),this.bindRelation()},beforeDestroy:function(){this.removeEl()},methods:{removeEl:function(){var t=this;this.parent&&(this.parent.el.views=this.parent.el.views.filter((function(e){return e._uid!==t._uid})))},bindRelation:function(){var t=this;if(this.el._uid||(this.el._uid=this._uid),["text","qrcode"].includes(this.type)&&(this.el.text=this.$slots&&this.$slots.default&&this.$slots.default[0].text||"".concat(this.text||"").replace(/\\n/g,"\n")),"image"==this.type&&(this.el.src=this.src),this.parent){var e=this.parent.el.views||[];-1!==e.indexOf(this.el)?this.parent.el.views=e.map((function(e){return e._uid==t._uid?t.el:e})):this.parent.el.views=[].concat((0,i.default)(e),[this.el])}}},mounted:function(){}}},e.parent=function(t){return{provide:function(){return(0,a.default)({},t,this)},data:function(){return{el:{id:null,css:{},views:[]}}},watch:{css:{handler:function(t){this.canvasId&&(this.el.css=("object"==(0,o.default)(t)?t:t&&Object.assign.apply(Object,(0,i.default)(s(t))))||{},this.canvasWidth=this.el.css&&this.el.css.width||this.canvasWidth,this.canvasHeight=this.el.css&&this.el.css.height||this.canvasHeight)},immediate:!0}}}};var i=r(n("af34")),o=r(n("3b2d")),a=r(n("7ca3")),s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split(";").filter((function(t){return t&&!/^[\n\s]+$/.test(t)})).map((function(t){var e=t.slice(0,t.indexOf(":")),n=t.slice(t.indexOf(":")+1);return(0,a.default)({},e.replace(/-([a-z])/g,(function(){return arguments[1].toUpperCase()})).replace(/\s+/g,""),n.replace(/^\s+/,"").replace(/\s+$/,"")||"")}))}},ed45:function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},ee10:function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports["default"]=t.exports},f728:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"首页"}},{path:"pages/map/map",style:{navigationBarTitleText:"地图模式"}},{path:"pages/my/my",style:{navigationBarTitleText:"个人中心"}},{path:"pages/login/login",style:{navigationBarTitleText:"用户登录"}}],subPackages:[{root:"subPackages/charging",name:"charging",pages:[{path:"site/site",style:{navigationBarTitleText:"站点详情"}},{path:"site-more/site-more",style:{navigationBarTitleText:"电站价格"}},{path:"charging/charging",style:{navigationBarTitleText:"正在充电"}},{path:"terminal/terminal",style:{navigationBarTitleText:"充电终端"}},{path:"new-site/new-site",style:{navigationBarTitleText:"站点详情"}}]},{root:"subPackages/order",name:"order",pages:[{path:"order/order",style:{navigationBarTitleText:"充电订单"}},{path:"order-detail/order-detail",style:{navigationBarTitleText:"订单详情"}}]},{root:"subPackages/coupon",name:"coupon",pages:[{path:"coupon-buy/coupon-buy",style:{navigationBarTitleText:"购券中心"}},{path:"coupons/coupons",style:{navigationBarTitleText:"优惠券"}},{path:"recharge-log/recharge-log",style:{navigationBarTitleText:"购券记录"}}]},{root:"subPackages/other",name:"other",pages:[{path:"feedback/feedback",style:{navigationBarTitleText:""}},{path:"feedback-reply/feedback-reply",style:{navigationBarTitleText:"反馈答复"}},{path:"search/search",style:{navigationBarTitleText:"站点搜索"}},{path:"web/web",style:{navigationBarTitleText:"",navigationStyle:"default",navigationBarBackgroundColor:"#fff",backgroundColor:"#fff"}},{path:"banner-page/banner-page",style:{navigationBarTitleText:"活动详情"}}]}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"中数电动",navigationBarBackgroundColor:"#C7FFFD",backgroundColor:"#C7FFFD",navigationStyle:"custom"},uniIdRouter:{}}},feec:function(t,e,n){(function(e,r){var i=n("67ad"),o=n("0bdb"),a={};a.sys=function(){"use strict";function t(){i(this,t)}return o(t,null,[{key:"envVersion",value:function(t){var n,r;if(e.getAccountInfoSync){var i=null===(n=e.getAccountInfoSync())||void 0===n||null===(r=n.miniProgram)||void 0===r?void 0:r.envVersion,o=t[i];o&&"function"==typeof o&&o()}}}]),t}(),a.url=function(){"use strict";function t(){i(this,t)}return o(t,null,[{key:"goto",value:function(t,n){return new Promise((function(r,i){var o=function(){return r()},a=function(n){var r=t.split("?")[0];["/pages/index/index","/pages/map/map","/pages/my/my"].includes(r)?e.switchTab({url:r,success:o,fail:function(){return i(n)}}):i(n)};return!1===n?e.redirectTo({url:t,fail:a,success:o}):null===n?e.reLaunch({url:t,fail:a,success:o}):void(getCurrentPages().length<10?e.navigateTo({url:t,fail:a,success:o}):e.redirectTo({url:t,fail:a,success:o}))}))}},{key:"back",value:function(t){var n=getCurrentPages(),r=n.length-1-(t||1);if(r>=0&&r