(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"00fa":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.silenceBindingSpread=c,e.isWeixin=l,e.getCustomer=u,e.parseQuery=f,e.updateURLParameter=h,e.default=e.VUE_APP_WS_URL=void 0;var r=n("3474"),i=s(n("0c53")),o=n("7fe6"),a=n("da79");function s(t){return t&&t.__esModule?t:{default:t}}function c(){var t=getApp().globalData.spid,e=getApp().globalData.code;t=parseInt(t),Number.isNaN(t)&&(t=0),t&&(0,r.spread)({puid:t,code:e}).then((function(t){getApp().globalData.spid=0,getApp().globalData.code=0})).catch((function(t){}))}function l(){return-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")}function u(e){(0,o.getCustomerType)().then((function(n){var r=n.data.customer_type;"0"==r?t.navigateTo({url:e||"/pages/customer_list/chat"}):"1"==r?t.makePhoneCall({phoneNumber:n.data.customer_phone}):n.data.customer_url.indexOf("work.weixin.qq.com")>0?t.openCustomerServiceChat({extInfo:{url:n.data.customer_url},corpId:n.data.customer_corpId,success:function(t){},fail:function(e){t.showToast({title:"请先配置企业ID",icon:"none",duration:2e3})}}):t.navigateTo({url:"/pages/annex/web_view/index?url=".concat(n.data.customer_url)})}))}function f(){var t={},e=(location.href.split("?")[1]||"").trim().replace(/^(\?|#|&)/,"");return e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=decodeURIComponent(n.shift()),i=n.length>0?decodeURIComponent(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function h(t,e,n){var r="",i=t.split("?"),o=i[0],a=i[1],s="";if(a){i=a.split("&");for(var c=0;cn||0===t.expire?i.push(t):r.push(t.key))})),i.length!==e.length&&this.cacheSetHandler(this.cacheExpire,i),r.forEach((function(e){t.cacheClearHandler(e)}))}}]),e}(),c=new s;e.default=c}).call(this,n("543d")["default"])},1346:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWechatConfig=a,e.wechatAuth=s,e.getLogo=c,e.login=l,e.silenceAuth=u,e.getShare=f,e.follow=h,e.imageBase64=d,e.copyWords=p,e.getShopConfig=g,e.getUserPhone=v,e.routineLogin=y,e.wechatAuthV2=m,e.getNavigation=b,e.getSubscribe=x,e.getUpdateInfo=_;var r=o(n("9011")),i=o(n("50b4"));function o(t){return t&&t.__esModule?t:{default:t}}function a(){return r.default.get("wechat/config",{url:i.default.signLink()},{noAuth:!0})}function s(t,e,n){return r.default.get("wechat/auth",{code:t,spread:e,login_type:n},{noAuth:!0})}function c(){return r.default.get("wechat/get_logo",{},{noAuth:!0})}function l(t){return r.default.post("wechat/mp_auth",t,{noAuth:!0})}function u(t){return r.default.get("v2/wechat/silence_auth",t,{noAuth:!0})}function f(){return r.default.get("share",{},{noAuth:!0})}function h(){return r.default.get("wechat/follow",{},{noAuth:!0})}function d(t,e){return r.default.post("image_base64",{image:t,code:e},{noAuth:!0})}function p(){return r.default.get("copy_words",{},{noAuth:!0})}function g(){return r.default.get("v2/bind_status",{},{noAuth:!0})}function v(t){return r.default.post("v2/auth_bindind_phone",t,{noAuth:!0})}function y(t){return r.default.get("v2/wechat/routine_auth",t,{noAuth:!0})}function m(t,e){return r.default.get("v2/wechat/auth",{code:t,spread:e},{noAuth:!0})}function b(t){return r.default.get("navigation",t,{noAuth:!0})}function x(){return r.default.get("subscribe",{},{noAuth:!0})}function _(t){return r.default.get("get_new_app/"+t,{},{noAuth:!0})}},"1d81":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("9231"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=e.date,r=e.selected,i=e.startDate,a=e.endDate,s=e.range;o(this,t),this.date=this.getDate(n),this.selected=r||[],this.startDate=i,this.endDate=a,this.range=s,this.multipleStatus={before:"",after:"",data:[]},this.weeks={},this._getWeek(this.date.fullDate)}return s(t,[{key:"getDate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";t||(t=new Date),"object"!==typeof t&&(t=t.replace(/-/g,"/"));var r=new Date(t);switch(n){case"day":r.setDate(r.getDate()+e);break;case"month":31===r.getDate()?r.setDate(r.getDate()+e):r.setMonth(r.getMonth()+e);break;case"year":r.setFullYear(r.getFullYear()+e);break}var i=r.getFullYear(),o=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,a=r.getDate()<10?"0"+r.getDate():r.getDate();return{fullDate:i+"-"+o+"-"+a,year:i,month:o,date:a,day:r.getDay()}}},{key:"_getLastMonthDays",value:function(t,e){for(var n=[],r=t;r>0;r--){var i=new Date(e.year,e.month-1,1-r).getDate();n.push({date:i,month:e.month-1,lunar:this.getlunar(e.year,e.month-1,i),disable:!0})}return n}},{key:"_currentMonthDys",value:function(t,e){for(var n=this,r=[],i=this.date.fullDate,o=function(t){var o=e.year+"-"+(e.month,e.month+"-")+(t<10?"0"+t:t),a=i===o,s=n.selected&&n.selected.find((function(t){if(n.dateEqual(o,t.date))return t})),c=!0,l=!0;if(n.startDate){var u=n.dateCompare(n.startDate,i);c=n.dateCompare(u?n.startDate:i,o)}if(n.endDate){var f=n.dateCompare(i,n.endDate);l=n.dateCompare(o,f?n.endDate:i)}var h=n.multipleStatus.data,d=!1,p=-1;n.range&&(h&&(p=h.findIndex((function(t){return n.dateEqual(t,o)}))),-1!==p&&(d=!0));var g={fullDate:o,year:e.year,date:t,multiple:!!n.range&&d,month:e.month,lunar:n.getlunar(e.year,e.month,t),disable:!c||!l,isDay:a};s&&(g.extraInfo=s),r.push(g)},a=1;a<=t;a++)o(a);return r}},{key:"_getNextMonthDays",value:function(t,e){for(var n=[],r=1;r=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},i=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){i.emit("vuex:action",t,e)}),{prepend:!0}))}function a(t,e){return t.filter(e)[0]}function s(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=a(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=s(t[n],e)})),r}function c(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function l(t){return null!==t&&"object"===typeof t}function u(t){return t&&"function"===typeof t.then}function f(t,e){return function(){return t(e)}}var h=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(t,e){this._children[t]=e},h.prototype.removeChild=function(t){delete this._children[t]},h.prototype.getChild=function(t){return this._children[t]},h.prototype.hasChild=function(t){return t in this._children},h.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},h.prototype.forEachChild=function(t){c(this._children,t)},h.prototype.forEachGetter=function(t){this._rawModule.getters&&c(this._rawModule.getters,t)},h.prototype.forEachAction=function(t){this._rawModule.actions&&c(this._rawModule.actions,t)},h.prototype.forEachMutation=function(t){this._rawModule.mutations&&c(this._rawModule.mutations,t)},Object.defineProperties(h.prototype,d);var p=function(t){this.register([],t,!1)};function g(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;g(t.concat(r),e.getChild(r),n.modules[r])}}p.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},p.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},p.prototype.update=function(t){g([],this.root,t)},p.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new h(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&c(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},p.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},p.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var v;var y=function(t){var e=this;void 0===t&&(t={}),!v&&"undefined"!==typeof window&&window.Vue&&D(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var i=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return c.call(i,t,e,n)},this.strict=r;var l=this._modules.root.state;w(this,l,[],this._modules.root),_(this,l),n.forEach((function(t){return t(e)}));var u=void 0!==t.devtools?t.devtools:v.config.devtools;u&&o(this)},m={state:{configurable:!0}};function b(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function x(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;w(t,n,[],t._modules.root,!0),_(t,n,e)}function _(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};c(i,(function(e,n){o[n]=f(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,t._vm=new v({data:{$$state:e},computed:o}),v.config.silent=a,t.strict&&C(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function w(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=O(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){v.set(s,c,r.state)}))}var l=r.context=A(t,a,n);r.forEachMutation((function(e,n){var r=a+n;T(t,r,e,l)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;k(t,r,i,l)})),r.forEachGetter((function(e,n){var r=a+n;P(t,r,e,l)})),r.forEachChild((function(r,o){w(t,e,n.concat(o),r,i)}))}function A(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=L(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:r?t.commit:function(n,r,i){var o=L(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return S(t,e)}},state:{get:function(){return O(t.state,n)}}}),i}function S(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function T(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function k(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return u(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function P(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function C(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function O(t,e){return e.reduce((function(t,e){return t[e]}),t)}function L(t,e,n){return l(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function D(t){v&&t===v||(v=t,n(v))}m.state.get=function(){return this._vm._data.$$state},m.state.set=function(t){0},y.prototype.commit=function(t,e,n){var r=this,i=L(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},y.prototype.dispatch=function(t,e){var n=this,r=L(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(l){0}var c=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(l){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(l){0}e(t)}))}))}},y.prototype.subscribe=function(t,e){return b(t,this._subscribers,e)},y.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return b(n,this._actionSubscribers,e)},y.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},y.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},y.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),w(this,this.state,t,this._modules.get(t),n.preserveState),_(this,this.state)},y.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=O(e.state,t.slice(0,-1));v.delete(n,t[t.length-1])})),x(this)},y.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},y.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),x(this,!0)},y.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(y.prototype,m);var M=N((function(t,e){var n={};return R(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=z(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),E=N((function(t,e){var n={};return R(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=z(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),I=N((function(t,e){var n={};return R(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||z(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),$=N((function(t,e){var n={};return R(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=z(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),F=function(t){return{mapState:M.bind(null,t),mapGetters:I.bind(null,t),mapMutations:E.bind(null,t),mapActions:$.bind(null,t)}};function R(t){return j(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function j(t){return Array.isArray(t)||l(t)}function N(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function z(t,e,n){var r=t._modulesNamespaceMap[n];return r}function U(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var l=t.logActions;void 0===l&&(l=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var f=s(t.state);"undefined"!==typeof u&&(c&&t.subscribe((function(t,o){var a=s(o);if(n(t,f,a)){var c=W(),l=i(t),h="mutation "+t.type+c;H(u,h,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),B(u)}f=a})),l&&t.subscribeAction((function(t,n){if(o(t,n)){var r=W(),i=a(t),s="action "+t.type+r;H(u,s,e),u.log("%c action","color: #03A9F4; font-weight: bold",i),B(u)}})))}}function H(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function B(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function W(){var t=new Date;return" @ "+V(t.getHours(),2)+":"+V(t.getMinutes(),2)+":"+V(t.getSeconds(),2)+"."+V(t.getMilliseconds(),3)}function G(t,e){return new Array(e+1).join(t)}function V(t,e){return G("0",e-t.toString().length)+t}var X={Store:y,install:D,version:"3.6.2",mapState:M,mapMutations:E,mapGetters:I,mapActions:$,createNamespacedHelpers:F,createLogger:U};t.exports=X}).call(this,n("c8ba"))},"2e14":function(t,e,n){"use strict";(function(e){var n={yAxisWidth:15,yAxisSplit:5,xAxisHeight:15,xAxisLineHeight:15,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,dataPointShape:["circle","circle","circle","circle"],colors:["#1890ff","#2fc25b","#facc14","#f04864","#8543e0","#90ed7d"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:15,gaugeLabelTextMargin:15},r=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;rt.end.x||e.end.xt.start.y||e.start.y=0?(s=0,t.event.trigger("scrollLeft")):Math.abs(e)>=a-o&&(s=o-a,t.event.trigger("scrollRight")),s}function l(t,e,n){function r(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=r(t),e=r(e),n=r(n),e>n&&(n+=2*Math.PI,t=e&&t<=n}function u(t,e,n){var r=t,i=n-e,o=r+(n-i-r)/Math.sqrt(2);o*=-1;var a=(n-i)*(Math.sqrt(2)-1)-(n-i-r)/Math.sqrt(2);return{transX:o,transY:a}}function f(t,e){function n(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function r(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var i=.2,o=.2,a=null,s=null,c=null,l=null;if(e<1?(a=t[0].x+(t[1].x-t[0].x)*i,s=t[0].y+(t[1].y-t[0].y)*i):(a=t[e].x+(t[e+1].x-t[e-1].x)*i,s=t[e].y+(t[e+1].y-t[e-1].y)*i),e>t.length-3){var u=t.length-1;c=t[u].x-(t[u].x-t[u-1].x)*o,l=t[u].y-(t[u].y-t[u-1].y)*o}else c=t[e+1].x-(t[e+2].x-t[e].x)*o,l=t[e+1].y-(t[e+2].y-t[e].y)*o;return n(t,e+1)&&(l=t[e+1].y),n(t,e)&&(s=t[e].y),r(t,e+1)&&(c=t[e+1].x),r(t,e)&&(a=t[e].x),(s>=Math.max(t[e].y,t[e+1].y)||s<=Math.min(t[e].y,t[e+1].y))&&(s=t[e].y),(l>=Math.max(t[e].y,t[e+1].y)||l<=Math.min(t[e].y,t[e+1].y))&&(l=t[e+1].y),(a>=Math.max(t[e].x,t[e+1].x)||a<=Math.min(t[e].x,t[e+1].x))&&(a=t[e].x),(c>=Math.max(t[e].x,t[e+1].x)||c<=Math.min(t[e].x,t[e+1].x))&&(c=t[e+1].x),{ctrA:{x:a,y:s},ctrB:{x:c,y:l}}}function h(t,e,n){return{x:n.x+t,y:n.y-e}}function d(t,e){if(e)while(i.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function p(t,e,n){var r=0;return t.map((function(t){if(t.color||(t.color=n.colors[r],r=(r+1)%n.colors.length),t.index||(t.index=0),t.type||(t.type=e.type),"undefined"==typeof t.show&&(t.show=!0),t.type||(t.type=e.type),t.pointShape||(t.pointShape="circle"),!t.legendShape)switch(t.type){case"line":t.legendShape="line";break;case"column":t.legendShape="rect";break;case"area":t.legendShape="triangle";break;default:t.legendShape="circle"}return t}))}function g(t,e){var n=0,r=e-t;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:a(t,"lower",n),maxRange:a(e,"upper",n)}}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.fontSize;t=String(t);t=t.split("");for(var r=0,i=0;i4&&void 0!==arguments[4]?arguments[4]:{},o=t.map((function(t){var e=[];return e=r||t.data,{text:i.format?i.format(t,e[n]):t.name+": "+t.data,color:t.color}})),a=[],s={x:0,y:0},c=0;c4&&void 0!==arguments[4]?arguments[4]:{},o=t.map((function(t){return{text:i.format?i.format(t,r[n]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));for(var a=[],s={x:0,y:0},c=0;ct[r-1][1]&&(c[2]=a),e.data[3]4&&void 0!==arguments[4]?arguments[4]:0,o=-1,a=n.chartData.eachSpacing/2,s=[];if(e.length>0){if("candle"==n.type)for(var c=0;ce&&(o=n)}))}return o}function C(t,e,n){var r=-1;if(O(t,e.area)){for(var i=e.points,o=-1,a=0,s=i.length;au[0]&&t.xu[1]&&t.ye.start.x&&t.xe.start.y&&t.y=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function D(t,e,n){var r=2*Math.PI/n,i=-1;if(F(t,e.center,e.radius)){var o=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a*=-1,a<0&&(a+=2*Math.PI);var s=e.angleList.map((function(t){return t=o(-1*t),t}));s.forEach((function(t,e){var n=o(t-r/2),s=o(t+r/2);s=n&&a<=s||a+2*Math.PI>=n&&a+2*Math.PI<=s)&&(i=e)}))}return i}function M(t,e){for(var n=-1,r=0,i=e.series.length;ro.funnelArea[0]&&t.xo.funnelArea[1]&&t.yo.area[0]&&t.xo.area[1]&&t.ye.width-e.padding[1]-e.padding[3]?(f.push(p),d.push(h-e.legend.itemGap),h=m,p=[y]):(h+=m,p.push(y))}if(p.length){f.push(p),d.push(h-e.legend.itemGap),i.widthArr=d;var b=Math.max.apply(null,d);switch(e.legend.float){case"left":i.area.start.x=e.padding[3],i.area.end.x=e.padding[3]+2*o;break;case"right":i.area.start.x=e.width-e.padding[1]-b-2*o,i.area.end.x=e.width-e.padding[1];break;default:i.area.start.x=(e.width-b)/2-o,i.area.end.x=(e.width+b)/2+o}i.area.width=b+2*o,i.area.wholeWidth=b+2*o,i.area.height=f.length*u+2*o,i.area.wholeHeight=f.length*u+2*o+2*a,i.points=f}}else{var x=t.length,_=e.height-e.padding[0]-e.padding[2]-2*a-2*o,w=Math.min(Math.floor(_/u),x);switch(i.area.height=w*u+2*o,i.area.wholeHeight=w*u+2*o,e.legend.float){case"top":i.area.start.y=e.padding[0]+a,i.area.end.y=e.padding[0]+a+i.area.height;break;case"bottom":i.area.start.y=e.height-e.padding[2]-a-i.area.height,i.area.end.y=e.height-e.padding[2]-a;break;default:i.area.start.y=(e.height-i.area.height)/2,i.area.end.y=(e.height+i.area.height)/2}for(var A=x%w===0?x/w:Math.floor(x/w+1),S=[],T=0;TO&&(O=D)}i.widthArr.push(O),i.heightArr.push(C.length*u+2*o)}for(var M=0,E=0;Er&&(i.angle=45*Math.PI/180,i.xAxisHeight=2*n.xAxisTextPadding+a*Math.sin(i.angle)),i}function z(t,e,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,i=y(t),o=[];i=i.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),i.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[0]):o.push(t.value):o.push(t)}));var a=0,s=0;if(o.length>0&&(a=Math.min.apply(this,o),s=Math.max.apply(this,o)),r>-1?("number"===typeof e.xAxis.data[r].min&&(a=Math.min(e.xAxis.data[r].min,a)),"number"===typeof e.xAxis.data[r].max&&(s=Math.max(e.xAxis.data[r].max,s))):("number"===typeof e.xAxis.min&&(a=Math.min(e.xAxis.min,a)),"number"===typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),a===s){var c=s||10;s+=c}for(var l=a,u=s,f=[],h=(u-l)/e.xAxis.splitNumber,d=0;d<=e.xAxis.splitNumber;d++)f.push(l+h*d);return f}function U(t,e,n){var r={angle:0,xAxisHeight:n.xAxisHeight};r.ranges=z(t,e,n),r.rangesFormat=r.ranges.map((function(t){return t=e.xAxis.format?e.xAxis.format(t):i.toFixed(t,2),t}));var o=r.ranges.map((function(t){return t=i.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t}));r=Object.assign(r,Q(o,e,n));var a=r.eachSpacing,s=o.map((function(t){return v(t)})),c=Math.max.apply(this,s);return c+2*n.xAxisTextPadding>a&&(r.angle=45*Math.PI/180,r.xAxisHeight=2*n.xAxisTextPadding+c*Math.sin(r.angle)),!0===e.xAxis.disabled&&(r.xAxisHeight=0),r}function H(t,e,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,y(r))),c=[],l=function(i){var a=r[i],l={};l.color=a.color,l.legendShape=a.legendShape,l.pointShape=a.pointShape,l.data=[],a.data.forEach((function(r,i){var a={};a.angle=t[i],a.proportion=r/s,a.position=h(n*a.proportion*o*Math.cos(a.angle),n*a.proportion*o*Math.sin(a.angle),e),l.data.push(a)})),c.push(l)},u=0;u2&&void 0!==arguments[2]?arguments[2]:1,r=0,i=0,o=0;o2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var r=0;r4&&void 0!==arguments[4]?arguments[4]:1,o=0,a=0,s=[],c=0;c2&&void 0!==arguments[2]?arguments[2]:1;1==n&&(n=.999999);for(var r=0;r=2&&(i._proportion_=i._proportion_%2)}return t}function X(t,e,n){for(var r=e-n+1,i=e,o=0;o=2&&(t[o]._endAngle_=t[o]._endAngle_%2),i=t[o]._endAngle_;return t}function K(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i=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 t}function Y(t){t=B(t);for(var e=0,n=0;n0&&(t.width=Math.min(t.width,+o.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(r+.5-n/2)*t.width,t)}))}function J(t,e,n,r,i,o,a){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*i.columePadding)/2),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),r>0&&(t.width-=2*a),t)}))}function Z(t,e,n,r,i,o,a){return t.map((function(t,n){return null===t?null:(t.width=Math.ceil((e-2*i.columePadding)/2),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),t)}))}function Q(t,e,n){var r=e.width-e.area[1]-e.area[3],i=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&i>1&&"justify"==e.xAxis.boundaryGap&&(i-=1);var o=r/i,a=[],s=e.area[3],c=e.width-e.area[1];return t.forEach((function(t,e){a.push(s+e*o)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?a.push(s+t.length*o):a.push(c)),{xAxisPoints:a,startX:s,endX:c,eachSpacing:o}}function tt(t,e,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],l=o.height-o.area[0]-o.area[2];return t.forEach((function(t,a){if(null===t)c.push(null);else{var u=[];t.forEach((function(t,c){var f={};f.x=r[a]+Math.round(i/2);var h=t.value||t,d=l*(h-e)/(n-e);d*=s,f.y=o.height-Math.round(d)-o.area[2],u.push(f)})),c.push(u)}})),c}function et(t,e,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c="center";"line"!=o.type&&"area"!=o.type||(c=o.xAxis.boundaryGap);var l=[],u=o.height-o.area[0]-o.area[2],f=o.width-o.area[1]-o.area[3];return t.forEach((function(t,a){if(null===t)l.push(null);else{var h={};h.color=t.color,h.x=r[a];var d,p,g,v=t;if("object"===typeof t&&null!==t)if(t.constructor==Array)d=[].concat(o.chartData.xAxisData.ranges),p=d.shift(),g=d.pop(),v=t[1],h.x=o.area[3]+f*(t[0]-p)/(g-p);else v=t.value;"center"==c&&(h.x+=Math.round(i/2));var y=u*(v-e)/(n-e);y*=s,h.y=o.height-Math.round(y)-o.area[2],l.push(h)}})),l}function nt(t,e,n,r,i,o,a,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],f=o.height-o.area[0]-o.area[2];return t.forEach((function(t,a){if(null===t)u.push(null);else{var h={};if(h.color=t.color,h.x=r[a]+Math.round(i/2),s>0){for(var d=0,p=0;p<=s;p++)d+=c[p].data[a];var g=d-t,v=f*(d-e)/(n-e),y=f*(g-e)/(n-e)}else d=t,v=f*(d-e)/(n-e),y=0;var m=y;v*=l,m*=l,h.y=o.height-Math.round(v)-o.area[2],h.y0=o.height-Math.round(m)-o.area[2],u.push(h)}})),u}function rt(t,e,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==r?m(t,e.categories.length):y(t);var a=[];i=i.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),i.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){a.push(t)})):a.push(t[1]):a.push(t.value):a.push(t)}));var s=0,c=0;if(a.length>0&&(s=Math.min.apply(this,a),c=Math.max.apply(this,a)),o>-1?("number"===typeof e.yAxis.data[o].min&&(s=Math.min(e.yAxis.data[o].min,s)),"number"===typeof e.yAxis.data[o].max&&(c=Math.max(e.yAxis.data[o].max,c))):("number"===typeof e.yAxis.min&&(s=Math.min(e.yAxis.min,s)),"number"===typeof e.yAxis.max&&(c=Math.max(e.yAxis.max,c))),s===c){var l=c||10;c+=l}for(var u=g(s,c),f=u.minRange,h=u.maxRange,d=[],p=(h-f)/e.yAxis.splitNumber,v=0;v<=e.yAxis.splitNumber;v++)d.push(f+p*v);return d.reverse()}function it(t,e,n){var o=r({},{type:""},e.extra.column),a=e.yAxis.data.length,s=new Array(a);if(a>0){for(var c=0;c=2&&(u%=2),f+=l}}function ht(t,e,n,r,o,a){var s=r.extra.radar||{};e+=o.radarLabelTextMargin,t.forEach((function(t,c){var l={x:e*Math.cos(t),y:e*Math.sin(t)},u=h(l.x,l.y,n),f=u.x,d=u.y;i.approximatelyEqual(l.x,0)?f-=v(r.categories[c]||"")/2:l.x<0&&(f-=v(r.categories[c]||"")),a.beginPath(),a.setFontSize(o.fontSize),a.setFillStyle(s.labelColor||"#666666"),a.fillText(r.categories[c]||"",f,d+o.fontSize/2),a.closePath(),a.stroke()}))}function dt(t,e,n,r,o,a){for(var s=n.pieChartLinePadding,c=[],l=null,u=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):i.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var n=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),r=t.color,o=t._radius_;return{arc:n,text:e,color:r,radius:o,textColor:t.textColor,textSize:t.textSize}})),f=0;f=0?g+n.pieChartTextPadding:g-n.pieChartTextPadding,_=y,w=v(p.text,p.textSize||n.fontSize),A=_;l&&i.isSameXCoordinateArea(l.start,{x:x})&&(A=x>0?Math.min(_,l.start.y):g<0||_>0?Math.max(_,l.start.y):Math.min(_,l.start.y)),x<0&&(x-=w);var S={lineStart:{x:m,y:b},lineEnd:{x:g,y:y},start:{x:x,y:A},width:w,height:n.fontSize,text:p.text,color:p.color,textColor:p.textColor,textSize:p.textSize};l=d(S,l),c.push(l)}for(var T=0;Tn.width&&(d=!0),y+e.y>n.height&&(e.y=n.height-y),a.beginPath(),a.setFillStyle(o(l.bgColor||i.toolTipBackground,l.bgOpacity||i.toolTipOpacity)),d?(a.moveTo(e.x,e.y+10*n.pixelRatio),a.lineTo(e.x-h,e.y+10*n.pixelRatio-5*n.pixelRatio),a.lineTo(e.x-h,e.y),a.lineTo(e.x-h-Math.round(g),e.y),a.lineTo(e.x-h-Math.round(g),e.y+y),a.lineTo(e.x-h,e.y+y),a.lineTo(e.x-h,e.y+10*n.pixelRatio+5*n.pixelRatio),a.lineTo(e.x,e.y+10*n.pixelRatio)):(a.moveTo(e.x,e.y+10*n.pixelRatio),a.lineTo(e.x+h,e.y+10*n.pixelRatio-5*n.pixelRatio),a.lineTo(e.x+h,e.y),a.lineTo(e.x+h+Math.round(g),e.y),a.lineTo(e.x+h+Math.round(g),e.y+y),a.lineTo(e.x+h,e.y+y),a.lineTo(e.x+h,e.y+10*n.pixelRatio+5*n.pixelRatio),a.lineTo(e.x,e.y+10*n.pixelRatio)),a.closePath(),a.fill(),t.forEach((function(t,n){if(null!==t.color){a.beginPath(),a.setFillStyle(t.color);var r=e.x+h+2*i.toolTipPadding,o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*n+i.toolTipPadding+1;d&&(r=e.x-g-h+2*i.toolTipPadding),a.fillRect(r,o,u,i.fontSize),a.closePath()}})),t.forEach((function(t,n){var r=e.x+h+2*i.toolTipPadding+u+f;d&&(r=e.x-g-h+2*i.toolTipPadding+ +u+f);var o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*n+i.toolTipPadding;a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(l.fontColor),a.fillText(t.text,r,o+i.fontSize),a.closePath(),a.stroke()})))}function bt(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=e.chartData.xAxisData,s=a.xAxisPoints,c=a.eachSpacing,l=r({},{type:"group",width:c/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),u=[];i.save();var f=-2,h=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),f=Math.floor(-e._scrollDistance_/c)-2,h=f+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===o&&yt(e.tooltip.offset.x,e,n,i,c),t.forEach((function(r,a){var d,p,g;d=[].concat(e.chartData.yAxisData.ranges[r.index]),p=d.pop(),g=d.shift();var v=r.data;switch(l.type){case"group":var y=et(v,p,g,s,c,e,n,o),m=nt(v,p,g,s,c,e,n,a,t,o);u.push(m),y=q(y,c,t.length,a,n,e);for(var b=0;bf&&bf&&A0&&(w-=T),i.moveTo(_,S.y),i.fillRect(_,S.y,S.width-2,w),i.closePath(),i.fill()}}break;case"meter":y=et(v,p,g,s,c,e,n,o);if(u.push(y),y=J(y,c,t.length,a,n,e,l.meter.border),0==a)for(var k=0;kf&&k0&&(i.beginPath(),i.setStrokeStyle(r.color),i.setLineWidth(l.meter.border*e.pixelRatio),i.moveTo(_+.5*l.meter.border,P.y+w),i.lineTo(_+.5*l.meter.border,P.y+.5*l.meter.border),i.lineTo(_+P.width-.5*l.meter.border,P.y+.5*l.meter.border),i.lineTo(_+P.width-.5*l.meter.border,P.y+w),i.stroke())}}else for(var C=0;Cf&&C5&&void 0!==arguments[5]?arguments[5]:1,s=r({},{color:{},average:{}},n.extra.candle);s.color=r({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=r({},{show:!1,name:[],day:[],color:i.colors},s.average),n.extra.candle=s;var c=n.chartData.xAxisData,l=c.xAxisPoints,u=c.eachSpacing,h=[];o.save();var d=-2,p=l.length+2,g=0,v=n.width+u;return n._scrollDistance_&&0!==n._scrollDistance_&&!0===n.enableScroll&&(o.translate(n._scrollDistance_,0),d=Math.floor(-n._scrollDistance_/u)-2,p=d+n.xAxis.itemCount+4,g=-n._scrollDistance_-u+n.area[3],v=g+(n.xAxis.itemCount+4)*u),s.average.show&&e.forEach((function(t,e){var r,s,c;r=[].concat(n.chartData.yAxisData.ranges[t.index]),s=r.pop(),c=r.shift();for(var h=t.data,d=et(h,s,c,l,u,n,i,a),p=R(d),y=0;yg&&(o.moveTo(_.x,_.y),b=1),x>0&&_.x>g&&_.xd&&m0?(o.setStrokeStyle(s.color.upLine),o.setFillStyle(s.color.upFill),o.setLineWidth(1*n.pixelRatio),o.moveTo(b[3].x,b[3].y),o.lineTo(b[1].x,b[1].y),o.lineTo(b[1].x-u/4,b[1].y),o.lineTo(b[0].x-u/4,b[0].y),o.lineTo(b[0].x,b[0].y),o.lineTo(b[2].x,b[2].y),o.lineTo(b[0].x,b[0].y),o.lineTo(b[0].x+u/4,b[0].y),o.lineTo(b[1].x+u/4,b[1].y),o.lineTo(b[1].x,b[1].y),o.moveTo(b[3].x,b[3].y)):(o.setStrokeStyle(s.color.downLine),o.setFillStyle(s.color.downFill),o.setLineWidth(1*n.pixelRatio),o.moveTo(b[3].x,b[3].y),o.lineTo(b[0].x,b[0].y),o.lineTo(b[0].x-u/4,b[0].y),o.lineTo(b[1].x-u/4,b[1].y),o.lineTo(b[1].x,b[1].y),o.lineTo(b[2].x,b[2].y),o.lineTo(b[1].x,b[1].y),o.lineTo(b[1].x+u/4,b[1].y),o.lineTo(b[0].x+u/4,b[0].y),o.lineTo(b[0].x,b[0].y),o.moveTo(b[3].x,b[3].y)),o.closePath(),o.fill(),o.stroke()}})),o.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:u}}function _t(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),c=e.chartData.xAxisData,l=c.xAxisPoints,u=c.eachSpacing,h=e.height-e.area[2],d=[];i.save();var p=0,g=e.width+u;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=-e._scrollDistance_-u+e.area[3],g=p+(e.xAxis.itemCount+4)*u),t.forEach((function(t,r){var c,v,y;c=[].concat(e.chartData.yAxisData.ranges[t.index]),v=c.pop(),y=c.shift();var m=t.data,b=et(m,v,y,l,u,e,n,a);d.push(b);for(var x=R(b),_=0;_1){var S=w[0],T=w[w.length-1];i.moveTo(S.x,S.y);var k=0;if("curve"===s.type)for(var P=0;Pp&&(i.moveTo(C.x,C.y),k=1),P>0&&C.x>p&&C.xp&&(i.moveTo(D.x,D.y),k=1),L>0&&D.x>p&&D.xp&&(i.moveTo(F.x,F.y),I=1),$>0&&F.x>p&&F.xp&&(i.moveTo(z.x,z.y),I=1),N>0&&z.x>p&&z.x4&&void 0!==arguments[4]?arguments[4]:1,a=r({},{type:"straight",width:2},e.extra.line);a.width*=e.pixelRatio;var s=e.chartData.xAxisData,c=s.xAxisPoints,l=s.eachSpacing,u=[];i.save();var h=0,d=e.width+l;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=-e._scrollDistance_-l+e.area[3],d=h+(e.xAxis.itemCount+4)*l),t.forEach((function(t,r){var s,p,g;s=[].concat(e.chartData.yAxisData.ranges[t.index]),p=s.pop(),g=s.shift();var v=t.data,y=et(v,p,g,c,l,e,n,o);u.push(y);var m=R(y);if("dash"==t.lineType){var b=t.dashLength?t.dashLength:8;b*=e.pixelRatio,i.setLineDash([b,b])}i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(a.width),m.forEach((function(t,e){if(1===t.length)i.moveTo(t[0].x,t[0].y),i.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{i.moveTo(t[0].x,t[0].y);var n=0;if("curve"===a.type)for(var r=0;rh&&(i.moveTo(o.x,o.y),n=1),r>0&&o.x>h&&o.xh&&(i.moveTo(l.x,l.y),n=1),c>0&&l.x>h&&l.x4&&void 0!==arguments[4]?arguments[4]:1,a=e.chartData.xAxisData,s=a.xAxisPoints,c=a.eachSpacing,l=e.height-e.area[2],u=[],h=0,d=0;t.forEach((function(t,e){"column"==t.type&&(d+=1)})),r.save();var p=-2,g=s.length+2,v=0,y=e.width+c;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/c)-2,g=p+e.xAxis.itemCount+4,v=-e._scrollDistance_-c+e.area[3],y=v+(e.xAxis.itemCount+4)*c),t.forEach((function(t,a){var m,b,x;m=[].concat(e.chartData.yAxisData.ranges[t.index]),b=m.pop(),x=m.shift();var _=t.data,w=et(_,b,x,s,c,e,n,i);if(u.push(w),"column"==t.type){w=q(w,c,d,h,n,e);for(var A=0;Ap&&A1){var O=C[0],L=C[C.length-1];r.moveTo(O.x,O.y);var D=0;if("curve"===t.style)for(var M=0;Mv&&(r.moveTo(E.x,E.y),D=1),M>0&&E.x>v&&E.xv&&(r.moveTo(F.x,F.y),D=1),$>0&&F.x>v&&F.xv&&(r.moveTo(c.x,c.y),a=1),s>0&&c.x>v&&c.xv&&(r.moveTo(h.x,h.y),a=1),u>0&&h.x>v&&h.x0&&(r.beginPath(),r.moveTo(t-c/2,f),r.lineTo(t-c/2,f+3*e.pixelRatio),r.closePath(),r.stroke())}))),!0!==e.xAxis.disableGrid&&(r.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&r.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,o.forEach((function(t,n){n%e.xAxis.gridEval==0&&(r.beginPath(),r.moveTo(t,f),r.lineTo(t,h),r.stroke())})),r.setLineDash([])),!0!==e.xAxis.disabled){var b=t.length;e.xAxis.labelCount&&(b=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,b-=1);for(var x=Math.ceil(t.length/b),_=[],w=t.length,A=0;A4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==n.pieChartLinePadding&&(n.pieChartLinePadding=s.activeRadius);var l=Math.min((e.width-e.area[1]-e.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding);t=B(t,l,a);var u=s.activeRadius;if(t=t.map((function(t){return t._start_+=s.offsetAngle*Math.PI/180,t})),t.forEach((function(t,n){e.tooltip&&e.tooltip.index==n&&(i.beginPath(),i.setFillStyle(o(t.color,e.extra.pie.activeOpacity||.5)),i.moveTo(c.x,c.y),i.arc(c.x,c.y,t._radius_+u,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(s.borderColor),i.setFillStyle(t.color),i.moveTo(c.x,c.y),i.arc(c.x,c.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==s.border&&i.stroke()})),"ring"===e.type){var f=.6*l;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(f=Math.max(0,l-e.extra.pie.ringWidth)),i.beginPath(),i.setFillStyle(e.background||"#ffffff"),i.moveTo(c.x,c.y),i.arc(c.x,c.y,f,0,2*Math.PI),i.closePath(),i.fill()}if(!1!==e.dataLabel&&1===a){for(var h=!1,d=0,p=t.length;d0){h=!0;break}h&&dt(t,e,n,i,l,c)}return 1===a&&"ring"===e.type&<(e,n,i,c),{center:c,radius:l,series:t}}function Lt(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==n.pieChartLinePadding&&(n.pieChartLinePadding=s.activeRadius);var c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},l=Math.min((e.width-e.area[1]-e.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding),u=s.minRadius||.5*l;t=G(t,s.type,u,l,a);var f=s.activeRadius;if(t=t.map((function(t){return t._start_+=(s.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,n){e.tooltip&&e.tooltip.index==n&&(i.beginPath(),i.setFillStyle(o(t.color,s.activeOpacity||.5)),i.moveTo(c.x,c.y),i.arc(c.x,c.y,f+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(s.borderColor),i.setFillStyle(t.color),i.moveTo(c.x,c.y),i.arc(c.x,c.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==s.border&&i.stroke()})),!1!==e.dataLabel&&1===a){for(var h=!1,d=0,p=t.length;d0){h=!0;break}h&&dt(t,e,n,i,l,c)}return{center:c,radius:l,series:t}}function Dt(t,e,n,i){var o,a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,c=r({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=V(t,c,s),o=c.center?c.center:{x:e.width/2,y:e.height/2},c.radius?a=c.radius:(a=Math.min(o.x,o.y),a-=5*e.pixelRatio,a-=c.width/2);for(var l=0;l5&&void 0!==arguments[5]?arguments[5]:1,c=r({},{type:"default",startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},n.extra.gauge);void 0==c.oldAngle&&(c.oldAngle=c.startAngle),void 0==c.oldData&&(c.oldData=0),t=X(t,c.startAngle,c.endAngle);var l={x:n.width/2,y:n.height/2},u=Math.min(l.x,l.y);u-=5*n.pixelRatio,u-=c.width/2;var f=u-c.width,h=0;if("progress"==c.type){var d=u-3*c.width;a.beginPath();var p=a.createLinearGradient(l.x,l.y-d,l.x,l.y+d);p.addColorStop("0",o(e[0].color,.3)),p.addColorStop("1.0",o("#FFFFFF",.1)),a.setFillStyle(p),a.arc(l.x,l.y,d,0,2*Math.PI,!1),a.fill(),a.setLineWidth(c.width),a.setStrokeStyle(o(e[0].color,.3)),a.setLineCap("round"),a.beginPath(),a.arc(l.x,l.y,f,c.startAngle*Math.PI,c.endAngle*Math.PI,!1),a.stroke(),h=c.startAngle-c.endAngle+1;c.splitLine.splitNumber;var g=h/c.splitLine.splitNumber/c.splitLine.childNumber,v=-u-.5*c.width-c.splitLine.fixRadius,y=-u-c.width-c.splitLine.fixRadius+c.splitLine.width;a.save(),a.translate(l.x,l.y),a.rotate((c.startAngle-1)*Math.PI);for(var m=c.splitLine.splitNumber*c.splitLine.childNumber+1,b=e[0].data*s,x=0;xx/m?a.setStrokeStyle(o(e[0].color,1)):a.setStrokeStyle(o(e[0].color,.3)),a.setLineWidth(3*n.pixelRatio),a.moveTo(v,0),a.lineTo(y,0),a.stroke(),a.rotate(g*Math.PI);a.restore(),e=V(e,c,s),a.setLineWidth(c.width),a.setStrokeStyle(e[0].color),a.setLineCap("round"),a.beginPath(),a.arc(l.x,l.y,f,c.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),a.stroke();var _=u-2.5*c.width;a.save(),a.translate(l.x,l.y),a.rotate((e[0]._proportion_-1)*Math.PI),a.beginPath(),a.setLineWidth(c.width/3);var w=a.createLinearGradient(0,.6*-_,0,.6*_);w.addColorStop("0",o("#FFFFFF",0)),w.addColorStop("0.5",o(e[0].color,1)),w.addColorStop("1.0",o("#FFFFFF",0)),a.setStrokeStyle(w),a.arc(0,0,_,.85*Math.PI,1.15*Math.PI,!1),a.stroke(),a.beginPath(),a.setLineWidth(1),a.setStrokeStyle(e[0].color),a.setFillStyle(e[0].color),a.moveTo(-_-c.width/3/2,-4),a.lineTo(-_-c.width/3/2-4,0),a.lineTo(-_-c.width/3/2,4),a.lineTo(-_-c.width/3/2,-4),a.stroke(),a.fill(),a.restore()}else{a.setLineWidth(c.width),a.setLineCap("butt");for(var A=0;A4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),c=w(e.categories.length),l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},u=Math.min(l.x-(_(e.categories)+n.radarLabelTextMargin),l.y-n.radarLabelTextMargin);u-=e.padding[1],i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(s.gridColor),c.forEach((function(t){var e=h(u*Math.cos(t),u*Math.sin(t),l);i.moveTo(l.x,l.y),i.lineTo(e.x,e.y)})),i.stroke(),i.closePath();for(var f=function(t){var n={};i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(s.gridColor),c.forEach((function(e,r){var o=h(u/s.gridCount*t*Math.cos(e),u/s.gridCount*t*Math.sin(e),l);0===r?(n=o,i.moveTo(o.x,o.y)):i.lineTo(o.x,o.y)})),i.lineTo(n.x,n.y),i.stroke(),i.closePath()},d=1;d<=s.gridCount;d++)f(d);var p=H(c,l,u,t,e,a);return p.forEach((function(t,n){if(i.beginPath(),i.setFillStyle(o(t.color,s.opacity)),t.data.forEach((function(t,e){0===e?i.moveTo(t.position.x,t.position.y):i.lineTo(t.position.x,t.position.y)})),i.closePath(),i.fill(),!1!==e.dataPointShape){var r=t.data.map((function(t){return t.position}));ct(r,t.color,t.pointShape,i,e)}})),ht(c,u,l,e,n,i),{center:l,radius:u,angleList:c}}function It(t,e,n){n=0==n?1:n;for(var r=[],i=0;ie[o].area[2]||t[1]>e[o].area[3]||t[2]n||t[3]>r){i=!0;break}i=!1}return i}function Ft(t){var e,n={};n.xMin=180,n.xMax=0,n.yMin=90,n.yMax=0;for(var r=0;rl.x?n.xMax:l.x,n.yMin=n.yMinl.y?n.yMax:l.y}}return n}function Rt(t,e,n,r,i,o){return{x:(e-n.xMin)*r+i,y:(n.yMax-t)*r+o}}function jt(t,e,n,r,i,o){return{x:(e-i)/r+n.xMin,y:n.yMax-(t-o)/r}}function Nt(t,e,n){if(e[1]==n[1])return!1;if(e[1]>t[1]&&n[1]>t[1])return!1;if(e[1]t[1])return!1;if(n[1]==t[1]&&e[1]>t[1])return!1;if(e[0].7},d=0;d4&&void 0!==arguments[4]?arguments[4]:1;r({},{type:"normal",autoColors:!0},e.extra.word);i.beginPath(),i.setFillStyle(e.background||"#FFFFFF"),i.rect(0,0,e.width,e.height),i.fill(),i.save();var a=e.chartData.wordCloudData;i.translate(e.width/2,e.height/2);for(var s=0;s0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(c,(a[s].areav[0]+5-e.width/2)*o-u*(1-o)/2,(a[s].areav[1]+5+l-e.height/2)*o):i.fillText(c,(a[s].areav[0]+5-e.width/2)*o-u*(1-o)/2,(a[s].areav[1]+5+l-e.height/2)*o)):a[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(c,(a[s].area[0]+5-e.width/2)*o-u*(1-o)/2,(a[s].area[1]+5+l-e.height/2)*o):i.fillText(c,(a[s].area[0]+5-e.width/2)*o-u*(1-o)/2,(a[s].area[1]+5+l-e.height/2)*o)),i.stroke(),i.restore()}i.restore()}function Wt(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),c=(e.height-e.area[0]-e.area[2])/t.length,l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},u=s.activeWidth,f=Math.min((e.width-e.area[1]-e.area[3])/2-u,(e.height-e.area[0]-e.area[2])/2-u);t=W(t,f,a),i.save(),i.translate(l.x,l.y);for(var h=0;h0?m[A].width+e.yAxis.padding:m[A].width,w+=1):(e.area[1]+=_>0?m[A].width+e.yAxis.padding:m[A].width,_+=1)}else n.yAxisWidth=m;if(e.chartData.yAxisData=y,e.categories&&e.categories.length){e.chartData.xAxisData=Q(e.categories,e,n);var S=N(e.categories,e,n,e.chartData.xAxisData.eachSpacing),T=S.xAxisHeight,P=S.angle;n.xAxisHeight=T,n._xAxisTextAngle_=P,e.area[2]+=T,e.chartData.categoriesData=S}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=U(a,e,n),c=e.chartData.xAxisData.rangesFormat;var C=N(c,e,n,e.chartData.xAxisData.eachSpacing),O=C.xAxisHeight,L=C.angle;n.xAxisHeight=O,n._xAxisTextAngle_=L,e.area[2]+=O,e.chartData.categoriesData=C}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var D=0,M=e.chartData.xAxisData.xAxisPoints,E=e.chartData.xAxisData.startX,I=e.chartData.xAxisData.endX,$=e.chartData.xAxisData.eachSpacing,F=$*(M.length-1),R=I-E;D=R-F,o.scrollOption={currentOffset:D,startTouchX:D,distance:0,lastMoveTime:0},e._scrollDistance_=D}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(n._pieTextMaxLength_=!1===e.dataLabel?0:Y(u)),t){case"word":var z=r({},{type:"normal",autoColors:!0},e.extra.word);1!=e.updateData&&void 0!=e.updateData||(e.chartData.wordCloudData=Ht(e,z.type)),this.animationInstance=new Kt({timing:"easeInOut",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),Bt(a,e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),Ut(a,e,n,i);break;case"funnel":this.animationInstance=new Kt({timing:"easeInOut",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.funnelData=Wt(a,e,n,i,t),Ct(e.series,e,n,i,e.chartData),St(e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new Kt({timing:"easeIn",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),kt(c,e,n,i),Tt(c,e,n,i);var r=wt(a,e,n,i,t),o=r.xAxisPoints,s=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=l,Pt(a,e,n,i),!1!==e.enableMarkLine&&1===t&>(e,n,i),Ct(e.series,e,n,i,e.chartData),St(e,n,i,t,l,o),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new Kt({timing:"easeIn",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),kt(c,e,n,i),Tt(c,e,n,i);var r=At(a,e,n,i,t),o=r.xAxisPoints,s=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=l,Pt(a,e,n,i),!1!==e.enableMarkLine&&1===t&>(e,n,i),Ct(e.series,e,n,i,e.chartData),St(e,n,i,t,l,o),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new Kt({timing:"easeIn",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),kt(c,e,n,i),Tt(c,e,n,i);var r=bt(a,e,n,i,t),o=r.xAxisPoints,s=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=l,Pt(a,e,n,i),!1!==e.enableMarkLine&&1===t&>(e,n,i),Ct(e.series,e,n,i,e.chartData),St(e,n,i,t,l,o),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new Kt({timing:"easeIn",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),kt(c,e,n,i),Tt(c,e,n,i);var r=_t(a,e,n,i,t),o=r.xAxisPoints,s=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=l,Pt(a,e,n,i),!1!==e.enableMarkLine&&1===t&>(e,n,i),Ct(e.series,e,n,i,e.chartData),St(e,n,i,t,l,o),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new Kt({timing:"easeInOut",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.pieData=Ot(a,e,n,i,t),Ct(e.series,e,n,i,e.chartData),St(e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new Kt({timing:"easeInOut",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.pieData=Lt(a,e,n,i,t),Ct(e.series,e,n,i,e.chartData),St(e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new Kt({timing:"easeInOut",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.radarData=Et(a,e,n,i,t),Ct(e.series,e,n,i,e.chartData),St(e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new Kt({timing:"easeInOut",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.arcbarData=Dt(a,e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new Kt({timing:"easeInOut",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.gaugeData=Mt(c,a,e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new Kt({timing:"easeIn",duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),kt(c,e,n,i),Tt(c,e,n,i);var r=xt(a,u,e,n,i,t),o=r.xAxisPoints,s=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=l,Pt(a,e,n,i),!1!==e.enableMarkLine&&1===t&>(e,n,i),Ct(u||e.series,e,n,i,e.chartData),St(e,n,i,t,l,o),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break}}function qt(){this.events={}}Kt.prototype.stop=function(){this.isStop=!0},qt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},qt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.opts=r({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){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=it(this.opts.series,this.opts,this.config),i=n.yAxisWidth;this.config.yAxisWidth=i;var o=0,a=Q(this.opts.categories,this.opts,this.config),s=a.xAxisPoints,c=a.startX,l=a.endX,u=a.eachSpacing,f=u*(s.length-1),h=l-c;o=h-f,this.scrollOption={currentOffset:o,startTouchX:o,distance:0,lastMoveTime:0},this.opts._scrollDistance_=o;break}Yt.call(this,this.opts.type,this.opts,this.config,this.context)},Jt.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var e=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=t.itemCount;var n=it(this.opts.series,this.opts,this.config),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,o=Q(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,s=o.startX,c=o.endX,l=o.eachSpacing,u=l*e,f=c-s,h=f-l*(a.length-1);i=f/2-u,i>0&&(i=0),i1&&void 0!==arguments[1]?arguments[1]:{},n=null;if(n=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],n){b(n,this.opts,t);var r=this.getLegendDataIndex(t);r>=0&&(this.opts.series[r].show=!this.opts.series[r].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Yt.call(this,this.opts.type,this.opts,this.config,this.context))}},Jt.prototype.showToolTip=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;n=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=b(n,this.opts,t),o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){var c=x(this.opts.series,s);if(0!==c.length){var l=A(c,this.opts.chartData.calPoints,s,this.opts.categories,e),u=l.textList,f=l.offset;f.y=i.y,a.tooltip={textList:e.textList?e.textList:u,offset:f,option:e,index:s}}}Yt.call(this,a.type,a,this.config,this.context)}if("mix"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1}),c=x(this.opts.series,s);if(0!==c.length){var h=S(c,this.opts.chartData.calPoints,s,this.opts.categories,e);u=h.textList,f=h.offset;f.y=i.y,a.tooltip={textList:e.textList?e.textList:u,offset:f,option:e,index:s}}}Yt.call(this,a.type,a,this.config,this.context)}if("candle"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1}),c=x(this.opts.series,s);if(0!==c.length){l=T(this.opts.series[0].data,c,this.opts.chartData.calPoints,s,this.opts.categories,this.opts.extra.candle,e),u=l.textList,f=l.offset;f.y=i.y,a.tooltip={textList:e.textList?e.textList:u,offset:f,option:e,index:s}}}Yt.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){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1}),c=this.opts._series_[s],u=[{text:e.format?e.format(c):c.name+": "+c.data,color:c.color}],f={x:i.x,y:i.y};a.tooltip={textList:e.textList?e.textList:u,offset:f,option:e,index:s}}Yt.call(this,a.type,a,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1}),c=this.opts._series_[s],u=[{text:e.format?e.format(c):c.properties.name,color:c.color}],f={x:i.x,y:i.y};a.tooltip={textList:e.textList?e.textList:u,offset:f,option:e,index:s}}a.updateData=!1,Yt.call(this,a.type,a,this.config,this.context)}if("radar"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1}),c=x(this.opts.series,s);if(0!==c.length){u=c.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),f={x:i.x,y:i.y};a.tooltip={textList:e.textList?e.textList:u,offset:f,option:e,index:s}}}Yt.call(this,a.type,a,this.config,this.context)}},Jt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=r({},this.opts,{_scrollDistance_:t,animation:!1});Yt.call(this,this.opts.type,e,this.config,this.context)},Jt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var n=b(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=n.x)},Jt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,n=Date.now(),i=n-this.scrollOption.lastMoveTime;if(!(i=this.domData.length-1&&(this.startIndex=0,this.count++),this.count>=this.totalCount&&this.startIndex===this.winingIndex?("function"===typeof this.callback&&setTimeout((function(){t.callback(t.startIndex,t.count)}),400),clearInterval(this.timer)):(this.count>=this.totalCount-1&&(this.speed+=30),this.timer=setTimeout((function(){t.callback(t.startIndex,t.count),t.rollFn()}),this.speed))}},t.exports=n},3185:function(t,e,n){"use strict";(function(e){var n={trustTags:a("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),blockTags:a("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:a("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:a("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),entities:{lt:"<",gt:">",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}},r=e.getSystemInfoSync().windowWidth,i=a(" ,\r,\n,\t,\f"),o=0;function a(t){for(var e=Object.create(null),n=t.split(","),r=n.length;r--;)e[n[r]]=!0;return e}function s(t,e){var r=t.indexOf("&");while(-1!=r){var i=t.indexOf(";",r+3),o=void 0;if(-1==i)break;"#"==t[r+1]?(o=parseInt(("x"==t[r+2]?"0":"")+t.substring(r+2,i)),isNaN(o)||(t=t.substr(0,r)+String.fromCharCode(o)+t.substr(i+1))):(o=t.substring(r+1,i),(n.entities[o]||"amp"==o&&e)&&(t=t.substr(0,r)+(n.entities[o]||"&")+t.substr(i+1))),r=t.indexOf("&",r+1)}return t}function c(t){this.options=t||{},this.tagStyle=Object.assign(n.tagStyle,this.options.tagStyle),this.imgList=t.imgList||[],this.plugins=t.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[]}function l(t){this.handler=t}c.prototype.parse=function(t){for(var e=this.plugins.length;e--;)this.plugins[e].onUpdate&&(t=this.plugins[e].onUpdate(t,n)||t);new l(this).parse(t);while(this.stack.length)this.popNode();return this.nodes},c.prototype.expose=function(){for(var t=this.stack.length;t--;){var e=this.stack[t];if("a"==e.name||e.c)return;e.c=1}},c.prototype.hook=function(t){for(var e=this.plugins.length;e--;)if(this.plugins[e].onParse&&0==this.plugins[e].onParse(t,this))return!1;return!0},c.prototype.getUrl=function(t){var e=this.options.domain;return"/"==t[0]?"/"==t[1]?t=(e?e.split("://")[0]:"http")+":"+t:e&&(t=e+t):!e||t.includes("data:")||t.includes("://")||(t=e+"/"+t),t},c.prototype.parseStyle=function(t){var e=t.attrs,n=(this.tagStyle[t.name]||"").split(";").concat((e.style||"").split(";")),o={},a="";e.id&&(this.options.useAnchor?this.expose():"img"!=t.name&&"a"!=t.name&&"video"!=t.name&&"audio"!=t.name&&(e.id=void 0)),e.width&&(o.width=parseFloat(e.width)+(e.width.includes("%")?"%":"px"),e.width=void 0),e.height&&(o.height=parseFloat(e.height)+(e.height.includes("%")?"%":"px"),e.height=void 0);for(var s=0,c=n.length;s0||f.includes("safe"))a+=";".concat(u,":").concat(f);else if(!o[u]||f.includes("import")||!o[u].includes("import")){if(f.includes("url")){var h=f.indexOf("(")+1;if(h){while('"'==f[h]||"'"==f[h]||i[f[h]])h++;f=f.substr(0,h)+this.getUrl(f.substr(h))}}else f.includes("rpx")&&(f=f.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*r/750+"px"})));o[u]=f}}}return t.attrs.style=a,o},c.prototype.onTagName=function(t){this.tagName=this.xml?t:t.toLowerCase(),"svg"==this.tagName&&(this.xml=!0)},c.prototype.onAttrName=function(t){t=this.xml?t:t.toLowerCase(),"data-"==t.substr(0,5)?"data-src"!=t||this.attrs.src?"img"==this.tagName||"a"==this.tagName?this.attrName=t:this.attrName=void 0:this.attrName="src":(this.attrName=t,this.attrs[t]="T")},c.prototype.onAttrVal=function(t){var e=this.attrName||"";"style"==e||"href"==e?this.attrs[e]=s(t,!0):e.includes("src")?this.attrs[e]=this.getUrl(s(t,!0)):e&&(this.attrs[e]=t)},c.prototype.onOpenTag=function(t){var e=Object.create(null);e.name=this.tagName,e.attrs=this.attrs,this.attrs=Object.create(null);var i=e.attrs,a=this.stack[this.stack.length-1],s=a?a.children:this.nodes,c=this.xml?t:n.voidTags[e.name];if("embed"==e.name){var l=i.src||"";l.includes(".mp4")||l.includes(".3gp")||l.includes(".m3u8")||(i.type||"").includes("video")?e.name="video":(l.includes(".mp3")||l.includes(".wav")||l.includes(".aac")||l.includes(".m4a")||(i.type||"").includes("audio"))&&(e.name="audio"),i.autostart&&(i.autoplay="T"),i.controls="T"}if("video"!=e.name&&"audio"!=e.name||("video"!=e.name||i.id||(i.id="v"+o++),i.controls||i.autoplay||(i.controls="T"),e.src=[],i.src&&(e.src.push(i.src),i.src=void 0),this.expose()),c){if(!this.hook(e)||n.ignoreTags[e.name])return void("base"!=e.name||this.options.domain?"source"==e.name&&a&&("video"==a.name||"audio"==a.name)&&i.src&&a.src.push(i.src):this.options.domain=i.href);var u=this.parseStyle(e);if("img"==e.name){if(i.src&&(i.src.includes("webp")&&(e.webp="T"),i.src.includes("data:")&&!i["original-src"]&&(i.ignore="T"),!i.ignore||e.webp||i.src.includes("cloud://"))){for(var f=this.stack.length;f--;){var h=this.stack[f];if("a"==h.name){e.a=h.attrs;break}var d=h.attrs.style||"";if(!d.includes("flex:")||d.includes("flex:0")||d.includes("flex: 0")||u.width&&u.width.includes("%"))if(d.includes("flex")&&"100%"==u.width)for(var p=f+1;p.5?y[m].toUpperCase():y[m]}b+=y.substr(m),y=b}}this.imgList.push(y)}"inline"==u.display&&(u.display=""),i.ignore&&(u["max-width"]=u["max-width"]||"100%",i.style+=";-webkit-touch-callout:none"),parseInt(u.width)>r&&(u.height=void 0),u.width&&(u.width.includes("auto")?u.width="":(e.w="T",u.height&&!u.height.includes("auto")&&(e.h="T")))}else if("svg"==e.name)return s.push(e),this.stack.push(e),void this.popNode();for(var x in u)u[x]&&(i.style+=";".concat(x,":").concat(u[x].replace(" !important","")));i.style=i.style.substr(1)||void 0}else("pre"==e.name||(i.style||"").includes("white-space")&&i.style.includes("pre"))&&(this.pre=e.pre=!0),e.children=[],this.stack.push(e);s.push(e)},c.prototype.onCloseTag=function(t){var e;for(t=this.xml?t:t.toLowerCase(),e=this.stack.length;e--;)if(this.stack[e].name==t)break;if(-1!=e)while(this.stack.length>e)this.popNode();else if("p"==t||"br"==t){var n=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;n.push({name:t,attrs:{}})}},c.prototype.popNode=function(){var t=this.stack.pop(),i=t.attrs,o=t.children,a=this.stack[this.stack.length-1],s=a?a.children:this.nodes;if(!this.hook(t)||n.ignoreTags[t.name])return"title"==t.name&&o.length&&"text"==o[0].type&&this.options.setTitle&&e.setNavigationBarTitle({title:o[0].text}),void s.pop();if(t.pre){t.pre=this.pre=void 0;for(var c=this.stack.length;c--;)this.stack[c].pre&&(this.pre=!0)}var l={};if("svg"==t.name){var u="",f=i.style;return i.style="",i.xmlns="http://www.w3.org/2000/svg",function t(e){for(var n in u+="<"+e.name,e.attrs){var r=e.attrs[n];r&&("viewbox"==n&&(n="viewBox"),u+=" ".concat(n,'="').concat(r,'"'))}if(e.children){u+=">";for(var i=0;i"}else u+="/>"}(t),t.name="img",t.attrs={src:"data:image/svg+xml;utf8,"+u.replace(/#/g,"%23"),style:f,ignore:"T"},t.children=void 0,void(this.xml=!1)}if(i.align&&("table"==t.name?"center"==i.align?l["margin-inline-start"]=l["margin-inline-end"]="auto":l["float"]=i.align:l["text-align"]=i.align,i.align=void 0),"font"==t.name&&(i.color&&(l.color=i.color,i.color=void 0),i.face&&(l["font-family"]=i.face,i.face=void 0),i.size)){var h=parseInt(i.size);isNaN(h)||(h<1?h=1:h>7&&(h=7),l["font-size"]=["xx-small","x-small","small","medium","large","x-large","xx-large"][h-1]),i.size=void 0}if((i["class"]||"").includes("align-center")&&(l["text-align"]="center"),Object.assign(l,this.parseStyle(t)),parseInt(l.width)>r&&(l["max-width"]="100%",l["box-sizing"]="border-box"),n.blockTags[t.name]?t.name="div":n.trustTags[t.name]||this.xml||(t.name="span"),"a"==t.name||"ad"==t.name)this.expose();else if("ul"!=t.name&&"ol"!=t.name||!t.c){if("table"==t.name){var d=parseFloat(i.cellpadding),p=parseFloat(i.cellspacing),g=parseFloat(i.border);if(t.c&&(isNaN(d)&&(d=2),isNaN(p)&&(p=2)),g&&(i.style+=";border:"+g+"px solid gray"),t.flag&&t.c){l.display="grid",p?(l["grid-gap"]=p+"px",l.padding=p+"px"):g&&(i.style+=";border-left:0;border-top:0");var v=[],y=[],m=[],b={};(function t(e){for(var n=0;n"==this.content[this.i]||e&&">"==this.content[this.i+1])&&(t&&this.handler[t](this.content.substring(this.start,this.i)),this.i+=e?2:1,this.start=this.i,this.handler.onOpenTag(e),"script"==this.handler.tagName?(this.i=this.content.indexOf("="a"&&t<="z"||t>="A"&&t<="Z")this.start!=this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"==t||"!"==t||"?"==t){this.start!=this.i&&this.handler.onText(this.content.substring(this.start,this.i));var e=this.content[this.i+2];if("/"==t&&(e>="a"&&e<="z"||e>="A"&&e<="Z"))return this.i+=2,this.start=this.i,this.state=this.endTag;var n="--\x3e";"!"==t&&"-"==this.content[this.i+2]&&"-"==this.content[this.i+3]||(n=">"),this.i=this.content.indexOf(n,this.i),-1!=this.i&&(this.i+=n.length,this.start=this.i)}else this.i++}else this.start"==t||"/"==t){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!=t&&(this.i=this.content.indexOf(">",this.i),-1==this.i))return;this.start=++this.i,this.state=this.text}else this.i++},t.exports=c}).call(this,n("543d")["default"])},"31e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={namespaced:!0,state:{hotWord:[]},getters:{},mutations:{setHotWord:function(t,e){t.hotWord=e}}};e.default=r},3474:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUserInfo=c,e.userShare=l,e.loginH5=u,e.loginMobile=f,e.getCodeApi=h,e.registerVerify=d,e.register=p,e.registerReset=g,e.getMenuList=v,e.postSignUser=y,e.getSignConfig=m,e.getSignList=b,e.setSignIntegral=x,e.getSignMonthList=_,e.userActivity=w,e.getCommissionInfo=A,e.getIntegralList=S,e.spreadBanner=T,e.spreadPeople=k,e.spreadCount=P,e.getSpreadInfo=C,e.spreadOrder=O,e.divisionOrder=L,e.getRankList=D,e.getBrokerageRank=M,e.extractCash=E,e.extractBank=I,e.userLevelGrade=$,e.userLevelTask=F,e.userLevelDetection=R,e.getAddressList=j,e.setAddressDefault=N,e.editAddress=z,e.delAddress=U,e.getAddressDetail=H,e.userEdit=B,e.getLogout=W,e.rechargeRoutine=G,e.rechargeWechat=V,e.getAddressDefault=X,e.getRechargeApi=K,e.setVisit=Y,e.serviceList=q,e.getChatRecord=J,e.spread=Z,e.getlevelInfo=Q,e.getlevelExpList=tt,e.updateUserInfo=et,e.phoneWxSilenceAuth=nt,e.phoneSilenceAuth=rt,e.invoiceList=it,e.invoiceSave=ot,e.invoiceDelete=at,e.invoiceDefault=st,e.invoiceDetail=ct,e.invoiceOrder=lt,e.makeUpinvoice=ut,e.memberCard=ft,e.memberCardDraw=ht,e.memberCardCreate=dt,e.memberCouponsList=pt,e.groomList=gt,e.memberOverdueTime=vt,e.spreadMsg=yt,e.imgToBase=mt,e.routineCode=bt,e.serviceRecord=xt,e.messageSystem=_t,e.getMsgDetails=wt,e.appleLogin=At,e.getUserAgreement=St,e.agentLevelList=Tt,e.agentLevelTaskList=kt,e.friendDetail=Pt,e.clerkPeople=Ct,e.setClerkPercent=Ot,e.delClerkPercent=Lt,e.cancelUser=Dt;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:p;if(!e)return[t];var r=this._caches[t];return r||(r=m(t,n),this._caches[t]=r),b(r,e)}}]),t}();e.Formatter=g;var v=/^(?:\d)+/,y=/^(?:\w)+/;function m(t,e){var n=r(e,2),i=n[0],o=n[1],a=[],s=0,c="";while(s-1?x:t.indexOf("-hant")>-1||C(t,["-tw","-hk","-mo","-cht"])?_:x;var n=O(t,[w,A,S]);return n||void 0}}var D=function(){function t(e){var n=e.locale,r=e.fallbackLocale,i=e.messages,o=e.watcher,a=e.formater;l(this,t),this.locale=w,this.fallbackLocale=w,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=a||P,this.messages=i||{},this.setLocale(n||w),o&&this.watchLocale(o)}return f(t,[{key:"setLocale",value:function(t){var e=this,n=this.locale;this.locale=L(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(t){t(e.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(t){var e=this,n=this.watchers.push(t)-1;return function(){e.watchers.splice(n,1)}}},{key:"add",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[t];r?n?Object.assign(r,e):Object.keys(e).forEach((function(t){k(r,t)||(r[t]=e[t])})):this.messages[t]=e}},{key:"f",value:function(t,e,n){return this.formater.interpolate(t,e,n).join("")}},{key:"t",value:function(t,e,n){var r=this.message;return"string"===typeof e?(e=L(e,this.messages),e&&(r=this.messages[e])):n=e,k(r,t)?this.formater.interpolate(r[t],n).join(""):t}}]),t}();function M(t,e){t.$watchLocale?t.$watchLocale((function(t){e.setLocale(t)})):t.$watch((function(){return t.$locale}),(function(t){e.setLocale(t)}))}function E(){return"undefined"!==typeof t&&t.getLocale?t.getLocale():"undefined"!==typeof n&&n.getLocale?n.getLocale():w}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof t){var i=[e,t];t=i[0],e=i[1]}"string"!==typeof t&&(t=E()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||w);var o=new D({locale:t,fallbackLocale:n,messages:e,watcher:r}),a=function(t,e){if("function"!==typeof getApp)a=function(t,e){return o.t(t,e)};else{var n=!1;a=function(t,e){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,M(r,o))),o.t(t,e)}}return a(t,e)};return{i18n:o,f:function(t,e,n){return o.f(t,e,n)},t:function(t,e){return a(t,e)},add:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(t,e,n)},watch:function(t){return o.watchLocale(t)},getLocale:function(){return o.getLocale()},setLocale:function(t){return o.setLocale(t)}}}e.I18n=D;var $,F=function(t){return"string"===typeof t};function R(t,e){return $||($=new g),W(t,(function(t,n){var r=t[n];return F(r)?!!z(r,e)||void 0:R(r,e)}))}function j(t,e,n){return $||($=new g),W(t,(function(t,r){var i=t[r];F(i)?z(i,n)&&(t[r]=U(i,e,n)):j(i,e,n)})),t}function N(t,e){var n=e.locale,r=e.locales,i=e.delimiters;if(!z(t,i))return t;$||($=new g);var o=[];Object.keys(r).forEach((function(t){t!==n&&o.push({locale:t,values:r[t]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(B(JSON.parse(t),o,i),null,2)}catch(a){}return t}function z(t,e){return t.indexOf(e[0])>-1}function U(t,e,n){return $.interpolate(t,e,n).join("")}function H(t,e,n,r){var i=t[e];if(F(i)){if(z(i,r)&&(t[e]=U(i,n[0].values,r),n.length>1)){var o=t[e+"Locales"]={};n.forEach((function(t){o[t.locale]=U(i,t.values,r)}))}}else B(i,n,r)}function B(t,e,n){return W(t,(function(t,r){H(t,r,e,n)})),t}function W(t,e){if(h(t)){for(var n=0;n-1}))):e}}function V(t){var e=[],n=t.split("-");while(n.length)e.push(n.join("-")),n.pop();return e}e.isString=F}).call(this,n("543d")["default"],n("c8ba"))},4729:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.goShopDetail=r,e.goPage=i;var n=getApp();function r(e,n){return new Promise((function(r){e.activity&&"1"===e.activity.type?t.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(e.activity.id,"&time=").concat(e.activity.time,"&status=1")}):e.activity&&"2"===e.activity.type?t.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(e.activity.id,"&bargain=").concat(n)}):e.activity&&"3"===e.activity.type?t.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(e.activity.id)}):r(e)}))}function i(){return new Promise((function(t){if(0!=n.globalData.isIframe)return!1;t(!0)}))}}).call(this,n("543d")["default"])},"4f72":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCombinationList=o,e.getCombinationDetail=a,e.getCombinationPink=s,e.postCombinationRemove=c,e.getBargainList=l,e.getCombinationBannerList=u,e.getPink=f,e.getBargainUserList=h,e.getBargainDetail=d,e.postBargainStartUser=p,e.postBargainStart=g,e.postBargainHelp=v,e.postBargainHelpPrice=y,e.postBargainHelpList=m,e.postBargainHelpCount=b,e.postBargainShare=x,e.getSeckillIndexTime=_,e.getSeckillList=w,e.getSeckillDetail=A,e.getBargainPoster=S,e.getCombinationPoster=T,e.getBargainUserCancel=k,e.seckillCode=P,e.scombinationCode=C,e.getCombinationPosterData=O,e.getBargainPosterData=L,e.integralOrderConfirm=D,e.integralOrderCreate=M,e.integralOrderDetails=E,e.getIntegralProductDetail=I,e.getStoreIntegralList=$,e.getIntegralOrderList=F,e.getLogisticsDetails=R,e.orderTake=j,e.orderDel=N,e.getPresellList=z;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.get("combination/list",t,{noAuth:!0})}function a(t){return r.default.get("combination/detail/"+t)}function s(t){return r.default.get("combination/pink/"+t)}function c(t){return r.default.post("combination/remove",t)}function l(t){return r.default.get("bargain/list",t,{noAuth:!0})}function u(t){return r.default.get("combination/banner_list",t,{noAuth:!0})}function f(t){return r.default.get("pink",t,{noAuth:!0})}function h(t){return r.default.get("bargain/user/list",t)}function d(t,e){return r.default.get("bargain/detail/".concat(t,"?bargainUid=").concat(e))}function p(t){return r.default.post("bargain/start/user",t)}function g(t){return r.default.post("bargain/start",{bargainId:t})}function v(t){return r.default.post("bargain/help",t)}function y(t){return r.default.post("bargain/help/price",t)}function m(t){return r.default.post("bargain/help/list",t)}function b(t){return r.default.post("bargain/help/count",t)}function x(t){return r.default.post("bargain/share",{bargainId:t})}function _(){return r.default.get("seckill/index",{},{noAuth:!0})}function w(t,e){return r.default.get("seckill/list/"+t,e,{noAuth:!0})}function A(t,e){return r.default.get("seckill/detail/"+t,e)}function S(t){return r.default.post("bargain/poster",t)}function T(t){return r.default.post("combination/poster",t)}function k(t){return r.default.post("bargain/user/cancel",t)}function P(t,e){return r.default.get("seckill/code/"+t,e)}function C(t){return r.default.get("combination/code/"+t)}function O(t){return r.default.get("combination/poster_info/"+t)}function L(t){return r.default.get("bargain/poster_info/"+t)}function D(t){return r.default.post("store_integral/order/confirm",t)}function M(t){return r.default.post("store_integral/order/create",t)}function E(t){return r.default.get("store_integral/order/detail/".concat(t))}function I(t){return r.default.get("store_integral/detail/"+t,{},{noAuth:!0})}function $(t){return r.default.get("store_integral/list",t)}function F(t){return r.default.get("store_integral/order/list",t)}function R(t){return r.default.get("store_integral/order/express/".concat(t))}function j(t){return r.default.post("store_integral/order/take",t)}function N(t){return r.default.post("store_integral/order/del",t)}function z(t){return r.default.get("advance/list",t)}},"50b4":function(t,e){},"514d":function(t,e){t.exports={HTTP_REQUEST_URL:"https://demo.crmeb.com",HEADER:{"content-type":"application/json","Form-type":"routine"},TOKENNAME:"Authori-zation",EXPIRE:0,LIMIT:10}},"52ec":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="day",o="week",a="month",s="quarter",c="year",l=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,u=/\[([^\]]+)]|Y{2,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,f=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},h={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+f(r,2,"0")+":"+f(i,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,a),i=e-r<0,o=t.clone().add(n+(i?-1:1),a);return Number(-(n+(e-r)/(i?r-o:o-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(l){return{M:a,y:c,w:o,d:i,D:"date",h:r,m:n,s:e,ms:t,Q:s}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},d={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("_")},p="en",g={};g[p]=d;var v=function(t){return t instanceof x},y=function(t,e,n){var r;if(!t)return p;if("string"==typeof t)g[t]&&(r=t),e&&(g[t]=e,r=t);else{var i=t.name;g[i]=t,r=i}return!n&&r&&(p=r),r||!n&&p},m=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new x(n)},b=h;b.l=y,b.i=v,b.w=function(t,e){return m(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var x=function(){function f(t){this.$L=this.$L||y(t.locale,null,!0),this.parse(t)}var h=f.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r)return n?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(e)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return b},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var n=m(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return m(t)t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1},t.prototype.uniIDHasPermission=function(t){var e=A(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=A(),e=t.tokenExpired;return e>Date.now()}}r="function"!==typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!_.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var T=Object.prototype.toString,k=Object.prototype.hasOwnProperty;function P(t){return"function"===typeof t}function C(t){return"string"===typeof t}function O(t){return"[object Object]"===T.call(t)}function L(t,e){return k.call(t,e)}function D(){}function M(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var E=/-(\w)/g,I=M((function(t){return t.replace(E,(function(t,e){return e?e.toUpperCase():""}))})),$=["invoke","success","fail","complete","returnValue"],F={},R={};function j(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?N(n):n}function N(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(t[n])){var r=e[n];e[n]=function(e){X(t[n],e).then((function(t){return P(r)&&r(t)||t}))}}})),e}function Y(t,e){var n=[];Array.isArray(F.returnValue)&&n.push.apply(n,p(F.returnValue));var r=R[t];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,p(r.returnValue)),n.forEach((function(t){e=t(e)||e})),e}function q(t){var e=Object.create(null);Object.keys(F).forEach((function(t){"returnValue"!==t&&(e[t]=F[t].slice())}));var n=R[t];return n&&Object.keys(n).forEach((function(t){"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))})),e}function J(t,e,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),o=1;o0&&(t.delta=n)}}}},kt={args:function(t){var e=parseInt(t.current);if(!isNaN(e)){var n=t.urls;if(Array.isArray(n)){var r=n.length;if(r)return e<0?e=0:e>=r&&(e=r-1),e>0?(t.current=n[e],t.urls=n.filter((function(t,r){return!(r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(O(e)){var o=!0===i?e:{};for(var a in P(n)&&(n=n(e,o)||{}),e)if(L(n,a)){var s=n[a];P(s)&&(s=s(e[a],e,o)),s&&(C(s)?o[s]=e[a]:O(s)&&(o[s.name?s.name:a]=s.value))}else-1!==$t.indexOf(a)?P(e[a])&&(o[a]=Ft(t,e[a],r)):i||(o[a]=e[a]);return o}return P(e)&&(e=Ft(t,e,r)),e}function jt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return P(Mt.returnValue)&&(e=Mt.returnValue(t,e)),Rt(t,e,n,{},r)}function Nt(t,e){if(L(Mt,t)){var n=Mt[t];return n?function(e,r){var i=n;P(n)&&(i=n(e)),e=Rt(t,e,i.args,i.returnValue);var o=[e];"undefined"!==typeof r&&o.push(r),P(i.name)?t=i.name(e):C(i.name)&&(t=i.name);var a=wx[t].apply(wx,o);return ot(t)?jt(t,a,i.returnValue,it(t)):a}:function(){}}return e}var zt=Object.create(null),Ut=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function Ht(t){return function(e){var n=e.fail,r=e.complete,i={errMsg:"".concat(t,":fail method '").concat(t,"' not supported")};P(n)&&n(i),P(r)&&r(i)}}Ut.forEach((function(t){zt[t]=Ht(t)}));var Bt={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function Wt(t){var e=t.service,n=t.success,r=t.fail,i=t.complete,o=!1;Bt[e]?(o={errMsg:"getProvider:ok",service:e,provider:Bt[e]},P(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},P(r)&&r(o)),P(i)&&i(o)}var Gt=Object.freeze({__proto__:null,getProvider:Wt}),Vt=function(){var t;return function(){return t||(t=new i.default),t}}();function Xt(t,e,n){return t[e].apply(t,n)}function Kt(){return Xt(Vt(),"$on",Array.prototype.slice.call(arguments))}function Yt(){return Xt(Vt(),"$off",Array.prototype.slice.call(arguments))}function qt(){return Xt(Vt(),"$once",Array.prototype.slice.call(arguments))}function Jt(){return Xt(Vt(),"$emit",Array.prototype.slice.call(arguments))}var Zt=Object.freeze({__proto__:null,$on:Kt,$off:Yt,$once:qt,$emit:Jt}),Qt=Object.freeze({__proto__:null}),te=Page,ee=Component,ne=/:/g,re=M((function(t){return I(t.replace(ne,"-"))}));function ie(t){var e=t.triggerEvent,n=function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return oe("onLoad",t),te(t)},Page.after=te.after,Component=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return oe("created",t),ee(t)});var ae=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function se(t,e){var n=t.$mp[t.mpType];e.forEach((function(e){L(n,e)&&(t[e]=n[e])}))}function ce(t,e){if(!e)return!0;if(i.default.options&&Array.isArray(i.default.options[t]))return!0;if(e=e.default||e,P(e))return!!P(e.extendOptions[t])||!!(e.super&&e.super.options&&Array.isArray(e.super.options[t]));if(P(e[t]))return!0;var n=e.mixins;return Array.isArray(n)?!!n.find((function(e){return ce(t,e)})):void 0}function le(t,e,n){e.forEach((function(e){ce(e,n)&&(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}))}function ue(t,e){var n;return e=e.default||e,n=P(e)?e:t.extend(e),e=n.options,[n,e]}function fe(t,e){if(Array.isArray(e)&&e.length){var n=Object.create(null);e.forEach((function(t){n[t]=!0})),t.$scopedSlots=t.$slots=n}}function he(t,e){t=(t||"").split(",");var n=t.length;1===n?e._$vueId=t[0]:2===n&&(e._$vueId=t[0],e._$vuePid=t[1])}function de(t,e){var n=t.data||{},r=t.methods||{};if("function"===typeof n)try{n=n.call(e)}catch(i){Object({NODE_ENV:"production",VUE_APP_NAME:"CRMEB标准版",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return O(n)||(n={}),Object.keys(r).forEach((function(t){-1!==e.__lifecycle_hooks__.indexOf(t)||L(n,t)||(n[t]=r[t])})),n}var pe=[String,Number,Boolean,Object,Array,null];function ge(t){return function(e,n){this.$vm&&(this.$vm[t]=e)}}function ve(t,e){var n=t.behaviors,r=t.extends,i=t.mixins,o=t.props;o||(t.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(t){a.push(t.replace("uni://","wx".concat("://"))),"uni://form-field"===t&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),O(r)&&r.props&&a.push(e({properties:me(r.props,!0)})),Array.isArray(i)&&i.forEach((function(t){O(t)&&t.props&&a.push(e({properties:me(t.props,!0)}))})),a}function ye(t,e,n,r){return Array.isArray(e)&&1===e.length?e[0]:e}function me(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return e||(n.vueId={type:String,value:""},n.generic={type:Object,value:null},n.scopedSlotsCompiler={type:String,value:""},n.vueSlots={type:null,value:[],observer:function(t,e){var n=Object.create(null);t.forEach((function(t){n[t]=!0})),this.setData({$slots:n})}}),Array.isArray(t)?t.forEach((function(t){n[t]={type:null,observer:ge(t)}})):O(t)&&Object.keys(t).forEach((function(e){var r=t[e];if(O(r)){var i=r.default;P(i)&&(i=i()),r.type=ye(e,r.type),n[e]={type:-1!==pe.indexOf(r.type)?r.type:null,value:i,observer:ge(e)}}else{var o=ye(e,r);n[e]={type:-1!==pe.indexOf(o)?o:null,observer:ge(e)}}})),n}function be(t){try{t.mp=JSON.parse(JSON.stringify(t))}catch(e){}return t.stopPropagation=D,t.preventDefault=D,t.target=t.target||{},L(t,"detail")||(t.detail={}),L(t,"markerId")&&(t.detail="object"===typeof t.detail?t.detail:{},t.detail.markerId=t.markerId),O(t.detail)&&(t.target=Object.assign({},t.target,t.detail)),t}function xe(t,e){var n=t;return e.forEach((function(e){var r=e[0],i=e[2];if(r||"undefined"!==typeof i){var o,a=e[1],s=e[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):t.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(e){return t.__get_value(a,e)===i})):O(o)&&(n=Object.keys(o).find((function(e){return t.__get_value(a,o[e])===i}))):n=o[i],s&&(n=t.__get_value(s,n))}})),n}function _e(t,e,n){var r={};return Array.isArray(e)&&e.length&&e.forEach((function(e,i){"string"===typeof e?e?"$event"===e?r["$"+i]=n:"arguments"===e?n.detail&&n.detail.__args__?r["$"+i]=n.detail.__args__:r["$"+i]=[n]:0===e.indexOf("$event.")?r["$"+i]=t.__get_value(e.replace("$event.",""),n):r["$"+i]=t.__get_value(e):r["$"+i]=t:r["$"+i]=xe(t,e)})),r}function we(t){for(var e={},n=1;n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1;if(i&&(a=e.currentTarget&&e.currentTarget.dataset&&"wx"===e.currentTarget.dataset.comType,!n.length))return a?[e]:e.detail.__args__||e.detail;var s=_e(t,r,e),c=[];return n.forEach((function(t){"$event"===t?"__set_model"!==o||i?i&&!a?c.push(e.detail.__args__[0]):c.push(e):c.push(e.target.value):Array.isArray(t)&&"o"===t[0]?c.push(we(t)):"string"===typeof t&&L(s,t)?c.push(s[t]):c.push(t)})),c}var Se="~",Te="^";function ke(t,e){return t===e||"regionchange"===e&&("begin"===t||"end"===t)}function Pe(t){var e=t.$parent;while(e&&e.$parent&&(e.$options.generic||e.$parent.$options.generic||e.$scope._$vuePid))e=e.$parent;return e&&e.$parent}function Ce(t){var e=this;t=be(t);var n=(t.currentTarget||t.target).dataset;if(n){var r=n.eventOpts||n["event-opts"];if(r){var i=t.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s=r.charAt(0)===Te;r=s?r.slice(1):r;var c=r.charAt(0)===Se;r=c?r.slice(1):r,a&&ke(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=e.$vm;if(i.$options.generic&&(i=Pe(i)||i),"$emit"===r)return void i.$emit.apply(i,Ae(e.$vm,t,n[1],n[2],s,r));var a=i[r];if(!P(a))throw new Error(" _vm.".concat(r," is not a function"));if(c){if(a.once)return;a.once=!0}var l=Ae(e.$vm,t,n[1],n[2],s,r);l=Array.isArray(l)?l:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(l=l.concat([,,,,,,,,,,t])),o.push(a.apply(i,l))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}}}var Oe,Le={};function De(){if($e()){var t=Object.keys(__uniConfig.locales);t.length&&t.forEach((function(t){var e=Le[t],n=__uniConfig.locales[t];e?Object.assign(e,n):Le[t]=n}))}}Oe=wx.getSystemInfoSync().language,De();var Me=(0,o.initVueI18n)(Oe,{}),Ee=Me.t;Me.mixin={beforeCreate:function(){var t=this,e=Me.i18n.watchLocale((function(){t.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){e()}))},methods:{$$t:function(t,e){return Ee(t,e)}}},Me.setLocale,Me.getLocale;function Ie(t,e,n){var r=t.observable({locale:n||Me.getLocale()}),i=[];e.$watchLocale=function(t){i.push(t)},Object.defineProperty(e,"$locale",{get:function(){return r.locale},set:function(t){r.locale=t,i.forEach((function(e){return e(t)}))}})}function $e(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}var Fe={},Re=[];function je(t){if(t){var e=Fe[t];return delete Fe[t],e}return Re.shift()}var Ne=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function ze(){i.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var t=i.default.prototype.__call_hook;i.default.prototype.__call_hook=function(e,n){return"onLoad"===e&&n&&n.__id__&&(this.__eventChannel__=je(n.__id__),delete n.__id__),t.call(this,e,n)}}function Ue(){var t={},e={};i.default.prototype.$hasScopedSlotsParams=function(n){var r=t[n];return r||(e[n]=this,this.$on("hook:destroyed",(function(){delete e[n]}))),r},i.default.prototype.$getScopedSlotsParams=function(n,r,i){var o=t[n];if(o){var a=o[r]||{};return i?a[i]:a}e[n]=this,this.$on("hook:destroyed",(function(){delete e[n]}))},i.default.prototype.$setScopedSlotsParams=function(n,r){var i=this.$options.propsData.vueId;if(i){var o=i.split(",")[0],a=t[o]=t[o]||{};a[n]=r,e[o]&&e[o].$forceUpdate()}},i.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete t[r],delete e[r])}})}function He(t,e){var n=e.mocks,r=e.initRefs;ze(),Ue(),t.$options.store&&(i.default.prototype.$store=t.$options.store),S(i.default),i.default.prototype.mpHost="mp-weixin",i.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=d({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var t=getApp();t.$vm&&t.$vm.$i18n&&(this._i18n=t.$vm.$i18n)}"app"!==this.mpType&&(r(this),se(this,n))}}});var o={onLaunch:function(e){this.$vm||(wx.canIUse&&wx.canIUse("nextTick"),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",e),this.$vm.__call_hook("onLaunch",e))}};o.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(t){o[t]=a[t]})),Ie(i.default,t,wx.getSystemInfoSync().language||"zh-Hans"),le(o,Ne),o}var Be=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function We(t,e){for(var n,r=t.$children,i=r.length-1;i>=0;i--){var o=r[i];if(o.$scope._$vueId===e)return o}for(var a=r.length-1;a>=0;a--)if(n=We(r[a],e),n)return n}function Ge(t){return Behavior(t)}function Ve(){return!!this.route}function Xe(t){this.triggerEvent("__l",t)}function Ke(t,e,n){var r=t.selectAllComponents(e);r.forEach((function(t){var r=t.dataset.ref;n[r]=t.$vm||t,"scoped"===t.dataset.vueGeneric&&t.selectAllComponents(".scoped-ref").forEach((function(t){Ke(t,e,n)}))}))}function Ye(t){var e=t.$scope;Object.defineProperty(t,"$refs",{get:function(){var t={};Ke(e,".vue-ref",t);var n=e.selectAllComponents(".vue-ref-in-for");return n.forEach((function(e){var n=e.dataset.ref;t[n]||(t[n]=[]),t[n].push(e.$vm||e)})),t}})}function qe(t){var e,n=t.detail||t.value,r=n.vuePid,i=n.vueOptions;r&&(e=We(this.$vm,r)),e||(e=this.$vm),i.parent=e}function Je(t){return He(t,{mocks:Be,initRefs:Ye})}function Ze(t){return App(Je(t)),t}var Qe=/[!'()*]/g,tn=function(t){return"%"+t.charCodeAt(0).toString(16)},en=/%2C/g,nn=function(t){return encodeURIComponent(t).replace(Qe,tn).replace(en,",")};function rn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nn,n=t?Object.keys(t).map((function(n){var r=t[n];if(void 0===r)return"";if(null===r)return e(n);if(Array.isArray(r)){var i=[];return r.forEach((function(t){void 0!==t&&(null===t?i.push(e(n)):i.push(e(n)+"="+e(t)))})),i.join("&")}return e(n)+"="+e(r)})).filter((function(t){return t.length>0})).join("&"):null;return n?"?".concat(n):""}function on(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isPage,r=e.initRelation,o=ue(i.default,t),a=l(o,2),s=a[0],u=a[1],f=c({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(f,u["mp-weixin"].options);var h={options:f,data:de(u,i.default.prototype),behaviors:ve(u,Ge),properties:me(u.props,!1,u.__file),lifetimes:{attached:function(){var t=this.properties,e={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:t};he(t.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:e}),this.$vm=new s(e),fe(this.$vm,t.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(t){this.$vm&&this.$vm.__call_hook("onPageShow",t)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(t){this.$vm&&this.$vm.__call_hook("onPageResize",t)}},methods:{__l:qe,__e:Ce}};return u.externalClasses&&(h.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(t){h.methods[t]=function(e){return this.$vm[t](e)}})),n?h:[h,s]}function an(t){return on(t,{isPage:Ve,initRelation:Xe})}var sn=["onShow","onHide","onUnload"];function cn(t,e){e.isPage,e.initRelation;var n=an(t);return le(n.methods,sn,t),n.methods.onLoad=function(t){this.options=t;var e=Object.assign({},t);delete e.__id__,this.$page={fullPath:"/"+(this.route||this.is)+rn(e)},this.$vm.$mp.query=t,this.$vm.__call_hook("onLoad",t)},n}function ln(t){return cn(t,{isPage:Ve,initRelation:Xe})}function un(t){return Component(ln(t))}function fn(t){return Component(an(t))}function hn(t){var e=Je(t),n=getApp({allowDefault:!0});t.$scope=n;var r=n.globalData;if(r&&Object.keys(e.globalData).forEach((function(t){L(r,t)||(r[t]=e.globalData[t])})),Object.keys(e).forEach((function(t){L(n,t)||(n[t]=e[t])})),P(e.onShow)&&wx.onAppShow&&wx.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function x(t,e){return b.call(t,e)}function _(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,A=_((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),S=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),T=/\B([A-Z])/g,k=_((function(t){return t.replace(T,"-$1").toLowerCase()}));function P(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function C(t,e){return t.bind(e)}var O=Function.prototype.bind?C:P;function L(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function D(t,e){for(var n in e)t[n]=e[n];return t}function M(t){for(var e={},n=0;n0),et=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),nt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/),{}.watch);if(Y)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){}}),window.addEventListener("test-passive",null,rt)}catch(ni){}var it=function(){return void 0===X&&(X=!Y&&!q&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),X},ot=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"===typeof t&&/native code/.test(t.toString())}var st,ct="undefined"!==typeof Symbol&&at(Symbol)&&"undefined"!==typeof Reflect&&at(Reflect.ownKeys);st="undefined"!==typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var lt=E,ut=0,ft=function(){this.id=ut++,this.subs=[]};function ht(t){ft.SharedObject.targetStack.push(t),ft.SharedObject.target=t,ft.target=t}function dt(){ft.SharedObject.targetStack.pop(),ft.SharedObject.target=ft.SharedObject.targetStack[ft.SharedObject.targetStack.length-1],ft.target=ft.SharedObject.target}ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){m(this.subs,t)},ft.prototype.depend=function(){ft.SharedObject.target&&ft.SharedObject.target.addDep(this)},ft.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!x(i,"default"))a=!1;else if(""===a||a===k(t)){var c=Yt(String,i.type);(c<0||s0&&(a=_e(a,(e||"")+"_"+n),xe(a[0])&&xe(l)&&(u[c]=yt(l.text+a[0].text),a.shift()),u.push.apply(u,a)):s(a)?xe(l)?u[c]=yt(l.text+a):""!==a&&u.push(yt(a)):xe(a)&&xe(l)?u[c]=yt(l.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),u.push(a)));return u}function we(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Ae(t){var e=Se(t.$options.inject,t);e&&(St(!1),Object.keys(e).forEach((function(n){Ot(t,n,e[n])})),St(!0))}function Se(t,e){if(t){for(var n=Object.create(null),r=ct?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=Ce(e,c,t[c]))}else i={};for(var l in e)l in i||(i[l]=Oe(e,l));return t&&Object.isExtensible(t)&&(t._normalized=i),W(i,"$stable",a),W(i,"$key",s),W(i,"$hasNormal",o),i}function Ce(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:be(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Oe(t,e){return function(){return t[e]}}function Le(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r1?L(n):n;for(var r=L(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(zn=function(){return Un.now()})}function Hn(){var t,e;for(zn(),Rn=!0,En.sort((function(t,e){return t.id-e.id})),jn=0;jnjn&&En[n].id>t.id)n--;En.splice(n+1,0,t)}else En.push(t);Fn||(Fn=!0,ce(Hn))}}var Xn=0,Kn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Xn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new st,this.newDepIds=new st,this.expression="","function"===typeof e?this.getter=e:(this.getter=V(e),this.getter||(this.getter=E)),this.value=this.lazy?void 0:this.get()};Kn.prototype.get=function(){var t;ht(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(ni){if(!this.user)throw ni;qt(ni,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ue(t),dt(),this.cleanupDeps()}return t},Kn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Kn.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Kn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Vn(this)},Kn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(ni){qt(ni,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Kn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Kn.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},Kn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var Yn={enumerable:!0,configurable:!0,get:E,set:E};function qn(t,e,n){Yn.get=function(){return this[e][n]},Yn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Yn)}function Jn(t){t._watchers=[];var e=t.$options;e.props&&Zn(t,e.props),e.methods&&ar(t,e.methods),e.data?Qn(t):Ct(t._data={},!0),e.computed&&nr(t,e.computed),e.watch&&e.watch!==nt&&sr(t,e.watch)}function Zn(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||St(!1);var a=function(o){i.push(o);var a=Gt(o,e,n,t);Ot(r,o,a),o in t||qn(t,"_props",o)};for(var s in e)a(s);St(!0)}function Qn(t){var e=t.$options.data;e=t._data="function"===typeof e?tr(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&x(r,o)||B(o)||qn(t,"_data",o)}Ct(e,!0)}function tr(t,e){ht();try{return t.call(e,e)}catch(ni){return qt(ni,e,"data()"),{}}finally{dt()}}var er={lazy:!0};function nr(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new Kn(t,a||E,E,er)),i in t||rr(t,i,o)}}function rr(t,e,n){var r=!it();"function"===typeof n?(Yn.get=r?ir(e):or(n),Yn.set=E):(Yn.get=n.get?r&&!1!==n.cache?ir(e):or(n.get):E,Yn.set=n.set||E),Object.defineProperty(t,e,Yn)}function ir(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.SharedObject.target&&e.depend(),e.value}}function or(t){return function(){return t.call(this,this)}}function ar(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?E:O(e[n],t)}function sr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=L(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function yr(t){t.mixin=function(t){return this.options=Bt(this.options,t),this}}function mr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Bt(n.options,t),a["super"]=n,a.options.props&&br(a),a.options.computed&&xr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,N.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=D({},a.options),i[r]=a,a}}function br(t){var e=t.options.props;for(var n in e)qn(t.prototype,"_props",n)}function xr(t){var e=t.options.computed;for(var n in e)rr(t.prototype,n,e[n])}function _r(t){N.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function wr(t){return t&&(t.Ctor.options.name||t.tag)}function Ar(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Sr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=wr(a.componentOptions);s&&!e(s)&&Tr(n,o,r,i)}}}function Tr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,m(n,e)}fr(gr),lr(gr),An(gr),Pn(gr),hn(gr);var kr=[String,RegExp,Array],Pr={name:"keep-alive",abstract:!0,props:{include:kr,exclude:kr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Tr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Sr(t,(function(t){return Ar(e,t)}))})),this.$watch("exclude",(function(e){Sr(t,(function(t){return!Ar(e,t)}))}))},render:function(){var t=this.$slots.default,e=yn(t),n=e&&e.componentOptions;if(n){var r=wr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Ar(o,r))||a&&r&&Ar(a,r))return e;var s=this,c=s.cache,l=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[u]?(e.componentInstance=c[u].componentInstance,m(l,u),l.push(u)):(c[u]=e,l.push(u),this.max&&l.length>parseInt(this.max)&&Tr(c,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Cr={KeepAlive:Pr};function Or(t){var e={get:function(){return U}};Object.defineProperty(t,"config",e),t.util={warn:lt,extend:D,mergeOptions:Bt,defineReactive:Ot},t.set=Lt,t.delete=Dt,t.nextTick=ce,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),N.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,D(t.options.components,Cr),vr(t),yr(t),mr(t),_r(t)}Or(gr),Object.defineProperty(gr.prototype,"$isServer",{get:it}),Object.defineProperty(gr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gr,"FunctionalRenderContext",{value:Ge}),gr.version="2.6.11";var Lr="[object Array]",Dr="[object Object]";function Mr(t,e){var n={};return Er(t,e),Ir(t,e,"",n),n}function Er(t,e){if(t!==e){var n=Fr(t),r=Fr(e);if(n==Dr&&r==Dr){if(Object.keys(t).length>=Object.keys(e).length)for(var i in e){var o=t[i];void 0===o?t[i]=null:Er(o,e[i])}}else n==Lr&&r==Lr&&t.length>=e.length&&e.forEach((function(e,n){Er(t[n],e)}))}}function Ir(t,e,n,r){if(t!==e){var i=Fr(t),o=Fr(e);if(i==Dr)if(o!=Dr||Object.keys(t).length1&&(e[n[0].trim()]=n[1].trim())}})),e}));function qr(t){return Array.isArray(t)?M(t):"string"===typeof t?Yr(t):t}var Jr=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Zr(t,e){var n=e.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?t[r]:Zr(t[r],n.slice(1).join("."))}function Qr(t){t.config.errorHandler=function(e,n,r){t.util.warn("Error in "+r+': "'+e.toString()+'"',n);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(e)};var e=t.prototype.$emit;t.prototype.$emit=function(t){return this.$scope&&t&&(this.$scope["_triggerEvent"]||this.$scope["triggerEvent"]).call(this.$scope,t,{__args__:L(arguments,1)}),e.apply(this,arguments)},t.prototype.$nextTick=function(t){return Nr(this,t)},Jr.forEach((function(e){t.prototype[e]=function(t){return this.$scope&&this.$scope[e]?this.$scope[e](t):"undefined"!==typeof my?"createSelectorQuery"===e?my.createSelectorQuery(t):"createIntersectionObserver"===e?my.createIntersectionObserver(t):void 0:void 0}})),t.prototype.__init_provide=we,t.prototype.__init_injections=Ae,t.prototype.__call_hook=function(t,e){var n=this;ht();var r,i=n.$options[t],o=t+" hook";if(i)for(var a=0,s=i.length;a-1?t:t.replace("http://","https://")},downloadFilestoreImage:function(){var e=this;t.downloadFile({url:e.setDomain(e.storeInfo.image),success:function(t){e.storeImage=t.tempFilePath,e.storeImageBase64=t.tempFilePath},fail:function(){return e.$util.Tips({title:""})}})},downloadFilePromotionCode:function(e){var n=this;(0,i.getProductCode)(n.id).then((function(r){t.downloadFile({url:n.setDomain(r.data.code),success:function(t){n.$set(n,"isDown",!1),n.$set(n,"PromotionCode",t.tempFilePath),"function"==typeof e&&e&&e(t.tempFilePath)},fail:function(){n.$set(n,"isDown",!1),n.$set(n,"PromotionCode","")}})})).catch((function(t){n.$set(n,"isDown",!1),n.$set(n,"PromotionCode","")}))}}};e.sharePoster=a}).call(this,n("543d")["default"])},"7f3a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLotteryData=o,e.startLottery=a,e.receiveLottery=s,e.getLotteryList=c;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.get("v2/lottery/info/".concat(t))}function a(t){return r.default.post("v2/lottery",t)}function s(t){return r.default.post("v2/lottery/receive",t)}function c(t){return r.default.get("v2/lottery/record",t)}},"7fe6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIndexData=o,e.getServerType=a,e.getLogo=s,e.setFormId=c,e.setCouponReceive=l,e.getCoupons=u,e.getCouponsIndex=f,e.getUserCoupons=h,e.getNewCoupon=d,e.getArticleCategoryList=p,e.getArticleList=g,e.getArticleHotList=v,e.getArticleBannerList=y,e.getArticleDetails=m,e.loginMobile=b,e.verifyCode=x,e.registerVerify=_,e.phoneRegister=w,e.phoneRegisterReset=A,e.phoneLogin=S,e.switchH5Login=T,e.bindingPhone=k,e.bindingUserPhone=P,e.logout=C,e.getTemlIds=O,e.pink=L,e.getCity=D,e.getLiveList=M,e.getDiy=E,e.colorChange=I,e.follow=$,e.updatePhone=F,e.getCouponV2=R,e.getCouponNewUser=j,e.category=N,e.searchList=z,e.clearSearch=U,e.siteConfig=H,e.wechatAppAuth=B,e.getCustomerType=W,e.getOpenAdv=G;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(){return r.default.get("v2/index",{},{noAuth:!0})}function a(){return r.default.get("v2/site_serve",{},{noAuth:!0})}function s(){return r.default.get("wechat/get_logo",{},{noAuth:!0})}function c(t){return r.default.post("wechat/set_form_id",{formId:t})}function l(t){return r.default.post("coupon/receive",{couponId:t})}function u(t){return r.default.get("v2/coupons",t,{noAuth:!0})}function f(t){return r.default.get("coupons",t,{noAuth:!0})}function h(t,e){return r.default.get("coupons/user/"+t,e)}function d(){return r.default.get("v2/new_coupon")}function p(){return r.default.get("article/category/list",{},{noAuth:!0})}function g(t,e){return r.default.get("article/list/"+t,e,{noAuth:!0})}function v(){return r.default.get("article/hot/list",{},{noAuth:!0})}function y(){return r.default.get("article/banner/list",{},{noAuth:!0})}function m(t){return r.default.get("article/details/"+t,{},{noAuth:!0})}function b(t){return r.default.post("login/mobile",t,{noAuth:!0})}function x(){return r.default.get("verify_code",{},{noAuth:!0})}function _(t,e,n,i){return r.default.post("register/verify",{phone:t,type:void 0===e?"reset":e,key:n,code:i},{noAuth:!0})}function w(t){return r.default.post("register",t,{noAuth:!0})}function A(t){return r.default.post("register/reset",t,{noAuth:!0})}function S(t){return r.default.post("login",t,{noAuth:!0})}function T(){return r.default.post("switch_h5",{from:"routine"})}function k(t){return r.default.post("binding",t,{noAuth:!0})}function P(t){return r.default.post("user/binding",t)}function C(){return r.default.get("logout")}function O(){return r.default.get("wechat/teml_ids",{},{noAuth:!0})}function L(){return r.default.get("pink",{},{noAuth:!0})}function D(){return r.default.get("city_list",{},{noAuth:!0})}function M(t,e){return r.default.get("wechat/live",{page:t,limit:e},{noAuth:!0})}function E(t){return r.default.get("v2/diy/get_diy/default".concat(t?"?id="+t:""),{},{noAuth:!0})}function I(t){return r.default.get("v2/diy/color_change/"+t,{},{noAuth:!0})}function $(){return r.default.get("wechat/follow",{},{noAuth:!0})}function F(t){return r.default.post("user/updatePhone",t,{noAuth:!0})}function R(){return r.default.get("v2/get_today_coupon",{},{noAuth:!0})}function j(){return r.default.get("v2/new_coupon",{},{noAuth:!0})}function N(t){return r.default.get("category",t,{noAuth:!0})}function z(t){return r.default.get("v2/user/search_list",t,{noAuth:!0})}function U(){return r.default.get("v2/user/clean_search")}function H(t){return r.default.get("site_config",t,{noAuth:!0})}function B(t){return r.default.post("wechat/app_auth",t,{noAuth:!0})}function W(t){return r.default.get("get_customer_type",{},{noAuth:!0})}function G(t){return r.default.get("get_open_adv",{},{noAuth:!0})}},8632:function(t,e,n){"use strict";function r(t){if(0===t.indexOf("_www")||0===t.indexOf("_doc")||0===t.indexOf("_documents")||0===t.indexOf("_downloads"))return t;if(0===t.indexOf("file://"))return t;if(0===t.indexOf("/storage/emulated/0/"))return t;if(0===t.indexOf("/")){var e=plus.io.convertAbsoluteFileSystem(t);if(e!==t)return e;t=t.substr(1)}return"_www/"+t}function i(t){return new Promise((function(e,n){if("object"===typeof window&&"document"in window){if("function"===typeof FileReader){var i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="blob",i.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=n,t.readAsDataURL(this.response)}},i.onerror=n,void i.send()}var o=document.createElement("canvas"),a=o.getContext("2d"),s=new Image;return s.onload=function(){o.width=s.width,o.height=s.height,a.drawImage(s,0,0),e(o.toDataURL()),o.height=o.width=0},s.onerror=n,void(s.src=t)}"object"!==typeof plus?"object"===typeof wx&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){n(t)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(r(t),(function(t){t.file((function(t){var r=new plus.io.FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(t){n(t)},r.readAsDataURL(t)}),(function(t){n(t)}))}),(function(t){n(t)}))}))}function o(t){return new Promise((function(e,n){if("object"===typeof window&&"document"in window){t=t.split(",");var r=t[0].match(/:(.*?);/)[1],i=atob(t[1]),o=i.length,a=new Uint8Array(o);while(o--)a[o]=i.charCodeAt(o);return e((window.URL||window.webkitURL).createObjectURL(new Blob([a],{type:r})))}var s=t.match(/data\:\S+\/(\S+);/);s?s=s[1]:n(new Error("base64 error"));var c=Date.now()+"."+s;if("object"!==typeof plus)if("object"===typeof wx&&wx.canIUse("getFileSystemManager")){var l=wx.env.USER_DATA_PATH+"/"+c;wx.getFileSystemManager().writeFile({filePath:l,data:t.replace(/^data:\S+\/\S+;base64,/,""),encoding:"base64",success:function(){e(l)},fail:function(t){n(t)}})}else n(new Error("not support"));else{var u=new plus.nativeObj.Bitmap("bitmap"+Date.now());u.loadBase64Data(t,(function(){var t="_doc/uniapp_temp/"+c;u.save(t,{},(function(){u.clear(),e(t)}),(function(t){u.clear(),n(t)}))}),(function(t){u.clear(),n(t)}))}}))}Object.defineProperty(e,"__esModule",{value:!0}),e.pathToBase64=i,e.base64ToPath=o},9011:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("514d"),i=n("c6cd"),o=a(n("6b37"));function a(t){return t&&t.__esModule?t:{default:t}}function s(e,n,a,s){var c=s.noAuth,l=void 0!==c&&c,u=s.noVerify,f=void 0!==u&&u,h=r.HTTP_REQUEST_URL,d=r.HEADER;return l||o.default.state.app.token||(0,i.checkLogin)()?(o.default.state.app.token&&(d[r.TOKENNAME]="Bearer "+o.default.state.app.token),new Promise((function(r,o){t.request({url:h+"/api/"+e,method:n||"GET",header:d,data:a||{},success:function(e){f||200==e.data.status?r(e.data,e):-1!==[41e4,410001,410002].indexOf(e.data.status)?((0,i.toLogin)(),o(e.data)):410010==e.data.status?t.showModal({title:"提示",content:e.data.msg,showCancel:!1,confirmText:"我知道了"}):o(e.data.msg||"系统错误")},fail:function(t){o("请求失败")}})}))):((0,i.toLogin)(),Promise.reject({msg:"未登录"}))}var c={};["options","get","post","put","head","delete","trace","connect"].forEach((function(t){c[t]=function(e,n,r){return s(e,t,n,r||{})}}));var l=c;e.default=l}).call(this,n("543d")["default"])},9231:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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(t){var e,n=348;for(e=32768;e>8;e>>=1)n+=this.lunarInfo[t-1900]&e?1:0;return n+this.leapDays(t)},leapMonth:function(t){return 15&this.lunarInfo[t-1900]},leapDays:function(t){return this.leapMonth(t)?65536&this.lunarInfo[t-1900]?30:29:0},monthDays:function(t,e){return e>12||e<1?-1:this.lunarInfo[t-1900]&65536>>e?30:29},solarDays:function(t,e){if(e>12||e<1)return-1;var n=e-1;return 1==n?t%4==0&&t%100!=0||t%400==0?29:28:this.solarMonth[n]},toGanZhiYear:function(t){var e=(t-3)%10,n=(t-3)%12;return 0==e&&(e=10),0==n&&(n=12),this.Gan[e-1]+this.Zhi[n-1]},toAstro:function(t,e){var n="魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯",r=[20,19,21,21,21,22,23,23,23,23,22,22];return n.substr(2*t-(e2100)return-1;if(e<1||e>24)return-1;var n=this.sTermInfo[t-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[e-1])},toChinaMonth:function(t){if(t>12||t<1)return-1;var e=this.nStr3[t-1];return e+="月",e},toChinaDay:function(t){var e;switch(t){case 10:e="初十";break;case 20:e="二十";break;case 30:e="三十";break;default:e=this.nStr2[Math.floor(t/10)],e+=this.nStr1[t%10]}return e},getAnimal:function(t){return this.Animals[(t-4)%12]},solar2lunar:function(t,e,n){if(t<1900||t>2100)return-1;if(1900==t&&1==e&&n<31)return-1;if(t)r=new Date(t,parseInt(e)-1,n);else var r=new Date;var i,o=0,a=0,s=(t=r.getFullYear(),e=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,l=!1;c.getFullYear()==t&&c.getMonth()+1==e&&c.getDate()==n&&(l=!0);var u=r.getDay(),f=this.nStr1[u];0==u&&(u=7);var h=i,d=(o=this.leapMonth(i),!1);for(i=1;i<13&&s>0;i++)o>0&&i==o+1&&0==d?(--i,d=!0,a=this.leapDays(h)):a=this.monthDays(h,i),1==d&&i==o+1&&(d=!1),s-=a;0==s&&o>0&&i==o+1&&(d?d=!1:(d=!0,--i)),s<0&&(s+=a,--i);var p=i,g=s+1,v=e-1,y=this.toGanZhiYear(h),m=this.getTerm(t,2*e-1),b=this.getTerm(t,2*e),x=this.toGanZhi(12*(t-1900)+e+11);n>=m&&(x=this.toGanZhi(12*(t-1900)+e+12));var _=!1,w=null;m==n&&(_=!0,w=this.solarTerm[2*e-2]),b==n&&(_=!0,w=this.solarTerm[2*e-1]);var A=Date.UTC(t,v,1,0,0,0,0)/864e5+25567+10,S=this.toGanZhi(A+n-1),T=this.toAstro(e,n);return{lYear:h,lMonth:p,lDay:g,Animal:this.getAnimal(h),IMonthCn:(d?"闰":"")+this.toChinaMonth(p),IDayCn:this.toChinaDay(g),cYear:t,cMonth:e,cDay:n,gzYear:y,gzMonth:x,gzDay:S,isToday:l,isLeap:d,nWeek:u,ncWeek:"星期"+f,isTerm:_,Term:w,astro:T}},lunar2solar:function(t,e,n,r){r=!!r;var i=this.leapMonth(t);this.leapDays(t);if(r&&i!=e)return-1;if(2100==t&&12==e&&n>1||1900==t&&1==e&&n<31)return-1;var o=this.monthDays(t,e),a=o;if(r&&(a=this.leapDays(t,e)),t<1900||t>2100||n>a)return-1;for(var s=0,c=1900;c0&&(s+=this.leapDays(t),u=!0),s+=this.monthDays(t,c);r&&(s+=o);var f=Date.UTC(1900,1,30,0,0,0),h=new Date(864e5*(s+n-31)+f),d=h.getUTCFullYear(),p=h.getUTCMonth()+1,g=h.getUTCDate();return this.solar2lunar(d,p,g)}},i=r;e.default=i},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",l="object"===typeof t,u=e.regeneratorRuntime;if(u)l&&(t.exports=u);else{u=e.regeneratorRuntime=l?t.exports:{},u.wrap=x;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",g={},v={};v[a]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(M([])));m&&m!==r&&i.call(m,a)&&(v=m);var b=S.prototype=w.prototype=Object.create(v);A.prototype=b.constructor=S,S.constructor=A,S[c]=A.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},u.awrap=function(t){return{__await:t}},T(k.prototype),k.prototype[s]=function(){return this},u.AsyncIterator=k,u.async=function(t,e,n,r){var i=new k(x(t,e,n,r));return u.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},T(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=M,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:M(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function x(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,o=Object.create(i.prototype),a=new D(r||[]);return o._invoke=P(t,n,a),o}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function w(){}function A(){}function S(){}function T(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function k(t){function e(n,r,o,a){var s=_(t[n],t,r);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&i.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function P(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return E()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=_(t,e,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function C(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,C(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=_(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function M(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r>6),n=128+(63&t),[e,n]):(e=224+(t>>12),n=128+(t>>6&63),r=128+(63&t),[e,n,r])}function r(t){for(var n=[],r=0;r=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},createQrcode:function(){for(var t=0,e=0,n=null,r=0;r<8;r++){this.makeImpl(r);var i=s.getLostPoint(this);(0==r||t>i)&&(t=i,e=r,n=this.modules)}this.modules=n,this.setupTypeInfo(!1,e),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var t=8;t>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r,this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(t,e){for(var n=o[this.errorCorrectLevel]<<3|e,r=s.getBCHTypeInfo(n),i=0;i<15;i++){var a=!t&&1==(r>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a;a=!t&&1==(r>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!t},createData:function(){var t=new h,e=this.typeNumber>9?16:8;t.put(4,4),t.put(this.utf8bytes.length,e);for(var n=0,r=this.utf8bytes.length;n=8*this.totalDataCount)break;if(t.put(i.PAD0,8),t.length>=8*this.totalDataCount)break;t.put(i.PAD1,8)}return this.createBytes(t)},createBytes:function(t){for(var e=0,n=0,r=0,i=this.rsBlock.length/3,o=new Array,a=0;a=0?x.get(_):0}}var w=new Array(this.totalDataCount),A=0;for(a=0;a0;a-=2){6==a&&a--;while(1){for(var c=0;c<2;c++)if(null==this.modules[r][a-c]){var l=!1;o>>i&1));var u=s.getMask(e,r,a-c);u&&(l=!l),this.modules[r][a-c]=l,i--,-1==i&&(o++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}}},i.PAD0=236,i.PAD1=17;for(var o=[1,0,3,2],a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){var e=t<<10;while(s.getBCHDigit(e)-s.getBCHDigit(s.G15)>=0)e^=s.G15<=0)e^=s.G18<>>=1;return e},getPatternPosition:function(t){return s.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case a.PATTERN000:return(e+n)%2==0;case a.PATTERN001:return e%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(e+n)%3==0;case a.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return e*n%2+e*n%3==0;case a.PATTERN110:return(e*n%2+e*n%3)%2==0;case a.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new u([1],0),n=0;n3&&t.modules[i][s-1]&&t.modules[i][s-2]&&t.modules[i][s-3]&&t.modules[i][s-4]&&(n+=40)),i=5&&(n+=3+o-5),o=1),c&&r++}for(s=0;s3&&t.modules[i-1][s]&&t.modules[i-2][s]&&t.modules[i-3][s]&&t.modules[i-4][s]&&(n+=40)),a^c?o++:(a=c,o>=5&&(n+=3+o-5),o=1)}var u=Math.abs(100*r/e/e-50)/5;return n+=10*u,n}},c={glog:function(t){if(t<1)throw new Error("glog("+t+")");return c.LOG_TABLE[t]},gexp:function(t){while(t<0)t+=255;while(t>=256)t-=255;return c.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},l=0;l<8;l++)c.EXP_TABLE[l]=1<=n){var o=c.glog(r[0])-c.glog(t.get(0));for(i=0;i9?2:1;if(this.utf8bytes.length+s>>7-t%8&1},put:function(t,e){for(var n=0;n>>e-n-1&1)},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var d=[];n=function(e){if(this.options={text:"",size:256,correctLevel:3,background:"#ffffff",foreground:"#000000",pdground:"#000000",image:"",imageSize:30,canvasId:e.canvasId,context:e.context,usingComponents:e.usingComponents,showLoading:e.showLoading,loadingText:e.loadingText},"string"===typeof e&&(e={text:e}),e)for(var n in e)this.options[n]=e[n];for(var r=null,o=(n=0,d.length);n1&&t.row<5&&t.col>1&&t.col<5||t.row>t.count-6&&t.row1&&t.col<5||t.row>1&&t.row<5&&t.col>t.count-6&&t.col1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),a(this,"getName",(function(t){return n.xml?t:t.toLowerCase()})),a(this,"isClose",(function(){return">"==n.data[n.i]||"/"==n.data[n.i]&&">"==n.data[n.i+1]})),a(this,"section",(function(){return n.data.substring(n.start,n.i)})),a(this,"siblings",(function(){return n.STACK.length?n.STACK[n.STACK.length-1].children:n.DOM})),this.attrs={},this.compress=i.compress,this.CssHandler=new u(i.tagStyle,h),this.data=e,this.domain=i.domain,this.DOM=[],this.i=this.start=this.audioNum=this.imgNum=this.videoNum=0,this.protocol=this.domain&&this.domain.includes("://")?this.domain.split("://")[0]:"",this.state=this.Text,this.STACK=[],this.useAnchor=i.useAnchor,this.xml=i.xml}return o(t,[{key:"parse",value:function(){s&&(this.data=s.parseEmoji(this.data));for(var t;t=this.data[this.i];this.i++)this.state(t);this.state==this.Text&&this.setText();while(this.STACK.length)this.popNode(this.STACK.pop());return this.DOM.length&&(this.DOM[0].PoweredBy="Parser",this.title&&(this.DOM[0].title=this.title)),this.DOM}},{key:"setAttr",value:function(){var t=this.getName(this.attrName);c.trustAttrs[t]&&(this.attrVal?this.attrs[t]="src"==t?this.getUrl(this.attrVal.replace(/&/g,"&")):this.attrVal:c.boolAttrs[t]&&(this.attrs[t]="T")),this.attrVal="";while(l[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)}},{key:"setText",value:function(){var t,e=this.section();if(e)if(e=c.onText&&c.onText(e,(function(){return t=!0}))||e,t){this.data=this.data.substr(0,this.start)+e+this.data.substr(this.i);var n=this.start+e.length;for(this.i=this.start;this.iparseInt(o.substr(i+1))||-1!=(i=o.indexOf("max-width"))&&-1!=(i=o.indexOf(":",i+8))&&h",this.i))&&(this.i=this.data.length),"svg"==e){var r=this.data.substring(n,this.i+1);t.attrs.xmlns||(r=' xmlns="http://www.w3.org/2000/svg"'+r);var i=n;while("<"!=this.data[n])n--;r=this.data.substring(n,i)+r;var o=this.STACK[this.STACK.length-1];"100%"==t.attrs.width&&o&&(o.attrs.style||"").includes("inline")&&(o.attrs.style="width:300px;max-width:100%;"+o.attrs.style),this.siblings().push({name:"img",attrs:{src:"data:image/svg+xml;utf8,"+r.replace(/#/g,"%23"),ignore:"T"}})}return}}}},{key:"matchAttr",value:function(t){var e=t.attrs,n=this.CssHandler.match(t.name,e,t)+(e.style||""),r={};switch(e.id&&(1&this.compress?e.id=void 0:this.useAnchor&&this.bubble()),2&this.compress&&e.class&&(e.class=void 0),t.name){case"img":e["data-src"]&&(e.src=e.src||e["data-src"],e["data-src"]=void 0),e.src&&!e.ignore&&(this.bubble()?e.i=(this.imgNum++).toString():e.ignore="T");break;case"a":case"ad":this.bubble();break;case"font":if(e.color&&(r["color"]=e.color,e.color=void 0),e.face&&(r["font-family"]=e.face,e.face=void 0),e.size){var i=parseInt(e.size);i<1?i=1:i>7&&(i=7);var o=["xx-small","x-small","small","medium","large","x-large","xx-large"];r["font-size"]=o[i-1],e.size=void 0}break;case"video":case"audio":e.id?this["".concat(t.name,"Num")]++:e.id=t.name+ ++this["".concat(t.name,"Num")],"video"==t.name&&(e.width&&(n="width:".concat(parseFloat(e.width)+(e.width.includes("%")?"%":"px"),";").concat(n),e.width=void 0),e.height&&(n="height:".concat(parseFloat(e.height)+(e.height.includes("%")?"%":"px"),";").concat(n),e.height=void 0),this.videoNum>3&&(t.lazyLoad=!0)),e.source=[],e.src&&e.source.push(e.src),!e.controls&&e.autoplay,this.bubble();break;case"td":case"th":if(e.colspan||e.rowspan)for(var a,s=this.STACK.length;a=this.STACK[--s];)if("table"==a.name){a.c=void 0;break}}e.align&&(r["text-align"]=e.align,e.align=void 0);var c=n.replace(/"/g,'"').replace(/&/g,"&").split(";");n="";for(var u=0,f=c.length;uh&&(r.height="auto"),r){var y=r[v];if((v.includes("flex")||"order"==v||"self-align"==v)&&(t.c=1),y.includes("url")){var m=y.indexOf("(");if(-1!=m++){while('"'==y[m]||"'"==y[m]||l[y[m]])m++;y=y.substr(0,m)+this.getUrl(y.substr(m))}}else y.includes("rpx")?y=y.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*h/750+"px"})):"white-space"==v&&y.includes("pre")&&(this.pre=t.pre=!0);n+=";".concat(v,":").concat(y)}n=n.substr(1),n&&(e.style=n)}},{key:"popNode",value:function(t){if(t.pre){t.pre=this.pre=void 0;for(var e=this.STACK.length;e--;)this.STACK[e].pre&&(this.pre=!0)}if("head"==t.name||c.filter&&0==c.filter(t,this))return this.siblings().pop();var n=t.attrs;if("picture"==t.name)return t.name="img",n.src||"img"!=(t.children[0]||"").name||(n.src=t.children[0].attrs.src),n.src&&!n.ignore&&(n.i=(this.imgNum++).toString()),t.children=void 0;if(c.blockTags[t.name]?t.name="div":c.trustTags[t.name]||(t.name="span"),t.c)if("ul"==t.name){for(var r=1,i=this.STACK.length;i--;)"ul"==this.STACK[i].name&&r++;if(1!=r)for(var o=t.children.length;o--;)t.children[o].floor=r}else if("ol"==t.name)for(var a,s=0,l=1;a=t.children[s++];)"li"==a.name&&(a.type="ol",a.num=function(t,e){if("a"==e)return String.fromCharCode(97+(t-1)%26);if("A"==e)return String.fromCharCode(65+(t-1)%26);if("i"==e||"I"==e){t=(t-1)%99+1;var n=["I","II","III","IV","V","VI","VII","VIII","IX"],r=["X","XX","XXX","XL","L","LX","LXX","LXXX","XC"],i=(r[Math.floor(t/10)-1]||"")+(n[t%10-1]||"");return"i"==e?i.toLowerCase():i}return t}(l++,n.type)+".");if("table"==t.name){var u=n.cellpadding,f=n.cellspacing,h=n.border;t.c&&(this.bubble(),u||(u=2),f||(f=2)),h&&(n.style="border:".concat(h,"px solid gray;").concat(n.style||"")),f&&(n.style="border-spacing:".concat(f,"px;").concat(n.style||"")),(h||u)&&function t(e){for(var n,r=0;n=e[r];r++)"th"==n.name||"td"==n.name?(h&&(n.attrs.style="border:".concat(h,"px solid gray;").concat(n.attrs.style)),u&&(n.attrs.style="padding:".concat(u,"px;").concat(n.attrs.style))):t(n.children||[])}(t.children)}if(this.CssHandler.pop&&this.CssHandler.pop(t),"div"==t.name&&!Object.keys(n).length){var d=this.siblings();1==t.children.length&&"div"==t.children[0].name&&(d[d.length-1]=t.children[0])}}},{key:"bubble",value:function(){for(var t,e=this.STACK.length;t=this.STACK[--e];){if(c.richOnlyTags[t.name])return"table"!=t.name||Object.hasOwnProperty.call(t,"c")||(t.c=1),!1;t.c=1}return!0}},{key:"getUrl",value:function(t){return"/"==t[0]?"/"==t[1]?t=this.protocol+":"+t:this.domain&&(t=this.domain+t):this.domain&&0!=t.indexOf("data:")&&!t.includes("://")&&(t=this.domain+"/"+t),t}},{key:"Text",value:function(t){if("<"==t){var e=this.data[this.i+1],n=function(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"};n(e)?(this.setText(),this.start=this.i+1,this.state=this.TagName):"/"==e?(this.setText(),n(this.data[1+ ++this.i])?(this.start=this.i+1,this.state=this.EndTag):this.Comment()):"!"==e&&(this.setText(),this.Comment())}}},{key:"Comment",value:function(){var t;t="--"==this.data.substring(this.i+2,this.i+4)?"--\x3e":"[CDATA["==this.data.substring(this.i+2,this.i+9)?"]]>":">",-1==(this.i=this.data.indexOf(t,this.i+2))?this.i=this.data.length:this.i+=t.length-1,this.start=this.i+1,this.state=this.Text}},{key:"TagName",value:function(t){if(l[t]){this.tagName=this.section();while(l[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)}else this.isClose()&&(this.tagName=this.section(),this.setNode())}},{key:"AttrName",value:function(t){var e=l[t];if(e&&(this.attrName=this.section(),t=this.data[this.i]),"="==t){e||(this.attrName=this.section());while(l[this.data[++this.i]]);this.start=this.i--,this.state=this.AttrValue}else e?this.setAttr():this.isClose()&&(this.attrName=this.section(),this.setAttr())}},{key:"AttrValue",value:function(t){if('"'==t||"'"==t){if(this.start++,-1==(this.i=this.data.indexOf(t,this.i+1)))return this.i=this.data.length;this.attrVal=this.section(),this.i++}else{for(;!l[this.data[this.i]]&&!this.isClose();this.i++);this.attrVal=this.section()}this.setAttr()}},{key:"EndTag",value:function(t){if(l[t]||">"==t||"/"==t){for(var e=this.getName(this.section()),n=this.STACK.length;n--;)if(this.STACK[n].name==e)break;if(-1!=n){var r;while((r=this.STACK.pop()).name!=e);this.popNode(r)}else"p"!=e&&"br"!=e||this.siblings().push({name:e,attrs:{}});this.i=this.data.indexOf(">",this.i),this.start=this.i+1,-1==this.i?this.i=this.data.length:this.state=this.Text}}}]),t}();t.exports=p},a762:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i(n("6b37")),n("514d");var r=n("00fa");n("7fe6");function i(t){return t&&t.__esModule?t:{default:t}}var o=function(){};o.prototype={onSocketOpen:function(e){t.$emit("socketOpen",e)},init:function(){var t=this;this.timer=setInterval((function(){t.send({type:"ping"})}),1e4)},send:function(e){var n=JSON.stringify(e);return t.sendSocketMessage({data:n})},onMessage:function(e){var n=JSON.parse(e.data),r=n.type,i=n.data,o=void 0===i?{}:i;t.$emit(r,o)},onClose:function(){t.closeSocket(),clearInterval(this.timer),t.$emit("socket_close")},onError:function(e){t.$emit("socket_error",e)},close:function(){t.closeSocket()},onStart:function(e,n){var i="".concat(r.VUE_APP_WS_URL);this.ws=t.connectSocket({url:i+"?type=user&token="+e+"&form_type="+n,header:{"content-type":"application/json"},method:"GET",success:function(t){}}),this.ws.onOpen(this.onSocketOpen.bind(this)),this.ws.onError(this.onError.bind(this)),this.ws.onMessage(this.onMessage.bind(this)),this.ws.onClose(this.onClose.bind(this))}},o.prototype.constructor=o;var a=o;e.default=a}).call(this,n("543d")["default"])},b2c5:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("a34a")),i=n("514d"),o=a(n("6b37"));n("8632");function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,i)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){s(o,r,i,a,c,"next",t)}function c(t){s(o,r,i,a,c,"throw",t)}a(void 0)}))}}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){return g(t)||p(t,e)||h(t,e)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(t,e){if(t){if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n255?(n+=2,n>r*e&&(n++,o.push(t.slice(i,a)),i=a,r++)):(n++,n>r*e&&(o.push(t.slice(i,a)),i=a,r++));return o.push(t.slice(i,t.length)),[n,o,r]},PosterCanvas:function(e,n,r,i,o){var a=this;t.showLoading({title:"海报生成中",mask:!0});var s=t.createCanvasContext("myCanvas");s.clearRect(0,0,0,0),s.fillStyle="#fff",s.fillRect(0,0,750,1150),t.getImageInfo({src:e[0],success:function(c){var l=c.width,f=c.height;s.drawImage(e[1],0,0,l,l),s.save();var h=110,d=2*h,p=480,g=790;s.arc(p+h,g+h,h,0,2*Math.PI),s.drawImage(e[2],p,g,d,d),s.restore();var v=20,y=a.textByteLength(n,v),m=u(y,3),b=(m[0],m[1]),x=m[2];if(x>2){x=2;var _=b.slice(0,2);_[_.length-1]+="……",b=_}s.setTextAlign("left"),s.setFontSize(36),s.setFillStyle("#000");for(var w=36,A=0;A2){L=2;var D=O.slice(0,2);D[D.length-1]+="…",O=D}f.setTextAlign("left"),f.setFillStyle("#000"),O.length<2?f.setFontSize(22):f.setFontSize(20);for(var M=8,E=0;Es?(r=s,i=s/o):(r=n.width,i=n.height),a&&a({w:r,h:i});var c=t.createCanvasContext("canvas");c.width=r,c.height=i,c.clearRect(0,0,r,i),c.drawImage(n.path,0,0,r,i),c.save(),setTimeout((function(e){c.draw(!0,(function(){t.canvasToTempFilePath({canvasId:"canvas",fileType:"JPEG",destWidth:r,destHeight:i,quality:.7,success:function(t){v(t.tempFilePath)}})}))}),200)}}})}})},getUrlParams:function(t,e,n){if("string"!=typeof t)return{};e=e||"&",n=n||"=";var r={};if(-1!==t.indexOf(e)){for(var i in t=t.split(e),t)if(-1!==t[i].indexOf(n)){var o=t[i].split(n);r[o[0]]=o[1]}}else{if(-1===t.indexOf(n))return t;o=t.split(n);r[o[0]]=o[1]}return r},SplitArray:function(t,e){if("object"!=typeof t)return[];void 0===e&&(e=[]);for(var n=0;n=r?n:r,((this.Mul(t,i)-this.Mul(e,i))/i).toFixed(o)},Mul:function(t,e){t=parseFloat(t),e=parseFloat(e);var n=0,r=t.toString(),i=e.toString();try{n+=r.split(".")[1].length}catch(o){}try{n+=i.split(".")[1].length}catch(o){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)}},$L:{getLocation:function(){var t=this;return c(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getSetting();case 2:if(n=e.sent,2!==n){e.next=6;break}return t.openSetting(),e.abrupt("return");case 6:t.doGetLocation();case 7:case"end":return e.stop()}}),e)})))()},doGetLocation:function(){t.getLocation({success:function(e){t.removeStorageSync("CACHE_LONGITUDE"),t.removeStorageSync("CACHE_LATITUDE"),t.setStorageSync("CACHE_LONGITUDE",e.longitude),t.setStorageSync("CACHE_LATITUDE",e.latitude)},fail:function(e){e.errMsg.indexOf("auth deny")>=0?t.showToast({title:"访问位置被拒绝"}):t.showToast({title:e.errMsg})}})},getSetting:function(){return new Promise((function(e,n){t.getSetting({success:function(t){void 0!==t.authSetting["scope.userLocation"]?t.authSetting["scope.userLocation"]?e(1):e(2):e(0)}})}))},openSetting:function(){var e=this;t.openSetting({success:function(t){t.authSetting&&t.authSetting["scope.userLocation"]&&e.doGetLocation()},fail:function(t){}})},checkPermission:function(){return c(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!permision.isIOS){e.next=6;break}return e.next=3,permision.requestIOS("location");case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,permision.requestAndroid("android.permission.ACCESS_FINE_LOCATION");case 8:e.t0=e.sent;case 9:return n=e.t0,null===n||1===n?n=1:2===n?t.showModal({content:"系统定位已关闭",confirmText:"确定",showCancel:!1,success:function(t){}}):n.code?t.showModal({content:n.message}):t.showModal({content:"需要定位权限",confirmText:"设置",success:function(t){t.confirm&&permision.gotoAppSetting()}}),e.abrupt("return",n);case 12:case"end":return e.stop()}}),e)})))()}}};e.default=v}).call(this,n("543d")["default"])},bbdd:function(t,e,n){var r=function(){return this||"object"===typeof self&&self}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("96cf"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},c6cd:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.checkLogin=h,e.toLogin=void 0;var r=c(n("6b37")),i=c(n("0c53")),o=n("e1ea"),a=n("a1ea"),s=c(n("2f12"));function c(t){return t&&t.__esModule?t:{default:t}}function l(){var t=getCurrentPages(),e=t[t.length-1];return e.route}var u=(0,o.Debounce)(f,800);function f(e,n){r.default.commit("LOGOUT");var o=l();n||(n="/page/users/login/index"),i.default.set("login_back_url",o),s.default.getCode().then((function(t){s.default.silenceAuth(t).then((function(t){}))})).catch((function(e){t.hideLoading()}))}function h(){var e=i.default.get(a.LOGIN_STATUS);i.default.get(a.EXPIRES_TIME);if(e){r.default.commit("UPDATE_LOGIN",e);var n=i.default.get(a.USER_INFO,!0);return n&&r.default.commit("UPDATE_USERINFO",n),!0}return t.setStorageSync("authIng",!1),i.default.clear(a.LOGIN_STATUS),i.default.clear(a.EXPIRES_TIME),i.default.clear(a.USER_INFO),i.default.clear(a.STATE_R_KEY),!1}e.toLogin=u}).call(this,n("543d")["default"])},c83f:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{colorStyle:"",colorStatus:""}},created:function(){var e=this;this.colorStyle=t.getStorageSync("viewColor"),t.$on("ok",(function(t,n){e.colorStyle=t,e.colorStatus=n}))},methods:{}};e.default=n}).call(this,n("543d")["default"])},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},da79:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.kefuLogin=o,e.record=a,e.speeChcraft=s,e.transferList=c,e.productCart=l,e.productHot=u,e.productVisit=f,e.serviceList=h,e.serviceTransfer=d,e.serviceInfo=p,e.serviceFeedBack=g,e.feedBackPost=v,e.codeStauts=y,e.getWorkermanUrl=m,e.kefuScanLogin=b;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.post("login",t,{noAuth:!0,kefu:!0})}function a(t){return r.default.get("user/record",t,{noAuth:!0,kefu:!0})}function s(t){return r.default.get("service/speechcraft",t,{noAuth:!0,kefu:!0})}function c(t){return r.default.get("service/transfer_list",t,{noAuth:!0,kefu:!0})}function l(t,e){return r.default.get("product/cart/"+t,e,{noAuth:!0,kefu:!0})}function u(t,e){return r.default.get("product/hot/"+t,e,{noAuth:!0,kefu:!0})}function f(t,e){return r.default.get("product/visit/"+t,e,{noAuth:!0,kefu:!0})}function h(t){return r.default.get("service/list",t,{noAuth:!0,kefu:!0})}function d(t){return r.default.post("service/transfer",t,{noAuth:!0,kefu:!0})}function p(t){return r.default.get("service/info",t,{noAuth:!0,kefu:!0})}function g(){return r.default.get("user/service/feedback")}function v(t){return r.default.post("user/service/feedback",t)}function y(t){return r.default.get("user/code",t)}function m(t){return r.default.get("get_workerman_url",{},{noAuth:!0})}function b(t){return r.default.post("user/code",t)}},e0d6:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCartCounts=o,e.getCartList=a,e.getResetCart=s,e.changeCartNum=c,e.cartDel=l,e.getOrderList=u,e.orderProduct=f,e.orderComment=h,e.orderPay=d,e.refundOrderDel=p,e.orderData=g,e.orderCancel=v,e.orderDel=y,e.getOrderDetail=m,e.getRefundOrderDetail=b,e.orderAgain=x,e.orderTake=_,e.express=w,e.ordeRefundReason=A,e.orderRefundVerify=S,e.orderConfirm=T,e.getCouponsOrderPrice=k,e.orderCreate=P,e.postOrderComputed=C,e.orderCoupon=O,e.offlineCheckPrice=L,e.offlineCreate=D,e.orderOfflinePayType=M,e.orderInvoiceList=E,e.orderInvoiceDetail=I,e.aliPay=$,e.refundExpress=F,e.vcartList=R,e.refundGoodsList=j,e.postRefundGoods=N,e.returnGoodsSubmit=z,e.getNewOrderList=U,e.refundOrderDetail=H,e.cancelRefundOrder=B;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.get("cart/count",{numType:void 0===t?0:t})}function a(t){return r.default.get("cart/list",t)}function s(t){return r.default.post("v2/reset_cart",t)}function c(t,e){return r.default.post("cart/num",{id:t,number:e})}function l(t){return"object"===typeof t&&(t=t.join(",")),r.default.post("cart/del",{ids:t})}function u(t){return r.default.get("order/list",t)}function f(t){return r.default.post("order/product",{unique:t})}function h(t){return r.default.post("order/comment",t)}function d(t){return r.default.post("order/pay",t)}function p(t){return r.default.get("order/refund/del/"+t,{})}function g(){return r.default.get("order/data")}function v(t){return r.default.post("order/cancel",{id:t})}function y(t){return r.default.post("order/del",{uni:t})}function m(t,e){return r.default.get("order/detail/"+t+"".concat(e?"/".concat(e):""))}function b(t,e){return r.default.get("order/refund_detail/"+t+"".concat(e?"/".concat(e):""))}function x(t){return r.default.post("order/again",{uni:t})}function _(t){return r.default.post("order/take",{uni:t})}function w(t,e){return r.default.get("order/express/"+t+"".concat(e?"/refund":""))}function A(){return r.default.get("order/refund/reason")}function S(t){return r.default.post("order/refund/verify",t)}function T(t,e,n,i){return r.default.post("order/confirm",{cartId:t,new:e,addressId:n,shipping_type:i})}function k(t,e){return r.default.get("coupons/order/"+t,e)}function P(t,e){return r.default.post("order/create/"+t,e)}function C(t,e){return r.default.post("order/computed/"+t,e)}function O(t){return r.default.post("v2/order/product_coupon/"+t)}function L(t){return r.default.post("order/offline/check/price",t)}function D(t){return r.default.post("order/offline/create",t)}function M(){return r.default.get("order/offline/pay/type")}function E(t){return r.default.get("v2/order/invoice_list",t)}function I(t){return r.default.get("v2/order/invoice_detail/".concat(t))}function $(t,e){return r.default.get("ali_pay",{key:t,quitUrl:e},{noAuth:!0})}function F(t){return r.default.post("order/refund/express",t)}function R(){return r.default.get("v2/cart_list")}function j(t){return r.default.get("order/refund/cart_info/".concat(t))}function N(t){return r.default.post("order/refund/cart_info",t)}function z(t,e){return r.default.post("order/refund/apply/".concat(t),e)}function U(t){return r.default.get("order/refund/list",t)}function H(t){return r.default.get("order/refund/detail/"+t)}function B(t){return r.default.post("order/refund/cancel/"+t)}},e1ea:function(t,e,n){"use strict";function r(t){var e=/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;return!!e.test(t)}function i(t){var e=/^1(3|4|5|6|7|8|9)\d{9}$/;return!!e.test(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isMoney=r,e.checkPhone=i,e.Throttle=e.Debounce=void 0;var o=function(t,e){var n,r=e||500;return function(){var e=this,i=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,t.apply(e,i)}),r)}};e.Debounce=o;var a=function(t,e){var n,r,i=e||500;return function(){var e=this,o=arguments,a=+new Date;n&&a-n="a"&&t<="z"||t>="A"&&t<="Z"})),this.data=e,this.floor=0,this.i=0,this.list=[],this.res=n,this.state=this.Space}return o(t,[{key:"parse",value:function(){for(var t;t=this.data[this.i];this.i++)this.state(t);return this.res}},{key:"Space",value:function(t){"."==t||"#"==t||this.isLetter(t)?(this.start=this.i,this.state=this.Name):"/"==t&&"*"==this.data[this.i+1]?this.Comment():s.blankChar[t]||";"==t||(this.state=this.Ignore)}},{key:"Comment",value:function(){this.i=this.data.indexOf("*/",this.i)+1,this.i||(this.i=this.data.length),this.state=this.Space}},{key:"Ignore",value:function(t){"{"==t?this.floor++:"}"!=t||--this.floor||(this.state=this.Space)}},{key:"Name",value:function(t){s.blankChar[t]?(this.list.push(this.section()),this.state=this.NameSpace):"{"==t?(this.list.push(this.section()),this.Content()):","==t?(this.list.push(this.section()),this.Comma()):!this.isLetter(t)&&(t<"0"||t>"9")&&"-"!=t&&"_"!=t&&(this.state=this.Ignore)}},{key:"NameSpace",value:function(t){"{"==t?this.Content():","==t?this.Comma():s.blankChar[t]||(this.state=this.Ignore)}},{key:"Comma",value:function(){while(s.blankChar[this.data[++this.i]]);"{"==this.data[this.i]?this.Content():(this.start=this.i--,this.state=this.Name)}},{key:"Content",value:function(){this.start=++this.i,-1==(this.i=this.data.indexOf("}",this.i))&&(this.i=this.data.length);for(var t,e=this.section(),n=0;t=this.list[n++];)this.res[t]?this.res[t]+=";"+e:this.res[t]=e;this.list=[],this.state=this.Space}}]),t}()},f875:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var n=setInterval((function(){e-=1,e<0&&clearInterval(n),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=r},fd65:function(t,e,n){ /*! * clipboard.js v2.0.6 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ (function(e,n){t.exports=n()})(0,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=n},function(t,e){function n(){}n.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),l=c,u=n(1),f=n.n(u),h=n(2),d=n.n(h),p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=d()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return x("action",t)}},{key:"defaultTarget",value:function(t){var e=x("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return x("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function x(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e["default"]=b}])["default"]}))}}]);