| 12345678 |
- (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<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}t.exports=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"0ee4":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},3186:function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7eb4")),o=r(n("7ca3")),a=r(n("ee10")),s=r(n("feec")),c=r(n("4874"));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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={},h=!1,d=function(e){var n=e.complete;return new Promise((function(r,i){t.request(Object.assign({},e,{complete:function(t){var e=Boolean("request:ok"==t.errMsg&&t.statusCode>=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<t;n++)e[n]=arguments[n];return e.join("/").replace(/(?<!:)(\/{2,})/g,"/")},v=function(){t.showLoading({title:"",mask:!0})},g=function(){t.hideLoading()};l.base=function(e,n,r,o){return new Promise(function(){var u=(0,a.default)(i.default.mark((function u(f,l){var b;return i.default.wrap((function(u){while(1)switch(u.prev=u.next){case 0:b=Object.assign({url:p(c.default.url.request,n),data:r||{},method:e||"post",dataType:"json",loading:!0,error:!0,header:{"content-type":"application/json",Authorization:"Bearer "+y()},showLoading:v,hideLoading:g},o||{}),b.loading&&"function"==typeof b.showLoading&&b.showLoading(),d(b).then(function(){var t=(0,a.default)(i.default.mark((function t(e){var r,o,a;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:b.loading&&"function"==typeof b.hideLoading&&b.hideLoading(),t.t0=e.code,t.next="00000"===t.t0?4:"A0230"===t.t0?6:42;break;case 4:return f(e),t.abrupt("break",44);case 6:return t.prev=6,console.log("进入刷新请求"),t.next=10,m();case 10:if(r=t.sent,!r){t.next=25;break}return b.header.token=y(),t.prev=13,t.next=16,d(b);case 16:o=t.sent,f(o),t.next=23;break;case 20:t.prev=20,t.t1=t["catch"](13),l(t.t1);case 23:t.next=36;break;case 25:return b.header.token=y(),t.prev=26,t.next=29,d(b);case 29:a=t.sent,f(a),t.next=36;break;case 33:t.prev=33,t.t2=t["catch"](26),l(t.t2);case 36:t.next=41;break;case 38:t.prev=38,t.t3=t["catch"](6),l(t.t3);case 41:return t.abrupt("break",44);case 42:return b.error?s.default.popup.alert(e.msg||"".concat(n,"\r\n未知错误"),"数据请求"):l(e),t.abrupt("break",44);case 44:case"end":return t.stop()}}),t,null,[[6,38],[13,20],[26,33]])})));return function(e){return t.apply(this,arguments)}}()).catch(function(){var e=(0,a.default)(i.default.mark((function e(n){var r,o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("A0230"!=n.data.code){e.next=27;break}return e.prev=1,e.next=4,m();case 4:if(r=e.sent,!r){e.next=19;break}return b.header.token=y(),e.prev=7,e.next=10,d(b);case 10:o=e.sent,f(o),e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](7),l(e.t0);case 17:e.next=20;break;case 19:h||(h=!0,s.default.popup.confirm("".concat(n.data.msg,",点击确定去登录"),"提示",{showCancel:!0}).then((function(e){h=!1,e&&(t.clearStorage(),t.navigateTo({url:"/pages/login/login"}))})));case 20:e.next=25;break;case 22:e.prev=22,e.t1=e["catch"](1),l(e.t1);case 25:e.next=28;break;case 27:s.default.popup.alert("服务器响应失败\r\n".concat(n.data.msg),"数据请求");case 28:b.hideLoading();case 29:case"end":return e.stop()}}),e,null,[[1,22],[7,14]])})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return u.stop()}}),u)})));return function(t,e){return u.apply(this,arguments)}}())};var y=function(){return t.getStorageSync(c.default.keyname.accessToken)},m=function(){var e=(0,a.default)(i.default.mark((function e(){var n,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.getStorageSync(c.default.keyname.refreshToken),console.log("刷新token",n),n){e.next=4;break}return e.abrupt("return",!1);case 4:return e.prev=4,e.next=7,d({url:p(c.default.url.request,c.default.api.refreshToken),method:"post",data:{refreshToken:n},header:{"content-type":"application/json"}});case 7:if(r=e.sent,"00000"!==r.code){e.next=12;break}return t.setStorageSync(c.default.keyname.accessToken,r.data.accessToken),t.setStorageSync(c.default.keyname.refreshToken,r.data.refreshToken),e.abrupt("return",!0);case 12:return e.abrupt("return",!1);case 15:return e.prev=15,e.t0=e["catch"](4),e.abrupt("return",!1);case 18:case"end":return e.stop()}}),e,null,[[4,15]])})));return function(){return e.apply(this,arguments)}}();l.post=function(t,e,n){return l.base("post",t,e,Object.assign({},n))},l.get=function(t,e,n){return l.base("get",t,e,Object.assign({},n))},l.put=function(t,e,n){return l.base("put",t,e,Object.assign({},n))},l.static=function(e,n,r){return new Promise(function(){var o=(0,a.default)(i.default.mark((function o(a,s){var c;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:c=Object.assign({url:/^http/.test(e)?e:API_BASE+(e||""),data:Object.assign({cache:Date.now()},n)},r||{}),t.request(f(f({},c),{},{success:function(t){a(t.data)}}));case 2:case"end":return i.stop()}}),o)})));return function(t,e){return o.apply(this,arguments)}}())},l.upload=function(e,n){return new Promise((function(r,i){Object.assign({url:p(c.default.url.upload,(null===n||void 0===n?void 0:n.url)||""),filePath:e,loading:!0,error:!0,header:{token:t.getStorageSync(c.default.keyname.userToken)},showLoading:v,hideLoading:g},n||{})}))},l.userCode=function(){return new Promise((function(e,n){t.login({provider:"weixin",success:function(t){return e(t.code)},fail:function(t){return n(t)}})}))},l.login=function(e){return new Promise(function(){var n=(0,a.default)(i.default.mark((function n(r,o){var s;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,l.userCode();case 2:s=n.sent,l.post(c.default.api.login,f(f({},e||{}),{},{code:s})).then(function(){var e=(0,a.default)(i.default.mark((function e(n){var o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.setStorageSync(c.default.keyname.accessToken,null===n||void 0===n||null===(o=n.data)||void 0===o?void 0:o.accessToken),t.setStorageSync(c.default.keyname.refreshToken,null===n||void 0===n||null===(a=n.data)||void 0===a?void 0:a.refreshToken),t.setStorageSync(c.default.keyname.userInfo,null===n||void 0===n||null===(s=n.data)||void 0===s?void 0:s.userInfo),r(n.data.accessToken);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){return o(t)}));case 4:case"end":return n.stop()}}),n)})));return function(t,e){return n.apply(this,arguments)}}())};var b=l;e.default=b}).call(this,n("df3c")["default"])},3223:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],i=["lanDebug","router","worklet"],o="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=o[a],c=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function u(t){return(!c||1154!==c.scene||!i.includes(t))&&(r.indexOf(t)>-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<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}p("slot,component",!0);var v=p("key,ref,slot,slot-scope,is");function g(t,e){if(t.length){var n=t.indexOf(e);if(n>-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;n<t.length;n++)t[n]&&P(e,t[n]);return e}function $(t,e,n){}var E=function(t,e,n){return!1},T=function(t){return t};function I(t,e){if(t===e)return!0;var n=s(t),r=s(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return I(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),c=Object.keys(e);return a.length===c.length&&a.every((function(n){return I(t[n],e[n])}))}catch(u){return!1}}function M(t,e){for(var n=0;n<t.length;n++)if(I(t[n],e))return n;return-1}function C(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var L=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],D={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:E,isReservedAttr:E,isUnknownElement:E,getTagNamespace:$,parsePlatformTagName:T,mustUseProp:E,async:!0,_lifecycleHooks:B},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function R(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function N(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var F=new RegExp("[^"+z.source+".$_\\d]");var W,H="__proto__"in{},U="undefined"!==typeof window,V="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,q=V&&WXEnvironment.platform.toLowerCase(),G=U&&window.navigator&&window.navigator.userAgent.toLowerCase(),Y=G&&/msie|trident/.test(G),X=(G&&G.indexOf("msie 9.0"),G&&G.indexOf("edge/")>0),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<n;e++)t[e].update()},at.SharedObject={},at.SharedObject.target=null,at.SharedObject.targetStack=[];var ut=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ft={child:{configurable:!0}};ft.child.get=function(){return this.componentInstance},Object.defineProperties(ut.prototype,ft);var lt=function(t){void 0===t&&(t="");var e=new ut;return e.text=t,e.isComment=!0,e};function ht(t){return new ut(void 0,void 0,void 0,String(t))}var dt=Array.prototype,pt=Object.create(dt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=dt[t];N(pt,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var vt=Object.getOwnPropertyNames(pt),gt=!0;function yt(t){gt=t}var mt=function(t){this.value=t,this.dep=new at,this.vmCount=0,N(t,"__ob__",this),Array.isArray(t)?(H?t.push!==t.__proto__.push?bt(t,pt,vt):function(t,e){t.__proto__=e}(t,pt):bt(t,pt,vt),this.observeArray(t)):this.walk(t)};function bt(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];N(t,o,e[o])}}function wt(t,e){var n;if(s(t)&&!(t instanceof ut))return m(t,"__ob__")&&t.__ob__ instanceof mt?n=t.__ob__:!gt||Z()||!Array.isArray(t)&&!u(t)||!Object.isExtensible(t)||t._isVue||t.__v_isMPComponent||(n=new mt(t)),e&&n&&n.vmCount++,n}function _t(t,e,n,r,i){var o=new at,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=t[e]);var u=!i&&wt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return at.SharedObject.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&Ot(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!c||(c?c.call(t,e):n=e,u=!i&&wt(e),o.notify())}})}}function xt(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(_t(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function St(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||m(t,e)&&(delete t[e],n&&n.dep.notify())}}function Ot(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Ot(e)}mt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)_t(t,e[n])},mt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)wt(t[e])};var kt=D.optionMergeStrategies;function At(t,e){if(!e)return t;for(var n,r,i,o=rt?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],m(t,n)?r!==i&&u(r)&&u(i)&&At(r,i):xt(t,n,i));return t}function Pt(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?At(r,i):i}:e?t?function(){return At("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function jt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function $t(t,e,n,r){var i=Object.create(t||null);return e?P(i,e):i}kt.data=function(t,e,n){return n?Pt(t,e,n):e&&"function"!==typeof e?t:Pt(t,e)},B.forEach((function(t){kt[t]=jt})),L.forEach((function(t){kt[t+"s"]=$t})),kt.watch=function(t,e,n,r){if(t===K&&(t=void 0),e===K&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in P(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},kt.props=kt.methods=kt.inject=kt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return P(i,t),e&&P(i,e),i},kt.provide=Pt;var Et=function(t,e){return void 0===e?t:e};function Tt(t,e,n){if("function"===typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=_(i),a[o]={type:null})}else if(u(n))for(var s in n)i=n[s],o=_(s),a[o]=u(i)?i:{type:i};else 0;t.props=a}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?P({from:o},a):{from:a}}else 0}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Tt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Tt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)m(t,o)||s(o);function s(r){var i=kt[r]||Et;a[r]=i(t[r],e[r],n,r)}return a}function It(t,e,n,r){if("string"===typeof n){var i=t[e];if(m(i,n))return i[n];var o=_(n);if(m(i,o))return i[o];var a=x(o);if(m(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Mt(t,e,n,r){var i=e[t],o=!m(n,t),a=n[t],s=Bt(Boolean,i.type);if(s>-1)if(o&&!m(i,"default"))a=!1;else if(""===a||a===O(t)){var c=Bt(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!m(e,"default"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"===typeof r&&"Function"!==Ct(e.type)?r.call(t):r}(r,i,t);var u=gt;yt(!0),wt(a),yt(u)}return a}function Ct(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Lt(t,e){return Ct(t)===Ct(e)}function Bt(t,e){if(!Array.isArray(e))return Lt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Lt(e[n],t))return n;return-1}function Dt(t,e,n){st();try{if(e){var r=e;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,t,e,n);if(a)return}catch(Dn){Rt(Dn,r,"errorCaptured hook")}}}Rt(t,e,n)}finally{ct()}}function zt(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&l(o)&&!o._handled&&(o.catch((function(t){return Dt(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(Dn){Dt(Dn,r,i)}return o}function Rt(t,e,n){if(D.errorHandler)try{return D.errorHandler.call(null,t,e,n)}catch(Dn){Dn!==t&&Nt(Dn,null,"config.errorHandler")}Nt(t,e,n)}function Nt(t,e,n){if(!U&&!V||"undefined"===typeof console)throw t;console.error(t)}var Ft,Wt=[],Ht=!1;function Ut(){Ht=!1;var t=Wt.slice(0);Wt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&et(Promise)){var Vt=Promise.resolve();Ft=function(){Vt.then(Ut),J&&setTimeout($)}}else if(Y||"undefined"===typeof MutationObserver||!et(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ft="undefined"!==typeof setImmediate&&et(setImmediate)?function(){setImmediate(Ut)}:function(){setTimeout(Ut,0)};else{var qt=1,Gt=new MutationObserver(Ut),Yt=document.createTextNode(String(qt));Gt.observe(Yt,{characterData:!0}),Ft=function(){qt=(qt+1)%2,Yt.data=String(qt)}}function Xt(t,e){var n;if(Wt.push((function(){if(t)try{t.call(e)}catch(Dn){Dt(Dn,e,"nextTick")}else n&&n(e)})),Ht||(Ht=!0,Ft()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var Jt=new nt;function Kt(t){(function t(e,n){var r,i,o=Array.isArray(e);if(!o&&!s(e)||Object.isFrozen(e)||e instanceof ut)return;if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o){r=e.length;while(r--)t(e[r],n)}else{i=Object.keys(e),r=i.length;while(r--)t(e[i[r]],n)}})(t,Jt),Jt.clear()}var Qt=b((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function Zt(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return zt(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)zt(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function te(t,e,n,o){var a=e.options.mpOptions&&e.options.mpOptions.properties;if(r(a))return n;var s=e.options.mpOptions.externalClasses||[],c=t.attrs,u=t.props;if(i(c)||i(u))for(var f in a){var l=O(f),h=ee(n,u,f,l,!0)||ee(n,c,f,l,!1);h&&n[f]&&-1!==s.indexOf(l)&&o[_(n[f])]&&(n[f]=o[_(n[f])])}return n}function ee(t,e,n,r,o){if(i(e)){if(m(e,n))return t[n]=e[n],o||delete e[n],!0;if(m(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function ne(t){return a(t)?[ht(t)]:Array.isArray(t)?function t(e,n){var s,c,u,f,l=[];for(s=0;s<e.length;s++)c=e[s],r(c)||"boolean"===typeof c||(u=l.length-1,f=l[u],Array.isArray(c)?c.length>0&&(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;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&m(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var c=t[o].default;n[o]="function"===typeof c?c.call(e):c}else 0}}return n}}function se(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)o.asyncMeta&&o.asyncMeta.data&&"page"===o.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(o):(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(ce)&&delete n[u];return n}function ce(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ue(t,e,r){var i,o=Object.keys(e).length>0,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;r<o;r++)n[r]=e(t[r],r,r,r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r,r,r);else if(s(t))if(rt&&t[Symbol.iterator]){n=[];var u=t[Symbol.iterator](),f=u.next();while(!f.done)n.push(e(f.value,n.length,r,r++)),f=u.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)c=a[r],n[r]=e(t[c],c,r,r);return i(n)||(n=[]),n._isVList=!0,n}function de(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=P(P({},r),n)),i=o(n,this,n._i)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function pe(t){return It(this.$options,"filters",t)||T}function ve(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function ge(t,e,n,r,i){var o=D.keyCodes[e]||n;return i&&r&&!D.keyCodes[e]?ve(i,r):o?ve(o,t):r?O(r)!==e:void 0}function ye(t,e,n,r,i){if(n)if(s(n)){var o;Array.isArray(n)&&(n=j(n));var a=function(a){if("class"===a||"style"===a||v(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||D.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=_(a),u=O(a);if(!(c in o)&&!(u in o)&&(o[a]=n[a],i)){var f=t.on||(t.on={});f["update:"+a]=function(t){n[a]=t}}};for(var c in n)a(c)}else;return t}function me(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),we(r,"__static__"+t,!1)),r}function be(t,e,n){return we(t,"__once__"+e+(n?"_"+n:""),!0),t}function we(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&_e(t[r],e+"_"+r,n);else _e(t,e,n)}function _e(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function xe(t,e){if(e)if(u(e)){var n=t.on=t.on?P({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Se(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Se(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Oe(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function ke(t,e){return"string"===typeof t?e+t:t}function Ae(t){t._o=be,t._n=d,t._s=h,t._l=he,t._t=de,t._q=I,t._i=M,t._m=me,t._f=pe,t._k=ge,t._b=ye,t._v=ht,t._e=lt,t._u=Se,t._g=xe,t._d=Oe,t._p=ke}function Pe(t,e,r,i,a){var s,c=this,u=a.options;m(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var f=o(u._compiled),l=!f;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=ae(u.inject,i),this.slots=function(){return c.$slots||ue(t.scopedSlots,c.$slots=se(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ue(t.scopedSlots,this.slots())}}),f&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=ue(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,n,r){var o=Ce(s,t,e,n,r,l);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return Ce(s,t,e,n,r,l)}}function je(t,e,n,r,i){var o=function(t){var e=new ut(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function $e(t,e){for(var n in e)t[_(n)]=e[n]}Ae(Pe.prototype);var Ee={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Ee.prepatch(n,n)}else{var r=t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,He);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var r=e.componentOptions,i=e.componentInstance=t.componentInstance;(function(t,e,r,i,o){0;var a=i.data.scopedSlots,s=t.$scopedSlots,c=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),u=!!(o||t.$options._renderChildren||c);t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i);if(t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){yt(!1);for(var f=t._props,l=t.$options._propKeys||[],h=0;h<l.length;h++){var d=l[h],p=t.$options.props;f[d]=Mt(d,p,e,t)}yt(!0),t.$options.propsData=e}t._$updateProperties&&t._$updateProperties(t),r=r||n;var v=t.$options._parentListeners;t.$options._parentListeners=r,We(t,r,v),u&&(t.$slots=se(o,i.context),t.$forceUpdate());0})(i,r.propsData,r.listeners,e,r.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(qe(n,"onServiceCreated"),qe(n,"onServiceAttached"),n._isMounted=!0,qe(n,"mounted")),t.data.keepAlive&&(e._isMounted?function(t){t._inactive=!1,Ye.push(t)}(n):Ve(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(n&&(e._directInactive=!0,Ue(e)))return;if(!e._inactive){e._inactive=!0;for(var r=0;r<e.$children.length;r++)t(e.$children[r]);qe(e,"deactivated")}}(e,!0):e.$destroy())}},Te=Object.keys(Ee);function Ie(t,e,a,c,u){if(!r(t)){var f=a.$options._base;if(s(t)&&(t=f.extend(t)),"function"===typeof t){var h;if(r(t.cid)&&(h=t,t=function(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=Be;n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],c=!0,u=null,f=null;n.$on("hook:destroyed",(function(){return g(a,n)}));var h=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==f&&(clearTimeout(f),f=null))},d=C((function(n){t.resolved=De(n,e),c?a.length=0:h(!0)})),p=C((function(e){i(t.errorComp)&&(t.error=!0,h(!0))})),v=t(d,p);return s(v)&&(l(v)?r(t.resolved)&&v.then(d,p):l(v.component)&&(v.component.then(d,p),i(v.error)&&(t.errorComp=De(v.error,e)),i(v.loading)&&(t.loadingComp=De(v.loading,e),0===v.delay?t.loading=!0:u=setTimeout((function(){u=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,h(!1))}),v.delay||200)),i(v.timeout)&&(f=setTimeout((function(){f=null,r(t.resolved)&&p(null)}),v.timeout)))),c=!1,t.loading?t.loadingComp:t.resolved}}(h,f),void 0===t))return function(t,e,n,r,i){var o=lt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(h,e,a,c,u);e=e||{},pn(t),i(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}(t.options,e);var d=function(t,e,n,o){var a=e.options.props;if(r(a))return te(t,e,{},o);var s={},c=t.attrs,u=t.props;if(i(c)||i(u))for(var f in a){var l=O(f);ee(s,u,f,l,!0)||ee(s,c,f,l,!1)}return te(t,e,s,o)}(e,t,0,a);if(o(t.options.functional))return function(t,e,r,o,a){var s=t.options,c={},u=s.props;if(i(u))for(var f in u)c[f]=Mt(f,u,e||n);else i(r.attrs)&&$e(c,r.attrs),i(r.props)&&$e(c,r.props);var l=new Pe(r,c,a,o,t),h=s.render.call(null,l._c,l);if(h instanceof ut)return je(h,r,l.parent,s,l);if(Array.isArray(h)){for(var d=ne(h)||[],p=new Array(d.length),v=0;v<d.length;v++)p[v]=je(d[v],r,l.parent,s,l);return p}}(t,d,e,a,c);var p=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var v=e.slot;e={},v&&(e.slot=v)}(function(t){for(var e=t.hook||(t.hook={}),n=0;n<Te.length;n++){var r=Te[n],i=e[r],o=Ee[r];i===o||i&&i._merged||(e[r]=i?Me(o,i):o)}})(e);var y=t.options.name||u,m=new ut("vue-component-"+t.cid+(y?"-"+y:""),e,void 0,void 0,void 0,a,{Ctor:t,propsData:d,listeners:p,tag:u,children:c},h);return m}}}function Me(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function Ce(t,e,n,c,u,f){return(Array.isArray(n)||a(n))&&(u=c,c=n,n=void 0),o(f)&&(u=2),function(t,e,n,a,c){if(i(n)&&i(n.__ob__))return lt();i(n)&&i(n.is)&&(e=n.is);if(!e)return lt();0;Array.isArray(a)&&"function"===typeof a[0]&&(n=n||{},n.scopedSlots={default:a[0]},a.length=0);2===c?a=ne(a):1===c&&(a=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(a));var u,f;if("string"===typeof e){var l;f=t.$vnode&&t.$vnode.ns||D.getTagNamespace(e),u=D.isReservedTag(e)?new ut(D.parsePlatformTagName(e),n,a,void 0,void 0,t):n&&n.pre||!i(l=It(t.$options,"components",e))?new ut(e,n,a,void 0,void 0,t):Ie(l,n,t,a,e)}else u=Ie(e,n,t,a);return Array.isArray(u)?u:i(u)?(i(f)&&function t(e,n,a){e.ns=n,"foreignObject"===e.tag&&(n=void 0,a=!0);if(i(e.children))for(var s=0,c=e.children.length;s<c;s++){var u=e.children[s];i(u.tag)&&(r(u.ns)||o(a)&&"svg"!==u.tag)&&t(u,n,a)}}(u,f),i(n)&&function(t){s(t.style)&&Kt(t.style);s(t.class)&&Kt(t.class)}(n),u):lt()}(t,e,n,c,u)}var Le,Be=null;function De(t,e){return(t.__esModule||rt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),s(t)?e.extend(t):t}function ze(t){return t.isComment&&t.asyncFactory}function Re(t,e){Le.$on(t,e)}function Ne(t,e){Le.$off(t,e)}function Fe(t,e){var n=Le;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function We(t,e,n){Le=t,function(t,e,n,i,a,s){var c,u,f,l;for(c in t)u=t[c],f=e[c],l=Qt(c),r(u)||(r(f)?(r(u.fns)&&(u=t[c]=Zt(u,s)),o(l.once)&&(u=t[c]=a(l.name,u,l.capture)),n(l.name,u,l.capture,l.passive,l.params)):u!==f&&(f.fns=u,t[c]=f));for(c in e)r(t[c])&&(l=Qt(c),i(l.name,e[c],l.capture))}(e,n||{},Re,Ne,Fe,t),Le=void 0}var He=null;function Ue(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Ve(t,e){if(e){if(t._directInactive=!1,Ue(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Ve(t.$children[n]);qe(t,"activated")}}function qe(t,e){st();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)zt(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),ct()}var Ge=[],Ye=[],Xe={},Je=!1,Ke=!1,Qe=0;var Ze=Date.now;if(U&&!Y){var tn=window.performance;tn&&"function"===typeof tn.now&&Ze()>document.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;Qe<Ge.length;Qe++)t=Ge[Qe],t.before&&t.before(),e=t.id,Xe[e]=null,t.run();var n=Ye.slice(),r=Ge.slice();(function(){Qe=Ge.length=Ye.length=0,Xe={},Je=Ke=!1})(),function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Ve(t[e],!0)}(n),function(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&qe(r,"updated")}}(r),tt&&D.devtools&&tt.emit("flush")}var nn=0,rn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++nn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new nt,this.newDepIds=new nt,this.expression="","function"===typeof e?this.getter=e:(this.getter=function(t){if(!F.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=$)),this.value=this.lazy?void 0:this.get()};rn.prototype.get=function(){var t;st(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Dn){if(!this.user)throw Dn;Dt(Dn,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Kt(t),ct(),this.cleanupDeps()}return t},rn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},rn.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},rn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==Xe[e]){if(Xe[e]=!0,Ke){var n=Ge.length-1;while(n>Qe&&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=Mt(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<r.length;i++)hn(t,n,r[i]);else hn(t,n,r)}}(t,e.watch)}var cn={lazy:!0};function un(t,e,n){var r=!Z();"function"===typeof n?(on.get=r?fn(e):ln(n),on.set=$):(on.get=n.get?r&&!1!==n.cache?fn(e):ln(n.get):$,on.set=n.set||$),Object.defineProperty(t,e,on)}function fn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),at.SharedObject.target&&e.depend(),e.value}}function ln(t){return function(){return t.call(this,this)}}function hn(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}var dn=0;function pn(t){var e=t.options;if(t.super){var n=pn(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);i&&P(t.extendOptions,i),e=t.options=Tt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function vn(t){this._init(t)}function gn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Tt(n.options,t),a["super"]=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)an(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)un(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,L.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=P({},a.options),i[r]=a,a}}function yn(t){return t&&(t.Ctor.options.name||t.tag)}function mn(t,e){return Array.isArray(t)?t.indexOf(e)>-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 Ce(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Ce(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;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?A(n):n;for(var r=A(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)zt(n[o],e,r,e,i)}return e}}(vn),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=function(t){var e=He;return He=t,function(){He=e}}(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){qe(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||g(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),qe(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(vn),function(t){Ae(t.prototype),t.prototype.$nextTick=function(t){return Xt(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=ue(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{Be=e,t=r.call(e._renderProxy,e.$createElement)}catch(Dn){Dt(Dn,e,"render"),t=e._vnode}finally{Be=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof ut||(t=lt()),t.parent=i,t}}(vn);var _n=[String,RegExp,Array],xn={name:"keep-alive",abstract:!0,props:{include:_n,exclude:_n,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)wn(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){bn(t,(function(t){return mn(e,t)}))})),this.$watch("exclude",(function(e){bn(t,(function(t){return!mn(e,t)}))}))},render:function(){var t=this.$slots.default,e=function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||ze(n)))return n}}(t),n=e&&e.componentOptions;if(n){var r=yn(n),o=this.include,a=this.exclude;if(o&&(!r||!mn(o,r))||a&&r&&mn(a,r))return e;var s=this.cache,c=this.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;s[u]?(e.componentInstance=s[u].componentInstance,g(c,u),c.push(u)):(s[u]=e,c.push(u),this.max&&c.length>parseInt(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).length<Object.keys(n).length)Pn(i,r,e);else{var s=function(o){var a=e[o],s=n[o],c=jn(a),u=jn(s);if(c!=On&&c!=kn)a!==n[o]&&function(t,e){if(("[object Null]"===t||"[object Undefined]"===t)&&("[object Null]"===e||"[object Undefined]"===e))return!1;return!0}(c,u)&&Pn(i,(""==r?"":r+".")+o,a);else if(c==On)u!=On||a.length<s.length?Pn(i,(""==r?"":r+".")+o,a):a.forEach((function(e,n){t(e,s[n],(""==r?"":r+".")+o+"["+n+"]",i)}));else if(c==kn)if(u!=kn||Object.keys(a).length<Object.keys(s).length)Pn(i,(""==r?"":r+".")+o,a);else for(var f in a)t(a[f],s[f],(""==r?"":r+".")+o+"."+f,i)};for(var c in e)s(c)}else o==On?a!=On||e.length<n.length?Pn(i,r,e):e.forEach((function(e,o){t(e,n[o],r+"["+o+"]",i)})):Pn(i,r,e)}(t,e,"",n),n}function Pn(t,e,n){t[e]=n}function jn(t){return Object.prototype.toString.call(t)}function $n(t){if(t.__next_tick_callbacks&&t.__next_tick_callbacks.length){if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"chargingPile",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var e=t.$scope;console.log("["+ +new Date+"]["+(e.is||e.route)+"]["+t._uid+"]:flushCallbacks["+t.__next_tick_callbacks.length+"]")}var n=t.__next_tick_callbacks.slice(0);t.__next_tick_callbacks.length=0;for(var r=0;r<n.length;r++)n[r]()}}function En(t,e){if(!t.__next_tick_pending&&!function(t){return Ge.find((function(e){return t._watcher===e}))}(t)){if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"chargingPile",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var n=t.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+t._uid+"]:nextVueTick")}return Xt(e,t)}if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"chargingPile",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var r=t.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+t._uid+"]:nextMPTick")}var i;if(t.__next_tick_callbacks||(t.__next_tick_callbacks=[]),t.__next_tick_callbacks.push((function(){if(e)try{e.call(t)}catch(Dn){Dt(Dn,t,"nextTick")}else i&&i(t)})),!e&&"undefined"!==typeof Promise)return new Promise((function(t){i=t}))}function Tn(t,e){return e&&(e._isVue||e.__v_isMPComponent)?{}:e}function In(){}function Mn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Mn(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):s(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"===typeof t?t:""}var Cn=b((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(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;a<s;a++)r=zt(i[a],n,e?[e]:null,n,o);return n._hasHookEvent&&n.$emit("hook:"+t,e),ct(),r},t.prototype.__set_model=function(e,n,r,i){Array.isArray(i)&&(-1!==i.indexOf("trim")&&(r=r.trim()),-1!==i.indexOf("number")&&(r=this._n(r))),e||(e=this),t.set(e,n,r)},t.prototype.__set_sync=function(e,n,r){e||(e=this),t.set(e,n,r)},t.prototype.__get_orig=function(t){return u(t)&&t["$orig"]||t},t.prototype.__get_value=function(t,e){return function t(e,n){var r=n.split("."),i=r[0];return 0===i.indexOf("__$n")&&(i=parseInt(i.replace("__$n",""))),1===r.length?e[i]:t(e[i],r.slice(1).join("."))}(e||this,t)},t.prototype.__get_class=function(t,e){return function(t,e){return i(t)||i(e)?function(t,e){return t?e?t+" "+e:t:e||""}(t,Mn(e)):""}(e,t)},t.prototype.__get_style=function(t,e){if(!t&&!e)return"";var n=function(t){return Array.isArray(t)?j(t):"string"===typeof t?Cn(t):t}(t),r=e?P(e,n):n;return Object.keys(r).map((function(t){return O(t)+":"+r[t]})).join(";")},t.prototype.__map=function(t,e){var n,r,i,o,a;if(Array.isArray(t)){for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);return n}if(s(t)){for(o=Object.keys(t),n=Object.create(null),r=0,i=o.length;r<i;r++)a=o[r],n[a]=e(t[a],a,r);return n}if("number"===typeof t){for(n=new Array(t),r=0,i=t;r<i;r++)n[r]=e(r,r);return n}return[]}}(vn),e["default"]=vn}.call(this,n("0ee4"))},"34cf":function(t,e,n){var r=n("ed45"),i=n("7172"),o=n("6382"),a=n("dd3e");t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.__esModule=!0,t.exports["default"]=t.exports},"36e9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{board:Object,pathType:String,fileType:{type:String,default:"png"},hidden:Boolean,quality:{type:Number,default:1},css:[String,Object],width:[Number,String],height:[Number,String],pixelRatio:Number,customStyle:String,isCanvasToTempFilePath:Boolean,sleep:{type:Number,default:1e3/30},beforeDelay:{type:Number,default:100},afterDelay:{type:Number,default:100},performance:Boolean,type:{type:String,default:"2d"}}};e.default=r},"3b2d":function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"47a9":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports["default"]=t.exports},4874:function(t,e,n){"use strict";var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7ca3")),o=r(n("feec")),a=r(n("f728"));function s(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 c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={url:{request:"https://cd.admin.zswlgz.com/",upload:"http://127.0.0.1:3000/upload/",download:"http://oss.aabb.com/download/",static:"http://oss.aabb.com/",configUrl:"http://bx.eomp.cn/adp/"},api:{login:"/userApi/login",refreshToken:"/api/v1/auth/refresh-token"},keyname:{userInfo:"USER_INFO",userToken:"USER_TOKEN",logs:"LOGS_DATA",accessToken:"ACCESS_TOKEN",refreshToken:"REFRESH_TOKEN"},eventName:{setResult:"SET-HOME-RESULT"},customerService:{id:"wwfb3777bf94dcfaf1",url:"https://work.weixin.qq.com/kfid/kfc4feac060f5c1bc7e"}};u.pages=a.default.pages.map((function(t){return t.style=c(c({},a.default.globalStyle),t.style),t})),o.default.sys.envVersion({release:function(){},trial:function(){},develop:function(){}});var f=u;e.default=f},"4b58":function(t,e,n){(function(t){var e=n("3b2d");t.addInterceptor({returnValue:function(t){return!t||"object"!==e(t)&&"function"!==typeof t||"function"!==typeof t.then?t:new Promise((function(e,n){t.then((function(t){return t[0]?n(t[0]):e(t[1])}))}))}})}).call(this,n("df3c")["default"])},6382:function(t,e,n){var r=n("6454");t.exports=function(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports["default"]=t.exports},6454:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports["default"]=t.exports},"67ad":function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports["default"]=t.exports},"6a42":function(t,e){},7172:function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}},t.exports.__esModule=!0,t.exports["default"]=t.exports},7647:function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e,r)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},7907:function(t,e,n){(function(e){var r=n("67ad"),i=n("0bdb"),o=function(){"use strict";function t(e){r(this,t),this.ak=e["ak"]}return i(t,[{key:"getWXLocation",value:function(t,n,r,i){t=t||"gcj02",n=n||function(){},r=r||function(){},i=i||function(){},e.getLocation({type:t,success:n,fail:r,complete:i})}},{key:"search",value:function(t){t=t||{};var n={query:t["query"]||"生活服务$美食&酒店",scope:t["scope"]||1,filter:t["filter"]||"",coord_type:t["coord_type"]||2,page_size:t["page_size"]||10,page_num:t["page_num"]||0,output:t["output"]||"json",ak:this.ak,sn:t["sn"]||"",timestamp:t["timestamp"]||"",radius:t["radius"]||2e3,ret_coordtype:"gcj02ll"},r={iconPath:t["iconPath"],iconTapPath:t["iconTapPath"],width:t["width"],height:t["height"],alpha:t["alpha"]||1,success:t["success"]||function(){},fail:t["fail"]||function(){}},i=function(t){n["location"]=t["latitude"]+","+t["longitude"],e.request({url:"https://api.map.baidu.com/place/v2/search",data:n,header:{"content-type":"application/json"},method:"GET",success:function(t){var e=t["data"];if(0===e["status"]){var n=e["results"],i={};i["originalData"]=e,i["wxMarkerData"]=[];for(var o=0;o<n.length;o++)i["wxMarkerData"][o]={id:o,latitude:n[o]["location"]["lat"],longitude:n[o]["location"]["lng"],title:n[o]["name"],iconPath:r["iconPath"],iconTapPath:r["iconTapPath"],address:n[o]["address"],telephone:n[o]["telephone"],alpha:r["alpha"],width:r["width"],height:r["height"]};r.success(i)}else r.fail({errMsg:e["message"],statusCode:e["status"]})},fail:function(t){r.fail(t)}})};if(t["location"]){var o=t.location.split(",")[1],a=t.location.split(",")[0],s={errMsg:"input location",latitude:a,longitude:o};i(s)}else this.getWXLocation("gcj02",i,(function(t){r.fail(t)}),(function(t){}))}},{key:"suggestion",value:function(t){t=t||{};var n={query:t["query"]||"",region:t["region"]||"全国",city_limit:t["city_limit"]||!1,output:t["output"]||"json",ak:this.ak,sn:t["sn"]||"",timestamp:t["timestamp"]||"",ret_coordtype:"gcj02ll"},r={success:t["success"]||function(){},fail:t["fail"]||function(){}};e.request({url:"https://api.map.baidu.com/place/v2/suggestion",data:n,header:{"content-type":"application/json"},method:"GET",success:function(t){var e=t["data"];0===e["status"]?r.success(e):r.fail({errMsg:e["message"],statusCode:e["status"]})},fail:function(t){r.fail(t)}})}},{key:"regeocoding",value:function(t){t=t||{};var n={coordtype:t["coordtype"]||"gcj02ll",ret_coordtype:"gcj02ll",radius:t["radius"]||1e3,ak:this.ak,sn:t["sn"]||"",output:t["output"]||"json",callback:t["callback"]||function(){},extensions_poi:t["extensions_poi"]||1,extensions_road:t["extensions_road"]||!1,extensions_town:t["extensions_town"]||!1,language:t["language"]||"zh-CN",language_auto:t["language_auto"]||0},r={iconPath:t["iconPath"],iconTapPath:t["iconTapPath"],width:t["width"],height:t["height"],alpha:t["alpha"]||1,success:t["success"]||function(){},fail:t["fail"]||function(){}},i=function(t){n["location"]=t["latitude"]+","+t["longitude"],e.request({url:"https://api.map.baidu.com/reverse_geocoding/v3",data:n,header:{"content-type":"application/json"},method:"GET",success:function(e){var n=e["data"];if(0===n["status"]){var i=n["result"],o={};o["originalData"]=n,o["wxMarkerData"]=[],o["wxMarkerData"][0]={id:0,latitude:t["latitude"],longitude:t["longitude"],address:i["formatted_address"],iconPath:r["iconPath"],iconTapPath:r["iconTapPath"],desc:i["sematic_description"],business:i["business"],alpha:r["alpha"],width:r["width"],height:r["height"]},r.success(o)}else r.fail({errMsg:n["message"],statusCode:n["status"]})},fail:function(t){r.fail(t)}})};if(t["location"]){var o=t.location.split(",")[1],a=t.location.split(",")[0],s={errMsg:"input location",latitude:a,longitude:o};i(s)}else this.getWXLocation("gcj02",i,(function(t){r.fail(t)}),(function(t){}))}},{key:"geocoding",value:function(t){t=t||{};var n={address:t["address"]||"",city:t["city"]||"",ret_coordtype:t["coordtype"]||"gcj02ll",ak:this.ak,sn:t["sn"]||"",output:t["output"]||"json",callback:t["callback"]||function(){}},r={iconPath:t["iconPath"],iconTapPath:t["iconTapPath"],width:t["width"],height:t["height"],alpha:t["alpha"]||1,success:t["success"]||function(){},fail:t["fail"]||function(){}};if(t["address"])e.request({url:"https://api.map.baidu.com/geocoding/v3",data:n,header:{"content-type":"application/json"},method:"GET",success:function(t){var e=t["data"];if(0===e["status"]){var n=e["result"],i=e;i["originalData"]=e,i["wxMarkerData"]=[],i["wxMarkerData"][0]={id:0,latitude:n["location"]["lat"],longitude:n["location"]["lng"],iconPath:r["iconPath"],iconTapPath:r["iconTapPath"],alpha:r["alpha"],width:r["width"],height:r["height"]},r.success(i)}else r.fail({errMsg:e["message"],statusCode:e["status"]})},fail:function(t){r.fail(t)}});else{var i={errMsg:"input address!"};r.fail(i)}}},{key:"weather",value:function(t){t=t||{};var n={coord_type:t["coord_type"]||"gcj02",output:t["output"]||"json",ak:this.ak,sn:t["sn"]||"",timestamp:t["timestamp"]||""},r={success:t["success"]||function(){},fail:t["fail"]||function(){}},i=function(t){n["location"]=t["longitude"]+","+t["latitude"],e.request({url:"https://api.map.baidu.com/telematics/v3/weather",data:n,header:{"content-type":"application/json"},method:"GET",success:function(t){var e=t["data"];if(0===e["error"]&&"success"===e["status"]){var n=e["results"],i={};i["originalData"]=e,i["currentWeather"]=[],i["currentWeather"][0]={currentCity:n[0]["currentCity"],pm25:n[0]["pm25"],date:n[0]["weather_data"][0]["date"],temperature:n[0]["weather_data"][0]["temperature"],weatherDesc:n[0]["weather_data"][0]["weather"],wind:n[0]["weather_data"][0]["wind"]},r.success(i)}else r.fail({errMsg:e["message"],statusCode:e["status"]})},fail:function(t){r.fail(t)}})};if(t["location"]){var o=t.location.split(",")[0],a=t.location.split(",")[1],s={errMsg:"input location",latitude:a,longitude:o};i(s)}else this.getWXLocation("gcj02",i,(function(t){r.fail(t)}),(function(t){}))}}]),t}();t.exports.BMapWX=o}).call(this,n("3223")["default"])},"7ca3":function(t,e,n){var r=n("d551");t.exports=function(t,e,n){return e=r(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"7eb4":function(t,e,n){var r=n("9fc1")();t.exports=r},"828b":function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s,c,u){var f,l="function"===typeof t?t.options:t;if(c){l.components||(l.components={});var h=Object.prototype.hasOwnProperty;for(var d in c)h.call(c,d)&&!h.call(l.components,d)&&(l.components[d]=c[d])}if(u&&("function"===typeof u.beforeCreate&&(u.beforeCreate=[u.beforeCreate]),(u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(l.mixins||(l.mixins=[])).push(u)),e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=f):i&&(f=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),f)if(l.functional){l._injectStyles=f;var p=l.render;l.render=function(t,e){return f.call(e),p(t,e)}}else{var v=l.beforeCreate;l.beforeCreate=v?[].concat(v,f):[f]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},9008:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},"92ab":function(t,e,n){"use strict";(function(t,r){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Painter=void 0;var o=i(n("3b2d")),a=function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},a.apply(this,arguments)};function s(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function c(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var u={MP_WEIXIN:"mp-weixin",MP_QQ:"mp-qq",MP_ALIPAY:"mp-alipay",MP_BAIDU:"mp-baidu",MP_TOUTIAO:"mp-toutiao",MP_DINGDING:"mp-dingding",H5:"h5",WEB:"web",PLUS:"plus"},f=["Top","Right","Bottom","Left"],l="right",h="bottom",d=["contentSize","clientSize","borderSize","offsetSize"],p={TOP:"top",MIDDLE:"middle",BOTTOM:h},v={LEFT:"left",CENTER:"center",RIGHT:l},g="view",y="text",m="image",b="qrcode",w="block",_="absolute",x="fixed",S={display:w,color:"#000000",lineHeight:"1.4em",fontSize:14,fontWeight:400,fontFamily:"sans-serif",lineCap:"butt",flexDirection:"row",flexWrap:"nowrap",textAlign:"left",alignItems:"flex-start",justifyContent:"flex-start",position:"static",transformOrigin:"".concat("center"," ").concat("center")},O={upx2px:function(t){return window.innerWidth/750*t},getSystemInfoSync:function(){return{screenWidth:window.innerWidth,screenHeight:window.innerHeight}},getImageInfo:function(t){var e=t.src,n=t.success,r=t.fail,i=new Image;i.onload=function(){n({width:i.naturalWidth,height:i.naturalHeight,path:i.src,src:e})},i.onerror=r,i.src=e}},k="object"==("undefined"===typeof window?"undefined":(0,o.default)(window))?"undefined"==typeof t||"undefined"!=typeof t&&!t.addInterceptor?u.WEB:u.H5:"object"==("undefined"===typeof swan?"undefined":(0,o.default)(swan))?u.MP_BAIDU:"object"==("undefined"===typeof tt?"undefined":(0,o.default)(tt))?u.MP_TOUTIAO:"object"==("undefined"===typeof plus?"undefined":(0,o.default)(plus))?u.PLUS:"object"==("undefined"===typeof r?"undefined":(0,o.default)(r))?u.MP_WEIXIN:void 0,A=k==u.MP_WEIXIN?r:"undefined"!=typeof t?t.getImageInfo?{upx2px:function(e){return t.upx2px(e)},getSystemInfoSync:function(){return t.getSystemInfoSync()},getImageInfo:function(e){return t.getImageInfo(e)},downloadFile:function(e){return t.downloadFile(e)}}:Object.assign(t,O):"undefined"!=typeof window?O:t;if(!A.upx2px){var P=((A.getSystemInfoSync&&A.getSystemInfoSync()).screenWidth||375)/750;A.upx2px=function(t){return P*t}}function j(t){return/^-?\d+(\.\d+)?$/.test(t)}function $(t,e,n){if(j(t))return 1*t;if("string"==typeof t){var r=/^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|vw|vh|px|%)$/g.exec(t);if(!t||!r)return 0;var i=r[3];t=parseFloat(t);var o=0;if("rpx"===i)o=A.upx2px(t);else if("px"===i)o=1*t;else if("%"===i&&e)o=t*$(e)/100;else if("em"===i&&e)o=t*$(e||14);else if(["vw","vh"].includes(i)){var a=A.getSystemInfoSync(),s=a.screenWidth,c=a.screenHeight;o=t*("vw"==i?s:c)/100}return 1*o.toFixed(2)}return 0}function E(t){return/%$/.test(t)}function T(t){return/^-?([0-9]+)?([.]{1}[0-9]+){0,1}(rpx|px)$/.test(t)}function I(t){for(var e=[],n=[],r=0,i=t.substring(0,t.length-1).split("%,");r<i.length;r++){var o=i[r];e.push(o.substring(0,o.lastIndexOf(" ")).trim()),n.push(o.substring(o.lastIndexOf(" "),o.length)/100)}return{colors:e,percents:n}}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(){return C=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},C.apply(this,arguments)}function L(t,e){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},L(t,e)}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function D(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=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(){M(this,"elements",[]),M(this,"afterElements",[]),M(this,"beforeElements",[]),M(this,"ids",[]),M(this,"width",0),M(this,"height",0),M(this,"top",0),M(this,"left",0),M(this,"pre",null),M(this,"offsetX",0),M(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)<this.width&&(this.container.lineMaxWidth=this.width)},e.refreshXAlign=function(){if(this.isInline){var t=this.container.contentSize.width-this.width,e=this.container.style.textAlign;"center"===e?t/=2:"left"===e&&(t=0),this.offsetX=t}},e.getOffsetY=function(t){if(!t||!t.style)return 0;var e=(t.style||{}).verticalAlign;return e===h?this.height-t.contentSize.height:"middle"===e?(this.height-t.contentSize.height)/2:0},e.setIndent=function(t){var e=t.style.textIndent;if(e&&/^calc/.test(e)){var n=/^calc\((.+)\)$/.exec(e);if(n&&n[1]){var r=n[1].replace(/([^\s\(\+\-\*\/]+)\.(left|right|bottom|top|width|height)/g,(function(e){var n=e.split("."),r=n[0],i=n[1],o=t.parent.querySelector(r);if(o&&o.offsetSize){var a={right:o.offsetSize.left+o.offsetSize.width,bottom:o.offsetSize.top+o.offsetSize.height};return o.offsetSize[i]||a[i]||0}})),i=function t(e){e=e.trim();for(var n=new Array,r="+",i="",o=e.length,a=0;a<o;++a){if("."===e[a]||!isNaN(Number(e[a]))&&" "!==e[a])i+=e[a];else if("("===e[a]){for(var s=1,c=a;s>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 M(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)<r&&(this.container[this.key.lineMaxWidth]=r)},i.refreshXAlign=function(){var t=this,e=this.elements.reduce((function(e,n){return e+t.getWidth(n.offsetSize)}),0),n=(this.outerWidth==1/0?0:this.outerWidth-e)||0,r=this.container.style.justifyContent;"center"===r?n/=2:"flex-start"===r?n=0:["space-between","space-around"].includes(r)&&(function(e,n){void 0===n&&(n=0),n/=t.elements.length+(e?-1:1),t.elements.forEach((function(r,i){var o;e&&!i||(r.style.margin?r.style.margin[t.key.marginLeft]+=n:r.style.margin=((o={})[t.key.marginLeft]=n,o),r.getBoxPosition())})),n=0}("space-between"==r,n),n=0),this.offsetX=n||0,this.refreshYAlign()},i.refreshYAlign=function(){var t=this;if(1==this.container.lines.length)return 0;var e=this.container.lines.reduce((function(e,n){return e+t.getHeight(n)}),0),n=this.container.style.alignItems,r=this.getHeight(this.container.contentSize);if("center"===n){var i=(r-e)/(this.container.lines.length+1);this.container.lines.forEach((function(t){t.offsetY=i}))}if("flex-end"===n){var o=r-e;this.container.lines[0].offsetY=o}},i.getOffsetY=function(t){if(this.container.lines.length>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;M(this,"id",rt++),M(this,"style",{left:null,top:null,width:null,height:null}),M(this,"computedStyle",{}),M(this,"originStyle",{}),M(this,"children",{}),M(this,"layoutBox",C({},it)),M(this,"contentSize",C({},it)),M(this,"clientSize",C({},it)),M(this,"borderSize",C({},it)),M(this,"offsetSize",C({},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<r.length;h++){var d=r[h];(c[d]||u[d])&&(c[d]=c[(n=d,n.replace(/([A-Z])/g,"-$1").toLowerCase())]||c[d]||u[d])}for(var p=function(t){var e,n,r,i,s=c[t];if(/-/.test(t)&&(t=q(t),l[t]=s),/^(box|text)?shadow$/i.test(t)){var u=[];return s.replace(/((-?\d+(rpx|px|vw|vh)?\s+?){3})(.+)/,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];u=t[1].match(/-?\d+(rpx|px|vw|vh)?/g).map((function(t){return $(t)})).concat(t[4])})),/^text/.test(t)?l.textShadow=u:l.boxShadow=u,"continue"}if(/^border/i.test(t)&&!/radius$/i.test(t)){var h=t.match(/^border([BTRLa-z]+)?/)[0],d=t.match(/[W|S|C][a-z]+/),p=s.replace(/([\(,])\s+|\s+([\),])/g,"$1$2").split(" ").map((function(t){return/^\d/.test(t)?$(t,""):t}));return l[h]||(l[h]={}),1==p.length&&d?l[h][h+d[0]]=p[0]:l[h]=((e={})[h+"Width"]=j(p[0])?p[0]:0,e[h+"Style"]=p[1]||"solid",e[h+"Color"]=p[2]||"black",e),"continue"}if(/^background(color)?$/i.test(t))return l.backgroundColor=s,"continue";if(/^objectPosition$/i.test(t))return l[t]=s.split(" "),"continue";if(/^backgroundPosition$/i.test(t))return l[t]=s.split(" "),"continue";if(/padding|margin|radius/i.test(t)){var v=/radius$/i.test(t),g="borderRadius",y=v?g:t.match(/[a-z]+/)[0],m=function(t,e){return"border".concat(t).concat(e,"Radius")},b=[0,0,0,0].map((function(t,e){return v?[m(f[0],f[3]),m(f[0],f[1]),m(f[2],f[1]),m(f[2],f[3])][e]:y+f[e]}));if("padding"===t||"margin"===t||/^(border)?radius$/i.test(t)){p="".concat(s).split(" ").map((function(e){return/^-?\d+(rpx|px|vh|vw)?$/.test(e)?$(e):"margin"!=t&&/auto/.test(e)?0:e}),[])||[0];var w=v?g:t,_=p[0],x=p[1],S=p[2],O=p[3];l[w]=((n={})[b[0]]=R(_)?0:_,n[b[1]]=j(x)||R(x)?x:_,n[b[2]]=R(j(S)?S:_)?0:j(S)?S:_,n[b[3]]=j(O)?O:null!=x?x:_,n)}else"object"==(0,o.default)(l[y])||(l[y]=((r={})[b[0]]=l[y]||0,r[b[1]]=l[y]||0,r[b[2]]=l[y]||0,r[b[3]]=l[y]||0,r)),l[y][t]="margin"==y&&R(s)||N(s)?s:$(s);return"continue"}if(/^transform$/i.test(t))return l[t]={},s.replace(/([a-zA-Z]+)\(([0-9,-\.%rpxdeg\s]+)\)/g,(function(e,n,r){var i=r.split(",").map((function(t){return t.replace(/(^\s*)|(\s*$)/g,"")})),o=function(t,e){return t.includes("deg")?1*t:e&&!N(e)?$(t,e):t};n.includes("matrix")?l[t][n]=i.map((function(t){return 1*t})):n.includes("rotate")?l[t][n]=1*r.match(/^-?\d+(\.\d+)?/)[0]:/[X, Y]/.test(n)?l[t][n]=/[X]/.test(n)?o(i[0],c.width):o(i[0],c.height):(l[t][n+"X"]=o(i[0],c.width),l[t][n+"Y"]=o(i[1]||i[0],c.height))})),"continue";if(/^font$/i.test(t)&&console.warn("font 不支持简写"),/^textindent/i.test(t)&&(l[t]=/^calc/.test(s)?s:$(s)),/^textstroke/i.test(t)){var k=t.match(/color|width|type$/i),A=(h="textStroke",s.split(" ").map((function(t){return/^\d+(rpx|px|vh|vw)?$/.test(t)?$(t):t})));return k?l[h]?l[h][k[0]]=A[0]:l[h]=((i={})[k[0]]=A[0],i):l[h]={width:A[0],color:A[1],type:A[2]},"continue"}/^left|top$/i.test(t)&&![U,V].includes(c.position)?l[t]=0:l[t]=/^-?[\d\.]+(px|rpx|vw|vh)?$/.test(s)?$(s):/em$/.test(s)&&a==W?$(s,c.fontSize):s},v=0,g=Object.keys(c);v<g.length;v++)p(g[v]);return l}(t,e);this.isAbsolute=a.position==nt,this.isFixed="fixed"==a.position,this.originStyle=a,this.styles=t.styles,Object.keys(a).forEach((function(t){Object.defineProperty(i.style,t,{configurable:!0,enumerable:!0,get:function(){return a[t]},set:function(e){a[t]=e}})}));var s={contentSize:C({},this.contentSize),clientSize:C({},this.clientSize),borderSize:C({},this.borderSize),offsetSize:C({},this.offsetSize)};Object.keys(s).forEach((function(t){Object.keys(i[t]).forEach((function(e){Object.defineProperty(i[t],e,{configurable:!0,enumerable:!0,get:function(){return s[t][e]},set:function(n){s[t][e]=n}})}))})),this.computedStyle=this.style}var e=t.prototype;return e.add=function(t){t.parent=this,this.children[t.id]=t},e.getChildren=function(){var t=this;return Object.keys(this.children).map((function(e){return t.children[e]}))},e.prev=function(t){void 0===t&&(t=this);var e=t.parent.getChildren();return e[e.findIndex((function(e){return e.id==t.id}))-1]},e.querySelector=function(t){var e=this.getChildren();if("string"!=typeof t)return null;var n=e.find((function(e){var n=e.id,r=e.attributes;return n==t||r&&r.uid==t}));return n||this.parent&&this.parent.querySelector&&this.parent.querySelector(t)||null},e.getLineRect=function(t,e){var n=e?e.lines:this.parent&&this.parent.lines;return n&&n.find((function(e){return e.ids.includes(t)}))||{width:0,height:0}},e.setPosition=function(t,e){var n={left:"width",top:"height",right:"width",bottom:"height"};Object.keys(n).forEach((function(r){var i=r==l?"left":"top";[l,h].includes(r)&&void 0!==t.style[r]&&!j(t.originStyle[i])?t.style[i]=e[n[r]]-t.offsetSize[n[r]]-$(t.style[r],e[n[r]]):t.style[r]=$(t.style[r],e[n[r]])}))},e.getAttributes=function(t){var e=t.attributes,n=void 0===e?{}:e,r=t.uid,i=t.url,o=t.src,a=t.replace,s=t.text;return r&&(n.uid=r),(i||o)&&(n.src=n.src||i||o),a&&(n.replace=a),s&&(n.text=s),n},e.getOffsetSize=function(t,e,n){void 0===n&&(n=d[3]);var r=e||{},i=r.margin,o=(i=void 0===i?{}:i).marginLeft,a=void 0===o?0:o,s=i.marginTop,c=void 0===s?0:s,u=i.marginRight,f=void 0===u?0:u,l=i.marginBottom,h=void 0===l?0:l,p=r.padding,v=(p=void 0===p?{}:p).paddingLeft,g=void 0===v?0:v,y=p.paddingTop,m=void 0===y?0:y,b=p.paddingRight,w=void 0===b?0:b,_=p.paddingBottom,x=void 0===_?0:_,S=r.border,O=(S=void 0===S?{}:S).borderWidth,k=void 0===O?0:O,A=r.borderTop,P=(A=void 0===A?{}:A).borderTopWidth,j=void 0===P?k:P,$=r.borderBottom,E=($=void 0===$?{}:$).borderBottomWidth,T=void 0===E?k:E,I=r.borderRight,M=(I=void 0===I?{}:I).borderRightWidth,C=void 0===M?k:M,L=r.borderLeft,B=(L=void 0===L?{}:L).borderLeftWidth,D=void 0===B?k:B,z=a<0&&f<0?Math.abs(a+f):0,R=c<0&&h<0?Math.abs(c+h):0,N=a>=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+C/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+C+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=C({},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=C({},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,M=void 0===I?{}:I,C=n.border,L=(C=void 0===C?{}:C).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&&[M.marginLeft,M.marginRight].includes("auto"))if(v){var rt=V&&V-v-X-tt-U-F||0;M.marginLeft==M.marginRight?M.marginLeft=M.marginRight=rt/2:R(M.marginLeft)?M.marginLeft=rt:M.marginRight=rt}else M.marginLeft=M.marginRight=0;var it=M.marginRight,at=void 0===it?0:it,st=M.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;i<r;i++)h[n+i]=0;for(i=0;i<e;i++){if(255!=(a=f[h[t+i]^h[n]]))for(o=1;o<r;o++)h[n+o-1]=h[n+o]^l[w(a+_[r-o])];else for(o=n;o<n+r;o++)h[o]=h[o+1];h[n+r-1]=255==a?0:l[w(a+_[0])]}}function S(t,e){var n;return t>e&&(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<e;r++)for(n=0;n<e;n++)n+r&1||S(n,r)||(p[n+r*e]^=1);break;case 1:for(r=0;r<e;r++)for(n=0;n<e;n++)1&r||S(n,r)||(p[n+r*e]^=1);break;case 2:for(r=0;r<e;r++)for(i=0,n=0;n<e;n++,i++)3==i&&(i=0),i||S(n,r)||(p[n+r*e]^=1);break;case 3:for(o=0,r=0;r<e;r++,o++)for(3==o&&(o=0),i=o,n=0;n<e;n++,i++)3==i&&(i=0),i||S(n,r)||(p[n+r*e]^=1);break;case 4:for(r=0;r<e;r++)for(i=0,o=r>>1&1,n=0;n<e;n++,i++)3==i&&(i=0,o=!o),o||S(n,r)||(p[n+r*e]^=1);break;case 5:for(o=0,r=0;r<e;r++,o++)for(3==o&&(o=0),i=0,n=0;n<e;n++,i++)3==i&&(i=0),(n&r&1)+!(!i|!o)||S(n,r)||(p[n+r*e]^=1);break;case 6:for(o=0,r=0;r<e;r++,o++)for(3==o&&(o=0),i=0,n=0;n<e;n++,i++)3==i&&(i=0),(n&r&1)+(i&&i==o)&1||S(n,r)||(p[n+r*e]^=1);break;case 7:for(o=0,r=0;r<e;r++,o++)for(3==o&&(o=0),i=0,n=0;n<e;n++,i++)3==i&&(i=0),(i&&i==o)+(n+r&1)&1||S(n,r)||(p[n+r*e]^=1)}}function k(t){var e,n=0;for(e=0;e<=t;e++)g[e]>=5&&(n+=3+g[e]-5);for(e=3;e<t-1;e+=2)g[e-2]==g[e+2]&&g[e+2]==g[e-1]&&g[e-1]==g[e+1]&&3*g[e-1]==g[e]&&(0==g[e-3]||e+3>t||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;n<e-1;n++)for(t=0;t<e-1;t++)(p[t+e*n]&&p[t+1+e*n]&&p[t+e*(n+1)]&&p[t+1+e*(n+1)]||!(p[t+e*n]||p[t+1+e*n]||p[t+e*(n+1)]||p[t+1+e*(n+1)]))&&(a+=3);for(n=0;n<e;n++){for(g[0]=0,r=i=t=0;t<e;t++)(o=p[t+e*n])==i?g[r]++:g[++r]=1,s+=(i=o)?1:-1;a+=k(r)}s<0&&(s=-s);var c=s,u=0;for(c+=c<<2,c<<=1;c>e*e;)c-=e*e,u++;for(a+=10*u,t=0;t<e;t++){for(g[0]=0,r=i=n=0;n<e;n++)(o=p[t+e*n])==i?g[r]++:g[++r]=1,i=o;a+=k(r)}return a}var P=null;return{api:{get ecclevel(){return y},set ecclevel(t){y=t},get size(){return _size},set size(t){_size=t},get canvas(){return P},set canvas(t){P=t},getFrame:function(g){return function(g){var k,P,j,$,E,T,I,M;$=g.length,t=0;do{if(t++,j=4*(y-1)+16*(t-1),n=u[j++],r=u[j++],i=u[j++],o=u[j],$<=(j=i*(n+r)+r-3+(t<=9)))break}while(t<40);for(e=17+4*t,E=i+(i+o)*(n+r)+r,$=0;$<E;$++)d[$]=0;for(h=g.slice(0),$=0;$<e*e;$++)p[$]=0;for($=0;$<(e*(e+1)+1)/2;$++)v[$]=0;for($=0;$<3;$++){for(j=0,P=0,1==$&&(j=e-7),2==$&&(P=e-7),p[P+3+e*(j+3)]=1,k=0;k<6;k++)p[P+k+e*j]=1,p[P+e*(j+k+1)]=1,p[P+6+e*(j+k)]=1,p[P+k+1+e*(j+6)]=1;for(k=1;k<5;k++)m(P+k,j+1),m(P+1,j+k+1),m(P+5,j+k),m(P+k+1,j+5);for(k=2;k<4;k++)p[P+k+e*(j+2)]=1,p[P+2+e*(j+k+1)]=1,p[P+4+e*(j+k)]=1,p[P+k+1+e*(j+4)]=1}if(t>1)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;k<e-14;k++)1&k?(m(8+k,6),m(6,8+k)):(p[8+k+6*e]=1,p[6+e*(8+k)]=1);if(t>6)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<e;P++)for(k=0;k<=P;k++)p[k+e*P]&&m(k,P);for(E=h.length,T=0;T<E;T++)d[T]=h.charCodeAt(T);if(h=d.slice(0),E>=(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);T<k;)h[T++]=236,h[T++]=17;for(_[0]=1,T=0;T<o;T++){for(_[T+1]=1,I=T;I>0;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<n;T++)x(P,i,j,o),P+=i,j+=o;for(T=0;T<r;T++)x(P,i+1,j,o),P+=i+1,j+=o;for(P=0,T=0;T<i;T++){for(I=0;I<n;I++)d[P++]=h[T+I*i];for(I=0;I<r;I++)d[P++]=h[n*i+T+I*(i+1)]}for(I=0;I<r;I++)d[P++]=h[n*i+T+I*(i+1)];for(T=0;T<o;T++)for(I=0;I<n+r;I++)d[P++]=h[k+T+I*o];for(h=d,k=P=e-1,j=E=1,M=(i+o)*(n+r)+r,T=0;T<M;T++)for($=h[T],I=0;I<8;I++,$<<=1){128&$&&(p[k+e*P]=1);do{E?k--:(k++,j?0!=P?P--:(j=!j,6==(k-=2)&&(k--,P=9)):P!=e-1?P++:(j=!j,6==(k-=2)&&(k--,P-=8))),E=!E}while(S(k,P))}for(h=p.slice(0),$=0,P=3e4,j=0;j<8&&(O(j),(k=A())<P&&(P=k,$=j),7!=$);j++)p=h.slice(0);for($!=j&&O($),P=c[$+(y-1<<3)],j=0;j<8;j++,P>>=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<r;n++)(i=t.charCodeAt(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<e;m++)for(var b=0;b<e;b++)v[b*e+m]&&a.fillRect(f+g*m,l+g*b,g,g);a.restore(),n.setBorder(r,i)}else console.warn("No canvas provided to draw QR code in!")}}}}(),ct=m,ut=y,ft=b,lt=g,ht=p.TOP,dt=p.MIDDLE,pt=p.BOTTOM,vt=v.LEFT,gt=v.CENTER,yt=v.RIGHT,mt=function(){function t(t){var e,n,r=this;this.v="1.9.5.1",this.id=null,this.pixelRatio=1,this.width=0,this.height=0,this.sleep=1e3/30,this.count=0,this.isRate=!1,this.isDraw=!0,this.isCache=!0,this.fixed="",this.useCORS=!1,this.performance=!1,this.imageBus=[],this.createImage=function(t,e){return new Promise((function(n,i){var o=null;window||r.canvas.createImage?(o=r.canvas&&r.canvas.createImage?r.canvas.createImage():new Image,e&&o.setAttribute("crossOrigin","Anonymous"),o.src=t,o.onload=function(){n({width:o.naturalWidth||o.width,height:o.naturalHeight||o.height,path:o,src:this.src})},o.onerror=function(t){i(t)}):i({fail:"getImageInfo fail",src:t})}))},this.options=t,Object.assign(this,t),this.ctx=(e=t.context,n={get:function(t,n){if("setFonts"===n)return function(t){var n=t.fontFamily,r=void 0===n?"sans-serif":n,i=t.fontSize,o=void 0===i?14:i,a=t.fontWeight,s=void 0===a?"normal":a,c=t.fontStyle,f=void 0===c?"normal":c;k==u.MP_TOUTIAO&&(s="bold"==s?"bold":"",f="italic"==f?"italic":""),e.font="".concat(f," ").concat(s," ").concat(Math.round(o),"px ").concat(r)};if(!e.draw||!e.setFillStyle){if("setFillStyle"===n)return function(t){e.fillStyle=t};if("setStrokeStyle"===n)return function(t){e.strokeStyle=t};if("setLineWidth"===n)return function(t){e.lineWidth=t};if("setLineCap"===n)return function(t){e.lineCap=t};if("setFontSize"===n)return function(t){e.font="".concat(String(t),"px sans-serif")};if("setGlobalAlpha"===n)return function(t){e.globalAlpha=t};if("setLineJoin"===n)return function(t){e.lineJoin=t};if("setTextAlign"===n)return function(t){e.textAlign=t};if("setMiterLimit"===n)return function(t){e.miterLimit=t};if("setShadow"===n)return function(t,n,r,i){e.shadowOffsetX=t,e.shadowOffsetY=n,e.shadowBlur=r,e.shadowColor=i};if("setTextBaseline"===n)return function(t){e.textBaseline=t};if("createCircularGradient"===n)return function(){};if("draw"===n)return function(){};if("function"==typeof e[n])return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e[n].apply(e,t)}}return t[n]},set:function(t,n,r){return e[n]=r,!0}},new Proxy(e,n)),this.progress=0,this.root={width:t.width,height:t.height,fontSizeRate:1,fixedLine:null},this.size=this.root;var i=0;Object.defineProperty(this,"progress",{configurable:!0,set:function(t){i=t,r.lifecycle("onProgress",t/r.count)},get:function(){return i||0}})}return t.prototype.lifecycle=function(t,e){this.options.listen&&this.options.listen[t]&&this.options.listen[t](e)},t.prototype.setContext=function(t){t&&(this.ctx=t)},t.prototype.init=function(){if(this.canvas.height||u.WEB==k){this.ctx.setTransform(1,0,0,1,0,0);var t=this.size.height*this.pixelRatio,e=this.size.width*this.pixelRatio;this.canvas.height=t,this.canvas.width=e,this.ctx.scale(this.pixelRatio,this.pixelRatio)}},t.prototype.clear=function(){this.ctx.clearRect(0,0,this.size.width,this.size.height)},t.prototype.clipPath=function(t,e,n,r,i,o,a){void 0===o&&(o=!1),void 0===a&&(a=!1);var s=this.ctx;if(/polygon/.test(i)){var c=i.match(/-?\d+(rpx|px|%)?\s+-?\d+(rpx|px|%)?/g)||[];s.beginPath(),c.map((function(i){var o=i.split(" "),a=o[0],s=o[1];return[$(a,n)+t,$(s,r)+e]})).forEach((function(t,e){0==e?s.moveTo(t[0],t[1]):s.lineTo(t[0],t[1])})),s.closePath(),a&&s.stroke(),o&&s.fill()}},t.prototype.roundRect=function(t,e,n,r,i,o,a){if(void 0===o&&(o=!1),void 0===a&&(a=!1),!(i<0)){var s=this.ctx;if(s.beginPath(),i){var c=i||{},u=c.borderTopLeftRadius,f=void 0===u?i||0:u,l=c.borderTopRightRadius,h=void 0===l?i||0:l,d=c.borderBottomRightRadius,p=void 0===d?i||0:d,v=c.borderBottomLeftRadius,g=void 0===v?i||0:v;s.arc(t+n-p,e+r-p,p,0,.5*Math.PI),s.lineTo(t+g,e+r),s.arc(t+g,e+r-g,g,.5*Math.PI,Math.PI),s.lineTo(t,e+f),s.arc(t+f,e+f,f,Math.PI,1.5*Math.PI),s.lineTo(t+n-h,e),s.arc(t+n-h,e+h,h,1.5*Math.PI,2*Math.PI),s.lineTo(t+n,e+r-p)}else s.rect(t,e,n,r);s.closePath(),a&&s.stroke(),o&&s.fill()}},t.prototype.setTransform=function(t,e){var n=e.transform,r=e.transformOrigin,i=this.ctx,o=n||{},a=o.scaleX,s=void 0===a?1:a,c=o.scaleY,u=void 0===c?1:c,f=o.translateX,l=void 0===f?0:f,h=o.translateY,d=void 0===h?0:h,p=o.rotate,v=void 0===p?0:p,g=o.skewX,y=void 0===g?0:g,m=o.skewY,b=void 0===m?0:m,w=t.left,_=t.top,x=t.width,S=t.height;l=$(l,x)||0,d=$(d,S)||0;var O=$("0%",1),k=$("50%",1),A=$("100%",1),P={top:O,center:k,bottom:A},E={left:O,center:k,right:A};if(r=r.split(" ").filter((function(t,e){return e<2})).reduce((function(t,e){if(/\d+/.test(e)){var n=$(e,1)/(/px|rpx$/.test(e)?j(t.x)?S:x:1);return j(t.x)?Object.assign(t,{y:n}):Object.assign(t,{x:n})}return j(E[e])&&!j(t.x)?Object.assign(t,{x:E[e]}):Object.assign(t,{y:P[e]||.5})}),{}),(l||d)&&i.translate(l,d),(s||u)&&i.scale(s,u),v){var T=w+x*r.x,I=_+S*r.y;i.translate(T,I),i.rotate(v*Math.PI/180),i.translate(-T,-I)}(y||b)&&i.transform(1,Math.tan(b*Math.PI/180),Math.tan(y*Math.PI/180),1,0,0)},t.prototype.setBackground=function(t,e,n,r,i){var o=this.ctx;t&&"transparent"!=t?function(t){return!(!t||!t.startsWith("linear")&&!t.startsWith("radial"))}(t)?function(t,e,n,r,i,o){t.startsWith("linear")?function(t,e,n,r,i,o){for(var a=function(t,e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var o=t.match(/([-]?\d{1,3})deg/),a=o&&o[1]?parseFloat(o[1]):0;if(a>=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(a<s||a>180-s&&a<180||a>180&&a<180+s||a>360-s){var d=a*Math.PI/180,p=a<s||a>360-s?n/2:-n/2,v=Math.tan(d)*p,g=a<s||a>180-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<d.colors.length;p++)l.addColorStop(d.percents[p],d.colors[p]);o.setFillStyle(l)}(e,n,r,i,t,o):t.startsWith("radial")&&function(t,e,n,r,i,o){for(var a=I(i.match(/radial-gradient\((.+)\)/)[1]),s=Math.round(t/2)+n,c=Math.round(e/2)+r,u=o.createRadialGradient(s,c,0,s,c,Math.max(t,e)/2),f=0;f<a.colors.length;f++)u.addColorStop(a.percents[f],a.colors[f]);o.setFillStyle(u)}(e,n,r,i,t,o)}(t,e,n,r,i,o):o.setFillStyle(t):[u.MP_TOUTIAO,u.MP_BAIDU].includes(k)?o.setFillStyle("rgba(0,0,0,0)"):o.setFillStyle("transparent")},t.prototype.setShadow=function(t){var e=t.boxShadow,n=void 0===e?[]:e,r=this.ctx;if(n.length){var i=n[0],o=n[1],a=n[2],s=n[3];r.setShadow(i,o,a,s)}},t.prototype.setBorder=function(t,e){var n=this.ctx,r=t.width,i=t.height,o=t.left,a=t.top,s=e.border,c=e.borderBottom,u=e.borderTop,f=e.borderRight,l=e.borderLeft,h=e.borderRadius,d=e.lineCap,p=s||{},v=p.borderWidth,g=void 0===v?0:v,y=p.borderStyle,m=p.borderColor,b=c||{},w=b.borderBottomWidth,_=void 0===w?g:w,x=b.borderBottomStyle,S=void 0===x?y:x,O=b.borderBottomColor,A=void 0===O?m:O,P=u||{},j=P.borderTopWidth,$=void 0===j?g:j,E=P.borderTopStyle,T=void 0===E?y:E,I=P.borderTopColor,M=void 0===I?m:I,C=f||{},L=C.borderRightWidth,B=void 0===L?g:L,D=C.borderRightStyle,z=void 0===D?y:D,R=C.borderRightColor,N=void 0===R?m:R,F=l||{},W=F.borderLeftWidth,H=void 0===W?g:W,U=F.borderLeftStyle,V=void 0===U?y:U,q=F.borderLeftColor,G=void 0===q?m:q,Y=h||{},X=Y.borderTopLeftRadius,J=void 0===X?h||0:X,K=Y.borderTopRightRadius,Q=void 0===K?h||0:K,Z=Y.borderBottomRightRadius,tt=void 0===Z?h||0:Z,et=Y.borderBottomLeftRadius,nt=void 0===et?h||0:et;if(c||l||u||f||s){var rt=function(t,e,r){"dashed"==e?/mp/.test(k)?n.setLineDash([Math.ceil(4*t/3),Math.ceil(4*t/3)]):n.setLineDash([Math.ceil(6*t),Math.ceil(6*t)]):"dotted"==e&&n.setLineDash([t,t]),n.setStrokeStyle(r)},it=function(t,e,r,i,o,a,s,c,u,f,l,h,p,v,g){n.save(),n.setLineCap(g?"square":d),n.setLineWidth(h),rt(h,p,v),n.beginPath(),n.arc(t,e,s,Math.PI*u,Math.PI*f),n.lineTo(r,i),n.arc(o,a,c,Math.PI*f,Math.PI*l),n.stroke(),n.restore()};if(n.save(),s&&!c&&!l&&!u&&!f)return n.setLineWidth(g),rt(g,y,m),this.roundRect(o,a,r,i,h,!1,!!m),void n.restore();_&&it(o+r-tt,a+i-tt,o+nt,a+i,o+nt,a+i-nt,tt,nt,.25,.5,.75,_,S,A,H&&B),H&&it(o+nt,a+i-nt,o,a+J,o+J,a+J,nt,J,.75,1,1.25,H,V,G,$&&_),$&&it(o+J,a+J,o+r-Q,a,o+r-Q,a+Q,J,Q,1.25,1.5,1.75,$,T,M,H&&B),B&&it(o+r-Q,a+Q,o+r,a+i-tt,o+r-tt,a+i-tt,Q,tt,1.75,2,.25,B,z,N,$&&_)}},t.prototype.setOpacity=function(t){var e=t.opacity,n=void 0===e?1:e;this.ctx.setGlobalAlpha(n)},t.prototype.drawPattern=function(t,e,n){return s(this,void 0,void 0,(function(){var r=this;return c(this,(function(i){return[2,new Promise((function(i,o){r.drawView(e,n,!0,!1,!0);var a=r,s=a.ctx;a.canvas;var c=e.width,u=e.height,f=e.left,l=e.top,h=n||{},d=h.borderRadius,p=void 0===d?0:d,v=h.backgroundImage,g=h.backgroundRepeat,y=void 0===g?"repeat":g;v&&function(t){var o=s.createPattern(t.src,y);s.setFillStyle(o),r.roundRect(f,l,c,u,p,!0,!1),r.setBorder(e,n),i()}(t)}))]}))}))},t.prototype.drawView=function(t,e,n,r,i){void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===i&&(i=!0);var o=this.ctx,a=t.width,s=t.height,c=t.left,u=t.top,f=e||{},l=f.borderRadius,h=void 0===l?0:l,d=f.backgroundColor,p=void 0===d?"transparent":d,v=f.overflow;e.opacity&&this.setOpacity(e),this.setTransform(t,e),i&&(o.save(),this.setShadow(e)),n&&this.setBackground(p,a,s,c,u),e.clipPath?this.clipPath(c,u,a,s,e.clipPath,n,!1):this.roundRect(c,u,a,s,h,n,!1),i&&o.restore(),r&&this.setBorder(t,e),"hidden"==v&&o.clip()},t.prototype.drawImage=function(t,e,n,r){return void 0===e&&(e={}),void 0===n&&(n={}),void 0===r&&(r=!0),s(this,void 0,void 0,(function(){var i=this;return c(this,(function(o){switch(o.label){case 0:return[4,new Promise((function(o,a){return s(i,void 0,void 0,(function(){var i,a,s,f,l,h,d,p,v,g,y,m,b,w,_,x,S,O,A,P,j,I=this;return c(this,(function(c){return i=this.ctx,a=n.borderRadius,s=void 0===a?0:a,f=n.backgroundColor,l=void 0===f?"transparent":f,h=n.objectFit,d=void 0===h?"fill":h,p=n.backgroundSize,v=void 0===p?"fill":p,g=n.objectPosition,y=n.backgroundPosition,m=n.boxShadow,n.backgroundImage&&(d=v,g=y),m&&this.drawView(e,Object.assign(n,{backgroundColor:l||m&&(l||"#ffffff")}),!0,!1,!0),b=e.width,w=e.height,_=e.left,x=e.top,i.save(),S=e.contentSize.left-e.borderSize.left,O=e.contentSize.top-e.borderSize.top,r||(this.setOpacity(n),this.setTransform(e,n),this.setBackground(l,b,w,_,x),this.roundRect(_,x,b,w,s,!!(s||!m&&l),!1)),_+=S,x+=O,i.clip(),A=function(t){if("fill"!==d){var n=function(t,e,n){var r=t.objectFit,i=t.objectPosition,o=e.width/e.height,a=n.width/n.height,s=1,c="contain",u="cover";r==c&&o>=a||r==u&&o<a?s=e.height/n.height:(r==c&&o<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 M=r.fontHeight,C=r.descent,L=void 0===C?0:C,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-M)/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;et<tt.length;et++){var nt=tt[et].widths,rt=0;K="",u+=1==(Q+=1)?0:v,1==Q&&_&&(rt=_,J=c+_);for(var it=0;it<nt.length;it++){1!==Q&&_&&(J=c);var ot=nt[it],at=ot.width,st=ot.text,ct=(nt[it+1]||{}).width;if(K+=st,(rt+=at)+(void 0===ct?0:ct)+(0==Q?_:0)+(Q==P?Z:0)>s.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+rt<s.width&&(K+="…");var lt=W(K);G=lt.fix,Y=lt.lineY,U(K,J,u+G),H(J,u+Y,rt)}if(u>X+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<O.length?(A=O[k],[4,this.create(A,S)]):[3,8];case 6:(P=c.sent())&&S.add(P),c.label=7;case 7:return k++,[3,5];case 8:return[2,S]}}))}))},t.prototype.drawNode=function(t,e){return void 0===e&&(e=!1),s(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,f,l,h,d,p,v,g,y,m,b,w,_,x,S,O,k;return c(this,(function(c){switch(c.label){case 0:return n=t.layoutBox,r=t.computedStyle,i=t.attributes,o=t.name,a=t.children,s=t.fixedLine,u=t.attributes,f=u.src,l=u.text,h=r.position,d=r.backgroundImage,p=r.backgroundRepeat,["fixed"].includes(h)&&!e?[2]:(this.ctx.save(),o!==lt?[3,7]:f&&d?p?[4,this.drawPattern(i,n,r)]:[3,2]:[3,5]);case 1:return c.sent(),[3,4];case 2:return[4,this.drawImage(i,n,r,!1)];case 3:c.sent(),c.label=4;case 4:return[3,6];case 5:this.drawView(n,r),c.label=6;case 6:return[3,10];case 7:return o===ct&&f?[4,this.drawImage(i,n,r,!1)]:[3,9];case 8:return c.sent(),[3,10];case 9:o===ut?this.drawText(l,n,r,i):o===ft&&st.api&&st.api.draw(l,this,n,r),c.label=10;case 10:if(this.progress+=1,g=(v=s||{}).beforeElements,y=v.afterElements,!g)return[3,14];m=0,b=g,c.label=11;case 11:return m<b.length?(k=b[m],[4,this.drawNode(k)]):[3,14];case 12:c.sent(),c.label=13;case 13:return m++,[3,11];case 14:if(!a)return[3,18];w=Object.values?Object.values(a):Object.keys(a).map((function(t){return a[t]})),_=0,x=w,c.label=15;case 15:return _<x.length?"absolute"===(k=x[_]).computedStyle.position?[3,17]:[4,this.drawNode(k)]:[3,18];case 16:c.sent(),c.label=17;case 17:return _++,[3,15];case 18:if(!y)return[3,22];S=0,O=y,c.label=19;case 19:return S<O.length?(k=O[S],[4,this.drawNode(k)]):[3,22];case 20:c.sent(),c.label=21;case 21:return S++,[3,19];case 22:return this.ctx.restore(),[2]}}))}))},t.prototype.render=function(t){var e=this;return void 0===t&&(t=30),new Promise((function(n,r){return s(e,void 0,void 0,(function(){var e,i,o,a,s,u,f,l,h,d;return c(this,(function(c){switch(c.label){case 0:return e=+new Date,this.init(),[4,(p=t,void 0===p&&(p=0),new Promise((function(t){return setTimeout(t,p)})))];case 1:c.sent(),c.label=2;case 2:if(c.trys.push([2,14,,15]),!this.node)return[3,12];if(i=this.root.fixedLine||{},o=i.beforeElements,a=i.afterElements,!o)return[3,6];s=0,u=o,c.label=3;case 3:return s<u.length?(h=u[s],[4,this.drawNode(h,!0)]):[3,6];case 4:c.sent(),c.label=5;case 5:return s++,[3,3];case 6:return[4,this.drawNode(this.node)];case 7:if(c.sent(),!a)return[3,11];f=0,l=a,c.label=8;case 8:return f<l.length?(h=l[f],[4,this.drawNode(h,!0)]):[3,11];case 9:c.sent(),c.label=10;case 10:return f++,[3,8];case 11:return n(this.node),[3,13];case 12:this.lifecycle("onEffectFail","node is empty"),c.label=13;case 13:return[3,15];case 14:return d=c.sent(),this.lifecycle("onEffectFail",d),r(d),[3,15];case 15:return this.performance&&console.log("渲染用时:"+(+new Date-e-30)+"ms"),[2]}var p}))}))}))},t.prototype.onEffectFinished=function(){var t=this,e=Object.keys(this.imageBus).map((function(e){return t.imageBus[e]}));return Promise.all(e)},t.prototype.destroy=function(){this.node=[]},t.prototype.save=function(t){try{var e=t||{},n=e.fileType,r=void 0===n?"png":n,i=e.quality,o=void 0===i?1:i;return this.canvas.toDataURL("image/".concat(r),o)}catch(t){return this.lifecycle("onEffectFail","image cross domain"),t}},t}();e.default=e.Painter=mt,u.WEB==k&&(window.Painter=mt)}).call(this,n("df3c")["default"],n("3223")["default"])},"931d":function(t,e,n){var r=n("7647"),i=n("011a");t.exports=function(t,e,n){if(i())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var a=new(t.bind.apply(t,o));return n&&r(a,n.prototype),a},t.exports.__esModule=!0,t.exports["default"]=t.exports},"95da":function(t,e){var n=function(t,e){var n=t,r=i[e],o=null,s=0,h=null,d=new Array,p={},g=function(t,e){s=4*n+17,o=function(t){for(var e=new Array(t),n=0;n<t;n+=1){e[n]=new Array(t);for(var r=0;r<t;r+=1)e[n][r]=null}return e}(s),y(0,0),y(s-7,0),y(0,s-7),b(),m(),_(t,e),n>=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<s-8;t+=1)null==o[t][6]&&(o[t][6]=t%2==0);for(var e=8;e<s-8;e+=1)null==o[6][e]&&(o[6][e]=e%2==0)},b=function(){for(var t=a.getPatternPosition(n),e=0;e<t.length;e+=1)for(var r=0;r<t.length;r+=1){var i=t[e],s=t[r];if(null==o[i][s])for(var c=-2;c<=2;c+=1)for(var u=-2;u<=2;u+=1)o[i+c][s+u]=-2==c||2==c||-2==u||2==u||0==c&&0==u}},w=function(t){for(var e=a.getBCHTypeNumber(n),r=0;r<18;r+=1){var i=!t&&1==(e>>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<t.length&&(h=1==(t[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;o<n.length;o+=1){var s=n[o];i.put(s.getMode(),4),i.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(i)}var l=0;for(o=0;o<r.length;o+=1)l+=r[o].dataCount;if(i.getLengthInBits()>8*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<e.length;u+=1){var f=e[u].dataCount,l=e[u].totalCount-f;r=Math.max(r,f),i=Math.max(i,l),o[u]=new Array(f);for(var h=0;h<o[u].length;h+=1)o[u][h]=255&t.getBuffer()[h+n];n+=f;var d=a.getErrorCorrectPolynomial(l),p=c(o[u],d.getLength()-1),v=p.mod(d);s[u]=new Array(d.getLength()-1);for(h=0;h<s[u].length;h+=1){var g=h+v.getLength()-s[u].length;s[u][h]=g>=0?v.getAt(g):0}}var y=0;for(h=0;h<e.length;h+=1)y+=e[h].totalCount;var m=new Array(y),b=0;for(h=0;h<r;h+=1)for(u=0;u<e.length;u+=1)h<o[u].length&&(m[b]=o[u][h],b+=1);for(h=0;h<i;h+=1)for(u=0;u<e.length;u+=1)h<s[u].length&&(m[b]=s[u][h],b+=1);return m}(i,r)};return p.addData=function(t){var e=l(t);d.push(e),h=null},p.isDark=function(t,e){if(t<0||s<=t||e<0||s<=e)throw new Error(t+","+e);return o[t][e]},p.getModuleCount=function(){return s},p.make=function(){g(!1,function(){for(var t=0,e=0,n=0;n<8;n+=1){g(!0,n);var r=a.getLostPoint(p);(0==n||t>r)&&(t=r,e=n)}return e}())},p.createTableTag=function(t,e){t=t||2,e="undefined"==typeof e?4*t:e;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+e+"px;",n+='">',n+="<tbody>";for(var r=0;r<p.getModuleCount();r+=1){n+="<tr>";for(var i=0;i<p.getModuleCount();i+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+t+"px;",n+=" height: "+t+"px;",n+=" background-color: ",n+=p.isDark(r,i)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>",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<i&&r<=n&&n<i){var o=Math.floor((e-r)/t),a=Math.floor((n-r)/t);return p.isDark(a,o)?0:1}return 1}))},p};n.stringToBytes=function(t){for(var e=new Array,n=0;n<t.length;n+=1){var r=t.charCodeAt(n);e.push(255&r)}return e},n.createStringToBytes=function(t,e){var n=function(){var n=d(t),r=function(){var t=n.read();if(-1==t)throw new Error;return t},i=0,o={};while(1){var a=n.read();if(-1==a)break;var s=r(),c=r(),u=r(),f=String.fromCharCode(a<<8|s),l=c<<8|u;o[f]=l,i+=1}if(i!=e)throw new Error(i+" != "+e);return o}(),r="?".charCodeAt(0);return function(t){for(var e=new Array,i=0;i<t.length;i+=1){var o=t.charCodeAt(i);if(o<128)e.push(o);else{var a=n[t.charAt(i)];"number"==typeof a?(255&a)==a?e.push(a):(e.push(a>>>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<<n(e)-n(1335);return 21522^(t<<10|e)},e.getBCHTypeNumber=function(t){var e=t<<12;while(n(e)-n(7973)>=0)e^=7973<<n(e)-n(7973);return t<<12|e},e.getPatternPosition=function(e){return t[e-1]},e.getMaskFunction=function(t){switch(t){case o.PATTERN000:return function(t,e){return(t+e)%2==0};case o.PATTERN001:return function(t,e){return t%2==0};case o.PATTERN010:return function(t,e){return e%3==0};case o.PATTERN011:return function(t,e){return(t+e)%3==0};case o.PATTERN100:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case o.PATTERN101:return function(t,e){return t*e%2+t*e%3==0};case o.PATTERN110:return function(t,e){return(t*e%2+t*e%3)%2==0};case o.PATTERN111:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw new Error("bad maskPattern:"+t)}},e.getErrorCorrectPolynomial=function(t){for(var e=c([1],0),n=0;n<t;n+=1)e=e.multiply(c([1,s.gexp(n)],0));return e},e.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},e.getLostPoint=function(t){for(var e=t.getModuleCount(),n=0,r=0;r<e;r+=1)for(var i=0;i<e;i+=1){for(var o=0,a=t.isDark(r,i),s=-1;s<=1;s+=1)if(!(r+s<0||e<=r+s))for(var c=-1;c<=1;c+=1)i+c<0||e<=i+c||0==s&&0==c||a==t.isDark(r+s,i+c)&&(o+=1);o>5&&(n+=3+o-5)}for(r=0;r<e-1;r+=1)for(i=0;i<e-1;i+=1){var u=0;t.isDark(r,i)&&(u+=1),t.isDark(r+1,i)&&(u+=1),t.isDark(r,i+1)&&(u+=1),t.isDark(r+1,i+1)&&(u+=1),0!=u&&4!=u||(n+=3)}for(r=0;r<e;r+=1)for(i=0;i<e-6;i+=1)t.isDark(r,i)&&!t.isDark(r,i+1)&&t.isDark(r,i+2)&&t.isDark(r,i+3)&&t.isDark(r,i+4)&&!t.isDark(r,i+5)&&t.isDark(r,i+6)&&(n+=40);for(i=0;i<e;i+=1)for(r=0;r<e-6;r+=1)t.isDark(r,i)&&!t.isDark(r+1,i)&&t.isDark(r+2,i)&&t.isDark(r+3,i)&&t.isDark(r+4,i)&&!t.isDark(r+5,i)&&t.isDark(r+6,i)&&(n+=40);var f=0;for(i=0;i<e;i+=1)for(r=0;r<e;r+=1)t.isDark(r,i)&&(f+=1);var l=Math.abs(100*f/e/e-50)/5;return n+=10*l,n},e}(),s=function(){for(var t=new Array(256),e=new Array(256),n=0;n<8;n+=1)t[n]=1<<n;for(n=8;n<256;n+=1)t[n]=t[n-4]^t[n-5]^t[n-6]^t[n-8];for(n=0;n<255;n+=1)e[t[n]]=n;var r={glog:function(t){if(t<1)throw new Error("glog("+t+")");return e[t]},gexp:function(e){while(e<0)e+=255;while(e>=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<t.length&&0==t[n])n+=1;for(var r=new Array(t.length-n+e),i=0;i<t.length-n;i+=1)r[i]=t[i+n];return r}(),r={getAt:function(t){return n[t]},getLength:function(){return n.length},multiply:function(t){for(var e=new Array(r.getLength()+t.getLength()-1),n=0;n<r.getLength();n+=1)for(var i=0;i<t.getLength();i+=1)e[n+i]^=s.gexp(s.glog(r.getAt(n))+s.glog(t.getAt(i)));return c(e,0)},mod:function(t){if(r.getLength()-t.getLength()<0)return r;for(var e=s.glog(r.getAt(0))-s.glog(t.getAt(0)),n=new Array(r.getLength()),i=0;i<r.getLength();i+=1)n[i]=r.getAt(i);for(i=0;i<t.getLength();i+=1)n[i]^=s.gexp(s.glog(t.getAt(i))+e);return c(n,0).mod(t)}};return r}var u=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var n={};return n.totalCount=t,n.dataCount=e,n},n={};return n.getRSBlocks=function(n,r){var o=function(e,n){switch(n){case i.L:return t[4*(e-1)+0];case i.M:return t[4*(e-1)+1];case i.Q:return t[4*(e-1)+2];case i.H:return t[4*(e-1)+3];default:return}}(n,r);if("undefined"==typeof o)throw new Error("bad rs block @ typeNumber:"+n+"/errorCorrectLevel:"+r);for(var a=o.length/3,s=new Array,c=0;c<a;c+=1)for(var u=o[3*c+0],f=o[3*c+1],l=o[3*c+2],h=0;h<u;h+=1)s.push(e(f,l));return s},n}(),f=function(){var t=new Array,e=0,n={getBuffer:function(){return t},getAt:function(e){var n=Math.floor(e/8);return 1==(t[n]>>>7-e%8&1)},put:function(t,e){for(var r=0;r<e;r+=1)n.putBit(1==(t>>>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;a<s;a++){var c=[],u=n.charCodeAt(a);u>65536?(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<f.length;e+=1)t.put(f[e],8)},o},h=function(){var t=new Array,e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,n,r){n=n||0,r=r||t.length;for(var i=0;i<r;i+=1)e.writeByte(t[i+n])},writeString:function(t){for(var n=0;n<t.length;n+=1)e.writeByte(t.charCodeAt(n))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var n=0;n<t.length;n+=1)n>0&&(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<<t,n=1+(1<<t),r=t+1,o=s(),a=0;a<e;a+=1)o.add(String.fromCharCode(a));o.add(String.fromCharCode(e)),o.add(String.fromCharCode(n));var c=h(),u=function(t){var e=t,n=0,r=0,i={write:function(t,i){if(t>>>i!=0)throw new Error("length over");while(n+i>=8)e.writeByte(255&(t<<n|r)),i-=8-n,t>>>=8-n,r=0,n=0;r|=t<<n,n+=i},flush:function(){n>0&&e.writeByte(r)}};return i}(c);u.write(e,r);var f=0,l=String.fromCharCode(i[f]);f+=1;while(f<i.length){var d=String.fromCharCode(i[f]);f+=1,o.contains(l+d)?l+=d:(u.write(o.indexOf(l),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(l+d)),l=d)}return u.write(o.indexOf(l),r),u.write(n,r),u.flush(),c.toByteArray()},s=function(){var t={},e=0,n={add:function(r){if(n.contains(r))throw new Error("dup key:"+r);t[r]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return"undefined"!=typeof t[e]}};return n};return o},v=function(t,e,n,r){for(var i=p(t,e),o=0;o<e;o+=1)for(var a=0;a<t;a+=1)i.setPixel(a,o,n(a,o));var s=h();i.write(s);for(var c=function(){var t=0,e=0,n=0,r="",i={},o=function(t){r+=String.fromCharCode(a(63&t))},a=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw new Error("n:"+t)};return i.writeByte=function(r){t=t<<8|255&r,e+=8,n+=1;while(e>=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<i;a+=1)r+="="},i.toString=function(){return r},i}(),u=s.toByteArray(),f=0;f<u.length;f+=1)c.writeByte(u[f]);c.flush();var l="";return l+="data:image/gif;base64,",l+=c,l};t.exports={create:function t(e,r){r=r||{};var i,o=r.typeNumber||4,a=r.errorCorrectLevel||"M",s=r.size||500;try{i=n(o,a||"M"),i.addData(e),i.make()}catch(f){if(o>=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(M([])));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 M(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<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(r(t)+" is not iterable")}return w.prototype=_,s(k,"constructor",{value:_,configurable:!0}),s(_,"constructor",{value:w,configurable:!0}),w.displayName=h(_,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},n.awrap=function(t){return{__await:t}},A(P.prototype),h(P.prototype,f,(function(){return this})),n.AsyncIterator=P,n.async=function(t,e,r,i,o){void 0===o&&(o=Promise);var a=new P(d(t,e,r,i),o);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(k),h(k,l,"Generator"),h(k,u,(function(){return this})),h(k,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=M,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;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<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=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:M(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<t.length){var u=t[s++];if(u===r){c&&a.push({type:"text",value:c}),c="";var f="";u=t[s++];while(void 0!==u&&u!==i)f+=u,u=t[s++];var l=u===i,p=h.test(f)?"list":l&&d.test(f)?"named":"unknown";a.push({value:f,type:p})}else c+=u}return c&&a.push({type:"text",value:c}),a}function v(t,e){var n=[],r=0,i=Array.isArray(e)?"list":u(e)?"named":"unknown";if("unknown"===i)return n;while(r<t.length){var o=t[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(e[o.value]);break;case"unknown":0;break}r++}return n}e.LOCALE_ZH_HANS="zh-Hans";e.LOCALE_ZH_HANT="zh-Hant";e.LOCALE_EN="en";e.LOCALE_FR="fr";e.LOCALE_ES="es";var g=Object.prototype.hasOwnProperty,y=function(t,e){return g.call(t,e)},m=new l;function b(t,e){if(t){if(t=t.trim().replace(/_/g,"-"),e&&e[t])return t;if(t=t.toLowerCase(),"chinese"===t)return"zh-Hans";if(0===t.indexOf("zh"))return t.indexOf("-hans")>-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<t.length;n++)if(e(t,n))return!0}else if(u(t))for(var r in t)if(e(t,r))return!0;return!1}e.isString=O}).call(this,n("df3c")["default"],n("0ee4"))},d551:function(t,e,n){var r=n("3b2d")["default"],i=n("e6db");t.exports=function(t){var e=i(t,"string");return"symbol"==r(e)?e:e+""},t.exports.__esModule=!0,t.exports["default"]=t.exports},dc28:function(t,e,n){"use strict";(function(t,r){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.base64ToPath=w,e.canIUseCanvas2d=function(){return function(t){return m(p,t)>=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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e.networkReg=/^(http|\/\/)/;var l=function(t){return/^data:image\/(\w+);base64/.test(t)};e.isBase64=l;var h=t.getSystemInfoSync(),d=h.platform,p=h.SDKVersion,v=/windows|mac/.test(d);e.isPC=v;var g={};function y(t){return/^-?\d+(\.\d+)?$/.test(t)}function m(t,e){t=t.split("."),e=e.split(".");var n=Math.max(t.length,e.length);while(t.length<n)t.push("0");while(e.length<n)e.push("0");for(var r=0;r<n;r++){var i=parseInt(t[r],10),o=parseInt(e[r],10);if(i>o)return 1;if(i<o)return-1}return 0}var b=function(){return r};function w(e){var n=/^data:image\/(\w+);base64,/.exec(e)||[],r=(0,c.default)(n,2),i=r[1];return new Promise((function(n,r){var o=t.getFileSystemManager();i||r(new Error("ERROR_BASE64SRC_PARSE"));var a=(new Date).getTime(),s=b(),c="".concat(s.env.USER_DATA_PATH,"/").concat(a,".").concat(i);o.writeFile({filePath:c,data:e.split(",")[1],encoding:"base64",success:function(){n(c)},fail:function(t){console.error(t),r(t)}})}))}e.prefix=b}).call(this,n("df3c")["default"],n("3223")["default"])},dd3e:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},df3c:function(t,e,n){"use strict";(function(t,r){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.createApp=Ce,e.createComponent=Ue,e.createPage=He,e.createPlugin=qe,e.createSubpackageApp=Ve,e.default=void 0;var o,a=i(n("34cf")),s=i(n("7ca3")),c=i(n("931d")),u=i(n("af34")),f=i(n("3b2d")),l=n("d3b4"),h=i(n("3240"));function d(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 p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function y(){var e,n=t.getStorageSync("uni_id_token")||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse(function(t){return decodeURIComponent(o(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(r[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}o="function"!==typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!g.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o<t.length;)e=v.indexOf(t.charAt(o++))<<18|v.indexOf(t.charAt(o++))<<12|(n=v.indexOf(t.charAt(o++)))<<6|(r=v.indexOf(t.charAt(o++))),i+=64===n?String.fromCharCode(e>>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;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}(t[n],e[n]))}))}function M(t,e){t&&e&&Object.keys(e).forEach((function(n){-1!==$.indexOf(n)&&w(e[n])&&function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}(t[n],e[n])}))}function C(t,e){return function(n){return t(n,e)||n}}function L(t){return!!t&&("object"===(0,f.default)(t)||"function"===typeof t)&&"function"===typeof t.then}function B(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];if(r)r=Promise.resolve(C(o,n));else{var a=o(e,n);if(L(a)&&(r=Promise.resolve(a)),!1===a)return{then:function(){}}}}return r||{then:function(t){return t(e)}}}function D(t){var e=arguments.length>1&&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;o<r;o++)i[o-3]=arguments[o];var a=R(t);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=B(a.invoke,n);return s.then((function(n){return e.apply(void 0,[D(R(t),n)].concat(i))}))}return e.apply(void 0,[D(a,n)].concat(i))}return e.apply(void 0,[n].concat(i))}var F={returnValue:function(t){return L(t)?new Promise((function(e,n){t.then((function(t){t?t[0]?n(t[0]):e(t[1]):e(t)}))})):t}},W=/^\$|__f__|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|rpx2px|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS|getFacialRecognitionMetaInfo/,H=/^create|Manager$/,U=["createBLEConnection"],V=["createBLEConnection","createPushMessage"],q=/^on|^off/;function G(t){return H.test(t)&&-1===U.indexOf(t)}function Y(t){return W.test(t)&&-1===V.indexOf(t)}function X(t){return t.then((function(t){return[null,t]})).catch((function(t){return[t]}))}function J(t){return!(G(t)||Y(t)||function(t){return q.test(t)&&"onPush"!==t}(t))}function K(t,e){return J(t)&&w(e)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return w(n.success)||w(n.fail)||w(n.complete)?z(t,N.apply(void 0,[t,e,Object.assign({},n)].concat(i))):z(t,X(new Promise((function(r,o){N.apply(void 0,[t,e,Object.assign({},n,{success:r,fail:o})].concat(i))}))))}:e}Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))});var Q=!1,Z=0,tt=0;function et(e,n){if(0===Z&&function(){var e,n,r,i="function"===typeof t.getWindowInfo&&t.getWindowInfo()?t.getWindowInfo():t.getSystemInfoSync(),o="function"===typeof t.getDeviceInfo&&t.getDeviceInfo()?t.getDeviceInfo():t.getSystemInfoSync();e=i.windowWidth,n=i.pixelRatio,r=o.platform,Z=e,tt=n,Q="ios"===r}(),e=Number(e),0===e)return 0;var r=e/750*(n||Z);return r<0&&(r=-r),r=Math.floor(r+1e-4),0===r&&(r=1!==tt&&Q?.5:1),e<0?-r:r}var nt,rt={};function it(){var e,n="function"===typeof t.getAppBaseInfo&&t.getAppBaseInfo()?t.getAppBaseInfo():t.getSystemInfoSync(),r=n&&n.language?n.language:"en";return e=st(r)||"en",e}nt=it(),function(){if(function(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}()){var t=Object.keys(__uniConfig.locales);t.length&&t.forEach((function(t){var e=rt[t],n=__uniConfig.locales[t];e?Object.assign(e,n):rt[t]=n}))}}();var ot=(0,l.initVueI18n)(nt,{}),at=ot.t;ot.mixin={beforeCreate:function(){var t=this,e=ot.i18n.watchLocale((function(){t.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){e()}))},methods:{$$t:function(t,e){return at(t,e)}}},ot.setLocale,ot.getLocale;function st(t,e){if(t){if(t=t.trim().replace(/_/g,"-"),e&&e[t])return t;if(t=t.toLowerCase(),"chinese"===t)return"zh-Hans";if(0===t.indexOf("zh"))return t.indexOf("-hans")>-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)?M(T[t],e):delete T[t]:x(t)&&M(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!(r<e)||t!==n[e]}))):t.current=n[0],{indicator:!1,loop:!1}}}}};function vt(e){ht=ht||t.getStorageSync("__DC_STAT_UUID"),ht||(ht=Date.now()+""+Math.floor(1e7*Math.random()),t.setStorage({key:"__DC_STAT_UUID",data:ht})),e.deviceId=ht}function gt(t){if(t.safeArea){var e=t.safeArea;t.safeAreaInsets={top:e.top,left:e.left,right:t.windowWidth-e.right,bottom:t.screenHeight-e.bottom}}}function yt(t,e){var n="",r="";switch(n=t.split(" ")[0]||e,r=t.split(" ")[1]||"",n=n.toLocaleLowerCase(),n){case"harmony":case"ohos":case"openharmony":n="harmonyos";break;case"iphone os":n="ios";break;case"mac":case"darwin":n="macos";break;case"windows_nt":n="windows";break}return{osName:n,osVersion:r}}function mt(t,e){for(var n=t.deviceType||"phone",r={ipad:"pad",windows:"pc",mac:"pc"},i=Object.keys(r),o=e.toLocaleLowerCase(),a=0;a<i.length;a++){var s=i[a];if(-1!==o.indexOf(s)){n=r[s];break}}return n}function bt(t){var e=t;return e&&(e=t.toLocaleLowerCase()),e}function wt(t){return ct?ct():t}function _t(t){var e=t.hostName||"WeChat";return t.environment?e=t.environment:t.host&&t.host.env&&(e=t.host.env),e}var xt={returnValue:function(t){vt(t),gt(t),function(t){var e=t.brand,n=void 0===e?"":e,r=t.model,i=void 0===r?"":r,o=t.system,a=void 0===o?"":o,s=t.language,c=void 0===s?"":s,u=t.theme,f=t.version,l=t.platform,h=t.fontSizeSetting,d=t.SDKVersion,p=t.pixelRatio,v=t.deviceOrientation,g=yt(a,l),y=g.osName,m=g.osVersion,b=f,w=mt(t,i),_=bt(n),x=_t(t),S=v,O=p,k=d,A=(c||"").replace(/_/g,"-"),P={appId:"__UNI__C0ABCC1",appName:"chargingPile",appVersion:"1.0.0",appVersionCode:"100",appLanguage:wt(A),uniCompileVersion:"4.85",uniCompilerVersion:"4.85",uniRuntimeVersion:"4.85",uniPlatform:"mp-weixin",deviceBrand:_,deviceModel:i,deviceType:w,devicePixelRatio:O,deviceOrientation:S,osName:y.toLocaleLowerCase(),osVersion:m,hostTheme:u,hostVersion:b,hostLanguage:A,hostName:x,hostSDKVersion:k,hostFontSizeSetting:h,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0,isUniAppX:!1};Object.assign(t,P,{})}(t)}},St={args:function(t){"object"===(0,f.default)(t)&&(t.alertText=t.title)}},Ot={returnValue:function(t){var e=t,n=e.version,r=e.language,i=e.SDKVersion,o=e.theme,a=_t(t),s=(r||"").replace("_","-");t=j(Object.assign(t,{appId:"__UNI__C0ABCC1",appName:"chargingPile",appVersion:"1.0.0",appVersionCode:"100",appLanguage:wt(s),hostVersion:n,hostLanguage:s,hostName:a,hostSDKVersion:i,hostTheme:o,isUniAppX:!1,uniPlatform:"mp-weixin",uniCompileVersion:"4.85",uniCompilerVersion:"4.85",uniRuntimeVersion:"4.85"}))}},kt={returnValue:function(t){var e=t,n=e.brand,r=e.model,i=e.system,o=void 0===i?"":i,a=e.platform,s=void 0===a?"":a,c=mt(t,r),u=bt(n);vt(t);var f=yt(o,s),l=f.osName,h=f.osVersion;t=j(Object.assign(t,{deviceType:c,deviceBrand:u,deviceModel:r,osName:l,osVersion:h}))}},At={returnValue:function(t){gt(t),t=j(Object.assign(t,{windowTop:0,windowBottom:0}))}},Pt={redirectTo:dt,previewImage:pt,getSystemInfo:xt,getSystemInfoSync:xt,showActionSheet:St,getAppBaseInfo:Ot,getDeviceInfo:kt,getWindowInfo:At,getAppAuthorizeSetting:{returnValue:function(t){var e=t.locationReducedAccuracy;t.locationAccuracy="unsupported",!0===e?t.locationAccuracy="reduced":!1===e&&(t.locationAccuracy="full")}},compressImage:{args:function(t){t.compressedHeight&&!t.compressHeight&&(t.compressHeight=t.compressedHeight),t.compressedWidth&&!t.compressWidth&&(t.compressWidth=t.compressedWidth)}}},jt=["success","fail","cancel","complete"];function $t(t,e,n){return function(r){return e(Tt(t,r,n))}}function Et(t,e){var n=arguments.length>2&&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 Mt=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(t){Mt[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 Ct={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;Ct[e]?(o={errMsg:"getProvider:ok",service:e,provider:Ct[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;n<qt.length;n++){var r=qt[n];if(r(e),e.stopped)break}else"click"===t.type&&qt.forEach((function(e){e({type:"click",data:Ht(t.message)})}))},__f__:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console[t].apply(console,n)}}),Kt=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Qt(t){return Behavior(t)}function Zt(){return!!this.route}function te(t){this.triggerEvent("__l",t)}function ee(t){var e=t.$scope,n={};Object.defineProperty(t,"$refs",{get:function(){var t={};(function t(e,n,r){var i=e.selectAllComponents(n)||[];i.forEach((function(e){var i=e.dataset.ref;r[i]=e.$vm||ie(e),"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){t(e,n,r)}))}))})(e,".vue-ref",t);var r=e.selectAllComponents(".vue-ref-in-for")||[];return r.forEach((function(e){var n=e.dataset.ref;t[n]||(t[n]=[]),t[n].push(e.$vm||ie(e))})),function(t,e){var n=(0,c.default)(Set,(0,u.default)(Object.keys(t))),r=Object.keys(e);return r.forEach((function(r){var i=t[r],o=e[r];Array.isArray(i)&&Array.isArray(o)&&i.length===o.length&&o.every((function(t){return i.includes(t)}))||(t[r]=o,n.delete(r))})),n.forEach((function(e){delete t[e]})),t}(n,t)}})}function ne(t){var e,n=t.detail||t.value,r=n.vuePid,i=n.vueOptions;r&&(e=function t(e,n){for(var r,i=e.$children,o=i.length-1;o>=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;i<n;i++)r[i-1]=arguments[i];if(this.$vm||this.dataset&&this.dataset.comType)t=ue(t);else{var o=ue(t);o!==t&&e.apply(this,[o].concat(r))}return e.apply(this,[t].concat(r))};try{t.triggerEvent=n}catch(r){t._triggerEvent=n}}function le(t,e,n){var r=e[t];e[t]=function(){if(re(this),fe(this),r){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.apply(this,e)}}}ae.__$wrappered||(ae.__$wrappered=!0,Page=function(){var t=arguments.length>0&&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;n<t.length;n++){var r=t[n];e[r[0]]=r[1]}return e}function Pe(t,e){var n=arguments.length>2&&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 Me(t){return Ie(t,{mocks:Kt,initRefs:ee})}function Ce(t){return App(Me(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=Me(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;r<t;r++)n[r]=arguments[r];e.__call_hook("onShow",n)})),w(n.onHide)&&t.onAppHide&&t.onAppHide((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onHide",n)})),w(n.onLaunch)){var o=t.getLaunchOptionsSync&&t.getLaunchOptionsSync();e.__call_hook("onLaunch",o)}return e}function qe(e){var n=Me(e);if(w(n.onShow)&&t.onAppShow&&t.onAppShow((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onShow",n)})),w(n.onHide)&&t.onAppHide&&t.onAppHide((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onHide",n)})),w(n.onLaunch)){var r=t.getLaunchOptionsSync&&t.getLaunchOptionsSync();e.__call_hook("onLaunch",r)}return e}Fe.push.apply(Fe,["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"]),["vibrate","preloadPage","unPreloadPage","loadSubPackage"].forEach((function(t){Pt[t]=!1})),[].forEach((function(e){var n=Pt[e]&&Pt[e].name?Pt[e].name:e;t.canIUse(n)||(Pt[e]=!1)}));var Ge={};"undefined"!==typeof Proxy?Ge=new Proxy({},{get:function(e,n){return S(e,n)?e[n]:lt[n]?lt[n]:Jt[n]?K(n,Jt[n]):Lt[n]?K(n,Lt[n]):Mt[n]?K(n,Mt[n]):Ft[n]?Ft[n]:K(n,It(n,t[n]))},set:function(t,e,n){return t[e]=n,!0}}):(Object.keys(lt).forEach((function(t){Ge[t]=lt[t]})),Object.keys(Mt).forEach((function(t){Ge[t]=K(t,Mt[t])})),Object.keys(Lt).forEach((function(t){Ge[t]=K(t,Lt[t])})),Object.keys(Ft).forEach((function(t){Ge[t]=Ft[t]})),Object.keys(Jt).forEach((function(t){Ge[t]=K(t,Jt[t])})),Object.keys(t).forEach((function(e){(S(t,e)||S(Pt,e))&&(Ge[e]=K(e,It(e,t[e])))}))),t.createApp=Ce,t.createPage=He,t.createComponent=Ue,t.createSubpackageApp=Ve,t.createPlugin=qe;var Ye=Ge,Xe=Ye;e.default=Xe}).call(this,n("3223")["default"],n("0ee4"))},e6db:function(t,e,n){var r=n("3b2d")["default"];t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},e7f8:function(t,e,n){"use strict";var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.children=function(t){var e=arguments.length>1&&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/site/site",style:{navigationBarTitleText:"站点详情"}},{path:"pages/site-more/site-more",style:{navigationBarTitleText:"电站价格"}},{path:"pages/charging/charging",style:{navigationBarTitleText:"正在充电"}},{path:"pages/order-detail/order-detail",style:{navigationBarTitleText:"订单详情"}},{path:"pages/terminal/terminal",style:{navigationBarTitleText:"充电终端"}},{path:"pages/coupon-buy/coupon-buy",style:{navigationBarTitleText:"购券中心"}},{path:"pages/login/login",style:{navigationBarTitleText:"用户登录"}},{path:"pages/recharge-log/recharge-log",style:{navigationBarTitleText:"购券记录"}},{path:"pages/feedback/feedback",style:{navigationBarTitleText:""}},{path:"pages/order/order",style:{navigationBarTitleText:"充电订单"}},{path:"pages/search/search",style:{navigationBarTitleText:"站点搜索"}},{path:"pages/coupons/coupons",style:{navigationBarTitleText:"优惠券"}},{path:"pages/web/web",style:{navigationBarTitleText:"",navigationStyle:"default",navigationBarBackgroundColor:"#fff",backgroundColor:"#fff"}},{path:"pages/feedback-reply/feedback-reply",style:{navigationBarTitleText:"反馈答复"}},{path:"pages/banner-page/banner-page",style:{navigationBarTitleText:"活动详情"}},{path:"pages/new-site/new-site",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(n){return e.switchTab({url:t,success:a})},a=function(){return r()};return!1===n?e.redirectTo({url:t,fail:o}):null===n?e.reLaunch({url:t,fail:o}):void(getCurrentPages().length<10?e.navigateTo({url:t,fail:o,success:a}):e.redirectTo({url:t,fail:o,success:a}))}))}},{key:"back",value:function(t){var n=getCurrentPages(),r=n.length-1-(t||1);if(r>=0&&r<n.length){var i=n[r];e.navigateBack({delta:t||1,success:function(){setTimeout((function(){i.onLoad&&i.onLoad(i.options),i.onShow&&i.onShow()}),100)}})}else e.navigateBack({delta:t||1})}},{key:"refresh",value:function(){var t=getCurrentPages(),e=t[t.length-1],n=e.$page.fullPath;a.urlGoto(n,!1)}},{key:"open",value:function(t,n){var r=getCurrentPages(),i=r[r.length-1].$page.fullPath;e.navigateTo({url:t,success:function(t){t.eventChannel.emit("OPEN-DATA[".concat(i,"]"),n)}})}},{key:"load",value:function(t){return new Promise((function(e,n){var r,i;if(void 0==t)return console.error("app.url.load(this);");var o=getCurrentPages(),a=null===(r=o[o.length-2])||void 0===r||null===(i=r.$page)||void 0===i?void 0:i.fullPath,s=null===t||void 0===t?void 0:t.getOpenerEventChannel,c=s&&s.call(t);c&&c.on&&c.on("OPEN-DATA[".concat(a,"]"),(function(t){return e(t)}))}))}},{key:"applet",value:function(t,n,r){return new Promise((function(i,o){e.navigateToMiniProgram({appId:t,path:n,extraData:r||{},success:function(t){return i(t)}})}))}}]),t}(),a.storage=function(){"use strict";function t(){i(this,t)}return o(t,null,[{key:"set",value:function(t,n){try{e.setStorageSync(t,n)}catch(r){console.error("app.setStorageSync error: ",r)}}},{key:"get",value:function(t){return e.getStorageSync(t)}},{key:"remove",value:function(t){e.removeStorageSync(t)}},{key:"clear",value:function(){e.clearStorageSync()}}]),t}(),a.math=function(){"use strict";function t(){i(this,t)}return o(t,null,[{key:"add",value:function(t,e){var n,r,i;try{n=t.toString().split(".")[1].length}catch(o){n=0}try{r=e.toString().split(".")[1].length}catch(o){r=0}return i=Math.pow(10,Math.max(n,r)),(t*i+e*i)/i}},{key:"sub",value:function(t,e){var n,r,i,o;try{n=t.toString().split(".")[1].length}catch(a){n=0}try{r=e.toString().split(".")[1].length}catch(a){r=0}return i=Math.pow(10,Math.max(n,r)),o=(n=r)?n:r,((t*i-e*i)/i).toFixed(o)}},{key:"mul",value:function(t,e){var n=0,r=t.toString(),i=e.toString();try{n+=r.split(".")[1].length}catch(o){}try{n+=i.split(".")[1].length}catch(o){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)}},{key:"div",value:function(t,e){var n,r,i=0,o=0;try{i=t.toString().split(".")[1].length}catch(a){}try{o=e.toString().split(".")[1].length}catch(a){}return n=Number(t.toString().replace(".","")),r=Number(e.toString().replace(".","")),n/r*Math.pow(10,o-i)}}]),t}(),a.date=function(){"use strict";function t(){i(this,t)}return o(t,null,[{key:"format",value:function(t,e){t||(t="yyyy-MM-dd hh:mm:sss"),"string"===typeof e&&(e=new Date(e.replaceAll("-","/"))),e||(e=new Date);var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return t}}]),t}(),a.popup=function(){"use strict";function t(){i(this,t)}return o(t,null,[{key:"confirm",value:function(t,n,r){return new Promise((function(i,o){n||null!=n||(n="温馨提示"),r=Object.assign({title:n,content:t,confirmColor:"#007AFF",success:function(t){return i(1==t.confirm)},fail:function(t){return o(t)}},r),e.showModal(r)}))}},{key:"alert",value:function(e,n){return t.confirm(e,n||null,{showCancel:!1})}},{key:"toast",value:function(t,n){e.showToast(Object.assign({title:t,position:"bottom",duration:2e3,icon:"none"},n))}},{key:"loading",value:function(n,r){if(n){e.showLoading(Object.assign({title:"载入中",mask:!0},r));var i=(null===r||void 0===r?void 0:r.timeout)||45e3;setTimeout((function(){return t.loading(!1)}),i)}else e.hideLoading()}},{key:"sheet",value:function(t,n,r){return new Promise((function(i,o){e.showActionSheet(Object.assign({title:"",itemList:t.map((function(t){return n&&t[n]||String(t)})),success:function(e){return i({index:e.tapIndex,data:t[e.tapIndex]})}},r))}))}}]),t}(),a.map=function(){"use strict";function t(){i(this,t)}return o(t,null,[{key:"get",value:function(t,n){return new Promise((function(r,i){var o=Object.assign({success:function(t){console.log(t)},fail:function(t){console.log(t)}},n);t?e.getLocation(o):e.getFuzzyLocation(o)}))}}]),t}(),a.act=function(){"use strict";function t(){i(this,t)}return o(t,null,[{key:"callPhone",value:function(t){e.makePhoneCall({phoneNumber:t})}},{key:"scan",value:function(t){return new Promise((function(n,r){e.scanCode(Object.assign({},{success:function(t){return n(t)}},t))}))}},{key:"selectorQuery",value:function(t,n,r){return new Promise((function(i,o){var a=e.createSelectorQuery().in(t)[r?"selectAll":"select"](n);a.boundingClientRect((function(t){t&&i(t)})).exec()}))}},{key:"copy",value:function(t){return new Promise((function(t,n){e.setClipboardData({data:"hello",success:t(),fail:function(t){return n(t)}})}))}},{key:"customerService",value:function(t,e){return new Promise((function(n,i){r.openCustomerServiceChat({extInfo:{url:e},corpId:t,success:function(t){return n(t)},fail:function(t){return i(t)}})}))}}]),t}(),t.exports=a}).call(this,n("df3c")["default"],n("3223")["default"])}}]);
|