12345678910111213141516171819 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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(e){return(!c||1154!==c.scene||!i.includes(e))&&(r.indexOf(e)>-1||"function"===typeof s[e])}function l(){var e={};for(var t in s)u(t)&&(e[t]=s[t]);return e}o[a]=l();var f=o[a];t.default=f},10:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},1011:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({color:{type:String,default:""},fontSize:{type:[String,Number],default:14},underLine:{type:Boolean,default:!1},href:{type:String,default:""},mpTips:{type:String,default:"链接已复制,请在浏览器打开"},lineColor:{type:String,default:""},text:{type:String,default:""}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.link)};t.default=u}).call(this,n(2)["default"])},105:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getImgCode=o,t.getUserInfo=s,t.login=i,t.sendPhoneCode=a;var r=n(45);function i(e){return(0,r.request)({url:"/manager/login",method:"post",data:e})}function o(){return(0,r.request)({url:"/manager/pCode",method:"get"})}function a(e,t){return(0,r.request)({url:"/manager/send/".concat(e,"/").concat(t),method:"get"})}function s(e){return(0,r.request)({url:"/manager/userContext",method:"get"})}},106:function(e,t,n){"use strict";function r(e){return/^(https?:|mailto:|tel:)/.test(e)}function i(e){var t=["admin","editor"];return t.indexOf(e.trim())>=0}function o(e){var t=/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/;return t.test(e)}function a(e){var t=/^[a-z]+$/;return t.test(e)}function s(e){var t=/^[A-Z]+$/;return t.test(e)}function c(e){var t=/^[A-Za-z]+$/;return t.test(e)}function u(e){var t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(e)}function l(e){return"string"===typeof e||e instanceof String}function f(e){return"undefined"===typeof Array.isArray?"[object Array]"===Object.prototype.toString.call(e):Array.isArray(e)}function d(e){var t=/^1[1-9]\d{9}$/;return t.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=f,t.isExternal=r,t.isString=l,t.isTel=d,t.validAlphabets=c,t.validEmail=u,t.validLowerCase=a,t.validURL=o,t.validUpperCase=s,t.validUsername=i},11:function(e,t,n){var r=n(12);function i(e,t,n){return t=r(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},12:function(e,t,n){var r=n(13)["default"],i=n(14);function o(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},13:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},14:function(e,t,n){var r=n(13)["default"];function i(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},15:function(e,t,n){var r=n(16),i=n(17);function o(e,t,n){if(i())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var a=new(e.bind.apply(e,o));return n&&r(a,n.prototype),a}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},16:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},161:function(e,t,n){var r=n(162)();e.exports=r},162:function(e,t,n){var r=n(13)["default"];function i(){"use strict";
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof S?t:S,o=Object.create(i.prototype),a=new k(r||[]);return s(o,"_invoke",{value:O(e,n,a)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var y="suspendedStart",g="suspendedYield",v="executing",m="completed",b={};function S(){}function x(){}function _(){}var C={};d(C,u,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(Z([])));P&&P!==o&&a.call(P,u)&&(C=P);var L=_.prototype=S.prototype=Object.create(C);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(i,o,s,c){var u=h(e[i],e,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;s(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function O(e,n,r){var i=y;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=Y(s,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===y)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:g,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function Y(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,Y(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Z(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(a.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(r(e)+" is not iterable")}return x.prototype=_,s(L,"constructor",{value:_,configurable:!0}),s(_,"constructor",{value:x,configurable:!0}),x.displayName=d(_,f,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,f,"GeneratorFunction")),e.prototype=Object.create(L),e},n.awrap=function(e){return{__await:e}},T(A.prototype),d(A.prototype,l,(function(){return this})),n.AsyncIterator=A,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new A(p(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(L),d(L,f,"Generator"),d(L,u,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=Z,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!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(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:Z(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},163:function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,c,"next",e)}function c(e){n(a,i,o,s,c,"throw",e)}s(void 0)}))}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},17:function(e,t){function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=n=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},18:function(e,t,n){var r=n(19),i=n(20),o=n(8),a=n(21);function s(e){return r(e)||i(e)||o(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},19:function(e,t,n){var r=n(9);function i(e){if(Array.isArray(e))return r(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContractDetailById=a,t.getContractList=o,t.getContractListByPage=i,t.getPaymentListByPage=u,t.insertDocumentData=s,t.insertPaymentInvoice=f,t.insertPaymentRecord=l,t.putPaymentStatus=d,t.uploadImageBase64=c;var r=n(45);function i(e){return(0,r.request)({url:"/api/contract/".concat(e.currPage,"/").concat(e.pageSize),method:"post",data:e})}function o(e){return(0,r.request)({url:"/api/contract/list",method:"post",data:e})}function a(e){return(0,r.request)({url:"/api/contract/".concat(e),method:"get"})}function s(e){return(0,r.request)({url:"/file/elementdata/",method:"post",data:e})}function c(e){return(0,r.request)({url:"/file/filenode/base64",method:"post",data:{base64:e}})}function u(e){return(0,r.request)({url:"/api/payment/".concat(e.currPage,"/").concat(e.pageSize),method:"post",data:e})}function l(e){return(0,r.request)({url:"/api/payment/record",method:"post",data:e})}function f(e){return(0,r.request)({url:"/api/payment/invoice",method:"post",data:e})}function d(e,t){return(0,r.request)({url:"/api/payment/updateStatus/".concat(e,"/").concat(t),method:"put"})}},2:function(e,t,n){"use strict";(function(e,r){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Nn,t.createComponent=Kn,t.createPage=Un,t.createPlugin=zn,t.createSubpackageApp=$n,t.default=void 0;var o,a=i(n(5)),s=i(n(11)),c=i(n(15)),u=i(n(18)),l=i(n(13)),f=n(22),d=i(n(25));function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function v(e){return decodeURIComponent(o(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function m(){var t,n=e.getStorageSync("uni_id_token")||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(v(r[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}function b(e){e.prototype.uniIDHasRole=function(e){var t=m(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=m(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=m(),t=e.tokenExpired;return t>Date.now()}}o="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!g.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",o=0;o<e.length;)t=y.indexOf(e.charAt(o++))<<18|y.indexOf(e.charAt(o++))<<12|(n=y.indexOf(e.charAt(o++)))<<6|(r=y.indexOf(e.charAt(o++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var S=Object.prototype.toString,x=Object.prototype.hasOwnProperty;function _(e){return"function"===typeof e}function C(e){return"string"===typeof e}function w(e){return null!==e&&"object"===(0,l.default)(e)}function P(e){return"[object Object]"===S.call(e)}function L(e,t){return x.call(e,t)}function T(){}function A(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var O=/-(\w)/g,Y=A((function(e){return e.replace(O,(function(e,t){return t?t.toUpperCase():""}))}));function D(e){var t={};return P(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}var M=["invoke","success","fail","complete","returnValue"],k={},Z={};function E(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?R(n):n}function R(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function N(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function I(e,t){Object.keys(t).forEach((function(n){-1!==M.indexOf(n)&&_(t[n])&&(e[n]=E(e[n],t[n]))}))}function X(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==M.indexOf(n)&&_(t[n])&&N(e[n],t[n])}))}function J(e,t){"string"===typeof e&&P(t)?I(Z[e]||(Z[e]={}),t):P(e)&&I(k,e)}function F(e,t){"string"===typeof e?P(t)?X(Z[e],t):delete Z[e]:P(e)&&X(k,e)}function B(e,t){return function(n){return e(n,t)||n}}function H(e){return!!e&&("object"===(0,l.default)(e)||"function"===typeof e)&&"function"===typeof e.then}function j(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];if(r)r=Promise.resolve(B(o,n));else{var a=o(t,n);if(H(a)&&(r=Promise.resolve(a)),!1===a)return{then:function(){}}}}return r||{then:function(e){return e(t)}}}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var r=t[n];t[n]=function(i){j(e[n],i,t).then((function(e){return _(r)&&r(e)||e}))}}})),t}function Q(e,t){var n=[];Array.isArray(k.returnValue)&&n.push.apply(n,(0,u.default)(k.returnValue));var r=Z[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,u.default)(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function W(e){var t=Object.create(null);Object.keys(k).forEach((function(e){"returnValue"!==e&&(t[e]=k[e].slice())}));var n=Z[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function U(e,t,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=W(e);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=j(a.invoke,n);return s.then((function(n){return t.apply(void 0,[G(W(e),n)].concat(i))}))}return t.apply(void 0,[G(a,n)].concat(i))}return t.apply(void 0,[n].concat(i))}var K={returnValue:function(e){return H(e)?new Promise((function(t,n){e.then((function(e){e?e[0]?n(e[0]):t(e[1]):t(e)}))})):e}},$=/^\$|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/,z=/^create|Manager$/,q=["createBLEConnection"],V=["createBLEConnection","createPushMessage"],ee=/^on|^off/;function te(e){return z.test(e)&&-1===q.indexOf(e)}function ne(e){return $.test(e)&&-1===V.indexOf(e)}function re(e){return ee.test(e)&&"onPush"!==e}function ie(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function oe(e){return!(te(e)||ne(e)||re(e))}function ae(e,t){return oe(e)&&_(t)?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 _(n.success)||_(n.fail)||_(n.complete)?Q(e,U.apply(void 0,[e,t,n].concat(i))):Q(e,ie(new Promise((function(r,o){U.apply(void 0,[e,t,Object.assign({},n,{success:r,fail:o})].concat(i))}))))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))});var se=1e-4,ce=750,ue=!1,le=0,fe=0;function de(){var t=Object.assign({},e.getWindowInfo(),{platform:e.getDeviceInfo().platform}),n=t.windowWidth,r=t.pixelRatio,i=t.platform;le=n,fe=r,ue="ios"===i}function pe(e,t){if(0===le&&de(),e=Number(e),0===e)return 0;var n=e/ce*(t||le);return n<0&&(n=-n),n=Math.floor(n+se),0===n&&(n=1!==fe&&ue?.5:1),e<0?-n:n}var he,ye="zh-Hans",ge="zh-Hant",ve="en",me="fr",be="es",Se={};function xe(){if(Pe()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=Se[e],n=__uniConfig.locales[e];t?Object.assign(t,n):Se[e]=n}))}}he=Ae(e.getAppBaseInfo().language)||ve,xe();var _e=(0,f.initVueI18n)(he,{}),Ce=_e.t;_e.mixin={beforeCreate:function(){var e=this,t=_e.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return Ce(e,t)}}},_e.setLocale,_e.getLocale;function we(e,t,n){var r=e.observable({locale:n||_e.getLocale()}),i=[];t.$watchLocale=function(e){i.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,i.forEach((function(t){return t(e)}))}})}function Pe(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}function Le(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function Te(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function Ae(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return ye;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?ye:e.indexOf("-hant")>-1||Le(e,["-tw","-hk","-mo","-cht"])?ge:ye;var n=Te(e,[ve,me,be]);return n||void 0}}function Oe(){if(_(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return Ae(e.getAppBaseInfo().language)||ve}function Ye(e){var t=!!_(getApp)&&getApp();if(!t)return!1;var n=t.$vm.$locale;return n!==e&&(t.$vm.$locale=e,De.forEach((function(t){return t({locale:e})})),!0)}var De=[];function Me(e){-1===De.indexOf(e)&&De.push(e)}"undefined"!==typeof r&&(r.getLocale=Oe);var ke={promiseInterceptor:K},Ze=Object.freeze({__proto__:null,upx2px:pe,rpx2px:pe,getLocale:Oe,setLocale:Ye,onLocaleChange:Me,addInterceptor:J,removeInterceptor:F,interceptors:ke});function Ee(e){var t=getCurrentPages(),n=t.length;while(n--){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}var Re,Ne={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=Ee(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}},Ie={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var n=e.urls;if(Array.isArray(n)){var r=n.length;if(r)return t<0?t=0:t>=r&&(t=r-1),t>0?(e.current=n[t],e.urls=n.filter((function(e,r){return!(r<t)||e!==n[t]}))):e.current=n[0],{indicator:!1,loop:!1}}}}},Xe="__DC_STAT_UUID";function Je(t){Re=Re||e.getStorageSync(Xe),Re||(Re=Date.now()+""+Math.floor(1e7*Math.random()),e.setStorage({key:Xe,data:Re})),t.deviceId=Re}function Fe(e){if(e.safeArea){var t=e.safeArea;e.safeAreaInsets={top:t.top,left:t.left,right:e.windowWidth-t.right,bottom:e.screenHeight-t.bottom}}}function Be(e){var t=e.brand,n=void 0===t?"":t,r=e.model,i=void 0===r?"":r,o=e.system,a=void 0===o?"":o,s=e.language,c=void 0===s?"":s,u=e.theme,l=e.version,f=(e.platform,e.fontSizeSetting),d=e.SDKVersion,p=e.pixelRatio,h=e.deviceOrientation,y={},g="",v="";g=a.split(" ")[0]||"",v=a.split(" ")[1]||"";var m=l,b=He(e,i),S=je(n),x=Qe(e),_=h,C=p,w=d,P=(c||"").replace(/_/g,"-"),L={appId:"__UNI__FECBE11",appName:"yui_wx",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ge(P),uniCompileVersion:"4.45",uniCompilerVersion:"4.45",uniRuntimeVersion:"4.45",uniPlatform:"mp-weixin",deviceBrand:S,deviceModel:i,deviceType:b,devicePixelRatio:C,deviceOrientation:_,osName:g.toLocaleLowerCase(),osVersion:v,hostTheme:u,hostVersion:m,hostLanguage:P,hostName:x,hostSDKVersion:w,hostFontSizeSetting:f,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(e,L,y)}function He(e,t){for(var n=e.deviceType||"phone",r={ipad:"pad",windows:"pc",mac:"pc"},i=Object.keys(r),o=t.toLocaleLowerCase(),a=0;a<i.length;a++){var s=i[a];if(-1!==o.indexOf(s)){n=r[s];break}}return n}function je(e){var t=e;return t&&(t=e.toLocaleLowerCase()),t}function Ge(e){return Oe?Oe():e}function Qe(e){var t="WeChat",n=e.hostName||t;return e.environment?n=e.environment:e.host&&e.host.env&&(n=e.host.env),n}var We={returnValue:function(e){Je(e),Fe(e),Be(e)}},Ue={args:function(e){"object"===(0,l.default)(e)&&(e.alertText=e.title)}},Ke={returnValue:function(e){var t=e,n=t.version,r=t.language,i=t.SDKVersion,o=t.theme,a=Qe(e),s=(r||"").replace("_","-");e=D(Object.assign(e,{appId:"__UNI__FECBE11",appName:"yui_wx",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ge(s),hostVersion:n,hostLanguage:s,hostName:a,hostSDKVersion:i,hostTheme:o,isUniAppX:!1,uniPlatform:"mp-weixin",uniCompileVersion:"4.45",uniCompilerVersion:"4.45",uniRuntimeVersion:"4.45"}))}},$e={returnValue:function(e){var t=e,n=t.brand,r=t.model,i=He(e,r),o=je(n);Je(e),e=D(Object.assign(e,{deviceType:i,deviceBrand:o,deviceModel:r}))}},ze={returnValue:function(e){Fe(e),e=D(Object.assign(e,{windowTop:0,windowBottom:0}))}},qe={returnValue:function(e){var t=e.locationReducedAccuracy;e.locationAccuracy="unsupported",!0===t?e.locationAccuracy="reduced":!1===t&&(e.locationAccuracy="full")}},Ve={args:function(e){e.compressedHeight&&!e.compressHeight&&(e.compressHeight=e.compressedHeight),e.compressedWidth&&!e.compressWidth&&(e.compressWidth=e.compressedWidth)}},et={redirectTo:Ne,previewImage:Ie,getSystemInfo:We,getSystemInfoSync:We,showActionSheet:Ue,getAppBaseInfo:Ke,getDeviceInfo:$e,getWindowInfo:ze,getAppAuthorizeSetting:qe,compressImage:Ve},tt=["vibrate","preloadPage","unPreloadPage","loadSubPackage"],nt=[],rt=["success","fail","cancel","complete"];function it(e,t,n){return function(r){return t(at(e,r,n))}}function ot(e,t){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(P(t)){var o=!0===i?t:{};for(var a in _(n)&&(n=n(t,o)||{}),t)if(L(n,a)){var s=n[a];_(s)&&(s=s(t[a],t,o)),s?C(s)?o[s]=t[a]:P(s)&&(o[s.name?s.name:a]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==rt.indexOf(a)?_(t[a])&&(o[a]=it(e,t[a],r)):i||(o[a]=t[a]);return o}return _(t)&&(t=it(e,t,r)),t}function at(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return _(et.returnValue)&&(t=et.returnValue(e,t)),ot(e,t,n,{},r)}function st(t,n){if(L(et,t)){var r=et[t];return r?function(n,i){var o=r;_(r)&&(o=r(n)),n=ot(t,n,o.args,o.returnValue);var a=[n];"undefined"!==typeof i&&a.push(i),_(o.name)?t=o.name(n):C(o.name)&&(t=o.name);var s=e[t].apply(e,a);return ne(t)?at(t,s,o.returnValue,te(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return n}var ct=Object.create(null),ut=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function lt(e){return function(t){var n=t.fail,r=t.complete,i={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};_(n)&&n(i),_(r)&&r(i)}}ut.forEach((function(e){ct[e]=lt(e)}));var ft={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function dt(e){var t=e.service,n=e.success,r=e.fail,i=e.complete,o=!1;ft[t]?(o={errMsg:"getProvider:ok",service:t,provider:ft[t]},_(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},_(r)&&r(o)),_(i)&&i(o)}var pt=Object.freeze({__proto__:null,getProvider:dt}),ht=function(){var e;return function(){return e||(e=new d.default),e}}();function yt(e,t,n){return e[t].apply(e,n)}function gt(){return yt(ht(),"$on",Array.prototype.slice.call(arguments))}function vt(){return yt(ht(),"$off",Array.prototype.slice.call(arguments))}function mt(){return yt(ht(),"$once",Array.prototype.slice.call(arguments))}function bt(){return yt(ht(),"$emit",Array.prototype.slice.call(arguments))}var St,xt,_t,Ct=Object.freeze({__proto__:null,$on:gt,$off:vt,$once:mt,$emit:bt});function wt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Pt(e){var t={};for(var n in e){var r=e[n];_(r)&&(t[n]=wt(r),delete e[n])}return t}function Lt(e){try{return JSON.parse(e)}catch(t){}return e}function Tt(e){if("enabled"===e.type)_t=!0;else if("clientId"===e.type)St=e.cid,xt=e.errMsg,Ot(St,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Lt(e.message)},n=0;n<Dt.length;n++){var r=Dt[n];if(r(t),t.stopped)break}else"click"===e.type&&Dt.forEach((function(t){t({type:"click",data:Lt(e.message)})}))}var At=[];function Ot(e,t){At.forEach((function(n){n(e,t)})),At.length=0}function Yt(e){P(e)||(e={});var t=Pt(e),n=t.success,r=t.fail,i=t.complete,o=_(n),a=_(r),s=_(i);Promise.resolve().then((function(){"undefined"===typeof _t&&(_t=!1,St="",xt="uniPush is not enabled"),At.push((function(e,t){var c;e?(c={errMsg:"getPushClientId:ok",cid:e},o&&n(c)):(c={errMsg:"getPushClientId:fail"+(t?" "+t:"")},a&&r(c)),s&&i(c)})),"undefined"!==typeof St&&Ot(St,xt)}))}var Dt=[],Mt=function(e){-1===Dt.indexOf(e)&&Dt.push(e)},kt=function(e){if(e){var t=Dt.indexOf(e);t>-1&&Dt.splice(t,1)}else Dt.length=0},Zt=e.getAppBaseInfo&&e.getAppBaseInfo();Zt||(Zt=e.getSystemInfoSync());var Et=Zt?Zt.host:null,Rt=Et&&"SAAASDK"===Et.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Nt=Object.freeze({__proto__:null,shareVideoMessage:Rt,getPushClientId:Yt,onPushMessage:Mt,offPushMessage:kt,invokePushCallback:Tt}),It=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Xt(e,t){for(var n,r=e.$children,i=r.length-1;i>=0;i--){var o=r[i];if(o.$scope._$vueId===t)return o}for(var a=r.length-1;a>=0;a--)if(n=Xt(r[a],t),n)return n}function Jt(e){return Behavior(e)}function Ft(){return!!this.route}function Bt(e){this.triggerEvent("__l",e)}function Ht(e,t,n){var r=e.selectAllComponents(t)||[];r.forEach((function(e){var r=e.dataset.ref;n[r]=e.$vm||Ut(e),"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){Ht(e,t,n)}))}))}function jt(e,t){var n=(0,c.default)(Set,(0,u.default)(Object.keys(e))),r=Object.keys(t);return r.forEach((function(r){var i=e[r],o=t[r];Array.isArray(i)&&Array.isArray(o)&&i.length===o.length&&o.every((function(e){return i.includes(e)}))||(e[r]=o,n.delete(r))})),n.forEach((function(t){delete e[t]})),e}function Gt(e){var t=e.$scope,n={};Object.defineProperty(e,"$refs",{get:function(){var e={};Ht(t,".vue-ref",e);var r=t.selectAllComponents(".vue-ref-in-for")||[];return r.forEach((function(t){var n=t.dataset.ref;e[n]||(e[n]=[]),e[n].push(t.$vm||Ut(t))})),jt(n,e)}})}function Qt(e){var t,n=e.detail||e.value,r=n.vuePid,i=n.vueOptions;r&&(t=Xt(this.$vm,r)),t||(t=this.$vm),i.parent=t}function Wt(e){var t="__v_isMPComponent";return Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:!0}),e}function Ut(e){var t="__ob__",n="__v_skip";return w(e)&&Object.isExtensible(e)&&Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:(0,s.default)({},n,!0)}),e}var Kt=/_(.*)_worklet_factory_/;function $t(e,t){t&&Object.keys(t).forEach((function(n){var r=n.match(Kt);if(r){var i=r[1];e[n]=t[n],e[i]=t[i]}}))}var zt=Page,qt=Component,Vt=/:/g,en=A((function(e){return Y(e.replace(Vt,"-"))}));function tn(e){var t=e.triggerEvent,n=function(e){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)e=en(e);else{var o=en(e);o!==e&&t.apply(this,[o].concat(r))}return t.apply(this,[e].concat(r))};try{e.triggerEvent=n}catch(r){e._triggerEvent=n}}function nn(e,t,n){var r=t[e];t[e]=function(){if(Wt(this),tn(this),r){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.apply(this,t)}}}zt.__$wrappered||(zt.__$wrappered=!0,Page=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return nn("onLoad",e),zt(e)},Page.after=zt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return nn("created",e),qt(e)});var rn=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function on(e,t){var n=e.$mp[e.mpType];t.forEach((function(t){L(n,t)&&(e[t]=n[t])}))}function an(e,t){if(!t)return!0;if(d.default.options&&Array.isArray(d.default.options[e]))return!0;if(t=t.default||t,_(t))return!!_(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(_(t[e])||Array.isArray(t[e]))return!0;var n=t.mixins;return Array.isArray(n)?!!n.find((function(t){return an(e,t)})):void 0}function sn(e,t,n){t.forEach((function(t){an(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];un(t).forEach((function(t){return ln(e,t,n)}))}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(n){0===n.indexOf("on")&&_(e[n])&&t.push(n)})),t}function ln(e,t,n){-1!==n.indexOf(t)||L(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function fn(e,t){var n;return t=t.default||t,n=_(t)?t:e.extend(t),t=n.options,[n,t]}function dn(e,t){if(Array.isArray(t)&&t.length){var n=Object.create(null);t.forEach((function(e){n[e]=!0})),e.$scopedSlots=e.$slots=n}}function pn(e,t){e=(e||"").split(",");var n=e.length;1===n?t._$vueId=e[0]:2===n&&(t._$vueId=e[0],t._$vuePid=e[1])}function hn(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(i){Object({NODE_ENV:"development",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"yui_wx",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 P(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||L(n,e)||(n[e]=r[e])})),n}var yn=[String,Number,Boolean,Object,Array,null];function gn(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function vn(e,t){var n=e.behaviors,r=e.extends,i=e.mixins,o=e.props;o||(e.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),P(r)&&r.props&&a.push(t({properties:bn(r.props,!0)})),Array.isArray(i)&&i.forEach((function(e){P(e)&&e.props&&a.push(t({properties:bn(e.props,!0)}))})),a}function mn(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return t||(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(e,t){var n=Object.create(null);e.forEach((function(e){n[e]=!0})),this.setData({$slots:n})}}),Array.isArray(e)?e.forEach((function(e){r[e]={type:null,observer:gn(e)}})):P(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(P(n)){var i=n.default;_(i)&&(i=i()),n.type=mn(t,n.type),r[t]={type:-1!==yn.indexOf(n.type)?n.type:null,value:i,observer:gn(t)}}else{var o=mn(t,n);r[t]={type:-1!==yn.indexOf(o)?o:null,observer:gn(t)}}})),r}function Sn(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=T,e.preventDefault=T,e.target=e.target||{},L(e,"detail")||(e.detail={}),L(e,"markerId")&&(e.detail="object"===(0,l.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),P(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function xn(e,t){var n=e;return t.forEach((function(t){var r=t[0],i=t[2];if(r||"undefined"!==typeof i){var o,a=t[1],s=t[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):e.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(t){return e.__get_value(a,t)===i})):P(o)?n=Object.keys(o).find((function(t){return e.__get_value(a,o[t])===i})):console.error("v-for 暂不支持循环数据:",o):n=o[i],s&&(n=e.__get_value(s,n))}})),n}function _n(e,t,n,r){var i={};return Array.isArray(t)&&t.length&&t.forEach((function(t,o){"string"===typeof t?t?"$event"===t?i["$"+o]=n:"arguments"===t?i["$"+o]=n.detail&&n.detail.__args__||r:0===t.indexOf("$event.")?i["$"+o]=e.__get_value(t.replace("$event.",""),n):i["$"+o]=e.__get_value(t):i["$"+o]=e:i["$"+o]=xn(e,t)})),i}function Cn(e){for(var t={},n=1;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t}function wn(e,t){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=P(t.detail)&&t.detail.__args__||[t.detail];if(i&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return a?[t]:s;var c=_n(e,r,t,s),u=[];return n.forEach((function(e){"$event"===e?"__set_model"!==o||i?i&&!a?u.push(s[0]):u.push(t):u.push(t.target.value):Array.isArray(e)&&"o"===e[0]?u.push(Cn(e)):"string"===typeof e&&L(c,e)?u.push(c[e]):u.push(e)})),u}var Pn="~",Ln="^";function Tn(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function An(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}function On(e){var t=this;e=Sn(e);var n=(e.currentTarget||e.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var i=e.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s=r.charAt(0)===Ln;r=s?r.slice(1):r;var c=r.charAt(0)===Pn;r=c?r.slice(1):r,a&&Tn(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=t.$vm;if(i.$options.generic&&(i=An(i)||i),"$emit"===r)return void i.$emit.apply(i,wn(t.$vm,e,n[1],n[2],s,r));var a=i[r];if(!_(a)){var u="page"===t.$vm.mpType?"Page":"Component",l=t.route||t.is;throw new Error("".concat(u,' "').concat(l,'" does not have a method "').concat(r,'"'))}if(c){if(a.once)return;a.once=!0}var f=wn(t.$vm,e,n[1],n[2],s,r);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(f=f.concat([,,,,,,,,,,e])),o.push(a.apply(i,f))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var Yn={};function Dn(e){var t=Yn[e];return delete Yn[e],t}var Mn=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function kn(){d.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=d.default.prototype.__call_hook;d.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=Dn(n.__id__),delete n.__id__),e.call(this,t,n)}}function Zn(){var e={},t={};function n(e){var t=this.$options.propsData.vueId;if(t){var n=t.split(",")[0];e(n)}}d.default.prototype.$hasSSP=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},d.default.prototype.$getSSP=function(t,n,r){var i=e[t];if(i){var o=i[n]||[];return r?o:o[0]}},d.default.prototype.$setSSP=function(t,r){var i=0;return n.call(this,(function(n){var o=e[n],a=o[t]=o[t]||[];a.push(r),i=a.length-1})),i},d.default.prototype.$initSSP=function(){n.call(this,(function(t){e[t]={}}))},d.default.prototype.$callSSP=function(){n.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},d.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}function En(t,n){var r=n.mocks,i=n.initRefs;kn(),Zn(),t.$options.store&&(d.default.prototype.$store=t.$options.store),b(d.default),d.default.prototype.mpHost="mp-weixin",d.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 e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(i(this),on(this,r))}}});var o={onLaunch:function(n){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,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=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(e){o[e]=a[e]})),we(d.default,t,Ae(e.getAppBaseInfo().language)||ve),sn(o,Mn),cn(o,t.$options),o}function Rn(e){return En(e,{mocks:It,initRefs:Gt})}function Nn(e){return App(Rn(e)),e}var In=/[!'()*]/g,Xn=function(e){return"%"+e.charCodeAt(0).toString(16)},Jn=/%2C/g,Fn=function(e){return encodeURIComponent(e).replace(In,Xn).replace(Jn,",")};function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fn,n=e?Object.keys(e).map((function(n){var r=e[n];if(void 0===r)return"";if(null===r)return t(n);if(Array.isArray(r)){var i=[];return r.forEach((function(e){void 0!==e&&(null===e?i.push(t(n)):i.push(t(n)+"="+t(e)))})),i.join("&")}return t(n)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}function Hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,r=t.initRelation,i=arguments.length>2?arguments[2]:void 0,o=fn(d.default,e),s=(0,a.default)(o,2),c=s[0],u=s[1],l=h({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(l,u["mp-weixin"].options);var f={options:l,data:hn(u,d.default.prototype),behaviors:vn(u,Jt),properties:bn(u.props,!1,u.__file,l),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};pn(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new c(t),dn(this.$vm,e.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(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:Qt,__e:On}};return u.externalClasses&&(f.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(e){f.methods[e]=function(t){return this.$vm[e](t)}})),i?[f,u,c]:n?f:[f,c]}function jn(e,t){return Hn(e,{isPage:Ft,initRelation:Bt},t)}var Gn=["onShow","onHide","onUnload"];function Qn(e){var t=jn(e,!0),n=(0,a.default)(t,2),r=n[0],i=n[1];return sn(r.methods,Gn,i),r.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Bn(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},cn(r.methods,e,["onReady"]),$t(r.methods,i.methods),r}function Wn(e){return Qn(e)}function Un(e){return Component(Wn(e))}function Kn(e){return Component(jn(e))}function $n(t){var n=Rn(t),r=getApp({allowDefault:!0});t.$scope=r;var i=r.globalData;if(i&&Object.keys(n.globalData).forEach((function(e){L(i,e)||(i[e]=n.globalData[e])})),Object.keys(n).forEach((function(e){L(r,e)||(r[e]=n[e])})),_(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),_(n.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),_(n.onLaunch)){var o=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",o)}return t}function zn(t){var n=Rn(t);if(_(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),_(n.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),_(n.onLaunch)){var r=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",r)}return t}Gn.push.apply(Gn,rn),tt.forEach((function(e){et[e]=!1})),nt.forEach((function(t){var n=et[t]&&et[t].name?et[t].name:t;e.canIUse(n)||(et[t]=!1)}));var qn={};"undefined"!==typeof Proxy?qn=new Proxy({},{get:function(t,n){return L(t,n)?t[n]:Ze[n]?Ze[n]:Nt[n]?ae(n,Nt[n]):pt[n]?ae(n,pt[n]):ct[n]?ae(n,ct[n]):Ct[n]?Ct[n]:ae(n,st(n,e[n]))},set:function(e,t,n){return e[t]=n,!0}}):(Object.keys(Ze).forEach((function(e){qn[e]=Ze[e]})),Object.keys(ct).forEach((function(e){qn[e]=ae(e,ct[e])})),Object.keys(pt).forEach((function(e){qn[e]=ae(e,pt[e])})),Object.keys(Ct).forEach((function(e){qn[e]=Ct[e]})),Object.keys(Nt).forEach((function(e){qn[e]=ae(e,Nt[e])})),Object.keys(e).forEach((function(t){(L(e,t)||L(et,t))&&(qn[t]=ae(t,st(t,e[t])))}))),e.createApp=Nn,e.createPage=Un,e.createComponent=Kn,e.createSubpackageApp=$n,e.createPlugin=zn;var Vn=qn,er=Vn;t.default=er}).call(this,n(1)["default"],n(3))},20:function(e,t){function n(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},207:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindProjectDetail=c,t.getOrganizationDetailById=s,t.getPartList=i,t.getSealList=u,t.getUserListByPart=o,t.requestSeal=l,t.selectOrangaized=a;var r=n(45);function i(e,t){return(0,r.request)({url:"/manager/role/".concat(e,"/").concat(t),method:"get"})}function o(e){return(0,r.request)({url:"/manager/user/list/".concat(e.organizationId,"/").concat(e.partId),method:"post"})}function a(e){return(0,r.request)({url:"/manager/userContext/organization",method:"post",data:e})}function s(e){return(0,r.request)({url:"/manager/base/organization/".concat(e),method:"get"})}function c(e){return(0,r.request)({url:"/manager/bindProject/list",method:"post",data:e})}function u(e){return(0,r.request)({url:"/file/seal/".concat(e),method:"get"})}function l(e){return(0,r.request)({url:"/file/sealRequest",method:"post",data:e})}},21:function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},22:function(e,t,n){"use strict";(function(e,r){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0,t.compileI18nJsonStr=E,t.hasI18nJson=k,t.initVueI18n=Y,t.isI18nStr=R,t.isString=void 0,t.normalizeLocale=L,t.parseI18nJson=Z,t.resolveLocale=F;var o=i(n(5)),a=i(n(23)),s=i(n(24)),c=i(n(13)),u=function(e){return null!==e&&"object"===(0,c.default)(e)},l=["{","}"],f=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;if(!t)return[e];var r=this._caches[e];return r||(r=h(e,n),this._caches[e]=r),y(r,t)}}]),e}();t.Formatter=f;var d=/^(?:\d)+/,p=/^(?:\w)+/;function h(e,t){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=[],s=0,c="";while(s<e.length){var u=e[s++];if(u===r){c&&a.push({type:"text",value:c}),c="";var l="";u=e[s++];while(void 0!==u&&u!==i)l+=u,u=e[s++];var f=u===i,h=d.test(l)?"list":f&&p.test(l)?"named":"unknown";a.push({value:l,type:h})}else c+=u}return c&&a.push({type:"text",value:c}),a}function y(e,t){var n=[],r=0,i=Array.isArray(t)?"list":u(t)?"named":"unknown";if("unknown"===i)return n;while(r<e.length){var o=e[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===i?n.push(t[o.value]):console.warn("Type of token '".concat(o.type,"' and format of value '").concat(i,"' don't match!"));break;case"unknown":console.warn("Detect 'unknown' type of token!");break}r++}return n}var g="zh-Hans";t.LOCALE_ZH_HANS=g;var v="zh-Hant";t.LOCALE_ZH_HANT=v;var m="en";t.LOCALE_EN=m;var b="fr";t.LOCALE_FR=b;var S="es";t.LOCALE_ES=S;var x=Object.prototype.hasOwnProperty,_=function(e,t){return x.call(e,t)},C=new f;function w(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function P(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function L(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return g;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?g:e.indexOf("-hant")>-1||w(e,["-tw","-hk","-mo","-cht"])?v:g;var n=[m,b,S];t&&Object.keys(t).length>0&&(n=Object.keys(t));var r=P(e,n);return r||void 0}}var T=function(){function e(t){var n=t.locale,r=t.fallbackLocale,i=t.messages,o=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale=m,this.fallbackLocale=m,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||C,this.messages=i||{},this.setLocale(n||m),o&&this.watchLocale(o)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=L(e,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(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((function(e){_(r,e)||(r[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(e,t,n){var r=this.message;return"string"===typeof t?(t=L(t,this.messages),t&&(r=this.messages[t])):n=t,_(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function A(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function O(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():m}function Y(e){var t=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 e){var i=[t,e];e=i[0],t=i[1]}"string"!==typeof e&&(e=O()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||m);var o=new T({locale:e,fallbackLocale:n,messages:t,watcher:r}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return o.t(e,t)};else{var n=!1;a=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,A(r,o))),o.t(e,t)}}return a(e,t)};return{i18n:o,f:function(e,t,n){return o.f(e,t,n)},t:function(e,t){return a(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(e,t,n)},watch:function(e){return o.watchLocale(e)},getLocale:function(){return o.getLocale()},setLocale:function(e){return o.setLocale(e)}}}t.I18n=T;var D,M=function(e){return"string"===typeof e};function k(e,t){return D||(D=new f),J(e,(function(e,n){var r=e[n];return M(r)?!!R(r,t)||void 0:k(r,t)}))}function Z(e,t,n){return D||(D=new f),J(e,(function(e,r){var i=e[r];M(i)?R(i,n)&&(e[r]=N(i,t,n)):Z(i,t,n)})),e}function E(e,t){var n=t.locale,r=t.locales,i=t.delimiters;if(!R(e,i))return e;D||(D=new f);var o=[];Object.keys(r).forEach((function(e){e!==n&&o.push({locale:e,values:r[e]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(X(JSON.parse(e),o,i),null,2)}catch(a){}return e}function R(e,t){return e.indexOf(t[0])>-1}function N(e,t,n){return D.interpolate(e,t,n).join("")}function I(e,t,n,r){var i=e[t];if(M(i)){if(R(i,r)&&(e[t]=N(i,n[0].values,r),n.length>1)){var o=e[t+"Locales"]={};n.forEach((function(e){o[e.locale]=N(i,e.values,r)}))}}else X(i,n,r)}function X(e,t,n){return J(e,(function(e,r){I(e,r,t,n)})),e}function J(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(u(e))for(var r in e)if(t(e,r))return!0;return!1}function F(e){return function(t){return t?(t=L(t)||t,B(t).find((function(t){return e.indexOf(t)>-1}))):t}}function B(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}t.isString=M}).call(this,n(2)["default"],n(3))},23:function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},24:function(e,t,n){var r=n(12);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOrderDetailById=o,t.getOrderPageListByQuery=i,t.insertOrderProcess=c,t.putOrderProcess=s,t.updateOrder=a;var r=n(45);function i(e){return(0,r.request)({url:"/api/workOrder/".concat(e.currPage,"/").concat(e.pageSize),method:"post",data:e})}function o(e){return(0,r.request)({url:"/api/workOrder/".concat(e),method:"get"})}function a(e){return(0,r.request)({url:"/api/workOrder/update",method:"put",data:e})}function s(e){return(0,r.request)({url:"/api/workOrder/process/update",method:"put",data:e})}function c(e){return(0,r.request)({url:"/api/workOrder/process",method:"post",data:e})}},247:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteDir=c,t.deleteOrganizationDir=M,t.deleteOrganizationFile=Z,t.deleteProjectDir=D,t.deleteProjectFile=k,t.downloadFile=L,t.generateFileNodeOrganization=f,t.generateFileNodeProject=l,t.getDirList=o,t.getDirListByids=u,t.getExcelById=X,t.getOrganizationDirList=y,t.getOrganizationDirListByids=p,t.getProjectDirList=h,t.getProjectDirListByids=d,t.getProjectPermission=g,t.getProjectPermissionDetail=v,t.getSetApprove=E,t.getUserOrganizationPermissions=b,t.getUserProjectPermissions=m,t.insertDir=a,t.insertExcel=I,t.insertOrganizationDir=A,t.insertProjectDir=T,t.insertProjectPermission=_,t.insertSetApprove=R,t.insertUserPermissions=S,t.putUserPermissions=x,t.updateDir=s,t.updateOrganizationDir=Y,t.updateProjectDir=O,t.updateProjectPermission=C,t.updateSetApprove=N,t.uploadBase64=i,t.validationOrganizationPermission=P,t.validationProjectPermission=w;var r=n(45);function i(e){return(0,r.request)({url:"/file/filenode/base64",method:"post",data:e})}function o(e){return(0,r.request)({url:"/file/dir/".concat(e),method:"get"})}function a(e){return(0,r.request)({url:"/file/dir/".concat(e.parentId),method:"post",data:e})}function s(e){return(0,r.request)({url:"/file/dir",method:"put",data:e})}function c(e){return(0,r.request)({url:"/file/dir/".concat(e),method:"delete"})}function u(e){return(0,r.request)({url:"/file/dir/folder",method:"post",data:e})}function l(e){return(0,r.request)({url:"/file/fileNodeProject/".concat(e),method:"get"})}function f(e,t,n){return(0,r.request)({url:"/file/fileNodeOrganization/".concat(e,"/").concat(t,"/").concat(n),method:"get"})}function d(e){return(0,r.request)({url:"/file/fileNodeProject/folder",method:"post",data:e})}function p(e){return(0,r.request)({url:"/file/fileNodeOrganization/folder",method:"post",data:e})}function h(e){return(0,r.request)({url:"/file/listFileNodeProject/".concat(e),method:"get"})}function y(e){return(0,r.request)({url:"/file/listFileNodeOrganization/".concat(e),method:"get"})}function g(e,t){return(0,r.request)({url:"/file/permissions/".concat(e,"/").concat(t),method:"get"})}function v(e,t){return(0,r.request)({url:"/file/permissions/show/".concat(e,"/").concat(t),method:"get"})}function m(e,t){return(0,r.request)({url:"/file/userPermissions/project/".concat(e,"/").concat(t),method:"get"})}function b(e,t){return(0,r.request)({url:"/file/userPermissions/organization/".concat(e,"/").concat(t),method:"get"})}function S(e){return(0,r.request)({url:"/file/userPermissions",method:"post",data:e})}function x(e){return(0,r.request)({url:"/file/userPermissions",method:"put",data:e})}function _(e){return(0,r.request)({url:"/file/permissions",method:"post",data:e})}function C(e){return(0,r.request)({url:"/file/permissions",method:"put",data:e})}function w(e,t){return(0,r.request)({url:"/file/permissions/validation/".concat(e,"/").concat(t),method:"get"})}function P(e,t){return(0,r.request)({url:"/file/fileNodeOrganization/".concat(e,"/").concat(t),method:"get"})}function L(e,t){return(0,r.request)({method:"get",url:"/file/filenode/".concat(e,"/").concat(t),responseType:"arraybuffer"})}function T(e){return(0,r.request)({url:"/file/fileNodeProject/dir/".concat(e.parentId),method:"post",data:e})}function A(e){return(0,r.request)({url:"/file/fileNodeOrganization/dir/".concat(e.parentId),method:"post",data:e})}function O(e){return(0,r.request)({url:"/file/fileNodeProject",method:"put",data:e})}function Y(e){return(0,r.request)({url:"/file/fileNodeOrganization",method:"put",data:e})}function D(e){return(0,r.request)({url:"/file/fileNodeProject/dir/".concat(e),method:"delete"})}function M(e){return(0,r.request)({url:"/file/fileNodeOrganization/dir/".concat(e),method:"delete"})}function k(e){return(0,r.request)({url:"/file/fileNodeProject/".concat(e),method:"delete"})}function Z(e){return(0,r.request)({url:"/file/fileNodeOrganization/".concat(e),method:"delete"})}function E(e){return(0,r.request)({url:"/api/reviewerSet/set/query",method:"post",data:e})}function R(e){return(0,r.request)({url:"/api/reviewerSet/set",method:"post",data:e})}function N(e){return(0,r.request)({url:"/api/reviewerSet/set",method:"put",data:e})}function I(e){return(0,r.request)({url:"/api/luckySheet",method:"post",data:e})}function X(e){return(0,r.request)({url:"/api/luckySheet/".concat(e),method:"get"})}},248:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.downloadFileDom=C,t.organizationPermission=_,t.projectPermission=x;var i,o,a,s=n(247),c=r(n(33)),u=r(n(249)),l=[],f=function(){i=c.default.getters.organization,o=c.default.getters.project,a=c.default.getters.user},d=function(e,t){switch(e.permissions){case"1":t();break;case"2":p(e,t);break;case"3":b(e,t);break;default:break}},p=function(e,t){1===e.approveType?(0,s.getUserProjectPermissions)(e.id,a.userId).then((function(n){h(n,e,t)})):2===e.approveType&&(0,s.getUserOrganizationPermissions)(e.id,a.userId).then((function(n){h(n,e,t)}))},h=function(e,t,n){if(200===e.code){var r=e.data||{};if(r[t.type])return n();y(t,n)}},y=function(e,t){(0,s.getSetApprove)({projectId:o.id,operationOrganizationId:e.operationOrganizationId,type:e.approveType}).then((function(n){if(200===n.code){var r=n.data[0]||{};if(r.checker&&(l=JSON.parse(r.checker).map((function(e){return-e[e.length-1]}))),l.filter((function(e){return e===a.userId})).length>0)return t();v(e)}}))},g=function(e){var t="";switch(e){case"access":t="访问";break;case"create":t="创建";break;case"delete":t="删除";break;case"edit":t="编辑";break;case"fileDelete":t="删除";break;case"fileDownload":t="下载";break;case"fileUpload":t="上传";break;case"fileView":t="预览";break;default:break}return t},v=function(t){var n="该文件是私密文件夹,是否申请".concat(g(t.type),"?");e.showModal({title:"系统提示",content:n,success:function(n){if(n.confirm){if(0===l.length)return e.showToast({title:"暂未设置审核人",icon:"none"});for(var r="",i=0;i<t.folderList.length;i++)r+="-"+t.folderList[i].name;var o="【".concat(t.typeName).concat(r,"-").concat(t.name,"】"),a="申请".concat(g(t.type)).concat(o);u.default.sendFlowMessage({},{operation:a,receiver:l.join(","),messageType:5,dataType:m(t)[t.type],dataId:t.id}).then((function(t){200===t.code&&e.showToast({title:"申请成功,请等待审核",icon:"none"})}))}}})},m=function(e){var t={};switch(e.approveType){case 1:t={access:1,create:2,delete:3,edit:4,fileDelete:5,fileDownload:6,fileUpload:7,fileView:8};break;case 2:t={access:9,create:10,delete:11,edit:12,fileDelete:13,fileDownload:14,fileUpload:15,fileView:16};break;default:break}return t},b=function(t,n){var r="该文件是加密文件夹,请输入密码".concat(g(t.type),"?");e.showModal({title:r,editable:!0,placeholderText:"请输入密码",success:function(r){if(r.confirm){if(r.content)return e.showToast({title:"密码错误",icon:"none"});1===t.approveType?(0,s.validationProjectPermission)(t.permissionsId,r.content).then((function(e){S(e,n)})):2===t.approveType&&(0,s.validationOrganizationPermission)(t.id,r.content).then((function(e){S(e,n)}))}}})},S=function(t,n){if(200===t.code){if(t.data)return n();e.showToast({title:"密码错误",icon:"none"})}};function x(e,t){a||f(),e["dataType"]="project",e["typeName"]="项目中心",e["approveType"]=1,e["operationOrganizationId"]=-1,(0,s.getProjectPermission)(e.id,-1).then((function(n){200===n.code&&(e["permissions"]=null==n.data?e.oldPermission:n.data.permissions,n.data&&(e["permissionsId"]=n.data.id),d(e,t))}))}function _(e,t){a||f(),e["dataType"]="organization",e["typeName"]="企业中心",e["approveType"]=2,e["operationOrganizationId"]=i.id,d(e,t)}function C(e,t){var n=new Blob([e],{type:"application/octet-stream"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(n,t);else{var r=window.URL.createObjectURL(n),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",t),"undefined"===typeof i.download&&i.setAttribute("target","_blank"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}}}).call(this,n(2)["default"])},249:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(45),o=r(n(33)),a=n(38),s=[{id:2,name:"审核消息",dataType:[{id:1,title:"资产登记",content:"的资产登记流程"},{id:2,title:"资产变更",content:"的资产变更流程"},{id:3,title:"资产折旧",content:"的资产折旧流程"},{id:4,title:"资产盘点",content:"的资产盘点流程"},{id:5,title:"设备管理",content:"的设备管理流程"}]},{id:3,name:"巡查消息",dataType:[{id:1,title:"巡查记录",content:"的巡查记录"}]},{id:4,name:"工单消息",dataType:[{id:1,title:"工单记录",content:"的工单记录"}]},{id:5,name:"数据中心",dataType:[{id:1,title:"项目中心",content:"文件夹",type:"access"},{id:2,title:"项目中心",content:"文件夹",type:"create"},{id:3,title:"项目中心",content:"文件夹",type:"delete"},{id:4,title:"项目中心",content:"文件夹",type:"edit"},{id:5,title:"项目中心",content:"文件",type:"fileDelete"},{id:6,title:"项目中心",content:"文件",type:"fileDownload"},{id:7,title:"项目中心",content:"文件",type:"fileUpload"},,{id:8,title:"项目中心",content:"文件",type:"fileView"},{id:9,title:"企业中心",content:"文件夹",type:"access"},{id:10,title:"企业中心",content:"文件夹",type:"create"},{id:11,title:"企业中心",content:"文件夹",type:"delete"},{id:12,title:"企业中心",content:"文件夹",type:"edit"},{id:13,title:"企业中心",content:"文件",type:"fileDelete"},{id:14,title:"企业中心",content:"文件",type:"fileDownload"},{id:15,title:"企业中心",content:"文件",type:"fileUpload"},,{id:16,title:"企业中心",content:"文件",type:"fileView"}]},{id:6,name:"项目邀请"}],c={send:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.dayjs)(new Date).format("YYYY-MM-DD HH:mm:ss"),r={projectId:o.default.getters.project.id,organizationId:o.default.getters.organization.id,date:n};t["time"]=n,r=Object.assign(r,e);var s={sender:o.default.getters.user.userId,messageType:t.messageType,message:this.messageContent(t),json:JSON.stringify(r),viewed:0};return(0,i.request)({url:"/manager/message/".concat(t.userIds),method:"post",data:s})},viewed:function(e,t){if(e)return(0,i.request)({url:"/manager/message/".concat(e),method:"put"}).then((function(e){e.state&&t&&t()}))},sendFlowMessage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.dayjs)(new Date).format("YYYY-MM-DD HH:mm:ss"),r={projectId:o.default.getters.project.id,organizationId:o.default.getters.organization.id,date:n,dataId:t.dataId,dataType:t.dataType},s=this.data(e,t);r=Object.assign(r,s.data);var c={sender:o.default.getters.user.userId,messageType:t.messageType,message:s.message,json:JSON.stringify(r),viewed:0,isCC:t.isCC};return(0,i.request)({url:"/manager/message/".concat(t.receiver),method:"post",data:c})},messageContent:function(e){var t="";return 6===e.messageType&&(t="【项目邀请】".concat(o.default.getters.user.name,"在").concat((0,a.dayjs)(new Date).format("YYYY-MM-DD HH:mm:ss"),"邀请加入<").concat(o.default.getters.project.name,">项目,请及时处理。")),t},data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r="",i=s.filter((function(e){return e.id===t.messageType}))[0].dataType.filter((function(e){return e.id===t.dataType}))[0];e.projectItemName&&(r+=e.projectItemName,n["projectItemId"]=e.projectItemId),e.projectItemTargetName&&(r+="-"+e.projectItemTargetName,n["projectItemTargetId"]=e.projectItemTargetId);var c="【".concat(i.title,"】").concat(o.default.getters.user.name,"在").concat((0,a.dayjs)(new Date).format("YYYY-MM-DD HH:mm:ss")).concat(t.operation).concat(r).concat(i.content);return 1===t.isCC&&(c+=",并抄送给你"),{message:c,data:n}},messageType:s};t.default=c},25:function(e,t,n){"use strict";n.r(t),function(e){
- /*!
- * Vue.js v2.6.11
- * (c) 2014-2024 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function l(e){return u.call(e).slice(8,-1)}function f(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function y(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var m=v("slot,component",!0),b=v("key,ref,slot,slot-scope,is");function S(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var x=Object.prototype.hasOwnProperty;function _(e,t){return x.call(e,t)}function C(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var w=/-(\w)/g,P=C((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),L=C((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),T=/\B([A-Z])/g,A=C((function(e){return e.replace(T,"-$1").toLowerCase()}));function O(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function Y(e,t){return e.bind(t)}var D=Function.prototype.bind?Y:O;function M(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function k(e,t){for(var n in t)e[n]=t[n];return e}function Z(e){for(var t={},n=0;n<e.length;n++)e[n]&&k(t,e[n]);return t}function E(e,t,n){}var R=function(e,t,n){return!1},N=function(e){return e};function I(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return I(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return I(e[n],t[n])}))}catch(u){return!1}}function X(e,t){for(var n=0;n<e.length;n++)if(I(e[n],t))return n;return-1}function J(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var F=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:R,isReservedAttr:R,isUnknownElement:R,getTagNamespace:E,parsePlatformTagName:N,mustUseProp:R,async:!0,_lifecycleHooks:B},j=/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 G(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function Q(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+j.source+".$_\\d]");function U(e){if(!W.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var K,$="__proto__"in{},z="undefined"!==typeof window,q="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,V=q&&WXEnvironment.platform.toLowerCase(),ee=z&&window.navigator&&window.navigator.userAgent.toLowerCase(),te=ee&&/msie|trident/.test(ee),ne=(ee&&ee.indexOf("msie 9.0"),ee&&ee.indexOf("edge/")>0),re=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===V),ie=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/),{}.watch);if(z)try{var oe={};Object.defineProperty(oe,"passive",{get:function(){}}),window.addEventListener("test-passive",null,oe)}catch(Xi){}var ae=function(){return void 0===K&&(K=!z&&!q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),K},se=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var ue,le="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);ue="undefined"!==typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fe=E,de=E,pe=E,he=E,ye="undefined"!==typeof console,ge=/(?:^|[-_])(\w)/g,ve=function(e){return e.replace(ge,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};fe=function(e,t){var n=t?pe(t):"";H.warnHandler?H.warnHandler.call(null,e,t,n):ye&&!H.silent&&console.error("[Vue warn]: "+e+n)},de=function(e,t){ye&&!H.silent&&console.warn("[Vue tip]: "+e+(t?pe(t):""))},he=function(e,t){if(e.$root===e)return e.$options&&e.$options.__file?""+e.$options.__file:"<Root>";var n="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,r=n.name||n._componentTag,i=n.__file;if(!r&&i){var o=i.match(/([^/\\]+)\.vue$/);r=o&&o[1]}return(r?"<"+ve(r)+">":"<Anonymous>")+(i&&!1!==t?" at "+i:"")};var me=function(e,t){var n="";while(t)t%2===1&&(n+=e),t>1&&(e+=e),t>>=1;return n};pe=function(e){if(e._isVue&&e.$parent){var t=[],n=0;while(e&&"PageBody"!==e.$options.name){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}!e.$options.isReserved&&t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,t){return""+(0===t?"---\x3e ":me(" ",5+2*t))+(Array.isArray(e)?he(e[0])+"... ("+e[1]+" recursive calls)":he(e))})).join("\n")}return"\n\n(found in "+he(e)+")"};var be=0,Se=function(){this.id=be++,this.subs=[]};function xe(e){Se.SharedObject.targetStack.push(e),Se.SharedObject.target=e,Se.target=e}function _e(){Se.SharedObject.targetStack.pop(),Se.SharedObject.target=Se.SharedObject.targetStack[Se.SharedObject.targetStack.length-1],Se.target=Se.SharedObject.target}Se.prototype.addSub=function(e){this.subs.push(e)},Se.prototype.removeSub=function(e){S(this.subs,e)},Se.prototype.depend=function(){Se.SharedObject.target&&Se.SharedObject.target.addDep(this)},Se.prototype.notify=function(){var e=this.subs.slice();H.async||e.sort((function(e,t){return e.id-t.id}));for(var t=0,n=e.length;t<n;t++)e[t].update()},Se.SharedObject={},Se.SharedObject.target=null,Se.SharedObject.targetStack=[];var Ce=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,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=t&&t.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},we={child:{configurable:!0}};we.child.get=function(){return this.componentInstance},Object.defineProperties(Ce.prototype,we);var Pe=function(e){void 0===e&&(e="");var t=new Ce;return t.text=e,t.isComment=!0,t};function Le(e){return new Ce(void 0,void 0,void 0,String(e))}function Te(e){var t=new Ce(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ae=Array.prototype,Oe=Object.create(Ae),Ye=["push","pop","shift","unshift","splice","sort","reverse"];Ye.forEach((function(e){var t=Ae[e];Q(Oe,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var De=Object.getOwnPropertyNames(Oe),Me=!0;function ke(e){Me=e}var Ze=function(e){this.value=e,this.dep=new Se,this.vmCount=0,Q(e,"__ob__",this),Array.isArray(e)?($?e.push!==e.__proto__.push?Re(e,Oe,De):Ee(e,Oe):Re(e,Oe,De),this.observeArray(e)):this.walk(e)};function Ee(e,t){e.__proto__=t}function Re(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];Q(e,o,t[o])}}function Ne(e,t){var n;if(c(e)&&!(e instanceof Ce))return _(e,"__ob__")&&e.__ob__ instanceof Ze?n=e.__ob__:!Me||ae()||!Array.isArray(e)&&!f(e)||!Object.isExtensible(e)||e._isVue||e.__v_isMPComponent||(n=new Ze(e)),t&&n&&n.vmCount++,n}function Ie(e,t,n,r,i){var o=new Se,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Ne(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return Se.SharedObject.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Fe(t))),t},set:function(t){var a=s?s.call(e):n;t===a||t!==t&&a!==a||(r&&r(),s&&!c||(c?c.call(e,t):n=t,u=!i&&Ne(t),o.notify()))}})}}function Xe(e,t,n){if((r(e)||s(e))&&fe("Cannot set reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?(fe("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):i?(Ie(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function Je(e,t){if((r(e)||s(e))&&fe("Cannot delete reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount?fe("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):_(e,t)&&(delete e[t],n&&n.dep.notify())}}function Fe(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Fe(t)}Ze.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ie(e,t[n])},Ze.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ne(e[t])};var Be=H.optionMergeStrategies;function He(e,t){if(!t)return e;for(var n,r,i,o=le?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=e[n],i=t[n],_(e,n)?r!==i&&f(r)&&f(i)&&He(r,i):Xe(e,n,i));return e}function je(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?He(r,i):i}:t?e?function(){return He("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Ge(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Qe(n):n}function Qe(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function We(e,t,n,r){var i=Object.create(e||null);return t?(et(r,t,n),k(i,t)):i}Be.el=Be.propsData=function(e,t,n,r){return n||fe('option "'+r+'" can only be used during instance creation with the `new` keyword.'),Ue(e,t)},Be.data=function(e,t,n){return n?je(e,t,n):t&&"function"!==typeof t?(fe('The "data" option should be a function that returns a per-instance value in component definitions.',n),e):je(e,t)},B.forEach((function(e){Be[e]=Ge})),F.forEach((function(e){Be[e+"s"]=We})),Be.watch=function(e,t,n,r){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(et(r,t,n),!e)return t;var i={};for(var o in k(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Be.props=Be.methods=Be.inject=Be.computed=function(e,t,n,r){if(t&&et(r,t,n),!e)return t;var i=Object.create(null);return k(i,e),t&&k(i,t),i},Be.provide=je;var Ue=function(e,t){return void 0===t?e:t};function Ke(e){for(var t in e.components)$e(t)}function $e(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+j.source+"]*$").test(e)||fe('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(m(e)||H.isReservedTag(e))&&fe("Do not use built-in or reserved HTML elements as component id: "+e)}function ze(e,t){var n=e.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i?(o=P(i),a[o]={type:null}):fe("props must be strings when using array syntax.")}else if(f(n))for(var s in n)i=n[s],o=P(s),a[o]=f(i)?i:{type:i};else fe('Invalid value for option "props": expected an Array or an Object, but got '+l(n)+".",t);e.props=a}}function qe(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(f(n))for(var o in n){var a=n[o];r[o]=f(a)?k({from:o},a):{from:a}}else fe('Invalid value for option "inject": expected an Array or an Object, but got '+l(n)+".",t)}}function Ve(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function et(e,t,n){f(t)||fe('Invalid value for option "'+e+'": expected an Object, but got '+l(t)+".",n)}function tt(e,t,n){if(Ke(t),"function"===typeof t&&(t=t.options),ze(t,n),qe(t,n),Ve(t),!t._base&&(t.extends&&(e=tt(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=tt(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)_(e,o)||s(o);function s(r){var i=Be[r]||Ue;a[r]=i(e[r],t[r],n,r)}return a}function nt(e,t,n,r){if("string"===typeof n){var i=e[t];if(_(i,n))return i[n];var o=P(n);if(_(i,o))return i[o];var a=L(o);if(_(i,a))return i[a];var s=i[n]||i[o]||i[a];return r&&!s&&fe("Failed to resolve "+t.slice(0,-1)+": "+n,e),s}}function rt(e,t,n,r){var i=t[e],o=!_(n,e),a=n[e],s=lt(Boolean,i.type);if(s>-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===A(e)){var c=lt(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=it(r,i,e);var u=Me;ke(!0),Ne(a),ke(u)}return ot(i,e,a,r,o),a}function it(e,t,n){if(_(t,"default")){var r=t.default;return c(r)&&fe('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',e),e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==ct(t.type)?r.call(e):r}}function ot(e,t,n,r,i){if(e.required&&i)fe('Missing required prop: "'+t+'"',r);else if(null!=n||e.required){var o=e.type,a=!o||!0===o,s=[];if(o){Array.isArray(o)||(o=[o]);for(var c=0;c<o.length&&!a;c++){var u=st(n,o[c]);s.push(u.expectedType||""),a=u.valid}}if(a){var l=e.validator;l&&(l(n)||fe('Invalid prop: custom validator check failed for prop "'+t+'".',r))}else fe(ft(t,n,s),r)}}var at=/^(String|Number|Boolean|Function|Symbol)$/;function st(e,t){var n,r=ct(t);if(at.test(r)){var i=typeof e;n=i===r.toLowerCase(),n||"object"!==i||(n=e instanceof t)}else n="Object"===r?f(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function ct(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function ut(e,t){return ct(e)===ct(t)}function lt(e,t){if(!Array.isArray(t))return ut(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(ut(t[n],e))return n;return-1}function ft(e,t,n){var r='Invalid prop: type check failed for prop "'+e+'". Expected '+n.map(L).join(", "),i=n[0],o=l(t),a=dt(t,i),s=dt(t,o);return 1===n.length&&pt(i)&&!ht(i,o)&&(r+=" with value "+a),r+=", got "+o+" ",pt(o)&&(r+="with value "+s+"."),r}function dt(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}function pt(e){var t=["string","number","boolean"];return t.some((function(t){return e.toLowerCase()===t}))}function ht(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];return e.some((function(e){return"boolean"===e.toLowerCase()}))}function yt(e,t,n){xe();try{if(t){var r=t;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,e,t,n);if(a)return}catch(Xi){vt(Xi,r,"errorCaptured hook")}}}vt(e,t,n)}finally{_e()}}function gt(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&h(o)&&!o._handled&&(o.catch((function(e){return yt(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(Xi){yt(Xi,r,i)}return o}function vt(e,t,n){if(H.errorHandler)try{return H.errorHandler.call(null,e,t,n)}catch(Xi){Xi!==e&&mt(Xi,null,"config.errorHandler")}mt(e,t,n)}function mt(e,t,n){if(fe("Error in "+n+': "'+e.toString()+'"',t),!z&&!q||"undefined"===typeof console)throw e;console.error(e)}var bt,St,xt=[],_t=!1;function Ct(){_t=!1;var e=xt.slice(0);xt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ce(Promise)){var wt=Promise.resolve();bt=function(){wt.then(Ct),re&&setTimeout(E)}}else if(te||"undefined"===typeof MutationObserver||!ce(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())bt="undefined"!==typeof setImmediate&&ce(setImmediate)?function(){setImmediate(Ct)}:function(){setTimeout(Ct,0)};else{var Pt=1,Lt=new MutationObserver(Ct),Tt=document.createTextNode(String(Pt));Lt.observe(Tt,{characterData:!0}),bt=function(){Pt=(Pt+1)%2,Tt.data=String(Pt)}}function At(e,t){var n;if(xt.push((function(){if(e)try{e.call(t)}catch(Xi){yt(Xi,t,"nextTick")}else n&&n(t)})),_t||(_t=!0,bt()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var Ot=v("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),Yt=function(e,t){fe('Property or method "'+t+'" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',e)},Dt=function(e,t){fe('Property "'+t+'" must be accessed with "$data.'+t+'" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://vuejs.org/v2/api/#data',e)},Mt="undefined"!==typeof Proxy&&ce(Proxy);if(Mt){var kt=v("stop,prevent,self,ctrl,shift,alt,meta,exact");H.keyCodes=new Proxy(H.keyCodes,{set:function(e,t,n){return kt(t)?(fe("Avoid overwriting built-in modifier in config.keyCodes: ."+t),!1):(e[t]=n,!0)}})}var Zt={has:function(e,t){var n=t in e,r=Ot(t)||"string"===typeof t&&"_"===t.charAt(0)&&!(t in e.$data);return n||r||(t in e.$data?Dt(e,t):Yt(e,t)),n||!r}},Et={get:function(e,t){return"string"!==typeof t||t in e||(t in e.$data?Dt(e,t):Yt(e,t)),e[t]}};St=function(e){if(Mt){var t=e.$options,n=t.render&&t.render._withStripped?Et:Zt;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e};var Rt,Nt,It=new ue;function Xt(e){Jt(e,It),It.clear()}function Jt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!c(e)||Object.isFrozen(e)||e instanceof Ce)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i){n=e.length;while(n--)Jt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)Jt(e[r[n]],t)}}}var Ft=z&&window.performance;Ft&&Ft.mark&&Ft.measure&&Ft.clearMarks&&Ft.clearMeasures&&(Rt=function(e){return Ft.mark(e)},Nt=function(e,t,n){Ft.measure(e,t,n),Ft.clearMarks(t),Ft.clearMarks(n)});var Bt=C((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function Ht(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return gt(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)gt(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function jt(e,t,n,i,a,s){var c,u,l,f;for(c in e)u=e[c],l=t[c],f=Bt(c),r(u)?fe('Invalid handler for event "'+f.name+'": got '+String(u),s):r(l)?(r(u.fns)&&(u=e[c]=Ht(u,s)),o(f.once)&&(u=e[c]=a(f.name,u,f.capture)),n(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,e[c]=l);for(c in t)r(e[c])&&(f=Bt(c),i(f.name,t[c],f.capture))}function Gt(e,t,n,o){var a=t.options.mpOptions&&t.options.mpOptions.properties;if(r(a))return n;var s=t.options.mpOptions.externalClasses||[],c=e.attrs,u=e.props;if(i(c)||i(u))for(var l in a){var f=A(l),d=Wt(n,u,l,f,!0)||Wt(n,c,l,f,!1);d&&n[l]&&-1!==s.indexOf(f)&&o[P(n[l])]&&(n[l]=o[P(n[l])])}return n}function Qt(e,t,n,o){var a=t.options.props;if(r(a))return Gt(e,t,{},o);var s={},c=e.attrs,u=e.props;if(i(c)||i(u))for(var l in a){var f=A(l),d=l.toLowerCase();l!==d&&c&&_(c,d)&&de('Prop "'+d+'" is passed to component '+he(n||t)+', but the declared prop name is "'+l+'". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "'+f+'" instead of "'+l+'".'),Wt(s,u,l,f,!0)||Wt(s,c,l,f,!1)}return Gt(e,t,s,o)}function Wt(e,t,n,r,o){if(i(t)){if(_(t,n))return e[n]=t[n],o||delete t[n],!0;if(_(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function Ut(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Kt(e){return s(e)?[Le(e)]:Array.isArray(e)?zt(e):void 0}function $t(e){return i(e)&&i(e.text)&&a(e.isComment)}function zt(e,t){var n,a,c,u,l=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(c=l.length-1,u=l[c],Array.isArray(a)?a.length>0&&(a=zt(a,(t||"")+"_"+n),$t(a[0])&&$t(u)&&(l[c]=Le(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?$t(u)?l[c]=Le(u.text+a):""!==a&&l.push(Le(a)):$t(a)&&$t(u)?l[c]=Le(u.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),l.push(a)));return l}function qt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Vt(e){var t=en(e.$options.inject,e);t&&(ke(!1),Object.keys(t).forEach((function(n){Ie(e,n,t[n],(function(){fe('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',e)}))})),ke(!0))}function en(e,t){if(e){for(var n=Object.create(null),r=le?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from,s=t;while(s){if(s._provided&&_(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var c=e[o].default;n[o]="function"===typeof c?c.call(t):c}else fe('Injection "'+o+'" not found',t)}}return n}}function tn(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!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(nn)&&delete n[u];return n}function nn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function rn(e,t,r){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=on(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=an(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),Q(i,"$stable",a),Q(i,"$key",s),Q(i,"$hasNormal",o),i}function on(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Kt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function an(e,t){return function(){return e[t]}}function sn(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r,r,r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r,r,r);else if(c(e))if(le&&e[Symbol.iterator]){n=[];var u=e[Symbol.iterator](),l=u.next();while(!l.done)n.push(t(l.value,n.length,r,r++)),l=u.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=t(e[s],s,r,r);return i(n)||(n=[]),n._isVList=!0,n}function cn(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(c(r)||fe("slot v-bind without argument expects an Object",this),n=k(k({},r),n)),i=o(n,this,n._i)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function un(e){return nt(this.$options,"filters",e,!0)||N}function ln(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function fn(e,t,n,r,i){var o=H.keyCodes[t]||n;return i&&r&&!H.keyCodes[t]?ln(i,r):o?ln(o,e):r?A(r)!==t:void 0}function dn(e,t,n,r,i){if(n)if(c(n)){var o;Array.isArray(n)&&(n=Z(n));var a=function(a){if("class"===a||"style"===a||b(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||H.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=P(a),u=A(a);if(!(c in o)&&!(u in o)&&(o[a]=n[a],i)){var l=e.on||(e.on={});l["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else fe("v-bind without argument expects an Object or Array value",this);return e}function pn(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),yn(r,"__static__"+e,!1)),r}function hn(e,t,n){return yn(e,"__once__"+t+(n?"_"+n:""),!0),e}function yn(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&gn(e[r],t+"_"+r,n);else gn(e,t,n)}function gn(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function vn(e,t){if(t)if(f(t)){var n=e.on=e.on?k({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else fe("v-on without argument expects an Object value",this);return e}function mn(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?mn(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function bn(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r?e[t[n]]=t[n+1]:""!==r&&null!==r&&fe("Invalid value for dynamic directive argument (expected string or null): "+r,this)}return e}function Sn(e,t){return"string"===typeof e?t+e:e}function xn(e){e._o=hn,e._n=g,e._s=y,e._l=sn,e._t=cn,e._q=I,e._i=X,e._m=pn,e._f=un,e._k=fn,e._b=dn,e._v=Le,e._e=Pe,e._u=mn,e._g=vn,e._d=bn,e._p=Sn}function _n(e,t,r,i,a){var s,c=this,u=a.options;_(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var l=o(u._compiled),f=!l;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=en(u.inject,i),this.slots=function(){return c.$slots||rn(e.scopedSlots,c.$slots=tn(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return rn(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=rn(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=En(s,e,t,n,r,f);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return En(s,e,t,n,r,f)}}function Cn(e,t,r,o,a){var s=e.options,c={},u=s.props;if(i(u))for(var l in u)c[l]=rt(l,u,t||n);else i(r.attrs)&&Pn(c,r.attrs),i(r.props)&&Pn(c,r.props);var f=new _n(r,c,a,o,e),d=s.render.call(null,f._c,f);if(d instanceof Ce)return wn(d,r,f.parent,s,f);if(Array.isArray(d)){for(var p=Kt(d)||[],h=new Array(p.length),y=0;y<p.length;y++)h[y]=wn(p[y],r,f.parent,s,f);return h}}function wn(e,t,n,r,i){var o=Te(e);return o.fnContext=n,o.fnOptions=r,(o.devtoolsMeta=o.devtoolsMeta||{}).renderContext=i,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Pn(e,t){for(var n in t)e[P(n)]=t[n]}xn(_n.prototype);var Ln={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Ln.prepatch(n,n)}else{var r=e.componentInstance=On(e,er);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;or(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(ur(n,"onServiceCreated"),ur(n,"onServiceAttached"),n._isMounted=!0,ur(n,"mounted")),e.data.keepAlive&&(t._isMounted?Cr(n):sr(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?cr(t,!0):t.$destroy())}},Tn=Object.keys(Ln);function An(e,t,n,a,s){if(!r(e)){var u=n.$options._base;if(c(e)&&(e=u.extend(e)),"function"===typeof e){var l;if(r(e.cid)&&(l=e,e=Gn(l,u),void 0===e))return jn(l,t,n,a,s);t=t||{},Qr(e),i(t.model)&&Mn(e.options,t);var f=Qt(t,e,s,n);if(o(e.options.functional))return Cn(e,f,t,n,a);var d=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var p=t.slot;t={},p&&(t.slot=p)}Yn(t);var h=e.options.name||s,y=new Ce("vue-component-"+e.cid+(h?"-"+h:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:d,tag:s,children:a},l);return y}fe("Invalid Component definition: "+String(e),n)}}function On(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function Yn(e){for(var t=e.hook||(e.hook={}),n=0;n<Tn.length;n++){var r=Tn[n],i=t[r],o=Ln[r];i===o||i&&i._merged||(t[r]=i?Dn(o,i):o)}}function Dn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Mn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[r],s=t.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var kn=1,Zn=2;function En(e,t,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=Zn),Rn(e,t,n,r,i)}function Rn(e,t,n,r,o){if(i(n)&&i(n.__ob__))return fe("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\nAlways create fresh vnode data objects in each render!",e),Pe();if(i(n)&&i(n.is)&&(t=n.is),!t)return Pe();var a,c,u;(i(n)&&i(n.key)&&!s(n.key)&&fe("Avoid using non-primitive value as key, use string/number value instead.",e),Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===Zn?r=Kt(r):o===kn&&(r=Ut(r)),"string"===typeof t)?(c=e.$vnode&&e.$vnode.ns||H.getTagNamespace(t),H.isReservedTag(t)?(i(n)&&i(n.nativeOn)&&fe("The .native modifier for v-on is only valid on components but it was used on <"+t+">.",e),a=new Ce(H.parsePlatformTagName(t),n,r,void 0,void 0,e)):a=n&&n.pre||!i(u=nt(e.$options,"components",t))?new Ce(t,n,r,void 0,void 0,e):An(u,n,e,r,t)):a=An(t,n,e,r);return Array.isArray(a)?a:i(a)?(i(c)&&Nn(a,c),i(n)&&In(n),a):Pe()}function Nn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var a=0,s=e.children.length;a<s;a++){var c=e.children[a];i(c.tag)&&(r(c.ns)||o(n)&&"svg"!==c.tag)&&Nn(c,t,n)}}function In(e){c(e.style)&&Xt(e.style),c(e.class)&&Xt(e.class)}function Xn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=tn(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return En(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return En(e,t,n,r,i,!0)};var o=r&&r.data;Ie(e,"$attrs",o&&o.attrs||n,(function(){!tr&&fe("$attrs is readonly.",e)}),!0),Ie(e,"$listeners",t._parentListeners||n,(function(){!tr&&fe("$listeners is readonly.",e)}),!0)}var Jn,Fn=null;function Bn(e){xn(e.prototype),e.prototype.$nextTick=function(e){return At(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=rn(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Fn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Xi){if(yt(Xi,t,"render"),t.$options.renderError)try{e=t.$options.renderError.call(t._renderProxy,t.$createElement,Xi)}catch(Xi){yt(Xi,t,"renderError"),e=t._vnode}else e=t._vnode}finally{Fn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof Ce||(Array.isArray(e)&&fe("Multiple root nodes returned from render function. Render function should return a single root node.",t),e=Pe()),e.parent=i,e}}function Hn(e,t){return(e.__esModule||le&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function jn(e,t,n,r,i){var o=Pe();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function Gn(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=Fn;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var a=e.owners=[n],s=!0,u=null,l=null;n.$on("hook:destroyed",(function(){return S(a,n)}));var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},d=J((function(n){e.resolved=Hn(n,t),s?a.length=0:f(!0)})),p=J((function(t){fe("Failed to resolve async component: "+String(e)+(t?"\nReason: "+t:"")),i(e.errorComp)&&(e.error=!0,f(!0))})),y=e(d,p);return c(y)&&(h(y)?r(e.resolved)&&y.then(d,p):h(y.component)&&(y.component.then(d,p),i(y.error)&&(e.errorComp=Hn(y.error,t)),i(y.loading)&&(e.loadingComp=Hn(y.loading,t),0===y.delay?e.loading=!0:u=setTimeout((function(){u=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,f(!1))}),y.delay||200)),i(y.timeout)&&(l=setTimeout((function(){l=null,r(e.resolved)&&p("timeout ("+y.timeout+"ms)")}),y.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function Qn(e){return e.isComment&&e.asyncFactory}function Wn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||Qn(n)))return n}}function Un(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&qn(e,t)}function Kn(e,t){Jn.$on(e,t)}function $n(e,t){Jn.$off(e,t)}function zn(e,t){var n=Jn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function qn(e,t,n){Jn=e,jt(t,n||{},Kn,$n,zn,e),Jn=void 0}function Vn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(o=a[s],o===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=e.toLowerCase();n!==e&&t._events[n]&&de('Event "'+n+'" is emitted in component '+he(t)+' but the handler is registered for "'+e+'". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "'+A(e)+'" instead of "'+e+'".');var r=t._events[e];if(r){r=r.length>1?M(r):r;for(var i=M(arguments,1),o='event handler for "'+e+'"',a=0,s=r.length;a<s;a++)gt(r[a],t,i,t,o)}return t}}var er=null,tr=!1;function nr(e){var t=er;return er=e,function(){er=t}}function rr(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function ir(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=nr(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!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)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){ur(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||S(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),ur(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function or(e,t,r,i,o){tr=!0;var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),u=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){ke(!1);for(var l=e._props,f=e.$options._propKeys||[],d=0;d<f.length;d++){var p=f[d],h=e.$options.props;l[p]=rt(p,h,t,e)}ke(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),r=r||n;var y=e.$options._parentListeners;e.$options._parentListeners=r,qn(e,r,y),u&&(e.$slots=tn(o,i.context),e.$forceUpdate()),tr=!1}function ar(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function sr(e,t){if(t){if(e._directInactive=!1,ar(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)sr(e.$children[n]);ur(e,"activated")}}function cr(e,t){if((!t||(e._directInactive=!0,!ar(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)cr(e.$children[n]);ur(e,"deactivated")}}function ur(e,t){xe();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)gt(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),_e()}var lr=100,fr=[],dr=[],pr={},hr={},yr=!1,gr=!1,vr=0;function mr(){vr=fr.length=dr.length=0,pr={},hr={},yr=gr=!1}var br=Date.now;if(z&&!te){var Sr=window.performance;Sr&&"function"===typeof Sr.now&&br()>document.createEvent("Event").timeStamp&&(br=function(){return Sr.now()})}function xr(){var e,t;for(br(),gr=!0,fr.sort((function(e,t){return e.id-t.id})),vr=0;vr<fr.length;vr++)if(e=fr[vr],e.before&&e.before(),t=e.id,pr[t]=null,e.run(),null!=pr[t]&&(hr[t]=(hr[t]||0)+1,hr[t]>lr)){fe("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var n=dr.slice(),r=fr.slice();mr(),wr(n),_r(r),se&&H.devtools&&se.emit("flush")}function _r(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&ur(r,"updated")}}function Cr(e){e._inactive=!1,dr.push(e)}function wr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,sr(e[t],!0)}function Pr(e){var t=e.id;if(null==pr[t]){if(pr[t]=!0,gr){var n=fr.length-1;while(n>vr&&fr[n].id>e.id)n--;fr.splice(n+1,0,e)}else fr.push(e);if(!yr){if(yr=!0,!H.async)return void xr();At(xr)}}}var Lr=0,Tr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._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=++Lr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ue,this.newDepIds=new ue,this.expression=t.toString(),"function"===typeof t?this.getter=t:(this.getter=U(t),this.getter||(this.getter=E,fe('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};Tr.prototype.get=function(){var e;xe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Xi){if(!this.user)throw Xi;yt(Xi,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Xt(e),_e(),this.cleanupDeps()}return e},Tr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Tr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.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},Tr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Pr(this)},Tr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Xi){yt(Xi,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Tr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Tr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Tr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||S(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var Ar={enumerable:!0,configurable:!0,get:E,set:E};function Or(e,t,n){Ar.get=function(){return this[t][n]},Ar.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Ar)}function Yr(e){e._watchers=[];var t=e.$options;t.props&&Dr(e,t.props),t.methods&&Xr(e,t.methods),t.data?Mr(e):Ne(e._data={},!0),t.computed&&Er(e,t.computed),t.watch&&t.watch!==ie&&Jr(e,t.watch)}function Dr(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||ke(!1);var a=function(a){i.push(a);var s=rt(a,t,n,e),c=A(a);(b(c)||H.isReservedAttr(c))&&fe('"'+c+'" is a reserved attribute and cannot be used as component prop.',e),Ie(r,a,s,(function(){if(!o&&!tr){if("mp-baidu"===e.mpHost||"mp-kuaishou"===e.mpHost||"mp-xhs"===e.mpHost)return;if("value"===a&&Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field"))return;if(e._getFormData)return;var t=e.$parent;while(t){if(t.__next_tick_pending)return;t=t.$parent}fe("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',e)}})),a in e||Or(e,"_props",a)};for(var s in t)a(s);ke(!0)}function Mr(e){var t=e.$options.data;t=e._data="function"===typeof t?kr(t,e):t||{},f(t)||(t={},fe("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var n=Object.keys(t),r=e.$options.props,i=e.$options.methods,o=n.length;while(o--){var a=n[o];i&&_(i,a)&&fe('Method "'+a+'" has already been defined as a data property.',e),r&&_(r,a)?fe('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',e):G(a)||Or(e,"_data",a)}Ne(t,!0)}function kr(e,t){xe();try{return e.call(t,t)}catch(Xi){return yt(Xi,t,"data()"),{}}finally{_e()}}var Zr={lazy:!0};function Er(e,t){var n=e._computedWatchers=Object.create(null),r=ae();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;null==a&&fe('Getter is missing for computed property "'+i+'".',e),r||(n[i]=new Tr(e,a||E,E,Zr)),i in e?i in e.$data?fe('The computed property "'+i+'" is already defined in data.',e):e.$options.props&&i in e.$options.props&&fe('The computed property "'+i+'" is already defined as a prop.',e):Rr(e,i,o)}}function Rr(e,t,n){var r=!ae();"function"===typeof n?(Ar.get=r?Nr(t):Ir(n),Ar.set=E):(Ar.get=n.get?r&&!1!==n.cache?Nr(t):Ir(n.get):E,Ar.set=n.set||E),Ar.set===E&&(Ar.set=function(){fe('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,Ar)}function Nr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Se.SharedObject.target&&t.depend(),t.value}}function Ir(e){return function(){return e.call(this,this)}}function Xr(e,t){var n=e.$options.props;for(var r in t)"function"!==typeof t[r]&&fe('Method "'+r+'" has type "'+typeof t[r]+'" in the component definition. Did you reference the function correctly?',e),n&&_(n,r)&&fe('Method "'+r+'" has already been defined as a prop.',e),r in e&&G(r)&&fe('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),e[r]="function"!==typeof t[r]?E:D(t[r],e)}function Jr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Fr(e,n,r[i]);else Fr(e,n,r)}}function Fr(e,t,n,r){return f(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function Br(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};t.set=function(){fe("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){fe("$props is readonly.",this)},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Xe,e.prototype.$delete=Je,e.prototype.$watch=function(e,t,n){var r=this;if(f(t))return Fr(r,e,t,n);n=n||{},n.user=!0;var i=new Tr(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(o){yt(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var Hr=0;function jr(e){e.prototype._init=function(e){var t,n,r=this;r._uid=Hr++,H.performance&&Rt&&(t="vue-perf-start:"+r._uid,n="vue-perf-end:"+r._uid,Rt(t)),r._isVue=!0,e&&e._isComponent?Gr(r,e):r.$options=tt(Qr(r.constructor),e||{},r),St(r),r._self=r,rr(r),Un(r),Xn(r),ur(r,"beforeCreate"),!r._$fallback&&Vt(r),Yr(r),!r._$fallback&&qt(r),!r._$fallback&&ur(r,"created"),H.performance&&Rt&&(r._name=he(r,!1),Rt(n),Nt("vue "+r._name+" init",t,n)),r.$options.el&&r.$mount(r.$options.el)}}function Gr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Qr(e){var t=e.options;if(e.super){var n=Qr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=Wr(e);i&&k(e.extendOptions,i),t=e.options=tt(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Wr(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function Ur(e){this instanceof Ur||fe("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}function Kr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=M(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function $r(e){e.mixin=function(e){return this.options=tt(this.options,e),this}}function zr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;o&&$e(o);var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=tt(n.options,e),a["super"]=n,a.options.props&&qr(a),a.options.computed&&Vr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,F.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=k({},a.options),i[r]=a,a}}function qr(e){var t=e.options.props;for(var n in t)Or(e.prototype,"_props",n)}function Vr(e){var t=e.options.computed;for(var n in t)Rr(e.prototype,n,t[n])}function ei(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&$e(e),"component"===t&&f(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function ti(e){return e&&(e.Ctor.options.name||e.tag)}function ni(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function ri(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=ti(a.componentOptions);s&&!t(s)&&ii(n,o,r,i)}}}function ii(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,S(n,t)}jr(Ur),Br(Ur),Vn(Ur),ir(Ur),Bn(Ur);var oi=[String,RegExp,Array],ai={name:"keep-alive",abstract:!0,props:{include:oi,exclude:oi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)ii(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){ri(e,(function(e){return ni(t,e)}))})),this.$watch("exclude",(function(t){ri(e,(function(e){return!ni(t,e)}))}))},render:function(){var e=this.$slots.default,t=Wn(e),n=t&&t.componentOptions;if(n){var r=ti(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!ni(o,r))||a&&r&&ni(a,r))return t;var s=this,c=s.cache,u=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,S(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&ii(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},si={KeepAlive:ai};function ci(e){var t={get:function(){return H},set:function(){fe("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:k,mergeOptions:tt,defineReactive:Ie},e.set=Xe,e.delete=Je,e.nextTick=At,e.observable=function(e){return Ne(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,k(e.options.components,si),Kr(e),$r(e),zr(e),ei(e)}ci(Ur),Object.defineProperty(Ur.prototype,"$isServer",{get:ae}),Object.defineProperty(Ur.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ur,"FunctionalRenderContext",{value:_n}),Ur.version="2.6.11";var ui="[object Array]",li="[object Object]",fi="[object Null]",di="[object Undefined]";function pi(e,t){var n={};return hi(e,t),gi(e,t,"",n),n}function hi(e,t){if(e!==t){var n=mi(e),r=mi(t);if(n==li&&r==li){if(Object.keys(e).length>=Object.keys(t).length)for(var i in t){var o=e[i];void 0===o?e[i]=null:hi(o,t[i])}}else n==ui&&r==ui&&e.length>=t.length&&t.forEach((function(t,n){hi(e[n],t)}))}}function yi(e,t){return e!==fi&&e!==di||t!==fi&&t!==di}function gi(e,t,n,r){if(e!==t){var i=mi(e),o=mi(t);if(i==li)if(o!=li||Object.keys(e).length<Object.keys(t).length)vi(r,n,e);else{var a=function(i){var o=e[i],a=t[i],s=mi(o),c=mi(a);if(s!=ui&&s!=li)o!==t[i]&&yi(s,c)&&vi(r,(""==n?"":n+".")+i,o);else if(s==ui)c!=ui||o.length<a.length?vi(r,(""==n?"":n+".")+i,o):o.forEach((function(e,t){gi(e,a[t],(""==n?"":n+".")+i+"["+t+"]",r)}));else if(s==li)if(c!=li||Object.keys(o).length<Object.keys(a).length)vi(r,(""==n?"":n+".")+i,o);else for(var u in o)gi(o[u],a[u],(""==n?"":n+".")+i+"."+u,r)};for(var s in e)a(s)}else i==ui?o!=ui||e.length<t.length?vi(r,n,e):e.forEach((function(e,i){gi(e,t[i],n+"["+i+"]",r)})):vi(r,n,e)}}function vi(e,t,n){e[t]=n}function mi(e){return Object.prototype.toString.call(e)}function bi(e){if(e.__next_tick_callbacks&&e.__next_tick_callbacks.length){if(Object({NODE_ENV:"development",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"yui_wx",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var t=e.$scope;console.log("["+ +new Date+"]["+(t.is||t.route)+"]["+e._uid+"]:flushCallbacks["+e.__next_tick_callbacks.length+"]")}var n=e.__next_tick_callbacks.slice(0);e.__next_tick_callbacks.length=0;for(var r=0;r<n.length;r++)n[r]()}}function Si(e){return fr.find((function(t){return e._watcher===t}))}function xi(e,t){if(!e.__next_tick_pending&&!Si(e)){if(Object({NODE_ENV:"development",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"yui_wx",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var n=e.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+e._uid+"]:nextVueTick")}return At(t,e)}if(Object({NODE_ENV:"development",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"yui_wx",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var r=e.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+e._uid+"]:nextMPTick")}var i;if(e.__next_tick_callbacks||(e.__next_tick_callbacks=[]),e.__next_tick_callbacks.push((function(){if(t)try{t.call(e)}catch(Xi){yt(Xi,e,"nextTick")}else i&&i(e)})),!t&&"undefined"!==typeof Promise)return new Promise((function(e){i=e}))}function _i(e,t){return t&&(t._isVue||t.__v_isMPComponent)?{}:t}function Ci(e){var t=Object.create(null),n=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));n.reduce((function(t,n){return t[n]=e[n],t}),t);var r=e.__composition_api_state__||e.__secret_vfa_state__,i=r&&r.rawBindings;return i&&Object.keys(i).forEach((function(n){t[n]=e[n]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,_i))}var wi=function(e,t){var n=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=Ci(this)}catch(s){console.error(s)}i.__webviewId__=r.data.__webviewId__;var o=Object.create(null);Object.keys(i).forEach((function(e){o[e]=r.data[e]}));var a=!1===this.$shouldDiffData?i:pi(i,o);Object.keys(a).length?(Object({NODE_ENV:"development",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"yui_wx",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,bi(n)}))):bi(this)}};function Pi(){}function Li(e,t,n){if(!e.mpType)return e;"app"===e.mpType&&(e.$options.render=Pi),e.$options.render||(e.$options.render=Pi,e.$options.template&&"#"!==e.$options.template.charAt(0)||e.$options.el||t?fe("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):fe("Failed to mount component: template or render function not defined.",e)),!e._$fallback&&ur(e,"beforeMount");var r=function(){e._update(e._render(),n)};return new Tr(e,r,E,{before:function(){e._isMounted&&!e._isDestroyed&&ur(e,"beforeUpdate")}},!0),n=!1,e}function Ti(e,t){return i(e)||i(t)?Ai(e,Oi(t)):""}function Ai(e,t){return e?t?e+" "+t:e:t||""}function Oi(e){return Array.isArray(e)?Yi(e):c(e)?Di(e):"string"===typeof e?e:""}function Yi(e){for(var t,n="",r=0,o=e.length;r<o;r++)i(t=Oi(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Di(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Mi=C((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function ki(e){return Array.isArray(e)?Z(e):"string"===typeof e?Mi(e):e}var Zi=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Ei(e,t){var n=t.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?e[r]:Ei(e[r],n.slice(1).join("."))}function Ri(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),console.error(t);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,e,{__args__:M(arguments,1)})}catch(r){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return xi(this,e)},Zi.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=qt,e.prototype.__init_injections=Vt,e.prototype.__call_hook=function(e,t){var n=this;xe();var r,i=n.$options[e],o=e+" hook";if(i)for(var a=0,s=i.length;a<s;a++)r=gt(i[a],n,t?[t]:null,n,o);return n._hasHookEvent&&n.$emit("hook:"+e,t),_e(),r},e.prototype.__set_model=function(t,n,r,i){Array.isArray(i)&&(-1!==i.indexOf("trim")&&(r=r.trim()),-1!==i.indexOf("number")&&(r=this._n(r))),t||(t=this),e.set(t,n,r)},e.prototype.__set_sync=function(t,n,r){t||(t=this),e.set(t,n,r)},e.prototype.__get_orig=function(e){return f(e)&&e["$orig"]||e},e.prototype.__get_value=function(e,t){return Ei(t||this,e)},e.prototype.__get_class=function(e,t){return Ti(t,e)},e.prototype.__get_style=function(e,t){if(!e&&!t)return"";var n=ki(e),r=t?k(t,n):n;return Object.keys(r).map((function(e){return A(e)+":"+r[e]})).join(";")},e.prototype.__map=function(e,t){var n,r,i,o,a;if(Array.isArray(e)){for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);return n}if(c(e)){for(o=Object.keys(e),n=Object.create(null),r=0,i=o.length;r<i;r++)a=o[r],n[a]=t(e[a],a,r);return n}if("number"===typeof e){for(n=new Array(e),r=0,i=e;r<i;r++)n[r]=t(r,r);return n}return[]}}var Ni=["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"];function Ii(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==Ni.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;Ni.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=Ni}Ur.prototype.__patch__=wi,Ur.prototype.$mount=function(e,t){return Li(this,e,t)},Ii(Ur),Ri(Ur),t["default"]=Ur}.call(this,n(3))},26:function(e,t){},3:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},32:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s,c,u){var l,f="function"===typeof e?e.options:e;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in c)d.call(c,p)&&!d.call(f.components,p)&&(f.components[p]=c[p])}if(u&&("function"===typeof u.beforeCreate&&(u.beforeCreate=[u.beforeCreate]),(u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),o&&(f._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},f._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(f.functional){f._injectStyles=l;var h=f.render;f.render=function(e,t){return l.call(t),h(e,t)}}else{var y=f.beforeCreate;f.beforeCreate=y?[].concat(y,l):[l]}return{exports:e,options:f}}n.r(t),n.d(t,"default",(function(){return r}))},33:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(34)),a=r(n(35));i.default.use(o.default);var s=n(36),c=s.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),r=s(t);return e[n]=r.default,e}),{}),u=new o.default.Store({modules:c,getters:a.default}),l=u;t.default=l},34:function(e,t,n){"use strict";(function(t){
- /*!
- * vuex v3.6.2
- * (c) 2021 Evan You
- * @license MIT
- */
- function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},i=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=s(e[n],t)})),r}function c(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function l(e){return e&&"function"===typeof e.then}function f(e,t){if(!e)throw new Error("[vuex] "+t)}function d(e,t){return function(){return e(t)}}var p=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},h={namespaced:{configurable:!0}};h.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},p.prototype.forEachChild=function(e){c(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,h);var y=function(e){this.register([],e,!1)};function g(e,t,n){if(x(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");g(e.concat(r),t.getChild(r),n.modules[r])}}y.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},y.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},y.prototype.update=function(e){g([],this.root,e)},y.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0),x(e,t);var i=new p(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&c(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},y.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r?r.runtime&&t.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},y.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v,m={assert:function(e){return"function"===typeof e},expected:"function"},b={assert:function(e){return"function"===typeof e||"object"===typeof e&&"function"===typeof e.handler},expected:'function or object with "handler" function'},S={getters:m,mutations:m,actions:b};function x(e,t){Object.keys(S).forEach((function(n){if(t[n]){var r=S[n];c(t[n],(function(t,i){f(r.assert(t),_(e,n,i,t,r.expected))}))}}))}function _(e,t,n,r,i){var o=t+" should be "+i+' but "'+t+"."+n+'"';return e.length>0&&(o+=' in module "'+e.join(".")+'"'),o+=" is "+JSON.stringify(r)+".",o}var C=function e(t){var n=this;void 0===t&&(t={}),!v&&"undefined"!==typeof window&&window.Vue&&N(window.Vue),f(v,"must call Vue.use(Vuex) before creating a store instance."),f("undefined"!==typeof Promise,"vuex requires a Promise polyfill in this browser."),f(this instanceof e,"store must be called with the new operator.");var r=t.plugins;void 0===r&&(r=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new y(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var a=this,s=this,c=s.dispatch,u=s.commit;this.dispatch=function(e,t){return c.call(a,e,t)},this.commit=function(e,t,n){return u.call(a,e,t,n)},this.strict=i;var l=this._modules.root.state;A(this,l,[],this._modules.root),T(this,l),r.forEach((function(e){return e(n)}));var d=void 0!==t.devtools?t.devtools:v.config.devtools;d&&o(this)},w={state:{configurable:!0}};function P(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function L(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;A(e,n,[],e._modules.root,!0),T(e,n,t)}function T(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};c(i,(function(t,n){o[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=a,e.strict&&Z(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function A(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a]&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[a]=r),!o&&!i){var s=E(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){c in s&&console.warn('[vuex] state field "'+c+'" was overridden by a module with the same name at "'+n.join(".")+'"'),v.set(s,c,r.state)}))}var u=r.context=O(e,a,n);r.forEachMutation((function(t,n){var r=a+n;D(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;M(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;k(e,r,t,u)})),r.forEachChild((function(r,o){A(e,t,n.concat(o),r,i)}))}function O(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=R(n,r,i),a=o.payload,s=o.options,c=o.type;if(s&&s.root||(c=t+c,e._actions[c]))return e.dispatch(c,a);console.error("[vuex] unknown local action type: "+o.type+", global type: "+c)},commit:r?e.commit:function(n,r,i){var o=R(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c,e._mutations[c])?e.commit(c,a,s):console.error("[vuex] unknown local mutation type: "+o.type+", global type: "+c)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return Y(e,t)}},state:{get:function(){return E(e.state,n)}}}),i}function Y(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function D(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function M(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return l(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function k(e,t,n,r){e._wrappedGetters[t]?console.error("[vuex] duplicate getter key: "+t):e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}function Z(e){e._vm.$watch((function(){return this._data.$$state}),(function(){f(e._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,sync:!0})}function E(e,t){return t.reduce((function(e,t){return e[t]}),e)}function R(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),f("string"===typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}function N(e){v&&e===v?console.error("[vuex] already installed. Vue.use(Vuex) should be called only once."):(v=e,n(v))}w.state.get=function(){return this._vm._data.$$state},w.state.set=function(e){f(!1,"use store.replaceState() to explicit replace store state.")},C.prototype.commit=function(e,t,n){var r=this,i=R(e,t,n),o=i.type,a=i.payload,s=i.options,c={type:o,payload:a},u=this._mutations[o];u?(this._withCommit((function(){u.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(c,r.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+o)},C.prototype.dispatch=function(e,t){var n=this,r=R(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){console.warn("[vuex] error in before action subscribers: "),console.error(u)}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){console.warn("[vuex] error in after action subscribers: "),console.error(u)}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){console.warn("[vuex] error in error action subscribers: "),console.error(u)}t(e)}))}))}console.error("[vuex] unknown action type: "+i)},C.prototype.subscribe=function(e,t){return P(e,this._subscribers,t)},C.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return P(n,this._actionSubscribers,t)},C.prototype.watch=function(e,t,n){var r=this;return f("function"===typeof e,"store.watch only accepts a function."),this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},C.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},C.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),f(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),A(this,this.state,e,this._modules.get(e),n.preserveState),T(this,this.state)},C.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){var n=E(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),L(this)},C.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},C.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),L(this,!0)},C.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(C.prototype,w);var I=G((function(e,t){var n={};return j(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),H(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=Q(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),X=G((function(e,t){var n={};return j(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),H(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=Q(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),J=G((function(e,t){var n={};return j(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),H(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||Q(this.$store,"mapGetters",e)){if(i in this.$store.getters)return this.$store.getters[i];console.error("[vuex] unknown getter: "+i)}},n[r].vuex=!0})),n})),F=G((function(e,t){var n={};return j(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),H(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=Q(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),B=function(e){return{mapState:I.bind(null,e),mapGetters:J.bind(null,e),mapMutations:X.bind(null,e),mapActions:F.bind(null,e)}};function H(e){return j(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function j(e){return Array.isArray(e)||u(e)}function G(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Q(e,t,n){var r=e._modulesNamespaceMap[n];return r||console.error("[vuex] module namespace not found in "+t+"(): "+n),r}function W(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var u=e.logActions;void 0===u&&(u=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var f=s(e.state);"undefined"!==typeof l&&(c&&e.subscribe((function(e,o){var a=s(o);if(n(e,f,a)){var c=$(),u=i(e),d="mutation "+e.type+c;U(l,d,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),K(l)}f=a})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var r=$(),i=a(e),s="action "+e.type+r;U(l,s,t),l.log("%c action","color: #03A9F4; font-weight: bold",i),K(l)}})))}}function U(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function K(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function $(){var e=new Date;return" @ "+q(e.getHours(),2)+":"+q(e.getMinutes(),2)+":"+q(e.getSeconds(),2)+"."+q(e.getMilliseconds(),3)}function z(e,t){return new Array(t+1).join(e)}function q(e,t){return z("0",t-e.toString().length)+e}var V={Store:C,install:N,version:"3.6.2",mapState:I,mapMutations:X,mapGetters:J,mapActions:F,createNamespacedHelpers:B,createLogger:W};e.exports=V}).call(this,n(3))},35:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={codeNumber:function(e){return e.app.codeNumber},user:function(e){return e.app.user},organization:function(e){return e.app.organization},project:function(e){return e.app.project},identity:function(e){return e.app.identity},coordinates:function(e){return e.app.coordinates},activeCity:function(e){return e.app.activeCity}},i=r;t.default=i},36:function(e,t,n){var r={"./app.js":37};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=36},37:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={user:{},organization:{},project:{},codeNumber:60,identity:{},coordinates:"116.38,39.9",activeCity:{cityName:"北京市",cityCode:"110100"}},i={CHANGE_USER:function(e,t){e.user=t},CHANGE_ORGANIZATION:function(e,t){e.organization=t},CHANGE_PROJECT:function(e,t){e.project=t},CHANGE_CODENUMBER:function(e,t){e.codeNumber=t},CHANGE_IDENTITY:function(e,t){e.identity=t},CHANGE_COORDINATES:function(e,t){e.coordinates=t},CHANGE_ACTIVECITY:function(e,t){e.activeCity=t}},o={changeUser:function(e,t){var n=e.commit;n("CHANGE_USER",t)},changeOrganization:function(e,t){var n=e.commit;n("CHANGE_ORGANIZATION",t)},changeProject:function(e,t){var n=e.commit;n("CHANGE_PROJECT",t)},changeCodeNumber:function(e,t){var n=e.commit;n("CHANGE_CODENUMBER",t<0?60:t)},changeIdentity:function(e,t){var n=e.commit;n("CHANGE_IDENTITY",t)},changeCoordinates:function(e,t){var n=e.commit;n("CHANGE_COORDINATES",t)},changeActiveCity:function(e,t){var n=e.commit;n("CHANGE_ACTIVECITY",t)}},a={namespaced:!0,state:r,mutations:i,actions:o};t.default=a},371:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInvoiceDetailById=o,t.getInvoiceListByPage=i;var r=n(45);function i(e){return(0,r.request)({url:"/api/payment/invoice/".concat(e.currPage,"/").concat(e.pageSize),method:"post",data:e})}function o(e){return(0,r.request)({url:"/api/payment/invoice/".concat(e,"/"),method:"get"})}},38:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.dayjs=void 0;var i=r(n(13)),o=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",a="minute",s="hour",c="day",u="week",l="month",f="quarter",d="year",p="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),o=n-i<0,a=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:u,d:c,D:p,h:s,m:a,s:o,ms:r,Q:f}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},S="en",x={};x[S]=v;var _=function(e){return e instanceof L},C=function e(t,n,r){var i;if(!t)return S;if("string"==typeof t){var o=t.toLowerCase();x[o]&&(i=o),n&&(x[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(S=i),i||!r&&S},w=function(e,t){if(_(e))return e.clone();var n="object"==(0,i.default)(t)?t:{};return n.date=e,n.args=arguments,new L(n)},P=b;P.l=C,P.i=_,P.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var L=function(){function i(e){this.$L=C(e.locale,null,!0),this.parse(e)}var v=i.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(y);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return P},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return w(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<w(e)},v.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!P.u(t)||t,i=P.p(e),f=function(e,t){var i=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(c)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},y=this.$W,g=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(i){case d:return r?f(1,0):f(31,11);case l:return r?f(1,g):f(0,g+1);case u:var b=this.$locale().weekStart||0,S=(y<b?y+7:y)-b;return f(r?v-S:v+(6-S),g);case c:case p:return h(m+"Hours",0);case s:return h(m+"Minutes",1);case a:return h(m+"Seconds",2);case o:return h(m+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,i=P.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[c]=u+"Date",n[p]=u+"Date",n[l]=u+"Month",n[d]=u+"FullYear",n[s]=u+"Hours",n[a]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[i],h=i===c?this.$D+(t-this.$W):t;if(i===l||i===d){var y=this.clone().set(p,1);y.$d[f](h),y.init(),this.$d=y.set(p,Math.min(this.$D,y.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[P.p(e)]()},v.add=function(r,i){var f,p=this;r=Number(r);var h=P.p(i),y=function(e){var t=w(p);return P.w(t.date(t.date()+Math.round(e*r)),p)};if(h===l)return this.set(l,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===c)return y(1);if(h===u)return y(7);var g=(f={},f[a]=t,f[s]=n,f[o]=e,f)[h]||1,v=this.$d.getTime()+r*g;return P.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=P.z(this),o=this.$H,a=this.$m,s=this.$M,c=n.weekdays,u=n.months,l=n.meridiem,f=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},d=function(e){return P.s(o%12||12,e,"0")},p=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return P.s(t.$y,4,"0");case"M":return s+1;case"MM":return P.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,u,3);case"MMMM":return f(u,s);case"D":return t.$D;case"DD":return P.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,c,2);case"ddd":return f(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return P.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(o,a,!0);case"A":return p(o,a,!1);case"m":return String(a);case"mm":return P.s(a,2,"0");case"s":return String(t.$s);case"ss":return P.s(t.$s,2,"0");case"SSS":return P.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,i,p){var h,y=this,g=P.p(i),v=w(r),m=(v.utcOffset()-this.utcOffset())*t,b=this-v,S=function(){return P.m(y,v)};switch(g){case d:h=S()/12;break;case l:h=S();break;case f:h=S()/3;break;case u:h=(b-m)/6048e5;break;case c:h=(b-m)/864e5;break;case s:h=b/n;break;case a:h=b/t;break;case o:h=b/e;break;default:h=b}return p?h:P.a(h)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return P.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},i}(),T=L.prototype;return w.prototype=T,[["$ms",r],["$s",o],["$m",a],["$H",s],["$W",c],["$M",l],["$y",d],["$D",p]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,L,w),e.$i=!0),w},w.locale=C,w.isDayjs=_,w.unix=function(e){return w(1e3*e)},w.en=x[S],w.Ls=x,w.p={},w},a=o();t.dayjs=a},39:function(e,t,n){"use strict";e.exports=n(40)},4:function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},40:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o,a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function s(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function l(e){var t;re(e,null===(t=k())||void 0===t?void 0:t.proxy)}var f=[],d=function(){function e(e){this.active=!0,this.effects=[],this.cleanups=[],this.vm=e}return e.prototype.run=function(e){if(this.active)try{return this.on(),e()}finally{this.off()}else l("cannot run an inactive effect scope.")},e.prototype.on=function(){this.active&&(f.push(this),o=this)},e.prototype.off=function(){this.active&&(f.pop(),o=f[f.length-1])},e.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(e){return e.stop()})),this.cleanups.forEach((function(e){return e()})),this.active=!1)},e}(),p=function(e){function t(t){void 0===t&&(t=!1);var n=this,r=void 0;return D((function(){r=se(A())})),n=e.call(this,r)||this,t||h(n),n}return i(t,e),t}(d);function h(e,t){var n;if(t=t||o,t&&t.active)t.effects.push(e);else{var r=null===(n=k())||void 0===n?void 0:n.proxy;r&&r.$on("hook:destroyed",(function(){return e.stop()}))}}function y(e){return new p(e)}function g(){return o}function v(e){o?o.cleanups.push(e):l("onScopeDispose() is called when there is no active effect scope to be associated with.")}function m(){var e,t;return(null===(e=g())||void 0===e?void 0:e.vm)||(null===(t=k())||void 0===t?void 0:t.proxy)}function b(e){if(!e.scope){var t=new d(e.proxy);e.scope=t,e.proxy.$on("hook:destroyed",(function(){return t.stop()}))}return e.scope}var S=void 0;try{var x=n(25);x&&L(x)?S=x:x&&"default"in x&&L(x.default)&&(S=x.default)}catch(sn){}var _=null,C=null,w=!0,P="__composition_api_installed__";function L(e){return e&&te(e)&&"Vue"===e.name}function T(e){return _&&B(e,P)}function A(){return H(_,"must call Vue.use(VueCompositionAPI) before using any function."),_}function O(){var e=_||S;return H(e,"No vue dependency found."),e}function Y(e){_&&e.__proto__!==_.__proto__&&re("[vue-composition-api] another instance of Vue installed"),_=e,Object.defineProperty(e,P,{configurable:!0,writable:!0,value:!0})}function D(e){var t=w;w=!1;try{e()}finally{w=t}}function M(e){if(w){var t=C;null===t||void 0===t||t.scope.off(),C=e,null===C||void 0===C||C.scope.on()}}function k(){return C}var Z=new WeakMap;function E(e){if(Z.has(e))return Z.get(e);var t={proxy:e,update:e.$forceUpdate,type:e.$options,uid:e._uid,emit:e.$emit.bind(e),parent:null,root:null};b(t);var n=["data","props","attrs","refs","vnode","slots"];return n.forEach((function(n){J(t,n,{get:function(){return e["$".concat(n)]}})})),J(t,"isMounted",{get:function(){return e._isMounted}}),J(t,"isUnmounted",{get:function(){return e._isDestroyed}}),J(t,"isDeactivated",{get:function(){return e._inactive}}),J(t,"emitted",{get:function(){return e._events}}),Z.set(e,t),e.$parent&&(t.parent=E(e.$parent)),e.$root&&(t.root=E(e.$root)),t}var R=function(e){return Object.prototype.toString.call(e)};function N(e){return"function"===typeof e&&/native code/.test(e.toString())}var I="undefined"!==typeof Symbol&&N(Symbol)&&"undefined"!==typeof Reflect&&N(Reflect.ownKeys),X=function(e){return e};function J(e,t,n){var r=n.get,i=n.set;Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:r||X,set:i||X})}function F(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function B(e,t){return Object.hasOwnProperty.call(e,t)}function H(e,t){if(!e)throw new Error("[vue-composition-api] ".concat(t))}function j(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function G(e){return Array.isArray(e)}var Q,W=Object.prototype.toString,U=function(e){return W.call(e)},K=function(e){return"[object Map]"===U(e)},$=function(e){return"[object Set]"===U(e)},z=4294967295;function q(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)&&t<=z}function V(e){return null!==e&&"object"===typeof e}function ee(e){return"[object Object]"===R(e)}function te(e){return"function"===typeof e}function ne(e){return void 0===e||null===e}function re(e,t){var n=O();n&&n.util?n.util.warn(e,t):console.warn("[vue-composition-api] ".concat(e))}function ie(e,t,n){if(re("Error in ".concat(n,': "').concat(e.toString(),'"'),t),"undefined"===typeof window||"undefined"===typeof console)throw e;console.error(e)}function oe(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function ae(e,t){return t=t||k(),t||re("".concat(e," is called when there is no active component instance to be ")+"associated with. Lifecycle injection APIs can only be used during execution of setup()."),t}function se(e,t){void 0===t&&(t={});var n=e.config.silent;e.config.silent=!0;var r=new e(t);return e.config.silent=n,r}function ce(e){var t=A();return t&&e instanceof t}function ue(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.$scopedSlots[t]?e.$scopedSlots[t].apply(e,n):re("slots.".concat(t,'() got called outside of the "render()" scope'),e)}}function le(e,t){var n;if(e){if(e._normalized)return e._normalized;for(var r in n={},e)e[r]&&"$"!==r[0]&&(n[r]=!0)}else n={};for(var r in t)r in n||(n[r]=!0);return n}var fe=function(){if(!Q){var e=se(A(),{computed:{value:function(){return 0}}}),t=e._computedWatchers.value.constructor,n=e._data.__ob__.dep.constructor;Q={Watcher:t,Dep:n},e.$destroy()}return Q};function de(e){return I?Symbol.for(e):e}var pe=de("composition-api.preFlushQueue"),he=de("composition-api.postFlushQueue"),ye="composition-api.refKey",ge=new WeakMap,ve=new WeakMap,me=new WeakMap;function be(e,t,n){var r=A(),i=r.util,o=i.warn,a=i.defineReactive;(ne(e)||j(e))&&o("Cannot set reactive property on undefined, null, or primitive value: ".concat(e));var s=e.__ob__;function c(){s&&V(n)&&!B(n,"__ob__")&&Je(n)}if(G(e)){if(q(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),c(),n;if("length"===t&&n!==e.length)return e.length=n,null===s||void 0===s||s.dep.notify(),n}return t in e&&!(t in Object.prototype)?(e[t]=n,c(),n):e._isVue||s&&s.vmCount?(o("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):s?(a(s.value,t,n),Ie(e,t,n),c(),s.dep.notify(),n):(e[t]=n,n)}var Se=!1;function xe(){return Se}function _e(e){Se=e}var Ce=function(){function e(e){var t=e.get,n=e.set;J(this,"value",{get:t,set:n})}return e}();function we(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new Ce(e);n&&(r.effect=!0);var i=Object.seal(r);return t&&me.set(i,!0),i}function Pe(e){var t;if(Le(e))return e;var n=je((t={},t[ye]=e,t));return we({get:function(){return n[ye]},set:function(e){return n[ye]=e}})}function Le(e){return e instanceof Ce}function Te(e){return Le(e)?e.value:e}function Ae(e){if(Re(e)||re("toRefs() expects a reactive object but received a plain one."),!ee(e))return e;var t={};for(var n in e)t[n]=Ye(e,n);return t}function Oe(e){var t=Pe(0);return we(e((function(){t.value}),(function(){++t.value})))}function Ye(e,t){t in e||be(e,t,void 0);var n=e[t];return Le(n)?n:we({get:function(){return e[t]},set:function(n){return e[t]=n}})}function De(e){var t;if(Le(e))return e;var n=He((t={},t[ye]=e,t));return we({get:function(){return n[ye]},set:function(e){return n[ye]=e}})}function Me(e){Le(e)&&(_e(!0),e.value=e.value,_e(!1))}function ke(e){var t,n,r;if(Re(e))return e;var i=je((t={},t[ye]=e,t));F(i,ye,i[ye],!1);var o=function(e){J(i,e,{get:function(){return Le(i[ye][e])?i[ye][e].value:i[ye][e]},set:function(t){if(Le(i[ye][e]))return i[ye][e].value=Te(t);i[ye][e]=Te(t)}})};try{for(var a=s(Object.keys(e)),c=a.next();!c.done;c=a.next()){var u=c.value;o(u)}}catch(l){n={error:l}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}var Ze="__v_skip";function Ee(e){var t;return Boolean(e&&B(e,"__ob__")&&"object"===typeof e.__ob__&&(null===(t=e.__ob__)||void 0===t?void 0:t[Ze]))}function Re(e){var t;return Boolean(e&&B(e,"__ob__")&&"object"===typeof e.__ob__&&!(null===(t=e.__ob__)||void 0===t?void 0:t[Ze]))}function Ne(e){if(!(!ee(e)||Ee(e)||G(e)||Le(e)||ce(e)||ge.has(e))){ge.set(e,!0);for(var t=Object.keys(e),n=0;n<t.length;n++)Ie(e,t[n])}}function Ie(e,t,n){if("__ob__"!==t&&!Ee(e[t])){var r,i,o=Object.getOwnPropertyDescriptor(e,t);if(o){if(!1===o.configurable)return;r=o.get,i=o.set,r&&!i||2!==arguments.length||(n=e[t])}Ne(n),J(e,t,{get:function(){var i=r?r.call(e):n;return t!==ye&&Le(i)?i.value:i},set:function(o){r&&!i||(t!==ye&&Le(n)&&!Le(o)?n.value=o:i?(i.call(e,o),n=o):n=o,Ne(o))}})}}function Xe(e){var t,n=O();if(n.observable)t=n.observable(e);else{var r=se(n,{data:{$$state:e}});t=r._data.$$state}return B(t,"__ob__")||Je(t),t}function Je(e,t){var n,r;if(void 0===t&&(t=new Set),!t.has(e)&&!B(e,"__ob__")&&Object.isExtensible(e)){F(e,"__ob__",Fe(e)),t.add(e);try{for(var i=s(Object.keys(e)),o=i.next();!o.done;o=i.next()){var a=o.value,c=e[a];(ee(c)||G(c))&&!Ee(c)&&Object.isExtensible(c)&&Je(c,t)}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}function Fe(e){return void 0===e&&(e={}),{value:e,dep:{notify:X,depend:X,addSub:X,removeSub:X}}}function Be(){return Xe({}).__ob__}function He(e){var t,n;if(!V(e))return re('"shallowReactive()" must be called on an object.'),e;if(!ee(e)&&!G(e)||Ee(e)||!Object.isExtensible(e))return e;var r=Xe(G(e)?[]:{}),i=r.__ob__,o=function(t){var n,o,a=e[t],s=Object.getOwnPropertyDescriptor(e,t);if(s){if(!1===s.configurable)return"continue";n=s.get,o=s.set}J(r,t,{get:function(){var e;return null===(e=i.dep)||void 0===e||e.depend(),a},set:function(t){var r;n&&!o||(xe()||a!==t)&&(o?o.call(e,t):a=t,null===(r=i.dep)||void 0===r||r.notify())}})};try{for(var a=s(Object.keys(e)),c=a.next();!c.done;c=a.next()){var u=c.value;o(u)}}catch(l){t={error:l}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function je(e){if(!V(e))return re('"reactive()" must be called on an object.'),e;if(!ee(e)&&!G(e)||Ee(e)||!Object.isExtensible(e))return e;var t=Xe(e);return Ne(t),t}function Ge(e){if(!ee(e)&&!G(e)||!Object.isExtensible(e))return e;var t=Be();return t[Ze]=!0,F(e,"__ob__",t),ve.set(e,!0),e}function Qe(e){var t;return Ee(e)||!Object.isExtensible(e)?e:(null===(t=null===e||void 0===e?void 0:e.__ob__)||void 0===t?void 0:t.value)||e}function We(e){return me.has(e)}function Ue(e){return V(e)?me.set(e,!0):re("value cannot be made reactive: ".concat(String(e))),e}function Ke(e){var t,n;if(!V(e))return re("value cannot be made reactive: ".concat(String(e))),e;if(!ee(e)&&!G(e)||!Object.isExtensible(e)&&!Le(e))return e;var r=Le(e)?new Ce({}):Re(e)?Xe({}):{},i=je({}),o=i.__ob__,a=function(t){var n,i=e[t],a=Object.getOwnPropertyDescriptor(e,t);if(a){if(!1===a.configurable&&!Le(e))return"continue";n=a.get}J(r,t,{get:function(){var t=n?n.call(e):i;return o.dep.depend(),t},set:function(e){re('Set operation on key "'.concat(t,'" failed: target is readonly.'))}})};try{for(var c=s(Object.keys(e)),u=c.next();!u.done;u=c.next()){var l=u.value;a(l)}}catch(f){t={error:f}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return me.set(r,!0),r}function $e(e,t){var n=A(),r=n.util.warn;if((ne(e)||j(e))&&r("Cannot delete reactive property on undefined, null, or primitive value: ".concat(e)),G(e)&&q(t))e.splice(t,1);else{var i=e.__ob__;e._isVue||i&&i.vmCount?r("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):B(e,t)&&(delete e[t],i&&i.dep.notify())}}var ze=function(e){return"on".concat(e[0].toUpperCase()+e.slice(1))};function qe(e){return function(t,n){var r=ae(ze(e),n);return r&&Ve(A(),r,e,t)}}function Ve(e,t,n,r){var i=t.proxy.$options,o=e.config.optionMergeStrategies[n],a=et(t,r);return i[n]=o(i[n],a),a}function et(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=k();M(e);try{return t.apply(void 0,u([],c(n),!1))}finally{M(i)}}}var tt,nt=qe("beforeMount"),rt=qe("mounted"),it=qe("beforeUpdate"),ot=qe("updated"),at=qe("beforeDestroy"),st=qe("destroyed"),ct=qe("errorCaptured"),ut=qe("activated"),lt=qe("deactivated"),ft=qe("serverPrefetch");function dt(){bt(this,pe)}function pt(){bt(this,he)}function ht(e){return void 0!==e[pe]}function yt(e){e[pe]=[],e[he]=[],e.$on("hook:beforeUpdate",dt),e.$on("hook:updated",pt)}function gt(e){return a({immediate:!1,deep:!1,flush:"pre"},e)}function vt(e){return a({flush:"pre"},e)}function mt(){var e=m();return e?ht(e)||yt(e):(tt||(tt=se(A())),e=tt),e}function bt(e,t){for(var n=e[t],r=0;r<n.length;r++)n[r]();n.length=0}function St(e,t,n){var r=function(){e.$nextTick((function(){e[pe].length&&bt(e,pe),e[he].length&&bt(e,he)}))};switch(n){case"pre":r(),e[pe].push(t);break;case"post":r(),e[he].push(t);break;default:H(!1,'flush must be one of ["post", "pre", "sync"], but got '.concat(n));break}}function xt(e,t,n,r){var i=e._watchers.length;return e.$watch(t,n,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),e._watchers[i]}function _t(e,t){var n=e.teardown;e.teardown=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n.apply(e,r),t()}}function Ct(e,t,n,r){var i;n||(void 0!==r.immediate&&re('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==r.deep&&re('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));var o,a=r.flush,s="sync"===a,l=function(t){o=function(){try{t()}catch(n){ie(n,e,"onCleanup()")}}},f=function(){o&&(o(),o=null)},d=function(t){return s||e===tt?t:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return St(e,(function(){t.apply(void 0,u([],c(n),!1))}),a)}};if(null===n){var p=!1,h=function(){if(!p)try{p=!0,t(l)}finally{p=!1}},y=xt(e,h,X,{deep:r.deep||!1,sync:s,before:f});_t(y,f),y.lazy=!1;var g=y.get.bind(y);return y.get=d(g),function(){y.teardown()}}var v,m=r.deep,b=!1;if(Le(t)?v=function(){return t.value}:Re(t)?(v=function(){return t},m=!0):G(t)?(b=!0,v=function(){return t.map((function(t){return Le(t)?t.value:Re(t)?At(t):te(t)?t():(re("Invalid watch source: ".concat(JSON.stringify(t),".\n A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."),e),X)}))}):te(t)?v=t:(v=X,re("Invalid watch source: ".concat(JSON.stringify(t),".\n A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."),e)),m){var S=v;v=function(){return At(S())}}var x=function(e,t){if(m||!b||!e.every((function(e,n){return oe(e,t[n])})))return f(),n(e,t,l)},_=d(x);if(r.immediate){var C=_,w=function(e,t){return w=C,x(e,G(e)?[]:t)};_=function(e,t){return w(e,t)}}var P=e.$watch(v,_,{immediate:r.immediate,deep:m,sync:s}),L=e._watchers[e._watchers.length-1];return Re(L.value)&&(null===(i=L.value.__ob__)||void 0===i?void 0:i.dep)&&m&&L.value.__ob__.dep.addSub({update:function(){L.run()}}),_t(L,f),function(){P()}}function wt(e,t){var n=vt(t),r=mt();return Ct(r,e,null,n)}function Pt(e){return wt(e,{flush:"post"})}function Lt(e){return wt(e,{flush:"sync"})}function Tt(e,t,n){var r=null;te(t)?r=t:(re("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),n=t,r=null);var i=gt(n),o=mt();return Ct(o,e,r,i)}function At(e,t){if(void 0===t&&(t=new Set),!V(e)||t.has(e)||ve.has(e))return e;if(t.add(e),Le(e))At(e.value,t);else if(G(e))for(var n=0;n<e.length;n++)At(e[n],t);else if($(e)||K(e))e.forEach((function(e){At(e,t)}));else if(ee(e))for(var r in e)At(e[r],t);return e}function Ot(e){var t,n,r,i,o=m();if(te(e)?t=e:(t=e.get,n=e.set),o&&!o.$isServer){var a,s=fe(),c=s.Watcher,u=s.Dep;i=function(){return a||(a=new c(o,t,X,{lazy:!0})),a.dirty&&a.evaluate(),u.target&&a.depend(),a.value},r=function(e){n?n&&n(e):re("Write operation failed: computed value is readonly.",o)}}else{var l=se(A(),{computed:{$$state:{get:t,set:n}}});o&&o.$on("hook:destroyed",(function(){return l.$destroy()})),i=function(){return l.$$state},r=function(e){n?l.$$state=e:re("Write operation failed: computed value is readonly.",o)}}return we({get:i,set:r},!n,!0)}var Yt={};function Dt(e,t){var n=t;while(n){if(n._provided&&B(n._provided,e))return n._provided[e];n=n.$parent}return Yt}function Mt(e,t){var n,r=null===(n=ae("provide"))||void 0===n?void 0:n.proxy;if(r){if(!r._provided){var i={};J(r,"_provided",{get:function(){return i},set:function(e){return Object.assign(i,e)}})}r._provided[e]=t}}function kt(e,t,n){var r;void 0===n&&(n=!1);var i=null===(r=k())||void 0===r?void 0:r.proxy;if(i){if(!e)return re('injection "'.concat(String(e),'" not found.'),i),t;var o=Dt(e,i);return o!==Yt?o:arguments.length>1?n&&te(t)?t():t:void re('Injection "'.concat(String(e),'" not found.'),i)}re("inject() can only be used inside setup() or functional components.")}var Zt=Object.freeze({}),Et=function(e){var t;void 0===e&&(e="$style");var n=k();if(!n)return re("useCssModule must be called inside setup()"),Zt;var r=null===(t=n.proxy)||void 0===t?void 0:t[e];return r||(re('Current instance does not have CSS module named "'.concat(e,'".')),Zt)},Rt=Et;function Nt(e,t){void 0===t&&(t=void 0);var n=A(),r=void 0,i={},o={config:n.config,use:n.use.bind(n),mixin:n.mixin.bind(n),component:n.component.bind(n),provide:function(e,t){return i[e]=t,this},directive:function(e,t){return t?(n.directive(e,t),o):n.directive(e)},mount:function(o,s){return r?(re("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`"),r):(r=new n(a(a({propsData:t},e),{provide:a(a({},i),e.provide)})),r.$mount(o,s),r)},unmount:function(){r?(r.$destroy(),r=void 0):re("Cannot unmount an app that is not mounted.")}};return o}var It,Xt=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null===(e=A())||void 0===e?void 0:e.nextTick.apply(this,t)},Jt=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=(null===this||void 0===this?void 0:this.proxy)||(null===(e=k())||void 0===e?void 0:e.proxy);return r?r.$createElement.apply(r,t):(re("`createElement()` has been called outside of render function."),It||(It=se(A()).$createElement),It.apply(It,t))};function Ft(){return Ht().slots}function Bt(){return Ht().attrs}function Ht(){var e=k();return e||re("useContext() called without active instance."),e.setupContext}function jt(e,t,n){var r=e.__composition_api_state__=e.__composition_api_state__||{};r[t]=n}function Gt(e,t){return(e.__composition_api_state__||{})[t]}var Qt={set:jt,get:Gt};function Wt(e,t,n){var r=e.$options.props;t in e||r&&B(r,t)?r&&B(r,t)?re('The setup binding property "'.concat(t,'" is already declared as a prop.'),e):re('The setup binding property "'.concat(t,'" is already declared.'),e):(Le(n)?J(e,t,{get:function(){return n.value},set:function(e){n.value=e}}):J(e,t,{get:function(){return Re(n)&&n.__ob__.dep.depend(),n},set:function(e){n=e}}),e.$nextTick((function(){-1===Object.keys(e._data).indexOf(t)&&(Le(n)?J(e._data,t,{get:function(){return n.value},set:function(e){n.value=e}}):J(e._data,t,{get:function(){return n},set:function(e){n=e}}))})))}function Ut(e){var t=Qt.get(e,"rawBindings")||{};if(t&&Object.keys(t).length){for(var n=e.$refs,r=Qt.get(e,"refs")||[],i=0;i<r.length;i++){var o=r[i],a=t[o];!n[o]&&a&&Le(a)&&(a.value=null)}var s=Object.keys(n),c=[];for(i=0;i<s.length;i++){o=s[i],a=t[o];n[o]&&a&&Le(a)&&(a.value=n[o],c.push(o))}Qt.set(e,"refs",c)}}function Kt(e){var t,n=[e._vnode];while(n.length){var r=n.pop();if(r&&(r.context&&(Ut(r.context),t=!0),r.children))for(var i=0;i<r.children.length;++i)n.push(r.children[i])}t||Ut(e)}function $t(e,t){var n,r;if(e){var i=Qt.get(e,"attrBindings");if(i||t){if(!i){var o=je({});i={ctx:t,data:o},Qt.set(e,"attrBindings",i),J(t,"attrs",{get:function(){return null===i||void 0===i?void 0:i.data},set:function(){re("Cannot assign to '$attrs' because it is a read-only property",e)}})}var a=e.$attrs,c=function(t){B(i.data,t)||J(i.data,t,{get:function(){return e.$attrs[t]}})};try{for(var u=s(Object.keys(a)),l=u.next();!l.done;l=u.next()){var f=l.value;c(f)}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}}function zt(e,t){var n=e.$options._parentVnode;if(n){for(var r=Qt.get(e,"slots")||[],i=le(n.data.scopedSlots,e.$slots),o=0;o<r.length;o++){var a=r[o];i[a]||delete t[a]}var s=Object.keys(i);for(o=0;o<s.length;o++){a=s[o];t[a]||(t[a]=ue(e,a))}Qt.set(e,"slots",s)}}function qt(e,t,n){var r=k();M(e);try{return t(e)}catch(i){if(!n)throw i;n(i)}finally{M(r)}}function Vt(e){function t(){var e=this,t=e.$options,r=t.setup,i=t.render;if(i&&(t.render=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return qt(E(e),(function(){return i.apply(t,n)}))}),r)if(te(r)){var o=t.data;t.data=function(){return n(e,e.$props),te(o)?o.call(e,e):o||{}}}else re('The "setup" option should be a function that returns a object in component definitions.',e)}function n(e,t){void 0===t&&(t={});var n,a=e.$options.setup,s=o(e),c=E(e);if(c.setupContext=s,F(t,"__ob__",Be()),zt(e,s.slots),qt(c,(function(){n=a(t,s)})),n)if(te(n)){var u=n;e.$options.render=function(){return zt(e,s.slots),qt(c,(function(){return u()}))}}else if(V(n)){Re(n)&&(n=Ae(n)),Qt.set(e,"rawBindings",n);var l=n;Object.keys(l).forEach((function(t){var n=l[t];if(!Le(n))if(Re(n))G(n)&&(n=Pe(n));else if(te(n)){var o=n;n=n.bind(e),Object.keys(o).forEach((function(e){n[e]=o[e]}))}else V(n)?i(n)&&r(n):n=Pe(n);Wt(e,t,n)}))}else H(!1,'"setup" must return a "Object" or a "Function", got "'.concat(Object.prototype.toString.call(n).slice(8,-1),'"'))}function r(e,t){if(void 0===t&&(t=new Set),!t.has(e)&&ee(e)&&!Le(e)&&!Re(e)&&!Ee(e)){var n=A(),i=n.util.defineReactive;Object.keys(e).forEach((function(n){var o=e[n];i(e,n,o),o&&(t.add(o),r(o,t))}))}}function i(e,t){return void 0===t&&(t=new Map),t.has(e)?t.get(e):(t.set(e,!1),G(e)&&Re(e)?(t.set(e,!0),!0):!(!ee(e)||Ee(e)||Le(e))&&Object.keys(e).some((function(n){return i(e[n],t)})))}function o(e){var t={slots:{}},n=["root","parent","refs","listeners","isServer","ssrContext"],r=["emit"];return n.forEach((function(n){var r="$".concat(n);J(t,n,{get:function(){return e[r]},set:function(){re("Cannot assign to '".concat(n,"' because it is a read-only property"),e)}})})),$t(e,t),r.forEach((function(n){var r="$".concat(n);J(t,n,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=e[r];i.apply(e,t)}}})})),t}e.mixin({beforeCreate:t,mounted:function(){Kt(this)},beforeUpdate:function(){$t(this)},updated:function(){Kt(this)}})}function en(e,t){if(!e)return t;if(!t)return e;for(var n,r,i,o=I?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],B(t,n)?r!==i&&ee(r)&&!Le(r)&&ee(i)&&!Le(i)&&en(i,r):t[n]=i);return t}function tn(e){T(e)?re("[vue-composition-api] already installed. Vue.use(VueCompositionAPI) should be called only once."):(e.version?"2"===e.version[0]&&"."===e.version[1]||re("[vue-composition-api] only works with Vue 2, v".concat(e.version," found.")):re("[vue-composition-api] no Vue version found"),e.config.optionMergeStrategies.setup=function(e,t){return function(n,r){return en(te(e)?e(n,r)||{}:void 0,te(t)?t(n,r)||{}:void 0)}},Y(e),Vt(e))}var nn={install:function(e){return tn(e)}};function rn(e){return e}function on(e){te(e)&&(e={loader:e});var t=e.loader,n=e.loadingComponent,r=e.errorComponent,i=e.delay,o=void 0===i?200:i,a=e.timeout,s=e.suspensible,c=void 0!==s&&s,u=e.onError;c&&re("The suspensiblbe option for async components is not supported in Vue2. It is ignored.");var l=null,f=0,d=function(){return f++,l=null,p()},p=function(){var e;return l||(e=l=t().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),u)return new Promise((function(t,n){var r=function(){return t(d())},i=function(){return n(e)};u(e,r,i,f+1)}));throw e})).then((function(t){if(e!==l&&l)return l;if(t||re("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t&&!V(t)&&!te(t))throw new Error("Invalid async component load result: ".concat(t));return t})))};return function(){var e=p();return{component:e,delay:o,timeout:a,error:r,loading:n}}}var an="1.7.0";"undefined"!==typeof window&&window.Vue&&window.Vue.use(nn),t.EffectScope=p,t.computed=Ot,t.createApp=Nt,t.createLifeCycle=qe,t.createRef=we,t.customRef=Oe,t["default"]=nn,t.defineAsyncComponent=on,t.defineComponent=rn,t.del=$e,t.effectScope=y,t.getCurrentInstance=k,t.getCurrentScope=g,t.h=Jt,t.inject=kt,t.isRaw=Ee,t.isReactive=Re,t.isReadonly=We,t.isRef=Le,t.markRaw=Ge,t.nextTick=Xt,t.onActivated=ut,t.onBeforeMount=nt,t.onBeforeUnmount=at,t.onBeforeUpdate=it,t.onDeactivated=lt,t.onErrorCaptured=ct,t.onMounted=rt,t.onScopeDispose=v,t.onServerPrefetch=ft,t.onUnmounted=st,t.onUpdated=ot,t.provide=Mt,t.proxyRefs=ke,t.reactive=je,t.readonly=Ue,t.ref=Pe,t.set=be,t.shallowReactive=He,t.shallowReadonly=Ke,t.shallowRef=De,t.toRaw=Qe,t.toRef=Ye,t.toRefs=Ae,t.triggerRef=Me,t.unref=Te,t.useAttrs=Bt,t.useCSSModule=Rt,t.useCssModule=Et,t.useSlots=Ft,t.version=an,t.warn=l,t.watch=Tt,t.watchEffect=wt,t.watchPostEffect=Pt,t.watchSyncEffect=Lt},41:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=[{id:1,name:"房屋租赁"},{id:2,name:"知识产权"}],i=[{id:1,name:"纯写字楼"},{id:2,name:"商住两用"},{id:3,name:"商业裙楼"},{id:4,name:"厂房改造"}],o=[{id:1,name:"公对公转账"},{id:2,name:"微信小程序支付"}],a=[{id:1,name:"潜在客户"},{id:2,name:"新增客户"},{id:3,name:"跟进中客户"},{id:4,name:"成交客户"},{id:5,name:"流失客户"}],s=[{id:1,name:"初次接触"},{id:2,name:"沟通中"},{id:3,name:"已成交"},{id:4,name:"失败/放弃"},{id:5,name:"暂不考虑"},{id:6,name:"待定"},{id:7,name:"未联系上"}],c=[{id:1,name:"输入类型"},{id:2,name:"选择类型"},{id:3,name:"日期类型"},{id:4,name:"单选类型"}],u=[{id:1,name:"机构组织"},{id:2,name:"农林牧渔"},{id:3,name:"建筑建材"},{id:4,name:"冶金矿产"},{id:5,name:"交通运输"},{id:6,name:"信息产业"},{id:7,name:"机械机电"},{id:8,name:"轻工食品"},{id:9,name:"服装纺织"},{id:10,name:"专业服务"},{id:11,name:"旅游休闲"}],l=[{id:1,name:"固定租金"}],f=[{id:1,name:"按月计费"},{id:2,name:"按季计费"},{id:3,name:"按年计费"}],d=[{id:1,name:"当天提醒"},{id:2,name:"提前一天提醒"},{id:3,name:"提前三天提醒"},{id:4,name:"提前五天提醒"}],p=[{id:1,name:"按天单价计算"}],h=[{id:1,name:"按起始日划分"},{id:2,name:"延迟一日划分"}],y=[{id:1,name:"租金保证金"},{id:2,name:"装修保证金"}],g=[{id:1,name:"人民币CNY"}],v=[{id:1,name:"免租期"}],m=[{id:1,name:"免租期划入租期"}],b=[{id:1,name:"增值税普通发票"},{id:2,name:"增值税电子普通发票"}],S=[{id:1,name:"上门修理"},{id:2,name:"事后维修"},{id:3,name:"紧急抢修"},{id:4,name:"预防性维修"},{id:5,name:"专项修理"},{id:6,name:"网络维修"}],x=[{id:1,name:"日常保洁"},{id:2,name:"垃圾处理"}],_=[{id:1,name:"交通便利",icon:"icon-jiaotong"},{id:2,name:"免费wifi",icon:"icon-wifi"},{id:3,name:"幼儿教育",icon:"icon-zhishiku"},{id:4,name:"医疗完善",icon:"icon-tubiao_-"},{id:5,name:"靠近公园",icon:"icon-gongyuan"},{id:6,name:"便捷购物",icon:"icon-gouwu"}],C={field:{projectType:r,houseType:i,payWay:o,customerType:a,followUpState:s,fieldType:c,industryType:u,rentWay:l,chargingType:f,payTime:d,unnaturalMonthChargingWay:p,leaseTermWay:h,earnestMoneyType:y,currencyType:g,preferentialType:v,preferentialRentFreeWay:m,invoiceType:b,serviceWorkWay:S,clearWorkWay:x,supportingFacilities:_},findTypeName:function(e,t){return w(e,t).name},findTypeNameByList:function(e,t){return t=t||"",t.split(",").map((function(t){return w(e,t)}))}},w=function(e,t){return C.field[e].find((function(e){return e.id==t}))||{id:0,name:"-"}},P=C;t.default=P},42:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=n(43),a=n(44),s=r(n(47)),c=r(n(46)),u=!1,l=function(t){if(i){var n=o.YeIMUniSDK.getInstance().readyState();3===n?o.YeIMUniSDK.getInstance().connect({userId:i,token:e.getStorageSync("chatToken"),success:function(e){200===e.code&&(d.listenerList(),t&&t())},fail:function(e){f()}}):t&&t()}},f=function(){var t=(new Date).getTime()+864e5,n=(0,s.default)(String(i)+t+"50abd47112ebe8c5a73f4694c96a49ce");(0,a.login)({userId:i,timestamp:t,sign:n}).then((function(t){200===t.code&&(e.setStorageSync("chatToken",t.data.token),l())}))},d={init:function(){e.$YeIMUniSDKDefines=o.YeIMUniSDKDefines,e.$YeIM=o.YeIMUniSDK.init({baseURL:c.default.baseUrl+"/im",socketURL:c.default.socketURL,logLevel:2,reConnectInterval:3e3,reConnectTotal:99,heartInterval:35e3})},connect:function(t){i=t,t&&(e.getStorageSync("chatToken")?l():f())},getConversationList:function(e){l((function(){o.YeIMUniSDK.getInstance().getConversationList({page:1,limit:100,success:e,fail:function(e){console.log("error")}})}))},getHistoryMessageList:function(e,t,n,r){l((function(){o.YeIMUniSDK.getInstance().getHistoryMessageList({nextMessageId:e,conversationId:t,success:n,fail:r})}))},sendImage:function(t,n){l((function(){e.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album"],success:function(r){e.getImageInfo({src:r.tempFilePaths[0],success:function(i){var a=o.YeIMUniSDK.getInstance().createImageMessage({toId:t,conversationType:o.YeIMUniSDKDefines.CONVERSATION_TYPE.PRIVATE,body:{file:{tempFilePath:r.tempFilePaths[0],width:i.width,height:i.height}},extra:"",onProgress:function(e){}});e.showLoading(),o.YeIMUniSDK.getInstance().sendMessage({message:a,success:n,fail:function(t){e.hideLoading(),e.showToast({title:"发送失败",icon:"none"})}})}})}})}))},sendText:function(t,n,r){l((function(){var i=o.YeIMUniSDK.getInstance().createTextMessage({toId:t,conversationType:o.YeIMUniSDKDefines.CONVERSATION_TYPE.PRIVATE,body:{text:n},extra:""});o.YeIMUniSDK.getInstance().sendMessage({message:i,success:r,fail:function(t){e.hideLoading(),e.showToast({title:"发送失败",icon:"none"})}})}))},disConnect:function(){o.YeIMUniSDK.getInstance().disConnect()},listenerLogin:function(){o.YeIMUniSDK.getInstance().addEventListener(o.YeIMUniSDKDefines.EVENT.KICKED_OUT,(function(){}))},listenerList:function(){u||l((function(){u=!0,o.YeIMUniSDK.getInstance().addEventListener(o.YeIMUniSDKDefines.EVENT.CONVERSATION_LIST_CHANGED,(function(t){e.$emit("changeChatList",t)}))}))},clearConversationUnread:function(e){o.YeIMUniSDK.getInstance().clearConversationUnread(e)},sendSystemMessage:function(){var t=(new Date).getTime()+864e5,n=(0,s.default)("system"+t+"50abd47112ebe8c5a73f4694c96a49ce");(0,a.login)({userId:"system",timestamp:t,sign:n}).then((function(t){200===t.code&&(e.setStorageSync("systemChatToken",t.data.token),(0,a.sendSystem)({body:{text:"2"},conversationId:"4",conversationType:"private",extra:"",from:"system",fromUserInfo:{},isDeleted:0,isRead:0,isRevoke:0,status:"unSend",time:(new Date).getTime(),to:1,type:"text"}))}))}},p=d;t.default=p}).call(this,n(2)["default"])},43:function(e,t,n){"use strict";(function(e,r){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.YeIMUniSDKDefines=t.YeIMUniSDK=void 0;var o=i(n(13));function a(e){return a="function"==typeof Symbol&&"symbol"==(0,o.default)(Symbol.iterator)?function(e){return(0,o.default)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,o.default)(e)},a(e)}function s(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:t+""}function c(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function f(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var d={EVENT:{}};t.YeIMUniSDKDefines=d,d.EVENT.NET_CHANGED="net_changed",d.EVENT.CONVERSATION_LIST_CHANGED="conversation_list_changed",d.EVENT.MESSAGE_RECEIVED="message_received",d.EVENT.MESSAGE_REVOKED="message_revoked",d.EVENT.PRIVATE_READ_RECEIPT="private_read_receipt",d.EVENT.FRIEND_LIST_CHANGED="friend_list_changed",d.EVENT.FRIEND_APPLY_LIST_CHANGED="friend_apply_list_changed",d.EVENT.FRIEND_APPLY_REFUSE="friend_apply_refuse",d.EVENT.KICKED_OUT="kicked_out",d.CONVERSATION_TYPE={},d.CONVERSATION_TYPE.PRIVATE="private",d.CONVERSATION_TYPE.GROUP="group",d.MESSAGE_TYPE={},d.MESSAGE_TYPE.TEXT="text",d.MESSAGE_TYPE.TEXT_AT="text_at",d.MESSAGE_TYPE.IMAGE="image",d.MESSAGE_TYPE.AUDIO="audio",d.MESSAGE_TYPE.VIDEO="video",d.MESSAGE_TYPE.LOCATION="location",d.MESSAGE_TYPE.CUSTOM="custom",d.MESSAGE_TYPE.MERGER="merger",d.MESSAGE_TYPE.FORWARD="forward",d.MESSAGE_TYPE.SYS_NOTICE="sys_notice",d.MESSAGE_TYPE.GROUP_SYS_NOTICE="group_sys_notice",d.USER={},d.USER.ADDFRIEND={},d.USER.ADDFRIEND.ALLOW=1,d.USER.ADDFRIEND.CONFIRM=2,d.USER.ADDFRIEND.DENY=3,d.GROUP={},d.GROUP.JOINMODE={},d.GROUP.JOINMODE.FREE=1,d.GROUP.JOINMODE.CHECK=2,d.GROUP.JOINMODE.FORBIDDEN=3,d.GROUP.APPLYSTATUS={},d.GROUP.APPLYSTATUS.PENDING=1,d.GROUP.APPLYSTATUS.AGREE=2,d.GROUP.APPLYSTATUS.REFUSE=3;var p={NORMAL_SUCCESS:{code:200,describe:"接口调用成功"},APPLY_NEED:{code:20020,describe:"好友申请已发送,请等待对方处理"},NORMAL_ERROR:{code:500,describe:"未知错误"},SDK_PARAMS_ERROR:{code:9001,describe:"YeIMUniSDK 初始化失败,请检查参数是否存在异常"},CONNECT_ERROR:{code:10001,describe:"聊天服务网络连接错误"},NO_USERID:{code:10002,describe:"用户验证失败,请检查userId、token"},LOGIN_EXPIRE:{code:10003,describe:"用户登录状态过期,请重新登录"},NO_CONVERSATION:{code:10004,describe:"未找到此会话"},PARAMS_ERROR:{code:10008,describe:"请求参数错误"},LOGIN_ERROR:{code:10103,describe:"用户登录失败,请稍后再试"},GROUP_APPLY_REPEAT:{code:10251,describe:"此用户已在当前群组,请勿重复加入"},GROUP_APPLY_ERROR:{code:10252,describe:"申请入群异常,请稍后重试"},GROUP_APPLY_WAIT:{code:10253,describe:"已发送入群申请,请等待审核"},UPLOAD_ERROR:{code:10300,describe:"本地上传失败,请检查配置"},DOWNLOAD_ERROR:{code:10301,describe:"文件下载失败"},COS_UPLOAD_ERROR:{code:10302,describe:"腾讯云COS上传文件失败,请检查配置是否填写正确"},COS_DOWNLOAD_ERROR_1:{code:10303,describe:"腾讯云媒体截图接口:下载视频缩略图失败,请检查网络或开启万象功能"},OSS_UPLOAD_ERROR:{code:10304,describe:"阿里云OSS上传文件失败,请检查配置是否填写正确"}};function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0==he.defaults.logLevel)n?console.error("【YeIMUniSDK Log】",t):console.log("【YeIMUniSDK Log】",t);else{if(2==he.defaults.logLevel)return;1==e&&(n?console.error("【YeIMUniSDK Log】",t):console.log("【YeIMUniSDK Log】",t))}}var y=function(){function t(n){var r=this;u(this,t),c(this,"socketTask",void 0),c(this,"onMessageCallBack",[]),he.uni?this.socketTask=e.connectSocket({url:n,success:function(){},fail:function(){},complete:function(){}}):(this.socketTask=new WebSocket(n),this.socketTask.onmessage=function(e){if(r.onMessageCallBack)for(var t=0;r.onMessageCallBack.length>t;t++)r.onMessageCallBack[t](e)})}return f(t,[{key:"onOpen",value:function(e){try{he.uni?this.socketTask.onOpen(e):this.socketTask.onopen=e}catch(e){h(0,e,!0)}}},{key:"onClose",value:function(e){try{he.uni?this.socketTask.onClose(e):this.socketTask.onclose=e}catch(e){h(0,e,!0)}}},{key:"onError",value:function(e){try{he.uni?this.socketTask.onError(e):this.socketTask.onerror=e}catch(e){h(0,e,!0)}}},{key:"onMessage",value:function(e){try{he.uni?this.socketTask.onMessage(e):this.onMessageCallBack.push(e)}catch(e){h(0,e,!0)}}},{key:"send",value:function(e){if(this.socketTask)try{this.socketTask.send(he.uni?{data:JSON.stringify(e)}:JSON.stringify(e))}catch(e){h(0,e,!0)}}},{key:"close",value:function(){try{this.socketTask.close()}catch(t){h(0,t,!0)}}},{key:"destroy",value:function(){this.socketTask=void 0}}]),t}();function g(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,message:arguments.length>1?arguments[1]:void 0,data:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null}}function v(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,message:arguments.length>1?arguments[1]:void 0,data:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null}}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;try{null!=e&&void 0!==e.success&&"function"==typeof e.success&&e.success(g(r,t,n))}catch(e){console.error(e)}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;try{null!=e&&void 0!==e.fail&&"function"==typeof e.fail&&e.fail(v(t,n,r))}catch(e){console.error(e)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof r||"undefined"!=typeof self&&self;var S={};({get exports(){return S},set exports(e){S=e}}).exports=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}};var x=S;function _(e,t){he.emitter.emit(he.defaults.eventPrefix+e,t)}function C(e,t){e&&he.emitter.on(he.defaults.eventPrefix+e,t)}function w(e,t){e&&he.emitter.off(he.defaults.eventPrefix+e,t)}function P(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function L(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){P(o,r,i,a,s,"next",e)}function s(e){P(o,r,i,a,s,"throw",e)}a(void 0)}))}}var T={},A={get exports(){return T},set exports(e){T=e}},O={};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==(0,o.default)(Symbol.iterator)?function(e){return(0,o.default)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,o.default)(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}({get exports(){return O},set exports(e){O=e}}),function(e){var t=O.default;function n(){
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},i=Object.prototype,o=i.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=Object.create((t&&t.prototype instanceof y?t:y).prototype),o=new A(r||[]);return a(i,"_invoke",{value:w(e,n,o)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var h={};function y(){}function g(){}function v(){}var m={};f(m,c,(function(){return this}));var b=Object.getPrototypeOf,S=b&&b(b(O([])));S&&S!==i&&o.call(S,c)&&(m=S);var x=v.prototype=y.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,n){function r(i,a,s,c){var u=p(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):n.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,i){r(e,t,n,i)}))}return i=i?i.then(o,o):o()}})}function w(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return Y()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function P(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=p(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function O(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:Y}}function Y(){return{value:void 0,done:!0}}return g.prototype=v,a(x,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=f(v,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,f(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},r.awrap=function(e){return{__await:e}},_(C.prototype),f(C.prototype,u,(function(){return this})),r.AsyncIterator=C,r.async=function(e,t,n,i,o){void 0===o&&(o=Promise);var a=new C(d(e,t,n,i),o);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(x),f(x,l,"Generator"),f(x,c,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=O,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(s){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(this.prev>=r.tryLoc&&o.call(r,"finallyLoc")&&r.finallyLoc>this.prev){var i=r;break}}i&&("break"===e||"continue"===e)&&t>=i.tryLoc&&i.finallyLoc>=t&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(A);var Y=T(),D=Y;try{regeneratorRuntime=Y}catch(s){"object"===("undefined"==typeof globalThis?"undefined":a(globalThis))?globalThis.regeneratorRuntime=Y:Function("r","regeneratorRuntime = r")(Y)}var M=function(e,t){return e<<t|e>>>32-t},k=function(e,t){var n,r,i,o,a;return i=2147483648&e,o=2147483648&t,a=(1073741823&e)+(1073741823&t),(n=1073741824&e)&(r=1073741824&t)?2147483648^a^i^o:n|r?1073741824&a?3221225472^a^i^o:1073741824^a^i^o:a^i^o},Z=function(e,t,n,r,i,o,a){return e=k(e,k(k(function(e,t,n){return e&t|~e&n}(t,n,r),i),a)),k(M(e,o),t)},E=function(e,t,n,r,i,o,a){return e=k(e,k(k(function(e,t,n){return e&n|t&~n}(t,n,r),i),a)),k(M(e,o),t)},R=function(e,t,n,r,i,o,a){return e=k(e,k(k(function(e,t,n){return e^t^n}(t,n,r),i),a)),k(M(e,o),t)},N=function(e,t,n,r,i,o,a){return e=k(e,k(k(function(e,t,n){return t^(e|~n)}(t,n,r),i),a)),k(M(e,o),t)},I=function(e){for(var t,n=e.length,r=n+8,i=16*((r-r%64)/64+1),o=Array(i-1),a=0,s=0;n>s;)a=s%4*8,o[t=(s-s%4)/4]=o[t]|e.charCodeAt(s)<<a,s++;return o[t=(s-s%4)/4]=o[t]|128<<(a=s%4*8),o[i-2]=n<<3,o[i-1]=n>>>29,o},X=function(e){var t,n="",r="";for(t=0;3>=t;t++)n+=(r="0"+(e>>>8*t&255).toString(16)).substr(r.length-2,2);return n},J=function(e){e=e.replace(/\x0d\x0a/g,"\n");for(var t="",n=0;e.length>n;n++){var r=e.charCodeAt(n);128>r?t+=String.fromCharCode(r):r>127&&2048>r?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t};function F(e){var t,n,r,i,o,a,s,c,u,l;for(e=J(e+=""),t=I(e),s=1732584193,c=4023233417,u=2562383102,l=271733878,n=0;t.length>n;n+=16)r=s,i=c,o=u,a=l,s=Z(s,c,u,l,t[n+0],7,3614090360),l=Z(l,s,c,u,t[n+1],12,3905402710),u=Z(u,l,s,c,t[n+2],17,606105819),c=Z(c,u,l,s,t[n+3],22,3250441966),s=Z(s,c,u,l,t[n+4],7,4118548399),l=Z(l,s,c,u,t[n+5],12,1200080426),u=Z(u,l,s,c,t[n+6],17,2821735955),c=Z(c,u,l,s,t[n+7],22,4249261313),s=Z(s,c,u,l,t[n+8],7,1770035416),l=Z(l,s,c,u,t[n+9],12,2336552879),u=Z(u,l,s,c,t[n+10],17,4294925233),c=Z(c,u,l,s,t[n+11],22,2304563134),s=Z(s,c,u,l,t[n+12],7,1804603682),l=Z(l,s,c,u,t[n+13],12,4254626195),u=Z(u,l,s,c,t[n+14],17,2792965006),c=Z(c,u,l,s,t[n+15],22,1236535329),s=E(s,c,u,l,t[n+1],5,4129170786),l=E(l,s,c,u,t[n+6],9,3225465664),u=E(u,l,s,c,t[n+11],14,643717713),c=E(c,u,l,s,t[n+0],20,3921069994),s=E(s,c,u,l,t[n+5],5,3593408605),l=E(l,s,c,u,t[n+10],9,38016083),u=E(u,l,s,c,t[n+15],14,3634488961),c=E(c,u,l,s,t[n+4],20,3889429448),s=E(s,c,u,l,t[n+9],5,568446438),l=E(l,s,c,u,t[n+14],9,3275163606),u=E(u,l,s,c,t[n+3],14,4107603335),c=E(c,u,l,s,t[n+8],20,1163531501),s=E(s,c,u,l,t[n+13],5,2850285829),l=E(l,s,c,u,t[n+2],9,4243563512),u=E(u,l,s,c,t[n+7],14,1735328473),c=E(c,u,l,s,t[n+12],20,2368359562),s=R(s,c,u,l,t[n+5],4,4294588738),l=R(l,s,c,u,t[n+8],11,2272392833),u=R(u,l,s,c,t[n+11],16,1839030562),c=R(c,u,l,s,t[n+14],23,4259657740),s=R(s,c,u,l,t[n+1],4,2763975236),l=R(l,s,c,u,t[n+4],11,1272893353),u=R(u,l,s,c,t[n+7],16,4139469664),c=R(c,u,l,s,t[n+10],23,3200236656),s=R(s,c,u,l,t[n+13],4,681279174),l=R(l,s,c,u,t[n+0],11,3936430074),u=R(u,l,s,c,t[n+3],16,3572445317),c=R(c,u,l,s,t[n+6],23,76029189),s=R(s,c,u,l,t[n+9],4,3654602809),l=R(l,s,c,u,t[n+12],11,3873151461),u=R(u,l,s,c,t[n+15],16,530742520),c=R(c,u,l,s,t[n+2],23,3299628645),s=N(s,c,u,l,t[n+0],6,4096336452),l=N(l,s,c,u,t[n+7],10,1126891415),u=N(u,l,s,c,t[n+14],15,2878612391),c=N(c,u,l,s,t[n+5],21,4237533241),s=N(s,c,u,l,t[n+12],6,1700485571),l=N(l,s,c,u,t[n+3],10,2399980690),u=N(u,l,s,c,t[n+10],15,4293915773),c=N(c,u,l,s,t[n+1],21,2240044497),s=N(s,c,u,l,t[n+8],6,1873313359),l=N(l,s,c,u,t[n+15],10,4264355552),u=N(u,l,s,c,t[n+6],15,2734768916),c=N(c,u,l,s,t[n+13],21,1309151649),s=N(s,c,u,l,t[n+4],6,4149444226),l=N(l,s,c,u,t[n+11],10,3174756917),u=N(u,l,s,c,t[n+2],15,718787259),c=N(c,u,l,s,t[n+9],21,3951481745),s=k(s,r),c=k(c,i),u=k(u,o),l=k(l,a);return(X(s)+X(c)+X(u)+X(l)).toLowerCase()}var B,H,j,G,Q,W=W||function(e,t){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(e){i.prototype=this;var t=new i;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes;if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;e>i;i++)t[r+i>>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(n.length>65535)for(i=0;e>i;i+=4)t[r+i>>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;t>r;r+=4)n.push(4294967296*e.random()|0);return new a.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;e>r;r++){var i=t[r>>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;e>r;r++)n.push(String.fromCharCode(t[r>>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o);if(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0),i=e.min(4*(t=s*o),i),t){for(var c=0;t>c;c+=o)this._doProcessBlock(r,c);c=r.splice(0,t),n.sigBytes-=i}return new a.init(c,i)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=n.algo={};return n}(Math);H=(Q=(B=W).lib).WordArray,G=[],Q=B.algo.SHA1=(j=Q.Hasher).extend({_doReset:function(){this._hash=new H.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=0;80>c;c++){if(16>c)G[c]=0|e[t+c];else{var u=G[c-3]^G[c-8]^G[c-14]^G[c-16];G[c]=u<<1|u>>>31}u=(r<<5|r>>>27)+s+G[c],u=20>c?u+(1518500249+(i&o|~i&a)):40>c?u+(1859775393+(i^o^a)):60>c?u+((i&o|i&a|o&a)-1894007588):u+((i^o^a)-899497514),s=a,a=o,o=i<<30|i>>>2,i=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=j.clone.call(this);return e._hash=this._hash.clone(),e}}),B.SHA1=j._createHelper(Q),B.HmacSHA1=j._createHmacHelper(Q),function(){var e=W.enc.Utf8;W.algo.HMAC=W.lib.Base.extend({init:function(t,n){t=this._hasher=new t.init,"string"==typeof n&&(n=e.parse(n));var r=t.blockSize,i=4*r;n.sigBytes>i&&(n=t.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),a=this._iKey=n.clone(),s=o.words,c=a.words,u=0;r>u;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}})}();var U="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==U&&U||{},K={searchParams:"URLSearchParams"in U,iterable:"Symbol"in U&&"iterator"in Symbol,blob:"FileReader"in U&&"Blob"in U&&function(){try{return new Blob,!0}catch(a){return!1}}(),formData:"FormData"in U,arrayBuffer:"ArrayBuffer"in U};if(K.arrayBuffer)var $=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],z=ArrayBuffer.isView||function(e){return e&&$.indexOf(Object.prototype.toString.call(e))>-1};function q(e){if("string"!=typeof e&&(e+=""),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function V(e){return"string"!=typeof e&&(e+=""),e}function ee(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return K.iterable&&(t[Symbol.iterator]=function(){return t}),t}function te(e){this.map={},e instanceof te?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function ne(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function re(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function ie(e){var t=new FileReader,n=re(t);return t.readAsArrayBuffer(e),n}function oe(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ae(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:K.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:K.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:K.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=""+e:K.arrayBuffer&&K.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=oe(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):K.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||z(e))?this._bodyArrayBuffer=oe(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):K.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},K.blob&&(this.blob=function(){var e=ne(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=ne(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(ie)}),this.text=function(){var e,t,n,r=ne(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=re(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;t.length>r;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},K.formData&&(this.formData=function(){return this.text().then(ue)}),this.json=function(){return this.text().then(JSON.parse)},this}te.prototype.append=function(e,t){e=q(e),t=V(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},te.prototype.delete=function(e){delete this.map[q(e)]},te.prototype.get=function(e){return e=q(e),this.has(e)?this.map[e]:null},te.prototype.has=function(e){return this.map.hasOwnProperty(q(e))},te.prototype.set=function(e,t){this.map[q(e)]=V(t)},te.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},te.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),ee(e)},te.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),ee(e)},te.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),ee(e)},K.iterable&&(te.prototype[Symbol.iterator]=te.prototype.entries);var se=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ce(e,t){if(!(this instanceof ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new te(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e+"";if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new te(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),se.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in U)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function ue(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function le(e,t){if(!(this instanceof le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&300>this.status,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new te(t.headers),this.url=t.url||"",this._initBody(e)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})},ae.call(ce.prototype),ae.call(le.prototype),le.prototype.clone=function(){return new le(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new te(this.headers),url:this.url})},le.error=function(){var e=new le(null,{status:0,statusText:""});return e.type="error",e};var fe=[301,302,303,307,308];le.redirect=function(e,t){if(-1===fe.indexOf(t))throw new RangeError("Invalid status code");return new le(null,{status:t,headers:{location:e}})};var de=U.DOMException;try{new de}catch(a){(de=function(e,t){this.message=e,this.name=t,this.stack=Error(e).stack}).prototype=Object.create(Error.prototype),de.prototype.constructor=de}function pe(e,t){return new Promise((function(n,r){var i=new ce(e,t);if(i.signal&&i.signal.aborted)return r(new de("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new te,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new le(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new de("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&U.location.href?U.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(K.blob?o.responseType="blob":K.arrayBuffer&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!==a(t.headers)||t.headers instanceof te?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,V(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}pe.polyfill=!0,U.fetch||(U.fetch=pe,U.Headers=te,U.Request=ce,U.Response=le);var he,ye={User:{fetchUserInfoById:"/user/info",updateUserInfo:"/user/update",getBlackUserList:"/user/black/list",addToBlackUserList:"/user/black/add",removeFromBlacklist:"/user/black/remove"},Group:{create:"/group/create",update:"/group/edit",dissolve:"/group/dissolve",fetchGroupInfoById:"/group/get",list:"/group/list",transferLeader:"/group/transferLeader",addUser:"/group/user/add",leave:"/group/user/leave",remove:"/group/user/delete",memberList:"/group/user/list",adminstrator:"/group/user/set/adminstrator",applyList:"/group/user/apply/list",handleApply:"/group/user/apply/change",setMute:"/group/user/set/mute"},Conversation:{fetchConversationList:"/conversation/list",clearConversationUnread:"/conversation/update/unread",deleteConversation:"/conversation/delete"},Message:{sendMessage:"/message/save",fetchHistoryMessageList:"/v117/message/list",deleteMessage:"/message/delete",revokeMessage:"/message/revoke"},Friend:{fetchList:"/friend/list",fetchApplyList:"/friend/apply/list",setRead:"/friend/apply/set/read",acceptApply:"/friend/apply/accept",refuseApply:"/friend/apply/refuse",addFriend:"/friend/add",deleteFriend:"/friend/delete",updateFriend:"/friend/update"},Push:{bindClientId:"/user/bind/push/id"},Upload:{sign:"/upload/sign",normal:"/upload",image:"/upload/image",video:"/upload/video"}};function ge(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Promise((function(i,o){if(he.uni)e.request({url:he.defaults.baseURL+t,data:r,method:n,header:{"content-type":"application/json",token:null!=he.token?he.token:""},success:function(e){if(null==e.data)return o({code:p.NORMAL_ERROR.code,message:e.message?e.message:p.NORMAL_ERROR.describe,data:null});(e=e.data).code===p.NORMAL_SUCCESS.code?i(e.data?e.data:null):o(e)},fail:function(e){h(1,e),o({code:p.NORMAL_ERROR.code,message:JSON.stringify(e),data:null})}});else{var a={method:n,body:JSON.stringify(r),headers:{"Content-Type":"application/json",token:null!=he.token?he.token:""}};"GET"==n&&(t+=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",n=1>=arguments.length||void 0===arguments[1]||arguments[1]?"?":"",r=[];-1==["indices","brackets","repeat","comma"].indexOf(t)&&(t="brackets");var i=function(n){var i=e[n];if(["",void 0,null].indexOf(i)>=0)return"continue";if(i.constructor===Array)switch(t){case"indices":for(var o=0;i.length>o;o++)r.push(n+"["+o+"]="+i[o]);break;case"brackets":default:i.forEach((function(e){r.push(n+"[]="+e)}));break;case"repeat":i.forEach((function(e){r.push(n+"="+e)}));break;case"comma":var a="";i.forEach((function(e){a+=(a?",":"")+e})),r.push(n+"="+a)}else r.push(n+"="+i)};for(var o in e)i(o);return r.length?n+r.join("&"):""}(r,!0),delete a.body),pe(he.defaults.baseURL+t,a).then(function(){var e=L(D.mark((function e(t){var n;return D.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:if(null!=(n=e.sent)){e.next=5;break}return e.abrupt("return",o({code:p.NORMAL_ERROR.code,message:n.message?n.message:p.NORMAL_ERROR.describe,data:null}));case 5:n.code===p.NORMAL_SUCCESS.code?i(n.data?n.data:null):o(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){h(1,e),o({code:p.NORMAL_ERROR.code,message:JSON.stringify(e.message),data:null})}))}}))}function ve(t){return e.uploadFile({url:t.url,name:t.name,formData:t.data,header:t.header,filePath:t.filePath,success:function(e){if(t.ignoreResult)m(t,p.NORMAL_SUCCESS.describe);else{null==e.data&&reject(null);var n=(e=JSON.parse(e.data)).code;n===p.NORMAL_SUCCESS.code?(console.log(111),console.log(e.data),m(t,p.NORMAL_SUCCESS.describe,e.data?e.data:null)):b(t,n,e.message)}},fail:function(e){h(1,e),b(t,p.NORMAL_ERROR.code,e)}})}function me(t){return e.downloadFile({url:t.url,header:t.header,success:function(e){200===e.statusCode?m(t,p.NORMAL_SUCCESS.describe,e.tempFilePath):b(t,p.DOWNLOAD_ERROR.code,p.DOWNLOAD_ERROR.code.describe)},fail:function(e){h(1,e),b(t,p.DOWNLOAD_ERROR.code,p.DOWNLOAD_ERROR.code.describe)}})}function be(){return Se.apply(this,arguments)}function Se(){return(Se=L(D.mark((function e(){var t;return D.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge(ye.Upload.sign,"GET",{});case 2:(t=e.sent).code?h(1,"媒体上传参数获取失败",!0):he.mediaUploadParams=t;case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(){var e=he.defaults.baseURL;return"cos"==he.mediaUploadParams.storage?e="https://".concat(he.mediaUploadParams.bucket,".cos.").concat(he.mediaUploadParams.region,".myqcloud.com"):"oss"==he.mediaUploadParams.storage&&(e="https://".concat(he.mediaUploadParams.bucket,".").concat(he.mediaUploadParams.region,".aliyuncs.com")),e}function _e(){return he.mediaUploadParams.customDomain?he.mediaUploadParams.customDomain:xe()}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"files",n=e;if(!he.mediaUploadParams.baseDir&&"local"===!he.mediaUploadParams.storage)return n;var r=he.mediaUploadParams.baseDir,i=new Date,o=t+"/"+i.getFullYear()+"-"+JSON.stringify(i.getMonth()+1).padStart(2,0)+"-"+JSON.stringify(i.getDate()).padStart(2,0)+"/"+e;if("local"!==he.mediaUploadParams.storage){if("/"==r.substring(0,1)&&(r=r.substring(1)),"/"===r.substring(r.length-1,r.length)&&(r=r.substring(0,r.length)+r.substring(r.length+1)),!r)return o;n=r+"/"+o}else n=o;return n}function we(e,t,n){return Pe.apply(this,arguments)}function Pe(){return(Pe=L(D.mark((function e(t,n,r){var i,o,a,s,c,u,l,f,d,p;return D.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=parseInt((new Date).getTime()/1e3)-1,he.mediaUploadParams&&he.mediaUploadParams.expireTime>=i){e.next=4;break}return e.next=4,be();case 4:return s=he.mediaUploadParams.secretId,c=(o=he.mediaUploadParams.nowTime)+";"+(a=he.mediaUploadParams.expireTime),l=he.mediaUploadParams.signKey,f="sha1\n"+(u=o+";"+a)+"\n"+W.SHA1(t+"\n"+n+"\n\n"+r+"\n")+"\n",d=W.HmacSHA1(f,l),p="q-sign-algorithm=sha1&q-ak=".concat(s,"&q-sign-time=").concat(c,"&q-key-time=").concat(u,"&q-header-list=&q-url-param-list=&q-signature=").concat(d),e.abrupt("return",p);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(){return Te.apply(this,arguments)}function Te(){return(Te=L(D.mark((function e(){var t;return D.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=parseInt((new Date).getTime()/1e3)-1,he.mediaUploadParams&&he.mediaUploadParams.expireTime>=t){e.next=4;break}return e.next=4,be();case 4:return e.abrupt("return",he.mediaUploadParams);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ae(e){if(!he.checkLogged())return b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(!he.mediaUploadParams)return b(e,p.PARAMS_ERROR.code,"上传参数异常,暂无法使用此接口");var t=he.mediaUploadParams,n=e.filename.substring(e.filename.lastIndexOf(".")),r=F((new Date).getTime()+"_"+e.filename)+"_other"+n,i=xe(),o=_e()+"/"+Ce(r);if("cos"===t.storage)setTimeout(L(D.mark((function t(){var n,a;return D.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,we("post","/","");case 2:n=t.sent,a=ve({url:i,name:"file",data:{key:Ce(r),success_action_status:200,Signature:n,"Content-Type":""},header:{Authorization:n},filePath:e.filepath,ignoreResult:!0,success:function(){m(e,p.NORMAL_SUCCESS.describe,{url:o})},fail:function(){b(e,p.COS_UPLOAD_ERROR.code,p.COS_UPLOAD_ERROR.describe)}}),void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}));case 5:case"end":return t.stop()}}),t)}))),0);else if("oss"===t.storage)setTimeout(L(D.mark((function n(){var a;return D.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Le();case 2:a=ve({url:i,name:"file",data:{key:Ce(r),policy:t.policyBase64,OSSAccessKeyId:t.accessKeyId,success_action_status:200,signature:t.signature},filePath:e.filepath,ignoreResult:!0,success:function(){m(e,p.NORMAL_SUCCESS.describe,{url:o})},fail:function(){b(e,p.OSS_UPLOAD_ERROR.code,p.OSS_UPLOAD_ERROR.describe)}}),void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}));case 4:case"end":return n.stop()}}),n)}))));else if("local"===t.storage){var a=ve({url:i+ye.Upload.normal,name:"file",data:{key:Ce(r)},header:{token:he.token},filePath:e.filepath,ignoreResult:!1,success:function(t){m(e,p.NORMAL_SUCCESS.describe,{url:_e()+t.data.url})},fail:function(){b(e,p.UPLOAD_ERROR.code,p.UPLOAD_ERROR.describe)}});void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}))}}function Oe(e){if(!he.mediaUploadParams)return b(e,p.PARAMS_ERROR.code,"上传参数异常,暂无法使用此接口");var t=he.mediaUploadParams,n=e.filename.substring(e.filename.lastIndexOf(".")),r=F((new Date).getTime()+"_"+e.filename)+"_image"+n,i=xe(),o=_e()+"/"+Ce(r,"image");if("cos"===t.storage)setTimeout(L(D.mark((function t(){var n,a;return D.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,we("post","/","");case 2:n=t.sent,a=ve({url:i,name:"file",data:{key:Ce(r,"image"),success_action_status:200,Signature:n,"Content-Type":""},header:{Authorization:n},filePath:e.filepath,ignoreResult:!0,success:function(){var t=0,n=0;if(e.height>198){var r=198/e.height;t=parseInt(e.height*r),n=parseInt(e.width*r)}else if(e.width>198){var i=198/e.width;t=parseInt(e.height*i),n=parseInt(e.width*i)}m(e,p.NORMAL_SUCCESS.describe,{url:o,thumbnailUrl:o+"?imageMogr2/thumbnail/"+n+"x"+t,thumbnailWidth:n,thumbnailHeight:t})},fail:function(){b(e,p.COS_UPLOAD_ERROR.code,p.COS_UPLOAD_ERROR.describe)}}),void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}));case 5:case"end":return t.stop()}}),t)}))),0);else if("oss"===t.storage)setTimeout(L(D.mark((function n(){var a;return D.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Le();case 2:a=ve({url:i,name:"file",data:{key:Ce(r,"image"),policy:t.policyBase64,OSSAccessKeyId:t.accessKeyId,success_action_status:200,signature:t.signature},filePath:e.filepath,ignoreResult:!0,success:function(){var t=0,n=0;if(e.height>198){var r=198/e.height;t=parseInt(e.height*r),n=parseInt(e.width*r)}else if(e.width>198){var i=198/e.width;t=parseInt(e.height*i),n=parseInt(e.width*i)}m(e,p.NORMAL_SUCCESS.describe,{url:o,thumbnailUrl:o+"?x-oss-process=image/resize,m_fixed,h_"+t+",w_"+n,thumbnailWidth:n,thumbnailHeight:t})},fail:function(){b(e,p.OSS_UPLOAD_ERROR.code,p.OSS_UPLOAD_ERROR.describe)}}),void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}));case 4:case"end":return n.stop()}}),n)}))));else if("local"===t.storage){var a=ve({url:i+ye.Upload.image,name:"file",data:{key:Ce(r,"image")},header:{token:he.token},filePath:e.filepath,ignoreResult:!1,success:function(t){m(e,p.NORMAL_SUCCESS.describe,{url:_e()+t.data.url,thumbnailUrl:_e()+t.data.thumbnailUrl,thumbnailWidth:t.data.thumbnailWidth,thumbnailHeight:t.data.thumbnailHeight})},fail:function(){b(e,p.UPLOAD_ERROR.code,p.UPLOAD_ERROR.describe)}});void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}))}}function Ye(e){return{conversationId:e.to,conversationType:e.conversationType,fromUserInfo:{nickname:he.user.nickname,avatarUrl:he.user.avatarUrl},from:he.userId,to:e.to,type:e.type,isRead:0,isRevoke:0,isDeleted:0,status:"unSend",time:(new Date).getTime(),body:e.body,extra:e.extra?e.extra:""}}function De(t){return he.uni?e.getStorageSync(t):localStorage.getItem(t)?JSON.parse(localStorage.getItem(t)):null}function Me(t,n){he.uni?e.setStorageSync(t,n):localStorage.setItem(t,JSON.stringify(n))}function ke(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body||!e.body.text)return v(p.PARAMS_ERROR.code,"text 不能为空");var t={to:e.toId,type:d.MESSAGE_TYPE.TEXT,conversationType:e.conversationType,body:{text:e.body.text}};return e.extra&&(t.extra=e.extra),Ye(t)}function Ze(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(e.conversationType!=d.CONVERSATION_TYPE.GROUP)return v(p.PARAMS_ERROR.code,"仅群聊支持文本@消息");if(!e.body||!e.body.text)return v(p.PARAMS_ERROR.code,"text 不能为空");if(!e.body.atUserIdList)return v(p.PARAMS_ERROR.code,"atUserIdList 不能为空");if("[object Array]"!==Object.prototype.toString.call(e.body.atUserIdList))return v(p.PARAMS_ERROR.code,"atUserIdList 应为用户ID组成的字符串数组");var t={to:e.toId,type:d.MESSAGE_TYPE.TEXT_AT,conversationType:e.conversationType,body:{text:e.body.text,atUserIdList:e.body.atUserIdList}};return e.extra&&(t.extra=e.extra),Ye(t)}function Ee(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body||!e.body.file)return v(p.PARAMS_ERROR.code,"file 不能为空");if(!e.body.file.tempFilePath)return v(p.PARAMS_ERROR.code,"tempFilePath 不能为空");if(!e.body.file.width)return v(p.PARAMS_ERROR.code,"width 不能为空");if(!e.body.file.height)return v(p.PARAMS_ERROR.code,"height 不能为空");var t={to:e.toId,type:d.MESSAGE_TYPE.IMAGE,conversationType:e.conversationType,body:{originalUrl:e.body.file.tempFilePath,originalWidth:e.body.file.width,originalHeight:e.body.file.height,thumbnailUrl:e.body.file.tempFilePath,thumbnailWidth:e.body.file.width,thumbnailHeight:e.body.file.height}};e.extra&&(t.extra=e.extra);var n=Ye(t);return void 0!==e.onProgress&&"function"==typeof e.onProgress&&(n.onProgress=e.onProgress),n}function Re(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body)return v(p.PARAMS_ERROR.code,"body 不能为空");if(!e.body.originalUrl)return v(p.PARAMS_ERROR.code,"originalUrl 不能为空");if(!e.body.originalWidth)return v(p.PARAMS_ERROR.code,"originalWidth 不能为空");if(!e.body.originalHeight)return v(p.PARAMS_ERROR.code,"originalHeight 不能为空");if(!e.body.thumbnailUrl)return v(p.PARAMS_ERROR.code,"thumbnailUrl 不能为空");if(!e.body.thumbnailWidth)return v(p.PARAMS_ERROR.code,"thumbnailWidth 不能为空");if(!e.body.thumbnailHeight)return v(p.PARAMS_ERROR.code,"thumbnailHeight 不能为空");var t={to:e.toId,type:d.MESSAGE_TYPE.IMAGE,conversationType:e.conversationType,body:{originalUrl:e.body.originalUrl,originalWidth:e.body.originalWidth,originalHeight:e.body.originalHeight,thumbnailUrl:e.body.thumbnailUrl,thumbnailWidth:e.body.thumbnailWidth,thumbnailHeight:e.body.thumbnailHeight}};return e.extra&&(t.extra=e.extra),Ye(t)}function Ne(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body.address)return v(p.PARAMS_ERROR.code,"address 不能为空");if(!e.body.description)return v(p.PARAMS_ERROR.code,"description 不能为空");if(!e.body.longitude)return v(p.PARAMS_ERROR.code,"longitude 不能为空");if(!e.body.latitude)return v(p.PARAMS_ERROR.code,"latitude 不能为空");var t={to:e.toId,type:d.MESSAGE_TYPE.LOCATION,conversationType:e.conversationType,body:{address:e.body.address,description:e.body.description,longitude:e.body.longitude,latitude:e.body.latitude}};return e.extra&&(t.extra=e.extra),Ye(t)}function Ie(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body||!e.body.file)return v(p.PARAMS_ERROR.code,"file 不能为空");if(!e.body.file.tempFilePath)return v(p.PARAMS_ERROR.code,"tempFilePath 不能为空");if(!e.body.file.duration)return v(p.PARAMS_ERROR.code,"duration 不能为空");var t={to:e.toId,type:d.MESSAGE_TYPE.AUDIO,conversationType:e.conversationType,body:{audioUrl:e.body.file.tempFilePath,duration:e.body.file.duration}};e.extra&&(t.extra=e.extra);var n=Ye(t);return void 0!==e.onProgress&&"function"==typeof e.onProgress&&(n.onProgress=e.onProgress),n}function Xe(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body)return v(p.PARAMS_ERROR.code,"body 不能为空");if(!e.body.audioUrl)return v(p.PARAMS_ERROR.code,"audioUrl 不能为空");if(!e.body.duration)return v(p.PARAMS_ERROR.code,"duration 不能为空");var t={to:e.toId,type:d.MESSAGE_TYPE.AUDIO,conversationType:e.conversationType,body:{audioUrl:e.body.audioUrl,duration:e.body.duration}};return e.extra&&(t.extra=e.extra),Ye(t)}function Je(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body||!e.body.file)return v(p.PARAMS_ERROR.code,"file 不能为空");if(!e.body.file.duration)return v(p.PARAMS_ERROR.code,"duration 不能为空");if("number"!=typeof e.body.file.duration)return v(p.PARAMS_ERROR.code,"duration 参数请传入整型");if(!e.body.file.tempFilePath)return v(p.PARAMS_ERROR.code,"tempFilePath 不能为空");if(!e.body.file.width)return v(p.PARAMS_ERROR.code,"width 不能为空");if(!e.body.file.height)return v(p.PARAMS_ERROR.code,"height 不能为空");var t={to:e.toId,type:d.MESSAGE_TYPE.VIDEO,conversationType:e.conversationType,body:{videoUrl:e.body.file.tempFilePath,thumbnailUrl:"",duration:e.body.file.duration,videoWidth:e.body.file.width,videoHeight:e.body.file.height}};e.extra&&(t.extra=e.extra);var n=Ye(t);return void 0!==e.onProgress&&"function"==typeof e.onProgress&&(n.onProgress=e.onProgress),n}function Fe(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body)return v(p.PARAMS_ERROR.code,"file 不能为空");if(!e.body.duration)return v(p.PARAMS_ERROR.code,"duration 不能为空");if("number"!=typeof e.body.duration)return v(p.PARAMS_ERROR.code,"duration 参数请传入整型");if(!e.body.videoUrl)return v(p.PARAMS_ERROR.code,"tempFilePath 不能为空");if(!e.body.width)return v(p.PARAMS_ERROR.code,"width 不能为空");if(!e.body.height)return v(p.PARAMS_ERROR.code,"height 不能为空");var t={to:e.toId,type:d.MESSAGE_TYPE.VIDEO,conversationType:e.conversationType,body:{videoUrl:e.body.videoUrl,thumbnailUrl:e.body.thumbnailUrl,duration:e.body.duration,videoWidth:e.body.width,videoHeight:e.body.height}};return e.extra&&(t.extra=e.extra),Ye(t)}function Be(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body||!e.body.custom)return v(p.PARAMS_ERROR.code,"自定义消息的 body 和 body.custom 不能为空");var t={to:e.toId,type:d.MESSAGE_TYPE.CUSTOM,conversationType:e.conversationType,body:{custom:e.body.custom}};return e.extra&&(t.extra=e.extra),Ye(t)}function He(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body||!e.body.title)return v(p.PARAMS_ERROR.code,"title 不能为空");if(!e.body.messageList)return v(p.PARAMS_ERROR.code,"messageList 不能为空");if("[object Array]"!==Object.prototype.toString.call(e.body.messageList))return v(p.PARAMS_ERROR.code,"messageList 应为由Message结构组成的数组");if(!e.body.summaryList)return v(p.PARAMS_ERROR.code,"summaryList 不能为空");if("[object Array]"!==Object.prototype.toString.call(e.body.summaryList))return v(p.PARAMS_ERROR.code,"summaryList 应为字符串数组");var t={to:e.toId,type:d.MESSAGE_TYPE.MERGER,conversationType:e.conversationType,body:{title:e.body.title,messageList:e.body.messageList,summaryList:e.body.summaryList}};return e.extra&&(t.extra=e.extra),Ye(t)}function je(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(null==e||!e.toId)return v(p.PARAMS_ERROR.code,"toId 不能为空");if(!e.conversationType)return v(p.PARAMS_ERROR.code,"conversationType 不能为空");if(!e.body||!e.body.message)return v(p.PARAMS_ERROR.code,"message 不能为空");var t={to:e.toId,type:d.MESSAGE_TYPE.FORWARD,conversationType:e.conversationType,body:{message:e.body.message}};return e.extra&&(t.extra=e.extra),Ye(t)}function Ge(e){if(!he.checkLogged())return b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(!e.message)return b(e,p.PARAMS_ERROR.code,"message 不能为空");var t=e.message;t.type==d.MESSAGE_TYPE.IMAGE?function(e){var t=e.message;(t.body.originalUrl.includes("http://")||t.body.originalUrl.includes("https://")||t.body.originalUrl.includes("ftp://"))&&(t.body.thumbnailUrl.includes("http://")||t.body.thumbnailUrl.includes("https://")||t.body.thumbnailUrl.includes("ftp://")),Oe({filename:he.token+"_image.png",filepath:t.body.originalUrl,width:t.body.originalWidth,height:t.body.originalHeight,success:function(n){console.log(666),console.log(n),t.body.originalUrl=n.data.url,t.body.thumbnailWidth=n.data.thumbnailWidth,t.body.thumbnailHeight=n.data.thumbnailHeight,t.body.thumbnailUrl=n.data.thumbnailUrl,e.message=t,Qe(e)},fail:function(t){b(e,t.code,t.message),h(1,t)},onProgress:function(e){void 0!==t.onProgress&&"function"==typeof t.onProgress&&t.onProgress(e)}})}(e):t.type==d.MESSAGE_TYPE.VIDEO?function(e){var t=e.message;if(t.body.videoUrl.includes("http://")||t.body.videoUrl.includes("https://")||t.body.videoUrl.includes("ftp://"))return Qe(e);!function(e){if(!he.mediaUploadParams)return h(1,"媒体上传参数获取失败",!0);var t=he.mediaUploadParams,n=e.filename.substring(e.filename.lastIndexOf(".")),r=F((new Date).getTime()+"_"+e.filename)+"_video"+n,i=xe(),o=_e()+"/"+Ce(r,"video");if("cos"==t.storage)setTimeout(L(D.mark((function t(){var n,a;return D.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,we("post","/","");case 2:n=t.sent,a=ve({url:i,name:"file",data:{key:Ce(r,"video"),success_action_status:200,Signature:n,"Content-Type":""},header:{Authorization:n},filePath:e.filepath,ignoreResult:!0,success:function(){var t=L(D.mark((function t(){var n;return D.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,we("get","/"+Ce(r,"video"),"");case 2:n=t.sent,me({url:i+"/"+Ce(r,"video")+"?ci-process=snapshot&time=1",header:{Authorization:n},success:function(t){Oe({filename:F(r+t.data)+"_videoThumb.jpg",filepath:t.data,success:function(t){m(e,p.NORMAL_SUCCESS.describe,{videoUrl:o,thumbnailUrl:t.data.url})},fail:function(t){b(e,p.NORMAL_ERROR.code,t)}})},fail:function(){b(e,p.COS_DOWNLOAD_ERROR_1.code,p.COS_DOWNLOAD_ERROR_1.describe)}});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),fail:function(){b(e,p.COS_UPLOAD_ERROR.code,p.COS_UPLOAD_ERROR.describe)}}),void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}));case 5:case"end":return t.stop()}}),t)}))),0);else if("oss"===t.storage)setTimeout(L(D.mark((function n(){var a;return D.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Le();case 2:a=ve({url:i,name:"file",data:{key:Ce(r,"video"),policy:t.policyBase64,OSSAccessKeyId:t.accessKeyId,success_action_status:200,signature:t.signature},filePath:e.filepath,ignoreResult:!0,success:function(){m(e,p.NORMAL_SUCCESS.describe,{videoUrl:o,thumbnailUrl:o+"?x-oss-process=video/snapshot,t_1000,f_jpg,m_fast"})},fail:function(){b(e,p.OSS_UPLOAD_ERROR.code,p.OSS_UPLOAD_ERROR.describe)}}),void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}));case 4:case"end":return n.stop()}}),n)}))));else if("local"===t.storage){var a=ve({url:i+ye.Upload.video,name:"file",data:{key:Ce(r,"video")},header:{token:he.token},filePath:e.filepath,ignoreResult:!1,success:function(t){m(e,p.NORMAL_SUCCESS.describe,{url:_e()+t.data.url})},fail:function(){b(e,p.UPLOAD_ERROR.code,p.UPLOAD_ERROR.describe)}});void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}))}}({filename:he.token+"_video.mp4",filepath:t.body.videoUrl,success:function(n){var r=n.data.thumbnailUrl;t.body.videoUrl=n.data.videoUrl,t.body.thumbnailUrl=r,e.message=t,Qe(e)},fail:function(t){b(e,t.code,t.message),h(1,t)},onProgress:function(e){void 0!==t.onProgress&&"function"==typeof t.onProgress&&t.onProgress(e)}})}(e):t.type==d.MESSAGE_TYPE.AUDIO?function(e){var t=e.message;if(t.body.audioUrl.includes("http://")||t.body.audioUrl.includes("https://")||t.body.audioUrl.includes("ftp://"))return Qe(e);!function(e){if(!he.mediaUploadParams)return b(e,p.PARAMS_ERROR.code,"上传参数异常,暂无法使用此接口");var t=he.mediaUploadParams,n=e.filename.substring(e.filename.lastIndexOf(".")),r=F((new Date).getTime()+"_"+e.filename)+"_audio"+n,i=xe(),o=_e()+"/"+Ce(r,"audio");if("cos"===t.storage)setTimeout(L(D.mark((function t(){var n,a;return D.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,we("post","/","");case 2:n=t.sent,a=ve({url:i,name:"file",data:{key:Ce(r,"audio"),success_action_status:200,Signature:n,"Content-Type":""},header:{Authorization:n},filePath:e.filepath,ignoreResult:!0,success:function(){m(e,p.NORMAL_SUCCESS.describe,{url:o})},fail:function(){b(e,p.COS_UPLOAD_ERROR.code,p.COS_UPLOAD_ERROR.describe)}}),void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}));case 5:case"end":return t.stop()}}),t)}))),0);else if("oss"===t.storage)setTimeout(L(D.mark((function n(){var a;return D.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Le();case 2:a=ve({url:i,name:"file",data:{key:Ce(r,"audio"),policy:t.policyBase64,OSSAccessKeyId:t.accessKeyId,success_action_status:200,signature:t.signature},filePath:e.filepath,ignoreResult:!0,success:function(){m(e,p.NORMAL_SUCCESS.describe,{url:o})},fail:function(){b(e,p.OSS_UPLOAD_ERROR.code,p.OSS_UPLOAD_ERROR.describe)}}),void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}));case 4:case"end":return n.stop()}}),n)}))));else if("local"===t.storage){var a=ve({url:i+"/upload",name:"file",data:{key:Ce(r,"audio")},header:{token:he.token},filePath:e.filepath,ignoreResult:!1,success:function(t){m(e,p.NORMAL_SUCCESS.describe,{url:_e()+t.data.url})},fail:function(){b(e,p.UPLOAD_ERROR.code,p.UPLOAD_ERROR.describe)}});void 0!==e.onProgress&&"function"==typeof e.onProgress&&a.onProgressUpdate((function(t){e.onProgress(t)}))}}({filename:he.token+"_audio.aac",filepath:t.body.audioUrl,success:function(n){t.body.audioUrl=n.data.url,e.message=t,Qe(e)},fail:function(t){b(e,t.code,t.message),h(1,t)},onProgress:function(e){void 0!==t.onProgress&&"function"==typeof t.onProgress&&t.onProgress(e)}})}(e):Qe(e)}function Qe(e){ge(ye.Message.sendMessage,"POST",e.message).then((function(t){We(t),m(e,p.NORMAL_SUCCESS.describe,t)})).catch((function(t){b(e,t.code,t.message),h(1,t)}))}function We(e){if(!e.conversationId)return h(1,"conversationId 不能为空");var t=$e(e.conversationId),n=t.findIndex((function(t){return t.messageId===e.messageId})),r="yeim:messageList:".concat(F(he.userId),":conversationId:").concat(F(e.conversationId));-1===n?(t.length>19&&t.splice(0,t.length-19),t.push(e),Me(r,t)):(t[n]=e,Me(r,t))}function Ue(e){if(!he.checkLogged())return b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(!e.conversationId)return b(e,p.PARAMS_ERROR.code,"conversationId 不能为空");var t=20;if(e.limit&&"number"==typeof e.limit&&(t=e.limit),e.nextMessageId){var n=e.nextMessageId,r=$e(e.conversationId),i=r.findIndex((function(e){return e.messageId===n}));if(-1===i)Ke(e.conversationId,n,t).then((function(t){m(e,p.NORMAL_SUCCESS.describe,t)})).catch((function(t){b(e,t.code,t.message)}));else{var o=r[i];if(t>(r=r.slice(0,i)).length){var a=null;Ke(e.conversationId,a=0==r.length?o.messageId:r[0].messageId,t-r.length).then((function(t){var n=r.concat(t.list);n.sort((function(e,t){return e.sequence-t.sequence})),t.list=n,t.nextMessageId||(t.nextMessageId=a),m(e,p.NORMAL_SUCCESS.describe,t)})).catch((function(t){b(e,t.code,t.message)}))}else m(e,p.NORMAL_SUCCESS.describe,{list:r,nextMessageId:r[0].messageId})}}else{var s=$e(e.conversationId);if(t>s.length){var c=null;s.length>0&&(c=s[0].messageId),Ke(e.conversationId,c,t-s.length).then((function(t){var n=s.concat(t.list);n.sort((function(e,t){return e.sequence-t.sequence})),Me("yeim:messageList:".concat(F(he.userId),":conversationId:").concat(F(e.conversationId)),n),t.list=n,t.nextMessageId||(t.nextMessageId=c),m(e,p.NORMAL_SUCCESS.describe,t)})).catch((function(t){b(e,t.code,t.message)}))}else m(e,p.NORMAL_SUCCESS.describe,{list:s,nextMessageId:s[0].messageId})}}function Ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20;return new Promise((function(r,i){ge(ye.Message.fetchHistoryMessageList,"GET",{nextMessageId:null==t||""==t?null:t,conversationId:e,limit:n}).then((function(e){var t={},n=e.records;(n=n.reverse()).sort((function(e,t){return e.sequence-t.sequence})),t.list=n,e.nextMessageId&&(t.nextMessageId=e.nextMessageId),r(t)})).catch((function(e){i(e)}))}))}function $e(e){var t=De("yeim:messageList:".concat(F(he.userId),":conversationId:").concat(F(e)));return(t=t||[]).sort((function(e,t){return e.sequence-t.sequence})),t}function ze(e){return he.checkLogged()?e.message?e.message.messageId?void ge(ye.Message.deleteMessage,"GET",{messageId:e.message.messageId}).then((function(){e.message.isDeleted=1,We(e.message),m(e,p.NORMAL_SUCCESS.describe,e.message)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"message.messageId 不能为空"):b(e,p.PARAMS_ERROR.code,"message 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function qe(e){return he.checkLogged()?e.message?e.message.messageId?void ge(ye.Message.revokeMessage,"GET",{messageId:e.message.messageId}).then((function(){e.message.isRevoke=1,We(e.message),m(e,p.NORMAL_SUCCESS.describe,e.message)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"message.messageId 不能为空"):b(e,p.PARAMS_ERROR.code,"message 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function Ve(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(!e)return v(p.PARAMS_ERROR.code,"conversationId 不能为空");var t=De("yeim:conversationList:".concat(F(he.userId))),n=(t=t||[]).findIndex((function(t){return t.conversationId===e}));return-1!==n?g(p.NORMAL_SUCCESS.describe,t[n]):v(p.NO_CONVERSATION.code,p.NO_CONVERSATION.describe)}function et(e){if(!he.checkLogged())return b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);var t=e.page,n=e.limit,r=De("yeim:conversationList:".concat(F(he.userId))),i=(t-1)*n,o=(r=r||[]).slice(i,r.length>i+n?i+n:r.length);m(e,p.NORMAL_SUCCESS.describe,o)}function tt(e){Me("yeim:conversationList:".concat(F(he.userId)),e),_(d.EVENT.CONVERSATION_LIST_CHANGED,e)}function nt(e){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);var t="yeim:conversationList:".concat(F(he.userId)),n=De(t),r=(n=n||[]).findIndex((function(t){return t.conversationId===e}));-1!==r&&(n[r].unread=0,Me(t,n)),ge(ye.Conversation.clearConversationUnread,"GET",{conversationId:e}).then((function(){})).catch((function(e){h(1,e)})),_(d.EVENT.CONVERSATION_LIST_CHANGED,n)}function rt(t){if(!he.checkLogged())return v(p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);var n="yeim:conversationList:".concat(F(he.userId)),r=De(n),i=(r=r||[]).findIndex((function(e){return e.conversationId===t}));-1!==i&&(r.splice(i,1),Me(n,r)),function(t){he.uni?e.removeStorageSync(t):localStorage.removeItem(t)}("yeim:messageList:".concat(F(he.userId),":conversationId:").concat(F(t))),ge(ye.Conversation.deleteConversation,"GET",{conversationId:t}).then((function(){})).catch((function(e){h(1,e)})),_(d.EVENT.CONVERSATION_LIST_CHANGED,r)}function it(e){return he.checkLogged()?e.name?e.avatarUrl?void ge(ye.Group.create,"POST",e).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"avatarUrl 不能为空"):b(e,p.PARAMS_ERROR.code,"name 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function ot(e){return he.checkLogged()?e.groupId?void ge(ye.Group.dissolve,"GET",{groupId:e.groupId}).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function at(e){return he.checkLogged()?e.groupId?e.userId?void ge(ye.Group.transferLeader,"GET",{groupId:e.groupId,userId:e.userId}).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"userId 不能为空"):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function st(e){return he.checkLogged()?e.groupId?void ge(ye.Group.update,"POST",e).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function ct(e){return he.checkLogged()?e.groupId?void ge(ye.Group.fetchGroupInfoById,"GET",{groupId:e.groupId}).then((function(t){m(e,p.NORMAL_SUCCESS.describe,t)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function ut(e){if(!he.checkLogged())return b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);ge(ye.Group.list,"GET",{}).then((function(t){m(e,p.NORMAL_SUCCESS.describe,t)})).catch((function(t){b(e,t.code,t.message),h(1,t)}))}function lt(e){return he.checkLogged()?e.groupId?void ge(ye.Group.addUser,"POST",{groupId:e.groupId,members:[he.userId]}).then((function(t){var n=t.group,r=t.successList;if(-1!=t.ignoreList.indexOf(he.userId))return b(e,p.GROUP_APPLY_REPEAT.code,p.GROUP_APPLY_REPEAT.describe);var i=!1;if(-1!=r.indexOf(he.userId)&&(i=!0),!i)return b(e,p.GROUP_APPLY_ERROR.code,p.GROUP_APPLY_ERROR.describe);if(n.joinMode==d.GROUP.JOINMODE.FREE)m(e,p.NORMAL_SUCCESS.code,"成功加入群组");else{if(n.joinMode!=d.GROUP.JOINMODE.CHECK)return b(e,p.NORMAL_ERROR.code,p.NORMAL_ERROR.describe);m(e,p.GROUP_APPLY_WAIT.code,p.GROUP_APPLY_WAIT.describe)}})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function ft(e){return he.checkLogged()?e.groupId?void ge(ye.Group.leave,"GET",{groupId:e.groupId}).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function dt(e){return he.checkLogged()?e.groupId?e.members&&e.members.length>0?void ge(ye.Group.addUser,"POST",{groupId:e.groupId,members:e.members}).then((function(t){m(e,p.NORMAL_SUCCESS.describe,t)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"members 不能为空"):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function pt(e){return he.checkLogged()?e.groupId?e.members&&e.members.length>0?void ge(ye.Group.remove,"POST",{groupId:e.groupId,members:e.members}).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"members 不能为空"):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function ht(e){return he.checkLogged()?e.groupId?void ge(ye.Group.memberList,"GET",{groupId:e.groupId}).then((function(t){m(e,p.NORMAL_SUCCESS.describe,t)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function yt(e){return he.checkLogged()?e.groupId?void ge(ye.Group.adminstrator,"GET",{groupId:e.groupId,userId:e.userId,isAdmin:1===isAdmin?isAdmin:0}).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function gt(e){return he.checkLogged()?e.groupId?void ge(ye.Group.applyList,"GET",{}).then((function(t){m(e,p.NORMAL_SUCCESS.describe,t)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function vt(e){return he.checkLogged()?e.id?e.status?void ge(ye.Group.handleApply,"GET",{id:e.id,status:e.status}).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"status 不能为空"):b(e,p.PARAMS_ERROR.code,"id 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function mt(e){return he.checkLogged()?e.groupId?e.userId?(e.time||(e.time=0),void ge(ye.Group.setMute,"GET",{groupId:e.groupId,userId:e.userId,time:e.time}).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),h(1,t)}))):b(e,p.PARAMS_ERROR.code,"userId 不能为空"):b(e,p.PARAMS_ERROR.code,"groupId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function bt(e){if(!he.checkLogged())return b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);if(!e.userId)return b(e,p.PARAMS_ERROR.code,"userId 不能为空");var t="yeim:userList:".concat(F(he.userId));if(e.cloud)ge(ye.User.fetchUserInfoById,"GET",{userId:e.userId}).then((function(n){var r=De(t);(r=r||[]).push(n),Me(t,r),m(e,p.NORMAL_SUCCESS.describe,n)})).catch((function(t){b(e,t.code,t.message),log(1,t)}));else{var n=De(t),r=(n=n||[]).findIndex((function(t){return t.userId===e.userId}));-1!==r?(m(e,p.NORMAL_SUCCESS.describe,n[r]),ge(ye.User.fetchUserInfoById,"GET",{userId:e.userId}).then((function(e){var n=De(t);(n=n||[])[r]=e,Me(t,n)})).catch((function(t){b(e,t.code,t.message),log(1,t)}))):ge(ye.User.fetchUserInfoById,"GET",{userId:e.userId}).then((function(n){var r=De(t);(r=r||[]).push(n),Me(t,r),m(e,p.NORMAL_SUCCESS.describe,n)})).catch((function(t){b(e,t.code,t.message),log(1,t)}))}}function St(e){return he.checkLogged()?Object.keys(e).length>0?void ge(ye.User.updateUserInfo,"POST",e).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),log(1,t)})):b(e,p.PARAMS_ERROR.code,"请至少选择一个属性进行更新"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function xt(e){if(!he.checkLogged())return b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe);ge(ye.User.getBlackUserList,"GET",{}).then((function(t){m(e,p.NORMAL_SUCCESS.describe,t)})).catch((function(t){b(e,t.code,t.message),log(1,t)}))}function _t(e){return he.checkLogged()?e.members&&0!=e.members.length?void ge(ye.User.addToBlackUserList,"POST",{members:e.members}).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),log(1,t)})):b(e,p.PARAMS_ERROR.code,"members 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function Ct(e){return he.checkLogged()?e.members&&0!=e.members.length?void ge(ye.User.removeFromBlacklist,"POST",{members:e.members}).then((function(){m(e,p.NORMAL_SUCCESS.describe)})).catch((function(t){b(e,t.code,t.message),log(1,t)})):b(e,p.PARAMS_ERROR.code,"members 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function wt(e){var t="yeim:friendList:".concat(F(he.userId)),n=e.page?e.page:1,r=e.limit?e.limit:20;if(e.cloud)ge(ye.Friend.fetchList,"GET",{profile:e.profile?0:1,page:n,limit:r}).then((function(t){m(e,p.NORMAL_SUCCESS.describe,t.records)})).catch((function(t){b(e,t.code,t.message),h(1,t)}));else{var i=De(t),o=(n-1)*r;i=(i=i||[]).slice(o,i.length>o+r?o+r:i.length),m(e,p.NORMAL_SUCCESS.describe,i)}}function Pt(){wt({cloud:!0,page:1,limit:9999999,success:function(e){Me("yeim:friendList:".concat(F(he.userId)),e.data),_(d.EVENT.FRIEND_LIST_CHANGED,e)},fail:function(){_(d.EVENT.FRIEND_LIST_CHANGED,null)}})}function Lt(){Tt({cloud:!0,type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,page:1,limit:9999999,success:function(e){var t=e.data,n=t.records,r=t.unread,i="yeim:friendApplyList:".concat(F(he.userId)),o="yeim:friendApplyUnread:".concat(F(he.userId));Me(i,n),Me(o,r),_(d.EVENT.FRIEND_APPLY_LIST_CHANGED,e)},fail:function(){_(d.EVENT.FRIEND_APPLY_LIST_CHANGED,null)}})}function Tt(e){var t="yeim:friendApplyList:".concat(F(he.userId)),n="yeim:friendApplyUnread:".concat(F(he.userId)),r=e.page?e.page:1,i=e.limit?e.limit:20;if(e.cloud)ge(ye.Friend.fetchApplyList,"GET",{type:e.type?e.type:0,page:r,limit:i}).then((function(t){m(e,p.NORMAL_SUCCESS.describe,{records:t.apply.records,unread:t.unread})})).catch((function(t){b(e,t.code,t.message),h(1,t)}));else{var o=De(t),a=(r-1)*i;o=(o=o||[]).slice(a,o.length>a+i?a+i:o.length),m(e,p.NORMAL_SUCCESS.describe,{list:o,unread:De(n)?De(n):0})}}function At(e){ge(ye.Friend.setRead,"GET",{}).then((function(){m(e,p.NORMAL_SUCCESS.describe,null)})).catch((function(t){b(e,t.code,t.message),h(1,t)}))}function Ot(e){return he.checkLogged()?e.id?void ge(ye.Friend.acceptApply,"GET",{id:e.id,remark:e.remark?e.remark:null}).then((function(){m(e,p.NORMAL_SUCCESS.describe,null)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"id 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function Yt(e){return he.checkLogged()?e.id?void ge(ye.Friend.refuseApply,"GET",{id:e.id}).then((function(){m(e,p.NORMAL_SUCCESS.describe,null)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"id 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function Dt(e){return he.checkLogged()?e.userId?void ge(ye.Friend.addFriend,"POST",{userId:e.userId,remark:e.remark?e.remark:null,extraMessage:e.extraMessage?e.extraMessage:null}).then((function(){m(e,p.NORMAL_SUCCESS.describe,null)})).catch((function(t){t.code===p.APPLY_NEED.code?m(e,p.APPLY_NEED.describe,null,p.APPLY_NEED.code):(b(e,t.code,t.message),h(1,t))})):b(e,p.PARAMS_ERROR.code,"userId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function Mt(e){return he.checkLogged()?e.members?void ge(ye.Friend.deleteFriend,"POST",{members:e.members}).then((function(){m(e,p.NORMAL_SUCCESS.describe,null)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"members 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function kt(e){return he.checkLogged()?e.userId?e.remark||e.extend?void ge(ye.Friend.updateFriend,"POST",{userId:e.userId,remark:e.remark?e.remark:null,extend:e.extend?e.extend:null}).then((function(){m(e,p.NORMAL_SUCCESS.describe,null)})).catch((function(t){b(e,t.code,t.message),h(1,t)})):b(e,p.PARAMS_ERROR.code,"请至少传入一个参数更新"):b(e,p.PARAMS_ERROR.code,"userId 不能为空"):b(e,p.LOGIN_EXPIRE.code,p.LOGIN_EXPIRE.describe)}function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;arguments.length>t;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.instance=he;var Rt=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,n),this.defaults=Et(Et({baseURL:void 0,socketURL:void 0,eventPrefix:"YeIM_",reConnectTotal:15,reConnectInterval:3e3,heartInterval:3e4,logLevel:0},t),{},{notification:Et({autoPermission:!1,oppoChannelId:"Default",xiaomiChannelId:"high_system"},t.notification)}),this.uni="undefined"!=typeof e,this.version="1.2.4",this.emitter=x(),this.firstConnect=!0,this.webSocket=void 0,this.socketLogged=!1,this.allowReconnect=!0,this.lockReconnect=!1,this.reConnectNum=0,this.connectTimer=void 0,this.heartTimer=void 0,this.checkTimer=void 0,this.user={},this.userId=void 0,this.token=void 0,this.mediaUploadParams={},this.mobileDeviceId=void 0,this.inApp=!0}return f(n,[{key:"connect",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!n.userId||!n.token)return b(n,p.NO_USERID.code,p.NO_USERID.describe);this.webSocket=new y(this.defaults.socketURL+"/"+n.userId+"/"+n.token),this.webSocket.onOpen(this.socketOpen.bind(this)),this.webSocket.onClose(this.socketClose.bind(this)),this.webSocket.onError(this.socketError.bind(this)),this.webSocket.onMessage(this.socketMessage.bind(this)),this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=void 0),this.connectTimer=setTimeout((function(){return t.connectTimer=void 0,h(1,"连接服务端失败,请检查配置"),b(n,p.CONNECT_ERROR.code,p.CONNECT_ERROR.describe)}),this.defaults.reConnectInterval+1e3),this.webSocket.onMessage((function(r){if(t.socketLogged)return clearTimeout(t.connectTimer),void(t.connectTimer=void 0);clearTimeout(t.connectTimer),t.connectTimer=void 0;var i,o=JSON.parse(r.data);if(201==o.code){var a=o.data.user;t.user=a,t.userId=n.userId,t.token=n.token;var s=o.data.pushConfig;if(s.oppoChannelId&&(t.defaults.notification.oppoChannelId=s.oppoChannelId),s.xiaomiChannelId&&(t.defaults.notification.xiaomiChannelId=s.xiaomiChannelId),t.socketLogged=!0,t.reConnectNum=0,h(1,"YeIMServer登陆成功,登陆用户:".concat(n.userId)),ge(ye.Conversation.fetchConversationList,"GET",{page:1,limit:999999}).then((function(e){tt(e.records)})).catch((function(e){h(1,e)})),Pt(),Lt(),be(),t.uni){t.defaults.notification.autoPermission&&function(){var t=e.getSystemInfoSync();if("app"==t.uniPlatform&&"android"==t.osName){var n=plus.android.runtimeMainActivity(),r=n.getPackageName(),i=n.getApplicationInfo().plusGetAttribute("uid"),o=plus.android.importClass("android.support.v4.app.NotificationManagerCompat");null==o&&(o=plus.android.importClass("androidx.core.app.NotificationManagerCompat"));var a=o.from(n).areNotificationsEnabled(),s=e.getStorageSync("first_flag")||!1;a||s||(e.setStorageSync("first_flag",!0),e.showModal({title:"通知权限开启提醒",content:"您还没有开启通知权限,无法接受到消息通知,请前往设置!",showCancel:!1,confirmText:"去设置",success:function(e){if(e.confirm){var t=plus.android.importClass("android.content.Intent"),o=plus.android.importClass("android.os.Build");if(26>o.VERSION.SDK_INT)if(21>o.VERSION.SDK_INT){s.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);var a=Uri.fromParts("package",mainActivity.getPackageName(),null);s.setData(a)}else{var s;(s=new t("android.settings.APP_NOTIFICATION_SETTINGS")).putExtra("app_package",r),s.putExtra("app_uid",i)}else(s=new t("android.settings.APP_NOTIFICATION_SETTINGS")).putExtra("android.provider.extra.APP_PACKAGE",r);n.startActivity(s)}}}))}else if("app"==t.uniPlatform&&"ios"==t.osName){var c=0,u=plus.ios.invoke("UIApplication","sharedApplication"),l=plus.ios.invoke(u,"currentUserNotificationSettings");l?(c=l.plusGetAttribute("types"),plus.ios.deleteObject(l)):c=plus.ios.invoke(u,"enabledRemoteNotificationTypes"),plus.ios.deleteObject(u),0==(0!=c)&&e.showModal({title:"通知权限开启提醒",content:"您还没有开启通知权限,无法接受到消息通知,请前往设置!",showCancel:!1,confirmText:"去设置",success:function(e){if(e.confirm){var t=plus.ios.invoke("UIApplication","sharedApplication"),n=plus.ios.invoke("NSURL","URLWithString:","app-settings:");plus.ios.invoke(t,"openURL:",n),plus.ios.deleteObject(n),plus.ios.deleteObject(t)}}})}}(),function(){var t=e.getSystemInfoSync();if("app"==t.uniPlatform&&"android"==t.osName&&he.defaults.notification&&he.defaults.notification.oppoChannelId&&plus.android.importClass("android.os.Build").VERSION.SDK_INT>=26){var n=he.defaults.notification.oppoChannelId,r=plus.android.runtimeMainActivity(),i=plus.android.importClass("android.content.Context"),o=plus.android.importClass("android.app.NotificationManager"),a=r.getSystemService(i.NOTIFICATION_SERVICE),s=a.getNotificationChannel(n),c=plus.android.importClass("android.app.NotificationChannel"),u=plus.android.importClass("android.app.Notification");if(s&&a.deleteNotificationChannel(s),!s||null==s||"null"==s||null==s){var l=new c(n,"聊天离线通知",o.IMPORTANCE_HIGH);l.setDescription("用于用户离线时推送消息通知"),l.enableVibration(!0),l.enableLights(!0),l.setBypassDnd(!0),l.setLockscreenVisibility(u.VISIBILITY_SECRET),a.createNotificationChannel(l)}}}(),i=e.getSystemInfoSync(),he.checkLogged()&&"app"==i.uniPlatform&&plus.push.getClientInfoAsync((function(e){var t=e.clientid;t&&ge(ye.Push.bindClientId,"GET",{clientId:t}).then((function(){h(0,"注册APP用户离线通知推送标识符成功,当前获取的cid为:"+t)})).catch((function(e){h(1,"注册APP用户离线通知推送标识符异常:"+e.message)}))}));var c=[];e.onPushMessage((function(n){if(!t.inApp&&"receive"==n.type){var r=n.data.__UUID__;c.indexOf(r)>0||(c.push(r),e.createPushMessage({title:n.data.title,content:n.data.content,sound:"system",success:function(){},fail:function(){}}))}}))}return m(n,p.NORMAL_SUCCESS.describe,a)}return b(n,p.LOGIN_ERROR.code,p.LOGIN_ERROR.describe)}))}},{key:"disConnect",value:function(){this.allowReconnect=!1,this.webSocket.close(),this.webSocket.destroy()}},{key:"reConnect",value:function(){var e=this;if(this.allowReconnect&&!this.lockReconnect){if(!this.userId||!this.token)return void(this.allowReconnect=!1);if(this.defaults.reConnectTotal>0&&this.reConnectNum>=this.defaults.reConnectTotal)return void(this.allowReconnect=!1);this.reConnectNum++,this.lockReconnect=!0,_(d.EVENT.NET_CHANGED,"connecting"),setTimeout((function(){h(1,"WebSocket 正在进行第".concat(e.reConnectNum,"次重连"));try{e.connect({userId:e.userId,token:e.token})}catch(e){console.log(e)}e.lockReconnect=!1}),this.defaults.reConnectInterval)}}},{key:"readyState",value:function(){return this.webSocket&&this.webSocket.socketTask?this.webSocket.socketTask.readyState:3}},{key:"startHeartTimer",value:function(){var e=this;this.clearHeartTimer(),this.webSocket&&this.webSocket.socketTask&&(this.heartTimer=setTimeout((function(){1==e.readyState()&&(e.webSocket.send({type:"heart",data:"ping"}),e.checkTimer=setTimeout((function(){e.webSocket.close()}),e.defaults.heartInterval))}),this.defaults.heartInterval))}},{key:"clearHeartTimer",value:function(){return clearTimeout(this.heartTimer),clearTimeout(this.checkTimer),this}},{key:"socketOpen",value:function(e){h(1,"WebSocket成功连接"),_(d.EVENT.NET_CHANGED,"connected")}},{key:"socketClose",value:function(e){h(1,"WebSocket断开连接"),this.socketLogged=!1,this.webSocket.close(),this.webSocket.destroy(),_(d.EVENT.NET_CHANGED,"closed"),this.reConnect()}},{key:"socketError",value:function(e){h(1,e),this.reConnect()}},{key:"socketMessage",value:function(e){if(h(0,e),this.startHeartTimer(),this.socketLogged){var t=JSON.parse(e.data);t?this.socketMessageHandle(t):h(1,e)}}},{key:"socketMessageHandle",value:function(e){if(200==e.code){var t=e.data;We(t),_(d.EVENT.MESSAGE_RECEIVED,t)}else 203==e.code?function(e){var t=De("yeim:conversationList:".concat(F(he.userId))),n=(t=t||[]).findIndex((function(t){return t.conversationId===e.conversationId}));-1===n||t.splice(n,1),t.unshift(e),tt(t)}(e.data):205==e.code?function(e){if(!e)return h(1,"conversationId 为空,无法继续执行");var t="yeim:messageList:".concat(F(he.userId),":conversationId:").concat(F(e)),n=De(t);if(n=n||[]){for(var r=[],i=0;n.length>i;i++){var o=n[i];"out"==o.direction&&(o.isRead=1,n[i].isRead=1,r.push(o))}Me(t,n),_(d.EVENT.PRIVATE_READ_RECEIPT,{conversationId:e,list:r})}}(e.data.conversationId):207==e.code?function(e){var t="yeim:messageList:".concat(F(he.userId),":conversationId:").concat(F(e.conversationId)),n=De(t)?De(t):[],r=(n=n||[]).findIndex((function(t){return t.messageId===e.messageId}));-1!==r&&(n[r]=e,Me(t,n)),_(d.EVENT.MESSAGE_REVOKED,e)}(e.data):208==e.code?setTimeout((function(){Pt()}),500):209==e.code?setTimeout((function(){Lt()}),500):210==e.code?(_(d.EVENT.FRIEND_APPLY_REFUSE,e.data),setTimeout((function(){Lt(1)}),500)):10009==e.code&&(this.allowReconnect=!1,this.clearHeartTimer(),this.webSocket.close(),_(d.EVENT.KICKED_OUT,!0),h(1,"用户:".concat(this.userId," 由于多个实例同时登录被踢出")))}},{key:"checkLogged",value:function(){return!!(this.socketLogged&&this.userId&&this.token)}},{key:"intoApp",value:function(){this.inApp=!0}},{key:"leaveApp",value:function(){this.inApp=!1}}],[{key:"init",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"undefined"!=typeof e&&e.$YeIMInstance&&(t.instance=he=e.$YeIMInstance),he||(r.baseURL&&r.socketURL?(t.instance=he=new n(r),"undefined"!=typeof e&&(e.$YeIMInstance=he),n.prototype.createTextMessage=ke,n.prototype.createTextAtMessage=Ze,n.prototype.createImageMessage=Ee,n.prototype.createImageMessageFromUrl=Re,n.prototype.createAudioMessage=Ie,n.prototype.createAudioMessageFromUrl=Xe,n.prototype.createVideoMessage=Je,n.prototype.createVideoMessageFromUrl=Fe,n.prototype.createLocationMessage=Ne,n.prototype.createCustomMessage=Be,n.prototype.createMergerMessage=He,n.prototype.createForwardMessage=je,n.prototype.upload=Ae,n.prototype.sendMessage=Ge,n.prototype.getHistoryMessageList=Ue,n.prototype.revokeMessage=qe,n.prototype.deleteMessage=ze,n.prototype.getConversation=Ve,n.prototype.getConversationList=et,n.prototype.clearConversationUnread=nt,n.prototype.deleteConversation=rt,n.prototype.getUserInfo=bt,n.prototype.updateUserInfo=St,n.prototype.getBlackUserList=xt,n.prototype.addToBlackUserList=_t,n.prototype.removeFromBlacklist=Ct,n.prototype.addEventListener=C,n.prototype.removeEventListener=w,n.prototype.createGroup=it,n.prototype.dissolveGroup=ot,n.prototype.updateGroup=st,n.prototype.getGroup=ct,n.prototype.transferLeader=at,n.prototype.getGroupList=ut,n.prototype.joinGroup=lt,n.prototype.leaveGroup=ft,n.prototype.addGroupUsers=dt,n.prototype.getGroupUserList=ht,n.prototype.removeGroupUsers=pt,n.prototype.setAdminstrator=yt,n.prototype.setMute=mt,n.prototype.getGroupApplyList=gt,n.prototype.handleApply=vt,n.prototype.getFriendList=wt,n.prototype.getFriendApplyList=Tt,n.prototype.setApplyListRead=At,n.prototype.acceptApply=Ot,n.prototype.refuseApply=Yt,n.prototype.addFriend=Dt,n.prototype.deleteFriend=Mt,n.prototype.updateFriend=kt,h(1,"============= YeIMUniSDK 初始化成功!版本号:"+he.version+" ============="),he):console.error(p.SDK_PARAMS_ERROR.describe))}},{key:"getInstance",value:function(){if("undefined"!=typeof e&&e.$YeIMInstance&&(t.instance=he=e.$YeIMInstance),he)return he;console.error("SDK未初始化,无法获取实例化对象")}}]),n}();t.YeIMUniSDK=Rt}).call(this,n(2)["default"],n(3))},44:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.login=i,t.sendSystem=o;var r=n(45);function i(e){return(0,r.request)({url:"/im/user/token/get",method:"post",data:e})}function o(e){return(0,r.request)({url:"/im/message/save",method:"post",data:e})}},45:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.request=s;var i=r(n(46)),o=r(n(33)),a=function(){e.removeStorageSync("token"),e.removeStorageSync("chatToken"),e.removeStorageSync("vuex_state"),o.default.dispatch("app/changeOrganization",{}),o.default.dispatch("app/changeProject",{}),o.default.dispatch("app/changeUser",{}),o.default.dispatch("app/changeIdentity",{}),e.removeTabBarBadge({index:1}),e.navigateTo({url:"/pages/login/login"})};function s(t){return new Promise((function(n,r){var o=t.header||{"Content-Type":"application/json"};e.getStorageSync("token")&&(o["token"]=e.getStorageSync("token")),"/im/message/save"===t.url&&(o["token"]=e.getStorageSync("systemChatToken")),e.request({url:i.default.baseUrl+t.url,method:t.method||"GET",data:t.data||{},header:o,success:function(t){if(200===t.statusCode){if(n(t.data),200!=t.data.code){if(20005==t.data.code){if(!e.getStorageSync("token"))return;return e.showToast({title:"登录过期,请重新登录",icon:"none"}),void a()}e.showToast({title:t.data.message,icon:"none"})}}else r(t.data),e.hideLoading()},fail:function(t){e.showToast({title:"出错了,请联系管理员~",icon:"none"}),r(t),e.hideLoading()}})}))}}).call(this,n(2)["default"])},46:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={baseUrl:"https://www.waywish.com",socketURL:"wss://www.waywish.com/im/im"};t.default=r},468:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fontData=void 0;var r=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];t.fontData=r},47:function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(13);!function(){"use strict";function t(e){if(e)d[0]=d[16]=d[1]=d[2]=d[3]=d[4]=d[5]=d[6]=d[7]=d[8]=d[9]=d[10]=d[11]=d[12]=d[13]=d[14]=d[15]=0,this.blocks=d,this.buffer8=l;else if(a){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}var r="input is invalid type",e="object"==("undefined"===typeof window?"undefined":_typeof(window)),i=e?window:{};i.JS_MD5_NO_WINDOW&&(e=!1);var s=!e&&"object"==("undefined"===typeof self?"undefined":_typeof(self)),h=!i.JS_MD5_NO_NODE_JS&&"object"==("undefined"===typeof process?"undefined":_typeof(process))&&process.versions&&process.versions.node;h?i=global:s&&(i=self);var f=!i.JS_MD5_NO_COMMON_JS&&"object"==_typeof(module)&&module.exports,o=__webpack_require__(51),a=!i.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,n="0123456789abcdef".split(""),u=[128,32768,8388608,-2147483648],y=[0,8,16,24],c=["hex","array","digest","buffer","arrayBuffer","base64"],p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[],l;if(a){var A=new ArrayBuffer(68);l=new Uint8Array(A),d=new Uint32Array(A)}!i.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!a||!i.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==_typeof(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});var b=function(e){return function(n){return new t(!0).update(n)[e]()}},v=function(){var e=b("hex");h&&(e=w(e)),e.create=function(){return new t},e.update=function(t){return e.create().update(t)};for(var n=0;n<c.length;++n){var r=c[n];e[r]=b(r)}return e},w=function w(t){var e=eval("require('crypto')"),i=eval("require('buffer').Buffer"),s=function(n){if("string"==typeof n)return e.createHash("md5").update(n,"utf8").digest("hex");if(null===n||void 0===n)throw r;return n.constructor===ArrayBuffer&&(n=new Uint8Array(n)),Array.isArray(n)||ArrayBuffer.isView(n)||n.constructor===i?e.createHash("md5").update(new i(n)).digest("hex"):t(n)};return s};t.prototype.update=function(e){if(!this.finalized){var t,n=_typeof(e);if("string"!==n){if("object"!==n)throw r;if(null===e)throw r;if(a&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||a&&ArrayBuffer.isView(e)))throw r;t=!0}for(var i,o,s=0,c=e.length,u=this.blocks,l=this.buffer8;s<c;){if(this.hashed&&(this.hashed=!1,u[0]=u[16],u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),t)if(a)for(o=this.start;s<c&&o<64;++s)l[o++]=e[s];else for(o=this.start;s<c&&o<64;++s)u[o>>2]|=e[s]<<y[3&o++];else if(a)for(o=this.start;s<c&&o<64;++s)(i=e.charCodeAt(s))<128?l[o++]=i:i<2048?(l[o++]=192|i>>6,l[o++]=128|63&i):i<55296||i>=57344?(l[o++]=224|i>>12,l[o++]=128|i>>6&63,l[o++]=128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++s)),l[o++]=240|i>>18,l[o++]=128|i>>12&63,l[o++]=128|i>>6&63,l[o++]=128|63&i);else for(o=this.start;s<c&&o<64;++s)(i=e.charCodeAt(s))<128?u[o>>2]|=i<<y[3&o++]:i<2048?(u[o>>2]|=(192|i>>6)<<y[3&o++],u[o>>2]|=(128|63&i)<<y[3&o++]):i<55296||i>=57344?(u[o>>2]|=(224|i>>12)<<y[3&o++],u[o>>2]|=(128|i>>6&63)<<y[3&o++],u[o>>2]|=(128|63&i)<<y[3&o++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++s)),u[o>>2]|=(240|i>>18)<<y[3&o++],u[o>>2]|=(128|i>>12&63)<<y[3&o++],u[o>>2]|=(128|i>>6&63)<<y[3&o++],u[o>>2]|=(128|63&i)<<y[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},t.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=u[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},t.prototype.hash=function(){var e,t,n,r,i,o,a=this.blocks;this.first?t=((t=((e=((e=a[0]-680876937)<<7|e>>>25)-271733879<<0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&e)+a[1]-117830708)<<12|r>>>20)+e<<0)&(-271733879^e))+a[2]-1126478375)<<17|n>>>15)+r<<0)&(r^e))+a[3]-1316259209)<<22|t>>>10)+n<<0:(e=this.h0,t=this.h1,n=this.h2,t=((t+=((e=((e+=((r=this.h3)^t&(n^r))+a[0]-680876936)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[1]-389564586)<<12|r>>>20)+e<<0)&(e^t))+a[2]+606105819)<<17|n>>>15)+r<<0)&(r^e))+a[3]-1044525330)<<22|t>>>10)+n<<0),t=((t+=((e=((e+=(r^t&(n^r))+a[4]-176418897)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[5]+1200080426)<<12|r>>>20)+e<<0)&(e^t))+a[6]-1473231341)<<17|n>>>15)+r<<0)&(r^e))+a[7]-45705983)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(r^t&(n^r))+a[8]+1770035416)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[9]-1958414417)<<12|r>>>20)+e<<0)&(e^t))+a[10]-42063)<<17|n>>>15)+r<<0)&(r^e))+a[11]-1990404162)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(r^t&(n^r))+a[12]+1804603682)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[13]-40341101)<<12|r>>>20)+e<<0)&(e^t))+a[14]-1502002290)<<17|n>>>15)+r<<0)&(r^e))+a[15]+1236535329)<<22|t>>>10)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[1]-165796510)<<5|e>>>27)+t<<0)^t))+a[6]-1069501632)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[11]+643717713)<<14|n>>>18)+r<<0)^r))+a[0]-373897302)<<20|t>>>12)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[5]-701558691)<<5|e>>>27)+t<<0)^t))+a[10]+38016083)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[15]-660478335)<<14|n>>>18)+r<<0)^r))+a[4]-405537848)<<20|t>>>12)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[9]+568446438)<<5|e>>>27)+t<<0)^t))+a[14]-1019803690)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[3]-187363961)<<14|n>>>18)+r<<0)^r))+a[8]+1163531501)<<20|t>>>12)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[13]-1444681467)<<5|e>>>27)+t<<0)^t))+a[2]-51403784)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[7]+1735328473)<<14|n>>>18)+r<<0)^r))+a[12]-1926607734)<<20|t>>>12)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[5]-378558)<<4|e>>>28)+t<<0))+a[8]-2022574463)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[11]+1839030562)<<16|n>>>16)+r<<0))+a[14]-35309556)<<23|t>>>9)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[1]-1530992060)<<4|e>>>28)+t<<0))+a[4]+1272893353)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[7]-155497632)<<16|n>>>16)+r<<0))+a[10]-1094730640)<<23|t>>>9)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[13]+681279174)<<4|e>>>28)+t<<0))+a[0]-358537222)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[3]-722521979)<<16|n>>>16)+r<<0))+a[6]+76029189)<<23|t>>>9)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[9]-640364487)<<4|e>>>28)+t<<0))+a[12]-421815835)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[15]+530742520)<<16|n>>>16)+r<<0))+a[2]-995338651)<<23|t>>>9)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[0]-198630844)<<6|e>>>26)+t<<0)|~n))+a[7]+1126891415)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[14]-1416354905)<<15|n>>>17)+r<<0)|~e))+a[5]-57434055)<<21|t>>>11)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[12]+1700485571)<<6|e>>>26)+t<<0)|~n))+a[3]-1894986606)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[10]-1051523)<<15|n>>>17)+r<<0)|~e))+a[1]-2054922799)<<21|t>>>11)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[8]+1873313359)<<6|e>>>26)+t<<0)|~n))+a[15]-30611744)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[6]-1560198380)<<15|n>>>17)+r<<0)|~e))+a[13]+1309151649)<<21|t>>>11)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[4]-145523070)<<6|e>>>26)+t<<0)|~n))+a[11]-1120210379)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[2]+718787259)<<15|n>>>17)+r<<0)|~e))+a[9]-343485551)<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0)},t.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,i=this.h3;return n[e>>4&15]+n[15&e]+n[e>>12&15]+n[e>>8&15]+n[e>>20&15]+n[e>>16&15]+n[e>>28&15]+n[e>>24&15]+n[t>>4&15]+n[15&t]+n[t>>12&15]+n[t>>8&15]+n[t>>20&15]+n[t>>16&15]+n[t>>28&15]+n[t>>24&15]+n[r>>4&15]+n[15&r]+n[r>>12&15]+n[r>>8&15]+n[r>>20&15]+n[r>>16&15]+n[r>>28&15]+n[r>>24&15]+n[i>>4&15]+n[15&i]+n[i>>12&15]+n[i>>8&15]+n[i>>20&15]+n[i>>16&15]+n[i>>28&15]+n[i>>24&15]},t.prototype.toString=t.prototype.hex,t.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255]},t.prototype.array=t.prototype.digest,t.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},t.prototype.buffer=t.prototype.arrayBuffer,t.prototype.base64=function(){for(var e,t,n,r="",i=this.array(),o=0;o<15;)e=i[o++],t=i[o++],n=i[o++],r+=p[e>>>2]+p[63&(e<<4|t>>>4)]+p[63&(t<<2|n>>>6)]+p[63&n];return e=i[o],r+(p[e>>>2]+p[e<<4&63]+"==")};var _=v();f?module.exports=_:(i.md5=_,o&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return _}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(48),__webpack_require__(3),__webpack_require__(50)(module))},476:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=r(n(13));function o(e,t){var n=this;n.version="1.3.7",n.options=e||{},n.isScrollBody=t||!1,n.isDownScrolling=!1,n.isUpScrolling=!1;var r=n.options.down&&n.options.down.callback;n.initDownScroll(),n.initUpScroll(),setTimeout((function(){(n.optDown.use||n.optDown.native)&&n.optDown.auto&&r&&(n.optDown.autoShowLoading?n.triggerDownScroll():n.optDown.callback&&n.optDown.callback(n)),n.isUpAutoLoad||setTimeout((function(){n.optUp.use&&n.optUp.auto&&!n.isUpAutoLoad&&n.triggerUpScroll()}),100)}),30)}o.prototype.extendDownScroll=function(e){o.extend(e,{use:!0,auto:!0,native:!1,autoShowLoading:!1,isLock:!1,offset:80,startTop:100,inOffsetRate:1,outOffsetRate:.2,bottomOffset:20,minAngle:45,textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",textSuccess:"加载成功",textErr:"加载失败",beforeEndDelay:0,bgColor:"transparent",textColor:"gray",inited:null,inOffset:null,outOffset:null,onMoving:null,beforeLoading:null,showLoading:null,afterLoading:null,beforeEndDownScroll:null,endDownScroll:null,afterEndDownScroll:null,callback:function(e){e.resetUpScroll()}})},o.prototype.extendUpScroll=function(e){o.extend(e,{use:!0,auto:!0,isLock:!1,isBoth:!0,callback:null,page:{num:0,size:10,time:null},noMoreSize:5,offset:150,textLoading:"加载中 ...",textNoMore:"-- END --",bgColor:"transparent",textColor:"gray",inited:null,showLoading:null,showNoMore:null,hideUpScroll:null,errDistance:60,toTop:{src:null,offset:1e3,duration:300,btnClick:null,onShow:null,zIndex:9990,left:null,right:20,bottom:120,safearea:!1,width:72,radius:"50%"},empty:{use:!0,icon:null,tip:"~ 暂无相关数据 ~",btnText:"",btnClick:null,onShow:null,fixed:!1,top:"100rpx",zIndex:99},onScroll:!1})},o.extend=function(e,t){if(!e)return t;for(var n in t)if(null==e[n]){var r=t[n];null!=r&&"object"===(0,i.default)(r)?e[n]=o.extend({},r):e[n]=r}else"object"===(0,i.default)(e[n])&&o.extend(e[n],t[n]);return e},o.prototype.hasColor=function(e){if(!e)return!1;var t=e.toLowerCase();return"#fff"!=t&&"#ffffff"!=t&&"transparent"!=t&&"white"!=t},o.prototype.initDownScroll=function(){var e=this;e.optDown=e.options.down||{},!e.optDown.textColor&&e.hasColor(e.optDown.bgColor)&&(e.optDown.textColor="#fff"),e.extendDownScroll(e.optDown),e.isScrollBody&&e.optDown.native?e.optDown.use=!1:e.optDown.native=!1,e.downHight=0,e.optDown.use&&e.optDown.inited&&setTimeout((function(){e.optDown.inited(e)}),0)},o.prototype.touchstartEvent=function(e){this.optDown.use&&(this.startPoint=this.getPoint(e),this.startTop=this.getScrollTop(),this.startAngle=0,this.lastPoint=this.startPoint,this.maxTouchmoveY=this.getBodyHeight()-this.optDown.bottomOffset,this.inTouchend=!1)},o.prototype.touchmoveEvent=function(e){if(this.optDown.use){var t=this,n=t.getScrollTop(),r=t.getPoint(e),i=r.y-t.startPoint.y;if(i>0&&(t.isScrollBody&&n<=0||!t.isScrollBody&&(n<=0||n<=t.optDown.startTop&&n===t.startTop))&&!t.inTouchend&&!t.isDownScrolling&&!t.optDown.isLock&&(!t.isUpScrolling||t.isUpScrolling&&t.optUp.isBoth)){if(t.startAngle||(t.startAngle=t.getAngle(t.lastPoint,r)),t.startAngle<t.optDown.minAngle)return;if(t.maxTouchmoveY>0&&r.y>=t.maxTouchmoveY)return t.inTouchend=!0,void t.touchendEvent();t.preventDefault(e);var o=r.y-t.lastPoint.y;t.downHight<t.optDown.offset?(1!==t.movetype&&(t.movetype=1,t.isDownEndSuccess=null,t.optDown.inOffset&&t.optDown.inOffset(t),t.isMoveDown=!0),t.downHight+=o*t.optDown.inOffsetRate):(2!==t.movetype&&(t.movetype=2,t.optDown.outOffset&&t.optDown.outOffset(t),t.isMoveDown=!0),t.downHight+=o>0?o*t.optDown.outOffsetRate:o),t.downHight=Math.round(t.downHight);var a=t.downHight/t.optDown.offset;t.optDown.onMoving&&t.optDown.onMoving(t,a,t.downHight)}t.lastPoint=r}},o.prototype.touchendEvent=function(e){if(this.optDown.use)if(this.isMoveDown)this.downHight>=this.optDown.offset?this.triggerDownScroll():(this.downHight=0,this.endDownScrollCall(this)),this.movetype=0,this.isMoveDown=!1;else if(!this.isScrollBody&&this.getScrollTop()===this.startTop){var t=this.getPoint(e).y-this.startPoint.y<0;if(t){var n=this.getAngle(this.getPoint(e),this.startPoint);n>80&&this.triggerUpScroll(!0)}}},o.prototype.getPoint=function(e){return e?e.touches&&e.touches[0]?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches[0]?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.clientX,y:e.clientY}:{x:0,y:0}},o.prototype.getAngle=function(e,t){var n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y),i=Math.sqrt(n*n+r*r),o=0;return 0!==i&&(o=Math.asin(r/i)/Math.PI*180),o},o.prototype.triggerDownScroll=function(){this.optDown.beforeLoading&&this.optDown.beforeLoading(this)||(this.showDownScroll(),!this.optDown.native&&this.optDown.callback&&this.optDown.callback(this))},o.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.native?(e.startPullDownRefresh(),this.showDownLoadingCall(0)):(this.downHight=this.optDown.offset,this.showDownLoadingCall(this.downHight))},o.prototype.showDownLoadingCall=function(e){this.optDown.showLoading&&this.optDown.showLoading(this,e),this.optDown.afterLoading&&this.optDown.afterLoading(this,e)},o.prototype.onPullDownRefresh=function(){this.isDownScrolling=!0,this.showDownLoadingCall(0),this.optDown.callback&&this.optDown.callback(this)},o.prototype.endDownScroll=function(){if(this.optDown.native)return this.isDownScrolling=!1,this.endDownScrollCall(this),void e.stopPullDownRefresh();var t=this,n=function(){t.downHight=0,t.isDownScrolling=!1,t.endDownScrollCall(t),t.isScrollBody||(t.setScrollHeight(0),t.scrollTo(0,0))},r=0;t.optDown.beforeEndDownScroll&&(r=t.optDown.beforeEndDownScroll(t),null==t.isDownEndSuccess&&(r=0)),"number"===typeof r&&r>0?setTimeout(n,r):n()},o.prototype.endDownScrollCall=function(){this.optDown.endDownScroll&&this.optDown.endDownScroll(this),this.optDown.afterEndDownScroll&&this.optDown.afterEndDownScroll(this)},o.prototype.lockDownScroll=function(e){null==e&&(e=!0),this.optDown.isLock=e},o.prototype.lockUpScroll=function(e){null==e&&(e=!0),this.optUp.isLock=e},o.prototype.initUpScroll=function(){var e=this;e.optUp=e.options.up||{use:!1},!e.optUp.textColor&&e.hasColor(e.optUp.bgColor)&&(e.optUp.textColor="#fff"),e.extendUpScroll(e.optUp),!1!==e.optUp.use&&(e.optUp.hasNext=!0,e.startNum=e.optUp.page.num+1,e.optUp.inited&&setTimeout((function(){e.optUp.inited(e)}),0))},o.prototype.onReachBottom=function(){this.isScrollBody&&!this.isUpScrolling&&!this.optUp.isLock&&this.optUp.hasNext&&this.triggerUpScroll()},o.prototype.onPageScroll=function(e){this.isScrollBody&&(this.setScrollTop(e.scrollTop),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn())},o.prototype.scroll=function(e,t){this.setScrollTop(e.scrollTop),this.setScrollHeight(e.scrollHeight),null==this.preScrollY&&(this.preScrollY=0),this.isScrollUp=e.scrollTop-this.preScrollY>0,this.preScrollY=e.scrollTop,this.isScrollUp&&this.triggerUpScroll(!0),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn(),this.optUp.onScroll&&t&&t()},o.prototype.triggerUpScroll=function(e){if(!this.isUpScrolling&&this.optUp.use&&this.optUp.callback){if(!0===e){var t=!1;if(!this.optUp.hasNext||this.optUp.isLock||this.isDownScrolling||this.getScrollBottom()<=this.optUp.offset&&(t=!0),!1===t)return}this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.num=this.optUp.page.num,this.size=this.optUp.page.size,this.time=this.optUp.page.time,this.optUp.callback(this)}},o.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.optUp.showLoading&&this.optUp.showLoading(this)},o.prototype.showNoMore=function(){this.optUp.hasNext=!1,this.optUp.showNoMore&&this.optUp.showNoMore(this)},o.prototype.hideUpScroll=function(){this.optUp.hideUpScroll&&this.optUp.hideUpScroll(this)},o.prototype.endUpScroll=function(e){null!=e&&(e?this.showNoMore():this.hideUpScroll()),this.isUpScrolling=!1},o.prototype.resetUpScroll=function(e){if(this.optUp&&this.optUp.use){var t=this.optUp.page;this.prePageNum=t.num,this.prePageTime=t.time,t.num=this.startNum,t.time=null,this.isDownScrolling||!1===e||(null==e?(this.removeEmpty(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.num=t.num,this.size=t.size,this.time=t.time,this.optUp.callback&&this.optUp.callback(this)}},o.prototype.setPageNum=function(e){this.optUp.page.num=e-1},o.prototype.setPageSize=function(e){this.optUp.page.size=e},o.prototype.endByPage=function(e,t,n){var r;this.optUp.use&&null!=t&&(r=this.optUp.page.num<t),this.endSuccess(e,r,n)},o.prototype.endBySize=function(e,t,n){var r;if(this.optUp.use&&null!=t){var i=(this.optUp.page.num-1)*this.optUp.page.size+e;r=i<t}this.endSuccess(e,r,n)},o.prototype.endSuccess=function(e,t,n){var r=this;if(r.isDownScrolling&&(r.isDownEndSuccess=!0,r.endDownScroll()),r.optUp.use){var i;if(null!=e){var o=r.optUp.page.num,a=r.optUp.page.size;if(1===o&&n&&(r.optUp.page.time=n),e<a||!1===t)if(r.optUp.hasNext=!1,0===e&&1===o)i=!1,r.showEmpty();else{var s=(o-1)*a+e;i=!(s<r.optUp.noMoreSize),r.removeEmpty()}else i=!1,r.optUp.hasNext=!0,r.removeEmpty()}r.endUpScroll(i)}},o.prototype.endErr=function(e){if(this.isDownScrolling){this.isDownEndSuccess=!1;var t=this.optUp.page;t&&this.prePageNum&&(t.num=this.prePageNum,t.time=this.prePageTime),this.endDownScroll()}this.isUpScrolling&&(this.optUp.page.num--,this.endUpScroll(!1),this.isScrollBody&&0!==e&&(e||(e=this.optUp.errDistance),this.scrollTo(this.getScrollTop()-e,0)))},o.prototype.showEmpty=function(){this.optUp.empty.use&&this.optUp.empty.onShow&&this.optUp.empty.onShow(!0)},o.prototype.removeEmpty=function(){this.optUp.empty.use&&this.optUp.empty.onShow&&this.optUp.empty.onShow(!1)},o.prototype.showTopBtn=function(){this.topBtnShow||(this.topBtnShow=!0,this.optUp.toTop.onShow&&this.optUp.toTop.onShow(!0))},o.prototype.hideTopBtn=function(){this.topBtnShow&&(this.topBtnShow=!1,this.optUp.toTop.onShow&&this.optUp.toTop.onShow(!1))},o.prototype.getScrollTop=function(){return this.scrollTop||0},o.prototype.setScrollTop=function(e){this.scrollTop=e},o.prototype.scrollTo=function(e,t){this.myScrollTo&&this.myScrollTo(e,t)},o.prototype.resetScrollTo=function(e){this.myScrollTo=e},o.prototype.getScrollBottom=function(){return this.getScrollHeight()-this.getClientHeight()-this.getScrollTop()},o.prototype.getStep=function(e,t,n,r,i){var o=t-e;if(0!==r&&0!==o){r=r||300,i=i||30;var a=r/i,s=o/a,c=0,u=setInterval((function(){c<a-1?(e+=s,n&&n(e,u),c++):(n&&n(t,u),clearInterval(u))}),i)}else n&&n(t)},o.prototype.getClientHeight=function(e){var t=this.clientHeight||0;return 0===t&&!0!==e&&(t=this.getBodyHeight()),t},o.prototype.setClientHeight=function(e){this.clientHeight=e},o.prototype.getScrollHeight=function(){return this.scrollHeight||0},o.prototype.setScrollHeight=function(e){this.scrollHeight=e},o.prototype.getBodyHeight=function(){return this.bodyHeight||0},o.prototype.setBodyHeight=function(e){this.bodyHeight=e},o.prototype.preventDefault=function(e){e&&e.cancelable&&!e.defaultPrevented&&e.preventDefault()}}).call(this,n(2)["default"])},477:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={down:{offset:80,native:!1},up:{offset:150,toTop:{src:"https://www.mescroll.com/img/mescroll-totop.png",offset:1e3,right:20,bottom:120,width:72},empty:{use:!0,icon:"https://www.mescroll.com/img/mescroll-empty.png"}},i18n:{zh:{down:{textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",textSuccess:"加载成功",textErr:"加载失败"},up:{textLoading:"加载中 ...",textNoMore:"-- END --",empty:{tip:"暂无数据"}}},en:{down:{textInOffset:"drop down refresh",textOutOffset:"release updates",textLoading:"loading ...",textSuccess:"loaded successfully",textErr:"loading failed"},up:{textLoading:"loading ...",textNoMore:"-- END --",empty:{tip:"~ absolutely empty ~"}}}}},i=r;t.default=i},478:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={def:"zh",getType:function(){return e.getStorageSync("mescroll-i18n")||this.def},setType:function(t){e.setStorageSync("mescroll-i18n",t)}},r=n;t.default=r}).call(this,n(2)["default"])},479:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{wxsProp:{optDown:{},scrollTop:0,bodyHeight:0,isDownScrolling:!1,isUpScrolling:!1,isScrollBody:!0,isUpBoth:!0,t:0},callProp:{callType:"",t:0},renderBiz:{propObserver:function(){}}}},methods:{wxsCall:function(e){"setWxsProp"===e.type?this.wxsProp={optDown:this.mescroll.optDown,scrollTop:this.mescroll.getScrollTop(),bodyHeight:this.mescroll.getBodyHeight(),isDownScrolling:this.mescroll.isDownScrolling,isUpScrolling:this.mescroll.isUpScrolling,isUpBoth:this.mescroll.optUp.isBoth,isScrollBody:this.mescroll.isScrollBody,t:Date.now()}:"setLoadType"===e.type?(this.downLoadType=e.downLoadType,this.$set(this.mescroll,"downLoadType",this.downLoadType),this.$set(this.mescroll,"isDownEndSuccess",null)):"triggerDownScroll"===e.type?this.mescroll.triggerDownScroll():"endDownScroll"===e.type?this.mescroll.endDownScroll():"triggerUpScroll"===e.type&&this.mescroll.triggerUpScroll(!0)}},mounted:function(){var e=this;this.mescroll.optDown.afterLoading=function(){e.callProp={callType:"showLoading",t:Date.now()}},this.mescroll.optDown.afterEndDownScroll=function(){e.callProp={callType:"endDownScroll",t:Date.now()};var t=300+(e.mescroll.optDown.beforeEndDelay||0);setTimeout((function(){4!==e.downLoadType&&0!==e.downLoadType||(e.callProp={callType:"clearTransform",t:Date.now()}),e.$set(e.mescroll,"downLoadType",e.downLoadType)}),t)},this.wxsCall({type:"setWxsProp"})}},i=r;t.default=i},48:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n(49)),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},49:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c<a;c++)if(i[c]!==o[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return u=u.concat(o.slice(s)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(48))},5:function(e,t,n){var r=n(6),i=n(7),o=n(8),a=n(10);function s(e,t){return r(e)||i(e,t)||o(e,t)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},50:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},51:function(e,t){(function(t){e.exports=t}).call(this,{})},517:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=c,t.friendlyDate=u;var i=r(n(13));function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;e+="";while(e.length<t)e="0"+e;return e.slice(-t)}var a={yyyy:function(e){return o(e.year,4)},yy:function(e){return o(e.year)},MM:function(e){return o(e.month)},M:function(e){return e.month},dd:function(e){return o(e.day)},d:function(e){return e.day},hh:function(e){return o(e.hour)},h:function(e){return e.hour},mm:function(e){return o(e.minute)},m:function(e){return e.minute},ss:function(e){return o(e.second)},s:function(e){return e.second},SSS:function(e){return o(e.millisecond,3)},S:function(e){return e.millisecond}};function s(e){if(e instanceof Date)return e;switch((0,i.default)(e)){case"string":return e.indexOf("T")>-1?new Date(e):new Date(e.replace(/-/g,"/"));default:return new Date(e)}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy/MM/dd hh:mm:ss";if(!e&&0!==e)return"";e=s(e);var n={year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()},r=/yyyy|yy|MM|M|dd|d|hh|h|mm|m|ss|s|SSS|SS|S/,i=!0,o=t;while(i)i=!1,o=o.replace(r,(function(e){return i=!0,a[e](n)}));return o}function u(e,t){var n=t.locale,r=void 0===n?"zh":n,i=t.threshold,o=void 0===i?[6e4,36e5]:i,a=t.format,u=void 0===a?"yyyy/MM/dd hh:mm:ss":a;if("-"===e)return e;if(!e&&0!==e)return"";var l,f,d={zh:{year:"年",month:"月",day:"天",hour:"小时",minute:"分钟",second:"秒",ago:"前",later:"后",justNow:"刚刚",soon:"刚刚",template:"{num}{unit}{suffix}"},en:{year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",later:"later",justNow:"just now",soon:"soon",template:"{num} {unit} {suffix}"}},p=d[r]||d.zh,h=s(e),y=h.getTime()-Date.now(),g=Math.abs(y);if(g<o[0])return y<0?p.justNow:p.soon;if(g>=o[1])return c(h,u);var v=p.later;y<0&&(v=p.ago,y=-y);var m=Math.floor(y/1e3),b=Math.floor(m/60),S=Math.floor(b/60),x=Math.floor(S/24),_=Math.floor(x/30),C=Math.floor(_/12);switch(!0){case C>0:l=C,f=p.year;break;case _>0:l=_,f=p.month;break;case x>0:l=x,f=p.day;break;case S>0:l=S,f=p.hour;break;case b>0:l=b,f=p.minute;break;default:l=m,f=p.second;break}return"en"===r&&(1===l?l="a":f+="s"),p.template.replace(/{\s*num\s*}/g,l+"").replace(/{\s*unit\s*}/g,f).replace(/{\s*suffix\s*}/g,v)}},523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={options:{virtualHost:!0}};t.default=r},524:function(e,t,n){"use strict";(function(e){var r=n(4),i=n(13);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(11)),a=d(n(525)),s=d(n(526)),c=r(n(529)),u=r(n(530)),l=r(n(531));function f(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y={props:{customStyle:{type:[Object,String],default:function(){return{}}},customClass:{type:String,default:""},url:{type:String,default:""},linkType:{type:String,default:"navigateTo"}},data:function(){return{}},onLoad:function(){this.$uv.getRect=this.$uvGetRect},created:function(){this.$uv.getRect=this.$uvGetRect},computed:{$uv:function(){var t,n,r;return h(h({},a),{},{test:s,route:c.default,debounce:u.default,throttle:l.default,unit:null===(t=e)||void 0===t||null===(n=t.$uv)||void 0===n||null===(r=n.config)||void 0===r?void 0:r.unit})},bem:function(){return function(e,t,n){var r=this,i="uv-".concat(e,"--"),o={};return t&&t.map((function(e){o[i+r[e]]=!0})),n&&n.map((function(e){r[e]?o[i+e]=r[e]:delete o[i+e]})),Object.keys(o)}}},methods:{openPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"url",n=this[t];n&&e[this.linkType]({url:n})},$uvGetRect:function(t,n){var r=this;return new Promise((function(i){e.createSelectorQuery().in(r)[n?"selectAll":"select"](t).boundingClientRect((function(e){n&&Array.isArray(e)&&e.length&&i(e),!n&&e&&i(e)})).exec()}))},getParentData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent={}),this.parent=this.$uv.$parent.call(this,t),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&"function"===typeof e.stopPropagation&&e.stopPropagation()},noop:function(e){this.preventEvent(e)}},onReachBottom:function(){e.$emit("uvOnReachBottom")},beforeDestroy:function(){var e=this;if(this.parent&&s.array(this.parent.children)){var t=this.parent.children;t.map((function(n,r){n===e&&t.splice(r,1)}))}},unmounted:function(){var e=this;if(this.parent&&s.array(this.parent.children)){var t=this.parent.children;t.map((function(n,r){n===e&&t.splice(r,1)}))}}};t.default=y}).call(this,n(2)["default"])},525:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.$parent=y,t.addStyle=g,t.addUnit=v,t.deepClone=m,t.deepMerge=b,t.error=S,t.formValidate=D,t.getDuration=O,t.getHistoryPage=R,t.getProperty=M,t.getPx=u,t.guid=h,t.os=f,t.padZero=Y,t.page=Z,t.pages=E,t.priceFormat=A,t.queryParams=P,t.random=p,t.randomArray=x,t.range=c,t.setConfig=N,t.setProperty=k,t.sleep=l,t.sys=d,t.timeFormat=_,t.timeFrom=C,t.toast=L,t.trim=w,t.type2icon=T;var i=r(n(5)),o=r(n(13)),a=n(526),s=n(527);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(e,Math.min(t,Number(n)))}function u(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,a.number)(t)?n?"".concat(t,"px"):Number(t):/(rpx|upx)$/.test(t)?n?"".concat(e.upx2px(parseInt(t)),"px"):Number(e.upx2px(parseInt(t))):n?"".concat(parseInt(t),"px"):parseInt(t)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30;return new Promise((function(t){setTimeout((function(){t()}),e)}))}function f(){return e.getSystemInfoSync().platform.toLowerCase()}function d(){return e.getSystemInfoSync()}function p(e,t){if(e>=0&&t>0&&t>=e){var n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(n=n||r.length,e)for(var o=0;o<e;o++)i[o]=r[0|Math.random()*n];else{var a;i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(var s=0;s<36;s++)i[s]||(a=0|16*Math.random(),i[s]=r[19==s?3&a|8:a])}return t?(i.shift(),"u".concat(i.join(""))):i.join("")}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object";if((0,a.empty)(e)||"object"===(0,o.default)(e)&&"object"===t||"string"===t&&"string"===typeof e)return e;if("object"===t){e=w(e);for(var n=e.split(";"),r={},i=0;i<n.length;i++)if(n[i]){var s=n[i].split(":");r[w(s[0])]=w(s[1])}return r}var c="";for(var u in e){var l=u.replace(/([A-Z])/g,"-$1").toLowerCase();c+="".concat(l,":").concat(e[u],";")}return w(c)}function v(){var t,n,r,i,o,s,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(t=e)&&void 0!==t&&null!==(n=t.$uv)&&void 0!==n&&null!==(r=n.config)&&void 0!==r&&r.unit?null===(i=e)||void 0===i||null===(o=i.$uv)||void 0===o||null===(s=o.config)||void 0===s?void 0:s.unit:"px";return c=String(c),(0,a.number)(c)?"".concat(c).concat(u):c}function m(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null===e||"object"!==(0,o.default)(e))return e;if(n.has(e))return n.get(e);if(e instanceof Date)t=new Date(e.getTime());else if(e instanceof RegExp)t=new RegExp(e);else if(e instanceof Map)t=new Map(Array.from(e,(function(e){var t=(0,i.default)(e,2),r=t[0],o=t[1];return[r,m(o,n)]})));else if(e instanceof Set)t=new Set(Array.from(e,(function(e){return m(e,n)})));else if(Array.isArray(e))t=e.map((function(e){return m(e,n)}));else if("[object Object]"===Object.prototype.toString.call(e)){t=Object.create(Object.getPrototypeOf(e)),n.set(e,t);for(var r=0,a=Object.entries(e);r<a.length;r++){var s=(0,i.default)(a[r],2),c=s[0],u=s[1];t[c]=m(u,n)}}else t=Object.assign({},e);return n.set(e,t),t}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=m(e),"object"!==(0,o.default)(e)||null===e||"object"!==(0,o.default)(t)||null===t)return e;var n=Array.isArray(e)?e.slice():Object.assign({},e);for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],a=n[r];i instanceof Date?n[r]=new Date(i):i instanceof RegExp?n[r]=new RegExp(i):i instanceof Map?n[r]=new Map(i):i instanceof Set?n[r]=new Set(i):"object"===(0,o.default)(i)&&null!==i?n[r]=b(a,i):n[r]=i}return n}function S(e){console.error("uvui提示:".concat(e))}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))}function _(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e=t?/^\d{10}$/.test(null===t||void 0===t?void 0:t.toString().trim())?new Date(1e3*t):"string"===typeof t&&/^\d+$/.test(t.trim())?new Date(Number(t)):"string"===typeof t&&t.includes("-")&&!t.includes("T")?new Date(t.replace(/-/g,"/")):new Date(t):new Date;var r={y:e.getFullYear().toString(),m:(e.getMonth()+1).toString().padStart(2,"0"),d:e.getDate().toString().padStart(2,"0"),h:e.getHours().toString().padStart(2,"0"),M:e.getMinutes().toString().padStart(2,"0"),s:e.getSeconds().toString().padStart(2,"0")};for(var o in r){var a=new RegExp("".concat(o,"+")).exec(n)||[],s=(0,i.default)(a,1),c=s[0];if(c){var u="y"===o&&2===c.length?2:0;n=n.replace(c,r[o].slice(u))}}return n}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";null==e&&(e=Number(new Date)),e=parseInt(e),10==e.toString().length&&(e*=1e3);var n=(new Date).getTime()-e;n=parseInt(n/1e3);var r="";switch(!0){case n<300:r="刚刚";break;case n>=300&&n<3600:r="".concat(parseInt(n/60),"分钟前");break;case n>=3600&&n<86400:r="".concat(parseInt(n/3600),"小时前");break;case n>=86400&&n<2592e3:r="".concat(parseInt(n/86400),"天前");break;default:r=!1===t?n>=2592e3&&n<31536e3?"".concat(parseInt(n/2592e3),"个月前"):"".concat(parseInt(n/31536e3),"年前"):_(e,t)}return r}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return e=String(e),"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",r=t?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");var o=function(t){var r=e[t];if(["",void 0,null].indexOf(r)>=0)return"continue";if(r.constructor===Array)switch(n){case"indices":for(var o=0;o<r.length;o++)i.push("".concat(t,"[").concat(o,"]=").concat(r[o]));break;case"brackets":r.forEach((function(e){i.push("".concat(t,"[]=").concat(e))}));break;case"repeat":r.forEach((function(e){i.push("".concat(t,"=").concat(e))}));break;case"comma":var a="";r.forEach((function(e){a+=(a?",":"")+e})),i.push("".concat(t,"=").concat(a));break;default:r.forEach((function(e){i.push("".concat(t,"[]=").concat(e))}))}else i.push("".concat(t,"=").concat(r))};for(var a in e)o(a);return i.length?r+i.join("&"):""}function L(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;e.showToast({title:String(t),icon:"none",duration:n})}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");var n="";switch(e){case"primary":n="info-circle";break;case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;case"success":n="checkmark-circle";break;default:n="checkmark-circle"}return t&&(n+="-fill"),n}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";e="".concat(e).replace(/[^0-9+-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a="undefined"===typeof r?",":r,c="undefined"===typeof n?".":n,u="";u=(o?(0,s.round)(i,o)+"":"".concat(Math.round(i))).split(".");var l=/(-?\d+)(\d{3})/;while(l.test(u[0]))u[0]=u[0].replace(l,"$1".concat(a,"$2"));return(u[1]||"").length<o&&(u[1]=u[1]||"",u[1]+=new Array(o-u[1].length+1).join("0")),u.join(c)}function O(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=parseInt(e);return t?/s$/.test(e)?e:"".concat(e,e>30?"ms":"s"):/ms$/.test(e)?n:/s$/.test(e)?n>30?n:1e3*n:n}function Y(e){return"00".concat(e).slice(-2)}function D(e,t){var n=y.call(e,"uv-form-item"),r=y.call(e,"uv-form");n&&r&&r.validateField(n.prop,(function(){}),t)}function M(e,t){if(e){if("string"!==typeof t||""===t)return"";if(-1!==t.indexOf(".")){for(var n=t.split("."),r=e[n[0]]||{},i=1;i<n.length;i++)r&&(r=r[n[i]]);return r}return e[t]}}function k(e,t,n){if(e){var r=function e(t,n,r){if(1!==n.length)while(n.length>1){var i=n[0];t[i]&&"object"===(0,o.default)(t[i])||(t[i]={});n.shift();e(t[i],n,r)}else t[n[0]]=r};if("string"!==typeof t||""===t);else if(-1!==t.indexOf(".")){var i=t.split(".");r(e,i,n)}else e[t]=n}}function Z(){var e,t=getCurrentPages(),n=null===(e=t[t.length-1])||void 0===e?void 0:e.route;return"/".concat(n||"")}function E(){var e=getCurrentPages();return e}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=getCurrentPages(),n=t.length;return t[n-1+e]}function N(t){var n=t.props,r=void 0===n?{}:n,i=t.config,o=void 0===i?{}:i,a=t.color,s=void 0===a?{}:a,c=t.zIndex,u=void 0===c?{}:c,l=e.$uv.deepMerge;e.$uv.config=l(e.$uv.config,o),e.$uv.props=l(e.$uv.props,r),e.$uv.color=l(e.$uv.color,s),e.$uv.zIndex=l(e.$uv.zIndex,u)}String.prototype.padStart||(String.prototype.padStart=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");var n=this;if(n.length>=e)return String(n);var r=e-n.length,i=Math.ceil(r/t.length);while(i>>=1)t+=t,1===i&&(t+=t);return t.slice(0,r)+n})}).call(this,n(2)["default"])},526:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.amount=y,t.array=P,t.carNo=h,t.chinese=g,t.code=T,t.contains=b,t.date=c,t.dateISO=u,t.digits=d,t.email=o,t.empty=C,t.enOrNum=m,t.func=A,t.idCard=p,t.image=Y,t.jsonString=w,t.landline=_,t.letter=v,t.mobile=a,t.number=l,t.object=L,t.promise=O,t.range=S,t.rangeLength=x,t.regExp=M,t.string=f,t.url=s,t.video=D;var i=r(n(13));function o(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)}function a(e){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(e)}function s(e){return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(e)}function c(e){return!!e&&(l(e)&&(e=+e),!/Invalid|NaN/.test(new Date(e).toString()))}function u(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)}function l(e){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(e)}function f(e){return"string"===typeof e}function d(e){return/^\d+$/.test(e)}function p(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)}function h(e){var t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?n.test(e):8===e.length&&t.test(e)}function y(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)}function g(e){var t=/^[\u4e00-\u9fa5]+$/gi;return t.test(e)}function v(e){return/^[a-zA-Z]*$/.test(e)}function m(e){var t=/^[0-9a-zA-Z]*$/g;return t.test(e)}function b(e,t){return e.indexOf(t)>=0}function S(e,t){return e>=t[0]&&e<=t[1]}function x(e,t){return e.length>=t[0]&&e.length<=t[1]}function _(e){var t=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return t.test(e)}function C(e){switch((0,i.default)(e)){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function w(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!==(0,i.default)(t)||!t)}catch(n){return!1}return!1}function P(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function L(e){return"[object Object]"===Object.prototype.toString.call(e)}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}function A(e){return"function"===typeof e}function O(e){return L(e)&&A(e.then)&&A(e.catch)}function Y(e){var t=e.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return n.test(t)}function D(e){var t=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return t.test(e)}function M(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)}},527:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.divide=h,t.enableBoundaryChecking=g,t.minus=p,t.plus=d,t.round=y,t.times=f;var i=r(n(528)),o=!0;function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return+parseFloat(Number(e).toPrecision(t))}function s(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function c(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));var t=s(e);return t>0?a(Number(e)*Math.pow(10,t)):Number(e)}function u(e){o&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&console.warn("".concat(e," 超出了精度限制,结果可能不正确"))}function l(e,t){var n=(0,i.default)(e),r=n[0],o=n[1],a=n.slice(2),s=t(r,o);return a.forEach((function(e){s=t(s,e)})),s}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>2)return l(t,f);var r=t[0],i=t[1],o=c(r),a=c(i),d=s(r)+s(i),p=o*a;return u(p),p/Math.pow(10,d)}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>2)return l(t,d);var r=t[0],i=t[1],o=Math.pow(10,Math.max(s(r),s(i)));return(f(r,o)+f(i,o))/o}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>2)return l(t,p);var r=t[0],i=t[1],o=Math.pow(10,Math.max(s(r),s(i)));return(f(r,o)-f(i,o))/o}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>2)return l(t,h);var r=t[0],i=t[1],o=c(r),d=c(i);return u(o),u(d),f(o/d,a(Math.pow(10,s(i)-s(r))))}function y(e,t){var n=Math.pow(10,t),r=h(Math.round(Math.abs(f(e,n))),n);return e<0&&0!==r&&(r=f(r,-1)),r}function g(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o=e}var v={times:f,plus:d,minus:p,divide:h,round:y,enableBoundaryChecking:g};t.default=v},528:function(e,t,n){var r=n(6),i=n(20),o=n(8),a=n(10);function s(e){return r(e)||i(e)||o(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},529:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(161)),o=r(n(163)),a=r(n(23)),s=r(n(24)),c=n(525),u=function(){function t(){(0,a.default)(this,t),this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1,events:{}},this.route=this.route.bind(this)}return(0,s.default)(t,[{key:"addRootPath",value:function(e){return"/"===e[0]?e:"/".concat(e)}},{key:"mixinParam",value:function(e,t){e=e&&this.addRootPath(e);var n="";return/.*\/.*\?.*=.*/.test(e)?(n=(0,c.queryParams)(t,!1),e+"&".concat(n)):(n=(0,c.queryParams)(t),e+n)}},{key:"route",value:function(){var e=(0,o.default)(i.default.mark((function e(){var t,n,r,o,a=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:{},n=a.length>1&&void 0!==a[1]?a[1]:{},r={},"string"===typeof t?(r.url=this.mixinParam(t,n),r.type="navigateTo"):(r=(0,c.deepMerge)(this.config,t),r.url=this.mixinParam(t.url,t.params)),r.url!==(0,c.page)()){e.next=6;break}return e.abrupt("return");case 6:if(n.intercept&&(r.intercept=n.intercept),r.params=n,r=(0,c.deepMerge)(this.config,r),"function"!==typeof r.intercept){e.next=16;break}return e.next=12,new Promise((function(e,t){r.intercept(r,e)}));case 12:o=e.sent,o&&this.openPage(r),e.next=17;break;case 16:this.openPage(r);case 17:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"openPage",value:function(t){var n=t.url,r=(t.type,t.delta),i=t.animationType,o=t.animationDuration,a=t.events;"navigateTo"!=t.type&&"to"!=t.type||e.navigateTo({url:n,animationType:i,animationDuration:o,events:a}),"redirectTo"!=t.type&&"redirect"!=t.type||e.redirectTo({url:n}),"switchTab"!=t.type&&"tab"!=t.type||e.switchTab({url:n}),"reLaunch"!=t.type&&"launch"!=t.type||e.reLaunch({url:n}),"navigateBack"!=t.type&&"back"!=t.type||e.navigateBack({delta:r})}}]),t}(),l=(new u).route;t.default=l}).call(this,n(2)["default"])},530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=null;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==r&&clearTimeout(r),n){var i=!r;r=setTimeout((function(){r=null}),t),i&&"function"===typeof e&&e()}else r=setTimeout((function(){"function"===typeof e&&e()}),t)}var o=i;t.default=o},531:function(e,t,n){"use strict";var r;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n?r||(r=!0,"function"===typeof e&&e(),setTimeout((function(){r=!1}),t)):r||(r=!0,setTimeout((function(){r=!1,"function"===typeof e&&e()}),t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i;t.default=o},532:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({list:{type:Array,default:function(){return[]}},indicator:{type:Boolean,default:!1},indicatorActiveColor:{type:String,default:"#fff"},indicatorInactiveColor:{type:String,default:"rgba(255, 255, 255, 0.35)"},indicatorStyle:{type:[String,Object],default:""},indicatorMode:{type:String,default:"line"},autoplay:{type:Boolean,default:!0},current:{type:[String,Number],default:0},currentItemId:{type:String,default:""},interval:{type:[String,Number],default:3e3},duration:{type:[String,Number],default:300},circular:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},previousMargin:{type:[String,Number],default:0},nextMargin:{type:[String,Number],default:0},acceleration:{type:Boolean,default:!1},displayMultipleItems:{type:Number,default:1},easingFunction:{type:String,default:"default"},keyName:{type:String,default:"url"},imgMode:{type:String,default:"aspectFill"},height:{type:[String,Number],default:130},bgColor:{type:String,default:"#f3f4f6"},radius:{type:[String,Number],default:4},loading:{type:Boolean,default:!1},showTitle:{type:Boolean,default:!1},titleStyle:{type:[Object,String],default:""}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.swiper)};t.default=u}).call(this,n(2)["default"])},540:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({list:{type:Array,default:function(){return[]}},current:{type:[String,Number],default:0},activeColor:{type:String,default:"#3c9cff"},inactiveColor:{type:String,default:"#303133"},mode:{type:String,default:"button"},fontSize:{type:[String,Number],default:12},bold:{type:Boolean,default:!0},bgColor:{type:String,default:"#eeeeef"},keyName:{type:String,default:"name"},customItemStyle:{type:[String,Object],default:""}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.subsection)};t.default=u}).call(this,n(2)["default"])},548:function(e,t,n){"use strict";(function(e,r,i){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.uniCloud=t.default=t.UniCloudError=void 0;var a=o(n(161)),s=o(n(549)),c=o(n(5)),u=o(n(13)),l=o(n(18)),f=o(n(163)),d=o(n(11)),p=o(n(550)),h=o(n(551)),y=o(n(552)),g=o(n(553)),v=o(n(23)),m=o(n(24)),b=o(n(555));function S(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=x(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function x(e,t){if(e){if("string"===typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e){var t=L();return function(){var n,r=(0,y.default)(e);if(t){var i=(0,y.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}function L(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function T(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var O=A((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*c,i);if(c){for(var l=0;l<c;l+=o)this._doProcessBlock(r,l);var f=r.splice(0,c);n.sigBytes-=u}return new a.init(f,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=r.algo={};return r}(Math),n)})),Y=O,D=(A((function(e,t){var n;e.exports=(n=Y,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],y=e[t+4],g=e[t+5],v=e[t+6],m=e[t+7],b=e[t+8],S=e[t+9],x=e[t+10],_=e[t+11],C=e[t+12],w=e[t+13],P=e[t+14],L=e[t+15],T=o[0],A=o[1],O=o[2],Y=o[3];T=u(T,A,O,Y,a,7,s[0]),Y=u(Y,T,A,O,c,12,s[1]),O=u(O,Y,T,A,p,17,s[2]),A=u(A,O,Y,T,h,22,s[3]),T=u(T,A,O,Y,y,7,s[4]),Y=u(Y,T,A,O,g,12,s[5]),O=u(O,Y,T,A,v,17,s[6]),A=u(A,O,Y,T,m,22,s[7]),T=u(T,A,O,Y,b,7,s[8]),Y=u(Y,T,A,O,S,12,s[9]),O=u(O,Y,T,A,x,17,s[10]),A=u(A,O,Y,T,_,22,s[11]),T=u(T,A,O,Y,C,7,s[12]),Y=u(Y,T,A,O,w,12,s[13]),O=u(O,Y,T,A,P,17,s[14]),T=l(T,A=u(A,O,Y,T,L,22,s[15]),O,Y,c,5,s[16]),Y=l(Y,T,A,O,v,9,s[17]),O=l(O,Y,T,A,_,14,s[18]),A=l(A,O,Y,T,a,20,s[19]),T=l(T,A,O,Y,g,5,s[20]),Y=l(Y,T,A,O,x,9,s[21]),O=l(O,Y,T,A,L,14,s[22]),A=l(A,O,Y,T,y,20,s[23]),T=l(T,A,O,Y,S,5,s[24]),Y=l(Y,T,A,O,P,9,s[25]),O=l(O,Y,T,A,h,14,s[26]),A=l(A,O,Y,T,b,20,s[27]),T=l(T,A,O,Y,w,5,s[28]),Y=l(Y,T,A,O,p,9,s[29]),O=l(O,Y,T,A,m,14,s[30]),T=f(T,A=l(A,O,Y,T,C,20,s[31]),O,Y,g,4,s[32]),Y=f(Y,T,A,O,b,11,s[33]),O=f(O,Y,T,A,_,16,s[34]),A=f(A,O,Y,T,P,23,s[35]),T=f(T,A,O,Y,c,4,s[36]),Y=f(Y,T,A,O,y,11,s[37]),O=f(O,Y,T,A,m,16,s[38]),A=f(A,O,Y,T,x,23,s[39]),T=f(T,A,O,Y,w,4,s[40]),Y=f(Y,T,A,O,a,11,s[41]),O=f(O,Y,T,A,h,16,s[42]),A=f(A,O,Y,T,v,23,s[43]),T=f(T,A,O,Y,S,4,s[44]),Y=f(Y,T,A,O,C,11,s[45]),O=f(O,Y,T,A,L,16,s[46]),T=d(T,A=f(A,O,Y,T,p,23,s[47]),O,Y,a,6,s[48]),Y=d(Y,T,A,O,m,10,s[49]),O=d(O,Y,T,A,P,15,s[50]),A=d(A,O,Y,T,g,21,s[51]),T=d(T,A,O,Y,C,6,s[52]),Y=d(Y,T,A,O,h,10,s[53]),O=d(O,Y,T,A,x,15,s[54]),A=d(A,O,Y,T,c,21,s[55]),T=d(T,A,O,Y,b,6,s[56]),Y=d(Y,T,A,O,L,10,s[57]),O=d(O,Y,T,A,v,15,s[58]),A=d(A,O,Y,T,w,21,s[59]),T=d(T,A,O,Y,y,6,s[60]),Y=d(Y,T,A,O,_,10,s[61]),O=d(O,Y,T,A,p,15,s[62]),A=d(A,O,Y,T,S,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+A|0,o[2]=o[2]+O|0,o[3]=o[3]+Y|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)})),A((function(e,t){var n;e.exports=(n=Y,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,u=0;u<n;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())})),A((function(e,t){e.exports=Y.HmacMD5}))),M=A((function(e,t){e.exports=Y.enc.Utf8})),k=A((function(e,t){var n;e.exports=(n=Y,function(){var e=n,t=e.lib.WordArray;function r(e,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,c=r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|c)<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),Z="uni_id_token",E="uni_id_token_expired",R="uniIdToken",N={DEFAULT:"FUNCTION",FUNCTION:"FUNCTION",OBJECT:"OBJECT",CLIENT_DB:"CLIENT_DB"},I="pending",X="fulfilled",J="rejected";function F(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function B(e){return"object"===F(e)}function H(e){return"function"==typeof e}function j(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var G="REJECTED",Q="NOT_PENDING",W=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,i=void 0===r?G:r;(0,v.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case G:return this.status===J;case Q:return this.status!==I}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=I,this.promise=this.createPromise().then((function(t){return e.status=X,Promise.resolve(t)}),(function(t){return e.status=J,Promise.reject(t)})),this.promise):this.promise}}]),e}(),U=function(){function e(){(0,v.default)(this,e),this._callback={}}return(0,m.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(t)for(var o=0;o<t.length;o++)t[o].apply(t,r)}}]),e}();function K(e){return e&&"string"==typeof e?JSON.parse(e):e}var $=!0,z="mp-weixin",q=!1,V=K([]),ee="h5"===z?"web":"app-plus"===z||"app-harmony"===z?"app":z,te=K(void 0),ne=K([])||[],re=!0;try{(n(556).default||n(556)).appid}catch(Mi){}var ie,oe={};function ae(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=oe,n=e,Object.prototype.hasOwnProperty.call(t,n)||(oe[e]=r),oe[e]}function se(){return ie||(ie=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),ie)}"app"===ee&&(oe=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var ce=["invoke","success","fail","complete"],ue=ae("_globalUniCloudInterceptor");function le(e,t){ue[e]||(ue[e]={}),B(t)&&Object.keys(t).forEach((function(n){ce.indexOf(n)>-1&&function(e,t,n){var r=ue[e][t];r||(r=ue[e][t]=[]),-1===r.indexOf(n)&&H(n)&&r.push(n)}(e,n,t[n])}))}function fe(e,t){ue[e]||(ue[e]={}),B(t)?Object.keys(t).forEach((function(n){ce.indexOf(n)>-1&&function(e,t,n){var r=ue[e][t];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(e,n,t[n])})):delete ue[e]}function de(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function pe(e,t){return ue[e]&&ue[e][t]||[]}function he(e){le("callObject",e)}var ye=ae("_globalUniCloudListener"),ge={RESPONSE:"response",NEED_LOGIN:"needLogin",REFRESH_TOKEN:"refreshToken"},ve={CLIENT_DB:"clientdb",CLOUD_FUNCTION:"cloudfunction",CLOUD_OBJECT:"cloudobject"};function me(e){return ye[e]||(ye[e]=[]),ye[e]}function be(e,t){var n=me(e);n.includes(t)||n.push(t)}function Se(e,t){var n=me(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function xe(e,t){for(var n=me(e),r=0;r<n.length;r++)(0,n[r])(t)}var _e,Ce=!1;function we(){return _e||(_e=new Promise((function(e){Ce&&e(),function t(){if("function"==typeof getCurrentPages){var n=getCurrentPages();n&&n[0]&&(Ce=!0,e())}Ce||setTimeout((function(){t()}),30)}()})),_e)}function Pe(e){var t={};for(var n in e){var r=e[n];H(r)&&(t[n]=j(r))}return t}var Le=function(e){(0,p.default)(n,e);var t=P(n);function n(e){var r;return(0,v.default)(this,n),r=t.call(this,e.message),r.errMsg=e.message||e.errMsg||"unknown system error",r.code=r.errCode=e.code||e.errCode||"SYSTEM_ERROR",r.errSubject=r.subject=e.subject||e.errSubject,r.cause=e.cause,r.requestId=e.requestId,r}return(0,m.default)(n,[{key:"toJson",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,g.default)(Error));t.UniCloudError=Le;var Te,Ae,Oe={request:function(e){return r.request(e)},uploadFile:function(e){return r.uploadFile(e)},setStorageSync:function(e,t){return r.setStorageSync(e,t)},getStorageSync:function(e){return r.getStorageSync(e)},removeStorageSync:function(e){return r.removeStorageSync(e)},clearStorageSync:function(){return r.clearStorageSync()},connectSocket:function(e){return r.connectSocket(e)}};function Ye(){return{token:Oe.getStorageSync(Z)||Oe.getStorageSync(R),tokenExpired:Oe.getStorageSync(E)}}function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&Oe.setStorageSync(Z,t),n&&Oe.setStorageSync(E,n)}function Me(){return Te||(Te=r.getSystemInfoSync()),Te}function ke(){var e,t;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),i=n.scene,o=n.channel;e=o,t=i}}catch(e){}return{channel:e,scene:t}}var Ze={};function Ee(){var e=r.getLocale&&r.getLocale()||"en";if(Ae)return w(w(w({},Ze),Ae),{},{locale:e,LOCALE:e});var t=Me(),n=t.deviceId,i=t.osName,o=t.uniPlatform,a=t.appId,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var c in t)Object.hasOwnProperty.call(t,c)&&-1===s.indexOf(c)&&delete t[c];return Ae=w(w({PLATFORM:o,OS:i,APPID:a,DEVICEID:n},ke()),t),w(w(w({},Ze),Ae),{},{locale:e,LOCALE:e})}var Re,Ne={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),D(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={}),$&&"web"===ee&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){var i=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",o=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return r(new Le({code:i,message:o,requestId:t}))}var a=e.data;if(a.error)return r(new Le({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))},toBase64:function(e){return k.stringify(M.parse(e))}},Ie=function(){function e(t){var n=this;(0,v.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Oe,this._getAccessTokenPromiseHub=new W({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new Le({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:Q})}return(0,m.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Ne.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Ne.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Ne.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(w(w({},this.setupRequest(t)),{},{timeout:e.timeout}))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new Le({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new Le({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o,s,c,u,l,f,d,p,h,y,g,v,m,b,S,x,_,C,w;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=t.fileType,o=void 0===i?"image":i,s=t.cloudPathAsRealPath,c=void 0!==s&&s,u=t.onUploadProgress,l=t.config,"string"===F(r)){e.next=3;break}throw new Le({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new Le({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new Le({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(f=l&&l.envType||this.config.envType,!(c&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new Le({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:f,filename:c?r.split("/").pop():r,fileId:c?r:void 0});case 12:return d=e.sent.result,p="https://"+d.cdnDomain+"/"+d.ossPath,h=d.securityToken,y=d.accessKeyId,g=d.signature,v=d.host,m=d.ossPath,b=d.id,S=d.policy,x=d.ossCallbackUrl,_={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:y,Signature:g,host:v,id:b,key:m,policy:S,success_action_status:200},h&&(_["x-oss-security-token"]=h),x&&(C=JSON.stringify({callbackUrl:x,callbackBody:JSON.stringify({fileId:b,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),_.callback=Ne.toBase64(C)),w={url:"https://"+d.host,formData:_,fileName:"file",name:"file",filePath:n,fileType:o},e.next=27,this.uploadFileToOSS(Object.assign({},w,{onUploadProgress:u}));case 27:if(!x){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:p});case 29:return e.next=31,this.reportOSSUpload({id:b});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:p});case 33:throw new Le({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,n){Array.isArray(t)&&0!==t.length||n(new Le({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new Le({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}(),Xe={init:function(e){var t=new Ie(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Je="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Re||(Re={}));var Fe,Be=function(){},He=A((function(e,t){var n;e.exports=(n=Y,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),c[i]=n(e.pow(r,1/3)),i++),r++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],f=n[6],d=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var h=u[p-15],y=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=u[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[p]=y+u[p-7]+v+u[p-16]}var m=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),S=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+c[p]+u[p];d=f,f=l,l=s,s=a+S|0,a=o,o=i,i=r,r=S+(b+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)})),je=He,Ge=A((function(e,t){e.exports=Y.HmacSHA256})),Qe=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new Le({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function We(e){return void 0===e}function Ue(e){return"[object Null]"===Object.prototype.toString.call(e)}function Ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function $e(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",r=0;r<e;r++)n+=t.charAt(Math.floor(62*Math.random()));return n}function ze(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=S(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.isMatch,s=o.genAdapter,c=o.runtime;if(a())return{adapter:s(),runtime:c}}}catch(u){i.e(u)}finally{i.f()}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Fe||(Fe={}));var qe={adapter:null,runtime:void 0},Ve=["anonymousUuidKey"],et=function(e){(0,p.default)(n,e);var t=P(n);function n(){var e;return(0,v.default)(this,n),e=t.call(this),qe.adapter.root.tcbObject||(qe.adapter.root.tcbObject={}),e}return(0,m.default)(n,[{key:"setItem",value:function(e,t){qe.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return qe.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete qe.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete qe.adapter.root.tcbObject}}]),n}(Be);function tt(e,t){switch(e){case"local":return t.localStorage||new et;case"none":return new et;default:return t.sessionStorage||new et}}var nt=function(){function e(t){if((0,v.default)(this,e),!this._storage){this._persistence=qe.adapter.primaryStorage||t.persistence,this._storage=tt(this._persistence,qe.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),o="anonymous_uuid_".concat(t.env),a="login_type_".concat(t.env),s="device_id",c="token_type_".concat(t.env),u="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:u,deviceIdKey:s,tokenTypeKey:c}}}return(0,m.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=tt(e,qe.adapter);for(var r in this.keys){var i=this.keys[r];if(!t||!Ve.includes(r)){var o=this._storage.getItem(i);We(o)||Ue(o)||(n.setItem(i,o),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},i=JSON.stringify(r);try{this._storage.setItem(e,i)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),rt={},it={};function ot(e){return rt[e]}var at=(0,m.default)((function e(t,n){(0,v.default)(this,e),this.data=n||null,this.name=t})),st=function(e){(0,p.default)(n,e);var t=P(n);function n(e,r){var i;return(0,v.default)(this,n),i=t.call(this,"error",{error:e,data:r}),i.error=e,i}return(0,m.default)(n)}(at),ct=new(function(){function e(){(0,v.default)(this,e),this._listeners={}}return(0,m.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof st)return console.error(e.error),this;var n="string"==typeof e?new at(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var i,o=this._listeners[r]?(0,l.default)(this._listeners[r]):[],a=S(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.call(this,n)}}catch(c){a.e(c)}finally{a.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function ut(e,t){ct.on(e,t)}function lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ct.fire(e,t)}function ft(e,t){ct.off(e,t)}var dt,pt="loginStateChanged",ht="loginStateExpire",yt="loginTypeChanged",gt="anonymousConverted",vt="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(dt||(dt={}));var mt=function(){function e(){(0,v.default)(this,e),this._fnPromiseMap=new Map}return(0,m.default)(e,[{key:"run",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,i=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._fnPromiseMap.get(t),e.abrupt("return",(r||(r=new Promise(function(){var e=(0,f.default)(a.default.mark((function e(r,o){var s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i._runIdlePromise();case 3:return s=n(),e.t0=r,e.next=7,s;case 7:e.t1=e.sent,(0,e.t0)(e.t1),e.next=14;break;case 11:e.prev=11,e.t2=e["catch"](0),o(e.t2);case 14:return e.prev=14,i._fnPromiseMap.delete(t),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})));return function(t,n){return e.apply(this,arguments)}}()),this._fnPromiseMap.set(t,r)),r));case 2:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"_runIdlePromise",value:function(){return Promise.resolve()}}]),e}(),bt=function(){function e(t){(0,v.default)(this,e),this._singlePromise=new mt,this._cache=ot(t.env),this._baseURL="https://".concat(t.env,".ap-shanghai.tcb-api.tencentcloudapi.com"),this._reqClass=new qe.adapter.reqClass({timeout:t.timeout,timeoutMsg:"请求在".concat(t.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]})}return(0,m.default)(e,[{key:"_getDeviceId",value:function(){if(this._deviceID)return this._deviceID;var e=this._cache.keys.deviceIdKey,t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=$e(),this._cache.setStore(e,t)),this._deviceID=t,t}},{key:"_request",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,i,o,s,c,u=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:{},i={"x-request-id":$e(),"x-device-id":this._getDeviceId()},!r.withAccessToken){e.next=9;break}return o=this._cache.keys.tokenTypeKey,e.next=6,this.getAccessToken();case 6:s=e.sent,c=this._cache.getStore(o),i.authorization="".concat(c," ").concat(s);case 9:return e.abrupt("return",this._reqClass["get"===r.method?"get":"post"]({url:"".concat(this._baseURL).concat(t),data:n,headers:i}));case 10:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"_fetchAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i,o,s,c,u,l,d,p=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.loginTypeKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,o=t.tokenTypeKey,s=this._cache.getStore(n),!s||s===dt.ANONYMOUS){e.next=3;break}throw new Le({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});case 3:return e.next=5,this._singlePromise.run("fetchAccessToken",(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p._request("/auth/v1/signin/anonymously",{},{method:"post"});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)}))));case 5:return c=e.sent,u=c.access_token,l=c.expires_in,d=c.token_type,e.abrupt("return",(this._cache.setStore(o,d),this._cache.setStore(r,u),this._cache.setStore(i,Date.now()+1e3*l),u));case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isAccessTokenExpired",value:function(e,t){var n=!0;return e&&t&&(n=t<Date.now()),n}},{key:"getAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=this._cache.getStore(n),o=this._cache.getStore(r),e.abrupt("return",this.isAccessTokenExpired(i,o)?this._fetchAccessToken():i);case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"refreshAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.loginTypeKey,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,dt.ANONYMOUS),this.getAccessToken()));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getUserInfo",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._singlePromise.run("getUserInfo",(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}(),St=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],xt={"X-SDK-Version":"1.3.5"};function _t(e,t,n){var r=e[t];e[t]=function(t){var i={},o={};n.forEach((function(n){var r=n.call(e,t),a=r.data,s=r.headers;Object.assign(i,a),Object.assign(o,s)}));var a=t.data;return a&&function(){var e;if(e=a,"[object FormData]"!==Object.prototype.toString.call(e))t.data=w(w({},a),i);else for(var n in i)a.append(n,i[n])}(),t.headers=w(w({},t.headers||{}),o),r.call(e,t)}}function Ct(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:w(w({},xt),{},{"x-seqid":e})}}var wt=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,v.default)(this,e),this.config=n,this._reqClass=new qe.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=ot(this.config.env),this._localCache=(t=this.config.env,it[t]),this.oauth=new bt(this.config),_t(this._reqClass,"post",[Ct]),_t(this._reqClass,"upload",[Ct]),_t(this._reqClass,"download",[Ct])}return(0,m.default)(e,[{key:"post",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upload",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"download",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refreshAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"_refreshAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i,o,s,c,u,l,f,d,p,h;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,o=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),c=this._cache.getStore(i),c){e.next=5;break}throw new Le({message:"未登录CloudBase"});case 5:return u={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(f=l.data.code,"SIGN_PARAM_INVALID"!==f&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f){e.next=20;break}if(this._cache.getStore(o)!==dt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return d=this._cache.getStore(s),p=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:p});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:lt(ht),this._cache.removeStore(i);case 20:throw new Le({code:l.data.code,message:"刷新access token失败:".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",(lt(vt),this._cache.setStore(n,l.data.access_token),this._cache.setStore(r,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new Le({message:"refresh token不存在,登录状态异常"});case 3:if(o=this._cache.getStore(n),s=this._cache.getStore(r),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(o,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!o||!s||s<Date.now())&&c?this.refreshAccessToken():{accessToken:o,accessTokenExpire:s});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"request",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n,r){var i,o,s,c,u,l,f,d,p,h,y,g,v,m,b;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i="x-tcb-trace_".concat(this.config.env),o="application/x-www-form-urlencoded",s=w({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),e.t0=-1===St.indexOf(t),!e.t0){e.next=9;break}return this._cache.keys,e.next=8,this.oauth.getAccessToken();case 8:s.access_token=e.sent;case 9:if("storage.uploadFile"!==t){e.next=15;break}for(u in c=new FormData,c)c.hasOwnProperty(u)&&void 0!==c[u]&&c.append(u,s[u]);o="multipart/form-data",e.next=17;break;case 15:for(l in o="application/json",c={},s)void 0!==s[l]&&(c[l]=s[l]);case 17:return f={headers:{"content-type":o}},r&&r.timeout&&(f.timeout=r.timeout),r&&r.onUploadProgress&&(f.onUploadProgress=r.onUploadProgress),d=this._localCache.getStore(i),d&&(f.headers["X-TCB-Trace"]=d),p=n.parse,h=n.inQuery,y=n.search,g={env:this.config.env},p&&(g.parse=!0),h&&(g=w(w({},h),g)),v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),i="";for(var o in n)""===i?!r&&(t+="?"):i+="&",i+="".concat(o,"=").concat(encodeURIComponent(n[o]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(Je,"//tcb-api.tencentcloudapi.com/web",g),y&&(v+=y),e.next=28,this.post(w({url:v,data:c},f));case 28:if(m=e.sent,b=m.header&&m.header["x-tcb-trace"],b&&this._localCache.setStore(i,b),(200===Number(m.status)||200===Number(m.statusCode))&&m.data){e.next=32;break}throw new Le({code:"NETWORK_ERROR",message:"network request error"});case 32:return e.abrupt("return",m);case 33:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"send",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o,s=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},r=s.length>2&&void 0!==s[2]?s[2]:{},e.next=4,this.request(t,n,w(w({},r),{},{onUploadProgress:n.onUploadProgress}));case 4:if(i=e.sent,"ACCESS_TOKEN_DISABLED"!==i.data.code&&"ACCESS_TOKEN_EXPIRED"!==i.data.code||-1!==St.indexOf(t)){e.next=14;break}return e.next=8,this.oauth.refreshAccessToken();case 8:return e.next=10,this.request(t,n,w(w({},r),{},{onUploadProgress:n.onUploadProgress}));case 10:if(o=e.sent,!o.data.code){e.next=13;break}throw new Le({code:o.data.code,message:Ke(o.data.message)});case 13:return e.abrupt("return",o.data);case 14:if(!i.data.code){e.next=16;break}throw new Le({code:i.data.code,message:Ke(i.data.message)});case 16:return e.abrupt("return",i.data);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}}]),e}(),Pt={};function Lt(e){return Pt[e]}var Tt=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=ot(t.env),this._request=Lt(t.env)}return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),At=function(){function e(t){if((0,v.default)(this,e),!t)throw new Le({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=ot(this._envId),this._request=Lt(this._envId),this.setUserInfo()}return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new Le({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new Le({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o,s,c,u,l;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,i=t.avatarUrl,o=t.province,s=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:o,country:s,city:c});case 8:u=e.sent,l=u.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refresh",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.oauth.getUserInfo();case 2:return t=e.sent,e.abrupt("return",(this.setLocalUserInfo(t),t));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),Ot=function(){function e(t){if((0,v.default)(this,e),!t)throw new Le({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=ot(t);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,o=n.accessTokenExpireKey,a=this._cache.getStore(r),s=this._cache.getStore(i),c=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:c},this.user=new At(t)}return(0,m.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===dt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===dt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===dt.WECHAT||this.loginType===dt.WECHAT_OPEN||this.loginType===dt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),Yt=function(e){(0,p.default)(n,e);var t=P(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),e.next=3,this._request.oauth.getAccessToken();case 3:return lt(pt),lt(yt,{env:this.config.env,loginType:dt.ANONYMOUS,persistence:"local"}),t=new Ot(this.config.env),e.next=8,t.user.refresh();case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,o=this._cache.getStore(r),s=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:t});case 7:if(c=e.sent,!c.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return lt(gt,{env:this.config.env}),lt(yt,{loginType:dt.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new Le({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,dt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(Tt),Dt=function(e){(0,p.default)(n,e);var t=P(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Le({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return lt(pt),lt(yt,{env:this.config.env,loginType:dt.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new Ot(this.config.env));case 15:throw new Le({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),n}(Tt),Mt=function(e){(0,p.default)(n,e);var t=P(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Le({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=e.sent,o=i.refresh_token,s=i.access_token,c=i.access_token_expire,!o){e.next=22;break}if(this.setRefreshToken(o),!s||!c){e.next=15;break}this.setAccessToken(s,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return lt(pt),lt(yt,{env:this.config.env,loginType:dt.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new Ot(this.config.env));case 22:throw i.code?new Le({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new Le({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"activate",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"resetPasswordWithToken",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(Tt),kt=function(e){(0,p.default)(n,e);var t=P(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Le({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:dt.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=e.sent,o=i.refresh_token,s=i.access_token_expire,c=i.access_token,!o){e.next=23;break}if(this.setRefreshToken(o),!c||!s){e.next=16;break}this.setAccessToken(c,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return lt(pt),lt(yt,{env:this.config.env,loginType:dt.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new Ot(this.config.env));case 23:throw i.code?new Le({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new Le({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(Tt),Zt=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=ot(t.env),this._request=Lt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),ut(yt,this._onLoginTypeChanged)}return(0,m.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new Yt(this.config)}},{key:"customAuthProvider",value:function(){return new Dt(this.config)}},{key:"emailAuthProvider",value:function(){return new Mt(this.config)}},{key:"usernameAuthProvider",value:function(){return new kt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Yt(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Mt(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new kt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Yt(this.config)),ut(gt,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"signOut",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==dt.ANONYMOUS){e.next=2;break}throw new Le({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,o=this._cache.getStore(n),o){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),lt(pt),lt(yt,{env:this.config.env,loginType:dt.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onLoginStateChanged",value:function(e){var t=this;ut(pt,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){ut(ht,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){ut(vt,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){ut(gt,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;ut(yt,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasLoginState",value:function(){var e=this._cache.keys,t=e.accessTokenKey,n=e.accessTokenExpireKey,r=this._cache.getStore(t),i=this._cache.getStore(n);return this._request.oauth.isAccessTokenExpired(r,i)?null:new Ot(this.config.env)}},{key:"isUsernameRegistered",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Le({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Dt(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:w(w({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),Et=function(e,t){t=t||Qe();var n=Lt(this.config.env),r=e.cloudPath,i=e.filePath,o=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var a=e.data,c=a.url,u=a.authorization,l=a.token,f=a.fileId,d=a.cosFileId,p=e.requestId,h={key:r,signature:u,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:c,data:h,file:i,name:r,fileType:s,onUploadProgress:o}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:p}):t(new Le({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},Rt=function(e,t){t=t||Qe();var n=Lt(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},Nt=function(e,t){var n=e.fileList;if(t=t||Qe(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=S(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var a={fileid_list:n};return Lt(this.config.env).send("storage.batchDeleteFile",a).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},It=function(e,t){var n=e.fileList;t=t||Qe(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],o=S(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;"object"==(0,u.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?i.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){o.e(c)}finally{o.f()}var s={file_list:i};return Lt(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Xt=function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,It.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",n?n(i):new Promise((function(e){e(i)})));case 6:if(o=Lt(this.config.env),s=i.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",o.download({url:s}));case 10:return e.t0=n,e.next=13,o.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),Jt=function(e,t){var n,r=e.name,i=e.data,o=e.query,a=e.parse,s=e.search,c=e.timeout,u=t||Qe();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new Le({code:"PARAM_ERROR",message:"函数名不能为空"}));var l={inQuery:o,parse:a,search:s,function_name:r,request_data:n};return Lt(this.config.env).send("functions.invokeFunction",l,{timeout:c}).then((function(e){if(e.code)u(null,e);else{var t=e.data.response_data;if(a)u(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),u(null,{result:t,requestId:e.requestId})}catch(e){u(new Le({message:"response data must be json"}))}}return u.promise})).catch((function(e){u(e)})),u.promise},Ft={timeout:15e3,persistence:"session"},Bt=6e5,Ht={},jt=function(){function e(t){(0,v.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,m.default)(e,[{key:"init",value:function(t){switch(qe.adapter||(this.requestClient=new qe.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=w(w({},Ft),t),!0){case this.config.timeout>Bt:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=Bt;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,r=t||qe.adapter.primaryStorage||Ft.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;rt[t]=new nt(e),it[t]=new nt(w(w({},e),{},{persistence:"local"}))}(this.config),n=this.config,Pt[n.env]=new wt(n),this.authObj=new Zt(this.config),this.authObj}},{key:"on",value:function(e,t){return ut.apply(this,[e,t])}},{key:"off",value:function(e,t){return ft.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return Jt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return Nt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return It.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return Xt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return Et.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return Rt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Ht[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=Ht[t],r){e.next=3;break}throw new Le({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"useAdapters",value:function(e){var t=ze(e)||{},n=t.adapter,r=t.runtime;n&&(qe.adapter=n),r&&(qe.runtime=r)}}]),e}(),Gt=new jt;function Qt(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var o in n)""===i?!r&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var Wt=function(){function e(){(0,v.default)(this,e)}return(0,m.default)(e,[{key:"get",value:function(e){var t=e.url,n=e.data,r=e.headers,i=e.timeout;return new Promise((function(e,o){Oe.request({url:Qt("https:",t),data:n,method:"GET",header:r,timeout:i,success:function(t){e(t)},fail:function(e){o(e)}})}))}},{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers,i=e.timeout;return new Promise((function(e,o){Oe.request({url:Qt("https:",t),data:n,method:"POST",header:r,timeout:i,success:function(t){e(t)},fail:function(e){o(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,i=e.file,o=e.data,a=e.headers,s=e.fileType,c=Oe.uploadFile({url:Qt("https:",r),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:a,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),Ut={setItem:function(e,t){Oe.setStorageSync(e,t)},getItem:function(e){return Oe.getStorageSync(e)},removeItem:function(e){Oe.removeStorageSync(e)},clear:function(){Oe.clearStorageSync()}},Kt={genAdapter:function(){return{root:{},reqClass:Wt,localStorage:Ut,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Gt.useAdapters(Kt);var $t=Gt,zt=$t.init;$t.init=function(e){e.env=e.spaceId;var t=zt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=Pe(e),r=t.success,i=t.fail,o=t.complete;if(!(r||i||o))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),o&&o(e)}),(function(e){i&&i(e),o&&o(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var qt=$t;function Vt(e,t){return en.apply(this,arguments)}function en(){return en=(0,f.default)(a.default.mark((function e(t,n){var r,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="http://".concat(t,":").concat(n,"/system/ping"),e.prev=1,e.next=4,o={url:r,timeout:500},new Promise((function(e,t){Oe.request(w(w({},o),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return i=e.sent,e.abrupt("return",!(!i.data||0!==i.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),en.apply(this,arguments)}function tn(e,t){return nn.apply(this,arguments)}function nn(){return nn=(0,f.default)(a.default.mark((function e(t,n){var r,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<t.length)){e.next=11;break}return o=t[i],e.next=5,Vt(o,n);case 5:if(!e.sent){e.next=8;break}return r=o,e.abrupt("break",11);case 8:i++,e.next=1;break;case 11:return e.abrupt("return",{address:r,port:n});case 12:case"end":return e.stop()}}),e)}))),nn.apply(this,arguments)}var rn={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"},on=function(){function e(t){if((0,v.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),!t.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},t),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=Oe}return(0,m.default)(e,[{key:"request",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i=this,o=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=!(o.length>1&&void 0!==o[1])||o[1],r=$&&n,!r){e.next=8;break}return e.next=5,this.setupLocalRequest(t);case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=this.setupRequest(t);case 9:return t=e.t0,e.abrupt("return",Promise.resolve().then((function(){return r?i.requestLocal(t):Ne.wrappedRequest(t,i.adapter.request)})));case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"requestLocal",value:function(e){var t=this;return new Promise((function(n,r){t.adapter.request(Object.assign(e,{complete:function(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){var t=e.data&&e.data.code||"SYS_ERR",i=e.data&&e.data.message||"request:fail";return r(new Le({code:t,message:i}))}n({success:!0,result:e.data})}}))}))}},{key:"setupRequest",value:function(e){var t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=Ne.sign(t,this.config.clientSecret);var r=Ee();n["x-client-info"]=encodeURIComponent(JSON.stringify(r));var i=Ye(),o=i.token;return n["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"setupLocalRequest",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o,s,c,u,l,f;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Ee(),r=Ye(),i=r.token,o=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:n,token:i}),s=this.__dev__&&this.__dev__.debugInfo||{},c=s.address,u=s.servePort,e.next=9,tn(c,u);case 9:return l=e.sent,f=l.address,e.abrupt("return",{url:"http://".concat(f,":").concat(u,"/").concat(rn[t.method]),method:"POST",data:o,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))});case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}},{key:"getUploadFileOptions",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}},{key:"reportUploadFile",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,i=e.cloudPath,o=e.fileType,a=void 0===o?"image":o,s=e.onUploadProgress;if(!i)throw new Le({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getUploadFileOptions({cloudPath:i}).then((function(e){var i=e.result,o=i.url,c=i.formData,u=i.name;return t=e.result.fileUrl,new Promise((function(e,t){var i=n.adapter.uploadFile({url:o,formData:c,name:u,filePath:r,fileType:a,success:function(n){n&&n.statusCode<400?e(n):t(new Le({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){t(new Le({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&i&&"function"==typeof i.onProgressUpdate&&i.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((function(){return n.reportUploadFile({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:r,fileID:t}):i(new Le({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(n).then((function(e){if(e.success)return e.result;throw new Le({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new Le({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(r).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new Le({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),e}(),an={init:function(e){var t=new on(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},sn=A((function(e,t){e.exports=Y.enc.Hex}));function cn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,i=t.method,o=t.headers,a=t.signHeaderKeys,s=void 0===a?[]:a,u=t.config,l=String(Date.now()),f=cn(),d=Object.assign({},o,{"x-from-app-id":u.spaceAppId,"x-from-env-id":u.spaceId,"x-to-env-id":u.spaceId,"x-from-instance-id":l,"x-from-function-name":r,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":f,"x-alipay-callid":f,"x-trace-id":f}),p=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),h=e.split("?")||[],y=(0,c.default)(h,2),g=y[0],v=void 0===g?"":g,m=y[1],b=void 0===m?"":m,S=function(e){var t="HMAC-SHA256",n=e.signedHeaders.join(";"),r=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),i=je(e.body).toString(sn),o="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(r,"\n").concat(n,"\n").concat(i,"\n"),a=je(o).toString(sn),s="".concat(t,"\n").concat(e.timestamp,"\n").concat(a,"\n"),c=Ge(s,e.secretKey).toString(sn);return"".concat(t," Credential=").concat(e.secretId,", SignedHeaders=").concat(n,", Signature=").concat(c)}({path:v,query:b,method:i,headers:d,timestamp:l,body:JSON.stringify(n),secretId:u.accessKey,secretKey:u.secretKey,signedHeaders:p.sort()});return{url:"".concat(u.endpoint).concat(e),headers:Object.assign({},d,{Authorization:S})}}function ln(e){var t=e.url,n=e.data,r=e.method,i=void 0===r?"POST":r,o=e.headers,a=void 0===o?{}:o,s=e.timeout;return new Promise((function(e,r){Oe.request({url:t,method:i,data:"object"==(0,u.default)(n)?JSON.stringify(n):n,header:a,dataType:"json",timeout:s,complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},o=i.message,s=i.errMsg,c=i.trace_id;return r(new Le({code:"SYS_ERR",message:o||s||"request:fail",requestId:c||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function fn(e,t){var n=e.path,r=e.data,i=e.method,o=void 0===i?"GET":i,a=un(n,{functionName:"",data:r,method:o,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=a.url,c=a.headers;return ln({url:s,data:r,method:o,headers:c}).then((function(e){var t=e.data||{};if(!t.success)throw new Le({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new Le({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function dn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new Le({code:"INVALID_PARAM",message:"fileID不合法"});var r=t.substring(0,n),i=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var hn=function(){function e(t){(0,v.default)(this,e),this.config=t}return(0,m.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/ws/function/".concat(e),r=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:cn(),timestamp:""+Date.now()}),o=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return i[e]?"".concat(e,"=").concat(i[e]):null})).filter(Boolean).join("&"),"host:".concat(r)].join("\n"),a=["HMAC-SHA256",je(o).toString(sn)].join("\n"),s=Ge(a,this.config.secretKey).toString(sn),c=Object.keys(i).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(i[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(n,"?").concat(c,"&signature=").concat(s)}}]),e}(),yn=function(){function e(t){if((0,v.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:t.wsEndpoint||"wss://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new hn(this.config)}return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,i=e.async,o=void 0!==i&&i,a=e.timeout,s="POST",c={"x-to-function-name":n};o&&(c["x-function-invoke-type"]="async");var u=un("/functions/invokeFunction",{functionName:n,data:r,method:s,headers:c,signHeaderKeys:["x-to-function-name"],config:t}),l=u.url,f=u.headers;return ln({url:l,data:r,method:s,headers:f,timeout:a}).then((function(e){var t=0;if(o){var n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new Le({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((function(e){throw new Le({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,i=e.formData,o=e.onUploadProgress;return new Promise((function(e,a){var s=Oe.uploadFile({url:t,filePath:n,fileType:r,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):a(new Le({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){a(new Le({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o,s,c,u,l,f,d,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=void 0===r?"":r,o=t.fileType,s=void 0===o?"image":o,c=t.onUploadProgress,"string"===F(i)){e.next=3;break}throw new Le({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new Le({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new Le({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,fn({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return u=e.sent,l=u.file_id,f=u.upload_url,d=u.form_data,p=d&&d.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:f,filePath:n,fileType:s,formData:p,onUploadProgress:c}).then((function(){return{fileID:l}})));case 15:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempFileURL",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&e({code:"INVALID_PARAM",message:"fileList不能为空数组"}),n.length>50&&e({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});var i,o=[],a=S(n);try{for(a.s();!(i=a.n()).done;){var s=i.value,c=void 0;"string"!==F(s)&&e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{c=dn.call(r,s)}catch(e){console.warn(e.errCode,e.errMsg),c=s}o.push({file_id:c,expire:600})}}catch(u){a.e(u)}finally{a.f()}fn({path:"/?download_url",data:{file_list:o},method:"POST"},r.config).then((function(t){var n=t.file_list,i=void 0===n?[]:n;e({fileList:i.map((function(e){return{fileID:pn.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"connectWebSocket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,e.abrupt("return",Oe.connectSocket({url:this._websocket.signedURL(n,r),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}(),gn={init:function(e){e.provider="alipay";var t=new yn(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function vn(e){var t,n=e.data;t=Ee();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var i=Ye(),o=i.token;o&&(r.uniIdToken=o)}return r}function mn(){return bn.apply(this,arguments)}function bn(){return bn=(0,f.default)(a.default.mark((function e(){var t,n,r,i,o,s,c,u,l=this,f=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=f.length>0&&void 0!==f[0]?f[0]:{},e.next=3,this.__dev__.initLocalNetwork();case 3:return n=this.__dev__,r=n.localAddress,i=n.localPort,o={aliyun:"aliyun",tencent:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],s=this.config.spaceId,c="http://".concat(r,":").concat(i,"/system/check-function"),u="http://".concat(r,":").concat(i,"/cloudfunctions/").concat(t.name),e.abrupt("return",new Promise((function(e,n){Oe.request({method:"POST",url:c,data:{name:t.name,platform:ee,provider:o,spaceId:s},timeout:3e3,success:function(t){e(t)},fail:function(){e({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=t||{},r=n.code,i=n.message;return{code:0===r?0:r||"SYS_ERR",message:i||"SYS_ERR"}})).then((function(e){var n=e.code,r=e.message;if(0!==n){switch(n){case"MODULE_ENCRYPTED":console.error("此云函数(".concat(t.name,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":console.error("此云函数(".concat(t.name,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":console.error(r||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":console.error(r||"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下");break;case"SWITCH_TO_CLOUD":break;default:var i="检测本地调试服务出现错误:".concat(r,",请检查网络环境或重启客户端再试");throw console.error(i),new Error(i)}return l._callCloudFunction(t)}return new Promise((function(e,n){var r=vn.call(l,{data:t.data});Oe.request({method:"POST",url:u,data:{provider:o,platform:ee,param:r},timeout:t.timeout,success:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.statusCode,i=t.data;return!r||r>=400?n(new Le({code:i.code||"SYS_ERR",message:i.message||"request:fail"})):e({result:i})},fail:function(e){n(new Le({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))})));case 5:case"end":return e.stop()}}),e,this)}))),bn.apply(this,arguments)}var Sn=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],xn=/[\\^$.*+?()[\]{}|]/g,_n=RegExp(xn.source);function Cn(e,t,n){return e.replace(new RegExp((r=t)&&_n.test(r)?r.replace(xn,"\\$&"):r,"g"),n);var r}var wn={NONE:"none",REQUEST:"request",RESPONSE:"response",BOTH:"both"},Pn="_globalUniCloudStatus",Ln="_globalUniCloudSecureNetworkCache__{spaceId}",Tn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.secretType,r=t.uniCloudIns;(0,v.default)(this,e),this.clientType="",this.secretType=n||wn.NONE,this.uniCloudIns=r;var i,o=this.uniCloudIns.config,a=o.provider,s=o.spaceId;this.provider=a,this.spaceId=s,this.scopedGlobalCache=(i=this.uniCloudIns,ae(Ln.replace("{spaceId}",i.config.spaceId)))}return(0,m.default)(e,[{key:"getSystemInfo",value:function(){return this._systemInfo||(this._systemInfo=Me()),this._systemInfo}},{key:"appId",get:function(){return this.getSystemInfo().appId}},{key:"deviceId",get:function(){return this.getSystemInfo().deviceId}},{key:"encryptData",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.secretType===wn.NONE?t:this.platformEncryptData(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"decryptResult",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.secretType!==wn.NONE){e.next=2;break}return e.abrupt("return",t);case 2:return n=t||{},r=n.errCode,i=n.content,e.abrupt("return",r||!i?t:this.secretType===wn.REQUEST?i:this.platformDecryptResult(t));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"wrapVerifyClientCallFunction",value:function(e){var t=this;return(0,f.default)(a.default.mark((function n(){var r,i,o,s,c,u=arguments;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=u.length>0&&void 0!==u[0]?u[0]:{},i=r.name,o=r.data,s=void 0===o?{}:o,n.next=3,t.prepare();case 3:return n.next=5,t.platformGetSignOption();case 5:return(s=JSON.parse(JSON.stringify(s)))._uniCloudOptions=n.sent,n.next=8,e({name:i,data:s});case 8:if(c=n.sent,n.t0=t.isClientKeyNotFound(c),!n.t0){n.next=19;break}return n.next=13,t.prepare({forceUpdate:!0});case 13:return n.next=15,t.platformGetSignOption();case 15:return s._uniCloudOptions=n.sent,n.next=18,e({name:i,data:s});case 18:c=n.sent;case 19:return n.abrupt("return",c);case 20:case"end":return n.stop()}}),n)})))}},{key:"wrapEncryptDataCallFunction",value:function(e){var t=this;return(0,f.default)(a.default.mark((function n(){var r,i,o,s,c,u,l,f=arguments;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=f.length>0&&void 0!==f[0]?f[0]:{},i=r.name,o=r.data,s=void 0===o?{}:o,n.next=3,t.prepare();case 3:return n.next=5,t.encryptData(s);case 5:return c=n.sent,n.next=8,e({name:i,data:c});case 8:if(u=n.sent,!t.isClientKeyNotFound(u)){n.next=21;break}return n.next=12,t.prepare({forceUpdate:!0});case 12:return n.next=14,t.encryptData(s);case 14:return l=n.sent,n.next=17,t.platformGetSignOption();case 17:return s._uniCloudOptions=n.sent,n.next=20,e({name:i,data:l});case 20:u=n.sent;case 21:return n.next=23,t.decryptResult(u.result);case 23:return u.result=n.sent,n.abrupt("return",u);case 25:case"end":return n.stop()}}),n)})))}}]),e}();
- /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
- function An(e){return parseInt(e)===e}function On(e){if(!An(e.length))return!1;for(var t=0;t<e.length;t++)if(!An(e[t])||e[t]<0||e[t]>255)return!1;return!0}function Yn(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!On(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(An(e.length)&&On(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function Dn(e){return new Uint8Array(e)}function Mn(e,t,n,r,i){null==r&&null==i||(e=e.slice?e.slice(r,i):Array.prototype.slice.call(e,r,i)),t.set(e,n)}var kn,Zn={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var r=e.charCodeAt(n++);37===r?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(r)}return Yn(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var r=e[n];r<128?(t.push(String.fromCharCode(r)),n++):r>191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},En=(kn="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(kn[(240&r)>>4]+kn[15&r])}return t.join("")}}),Rn={16:10,24:12,32:14},Nn=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],In=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Xn=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Jn=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Fn=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Bn=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],Hn=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],jn=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Gn=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Qn=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],Wn=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Un=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Kn=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],$n=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],zn=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function qn(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var Vn=function(){function e(t){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:Yn(t,!0)}),this._prepare()}return(0,m.default)(e,[{key:"_prepare",value:function(){var e=Rn[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,r=4*(e+1),i=this.key.length/4,o=qn(this.key);for(t=0;t<i;t++)n=t>>2,this._Ke[n][t%4]=o[t],this._Kd[e-n][t%4]=o[t];for(var a,s=0,c=i;c<r;){if(a=o[i-1],o[0]^=In[a>>16&255]<<24^In[a>>8&255]<<16^In[255&a]<<8^In[a>>24&255]^Nn[s]<<24,s+=1,8!=i)for(t=1;t<i;t++)o[t]^=o[t-1];else{for(t=1;t<i/2;t++)o[t]^=o[t-1];for(a=o[i/2-1],o[i/2]^=In[255&a]^In[a>>8&255]<<8^In[a>>16&255]<<16^In[a>>24&255]<<24,t=i/2+1;t<i;t++)o[t]^=o[t-1]}for(t=0;t<i&&c<r;)u=c>>2,l=c%4,this._Ke[u][l]=o[t],this._Kd[e-u][l]=o[t++],c++}for(var u=1;u<e;u++)for(var l=0;l<4;l++)a=this._Kd[u][l],this._Kd[u][l]=Un[a>>24&255]^Kn[a>>16&255]^$n[a>>8&255]^zn[255&a]}},{key:"encrypt",value:function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=qn(e),i=0;i<4;i++)r[i]^=this._Ke[0][i];for(var o=1;o<t;o++){for(i=0;i<4;i++)n[i]=Jn[r[i]>>24&255]^Fn[r[(i+1)%4]>>16&255]^Bn[r[(i+2)%4]>>8&255]^Hn[255&r[(i+3)%4]]^this._Ke[o][i];r=n.slice()}var a,s=Dn(16);for(i=0;i<4;i++)a=this._Ke[t][i],s[4*i]=255&(In[r[i]>>24&255]^a>>24),s[4*i+1]=255&(In[r[(i+1)%4]>>16&255]^a>>16),s[4*i+2]=255&(In[r[(i+2)%4]>>8&255]^a>>8),s[4*i+3]=255&(In[255&r[(i+3)%4]]^a);return s}},{key:"decrypt",value:function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=qn(e),i=0;i<4;i++)r[i]^=this._Kd[0][i];for(var o=1;o<t;o++){for(i=0;i<4;i++)n[i]=jn[r[i]>>24&255]^Gn[r[(i+3)%4]>>16&255]^Qn[r[(i+2)%4]>>8&255]^Wn[255&r[(i+1)%4]]^this._Kd[o][i];r=n.slice()}var a,s=Dn(16);for(i=0;i<4;i++)a=this._Kd[t][i],s[4*i]=255&(Xn[r[i]>>24&255]^a>>24),s[4*i+1]=255&(Xn[r[(i+3)%4]>>16&255]^a>>16),s[4*i+2]=255&(Xn[r[(i+2)%4]>>8&255]^a>>8),s[4*i+3]=255&(Xn[255&r[(i+1)%4]]^a);return s}}]),e}(),er=function(){function e(t){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Vn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if((e=Yn(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=Dn(e.length),n=Dn(16),r=0;r<e.length;r+=16)Mn(e,n,0,r,r+16),Mn(n=this._aes.encrypt(n),t,r);return t}},{key:"decrypt",value:function(e){if((e=Yn(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=Dn(e.length),n=Dn(16),r=0;r<e.length;r+=16)Mn(e,n,0,r,r+16),Mn(n=this._aes.decrypt(n),t,r);return t}}]),e}(),tr=function(){function e(t,n){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=Dn(16);this._lastCipherblock=Yn(n,!0),this._aes=new Vn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if((e=Yn(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=Dn(e.length),n=Dn(16),r=0;r<e.length;r+=16){Mn(e,n,0,r,r+16);for(var i=0;i<16;i++)n[i]^=this._lastCipherblock[i];this._lastCipherblock=this._aes.encrypt(n),Mn(this._lastCipherblock,t,r)}return t}},{key:"decrypt",value:function(e){if((e=Yn(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=Dn(e.length),n=Dn(16),r=0;r<e.length;r+=16){Mn(e,n,0,r,r+16),n=this._aes.decrypt(n);for(var i=0;i<16;i++)t[r+i]=n[i]^this._lastCipherblock[i];Mn(e,this._lastCipherblock,0,r,r+16)}return t}}]),e}(),nr=function(){function e(t,n,r){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 size)")}else n=Dn(16);r||(r=1),this.segmentSize=r,this._shiftRegister=Yn(n,!0),this._aes=new Vn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,n=Yn(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)n[r+i]^=t[i];Mn(this._shiftRegister,this._shiftRegister,0,this.segmentSize),Mn(n,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n}},{key:"decrypt",value:function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,n=Yn(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)n[r+i]^=t[i];Mn(this._shiftRegister,this._shiftRegister,0,this.segmentSize),Mn(e,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n}}]),e}(),rr=function(){function e(t,n){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=Dn(16);this._lastPrecipher=Yn(n,!0),this._lastPrecipherIndex=16,this._aes=new Vn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){for(var t=Yn(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t}},{key:"decrypt",value:function(e){return this.encrypt(e)}}]),e}(),ir=function(){function e(t){if((0,v.default)(this,e),!(this instanceof e))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"==typeof t?(this._counter=Dn(16),this.setValue(t)):this.setBytes(t)}return(0,m.default)(e,[{key:"setValue",value:function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");if(e>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)}},{key:"setBytes",value:function(e){if(16!=(e=Yn(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e}},{key:"increment",value:function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}}}]),e}(),or=function(){function e(t,n){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof ir||(n=new ir(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Vn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){for(var t=Yn(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t}},{key:"decrypt",value:function(e){return this.encrypt(e)}}]),e}(),ar={AES:Vn,Counter:ir,ModeOfOperation:{ecb:er,cbc:tr,cfb:nr,ofb:rr,ctr:or},utils:{hex:En,utf8:Zn},padding:{pkcs7:{pad:function(e){var t=16-(e=Yn(e,!0)).length%16,n=Dn(e.length+t);Mn(e,n);for(var r=e.length;r<n.length;r++)n[r]=t;return n},strip:function(e){if((e=Yn(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r<t;r++)if(e[n+r]!==t)throw new Error("PKCS#7 invalid padding byte");var i=Dn(n);return Mn(e,i,0,0,n),i}}},_arrayTest:{coerceArray:Yn,createArray:Dn,copyArray:Mn}};function sr(e,t,n){var i=new Uint8Array(r.base64ToArrayBuffer(t)),o=ar.utils.utf8.toBytes(n),a=ar.utils.utf8.toBytes(e),s=new ar.ModeOfOperation.cbc(i,o),c=ar.padding.pkcs7.pad(a),u=s.encrypt(c);return r.arrayBufferToBase64(u)}var cr="uni-secure-network",ur={SYSTEM_ERROR:{code:2e4,message:"System error"},APP_INFO_INVALID:{code:20101,message:"Invalid client"},GET_ENCRYPT_KEY_FAILED:{code:20102,message:"Get encrypt key failed"}},lr={10001:"Secure network is not supported on current playground or unimpsdk",10003:"Config missing in current app. If the problem pesist, please contact DCloud.",10009:"Encrypt payload failed",10010:"Decrypt response failed"};function fr(e){var t=e||{},n=t.errSubject,r=t.subject,i=t.errCode,o=t.errMsg,a=t.code,s=t.message,c=t.cause;return new Le({subject:n||r||cr,code:i||a||ur.SYSTEM_ERROR.code,message:o||s,cause:c})}var dr,pr,hr=null,yr=function(e){(0,p.default)(n,e);var t=P(n);function n(e){var r;return(0,v.default)(this,n),r=t.call(this,e),r.clientType="mp-weixin",r.userEncryptKey=null,r}return(0,m.default)(n,[{key:"isLogin",value:function(){return!!this.scopedGlobalCache.mpWeixinCode||!!this.scopedGlobalCache.mpWeixinOpenid}},{key:"prepare",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.isLogin()){e.next=7;break}if(this.scopedGlobalCache.initPromise){e.next=3;break}throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");case 3:return e.next=5,this.scopedGlobalCache.initPromise;case 5:if(this.isLogin()){e.next=7;break}throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getUserEncryptKey",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.userEncryptKey){e.next=2;break}return e.abrupt("return",this.userEncryptKey);case 2:if(!hr||!hr.expireTime){e.next=6;break}if(t=Date.now(),!(hr.expireTime-t>0)){e.next=6;break}return e.abrupt("return",(this.userEncryptKey=hr,this.userEncryptKey));case 6:return e.abrupt("return",new Promise((function(e,t){r.getUserCryptoManager().getLatestUserKey({success:function(t){hr=t,n.userEncryptKey=t,e(n.userEncryptKey)},fail:function(e){t(fr(w(w({},ur.GET_ENCRYPT_KEY_FAILED),{},{cause:e})))}})})));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getWxAppId",value:function(){return i.getAccountInfoSync().miniProgram.appId}},{key:"platformGetSignOption",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserEncryptKey();case 2:return t=e.sent,n=t.encryptKey,r=t.iv,i=t.version,e.abrupt("return",{verifyClientSign:sr(JSON.stringify({data:JSON.stringify({}),appId:this.appId,deviceId:this.deviceId,wxAppId:this.getWxAppId(),simulator:"devtools"===Me().platform,timestamp:Date.now()}),n,r),encryptKeyId:i,mpWeixinCode:this.scopedGlobalCache.mpWeixinCode,mpWeixinOpenid:this.scopedGlobalCache.mpWeixinOpenid});case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformEncryptData",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserEncryptKey();case 2:return n=e.sent,r=n.encryptKey,i=n.iv,o=n.version,s={secretType:this.secretType,encryptKeyId:o,mpWeixinCode:this.scopedGlobalCache.mpWeixinCode,mpWeixinOpenid:this.scopedGlobalCache.mpWeixinOpenid},e.abrupt("return",this.secretType===wn.RESPONSE?{content:t,_uniCloudOptions:s}:{content:sr(JSON.stringify({data:JSON.stringify(t),appId:this.appId,deviceId:this.deviceId,wxAppId:this.getWxAppId(),simulator:"devtools"===Me().platform,timestamp:Date.now()}),r,i),_uniCloudOptions:s});case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"platformDecryptResult",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.content,e.next=3,this.getUserEncryptKey();case 3:return i=e.sent,o=i.encryptKey,s=i.iv,e.abrupt("return",JSON.parse(function(e,t,n){var i=new Uint8Array(r.base64ToArrayBuffer(e)),o=new Uint8Array(r.base64ToArrayBuffer(t)),a=ar.utils.utf8.toBytes(n),s=new ar.ModeOfOperation.cbc(o,a),c=ar.padding.pkcs7.strip(s.decrypt(i));return ar.utils.utf8.fromBytes(c)}(n,o,s)));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isClientKeyNotFound",value:function(){return!1}}]),n}(Tn);function gr(e){for(var t=["hasClientKey","encryptGetClientKeyPayload","setClientKey","encrypt","decrypt"],n={},r=function(r){var i=t[r];n[i]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise((function(t,r){"function"==typeof e[i]?e[i].apply(e,n.concat([function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.type,i=e.data,o=e.errCode,a=e.errMsg,s=e.errSubject,c=e.message;"success"===n?t(i):r(fr({errCode:o,errMsg:lr[o]||a||c,errSubject:s}))}])):r(fr({message:"请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"}))}))}},i=0;i<t.length;i++)r(i);return n}var vr=function(e){(0,p.default)(n,e);var t=P(n);function n(e){var i;return(0,v.default)(this,n),i=t.call(this,e),i.clientType="app",i.appUtils=w({},gr(r.requireNativePlugin("plus"))),i.systemInfo=dr||(dr=Me()),i}return(0,m.default)(n,[{key:"hasClientKey",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.hasClientKey({provider:this.provider,spaceId:this.spaceId});case 2:return this._hasClientKey=e.sent,e.abrupt("return",this._hasClientKey);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAppClientKey",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encryptGetClientKeyPayload({data:JSON.stringify({})});case 2:return t=e.sent,n=t.data,r=t.key,e.next=7,this.uniCloudIns.callFunction({name:"DCloud-clientDB",data:{redirectTo:"encryption",action:"getAppClientKey",data:n,key:r}});case 7:if(e.t0=e.sent.result,e.t0){e.next=10;break}e.t0={};case 10:if(i=e.t0,0===i.errCode){e.next=13;break}throw function(e){return new Le({subject:e.errSubject||cr,code:e.errCode||e.code||ur.SYSTEM_ERROR.code,message:e.errMsg||e.message})}(i);case 13:return o=i.clientKey,s=i.key,e.next=16,this.appUtils.setClientKey({provider:this.provider,spaceId:this.spaceId,clientKey:o,key:s});case 16:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"ensureClientKey",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i=this,o=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},n=t.forceUpdate,r=void 0!==n&&n,e.t1=!0,e.next=4,this.hasClientKey();case 4:if(e.t2=e.sent,e.t0=e.t1!==e.t2,e.t0){e.next=8;break}e.t0=r;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return",(r&&this.scopedGlobalCache.initPromise&&this.scopedGlobalCache.initStatus===I||!r&&this.scopedGlobalCache.initPromise&&this.scopedGlobalCache.initStatus!==J||(this.scopedGlobalCache.initPromise=this.getAppClientKey(),this.scopedGlobalCache.initPromise.then((function(e){i.scopedGlobalCache.initStatus=X})).catch((function(e){throw i.scopedGlobalCache.initStatus=J,e})),this.scopedGlobalCache.initStatus=I),this.scopedGlobalCache.initPromise));case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"prepare",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.forceUpdate,r=void 0!==n&&n,e.next=3,this.ensureClientKey({forceUpdate:r});case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformGetSignOption",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encrypt({provider:this.provider,spaceId:this.spaceId,data:JSON.stringify({})});case 2:return t=e.sent,n=t.data,r=t.key,e.abrupt("return",{verifyClientSign:n,encryptKeyId:r});case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformEncryptData",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encrypt({provider:this.provider,spaceId:this.spaceId,data:JSON.stringify(t)});case 2:return n=e.sent,r=n.data,i=n.key,o={secretType:this.secretType,encryptKeyId:i},e.abrupt("return",this.secretType===wn.RESPONSE?{content:t,_uniCloudOptions:o}:{content:r,_uniCloudOptions:o});case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"platformDecryptResult",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.content,r=t._uniCloudOptions,i=void 0===r?{}:r,o=i.encryptKeyId,e.next=6,this.appUtils.decrypt({provider:this.provider,spaceId:this.spaceId,data:n,key:o});case 6:return s=e.sent,e.abrupt("return",JSON.parse(s.data));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isClientKeyNotFound",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.result||{};return 70009===t.errCode&&t.errSubject===cr}}]),n}(Tn);function mr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===wn.REQUEST||t===wn.RESPONSE||t===wn.BOTH}function br(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===ee&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function Sr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,i=Me(),o=i.appId,a=i.uniPlatform,s=i.osName,c=a;"app"===a&&(c=s);var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=V;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=r.find((function(e){return e.provider===t&&e.spaceId===n}));return i&&i.config}({provider:t,spaceId:n});if(!u||!u.accessControl||!u.accessControl.enable)return!1;var l=u.accessControl.function||{},f=Object.keys(l);if(0===f.length)return!0;var d=function(e,t){for(var n,r,i,o=0;o<e.length;o++){var a=e[o];a!==t?"*"!==a?a.split(",").map((function(e){return e.trim()})).indexOf(t)>-1&&(r=a):i=a:n=a}return n||r||i}(f,r);if(!d)return!1;if((l[d]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===o&&(e.platform||"").toLowerCase()===c.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(o,", platform: ").concat(c,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),fr(ur.APP_INFO_INVALID)}function xr(e){var t=e.functionName,n=e.result,r=e.logPvd;if($&&this.__dev__.debugLog&&n&&n.requestId){var i=JSON.stringify({spaceId:this.config.spaceId,functionName:t,requestId:n.requestId});console.log("[".concat(r,"-request]").concat(i,"[/").concat(r,"-request]"))}}function _r(e){var t=e.callFunction,n=function(n){var r=this,i=n.name;n.data=vn.call(e,{data:n.data});var o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],a=mr(n),s=br(n),c=a||s;return t.call(this,n).then((function(e){return e.errCode=0,!c&&xr.call(r,{functionName:i,result:e,logPvd:o}),Promise.resolve(e)}),(function(e){return!c&&xr.call(r,{functionName:i,result:e,logPvd:o}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,i=void 0===r?{}:r,o=e.formatter,a=void 0===o?[]:o,s=0;s<a.length;s++){var c=a[s],u=c.rule,l=c.content,f=c.mode,d=n.match(u);if(d){for(var p=l,h=1;h<d.length;h++)p=Cn(p,"{$".concat(h,"}"),d[h]);for(var y in i)p=Cn(p,"{".concat(y,"}"),i[y]);return"replace"===f?p:n+p}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:Sn,extraInfo:{functionName:i}})),Promise.reject(e)}))};e.callFunction=function(t){var r,i,o=e.config,a=o.provider,s=o.spaceId,c=t.name;return t.data=t.data||{},$&&e.__dev__.debugInfo&&!e.__dev__.debugInfo.forceRemote&&ne?(e._callCloudFunction||(e._callCloudFunction=n,e._callLocalFunction=mn),r=mn):r=n,r=r.bind(e),i=br(t)?n.call(e,t):function(e){var t=e.name,n=e.data,r=void 0===n?{}:n;return"mp-weixin"===ee&&"uni-id-co"===t&&"secureNetworkHandshakeByWeixin"===r.method}(t)?r.call(e,t):mr(t)?new pr({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):Sr({provider:a,spaceId:s,functionName:c})?new pr({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i.then((function(e){return"undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e}))}}pr="mp-weixin"!==ee&&"app"!==ee?function(){function e(){throw(0,v.default)(this,e),fr({message:"Platform ".concat(ee," is not supported by secure network")})}return(0,m.default)(e)}():q?"mp-weixin"===ee?yr:vr:function(){function e(){throw(0,v.default)(this,e),fr({message:"Platform ".concat(ee," is not enabled, please check whether secure network module is enabled in your manifest.json")})}return(0,m.default)(e)}();var Cr=Symbol("CLIENT_DB_INTERNAL");function wr(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Cr,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,u.default)(n))return e[n];if(n in e||"string"!=typeof n){var i=e[n];return"function"==typeof i?i.bind(e):i}return t.get(e,n,r)}})}function Pr(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var Lr=["db.Geo","db.command","command.aggregate"];function Tr(e,t){return Lr.indexOf("".concat(e,".").concat(t))>-1}function Ar(e){switch(F(e)){case"array":return e.map((function(e){return Ar(e)}));case"object":return e._internalType===Cr||Object.keys(e).forEach((function(t){e[t]=Ar(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Or(e){return e&&e.content&&e.content.$method}var Yr=function(){function e(t,n,r){(0,v.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,m.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:Ar(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=Or(e),n=Or(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===Or(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=Or(e),n=Or(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return Dr({$method:e,$param:Ar(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();if(r.$db.push({$method:e,$param:Ar(t)}),$){var i=r.$db.find((function(e){return"collection"===e.$method})),o=i&&i.$param;o&&1===o.length&&"string"==typeof i.$param[0]&&i.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:n,command:r})}}]),e}();function Dr(e,t,n){return wr(new Yr(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),Tr(r,t)?Dr({$method:t},e,n):function(){return Dr({$method:t,$param:Ar(Array.from(arguments))},e,n)}}})}function Mr(e){var t=e.path,n=e.method;return function(){function e(){(0,v.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,l.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}var kr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n,i=t.isJQL,o=void 0!==i&&i;(0,v.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=ae("_globalUniCloudDatabaseCallback")),o||(this.auth=Pr(this._authCallBacks)),this._isJQL=o,Object.assign(this,Pr(this._dbCallBacks)),this.env=wr({},{get:function(e,t){return{$env:t}}}),this.Geo=wr({},{get:function(e,t){return Mr({path:["Geo"],method:t})}}),this.serverDate=Mr({path:[],method:"serverDate"}),this.RegExp=Mr({path:[],method:"RegExp"})}return(0,m.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}();function Zr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return wr(new e(t),{get:function(e,t){return Tr("db",t)?Dr({$method:t},null,e):function(){return Dr({$method:t,$param:Ar(Array.from(arguments))},null,e)}}})}var Er=function(e){(0,p.default)(n,e);var t=P(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,i=e.multiCommand,o=e.queryList;function a(e,t){if(i&&o)for(var n=0;n<o.length;n++){var r=o[n];r.udb&&"function"==typeof r.udb.setResult&&(t?r.udb.setResult(t):r.udb.setResult(e.result.dataList[n]))}}var s=this,c=this._isJQL?"databaseForJQL":"database";function u(e){return s._callback("error",[e]),de(pe(c,"fail"),e).then((function(){return de(pe(c,"complete"),e)})).then((function(){return a(null,e),xe(ge.RESPONSE,{type:ve.CLIENT_DB,content:e}),Promise.reject(e)}))}var l=de(pe(c,"invoke")),f=this._uniClient;return l.then((function(){return f.callFunction({name:"DCloud-clientDB",type:N.CLIENT_DB,data:{action:n,command:r,multiCommand:i}})})).then((function(e){var n=e.result,r=n.code,i=n.message,o=n.token,l=n.tokenExpired,f=n.systemInfo,d=void 0===f?[]:f;if(d)for(var p=0;p<d.length;p++){var h=d[p],y=h.level,g=h.message,v=h.detail,m="[System Info]"+g;v&&(m="".concat(m,"\n详细信息:").concat(v)),(console["app"===ee&&"warn"===y?"error":y]||console.log)(m)}if(r)return u(new Le({code:r,message:i,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,o&&l&&(De({token:o,tokenExpired:l}),t._callbackAuth("refreshToken",[{token:o,tokenExpired:l}]),t._callback("refreshToken",[{token:o,tokenExpired:l}]),xe(ge.REFRESH_TOKEN,{token:o,tokenExpired:l}));for(var b=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}],S=function(t){var n=b[t],r=n.prop,i=n.tips;if(r in e.result){var o=e.result[r];Object.defineProperty(e.result,r,{get:function(){return console.warn(i),o}})}},x=0;x<b.length;x++)S(x);return function(e){return de(pe(c,"success"),e).then((function(){return de(pe(c,"complete"),e)})).then((function(){a(e,null);var t=s._parseResult(e);return xe(ge.RESPONSE,{type:ve.CLIENT_DB,content:t}),Promise.resolve(t)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),u(new Le({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}]),n}(kr),Rr="token无效,跳转登录页面",Nr="token过期,跳转登录页面",Ir={TOKEN_INVALID_TOKEN_EXPIRED:Nr,TOKEN_INVALID_INVALID_CLIENTID:Rr,TOKEN_INVALID:Rr,TOKEN_INVALID_WRONG_TOKEN:Rr,TOKEN_INVALID_ANONYMOUS_USER:Rr},Xr={"uni-id-token-expired":Nr,"uni-id-check-token-failed":Rr,"uni-id-token-not-exist":Rr,"uni-id-check-device-feature-failed":Rr};function Jr(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function Fr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(Jr(t,e.path)):!1===e.needLogin&&r.push(Jr(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function Br(e){return e.split("?")[0].replace(/^\//,"")}function Hr(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function jr(){return Br(Hr())}function Gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,r=Br(e);return n.some((function(e){return e.pagePath===r}))}var Qr,Wr=!!b.default.uniIdRouter,Ur=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,i=void 0===r?[]:r,o=e.uniIdRouter,a=void 0===o?{}:o,s=e.tabBar,c=void 0===s?{}:s,u=a.loginPage,f=a.needLogin,d=void 0===f?[]:f,p=a.resToLogin,h=void 0===p||p,y=Fr(n),g=y.needLoginPage,v=y.notNeedLoginPage,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,i=e.pages,o=void 0===i?[]:i,a=Fr(o,r),s=a.needLoginPage,c=a.notNeedLoginPage;t.push.apply(t,(0,l.default)(s)),n.push.apply(n,(0,l.default)(c))})),{needLoginPage:t,notNeedLoginPage:n}}(i),S=m.needLoginPage,x=m.notNeedLoginPage;return{loginPage:u,routerNeedLogin:d,resToLogin:h,needLoginPage:[].concat((0,l.default)(g),(0,l.default)(S)),notNeedLoginPage:[].concat((0,l.default)(v),(0,l.default)(x)),loginPageInTabBar:Gr(u,c)}}(),Kr=Ur.loginPage,$r=Ur.routerNeedLogin,zr=Ur.resToLogin,qr=Ur.needLoginPage,Vr=Ur.notNeedLoginPage,ei=Ur.loginPageInTabBar;if(qr.indexOf(Kr)>-1)throw new Error("Login page [".concat(Kr,'] should not be "needLogin", please check your pages.json'));function ti(e){var t=jr();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,c.default)(n,2),i=r[0],o=r[1],a=i.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var u=0;u<a.length;u++){var l=a[u];".."===l?s.pop():"."!==l&&s.push(l)}return""===s[0]&&s.shift(),"/"+s.join("/")+(o?"?"+o:"")}function ni(e){var t=Br(ti(e));return!(Vr.indexOf(t)>-1)&&(qr.indexOf(t)>-1||$r.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function ri(e){var t=e.redirect,n=Br(t),r=Br(Kr);return jr()!==r&&n!==r}function ii(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&ri({redirect:n})){var i=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Kr,n);ei?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var o={navigateTo:r.navigateTo,redirectTo:r.redirectTo,switchTab:r.switchTab,reLaunch:r.reLaunch};setTimeout((function(){o[t]({url:i})}),0)}}function oi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=Ye(),n=t.token,r=t.tokenExpired;if(n){if(r<Date.now()){var i="uni-id-token-expired";e={errCode:i,errMsg:Xr[i]}}}else{var o="uni-id-check-token-failed";e={errCode:o,errMsg:Xr[o]}}return e}();if(ni(t)&&r){if(r.uniIdRedirectUrl=t,me(ge.NEED_LOGIN).length>0)return setTimeout((function(){xe(ge.NEED_LOGIN,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function ai(){!function(){var e=Hr(),t=oi({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&ii({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];r.addInterceptor(n,{invoke:function(e){var t=oi({url:e.url}),r=t.abortLoginPageJump,i=t.autoToLoginPage;return r?e:i?(ii({api:n,redirect:ti(e.url)}),!1):e}})},n=0;n<e.length;n++)t(n)}function si(){this.onResponse((function(e){var t=e.type,n=e.content,r=!1;switch(t){case"cloudobject":r=function(e){if("object"!=(0,u.default)(e))return!1;var t=e||{},n=t.errCode;return n in Xr}(n);break;case"clientdb":r=function(e){if("object"!=(0,u.default)(e))return!1;var t=e||{},n=t.errCode;return n in Ir}(n)}r&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=me(ge.NEED_LOGIN);we().then((function(){var n=Hr();if(n&&ri({redirect:n}))return t.length>0?xe(ge.NEED_LOGIN,Object.assign({uniIdRedirectUrl:n},e)):void(Kr&&ii({api:"navigateTo",redirect:n}))}))}(n)}))}function ci(e){!function(e){e.onResponse=function(e){be(ge.RESPONSE,e)},e.offResponse=function(e){Se(ge.RESPONSE,e)}}(e),function(e){e.onNeedLogin=function(e){be(ge.NEED_LOGIN,e)},e.offNeedLogin=function(e){Se(ge.NEED_LOGIN,e)},Wr&&(ae(Pn).needLoginInit||(ae(Pn).needLoginInit=!0,we().then((function(){ai.call(e)})),zr&&si.call(e)))}(e),function(e){e.onRefreshToken=function(e){be(ge.REFRESH_TOKEN,e)},e.offRefreshToken=function(e){Se(ge.REFRESH_TOKEN,e)}}(e)}var ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",li=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function fi(){var e,t,n=Ye().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(Qr(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Qr="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!li.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",o=0;o<e.length;)t=ui.indexOf(e.charAt(o++))<<18|ui.indexOf(e.charAt(o++))<<12|(n=ui.indexOf(e.charAt(o++)))<<6|(r=ui.indexOf(e.charAt(o++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var di=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,r){var i=r.onChooseFile,o=r.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var o=t.tempFiles,a=o.length,s=0;return new Promise((function(n){for(;s<r;)c();function c(){var r=s++;if(r>=a)!o.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var u=o[r];e.uploadFile({provider:u.provider,filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=u,e.tempFilePath=u.path,i&&i(e)}}).then((function(e){u.url=e.fileID,r<a&&c()})).catch((function(e){u.errMsg=e.errMsg||e.message,r<a&&c()}))}}}))}(e,t,5,o)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,n=e.sizeType,i=e.sourceType,s=void 0===i?["album","camera"]:i,c=e.extension;return new Promise((function(e,i){r.chooseImage({count:t,sizeType:n,sourceType:s,extension:c,success:function(t){e(a(t,"image"))},fail:function(e){i({errMsg:e.errMsg.replace("chooseImage:fail",o)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,n=e.compressed,i=e.maxDuration,s=e.sourceType,c=void 0===s?["album","camera"]:s,u=e.extension;return new Promise((function(e,s){r.chooseVideo({camera:t,compressed:n,maxDuration:i,sourceType:c,extension:u,success:function(t){var n=t.tempFilePath,r=t.duration,i=t.size,o=t.height,s=t.width;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",o)})}})}))}(t),t):s(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,s){var c=r.chooseFile;if("undefined"!=typeof i&&"function"==typeof i.chooseMessageFile&&(c=i.chooseMessageFile),"function"!=typeof c)return s({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});c({type:"all",count:t,extension:n,success:function(t){e(a(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",o)})}})}))}(t),t)}}})),pi=T(di),hi={auto:"auto",onready:"onready",manual:"manual"};function yi(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if(e.loadtime!==hi.manual){for(var r=!1,i=[],o=2;o<t.length;o++)t[o]!==n[o]&&(i.push(t[o]),r=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(r,i)}}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,i=t.success,o=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,o=n.data,a=n.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=o.length<e.pageSize;var s=r?o.length?o[0]:void 0:o;e.mixinDatacomResData=s,i&&i(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,e.mixinDatacomError=t,o&&o(t)})))},mixinDatacomGet:function(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r=r||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var i=r.action||this.action;i&&(n=n.action(i));var o=r.collection||this.collection;n=Array.isArray(o)?(t=n).collection.apply(t,(0,l.default)(o)):n.collection(o);var a=r.where||this.where;a&&Object.keys(a).length&&(n=n.where(a));var s=r.field||this.field;s&&(n=n.field(s));var c=r.foreignKey||this.foreignKey;c&&(n=n.foreignKey(c));var u=r.groupby||this.groupby;u&&(n=n.groupBy(u));var f=r.groupField||this.groupField;f&&(n=n.groupField(f)),!0===(void 0!==r.distinct?r.distinct:this.distinct)&&(n=n.distinct());var d=r.orderby||this.orderby;d&&(n=n.orderBy(d));var p=void 0!==r.pageCurrent?r.pageCurrent:this.mixinDatacomPage.current,h=void 0!==r.pageSize?r.pageSize:this.mixinDatacomPage.size,y=void 0!==r.getcount?r.getcount:this.getcount,g=void 0!==r.gettree?r.gettree:this.gettree,v=void 0!==r.gettreepath?r.gettreepath:this.gettreepath,m={getCount:y},b={limitLevel:void 0!==r.limitlevel?r.limitlevel:this.limitlevel,startWith:void 0!==r.startwith?r.startwith:this.startwith};return g&&(m.getTree=b),v&&(m.getTreePath=b),n=n.skip(h*(p-1)).limit(h).get(m),n}}}}function gi(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,u.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var i=n,o=i.customUI,s=i.loadingOptions,c=i.errorOptions,l=i.parseSystemError,d=!o;return new Proxy({},{get:function(i,o){switch(o){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,f.default)(a.default.mark((function e(){var i,o,s,c,u,l,f=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=f.length,o=new Array(i),s=0;s<i;s++)o[s]=f[s];return c=r?r({params:o}):{},e.prev=2,e.next=5,de(pe(n,"invoke"),w({},c));case 5:return e.next=7,t.apply(void 0,o);case 7:return u=e.sent,e.next=10,de(pe(n,"success"),w(w({},c),{},{result:u}));case 10:return e.abrupt("return",u);case 13:return e.prev=13,e.t0=e["catch"](2),l=e.t0,e.next=18,de(pe(n,"fail"),w(w({},c),{},{error:l}));case 18:throw l;case 19:return e.prev=19,e.next=22,de(pe(n,"complete"),w(w({},c),{},l?{error:l}:{result:u}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var i=(0,f.default)(a.default.mark((function i(){var h,y,g,v,m,b,S,x,_,C,P,L,T,A,O,Y=arguments;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:for(d&&r.showLoading({title:s.title,mask:s.mask}),y=Y.length,g=new Array(y),v=0;v<y;v++)g[v]=Y[v];return m={name:t,type:N.OBJECT,data:{method:o,params:g}},"object"==(0,u.default)(n.secretMethods)&&function(e,t){var n=t.data.method,r=e.secretMethods||{},i=r[n]||r["*"];i&&(t.secretType=i)}(n,m),b=!1,i.prev=5,i.next=8,e.callFunction(m);case 8:h=i.sent,i.next=14;break;case 11:i.prev=11,i.t0=i["catch"](5),b=!0,h={result:new Le(i.t0)};case 14:if(S=h.result||{},x=S.errSubject,_=S.errCode,C=S.errMsg,P=S.newToken,d&&r.hideLoading(),P&&P.token&&P.tokenExpired&&(De(P),xe(ge.REFRESH_TOKEN,w({},P))),!_){i.next=39;break}if(L=C,!b||!l){i.next=24;break}return i.next=20,l({objectName:t,methodName:o,params:g,errSubject:x,errCode:_,errMsg:C});case 20:if(i.t1=i.sent.errMsg,i.t1){i.next=23;break}i.t1=C;case 23:L=i.t1;case 24:if(!d){i.next=37;break}if("toast"!==c.type){i.next=29;break}r.showToast({title:L,icon:"none"}),i.next=37;break;case 29:if("modal"===c.type){i.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(c.type));case 31:return i.next=33,(0,f.default)(a.default.mark((function e(){var t,n,i,o,s,c,u=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{},n=t.title,i=t.content,o=t.showCancel,s=t.cancelText,c=t.confirmText,e.abrupt("return",new Promise((function(e,t){r.showModal({title:n,content:i,showCancel:o,cancelText:s,confirmText:c,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:L,showCancel:c.retry,cancelText:"取消",confirmText:c.retry?"重试":"确定"});case 33:if(T=i.sent,A=T.confirm,!c.retry||!A){i.next=37;break}return i.abrupt("return",p.apply(void 0,g));case 37:throw O=new Le({subject:x,code:_,message:C,requestId:h.requestId}),O.detail=h.result,xe(ge.RESPONSE,{type:ve.CLOUD_OBJECT,content:O}),O;case 39:return i.abrupt("return",(xe(ge.RESPONSE,{type:ve.CLOUD_OBJECT,content:h.result}),h.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function p(){return i.apply(this,arguments)}return p}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:o,params:n}}})}})}}function vi(e){return ae(Ln.replace("{spaceId}",e.config.spaceId))}function mi(){return bi.apply(this,arguments)}function bi(){return bi=(0,f.default)(a.default.mark((function e(){var t,n,i,o,s,c,u,l=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.openid,i=t.callLoginByWeixin,o=void 0!==i&&i,s=vi(this),"mp-weixin"===ee){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(ee,"`"));case 4:if(!n||!o){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){r.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return c=e.sent,u=this.importObject("uni-id-co",{customUI:!0}),e.next=14,u.secureNetworkHandshakeByWeixin({code:c,callLoginByWeixin:o});case 14:return s.mpWeixinCode=c,e.abrupt("return",{code:c});case 16:case"end":return e.stop()}}),e,this)}))),bi.apply(this,arguments)}function Si(e){return xi.apply(this,arguments)}function xi(){return xi=(0,f.default)(a.default.mark((function e(t){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=vi(this),e.abrupt("return",(n.initPromise||(n.initPromise=mi.call(this,t).then((function(e){return e})).catch((function(e){throw delete n.initPromise,e}))),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),xi.apply(this,arguments)}function _i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r;return Si.call(e,{openid:n,callLoginByWeixin:i})}}function Ci(e){!function(e){Ze=e}(e)}function wi(e){var t={getSystemInfo:r.getSystemInfo,getPushClientId:r.getPushClientId};return function(n){return new Promise((function(r,i){t[e](w(w({},n),{},{success:function(e){r(e)},fail:function(e){i(e)}}))}))}}var Pi=function(e){(0,p.default)(n,e);var t=P(n);function n(){var e;return(0,v.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([wi("getSystemInfo")(),wi("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,c.default)(t,2),r=n[0];r=void 0===r?{}:r;var i=r.appId,o=n[1];o=void 0===o?{}:o;var a=o.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!a)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=a,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,r=t.messageId,i=t.message;this._payloadQueue.push({action:n,messageId:r,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){r.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){r.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(U);function Li(e){return Ti.apply(this,arguments)}function Ti(){return Ti=(0,f.default)(a.default.mark((function e(t){var n,r,i,o,s,c,u,l,f,d,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if($){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if("app"===ee&&(n=Me(),r=n.osName,i=n.osVersion,"ios"===r&&function(e){if(!e||"string"!=typeof e)return 0;var t=e.match(/^(\d+)./);return t&&t[1]?parseInt(t[1]):0}(i)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)")),o=t.__dev__,o.debugInfo){e.next=6;break}return e.abrupt("return");case 6:return s=o.debugInfo,c=s.address,u=s.servePort,e.next=11,tn(c,u);case 11:if(l=e.sent,f=l.address,!f){e.next=15;break}return e.abrupt("return",(o.localAddress=f,void(o.localPort=u)));case 15:if(d=console["app"===ee?"error":"warn"],p="","remote"===o.debugInfo.initialLaunchType?(o.debugInfo.forceRemote=!0,p="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。"):p="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。",p+="\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数","web"===ee&&(p+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===ee.indexOf("mp-")&&(p+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),o.debugInfo.forceRemote){e.next=19;break}throw new Error(p);case 19:d(p);case 20:case"end":return e.stop()}}),e)}))),Ti.apply(this,arguments)}function Ai(e){e._initPromiseHub||(e._initPromiseHub=new W({createPromise:function(){var t,n=Promise.resolve();t=1,n=new Promise((function(e){setTimeout((function(){e()}),t)}));var r=e.auth();return n.then((function(){return r.getLoginState()})).then((function(e){return e?Promise.resolve():r.signInAnonymously()}))}}))}var Oi={tcb:qt,tencent:qt,aliyun:Xe,private:an,dcloud:an,alipay:gn},Yi=new(function(){function e(){(0,v.default)(this,e)}return(0,m.default)(e,[{key:"init",value:function(e){var t={},n=Oi[e.provider];if(!n)throw new Error("未提供正确的provider参数");return t=n.init(e),$&&function(e){if($){var t={};e.__dev__=t,t.debugLog=$&&("web"===ee&&navigator.userAgent.indexOf("HBuilderX")>0||"app"===ee||"mp-harmony"===ee);var n=te;n&&!n.code&&(t.debugInfo=n);var r=new W({createPromise:function(){return Li(e)}});t.initLocalNetwork=function(){return r.exec()}}}(t),Ai(t),_r(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var n=Zr(Er,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=Zr(Er,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=fi,e.chooseAndUploadFile=pi.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return yi(e)}}),e.SSEChannel=Pi,e.initSecureNetworkByWeixin=_i(e),e.setCustomClientInfo=Ci,e.importObject=gi(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,i=!1;if("callFunction"===t){var o=n&&n.type||N.DEFAULT;i=o!==N.DEFAULT}var a="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};var c=Pe(n),u=c.success,l=c.fail,f=c.complete,d=s.then((function(){return i?Promise.resolve():de(pe(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return i?Promise.resolve(e):de(pe(t,"success"),e).then((function(){return de(pe(t,"complete"),e)})).then((function(){return a&&xe(ge.RESPONSE,{type:ve.CLOUD_FUNCTION,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):de(pe(t,"fail"),e).then((function(){return de(pe(t,"complete"),e)})).then((function(){return xe(ge.RESPONSE,{type:ve.CLOUD_FUNCTION,content:e}),Promise.reject(e)}))}));if(!(u||l||f))return d;d.then((function(e){u&&u(e),f&&f(e),a&&xe(ge.RESPONSE,{type:ve.CLOUD_FUNCTION,content:e})}),(function(e){l&&l(e),f&&f(e),a&&xe(ge.RESPONSE,{type:ve.CLOUD_FUNCTION,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());t.uniCloud=Yi,function(){var e=ne,n={};if(e&&1===e.length)n=e[0],t.uniCloud=Yi=Yi.init(n),Yi._isDefault=!0;else{var i,o=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];i=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":re?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",o.forEach((function(e){Yi[e]=function(){return console.error(i),Promise.reject(new Le({code:"SYS_ERR",message:i}))}}))}if(Object.assign(Yi,{get mixinDatacom(){return yi(Yi)}}),ci(Yi),Yi.addInterceptor=le,Yi.removeInterceptor=fe,Yi.interceptObject=he,$&&"web"===ee&&(window.uniCloud=Yi),"app"===ee&&(r.__uniCloud=Yi),"app"===ee||"web"===ee){var a=se();a.uniCloud=Yi,a.UniCloudError=Le}}();var Di=Yi;t.default=Di}).call(this,n(3),n(2)["default"],n(1)["default"])},549:function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},550:function(e,t,n){var r=n(16);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},551:function(e,t,n){var r=n(13)["default"],i=n(549);function o(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},552:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},553:function(e,t,n){var r=n(552),i=n(16),o=n(554),a=n(15);function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},554:function(e,t){function n(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},555:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={pages:[{path:"pages/highseas/highseas",style:{navigationStyle:"custom",navigationBarTitleText:""}},{path:"pages/message/message",style:{navigationBarTitleText:"消息"}},{path:"pages/index/index",style:{navigationBarTitleText:"首页"}},{path:"pages/my/my",style:{navigationBarTitleText:"个人中心"}},{path:"pages/projectAdmin/projectAdmin",style:{navigationBarTitleText:"项目工作台"}},{path:"pages/login/login",style:{navigationBarTitleText:"登录"}},{path:"pages/city/city",style:{navigationBarTitleText:"选择城市"}},{path:"pages/searchlist/searchlist",style:{navigationBarTitleText:"搜索列表"}},{path:"pages/project/project",style:{navigationBarTitleText:"项目详情"}},{path:"pages/house/house",style:{navigationBarTitleText:"房源详情"}},{path:"pages/visitor/visitor",style:{navigationBarTitleText:"访客记录"}},{path:"pages/reservation/reservation",style:{navigationBarTitleText:"预约看房"}},{path:"pages/chat/chat",style:{navigationBarTitleText:"会话"}},{path:"pages/person/person",style:{navigationBarTitleText:"房东信息"}},{path:"pages/search/search",style:{navigationBarTitleText:"搜索"}},{path:"pages/pdf/pdf",style:{navigationBarTitleText:""}},{path:"pages/sign/sign",style:{navigationBarTitleText:"签字"}},{path:"pages/webview/webview",style:{navigationBarTitleText:"文档"}},{path:"pages/requestSeal/requestSeal",style:{navigationBarTitleText:"申请印章"}},{path:"pages/messageSystem/messageSystem",style:{navigationBarTitleText:"系统通知"}},{path:"pages/messageList/messageList",style:{navigationBarTitleText:"通知列表"}},{path:"pages/messageDetail/messageDetail",style:{navigationBarTitleText:"通知详情"}},{path:"pages/dataOrder/dataOrder",style:{navigationBarTitleText:"合同工单"}},{path:"pages/file/file",style:{navigationBarTitleText:""}}],subPackages:[{root:"pageMy",pages:[{path:"myDetail/myDetail",style:{navigationBarTitleText:"个人信息"}},{path:"myHouse/myHouse",style:{navigationBarTitleText:"我的房源"}},{path:"fans/fans",style:{navigationBarTitleText:"粉丝列表"}},{path:"attention/attention",style:{navigationBarTitleText:"关注列表"}},{path:"collect/collect",style:{navigationBarTitleText:"收藏列表"}},{path:"clientDetail/clientDetail",style:{navigationBarTitleText:"客户详情"}},{path:"organization/organization",style:{navigationBarTitleText:"我的公司"}},{path:"client/client",style:{navigationBarTitleText:"我的客户"}},{path:"myReservation/myReservation",style:{navigationBarTitleText:"我的预约"}},{path:"download/download",style:{navigationBarTitleText:"我的下载"}},{path:"dataCenter/dataCenter",style:{navigationBarTitleText:"数据中心"}}]},{root:"pageIndex",pages:[{path:"projectList/projectList",style:{navigationBarTitleText:"项目列表"}},{path:"contract/contract",style:{navigationBarTitleText:""}},{path:"contractDetail/contractDetail",style:{navigationBarTitleText:"合同详情"}},{path:"bill/bill",style:{navigationBarTitleText:"账单列表"}},{path:"billDetail/billDetail",style:{navigationBarTitleText:"账单详情"}},{path:"invoice/invoice",style:{navigationBarTitleText:"发票列表"}},{path:"invoiceDetail/invoiceDetail",style:{navigationBarTitleText:"发票详情"}},{path:"billRecord/billRecord",style:{navigationBarTitleText:"账单付款"}},{path:"billInvoice/billInvoice",style:{navigationBarTitleText:"账单发票"}},{path:"order/order",style:{navigationBarTitleText:""}},{path:"orderHandle/orderHandle",style:{navigationBarTitleText:"处理工单"}},{path:"orderDetail/orderDetail",style:{navigationBarTitleText:"工单详情"}},{path:"selectUser/selectUser",style:{navigationBarTitleText:"选择成员"}},{path:"deviceList/deviceList",style:{navigationBarTitleText:"物联设备"}},{path:"monitor/monitor",style:{navigationBarTitleText:"监控","mp-weixin":{usingComponents:{ezplayer:"plugin://ezplayer/ezplayer"}}}},{path:"monitorList/monitorList",style:{navigationBarTitleText:"监控列表"}},{path:"deviceDetail/deviceDetail",style:{navigationBarTitleText:""}},{path:"bim/bim",style:{navigationBarTitleText:"模型列表"}},{path:"bimShow/bimShow",style:{navigationBarTitleText:""}}]}],tabBar:{color:"#8c8c8c",selectedColor:"#08979c",list:[{pagePath:"pages/index/index",iconPath:"static/image/tabbar/index.png",selectedIconPath:"static/image/tabbar/index-active.png",text:"首页"},{pagePath:"pages/message/message",iconPath:"static/image/tabbar/chat.png",selectedIconPath:"static/image/tabbar/chat-active.png",text:"消息"},{pagePath:"pages/highseas/highseas",iconPath:"static/image/tabbar/highseas.png",selectedIconPath:"static/image/tabbar/highseas-active.png",text:"workark"},{pagePath:"pages/projectAdmin/projectAdmin",iconPath:"static/image/tabbar/data.png",selectedIconPath:"static/image/tabbar/data-active.png",text:"工作台"},{pagePath:"pages/my/my",iconPath:"static/image/tabbar/my.png",selectedIconPath:"static/image/tabbar/my-active.png",text:"我的"}]},globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"有极智慧园区",navigationBarBackgroundColor:"#ffffff",backgroundColor:"#f2f2f2"}};t.default=r},556:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={appid:"__UNI__FECBE11"};t.default=r},557:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(5)),o=r(n(13)),a={version:"v2.5.0-20230101",yAxisWidth:15,xAxisHeight:22,padding:[10,10,10,10],rotate:!1,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,titleFontSize:20,subtitleFontSize:15,radarLabelTextMargin:13},s=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!n||n.length<=0)return e;function i(e,t){for(var n in t)e[n]=e[n]&&"[object Object]"===e[n].toString()?i(e[n],t[n]):e[n]=t[n];return e}return n.forEach((function(t){e=i(e,t)})),e},c={toFixed:function(e,t){return t=t||2,this.isFloat(e)&&(e=e.toFixed(t)),e},isFloat:function(e){return e%1!==0},approximatelyEqual:function(e,t){return Math.abs(e-t)<1e-10},isSameSign:function(e,t){return Math.abs(e)===e&&Math.abs(t)===t||Math.abs(e)!==e&&Math.abs(t)!==t},isSameXCoordinateArea:function(e,t){return this.isSameSign(e.x,t.x)},isCollision:function(e,t){e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height,t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height;var n=t.start.x>e.end.x||t.end.x<e.start.x||t.end.y>e.start.y||t.start.y<e.end.y;return!n}};function u(e,t){var n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=e.replace(n,(function(e,t,n,r){return t+t+n+n+r+r})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),o=parseInt(i[1],16),a=parseInt(i[2],16),s=parseInt(i[3],16);return"rgba("+o+","+a+","+s+","+t+")"}function l(e,t,n){if(isNaN(e))throw new Error("[uCharts] series数据需为Number格式");n=n||10,t=t||"upper";var r=1;while(n<1)n*=10,r*=10;e="upper"===t?Math.ceil(e*r):Math.floor(e*r);while(e%n!==0)if("upper"===t){if(e==e+1)break;e++}else e--;return e/r}function f(e,t,n,r){for(var i=[],o=0;o<e.length;o++){for(var a={data:[],name:t[o],color:n[o]},s=0,c=r.length;s<c;s++)if(s<e[o])a.data.push(null);else{for(var u=0,l=0;l<e[o];l++)u+=r[s-l][1];a.data.push(+(u/e[o]).toFixed(3))}i.push(a)}return i}function d(e,t,n,r,i){var o=i.width-i.area[1]-i.area[3],a=n.eachSpacing*(i.chartData.xAxisData.xAxisPoints.length-1);"mount"==i.type&&i.extra&&i.extra.mount&&i.extra.mount.widthRatio&&i.extra.mount.widthRatio>1&&(i.extra.mount.widthRatio>2&&(i.extra.mount.widthRatio=2),a+=(i.extra.mount.widthRatio-1)*n.eachSpacing);var s=t;return t>=0?(s=0,e.uevent.trigger("scrollLeft"),e.scrollOption.position="left",i.xAxis.scrollPosition="left"):Math.abs(t)>=a-o?(s=o-a,e.uevent.trigger("scrollRight"),e.scrollOption.position="right",i.xAxis.scrollPosition="right"):(e.scrollOption.position=t,i.xAxis.scrollPosition=t),s}function p(e,t,n){function r(e){while(e<0)e+=2*Math.PI;while(e>2*Math.PI)e-=2*Math.PI;return e}return e=r(e),t=r(t),n=r(n),t>n&&(n+=2*Math.PI,e<t&&(e+=2*Math.PI)),e>=t&&e<=n}function h(e,t){function n(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].y>=Math.max(e[t-1].y,e[t+1].y)||e[t].y<=Math.min(e[t-1].y,e[t+1].y))}function r(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].x>=Math.max(e[t-1].x,e[t+1].x)||e[t].x<=Math.min(e[t-1].x,e[t+1].x))}var i=.2,o=.2,a=null,s=null,c=null,u=null;if(t<1?(a=e[0].x+(e[1].x-e[0].x)*i,s=e[0].y+(e[1].y-e[0].y)*i):(a=e[t].x+(e[t+1].x-e[t-1].x)*i,s=e[t].y+(e[t+1].y-e[t-1].y)*i),t>e.length-3){var l=e.length-1;c=e[l].x-(e[l].x-e[l-1].x)*o,u=e[l].y-(e[l].y-e[l-1].y)*o}else c=e[t+1].x-(e[t+2].x-e[t].x)*o,u=e[t+1].y-(e[t+2].y-e[t].y)*o;return n(e,t+1)&&(u=e[t+1].y),n(e,t)&&(s=e[t].y),r(e,t+1)&&(c=e[t+1].x),r(e,t)&&(a=e[t].x),(s>=Math.max(e[t].y,e[t+1].y)||s<=Math.min(e[t].y,e[t+1].y))&&(s=e[t].y),(u>=Math.max(e[t].y,e[t+1].y)||u<=Math.min(e[t].y,e[t+1].y))&&(u=e[t+1].y),(a>=Math.max(e[t].x,e[t+1].x)||a<=Math.min(e[t].x,e[t+1].x))&&(a=e[t].x),(c>=Math.max(e[t].x,e[t+1].x)||c<=Math.min(e[t].x,e[t+1].x))&&(c=e[t+1].x),{ctrA:{x:a,y:s},ctrB:{x:c,y:u}}}function y(e,t,n){return{x:n.x+e,y:n.y-t}}function g(e,t){if(t)while(c.isCollision(e,t))e.start.x>0?e.start.y--:e.start.x<0||e.start.y>0?e.start.y++:e.start.y--;return e}function v(e,t,n){var r=[];if(e.length>0&&e[0].data.constructor.toString().indexOf("Array")>-1){t._pieSeries_=e;for(var i=e[0].data,o=0;o<i.length;o++)i[o].formatter=e[0].formatter,i[o].data=i[o].value,r.push(i[o]);t.series=r}else r=e;return r}function m(e,t,n){for(var r=0,i=0;i<e.length;i++){var o=e[i];if(o.color||(o.color=n.color[r],r=(r+1)%n.color.length),o.linearIndex||(o.linearIndex=i),o.index||(o.index=0),o.type||(o.type=t.type),"undefined"==typeof o.show&&(o.show=!0),o.type||(o.type=t.type),o.pointShape||(o.pointShape="circle"),!o.legendShape)switch(o.type){case"line":o.legendShape="line";break;case"column":case"bar":o.legendShape="rect";break;case"area":case"mount":o.legendShape="triangle";break;default:o.legendShape="circle"}}return e}function b(e,t,n,r){var i=t||[];if("custom"==e&&0==i.length&&(i=r.linearColor),"custom"==e&&i.length<n.length)for(var o=n.length-i.length,a=0;a<o;a++)i.push(r.linearColor[(a+1)%r.linearColor.length]);return i}function S(e,t){var n=0,r=t-e;return n=r>=1e4?1e3:r>=1e3?100:r>=100?10:r>=10?5:r>=1?1:r>=.1?.1:r>=.01?.01:r>=.001?.001:r>=1e-4?1e-4:r>=1e-5?1e-5:1e-6,{minRange:l(e,"lower",n),maxRange:l(t,"upper",n)}}function x(e,t,n){var r=0;if(e=String(e),!1!==n&&void 0!==n&&n.setFontSize&&n.measureText)return n.setFontSize(t),n.measureText(e).width;e=e.split("");for(var i=0;i<e.length;i++){var o=e[i];/[a-zA-Z]/.test(o)?r+=7:/[0-9]/.test(o)?r+=5.5:/\./.test(o)?r+=2.7:/-/.test(o)?r+=3.25:/:/.test(o)?r+=2.5:/[\u4e00-\u9fa5]/.test(o)?r+=10:/\(|\)/.test(o)?r+=3.73:/\s/.test(o)?r+=2.5:/%/.test(o)?r+=8:r+=10}return r*t/10}function _(e){return e.reduce((function(e,t){return(e.data?e.data:e).concat(t.data)}),[])}function C(e,t){for(var n=new Array(t),r=0;r<n.length;r++)n[r]=0;for(var i=0;i<e.length;i++)for(r=0;r<n.length;r++)n[r]+=e[i].data[r];return e.reduce((function(e,t){return(e.data?e.data:e).concat(t.data).concat(n)}),[])}function w(e,t,n){var r,i;return e.clientX?t.rotate?(i=t.height-e.clientX*t.pix,r=(e.pageY-n.currentTarget.offsetTop-t.height/t.pix/2*(t.pix-1))*t.pix):(r=e.clientX*t.pix,i=(e.pageY-n.currentTarget.offsetTop-t.height/t.pix/2*(t.pix-1))*t.pix):t.rotate?(i=t.height-e.x*t.pix,r=e.y*t.pix):(r=e.x*t.pix,i=e.y*t.pix),{x:r,y:i}}function P(e,t,n){var r=[],i=[],o=t.constructor.toString().indexOf("Array")>-1;if(o)for(var a=D(e),s=0;s<n.length;s++)i.push(a[n[s]]);else i=e;for(var c=0;c<i.length;c++){var u=i[c],l=-1;if(l=o?t[c]:t,null!==u.data[l]&&"undefined"!==typeof u.data[l]&&u.show){var f={};f.color=u.color,f.type=u.type,f.style=u.style,f.pointShape=u.pointShape,f.disableLegend=u.disableLegend,f.legendShape=u.legendShape,f.name=u.name,f.show=u.show,f.data=u.formatter?u.formatter(u.data[l]):u.data[l],r.push(f)}}return r}function L(e,t,n){var r=e.map((function(e){return x(e,t,n)}));return Math.max.apply(null,r)}function T(e){for(var t=2*Math.PI/e,n=[],r=0;r<e;r++)n.push(t*r);return n.map((function(e){return-1*e+Math.PI/2}))}function A(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=t.chartData.calPoints?t.chartData.calPoints:[],s={};if(r.length>0){for(var c=[],u=0;u<r.length;u++)c.push(a[r[u]]);s=c[0][n[0]]}else for(var l=0;l<a.length;l++)if(a[l][n]){s=a[l][n];break}var f=e.map((function(e){var r=null;return t.categories&&t.categories.length>0&&(r=i[n]),{text:o.formatter?o.formatter(e,r,n,t):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}})),d={x:Math.round(s.x),y:Math.round(s.y)};return{textList:f,offset:d}}function O(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.chartData.xAxisPoints[n]+t.chartData.eachSpacing/2,a=e.map((function(e){return{text:i.formatter?i.formatter(e,r[n],n,t):e.name+": "+e.data,color:e.color,disableLegend:!!e.disableLegend,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}}));a=a.filter((function(e){if(!0!==e.disableLegend)return e}));var s={x:Math.round(o),y:0};return{textList:a,offset:s}}function Y(e,t,n,r,i,o){var a=n.chartData.calPoints,s=o.color.upFill,c=o.color.downFill,u=[s,s,c,s],l=[];t.map((function(t){0==r?t.data[1]-t.data[0]<0?u[1]=c:u[1]=s:(t.data[0]<e[r-1][1]&&(u[0]=c),t.data[1]<t.data[0]&&(u[1]=c),t.data[2]>e[r-1][1]&&(u[2]=s),t.data[3]<e[r-1][1]&&(u[3]=c));var i={text:"开盘:"+t.data[0],color:u[0],legendShape:"auto"==n.extra.tooltip.legendShape?t.legendShape:n.extra.tooltip.legendShape},o={text:"收盘:"+t.data[1],color:u[1],legendShape:"auto"==n.extra.tooltip.legendShape?t.legendShape:n.extra.tooltip.legendShape},a={text:"最低:"+t.data[2],color:u[2],legendShape:"auto"==n.extra.tooltip.legendShape?t.legendShape:n.extra.tooltip.legendShape},f={text:"最高:"+t.data[3],color:u[3],legendShape:"auto"==n.extra.tooltip.legendShape?t.legendShape:n.extra.tooltip.legendShape};l.push(i,o,a,f)}));for(var f=[],d={x:0,y:0},p=0;p<a.length;p++){var h=a[p];"undefined"!==typeof h[r]&&null!==h[r]&&f.push(h[r])}return d.x=Math.round(f[0][0].x),{textList:l,offset:d}}function D(e){for(var t=[],n=0;n<e.length;n++)1==e[n].show&&t.push(e[n]);return t}function M(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},a=n.chartData.eachSpacing/2,s=[];if(t&&t.length>0){if(n.categories){for(var c=1;c<n.chartData.xAxisPoints.length;c++)s.push(n.chartData.xAxisPoints[c]-a);"line"!=n.type&&"area"!=n.type||"justify"!=n.xAxis.boundaryGap||(s=n.chartData.xAxisPoints)}else a=0;if(R(e,n,r))if(n.categories)s.forEach((function(t,n){e.x+i+a>t&&(o.index=n)}));else{for(var u=Array(t.length),l=0;l<t.length;l++){u[l]=Array(t[l].length);for(var f=0;f<t[l].length;f++)u[l][f]=Math.abs(t[l][f].x-e.x)}for(var d=Array(u.length),p=Array(u.length),h=0;h<u.length;h++)d[h]=Math.min.apply(null,u[h]),p[h]=u[h].indexOf(d[h]);var y=Math.min.apply(null,d);o.index=[];for(var g=0;g<d.length;g++)d[g]==y&&(o.group.push(g),o.index.push(p[g]))}}return o}function k(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},a=n.chartData.eachSpacing/2,s=n.chartData.yAxisPoints;return t&&t.length>0&&R(e,n,r)&&s.forEach((function(t,n){e.y+i+a>t&&(o.index=n)})),o}function Z(e,t,n){var r=-1,i=0;if(E(e,t.area)){for(var o=t.points,a=-1,s=0,c=o.length;s<c;s++)for(var u=o[s],l=0;l<u.length;l++){a+=1;var f=u[l]["area"];if(f&&e.x>f[0]-i&&e.x<f[2]+i&&e.y>f[1]-i&&e.y<f[3]+i){r=a;break}}return r}return r}function E(e,t){return e.x>t.start.x&&e.x<t.end.x&&e.y>t.start.y&&e.y<t.end.y}function R(e,t,n){return e.x<=t.width-t.area[1]+10&&e.x>=t.area[3]-10&&e.y>=t.area[0]&&e.y<=t.height-t.area[2]}function N(e,t,n){var r=2*Math.PI/n,i=-1;if(H(e,t.center,t.radius)){var o=function(e){return e<0&&(e+=2*Math.PI),e>2*Math.PI&&(e-=2*Math.PI),e},a=Math.atan2(t.center.y-e.y,e.x-t.center.x);a*=-1,a<0&&(a+=2*Math.PI);var s=t.angleList.map((function(e){return e=o(-1*e),e}));s.forEach((function(e,t){var n=o(e-r/2),s=o(e+r/2);s<n&&(s+=2*Math.PI),(a>=n&&a<=s||a+2*Math.PI>=n&&a+2*Math.PI<=s)&&(i=t)}))}return i}function I(e,t){for(var n=-1,r=0,i=t.series.length;r<i;r++){var o=t.series[r];if(e.x>o.funnelArea[0]&&e.x<o.funnelArea[2]&&e.y>o.funnelArea[1]&&e.y<o.funnelArea[3]){n=r;break}}return n}function X(e,t){for(var n=-1,r=0,i=t.length;r<i;r++){var o=t[r];if(e.x>o.area[0]&&e.x<o.area[2]&&e.y>o.area[1]&&e.y<o.area[3]){n=r;break}}return n}function J(e,t){for(var n=-1,r=t.chartData.mapData,i=t.series,o=st(e.y,e.x,r.bounds,r.scale,r.xoffset,r.yoffset),a=[o.x,o.y],s=0,c=i.length;s<c;s++){var u=i[s].geometry.coordinates;if(ut(a,u,t.chartData.mapData.mercator)){n=s;break}}return n}function F(e,t,n){var r=-1,i=q(n._series_,n.extra.rose.type,t.radius,t.radius);if(t&&t.center&&H(e,t.center,t.radius)){var o=Math.atan2(t.center.y-e.y,e.x-t.center.x);o=-o,n.extra.rose&&n.extra.rose.offsetAngle&&(o-=n.extra.rose.offsetAngle*Math.PI/180);for(var a=0,s=i.length;a<s;a++)if(p(o,i[a]._start_,i[a]._start_+2*i[a]._rose_proportion_*Math.PI)){r=a;break}}return r}function B(e,t,n){var r=-1,i=$(t.series);if(t&&t.center&&H(e,t.center,t.radius)){var o=Math.atan2(t.center.y-e.y,e.x-t.center.x);o=-o,n.extra.pie&&n.extra.pie.offsetAngle&&(o-=n.extra.pie.offsetAngle*Math.PI/180),n.extra.ring&&n.extra.ring.offsetAngle&&(o-=n.extra.ring.offsetAngle*Math.PI/180);for(var a=0,s=i.length;a<s;a++)if(p(o,i[a]._start_,i[a]._start_+2*i[a]._proportion_*Math.PI)){r=a;break}}return r}function H(e,t,n){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n,2)}function j(e,t){var n=[],r=[];return e.forEach((function(e,i){t.connectNulls?null!==e&&r.push(e):null!==e?r.push(e):(r.length&&n.push(r),r=[])})),r.length&&n.push(r),n}function G(e,t,n,r,i){var o={area:{start:{x:0,y:0},end:{x:0,y:0},width:0,height:0,wholeWidth:0,wholeHeight:0},points:[],widthArr:[],heightArr:[]};if(!1===t.legend.show)return r.legendData=o,o;var a=t.legend.padding*t.pix,s=t.legend.margin*t.pix,c=t.legend.fontSize?t.legend.fontSize*t.pix:n.fontSize,u=15*t.pix,l=5*t.pix,f=Math.max(t.legend.lineHeight*t.pix,c);if("top"==t.legend.position||"bottom"==t.legend.position){for(var d=[],p=0,h=[],y=[],g=0;g<e.length;g++){var v=e[g],m=v.legendText?v.legendText:v.name,b=u+l+x(m||"undefined",c,i)+t.legend.itemGap*t.pix;p+b>t.width-t.area[1]-t.area[3]?(d.push(y),h.push(p-t.legend.itemGap*t.pix),p=b,y=[v]):(p+=b,y.push(v))}if(y.length){d.push(y),h.push(p-t.legend.itemGap*t.pix),o.widthArr=h;var S=Math.max.apply(null,h);switch(t.legend.float){case"left":o.area.start.x=t.area[3],o.area.end.x=t.area[3]+S+2*a;break;case"right":o.area.start.x=t.width-t.area[1]-S-2*a,o.area.end.x=t.width-t.area[1];break;default:o.area.start.x=(t.width-S)/2-a,o.area.end.x=(t.width+S)/2+a}o.area.width=S+2*a,o.area.wholeWidth=S+2*a,o.area.height=d.length*f+2*a,o.area.wholeHeight=d.length*f+2*a+2*s,o.points=d}}else{var _=e.length,C=t.height-t.area[0]-t.area[2]-2*s-2*a,w=Math.min(Math.floor(C/f),_);switch(o.area.height=w*f+2*a,o.area.wholeHeight=w*f+2*a,t.legend.float){case"top":o.area.start.y=t.area[0]+s,o.area.end.y=t.area[0]+s+o.area.height;break;case"bottom":o.area.start.y=t.height-t.area[2]-s-o.area.height,o.area.end.y=t.height-t.area[2]-s;break;default:o.area.start.y=(t.height-o.area.height)/2,o.area.end.y=(t.height+o.area.height)/2}for(var P=_%w===0?_/w:Math.floor(_/w+1),L=[],T=0;T<P;T++){var A=e.slice(T*w,T*w+w);L.push(A)}if(o.points=L,L.length){for(var O=0;O<L.length;O++){for(var Y=L[O],D=0,M=0;M<Y.length;M++){var k=u+l+x(Y[M].name||"undefined",c,i)+t.legend.itemGap*t.pix;k>D&&(D=k)}o.widthArr.push(D),o.heightArr.push(Y.length*f+2*a)}for(var Z=0,E=0;E<o.widthArr.length;E++)Z+=o.widthArr[E];o.area.width=Z-t.legend.itemGap*t.pix+2*a,o.area.wholeWidth=o.area.width+a}}switch(t.legend.position){case"top":o.area.start.y=t.area[0]+s,o.area.end.y=t.area[0]+s+o.area.height;break;case"bottom":o.area.start.y=t.height-t.area[2]-o.area.height-s,o.area.end.y=t.height-t.area[2]-s;break;case"left":o.area.start.x=t.area[3],o.area.end.x=t.area[3]+o.area.width;break;case"right":o.area.start.x=t.width-t.area[1]-o.area.width,o.area.end.x=t.width-t.area[1];break}return r.legendData=o,o}function Q(e,t,n,r,i){var o={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix},a=t.xAxis.fontSize*t.pix,s=e.map((function(e,n){var r=t.xAxis.formatter?t.xAxis.formatter(e,n,t):e;return x(String(r),a,i)})),c=Math.max.apply(this,s);if(1==t.xAxis.rotateLabel){o.angle=t.xAxis.rotateAngle*Math.PI/180;var u=t.xAxis.marginTop*t.pix*2+Math.abs(c*Math.sin(o.angle));u=u<a+t.xAxis.marginTop*t.pix*2?u+t.xAxis.marginTop*t.pix*2:u,o.xAxisHeight=u}return t.enableScroll&&t.xAxis.scrollShow&&(o.xAxisHeight+=6*t.pix),t.xAxis.disabled&&(o.xAxisHeight=0),o}function W(e,t,n,r){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==r?C(e,t.categories.length):_(e);var s=[];i=i.filter((function(e){return"object"===(0,o.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),i.map((function(e){"object"===(0,o.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[0]):s.push(e.value):s.push(e)}));var c=0,u=0;if(s.length>0&&(c=Math.min.apply(this,s),u=Math.max.apply(this,s)),a>-1?("number"===typeof t.xAxis.data[a].min&&(c=Math.min(t.xAxis.data[a].min,c)),"number"===typeof t.xAxis.data[a].max&&(u=Math.max(t.xAxis.data[a].max,u))):("number"===typeof t.xAxis.min&&(c=Math.min(t.xAxis.min,c)),"number"===typeof t.xAxis.max&&(u=Math.max(t.xAxis.max,u))),c===u){var l=u||10;u+=l}for(var f=c,d=u,p=[],h=(d-f)/t.xAxis.splitNumber,y=0;y<=t.xAxis.splitNumber;y++)p.push(f+h*y);return p}function U(e,t,n,r){var i=s({},{type:""},t.extra.bar),o={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix};o.ranges=W(e,t,n,i.type),o.rangesFormat=o.ranges.map((function(e){return e=c.toFixed(e,2),e}));var a=o.ranges.map((function(e){return e=c.toFixed(e,2),e}));o=Object.assign(o,ue(a,t,n));o.eachSpacing,a.map((function(e){return x(e,t.xAxis.fontSize*t.pix,r)}));return!0===t.xAxis.disabled&&(o.xAxisHeight=0),o}function K(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=i.extra.radar||{};a.max=a.max||0;for(var s=Math.max(a.max,Math.max.apply(null,_(r))),c=[],u=function(i){var a=r[i],u={};u.color=a.color,u.legendShape=a.legendShape,u.pointShape=a.pointShape,u.data=[],a.data.forEach((function(r,i){var a={};a.angle=e[i],a.proportion=r/s,a.value=r,a.position=y(n*a.proportion*o*Math.cos(a.angle),n*a.proportion*o*Math.sin(a.angle),t),u.data.push(a)})),c.push(u)},l=0;l<r.length;l++)u(l);return c}function $(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=0,i=0,o=0;o<e.length;o++){var a=e[o];a.data=null===a.data?0:a.data,r+=a.data}for(var s=0;s<e.length;s++){var c=e[s];c.data=null===c.data?0:c.data,c._proportion_=0===r?1/e.length*n:c.data/r*n,c._radius_=t}for(var u=0;u<e.length;u++){var l=e[u];l._start_=i,i+=2*l._proportion_*Math.PI}return e}function z(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=0;o<e.length;o++)"funnel"==n.type?e[o].radius=e[o].data/e[0].data*t*i:e[o].radius=r*(e.length-o)/(r*e.length)*t*i,e[o]._proportion_=e[o].data/e[0].data;return e}function q(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=0,a=0,s=[],c=0;c<e.length;c++){var u=e[c];u.data=null===u.data?0:u.data,o+=u.data,s.push(u.data)}for(var l=Math.min.apply(null,s),f=Math.max.apply(null,s),d=r-n,p=0;p<e.length;p++){var h=e[p];h.data=null===h.data?0:h.data,0===o?(h._proportion_=1/e.length*i,h._rose_proportion_=1/e.length*i):(h._proportion_=h.data/o*i,h._rose_proportion_="area"==t?1/e.length*i:h.data/o*i),h._radius_=n+d*((h.data-l)/(f-l))||r}for(var y=0;y<e.length;y++){var g=e[y];g._start_=a,a+=2*g._rose_proportion_*Math.PI}return e}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==n&&(n=.999999);for(var r=0;r<e.length;r++){var i=e[r];i.data=null===i.data?0:i.data;var o=void 0;o="circle"==t.type?2:"ccw"==t.direction?t.startAngle<t.endAngle?2+t.startAngle-t.endAngle:t.startAngle-t.endAngle:t.endAngle<t.startAngle?2+t.endAngle-t.startAngle:t.startAngle-t.endAngle,i._proportion_=o*i.data*n+t.startAngle,"ccw"==t.direction&&(i._proportion_=t.startAngle-o*i.data*n),i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return e}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==n&&(n=.999999);for(var r=0;r<e.length;r++){var i=e[r];i.data=null===i.data?0:i.data;var o=void 0;o="circle"==t.type?2:t.endAngle<t.startAngle?2+t.endAngle-t.startAngle:t.startAngle-t.endAngle,i._proportion_=o*i.data*n+t.startAngle,i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return e}function te(e,t,n){var r;r=n<t?2+n-t:t-n;for(var i=t,o=0;o<e.length;o++)e[o].value=null===e[o].value?0:e[o].value,e[o]._startAngle_=i,e[o]._endAngle_=r*e[o].value+t,e[o]._endAngle_>=2&&(e[o]._endAngle_=e[o]._endAngle_%2),i=e[o]._endAngle_;return e}function ne(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i<e.length;i++){var o=e[i];if(o.data=null===o.data?0:o.data,"auto"==n.pointer.color){for(var a=0;a<t.length;a++)if(o.data<=t[a].value){o.color=t[a].color;break}}else o.color=n.pointer.color;var s=void 0;s=n.endAngle<n.startAngle?2+n.endAngle-n.startAngle:n.startAngle-n.endAngle,o._endAngle_=s*o.data+n.startAngle,o._oldAngle_=n.oldAngle,n.oldAngle<n.endAngle&&(o._oldAngle_+=2),o.data>=n.oldData?o._proportion_=(o._endAngle_-o._oldAngle_)*r+n.oldAngle:o._proportion_=o._oldAngle_-(o._oldAngle_-o._endAngle_)*r,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return e}function re(e,t,n,r){e=$(e);for(var i=0,o=0;o<e.length;o++){var a=e[o],s=a.formatter?a.formatter(+a._proportion_.toFixed(2)):c.toFixed(100*a._proportion_)+"%";i=Math.max(i,x(s,a.textSize*r.pix||t.fontSize,n))}return i}function ie(e,t,n,r,i,o){return e.map((function(e){if(null===e)return null;var i=0,a=0;return"mix"==o.type?(i=o.extra.mix.column.seriesGap*o.pix||0,a=o.extra.mix.column.categoryGap*o.pix||0):(i=o.extra.column.seriesGap*o.pix||0,a=o.extra.column.categoryGap*o.pix||0),i=Math.min(i,t/n),a=Math.min(a,t/n),e.width=Math.ceil((t-2*a-i*(n-1))/n),o.extra.mix&&o.extra.mix.column.width&&+o.extra.mix.column.width>0&&(e.width=Math.min(e.width,+o.extra.mix.column.width*o.pix)),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),e.width<=0&&(e.width=1),e.x+=(r+.5-n/2)*(e.width+i),e}))}function oe(e,t,n,r,i,o){return e.map((function(e){if(null===e)return null;var i=0,a=0;return i=o.extra.bar.seriesGap*o.pix||0,a=o.extra.bar.categoryGap*o.pix||0,i=Math.min(i,t/n),a=Math.min(a,t/n),e.width=Math.ceil((t-2*a-i*(n-1))/n),o.extra.bar&&o.extra.bar.width&&+o.extra.bar.width>0&&(e.width=Math.min(e.width,+o.extra.bar.width*o.pix)),e.width<=0&&(e.width=1),e.y+=(r+.5-n/2)*(e.width+i),e}))}function ae(e,t,n,r,i,o,a){var s=o.extra.column.categoryGap*o.pix||0;return e.map((function(e){return null===e?null:(e.width=t-2*s,o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),r>0&&(e.width-=a),e)}))}function se(e,t,n,r,i,o,a){var s=o.extra.column.categoryGap*o.pix||0;return e.map((function(e,n){return null===e?null:(e.width=Math.ceil(t-2*s),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),e.width<=0&&(e.width=1),e)}))}function ce(e,t,n,r,i,o,a){var s=o.extra.bar.categoryGap*o.pix||0;return e.map((function(e,n){return null===e?null:(e.width=Math.ceil(t-2*s),o.extra.bar&&o.extra.bar.width&&+o.extra.bar.width>0&&(e.width=Math.min(e.width,+o.extra.bar.width*o.pix)),e.width<=0&&(e.width=1),e)}))}function ue(e,t,n){var r=t.width-t.area[1]-t.area[3],i=t.enableScroll?Math.min(t.xAxis.itemCount,e.length):e.length;("line"==t.type||"area"==t.type||"scatter"==t.type||"bubble"==t.type||"bar"==t.type)&&i>1&&"justify"==t.xAxis.boundaryGap&&(i-=1);var o=0;"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),o=t.extra.mount.widthRatio-1,i+=o);var a=r/i,s=[],c=t.area[3],u=t.width-t.area[1];return e.forEach((function(e,t){s.push(c+o/2*a+t*a)})),"justify"!==t.xAxis.boundaryGap&&(!0===t.enableScroll?s.push(c+o*a+e.length*a):s.push(u)),{xAxisPoints:s,startX:c,endX:u,eachSpacing:a}}function le(e,t,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],u=o.height-o.area[0]-o.area[2];return e.forEach((function(e,a){if(null===e)c.push(null);else{var l=[];e.forEach((function(e,c){var f={};f.x=r[a]+Math.round(i/2);var d=e.value||e,p=u*(d-t)/(n-t);p*=s,f.y=o.height-Math.round(p)-o.area[2],l.push(f)})),c.push(l)}})),c}function fe(e,t,n,r,i,a,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,u="center";"line"!=a.type&&"area"!=a.type&&"scatter"!=a.type&&"bubble"!=a.type||(u=a.xAxis.boundaryGap);var l=[],f=a.height-a.area[0]-a.area[2],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)l.push(null);else{var p={};p.color=e.color,p.x=r[s];var h,y,g,v=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)h=[].concat(a.chartData.xAxisData.ranges),y=h.shift(),g=h.pop(),v=e[1],p.x=a.area[3]+d*(e[0]-y)/(g-y),"bubble"==a.type&&(p.r=e[2],p.t=e[3]);else v=e.value;"center"==u&&(p.x+=i/2);var m=f*(v-t)/(n-t);m*=c,p.y=a.height-m-a.area[2],l.push(p)}})),l}function de(e,t,n,r,i,a,s,c,u){u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var l=a.xAxis.boundaryGap,f=[],d=a.height-a.area[0]-a.area[2],p=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)f.push(null);else{var h={};if(h.color=e.color,"vertical"==c.animation){h.x=r[s];var y,g,v,m=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)y=[].concat(a.chartData.xAxisData.ranges),g=y.shift(),v=y.pop(),m=e[1],h.x=a.area[3]+p*(e[0]-g)/(v-g);else m=e.value;"center"==l&&(h.x+=i/2);var b=d*(m-t)/(n-t);b*=u,h.y=a.height-b-a.area[2],f.push(h)}else{h.x=r[0]+i*s*u;m=e;"center"==l&&(h.x+=i/2);b=d*(m-t)/(n-t);h.y=a.height-b-a.area[2],f.push(h)}}})),f}function pe(e,t,n,r,i,a,s,c,u){u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var l=[],f=a.height-a.area[0]-a.area[2],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)l.push(null);else{var c={};c.color=e.color,c.x=r[s];var p,h,y,g=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)p=[].concat(a.chartData.xAxisData.ranges),h=p.shift(),y=p.pop(),g=e[1],c.x=a.area[3]+d*(e[0]-h)/(y-h);else g=e.value;c.x+=i/2;var v=f*(g*u-t)/(n-t);c.y=a.height-v-a.area[2],l.push(c)}})),l}function he(e,t,n,r,i,o,a,s){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,u=[],l=o.height-o.area[0]-o.area[2],f=(o.width,o.area[1],o.area[3],i*a.widthRatio);return e.forEach((function(e,a){if(null===e)u.push(null);else{var s={};s.color=e.color,s.x=r[a],s.x+=i/2;var d=e.data,p=l*(d*c-t)/(n-t);s.y=o.height-p-o.area[2],s.value=d,s.width=f,u.push(s)}})),u}function ye(e,t,n,r,i,a,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,u=[],l=(a.height,a.area[0],a.area[2],a.width-a.area[1]-a.area[3]);return e.forEach((function(e,i){if(null===e)u.push(null);else{var s={};s.color=e.color,s.y=r[i];var f=e;"object"===(0,o.default)(e)&&null!==e&&(f=e.value);var d=l*(f-t)/(n-t);d*=c,s.height=d,s.value=f,s.x=d+a.area[3],u.push(s)}})),u}function ge(e,t,n,r,i,a,s,c,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],d=a.height-a.area[0]-a.area[2];return e.forEach((function(e,s){if(null===e)f.push(null);else{var p={};if(p.color=e.color,p.x=r[s]+Math.round(i/2),c>0){for(var h=0,y=0;y<=c;y++)h+=u[y].data[s];var g=h-e,v=d*(h-t)/(n-t),m=d*(g-t)/(n-t)}else{h=e;"object"===(0,o.default)(e)&&null!==e&&(h=e.value);v=d*(h-t)/(n-t),m=0}var b=m;v*=l,b*=l,p.y=a.height-Math.round(v)-a.area[2],p.y0=a.height-Math.round(b)-a.area[2],f.push(p)}})),f}function ve(e,t,n,r,i,a,s,c,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,i){if(null===e)f.push(null);else{var s={};if(s.color=e.color,s.y=r[i],c>0){for(var p=0,h=0;h<=c;h++)p+=u[h].data[i];var y=p-e,g=d*(p-t)/(n-t),v=d*(y-t)/(n-t)}else{p=e;"object"===(0,o.default)(e)&&null!==e&&(p=e.value);g=d*(p-t)/(n-t),v=0}var m=v;g*=l,m*=l,s.height=g-m,s.x=a.area[3]+g,s.x0=a.area[3]+m,f.push(s)}})),f}function me(e,t,n,r,i){var a;a="stack"==r?C(e,t.categories.length):_(e);var s=[];a=a.filter((function(e){return"object"===(0,o.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),a.map((function(e){"object"===(0,o.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[1]):s.push(e.value):s.push(e)}));var c=i.min||0,u=i.max||0;s.length>0&&(c=Math.min.apply(this,s),u=Math.max.apply(this,s)),c===u&&(0==u?u=10:c=0);for(var l=S(c,u),f=void 0===i.min||null===i.min?l.minRange:i.min,d=void 0===i.max||null===i.max?l.maxRange:i.max,p=(d-f)/t.yAxis.splitNumber,h=[],y=0;y<=t.yAxis.splitNumber;y++)h.push(f+p*y);return h.reverse()}function be(e,t,n,r){var i=s({},{type:""},t.extra.column),o=t.yAxis.data.length,a=new Array(o);if(o>0){for(var u=0;u<o;u++){a[u]=[];for(var l=0;l<e.length;l++)e[l].index==u&&a[u].push(e[l])}for(var f=new Array(o),d=new Array(o),p=new Array(o),h=function(e){var o=t.yAxis.data[e];1==t.yAxis.disabled&&(o.disabled=!0),"categories"===o.type?(o.formatter||(o.formatter=function(e,t,n){return e+(o.unit||"")}),o.categories=o.categories||t.categories,f[e]=o.categories):(o.formatter||(o.formatter=function(e,t,n){return c.toFixed(e,o.tofix||0)+(o.unit||"")}),f[e]=me(a[e],t,n,i.type,o,e));var s=o.fontSize*t.pix||n.fontSize;p[e]={position:o.position?o.position:"left",width:0},d[e]=f[e].map((function(n,i){return n=o.formatter(n,i,t),p[e].width=Math.max(p[e].width,x(n,s,r)+5),n}));var u=o.calibration?4*t.pix:0;p[e].width+=u+3*t.pix,!0===o.disabled&&(p[e].width=0)},y=0;y<o;y++)h(y)}else{f=new Array(1),d=new Array(1),p=new Array(1);"bar"===t.type?(f[0]=t.categories,t.yAxis.formatter||(t.yAxis.formatter=function(e,t,n){return e+(n.yAxis.unit||"")})):(t.yAxis.formatter||(t.yAxis.formatter=function(e,t,n){return e.toFixed(n.yAxis.tofix)+(n.yAxis.unit||"")}),f[0]=me(e,t,n,i.type,{})),p[0]={position:"left",width:0};var g=t.yAxis.fontSize*t.pix||n.fontSize;d[0]=f[0].map((function(e,n){return e=t.yAxis.formatter(e,n,t),p[0].width=Math.max(p[0].width,x(e,g,r)+5),e})),p[0].width+=3*t.pix,!0===t.yAxis.disabled?(p[0]={position:"left",width:0},t.yAxis.data[0]={disabled:!0}):(t.yAxis.data[0]={disabled:!1,position:"left",max:t.yAxis.max,min:t.yAxis.min,formatter:t.yAxis.formatter},"bar"===t.type&&(t.yAxis.data[0].categories=t.categories,t.yAxis.data[0].type="categories"))}return{rangesFormat:d,ranges:f,yAxisWidth:p}}function Se(e,t,n,r,i){for(var o=[].concat(n.chartData.yAxisData.ranges),a=n.height-n.area[0]-n.area[2],s=n.area[0],c=[],u=0;u<o.length;u++){var l=Math.max.apply(this,o[u]),f=Math.min.apply(this,o[u]),d=l-(l-f)*(e-s)/a;d=n.yAxis.data&&n.yAxis.data[u].formatter?n.yAxis.data[u].formatter(d,u,n):d.toFixed(0),c.push(String(d))}return c}function xe(e,t){for(var n,r,i=t.height-t.area[0]-t.area[2],o=0;o<e.length;o++){e[o].yAxisIndex=e[o].yAxisIndex?e[o].yAxisIndex:0;var a=[].concat(t.chartData.yAxisData.ranges[e[o].yAxisIndex]);n=a.pop(),r=a.shift();var s=i*(e[o].value-n)/(r-n);e[o].y=t.height-Math.round(s)-t.area[2]}return e}function _e(e,t){!0!==t.rotateLock?(e.translate(t.height,0),e.rotate(90*Math.PI/180)):!0!==t._rotate_&&(e.translate(t.height,0),e.rotate(90*Math.PI/180),t._rotate_=!0)}function Ce(e,t,n,r,i){if(r.beginPath(),"hollow"==i.dataPointShapeType?(r.setStrokeStyle(t),r.setFillStyle(i.background),r.setLineWidth(2*i.pix)):(r.setStrokeStyle("#ffffff"),r.setFillStyle(t),r.setLineWidth(1*i.pix)),"diamond"===n)e.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y),r.lineTo(e.x,e.y+4.5),r.lineTo(e.x+4.5,e.y),r.lineTo(e.x,e.y-4.5))}));else if("circle"===n)e.forEach((function(e,t){null!==e&&(r.moveTo(e.x+2.5*i.pix,e.y),r.arc(e.x,e.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===n)e.forEach((function(e,t){null!==e&&(r.moveTo(e.x-3.5,e.y-3.5),r.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===n)e.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y+4.5),r.lineTo(e.x+4.5,e.y+4.5),r.lineTo(e.x,e.y-4.5))}));else if("none"===n)return;r.closePath(),r.fill(),r.stroke()}function we(e,t,n,r,i,o,a){if(i.tooltip&&!(i.tooltip.group.length>0&&0==i.tooltip.group.includes(a))){var s="number"===typeof i.tooltip.index?i.tooltip.index:i.tooltip.index[i.tooltip.group.indexOf(a)];if(r.beginPath(),"hollow"==o.activeType?(r.setStrokeStyle(t),r.setFillStyle(i.background),r.setLineWidth(2*i.pix)):(r.setStrokeStyle("#ffffff"),r.setFillStyle(t),r.setLineWidth(1*i.pix)),"diamond"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y),r.lineTo(e.x,e.y+4.5),r.lineTo(e.x+4.5,e.y),r.lineTo(e.x,e.y-4.5))}));else if("circle"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x+2.5*i.pix,e.y),r.arc(e.x,e.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x-3.5,e.y-3.5),r.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y+4.5),r.lineTo(e.x+4.5,e.y+4.5),r.lineTo(e.x,e.y-4.5))}));else if("none"===n)return;r.closePath(),r.fill(),r.stroke()}}function Pe(e,t,n,r){var i=e.title.fontSize||t.titleFontSize,o=e.subtitle.fontSize||t.subtitleFontSize,a=e.title.name||"",s=e.subtitle.name||"",c=e.title.color||e.fontColor,u=e.subtitle.color||e.fontColor,l=a?i:0,f=s?o:0,d=5;if(s){var p=x(s,o*e.pix,n),h=r.x-p/2+(e.subtitle.offsetX||0)*e.pix,y=r.y+o*e.pix/2+(e.subtitle.offsetY||0)*e.pix;a&&(y+=(l*e.pix+d)/2),n.beginPath(),n.setFontSize(o*e.pix),n.setFillStyle(u),n.fillText(s,h,y),n.closePath(),n.stroke()}if(a){var g=x(a,i*e.pix,n),v=r.x-g/2+(e.title.offsetX||0),m=r.y+i*e.pix/2+(e.title.offsetY||0)*e.pix;s&&(m-=(f*e.pix+d)/2),n.beginPath(),n.setFontSize(i*e.pix),n.setFillStyle(c),n.fillText(a,v,m),n.closePath(),n.stroke()}}function Le(e,t,n,r,i){var a=t.data,s=t.textOffset?t.textOffset:0;e.forEach((function(e,c){if(null!==e){r.beginPath();var u=t.textSize?t.textSize*i.pix:n.fontSize;r.setFontSize(u),r.setFillStyle(t.textColor||i.fontColor);var l=a[c];"object"===(0,o.default)(a[c])&&null!==a[c]&&(l=a[c].constructor.toString().indexOf("Array")>-1?a[c][1]:a[c].value);var f=t.formatter?t.formatter(l,c,t,i):l;r.setTextAlign("center"),r.fillText(String(f),e.x,e.y-4+s*i.pix),r.closePath(),r.stroke(),r.setTextAlign("left")}}))}function Te(e,t,n,r,i){var a=t.data,s=t.textOffset?t.textOffset:0,c=i.extra.column.labelPosition;e.forEach((function(e,u){if(null!==e){r.beginPath();var l=t.textSize?t.textSize*i.pix:n.fontSize;r.setFontSize(l),r.setFillStyle(t.textColor||i.fontColor);var f=a[u];"object"===(0,o.default)(a[u])&&null!==a[u]&&(f=a[u].constructor.toString().indexOf("Array")>-1?a[u][1]:a[u].value);var d=t.formatter?t.formatter(f,u,t,i):f;r.setTextAlign("center");var p=e.y-4*i.pix+s*i.pix;e.y>t.zeroPoints&&(p=e.y+s*i.pix+l),"insideTop"==c&&(p=e.y+l+s*i.pix,e.y>t.zeroPoints&&(p=e.y-s*i.pix-4*i.pix)),"center"==c&&(p=e.y+s*i.pix+(i.height-i.area[2]-e.y+l)/2,t.zeroPoints<i.height-i.area[2]&&(p=e.y+s*i.pix+(t.zeroPoints-e.y+l)/2),e.y>t.zeroPoints&&(p=e.y-s*i.pix-(e.y-t.zeroPoints-l)/2),"stack"==i.extra.column.type&&(p=e.y+s*i.pix+(e.y0-e.y+l)/2)),"bottom"==c&&(p=i.height-i.area[2]+s*i.pix-4*i.pix,t.zeroPoints<i.height-i.area[2]&&(p=t.zeroPoints+s*i.pix-4*i.pix),e.y>t.zeroPoints&&(p=t.zeroPoints-s*i.pix+l+2*i.pix),"stack"==i.extra.column.type&&(p=e.y0+s*i.pix-4*i.pix)),r.fillText(String(d),e.x,p),r.closePath(),r.stroke(),r.setTextAlign("left")}}))}function Ae(e,t,n,r,i,o){t.data;var a=t.textOffset?t.textOffset:0;i.extra.mount.labelPosition;e.forEach((function(e,s){if(null!==e){r.beginPath();var c=t[s].textSize?t[s].textSize*i.pix:n.fontSize;r.setFontSize(c),r.setFillStyle(t[s].textColor||i.fontColor);var u=e.value,l=t[s].formatter?t[s].formatter(u,s,t,i):u;r.setTextAlign("center");var f=e.y-4*i.pix+a*i.pix;e.y>o&&(f=e.y+a*i.pix+c),r.fillText(String(l),e.x,f),r.closePath(),r.stroke(),r.setTextAlign("left")}}))}function Oe(e,t,n,r,i){var a=t.data;t.textOffset&&t.textOffset;e.forEach((function(e,s){if(null!==e){r.beginPath();var c=t.textSize?t.textSize*i.pix:n.fontSize;r.setFontSize(c),r.setFillStyle(t.textColor||i.fontColor);var u=a[s];"object"===(0,o.default)(a[s])&&null!==a[s]&&(u=a[s].value);var l=t.formatter?t.formatter(u,s,t,i):u;r.setTextAlign("left"),r.fillText(String(l),e.x+4*i.pix,e.y+c/2-3),r.closePath(),r.stroke()}}))}function Ye(e,t,n,r,i,o){var a;t-=e.width/2+e.labelOffset*r.pix,t=t<10?10:t,a=e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle;for(var s=a/e.splitLine.splitNumber,c=e.endNumber-e.startNumber,u=c/e.splitLine.splitNumber,l=e.startAngle,f=e.startNumber,d=0;d<e.splitLine.splitNumber+1;d++){var p={x:t*Math.cos(l*Math.PI),y:t*Math.sin(l*Math.PI)},h=e.formatter?e.formatter(f,d,r):f;p.x+=n.x-x(h,i.fontSize,o)/2,p.y+=n.y;var y=p.x,g=p.y;o.beginPath(),o.setFontSize(i.fontSize),o.setFillStyle(e.labelColor||r.fontColor),o.fillText(h,y,g+i.fontSize/2),o.closePath(),o.stroke(),l+=s,l>=2&&(l%=2),f+=u}}function De(e,t,n,r,i,o){var a=r.extra.radar||{};e.forEach((function(e,s){if(!0===a.labelPointShow&&""!==r.categories[s]){var u={x:t*Math.cos(e),y:t*Math.sin(e)},l=y(u.x,u.y,n);o.setFillStyle(a.labelPointColor),o.beginPath(),o.arc(l.x,l.y,a.labelPointRadius*r.pix,0,2*Math.PI,!1),o.closePath(),o.fill()}if(!0===a.labelShow){var f={x:(t+i.radarLabelTextMargin*r.pix)*Math.cos(e),y:(t+i.radarLabelTextMargin*r.pix)*Math.sin(e)},d=y(f.x,f.y,n),p=d.x,h=d.y;c.approximatelyEqual(f.x,0)?p-=x(r.categories[s]||"",i.fontSize,o)/2:f.x<0&&(p-=x(r.categories[s]||"",i.fontSize,o)),o.beginPath(),o.setFontSize(i.fontSize),o.setFillStyle(a.labelColor||r.fontColor),o.fillText(r.categories[s]||"",p,h+i.fontSize/2),o.closePath(),o.stroke()}}))}function Me(e,t,n,r,i,o){for(var a=n.pieChartLinePadding,s=[],u=null,l=e.map((function(n,r){var i=n.formatter?n.formatter(n,r,e,t):c.toFixed(100*n._proportion_.toFixed(4))+"%";i=n.labelText?n.labelText:i;var o=2*Math.PI-(n._start_+2*Math.PI*n._proportion_/2);n._rose_proportion_&&(o=2*Math.PI-(n._start_+2*Math.PI*n._rose_proportion_/2));var a=n.color,s=n._radius_;return{arc:o,text:i,color:a,radius:s,textColor:n.textColor,textSize:n.textSize,labelShow:n.labelShow}})),f=0;f<l.length;f++){var d=l[f],p=Math.cos(d.arc)*(d.radius+a),h=Math.sin(d.arc)*(d.radius+a),v=Math.cos(d.arc)*d.radius,m=Math.sin(d.arc)*d.radius,b=p>=0?p+n.pieChartTextPadding:p-n.pieChartTextPadding,S=h,_=x(d.text,d.textSize*t.pix||n.fontSize,r),C=S;u&&c.isSameXCoordinateArea(u.start,{x:b})&&(C=b>0?Math.min(S,u.start.y):p<0||S>0?Math.max(S,u.start.y):Math.min(S,u.start.y)),b<0&&(b-=_);var w={lineStart:{x:v,y:m},lineEnd:{x:p,y:h},start:{x:b,y:C},width:_,height:n.fontSize,text:d.text,color:d.color,textColor:d.textColor,textSize:d.textSize};u=g(w,u),s.push(u)}for(var P=0;P<s.length;P++)if(!1!==l[P].labelShow){var L=s[P],T=y(L.lineStart.x,L.lineStart.y,o),A=y(L.lineEnd.x,L.lineEnd.y,o),O=y(L.start.x,L.start.y,o);r.setLineWidth(1*t.pix),r.setFontSize(L.textSize*t.pix||n.fontSize),r.beginPath(),r.setStrokeStyle(L.color),r.setFillStyle(L.color),r.moveTo(T.x,T.y);var Y=L.start.x<0?O.x+L.width:O.x,D=L.start.x<0?O.x-5:O.x+5;r.quadraticCurveTo(A.x,A.y,Y,O.y),r.moveTo(T.x,T.y),r.stroke(),r.closePath(),r.beginPath(),r.moveTo(O.x+L.width,O.y),r.arc(Y,O.y,2*t.pix,0,2*Math.PI),r.closePath(),r.fill(),r.beginPath(),r.setFontSize(L.textSize*t.pix||n.fontSize),r.setFillStyle(L.textColor||t.fontColor),r.fillText(L.text,D,O.y+3),r.closePath(),r.stroke(),r.closePath()}}function ke(e,t,n,r){var i=t.extra.tooltip||{};i.gridType=void 0==i.gridType?"solid":i.gridType,i.dashLength=void 0==i.dashLength?4:i.dashLength;var o=t.area[0],a=t.height-t.area[2];if("dash"==i.gridType&&r.setLineDash([i.dashLength,i.dashLength]),r.setStrokeStyle(i.gridColor||"#cccccc"),r.setLineWidth(1*t.pix),r.beginPath(),r.moveTo(e,o),r.lineTo(e,a),r.stroke(),r.setLineDash([]),i.xAxisLabel){var s=t.categories[t.tooltip.index];r.setFontSize(n.fontSize);var c=x(s,n.fontSize,r),l=e-.5*c,f=a+2*t.pix;r.beginPath(),r.setFillStyle(u(i.labelBgColor||n.toolTipBackground,i.labelBgOpacity||n.toolTipOpacity)),r.setStrokeStyle(i.labelBgColor||n.toolTipBackground),r.setLineWidth(1*t.pix),r.rect(l-i.boxPadding*t.pix,f,c+2*i.boxPadding*t.pix,n.fontSize+2*i.boxPadding*t.pix),r.closePath(),r.stroke(),r.fill(),r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(i.labelFontColor||t.fontColor),r.fillText(String(s),l,f+i.boxPadding*t.pix+n.fontSize),r.closePath(),r.stroke()}}function Ze(e,t,n){for(var r=s({},{type:"solid",dashLength:4,data:[]},e.extra.markLine),i=e.area[3],o=e.width-e.area[1],a=xe(r.data,e),c=0;c<a.length;c++){var l=s({},{lineColor:"#DE4A42",showLabel:!1,labelFontSize:13,labelPadding:6,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,labelAlign:"left",labelOffsetX:0,labelOffsetY:0},a[c]);if("dash"==r.type&&n.setLineDash([r.dashLength,r.dashLength]),n.setStrokeStyle(l.lineColor),n.setLineWidth(1*e.pix),n.beginPath(),n.moveTo(i,l.y),n.lineTo(o,l.y),n.stroke(),n.setLineDash([]),l.showLabel){var f=l.labelFontSize*e.pix,d=l.labelText?l.labelText:l.value;n.setFontSize(f);var p=x(d,f,n),h=p+l.labelPadding*e.pix*2,y="left"==l.labelAlign?e.area[3]-h:e.width-e.area[1];y+=l.labelOffsetX;var g=l.y-.5*f-l.labelPadding*e.pix;g+=l.labelOffsetY;var v=y+l.labelPadding*e.pix;l.y;n.setFillStyle(u(l.labelBgColor,l.labelBgOpacity)),n.setStrokeStyle(l.labelBgColor),n.setLineWidth(1*e.pix),n.beginPath(),n.rect(y,g,h,f+2*l.labelPadding*e.pix),n.closePath(),n.stroke(),n.fill(),n.setFontSize(f),n.setTextAlign("left"),n.setFillStyle(l.labelFontColor),n.fillText(String(d),v,g+f+l.labelPadding*e.pix/2),n.stroke(),n.setTextAlign("left")}}}function Ee(e,t,n,r,i){var o=s({},{gridType:"solid",dashLength:4},e.extra.tooltip),a=e.area[3],c=e.width-e.area[1];if("dash"==o.gridType&&n.setLineDash([o.dashLength,o.dashLength]),n.setStrokeStyle(o.gridColor||"#cccccc"),n.setLineWidth(1*e.pix),n.beginPath(),n.moveTo(a,e.tooltip.offset.y),n.lineTo(c,e.tooltip.offset.y),n.stroke(),n.setLineDash([]),o.yAxisLabel)for(var l=o.boxPadding*e.pix,f=Se(e.tooltip.offset.y,e.series,e,t,r),d=e.chartData.yAxisData.yAxisWidth,p=e.area[3],h=e.width-e.area[1],y=0;y<f.length;y++){n.setFontSize(o.fontSize*e.pix);var g=x(f[y],o.fontSize*e.pix,n),v=void 0,m=void 0,b=void 0;"left"==d[y].position?(v=p-(g+2*l)-2*e.pix,m=Math.max(v,v+g+2*l)):(v=h+2*e.pix,m=Math.max(v+d[y].width,v+g+2*l)),b=m-v;var S=v+(b-g)/2,_=e.tooltip.offset.y;n.beginPath(),n.setFillStyle(u(o.labelBgColor||t.toolTipBackground,o.labelBgOpacity||t.toolTipOpacity)),n.setStrokeStyle(o.labelBgColor||t.toolTipBackground),n.setLineWidth(1*e.pix),n.rect(v,_-.5*t.fontSize-l,b,t.fontSize+2*l),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(t.fontSize),n.setFillStyle(o.labelFontColor||e.fontColor),n.fillText(f[y],S,_+.5*t.fontSize),n.closePath(),n.stroke(),"left"==d[y].position?p-=d[y].width+e.yAxis.padding*e.pix:h+=d[y].width+e.yAxis.padding*e.pix}}function Re(e,t,n,r,i){var o=s({},{activeBgColor:"#000000",activeBgOpacity:.08,activeWidth:i},t.extra.column);o.activeWidth=o.activeWidth>i?i:o.activeWidth;var a=t.area[0],c=t.height-t.area[2];r.beginPath(),r.setFillStyle(u(o.activeBgColor,o.activeBgOpacity)),r.rect(e-o.activeWidth/2,a,o.activeWidth,c-a),r.closePath(),r.fill(),r.setFillStyle("#FFFFFF")}function Ne(e,t,n,r,i){var o=s({},{activeBgColor:"#000000",activeBgOpacity:.08},t.extra.bar),a=t.area[3],c=t.width-t.area[1];r.beginPath(),r.setFillStyle(u(o.activeBgColor,o.activeBgOpacity)),r.rect(a,e-i/2,c-a,i),r.closePath(),r.fill(),r.setFillStyle("#FFFFFF")}function Ie(e,t,n,r,i,o,a){var c=s({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,boxPadding:3,fontColor:"#FFFFFF",fontSize:13,lineHeight:20,legendShow:!0,legendShape:"auto",splitLine:!0},n.extra.tooltip);1==c.showCategory&&n.categories&&e.unshift({text:n.categories[n.tooltip.index],color:null});var l=c.fontSize*n.pix,f=c.lineHeight*n.pix,d=c.boxPadding*n.pix,p=l,h=5*n.pix;0==c.legendShow&&(p=0,h=0);var y=c.showArrow?8*n.pix:0,g=!1;"line"!=n.type&&"mount"!=n.type&&"area"!=n.type&&"candle"!=n.type&&"mix"!=n.type||1==c.splitLine&&ke(n.tooltip.offset.x,n,r,i),t=s({x:0,y:0},t),t.y-=8*n.pix;var v=e.map((function(e){return x(e.text,l,i)})),m=p+h+4*d+Math.max.apply(null,v),b=2*d+e.length*f;if(0!=c.showBox){t.x-Math.abs(n._scrollDistance_||0)+y+m>n.width&&(g=!0),b+t.y>n.height&&(t.y=n.height-b),i.beginPath(),i.setFillStyle(u(c.bgColor,c.bgOpacity)),i.setLineWidth(c.borderWidth*n.pix),i.setStrokeStyle(u(c.borderColor,c.borderOpacity));var S=c.borderRadius;g?(m+y>n.width&&(t.x=n.width+Math.abs(n._scrollDistance_||0)+y+(m-n.width)),m>t.x&&(t.x=n.width+Math.abs(n._scrollDistance_||0)+y+(m-n.width)),c.showArrow&&(i.moveTo(t.x,t.y+10*n.pix),i.lineTo(t.x-y,t.y+10*n.pix+5*n.pix)),i.arc(t.x-y-S,t.y+b-S,S,0,Math.PI/2,!1),i.arc(t.x-y-Math.round(m)+S,t.y+b-S,S,Math.PI/2,Math.PI,!1),i.arc(t.x-y-Math.round(m)+S,t.y+S,S,-Math.PI,-Math.PI/2,!1),i.arc(t.x-y-S,t.y+S,S,-Math.PI/2,0,!1),c.showArrow&&(i.lineTo(t.x-y,t.y+10*n.pix-5*n.pix),i.lineTo(t.x,t.y+10*n.pix))):(c.showArrow&&(i.moveTo(t.x,t.y+10*n.pix),i.lineTo(t.x+y,t.y+10*n.pix-5*n.pix)),i.arc(t.x+y+S,t.y+S,S,-Math.PI,-Math.PI/2,!1),i.arc(t.x+y+Math.round(m)-S,t.y+S,S,-Math.PI/2,0,!1),i.arc(t.x+y+Math.round(m)-S,t.y+b-S,S,0,Math.PI/2,!1),i.arc(t.x+y+S,t.y+b-S,S,Math.PI/2,Math.PI,!1),c.showArrow&&(i.lineTo(t.x+y,t.y+10*n.pix+5*n.pix),i.lineTo(t.x,t.y+10*n.pix))),i.closePath(),i.fill(),c.borderWidth>0&&i.stroke(),c.legendShow&&e.forEach((function(e,r){if(null!==e.color){i.beginPath(),i.setFillStyle(e.color);var o=t.x+y+2*d,a=t.y+(f-l)/2+f*r+d+1;switch(g&&(o=t.x-m-y+2*d),e.legendShape){case"line":i.moveTo(o,a+.5*p-2*n.pix),i.fillRect(o,a+.5*p-2*n.pix,p,4*n.pix);break;case"triangle":i.moveTo(o+7.5*n.pix,a+.5*p-5*n.pix),i.lineTo(o+2.5*n.pix,a+.5*p+5*n.pix),i.lineTo(o+12.5*n.pix,a+.5*p+5*n.pix),i.lineTo(o+7.5*n.pix,a+.5*p-5*n.pix);break;case"diamond":i.moveTo(o+7.5*n.pix,a+.5*p-5*n.pix),i.lineTo(o+2.5*n.pix,a+.5*p),i.lineTo(o+7.5*n.pix,a+.5*p+5*n.pix),i.lineTo(o+12.5*n.pix,a+.5*p),i.lineTo(o+7.5*n.pix,a+.5*p-5*n.pix);break;case"circle":i.moveTo(o+7.5*n.pix,a+.5*p),i.arc(o+7.5*n.pix,a+.5*p,5*n.pix,0,2*Math.PI);break;case"rect":i.moveTo(o,a+.5*p-5*n.pix),i.fillRect(o,a+.5*p-5*n.pix,15*n.pix,10*n.pix);break;case"square":i.moveTo(o+2*n.pix,a+.5*p-5*n.pix),i.fillRect(o+2*n.pix,a+.5*p-5*n.pix,10*n.pix,10*n.pix);break;default:i.moveTo(o,a+.5*p-5*n.pix),i.fillRect(o,a+.5*p-5*n.pix,15*n.pix,10*n.pix)}i.closePath(),i.fill()}})),e.forEach((function(e,n){var r=t.x+y+2*d+p+h;g&&(r=t.x-m-y+2*d+p+h);var o=t.y+f*n+(f-l)/2-1+d+l;i.beginPath(),i.setFontSize(l),i.setTextBaseline("normal"),i.setFillStyle(c.fontColor),i.fillText(e.text,r,o),i.closePath(),i.stroke()}))}}function Xe(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=s({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0,labelPosition:"outside"},t.extra.column),d=[];r.save();var p=-2,h=c.length+2;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),p=Math.floor(-t._scrollDistance_/l)-2,h=p+t.xAxis.itemCount+4),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===o&&Re(t.tooltip.offset.x,t,n,r,l),f.customColor=b(f.linearType,f.customColor,e,n),e.forEach((function(a,s){var y,g,v;y=[].concat(t.chartData.yAxisData.ranges[a.index]),g=y.pop(),v=y.shift();var m=t.height-t.area[0]-t.area[2],b=m*(0-g)/(v-g),S=t.height-Math.round(b)-t.area[2];a.zeroPoints=S;var x=a.data;switch(f.type){case"group":var _=pe(x,g,v,c,l,t,n,S,o),C=ge(x,g,v,c,l,t,n,s,e,o);d.push(C),_=ie(_,l,e.length,s,n,t);for(var w=0;w<_.length;w++){var P=_[w];if(null!==P&&w>p&&w<h){var L=P.x-P.width/2,T=t.height-P.y-t.area[2];r.beginPath();var A=P.color||a.color,O=P.color||a.color;if("none"!==f.linearType){var Y=r.createLinearGradient(L,P.y,L,S);"opacity"==f.linearType?(Y.addColorStop(0,u(A,f.linearOpacity)),Y.addColorStop(1,u(A,1))):(Y.addColorStop(0,u(f.customColor[a.linearIndex],f.linearOpacity)),Y.addColorStop(f.colorStop,u(f.customColor[a.linearIndex],f.linearOpacity)),Y.addColorStop(1,u(A,1))),A=Y}if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var D=L,M=P.y>S?S:P.y,k=P.width,Z=Math.abs(S-P.y);f.barBorderCircle&&(f.barBorderRadius=[k/2,k/2,0,0]),P.y>S&&(f.barBorderRadius=[0,0,k/2,k/2]);var E=(0,i.default)(f.barBorderRadius,4),R=E[0],N=E[1],I=E[2],X=E[3],J=Math.min(k/2,Z/2);R=R>J?J:R,N=N>J?J:N,I=I>J?J:I,X=X>J?J:X,R=R<0?0:R,N=N<0?0:N,I=I<0?0:I,X=X<0?0:X,r.arc(D+R,M+R,R,-Math.PI,-Math.PI/2),r.arc(D+k-N,M+N,N,-Math.PI/2,0),r.arc(D+k-I,M+Z-I,I,0,Math.PI/2),r.arc(D+X,M+Z-X,X,Math.PI/2,Math.PI)}else r.moveTo(L,P.y),r.lineTo(L+P.width,P.y),r.lineTo(L+P.width,S),r.lineTo(L,S),r.lineTo(L,P.y),r.setLineWidth(1),r.setStrokeStyle(O);r.setFillStyle(A),r.closePath(),r.fill()}}break;case"stack":_=ge(x,g,v,c,l,t,n,s,e,o);d.push(_),_=se(_,l,e.length,s,n,t,e);for(var F=0;F<_.length;F++){var B=_[F];if(null!==B&&F>p&&F<h){r.beginPath();A=B.color||a.color,L=B.x-B.width/2+1,T=t.height-B.y-t.area[2];var H=t.height-B.y0-t.area[2];s>0&&(T-=H),r.setFillStyle(A),r.moveTo(L,B.y),r.fillRect(L,B.y,B.width,T),r.closePath(),r.fill()}}break;case"meter":_=fe(x,g,v,c,l,t,n,o);d.push(_),_=ae(_,l,e.length,s,n,t,f.meterBorder);for(var j=0;j<_.length;j++){var G=_[j];if(null!==G&&j>p&&j<h){r.beginPath(),0==s&&f.meterBorder>0&&(r.setStrokeStyle(a.color),r.setLineWidth(f.meterBorder*t.pix)),0==s?r.setFillStyle(f.meterFillColor):r.setFillStyle(G.color||a.color);L=G.x-G.width/2,T=t.height-G.y-t.area[2];if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var Q=L,W=G.y,U=G.width,K=S-G.y;f.barBorderCircle&&(f.barBorderRadius=[U/2,U/2,0,0]);var $=(0,i.default)(f.barBorderRadius,4),z=$[0],q=$[1],V=$[2],ee=$[3],te=Math.min(U/2,K/2);z=z>te?te:z,q=q>te?te:q,V=V>te?te:V,ee=ee>te?te:ee,z=z<0?0:z,q=q<0?0:q,V=V<0?0:V,ee=ee<0?0:ee,r.arc(Q+z,W+z,z,-Math.PI,-Math.PI/2),r.arc(Q+U-q,W+q,q,-Math.PI/2,0),r.arc(Q+U-V,W+K-V,V,0,Math.PI/2),r.arc(Q+ee,W+K-ee,ee,Math.PI/2,Math.PI),r.fill()}else r.moveTo(L,G.y),r.lineTo(L+G.width,G.y),r.lineTo(L+G.width,S),r.lineTo(L,S),r.lineTo(L,G.y),r.fill();0==s&&f.meterBorder>0&&(r.closePath(),r.stroke())}}break}})),!1!==t.dataLabel&&1===o&&e.forEach((function(i,a){var s,u,d;s=[].concat(t.chartData.yAxisData.ranges[i.index]),u=s.pop(),d=s.shift();var p=i.data;switch(f.type){case"group":var h=pe(p,u,d,c,l,t,n,o);h=ie(h,l,e.length,a,n,t),Te(h,i,n,r,t);break;case"stack":h=ge(p,u,d,c,l,t,n,a,e,o);Te(h,i,n,r,t);break;case"meter":h=fe(p,u,d,c,l,t,n,o);Te(h,i,n,r,t);break}})),r.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:l}}function Je(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=s({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mount);f.widthRatio=f.widthRatio<=0?0:f.widthRatio,f.widthRatio=f.widthRatio>=2?2:f.widthRatio;r.save();var d,p,h,y=-2,g=c.length+2;t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),y=Math.floor(-t._scrollDistance_/l)-2,g=y+t.xAxis.itemCount+4),f.customColor=b(f.linearType,f.customColor,e,n),d=[].concat(t.chartData.yAxisData.ranges[0]),p=d.pop(),h=d.shift();var v=t.height-t.area[0]-t.area[2],m=v*(0-p)/(h-p),S=t.height-Math.round(m)-t.area[2],x=he(e,p,h,c,l,t,f,S,o);switch(f.type){case"bar":for(var _=0;_<x.length;_++){var C=x[_];if(null!==C&&_>y&&_<g){var w=C.x-l*f.widthRatio/2,P=t.height-C.y-t.area[2];r.beginPath();var L=C.color||e[_].color,T=C.color||e[_].color;if("none"!==f.linearType){var A=r.createLinearGradient(w,C.y,w,S);"opacity"==f.linearType?(A.addColorStop(0,u(L,f.linearOpacity)),A.addColorStop(1,u(L,1))):(A.addColorStop(0,u(f.customColor[e[_].linearIndex],f.linearOpacity)),A.addColorStop(f.colorStop,u(f.customColor[e[_].linearIndex],f.linearOpacity)),A.addColorStop(1,u(L,1))),L=A}if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var O=w,Y=C.y>S?S:C.y,D=C.width,M=Math.abs(S-C.y);f.barBorderCircle&&(f.barBorderRadius=[D/2,D/2,0,0]),C.y>S&&(f.barBorderRadius=[0,0,D/2,D/2]);var k=(0,i.default)(f.barBorderRadius,4),Z=k[0],E=k[1],R=k[2],N=k[3],I=Math.min(D/2,M/2);Z=Z>I?I:Z,E=E>I?I:E,R=R>I?I:R,N=N>I?I:N,Z=Z<0?0:Z,E=E<0?0:E,R=R<0?0:R,N=N<0?0:N,r.arc(O+Z,Y+Z,Z,-Math.PI,-Math.PI/2),r.arc(O+D-E,Y+E,E,-Math.PI/2,0),r.arc(O+D-R,Y+M-R,R,0,Math.PI/2),r.arc(O+N,Y+M-N,N,Math.PI/2,Math.PI)}else r.moveTo(w,C.y),r.lineTo(w+C.width,C.y),r.lineTo(w+C.width,S),r.lineTo(w,S),r.lineTo(w,C.y);r.setStrokeStyle(T),r.setFillStyle(L),f.borderWidth>0&&(r.setLineWidth(f.borderWidth*t.pix),r.closePath(),r.stroke()),r.fill()}}break;case"triangle":for(var X=0;X<x.length;X++){var J=x[X];if(null!==J&&X>y&&X<g){w=J.x-l*f.widthRatio/2,P=t.height-J.y-t.area[2];r.beginPath();L=J.color||e[X].color,T=J.color||e[X].color;if("none"!==f.linearType){A=r.createLinearGradient(w,J.y,w,S);"opacity"==f.linearType?(A.addColorStop(0,u(L,f.linearOpacity)),A.addColorStop(1,u(L,1))):(A.addColorStop(0,u(f.customColor[e[X].linearIndex],f.linearOpacity)),A.addColorStop(f.colorStop,u(f.customColor[e[X].linearIndex],f.linearOpacity)),A.addColorStop(1,u(L,1))),L=A}r.moveTo(w,S),r.lineTo(J.x,J.y),r.lineTo(w+J.width,S),r.setStrokeStyle(T),r.setFillStyle(L),f.borderWidth>0&&(r.setLineWidth(f.borderWidth*t.pix),r.stroke()),r.fill()}}break;case"mount":for(var F=0;F<x.length;F++){var B=x[F];if(null!==B&&F>y&&F<g){w=B.x-l*f.widthRatio/2,P=t.height-B.y-t.area[2];r.beginPath();L=B.color||e[F].color,T=B.color||e[F].color;if("none"!==f.linearType){A=r.createLinearGradient(w,B.y,w,S);"opacity"==f.linearType?(A.addColorStop(0,u(L,f.linearOpacity)),A.addColorStop(1,u(L,1))):(A.addColorStop(0,u(f.customColor[e[F].linearIndex],f.linearOpacity)),A.addColorStop(f.colorStop,u(f.customColor[e[F].linearIndex],f.linearOpacity)),A.addColorStop(1,u(L,1))),L=A}r.moveTo(w,S),r.bezierCurveTo(B.x-B.width/4,S,B.x-B.width/4,B.y,B.x,B.y),r.bezierCurveTo(B.x+B.width/4,B.y,B.x+B.width/4,S,w+B.width,S),r.setStrokeStyle(T),r.setFillStyle(L),f.borderWidth>0&&(r.setLineWidth(f.borderWidth*t.pix),r.stroke()),r.fill()}}break;case"sharp":for(var H=0;H<x.length;H++){var j=x[H];if(null!==j&&H>y&&H<g){w=j.x-l*f.widthRatio/2,P=t.height-j.y-t.area[2];r.beginPath();L=j.color||e[H].color,T=j.color||e[H].color;if("none"!==f.linearType){A=r.createLinearGradient(w,j.y,w,S);"opacity"==f.linearType?(A.addColorStop(0,u(L,f.linearOpacity)),A.addColorStop(1,u(L,1))):(A.addColorStop(0,u(f.customColor[e[H].linearIndex],f.linearOpacity)),A.addColorStop(f.colorStop,u(f.customColor[e[H].linearIndex],f.linearOpacity)),A.addColorStop(1,u(L,1))),L=A}r.moveTo(w,S),r.quadraticCurveTo(j.x-0,S-P/4,j.x,j.y),r.quadraticCurveTo(j.x+0,S-P/4,w+j.width,S),r.setStrokeStyle(T),r.setFillStyle(L),f.borderWidth>0&&(r.setLineWidth(f.borderWidth*t.pix),r.stroke()),r.fill()}}break}if(!1!==t.dataLabel&&1===o){var G,Q,W;G=[].concat(t.chartData.yAxisData.ranges[0]),Q=G.pop(),W=G.shift();x=he(e,Q,W,c,l,t,f,S,o);Ae(x,e,n,r,t,S)}return r.restore(),{xAxisPoints:c,calPoints:x,eachSpacing:l}}function Fe(e,t,n,r){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=[],c=(t.height-t.area[0]-t.area[2])/t.categories.length,l=0;l<t.categories.length;l++)a.push(t.area[0]+c/2+c*l);var f=s({},{type:"group",width:c/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.bar),d=[];r.save();var p=-2,h=a.length+2;return t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===o&&Ne(t.tooltip.offset.y,t,n,r,c),f.customColor=b(f.linearType,f.customColor,e,n),e.forEach((function(s,l){var y,g,v;y=[].concat(t.chartData.xAxisData.ranges),v=y.pop(),g=y.shift();var m=s.data;switch(f.type){case"group":var b=ye(m,g,v,a,c,t,n,o),S=ve(m,g,v,a,c,t,n,l,e,o);d.push(S),b=oe(b,c,e.length,l,n,t);for(var x=0;x<b.length;x++){var _=b[x];if(null!==_&&x>p&&x<h){var C=t.area[3],w=_.y-_.width/2;_.height;r.beginPath();var P=_.color||s.color,L=_.color||s.color;if("none"!==f.linearType){var T=r.createLinearGradient(C,_.y,_.x,_.y);"opacity"==f.linearType?(T.addColorStop(0,u(P,f.linearOpacity)),T.addColorStop(1,u(P,1))):(T.addColorStop(0,u(f.customColor[s.linearIndex],f.linearOpacity)),T.addColorStop(f.colorStop,u(f.customColor[s.linearIndex],f.linearOpacity)),T.addColorStop(1,u(P,1))),P=T}if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var A=C,O=_.width,Y=_.y-_.width/2,D=_.height;f.barBorderCircle&&(f.barBorderRadius=[O/2,O/2,0,0]);var M=(0,i.default)(f.barBorderRadius,4),k=M[0],Z=M[1],E=M[2],R=M[3],N=Math.min(O/2,D/2);k=k>N?N:k,Z=Z>N?N:Z,E=E>N?N:E,R=R>N?N:R,k=k<0?0:k,Z=Z<0?0:Z,E=E<0?0:E,R=R<0?0:R,r.arc(A+R,Y+R,R,-Math.PI,-Math.PI/2),r.arc(_.x-k,Y+k,k,-Math.PI/2,0),r.arc(_.x-Z,Y+O-Z,Z,0,Math.PI/2),r.arc(A+E,Y+O-E,E,Math.PI/2,Math.PI)}else r.moveTo(C,w),r.lineTo(_.x,w),r.lineTo(_.x,w+_.width),r.lineTo(C,w+_.width),r.lineTo(C,w),r.setLineWidth(1),r.setStrokeStyle(L);r.setFillStyle(P),r.closePath(),r.fill()}}break;case"stack":b=ve(m,g,v,a,c,t,n,l,e,o);d.push(b),b=ce(b,c,e.length,l,n,t,e);for(var I=0;I<b.length;I++){var X=b[I];if(null!==X&&I>p&&I<h){r.beginPath();P=X.color||s.color,C=X.x0;r.setFillStyle(P),r.moveTo(C,X.y-X.width/2),r.fillRect(C,X.y-X.width/2,X.height,X.width),r.closePath(),r.fill()}}break}})),!1!==t.dataLabel&&1===o&&e.forEach((function(i,s){var u,l,d;u=[].concat(t.chartData.xAxisData.ranges),d=u.pop(),l=u.shift();var p=i.data;switch(f.type){case"group":var h=ye(p,l,d,a,c,t,n,o);h=oe(h,c,e.length,s,n,t),Oe(h,i,n,r,t);break;case"stack":h=ve(p,l,d,a,c,t,n,s,e,o);Oe(h,i,n,r,t);break}})),{yAxisPoints:a,calPoints:d,eachSpacing:c}}function Be(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=s({},{color:{},average:{}},n.extra.candle);a.color=s({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},a.color),a.average=s({},{show:!1,name:[],day:[],color:r.color},a.average),n.extra.candle=a;var c=n.chartData.xAxisData,u=c.xAxisPoints,l=c.eachSpacing,f=[];i.save();var d=-2,p=u.length+2,y=0,g=n.width+l;return n._scrollDistance_&&0!==n._scrollDistance_&&!0===n.enableScroll&&(i.translate(n._scrollDistance_,0),d=Math.floor(-n._scrollDistance_/l)-2,p=d+n.xAxis.itemCount+4,y=-n._scrollDistance_-2*l+n.area[3],g=y+(n.xAxis.itemCount+4)*l),(a.average.show||t)&&t.forEach((function(e,t){var a,s,c;a=[].concat(n.chartData.yAxisData.ranges[e.index]),s=a.pop(),c=a.shift();for(var f=e.data,d=fe(f,s,c,u,l,n,r,o),p=j(d,e),v=0;v<p.length;v++){var m=p[v];if(i.beginPath(),i.setStrokeStyle(e.color),i.setLineWidth(1),1===m.length)i.moveTo(m[0].x,m[0].y),i.arc(m[0].x,m[0].y,1,0,2*Math.PI);else{i.moveTo(m[0].x,m[0].y);for(var b=0,S=0;S<m.length;S++){var x=m[S];if(0==b&&x.x>y&&(i.moveTo(x.x,x.y),b=1),S>0&&x.x>y&&x.x<g){var _=h(m,S-1);i.bezierCurveTo(_.ctrA.x,_.ctrA.y,_.ctrB.x,_.ctrB.y,x.x,x.y)}}i.moveTo(m[0].x,m[0].y)}i.closePath(),i.stroke()}})),e.forEach((function(e,t){var s,c,h;s=[].concat(n.chartData.yAxisData.ranges[e.index]),c=s.pop(),h=s.shift();var y=e.data,g=le(y,c,h,u,l,n,r,o);f.push(g);for(var v=j(g,e),m=0;m<v[0].length;m++)if(m>d&&m<p){var b=v[0][m];i.beginPath(),y[m][1]-y[m][0]>0?(i.setStrokeStyle(a.color.upLine),i.setFillStyle(a.color.upFill),i.setLineWidth(1*n.pix),i.moveTo(b[3].x,b[3].y),i.lineTo(b[1].x,b[1].y),i.lineTo(b[1].x-l/4,b[1].y),i.lineTo(b[0].x-l/4,b[0].y),i.lineTo(b[0].x,b[0].y),i.lineTo(b[2].x,b[2].y),i.lineTo(b[0].x,b[0].y),i.lineTo(b[0].x+l/4,b[0].y),i.lineTo(b[1].x+l/4,b[1].y),i.lineTo(b[1].x,b[1].y),i.moveTo(b[3].x,b[3].y)):(i.setStrokeStyle(a.color.downLine),i.setFillStyle(a.color.downFill),i.setLineWidth(1*n.pix),i.moveTo(b[3].x,b[3].y),i.lineTo(b[0].x,b[0].y),i.lineTo(b[0].x-l/4,b[0].y),i.lineTo(b[1].x-l/4,b[1].y),i.lineTo(b[1].x,b[1].y),i.lineTo(b[2].x,b[2].y),i.lineTo(b[1].x,b[1].y),i.lineTo(b[1].x+l/4,b[1].y),i.lineTo(b[0].x+l/4,b[0].y),i.lineTo(b[0].x,b[0].y),i.moveTo(b[3].x,b[3].y)),i.closePath(),i.fill(),i.stroke()}})),i.restore(),{xAxisPoints:u,calPoints:f,eachSpacing:l}}function He(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1,activeType:"none"},t.extra.area),a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=t.height-t.area[2],d=[];r.save();var p=0,y=t.width+l;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),p=-t._scrollDistance_-2*l+t.area[3],y=p+(t.xAxis.itemCount+4)*l),e.forEach((function(e,a){var s,g,v;s=[].concat(t.chartData.yAxisData.ranges[e.index]),g=s.pop(),v=s.shift();var m=e.data,b=fe(m,g,v,c,l,t,n,i);d.push(b);for(var S=j(b,e),x=0;x<S.length;x++){var _=S[x];if(r.beginPath(),r.setStrokeStyle(u(e.color,o.opacity)),o.gradient){var C=r.createLinearGradient(0,t.area[0],0,t.height-t.area[2]);C.addColorStop("0",u(e.color,o.opacity)),C.addColorStop("1.0",u("#FFFFFF",.1)),r.setFillStyle(C)}else r.setFillStyle(u(e.color,o.opacity));if(r.setLineWidth(o.width*t.pix),_.length>1){var w=_[0],P=_[_.length-1];r.moveTo(w.x,w.y);var L=0;if("curve"===o.type)for(var T=0;T<_.length;T++){var A=_[T];if(0==L&&A.x>p&&(r.moveTo(A.x,A.y),L=1),T>0&&A.x>p&&A.x<y){var O=h(_,T-1);r.bezierCurveTo(O.ctrA.x,O.ctrA.y,O.ctrB.x,O.ctrB.y,A.x,A.y)}}if("straight"===o.type)for(var Y=0;Y<_.length;Y++){var D=_[Y];0==L&&D.x>p&&(r.moveTo(D.x,D.y),L=1),Y>0&&D.x>p&&D.x<y&&r.lineTo(D.x,D.y)}if("step"===o.type)for(var M=0;M<_.length;M++){var k=_[M];0==L&&k.x>p&&(r.moveTo(k.x,k.y),L=1),M>0&&k.x>p&&k.x<y&&(r.lineTo(k.x,_[M-1].y),r.lineTo(k.x,k.y))}r.lineTo(P.x,f),r.lineTo(w.x,f),r.lineTo(w.x,w.y)}else{var Z=_[0];r.moveTo(Z.x-l/2,Z.y)}if(r.closePath(),r.fill(),o.addLine){if("dash"==e.lineType){var E=e.dashLength?e.dashLength:8;E*=t.pix,r.setLineDash([E,E])}if(r.beginPath(),r.setStrokeStyle(e.color),r.setLineWidth(o.width*t.pix),1===_.length)r.moveTo(_[0].x,_[0].y);else{r.moveTo(_[0].x,_[0].y);var R=0;if("curve"===o.type)for(var N=0;N<_.length;N++){var I=_[N];if(0==R&&I.x>p&&(r.moveTo(I.x,I.y),R=1),N>0&&I.x>p&&I.x<y){var X=h(_,N-1);r.bezierCurveTo(X.ctrA.x,X.ctrA.y,X.ctrB.x,X.ctrB.y,I.x,I.y)}}if("straight"===o.type)for(var J=0;J<_.length;J++){var F=_[J];0==R&&F.x>p&&(r.moveTo(F.x,F.y),R=1),J>0&&F.x>p&&F.x<y&&r.lineTo(F.x,F.y)}if("step"===o.type)for(var B=0;B<_.length;B++){var H=_[B];0==R&&H.x>p&&(r.moveTo(H.x,H.y),R=1),B>0&&H.x>p&&H.x<y&&(r.lineTo(H.x,_[B-1].y),r.lineTo(H.x,H.y))}r.moveTo(_[0].x,_[0].y)}r.stroke(),r.setLineDash([])}}!1!==t.dataPointShape&&Ce(b,e.color,e.pointShape,r,t),we(b,e.color,e.pointShape,r,t,o,a)})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,o){var a,s,u;a=[].concat(t.chartData.yAxisData.ranges[e.index]),s=a.pop(),u=a.shift();var f=e.data,d=fe(f,s,u,c,l,t,n,i);Le(d,e,n,r,t)})),r.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:l}}function je(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=(s({},{type:"circle"},t.extra.scatter),t.chartData.xAxisData),a=o.xAxisPoints,c=o.eachSpacing,u=[];r.save();var l=0;t.width;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),l=-t._scrollDistance_-2*c+t.area[3],l+(t.xAxis.itemCount+4)*c),e.forEach((function(e,o){var s,u,l;s=[].concat(t.chartData.yAxisData.ranges[e.index]),u=s.pop(),l=s.shift();var f=e.data,d=fe(f,u,l,a,c,t,n,i);r.beginPath(),r.setStrokeStyle(e.color),r.setFillStyle(e.color),r.setLineWidth(1*t.pix);var p=e.pointShape;if("diamond"===p)d.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y),r.lineTo(e.x,e.y+4.5),r.lineTo(e.x+4.5,e.y),r.lineTo(e.x,e.y-4.5))}));else if("circle"===p)d.forEach((function(e,n){null!==e&&(r.moveTo(e.x+2.5*t.pix,e.y),r.arc(e.x,e.y,3*t.pix,0,2*Math.PI,!1))}));else if("square"===p)d.forEach((function(e,t){null!==e&&(r.moveTo(e.x-3.5,e.y-3.5),r.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===p)d.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y+4.5),r.lineTo(e.x+4.5,e.y+4.5),r.lineTo(e.x,e.y-4.5))}));else if("triangle"===p)return;r.closePath(),r.fill(),r.stroke()})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,o){var s,u,l;s=[].concat(t.chartData.yAxisData.ranges[e.index]),u=s.pop(),l=s.shift();var f=e.data,d=fe(f,u,l,a,c,t,n,i);Le(d,e,n,r,t)})),r.restore(),{xAxisPoints:a,calPoints:u,eachSpacing:c}}function Ge(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{opacity:1,border:2},t.extra.bubble),a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=[];r.save();var d=0;t.width;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),d=-t._scrollDistance_-2*l+t.area[3],d+(t.xAxis.itemCount+4)*l),e.forEach((function(e,a){var s,f,d;s=[].concat(t.chartData.yAxisData.ranges[e.index]),f=s.pop(),d=s.shift();var p=e.data,h=fe(p,f,d,c,l,t,n,i);r.beginPath(),r.setStrokeStyle(e.color),r.setLineWidth(o.border*t.pix),r.setFillStyle(u(e.color,o.opacity)),h.forEach((function(e,n){r.moveTo(e.x+e.r,e.y),r.arc(e.x,e.y,e.r*t.pix,0,2*Math.PI,!1)})),r.closePath(),r.fill(),r.stroke(),!1!==t.dataLabel&&1===i&&h.forEach((function(i,o){r.beginPath();var a=e.textSize*t.pix||n.fontSize;r.setFontSize(a),r.setFillStyle(e.textColor||"#FFFFFF"),r.setTextAlign("center"),r.fillText(String(i.t),i.x,i.y+a/2),r.closePath(),r.stroke(),r.setTextAlign("left")}))})),r.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:l}}function Qe(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"straight",width:2,activeType:"none",linearType:"none",onShadow:!1,animation:"vertical"},t.extra.line);o.width*=t.pix;var a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=[];r.save();var d=0,p=t.width+l;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),d=-t._scrollDistance_-2*l+t.area[3],p=d+(t.xAxis.itemCount+4)*l),e.forEach((function(e,a){var s,y,g;r.beginPath(),r.setStrokeStyle(e.color),r.moveTo(-1e4,-1e4),r.lineTo(-10001,-10001),r.stroke(),s=[].concat(t.chartData.yAxisData.ranges[e.index]),y=s.pop(),g=s.shift();var v=e.data,m=de(v,y,g,c,l,t,n,o,i);f.push(m);var b=j(m,e);if("dash"==e.lineType){var S=e.dashLength?e.dashLength:8;S*=t.pix,r.setLineDash([S,S])}r.beginPath();var x=e.color;if("none"!==o.linearType&&e.linearColor&&e.linearColor.length>0){for(var _=r.createLinearGradient(t.chartData.xAxisData.startX,t.height/2,t.chartData.xAxisData.endX,t.height/2),C=0;C<e.linearColor.length;C++)_.addColorStop(e.linearColor[C][0],u(e.linearColor[C][1],1));x=_}r.setStrokeStyle(x),1==o.onShadow&&e.setShadow&&e.setShadow.length>0?r.setShadow(e.setShadow[0],e.setShadow[1],e.setShadow[2],e.setShadow[3]):r.setShadow(0,0,0,"rgba(0,0,0,0)"),r.setLineWidth(o.width),b.forEach((function(e,t){if(1===e.length)r.moveTo(e[0].x,e[0].y);else{r.moveTo(e[0].x,e[0].y);var n=0;if("curve"===o.type)for(var i=0;i<e.length;i++){var a=e[i];if(0==n&&a.x>d&&(r.moveTo(a.x,a.y),n=1),i>0&&a.x>d&&a.x<p){var s=h(e,i-1);r.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,a.x,a.y)}}if("straight"===o.type)for(var c=0;c<e.length;c++){var u=e[c];0==n&&u.x>d&&(r.moveTo(u.x,u.y),n=1),c>0&&u.x>d&&u.x<p&&r.lineTo(u.x,u.y)}if("step"===o.type)for(var l=0;l<e.length;l++){var f=e[l];0==n&&f.x>d&&(r.moveTo(f.x,f.y),n=1),l>0&&f.x>d&&f.x<p&&(r.lineTo(f.x,e[l-1].y),r.lineTo(f.x,f.y))}r.moveTo(e[0].x,e[0].y)}})),r.stroke(),r.setLineDash([]),!1!==t.dataPointShape&&Ce(m,e.color,e.pointShape,r,t),we(m,e.color,e.pointShape,r,t,o)})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,o){var a,s,u;a=[].concat(t.chartData.yAxisData.ranges[e.index]),s=a.pop(),u=a.shift();var f=e.data,d=fe(f,s,u,c,l,t,n,i);Le(d,e,n,r,t)})),r.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:l}}function We(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=s({},{width:l/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mix.column),d=s({},{opacity:.2,gradient:!1},t.extra.mix.area),p=s({},{width:2},t.extra.mix.line),y=t.height-t.area[2],g=[],v=0,m=0;e.forEach((function(e,t){"column"==e.type&&(m+=1)})),r.save();var S=-2,x=c.length+2,_=0,C=t.width+l;if(t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),S=Math.floor(-t._scrollDistance_/l)-2,x=S+t.xAxis.itemCount+4,_=-t._scrollDistance_-2*l+t.area[3],C=_+(t.xAxis.itemCount+4)*l),f.customColor=b(f.linearType,f.customColor,e,n),e.forEach((function(e,a){var s,b,w;s=[].concat(t.chartData.yAxisData.ranges[e.index]),b=s.pop(),w=s.shift();var P=e.data,L=fe(P,b,w,c,l,t,n,o);if(g.push(L),"column"==e.type){L=ie(L,l,m,v,n,t);for(var T=0;T<L.length;T++){var A=L[T];if(null!==A&&T>S&&T<x){var O=A.x-A.width/2;t.height,A.y,t.area[2];r.beginPath();var Y=A.color||e.color,D=A.color||e.color;if("none"!==f.linearType){var M=r.createLinearGradient(O,A.y,O,t.height-t.area[2]);"opacity"==f.linearType?(M.addColorStop(0,u(Y,f.linearOpacity)),M.addColorStop(1,u(Y,1))):(M.addColorStop(0,u(f.customColor[e.linearIndex],f.linearOpacity)),M.addColorStop(f.colorStop,u(f.customColor[e.linearIndex],f.linearOpacity)),M.addColorStop(1,u(Y,1))),Y=M}if(f.barBorderRadius&&4===f.barBorderRadius.length||f.barBorderCircle){var k=O,Z=A.y,E=A.width,R=t.height-t.area[2]-A.y;f.barBorderCircle&&(f.barBorderRadius=[E/2,E/2,0,0]);var N=(0,i.default)(f.barBorderRadius,4),I=N[0],X=N[1],J=N[2],F=N[3],B=Math.min(E/2,R/2);I=I>B?B:I,X=X>B?B:X,J=J>B?B:J,F=F>B?B:F,I=I<0?0:I,X=X<0?0:X,J=J<0?0:J,F=F<0?0:F,r.arc(k+I,Z+I,I,-Math.PI,-Math.PI/2),r.arc(k+E-X,Z+X,X,-Math.PI/2,0),r.arc(k+E-J,Z+R-J,J,0,Math.PI/2),r.arc(k+F,Z+R-F,F,Math.PI/2,Math.PI)}else r.moveTo(O,A.y),r.lineTo(O+A.width,A.y),r.lineTo(O+A.width,t.height-t.area[2]),r.lineTo(O,t.height-t.area[2]),r.lineTo(O,A.y),r.setLineWidth(1),r.setStrokeStyle(D);r.setFillStyle(Y),r.closePath(),r.fill()}}v+=1}if("area"==e.type)for(var H=j(L,e),G=0;G<H.length;G++){var Q=H[G];if(r.beginPath(),r.setStrokeStyle(e.color),r.setStrokeStyle(u(e.color,d.opacity)),d.gradient){var W=r.createLinearGradient(0,t.area[0],0,t.height-t.area[2]);W.addColorStop("0",u(e.color,d.opacity)),W.addColorStop("1.0",u("#FFFFFF",.1)),r.setFillStyle(W)}else r.setFillStyle(u(e.color,d.opacity));if(r.setLineWidth(2*t.pix),Q.length>1){var U=Q[0],K=Q[Q.length-1];r.moveTo(U.x,U.y);var $=0;if("curve"===e.style)for(var z=0;z<Q.length;z++){var q=Q[z];if(0==$&&q.x>_&&(r.moveTo(q.x,q.y),$=1),z>0&&q.x>_&&q.x<C){var V=h(Q,z-1);r.bezierCurveTo(V.ctrA.x,V.ctrA.y,V.ctrB.x,V.ctrB.y,q.x,q.y)}}else for(var ee=0;ee<Q.length;ee++){var te=Q[ee];0==$&&te.x>_&&(r.moveTo(te.x,te.y),$=1),ee>0&&te.x>_&&te.x<C&&r.lineTo(te.x,te.y)}r.lineTo(K.x,y),r.lineTo(U.x,y),r.lineTo(U.x,U.y)}else{var ne=Q[0];r.moveTo(ne.x-l/2,ne.y)}r.closePath(),r.fill()}if("line"==e.type){var re=j(L,e);re.forEach((function(n,i){if("dash"==e.lineType){var o=e.dashLength?e.dashLength:8;o*=t.pix,r.setLineDash([o,o])}if(r.beginPath(),r.setStrokeStyle(e.color),r.setLineWidth(p.width*t.pix),1===n.length)r.moveTo(n[0].x,n[0].y);else{r.moveTo(n[0].x,n[0].y);var a=0;if("curve"==e.style)for(var s=0;s<n.length;s++){var c=n[s];if(0==a&&c.x>_&&(r.moveTo(c.x,c.y),a=1),s>0&&c.x>_&&c.x<C){var u=h(n,s-1);r.bezierCurveTo(u.ctrA.x,u.ctrA.y,u.ctrB.x,u.ctrB.y,c.x,c.y)}}else for(var l=0;l<n.length;l++){var f=n[l];0==a&&f.x>_&&(r.moveTo(f.x,f.y),a=1),l>0&&f.x>_&&f.x<C&&r.lineTo(f.x,f.y)}r.moveTo(n[0].x,n[0].y)}r.stroke(),r.setLineDash([])}))}"point"==e.type&&(e.addPoint=!0),1==e.addPoint&&"column"!==e.type&&Ce(L,e.color,e.pointShape,r,t)})),!1!==t.dataLabel&&1===o){v=0;e.forEach((function(e,i){var a,s,u;a=[].concat(t.chartData.yAxisData.ranges[e.index]),s=a.pop(),u=a.shift();var f=e.data,d=fe(f,s,u,c,l,t,n,o);"column"!==e.type?Le(d,e,n,r,t):(d=ie(d,l,m,v,n,t),Le(d,e,n,r,t),v+=1)}))}return r.restore(),{xAxisPoints:c,calPoints:g,eachSpacing:l}}function Ue(e,t,n,r,i,o){var a=e.extra.tooltip||{};a.horizentalLine&&e.tooltip&&1===r&&("line"==e.type||"area"==e.type||"column"==e.type||"mount"==e.type||"candle"==e.type||"mix"==e.type)&&Ee(e,t,n,i,o),n.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&n.translate(e._scrollDistance_,0),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===r&&Ie(e.tooltip.textList,e.tooltip.offset,e,t,n,i,o),n.restore()}function Ke(e,t,n,r){var i=t.chartData.xAxisData,o=i.xAxisPoints,a=i.startX,s=i.endX,c=i.eachSpacing,u="center";"bar"!=t.type&&"line"!=t.type&&"area"!=t.type&&"scatter"!=t.type&&"bubble"!=t.type||(u=t.xAxis.boundaryGap);var l=t.height-t.area[2],f=t.area[0];if(t.enableScroll&&t.xAxis.scrollShow){var d=t.height-t.area[2]+n.xAxisHeight,p=s-a,h=c*(o.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),h+=(t.extra.mount.widthRatio-1)*c);var y=p*p/h,g=0;t._scrollDistance_&&(g=-t._scrollDistance_*p/h),r.beginPath(),r.setLineCap("round"),r.setLineWidth(6*t.pix),r.setStrokeStyle(t.xAxis.scrollBackgroundColor||"#EFEBEF"),r.moveTo(a,d),r.lineTo(s,d),r.stroke(),r.closePath(),r.beginPath(),r.setLineCap("round"),r.setLineWidth(6*t.pix),r.setStrokeStyle(t.xAxis.scrollColor||"#A6A6A6"),r.moveTo(a+g,d),r.lineTo(a+g+y,d),r.stroke(),r.closePath(),r.setLineCap("butt")}if(r.save(),t._scrollDistance_&&0!==t._scrollDistance_&&r.translate(t._scrollDistance_,0),!0===t.xAxis.calibration&&(r.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*t.pix),o.forEach((function(e,n){n>0&&(r.beginPath(),r.moveTo(e-c/2,l),r.lineTo(e-c/2,l+3*t.pix),r.closePath(),r.stroke())}))),!0!==t.xAxis.disableGrid&&(r.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*t.pix),"dash"==t.xAxis.gridType&&r.setLineDash([t.xAxis.dashLength*t.pix,t.xAxis.dashLength*t.pix]),t.xAxis.gridEval=t.xAxis.gridEval||1,o.forEach((function(e,n){n%t.xAxis.gridEval==0&&(r.beginPath(),r.moveTo(e,l),r.lineTo(e,f),r.stroke())})),r.setLineDash([])),!0!==t.xAxis.disabled){var v=e.length;t.xAxis.labelCount&&(v=t.xAxis.itemCount?Math.ceil(e.length/t.xAxis.itemCount*t.xAxis.labelCount):t.xAxis.labelCount,v-=1);for(var m=Math.ceil(e.length/v),b=[],S=e.length,_=0;_<S;_++)_%m!==0?b.push(""):b.push(e[_]);b[S-1]=e[S-1];var C=t.xAxis.fontSize*t.pix||n.fontSize;0===n._xAxisTextAngle_?b.forEach((function(e,n){var i=t.xAxis.formatter?t.xAxis.formatter(e,n,t):e,a=-x(String(i),C,r)/2;"center"==u&&(a+=c/2);t.xAxis.scrollShow&&t.pix;var s=t._scrollDistance_||0,f="center"==u?o[n]+c/2:o[n];f-Math.abs(s)>=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1&&(r.beginPath(),r.setFontSize(C),r.setFillStyle(t.xAxis.fontColor||t.fontColor),r.fillText(String(i),o[n]+a,l+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.fontSize)*t.pix/2+t.xAxis.fontSize*t.pix),r.closePath(),r.stroke())})):b.forEach((function(e,i){var a=t.xAxis.formatter?t.xAxis.formatter(e):e,s=t._scrollDistance_||0,f="center"==u?o[i]+c/2:o[i];if(f-Math.abs(s)>=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1){r.save(),r.beginPath(),r.setFontSize(C),r.setFillStyle(t.xAxis.fontColor||t.fontColor);var d=x(String(a),C,r),p=o[i];"center"==u&&(p=o[i]+c/2);t.xAxis.scrollShow&&6*t.pix;var h=l+t.xAxis.marginTop*t.pix+C-C*Math.abs(Math.sin(n._xAxisTextAngle_));t.xAxis.rotateAngle<0?(p-=C/2,d=0):(p+=C/2,d=-d),r.translate(p,h),r.rotate(-1*n._xAxisTextAngle_),r.fillText(String(a),d,0),r.closePath(),r.stroke(),r.restore()}}))}r.restore(),t.xAxis.title&&(r.beginPath(),r.setFontSize(t.xAxis.titleFontSize*t.pix),r.setFillStyle(t.xAxis.titleFontColor),r.fillText(String(t.xAxis.title),t.width-t.area[1]+t.xAxis.titleOffsetX*t.pix,t.height-t.area[2]+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.titleFontSize)*t.pix/2+(t.xAxis.titleFontSize+t.xAxis.titleOffsetY)*t.pix),r.closePath(),r.stroke()),t.xAxis.axisLine&&(r.beginPath(),r.setStrokeStyle(t.xAxis.axisLineColor),r.setLineWidth(1*t.pix),r.moveTo(a,t.height-t.area[2]),r.lineTo(s,t.height-t.area[2]),r.stroke())}function $e(e,t,n,r){if(!0!==t.yAxis.disableGrid){var i=t.height-t.area[0]-t.area[2],o=i/t.yAxis.splitNumber,a=t.area[3],s=t.chartData.xAxisData.xAxisPoints,c=t.chartData.xAxisData.eachSpacing,u=c*(s.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),u+=(t.extra.mount.widthRatio-1)*c);var l=a+u,f=[],d=1;!1===t.xAxis.axisLine&&(d=0);for(var p=d;p<t.yAxis.splitNumber+1;p++)f.push(t.height-t.area[2]-o*p);r.save(),t._scrollDistance_&&0!==t._scrollDistance_&&r.translate(t._scrollDistance_,0),"dash"==t.yAxis.gridType&&r.setLineDash([t.yAxis.dashLength*t.pix,t.yAxis.dashLength*t.pix]),r.setStrokeStyle(t.yAxis.gridColor),r.setLineWidth(1*t.pix),f.forEach((function(e,t){r.beginPath(),r.moveTo(a,e),r.lineTo(l,e),r.stroke()})),r.setLineDash([]),r.restore()}}function ze(e,t,n,r){if(!0!==t.yAxis.disabled){var i=t.height-t.area[0]-t.area[2],o=i/t.yAxis.splitNumber,a=t.area[3],s=t.width-t.area[1],c=t.height-t.area[2];r.beginPath(),r.setFillStyle(t.background),1==t.enableScroll&&t.xAxis.scrollPosition&&"left"!==t.xAxis.scrollPosition&&r.fillRect(0,0,a,c+2*t.pix),1==t.enableScroll&&t.xAxis.scrollPosition&&"right"!==t.xAxis.scrollPosition&&r.fillRect(s,0,t.width,c+2*t.pix),r.closePath(),r.stroke();var u=t.area[3],l=t.width-t.area[1],f=t.area[3]+(t.width-t.area[1]-t.area[3])/2;if(t.yAxis.data)for(var d=function(e){var a=t.yAxis.data[e];if(h=[],"categories"===a.type)for(var s=0;s<=a.categories.length;s++)h.push(t.area[0]+i/a.categories.length/2+i/a.categories.length*s);else for(var c=0;c<=t.yAxis.splitNumber;c++)h.push(t.area[0]+o*c);if(!0!==a.disabled){var d=t.chartData.yAxisData.rangesFormat[e],p=a.fontSize?a.fontSize*t.pix:n.fontSize,y=t.chartData.yAxisData.yAxisWidth[e],g=a.textAlign||"right";if(d.forEach((function(e,n){var i=h[n];r.beginPath(),r.setFontSize(p),r.setLineWidth(1*t.pix),r.setStrokeStyle(a.axisLineColor||"#cccccc"),r.setFillStyle(a.fontColor||t.fontColor);var o=0,s=4*t.pix;if("left"==y.position){switch(1==a.calibration&&(r.moveTo(u,i),r.lineTo(u-3*t.pix,i),s+=3*t.pix),g){case"left":r.setTextAlign("left"),o=u-y.width;break;case"right":r.setTextAlign("right"),o=u-s;break;default:r.setTextAlign("center"),o=u-y.width/2}r.fillText(String(e),o,i+p/2-3*t.pix)}else if("right"==y.position){switch(1==a.calibration&&(r.moveTo(l,i),r.lineTo(l+3*t.pix,i),s+=3*t.pix),g){case"left":r.setTextAlign("left"),o=l+s;break;case"right":r.setTextAlign("right"),o=l+y.width;break;default:r.setTextAlign("center"),o=l+y.width/2}r.fillText(String(e),o,i+p/2-3*t.pix)}else if("center"==y.position){switch(1==a.calibration&&(r.moveTo(f,i),r.lineTo(f-3*t.pix,i),s+=3*t.pix),g){case"left":r.setTextAlign("left"),o=f-y.width;break;case"right":r.setTextAlign("right"),o=f-s;break;default:r.setTextAlign("center"),o=f-y.width/2}r.fillText(String(e),o,i+p/2-3*t.pix)}r.closePath(),r.stroke(),r.setTextAlign("left")})),!1!==a.axisLine&&(r.beginPath(),r.setStrokeStyle(a.axisLineColor||"#cccccc"),r.setLineWidth(1*t.pix),"left"==y.position?(r.moveTo(u,t.height-t.area[2]),r.lineTo(u,t.area[0])):"right"==y.position?(r.moveTo(l,t.height-t.area[2]),r.lineTo(l,t.area[0])):"center"==y.position&&(r.moveTo(f,t.height-t.area[2]),r.lineTo(f,t.area[0])),r.stroke()),t.yAxis.showTitle){var v=a.titleFontSize*t.pix||n.fontSize,m=a.title;r.beginPath(),r.setFontSize(v),r.setFillStyle(a.titleFontColor||t.fontColor),"left"==y.position?r.fillText(m,u-x(m,v,r)/2+(a.titleOffsetX||0),t.area[0]-(10-(a.titleOffsetY||0))*t.pix):"right"==y.position?r.fillText(m,l-x(m,v,r)/2+(a.titleOffsetX||0),t.area[0]-(10-(a.titleOffsetY||0))*t.pix):"center"==y.position&&r.fillText(m,f-x(m,v,r)/2+(a.titleOffsetX||0),t.area[0]-(10-(a.titleOffsetY||0))*t.pix),r.closePath(),r.stroke()}"left"==y.position?u-=y.width+t.yAxis.padding*t.pix:l+=y.width+t.yAxis.padding*t.pix}},p=0;p<t.yAxis.data.length;p++){var h;d(p)}}}function qe(e,t,n,r,i){if(!1!==t.legend.show){var o=i.legendData,a=o.points,s=o.area,c=t.legend.padding*t.pix,u=t.legend.fontSize*t.pix,l=15*t.pix,f=5*t.pix,d=t.legend.itemGap*t.pix,p=Math.max(t.legend.lineHeight*t.pix,u);r.beginPath(),r.setLineWidth(t.legend.borderWidth*t.pix),r.setStrokeStyle(t.legend.borderColor),r.setFillStyle(t.legend.backgroundColor),r.moveTo(s.start.x,s.start.y),r.rect(s.start.x,s.start.y,s.width,s.height),r.closePath(),r.fill(),r.stroke(),a.forEach((function(e,i){var a=0,h=0;a=o.widthArr[i],h=o.heightArr[i];var y=0,g=0;if("top"==t.legend.position||"bottom"==t.legend.position){switch(t.legend.float){case"left":y=s.start.x+c;break;case"right":y=s.start.x+s.width-a;break;default:y=s.start.x+(s.width-a)/2}g=s.start.y+c+i*p}else a=0==i?0:o.widthArr[i-1],y=s.start.x+c+a,g=s.start.y+c+(s.height-h)/2;r.setFontSize(n.fontSize);for(var v=0;v<e.length;v++){var m=e[v];switch(m.area=[0,0,0,0],m.area[0]=y,m.area[1]=g,m.area[3]=g+p,r.beginPath(),r.setLineWidth(1*t.pix),r.setStrokeStyle(m.show?m.color:t.legend.hiddenColor),r.setFillStyle(m.show?m.color:t.legend.hiddenColor),m.legendShape){case"line":r.moveTo(y,g+.5*p-2*t.pix),r.fillRect(y,g+.5*p-2*t.pix,15*t.pix,4*t.pix);break;case"triangle":r.moveTo(y+7.5*t.pix,g+.5*p-5*t.pix),r.lineTo(y+2.5*t.pix,g+.5*p+5*t.pix),r.lineTo(y+12.5*t.pix,g+.5*p+5*t.pix),r.lineTo(y+7.5*t.pix,g+.5*p-5*t.pix);break;case"diamond":r.moveTo(y+7.5*t.pix,g+.5*p-5*t.pix),r.lineTo(y+2.5*t.pix,g+.5*p),r.lineTo(y+7.5*t.pix,g+.5*p+5*t.pix),r.lineTo(y+12.5*t.pix,g+.5*p),r.lineTo(y+7.5*t.pix,g+.5*p-5*t.pix);break;case"circle":r.moveTo(y+7.5*t.pix,g+.5*p),r.arc(y+7.5*t.pix,g+.5*p,5*t.pix,0,2*Math.PI);break;case"rect":r.moveTo(y,g+.5*p-5*t.pix),r.fillRect(y,g+.5*p-5*t.pix,15*t.pix,10*t.pix);break;case"square":r.moveTo(y+5*t.pix,g+.5*p-5*t.pix),r.fillRect(y+5*t.pix,g+.5*p-5*t.pix,10*t.pix,10*t.pix);break;case"none":break;default:r.moveTo(y,g+.5*p-5*t.pix),r.fillRect(y,g+.5*p-5*t.pix,15*t.pix,10*t.pix)}r.closePath(),r.fill(),r.stroke(),y+=l+f;var b=.5*p+.5*u-2,S=m.legendText?m.legendText:m.name;r.beginPath(),r.setFontSize(u),r.setFillStyle(m.show?t.legend.fontColor:t.legend.hiddenColor),r.fillText(S,y,g+b),r.closePath(),r.stroke(),"top"==t.legend.position||"bottom"==t.legend.position?(y+=x(S,u,r)+d,m.area[2]=y):(m.area[2]=y+x(S,u,r)+d,y-=l+f,g+=p)}}))}}function Ve(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==t.type?t.extra.pie:t.extra.ring),a={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2};0==n.pieChartLinePadding&&(n.pieChartLinePadding=o.activeRadius*t.pix);var c=Math.min((t.width-t.area[1]-t.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding);c=c<10?10:c,o.customRadius>0&&(c=o.customRadius*t.pix),e=$(e,c,i);var l=o.activeRadius*t.pix;if(o.customColor=b(o.linearType,o.customColor,e,n),e=e.map((function(e){return e._start_+=o.offsetAngle*Math.PI/180,e})),e.forEach((function(e,n){t.tooltip&&t.tooltip.index==n&&(r.beginPath(),r.setFillStyle(u(e.color,o.activeOpacity||.5)),r.moveTo(a.x,a.y),r.arc(a.x,a.y,e._radius_+l,e._start_,e._start_+2*e._proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.lineJoin="round",r.setStrokeStyle(o.borderColor);var i,s=e.color;"custom"==o.linearType&&(i=r.createCircularGradient?r.createCircularGradient(a.x,a.y,e._radius_):r.createRadialGradient(a.x,a.y,0,a.x,a.y,e._radius_),i.addColorStop(0,u(o.customColor[e.linearIndex],1)),i.addColorStop(1,u(e.color,1)),s=i);r.setFillStyle(s),r.moveTo(a.x,a.y),r.arc(a.x,a.y,e._radius_,e._start_,e._start_+2*e._proportion_*Math.PI),r.closePath(),r.fill(),1==o.border&&r.stroke()})),"ring"===t.type){var f=.6*c;"number"===typeof o.ringWidth&&o.ringWidth>0&&(f=Math.max(0,c-o.ringWidth*t.pix)),r.beginPath(),r.setFillStyle(o.centerColor),r.moveTo(a.x,a.y),r.arc(a.x,a.y,f,0,2*Math.PI),r.closePath(),r.fill()}return!1!==t.dataLabel&&1===i&&Me(e,t,n,r,c,a),1===i&&"ring"===t.type&&Pe(t,n,r,a),{center:a,radius:c,series:e}}function et(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},t.extra.rose);0==n.pieChartLinePadding&&(n.pieChartLinePadding=o.activeRadius*t.pix);var a={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},c=Math.min((t.width-t.area[1]-t.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding);c=c<10?10:c;var l=o.minRadius||.5*c;c<l&&(c=l+10),e=q(e,o.type,l,c,i);var f=o.activeRadius*t.pix;return o.customColor=b(o.linearType,o.customColor,e,n),e=e.map((function(e){return e._start_+=(o.offsetAngle||0)*Math.PI/180,e})),e.forEach((function(e,n){t.tooltip&&t.tooltip.index==n&&(r.beginPath(),r.setFillStyle(u(e.color,o.activeOpacity||.5)),r.moveTo(a.x,a.y),r.arc(a.x,a.y,f+e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.lineJoin="round",r.setStrokeStyle(o.borderColor);var i,s=e.color;"custom"==o.linearType&&(i=r.createCircularGradient?r.createCircularGradient(a.x,a.y,e._radius_):r.createRadialGradient(a.x,a.y,0,a.x,a.y,e._radius_),i.addColorStop(0,u(o.customColor[e.linearIndex],1)),i.addColorStop(1,u(e.color,1)),s=i);r.setFillStyle(s),r.moveTo(a.x,a.y),r.arc(a.x,a.y,e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),r.closePath(),r.fill(),1==o.border&&r.stroke()})),!1!==t.dataLabel&&1===i&&Me(e,t,n,r,c,a),{center:a,radius:c,series:e}}function tt(e,t,n,r){var i,o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,c=s({},{startAngle:.75,endAngle:.25,type:"default",direction:"cw",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},t.extra.arcbar);e=V(e,c,a),i=c.centerX||c.centerY?{x:c.centerX?c.centerX:t.width/2,y:c.centerY?c.centerY:t.height/2}:{x:t.width/2,y:t.height/2},c.radius?o=c.radius:(o=Math.min(i.x,i.y),o-=5*t.pix,o-=c.width/2),o=o<10?10:o,c.customColor=b(c.linearType,c.customColor,e,n);for(var l=0;l<e.length;l++){var f=e[l];r.setLineWidth(c.width*t.pix),r.setStrokeStyle(c.backgroundColor||"#E9E9E9"),r.setLineCap(c.lineCap),r.beginPath(),"default"==c.type?r.arc(i.x,i.y,o-(c.width*t.pix+c.gap*t.pix)*l,c.startAngle*Math.PI,c.endAngle*Math.PI,"ccw"==c.direction):r.arc(i.x,i.y,o-(c.width*t.pix+c.gap*t.pix)*l,0,2*Math.PI,"ccw"==c.direction),r.stroke();var d=f.color;if("custom"==c.linearType){var p=r.createLinearGradient(i.x-o,i.y,i.x+o,i.y);p.addColorStop(1,u(c.customColor[f.linearIndex],1)),p.addColorStop(0,u(f.color,1)),d=p}r.setLineWidth(c.width*t.pix),r.setStrokeStyle(d),r.setLineCap(c.lineCap),r.beginPath(),r.arc(i.x,i.y,o-(c.width*t.pix+c.gap*t.pix)*l,c.startAngle*Math.PI,f._proportion_*Math.PI,"ccw"==c.direction),r.stroke()}return Pe(t,n,r,i),{center:i,radius:o,series:e}}function nt(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=s({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},n.extra.gauge);void 0==a.oldAngle&&(a.oldAngle=a.startAngle),void 0==a.oldData&&(a.oldData=0),e=te(e,a.startAngle,a.endAngle);var c={x:n.width/2,y:n.height/2},l=Math.min(c.x,c.y);l-=5*n.pix,l-=a.width/2,l=l<10?10:l;var f=l-a.width,d=0;if("progress"==a.type){var p=l-3*a.width;i.beginPath();var h=i.createLinearGradient(c.x,c.y-p,c.x,c.y+p);h.addColorStop("0",u(t[0].color,.3)),h.addColorStop("1.0",u("#FFFFFF",.1)),i.setFillStyle(h),i.arc(c.x,c.y,p,0,2*Math.PI,!1),i.fill(),i.setLineWidth(a.width),i.setStrokeStyle(u(t[0].color,.3)),i.setLineCap("round"),i.beginPath(),i.arc(c.x,c.y,f,a.startAngle*Math.PI,a.endAngle*Math.PI,!1),i.stroke(),d=a.endAngle<a.startAngle?2+a.endAngle-a.startAngle:a.startAngle-a.endAngle;a.splitLine.splitNumber;var y=d/a.splitLine.splitNumber/a.splitLine.childNumber,g=-l-.5*a.width-a.splitLine.fixRadius,v=-l-a.width-a.splitLine.fixRadius+a.splitLine.width;i.save(),i.translate(c.x,c.y),i.rotate((a.startAngle-1)*Math.PI);for(var m=a.splitLine.splitNumber*a.splitLine.childNumber+1,b=t[0].data*o,S=0;S<m;S++)i.beginPath(),b>S/m?i.setStrokeStyle(u(t[0].color,1)):i.setStrokeStyle(u(t[0].color,.3)),i.setLineWidth(3*n.pix),i.moveTo(g,0),i.lineTo(v,0),i.stroke(),i.rotate(y*Math.PI);i.restore(),t=ee(t,a,o),i.setLineWidth(a.width),i.setStrokeStyle(t[0].color),i.setLineCap("round"),i.beginPath(),i.arc(c.x,c.y,f,a.startAngle*Math.PI,t[0]._proportion_*Math.PI,!1),i.stroke();var x=l-2.5*a.width;i.save(),i.translate(c.x,c.y),i.rotate((t[0]._proportion_-1)*Math.PI),i.beginPath(),i.setLineWidth(a.width/3);var _=i.createLinearGradient(0,.6*-x,0,.6*x);_.addColorStop("0",u("#FFFFFF",0)),_.addColorStop("0.5",u(t[0].color,1)),_.addColorStop("1.0",u("#FFFFFF",0)),i.setStrokeStyle(_),i.arc(0,0,x,.85*Math.PI,1.15*Math.PI,!1),i.stroke(),i.beginPath(),i.setLineWidth(1),i.setStrokeStyle(t[0].color),i.setFillStyle(t[0].color),i.moveTo(-x-a.width/3/2,-4),i.lineTo(-x-a.width/3/2-4,0),i.lineTo(-x-a.width/3/2,4),i.lineTo(-x-a.width/3/2,-4),i.stroke(),i.fill(),i.restore()}else{i.setLineWidth(a.width),i.setLineCap("butt");for(var C=0;C<e.length;C++){var w=e[C];i.beginPath(),i.setStrokeStyle(w.color),i.arc(c.x,c.y,l,w._startAngle_*Math.PI,w._endAngle_*Math.PI,!1),i.stroke()}i.save(),d=a.endAngle<a.startAngle?2+a.endAngle-a.startAngle:a.startAngle-a.endAngle;var P=d/a.splitLine.splitNumber,L=d/a.splitLine.splitNumber/a.splitLine.childNumber,T=-l-.5*a.width-a.splitLine.fixRadius,A=-l-.5*a.width-a.splitLine.fixRadius+a.splitLine.width,O=-l-.5*a.width-a.splitLine.fixRadius+a.splitLine.childWidth;i.translate(c.x,c.y),i.rotate((a.startAngle-1)*Math.PI);for(var Y=0;Y<a.splitLine.splitNumber+1;Y++)i.beginPath(),i.setStrokeStyle(a.splitLine.color),i.setLineWidth(2*n.pix),i.moveTo(T,0),i.lineTo(A,0),i.stroke(),i.rotate(P*Math.PI);i.restore(),i.save(),i.translate(c.x,c.y),i.rotate((a.startAngle-1)*Math.PI);for(var D=0;D<a.splitLine.splitNumber*a.splitLine.childNumber+1;D++)i.beginPath(),i.setStrokeStyle(a.splitLine.color),i.setLineWidth(1*n.pix),i.moveTo(T,0),i.lineTo(O,0),i.stroke(),i.rotate(L*Math.PI);i.restore(),t=ne(t,e,a,o);for(var M=0;M<t.length;M++){var k=t[M];i.save(),i.translate(c.x,c.y),i.rotate((k._proportion_-1)*Math.PI),i.beginPath(),i.setFillStyle(k.color),i.moveTo(a.pointer.width,0),i.lineTo(0,-a.pointer.width/2),i.lineTo(-f,0),i.lineTo(0,a.pointer.width/2),i.lineTo(a.pointer.width,0),i.closePath(),i.fill(),i.beginPath(),i.setFillStyle("#FFFFFF"),i.arc(0,0,a.pointer.width/6,0,2*Math.PI,!1),i.fill(),i.restore()}!1!==n.dataLabel&&Ye(a,l,c,n,r,i)}return Pe(n,r,i,c),1===o&&"gauge"===n.type&&(n.extra.gauge.oldAngle=t[0]._proportion_,n.extra.gauge.oldData=t[0].data),{center:c,radius:l,innerRadius:f,categories:e,totalAngle:d}}function rt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelShow:!0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},t.extra.radar),a=T(t.categories.length),c={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},l=(t.width-t.area[1]-t.area[3])/2,f=(t.height-t.area[0]-t.area[2])/2,d=Math.min(l-(L(t.categories,n.fontSize,r)+n.radarLabelTextMargin),f-n.radarLabelTextMargin);d-=n.radarLabelTextMargin*t.pix,d=d<10?10:d,d=o.radius?o.radius:d,r.beginPath(),r.setLineWidth(1*t.pix),r.setStrokeStyle(o.gridColor),a.forEach((function(e,t){var n=y(d*Math.cos(e),d*Math.sin(e),c);r.moveTo(c.x,c.y),t%o.gridEval==0&&r.lineTo(n.x,n.y)})),r.stroke(),r.closePath();for(var p=function(e){var n={};if(r.beginPath(),r.setLineWidth(1*t.pix),r.setStrokeStyle(o.gridColor),"radar"==o.gridType)a.forEach((function(t,i){var a=y(d/o.gridCount*e*Math.cos(t),d/o.gridCount*e*Math.sin(t),c);0===i?(n=a,r.moveTo(a.x,a.y)):r.lineTo(a.x,a.y)})),r.lineTo(n.x,n.y);else{var i=y(d/o.gridCount*e*Math.cos(1.5),d/o.gridCount*e*Math.sin(1.5),c);r.arc(c.x,c.y,c.y-i.y,0,2*Math.PI,!1)}r.stroke(),r.closePath()},h=1;h<=o.gridCount;h++)p(h);o.customColor=b(o.linearType,o.customColor,e,n);var g=K(a,c,d,e,t,i);if(g.forEach((function(n,i){r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.setStrokeStyle(n.color);var a,s=u(n.color,o.opacity);"custom"==o.linearType&&(a=r.createCircularGradient?r.createCircularGradient(c.x,c.y,d):r.createRadialGradient(c.x,c.y,0,c.x,c.y,d),a.addColorStop(0,u(o.customColor[e[i].linearIndex],o.opacity)),a.addColorStop(1,u(n.color,o.opacity)),s=a);if(r.setFillStyle(s),n.data.forEach((function(e,t){0===t?r.moveTo(e.position.x,e.position.y):r.lineTo(e.position.x,e.position.y)})),r.closePath(),r.fill(),!0===o.border&&r.stroke(),r.closePath(),!1!==t.dataPointShape){var l=n.data.map((function(e){return e.position}));Ce(l,n.color,n.pointShape,r,t)}})),!0===o.axisLabel){var v=Math.max(o.max,Math.max.apply(null,_(e))),m=d/o.gridCount,S=t.fontSize*t.pix;r.setFontSize(S),r.setFillStyle(t.fontColor),r.setTextAlign("left");for(h=0;h<o.gridCount+1;h++){var x=h*v/o.gridCount;x=x.toFixed(o.axisLabelTofix),r.fillText(String(x),c.x+3*t.pix,c.y-h*m+S/2)}}return De(a,d,c,t,n,r),!1!==t.dataLabel&&1===i&&(g.forEach((function(e,i){r.beginPath();var o=e.textSize*t.pix||n.fontSize;r.setFontSize(o),r.setFillStyle(e.textColor||t.fontColor),e.data.forEach((function(e,t){Math.abs(e.position.x-c.x)<2?e.position.y<c.y?(r.setTextAlign("center"),r.fillText(e.value,e.position.x,e.position.y-4)):(r.setTextAlign("center"),r.fillText(e.value,e.position.x,e.position.y+o+2)):e.position.x<c.x?(r.setTextAlign("right"),r.fillText(e.value,e.position.x-4,e.position.y+o/2-2)):(r.setTextAlign("left"),r.fillText(e.value,e.position.x+4,e.position.y+o/2-2))})),r.closePath(),r.stroke()})),r.setTextAlign("left")),{center:c,radius:d,angleList:a}}function it(e,t){var n=Array(2),r=20037508.34*e/180,i=Math.log(Math.tan((90+t)*Math.PI/360))/(Math.PI/180);return i=20037508.34*i/180,n[0]=r,n[1]=i,n}function ot(e){var t,n={};n.xMin=180,n.xMax=0,n.yMin=90,n.yMax=0;for(var r=0;r<e.length;r++)for(var i=e[r].geometry.coordinates,o=0;o<i.length;o++){t=i[o],1==t.length&&(t=t[0]);for(var a=0;a<t.length;a++){var s=t[a][0],c=t[a][1],u={x:s,y:c};n.xMin=n.xMin<u.x?n.xMin:u.x,n.xMax=n.xMax>u.x?n.xMax:u.x,n.yMin=n.yMin<u.y?n.yMin:u.y,n.yMax=n.yMax>u.y?n.yMax:u.y}}return n}function at(e,t,n,r,i,o){return{x:(t-n.xMin)*r+i,y:(n.yMax-e)*r+o}}function st(e,t,n,r,i,o){return{x:(t-i)/r+n.xMin,y:n.yMax-(e-o)/r}}function ct(e,t,n){if(t[1]==n[1])return!1;if(t[1]>e[1]&&n[1]>e[1])return!1;if(t[1]<e[1]&&n[1]<e[1])return!1;if(t[1]==e[1]&&n[1]>e[1])return!1;if(n[1]==e[1]&&t[1]>e[1])return!1;if(t[0]<e[0]&&n[1]<e[1])return!1;var r=n[0]-(n[0]-t[0])*(n[1]-e[1])/(n[1]-t[1]);return!(r<e[0])}function ut(e,t,n){for(var r=0,i=0;i<t.length;i++){var o=t[i][0];1==t.length&&(o=t[i][0]);for(var a=0;a<o.length-1;a++){var s=o[a],c=o[a+1];n&&(s=it(o[a][0],o[a][1]),c=it(o[a+1][0],o[a+1][1])),ct(e,s,c)&&(r+=1)}}return r%2==1}function lt(e,t,n,r){var i,o,a=s({},{border:!0,mercator:!1,borderWidth:1,active:!0,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},t.extra.map),c=e,l=ot(c);if(a.mercator){var f=it(l.xMax,l.yMax),d=it(l.xMin,l.yMin);l.xMax=f[0],l.yMax=f[1],l.xMin=d[0],l.yMin=d[1]}for(var p=t.width/Math.abs(l.xMax-l.xMin),h=t.height/Math.abs(l.yMax-l.yMin),y=p<h?p:h,g=t.width/2-Math.abs(l.xMax-l.xMin)/2*y,v=t.height/2-Math.abs(l.yMax-l.yMin)/2*y,m=0;m<c.length;m++){r.beginPath(),r.setLineWidth(a.borderWidth*t.pix),r.setStrokeStyle(a.borderColor),r.setFillStyle(u(e[m].color,e[m].fillOpacity||a.fillOpacity)),1==a.active&&t.tooltip&&t.tooltip.index==m&&(r.setStrokeStyle(a.activeBorderColor),r.setFillStyle(u(a.activeFillColor,a.activeFillOpacity)));for(var b=c[m].geometry.coordinates,S=0;S<b.length;S++){i=b[S],1==i.length&&(i=i[0]);for(var _=0;_<i.length;_++){var C=Array(2);C=a.mercator?it(i[_][0],i[_][1]):i[_],o=at(C[1],C[0],l,y,g,v),0===_?(r.beginPath(),r.moveTo(o.x,o.y)):r.lineTo(o.x,o.y)}r.fill(),1==a.border&&r.stroke()}}if(1==t.dataLabel)for(m=0;m<c.length;m++){var w=c[m].properties.centroid;if(w){a.mercator&&(w=it(c[m].properties.centroid[0],c[m].properties.centroid[1])),o=at(w[1],w[0],l,y,g,v);var P=c[m].textSize*t.pix||n.fontSize,L=c[m].textColor||t.fontColor;a.active&&a.activeTextColor&&t.tooltip&&t.tooltip.index==m&&(L=a.activeTextColor);var T=c[m].properties.name;r.beginPath(),r.setFontSize(P),r.setFillStyle(L),r.fillText(T,o.x-x(T,P,r)/2,o.y+P/2),r.closePath(),r.stroke()}}t.chartData.mapData={bounds:l,scale:y,xoffset:g,yoffset:v,mercator:a.mercator},Ue(t,n,r,1),r.draw()}function ft(e,t,n){n=0==n?1:n;for(var r=[],i=0;i<n;i++)r[i]=Math.random();return Math.floor(r.reduce((function(e,t){return e+t}))/n*(t-e))+e}function dt(e,t,n,r){for(var i=!1,o=0;o<t.length;o++)if(t[o].area){if(!(e[3]<t[o].area[1]||e[0]>t[o].area[2]||e[1]>t[o].area[3]||e[2]<t[o].area[0])){i=!0;break}if(e[0]<0||e[1]<0||e[2]>n||e[3]>r){i=!0;break}i=!1}return i}function pt(e,t,n){var r=e.series;switch(t){case"normal":for(var i=0;i<r.length;i++){var o=r[i].name,a=r[i].textSize*e.pix,s=x(o,a,n),c=void 0,u=void 0,l=void 0,f=0;while(1){f++,c=ft(-e.width/2,e.width/2,5)-s/2,u=ft(-e.height/2,e.height/2,5)+a/2,l=[c-5+e.width/2,u-5-a+e.height/2,c+s+5+e.width/2,u+5+e.height/2];var d=dt(l,r,e.width,e.height);if(!d)break;if(1e3==f){l=[-100,-100,-100,-100];break}}r[i].area=l}break;case"vertical":for(var p=function(){return Math.random()>.7},h=0;h<r.length;h++){var y=r[h].name,g=r[h].textSize*e.pix,v=x(y,g,n),m=p(),b=void 0,S=void 0,_=void 0,C=void 0,w=0;while(1){w++;var P=void 0;if(m?(b=ft(-e.width/2,e.width/2,5)-v/2,S=ft(-e.height/2,e.height/2,5)+g/2,_=[S-5-v+e.width/2,-b-5+e.height/2,S+5+e.width/2,-b+g+5+e.height/2],C=[e.width-(e.width/2-e.height/2)-(-b+g+5+e.height/2)-5,e.height/2-e.width/2+(S-5-v+e.width/2)-5,e.width-(e.width/2-e.height/2)-(-b+g+5+e.height/2)+g,e.height/2-e.width/2+(S-5-v+e.width/2)+v+5],P=dt(C,r,e.height,e.width)):(b=ft(-e.width/2,e.width/2,5)-v/2,S=ft(-e.height/2,e.height/2,5)+g/2,_=[b-5+e.width/2,S-5-g+e.height/2,b+v+5+e.width/2,S+5+e.height/2],P=dt(_,r,e.width,e.height)),!P)break;if(1e3==w){_=[-1e3,-1e3,-1e3,-1e3];break}}m?(r[h].area=C,r[h].areav=_):r[h].area=_,r[h].rotate=m}break}return r}function ht(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"normal",autoColors:!0},t.extra.word);t.chartData.wordCloudData||(t.chartData.wordCloudData=pt(t,o.type,r)),r.beginPath(),r.setFillStyle(t.background),r.rect(0,0,t.width,t.height),r.fill(),r.save();var a=t.chartData.wordCloudData;r.translate(t.width/2,t.height/2);for(var c=0;c<a.length;c++){r.save(),a[c].rotate&&r.rotate(90*Math.PI/180);var u=a[c].name,l=a[c].textSize*t.pix,f=x(u,l,r);r.beginPath(),r.setStrokeStyle(a[c].color),r.setFillStyle(a[c].color),r.setFontSize(l),a[c].rotate?a[c].areav[0]>0&&(t.tooltip&&t.tooltip.index==c?r.strokeText(u,(a[c].areav[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].areav[1]+5+l-t.height/2)*i):r.fillText(u,(a[c].areav[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].areav[1]+5+l-t.height/2)*i)):a[c].area[0]>0&&(t.tooltip&&t.tooltip.index==c?r.strokeText(u,(a[c].area[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].area[1]+5+l-t.height/2)*i):r.fillText(u,(a[c].area[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].area[1]+5+l-t.height/2)*i)),r.stroke(),r.restore()}r.restore()}function yt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,minSize:0,labelAlign:"right",linearType:"none",customColor:[]},t.extra.funnel),a=(t.height-t.area[0]-t.area[2])/e.length,c={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.height-t.area[2]},l=o.activeWidth*t.pix,f=Math.min((t.width-t.area[1]-t.area[3])/2-l,(t.height-t.area[0]-t.area[2])/2-l),d=z(e,f,o,a,i);if(r.save(),r.translate(c.x,c.y),o.customColor=b(o.linearType,o.customColor,e,n),"pyramid"==o.type)for(var p=0;p<d.length;p++){if(p==d.length-1){t.tooltip&&t.tooltip.index==p&&(r.beginPath(),r.setFillStyle(u(d[p].color,o.activeOpacity)),r.moveTo(-l,-a),r.lineTo(-d[p].radius-l,0),r.lineTo(d[p].radius+l,0),r.lineTo(l,-a),r.lineTo(-l,-a),r.closePath(),r.fill()),d[p].funnelArea=[c.x-d[p].radius,c.y-a*(p+1),c.x+d[p].radius,c.y-a*p],r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.setStrokeStyle(o.borderColor);var h=u(d[p].color,o.fillOpacity);if("custom"==o.linearType){var y=r.createLinearGradient(d[p].radius,-a,-d[p].radius,-a);y.addColorStop(0,u(d[p].color,o.fillOpacity)),y.addColorStop(.5,u(o.customColor[d[p].linearIndex],o.fillOpacity)),y.addColorStop(1,u(d[p].color,o.fillOpacity)),h=y}r.setFillStyle(h),r.moveTo(0,-a),r.lineTo(-d[p].radius,0),r.lineTo(d[p].radius,0),r.lineTo(0,-a),r.closePath(),r.fill(),1==o.border&&r.stroke()}else{t.tooltip&&t.tooltip.index==p&&(r.beginPath(),r.setFillStyle(u(d[p].color,o.activeOpacity)),r.moveTo(0,0),r.lineTo(-d[p].radius-l,0),r.lineTo(-d[p+1].radius-l,-a),r.lineTo(d[p+1].radius+l,-a),r.lineTo(d[p].radius+l,0),r.lineTo(0,0),r.closePath(),r.fill()),d[p].funnelArea=[c.x-d[p].radius,c.y-a*(p+1),c.x+d[p].radius,c.y-a*p],r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.setStrokeStyle(o.borderColor);h=u(d[p].color,o.fillOpacity);if("custom"==o.linearType){y=r.createLinearGradient(d[p].radius,-a,-d[p].radius,-a);y.addColorStop(0,u(d[p].color,o.fillOpacity)),y.addColorStop(.5,u(o.customColor[d[p].linearIndex],o.fillOpacity)),y.addColorStop(1,u(d[p].color,o.fillOpacity)),h=y}r.setFillStyle(h),r.moveTo(0,0),r.lineTo(-d[p].radius,0),r.lineTo(-d[p+1].radius,-a),r.lineTo(d[p+1].radius,-a),r.lineTo(d[p].radius,0),r.lineTo(0,0),r.closePath(),r.fill(),1==o.border&&r.stroke()}r.translate(0,-a)}else{r.translate(0,-(d.length-1)*a);for(var g=0;g<d.length;g++){if(g==d.length-1){t.tooltip&&t.tooltip.index==g&&(r.beginPath(),r.setFillStyle(u(d[g].color,o.activeOpacity)),r.moveTo(-l-o.minSize/2,0),r.lineTo(-d[g].radius-l,-a),r.lineTo(d[g].radius+l,-a),r.lineTo(l+o.minSize/2,0),r.lineTo(-l-o.minSize/2,0),r.closePath(),r.fill()),d[g].funnelArea=[c.x-d[g].radius,c.y-a,c.x+d[g].radius,c.y],r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.setStrokeStyle(o.borderColor);h=u(d[g].color,o.fillOpacity);if("custom"==o.linearType){y=r.createLinearGradient(d[g].radius,-a,-d[g].radius,-a);y.addColorStop(0,u(d[g].color,o.fillOpacity)),y.addColorStop(.5,u(o.customColor[d[g].linearIndex],o.fillOpacity)),y.addColorStop(1,u(d[g].color,o.fillOpacity)),h=y}r.setFillStyle(h),r.moveTo(0,0),r.lineTo(-o.minSize/2,0),r.lineTo(-d[g].radius,-a),r.lineTo(d[g].radius,-a),r.lineTo(o.minSize/2,0),r.lineTo(0,0),r.closePath(),r.fill(),1==o.border&&r.stroke()}else{t.tooltip&&t.tooltip.index==g&&(r.beginPath(),r.setFillStyle(u(d[g].color,o.activeOpacity)),r.moveTo(0,0),r.lineTo(-d[g+1].radius-l,0),r.lineTo(-d[g].radius-l,-a),r.lineTo(d[g].radius+l,-a),r.lineTo(d[g+1].radius+l,0),r.lineTo(0,0),r.closePath(),r.fill()),d[g].funnelArea=[c.x-d[g].radius,c.y-a*(d.length-g),c.x+d[g].radius,c.y-a*(d.length-g-1)],r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.setStrokeStyle(o.borderColor);h=u(d[g].color,o.fillOpacity);if("custom"==o.linearType){y=r.createLinearGradient(d[g].radius,-a,-d[g].radius,-a);y.addColorStop(0,u(d[g].color,o.fillOpacity)),y.addColorStop(.5,u(o.customColor[d[g].linearIndex],o.fillOpacity)),y.addColorStop(1,u(d[g].color,o.fillOpacity)),h=y}r.setFillStyle(h),r.moveTo(0,0),r.lineTo(-d[g+1].radius,0),r.lineTo(-d[g].radius,-a),r.lineTo(d[g].radius,-a),r.lineTo(d[g+1].radius,0),r.lineTo(0,0),r.closePath(),r.fill(),1==o.border&&r.stroke()}r.translate(0,a)}}return r.restore(),!1!==t.dataLabel&&1===i&>(d,t,r,a,o.labelAlign,l,c),1===i&&vt(d,t,r,a,o.labelAlign,l,c),{center:c,radius:f,series:d}}function gt(e,t,n,r,i,o,a){for(var s=0;s<e.length;s++){var u=e[s];if(!1!==u.labelShow){var l=void 0,f=void 0,d=void 0,p=void 0,h=u.formatter?u.formatter(u,s,e,t):c.toFixed(100*u._proportion_)+"%";h=u.labelText?u.labelText:h,"right"==i&&(l=s==e.length-1?(u.funnelArea[2]+a.x)/2:(u.funnelArea[2]+e[s+1].funnelArea[2])/2,f=l+2*o,d=u.funnelArea[1]+r/2,p=u.textSize*t.pix||t.fontSize*t.pix,n.setLineWidth(1*t.pix),n.setStrokeStyle(u.color),n.setFillStyle(u.color),n.beginPath(),n.moveTo(l,d),n.lineTo(f,d),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(f,d),n.arc(f,d,2*t.pix,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(p),n.setFillStyle(u.textColor||t.fontColor),n.fillText(h,f+5,d+p/2-2),n.closePath(),n.stroke(),n.closePath()),"left"==i&&(l=s==e.length-1?(u.funnelArea[0]+a.x)/2:(u.funnelArea[0]+e[s+1].funnelArea[0])/2,f=l-2*o,d=u.funnelArea[1]+r/2,p=u.textSize*t.pix||t.fontSize*t.pix,n.setLineWidth(1*t.pix),n.setStrokeStyle(u.color),n.setFillStyle(u.color),n.beginPath(),n.moveTo(l,d),n.lineTo(f,d),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(f,d),n.arc(f,d,2,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(p),n.setFillStyle(u.textColor||t.fontColor),n.fillText(h,f-5-x(h,p,n),d+p/2-2),n.closePath(),n.stroke(),n.closePath())}}}function vt(e,t,n,r,i,o,a){for(var s=0;s<e.length;s++){var c=e[s],u=void 0,l=void 0;c.centerText&&(u=c.funnelArea[1]+r/2,l=c.centerTextSize*t.pix||t.fontSize*t.pix,n.beginPath(),n.setFontSize(l),n.setFillStyle(c.centerTextColor||"#FFFFFF"),n.fillText(c.centerText,a.x-x(c.centerText,l,n)/2,u+l/2-2),n.closePath(),n.stroke(),n.closePath())}}function mt(e,t){t.save(),t.translate(0,.5),t.restore(),t.draw()}var bt={easeIn:function(e){return Math.pow(e,3)},easeOut:function(e){return Math.pow(e-1,3)+1},easeInOut:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},linear:function(e){return e}};function St(e){this.isStop=!1,e.duration="undefined"===typeof e.duration?1e3:e.duration,e.timing=e.timing||"easeInOut";var t=17;function n(){return"undefined"!==typeof setTimeout?function(e,t){setTimeout((function(){var t=+new Date;e(t)}),t)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(e){e(null)}}var r=n(),i=null,o=function(n){if(null===n||!0===this.isStop)return e.onProcess&&e.onProcess(1),void(e.onAnimationFinish&&e.onAnimationFinish());if(null===i&&(i=n),n-i<e.duration){var a=(n-i)/e.duration,s=bt[e.timing];a=s(a),e.onProcess&&e.onProcess(a),r(o,t)}else e.onProcess&&e.onProcess(1),e.onAnimationFinish&&e.onAnimationFinish()};o=o.bind(this),r(o,t)}function xt(e,t,n,r){var i=this,o=this,a=t.series;"pie"!==e&&"ring"!==e&&"mount"!==e&&"rose"!==e&&"funnel"!==e||(a=v(a,t,n));var c=t.categories;if("mount"===e){c=[];for(var u=0;u<a.length;u++)!1!==a[u].show&&c.push(a[u].name);t.categories=c}a=m(a,t,n);var l=t.animation?t.duration:0;o.animationInstance&&o.animationInstance.stop();var d=null;if("candle"==e){var p=s({},t.extra.candle.average);p.show?(d=f(p.day,p.name,p.color,a[0].data),d=m(d,t,n),t.seriesMA=d):d=t.seriesMA?t.seriesMA=m(t.seriesMA,t,n):a}else d=a;t._series_=a=D(a),t.area=new Array(4);for(var h=0;h<4;h++)t.area[h]=t.padding[h]*t.pix;var y=G(d,t,n,t.chartData,r),g=y.area.wholeHeight,b=y.area.wholeWidth;switch(t.legend.position){case"top":t.area[0]+=g;break;case"bottom":t.area[2]+=g;break;case"left":t.area[3]+=b;break;case"right":t.area[1]+=b;break}var S={},x=0;if("line"===t.type||"column"===t.type||"mount"===t.type||"area"===t.type||"mix"===t.type||"candle"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){if(S=be(a,t,n,r),x=S.yAxisWidth,t.yAxis.showTitle){for(var _=0,C=0;C<t.yAxis.data.length;C++)_=Math.max(_,t.yAxis.data[C].titleFontSize?t.yAxis.data[C].titleFontSize*t.pix:n.fontSize);t.area[0]+=_}for(var w=0,P=0,L=0;L<x.length;L++)"left"==x[L].position?(t.area[3]+=P>0?x[L].width+t.yAxis.padding*t.pix:x[L].width,P+=1):"right"==x[L].position&&(t.area[1]+=w>0?x[L].width+t.yAxis.padding*t.pix:x[L].width,w+=1)}else n.yAxisWidth=x;if(t.chartData.yAxisData=S,t.categories&&t.categories.length&&"radar"!==t.type&&"gauge"!==t.type&&"bar"!==t.type){t.chartData.xAxisData=ue(t.categories,t,n);var T=Q(t.categories,t,n,t.chartData.xAxisData.eachSpacing,r),A=T.xAxisHeight,O=T.angle;n.xAxisHeight=A,n._xAxisTextAngle_=O,t.area[2]+=A,t.chartData.categoriesData=T}else if("line"===t.type||"area"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){t.chartData.xAxisData=U(a,t,n,r),c=t.chartData.xAxisData.rangesFormat;var Y=Q(c,t,n,t.chartData.xAxisData.eachSpacing,r),M=Y.xAxisHeight,k=Y.angle;n.xAxisHeight=M,n._xAxisTextAngle_=k,t.area[2]+=M,t.chartData.categoriesData=Y}else t.chartData.xAxisData={xAxisPoints:[]};if(t.enableScroll&&"right"==t.xAxis.scrollAlign&&void 0===t._scrollDistance_){var Z=0,E=t.chartData.xAxisData.xAxisPoints,R=t.chartData.xAxisData.startX,N=t.chartData.xAxisData.endX,I=t.chartData.xAxisData.eachSpacing,X=I*(E.length-1),J=N-R;Z=J-X,o.scrollOption.currentOffset=Z,o.scrollOption.startTouchX=Z,o.scrollOption.distance=0,o.scrollOption.lastMoveTime=0,t._scrollDistance_=Z}switch("pie"!==e&&"ring"!==e&&"rose"!==e||(n._pieTextMaxLength_=!1===t.dataLabel?0:re(d,n,r,t)),e){case"word":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),ht(a,t,n,r,e),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"map":r.clearRect(0,0,t.width,t.height),lt(a,t,n,r),setTimeout((function(){i.uevent.trigger("renderComplete")}),50);break;case"funnel":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),t.chartData.funnelData=yt(a,t,n,r,e),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),$e(c,t,n,r),Ke(c,t,n,r);var i=Qe(a,t,n,r,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,ze(a,t,n,r),!1!==t.enableMarkLine&&1===e&&Ze(t,n,r),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e,u,o),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),$e(c,t,n,r),Ke(c,t,n,r);var i=je(a,t,n,r,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,ze(a,t,n,r),!1!==t.enableMarkLine&&1===e&&Ze(t,n,r),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e,u,o),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),$e(c,t,n,r),Ke(c,t,n,r);var i=Ge(a,t,n,r,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,ze(a,t,n,r),!1!==t.enableMarkLine&&1===e&&Ze(t,n,r),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e,u,o),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),$e(c,t,n,r),Ke(c,t,n,r);var i=We(a,t,n,r,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,ze(a,t,n,r),!1!==t.enableMarkLine&&1===e&&Ze(t,n,r),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e,u,o),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),$e(c,t,n,r),Ke(c,t,n,r);var i=Xe(a,t,n,r,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,ze(a,t,n,r),!1!==t.enableMarkLine&&1===e&&Ze(t,n,r),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e,u,o),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),$e(c,t,n,r),Ke(c,t,n,r);var i=Je(a,t,n,r,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,ze(a,t,n,r),!1!==t.enableMarkLine&&1===e&&Ze(t,n,r),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e,u,o),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),Ke(c,t,n,r);var i=Fe(a,t,n,r,e),o=i.yAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.yAxisPoints=o,t.chartData.xAxisPoints=t.chartData.xAxisData.xAxisPoints,t.chartData.calPoints=s,t.chartData.eachSpacing=u,ze(a,t,n,r),!1!==t.enableMarkLine&&1===e&&Ze(t,n,r),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e,u,o),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),$e(c,t,n,r),Ke(c,t,n,r);var i=He(a,t,n,r,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,ze(a,t,n,r),!1!==t.enableMarkLine&&1===e&&Ze(t,n,r),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e,u,o),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"ring":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),t.chartData.pieData=Ve(a,t,n,r,e),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"pie":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),t.chartData.pieData=Ve(a,t,n,r,e),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),t.chartData.pieData=et(a,t,n,r,e),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),t.chartData.radarData=rt(a,t,n,r,e),qe(t.series,t,n,r,t.chartData),Ue(t,n,r,e),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),t.chartData.arcbarData=tt(a,t,n,r,e),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),t.chartData.gaugeData=nt(c,a,t,n,r,e),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new St({timing:t.timing,duration:l,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&_e(r,t),$e(c,t,n,r),Ke(c,t,n,r);var i=Be(a,d,t,n,r,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,ze(a,t,n,r),!1!==t.enableMarkLine&&1===e&&Ze(t,n,r),qe(d||t.series,t,n,r,t.chartData),Ue(t,n,r,e,u,o),mt(t,r)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break}}function _t(){this.events={}}St.prototype.stop=function(){this.isStop=!0},_t.prototype.addEventListener=function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},_t.prototype.delEventListener=function(e){this.events[e]=[]},_t.prototype.trigger=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t.slice(1);this.events[r]&&this.events[r].forEach((function(e){try{e.apply(null,i)}catch(t){}}))};var Ct=function(e){e.pix=e.pixelRatio?e.pixelRatio:1,e.fontSize=e.fontSize?e.fontSize:13,e.fontColor=e.fontColor?e.fontColor:a.fontColor,""!=e.background&&"none"!=e.background||(e.background="#FFFFFF"),e.title=s({},e.title),e.subtitle=s({},e.subtitle),e.duration=e.duration?e.duration:1e3,e.yAxis=s({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,gridSet:"number",splitNumber:5,gridType:"solid",dashLength:4*e.pix,gridColor:"#cccccc",padding:10,fontColor:"#666666"},e.yAxis),e.xAxis=s({},{rotateLabel:!1,rotateAngle:45,disabled:!1,disableGrid:!1,splitNumber:5,calibration:!1,fontColor:"#666666",fontSize:13,lineHeight:20,marginTop:0,gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc",titleFontSize:13,titleOffsetY:0,titleOffsetX:0,titleFontColor:"#666666"},e.xAxis),e.xAxis.scrollPosition=e.xAxis.scrollAlign,e.legend=s({},{show:!0,position:"bottom",float:"center",backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,padding:5,margin:5,itemGap:10,fontSize:e.fontSize,lineHeight:e.fontSize,fontColor:e.fontColor,formatter:{},hiddenColor:"#CECECE"},e.legend),e.extra=s({tooltip:{legendShape:"auto"}},e.extra),e.rotate=!!e.rotate,e.animation=!!e.animation,e.rotate=!!e.rotate,e.canvas2d=!!e.canvas2d;var t=s({},a);if(t.color=e.color?e.color:t.color,"pie"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.pie.labelWidth*e.pix||t.pieChartLinePadding*e.pix),"ring"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.ring.labelWidth*e.pix||t.pieChartLinePadding*e.pix),"rose"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.rose.labelWidth*e.pix||t.pieChartLinePadding*e.pix),t.pieChartTextPadding=!1===e.dataLabel?0:t.pieChartTextPadding*e.pix,t.rotate=e.rotate,e.rotate){var n=e.width,r=e.height;e.width=r,e.height=n}if(e.padding=e.padding?e.padding:t.padding,t.yAxisWidth=a.yAxisWidth*e.pix,t.fontSize=e.fontSize*e.pix,t.titleFontSize=a.titleFontSize*e.pix,t.subtitleFontSize=a.subtitleFontSize*e.pix,!e.context)throw new Error("[uCharts] 未获取到context!注意:v2.0版本后,需要自行获取canvas的绘图上下文并传入opts.context!");this.context=e.context,this.context.setTextAlign||(this.context.setStrokeStyle=function(e){return this.strokeStyle=e},this.context.setLineWidth=function(e){return this.lineWidth=e},this.context.setLineCap=function(e){return this.lineCap=e},this.context.setFontSize=function(e){return this.font=e+"px sans-serif"},this.context.setFillStyle=function(e){return this.fillStyle=e},this.context.setTextAlign=function(e){return this.textAlign=e},this.context.setTextBaseline=function(e){return this.textBaseline=e},this.context.setShadow=function(e,t,n,r){this.shadowColor=r,this.shadowOffsetX=e,this.shadowOffsetY=t,this.shadowBlur=n},this.context.draw=function(){}),this.context.setLineDash||(this.context.setLineDash=function(e){}),e.chartData={},this.uevent=new _t,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=e,this.config=t,xt.call(this,e.type,e,t,this.context)};Ct.prototype.updateData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=s({},this.opts,e),this.opts.updateData=!0;var t=e.scrollPosition||"current";switch(t){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var n=be(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,o=ue(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,c=o.startX,u=o.endX,l=o.eachSpacing,f=l*(a.length-1),d=u-c;i=d-f,this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i;break}xt.call(this,this.opts.type,this.opts,this.config,this.context)},Ct.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var t=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var n=be(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,o=ue(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,s=o.startX,c=o.endX,u=o.eachSpacing,l=u*t,f=c-s,p=f-u*(a.length-1);i=f/2-l,i>0&&(i=0),i<p&&(i=p),this.scrollOption={currentOffset:i,startTouchX:0,distance:0,lastMoveTime:0},d(this,i,this.opts.chartData,this.config,this.opts),this.opts._scrollDistance_=i,xt.call(this,this.opts.type,this.opts,this.config,this.context)}else console.log("[uCharts] 请启用滚动条后使用")},Ct.prototype.dobuleZoom=function(e){if(!0===this.opts.enableScroll){var t=e.changedTouches;if(!(t.length<2)){for(var n=0;n<t.length;n++)t[n].x=t[n].x?t[n].x:t[n].clientX,t[n].y=t[n].y?t[n].y:t[n].clientY;var r=[w(t[0],this.opts,e),w(t[1],this.opts,e)],i=Math.abs(r[0].x-r[1].x);if(!this.scrollOption.moveCount){var o={changedTouches:[{x:t[0].x,y:this.opts.area[0]/this.opts.pix+2}]},a={changedTouches:[{x:t[1].x,y:this.opts.area[0]/this.opts.pix+2}]};this.opts.rotate&&(o={changedTouches:[{x:this.opts.height/this.opts.pix-this.opts.area[0]/this.opts.pix-2,y:t[0].y}]},a={changedTouches:[{x:this.opts.height/this.opts.pix-this.opts.area[0]/this.opts.pix-2,y:t[1].y}]});var s=this.getCurrentDataIndex(o).index,c=this.getCurrentDataIndex(a).index,u=Math.abs(s-c);return this.scrollOption.moveCount=u,this.scrollOption.moveCurrent1=Math.min(s,c),void(this.scrollOption.moveCurrent2=Math.max(s,c))}var l=i/this.scrollOption.moveCount,f=(this.opts.width-this.opts.area[1]-this.opts.area[3])/l;f=f<=2?2:f,f=f>=this.opts.categories.length?this.opts.categories.length:f,this.opts.animation=!1,this.opts.xAxis.itemCount=f;var p=0,h=ue(this.opts.categories,this.opts,this.config),y=h.xAxisPoints,g=h.startX,v=h.endX,m=h.eachSpacing,b=m*this.scrollOption.moveCurrent1,S=v-g,x=S-m*(y.length-1);p=-b+Math.min(r[0].x,r[1].x)-this.opts.area[3]-m,p>0&&(p=0),p<x&&(p=x),this.scrollOption.currentOffset=p,this.scrollOption.startTouchX=0,this.scrollOption.distance=0,d(this,p,this.opts.chartData,this.config,this.opts),this.opts._scrollDistance_=p,xt.call(this,this.opts.type,this.opts,this.config,this.context)}}else console.log("[uCharts] 请启用滚动条后使用")},Ct.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},Ct.prototype.addEventListener=function(e,t){this.uevent.addEventListener(e,t)},Ct.prototype.delEventListener=function(e){this.uevent.delEventListener(e)},Ct.prototype.getCurrentDataIndex=function(e){var t=null;if(t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],t){var n=w(t,this.opts,e);return"pie"===this.opts.type||"ring"===this.opts.type?B({x:n.x,y:n.y},this.opts.chartData.pieData,this.opts):"rose"===this.opts.type?F({x:n.x,y:n.y},this.opts.chartData.pieData,this.opts):"radar"===this.opts.type?N({x:n.x,y:n.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?I({x:n.x,y:n.y},this.opts.chartData.funnelData):"map"===this.opts.type?J({x:n.x,y:n.y},this.opts):"word"===this.opts.type?X({x:n.x,y:n.y},this.opts.chartData.wordCloudData):"bar"===this.opts.type?k({x:n.x,y:n.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):M({x:n.x,y:n.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},Ct.prototype.getLegendDataIndex=function(e){var t=null;if(t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],t){var n=w(t,this.opts,e);return Z({x:n.x,y:n.y},this.opts.chartData.legendData)}return-1},Ct.prototype.touchLegend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;if(n=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],n){w(n,this.opts,e);var r=this.getLegendDataIndex(e);r>=0&&("candle"==this.opts.type?this.opts.seriesMA[r].show=!this.opts.seriesMA[r].show:this.opts.series[r].show=!this.opts.series[r].show,this.opts.animation=!!t.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,xt.call(this,this.opts.type,this.opts,this.config,this.context))}},Ct.prototype.showToolTip=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||console.log("[uCharts] 未获取到event坐标信息");var i=w(r,this.opts,e),o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){var l=P(this.opts.series,u,c.group);if(0!==l.length){var f=A(l,this.opts,u,c.group,this.opts.categories,n),d=f.textList,p=f.offset;p.y=i.y,a.tooltip={textList:void 0!==n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u,group:c.group}}}xt.call(this,a.type,a,this.config,this.context)}if("mount"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e).index:n.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},a._series_[u]),d=[{text:n.formatter?n.formatter(l,void 0,u,a):l.name+": "+l.data,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:a.chartData.calPoints[u].x,y:i.y};a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}xt.call(this,a.type,a,this.config,this.context)}if("bar"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){l=P(this.opts.series,u,c.group);if(0!==l.length){f=A(l,this.opts,u,c.group,this.opts.categories,n),d=f.textList,p=f.offset;p.x=i.x,a.tooltip={textList:void 0!==n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}xt.call(this,a.type,a,this.config,this.context)}if("mix"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1}),l=P(this.opts.series,u);if(0!==l.length){var h=O(l,this.opts,u,this.opts.categories,n);d=h.textList,p=h.offset;p.y=i.y,a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}xt.call(this,a.type,a,this.config,this.context)}if("candle"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1}),l=P(this.opts.series,u);if(0!==l.length){f=Y(this.opts.series[0].data,l,this.opts,u,this.opts.categories,this.opts.extra.candle,n),d=f.textList,p=f.offset;p.y=i.y,a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}xt.call(this,a.type,a,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},a._series_[u]),d=[{text:n.formatter?n.formatter(l,void 0,u,a):l.name+": "+l.data,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:i.x,y:i.y};a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}xt.call(this,a.type,a,this.config,this.context)}if("map"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},this.opts.series[u]);l.name=l.properties.name;d=[{text:n.formatter?n.formatter(l,void 0,u,this.opts):l.name,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:i.x,y:i.y};a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}a.updateData=!1,xt.call(this,a.type,a,this.config,this.context)}if("word"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},this.opts.series[u]),d=[{text:n.formatter?n.formatter(l,void 0,u,this.opts):l.name,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:i.x,y:i.y};a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}a.updateData=!1,xt.call(this,a.type,a,this.config,this.context)}if("radar"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=P(this.opts.series,u);if(0!==l.length){d=l.map((function(e){return{text:n.formatter?n.formatter(e,t.opts.categories[u],u,t.opts):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.opts.extra.tooltip.legendShape?e.legendShape:t.opts.extra.tooltip.legendShape}})),p={x:i.x,y:i.y};a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}xt.call(this,a.type,a,this.config,this.context)}},Ct.prototype.translate=function(e){this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0};var t=s({},this.opts,{_scrollDistance_:e,animation:!1});xt.call(this,this.opts.type,t,this.config,this.context)},Ct.prototype.scrollStart=function(e){var t=null;t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0];var n=w(t,this.opts,e);t&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=n.x)},Ct.prototype.scroll=function(e){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var t=this.opts.touchMoveLimit||60,n=Date.now(),r=n-this.scrollOption.lastMoveTime;if(!(r<Math.floor(1e3/t))&&0!=this.scrollOption.startTouchX){this.scrollOption.lastMoveTime=n;var i=null;if(i=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],i&&!0===this.opts.enableScroll){var o,a=w(i,this.opts,e);o=a.x-this.scrollOption.startTouchX;var c=this.scrollOption.currentOffset,u=d(this,c+o,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=o=u-c;var l=s({},this.opts,{_scrollDistance_:c+o,animation:!1});return this.opts=l,xt.call(this,l.type,l,this.config,this.context),c+o}}},Ct.prototype.scrollEnd=function(e){if(!0===this.opts.enableScroll){var t=this.scrollOption,n=t.currentOffset,r=t.distance;this.scrollOption.currentOffset=n+r,this.scrollOption.distance=0,this.scrollOption.moveCount=0}};var wt=Ct;t.default=wt},558:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],i=function(e,t){var n=new Date;n.setTime(1e3*e);var r=n.getFullYear(),i=n.getMonth()+1;i=i<10?"0"+i:i;var o=n.getDate();o=o<10?"0"+o:o;var a=n.getHours();a=a<10?"0"+a:a;var s=n.getMinutes(),c=n.getSeconds();return s=s<10?"0"+s:s,c=c<10?"0"+c:c,"full"==t?r+"-"+i+"-"+o+" "+a+":"+s+":"+c:"y-m-d"==t?r+"-"+i+"-"+o:"h:m"==t?a+":"+s:"h:m:s"==t?a+":"+s+":"+c:[r,i,o,a,s,c]},o={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","mount","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","山峰图","条状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],categories:["line","column","mount","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(e,t,n){return e+"元"},yAxisDemo2:function(e,t,n){return e.toFixed(2)},xAxisDemo1:function(e,t,n){return e+"年"},xAxisDemo2:function(e,t,n){return i(e,"h:m")},seriesDemo1:function(e,t,n,r){return e+"元"},tooltipDemo1:function(e,t,n,r){return 0==n?"随便用"+e.data+"年":"其他我没改"+e.data+"天"},pieDemo:function(e,t,n,r){if(void 0!==t)return n[t].name+":"+n[t].data+"元"}},demotype:{type:"line",color:r,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:r,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:r,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"收益率",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:r,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:r,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:r,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:r,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:r,title:{name:"百分比",fontSize:25,color:"#00FF00"},subtitle:{name:"默认标题",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:r,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2,activeType:"hollow"}}},tline:{type:"line",color:r,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2,activeType:"hollow"}}},tarea:{type:"area",color:r,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0,activeType:"hollow"}}},column:{type:"column",color:r,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},mount:{type:"mount",color:r,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{mount:{type:"mount",widthRatio:1.5}}},bar:{type:"bar",color:r,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:r,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1,activeType:"hollow"}}},radar:{type:"radar",color:r,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200,labelShow:!0}}},gauge:{type:"gauge",color:r,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"实时速度",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:r,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:r,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:r,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:r,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},a=o;t.default=a},573:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={firstletter:"YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYFZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJXDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLHJLQMKKZGCYYGLLLJDZGYDHZWXPYSJBZKDZGYZZHYWYFQYTYZSZYEZZLYMHJJHTSMQWYZLKYYWZCSRKQYTLTDXWCTYJKLWSQZWBDCQYNCJSRSZJLKCDCDTLZZZACQQZZDDXYPLXZBQJYLZLLLQDDZQJYJYJZYXNYYYNYJXKXDAZWYRDLJYYYRJLXLLDYXJCYWYWNQCCLDDNYYYNYCKCZHXXCCLGZQJGKWPPCQQJYSBZZXYJSQPXJPZBSBDSFNSFPZXHDWZTDWPPTFLZZBZDMYYPQJRSDZSQZSQXBDGCPZSWDWCSQZGMDHZXMWWFYBPDGPHTMJTHZSMMBGZMBZJCFZWFZBBZMQCFMBDMCJXLGPNJBBXGYHYYJGPTZGZMQBQTCGYXJXLWZKYDPDYMGCFTPFXYZTZXDZXTGKMTYBBCLBJASKYTSSQYYMSZXFJEWLXLLSZBQJJJAKLYLXLYCCTSXMCWFKKKBSXLLLLJYXTYLTJYYTDPJHNHNNKBYQNFQYYZBYYESSESSGDYHFHWTCJBSDZZTFDMXHCNJZYMQWSRYJDZJQPDQBBSTJGGFBKJBXTGQHNGWJXJGDLLTHZHHYYYYYYSXWTYYYCCBDBPYPZYCCZYJPZYWCBDLFWZCWJDXXHYHLHWZZXJTCZLCDPXUJCZZZLYXJJTXPHFXWPYWXZPTDZZBDZCYHJHMLXBQXSBYLRDTGJRRCTTTHYTCZWMXFYTWWZCWJWXJYWCSKYBZSCCTZQNHXNWXXKHKFHTSWOCCJYBCMPZZYKBNNZPBZHHZDLSYDDYTYFJPXYNGFXBYQXCBHXCPSXTYZDMKYSNXSXLHKMZXLYHDHKWHXXSSKQYHHCJYXGLHZXCSNHEKDTGZXQYPKDHEXTYKCNYMYYYPKQYYYKXZLTHJQTBYQHXBMYHSQCKWWYLLHCYYLNNEQXQWMCFBDCCMLJGGXDQKTLXKGNQCDGZJWYJJLYHHQTTTNWCHMXCXWHWSZJYDJCCDBQCDGDNYXZTHCQRXCBHZTQCBXWGQWYYBXHMBYMYQTYEXMQKYAQYRGYZSLFYKKQHYSSQYSHJGJCNXKZYCXSBXYXHYYLSTYCXQTHYSMGSCPMMGCCCCCMTZTASMGQZJHKLOSQYLSWTMXSYQKDZLJQQYPLSYCZTCQQPBBQJZCLPKHQZYYXXDTDDTSJCXFFLLCHQXMJLWCJCXTSPYCXNDTJSHJWXDQQJSKXYAMYLSJHMLALYKXCYYDMNMDQMXMCZNNCYBZKKYFLMCHCMLHXRCJJHSYLNMTJZGZGYWJXSRXCWJGJQHQZDQJDCJJZKJKGDZQGJJYJYLXZXXCDQHHHEYTMHLFSBDJSYYSHFYSTCZQLPBDRFRZTZYKYWHSZYQKWDQZRKMSYNBCRXQBJYFAZPZZEDZCJYWBCJWHYJBQSZYWRYSZPTDKZPFPBNZTKLQYHBBZPNPPTYZZYBQNYDCPJMMCYCQMCYFZZDCMNLFPBPLNGQJTBTTNJZPZBBZNJKLJQYLNBZQHKSJZNGGQSZZKYXSHPZSNBCGZKDDZQANZHJKDRTLZLSWJLJZLYWTJNDJZJHXYAYNCBGTZCSSQMNJPJYTYSWXZFKWJQTKHTZPLBHSNJZSYZBWZZZZLSYLSBJHDWWQPSLMMFBJDWAQYZTCJTBNNWZXQXCDSLQGDSDPDZHJTQQPSWLYYJZLGYXYZLCTCBJTKTYCZJTQKBSJLGMGZDMCSGPYNJZYQYYKNXRPWSZXMTNCSZZYXYBYHYZAXYWQCJTLLCKJJTJHGDXDXYQYZZBYWDLWQCGLZGJGQRQZCZSSBCRPCSKYDZNXJSQGXSSJMYDNSTZTPBDLTKZWXQWQTZEXNQCZGWEZKSSBYBRTSSSLCCGBPSZQSZLCCGLLLZXHZQTHCZMQGYZQZNMCOCSZJMMZSQPJYGQLJYJPPLDXRGZYXCCSXHSHGTZNLZWZKJCXTCFCJXLBMQBCZZWPQDNHXLJCTHYZLGYLNLSZZPCXDSCQQHJQKSXZPBAJYEMSMJTZDXLCJYRYYNWJBNGZZTMJXLTBSLYRZPYLSSCNXPHLLHYLLQQZQLXYMRSYCXZLMMCZLTZSDWTJJLLNZGGQXPFSKYGYGHBFZPDKMWGHCXMSGDXJMCJZDYCABXJDLNBCDQYGSKYDQTXDJJYXMSZQAZDZFSLQXYJSJZYLBTXXWXQQZBJZUFBBLYLWDSLJHXJYZJWTDJCZFQZQZZDZSXZZQLZCDZFJHYSPYMPQZMLPPLFFXJJNZZYLSJEYQZFPFZKSYWJJJHRDJZZXTXXGLGHYDXCSKYSWMMZCWYBAZBJKSHFHJCXMHFQHYXXYZFTSJYZFXYXPZLCHMZMBXHZZSXYFYMNCWDABAZLXKTCSHHXKXJJZJSTHYGXSXYYHHHJWXKZXSSBZZWHHHCWTZZZPJXSNXQQJGZYZYWLLCWXZFXXYXYHXMKYYSWSQMNLNAYCYSPMJKHWCQHYLAJJMZXHMMCNZHBHXCLXTJPLTXYJHDYYLTTXFSZHYXXSJBJYAYRSMXYPLCKDUYHLXRLNLLSTYZYYQYGYHHSCCSMZCTZQXKYQFPYYRPFFLKQUNTSZLLZMWWTCQQYZWTLLMLMPWMBZSSTZRBPDDTLQJJBXZCSRZQQYGWCSXFWZLXCCRSZDZMCYGGDZQSGTJSWLJMYMMZYHFBJDGYXCCPSHXNZCSBSJYJGJMPPWAFFYFNXHYZXZYLREMZGZCYZSSZDLLJCSQFNXZKPTXZGXJJGFMYYYSNBTYLBNLHPFZDCYFBMGQRRSSSZXYSGTZRNYDZZCDGPJAFJFZKNZBLCZSZPSGCYCJSZLMLRSZBZZLDLSLLYSXSQZQLYXZLSKKBRXBRBZCYCXZZZEEYFGKLZLYYHGZSGZLFJHGTGWKRAAJYZKZQTSSHJJXDCYZUYJLZYRZDQQHGJZXSSZBYKJPBFRTJXLLFQWJHYLQTYMBLPZDXTZYGBDHZZRBGXHWNJTJXLKSCFSMWLSDQYSJTXKZSCFWJLBXFTZLLJZLLQBLSQMQQCGCZFPBPHZCZJLPYYGGDTGWDCFCZQYYYQYSSCLXZSKLZZZGFFCQNWGLHQYZJJCZLQZZYJPJZZBPDCCMHJGXDQDGDLZQMFGPSYTSDYFWWDJZJYSXYYCZCYHZWPBYKXRYLYBHKJKSFXTZJMMCKHLLTNYYMSYXYZPYJQYCSYCWMTJJKQYRHLLQXPSGTLYYCLJSCPXJYZFNMLRGJJTYZBXYZMSJYJHHFZQMSYXRSZCWTLRTQZSSTKXGQKGSPTGCZNJSJCQCXHMXGGZTQYDJKZDLBZSXJLHYQGGGTHQSZPYHJHHGYYGKGGCWJZZYLCZLXQSFTGZSLLLMLJSKCTBLLZZSZMMNYTPZSXQHJCJYQXYZXZQZCPSHKZZYSXCDFGMWQRLLQXRFZTLYSTCTMJCXJJXHJNXTNRZTZFQYHQGLLGCXSZSJDJLJCYDSJTLNYXHSZXCGJZYQPYLFHDJSBPCCZHJJJQZJQDYBSSLLCMYTTMQTBHJQNNYGKYRQYQMZGCJKPDCGMYZHQLLSLLCLMHOLZGDYYFZSLJCQZLYLZQJESHNYLLJXGJXLYSYYYXNBZLJSSZCQQCJYLLZLTJYLLZLLBNYLGQCHXYYXOXCXQKYJXXXYKLXSXXYQXCYKQXQCSGYXXYQXYGYTQOHXHXPYXXXULCYEYCHZZCBWQBBWJQZSCSZSSLZYLKDESJZWMYMCYTSDSXXSCJPQQSQYLYYZYCMDJDZYWCBTJSYDJKCYDDJLBDJJSODZYSYXQQYXDHHGQQYQHDYXWGMMMAJDYBBBPPBCMUUPLJZSMTXERXJMHQNUTPJDCBSSMSSSTKJTSSMMTRCPLZSZMLQDSDMJMQPNQDXCFYNBFSDQXYXHYAYKQYDDLQYYYSSZBYDSLNTFQTZQPZMCHDHCZCWFDXTMYQSPHQYYXSRGJCWTJTZZQMGWJJTJHTQJBBHWZPXXHYQFXXQYWYYHYSCDYDHHQMNMTMWCPBSZPPZZGLMZFOLLCFWHMMSJZTTDHZZYFFYTZZGZYSKYJXQYJZQBHMBZZLYGHGFMSHPZFZSNCLPBQSNJXZSLXXFPMTYJYGBXLLDLXPZJYZJYHHZCYWHJYLSJEXFSZZYWXKZJLUYDTMLYMQJPWXYHXSKTQJEZRPXXZHHMHWQPWQLYJJQJJZSZCPHJLCHHNXJLQWZJHBMZYXBDHHYPZLHLHLGFWLCHYYTLHJXCJMSCPXSTKPNHQXSRTYXXTESYJCTLSSLSTDLLLWWYHDHRJZSFGXTSYCZYNYHTDHWJSLHTZDQDJZXXQHGYLTZPHCSQFCLNJTCLZPFSTPDYNYLGMJLLYCQHYSSHCHYLHQYQTMZYPBYWRFQYKQSYSLZDQJMPXYYSSRHZJNYWTQDFZBWWTWWRXCWHGYHXMKMYYYQMSMZHNGCEPMLQQMTCWCTMMPXJPJJHFXYYZSXZHTYBMSTSYJTTQQQYYLHYNPYQZLCYZHZWSMYLKFJXLWGXYPJYTYSYXYMZCKTTWLKSMZSYLMPWLZWXWQZSSAQSYXYRHSSNTSRAPXCPWCMGDXHXZDZYFJHGZTTSBJHGYZSZYSMYCLLLXBTYXHBBZJKSSDMALXHYCFYGMQYPJYCQXJLLLJGSLZGQLYCJCCZOTYXMTMTTLLWTGPXYMZMKLPSZZZXHKQYSXCTYJZYHXSHYXZKXLZWPSQPYHJWPJPWXQQYLXSDHMRSLZZYZWTTCYXYSZZSHBSCCSTPLWSSCJCHNLCGCHSSPHYLHFHHXJSXYLLNYLSZDHZXYLSXLWZYKCLDYAXZCMDDYSPJTQJZLNWQPSSSWCTSTSZLBLNXSMNYYMJQBQHRZWTYYDCHQLXKPZWBGQYBKFCMZWPZLLYYLSZYDWHXPSBCMLJBSCGBHXLQHYRLJXYSWXWXZSLDFHLSLYNJLZYFLYJYCDRJLFSYZFSLLCQYQFGJYHYXZLYLMSTDJCYHBZLLNWLXXYGYYHSMGDHXXHHLZZJZXCZZZCYQZFNGWPYLCPKPYYPMCLQKDGXZGGWQBDXZZKZFBXXLZXJTPJPTTBYTSZZDWSLCHZHSLTYXHQLHYXXXYYZYSWTXZKHLXZXZPYHGCHKCFSYHUTJRLXFJXPTZTWHPLYXFCRHXSHXKYXXYHZQDXQWULHYHMJTBFLKHTXCWHJFWJCFPQRYQXCYYYQYGRPYWSGSUNGWCHKZDXYFLXXHJJBYZWTSXXNCYJJYMSWZJQRMHXZWFQSYLZJZGBHYNSLBGTTCSYBYXXWXYHXYYXNSQYXMQYWRGYQLXBBZLJSYLPSYTJZYHYZAWLRORJMKSCZJXXXYXCHDYXRYXXJDTSQFXLYLTSFFYXLMTYJMJUYYYXLTZCSXQZQHZXLYYXZHDNBRXXXJCTYHLBRLMBRLLAXKYLLLJLYXXLYCRYLCJTGJCMTLZLLCYZZPZPCYAWHJJFYBDYYZSMPCKZDQYQPBPCJPDCYZMDPBCYYDYCNNPLMTMLRMFMMGWYZBSJGYGSMZQQQZTXMKQWGXLLPJGZBQCDJJJFPKJKCXBLJMSWMDTQJXLDLPPBXCWRCQFBFQJCZAHZGMYKPHYYHZYKNDKZMBPJYXPXYHLFPNYYGXJDBKXNXHJMZJXSTRSTLDXSKZYSYBZXJLXYSLBZYSLHXJPFXPQNBYLLJQKYGZMCYZZYMCCSLCLHZFWFWYXZMWSXTYNXJHPYYMCYSPMHYSMYDYSHQYZCHMJJMZCAAGCFJBBHPLYZYLXXSDJGXDHKXXTXXNBHRMLYJSLTXMRHNLXQJXYZLLYSWQGDLBJHDCGJYQYCMHWFMJYBMBYJYJWYMDPWHXQLDYGPDFXXBCGJSPCKRSSYZJMSLBZZJFLJJJLGXZGYXYXLSZQYXBEXYXHGCXBPLDYHWETTWWCJMBTXCHXYQXLLXFLYXLLJLSSFWDPZSMYJCLMWYTCZPCHQEKCQBWLCQYDPLQPPQZQFJQDJHYMMCXTXDRMJWRHXCJZYLQXDYYNHYYHRSLSRSYWWZJYMTLTLLGTQCJZYABTCKZCJYCCQLJZQXALMZYHYWLWDXZXQDLLQSHGPJFJLJHJABCQZDJGTKHSSTCYJLPSWZLXZXRWGLDLZRLZXTGSLLLLZLYXXWGDZYGBDPHZPBRLWSXQBPFDWOFMWHLYPCBJCCLDMBZPBZZLCYQXLDOMZBLZWPDWYYGDSTTHCSQSCCRSSSYSLFYBFNTYJSZDFNDPDHDZZMBBLSLCMYFFGTJJQWFTMTPJWFNLBZCMMJTGBDZLQLPYFHYYMJYLSDCHDZJWJCCTLJCLDTLJJCPDDSQDSSZYBNDBJLGGJZXSXNLYCYBJXQYCBYLZCFZPPGKCXZDZFZTJJFJSJXZBNZYJQTTYJYHTYCZHYMDJXTTMPXSPLZCDWSLSHXYPZGTFMLCJTYCBPMGDKWYCYZCDSZZYHFLYCTYGWHKJYYLSJCXGYWJCBLLCSNDDBTZBSCLYZCZZSSQDLLMQYYHFSLQLLXFTYHABXGWNYWYYPLLSDLDLLBJCYXJZMLHLJDXYYQYTDLLLBUGBFDFBBQJZZMDPJHGCLGMJJPGAEHHBWCQXAXHHHZCHXYPHJAXHLPHJPGPZJQCQZGJJZZUZDMQYYBZZPHYHYBWHAZYJHYKFGDPFQSDLZMLJXKXGALXZDAGLMDGXMWZQYXXDXXPFDMMSSYMPFMDMMKXKSYZYSHDZKXSYSMMZZZMSYDNZZCZXFPLSTMZDNMXCKJMZTYYMZMZZMSXHHDCZJEMXXKLJSTLWLSQLYJZLLZJSSDPPMHNLZJCZYHMXXHGZCJMDHXTKGRMXFWMCGMWKDTKSXQMMMFZZYDKMSCLCMPCGMHSPXQPZDSSLCXKYXTWLWJYAHZJGZQMCSNXYYMMPMLKJXMHLMLQMXCTKZMJQYSZJSYSZHSYJZJCDAJZYBSDQJZGWZQQXFKDMSDJLFWEHKZQKJPEYPZYSZCDWYJFFMZZYLTTDZZEFMZLBNPPLPLPEPSZALLTYLKCKQZKGENQLWAGYXYDPXLHSXQQWQCQXQCLHYXXMLYCCWLYMQYSKGCHLCJNSZKPYZKCQZQLJPDMDZHLASXLBYDWQLWDNBQCRYDDZTJYBKBWSZDXDTNPJDTCTQDFXQQMGNXECLTTBKPWSLCTYQLPWYZZKLPYGZCQQPLLKCCYLPQMZCZQCLJSLQZDJXLDDHPZQDLJJXZQDXYZQKZLJCYQDYJPPYPQYKJYRMPCBYMCXKLLZLLFQPYLLLMBSGLCYSSLRSYSQTMXYXZQZFDZUYSYZTFFMZZSMZQHZSSCCMLYXWTPZGXZJGZGSJSGKDDHTQGGZLLBJDZLCBCHYXYZHZFYWXYZYMSDBZZYJGTSMTFXQYXQSTDGSLNXDLRYZZLRYYLXQHTXSRTZNGZXBNQQZFMYKMZJBZYMKBPNLYZPBLMCNQYZZZSJZHJCTZKHYZZJRDYZHNPXGLFZTLKGJTCTSSYLLGZRZBBQZZKLPKLCZYSSUYXBJFPNJZZXCDWXZYJXZZDJJKGGRSRJKMSMZJLSJYWQSKYHQJSXPJZZZLSNSHRNYPZTWCHKLPSRZLZXYJQXQKYSJYCZTLQZYBBYBWZPQDWWYZCYTJCJXCKCWDKKZXSGKDZXWWYYJQYYTCYTDLLXWKCZKKLCCLZCQQDZLQLCSFQCHQHSFSMQZZLNBJJZBSJHTSZDYSJQJPDLZCDCWJKJZZLPYCGMZWDJJBSJQZSYZYHHXJPBJYDSSXDZNCGLQMBTSFSBPDZDLZNFGFJGFSMPXJQLMBLGQCYYXBQKDJJQYRFKZTJDHCZKLBSDZCFJTPLLJGXHYXZCSSZZXSTJYGKGCKGYOQXJPLZPBPGTGYJZGHZQZZLBJLSQFZGKQQJZGYCZBZQTLDXRJXBSXXPZXHYZYCLWDXJJHXMFDZPFZHQHQMQGKSLYHTYCGFRZGNQXCLPDLBZCSCZQLLJBLHBZCYPZZPPDYMZZSGYHCKCPZJGSLJLNSCDSLDLXBMSTLDDFJMKDJDHZLZXLSZQPQPGJLLYBDSZGQLBZLSLKYYHZTTNTJYQTZZPSZQZTLLJTYYLLQLLQYZQLBDZLSLYYZYMDFSZSNHLXZNCZQZPBWSKRFBSYZMTHBLGJPMCZZLSTLXSHTCSYZLZBLFEQHLXFLCJLYLJQCBZLZJHHSSTBRMHXZHJZCLXFNBGXGTQJCZTMSFZKJMSSNXLJKBHSJXNTNLZDNTLMSJXGZJYJCZXYJYJWRWWQNZTNFJSZPZSHZJFYRDJSFSZJZBJFZQZZHZLXFYSBZQLZSGYFTZDCSZXZJBQMSZKJRHYJZCKMJKHCHGTXKXQGLXPXFXTRTYLXJXHDTSJXHJZJXZWZLCQSBTXWXGXTXXHXFTSDKFJHZYJFJXRZSDLLLTQSQQZQWZXSYQTWGWBZCGZLLYZBCLMQQTZHZXZXLJFRMYZFLXYSQXXJKXRMQDZDMMYYBSQBHGZMWFWXGMXLZPYYTGZYCCDXYZXYWGSYJYZNBHPZJSQSYXSXRTFYZGRHZTXSZZTHCBFCLSYXZLZQMZLMPLMXZJXSFLBYZMYQHXJSXRXSQZZZSSLYFRCZJRCRXHHZXQYDYHXSJJHZCXZBTYNSYSXJBQLPXZQPYMLXZKYXLXCJLCYSXXZZLXDLLLJJYHZXGYJWKJRWYHCPSGNRZLFZWFZZNSXGXFLZSXZZZBFCSYJDBRJKRDHHGXJLJJTGXJXXSTJTJXLYXQFCSGSWMSBCTLQZZWLZZKXJMLTMJYHSDDBXGZHDLBMYJFRZFSGCLYJBPMLYSMSXLSZJQQHJZFXGFQFQBPXZGYYQXGZTCQWYLTLGWSGWHRLFSFGZJMGMGBGTJFSYZZGZYZAFLSSPMLPFLCWBJZCLJJMZLPJJLYMQDMYYYFBGYGYZMLYZDXQYXRQQQHSYYYQXYLJTYXFSFSLLGNQCYHYCWFHCCCFXPYLYPLLZYXXXXXKQHHXSHJZCFZSCZJXCPZWHHHHHAPYLQALPQAFYHXDYLUKMZQGGGDDESRNNZLTZGCHYPPYSQJJHCLLJTOLNJPZLJLHYMHEYDYDSQYCDDHGZUNDZCLZYZLLZNTNYZGSLHSLPJJBDGWXPCDUTJCKLKCLWKLLCASSTKZZDNQNTTLYYZSSYSSZZRYLJQKCQDHHCRXRZYDGRGCWCGZQFFFPPJFZYNAKRGYWYQPQXXFKJTSZZXSWZDDFBBXTBGTZKZNPZZPZXZPJSZBMQHKCYXYLDKLJNYPKYGHGDZJXXEAHPNZKZTZCMXCXMMJXNKSZQNMNLWBWWXJKYHCPSTMCSQTZJYXTPCTPDTNNPGLLLZSJLSPBLPLQHDTNJNLYYRSZFFJFQWDPHZDWMRZCCLODAXNSSNYZRESTYJWJYJDBCFXNMWTTBYLWSTSZGYBLJPXGLBOCLHPCBJLTMXZLJYLZXCLTPNCLCKXTPZJSWCYXSFYSZDKNTLBYJCYJLLSTGQCBXRYZXBXKLYLHZLQZLNZCXWJZLJZJNCJHXMNZZGJZZXTZJXYCYYCXXJYYXJJXSSSJSTSSTTPPGQTCSXWZDCSYFPTFBFHFBBLZJCLZZDBXGCXLQPXKFZFLSYLTUWBMQJHSZBMDDBCYSCCLDXYCDDQLYJJWMQLLCSGLJJSYFPYYCCYLTJANTJJPWYCMMGQYYSXDXQMZHSZXPFTWWZQSWQRFKJLZJQQYFBRXJHHFWJJZYQAZMYFRHCYYBYQWLPEXCCZSTYRLTTDMQLYKMBBGMYYJPRKZNPBSXYXBHYZDJDNGHPMFSGMWFZMFQMMBCMZZCJJLCNUXYQLMLRYGQZCYXZLWJGCJCGGMCJNFYZZJHYCPRRCMTZQZXHFQGTJXCCJEAQCRJYHPLQLSZDJRBCQHQDYRHYLYXJSYMHZYDWLDFRYHBPYDTSSCNWBXGLPZMLZZTQSSCPJMXXYCSJYTYCGHYCJWYRXXLFEMWJNMKLLSWTXHYYYNCMMCWJDQDJZGLLJWJRKHPZGGFLCCSCZMCBLTBHBQJXQDSPDJZZGKGLFQYWBZYZJLTSTDHQHCTCBCHFLQMPWDSHYYTQWCNZZJTLBYMBPDYYYXSQKXWYYFLXXNCWCXYPMAELYKKJMZZZBRXYYQJFLJPFHHHYTZZXSGQQMHSPGDZQWBWPJHZJDYSCQWZKTXXSQLZYYMYSDZGRXCKKUJLWPYSYSCSYZLRMLQSYLJXBCXTLWDQZPCYCYKPPPNSXFYZJJRCEMHSZMSXLXGLRWGCSTLRSXBZGBZGZTCPLUJLSLYLYMTXMTZPALZXPXJTJWTCYYZLBLXBZLQMYLXPGHDSLSSDMXMBDZZSXWHAMLCZCPJMCNHJYSNSYGCHSKQMZZQDLLKABLWJXSFMOCDXJRRLYQZKJMYBYQLYHETFJZFRFKSRYXFJTWDSXXSYSQJYSLYXWJHSNLXYYXHBHAWHHJZXWMYLJCSSLKYDZTXBZSYFDXGXZJKHSXXYBSSXDPYNZWRPTQZCZENYGCXQFJYKJBZMLJCMQQXUOXSLYXXLYLLJDZBTYMHPFSTTQQWLHOKYBLZZALZXQLHZWRRQHLSTMYPYXJJXMQSJFNBXYXYJXXYQYLTHYLQYFMLKLJTMLLHSZWKZHLJMLHLJKLJSTLQXYLMBHHLNLZXQJHXCFXXLHYHJJGBYZZKBXSCQDJQDSUJZYYHZHHMGSXCSYMXFEBCQWWRBPYYJQTYZCYQYQQZYHMWFFHGZFRJFCDPXNTQYZPDYKHJLFRZXPPXZDBBGZQSTLGDGYLCQMLCHHMFYWLZYXKJLYPQHSYWMQQGQZMLZJNSQXJQSYJYCBEHSXFSZPXZWFLLBCYYJDYTDTHWZSFJMQQYJLMQXXLLDTTKHHYBFPWTYYSQQWNQWLGWDEBZWCMYGCULKJXTMXMYJSXHYBRWFYMWFRXYQMXYSZTZZTFYKMLDHQDXWYYNLCRYJBLPSXCXYWLSPRRJWXHQYPHTYDNXHHMMYWYTZCSQMTSSCCDALWZTCPQPYJLLQZYJSWXMZZMMYLMXCLMXCZMXMZSQTZPPQQBLPGXQZHFLJJHYTJSRXWZXSCCDLXTYJDCQJXSLQYCLZXLZZXMXQRJMHRHZJBHMFLJLMLCLQNLDXZLLLPYPSYJYSXCQQDCMQJZZXHNPNXZMEKMXHYKYQLXSXTXJYYHWDCWDZHQYYBGYBCYSCFGPSJNZDYZZJZXRZRQJJYMCANYRJTLDPPYZBSTJKXXZYPFDWFGZZRPYMTNGXZQBYXNBUFNQKRJQZMJEGRZGYCLKXZDSKKNSXKCLJSPJYYZLQQJYBZSSQLLLKJXTBKTYLCCDDBLSPPFYLGYDTZJYQGGKQTTFZXBDKTYYHYBBFYTYYBCLPDYTGDHRYRNJSPTCSNYJQHKLLLZSLYDXXWBCJQSPXBPJZJCJDZFFXXBRMLAZHCSNDLBJDSZBLPRZTSWSBXBCLLXXLZDJZSJPYLYXXYFTFFFBHJJXGBYXJPMMMPSSJZJMTLYZJXSWXTYLEDQPJMYGQZJGDJLQJWJQLLSJGJGYGMSCLJJXDTYGJQJQJCJZCJGDZZSXQGSJGGCXHQXSNQLZZBXHSGZXCXYLJXYXYYDFQQJHJFXDHCTXJYRXYSQTJXYEFYYSSYYJXNCYZXFXMSYSZXYYSCHSHXZZZGZZZGFJDLTYLNPZGYJYZYYQZPBXQBDZTZCZYXXYHHSQXSHDHGQHJHGYWSZTMZMLHYXGEBTYLZKQWYTJZRCLEKYSTDBCYKQQSAYXCJXWWGSBHJYZYDHCSJKQCXSWXFLTYNYZPZCCZJQTZWJQDZZZQZLJJXLSBHPYXXPSXSHHEZTXFPTLQYZZXHYTXNCFZYYHXGNXMYWXTZSJPTHHGYMXMXQZXTSBCZYJYXXTYYZYPCQLMMSZMJZZLLZXGXZAAJZYXJMZXWDXZSXZDZXLEYJJZQBHZWZZZQTZPSXZTDSXJJJZNYAZPHXYYSRNQDTHZHYYKYJHDZXZLSWCLYBZYECWCYCRYLCXNHZYDZYDYJDFRJJHTRSQTXYXJRJHOJYNXELXSFSFJZGHPZSXZSZDZCQZBYYKLSGSJHCZSHDGQGXYZGXCHXZJWYQWGYHKSSEQZZNDZFKWYSSTCLZSTSYMCDHJXXYWEYXCZAYDMPXMDSXYBSQMJMZJMTZQLPJYQZCGQHXJHHLXXHLHDLDJQCLDWBSXFZZYYSCHTYTYYBHECXHYKGJPXHHYZJFXHWHBDZFYZBCAPNPGNYDMSXHMMMMAMYNBYJTMPXYYMCTHJBZYFCGTYHWPHFTWZZEZSBZEGPFMTSKFTYCMHFLLHGPZJXZJGZJYXZSBBQSCZZLZCCSTPGXMJSFTCCZJZDJXCYBZLFCJSYZFGSZLYBCWZZBYZDZYPSWYJZXZBDSYUXLZZBZFYGCZXBZHZFTPBGZGEJBSTGKDMFHYZZJHZLLZZGJQZLSFDJSSCBZGPDLFZFZSZYZYZSYGCXSNXXCHCZXTZZLJFZGQSQYXZJQDCCZTQCDXZJYQJQCHXZTDLGSCXZSYQJQTZWLQDQZTQCHQQJZYEZZZPBWKDJFCJPZTYPQYQTTYNLMBDKTJZPQZQZZFPZSBNJLGYJDXJDZZKZGQKXDLPZJTCJDQBXDJQJSTCKNXBXZMSLYJCQMTJQWWCJQNJNLLLHJCWQTBZQYDZCZPZZDZYDDCYZZZCCJTTJFZDPRRTZTJDCQTQZDTJNPLZBCLLCTZSXKJZQZPZLBZRBTJDCXFCZDBCCJJLTQQPLDCGZDBBZJCQDCJWYNLLZYZCCDWLLXWZLXRXNTQQCZXKQLSGDFQTDDGLRLAJJTKUYMKQLLTZYTDYYCZGJWYXDXFRSKSTQTENQMRKQZHHQKDLDAZFKYPBGGPZREBZZYKZZSPEGJXGYKQZZZSLYSYYYZWFQZYLZZLZHWCHKYPQGNPGBLPLRRJYXCCSYYHSFZFYBZYYTGZXYLXCZWXXZJZBLFFLGSKHYJZEYJHLPLLLLCZGXDRZELRHGKLZZYHZLYQSZZJZQLJZFLNBHGWLCZCFJYSPYXZLZLXGCCPZBLLCYBBBBUBBCBPCRNNZCZYRBFSRLDCGQYYQXYGMQZWTZYTYJXYFWTEHZZJYWLCCNTZYJJZDEDPZDZTSYQJHDYMBJNYJZLXTSSTPHNDJXXBYXQTZQDDTJTDYYTGWSCSZQFLSHLGLBCZPHDLYZJYCKWTYTYLBNYTSDSYCCTYSZYYEBHEXHQDTWNYGYCLXTSZYSTQMYGZAZCCSZZDSLZCLZRQXYYELJSBYMXSXZTEMBBLLYYLLYTDQYSHYMRQWKFKBFXNXSBYCHXBWJYHTQBPBSBWDZYLKGZSKYHXQZJXHXJXGNLJKZLYYCDXLFYFGHLJGJYBXQLYBXQPQGZTZPLNCYPXDJYQYDYMRBESJYYHKXXSTMXRCZZYWXYQYBMCLLYZHQYZWQXDBXBZWZMSLPDMYSKFMZKLZCYQYCZLQXFZZYDQZPZYGYJYZMZXDZFYFYTTQTZHGSPCZMLCCYTZXJCYTJMKSLPZHYSNZLLYTPZCTZZCKTXDHXXTQCYFKSMQCCYYAZHTJPCYLZLYJBJXTPNYLJYYNRXSYLMMNXJSMYBCSYSYLCYLXJJQYLDZLPQBFZZBLFNDXQKCZFYWHGQMRDSXYCYTXNQQJZYYPFZXDYZFPRXEJDGYQBXRCNFYYQPGHYJDYZXGRHTKYLNWDZNTSMPKLBTHBPYSZBZTJZSZZJTYYXZPHSSZZBZCZPTQFZMYFLYPYBBJQXZMXXDJMTSYSKKBJZXHJCKLPSMKYJZCXTMLJYXRZZQSLXXQPYZXMKYXXXJCLJPRMYYGADYSKQLSNDHYZKQXZYZTCGHZTLMLWZYBWSYCTBHJHJFCWZTXWYTKZLXQSHLYJZJXTMPLPYCGLTBZZTLZJCYJGDTCLKLPLLQPJMZPAPXYZLKKTKDZCZZBNZDYDYQZJYJGMCTXLTGXSZLMLHBGLKFWNWZHDXUHLFMKYSLGXDTWWFRJEJZTZHYDXYKSHWFZCQSHKTMQQHTZHYMJDJSKHXZJZBZZXYMPAGQMSTPXLSKLZYNWRTSQLSZBPSPSGZWYHTLKSSSWHZZLYYTNXJGMJSZSUFWNLSOZTXGXLSAMMLBWLDSZYLAKQCQCTMYCFJBSLXCLZZCLXXKSBZQCLHJPSQPLSXXCKSLNHPSFQQYTXYJZLQLDXZQJZDYYDJNZPTUZDSKJFSLJHYLZSQZLBTXYDGTQFDBYAZXDZHZJNHHQBYKNXJJQCZMLLJZKSPLDYCLBBLXKLELXJLBQYCXJXGCNLCQPLZLZYJTZLJGYZDZPLTQCSXFDMNYCXGBTJDCZNBGBQYQJWGKFHTNPYQZQGBKPBBYZMTJDYTBLSQMPSXTBNPDXKLEMYYCJYNZCTLDYKZZXDDXHQSHDGMZSJYCCTAYRZLPYLTLKXSLZCGGEXCLFXLKJRTLQJAQZNCMBYDKKCXGLCZJZXJHPTDJJMZQYKQSECQZDSHHADMLZFMMZBGNTJNNLGBYJBRBTMLBYJDZXLCJLPLDLPCQDHLXZLYCBLCXZZJADJLNCMMSSSMYBHBSQKBHRSXXJMXSDZNZPXLGBRHWGGFCXGMSKLLTSJYYCQLTSKYWYYHYWXBXQYWPYWYKQLSQPTNTKHQCWDQKTWPXXHCPTHTWUMSSYHBWCRWXHJMKMZNGWTMLKFGHKJYLSYYCXWHYECLQHKQHTTQKHFZLDXQWYZYYDESBPKYRZPJFYYZJCEQDZZDLATZBBFJLLCXDLMJSSXEGYGSJQXCWBXSSZPDYZCXDNYXPPZYDLYJCZPLTXLSXYZYRXCYYYDYLWWNZSAHJSYQYHGYWWAXTJZDAXYSRLTDPSSYYFNEJDXYZHLXLLLZQZSJNYQYQQXYJGHZGZCYJCHZLYCDSHWSHJZYJXCLLNXZJJYYXNFXMWFPYLCYLLABWDDHWDXJMCXZTZPMLQZHSFHZYNZTLLDYWLSLXHYMMYLMBWWKYXYADTXYLLDJPYBPWUXJMWMLLSAFDLLYFLBHHHBQQLTZJCQJLDJTFFKMMMBYTHYGDCQRDDWRQJXNBYSNWZDBYYTBJHPYBYTTJXAAHGQDQTMYSTQXKBTZPKJLZRBEQQSSMJJBDJOTGTBXPGBKTLHQXJJJCTHXQDWJLWRFWQGWSHCKRYSWGFTGYGBXSDWDWRFHWYTJJXXXJYZYSLPYYYPAYXHYDQKXSHXYXGSKQHYWFDDDPPLCJLQQEEWXKSYYKDYPLTJTHKJLTCYYHHJTTPLTZZCDLTHQKZXQYSTEEYWYYZYXXYYSTTJKLLPZMCYHQGXYHSRMBXPLLNQYDQHXSXXWGDQBSHYLLPJJJTHYJKYPPTHYYKTYEZYENMDSHLCRPQFDGFXZPSFTLJXXJBSWYYSKSFLXLPPLBBBLBSFXFYZBSJSSYLPBBFFFFSSCJDSTZSXZRYYSYFFSYZYZBJTBCTSBSDHRTJJBYTCXYJEYLXCBNEBJDSYXYKGSJZBXBYTFZWGENYHHTHZHHXFWGCSTBGXKLSXYWMTMBYXJSTZSCDYQRCYTWXZFHMYMCXLZNSDJTTTXRYCFYJSBSDYERXJLJXBBDEYNJGHXGCKGSCYMBLXJMSZNSKGXFBNBPTHFJAAFXYXFPXMYPQDTZCXZZPXRSYWZDLYBBKTYQPQJPZYPZJZNJPZJLZZFYSBTTSLMPTZRTDXQSJEHBZYLZDHLJSQMLHTXTJECXSLZZSPKTLZKQQYFSYGYWPCPQFHQHYTQXZKRSGTTSQCZLPTXCDYYZXSQZSLXLZMYCPCQBZYXHBSXLZDLTCDXTYLZJYYZPZYZLTXJSJXHLPMYTXCQRBLZSSFJZZTNJYTXMYJHLHPPLCYXQJQQKZZSCPZKSWALQSBLCCZJSXGWWWYGYKTJBBZTDKHXHKGTGPBKQYSLPXPJCKBMLLXDZSTBKLGGQKQLSBKKTFXRMDKBFTPZFRTBBRFERQGXYJPZSSTLBZTPSZQZSJDHLJQLZBPMSMMSXLQQNHKNBLRDDNXXDHDDJCYYGYLXGZLXSYGMQQGKHBPMXYXLYTQWLWGCPBMQXCYZYDRJBHTDJYHQSHTMJSBYPLWHLZFFNYPMHXXHPLTBQPFBJWQDBYGPNZTPFZJGSDDTQSHZEAWZZYLLTYYBWJKXXGHLFKXDJTMSZSQYNZGGSWQSPHTLSSKMCLZXYSZQZXNCJDQGZDLFNYKLJCJLLZLMZZNHYDSSHTHZZLZZBBHQZWWYCRZHLYQQJBEYFXXXWHSRXWQHWPSLMSSKZTTYGYQQWRSLALHMJTQJSMXQBJJZJXZYZKXBYQXBJXSHZTSFJLXMXZXFGHKZSZGGYLCLSARJYHSLLLMZXELGLXYDJYTLFBHBPNLYZFBBHPTGJKWETZHKJJXZXXGLLJLSTGSHJJYQLQZFKCGNNDJSSZFDBCTWWSEQFHQJBSAQTGYPQLBXBMMYWXGSLZHGLZGQYFLZBYFZJFRYSFMBYZHQGFWZSYFYJJPHZBYYZFFWODGRLMFTWLBZGYCQXCDJYGZYYYYTYTYDWEGAZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY",getFirstLetter:function(e){if(!e||/^ +$/g.test(e))return"";if(r.firstletter){var t=e.charCodeAt(0),n=e.charAt(0);n=t>=19968&&t<=40869?r.firstletter.charAt(t-19968):t>=97&&t<=122||t>=65&&t<=90?n.toLocaleUpperCase():"#";var i={unicode:t,firstletter:n};return i}return""}},i=r;t.default=i},58:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{mescroll:null}},onPullDownRefresh:function(){this.mescroll&&this.mescroll.onPullDownRefresh()},onPageScroll:function(e){this.mescroll&&this.mescroll.onPageScroll(e)},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},methods:{mescrollInit:function(e){this.mescroll=e},downCallback:function(){var e=this;this.mescroll.optUp.use?this.mescroll.resetUpScroll():setTimeout((function(){e.mescroll.endSuccess()}),500)},upCallback:function(){var e=this;setTimeout((function(){e.mescroll.endErr()}),500)}}},i=r;t.default=i},59:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collection=u,t.disableCollection=l,t.getCollectionHouseListByPage=y,t.getHouseDetailById=a,t.getHouseEvaluateListByPage=p,t.getHouseListByPage=o,t.getOpenHouseListByPage=i,t.getReservationList=d,t.getTagByCode=g,t.getVisitorByQuery=c,t.insertEvaluate=h,t.insertReservation=f,t.insertVisitor=s,t.search=v;var r=n(45);function i(e){return(0,r.request)({url:"/api/projectItemTargetRoom/open/".concat(e.currPage,"/").concat(e.pageSize),method:"post",data:e})}function o(e){return(0,r.request)({url:"/api/projectItemTargetRoom/".concat(e.currPage,"/").concat(e.pageSize),method:"post",data:e})}function a(e){return(0,r.request)({url:"/api/projectItemTargetRoom/".concat(e),method:"get"})}function s(e){return(0,r.request)({url:"/api/roomOperation/visitor",method:"post",data:e})}function c(e){return(0,r.request)({url:"/api/roomOperation/visitor/".concat(e.currPage,"/").concat(e.pageSize),method:"post",data:e})}function u(e){return(0,r.request)({url:"/api/roomOperation/collection/".concat(e),method:"get"})}function l(e){return(0,r.request)({url:"/api/roomOperation/collection/".concat(e),method:"delete"})}function f(e){return(0,r.request)({url:"/api/roomOperation/reservation",method:"post",data:e})}function d(e){return(0,r.request)({url:"/api/roomOperation/reservation/list",method:"post",data:e})}function p(e){return(0,r.request)({url:"/api/roomOperation/evaluate/".concat(e.currPage,"/").concat(e.pageSize),method:"post",data:e})}function h(e){return(0,r.request)({url:"/api/roomOperation/evaluate",method:"post",data:e})}function y(e,t,n){return(0,r.request)({url:"/api/roomOperation/collection/".concat(e,"/").concat(t,"?coordinates=").concat(n),method:"get"})}function g(e){return(0,r.request)({url:"/api/tag/code/".concat(e),method:"post"})}function v(e){return(0,r.request)({url:"/api/projectItemTargetRoom/query/".concat(e),method:"get"})}},6:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},60:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=[{cityCode:"110100",cityName:"北京"},{cityCode:"120100",cityName:"天津"},{cityCode:"130100",cityName:"石家庄市"},{cityCode:"130200",cityName:"唐山市"},{cityCode:"130300",cityName:"秦皇岛市"},{cityCode:"130400",cityName:"邯郸市"},{cityCode:"130500",cityName:"邢台市"},{cityCode:"130600",cityName:"保定市"},{cityCode:"130700",cityName:"张家口市"},{cityCode:"130800",cityName:"承德市"},{cityCode:"130900",cityName:"沧州市"},{cityCode:"131000",cityName:"廊坊市"},{cityCode:"131100",cityName:"衡水市"},{cityCode:"140100",cityName:"太原市"},{cityCode:"140200",cityName:"大同市"},{cityCode:"140300",cityName:"阳泉市"},{cityCode:"140400",cityName:"长治市"},{cityCode:"140500",cityName:"晋城市"},{cityCode:"140600",cityName:"朔州市"},{cityCode:"140700",cityName:"晋中市"},{cityCode:"140800",cityName:"运城市"},{cityCode:"140900",cityName:"忻州市"},{cityCode:"141000",cityName:"临汾市"},{cityCode:"141100",cityName:"吕梁市"},{cityCode:"150100",cityName:"呼和浩特市"},{cityCode:"150200",cityName:"包头市"},{cityCode:"150300",cityName:"乌海市"},{cityCode:"150400",cityName:"赤峰市"},{cityCode:"150500",cityName:"通辽市"},{cityCode:"150600",cityName:"鄂尔多斯市"},{cityCode:"150700",cityName:"呼伦贝尔市"},{cityCode:"150800",cityName:"巴彦淖尔市"},{cityCode:"150900",cityName:"乌兰察布市"},{cityCode:"152200",cityName:"兴安盟"},{cityCode:"152500",cityName:"锡林郭勒盟"},{cityCode:"152900",cityName:"阿拉善盟"},{cityCode:"210100",cityName:"沈阳市"},{cityCode:"210200",cityName:"大连市"},{cityCode:"210300",cityName:"鞍山市"},{cityCode:"210400",cityName:"抚顺市"},{cityCode:"210500",cityName:"本溪市"},{cityCode:"210600",cityName:"丹东市"},{cityCode:"210700",cityName:"锦州市"},{cityCode:"210800",cityName:"营口市"},{cityCode:"210900",cityName:"阜新市"},{cityCode:"211000",cityName:"辽阳市"},{cityCode:"211100",cityName:"盘锦市"},{cityCode:"211200",cityName:"铁岭市"},{cityCode:"211300",cityName:"朝阳市"},{cityCode:"211400",cityName:"葫芦岛市"},{cityCode:"220100",cityName:"长春市"},{cityCode:"220200",cityName:"吉林市"},{cityCode:"220300",cityName:"四平市"},{cityCode:"220400",cityName:"辽源市"},{cityCode:"220500",cityName:"通化市"},{cityCode:"220600",cityName:"白山市"},{cityCode:"220700",cityName:"松原市"},{cityCode:"220800",cityName:"白城市"},{cityCode:"222400",cityName:"延边朝鲜族自治州"},{cityCode:"230100",cityName:"哈尔滨市"},{cityCode:"230200",cityName:"齐齐哈尔市"},{cityCode:"230300",cityName:"鸡西市"},{cityCode:"230400",cityName:"鹤岗市"},{cityCode:"230500",cityName:"双鸭山市"},{cityCode:"230600",cityName:"大庆市"},{cityCode:"230700",cityName:"伊春市"},{cityCode:"230800",cityName:"佳木斯市"},{cityCode:"230900",cityName:"七台河市"},{cityCode:"231000",cityName:"牡丹江市"},{cityCode:"231100",cityName:"黑河市"},{cityCode:"231200",cityName:"绥化市"},{cityCode:"232700",cityName:"大兴安岭地区"},{cityCode:"310100",cityName:"上海市"},{cityCode:"320100",cityName:"南京市"},{cityCode:"320200",cityName:"无锡市"},{cityCode:"320300",cityName:"徐州市"},{cityCode:"320400",cityName:"常州市"},{cityCode:"320500",cityName:"苏州市"},{cityCode:"320600",cityName:"南通市"},{cityCode:"320700",cityName:"连云港市"},{cityCode:"320800",cityName:"淮安市"},{cityCode:"320900",cityName:"盐城市"},{cityCode:"321000",cityName:"扬州市"},{cityCode:"321100",cityName:"镇江市"},{cityCode:"321200",cityName:"泰州市"},{cityCode:"321300",cityName:"宿迁市"},{cityCode:"330100",cityName:"杭州市"},{cityCode:"330200",cityName:"宁波市"},{cityCode:"330300",cityName:"温州市"},{cityCode:"330400",cityName:"嘉兴市"},{cityCode:"330500",cityName:"湖州市"},{cityCode:"330600",cityName:"绍兴市"},{cityCode:"330700",cityName:"金华市"},{cityCode:"330800",cityName:"衢州市"},{cityCode:"330900",cityName:"舟山市"},{cityCode:"331000",cityName:"台州市"},{cityCode:"331100",cityName:"丽水市"},{cityCode:"340100",cityName:"合肥市"},{cityCode:"340200",cityName:"芜湖市"},{cityCode:"340300",cityName:"蚌埠市"},{cityCode:"340400",cityName:"淮南市"},{cityCode:"340500",cityName:"马鞍山市"},{cityCode:"340600",cityName:"淮北市"},{cityCode:"340700",cityName:"铜陵市"},{cityCode:"340800",cityName:"安庆市"},{cityCode:"341000",cityName:"黄山市"},{cityCode:"341100",cityName:"滁州市"},{cityCode:"341200",cityName:"阜阳市"},{cityCode:"341300",cityName:"宿州市"},{cityCode:"341500",cityName:"六安市"},{cityCode:"341600",cityName:"亳州市"},{cityCode:"341700",cityName:"池州市"},{cityCode:"341800",cityName:"宣城市"},{cityCode:"350100",cityName:"福州市"},{cityCode:"350200",cityName:"厦门市"},{cityCode:"350300",cityName:"莆田市"},{cityCode:"350400",cityName:"三明市"},{cityCode:"350500",cityName:"泉州市"},{cityCode:"350600",cityName:"漳州市"},{cityCode:"350700",cityName:"南平市"},{cityCode:"350800",cityName:"龙岩市"},{cityCode:"350900",cityName:"宁德市"},{cityCode:"360100",cityName:"南昌市"},{cityCode:"360200",cityName:"景德镇市"},{cityCode:"360300",cityName:"萍乡市"},{cityCode:"360400",cityName:"九江市"},{cityCode:"360500",cityName:"新余市"},{cityCode:"360600",cityName:"鹰潭市"},{cityCode:"360700",cityName:"赣州市"},{cityCode:"360800",cityName:"吉安市"},{cityCode:"360900",cityName:"宜春市"},{cityCode:"361000",cityName:"抚州市"},{cityCode:"361100",cityName:"上饶市"},{cityCode:"370100",cityName:"济南市"},{cityCode:"370200",cityName:"青岛市"},{cityCode:"370300",cityName:"淄博市"},{cityCode:"370400",cityName:"枣庄市"},{cityCode:"370500",cityName:"东营市"},{cityCode:"370600",cityName:"烟台市"},{cityCode:"370700",cityName:"潍坊市"},{cityCode:"370800",cityName:"济宁市"},{cityCode:"370900",cityName:"泰安市"},{cityCode:"371000",cityName:"威海市"},{cityCode:"371100",cityName:"日照市"},{cityCode:"371200",cityName:"莱芜市"},{cityCode:"371300",cityName:"临沂市"},{cityCode:"371400",cityName:"德州市"},{cityCode:"371500",cityName:"聊城市"},{cityCode:"371600",cityName:"滨州市"},{cityCode:"371700",cityName:"菏泽市"},{cityCode:"410100",cityName:"郑州市"},{cityCode:"410200",cityName:"开封市"},{cityCode:"410300",cityName:"洛阳市"},{cityCode:"410400",cityName:"平顶山市"},{cityCode:"410500",cityName:"安阳市"},{cityCode:"410600",cityName:"鹤壁市"},{cityCode:"410700",cityName:"新乡市"},{cityCode:"410800",cityName:"焦作市"},{cityCode:"410900",cityName:"濮阳市"},{cityCode:"411000",cityName:"许昌市"},{cityCode:"411100",cityName:"漯河市"},{cityCode:"411200",cityName:"三门峡市"},{cityCode:"411300",cityName:"南阳市"},{cityCode:"411400",cityName:"商丘市"},{cityCode:"411500",cityName:"信阳市"},{cityCode:"411600",cityName:"周口市"},{cityCode:"411700",cityName:"驻马店市"},{cityCode:"419000",cityName:"省直辖县级行政区划"},{cityCode:"420100",cityName:"武汉市"},{cityCode:"420200",cityName:"黄石市"},{cityCode:"420300",cityName:"十堰市"},{cityCode:"420500",cityName:"宜昌市"},{cityCode:"420600",cityName:"襄阳市"},{cityCode:"420700",cityName:"鄂州市"},{cityCode:"420800",cityName:"荆门市"},{cityCode:"420900",cityName:"孝感市"},{cityCode:"421000",cityName:"荆州市"},{cityCode:"421100",cityName:"黄冈市"},{cityCode:"421200",cityName:"咸宁市"},{cityCode:"421300",cityName:"随州市"},{cityCode:"422800",cityName:"恩施土家族苗族自治州"},{cityCode:"429000",cityName:"省直辖县级行政区划"},{cityCode:"430100",cityName:"长沙市"},{cityCode:"430200",cityName:"株洲市"},{cityCode:"430300",cityName:"湘潭市"},{cityCode:"430400",cityName:"衡阳市"},{cityCode:"430500",cityName:"邵阳市"},{cityCode:"430600",cityName:"岳阳市"},{cityCode:"430700",cityName:"常德市"},{cityCode:"430800",cityName:"张家界市"},{cityCode:"430900",cityName:"益阳市"},{cityCode:"431000",cityName:"郴州市"},{cityCode:"431100",cityName:"永州市"},{cityCode:"431200",cityName:"怀化市"},{cityCode:"431300",cityName:"娄底市"},{cityCode:"433100",cityName:"湘西土家族苗族自治州"},{cityCode:"440100",cityName:"广州市"},{cityCode:"440200",cityName:"韶关市"},{cityCode:"440300",cityName:"深圳市"},{cityCode:"440400",cityName:"珠海市"},{cityCode:"440500",cityName:"汕头市"},{cityCode:"440600",cityName:"佛山市"},{cityCode:"440700",cityName:"江门市"},{cityCode:"440800",cityName:"湛江市"},{cityCode:"440900",cityName:"茂名市"},{cityCode:"441200",cityName:"肇庆市"},{cityCode:"441300",cityName:"惠州市"},{cityCode:"441400",cityName:"梅州市"},{cityCode:"441500",cityName:"汕尾市"},{cityCode:"441600",cityName:"河源市"},{cityCode:"441700",cityName:"阳江市"},{cityCode:"441800",cityName:"清远市"},{cityCode:"441900",cityName:"东莞市"},{cityCode:"442000",cityName:"中山市"},{cityCode:"445100",cityName:"潮州市"},{cityCode:"445200",cityName:"揭阳市"},{cityCode:"445300",cityName:"云浮市"},{cityCode:"450100",cityName:"南宁市"},{cityCode:"450200",cityName:"柳州市"},{cityCode:"450300",cityName:"桂林市"},{cityCode:"450400",cityName:"梧州市"},{cityCode:"450500",cityName:"北海市"},{cityCode:"450600",cityName:"防城港市"},{cityCode:"450700",cityName:"钦州市"},{cityCode:"450800",cityName:"贵港市"},{cityCode:"450900",cityName:"玉林市"},{cityCode:"451000",cityName:"百色市"},{cityCode:"451100",cityName:"贺州市"},{cityCode:"451200",cityName:"河池市"},{cityCode:"451300",cityName:"来宾市"},{cityCode:"451400",cityName:"崇左市"},{cityCode:"460100",cityName:"海口市"},{cityCode:"460200",cityName:"三亚市"},{cityCode:"460300",cityName:"三沙市"},{cityCode:"469000",cityName:"省直辖县级行政区划"},{cityCode:"500100",cityName:"重庆"},{cityCode:"510100",cityName:"成都市"},{cityCode:"510300",cityName:"自贡市"},{cityCode:"510400",cityName:"攀枝花市"},{cityCode:"510500",cityName:"泸州市"},{cityCode:"510600",cityName:"德阳市"},{cityCode:"510700",cityName:"绵阳市"},{cityCode:"510800",cityName:"广元市"},{cityCode:"510900",cityName:"遂宁市"},{cityCode:"511000",cityName:"内江市"},{cityCode:"511100",cityName:"乐山市"},{cityCode:"511300",cityName:"南充市"},{cityCode:"511400",cityName:"眉山市"},{cityCode:"511500",cityName:"宜宾市"},{cityCode:"511600",cityName:"广安市"},{cityCode:"511700",cityName:"达州市"},{cityCode:"511800",cityName:"雅安市"},{cityCode:"511900",cityName:"巴中市"},{cityCode:"512000",cityName:"资阳市"},{cityCode:"513200",cityName:"阿坝藏族羌族自治州"},{cityCode:"513300",cityName:"甘孜藏族自治州"},{cityCode:"513400",cityName:"凉山彝族自治州"},{cityCode:"520100",cityName:"贵阳市"},{cityCode:"520200",cityName:"六盘水市"},{cityCode:"520300",cityName:"遵义市"},{cityCode:"520400",cityName:"安顺市"},{cityCode:"520500",cityName:"毕节市"},{cityCode:"520600",cityName:"铜仁市"},{cityCode:"522300",cityName:"黔西南布依族苗族自治州"},{cityCode:"522600",cityName:"黔东南苗族侗族自治州"},{cityCode:"522700",cityName:"黔南布依族苗族自治州"},{cityCode:"530100",cityName:"昆明市"},{cityCode:"530300",cityName:"曲靖市"},{cityCode:"530400",cityName:"玉溪市"},{cityCode:"530500",cityName:"保山市"},{cityCode:"530600",cityName:"昭通市"},{cityCode:"530700",cityName:"丽江市"},{cityCode:"530800",cityName:"普洱市"},{cityCode:"530900",cityName:"临沧市"},{cityCode:"532300",cityName:"楚雄彝族自治州"},{cityCode:"532500",cityName:"红河哈尼族彝族自治州"},{cityCode:"532600",cityName:"文山壮族苗族自治州"},{cityCode:"532800",cityName:"西双版纳傣族自治州"},{cityCode:"532900",cityName:"大理白族自治州"},{cityCode:"533100",cityName:"德宏傣族景颇族自治州"},{cityCode:"533300",cityName:"怒江傈僳族自治州"},{cityCode:"533400",cityName:"迪庆藏族自治州"},{cityCode:"540100",cityName:"拉萨市"},{cityCode:"542100",cityName:"昌都地区"},{cityCode:"542200",cityName:"山南地区"},{cityCode:"542300",cityName:"日喀则地区"},{cityCode:"542400",cityName:"那曲地区"},{cityCode:"542500",cityName:"阿里地区"},{cityCode:"542600",cityName:"林芝地区"},{cityCode:"610100",cityName:"西安市"},{cityCode:"610200",cityName:"铜川市"},{cityCode:"610300",cityName:"宝鸡市"},{cityCode:"610400",cityName:"咸阳市"},{cityCode:"610500",cityName:"渭南市"},{cityCode:"610600",cityName:"延安市"},{cityCode:"610700",cityName:"汉中市"},{cityCode:"610800",cityName:"榆林市"},{cityCode:"610900",cityName:"安康市"},{cityCode:"611000",cityName:"商洛市"},{cityCode:"620100",cityName:"兰州市"},{cityCode:"620200",cityName:"嘉峪关市"},{cityCode:"620300",cityName:"金昌市"},{cityCode:"620400",cityName:"白银市"},{cityCode:"620500",cityName:"天水市"},{cityCode:"620600",cityName:"武威市"},{cityCode:"620700",cityName:"张掖市"},{cityCode:"620800",cityName:"平凉市"},{cityCode:"620900",cityName:"酒泉市"},{cityCode:"621000",cityName:"庆阳市"},{cityCode:"621100",cityName:"定西市"},{cityCode:"621200",cityName:"陇南市"},{cityCode:"622900",cityName:"临夏回族自治州"},{cityCode:"623000",cityName:"甘南藏族自治州"},{cityCode:"630100",cityName:"西宁市"},{cityCode:"630200",cityName:"海东市"},{cityCode:"632200",cityName:"海北藏族自治州"},{cityCode:"632300",cityName:"黄南藏族自治州"},{cityCode:"632500",cityName:"海南藏族自治州"},{cityCode:"632600",cityName:"果洛藏族自治州"},{cityCode:"632700",cityName:"玉树藏族自治州"},{cityCode:"632800",cityName:"海西蒙古族藏族自治州"},{cityCode:"640100",cityName:"银川市"},{cityCode:"640200",cityName:"石嘴山市"},{cityCode:"640300",cityName:"吴忠市"},{cityCode:"640400",cityName:"固原市"},{cityCode:"640500",cityName:"中卫市"},{cityCode:"650100",cityName:"乌鲁木齐市"},{cityCode:"650200",cityName:"克拉玛依市"},{cityCode:"652100",cityName:"吐鲁番地区"},{cityCode:"652200",cityName:"哈密地区"},{cityCode:"652300",cityName:"昌吉回族自治州"},{cityCode:"652700",cityName:"博尔塔拉蒙古自治州"},{cityCode:"652800",cityName:"巴音郭楞蒙古自治州"},{cityCode:"652900",cityName:"阿克苏地区"},{cityCode:"653000",cityName:"克孜勒苏柯尔克孜自治州"},{cityCode:"653100",cityName:"喀什地区"},{cityCode:"653200",cityName:"和田地区"},{cityCode:"654000",cityName:"伊犁哈萨克自治州"},{cityCode:"654200",cityName:"塔城地区"},{cityCode:"654300",cityName:"阿勒泰地区"},{cityCode:"659000",cityName:"自治区直辖县级行政区划"}];t.default=r},616:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(161)),o=r(n(550)),a=r(n(551)),s=r(n(552)),c=r(n(163)),u=r(n(23)),l=r(n(24)),f=r(n(13));function d(e){var t=p();return function(){var n,r=(0,s.default)(e);if(t){var i=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}function p(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var h={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")},y={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=["label"];n.forEach((function(t){void 0===e[t]&&(e[t]="")}));var r=t;for(var i in e){var o=new RegExp("{"+i+"}");r=r.replace(o,e[i])}return r}function v(e,t){return void 0===e||null===e||("string"===typeof e&&!e||(!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length))}var m={integer:function(e){return m.number(e)&&parseInt(e,10)===e},string:function(e){return"string"===typeof e},number:function(e){return!isNaN(e)&&"number"===typeof e},boolean:function(e){return"boolean"===typeof e},float:function(e){return m.number(e)&&!m.integer(e)},array:function(e){return Array.isArray(e)},object:function(e){return"object"===(0,f.default)(e)&&!m.array(e)},date:function(e){return e instanceof Date},timestamp:function(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:function(e){return"string"===typeof e.url},email:function(e){return"string"===typeof e&&!!e.match(h.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(h.url)},pattern:function(e,t){try{return new RegExp(e).test(t)}catch(n){return!1}},method:function(e){return"function"===typeof e},idcard:function(e){return"string"===typeof e&&!!e.match(h.idcard)},"url-https":function(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":function(e){return e.startsWith("://")},"url-web":function(e){return!1}},b=function(){function e(t){(0,u.default)(this,e),this._message=t}return(0,l.default)(e,[{key:"validateRule",value:function(){var e=(0,c.default)(i.default.mark((function e(t,n,r,o,a){var s,c,u,l,f,d,p,h,y;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=null,c=n.rules,u=c.findIndex((function(e){return e.required})),!(u<0)){e.next=8;break}if(null!==r&&void 0!==r){e.next=6;break}return e.abrupt("return",s);case 6:if("string"!==typeof r||r.length){e.next=8;break}return e.abrupt("return",s);case 8:if(l=this._message,void 0!==c){e.next=11;break}return e.abrupt("return",l["default"]);case 11:f=0;case 12:if(!(f<c.length)){e.next=35;break}if(d=c[f],p=this._getValidateType(d),Object.assign(d,{label:n.label||'["'.concat(t,'"]')}),!S[p]){e.next=20;break}if(s=S[p](d,r,l),null==s){e.next=20;break}return e.abrupt("break",35);case 20:if(!d.validateExpr){e.next=26;break}if(h=Date.now(),y=d.validateExpr(r,a,h),!1!==y){e.next=26;break}return s=this._getMessage(d,d.errorMessage||this._message["default"]),e.abrupt("break",35);case 26:if(!d.validateFunction){e.next=32;break}return e.next=29,this.validateFunction(d,r,o,a,p);case 29:if(s=e.sent,null===s){e.next=32;break}return e.abrupt("break",35);case 32:f++,e.next=12;break;case 35:return null!==s&&(s=l.TAG+s),e.abrupt("return",s);case 37:case"end":return e.stop()}}),e,this)})));function t(t,n,r,i,o){return e.apply(this,arguments)}return t}()},{key:"validateFunction",value:function(){var e=(0,c.default)(i.default.mark((function e(t,n,r,o,a){var s,c,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=null,e.prev=1,c=null,e.next=5,t.validateFunction(t,n,o||r,(function(e){c=e}));case 5:u=e.sent,(c||"string"===typeof u&&u||!1===u)&&(s=this._getMessage(t,c||u,a)),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),s=this._getMessage(t,e.t0.message,a);case 12:return e.abrupt("return",s);case 13:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t,n,r,i,o){return e.apply(this,arguments)}return t}()},{key:"_getMessage",value:function(e,t,n){return g(e,t||e.errorMessage||this._message[n]||t["default"])}},{key:"_getValidateType",value:function(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}]),e}(),S={required:function(e,t,n){return e.required&&v(t,e.format||(0,f.default)(t))?g(e,e.errorMessage||n.required):null},range:function(e,t,n){for(var r=e.range,i=e.errorMessage,o=new Array(r.length),a=0;a<r.length;a++){var s=r[a];m.object(s)&&void 0!==s.value?o[a]=s.value:o[a]=s}var c=!1;return Array.isArray(t)?c=new Set(t.concat(o)).size===o.length:o.indexOf(t)>-1&&(c=!0),c?null:g(e,i||n["enum"])},rangeNumber:function(e,t,n){if(!m.number(t))return g(e,e.errorMessage||n.pattern.mismatch);var r=e.minimum,i=e.maximum,o=e.exclusiveMinimum,a=e.exclusiveMaximum,s=o?t<=r:t<r,c=a?t>=i:t>i;return void 0!==r&&s?g(e,e.errorMessage||n["number"][o?"exclusiveMinimum":"minimum"]):void 0!==i&&c?g(e,e.errorMessage||n["number"][a?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==i&&(s||c)?g(e,e.errorMessage||n["number"].range):null},rangeLength:function(e,t,n){if(!m.string(t)&&!m.array(t))return g(e,e.errorMessage||n.pattern.mismatch);var r=e.minLength,i=e.maxLength,o=t.length;return void 0!==r&&o<r?g(e,e.errorMessage||n["length"].minLength):void 0!==i&&o>i?g(e,e.errorMessage||n["length"].maxLength):void 0!==r&&void 0!==i&&(o<r||o>i)?g(e,e.errorMessage||n["length"].range):null},pattern:function(e,t,n){return m["pattern"](e.pattern,t)?null:g(e,e.errorMessage||n.pattern.mismatch)},format:function(e,t,n){var r=Object.keys(m),i=y[e.format]?y[e.format]:e.format||e.arrayType;return r.indexOf(i)>-1&&!m[i](t)?g(e,e.errorMessage||n.typeError):null},arrayTypeFormat:function(e,t,n){if(!Array.isArray(t))return g(e,e.errorMessage||n.typeError);for(var r=0;r<t.length;r++){var i=t[r],o=this.format(e,i,n);if(null!==o)return o}return null}},x=function(e){(0,o.default)(n,e);var t=d(n);function n(e,r){var i;return(0,u.default)(this,n),i=t.call(this,n.message),i._schema=e,i._options=r||null,i}return(0,l.default)(n,[{key:"updateSchema",value:function(e){this._schema=e}},{key:"validate",value:function(){var e=(0,c.default)(i.default.mark((function e(t,n){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidate(t,!1,n);case 4:r=e.sent;case 5:return e.abrupt("return",r.length?r[0]:null);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"validateAll",value:function(){var e=(0,c.default)(i.default.mark((function e(t,n){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidate(t,!0,n);case 4:r=e.sent;case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"validateUpdate",value:function(){var e=(0,c.default)(i.default.mark((function e(t,n){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidateUpdate(t,!1,n);case 4:r=e.sent;case 5:return e.abrupt("return",r.length?r[0]:null);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"invokeValidate",value:function(){var e=(0,c.default)(i.default.mark((function e(t,n,r){var o,a,s,c,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=[],a=this._schema,e.t0=i.default.keys(a);case 3:if((e.t1=e.t0()).done){e.next=15;break}return s=e.t1.value,c=a[s],e.next=8,this.validateRule(s,c,t[s],t,r);case 8:if(u=e.sent,null==u){e.next=13;break}if(o.push({key:s,errorMessage:u}),n){e.next=13;break}return e.abrupt("break",15);case 13:e.next=3;break;case 15:return e.abrupt("return",o);case 16:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"invokeValidateUpdate",value:function(){var e=(0,c.default)(i.default.mark((function e(t,n,r){var o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=[],e.t0=i.default.keys(t);case 2:if((e.t1=e.t0()).done){e.next=13;break}return a=e.t1.value,e.next=6,this.validateRule(a,this._schema[a],t[a],t,r);case 6:if(s=e.sent,null==s){e.next=11;break}if(o.push({key:a,errorMessage:s}),n){e.next=11;break}return e.abrupt("break",13);case 11:e.next=2;break;case 13:return e.abrupt("return",o);case 14:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_checkFieldInSchema",value:function(e){var t=Object.keys(e),r=Object.keys(this._schema);if(new Set(t.concat(r)).size===r.length)return"";var i=t.filter((function(e){return r.indexOf(e)<0})),o=g({field:JSON.stringify(i)},n.message.TAG+n.message["defaultInvalid"]);return[{key:"invalid",errorMessage:o}]}}]),n}(b);function _(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}}x.message=new _;var C=x;t.default=C},617:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.typeFilter=t.type=t.setDataValue=t.realName=t.rawData=t.objSet=t.objGet=t.name2arr=t.isRequiredField=t.isRealName=t.isNumber=t.isEqual=t.isBoolean=t.getValue=t.getDataValueType=t.getDataValue=t.deepCopy=void 0;var i=r(n(13)),o=function(e){return JSON.parse(JSON.stringify(e))};t.deepCopy=o;var a=function(e){return"int"===e||"double"===e||"number"===e||"timestamp"===e};t.typeFilter=a;var s=function(e,t,n){var r=n.find((function(e){return e.format&&a(e.format)})),i=n.find((function(e){return e.format&&"boolean"===e.format||"bool"===e.format}));return r&&(t=t||0===t?m(Number(t))?Number(t):t:null),i&&(t=!!b(t)&&t),t};t.getValue=s;var c=function(e,t,n){return t[e]=n,n||""};t.setDataValue=c;var u=function(e,t){return v(t,e)};t.getDataValue=u;var l=function(e,t){var n=u(e,t);return{type:x(n),value:n}};t.getDataValueType=l;var f=function(e){var t=g(e);if("object"===(0,i.default)(t)&&Array.isArray(t)&&t.length>1){var n=t.reduce((function(e,t){return e+"#".concat(t)}),"_formdata_");return n}return t[0]||e};t.realName=f;var d=function(e){var t=/^_formdata_#*/;return t.test(e)};t.isRealName=d;var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n={};for(var r in t){var i=h(r);y(n,i,t[r])}return n};t.rawData=p;var h=function(e){var t=e.replace("_formdata_#","");return t=t.split("#").map((function(e){return m(e)?Number(e):e})),t};t.name2arr=h;var y=function(e,t,n){return"object"!==(0,i.default)(e)||g(t).reduce((function(e,t,r,i){return r===i.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(i[r+1])?[]:{}),e[t])}),e),e};function g(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}t.objSet=y;var v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined",r=g(t),i=r.reduce((function(e,t){return(e||{})[t]}),e);return i&&void 0===i?n:i};t.objGet=v;var m=function(e){return!isNaN(Number(e))};t.isNumber=m;var b=function(e){return"boolean"===typeof e};t.isBoolean=b;var S=function(e){for(var t=!1,n=0;n<e.length;n++){var r=e[n];if(r.required){t=!0;break}}return t};t.isRequiredField=S;var x=function(e){var t={};return"Boolean Number String Function Array Date RegExp Object Error".split(" ").map((function(e,n){t["[object "+e+"]"]=e.toLowerCase()})),null==e?e+"":"object"===(0,i.default)(e)||"function"===typeof e?t[Object.prototype.toString.call(e)]||"object":(0,i.default)(e)};t.type=x;var _=function(e,t){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;var n=toString.call(e),r=toString.call(t);if(n!==r)return!1;switch(n){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}if("[object Object]"==n){var i=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(i.length!=o.length)return!1;for(var a=0;a<i.length;a++){var s=i[a];if(e[s]!==t[s])return!1}return!0}return"[object Array]"==n?e.toString()==t.toString():void 0};t.isEqual=_},639:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},show:{type:Boolean,default:!1},showToolbar:{type:Boolean,default:!0},title:{type:String,default:""},mode:{type:String,default:"datetime"},maxDate:{type:Number,default:new Date((new Date).getFullYear()+10,0,1).getTime()},minDate:{type:Number,default:new Date((new Date).getFullYear()-10,0,1).getTime()},minHour:{type:Number,default:0},maxHour:{type:Number,default:23},minMinute:{type:Number,default:0},maxMinute:{type:Number,default:59},filter:{type:[Function,null],default:null},formatter:{type:[Function,null],default:null},loading:{type:Boolean,default:!1},itemHeight:{type:[String,Number],default:44},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},cancelColor:{type:String,default:"#909193"},confirmColor:{type:String,default:"#3c9cff"},visibleItemCount:{type:[String,Number],default:5},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickConfirm:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!1},round:{type:[String,Number],default:0}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.datetimePicker)};t.default=u}).call(this,n(2)["default"])},640:function(e,t,n){"use strict";var r,i,o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(13)),s=Object.getOwnPropertyNames,c=function(e,t){return function(){return t||(0,e[s(e)[0]])((t={exports:{}}).exports,t),t.exports}},u=c({uvuidayjs:function(e,t){!function(o,s){"object"==(0,a.default)(e)&&"undefined"!=typeof t?t.exports=s():(r=s,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i))}(0,(function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",c="day",u="week",l="month",f="quarter",d="year",p="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),o=n-i<0,a=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:u,d:c,D:p,h:s,m:o,s:i,ms:r,Q:f}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},S="en",x={};x[S]=v;var _=function(e){return e instanceof L},C=function e(t,n,r){var i;if(!t)return S;if("string"==typeof t){var o=t.toLowerCase();x[o]&&(i=o),n&&(x[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(S=i),i||!r&&S},w=function(e,t){if(_(e))return e.clone();var n="object"==(0,a.default)(t)?t:{};return n.date=e,n.args=arguments,new L(n)},P=b;P.l=C,P.i=_,P.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var L=function(){function a(e){this.$L=C(e.locale,null,!0),this.parse(e)}var v=a.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(y);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return P},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return w(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<w(e)},v.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!P.u(t)||t,a=P.p(e),f=function(e,t){var i=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(c)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},y=this.$W,g=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(a){case d:return r?f(1,0):f(31,11);case l:return r?f(1,g):f(0,g+1);case u:var b=this.$locale().weekStart||0,S=(y<b?y+7:y)-b;return f(r?v-S:v+(6-S),g);case c:case p:return h(m+"Hours",0);case s:return h(m+"Minutes",1);case o:return h(m+"Seconds",2);case i:return h(m+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,a=P.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[c]=u+"Date",n[p]=u+"Date",n[l]=u+"Month",n[d]=u+"FullYear",n[s]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[a],h=a===c?this.$D+(t-this.$W):t;if(a===l||a===d){var y=this.clone().set(p,1);y.$d[f](h),y.init(),this.$d=y.set(p,Math.min(this.$D,y.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[P.p(e)]()},v.add=function(r,a){var f,p=this;r=Number(r);var h=P.p(a),y=function(e){var t=w(p);return P.w(t.date(t.date()+Math.round(e*r)),p)};if(h===l)return this.set(l,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===c)return y(1);if(h===u)return y(7);var g=(f={},f[o]=t,f[s]=n,f[i]=e,f)[h]||1,v=this.$d.getTime()+r*g;return P.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=P.z(this),o=this.$H,a=this.$m,s=this.$M,c=n.weekdays,u=n.months,l=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return P.s(o%12||12,e,"0")},d=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:P.s(s+1,2,"0"),MMM:l(n.monthsShort,s,u,3),MMMM:l(u,s),D:this.$D,DD:P.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:P.s(o,2,"0"),h:f(1),hh:f(2),a:d(o,a,!0),A:d(o,a,!1),m:String(a),mm:P.s(a,2,"0"),s:String(this.$s),ss:P.s(this.$s,2,"0"),SSS:P.s(this.$ms,3,"0"),Z:i};return r.replace(g,(function(e,t){return t||p[e]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,a,p){var h,y=P.p(a),g=w(r),v=(g.utcOffset()-this.utcOffset())*t,m=this-g,b=P.m(this,g);return b=(h={},h[d]=b/12,h[l]=b,h[f]=b/3,h[u]=(m-v)/6048e5,h[c]=(m-v)/864e5,h[s]=m/n,h[o]=m/t,h[i]=m/e,h)[y]||m,p?b:P.a(b)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return P.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},a}(),T=L.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",c],["$M",l],["$y",d],["$D",p]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,L,w),e.$i=!0),w},w.locale=C,w.isDayjs=_,w.unix=function(e){return w(1e3*e)},w.en=x[S],w.Ls=x,w.p={},w}))}}),l=u();t.default=l},674:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={"uvicon-level":"e68f","uvicon-checkbox-mark":"e659","uvicon-folder":"e694","uvicon-movie":"e67c","uvicon-star-fill":"e61e","uvicon-star":"e618","uvicon-phone-fill":"e6ac","uvicon-phone":"e6ba","uvicon-apple-fill":"e635","uvicon-backspace":"e64d","uvicon-attach":"e640","uvicon-empty-data":"e671","uvicon-empty-address":"e68a","uvicon-empty-favor":"e662","uvicon-empty-car":"e657","uvicon-empty-order":"e66b","uvicon-empty-list":"e672","uvicon-empty-search":"e677","uvicon-empty-permission":"e67d","uvicon-empty-news":"e67e","uvicon-empty-history":"e685","uvicon-empty-coupon":"e69b","uvicon-empty-page":"e60e","uvicon-empty-wifi-off":"e6cc","uvicon-reload":"e627","uvicon-order":"e695","uvicon-server-man":"e601","uvicon-search":"e632","uvicon-more-dot-fill":"e66f","uvicon-scan":"e631","uvicon-map":"e665","uvicon-map-fill":"e6a8","uvicon-tags":"e621","uvicon-tags-fill":"e613","uvicon-eye":"e664","uvicon-eye-fill":"e697","uvicon-eye-off":"e69c","uvicon-eye-off-outline":"e688","uvicon-mic":"e66d","uvicon-mic-off":"e691","uvicon-calendar":"e65c","uvicon-trash":"e623","uvicon-trash-fill":"e6ce","uvicon-play-left":"e6bf","uvicon-play-right":"e6b3","uvicon-minus":"e614","uvicon-plus":"e625","uvicon-info-circle":"e69f","uvicon-info-circle-fill":"e6a7","uvicon-question-circle":"e622","uvicon-question-circle-fill":"e6bc","uvicon-close":"e65a","uvicon-checkmark":"e64a","uvicon-checkmark-circle":"e643","uvicon-checkmark-circle-fill":"e668","uvicon-setting":"e602","uvicon-setting-fill":"e6d0","uvicon-heart":"e6a2","uvicon-heart-fill":"e68b","uvicon-camera":"e642","uvicon-camera-fill":"e650","uvicon-more-circle":"e69e","uvicon-more-circle-fill":"e684","uvicon-chat":"e656","uvicon-chat-fill":"e63f","uvicon-bag":"e647","uvicon-error-circle":"e66e","uvicon-error-circle-fill":"e655","uvicon-close-circle":"e64e","uvicon-close-circle-fill":"e666","uvicon-share":"e629","uvicon-share-fill":"e6bb","uvicon-share-square":"e6c4","uvicon-shopping-cart":"e6cb","uvicon-shopping-cart-fill":"e630","uvicon-bell":"e651","uvicon-bell-fill":"e604","uvicon-list":"e690","uvicon-list-dot":"e6a9","uvicon-zhifubao-circle-fill":"e617","uvicon-weixin-circle-fill":"e6cd","uvicon-weixin-fill":"e620","uvicon-qq-fill":"e608","uvicon-qq-circle-fill":"e6b9","uvicon-moments-circel-fill":"e6c2","uvicon-moments":"e6a0","uvicon-car":"e64f","uvicon-car-fill":"e648","uvicon-warning-fill":"e6c7","uvicon-warning":"e6c1","uvicon-clock-fill":"e64b","uvicon-clock":"e66c","uvicon-edit-pen":"e65d","uvicon-edit-pen-fill":"e679","uvicon-email":"e673","uvicon-email-fill":"e683","uvicon-minus-circle":"e6a5","uvicon-plus-circle":"e603","uvicon-plus-circle-fill":"e611","uvicon-file-text":"e687","uvicon-file-text-fill":"e67f","uvicon-pushpin":"e6d1","uvicon-pushpin-fill":"e6b6","uvicon-grid":"e68c","uvicon-grid-fill":"e698","uvicon-play-circle":"e6af","uvicon-play-circle-fill":"e62a","uvicon-pause-circle-fill":"e60c","uvicon-pause":"e61c","uvicon-pause-circle":"e696","uvicon-gift-fill":"e6b0","uvicon-gift":"e680","uvicon-kefu-ermai":"e660","uvicon-server-fill":"e610","uvicon-coupon-fill":"e64c","uvicon-coupon":"e65f","uvicon-integral":"e693","uvicon-integral-fill":"e6b1","uvicon-home-fill":"e68e","uvicon-home":"e67b","uvicon-account":"e63a","uvicon-account-fill":"e653","uvicon-thumb-down-fill":"e628","uvicon-thumb-down":"e60a","uvicon-thumb-up":"e612","uvicon-thumb-up-fill":"e62c","uvicon-lock-fill":"e6a6","uvicon-lock-open":"e68d","uvicon-lock-opened-fill":"e6a1","uvicon-lock":"e69d","uvicon-red-packet":"e6c3","uvicon-photo-fill":"e6b4","uvicon-photo":"e60d","uvicon-volume-off-fill":"e6c8","uvicon-volume-off":"e6bd","uvicon-volume-fill":"e624","uvicon-volume":"e605","uvicon-download":"e670","uvicon-arrow-up-fill":"e636","uvicon-arrow-down-fill":"e638","uvicon-play-left-fill":"e6ae","uvicon-play-right-fill":"e6ad","uvicon-arrow-downward":"e634","uvicon-arrow-leftward":"e63b","uvicon-arrow-rightward":"e644","uvicon-arrow-upward":"e641","uvicon-arrow-down":"e63e","uvicon-arrow-right":"e63c","uvicon-arrow-left":"e646","uvicon-arrow-up":"e633","uvicon-skip-back-left":"e6c5","uvicon-skip-forward-right":"e61f","uvicon-arrow-left-double":"e637","uvicon-man":"e675","uvicon-woman":"e626","uvicon-en":"e6b8","uvicon-twitte":"e607","uvicon-twitter-circle-fill":"e6cf"};t.default=r},675:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({name:{type:String,default:""},color:{type:String,default:"#606266"},size:{type:[String,Number],default:"16px"},bold:{type:Boolean,default:!1},index:{type:[String,Number],default:null},hoverClass:{type:String,default:""},customPrefix:{type:String,default:"uvicon"},label:{type:[String,Number],default:""},labelPos:{type:String,default:"right"},labelSize:{type:[String,Number],default:"15px"},labelColor:{type:String,default:"#606266"},space:{type:[String,Number],default:"3px"},imgMode:{type:String,default:"aspectFit"},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""},top:{type:[String,Number],default:0},stop:{type:Boolean,default:!1}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.icon)};t.default=u}).call(this,n(2)["default"])},683:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({offsetTop:{type:[String,Number],default:0},customNavHeight:{type:[String,Number],default:0},disabled:{type:Boolean,default:!1},bgColor:{type:String,default:"transparent"},zIndex:{type:[String,Number],default:""},index:{type:[String,Number],default:""}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.sticky)};t.default=u}).call(this,n(2)["default"])},69:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindProject=d,t.getAgentDetailById=f,t.getCustomerDetailById=c,t.getMessageDetailById=s,t.getMessageList=o,t.getMessageTest=i,t.setMessageViewed=a,t.updateAgent=l,t.updateCustomer=u;var r=n(45);function i(e){return(0,r.request)({url:"/manager/message/countUnread/messageType/".concat(e),method:"get"})}function o(e,t){return(0,r.request)({url:"/manager/message/messageType/".concat(e,"/").concat(t),method:"get"})}function a(e){return(0,r.request)({url:"/manager/message/".concat(e),method:"put"})}function s(e){return(0,r.request)({url:"/manager/message/get/".concat(e),method:"get"})}function c(e){return(0,r.request)({url:"/manager/client/".concat(e),method:"get"})}function u(e){return(0,r.request)({url:"/manager/client/update",method:"put",data:e})}function l(e){return(0,r.request)({url:"/manager/agent/update",method:"put",data:e})}function f(e){return(0,r.request)({url:"/manager/agent/".concat(e),method:"get"})}function d(e){return(0,r.request)({url:"/manager/bindProject",method:"post",data:e})}},691:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({isDot:{type:Boolean,default:!1},value:{type:[Number,String],default:""},show:{type:Boolean,default:!0},max:{type:[Number,String],default:999},type:{type:[String,void 0,null],default:"error"},showZero:{type:Boolean,default:!1},bgColor:{type:[String,null],default:null},color:{type:[String,null],default:null},shape:{type:[String,void 0,null],default:"circle"},numberType:{type:[String,void 0,null],default:"overflow"},offset:{type:Array,default:function(){return[]}},inverted:{type:Boolean,default:!1},absolute:{type:Boolean,default:!1}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.badge)};t.default=u}).call(this,n(2)["default"])},692:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({duration:{type:Number,default:300},list:{type:Array,default:function(){return[]}},lineColor:{type:String,default:"#3c9cff"},activeStyle:{type:[String,Object],default:function(){return{color:"#303133"}}},inactiveStyle:{type:[String,Object],default:function(){return{color:"#606266"}}},lineWidth:{type:[String,Number],default:20},lineHeight:{type:[String,Number],default:3},lineBgSize:{type:String,default:"cover"},itemStyle:{type:[String,Object],default:function(){return{height:"44px"}}},scrollable:{type:Boolean,default:!0},current:{type:[Number,String],default:0},keyName:{type:String,default:"name"}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.tabs)};t.default=u}).call(this,n(2)["default"])},7:function(e,t){function n(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},705:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFileListByPage=o,t.insertDownloadFile=i;var r=n(45);function i(e){return(0,r.request)({url:"/file/downloadData",method:"post",data:e})}function o(e){return(0,r.request)({url:"/file/downloadData/".concat(e.currPage,"/").concat(e.pageSize),method:"post",data:e})}},718:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({showToolbar:{type:Boolean,default:!0},title:{type:String,default:""},round:{type:[String,Number],default:0},columns:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1},itemHeight:{type:[String,Number],default:44},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确定"},cancelColor:{type:String,default:"#909193"},confirmColor:{type:String,default:"#3c9cff"},color:{type:String,default:""},activeColor:{type:String,default:""},visibleItemCount:{type:[String,Number],default:5},keyName:{type:String,default:"text"},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickConfirm:{type:Boolean,default:!0},defaultIndex:{type:Array,default:function(){return[]}},immediateChange:{type:Boolean,default:!0}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.picker)};t.default=u}).call(this,n(2)["default"])},78:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProjectDetailById=o,t.getProjectList=i,t.refresh=s,t.selectProject=a;var r=n(45);function i(){return(0,r.request)({url:"/api/project/projectListIdentity",method:"get"})}function o(e){return(0,r.request)({url:"/api/project/getProject/".concat(e),method:"get"})}function a(e){return(0,r.request)({url:"/manager/userContext/project/".concat(e),method:"put"})}function s(){return(0,r.request)({url:"/manager/userContext/refresh",method:"get"})}},780:function(e,t,n){"use strict";function r(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=i(e,!1),a=r[0],s=r[1],c=r[2],u=i(t,!1),l=u[0],f=u[1],d=u[2],p=(l-a)/n,h=(f-s)/n,y=(d-c)/n,g=[],v=0;v<n;v++){var m=o("rgb(".concat(Math.round(p*v+a),",").concat(Math.round(h*v+s),",").concat(Math.round(y*v+c),")"));0===v&&(m=o(e)),v===n-1&&(m=o(t)),g.push(m)}return g}function i(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=String(e).toLowerCase(),e&&n.test(e)){if(4===e.length){for(var r="#",i=1;i<4;i+=1)r+=e.slice(i,i+1).concat(e.slice(i,i+1));e=r}for(var o=[],a=1;a<7;a+=2)o.push(parseInt("0x".concat(e.slice(a,a+2))));return t?"rgb(".concat(o[0],",").concat(o[1],",").concat(o[2],")"):o}if(/^(rgb|RGB)/.test(e)){var s=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return s.map((function(e){return Number(e)}))}return e}function o(e){var t=e,n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(t)){for(var r=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),i="#",o=0;o<r.length;o++){var a=Number(r[o]).toString(16);a=1==String(a).length?"".concat(0,a):a,"0"===a&&(a+=a),i+=a}return 7!==i.length&&(i=t),i}if(!n.test(t))return t;var s=t.replace(/#/,"").split("");if(6===s.length)return t;if(3===s.length){for(var c="#",u=0;u<s.length;u+=1)c+=s[u]+s[u];return c}}function a(e,t){e=o(e);var n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,r=String(e).toLowerCase();if(r&&n.test(r)){if(4===r.length){for(var i="#",a=1;a<4;a+=1)i+=r.slice(a,a+1).concat(r.slice(a,a+1));r=i}for(var s=[],c=1;c<7;c+=2)s.push(parseInt("0x".concat(r.slice(c,c+2))));return"rgba(".concat(s.join(","),",").concat(t,")")}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.colorGradient=r,t.colorToRgba=a,t.hexToRgb=i,t.rgbToHex=o},781:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({show:{type:Boolean,default:!0},color:{type:String,default:"#909193"},textColor:{type:String,default:"#909193"},vertical:{type:Boolean,default:!1},mode:{type:String,default:"spinner"},size:{type:[String,Number],default:24},textSize:{type:[String,Number],default:15},textStyle:{type:Object,default:function(){return{}}},text:{type:[String,Number],default:""},timingFunction:{type:String,default:"linear"},duration:{type:[String,Number],default:1200},inactiveColor:{type:String,default:""}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.loadingIcon)};t.default=u}).call(this,n(2)["default"])},789:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({length:{type:[String,Number],default:0},current:{type:[String,Number],default:0},indicatorActiveColor:{type:String,default:""},indicatorInactiveColor:{type:String,default:""},indicatorMode:{type:String,default:""}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.swiperIndicator)};t.default=u}).call(this,n(2)["default"])},8:function(e,t,n){var r=n(9);function i(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},809:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=p;var i=r(n(11)),o=r(n(23)),a=r(n(24));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(){function t(n,r){(0,o.default)(this,t),this.options=n,this.animation=e.createAnimation(c({},n)),this.currentStepAnimates={},this.next=0,this.$=r}return(0,a.default)(t,[{key:"_nvuePushAnimates",value:function(e,t){var n=this.currentStepAnimates[this.next],r={};if(r=n||{styles:{},config:{}},l.includes(e)){r.styles.transform||(r.styles.transform="");var i="";"rotate"===e&&(i="deg"),r.styles.transform+="".concat(e,"(").concat(t+i,") ")}else r.styles[e]="".concat(t);this.currentStepAnimates[this.next]=r}},{key:"_animateRun",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$.$refs["ani"].ref;if(n)return new Promise((function(r,i){nvueAnimation.transition(n,c({styles:e},t),(function(e){r()}))}))}},{key:"_nvueNextAnimate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=e[n];if(i){var o=i.styles,a=i.config;this._animateRun(o,a).then((function(){n+=1,t._nvueNextAnimate(e,n,r)}))}else this.currentStepAnimates={},"function"===typeof r&&r(),this.isEnd=!0}},{key:"step",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(e),this}},{key:"run",value:function(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof e&&e()}),this.$.durationTime)}}]),t}(),l=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],f=["opacity","backgroundColor"],d=["width","height","left","right","top","bottom"];function p(e,t){if(t)return clearTimeout(t.timer),new u(e,t)}l.concat(f,d).forEach((function(e){u.prototype[e]=function(){var t;return(t=this.animation)[e].apply(t,arguments),this}}))}).call(this,n(2)["default"])},829:function(e,t,n){"use strict";(function(e,r){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.chooseFile=p;var o=i(n(11));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){return["[object Object]","[object File]"].includes(Object.prototype.toString.call(e))?Object.keys(e).reduce((function(n,r){return t.includes(r)||(n[r]=e[r]),n}),{}):{}}function u(e){return e.tempFiles.map((function(e){return s(s({},c(e,["path"])),{},{type:"image",url:e.path,thumb:e.path,size:e.size})}))}function l(e){return[s(s({},c(e,["tempFilePath","thumbTempFilePath","errMsg"])),{},{type:"video",url:e.tempFilePath,thumb:e.thumbTempFilePath,size:e.size})]}function f(e){return e.tempFiles.map((function(t){return s(s({},c(t,["fileType","thumbTempFilePath","tempFilePath"])),{},{type:e.type,url:t.tempFilePath,thumb:"video"===e.type?t.thumbTempFilePath:t.tempFilePath,size:t.size})}))}function d(e){return e.tempFiles.map((function(e){return s(s({},c(e,["path"])),{},{url:e.path,size:e.size})}))}function p(t){var n=t.accept,i=t.multiple,o=t.capture,a=t.compressed,s=t.maxDuration,c=t.sizeType,p=t.camera,h=t.maxCount;return new Promise((function(t,y){switch(n){case"image":e.chooseImage({count:i?Math.min(h,9):1,sourceType:o,sizeType:c,success:function(e){return t(u(e))},fail:y});break;case"media":r.chooseMedia({count:i?Math.min(h,9):1,sourceType:o,maxDuration:s,sizeType:c,camera:p,success:function(e){return t(f(e))},fail:y});break;case"video":e.chooseVideo({sourceType:o,compressed:a,maxDuration:s,camera:p,success:function(e){return t(l(e))},fail:y});break;case"file":r.chooseMessageFile({count:i?h:1,type:n,success:function(e){return t(d(e))},fail:y});break;default:r.chooseMessageFile({count:i?h:1,type:"all",success:function(e){return t(d(e))},fail:y})}}))}}).call(this,n(2)["default"],n(1)["default"])},830:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(525);var r={watch:{accept:{immediate:!0,handler:function(e){}}}};t.default=r},831:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({accept:{type:String,default:"image"},capture:{type:[String,Array],default:function(){return["album","camera"]}},compressed:{type:Boolean,default:!0},camera:{type:String,default:"back"},maxDuration:{type:Number,default:60},uploadIcon:{type:String,default:"camera-fill"},uploadIconColor:{type:String,default:"#D3D4D6"},useBeforeRead:{type:Boolean,default:!1},afterRead:{type:Function,default:null},beforeRead:{type:Function,default:null},previewFullImage:{type:Boolean,default:!0},previewFullVideo:{type:Boolean,default:!0},maxCount:{type:[String,Number],default:52},disabled:{type:Boolean,default:!1},imageMode:{type:String,default:"aspectFill"},name:{type:String,default:""},sizeType:{type:Array,default:function(){return["original","compressed"]}},multiple:{type:Boolean,default:!1},deletable:{type:Boolean,default:!0},maxSize:{type:[String,Number],default:Number.MAX_VALUE},fileList:{type:Array,default:function(){return[]}},uploadText:{type:String,default:""},width:{type:[String,Number],default:80},height:{type:[String,Number],default:80},previewImage:{type:Boolean,default:!0}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.upload)};t.default=u}).call(this,n(2)["default"])},846:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({show:{type:Boolean,default:!0},showBorder:{type:Boolean,default:!1},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},cancelColor:{type:String,default:"#909193"},confirmColor:{type:String,default:"#3c9cff"},title:{type:String,default:""}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.toolbar)};t.default=u}).call(this,n(2)["default"])},87:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attention=c,t.cancelAttention=u,t.getCustomerDetailById=p,t.getCustomerListByPage=d,t.getFansAttentionListByPage=f,t.getFansListByPage=l,t.getMyCount=i,t.getUserInfoById=o,t.isFans=s,t.updateUserDetails=a;var r=n(45);function i(){return(0,r.request)({url:"/api/fans/count",method:"get"})}function o(e){return(0,r.request)({url:"/manager/userInfo/".concat(e),method:"get"})}function a(e){return(0,r.request)({url:"/manager/userInfo/update",method:"post",data:e})}function s(e){return(0,r.request)({url:"/api/fans/attention/".concat(e),method:"get"})}function c(e){return(0,r.request)({url:"/api/fans/".concat(e),method:"get"})}function u(e){return(0,r.request)({url:"/api/fans/".concat(e),method:"delete"})}function l(e,t){return(0,r.request)({url:"/api/fans/".concat(e,"/").concat(t),method:"get"})}function f(e,t){return(0,r.request)({url:"/api/fans/attention/".concat(e,"/").concat(t),method:"get"})}function d(e){return(0,r.request)({url:"/manager/client/".concat(e.currPage,"/").concat(e.pageSize),method:"post",data:e})}function p(e){return(0,r.request)({url:"/manager/client/".concat(e),method:"get"})}},875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},876:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={modelValue:{type:[Number,Array],default:null},value:{type:[Number,Array],default:null},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},range:{type:Boolean,defalut:!1},disabled:{type:Boolean,defalut:!1},vertical:{type:Boolean,defalut:!1},marks:{type:Object},thumbSize:{type:String,defalut:null},thumbColor:{type:String,defalut:null},thumbBorderColor:{type:String,defalut:null},thumbRadius:{type:String,defalut:null},railColor:{type:String,defalut:null},railRadius:{type:String,defalut:null},railSize:{type:String,defalut:null},trackColor:{type:String,defalut:null}};t.default=r},877:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(878);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},878:function(e,t,n){"use strict";(function(e){function n(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return null==n?Promise.reject("context is null"):(n.context&&(n=n.context),n.proxy&&(n=n.proxy),new Promise((function(i,o){var a=e.createSelectorQuery().in(n).select(t),s=function(e){e?i(e):o("no rect")};r?a.fields({node:!0,size:!0,rect:!0},s).exec():a.boundingClientRect(s).exec()})))}function r(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return null==n?Promise.reject("context is null"):(n.proxy&&(n=n.proxy),new Promise((function(i,o){var a=e.createSelectorQuery().in(n).selectAll(t),s=function(e){e?i(e):o("no rect")};r?a.fields({node:!0,size:!0,rect:!0},s).exec():a.boundingClientRect(s).exec()})))}Object.defineProperty(t,"__esModule",{value:!0}),t.getAllRect=r,t.getRect=n}).call(this,n(2)["default"])},879:function(e,t,n){"use strict";function r(e,t){return e.reduce((function(e,n){return Math.abs(e-t)<Math.abs(n-t)?e:n}))}Object.defineProperty(t,"__esModule",{value:!0}),t.closest=r},880:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTouch=o;var r=n(875);function i(e,t){return e>t?"horizontal":t>e?"vertical":""}function o(){var e=(0,r.ref)(0),t=(0,r.ref)(0),n=(0,r.ref)(0),o=(0,r.ref)(0),a=(0,r.ref)(0),s=(0,r.ref)(0),c=(0,r.ref)(""),u=(0,r.ref)(!0),l=function(){return"vertical"===c.value},f=function(){return"horizontal"===c.value},d=function(){n.value=0,o.value=0,a.value=0,s.value=0,c.value="",u.value=!0},p=function(n){d(),e.value=n.touches[0].clientX,t.value=n.touches[0].clientY},h=function(r){var l=r.touches[0];n.value=(l.clientX<0?0:l.clientX)-e.value,o.value=l.clientY-t.value,a.value=Math.abs(n.value),s.value=Math.abs(o.value);var f=10,d=5;(""==c.value||a.value<f&&s.value<f)&&(c.value=i(a.value,s.value)),u.value&&(a.value>d||s.value>d)&&(u.value=!1)};return{start:p,move:h,startX:e,startY:t,deltaX:n,deltaY:o,offsetX:a,offsetY:s,direction:c,isVertical:l,isHorizontal:f,isTap:u}}},881:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addNumber=i,t.format=o;var r=n(882);function i(e,t){var n=Math.pow(10,10);return Math.round((e+t)*n)/n}function o(e,t,n,o){var a=(0,r.clamp)(e,t,n),s=Math.round((a-t)/o)*o;return i(t,s)}},882:function(e,t,n){"use strict";function r(e,t,n){return Math.max(t,Math.min(n,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=r},890:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({value:{type:[Boolean,String,Number],default:!1},modelValue:{type:[Boolean,String,Number],default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:[String,Number],default:25},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#fff"},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},asyncChange:{type:Boolean,default:!1},space:{type:[String,Number],default:0}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.switch)};t.default=u}).call(this,n(2)["default"])},9:function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},905:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({title:{type:String,default:"日期选择"},showTitle:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},mode:{type:String,default:"single"},startText:{type:String,default:"开始"},endText:{type:String,default:"结束"},customList:{type:Array,default:function(){return[]}},color:{type:String,default:"#3c9cff"},minDate:{type:[String,Number],default:0},maxDate:{type:[String,Number],default:0},defaultDate:{type:[Array,String,Date,null],default:null},maxCount:{type:[String,Number],default:Number.MAX_SAFE_INTEGER},rowHeight:{type:[String,Number],default:56},formatter:{type:[Function,null],default:null},showLunar:{type:Boolean,default:!1},showMark:{type:Boolean,default:!0},confirmText:{type:String,default:"确定"},confirmDisabledText:{type:String,default:"确定"},closeOnClickOverlay:{type:Boolean,default:!1},closeOnClickConfirm:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:Number.MAX_SAFE_INTEGER},rangePrompt:{type:String,default:""},showRangePrompt:{type:Boolean,default:!0},allowSameDay:{type:Boolean,default:!1},round:{type:[Boolean,String,Number],default:0},monthNum:{type:[Number,String],default:3}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.calendar)};t.default=u}).call(this,n(2)["default"])},906:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(e){var t,n=348;for(t=32768;t>8;t>>=1)n+=this.lunarInfo[e-1900]&t?1:0;return n+this.leapDays(e)},leapMonth:function(e){return 15&this.lunarInfo[e-1900]},leapDays:function(e){return this.leapMonth(e)?65536&this.lunarInfo[e-1900]?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:this.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;var n=t-1;return 1==n?e%4==0&&e%100!=0||e%400==0?29:28:this.solarMonth[n]},toGanZhiYear:function(e){var t=(e-3)%10,n=(e-3)%12;return 0==t&&(t=10),0==n&&(n=12),this.Gan[t-1]+this.Zhi[n-1]},toAstro:function(e,t){var n="魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯",r=[20,19,21,21,21,22,23,23,23,23,22,22];return n.substr(2*e-(t<r[e-1]?2:0),2)+"座"},toGanZhi:function(e){return this.Gan[e%10]+this.Zhi[e%12]},getTerm:function(e,t){if(e<1900||e>2100)return-1;if(t<1||t>24)return-1;var n=this.sTermInfo[e-1900],r=[parseInt("0x"+n.substr(0,5)).toString(),parseInt("0x"+n.substr(5,5)).toString(),parseInt("0x"+n.substr(10,5)).toString(),parseInt("0x"+n.substr(15,5)).toString(),parseInt("0x"+n.substr(20,5)).toString(),parseInt("0x"+n.substr(25,5)).toString()],i=[r[0].substr(0,1),r[0].substr(1,2),r[0].substr(3,1),r[0].substr(4,2),r[1].substr(0,1),r[1].substr(1,2),r[1].substr(3,1),r[1].substr(4,2),r[2].substr(0,1),r[2].substr(1,2),r[2].substr(3,1),r[2].substr(4,2),r[3].substr(0,1),r[3].substr(1,2),r[3].substr(3,1),r[3].substr(4,2),r[4].substr(0,1),r[4].substr(1,2),r[4].substr(3,1),r[4].substr(4,2),r[5].substr(0,1),r[5].substr(1,2),r[5].substr(3,1),r[5].substr(4,2)];return parseInt(i[t-1])},toChinaMonth:function(e){if(e>12||e<1)return-1;var t=this.nStr3[e-1];return t+="月",t},toChinaDay:function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=this.nStr2[Math.floor(e/10)],t+=this.nStr1[e%10]}return t},getAnimal:function(e){return this.Animals[(e-4)%12]},solar2lunar:function(e,t,n){if(e<1900||e>2100)return-1;if(1900==e&&1==t&&n<31)return-1;if(e)r=new Date(e,parseInt(t)-1,n);else var r=new Date;var i,o=0,a=0,s=(e=r.getFullYear(),t=r.getMonth()+1,n=r.getDate(),(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())-Date.UTC(1900,0,31))/864e5);for(i=1900;i<2101&&s>0;i++)a=this.lYearDays(i),s-=a;s<0&&(s+=a,i--);var c=new Date,u=!1;c.getFullYear()==e&&c.getMonth()+1==t&&c.getDate()==n&&(u=!0);var l=r.getDay(),f=this.nStr1[l];0==l&&(l=7);var d=i,p=(o=this.leapMonth(i),!1);for(i=1;i<13&&s>0;i++)o>0&&i==o+1&&0==p?(--i,p=!0,a=this.leapDays(d)):a=this.monthDays(d,i),1==p&&i==o+1&&(p=!1),s-=a;0==s&&o>0&&i==o+1&&(p?p=!1:(p=!0,--i)),s<0&&(s+=a,--i);var h=i,y=s+1,g=t-1,v=this.toGanZhiYear(d),m=this.getTerm(e,2*t-1),b=this.getTerm(e,2*t),S=this.toGanZhi(12*(e-1900)+t+11);n>=m&&(S=this.toGanZhi(12*(e-1900)+t+12));var x=!1,_=null;m==n&&(x=!0,_=this.solarTerm[2*t-2]),b==n&&(x=!0,_=this.solarTerm[2*t-1]);var C=Date.UTC(e,g,1,0,0,0,0)/864e5+25567+10,w=this.toGanZhi(C+n-1),P=this.toAstro(t,n);return{lYear:d,lMonth:h,lDay:y,Animal:this.getAnimal(d),IMonthCn:(p?"闰":"")+this.toChinaMonth(h),IDayCn:this.toChinaDay(y),cYear:e,cMonth:t,cDay:n,gzYear:v,gzMonth:S,gzDay:w,isToday:u,isLeap:p,nWeek:l,ncWeek:"星期"+f,isTerm:x,Term:_,astro:P}},lunar2solar:function(e,t,n,r){r=!!r;var i=this.leapMonth(e);this.leapDays(e);if(r&&i!=t)return-1;if(2100==e&&12==t&&n>1||1900==e&&1==t&&n<31)return-1;var o=this.monthDays(e,t),a=o;if(r&&(a=this.leapDays(e,t)),e<1900||e>2100||n>a)return-1;for(var s=0,c=1900;c<e;c++)s+=this.lYearDays(c);var u=0,l=!1;for(c=1;c<t;c++)u=this.leapMonth(e),l||u<=c&&u>0&&(s+=this.leapDays(e),l=!0),s+=this.monthDays(e,c);r&&(s+=o);var f=Date.UTC(1900,1,30,0,0,0),d=new Date(864e5*(s+n-31)+f),p=d.getUTCFullYear(),h=d.getUTCMonth()+1,y=d.getUTCDate();return this.solar2lunar(p,h,y)}},i=r;t.default=i},956:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({show:{type:Boolean,default:!1},zIndex:{type:[String,Number],default:10070},duration:{type:[String,Number],default:300},opacity:{type:[String,Number],default:.5}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.overlay)};t.default=u}).call(this,n(2)["default"])},96:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientManagement=a,t.deviceManagement=l,t.eventManagement=c,t.getPaymentList=f,t.getWeather=s,t.houseManagement=i,t.orderManagement=u,t.paymentManagement=o;var r=n(45);function i(e){return(0,r.request)({url:"/api/projectItemTargetRoom/roomCount/".concat(e),method:"get"})}function o(e){return(0,r.request)({url:"/api/payment/count/".concat(e),method:"get"})}function a(e){return(0,r.request)({url:"/manager/client/count/".concat(e),method:"get"})}function s(e){return(0,r.request)({url:"https://www.weatherol.cn/api/home/getCurrAnd15dAnd24h?cityid=".concat(e),method:"get"})}function c(e){return(0,r.request)({url:"/api/reminder/count/".concat(e),method:"get"})}function u(e){return(0,r.request)({url:"/api/workOrder/count/".concat(e),method:"get"})}function l(e){return(0,r.request)({url:"/api/operateDevice/count/".concat(e),method:"get"})}function f(e){return(0,r.request)({url:"/api/payment/monthCount/".concat(e),method:"get"})}},964:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=p;var i=r(n(11)),o=r(n(23)),a=r(n(24));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(){function t(n,r){(0,o.default)(this,t),this.options=n,this.animation=e.createAnimation(c({},n)),this.currentStepAnimates={},this.next=0,this.$=r}return(0,a.default)(t,[{key:"_nvuePushAnimates",value:function(e,t){var n=this.currentStepAnimates[this.next],r={};if(r=n||{styles:{},config:{}},l.includes(e)){r.styles.transform||(r.styles.transform="");var i="";"rotate"===e&&(i="deg"),r.styles.transform+="".concat(e,"(").concat(t+i,") ")}else r.styles[e]="".concat(t);this.currentStepAnimates[this.next]=r}},{key:"_animateRun",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$.$refs["ani"].ref;if(n)return new Promise((function(r,i){nvueAnimation.transition(n,c({styles:e},t),(function(e){r()}))}))}},{key:"_nvueNextAnimate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=e[n];if(i){var o=i.styles,a=i.config;this._animateRun(o,a).then((function(){n+=1,t._nvueNextAnimate(e,n,r)}))}else this.currentStepAnimates={},"function"===typeof r&&r(),this.isEnd=!0}},{key:"step",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(e),this}},{key:"run",value:function(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof e&&e()}),this.$.durationTime)}}]),t}(),l=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],f=["opacity","backgroundColor"],d=["width","height","left","right","top","bottom"];function p(e,t){if(t)return clearTimeout(t.timer),new u(e,t)}l.concat(f,d).forEach((function(e){u.prototype[e]=function(){var t;return(t=this.animation)[e].apply(t,arguments),this}}))}).call(this,n(2)["default"])},970:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{bgColor:{type:String,default:"transparent"}}};t.default=r},978:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(526),i=n(525),o={computed:{value:function(){var e=this.text,t=this.mode,n=this.format,o=this.href;return"price"===t?(/^\d+(\.\d+)?$/.test(e)||(0,i.error)("金额模式下,text参数需要为金额格式"),(0,r.func)(n)?n(e):(0,i.priceFormat)(e,2)):"date"===t?(!(0,r.date)(e)&&(0,i.error)("日期模式下,text参数需要为日期或时间戳格式"),(0,r.func)(n)?n(e):n?(0,i.timeFormat)(e,n):(0,i.timeFormat)(e,"yyyy-mm-dd")):"phone"===t?(0,r.func)(n)?n(e):"encrypt"===n?"".concat(e.substr(0,3),"****").concat(e.substr(7)):e:"name"===t?("string"!==typeof e&&(0,i.error)("姓名模式下,text参数需要为字符串格式"),(0,r.func)(n)?n(e):"encrypt"===n?this.formatName(e):e):"link"===t?(!(0,r.url)(o)&&(0,i.error)("超链接模式下,href参数需要为URL格式"),e):e}},methods:{formatName:function(e){var t="";if(2===e.length)t=e.substr(0,1)+"*";else if(e.length>2){for(var n="",r=0,i=e.length-2;r<i;r++)n+="*";t=e.substr(0,1)+n+e.substr(-1,1)}else t=e;return t}}};t.default=o},979:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}};t.default=r},980:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{openType:String},emits:["getphonenumber","getuserinfo","error","opensetting","launchapp","contact","chooseavatar","addgroupapp","chooseaddress","subscribe","login","im"],methods:{onGetPhoneNumber:function(e){this.$emit("getphonenumber",e.detail)},onGetUserInfo:function(e){this.$emit("getuserinfo",e.detail)},onError:function(e){this.$emit("error",e.detail)},onOpenSetting:function(e){this.$emit("opensetting",e.detail)},onLaunchApp:function(e){this.$emit("launchapp",e.detail)},onContact:function(e){this.$emit("contact",e.detail)},onChooseavatar:function(e){this.$emit("chooseavatar",e.detail)},onAgreeprivacyauthorization:function(e){this.$emit("agreeprivacyauthorization",e.detail)},onAddgroupapp:function(e){this.$emit("addgroupapp",e.detail)},onChooseaddress:function(e){this.$emit("chooseaddress",e.detail)},onSubscribe:function(e){this.$emit("subscribe",e.detail)},onLogin:function(e){this.$emit("login",e.detail)},onIm:function(e){this.$emit("im",e.detail)}}};t.default=r},981:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({type:{type:String,default:""},show:{type:Boolean,default:!0},text:{type:[String,Number],default:""},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},mode:{type:String,default:""},href:{type:String,default:""},format:{type:[String,Function],default:""},call:{type:Boolean,default:!0},openType:{type:String,default:""},bold:{type:Boolean,default:!1},block:{type:Boolean,default:!1},lines:{type:[String,Number],default:""},color:{type:String,default:"#303133"},size:{type:[String,Number],default:15},iconStyle:{type:[Object,String],default:function(){return{fontSize:"15px"}}},decoration:{type:String,default:"none"},margin:{type:[Object,String,Number],default:0},lineHeight:{type:[String,Number],default:""},align:{type:String,default:"left"},wordWrap:{type:String,default:"normal"}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.text)};t.default=u}).call(this,n(2)["default"])},989:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={props:c({hairline:{type:Boolean,default:!0},type:{type:String,default:"info"},size:{type:String,default:"normal"},shape:{type:String,default:"square"},plain:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:[String,Number],default:""},loadingMode:{type:String,default:"spinner"},loadingSize:{type:[String,Number],default:14},openType:{type:String,default:""},formType:{type:String,default:""},appParameter:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!0},lang:{type:String,default:"en"},sessionFrom:{type:String,default:""},sendMessageTitle:{type:String,default:""},sendMessagePath:{type:String,default:""},sendMessageImg:{type:String,default:""},showMessageCard:{type:Boolean,default:!0},dataName:{type:String,default:""},throttleTime:{type:[String,Number],default:0},hoverStartTime:{type:[String,Number],default:0},hoverStayTime:{type:[String,Number],default:200},text:{type:[String,Number],default:""},icon:{type:String,default:""},iconSize:{type:[String,Number],default:""},iconColor:{type:String,default:"#000000"},color:{type:String,default:""},customTextStyle:{type:[Object,String],default:""}},null===(i=e.$uv)||void 0===i||null===(o=i.props)||void 0===o?void 0:o.button)};t.default=u}).call(this,n(2)["default"])}}]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
|