(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{1:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],n=["lanDebug","router","worklet"],i="undefined"!==typeof globalThis?globalThis:function(){return this}(),l=["w","x"].join(""),o=i[l],s=o.getLaunchOptionsSync?o.getLaunchOptionsSync():null;function u(e){return(!s||1154!==s.scene||!n.includes(e))&&(r.indexOf(e)>-1||"function"===typeof o[e])}function c(){var e={};for(var t in o)u(t)&&(e[t]=o[t]);return e}i[l]=c();var f=i[l];t.default=f},10:function(e,t){function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},11:function(e,t,a){var r=a(12);function n(e,t,a){return t=r(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},12:function(e,t,a){var r=a(13)["default"],n=a(14);function i(e){var t=n(e,"string");return"symbol"==r(t)?t:t+""}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},1226:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={contact:"",person:"",personadd:"","contact-filled":"","person-filled":"","personadd-filled":"",phone:"",email:"",chatbubble:"",chatboxes:"","phone-filled":"","email-filled":"","chatbubble-filled":"","chatboxes-filled":"",weibo:"",weixin:"",pengyouquan:"",chat:"",qq:"",videocam:"",camera:"",mic:"",location:"","mic-filled":"",speech:"","location-filled":"",micoff:"",image:"",map:"",compose:"",trash:"",upload:"",download:"",close:"",redo:"",undo:"",refresh:"",star:"",plus:"",minus:"",circle:"",checkbox:"","close-filled":"",clear:"","refresh-filled":"","star-filled":"","plus-filled":"","minus-filled":"","circle-filled":"","checkbox-filled":"",closeempty:"",refreshempty:"",reload:"",starhalf:"",spinner:"","spinner-cycle":"",search:"",plusempty:"",forward:"",back:"","left-nav":"",checkmarkempty:"",home:"",navigate:"",gear:"",paperplane:"",info:"",help:"",locked:"",more:"",flag:"","home-filled":"","gear-filled":"","info-filled":"","help-filled":"","more-filled":"",settings:"",list:"",bars:"",loop:"",paperclip:"",eye:"",arrowup:"",arrowdown:"",arrowleft:"",arrowright:"",arrowthinup:"",arrowthindown:"",arrowthinleft:"",arrowthinright:"",pulldown:"",closefill:"",sound:"",scan:""};t.default=r},1269:function(e,t,a){"use strict";function r(e,t,a){this.$children.map((function(n){e===n.$options.name?n.$emit.apply(n,[t].concat(a)):r.apply(n,[e,t].concat(a))}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={methods:{dispatch:function(e,t,a){var r=this.$parent||this.$root,n=r.$options.name;while(r&&(!n||n!==e))r=r.$parent,r&&(n=r.$options.name);r&&r.$emit.apply(r,[t].concat(a))},broadcast:function(e,t,a){r.call(this,e,t,a)}}};t.default=n},13:function(e,t){function a(t){return e.exports=a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},1305:function(e,t,a){"use strict";(function(e){var r=a(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(13));function i(){return i=Object.assign||function(e){for(var t=1;t=i)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(a){return"[Circular]"}break;default:return e}})),s=t[r];r()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},w={integer:function(e){return w.number(e)&&parseInt(e,10)===e},float:function(e){return w.number(e)&&!w.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===(0,n.default)(e)&&!w.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(_.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(_.url)},hex:function(e){return"string"===typeof e&&!!e.match(_.hex)}};function x(e,t,a,r,i){if(e.required&&void 0===t)y(e,t,a,r,i);else{var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;l.indexOf(o)>-1?w[o](t)||r.push(u(i.messages.types[o],e.fullField,e.type)):o&&(0,n.default)(t)!==e.type&&r.push(u(i.messages.types[o],e.fullField,e.type))}}function S(e,t,a,r,n){var i="number"===typeof e.len,l="number"===typeof e.min,o="number"===typeof e.max,s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,f=null,h="number"===typeof t,d="string"===typeof t,b=Array.isArray(t);if(h?f="number":d?f="string":b&&(f="array"),!f)return!1;b&&(c=t.length),d&&(c=t.replace(s,"_").length),i?c!==e.len&&r.push(u(n.messages[f].len,e.fullField,e.len)):l&&!o&&ce.max?r.push(u(n.messages[f].max,e.fullField,e.max)):l&&o&&(ce.max)&&r.push(u(n.messages[f].range,e.fullField,e.min,e.max))}var A="enum";function k(e,t,a,r,n){e[A]=Array.isArray(e[A])?e[A]:[],-1===e[A].indexOf(t)&&r.push(u(n.messages[A],e.fullField,e[A].join(", ")))}function M(e,t,a,r,n){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(u(n.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var i=new RegExp(e.pattern);i.test(t)||r.push(u(n.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var E={required:y,whitespace:m,type:x,range:S,enum:k,pattern:M};function T(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t,"string")&&!e.required)return a();E.required(e,t,r,i,n,"string"),f(t,"string")||(E.type(e,t,r,i,n),E.range(e,t,r,i,n),E.pattern(e,t,r,i,n),!0===e.whitespace&&E.whitespace(e,t,r,i,n))}a(i)}function P(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t)&&!e.required)return a();E.required(e,t,r,i,n),void 0!==t&&E.type(e,t,r,i,n)}a(i)}function O(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(""===t&&(t=void 0),f(t)&&!e.required)return a();E.required(e,t,r,i,n),void 0!==t&&(E.type(e,t,r,i,n),E.range(e,t,r,i,n))}a(i)}function D(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t)&&!e.required)return a();E.required(e,t,r,i,n),void 0!==t&&E.type(e,t,r,i,n)}a(i)}function R(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t)&&!e.required)return a();E.required(e,t,r,i,n),f(t)||E.type(e,t,r,i,n)}a(i)}function B(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t)&&!e.required)return a();E.required(e,t,r,i,n),void 0!==t&&(E.type(e,t,r,i,n),E.range(e,t,r,i,n))}a(i)}function I(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t)&&!e.required)return a();E.required(e,t,r,i,n),void 0!==t&&(E.type(e,t,r,i,n),E.range(e,t,r,i,n))}a(i)}function C(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t,"array")&&!e.required)return a();E.required(e,t,r,i,n,"array"),f(t,"array")||(E.type(e,t,r,i,n),E.range(e,t,r,i,n))}a(i)}function L(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t)&&!e.required)return a();E.required(e,t,r,i,n),void 0!==t&&E.type(e,t,r,i,n)}a(i)}var j="enum";function F(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t)&&!e.required)return a();E.required(e,t,r,i,n),void 0!==t&&E[j](e,t,r,i,n)}a(i)}function N(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t,"string")&&!e.required)return a();E.required(e,t,r,i,n),f(t,"string")||E.pattern(e,t,r,i,n)}a(i)}function z(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t)&&!e.required)return a();var o;if(E.required(e,t,r,i,n),!f(t))o="number"===typeof t?new Date(t):t,E.type(e,o,r,i,n),o&&E.range(e,o.getTime(),r,i,n)}a(i)}function $(e,t,a,r,i){var l=[],o=Array.isArray(t)?"array":(0,n.default)(t);E.required(e,t,r,l,i,o),a(l)}function q(e,t,a,r,n){var i=e.type,l=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t,i)&&!e.required)return a();E.required(e,t,r,l,n,i),f(t,i)||E.type(e,t,r,l,n)}a(l)}function U(e,t,a,r,n){var i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(f(t)&&!e.required)return a();E.required(e,t,r,i,n)}a(i)}var H={string:T,method:P,number:O,boolean:D,regexp:R,integer:B,float:I,array:C,object:L,enum:F,pattern:N,date:z,url:q,hex:q,email:q,required:$,any:U};function V(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var W=V();function K(e){this.rules=null,this._messages=W,this.define(e)}K.prototype={messages:function(e){return e&&(this._messages=g(V(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,n.default)(e)||Array.isArray(e))throw new Error("Rules must be an object");var t,a;for(t in this.rules={},e)e.hasOwnProperty(t)&&(a=e[t],this.rules[t]=Array.isArray(a)?a:[a])},validate:function(e,t,a){var r=this;void 0===t&&(t={}),void 0===a&&(a=function(){});var l,o,c=e,f=t,h=a;if("function"===typeof f&&(h=f,f={}),!this.rules||0===Object.keys(this.rules).length)return h&&h(),Promise.resolve();function d(e){var t,a=[],r={};function n(e){var t;Array.isArray(e)?a=(t=a).concat.apply(t,e):a.push(e)}for(t=0;t1?t-1:0),r=1;re.end.x||t.end.xe.start.y||t.start.y=0?(o=0,e.event.trigger("scrollLeft")):Math.abs(t)>=l-i&&(o=i-l,e.event.trigger("scrollRight")),o}function f(e,t,a){function r(e){while(e<0)e+=2*Math.PI;while(e>2*Math.PI)e-=2*Math.PI;return e}return e=r(e),t=r(t),a=r(a),t>a&&(a+=2*Math.PI,e=t&&e<=a}function h(e,t,a){var r=e,n=a-t,i=r+(a-n-r)/Math.sqrt(2);i*=-1;var l=(a-n)*(Math.sqrt(2)-1)-(a-n-r)/Math.sqrt(2);return{transX:i,transY:l}}function d(e,t){function a(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].y>=Math.max(e[t-1].y,e[t+1].y)||e[t].y<=Math.min(e[t-1].y,e[t+1].y))}function r(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].x>=Math.max(e[t-1].x,e[t+1].x)||e[t].x<=Math.min(e[t-1].x,e[t+1].x))}var n=.2,i=.2,l=null,o=null,s=null,u=null;if(t<1?(l=e[0].x+(e[1].x-e[0].x)*n,o=e[0].y+(e[1].y-e[0].y)*n):(l=e[t].x+(e[t+1].x-e[t-1].x)*n,o=e[t].y+(e[t+1].y-e[t-1].y)*n),t>e.length-3){var c=e.length-1;s=e[c].x-(e[c].x-e[c-1].x)*i,u=e[c].y-(e[c].y-e[c-1].y)*i}else s=e[t+1].x-(e[t+2].x-e[t].x)*i,u=e[t+1].y-(e[t+2].y-e[t].y)*i;return a(e,t+1)&&(u=e[t+1].y),a(e,t)&&(o=e[t].y),r(e,t+1)&&(s=e[t+1].x),r(e,t)&&(l=e[t].x),(o>=Math.max(e[t].y,e[t+1].y)||o<=Math.min(e[t].y,e[t+1].y))&&(o=e[t].y),(u>=Math.max(e[t].y,e[t+1].y)||u<=Math.min(e[t].y,e[t+1].y))&&(u=e[t+1].y),(l>=Math.max(e[t].x,e[t+1].x)||l<=Math.min(e[t].x,e[t+1].x))&&(l=e[t].x),(s>=Math.max(e[t].x,e[t+1].x)||s<=Math.min(e[t].x,e[t+1].x))&&(s=e[t+1].x),{ctrA:{x:l,y:o},ctrB:{x:s,y:u}}}function b(e,t,a){return{x:a.x+e,y:a.y-t}}function p(e,t){if(t)while(l.isCollision(e,t))e.start.x>0?e.start.y--:e.start.x<0||e.start.y>0?e.start.y++:e.start.y--;return e}function v(e,t,a){var r=0;return e.map((function(e){if(e.color||(e.color=a.colors[r],r=(r+1)%a.colors.length),e.index||(e.index=0),e.type||(e.type=t.type),"undefined"==typeof e.show&&(e.show=!0),e.type||(e.type=t.type),e.pointShape||(e.pointShape="circle"),!e.legendShape)switch(e.type){case"line":e.legendShape="line";break;case"column":e.legendShape="rect";break;case"area":e.legendShape="triangle";break;default:e.legendShape="circle"}return e}))}function g(e,t){var a=0,r=t-e;return a=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:s(e,"lower",a),maxRange:s(t,"upper",a)}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.fontSize;e=String(e);e=e.split("");for(var a=0,r=0;r4&&void 0!==arguments[4]?arguments[4]:{},i=e.map((function(e){var t=[];return t=r||e.data,{text:n.format?n.format(e,t[a]):e.name+": "+e.data,color:e.color}})),l=[],o={x:0,y:0},s=0;s4&&void 0!==arguments[4]?arguments[4]:{},i=e.map((function(e){return{text:n.format?n.format(e,r[a]):e.name+": "+e.data,color:e.color,disableLegend:!!e.disableLegend}}));i=i.filter((function(e){if(!0!==e.disableLegend)return e}));for(var l=[],o={x:0,y:0},s=0;se[r-1][1]&&(s[2]=l),t.data[3]4&&void 0!==arguments[4]?arguments[4]:0,i=-1,l=a.chartData.eachSpacing/2,o=[];if(t&&t.length>0){for(var s=1;st&&(i=a)}))}return i}function O(e,t,a){var r=-1;if(D(e,t.area)){for(var n=t.points,i=-1,l=0,o=n.length;lc[0]&&e.xc[1]&&e.yt.start.x&&e.xt.start.y&&e.y=t.area[3]-10&&e.y>=t.area[0]&&e.y<=t.height-t.area[2]}function B(e,t,a){var r=2*Math.PI/a,n=-1;if(F(e,t.center,t.radius)){var i=function(e){return e<0&&(e+=2*Math.PI),e>2*Math.PI&&(e-=2*Math.PI),e},l=Math.atan2(t.center.y-e.y,e.x-t.center.x);l*=-1,l<0&&(l+=2*Math.PI);var o=t.angleList.map((function(e){return e=i(-1*e),e}));o.forEach((function(e,t){var a=i(e-r/2),o=i(e+r/2);o=a&&l<=o||l+2*Math.PI>=a&&l+2*Math.PI<=o)&&(n=t)}))}return n}function I(e,t){for(var a=-1,r=0,n=t.series.length;ri.funnelArea[0]&&e.xi.funnelArea[1]&&e.yi.area[0]&&e.xi.area[1]&&e.yt.width-t.padding[1]-t.padding[3]?(f.push(b),d.push(h-t.legend.itemGap),h=g,b=[v]):(h+=g,b.push(v))}if(b.length){f.push(b),d.push(h-t.legend.itemGap),n.widthArr=d;var m=Math.max.apply(null,d);switch(t.legend.float){case"left":n.area.start.x=t.padding[3],n.area.end.x=t.padding[3]+2*i;break;case"right":n.area.start.x=t.width-t.padding[1]-m-2*i,n.area.end.x=t.width-t.padding[1];break;default:n.area.start.x=(t.width-m)/2-i,n.area.end.x=(t.width+m)/2+i}n.area.width=m+2*i,n.area.wholeWidth=m+2*i,n.area.height=f.length*c+2*i,n.area.wholeHeight=f.length*c+2*i+2*l,n.points=f}}else{var _=e.length,w=t.height-t.padding[0]-t.padding[2]-2*l-2*i,x=Math.min(Math.floor(w/c),_);switch(n.area.height=x*c+2*i,n.area.wholeHeight=x*c+2*i,t.legend.float){case"top":n.area.start.y=t.padding[0]+l,n.area.end.y=t.padding[0]+l+n.area.height;break;case"bottom":n.area.start.y=t.height-t.padding[2]-l-n.area.height,n.area.end.y=t.height-t.padding[2]-l;break;default:n.area.start.y=(t.height-n.area.height)/2,n.area.end.y=(t.height+n.area.height)/2}for(var S=_%x===0?_/x:Math.floor(_/x+1),A=[],k=0;kP&&(P=D)}n.widthArr.push(P),n.heightArr.push(T.length*c+2*i)}for(var R=0,B=0;Br&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+l*Math.sin(n.angle)),n}function q(e,t,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,i=m(e),l=[];i=i.filter((function(e){return"object"===r(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),i.map((function(e){"object"===r(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){l.push(e)})):l.push(e[0]):l.push(e.value):l.push(e)}));var o=0,s=0;if(l.length>0&&(o=Math.min.apply(this,l),s=Math.max.apply(this,l)),n>-1?("number"===typeof t.xAxis.data[n].min&&(o=Math.min(t.xAxis.data[n].min,o)),"number"===typeof t.xAxis.data[n].max&&(s=Math.max(t.xAxis.data[n].max,s))):("number"===typeof t.xAxis.min&&(o=Math.min(t.xAxis.min,o)),"number"===typeof t.xAxis.max&&(s=Math.max(t.xAxis.max,s))),o===s){var u=s||10;s+=u}for(var c=o,f=s,h=[],d=(f-c)/t.xAxis.splitNumber,b=0;b<=t.xAxis.splitNumber;b++)h.push(c+d*b);return h}function U(e,t,a){var r={angle:0,xAxisHeight:a.xAxisHeight};r.ranges=q(e,t,a),r.rangesFormat=r.ranges.map((function(e){return e=t.xAxis.format?t.xAxis.format(e):l.toFixed(e,2),e}));var n=r.ranges.map((function(e){return e=l.toFixed(e,2),e=t.xAxis.format?t.xAxis.format(Number(e)):e,e}));r=Object.assign(r,te(n,t,a));var i=r.eachSpacing,o=n.map((function(e){return y(e)})),s=Math.max.apply(this,o);return s+2*a.xAxisTextPadding>i&&(r.angle=45*Math.PI/180,r.xAxisHeight=2*a.xAxisTextPadding+s*Math.sin(r.angle)),!0===t.xAxis.disabled&&(r.xAxisHeight=0),r}function H(e,t,a,r,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,l=n.extra.radar||{};l.max=l.max||0;for(var o=Math.max(l.max,Math.max.apply(null,m(r))),s=[],u=function(n){var l=r[n],u={};u.color=l.color,u.legendShape=l.legendShape,u.pointShape=l.pointShape,u.data=[],l.data.forEach((function(r,n){var l={};l.angle=e[n],l.proportion=r/o,l.position=b(a*l.proportion*i*Math.cos(l.angle),a*l.proportion*i*Math.sin(l.angle),t),u.data.push(l)})),s.push(u)},c=0;c2&&void 0!==arguments[2]?arguments[2]:1,r=0,n=0,i=0;i2&&void 0!==arguments[2]?arguments[2]:1;e=e.sort((function(e,t){return parseInt(t.data)-parseInt(e.data)}));for(var r=0;r4&&void 0!==arguments[4]?arguments[4]:1,i=0,l=0,o=[],s=0;s2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var r=0;r=2&&(n._proportion_=n._proportion_%2)}return e}function G(e,t,a){for(var r=t-a+1,n=t,i=0;i=2&&(e[i]._endAngle_=e[i]._endAngle_%2),n=e[i]._endAngle_;return e}function Y(e,t,a){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=0;n=a.oldData?i._proportion_=(i._endAngle_-i._oldAngle_)*r+a.oldAngle:i._proportion_=i._oldAngle_-(i._oldAngle_-i._endAngle_)*r,i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return e}function Z(e){e=V(e);for(var t=0,a=0;a0&&(e.width=Math.min(e.width,+i.extra.column.width)),e.width<=0&&(e.width=1),e.x+=(r+.5-a/2)*e.width,e)}))}function Q(e,t,a,r,n,i,l){return e.map((function(e){return null===e?null:(e.width=Math.ceil((t-2*n.columePadding)/2),i.extra.column&&i.extra.column.width&&+i.extra.column.width>0&&(e.width=Math.min(e.width,+i.extra.column.width)),r>0&&(e.width-=2*l),e)}))}function ee(e,t,a,r,n,i,l){return e.map((function(e,a){return null===e?null:(e.width=Math.ceil((t-2*n.columePadding)/2),i.extra.column&&i.extra.column.width&&+i.extra.column.width>0&&(e.width=Math.min(e.width,+i.extra.column.width)),e)}))}function te(e,t,a){var r=t.width-t.area[1]-t.area[3],n=t.enableScroll?Math.min(t.xAxis.itemCount,e.length):e.length;("line"==t.type||"area"==t.type)&&n>1&&"justify"==t.xAxis.boundaryGap&&(n-=1);var i=r/n,l=[],o=t.area[3],s=t.width-t.area[1];return e.forEach((function(e,t){l.push(o+t*i)})),"justify"!==t.xAxis.boundaryGap&&(!0===t.enableScroll?l.push(o+e.length*i):l.push(s)),{xAxisPoints:l,startX:o,endX:s,eachSpacing:i}}function ae(e,t,a,r,n,i,l){var o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,s=[],u=i.height-i.area[0]-i.area[2];return e.forEach((function(e,l){if(null===e)s.push(null);else{var c=[];e.forEach((function(e,s){var f={};f.x=r[l]+Math.round(n/2);var h=e.value||e,d=u*(h-t)/(a-t);d*=o,f.y=i.height-Math.round(d)-i.area[2],c.push(f)})),s.push(c)}})),s}function re(e,t,a,n,i,l,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,u="center";"line"!=l.type&&"area"!=l.type||(u=l.xAxis.boundaryGap);var c=[],f=l.height-l.area[0]-l.area[2],h=l.width-l.area[1]-l.area[3];return e.forEach((function(e,o){if(null===e)c.push(null);else{var d={};d.color=e.color,d.x=n[o];var b,p,v,g=e;if("object"===r(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)b=[].concat(l.chartData.xAxisData.ranges),p=b.shift(),v=b.pop(),g=e[1],d.x=l.area[3]+h*(e[0]-p)/(v-p);else g=e.value;"center"==u&&(d.x+=Math.round(i/2));var y=f*(g-t)/(a-t);y*=s,d.y=l.height-Math.round(y)-l.area[2],c.push(d)}})),c}function ne(e,t,a,r,n,i,l,o,s){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,c=[],f=i.height-i.area[0]-i.area[2];return e.forEach((function(e,l){if(null===e)c.push(null);else{var h={};if(h.color=e.color,h.x=r[l]+Math.round(n/2),o>0){for(var d=0,b=0;b<=o;b++)d+=s[b].data[l];var p=d-e,v=f*(d-t)/(a-t),g=f*(p-t)/(a-t)}else d=e,v=f*(d-t)/(a-t),g=0;var y=g;v*=u,y*=u,h.y=i.height-Math.round(v)-i.area[2],h.y0=i.height-Math.round(y)-i.area[2],c.push(h)}})),c}function ie(e,t,a,n){var i,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==n?_(e,t.categories.length):m(e);var o=[];i=i.filter((function(e){return"object"===r(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),i.map((function(e){"object"===r(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){o.push(e)})):o.push(e[1]):o.push(e.value):o.push(e)}));var s=0,u=0;if(o.length>0&&(s=Math.min.apply(this,o),u=Math.max.apply(this,o)),l>-1?("number"===typeof t.yAxis.data[l].min&&(s=Math.min(t.yAxis.data[l].min,s)),"number"===typeof t.yAxis.data[l].max&&(u=Math.max(t.yAxis.data[l].max,u))):("number"===typeof t.yAxis.min&&(s=Math.min(t.yAxis.min,s)),"number"===typeof t.yAxis.max&&(u=Math.max(t.yAxis.max,u))),s===u){var c=u||10;u+=c}for(var f=g(s,u),h=f.minRange,d=f.maxRange,b=[],p=(d-h)/t.yAxis.splitNumber,v=0;v<=t.yAxis.splitNumber;v++)b.push(h+p*v);return b.reverse()}function le(e,t,a){var r=i({},{type:""},t.extra.column),n=t.yAxis.data.length,o=new Array(n);if(n>0){for(var s=0;s=2&&(c%=2),f+=u}}function be(e,t,a,r,n,i){var o=r.extra.radar||{};t+=n.radarLabelTextMargin,e.forEach((function(e,s){var u={x:t*Math.cos(e),y:t*Math.sin(e)},c=b(u.x,u.y,a),f=c.x,h=c.y;l.approximatelyEqual(u.x,0)?f-=y(r.categories[s]||"")/2:u.x<0&&(f-=y(r.categories[s]||"")),i.beginPath(),i.setFontSize(n.fontSize),i.setFillStyle(o.labelColor||"#666666"),i.fillText(r.categories[s]||"",f,h+n.fontSize/2),i.closePath(),i.stroke()}))}function pe(e,t,a,r,n,i){for(var o=a.pieChartLinePadding,s=[],u=null,c=e.map((function(e){var t=e.format?e.format(+e._proportion_.toFixed(2)):l.toFixed(100*e._proportion_.toFixed(4))+"%";e._rose_proportion_&&(e._proportion_=e._rose_proportion_);var a=2*Math.PI-(e._start_+2*Math.PI*e._proportion_/2),r=e.color,n=e._radius_;return{arc:a,text:t,color:r,radius:n,textColor:e.textColor,textSize:e.textSize}})),f=0;f=0?d+a.pieChartTextPadding:d-a.pieChartTextPadding,w=v,x=y(h.text,h.textSize||a.fontSize),S=w;u&&l.isSameXCoordinateArea(u.start,{x:_})&&(S=_>0?Math.min(w,u.start.y):d<0||w>0?Math.max(w,u.start.y):Math.min(w,u.start.y)),_<0&&(_-=x);var A={lineStart:{x:g,y:m},lineEnd:{x:d,y:v},start:{x:_,y:S},width:x,height:a.fontSize,text:h.text,color:h.color,textColor:h.textColor,textSize:h.textSize};u=p(A,u),s.push(u)}for(var k=0;ka.width&&(d=!0),v+t.y>a.height&&(t.y=a.height-v),n.beginPath(),n.setFillStyle(o(u.bgColor||r.toolTipBackground,u.bgOpacity||r.toolTipOpacity)),d?(n.moveTo(t.x,t.y+10*a.pixelRatio),n.lineTo(t.x-h,t.y+10*a.pixelRatio-5*a.pixelRatio),n.lineTo(t.x-h,t.y),n.lineTo(t.x-h-Math.round(p),t.y),n.lineTo(t.x-h-Math.round(p),t.y+v),n.lineTo(t.x-h,t.y+v),n.lineTo(t.x-h,t.y+10*a.pixelRatio+5*a.pixelRatio),n.lineTo(t.x,t.y+10*a.pixelRatio)):(n.moveTo(t.x,t.y+10*a.pixelRatio),n.lineTo(t.x+h,t.y+10*a.pixelRatio-5*a.pixelRatio),n.lineTo(t.x+h,t.y),n.lineTo(t.x+h+Math.round(p),t.y),n.lineTo(t.x+h+Math.round(p),t.y+v),n.lineTo(t.x+h,t.y+v),n.lineTo(t.x+h,t.y+10*a.pixelRatio+5*a.pixelRatio),n.lineTo(t.x,t.y+10*a.pixelRatio)),n.closePath(),n.fill(),e.forEach((function(e,a){if(null!==e.color){n.beginPath(),n.setFillStyle(e.color);var i=t.x+h+2*r.toolTipPadding,l=t.y+(r.toolTipLineHeight-r.fontSize)/2+r.toolTipLineHeight*a+r.toolTipPadding+1;d&&(i=t.x-p-h+2*r.toolTipPadding),n.fillRect(i,l,c,r.fontSize),n.closePath()}})),e.forEach((function(e,a){var i=t.x+h+2*r.toolTipPadding+c+f;d&&(i=t.x-p-h+2*r.toolTipPadding+ +c+f);var l=t.y+(r.toolTipLineHeight-r.fontSize)/2+r.toolTipLineHeight*a+r.toolTipPadding;n.beginPath(),n.setFontSize(r.fontSize),n.setFillStyle(u.fontColor),n.fillText(e.text,i,l+r.fontSize),n.closePath(),n.stroke()})))}function we(e,t,a,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=t.chartData.xAxisData,o=l.xAxisPoints,s=l.eachSpacing,u=i({},{type:"group",width:s/2,meter:{border:4,fillColor:"#FFFFFF"}},t.extra.column),c=[];r.save();var f=-2,h=o.length+2;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),f=Math.floor(-t._scrollDistance_/s)-2,h=f+t.xAxis.itemCount+4),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===n&&me(t.tooltip.offset.x,t,a,r,s),e.forEach((function(i,l){var d,b,p;d=[].concat(t.chartData.yAxisData.ranges[i.index]),b=d.pop(),p=d.shift();var v=i.data;switch(u.type){case"group":var g=re(v,b,p,o,s,t,a,n),y=ne(v,b,p,o,s,t,a,l,e,n);c.push(y),g=J(g,s,e.length,l,a,t);for(var m=0;mf&&mf&&S0&&(x-=k),r.moveTo(w,A.y),r.fillRect(w,A.y,A.width-2,x),r.closePath(),r.fill()}}break;case"meter":g=re(v,b,p,o,s,t,a,n);if(c.push(g),g=Q(g,s,e.length,l,a,t,u.meter.border),0==l)for(var M=0;Mf&&M0&&(r.beginPath(),r.setStrokeStyle(i.color),r.setLineWidth(u.meter.border*t.pixelRatio),r.moveTo(w+.5*u.meter.border,E.y+x),r.lineTo(w+.5*u.meter.border,E.y+.5*u.meter.border),r.lineTo(w+E.width-.5*u.meter.border,E.y+.5*u.meter.border),r.lineTo(w+E.width-.5*u.meter.border,E.y+x),r.stroke())}}else for(var T=0;Tf&&T5&&void 0!==arguments[5]?arguments[5]:1,o=i({},{color:{},average:{}},a.extra.candle);o.color=i({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},o.color),o.average=i({},{show:!1,name:[],day:[],color:r.colors},o.average),a.extra.candle=o;var s=a.chartData.xAxisData,u=s.xAxisPoints,c=s.eachSpacing,f=[];n.save();var h=-2,b=u.length+2,p=0,v=a.width+c;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(n.translate(a._scrollDistance_,0),h=Math.floor(-a._scrollDistance_/c)-2,b=h+a.xAxis.itemCount+4,p=-a._scrollDistance_-c+a.area[3],v=p+(a.xAxis.itemCount+4)*c),(o.average.show||t)&&t.forEach((function(e,t){var i,o,s;i=[].concat(a.chartData.yAxisData.ranges[e.index]),o=i.pop(),s=i.shift();for(var f=e.data,h=re(f,o,s,u,c,a,r,l),b=N(h),g=0;gp&&(n.moveTo(w.x,w.y),m=1),_>0&&w.x>p&&w.xh&&y0?(n.setStrokeStyle(o.color.upLine),n.setFillStyle(o.color.upFill),n.setLineWidth(1*a.pixelRatio),n.moveTo(m[3].x,m[3].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[1].x-c/4,m[1].y),n.lineTo(m[0].x-c/4,m[0].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[2].x,m[2].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[0].x+c/4,m[0].y),n.lineTo(m[1].x+c/4,m[1].y),n.lineTo(m[1].x,m[1].y),n.moveTo(m[3].x,m[3].y)):(n.setStrokeStyle(o.color.downLine),n.setFillStyle(o.color.downFill),n.setLineWidth(1*a.pixelRatio),n.moveTo(m[3].x,m[3].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[0].x-c/4,m[0].y),n.lineTo(m[1].x-c/4,m[1].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[2].x,m[2].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[1].x+c/4,m[1].y),n.lineTo(m[0].x+c/4,m[0].y),n.lineTo(m[0].x,m[0].y),n.moveTo(m[3].x,m[3].y)),n.closePath(),n.fill(),n.stroke()}})),n.restore(),{xAxisPoints:u,calPoints:f,eachSpacing:c}}function Se(e,t,a,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=i({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},t.extra.area),s=t.chartData.xAxisData,u=s.xAxisPoints,c=s.eachSpacing,f=t.height-t.area[2],h=[];r.save();var b=0,p=t.width+c;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),b=-t._scrollDistance_-c+t.area[3],p=b+(t.xAxis.itemCount+4)*c),e.forEach((function(e,i){var s,v,g;s=[].concat(t.chartData.yAxisData.ranges[e.index]),v=s.pop(),g=s.shift();var y=e.data,m=re(y,v,g,u,c,t,a,n);h.push(m);for(var _=N(m),w=0;w<_.length;w++){var x=_[w];if(r.beginPath(),r.setStrokeStyle(o(e.color,l.opacity)),l.gradient){var S=r.createLinearGradient(0,t.area[0],0,t.height-t.area[2]);S.addColorStop("0",o(e.color,l.opacity)),S.addColorStop("1.0",o("#FFFFFF",.1)),r.setFillStyle(S)}else r.setFillStyle(o(e.color,l.opacity));if(r.setLineWidth(l.width*t.pixelRatio),x.length>1){var A=x[0],k=x[x.length-1];r.moveTo(A.x,A.y);var M=0;if("curve"===l.type)for(var E=0;Eb&&(r.moveTo(T.x,T.y),M=1),E>0&&T.x>b&&T.xb&&(r.moveTo(D.x,D.y),M=1),O>0&&D.x>b&&D.xb&&(r.moveTo(L.x,L.y),I=1),C>0&&L.x>b&&L.xb&&(r.moveTo(z.x,z.y),I=1),F>0&&z.x>b&&z.x4&&void 0!==arguments[4]?arguments[4]:1,l=i({},{type:"straight",width:2},t.extra.line);l.width*=t.pixelRatio;var o=t.chartData.xAxisData,s=o.xAxisPoints,u=o.eachSpacing,c=[];r.save();var f=0,h=t.width+u;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),f=-t._scrollDistance_-u+t.area[3],h=f+(t.xAxis.itemCount+4)*u),e.forEach((function(e,i){var o,b,p;o=[].concat(t.chartData.yAxisData.ranges[e.index]),b=o.pop(),p=o.shift();var v=e.data,g=re(v,b,p,s,u,t,a,n);c.push(g);var y=N(g);if("dash"==e.lineType){var m=e.dashLength?e.dashLength:8;m*=t.pixelRatio,r.setLineDash([m,m])}r.beginPath(),r.setStrokeStyle(e.color),r.setLineWidth(l.width),y.forEach((function(e,t){if(1===e.length)r.moveTo(e[0].x,e[0].y),r.arc(e[0].x,e[0].y,1,0,2*Math.PI);else{r.moveTo(e[0].x,e[0].y);var a=0;if("curve"===l.type)for(var n=0;nf&&(r.moveTo(i.x,i.y),a=1),n>0&&i.x>f&&i.xf&&(r.moveTo(u.x,u.y),a=1),s>0&&u.x>f&&u.xf&&(r.moveTo(b.x,b.y),a=1),c>0&&b.x>f&&b.x4&&void 0!==arguments[4]?arguments[4]:1,i=t.chartData.xAxisData,l=i.xAxisPoints,s=i.eachSpacing,u=t.height-t.area[2],c=[],f=0,h=0;e.forEach((function(e,t){"column"==e.type&&(h+=1)})),r.save();var b=-2,p=l.length+2,v=0,g=t.width+s;if(t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),b=Math.floor(-t._scrollDistance_/s)-2,p=b+t.xAxis.itemCount+4,v=-t._scrollDistance_-s+t.area[3],g=v+(t.xAxis.itemCount+4)*s),e.forEach((function(e,i){var y,m,_;y=[].concat(t.chartData.yAxisData.ranges[e.index]),m=y.pop(),_=y.shift();var w=e.data,x=re(w,m,_,l,s,t,a,n);if(c.push(x),"column"==e.type){x=J(x,s,h,f,a,t);for(var S=0;Sb&&S1){var P=T[0],O=T[T.length-1];r.moveTo(P.x,P.y);var D=0;if("curve"===e.style)for(var R=0;Rv&&(r.moveTo(B.x,B.y),D=1),R>0&&B.x>v&&B.xv&&(r.moveTo(L.x,L.y),D=1),C>0&&L.x>v&&L.xv&&(r.moveTo(s.x,s.y),l=1),o>0&&s.x>v&&s.xv&&(r.moveTo(f.x,f.y),l=1),c>0&&f.x>v&&f.x0&&(r.beginPath(),r.moveTo(e-s/2,c),r.lineTo(e-s/2,c+3*t.pixelRatio),r.closePath(),r.stroke())}))),!0!==t.xAxis.disableGrid&&(r.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*t.pixelRatio),"dash"==t.xAxis.gridType&&r.setLineDash([t.xAxis.dashLength,t.xAxis.dashLength]),t.xAxis.gridEval=t.xAxis.gridEval||1,i.forEach((function(e,a){a%t.xAxis.gridEval==0&&(r.beginPath(),r.moveTo(e,c),r.lineTo(e,f),r.stroke())})),r.setLineDash([])),!0!==t.xAxis.disabled){var m=e.length;t.xAxis.labelCount&&(m=t.xAxis.itemCount?Math.ceil(e.length/t.xAxis.itemCount*t.xAxis.labelCount):t.xAxis.labelCount,m-=1);for(var _=Math.ceil(e.length/m),w=[],x=e.length,S=0;S4&&void 0!==arguments[4]?arguments[4]:1,l=i({},{activeOpacity:.5,activeRadius:10*t.pixelRatio,offsetAngle:0,labelWidth:15*t.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},t.extra.pie),s={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2};0==a.pieChartLinePadding&&(a.pieChartLinePadding=l.activeRadius);var u=Math.min((t.width-t.area[1]-t.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);e=V(e,u,n);var c=l.activeRadius;if(e=e.map((function(e){return e._start_+=l.offsetAngle*Math.PI/180,e})),e.forEach((function(e,a){t.tooltip&&t.tooltip.index==a&&(r.beginPath(),r.setFillStyle(o(e.color,t.extra.pie.activeOpacity||.5)),r.moveTo(s.x,s.y),r.arc(s.x,s.y,e._radius_+c,e._start_,e._start_+2*e._proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(l.borderWidth*t.pixelRatio),r.lineJoin="round",r.setStrokeStyle(l.borderColor),r.setFillStyle(e.color),r.moveTo(s.x,s.y),r.arc(s.x,s.y,e._radius_,e._start_,e._start_+2*e._proportion_*Math.PI),r.closePath(),r.fill(),1==l.border&&r.stroke()})),"ring"===t.type){var f=.6*u;"number"===typeof t.extra.pie.ringWidth&&t.extra.pie.ringWidth>0&&(f=Math.max(0,u-t.extra.pie.ringWidth)),r.beginPath(),r.setFillStyle(t.background||"#ffffff"),r.moveTo(s.x,s.y),r.arc(s.x,s.y,f,0,2*Math.PI),r.closePath(),r.fill()}if(!1!==t.dataLabel&&1===n){for(var h=!1,d=0,b=e.length;d0){h=!0;break}h&&pe(e,t,a,r,u,s)}return 1===n&&"ring"===t.type&&fe(t,a,r,s),{center:s,radius:u,series:e}}function Re(e,t,a,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=i({},{type:"area",activeOpacity:.5,activeRadius:10*t.pixelRatio,offsetAngle:0,labelWidth:15*t.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},t.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=l.activeRadius);var s={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},u=Math.min((t.width-t.area[1]-t.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding),c=l.minRadius||.5*u;e=K(e,l.type,c,u,n);var f=l.activeRadius;if(e=e.map((function(e){return e._start_+=(l.offsetAngle||0)*Math.PI/180,e})),e.forEach((function(e,a){t.tooltip&&t.tooltip.index==a&&(r.beginPath(),r.setFillStyle(o(e.color,l.activeOpacity||.5)),r.moveTo(s.x,s.y),r.arc(s.x,s.y,f+e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(l.borderWidth*t.pixelRatio),r.lineJoin="round",r.setStrokeStyle(l.borderColor),r.setFillStyle(e.color),r.moveTo(s.x,s.y),r.arc(s.x,s.y,e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),r.closePath(),r.fill(),1==l.border&&r.stroke()})),!1!==t.dataLabel&&1===n){for(var h=!1,d=0,b=e.length;d0){h=!0;break}h&&pe(e,t,a,r,u,s)}return{center:s,radius:u,series:e}}function Be(e,t,a,r){var n,l,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=i({},{startAngle:.75,endAngle:.25,type:"default",width:12*t.pixelRatio,gap:2*t.pixelRatio},t.extra.arcbar);e=X(e,s,o),n=s.center?s.center:{x:t.width/2,y:t.height/2},s.radius?l=s.radius:(l=Math.min(n.x,n.y),l-=5*t.pixelRatio,l-=s.width/2);for(var u=0;u5&&void 0!==arguments[5]?arguments[5]:1,s=i({},{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"}},a.extra.gauge);void 0==s.oldAngle&&(s.oldAngle=s.startAngle),void 0==s.oldData&&(s.oldData=0),e=G(e,s.startAngle,s.endAngle);var u={x:a.width/2,y:a.height/2},c=Math.min(u.x,u.y);c-=5*a.pixelRatio,c-=s.width/2;var f=c-s.width,h=0;if("progress"==s.type){var d=c-3*s.width;n.beginPath();var b=n.createLinearGradient(u.x,u.y-d,u.x,u.y+d);b.addColorStop("0",o(t[0].color,.3)),b.addColorStop("1.0",o("#FFFFFF",.1)),n.setFillStyle(b),n.arc(u.x,u.y,d,0,2*Math.PI,!1),n.fill(),n.setLineWidth(s.width),n.setStrokeStyle(o(t[0].color,.3)),n.setLineCap("round"),n.beginPath(),n.arc(u.x,u.y,f,s.startAngle*Math.PI,s.endAngle*Math.PI,!1),n.stroke(),h=s.startAngle-s.endAngle+1;s.splitLine.splitNumber;var p=h/s.splitLine.splitNumber/s.splitLine.childNumber,v=-c-.5*s.width-s.splitLine.fixRadius,g=-c-s.width-s.splitLine.fixRadius+s.splitLine.width;n.save(),n.translate(u.x,u.y),n.rotate((s.startAngle-1)*Math.PI);for(var y=s.splitLine.splitNumber*s.splitLine.childNumber+1,m=t[0].data*l,_=0;__/y?n.setStrokeStyle(o(t[0].color,1)):n.setStrokeStyle(o(t[0].color,.3)),n.setLineWidth(3*a.pixelRatio),n.moveTo(v,0),n.lineTo(g,0),n.stroke(),n.rotate(p*Math.PI);n.restore(),t=X(t,s,l),n.setLineWidth(s.width),n.setStrokeStyle(t[0].color),n.setLineCap("round"),n.beginPath(),n.arc(u.x,u.y,f,s.startAngle*Math.PI,t[0]._proportion_*Math.PI,!1),n.stroke();var w=c-2.5*s.width;n.save(),n.translate(u.x,u.y),n.rotate((t[0]._proportion_-1)*Math.PI),n.beginPath(),n.setLineWidth(s.width/3);var x=n.createLinearGradient(0,.6*-w,0,.6*w);x.addColorStop("0",o("#FFFFFF",0)),x.addColorStop("0.5",o(t[0].color,1)),x.addColorStop("1.0",o("#FFFFFF",0)),n.setStrokeStyle(x),n.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),n.stroke(),n.beginPath(),n.setLineWidth(1),n.setStrokeStyle(t[0].color),n.setFillStyle(t[0].color),n.moveTo(-w-s.width/3/2,-4),n.lineTo(-w-s.width/3/2-4,0),n.lineTo(-w-s.width/3/2,4),n.lineTo(-w-s.width/3/2,-4),n.stroke(),n.fill(),n.restore()}else{n.setLineWidth(s.width),n.setLineCap("butt");for(var S=0;S4&&void 0!==arguments[4]?arguments[4]:1,l=i({},{gridColor:"#cccccc",gridType:"radar",labelColor:"#666666",opacity:.2,gridCount:3},t.extra.radar),s=A(t.categories.length),u={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},c=Math.min(u.x-(S(t.categories)+a.radarLabelTextMargin),u.y-a.radarLabelTextMargin);c-=t.padding[1],r.beginPath(),r.setLineWidth(1*t.pixelRatio),r.setStrokeStyle(l.gridColor),s.forEach((function(e){var t=b(c*Math.cos(e),c*Math.sin(e),u);r.moveTo(u.x,u.y),r.lineTo(t.x,t.y)})),r.stroke(),r.closePath();for(var f=function(e){var a={};if(r.beginPath(),r.setLineWidth(1*t.pixelRatio),r.setStrokeStyle(l.gridColor),"radar"==l.gridType)s.forEach((function(t,n){var i=b(c/l.gridCount*e*Math.cos(t),c/l.gridCount*e*Math.sin(t),u);0===n?(a=i,r.moveTo(i.x,i.y)):r.lineTo(i.x,i.y)})),r.lineTo(a.x,a.y);else{var n=b(c/l.gridCount*e*Math.cos(1.5),c/l.gridCount*e*Math.sin(1.5),u);r.arc(u.x,u.y,u.y-n.y,0,2*Math.PI,!1)}r.stroke(),r.closePath()},h=1;h<=l.gridCount;h++)f(h);var d=H(s,u,c,e,t,n);return d.forEach((function(e,a){if(r.beginPath(),r.setFillStyle(o(e.color,l.opacity)),e.data.forEach((function(e,t){0===t?r.moveTo(e.position.x,e.position.y):r.lineTo(e.position.x,e.position.y)})),r.closePath(),r.fill(),!1!==t.dataPointShape){var n=e.data.map((function(e){return e.position}));ce(n,e.color,e.pointShape,r,t)}})),be(s,c,u,t,a,r),{center:u,radius:c,angleList:s}}function Le(e,t,a){a=0==a?1:a;for(var r=[],n=0;nt[i].area[2]||e[1]>t[i].area[3]||e[2]a||e[3]>r){n=!0;break}n=!1}return n}function Fe(e){var t,a={};a.xMin=180,a.xMax=0,a.yMin=90,a.yMax=0;for(var r=0;ru.x?a.xMax:u.x,a.yMin=a.yMinu.y?a.yMax:u.y}}return a}function Ne(e,t,a,r,n,i){return{x:(t-a.xMin)*r+n,y:(a.yMax-e)*r+i}}function ze(e,t,a,r,n,i){return{x:(t-n)/r+a.xMin,y:a.yMax-(e-i)/r}}function $e(e,t,a){if(t[1]==a[1])return!1;if(t[1]>e[1]&&a[1]>e[1])return!1;if(t[1]e[1])return!1;if(a[1]==e[1]&&t[1]>e[1])return!1;if(t[0].7},d=0;d4&&void 0!==arguments[4]?arguments[4]:1;i({},{type:"normal",autoColors:!0},t.extra.word);r.beginPath(),r.setFillStyle(t.background||"#FFFFFF"),r.rect(0,0,t.width,t.height),r.fill(),r.save();var l=t.chartData.wordCloudData;r.translate(t.width/2,t.height/2);for(var o=0;o0&&(t.tooltip&&t.tooltip.index==o?r.strokeText(s,(l[o].areav[0]+5-t.width/2)*n-c*(1-n)/2,(l[o].areav[1]+5+u-t.height/2)*n):r.fillText(s,(l[o].areav[0]+5-t.width/2)*n-c*(1-n)/2,(l[o].areav[1]+5+u-t.height/2)*n)):l[o].area[0]>0&&(t.tooltip&&t.tooltip.index==o?r.strokeText(s,(l[o].area[0]+5-t.width/2)*n-c*(1-n)/2,(l[o].area[1]+5+u-t.height/2)*n):r.fillText(s,(l[o].area[0]+5-t.width/2)*n-c*(1-n)/2,(l[o].area[1]+5+u-t.height/2)*n)),r.stroke(),r.restore()}r.restore()}function We(e,t,a,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=i({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},t.extra.funnel),s=(t.height-t.area[0]-t.area[2])/e.length,u={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.height-t.area[2]},c=l.activeWidth,f=Math.min((t.width-t.area[1]-t.area[3])/2-c,(t.height-t.area[0]-t.area[2])/2-c);e=W(e,f,n),r.save(),r.translate(u.x,u.y);for(var h=0;h0?y[S].width+t.yAxis.padding:y[S].width,x+=1):(t.area[1]+=w>0?y[S].width+t.yAxis.padding:y[S].width,w+=1)}else a.yAxisWidth=y;if(t.chartData.yAxisData=g,t.categories&&t.categories.length){t.chartData.xAxisData=te(t.categories,t,a);var A=$(t.categories,t,a,t.chartData.xAxisData.eachSpacing),k=A.xAxisHeight,M=A.angle;a.xAxisHeight=k,a._xAxisTextAngle_=M,t.area[2]+=k,t.chartData.categoriesData=A}else if("line"===t.type||"area"===t.type||"points"===t.type){t.chartData.xAxisData=U(l,t,a),o=t.chartData.xAxisData.rangesFormat;var E=$(o,t,a,t.chartData.xAxisData.eachSpacing),P=E.xAxisHeight,O=E.angle;a.xAxisHeight=P,a._xAxisTextAngle_=O,t.area[2]+=P,t.chartData.categoriesData=E}else t.chartData.xAxisData={xAxisPoints:[]};if(t.enableScroll&&"right"==t.xAxis.scrollAlign&&void 0===t._scrollDistance_){var D=0,R=t.chartData.xAxisData.xAxisPoints,B=t.chartData.xAxisData.startX,I=t.chartData.xAxisData.endX,C=t.chartData.xAxisData.eachSpacing,L=C*(R.length-1),j=I-B;D=j-L,n.scrollOption={currentOffset:D,startTouchX:D,distance:0,lastMoveTime:0},t._scrollDistance_=D}switch("pie"!==e&&"ring"!==e&&"rose"!==e||(a._pieTextMaxLength_=!1===t.dataLabel?0:Z(c)),e){case"word":var F=i({},{type:"normal",autoColors:!0},t.extra.word);1!=t.updateData&&void 0!=t.updateData||(t.chartData.wordCloudData=He(t,F.type)),this.animationInstance=new Ye({timing:"easeInOut",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),Ve(l,t,a,r,e),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"map":r.clearRect(0,0,t.width,t.height),Ue(l,t,a,r);break;case"funnel":this.animationInstance=new Ye({timing:"easeInOut",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),t.chartData.funnelData=We(l,t,a,r,e),Oe(t.series,t,a,r,t.chartData),Me(t,a,r,e),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new Ye({timing:"easeIn",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),Te(o,t,a,r),Ee(o,t,a,r);var n=Ae(l,t,a,r,e),i=n.xAxisPoints,s=n.calPoints,u=n.eachSpacing;t.chartData.xAxisPoints=i,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Pe(l,t,a,r),!1!==t.enableMarkLine&&1===e&&ge(t,a,r),Oe(t.series,t,a,r,t.chartData),Me(t,a,r,e,u,i),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new Ye({timing:"easeIn",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),Te(o,t,a,r),Ee(o,t,a,r);var n=ke(l,t,a,r,e),i=n.xAxisPoints,s=n.calPoints,u=n.eachSpacing;t.chartData.xAxisPoints=i,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Pe(l,t,a,r),!1!==t.enableMarkLine&&1===e&&ge(t,a,r),Oe(t.series,t,a,r,t.chartData),Me(t,a,r,e,u,i),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new Ye({timing:"easeIn",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),Te(o,t,a,r),Ee(o,t,a,r);var n=we(l,t,a,r,e),i=n.xAxisPoints,s=n.calPoints,u=n.eachSpacing;t.chartData.xAxisPoints=i,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Pe(l,t,a,r),!1!==t.enableMarkLine&&1===e&&ge(t,a,r),Oe(t.series,t,a,r,t.chartData),Me(t,a,r,e,u,i),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new Ye({timing:"easeIn",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),Te(o,t,a,r),Ee(o,t,a,r);var n=Se(l,t,a,r,e),i=n.xAxisPoints,s=n.calPoints,u=n.eachSpacing;t.chartData.xAxisPoints=i,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Pe(l,t,a,r),!1!==t.enableMarkLine&&1===e&&ge(t,a,r),Oe(t.series,t,a,r,t.chartData),Me(t,a,r,e,u,i),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new Ye({timing:"easeInOut",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),t.chartData.pieData=De(l,t,a,r,e),Oe(t.series,t,a,r,t.chartData),Me(t,a,r,e),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new Ye({timing:"easeInOut",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),t.chartData.pieData=Re(l,t,a,r,e),Oe(t.series,t,a,r,t.chartData),Me(t,a,r,e),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new Ye({timing:"easeInOut",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),t.chartData.radarData=Ce(l,t,a,r,e),Oe(t.series,t,a,r,t.chartData),Me(t,a,r,e),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new Ye({timing:"easeInOut",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),t.chartData.arcbarData=Be(l,t,a,r,e),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new Ye({timing:"easeInOut",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),t.chartData.gaugeData=Ie(o,l,t,a,r,e),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new Ye({timing:"easeIn",duration:s,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&ue(r,t),Te(o,t,a,r),Ee(o,t,a,r);var n=xe(l,c,t,a,r,e),i=n.xAxisPoints,s=n.calPoints,u=n.eachSpacing;t.chartData.xAxisPoints=i,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Pe(l,t,a,r),!1!==t.enableMarkLine&&1===e&&ge(t,a,r),Oe(c||t.series,t,a,r,t.chartData),Me(t,a,r,e,u,i),Xe(t,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break}}function Je(){this.events={}}Ye.prototype.stop=function(){this.isStop=!0},Je.prototype.addEventListener=function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},Je.prototype.delEventListener=function(e){this.events[e]=[]},Je.prototype.trigger=function(){for(var e=arguments.length,t=Array(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.opts=i({},this.opts,e),this.opts.updateData=!0;var t=e.scrollPosition||"current";switch(t){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=le(this.opts.series,this.opts,this.config),r=a.yAxisWidth;this.config.yAxisWidth=r;var n=0,l=te(this.opts.categories,this.opts,this.config),o=l.xAxisPoints,s=l.startX,u=l.endX,c=l.eachSpacing,f=c*(o.length-1),h=u-s;n=h-f,this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n;break}Ze.call(this,this.opts.type,this.opts,this.config,this.context)},Qe.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var t=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var a=le(this.opts.series,this.opts,this.config),r=a.yAxisWidth;this.config.yAxisWidth=r;var n=0,i=te(this.opts.categories,this.opts,this.config),l=i.xAxisPoints,o=i.startX,s=i.endX,u=i.eachSpacing,c=u*t,f=s-o,h=f-u*(l.length-1);n=f/2-c,n>0&&(n=0),n1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],a){w(a,this.opts,e);var r=this.getLegendDataIndex(e);r>=0&&(this.opts.series[r].show=!this.opts.series[r].show,this.opts.animation=!!t.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Ze.call(this,this.opts.type,this.opts,this.config,this.context))}},Qe.prototype.showToolTip=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;a=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],a||console.log("touchError");var r=w(a,this.opts,e),n=this.scrollOption.currentOffset,l=i({},this.opts,{_scrollDistance_:n,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var o=void 0==t.index?this.getCurrentDataIndex(e):t.index;if(o>-1){var s=x(this.opts.series,o);if(0!==s.length){var u=k(s,this.opts.chartData.calPoints,o,this.opts.categories,t),c=u.textList,f=u.offset;f.y=r.y,l.tooltip={textList:t.textList?t.textList:c,offset:f,option:t,index:o}}}Ze.call(this,l.type,l,this.config,this.context)}if("mix"===this.opts.type){o=void 0==t.index?this.getCurrentDataIndex(e):t.index;if(o>-1){n=this.scrollOption.currentOffset,l=i({},this.opts,{_scrollDistance_:n,animation:!1}),s=x(this.opts.series,o);if(0!==s.length){var h=M(s,this.opts.chartData.calPoints,o,this.opts.categories,t);c=h.textList,f=h.offset;f.y=r.y,l.tooltip={textList:t.textList?t.textList:c,offset:f,option:t,index:o}}}Ze.call(this,l.type,l,this.config,this.context)}if("candle"===this.opts.type){o=void 0==t.index?this.getCurrentDataIndex(e):t.index;if(o>-1){n=this.scrollOption.currentOffset,l=i({},this.opts,{_scrollDistance_:n,animation:!1}),s=x(this.opts.series,o);if(0!==s.length){u=E(this.opts.series[0].data,s,this.opts.chartData.calPoints,o,this.opts.categories,this.opts.extra.candle,t),c=u.textList,f=u.offset;f.y=r.y,l.tooltip={textList:t.textList?t.textList:c,offset:f,option:t,index:o}}}Ze.call(this,l.type,l,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){o=void 0==t.index?this.getCurrentDataIndex(e):t.index;if(o>-1){n=this.scrollOption.currentOffset,l=i({},this.opts,{_scrollDistance_:n,animation:!1}),s=this.opts._series_[o],c=[{text:t.format?t.format(s):s.name+": "+s.data,color:s.color}],f={x:r.x,y:r.y};l.tooltip={textList:t.textList?t.textList:c,offset:f,option:t,index:o}}Ze.call(this,l.type,l,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){o=void 0==t.index?this.getCurrentDataIndex(e):t.index;if(o>-1){n=this.scrollOption.currentOffset,l=i({},this.opts,{_scrollDistance_:n,animation:!1}),s=this.opts._series_[o],c=[{text:t.format?t.format(s):s.properties.name,color:s.color}],f={x:r.x,y:r.y};l.tooltip={textList:t.textList?t.textList:c,offset:f,option:t,index:o}}l.updateData=!1,Ze.call(this,l.type,l,this.config,this.context)}if("radar"===this.opts.type){o=void 0==t.index?this.getCurrentDataIndex(e):t.index;if(o>-1){n=this.scrollOption.currentOffset,l=i({},this.opts,{_scrollDistance_:n,animation:!1}),s=x(this.opts.series,o);if(0!==s.length){c=s.map((function(e){return{text:t.format?t.format(e):e.name+": "+e.data,color:e.color}})),f={x:r.x,y:r.y};l.tooltip={textList:t.textList?t.textList:c,offset:f,option:t,index:o}}}Ze.call(this,l.type,l,this.config,this.context)}},Qe.prototype.translate=function(e){this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0};var t=i({},this.opts,{_scrollDistance_:e,animation:!1});Ze.call(this,this.opts.type,t,this.config,this.context)},Qe.prototype.scrollStart=function(e){var t=null;t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0];var a=w(t,this.opts,e);t&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},Qe.prototype.scroll=function(e){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var t=this.opts.extra.touchMoveLimit||20,a=Date.now(),r=a-this.scrollOption.lastMoveTime;if(!(r-1},e.prototype.uniIDHasPermission=function(e){var t=y(),a=t.permission;return this.uniIDHasRole("admin")||a.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=y(),t=e.tokenExpired;return t>Date.now()}}i="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!v.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var a,r,n="",i=0;i>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return n}:atob;var _=Object.prototype.toString,w=Object.prototype.hasOwnProperty;function x(e){return"function"===typeof e}function S(e){return"string"===typeof e}function A(e){return null!==e&&"object"===(0,c.default)(e)}function k(e){return"[object Object]"===_.call(e)}function M(e,t){return w.call(e,t)}function E(){}function T(e){var t=Object.create(null);return function(a){var r=t[a];return r||(t[a]=e(a))}}var P=/-(\w)/g,O=T((function(e){return e.replace(P,(function(e,t){return t?t.toUpperCase():""}))}));function D(e){var t={};return k(e)&&Object.keys(e).sort().forEach((function(a){t[a]=e[a]})),Object.keys(t)?t:e}var R=["invoke","success","fail","complete","returnValue"],B={},I={};function C(e,t){var a=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return a?L(a):a}function L(e){for(var t=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(a){if(Array.isArray(e[a])){var r=t[a];t[a]=function(n){H(e[a],n,t).then((function(e){return x(r)&&r(e)||e}))}}})),t}function W(e,t){var a=[];Array.isArray(B.returnValue)&&a.push.apply(a,(0,u.default)(B.returnValue));var r=I[e];return r&&Array.isArray(r.returnValue)&&a.push.apply(a,(0,u.default)(r.returnValue)),a.forEach((function(e){t=e(t)||t})),t}function K(e){var t=Object.create(null);Object.keys(B).forEach((function(e){"returnValue"!==e&&(t[e]=B[e].slice())}));var a=I[e];return a&&Object.keys(a).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(a[e]))})),t}function X(e,t,a){for(var r=arguments.length,n=new Array(r>3?r-3:0),i=3;i0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,n=new Array(r>1?r-1:0),i=1;i-1?pe:e.indexOf("-hant")>-1||Me(e,["-tw","-hk","-mo","-cht"])?ve:pe;var a=Ee(e,[ge,ye,me]);return a||void 0}}function Pe(){if(x(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return Te(e.getSystemInfoSync().language)||ge}function Oe(e){var t=!!x(getApp)&&getApp();if(!t)return!1;var a=t.$vm.$locale;return a!==e&&(t.$vm.$locale=e,De.forEach((function(t){return t({locale:e})})),!0)}var De=[];function Re(e){-1===De.indexOf(e)&&De.push(e)}"undefined"!==typeof r&&(r.getLocale=Pe);var Be={promiseInterceptor:G},Ie=Object.freeze({__proto__:null,upx2px:de,getLocale:Pe,setLocale:Oe,onLocaleChange:Re,addInterceptor:z,removeInterceptor:$,interceptors:Be});function Ce(e){var t=getCurrentPages(),a=t.length;while(a--){var r=t[a];if(r.$page&&r.$page.fullPath===e)return a}return-1}var Le,je={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=Ce(e.url);if(-1!==t){var a=getCurrentPages().length-1-t;a>0&&(e.delta=a)}}}},Fe={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var a=e.urls;if(Array.isArray(a)){var r=a.length;if(r)return t<0?t=0:t>=r&&(t=r-1),t>0?(e.current=a[t],e.urls=a.filter((function(e,r){return!(r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(k(t)){var i=!0===n?t:{};for(var l in x(a)&&(a=a(t,i)||{}),t)if(M(a,l)){var o=a[l];x(o)&&(o=o(t[l],t,i)),o?S(o)?i[o]=t[l]:k(o)&&(i[o.name?o.name:l]=o.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(l,"'"))}else-1!==rt.indexOf(l)?x(t[l])&&(i[l]=nt(e,t[l],r)):n||(i[l]=t[l]);return i}return x(t)&&(t=nt(e,t,r)),t}function lt(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return x(et.returnValue)&&(t=et.returnValue(e,t)),it(e,t,a,{},r)}function ot(t,a){if(M(et,t)){var r=et[t];return r?function(a,n){var i=r;x(r)&&(i=r(a)),a=it(t,a,i.args,i.returnValue);var l=[a];"undefined"!==typeof n&&l.push(n),x(i.name)?t=i.name(a):S(i.name)&&(t=i.name);var o=e[t].apply(e,l);return ae(t)?lt(t,o,i.returnValue,te(t)):o}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return a}var st=Object.create(null),ut=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function ct(e){return function(t){var a=t.fail,r=t.complete,n={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};x(a)&&a(n),x(r)&&r(n)}}ut.forEach((function(e){st[e]=ct(e)}));var ft={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function ht(e){var t=e.service,a=e.success,r=e.fail,n=e.complete,i=!1;ft[t]?(i={errMsg:"getProvider:ok",service:t,provider:ft[t]},x(a)&&a(i)):(i={errMsg:"getProvider:fail service not found"},x(r)&&r(i)),x(n)&&n(i)}var dt=Object.freeze({__proto__:null,getProvider:ht}),bt=function(){var e;return function(){return e||(e=new h.default),e}}();function pt(e,t,a){return e[t].apply(e,a)}function vt(){return pt(bt(),"$on",Array.prototype.slice.call(arguments))}function gt(){return pt(bt(),"$off",Array.prototype.slice.call(arguments))}function yt(){return pt(bt(),"$once",Array.prototype.slice.call(arguments))}function mt(){return pt(bt(),"$emit",Array.prototype.slice.call(arguments))}var _t,wt,xt,St=Object.freeze({__proto__:null,$on:vt,$off:gt,$once:yt,$emit:mt});function At(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function kt(e){var t={};for(var a in e){var r=e[a];x(r)&&(t[a]=At(r),delete e[a])}return t}function Mt(e){try{return JSON.parse(e)}catch(t){}return e}function Et(e){if("enabled"===e.type)xt=!0;else if("clientId"===e.type)_t=e.cid,wt=e.errMsg,Pt(_t,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Mt(e.message)},a=0;a-1&&Dt.splice(t,1)}else Dt.length=0},It=e.getAppBaseInfo&&e.getAppBaseInfo();It||(It=e.getSystemInfoSync());var Ct=It?It.host:null,Lt=Ct&&"SAAASDK"===Ct.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,jt=Object.freeze({__proto__:null,shareVideoMessage:Lt,getPushClientId:Ot,onPushMessage:Rt,offPushMessage:Bt,invokePushCallback:Et}),Ft=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Nt(e,t){for(var a,r=e.$children,n=r.length-1;n>=0;n--){var i=r[n];if(i.$scope._$vueId===t)return i}for(var l=r.length-1;l>=0;l--)if(a=Nt(r[l],t),a)return a}function zt(e){return Behavior(e)}function $t(){return!!this.route}function qt(e){this.triggerEvent("__l",e)}function Ut(e,t,a){var r=e.selectAllComponents(t)||[];r.forEach((function(e){var r=e.dataset.ref;a[r]=e.$vm||Xt(e),"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){Ut(e,t,a)}))}))}function Ht(e,t){var a=(0,s.default)(Set,(0,u.default)(Object.keys(e))),r=Object.keys(t);return r.forEach((function(r){var n=e[r],i=t[r];Array.isArray(n)&&Array.isArray(i)&&n.length===i.length&&i.every((function(e){return n.includes(e)}))||(e[r]=i,a.delete(r))})),a.forEach((function(t){delete e[t]})),e}function Vt(e){var t=e.$scope,a={};Object.defineProperty(e,"$refs",{get:function(){var e={};Ut(t,".vue-ref",e);var r=t.selectAllComponents(".vue-ref-in-for")||[];return r.forEach((function(t){var a=t.dataset.ref;e[a]||(e[a]=[]),e[a].push(t.$vm||Xt(t))})),Ht(a,e)}})}function Wt(e){var t,a=e.detail||e.value,r=a.vuePid,n=a.vueOptions;r&&(t=Nt(this.$vm,r)),t||(t=this.$vm),n.parent=t}function Kt(e){var t="__v_isMPComponent";return Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:!0}),e}function Xt(e){var t="__ob__",a="__v_skip";return A(e)&&Object.isExtensible(e)&&Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:(0,o.default)({},a,!0)}),e}var Gt=/_(.*)_worklet_factory_/;function Yt(e,t){t&&Object.keys(t).forEach((function(a){var r=a.match(Gt);if(r){var n=r[1];e[a]=t[a],e[n]=t[n]}}))}var Zt=Page,Jt=Component,Qt=/:/g,ea=T((function(e){return O(e.replace(Qt,"-"))}));function ta(e){var t=e.triggerEvent,a=function(e){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return aa("onLoad",e),Zt(e)},Page.after=Zt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return aa("created",e),Jt(e)});var ra=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function na(e,t){var a=e.$mp[e.mpType];t.forEach((function(t){M(a,t)&&(e[t]=a[t])}))}function ia(e,t){if(!t)return!0;if(h.default.options&&Array.isArray(h.default.options[e]))return!0;if(t=t.default||t,x(t))return!!x(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(x(t[e])||Array.isArray(t[e]))return!0;var a=t.mixins;return Array.isArray(a)?!!a.find((function(t){return ia(e,t)})):void 0}function la(e,t,a){t.forEach((function(t){ia(t,a)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function oa(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];sa(t).forEach((function(t){return ua(e,t,a)}))}function sa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(a){0===a.indexOf("on")&&x(e[a])&&t.push(a)})),t}function ua(e,t,a){-1!==a.indexOf(t)||M(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function ca(e,t){var a;return t=t.default||t,a=x(t)?t:e.extend(t),t=a.options,[a,t]}function fa(e,t){if(Array.isArray(t)&&t.length){var a=Object.create(null);t.forEach((function(e){a[e]=!0})),e.$scopedSlots=e.$slots=a}}function ha(e,t){e=(e||"").split(",");var a=e.length;1===a?t._$vueId=e[0]:2===a&&(t._$vueId=e[0],t._$vuePid=e[1])}function da(e,t){var a=e.data||{},r=e.methods||{};if("function"===typeof a)try{a=a.call(t)}catch(n){Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"云飞智控",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",a)}else try{a=JSON.parse(JSON.stringify(a))}catch(n){}return k(a)||(a={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||M(a,e)||(a[e]=r[e])})),a}var ba=[String,Number,Boolean,Object,Array,null];function pa(e){return function(t,a){this.$vm&&(this.$vm[e]=t)}}function va(e,t){var a=e.behaviors,r=e.extends,n=e.mixins,i=e.props;i||(e.props=i=[]);var l=[];return Array.isArray(a)&&a.forEach((function(e){l.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(i)?(i.push("name"),i.push("value")):(i.name={type:String,default:""},i.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),k(r)&&r.props&&l.push(t({properties:ya(r.props,!0)})),Array.isArray(n)&&n.forEach((function(e){k(e)&&e.props&&l.push(t({properties:ya(e.props,!0)}))})),l}function ga(e,t,a,r){return Array.isArray(t)&&1===t.length?t[0]:t}function ya(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>3?arguments[3]:void 0,r={};return t||(r.vueId={type:String,value:""},a.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(e,t){var a=Object.create(null);e.forEach((function(e){a[e]=!0})),this.setData({$slots:a})}}),Array.isArray(e)?e.forEach((function(e){r[e]={type:null,observer:pa(e)}})):k(e)&&Object.keys(e).forEach((function(t){var a=e[t];if(k(a)){var n=a.default;x(n)&&(n=n()),a.type=ga(t,a.type),r[t]={type:-1!==ba.indexOf(a.type)?a.type:null,value:n,observer:pa(t)}}else{var i=ga(t,a);r[t]={type:-1!==ba.indexOf(i)?i:null,observer:pa(t)}}})),r}function ma(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=E,e.preventDefault=E,e.target=e.target||{},M(e,"detail")||(e.detail={}),M(e,"markerId")&&(e.detail="object"===(0,c.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),k(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function _a(e,t){var a=e;return t.forEach((function(t){var r=t[0],n=t[2];if(r||"undefined"!==typeof n){var i,l=t[1],o=t[3];Number.isInteger(r)?i=r:r?"string"===typeof r&&r&&(i=0===r.indexOf("#s#")?r.substr(3):e.__get_value(r,a)):i=a,Number.isInteger(i)?a=n:l?Array.isArray(i)?a=i.find((function(t){return e.__get_value(l,t)===n})):k(i)?a=Object.keys(i).find((function(t){return e.__get_value(l,i[t])===n})):console.error("v-for 暂不支持循环数据:",i):a=i[n],o&&(a=e.__get_value(o,a))}})),a}function wa(e,t,a,r){var n={};return Array.isArray(t)&&t.length&&t.forEach((function(t,i){"string"===typeof t?t?"$event"===t?n["$"+i]=a:"arguments"===t?n["$"+i]=a.detail&&a.detail.__args__||r:0===t.indexOf("$event.")?n["$"+i]=e.__get_value(t.replace("$event.",""),a):n["$"+i]=e.__get_value(t):n["$"+i]=e:n["$"+i]=_a(e,t)})),n}function xa(e){for(var t={},a=1;a2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,l=!1,o=k(t.detail)&&t.detail.__args__||[t.detail];if(n&&(l=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!a.length))return l?[t]:o;var s=wa(e,r,t,o),u=[];return a.forEach((function(e){"$event"===e?"__set_model"!==i||n?n&&!l?u.push(o[0]):u.push(t):u.push(t.target.value):Array.isArray(e)&&"o"===e[0]?u.push(xa(e)):"string"===typeof e&&M(s,e)?u.push(s[e]):u.push(e)})),u}var Aa="~",ka="^";function Ma(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function Ea(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}function Ta(e){var t=this;e=ma(e);var a=(e.currentTarget||e.target).dataset;if(!a)return console.warn("事件信息不存在");var r=a.eventOpts||a["event-opts"];if(!r)return console.warn("事件信息不存在");var n=e.type,i=[];return r.forEach((function(a){var r=a[0],l=a[1],o=r.charAt(0)===ka;r=o?r.slice(1):r;var s=r.charAt(0)===Aa;r=s?r.slice(1):r,l&&Ma(n,r)&&l.forEach((function(a){var r=a[0];if(r){var n=t.$vm;if(n.$options.generic&&(n=Ea(n)||n),"$emit"===r)return void n.$emit.apply(n,Sa(t.$vm,e,a[1],a[2],o,r));var l=n[r];if(!x(l)){var u="page"===t.$vm.mpType?"Page":"Component",c=t.route||t.is;throw new Error("".concat(u,' "').concat(c,'" does not have a method "').concat(r,'"'))}if(s){if(l.once)return;l.once=!0}var f=Sa(t.$vm,e,a[1],a[2],o,r);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(l.toString())&&(f=f.concat([,,,,,,,,,,e])),i.push(l.apply(n,f))}}))})),"input"===n&&1===i.length&&"undefined"!==typeof i[0]?i[0]:void 0}var Pa={};function Oa(e){var t=Pa[e];return delete Pa[e],t}var Da=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Ra(){h.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=h.default.prototype.__call_hook;h.default.prototype.__call_hook=function(t,a){return"onLoad"===t&&a&&a.__id__&&(this.__eventChannel__=Oa(a.__id__),delete a.__id__),e.call(this,t,a)}}function Ba(){var e={},t={};function a(e){var t=this.$options.propsData.vueId;if(t){var a=t.split(",")[0];e(a)}}h.default.prototype.$hasSSP=function(a){var r=e[a];return r||(t[a]=this,this.$on("hook:destroyed",(function(){delete t[a]}))),r},h.default.prototype.$getSSP=function(t,a,r){var n=e[t];if(n){var i=n[a]||[];return r?i:i[0]}},h.default.prototype.$setSSP=function(t,r){var n=0;return a.call(this,(function(a){var i=e[a],l=i[t]=i[t]||[];l.push(r),n=l.length-1})),n},h.default.prototype.$initSSP=function(){a.call(this,(function(t){e[t]={}}))},h.default.prototype.$callSSP=function(){a.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},h.default.mixin({destroyed:function(){var a=this.$options.propsData,r=a&&a.vueId;r&&(delete e[r],delete t[r])}})}function Ia(t,a){var r=a.mocks,n=a.initRefs;Ra(),Ba(),t.$options.store&&(h.default.prototype.$store=t.$options.store),m(h.default),h.default.prototype.mpHost="mp-weixin",h.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,o.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(n(this),na(this,r))}}});var i={onLaunch:function(a){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",a),this.$vm.__call_hook("onLaunch",a))}};i.globalData=t.$options.globalData||{};var l=t.$options.methods;return l&&Object.keys(l).forEach((function(e){i[e]=l[e]})),Ae(h.default,t,Te(e.getSystemInfoSync().language)||ge),la(i,Da),oa(i,t.$options),i}function Ca(e){return Ia(e,{mocks:Ft,initRefs:Vt})}function La(e){return App(Ca(e)),e}var ja=/[!'()*]/g,Fa=function(e){return"%"+e.charCodeAt(0).toString(16)},Na=/%2C/g,za=function(e){return encodeURIComponent(e).replace(ja,Fa).replace(Na,",")};function $a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:za,a=e?Object.keys(e).map((function(a){var r=e[a];if(void 0===r)return"";if(null===r)return t(a);if(Array.isArray(r)){var n=[];return r.forEach((function(e){void 0!==e&&(null===e?n.push(t(a)):n.push(t(a)+"="+t(e)))})),n.join("&")}return t(a)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return a?"?".concat(a):""}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.isPage,r=t.initRelation,n=arguments.length>2?arguments[2]:void 0,i=ca(h.default,e),o=(0,l.default)(i,2),s=o[0],u=o[1],c=b({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(c,u["mp-weixin"].options);var f={options:c,data:da(u,h.default.prototype),behaviors:va(u,zt),properties:ya(u.props,!1,u.__file,c),lifetimes:{attached:function(){var e=this.properties,t={mpType:a.call(this)?"page":"component",mpInstance:this,propsData:e};ha(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new s(t),fa(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:Wt,__e:Ta}};return u.externalClasses&&(f.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(e){f.methods[e]=function(t){return this.$vm[e](t)}})),n?[f,u,s]:a?f:[f,s]}function Ua(e,t){return qa(e,{isPage:$t,initRelation:qt},t)}var Ha=["onShow","onHide","onUnload"];function Va(e){var t=Ua(e,!0),a=(0,l.default)(t,2),r=a[0],n=a[1];return la(r.methods,Ha,n),r.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+$a(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},oa(r.methods,e,["onReady"]),Yt(r.methods,n.methods),r}function Wa(e){return Va(e)}function Ka(e){return Component(Wa(e))}function Xa(e){return Component(Ua(e))}function Ga(t){var a=Ca(t),r=getApp({allowDefault:!0});t.$scope=r;var n=r.globalData;if(n&&Object.keys(a.globalData).forEach((function(e){M(n,e)||(n[e]=a.globalData[e])})),Object.keys(a).forEach((function(e){M(r,e)||(r[e]=a[e])})),x(a.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,a=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:c;if(!t)return[e];var r=this._caches[e];return r||(r=b(e,a),this._caches[e]=r),p(r,t)}}]),e}();t.Formatter=f;var h=/^(?:\d)+/,d=/^(?:\w)+/;function b(e,t){var a=(0,i.default)(t,2),r=a[0],n=a[1],l=[],o=0,s="";while(o-1?v:e.indexOf("-hant")>-1||A(e,["-tw","-hk","-mo","-cht"])?g:v;var a=[y,m,_];t&&Object.keys(t).length>0&&(a=Object.keys(t));var r=k(e,a);return r||void 0}}var E=function(){function e(t){var a=t.locale,r=t.fallbackLocale,n=t.messages,i=t.watcher,o=t.formater;(0,l.default)(this,e),this.locale=y,this.fallbackLocale=y,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=o||S,this.messages=n||{},this.setLocale(a||y),i&&this.watchLocale(i)}return(0,o.default)(e,[{key:"setLocale",value:function(e){var t=this,a=this.locale;this.locale=M(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],a!==this.locale&&this.watchers.forEach((function(e){e(t.locale,a)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,a=this.watchers.push(e)-1;return function(){t.watchers.splice(a,1)}}},{key:"add",value:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?a?Object.assign(r,t):Object.keys(t).forEach((function(e){x(r,e)||(r[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,a){return this.formater.interpolate(e,t,a).join("")}},{key:"t",value:function(e,t,a){var r=this.message;return"string"===typeof t?(t=M(t,this.messages),t&&(r=this.messages[t])):a=t,x(r,e)?this.formater.interpolate(r[e],a).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function T(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function P(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():y}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var n=[t,e];e=n[0],t=n[1]}"string"!==typeof e&&(e=P()),"string"!==typeof a&&(a="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||y);var i=new E({locale:e,fallbackLocale:a,messages:t,watcher:r}),l=function(e,t){if("function"!==typeof getApp)l=function(e,t){return i.t(e,t)};else{var a=!1;l=function(e,t){var r=getApp().$vm;return r&&(r.$locale,a||(a=!0,T(r,i))),i.t(e,t)}}return l(e,t)};return{i18n:i,f:function(e,t,a){return i.f(e,t,a)},t:function(e,t){return l(e,t)},add:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return i.add(e,t,a)},watch:function(e){return i.watchLocale(e)},getLocale:function(){return i.getLocale()},setLocale:function(e){return i.setLocale(e)}}}t.I18n=E;var D,R=function(e){return"string"===typeof e};function B(e,t){return D||(D=new f),z(e,(function(e,a){var r=e[a];return R(r)?!!L(r,t)||void 0:B(r,t)}))}function I(e,t,a){return D||(D=new f),z(e,(function(e,r){var n=e[r];R(n)?L(n,a)&&(e[r]=j(n,t,a)):I(n,t,a)})),e}function C(e,t){var a=t.locale,r=t.locales,n=t.delimiters;if(!L(e,n))return e;D||(D=new f);var i=[];Object.keys(r).forEach((function(e){e!==a&&i.push({locale:e,values:r[e]})})),i.unshift({locale:a,values:r[a]});try{return JSON.stringify(N(JSON.parse(e),i,n),null,2)}catch(l){}return e}function L(e,t){return e.indexOf(t[0])>-1}function j(e,t,a){return D.interpolate(e,t,a).join("")}function F(e,t,a,r){var n=e[t];if(R(n)){if(L(n,r)&&(e[t]=j(n,a[0].values,r),a.length>1)){var i=e[t+"Locales"]={};a.forEach((function(e){i[e.locale]=j(n,e.values,r)}))}}else N(n,a,r)}function N(e,t,a){return z(e,(function(e,r){F(e,r,t,a)})),e}function z(e,t){if(Array.isArray(e)){for(var a=0;a-1}))):t}}function q(e){var t=[],a=e.split("-");while(a.length)t.push(a.join("-")),a.pop();return t}t.isString=R}).call(this,a(2)["default"],a(3))},23:function(e,t){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},24:function(e,t,a){var r=a(12);function n(e,t){for(var a=0;a=0&&Math.floor(t)===t&&isFinite(e)}function b(e){return n(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var a=Object.create(null),r=e.split(","),n=0;n-1)return e.splice(a,1)}}var w=Object.prototype.hasOwnProperty;function x(e,t){return w.call(e,t)}function S(e){var t=Object.create(null);return function(a){var r=t[a];return r||(t[a]=e(a))}}var A=/-(\w)/g,k=S((function(e){return e.replace(A,(function(e,t){return t?t.toUpperCase():""}))})),M=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),E=/\B([A-Z])/g,T=S((function(e){return e.replace(E,"-$1").toLowerCase()}));function P(e,t){function a(a){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,a):e.call(t)}return a._length=e.length,a}function O(e,t){return e.bind(t)}var D=Function.prototype.bind?O:P;function R(e,t){t=t||0;var a=e.length-t,r=new Array(a);while(a--)r[a]=e[a+t];return r}function B(e,t){for(var a in t)e[a]=t[a];return e}function I(e){for(var t={},a=0;a0),re=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===Q),ne=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/),{}.watch);if(Z)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){}}),window.addEventListener("test-passive",null,ie)}catch(Nn){}var le=function(){return void 0===G&&(G=!Z&&!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),G},oe=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"===typeof e&&/native code/.test(e.toString())}var ue,ce="undefined"!==typeof Symbol&&se(Symbol)&&"undefined"!==typeof Reflect&&se(Reflect.ownKeys);ue="undefined"!==typeof Set&&se(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fe=C,he=C,de=C,be=C,pe="undefined"!==typeof console,ve=/(?:^|[-_])(\w)/g,ge=function(e){return e.replace(ve,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};fe=function(e,t){var a=t?de(t):"";U.warnHandler?U.warnHandler.call(null,e,t,a):pe&&!U.silent&&console.error("[Vue warn]: "+e+a)},he=function(e,t){pe&&!U.silent&&console.warn("[Vue tip]: "+e+(t?de(t):""))},be=function(e,t){if(e.$root===e)return e.$options&&e.$options.__file?""+e.$options.__file:"";var a="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,r=a.name||a._componentTag,n=a.__file;if(!r&&n){var i=n.match(/([^/\\]+)\.vue$/);r=i&&i[1]}return(r?"<"+ge(r)+">":"")+(n&&!1!==t?" at "+n:"")};var ye=function(e,t){var a="";while(t)t%2===1&&(a+=e),t>1&&(e+=e),t>>=1;return a};de=function(e){if(e._isVue&&e.$parent){var t=[],a=0;while(e&&"PageBody"!==e.$options.name){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){a++,e=e.$parent;continue}a>0&&(t[t.length-1]=[r,a],a=0)}!e.$options.isReserved&&t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,t){return""+(0===t?"---\x3e ":ye(" ",5+2*t))+(Array.isArray(e)?be(e[0])+"... ("+e[1]+" recursive calls)":be(e))})).join("\n")}return"\n\n(found in "+be(e)+")"};var me=0,_e=function(){this.id=me++,this.subs=[]};function we(e){_e.SharedObject.targetStack.push(e),_e.SharedObject.target=e,_e.target=e}function xe(){_e.SharedObject.targetStack.pop(),_e.SharedObject.target=_e.SharedObject.targetStack[_e.SharedObject.targetStack.length-1],_e.target=_e.SharedObject.target}_e.prototype.addSub=function(e){this.subs.push(e)},_e.prototype.removeSub=function(e){_(this.subs,e)},_e.prototype.depend=function(){_e.SharedObject.target&&_e.SharedObject.target.addDep(this)},_e.prototype.notify=function(){var e=this.subs.slice();U.async||e.sort((function(e,t){return e.id-t.id}));for(var t=0,a=e.length;t-1)if(i&&!x(n,"default"))l=!1;else if(""===l||l===T(e)){var s=ct(String,n.type);(s<0||o0&&(l=Zt(l,(t||"")+"_"+a),Yt(l[0])&&Yt(u)&&(c[s]=Me(u.text+l[0].text),l.shift()),c.push.apply(c,l)):o(l)?Yt(u)?c[s]=Me(u.text+l):""!==l&&c.push(Me(l)):Yt(l)&&Yt(u)?c[s]=Me(u.text+l.text):(i(e._isVList)&&n(l.tag)&&r(l.key)&&n(t)&&(l.key="__vlist"+t+"_"+a+"__"),c.push(l)));return c}function Jt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Qt(e){var t=ea(e.$options.inject,e);t&&(Be(!1),Object.keys(t).forEach((function(a){Fe(e,a,t[a],(function(){fe('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+a+'"',e)}))})),Be(!0))}function ea(e,t){if(e){for(var a=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),n=0;n0,l=e?!!e.$stable:!i,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(l&&r&&r!==a&&o===r.$key&&!i&&!r.$hasNormal)return r;for(var s in n={},e)e[s]&&"$"!==s[0]&&(n[s]=na(t,s,e[s]))}else n={};for(var u in t)u in n||(n[u]=ia(t,u));return e&&Object.isExtensible(e)&&(e._normalized=n),W(n,"$stable",l),W(n,"$key",o),W(n,"$hasNormal",i),n}function na(e,t,a){var r=function(){var e=arguments.length?a.apply(null,arguments):a({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Gt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return a.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function ia(e,t){return function(){return e[t]}}function la(e,t){var a,r,i,l,o;if(Array.isArray(e)||"string"===typeof e)for(a=new Array(e.length),r=0,i=e.length;r.",e),l=new Se(U.parsePlatformTagName(t),a,r,void 0,void 0,e)):l=a&&a.pre||!n(u=at(e.$options,"components",t))?new Se(t,a,r,void 0,void 0,e):Ea(u,a,e,r,t)):l=Ea(t,a,e,r);return Array.isArray(l)?l:n(l)?(n(s)&&La(l,s),n(a)&&ja(a),l):ke()}function La(e,t,a){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,a=!0),n(e.children))for(var l=0,o=e.children.length;l1?R(r):r;for(var n=R(arguments,1),i='event handler for "'+e+'"',l=0,o=r.length;ldocument.createEvent("Event").timeStamp&&(yr=function(){return mr.now()})}function _r(){var e,t;for(yr(),pr=!0,cr.sort((function(e,t){return e.id-t.id})),vr=0;vrur)){fe("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var a=fr.slice(),r=cr.slice();gr(),Sr(a),wr(r),oe&&U.devtools&&oe.emit("flush")}function wr(e){var t=e.length;while(t--){var a=e[t],r=a.vm;r._watcher===a&&r._isMounted&&!r._isDestroyed&&sr(r,"updated")}}function xr(e){e._inactive=!1,fr.push(e)}function Sr(e){for(var t=0;tvr&&cr[a].id>e.id)a--;cr.splice(a+1,0,e)}else cr.push(e);if(!br){if(br=!0,!U.async)return void _r();Tt(_r)}}}var kr=0,Mr=function(e,t,a,r,n){this.vm=e,n&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=a,this.id=++kr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ue,this.newDepIds=new ue,this.expression=t.toString(),"function"===typeof t?this.getter=t:(this.getter=X(t),this.getter||(this.getter=C,fe('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};Mr.prototype.get=function(){var e;we(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Nn){if(!this.user)throw Nn;pt(Nn,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Nt(e),xe(),this.cleanupDeps()}return e},Mr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Mr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var a=this.depIds;this.depIds=this.newDepIds,this.newDepIds=a,this.newDepIds.clear(),a=this.deps,this.deps=this.newDeps,this.newDeps=a,this.newDeps.length=0},Mr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ar(this)},Mr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Nn){pt(Nn,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Mr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Mr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Mr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var Er={enumerable:!0,configurable:!0,get:C,set:C};function Tr(e,t,a){Er.get=function(){return this[t][a]},Er.set=function(e){this[t][a]=e},Object.defineProperty(e,a,Er)}function Pr(e){e._watchers=[];var t=e.$options;t.props&&Or(e,t.props),t.methods&&Fr(e,t.methods),t.data?Dr(e):je(e._data={},!0),t.computed&&Ir(e,t.computed),t.watch&&t.watch!==ne&&Nr(e,t.watch)}function Or(e,t){var a=e.$options.propsData||{},r=e._props={},n=e.$options._propKeys=[],i=!e.$parent;i||Be(!1);var l=function(l){n.push(l);var o=rt(l,t,a,e),s=T(l);(m(s)||U.isReservedAttr(s))&&fe('"'+s+'" is a reserved attribute and cannot be used as component prop.',e),Fe(r,l,o,(function(){if(!i&&!er){if("mp-baidu"===e.mpHost||"mp-kuaishou"===e.mpHost||"mp-xhs"===e.mpHost)return;if("value"===l&&Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field"))return;if(e._getFormData)return;var t=e.$parent;while(t){if(t.__next_tick_pending)return;t=t.$parent}fe("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+l+'"',e)}})),l in e||Tr(e,"_props",l)};for(var o in t)l(o);Be(!0)}function Dr(e){var t=e.$options.data;t=e._data="function"===typeof t?Rr(t,e):t||{},f(t)||(t={},fe("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var a=Object.keys(t),r=e.$options.props,n=e.$options.methods,i=a.length;while(i--){var l=a[i];n&&x(n,l)&&fe('Method "'+l+'" has already been defined as a data property.',e),r&&x(r,l)?fe('The data property "'+l+'" is already declared as a prop. Use prop default value instead.',e):V(l)||Tr(e,"_data",l)}je(t,!0)}function Rr(e,t){we();try{return e.call(t,t)}catch(Nn){return pt(Nn,t,"data()"),{}}finally{xe()}}var Br={lazy:!0};function Ir(e,t){var a=e._computedWatchers=Object.create(null),r=le();for(var n in t){var i=t[n],l="function"===typeof i?i:i.get;null==l&&fe('Getter is missing for computed property "'+n+'".',e),r||(a[n]=new Mr(e,l||C,C,Br)),n in e?n in e.$data?fe('The computed property "'+n+'" is already defined in data.',e):e.$options.props&&n in e.$options.props&&fe('The computed property "'+n+'" is already defined as a prop.',e):Cr(e,n,i)}}function Cr(e,t,a){var r=!le();"function"===typeof a?(Er.get=r?Lr(t):jr(a),Er.set=C):(Er.get=a.get?r&&!1!==a.cache?Lr(t):jr(a.get):C,Er.set=a.set||C),Er.set===C&&(Er.set=function(){fe('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,Er)}function Lr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),_e.SharedObject.target&&t.depend(),t.value}}function jr(e){return function(){return e.call(this,this)}}function Fr(e,t){var a=e.$options.props;for(var r in t)"function"!==typeof t[r]&&fe('Method "'+r+'" has type "'+typeof t[r]+'" in the component definition. Did you reference the function correctly?',e),a&&x(a,r)&&fe('Method "'+r+'" has already been defined as a prop.',e),r in e&&V(r)&&fe('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),e[r]="function"!==typeof t[r]?C:D(t[r],e)}function Nr(e,t){for(var a in t){var r=t[a];if(Array.isArray(r))for(var n=0;n-1)return this;var a=R(arguments,1);return a.unshift(this),"function"===typeof e.install?e.install.apply(e,a):"function"===typeof e&&e.apply(null,a),t.push(e),this}}function Gr(e){e.mixin=function(e){return this.options=tt(this.options,e),this}}function Yr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var a=this,r=a.cid,n=e._Ctor||(e._Ctor={});if(n[r])return n[r];var i=e.name||a.options.name;i&&Ye(i);var l=function(e){this._init(e)};return l.prototype=Object.create(a.prototype),l.prototype.constructor=l,l.cid=t++,l.options=tt(a.options,e),l["super"]=a,l.options.props&&Zr(l),l.options.computed&&Jr(l),l.extend=a.extend,l.mixin=a.mixin,l.use=a.use,$.forEach((function(e){l[e]=a[e]})),i&&(l.options.components[i]=l),l.superOptions=a.options,l.extendOptions=e,l.sealedOptions=B({},l.options),n[r]=l,l}}function Zr(e){var t=e.options.props;for(var a in t)Tr(e.prototype,"_props",a)}function Jr(e){var t=e.options.computed;for(var a in t)Cr(e.prototype,a,t[a])}function Qr(e){$.forEach((function(t){e[t]=function(e,a){return a?("component"===t&&Ye(e),"component"===t&&f(a)&&(a.name=a.name||e,a=this.options._base.extend(a)),"directive"===t&&"function"===typeof a&&(a={bind:a,update:a}),this.options[t+"s"][e]=a,a):this.options[t+"s"][e]}}))}function en(e){return e&&(e.Ctor.options.name||e.tag)}function tn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function an(e,t){var a=e.cache,r=e.keys,n=e._vnode;for(var i in a){var l=a[i];if(l){var o=en(l.componentOptions);o&&!t(o)&&rn(a,i,r,n)}}}function rn(e,t,a,r){var n=e[t];!n||r&&n.tag===r.tag||n.componentInstance.$destroy(),e[t]=null,_(a,t)}Ur(Kr),$r(Kr),Ja(Kr),rr(Kr),$a(Kr);var nn=[String,RegExp,Array],ln={name:"keep-alive",abstract:!0,props:{include:nn,exclude:nn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)rn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){an(e,(function(e){return tn(t,e)}))})),this.$watch("exclude",(function(t){an(e,(function(e){return!tn(t,e)}))}))},render:function(){var e=this.$slots.default,t=Wa(e),a=t&&t.componentOptions;if(a){var r=en(a),n=this,i=n.include,l=n.exclude;if(i&&(!r||!tn(i,r))||l&&r&&tn(l,r))return t;var o=this,s=o.cache,u=o.keys,c=null==t.key?a.Ctor.cid+(a.tag?"::"+a.tag:""):t.key;s[c]?(t.componentInstance=s[c].componentInstance,_(u,c),u.push(c)):(s[c]=t,u.push(c),this.max&&u.length>parseInt(this.max)&&rn(s,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},on={KeepAlive:ln};function sn(e){var t={get:function(){return U},set:function(){fe("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:B,mergeOptions:tt,defineReactive:Fe},e.set=Ne,e.delete=ze,e.nextTick=Tt,e.observable=function(e){return je(e),e},e.options=Object.create(null),$.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,B(e.options.components,on),Xr(e),Gr(e),Yr(e),Qr(e)}sn(Kr),Object.defineProperty(Kr.prototype,"$isServer",{get:le}),Object.defineProperty(Kr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Kr,"FunctionalRenderContext",{value:wa}),Kr.version="2.6.11";var un="[object Array]",cn="[object Object]",fn="[object Null]",hn="[object Undefined]";function dn(e,t){var a={};return bn(e,t),vn(e,t,"",a),a}function bn(e,t){if(e!==t){var a=yn(e),r=yn(t);if(a==cn&&r==cn){if(Object.keys(e).length>=Object.keys(t).length)for(var n in t){var i=e[n];void 0===i?e[n]=null:bn(i,t[n])}}else a==un&&r==un&&e.length>=t.length&&t.forEach((function(t,a){bn(e[a],t)}))}}function pn(e,t){return e!==fn&&e!==hn||t!==fn&&t!==hn}function vn(e,t,a,r){if(e!==t){var n=yn(e),i=yn(t);if(n==cn)if(i!=cn||Object.keys(e).length1&&(t[a[0].trim()]=a[1].trim())}})),t}));function Bn(e){return Array.isArray(e)?I(e):"string"===typeof e?Rn(e):e}var In=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Cn(e,t){var a=t.split("."),r=a[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===a.length?e[r]:Cn(e[r],a.slice(1).join("."))}function Ln(e){e.config.errorHandler=function(t,a,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',a),console.error(t);var n="function"===typeof getApp&&getApp();n&&n.onError&&n.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var a=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(a)try{a.call(this.$scope,e,{__args__:R(arguments,1)})}catch(r){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return wn(this,e)},In.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=Jt,e.prototype.__init_injections=Qt,e.prototype.__call_hook=function(e,t){var a=this;we();var r,n=a.$options[e],i=e+" hook";if(n)for(var l=0,o=n.length;lt;t++)a=255&n[t>>>2]>>>24-t%4*8,r[i+t>>>2]|=a<<24-(i+t)%4*8;else for(t=0;l>t;t+=4)r[i+t>>>2]=n[t>>>2];return this.sigBytes+=l,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=e.ceil(a/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){var t,a=[];for(t=0;e>t;t+=4)a.push(i());return new c.init(a,e)}}),f=o.enc={},h=f.Hex={stringify:function(e){var t,a,r=e.words,n=e.sigBytes,i=[];for(t=0;n>t;t++)a=255&r[t>>>2]>>>24-t%4*8,i.push((a>>>4).toString(16)),i.push((15&a).toString(16));return i.join("")},parse:function(e){var t,a=e.length,r=[];for(t=0;a>t;t+=2)r[t>>>3]|=parseInt(e.substr(t,2),16)<<24-t%8*4;return new c.init(r,a/2)}},d=f.Latin1={stringify:function(e){var t,a,r=e.words,n=e.sigBytes,i=[];for(t=0;n>t;t++)a=255&r[t>>>2]>>>24-t%4*8,i.push(String.fromCharCode(a));return i.join("")},parse:function(e){var t,a=e.length,r=[];for(t=0;a>t;t++)r[t>>>2]|=(255&e.charCodeAt(t))<<24-t%4*8;return new c.init(r,a)}},b=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=b.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var a,r,n,i,l=this._data,o=l.words,s=l.sigBytes,u=this.blockSize,f=4*u,h=s/f;if(h=t?e.ceil(h):e.max((0|h)-this._minBufferSize,0),r=h*u,n=e.min(4*r,s),r){for(i=0;r>i;i+=u)this._doProcessBlock(o,i);a=o.splice(0,r),l.sigBytes-=n}return new c.init(a,n)},clone:function(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),s.Hasher=p.extend({cfg:u.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,a){return new e.init(a).finalize(t)}},_createHmacHelper:function(e){return function(t,a){return new v.HMAC.init(e,a).finalize(t)}}}),v=o.algo={},o}(Math);!function(){function e(e,t,a){var n,i,l,o,s=[],u=0;for(n=0;t>n;n++)n%4&&(i=a[e.charCodeAt(n-1)]<>>6-n%4*2,o=i|l,s[u>>>2]|=o<<24-u%4*8,u++);return r.create(s,u)}var t=s,a=t.lib,r=a.WordArray,n=t.enc;n.Base64={stringify:function(e){var t,a,r,n,i,l,o,s,u=e.words,c=e.sigBytes,f=this._map;for(e.clamp(),t=[],a=0;c>a;a+=3)for(r=255&u[a>>>2]>>>24-a%4*8,n=255&u[a+1>>>2]>>>24-(a+1)%4*8,i=255&u[a+2>>>2]>>>24-(a+2)%4*8,l=r<<16|n<<8|i,o=0;4>o&&c>a+.75*o;o++)t.push(f.charAt(63&l>>>6*(3-o)));if(s=f.charAt(64))for(;t.length%4;)t.push(s);return t.join("")},parse:function(t){var a,r,n,i=t.length,l=this._map,o=this._reverseMap;if(!o)for(o=this._reverseMap=[],a=0;a>>32-i)+t}function a(e,t,a,r,n,i,l){var o=e+(t&r|a&~r)+n+l;return(o<>>32-i)+t}function r(e,t,a,r,n,i,l){var o=e+(t^a^r)+n+l;return(o<>>32-i)+t}function n(e,t,a,r,n,i,l){var o=e+(a^(t|~r))+n+l;return(o<>>32-i)+t}var i,l=s,o=l.lib,u=o.WordArray,c=o.Hasher,f=l.algo,h=[];!function(){for(var t=0;64>t;t++)h[t]=0|4294967296*e.abs(e.sin(t+1))}(),i=f.MD5=c.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,i){var l,o,s,u,c,f,d,b,p,v,g,y,m,_,w,x,S,A,k,M,E,T,P,O;for(l=0;16>l;l++)o=i+l,s=e[o],e[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);u=this._hash.words,c=e[i+0],f=e[i+1],d=e[i+2],b=e[i+3],p=e[i+4],v=e[i+5],g=e[i+6],y=e[i+7],m=e[i+8],_=e[i+9],w=e[i+10],x=e[i+11],S=e[i+12],A=e[i+13],k=e[i+14],M=e[i+15],E=u[0],T=u[1],P=u[2],O=u[3],E=t(E,T,P,O,c,7,h[0]),O=t(O,E,T,P,f,12,h[1]),P=t(P,O,E,T,d,17,h[2]),T=t(T,P,O,E,b,22,h[3]),E=t(E,T,P,O,p,7,h[4]),O=t(O,E,T,P,v,12,h[5]),P=t(P,O,E,T,g,17,h[6]),T=t(T,P,O,E,y,22,h[7]),E=t(E,T,P,O,m,7,h[8]),O=t(O,E,T,P,_,12,h[9]),P=t(P,O,E,T,w,17,h[10]),T=t(T,P,O,E,x,22,h[11]),E=t(E,T,P,O,S,7,h[12]),O=t(O,E,T,P,A,12,h[13]),P=t(P,O,E,T,k,17,h[14]),T=t(T,P,O,E,M,22,h[15]),E=a(E,T,P,O,f,5,h[16]),O=a(O,E,T,P,g,9,h[17]),P=a(P,O,E,T,x,14,h[18]),T=a(T,P,O,E,c,20,h[19]),E=a(E,T,P,O,v,5,h[20]),O=a(O,E,T,P,w,9,h[21]),P=a(P,O,E,T,M,14,h[22]),T=a(T,P,O,E,p,20,h[23]),E=a(E,T,P,O,_,5,h[24]),O=a(O,E,T,P,k,9,h[25]),P=a(P,O,E,T,b,14,h[26]),T=a(T,P,O,E,m,20,h[27]),E=a(E,T,P,O,A,5,h[28]),O=a(O,E,T,P,d,9,h[29]),P=a(P,O,E,T,y,14,h[30]),T=a(T,P,O,E,S,20,h[31]),E=r(E,T,P,O,v,4,h[32]),O=r(O,E,T,P,m,11,h[33]),P=r(P,O,E,T,x,16,h[34]),T=r(T,P,O,E,k,23,h[35]),E=r(E,T,P,O,f,4,h[36]),O=r(O,E,T,P,p,11,h[37]),P=r(P,O,E,T,y,16,h[38]),T=r(T,P,O,E,w,23,h[39]),E=r(E,T,P,O,A,4,h[40]),O=r(O,E,T,P,c,11,h[41]),P=r(P,O,E,T,b,16,h[42]),T=r(T,P,O,E,g,23,h[43]),E=r(E,T,P,O,_,4,h[44]),O=r(O,E,T,P,S,11,h[45]),P=r(P,O,E,T,M,16,h[46]),T=r(T,P,O,E,d,23,h[47]),E=n(E,T,P,O,c,6,h[48]),O=n(O,E,T,P,y,10,h[49]),P=n(P,O,E,T,k,15,h[50]),T=n(T,P,O,E,v,21,h[51]),E=n(E,T,P,O,S,6,h[52]),O=n(O,E,T,P,b,10,h[53]),P=n(P,O,E,T,w,15,h[54]),T=n(T,P,O,E,f,21,h[55]),E=n(E,T,P,O,m,6,h[56]),O=n(O,E,T,P,M,10,h[57]),P=n(P,O,E,T,g,15,h[58]),T=n(T,P,O,E,A,21,h[59]),E=n(E,T,P,O,p,6,h[60]),O=n(O,E,T,P,x,10,h[61]),P=n(P,O,E,T,d,15,h[62]),T=n(T,P,O,E,_,21,h[63]),u[0]=0|u[0]+E,u[1]=0|u[1]+T,u[2]=0|u[2]+P,u[3]=0|u[3]+O},_doFinalize:function(){var t,a,r,n,i,l,o=this._data,s=o.words,u=8*this._nDataBytes,c=8*o.sigBytes;for(s[c>>>5]|=128<<24-c%32,t=e.floor(u/4294967296),a=u,s[15+(c+64>>>9<<4)]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),s[14+(c+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),o.sigBytes=4*(s.length+1),this._process(),r=this._hash,n=r.words,i=0;4>i;i++)l=n[i],n[i]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8);return r},clone:function(){var e=c.clone.call(this);return e._hash=this._hash.clone(),e}}),l.MD5=c._createHelper(i),l.HmacMD5=c._createHmacHelper(i)}(Math),function(){var e=s,t=e.lib,a=t.WordArray,r=t.Hasher,n=e.algo,i=[],l=n.SHA1=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){var a,r,n,l=this._hash.words,o=l[0],s=l[1],u=l[2],c=l[3],f=l[4];for(a=0;80>a;a++)16>a?i[a]=0|e[t+a]:(r=i[a-3]^i[a-8]^i[a-14]^i[a-16],i[a]=r<<1|r>>>31),n=(o<<5|o>>>27)+f+i[a],n+=20>a?1518500249+(s&u|~s&c):40>a?1859775393+(s^u^c):60>a?(s&u|s&c|u&c)-1894007588:(s^u^c)-899497514,f=c,c=u,u=s<<30|s>>>2,s=o,o=n;l[0]=0|l[0]+o,l[1]=0|l[1]+s,l[2]=0|l[2]+u,l[3]=0|l[3]+c,l[4]=0|l[4]+f},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(a/4294967296),t[15+(r+64>>>9<<4)]=a,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(l),e.HmacSHA1=r._createHmacHelper(l)}(),function(e){var t,a,r=s,n=r.lib,i=n.WordArray,l=n.Hasher,o=r.algo,u=[],c=[];!function(){function t(t){var a,r=e.sqrt(t);for(a=2;r>=a;a++)if(!(t%a))return!1;return!0}function a(e){return 0|4294967296*(e-(0|e))}for(var r=2,n=0;64>n;)t(r)&&(8>n&&(u[n]=a(e.pow(r,.5))),c[n]=a(e.pow(r,1/3)),n++),r++}(),t=[],a=o.SHA256=l.extend({_doReset:function(){this._hash=new i.init(u.slice(0))},_doProcessBlock:function(e,a){var r,n,i,l,o,s,u,f,h,d,b,p=this._hash.words,v=p[0],g=p[1],y=p[2],m=p[3],_=p[4],w=p[5],x=p[6],S=p[7];for(r=0;64>r;r++)16>r?t[r]=0|e[a+r]:(n=t[r-15],i=(n<<25|n>>>7)^(n<<14|n>>>18)^n>>>3,l=t[r-2],o=(l<<15|l>>>17)^(l<<13|l>>>19)^l>>>10,t[r]=i+t[r-7]+o+t[r-16]),s=_&w^~_&x,u=v&g^v&y^g&y,f=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),h=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),d=S+h+s+c[r]+t[r],b=f+u,S=x,x=w,w=_,_=0|m+d,m=y,y=g,g=v,v=0|d+b;p[0]=0|p[0]+v,p[1]=0|p[1]+g,p[2]=0|p[2]+y,p[3]=0|p[3]+m,p[4]=0|p[4]+_,p[5]=0|p[5]+w,p[6]=0|p[6]+x,p[7]=0|p[7]+S},_doFinalize:function(){var t=this._data,a=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return a[n>>>5]|=128<<24-n%32,a[14+(n+64>>>9<<4)]=e.floor(r/4294967296),a[15+(n+64>>>9<<4)]=r,t.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var e=l.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA256=l._createHelper(a),r.HmacSHA256=l._createHmacHelper(a)}(Math),function(){function e(e){return 4278255360&e<<8|16711935&e>>>8}var t=s,a=t.lib,r=a.WordArray,n=t.enc;n.Utf16=n.Utf16BE={stringify:function(e){var t,a,r=e.words,n=e.sigBytes,i=[];for(t=0;n>t;t+=2)a=65535&r[t>>>2]>>>16-t%4*8,i.push(String.fromCharCode(a));return i.join("")},parse:function(e){var t,a=e.length,n=[];for(t=0;a>t;t++)n[t>>>1]|=e.charCodeAt(t)<<16-t%2*16;return r.create(n,2*a)}},n.Utf16LE={stringify:function(t){var a,r,n=t.words,i=t.sigBytes,l=[];for(a=0;i>a;a+=2)r=e(65535&n[a>>>2]>>>16-a%4*8),l.push(String.fromCharCode(r));return l.join("")},parse:function(t){var a,n=t.length,i=[];for(a=0;n>a;a++)i[a>>>1]|=e(t.charCodeAt(a)<<16-a%2*16);return r.create(i,2*n)}}}(),function(){var e,t,a,r,n;"function"==typeof ArrayBuffer&&(e=s,t=e.lib,a=t.WordArray,r=a.init,n=a.init=function(e){var t,a,n;if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(t=e.byteLength,a=[],n=0;t>n;n++)a[n>>>2]|=e[n]<<24-n%4*8;r.call(this,a,t)}else r.apply(this,arguments)},n.prototype=a)}(),function(){function e(e,t,a){return e^t^a}function t(e,t,a){return e&t|~e&a}function a(e,t,a){return(e|~t)^a}function r(e,t,a){return e&a|t&~a}function n(e,t,a){return e^(t|~a)}function i(e,t){return e<>>32-t}var l=s,o=l.lib,u=o.WordArray,c=o.Hasher,f=l.algo,h=u.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=u.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),b=u.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),p=u.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),v=u.create([0,1518500249,1859775393,2400959708,2840853838]),g=u.create([1352829926,1548603684,1836072691,2053994217,0]),y=f.RIPEMD160=c.extend({_doReset:function(){this._hash=u.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,o){var s,u,c,f,y,m,_,w,x,S,A,k,M,E,T,P,O,D,R,B,I;for(s=0;16>s;s++)u=o+s,c=l[u],l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8);for(f=this._hash.words,y=v.words,m=g.words,_=h.words,w=d.words,x=b.words,S=p.words,P=A=f[0],O=k=f[1],D=M=f[2],R=E=f[3],B=T=f[4],s=0;80>s;s+=1)I=0|A+l[o+_[s]],I+=16>s?e(k,M,E)+y[0]:32>s?t(k,M,E)+y[1]:48>s?a(k,M,E)+y[2]:64>s?r(k,M,E)+y[3]:n(k,M,E)+y[4],I|=0,I=i(I,x[s]),I=0|I+T,A=T,T=E,E=i(M,10),M=k,k=I,I=0|P+l[o+w[s]],I+=16>s?n(O,D,R)+m[0]:32>s?r(O,D,R)+m[1]:48>s?a(O,D,R)+m[2]:64>s?t(O,D,R)+m[3]:e(O,D,R)+m[4],I|=0,I=i(I,S[s]),I=0|I+B,P=B,B=R,R=i(D,10),D=O,O=I;I=0|f[1]+M+R,f[1]=0|f[2]+E+B,f[2]=0|f[3]+T+P,f[3]=0|f[4]+A+O,f[4]=0|f[0]+k+D,f[0]=I},_doFinalize:function(){var e,t,a,r,n=this._data,i=n.words,l=8*this._nDataBytes,o=8*n.sigBytes;for(i[o>>>5]|=128<<24-o%32,i[14+(o+64>>>9<<4)]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),n.sigBytes=4*(i.length+1),this._process(),e=this._hash,t=e.words,a=0;5>a;a++)r=t[a],t[a]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var e=c.clone.call(this);return e._hash=this._hash.clone(),e}});l.RIPEMD160=c._createHelper(y),l.HmacRIPEMD160=c._createHmacHelper(y)}(Math),function(){var e=s,t=e.lib,a=t.Base,r=e.enc,n=r.Utf8,i=e.algo;i.HMAC=a.extend({init:function(e,t){var a,r,i,l,o,s,u;for(e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t)),a=e.blockSize,r=4*a,t.sigBytes>r&&(t=e.finalize(t)),t.clamp(),i=this._oKey=t.clone(),l=this._iKey=t.clone(),o=i.words,s=l.words,u=0;a>u;u++)o[u]^=1549556828,s[u]^=909522486;i.sigBytes=l.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,a=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(a))}})}(),function(){var e=s,t=e.lib,a=t.Base,r=t.WordArray,n=e.algo,i=n.SHA1,l=n.HMAC,o=n.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var a,n,i,o,s,u,c,f=this.cfg,h=l.create(f.hasher,e),d=r.create(),b=r.create([1]),p=d.words,v=b.words,g=f.keySize,y=f.iterations;p.lengths;s++)for(o=h.finalize(o),h.reset(),u=o.words,c=0;i>c;c++)n[c]^=u[c];d.concat(a),v[0]++}return d.sigBytes=4*g,d}});e.PBKDF2=function(e,t,a){return o.create(a).compute(e,t)}}(),function(){var e=s,t=e.lib,a=t.Base,r=t.WordArray,n=e.algo,i=n.MD5,l=n.EvpKDF=a.extend({cfg:a.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var a,n,i=this.cfg,l=i.hasher.create(),o=r.create(),s=o.words,u=i.keySize,c=i.iterations;s.lengthn;n++)a=l.finalize(a),l.reset();o.concat(a)}return o.sigBytes=4*u,o}});e.EvpKDF=function(e,t,a){return l.create(a).compute(e,t)}}(),function(){var e=s,t=e.lib,a=t.WordArray,r=e.algo,n=r.SHA256,i=r.SHA224=n.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=n._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=n._createHelper(i),e.HmacSHA224=n._createHmacHelper(i)}(),function(e){var t=s,a=t.lib,r=a.Base,n=a.WordArray,i=t.x64={};i.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=r.extend({init:function(t,a){t=this.words=t||[],this.sigBytes=a!=e?a:8*t.length},toX32:function(){var e,t,a=this.words,r=a.length,i=[];for(e=0;r>e;e++)t=a[e],i.push(t.high),i.push(t.low);return n.create(i,this.sigBytes)},clone:function(){var e,t=r.clone.call(this),a=t.words=this.words.slice(0),n=a.length;for(e=0;n>e;e++)a[e]=a[e].clone();return t}})}(),function(e){var t,a,r=s,n=r.lib,i=n.WordArray,l=n.Hasher,o=r.x64,u=o.Word,c=r.algo,f=[],h=[],d=[];!function(){var e,t,a,r,n,i,l,o,s,c=1,b=0;for(e=0;24>e;e++)f[c+5*b]=(e+1)*(e+2)/2%64,t=b%5,a=(2*c+3*b)%5,c=t,b=a;for(c=0;5>c;c++)for(b=0;5>b;b++)h[c+5*b]=b+(2*c+3*b)%5*5;for(r=1,n=0;24>n;n++){for(i=0,l=0,o=0;7>o;o++)1&r&&(s=(1<s?l^=1<e;e++)t[e]=u.create()}(),a=c.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){var e,t=this._state=[];for(e=0;25>e;e++)t[e]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,a){var r,n,i,l,o,s,u,c,b,p,v,g,y,m,_,w,x,S,A,k,M,E,T,P,O,D=this._state,R=this.blockSize/2;for(r=0;R>r;r++)n=e[a+2*r],i=e[a+2*r+1],n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),l=D[r],l.high^=i,l.low^=n;for(o=0;24>o;o++){for(s=0;5>s;s++){for(u=0,c=0,b=0;5>b;b++)l=D[s+5*b],u^=l.high,c^=l.low;p=t[s],p.high=u,p.low=c}for(s=0;5>s;s++)for(v=t[(s+4)%5],g=t[(s+1)%5],y=g.high,m=g.low,u=v.high^(y<<1|m>>>31),c=v.low^(m<<1|y>>>31),b=0;5>b;b++)l=D[s+5*b],l.high^=u,l.low^=c;for(_=1;25>_;_++)l=D[_],w=l.high,x=l.low,S=f[_],32>S?(u=w<>>32-S,c=x<>>32-S):(u=x<>>64-S,c=w<>>64-S),A=t[h[_]],A.high=u,A.low=c;for(k=t[0],M=D[0],k.high=M.high,k.low=M.low,s=0;5>s;s++)for(b=0;5>b;b++)_=s+5*b,l=D[_],E=t[_],T=t[(s+1)%5+5*b],P=t[(s+2)%5+5*b],l.high=E.high^~T.high&P.high,l.low=E.low^~T.low&P.low;l=D[0],O=d[o],l.high^=O.high,l.low^=O.low}},_doFinalize:function(){var t,a,r,n,l,o,s,u,c,f,h=this._data,d=h.words;for(this._nDataBytes,t=8*h.sigBytes,a=32*this.blockSize,d[t>>>5]|=1<<24-t%32,d[(e.ceil((t+1)/a)*a>>>5)-1]|=128,h.sigBytes=4*d.length,this._process(),r=this._state,n=this.cfg.outputLength/8,l=n/8,o=[],s=0;l>s;s++)u=r[s],c=u.high,f=u.low,c=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),o.push(f),o.push(c);return new i.init(o,n)},clone:function(){var e,t=l.clone.call(this),a=t._state=this._state.slice(0);for(e=0;25>e;e++)a[e]=a[e].clone();return t}}),r.SHA3=l._createHelper(a),r.HmacSHA3=l._createHmacHelper(a)}(Math),function(){function e(){return l.create.apply(l,arguments)}var t,a=s,r=a.lib,n=r.Hasher,i=a.x64,l=i.Word,o=i.WordArray,u=a.algo,c=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],f=[];!function(){for(var t=0;80>t;t++)f[t]=e()}(),t=u.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(e,t){var a,r,n,i,l,o,s,u,h,d,b,p,v,g,y,m,_,w,x,S,A,k,M,E,T,P,O,D,R,B,I,C,L,j,F,N=this._hash.words,z=N[0],$=N[1],q=N[2],U=N[3],H=N[4],V=N[5],W=N[6],K=N[7],X=z.high,G=z.low,Y=$.high,Z=$.low,J=q.high,Q=q.low,ee=U.high,te=U.low,ae=H.high,re=H.low,ne=V.high,ie=V.low,le=W.high,oe=W.low,se=K.high,ue=K.low,ce=X,fe=G,he=Y,de=Z,be=J,pe=Q,ve=ee,ge=te,ye=ae,me=re,_e=ne,we=ie,xe=le,Se=oe,Ae=se,ke=ue;for(a=0;80>a;a++)i=f[a],16>a?(n=i.high=0|e[t+2*a],r=i.low=0|e[t+2*a+1]):(l=f[a-15],o=l.high,s=l.low,u=(o>>>1|s<<31)^(o>>>8|s<<24)^o>>>7,h=(s>>>1|o<<31)^(s>>>8|o<<24)^(s>>>7|o<<25),d=f[a-2],b=d.high,p=d.low,v=(b>>>19|p<<13)^(b<<3|p>>>29)^b>>>6,g=(p>>>19|b<<13)^(p<<3|b>>>29)^(p>>>6|b<<26),y=f[a-7],m=y.high,_=y.low,w=f[a-16],x=w.high,S=w.low,r=h+_,n=u+m+(h>>>0>r>>>0?1:0),r+=g,n=n+v+(g>>>0>r>>>0?1:0),r+=S,n=n+x+(S>>>0>r>>>0?1:0),i.high=n,i.low=r),A=ye&_e^~ye&xe,k=me&we^~me&Se,M=ce&he^ce&be^he&be,E=fe&de^fe&pe^de&pe,T=(ce>>>28|fe<<4)^(ce<<30|fe>>>2)^(ce<<25|fe>>>7),P=(fe>>>28|ce<<4)^(fe<<30|ce>>>2)^(fe<<25|ce>>>7),O=(ye>>>14|me<<18)^(ye>>>18|me<<14)^(ye<<23|me>>>9),D=(me>>>14|ye<<18)^(me>>>18|ye<<14)^(me<<23|ye>>>9),R=c[a],B=R.high,I=R.low,C=ke+D,L=Ae+O+(ke>>>0>C>>>0?1:0),C+=k,L=L+A+(k>>>0>C>>>0?1:0),C+=I,L=L+B+(I>>>0>C>>>0?1:0),C+=r,L=L+n+(r>>>0>C>>>0?1:0),j=P+E,F=T+M+(P>>>0>j>>>0?1:0),Ae=xe,ke=Se,xe=_e,Se=we,_e=ye,we=me,me=0|ge+C,ye=0|ve+L+(ge>>>0>me>>>0?1:0),ve=be,ge=pe,be=he,pe=de,he=ce,de=fe,fe=0|C+j,ce=0|L+F+(C>>>0>fe>>>0?1:0);G=z.low=G+fe,z.high=X+ce+(fe>>>0>G>>>0?1:0),Z=$.low=Z+de,$.high=Y+he+(de>>>0>Z>>>0?1:0),Q=q.low=Q+pe,q.high=J+be+(pe>>>0>Q>>>0?1:0),te=U.low=te+ge,U.high=ee+ve+(ge>>>0>te>>>0?1:0),re=H.low=re+me,H.high=ae+ye+(me>>>0>re>>>0?1:0),ie=V.low=ie+we,V.high=ne+_e+(we>>>0>ie>>>0?1:0),oe=W.low=oe+Se,W.high=le+xe+(Se>>>0>oe>>>0?1:0),ue=K.low=ue+ke,K.high=se+Ae+(ke>>>0>ue>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(a/4294967296),t[31+(r+128>>>10<<5)]=a,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),a.SHA512=n._createHelper(t),a.HmacSHA512=n._createHmacHelper(t)}(),function(){var e=s,t=e.x64,a=t.Word,r=t.WordArray,n=e.algo,i=n.SHA512,l=n.SHA384=i.extend({_doReset:function(){this._hash=new r.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=i._createHelper(l),e.HmacSHA384=i._createHmacHelper(l)}(),s.lib.Cipher||function(e){var t,a,r,n,i,l,o,u,c,f,h,d,b,p,v,g,y=s,m=y.lib,_=m.Base,w=m.WordArray,x=m.BufferedBlockAlgorithm,S=y.enc;S.Utf8,t=S.Base64,a=y.algo,r=a.EvpKDF,n=m.Cipher=x.extend({cfg:_.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,a){this.cfg=this.cfg.extend(a),this._xformMode=e,this._key=t,this.reset()},reset:function(){x.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?g:b}return function(t){return{encrypt:function(a,r,n){return e(r).encrypt(t,a,r,n)},decrypt:function(a,r,n){return e(r).decrypt(t,a,r,n)}}}}()}),m.StreamCipher=n.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),i=y.mode={},l=m.BlockCipherMode=_.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),o=i.CBC=function(){function t(t,a,r){var n,i,l=this._iv;for(l?(n=l,this._iv=e):n=this._prevBlock,i=0;r>i;i++)t[a+i]^=n[i]}var a=l.extend();return a.Encryptor=a.extend({processBlock:function(e,a){var r=this._cipher,n=r.blockSize;t.call(this,e,a,n),r.encryptBlock(e,a),this._prevBlock=e.slice(a,a+n)}}),a.Decryptor=a.extend({processBlock:function(e,a){var r=this._cipher,n=r.blockSize,i=e.slice(a,a+n);r.decryptBlock(e,a),t.call(this,e,a,n),this._prevBlock=i}}),a}(),u=y.pad={},c=u.Pkcs7={pad:function(e,t){var a,r,n=4*t,i=n-e.sigBytes%n,l=i<<24|i<<16|i<<8|i,o=[];for(a=0;i>a;a+=4)o.push(l);r=w.create(o,i),e.concat(r)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m.BlockCipher=n.extend({cfg:n.cfg.extend({mode:o,padding:c}),reset:function(){var e,t,a,r;n.reset.call(this),t=this.cfg,a=t.iv,r=t.mode,this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,a&&a.words):(this._mode=e.call(r,this,a&&a.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),f=m.CipherParams=_.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),h=y.format={},d=h.OpenSSL={stringify:function(e){var a,r=e.ciphertext,n=e.salt;return a=n?w.create([1398893684,1701076831]).concat(n).concat(r):r,a.toString(t)},parse:function(e){var a,r=t.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(a=w.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),f.create({ciphertext:r,salt:a})}},b=m.SerializableCipher=_.extend({cfg:_.extend({format:d}),encrypt:function(e,t,a,r){var n,i,l;return r=this.cfg.extend(r),n=e.createEncryptor(a,r),i=n.finalize(t),l=n.cfg,f.create({ciphertext:i,key:a,iv:l.iv,algorithm:e,mode:l.mode,padding:l.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,a,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var n=e.createDecryptor(a,r).finalize(t.ciphertext);return n},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),p=y.kdf={},v=p.OpenSSL={execute:function(e,t,a,n){var i,l;return n||(n=w.random(8)),i=r.create({keySize:t+a}).compute(e,n),l=w.create(i.words.slice(t),4*a),i.sigBytes=4*t,f.create({key:i,iv:l,salt:n})}},g=m.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:v}),encrypt:function(e,t,a,r){var n,i;return r=this.cfg.extend(r),n=r.kdf.execute(a,e.keySize,e.ivSize),r.iv=n.iv,i=b.encrypt.call(this,e,t,n.key,r),i.mixIn(n),i},decrypt:function(e,t,a,r){var n;return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(a,e.keySize,e.ivSize,t.salt),r.iv=n.iv,b.decrypt.call(this,e,t,n.key,r)}})}(),s.mode.CFB=function(){function e(e,t,a,r){var n,i,l=this._iv;for(l?(n=l.slice(0),this._iv=void 0):n=this._prevBlock,r.encryptBlock(n,0),i=0;a>i;i++)e[t+i]^=n[i]}var t=s.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(t,a){var r=this._cipher,n=r.blockSize;e.call(this,t,a,n,r),this._prevBlock=t.slice(a,a+n)}}),t.Decryptor=t.extend({processBlock:function(t,a){var r=this._cipher,n=r.blockSize,i=t.slice(a,a+n);e.call(this,t,a,n,r),this._prevBlock=i}}),t}(),s.mode.ECB=function(){var e=s.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e}(),s.pad.AnsiX923={pad:function(e,t){var a=e.sigBytes,r=4*t,n=r-a%r,i=a+n-1;e.clamp(),e.words[i>>>2]|=n<<24-i%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},s.pad.Iso10126={pad:function(e,t){var a=4*t,r=a-e.sigBytes%a;e.concat(s.lib.WordArray.random(r-1)).concat(s.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},s.pad.Iso97971={pad:function(e,t){e.concat(s.lib.WordArray.create([2147483648],1)),s.pad.ZeroPadding.pad(e,t)},unpad:function(e){s.pad.ZeroPadding.unpad(e),e.sigBytes--}},s.mode.OFB=function(){var e=s.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var a,r=this._cipher,n=r.blockSize,i=this._iv,l=this._keystream;for(i&&(l=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(l,0),a=0;n>a;a++)e[t+a]^=l[a]}});return e.Decryptor=t,e}(),s.pad.NoPadding={pad:function(){},unpad:function(){}},function(){var e=s,t=e.lib,a=t.CipherParams,r=e.enc,n=r.Hex,i=e.format;i.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return a.create({ciphertext:t})}}}(),function(){var e,t,a=s,r=a.lib,n=r.BlockCipher,i=a.algo,l=[],o=[],u=[],c=[],f=[],h=[],d=[],b=[],p=[],v=[];!function(){var e,t,a,r,n,i,s,g,y=[];for(e=0;256>e;e++)y[e]=128>e?e<<1:283^e<<1;for(t=0,a=0,e=0;256>e;e++)r=a^a<<1^a<<2^a<<3^a<<4,r=r>>>8^255&r^99,l[t]=r,o[r]=t,n=y[t],i=y[n],s=y[i],g=257*y[r]^16843008*r,u[t]=g<<24|g>>>8,c[t]=g<<16|g>>>16,f[t]=g<<8|g>>>24,h[t]=g,g=16843009*s^65537*i^257*n^16843008*t,d[r]=g<<24|g>>>8,b[r]=g<<16|g>>>16,p[r]=g<<8|g>>>24,v[r]=g,t?(t=n^y[y[y[s^n]]],a^=y[y[a]]):t=a=1}(),e=[0,1,2,4,8,16,32,64,128,27,54],t=i.AES=n.extend({_doReset:function(){var t,a,r,n,i,o,s,u,c,f;if(!this._nRounds||this._keyPriorReset!==this._key){for(a=this._keyPriorReset=this._key,r=a.words,n=a.sigBytes/4,i=this._nRounds=n+6,o=4*(i+1),s=this._keySchedule=[],u=0;o>u;u++)n>u?s[u]=r[u]:(t=s[u-1],u%n?n>6&&4==u%n&&(t=l[t>>>24]<<24|l[255&t>>>16]<<16|l[255&t>>>8]<<8|l[255&t]):(t=t<<8|t>>>24,t=l[t>>>24]<<24|l[255&t>>>16]<<16|l[255&t>>>8]<<8|l[255&t],t^=e[0|u/n]<<24),s[u]=s[u-n]^t);for(c=this._invKeySchedule=[],f=0;o>f;f++)u=o-f,t=f%4?s[u]:s[u-4],c[f]=4>f||4>=u?t:d[l[t>>>24]]^b[l[255&t>>>16]]^p[l[255&t>>>8]]^v[l[255&t]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,u,c,f,h,l)},decryptBlock:function(e,t){var a=e[t+1];e[t+1]=e[t+3],e[t+3]=a,this._doCryptBlock(e,t,this._invKeySchedule,d,b,p,v,o),a=e[t+1],e[t+1]=e[t+3],e[t+3]=a},_doCryptBlock:function(e,t,a,r,n,i,l,o){var s,u,c,f,h,d=this._nRounds,b=e[t]^a[0],p=e[t+1]^a[1],v=e[t+2]^a[2],g=e[t+3]^a[3],y=4;for(s=1;d>s;s++)u=r[b>>>24]^n[255&p>>>16]^i[255&v>>>8]^l[255&g]^a[y++],c=r[p>>>24]^n[255&v>>>16]^i[255&g>>>8]^l[255&b]^a[y++],f=r[v>>>24]^n[255&g>>>16]^i[255&b>>>8]^l[255&p]^a[y++],h=r[g>>>24]^n[255&b>>>16]^i[255&p>>>8]^l[255&v]^a[y++],b=u,p=c,v=f,g=h;u=(o[b>>>24]<<24|o[255&p>>>16]<<16|o[255&v>>>8]<<8|o[255&g])^a[y++],c=(o[p>>>24]<<24|o[255&v>>>16]<<16|o[255&g>>>8]<<8|o[255&b])^a[y++],f=(o[v>>>24]<<24|o[255&g>>>16]<<16|o[255&b>>>8]<<8|o[255&p])^a[y++],h=(o[g>>>24]<<24|o[255&b>>>16]<<16|o[255&p>>>8]<<8|o[255&v])^a[y++],e[t]=u,e[t+1]=c,e[t+2]=f,e[t+3]=h},keySize:8}),a.AES=n._createHelper(t)}(),function(){function e(e,t){var a=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=a,this._lBlock^=a<>>e^this._lBlock)&t;this._lBlock^=a,this._rBlock^=a<e;e++)t=u[e]-1,h[e]=1&s[t>>>5]>>>31-t%32;for(a=this._subKeys=[],r=0;16>r;r++){for(n=a[r]=[],i=f[r],e=0;24>e;e++)n[0|e/6]|=h[(c[e]-1+i)%28]<<31-e%6,n[4+(0|e/6)]|=h[28+(c[e+24]-1+i)%28]<<31-e%6;for(n[0]=n[0]<<1|n[0]>>>31,e=1;7>e;e++)n[e]=n[e]>>>4*(e-1)+3;n[7]=n[7]<<5|n[7]>>>27}for(l=this._invSubKeys=[],e=0;16>e;e++)l[e]=a[15-e]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(a,r,n){var i,l,o,s,u,c,f;for(this._lBlock=a[r],this._rBlock=a[r+1],e.call(this,4,252645135),e.call(this,16,65535),t.call(this,2,858993459),t.call(this,8,16711935),e.call(this,1,1431655765),i=0;16>i;i++){for(l=n[i],o=this._lBlock,s=this._rBlock,u=0,c=0;8>c;c++)u|=h[c][((s^l[c])&d[c])>>>0];this._lBlock=s,this._rBlock=o^u}f=this._lBlock,this._lBlock=this._rBlock,this._rBlock=f,e.call(this,1,1431655765),t.call(this,8,16711935),t.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),a[r]=this._lBlock,a[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=l._createHelper(b),a=o.TripleDES=l.extend({_doReset:function(){var e,t,a,r=this._key,n=r.words;if(2!==n.length&&4!==n.length&&n.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");e=n.slice(0,2),t=n.length<4?n.slice(0,2):n.slice(2,4),a=n.length<6?n.slice(0,2):n.slice(4,6),this._des1=b.createEncryptor(i.create(e)),this._des2=b.createEncryptor(i.create(t)),this._des3=b.createEncryptor(i.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2}),r.TripleDES=l._createHelper(a)}(),function(){function e(){var e,t,a=this._S,r=this._i,n=this._j,i=0;for(e=0;4>e;e++)r=(r+1)%256,n=(n+a[r])%256,t=a[r],a[r]=a[n],a[n]=t,i|=a[(a[r]+a[n])%256]<<24-8*e;return this._i=r,this._j=n,i}var t,a=s,r=a.lib,n=r.StreamCipher,i=a.algo,l=i.RC4=n.extend({_doReset:function(){var e,t,a,r,n,i=this._key,l=i.words,o=i.sigBytes,s=this._S=[];for(e=0;256>e;e++)s[e]=e;for(e=0,t=0;256>e;e++)a=e%o,r=255&l[a>>>2]>>>24-a%4*8,t=(t+s[e]+r)%256,n=s[e],s[e]=s[t],s[t]=n;this._i=this._j=0},_doProcessBlock:function(t,a){t[a]^=e.call(this)},keySize:8,ivSize:0});a.RC4=n._createHelper(l),t=i.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)e.call(this)}}),a.RC4Drop=n._createHelper(t)}(),s.mode.CTRGladman=function(){function e(e){var t,a,r;return 255===(255&e>>24)?(t=255&e>>16,a=255&e>>8,r=255&e,255===t?(t=0,255===a?(a=0,255===r?r=0:++r):++a):++t,e=0,e+=t<<16,e+=a<<8,e+=r):e+=1<<24,e}function t(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var a=s.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(e,a){var r,n,i=this._cipher,l=i.blockSize,o=this._iv,s=this._counter;for(o&&(s=this._counter=o.slice(0),this._iv=void 0),t(s),r=s.slice(0),i.encryptBlock(r,0),n=0;l>n;n++)e[a+n]^=r[n]}});return a.Decryptor=r,a}(),function(){function e(){var e,t,a,r,n,i,s=this._X,u=this._C;for(e=0;8>e;e++)l[e]=u[e];for(u[0]=0|u[0]+1295307597+this._b,u[1]=0|u[1]+3545052371+(u[0]>>>0>>0?1:0),u[2]=0|u[2]+886263092+(u[1]>>>0>>0?1:0),u[3]=0|u[3]+1295307597+(u[2]>>>0>>0?1:0),u[4]=0|u[4]+3545052371+(u[3]>>>0>>0?1:0),u[5]=0|u[5]+886263092+(u[4]>>>0>>0?1:0),u[6]=0|u[6]+1295307597+(u[5]>>>0>>0?1:0),u[7]=0|u[7]+3545052371+(u[6]>>>0>>0?1:0),this._b=u[7]>>>0>>0?1:0,e=0;8>e;e++)t=s[e]+u[e],a=65535&t,r=t>>>16,n=((a*a>>>17)+a*r>>>15)+r*r,i=(0|(4294901760&t)*t)+(0|(65535&t)*t),o[e]=n^i;s[0]=0|o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16),s[1]=0|o[1]+(o[0]<<8|o[0]>>>24)+o[7],s[2]=0|o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16),s[3]=0|o[3]+(o[2]<<8|o[2]>>>24)+o[1],s[4]=0|o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16),s[5]=0|o[5]+(o[4]<<8|o[4]>>>24)+o[3],s[6]=0|o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16),s[7]=0|o[7]+(o[6]<<8|o[6]>>>24)+o[5]}var t=s,a=t.lib,r=a.StreamCipher,n=t.algo,i=[],l=[],o=[],u=n.Rabbit=r.extend({_doReset:function(){var t,a,r,n,i,l,o,s,u,c,f=this._key.words,h=this.cfg.iv;for(t=0;4>t;t++)f[t]=16711935&(f[t]<<8|f[t]>>>24)|4278255360&(f[t]<<24|f[t]>>>8);for(a=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],r=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]],this._b=0,t=0;4>t;t++)e.call(this);for(t=0;8>t;t++)r[t]^=a[7&t+4];if(h)for(n=h.words,i=n[0],l=n[1],o=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u=o>>>16|4294901760&s,c=s<<16|65535&o,r[0]^=o,r[1]^=u,r[2]^=s,r[3]^=c,r[4]^=o,r[5]^=u,r[6]^=s,r[7]^=c,t=0;4>t;t++)e.call(this)},_doProcessBlock:function(t,a){var r,n=this._X;for(e.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16,r=0;4>r;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[a+r]^=i[r]},blockSize:4,ivSize:2});t.Rabbit=r._createHelper(u)}(),s.mode.CTR=function(){var e=s.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var a,r,n=this._cipher,i=n.blockSize,l=this._iv,o=this._counter;for(l&&(o=this._counter=l.slice(0),this._iv=void 0),a=o.slice(0),n.encryptBlock(a,0),o[i-1]=0|o[i-1]+1,r=0;i>r;r++)e[t+r]^=a[r]}});return e.Decryptor=t,e}(),function(){function e(){var e,t,a,r,n,i,s=this._X,u=this._C;for(e=0;8>e;e++)l[e]=u[e];for(u[0]=0|u[0]+1295307597+this._b,u[1]=0|u[1]+3545052371+(u[0]>>>0>>0?1:0),u[2]=0|u[2]+886263092+(u[1]>>>0>>0?1:0),u[3]=0|u[3]+1295307597+(u[2]>>>0>>0?1:0),u[4]=0|u[4]+3545052371+(u[3]>>>0>>0?1:0),u[5]=0|u[5]+886263092+(u[4]>>>0>>0?1:0),u[6]=0|u[6]+1295307597+(u[5]>>>0>>0?1:0),u[7]=0|u[7]+3545052371+(u[6]>>>0>>0?1:0),this._b=u[7]>>>0>>0?1:0,e=0;8>e;e++)t=s[e]+u[e],a=65535&t,r=t>>>16,n=((a*a>>>17)+a*r>>>15)+r*r,i=(0|(4294901760&t)*t)+(0|(65535&t)*t),o[e]=n^i;s[0]=0|o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16),s[1]=0|o[1]+(o[0]<<8|o[0]>>>24)+o[7],s[2]=0|o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16),s[3]=0|o[3]+(o[2]<<8|o[2]>>>24)+o[1],s[4]=0|o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16),s[5]=0|o[5]+(o[4]<<8|o[4]>>>24)+o[3],s[6]=0|o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16),s[7]=0|o[7]+(o[6]<<8|o[6]>>>24)+o[5]}var t=s,a=t.lib,r=a.StreamCipher,n=t.algo,i=[],l=[],o=[],u=n.RabbitLegacy=r.extend({_doReset:function(){var t,a,r,n,i,l,o,s,u=this._key.words,c=this.cfg.iv,f=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],h=this._C=[u[2]<<16|u[2]>>>16,4294901760&u[0]|65535&u[1],u[3]<<16|u[3]>>>16,4294901760&u[1]|65535&u[2],u[0]<<16|u[0]>>>16,4294901760&u[2]|65535&u[3],u[1]<<16|u[1]>>>16,4294901760&u[3]|65535&u[0]];for(this._b=0,t=0;4>t;t++)e.call(this);for(t=0;8>t;t++)h[t]^=f[7&t+4];if(c)for(a=c.words,r=a[0],n=a[1],i=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),l=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),o=i>>>16|4294901760&l,s=l<<16|65535&i,h[0]^=i,h[1]^=o,h[2]^=l,h[3]^=s,h[4]^=i,h[5]^=o,h[6]^=l,h[7]^=s,t=0;4>t;t++)e.call(this)},_doProcessBlock:function(t,a){var r,n=this._X;for(e.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16,r=0;4>r;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[a+r]^=i[r]},blockSize:4,ivSize:2});t.RabbitLegacy=r._createHelper(u)}(),s.pad.ZeroPadding={pad:function(e,t){var a=4*t;e.clamp(),e.sigBytes+=a-(e.sigBytes%a||a)},unpad:function(e){var t=e.words,a=e.sigBytes-1;for(a=e.sigBytes-1;a>=0;a--)if(255&t[a>>>2]>>>24-a%4*8){e.sigBytes=a+1;break}}},function(a,r){"object"==o(t)&&"undefined"!=typeof e?r(t):(i=[t],n=r,l="function"===typeof n?n.apply(t,i):n,void 0===l||(e.exports=l))}(0,(function(e){"use strict";function t(e){return K.charAt(e)}function a(e,t){return e&t}function r(e,t){return e|t}function n(e,t){return e^t}function i(e,t){return e&~t}function l(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function o(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function u(e){var t,a,r="";for(t=0;t+3<=e.length;t+=3)a=parseInt(e.substring(t,t+3),16),r+=X.charAt(a>>6)+X.charAt(63&a);for(t+1==e.length?(a=parseInt(e.substring(t,t+1),16),r+=X.charAt(a<<2)):t+2==e.length&&(a=parseInt(e.substring(t,t+2),16),r+=X.charAt(a>>2)+X.charAt((3&a)<<4));(3&r.length)>0;)r+=G;return r}function c(e){var a,r,n="",i=0,l=0;for(a=0;ar||(0==i?(n+=t(r>>2),l=3&r,i=1):1==i?(n+=t(l<<2|r>>4),l=15&r,i=2):2==i?(n+=t(l),n+=t(r>>2),l=3&r,i=3):(n+=t(l<<2|r>>4),n+=t(15&r),i=0));return 1==i&&(n+=t(l<<2)),n}function f(e,t){function a(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}function h(e,t){return e.length>t&&(e=e.substring(0,t)+te),e}function d(){return new ue(null)}function b(e,t){return new ue(e,t)}function p(e,t,a,r,n,i){for(var l,o,s,u=16383&t,c=t>>14;--i>=0;)l=16383&this[e],o=this[e++]>>14,s=c*l+o*u,l=u*l+((16383&s)<<14)+a[r]+n,n=(l>>28)+(s>>14)+c*o,a[r++]=268435455&l;return n}function v(e,t){var a=O[e.charCodeAt(t)];return null==a?-1:a}function g(e){var t=d();return t.fromInt(e),t}function y(e){var t,a=1;return 0!=(t=e>>>16)&&(e=t,a+=16),0!=(t=e>>8)&&(e=t,a+=8),0!=(t=e>>4)&&(e=t,a+=4),0!=(t=e>>2)&&(e=t,a+=2),0!=(t=e>>1)&&(e=t,a+=1),a}function m(){return new B}function _(){if(null==C){for(C=m();I>j;){var e=Math.floor(65536*Math.random());L[j++]=255&e}for(C.init(L),j=0;jn;n+=2)r+="ff";return i="0001"+r+"00"+e,b(i,16)}function x(e,t){var a,r,n,i,l;if(t=0&&t>0;)n=e.charCodeAt(r--),128>n?a[--t]=n:n>127&&2048>n?(a[--t]=128|63&n,a[--t]=192|n>>6):(a[--t]=128|63&n,a[--t]=128|63&n>>6,a[--t]=224|n>>12);for(a[--t]=0,i=new z,l=[];t>2;){for(l[0]=0;0==l[0];)i.nextBytes(l);a[--t]=l[0]}return a[--t]=2,a[--t]=0,new ue(a)}function S(e,t){for(var a,r,n=e.toByteArray(),i=0;i=n.length)return null;for(a="";++ir?a+=String.fromCharCode(r):r>191&&224>r?(a+=String.fromCharCode((31&r)<<6|63&n[i+1]),++i):(a+=String.fromCharCode((15&r)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2);return a}function A(e){return q[e]||""}function k(e){var t,a,r;for(t in q)if(q.hasOwnProperty(t)&&(a=q[t],r=a.length,e.substr(0,r)==a))return e.substr(r);return e}var M,E,T,P,O,D,R,B,I,C,L,j,F,N,z,$,q,U,H,V,W,K="0123456789abcdefghijklmnopqrstuvwxyz",X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G="=",Y=function(e,t){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])},Y(e,t)},Z={decode:function(e){var t,a,r,n,i,l,o;if(void 0===M){for(a="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029",M={},t=0;16>t;++t)M[a.charAt(t)]=t;for(a=a.toLowerCase(),t=10;16>t;++t)M[a.charAt(t)]=t;for(t=0;t=2?(n[n.length]=i,i=0,l=0):i<<=4}if(l)throw new Error("Hex encoding incomplete: 4 bits missing");return n}},J={decode:function(e){var t,a,r,n,i,l,o;if(void 0===E){for(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="= \f\n\r\t \u2028\u2029",E=Object.create(null),t=0;64>t;++t)E[a.charAt(t)]=t;for(t=0;t=4?(n[n.length]=i>>16,n[n.length]=255&i>>8,n[n.length]=255&i,i=0,l=0):i<<=6}switch(l){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=i>>10;break;case 3:n[n.length]=i>>16,n[n.length]=255&i>>8}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=J.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return J.decode(e)}},Q=1e13,ee=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var a,r,n=this.buf,i=n.length;for(a=0;i>a;++a)r=n[a]*e+t,Q>r?t=0:(t=0|r/Q,r-=t*Q),n[a]=r;t>0&&(n[a]=t)},e.prototype.sub=function(e){var t,a,r=this.buf,n=r.length;for(t=0;n>t;++t)a=r[t]-e,0>a?(a+=Q,e=1):e=0,r[t]=a;for(;0===r[r.length-1];)r.pop()},e.prototype.toString=function(e){var t,a,r;if(10!=(e||10))throw new Error("only base 10 is supported");for(t=this.buf,a=t[t.length-1].toString(),r=t.length-2;r>=0;--r)a+=(Q+t[r]).toString().substring(1);return a},e.prototype.valueOf=function(){var e,t=this.buf,a=0;for(e=t.length-1;e>=0;--e)a=a*Q+t[e];return a},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),te="…",ae=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,re=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,ne=function(){function e(t,a){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=a)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(15&e>>4)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,a){var r,n="";for(r=e;t>r;++r)if(n+=this.hexByte(this.get(r)),!0!==a)switch(15&r){case 7:n+=" ";break;case 15:n+="\n";break;default:n+=" "}return n},e.prototype.isASCII=function(e,t){var a,r;for(a=e;t>a;++a)if(r=this.get(a),32>r||r>176)return!1;return!0},e.prototype.parseStringISO=function(e,t){var a,r="";for(a=e;t>a;++a)r+=String.fromCharCode(this.get(a));return r},e.prototype.parseStringUTF=function(e,t){var a,r,n="";for(a=e;t>a;)r=this.get(a++),n+=128>r?String.fromCharCode(r):r>191&&224>r?String.fromCharCode((31&r)<<6|63&this.get(a++)):String.fromCharCode((15&r)<<12|(63&this.get(a++))<<6|63&this.get(a++));return n},e.prototype.parseStringBMP=function(e,t){var a,r,n,i="";for(n=e;t>n;)a=this.get(n++),r=this.get(n++),i+=String.fromCharCode(a<<8|r);return i},e.prototype.parseTime=function(e,t,a){var r=this.parseStringISO(e,t),n=(a?ae:re).exec(r);return n?(a&&(n[1]=+n[1],n[1]+=+n[1]<70?2e3:1900),r=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4],n[5]&&(r+=":"+n[5],n[6]&&(r+=":"+n[6],n[7]&&(r+="."+n[7]))),n[8]&&(r+=" UTC","Z"!=n[8]&&(r+=n[8],n[9]&&(r+=":"+n[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){for(var a,r,n,i=this.get(e),l=i>127,o=l?255:0,s="";i==o&&++e4){for(s=i,a<<=3;0==(128&(+s^o));)s=+s<<1,--a;s="("+a+" bit)\n"}for(l&&(i-=256),r=new ee(i),n=e+1;t>n;++n)r.mulAdd(256,this.get(n));return s+r.toString()},e.prototype.parseBitString=function(e,t,a){var r,n,i,l,o=this.get(e),s=(t-e-1<<3)-o,u="("+s+" bit)\n",c="";for(r=e+1;t>r;++r){for(n=this.get(r),i=r==t-1?o:0,l=7;l>=i;--l)c+=1&n>>l?"1":"0";if(c.length>a)return u+h(c,a)}return u+c},e.prototype.parseOctetString=function(e,t,a){var r,n,i;if(this.isASCII(e,t))return h(this.parseStringISO(e,t),a);for(r=t-e,n="("+r+" byte)\n",a/=2,r>a&&(t=e+a),i=e;t>i;++i)n+=this.hexByte(this.get(i));return r>a&&(n+=te),n},e.prototype.parseOID=function(e,t,a){var r,n,i,l="",o=new ee,s=0;for(r=e;t>r;++r)if(n=this.get(r),o.mulAdd(128,127&n),s+=7,!(128&n)){if(""===l?(o=o.simplify(),o instanceof ee?(o.sub(80),l="2."+o.toString()):(i=80>o?40>o?0:1:2,l=i+"."+(o-40*i))):l+="."+o.toString(),l.length>a)return h(l,a);o=new ee,s=0}return s>0&&(l+=".incomplete"),l},e}(),ie=function(){function e(e,t,a,r,n){if(!(r instanceof le))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=a,this.tag=r,this.sub=n}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){var t,a;if(void 0===this.tag)return null;if(void 0===e&&(e=1/0),t=this.posContent(),a=Math.abs(this.length),!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+a);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+a,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,e);case 6:return this.stream.parseOID(t,t+a,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return h(this.stream.parseStringUTF(t,t+a),e);case 18:case 19:case 20:case 21:case 22:case 26:return h(this.stream.parseStringISO(t,t+a),e);case 30:return h(this.stream.parseStringBMP(t,t+a),e);case 23:case 24:return this.stream.parseTime(t,t+a,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){var t,a,r;if(void 0===e&&(e=""),t=e+this.typeName()+" @"+this.stream.pos,this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub)for(e+=" ",a=0,r=this.sub.length;r>a;++a)t+=this.sub[a].toPrettyString(e);return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t,a=e.get(),r=127&a;if(r==a)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===r)return null;for(a=0,t=0;r>t;++t)a=256*a+e.get();return a},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,a=2*this.length;return e.substr(t,a)},e.decode=function(t){var a,r,n,i,l,o,s,c,f;if(a=t instanceof ne?t:new ne(t,0),r=new ne(a),n=new le(a),i=e.decodeLength(a),l=a.pos,o=l-r.pos,s=null,c=function(){var t,r,n=[];if(null!==i){for(t=l+i;a.pos>6,this.tagConstructed=0!==(32&a),this.tagNumber=31&a,31==this.tagNumber){t=new ee;do{a=e.get(),t.mulAdd(128,127&a)}while(128&a);this.tagNumber=t.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),oe=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],se=(1<<26)/oe[oe.length-1],ue=function(){function e(e,t,a){null!=e&&("number"==typeof e?this.fromNumber(e,t,a):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){var a,r,n,i,l,o,s;if(this.s<0)return"-"+this.negate().toString(e);if(16==e)a=4;else if(8==e)a=3;else if(2==e)a=1;else if(32==e)a=5;else{if(4!=e)return this.toRadix(e);a=2}if(r=(1<0)for(s>s)>0&&(i=!0,l=t(n));o>=0;)a>s?(n=(this[o]&(1<>(s+=this.DB-a)):(n=this[o]>>(s-=a)&r,0>=s&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(l+=t(n));return i?l:"0"},e.prototype.negate=function(){var t=d();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t,a=this.s-e.s;if(0!=a)return a;if(t=this.t,a=t-e.t,0!=a)return this.s<0?-a:a;for(;--t>=0;)if(0!=(a=this[t]-e[t]))return a;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+y(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var a=d();return this.abs().divRemTo(t,null,a),this.s<0&&a.compareTo(e.ZERO)>0&&t.subTo(a,a),a},e.prototype.modPowInt=function(e,t){var a;return a=256>e||t.isEven()?new fe(t):new he(t),this.exp(e,a)},e.prototype.clone=function(){var e=d();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e,t,a,r=this.t,n=[];if(n[0]=this.s,e=this.DB-r*this.DB%8,a=0,r-- >0)for(e>e)!=(this.s&this.DM)>>e&&(n[a++]=t|this.s<=0;)8>e?(t=(this[r]&(1<>(e+=this.DB-8)):(t=255&this[r]>>(e-=8),0>=e&&(e+=this.DB,--r)),0!=(128&t)&&(t|=-256),0==a&&(128&this.s)!=(128&t)&&++a,(a>0||t!=this.s)&&(n[a++]=t);return n},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=d();return this.bitwiseTo(e,a,t),t},e.prototype.or=function(e){var t=d();return this.bitwiseTo(e,r,t),t},e.prototype.xor=function(e){var t=d();return this.bitwiseTo(e,n,t),t},e.prototype.andNot=function(e){var t=d();return this.bitwiseTo(e,i,t),t},e.prototype.not=function(){var e,t=d();for(e=0;ee?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=d();return 0>e?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e=this.t?0!=this.s:0!=(this[t]&1<=p)return v;if(a=18>p?1:48>p?3:144>p?4:768>p?5:6,r=8>p?new fe(t):t.isEven()?new de(t):new he(t),n=[],i=3,l=a-1,o=(1<1)for(s=d(),r.sqrTo(n[1],s);o>=i;)n[i]=d(),r.mulTo(s,n[i-2],n[i]),i+=2;for(u=e.t-1,f=!0,h=d(),p=y(e[u])-1;u>=0;){for(p>=l?c=e[u]>>p-l&o:(c=(e[u]&(1<0&&(c|=e[u-1]>>this.DB+p-l)),i=a;0==(1&c);)c>>=1,--i;if((p-=i)<0&&(p+=this.DB,--u),f)n[c].copyTo(v),f=!1;else{for(;i>1;)r.sqrTo(v,h),r.sqrTo(h,v),i-=2;i>0?r.sqrTo(v,h):(b=v,v=h,h=b),r.mulTo(h,n[c],v)}for(;u>=0&&0==(e[u]&1<=0?(a.subTo(r,a),s&&n.subTo(l,n),i.subTo(o,i)):(r.subTo(a,r),s&&l.subTo(n,l),o.subTo(i,o))}return 0!=r.compareTo(e.ONE)?e.ZERO:o.compareTo(t)>=0?o.subtract(t):o.signum()<0?(o.addTo(t,o),o.signum()<0?o.add(t):o):o},e.prototype.pow=function(e){return this.exp(e,new ce)},e.prototype.gcd=function(e){var t,a,r,n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0&&(t=n,n=i,i=t),a=n.getLowestSetBit(),r=i.getLowestSetBit(),0>r)return n;for(r>a&&(r=a),r>0&&(n.rShiftTo(r,n),i.rShiftTo(r,i));n.signum()>0;)(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i));return r>0&&i.lShiftTo(r,i),i},e.prototype.isProbablePrime=function(e){var t,a,r,n=this.abs();if(1==n.t&&n[0]<=oe[oe.length-1]){for(t=0;ta;)a*=oe[r++];for(a=n.modInt(a);r>t;)if(0==a%oe[t++])return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=0>e?-1:0,e>0?this[0]=e:-1>e?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,a){var r,n,i,l,o;if(16==a)r=4;else if(8==a)r=3;else if(256==a)r=8;else if(2==a)r=1;else if(32==a)r=5;else{if(4!=a)return void this.fromRadix(t,a);r=2}for(this.t=0,this.s=0,n=t.length,i=!1,l=0;--n>=0;)o=8==r?255&+t[n]:v(t,n),0>o?"-"==t.charAt(n)&&(i=!0):(i=!1,0==l?this[this.t++]=o:l+r>this.DB?(this[this.t-1]|=(o&(1<>this.DB-l):this[this.t-1]|=o<=this.DB&&(l-=this.DB));8==r&&0!=(128&+t[0])&&(this.s=-1,l>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var a;for(a=this.t-1;a>=0;--a)t[a+e]=this[a];for(a=e-1;a>=0;--a)t[a]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var a=e;a=0;--a)t[a+l+1]=this[a]>>n|o,o=(this[a]&i)<=0;--a)t[a]=0;t[l]=o,t.t=this.t+l+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){var a,r,n,i,l;if(t.s=this.s,a=Math.floor(e/this.DB),a>=this.t)t.t=0;else{for(r=e%this.DB,n=this.DB-r,i=(1<>r,l=a+1;l>r;r>0&&(t[this.t-a-1]|=(this.s&i)<a;)r+=this[a]-e[a],t[a++]=r&this.DM,r>>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;a>=this.DB;r-=e.s}t.s=0>r?-1:0,-1>r?t[a++]=this.DV+r:r>0&&(t[a++]=r),t.t=a,t.clamp()},e.prototype.multiplyTo=function(t,a){var r=this.abs(),n=t.abs(),i=r.t;for(a.t=i+n.t;--i>=0;)a[i]=0;for(i=0;i=0;)e[r]=0;for(r=0;r=a.DV&&(e[r+a.t]-=a.DV,e[r+a.t+1]=1);e.t>0&&(e[e.t-1]+=a.am(r,a[r],e,2*r,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,a,r){var n,i,l,o,s,u,c,f,h,b,p,v,g,m,_,w=t.abs();if(!(w.t<=0)){if(n=this.abs(),n.t0?(w.lShiftTo(s,i),n.lShiftTo(s,r)):(w.copyTo(i),n.copyTo(r)),u=i.t,c=i[u-1],0!=c){for(f=c*(1<1?i[u-2]>>this.F2:0),h=this.FV/f,b=(1<=0&&(r[r.t++]=1,r.subTo(m,r)),e.ONE.dlShiftTo(u,m),m.subTo(i,i);i.t=0;)if(_=r[--v]==c?this.DM:Math.floor(r[v]*h+(r[v-1]+p)*b),(r[v]+=i.am(0,_,r,g,0,u))<_)for(i.dlShiftTo(g,m),r.subTo(m,r);r[v]<--_;)r.subTo(m,r);null!=a&&(r.drShiftTo(u,a),l!=o&&e.ZERO.subTo(a,a)),r.t=u,r.clamp(),s>0&&r.rShiftTo(s,r),0>l&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){var e,t;return this.t<1?0:(e=this[0],0==(1&e)?0:(t=3&e,t=15&t*(2-(15&e)*t),t=255&t*(2-(255&e)*t),t=65535&t*(2-(65535&(65535&e)*t)),t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t))},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,a){var r,n,i,l,o;if(t>4294967295||1>t)return e.ONE;for(r=d(),n=d(),i=a.convert(this),l=y(t)-1,i.copyTo(r);--l>=0;)a.sqrTo(r,n),(t&1<0?a.mulTo(n,i,r):(o=r,r=n,n=o);return a.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){var t,a,r,n,i,l;if(null==e&&(e=10),0==this.signum()||2>e||e>36)return"0";for(t=this.chunkSize(e),a=Math.pow(e,t),r=g(a),n=d(),i=d(),l="",this.divRemTo(r,n,i);n.signum()>0;)l=(a+i.intValue()).toString(e).substr(1)+l,n.divRemTo(r,n,i);return i.intValue().toString(e)+l},e.prototype.fromRadix=function(t,a){var r,n,i,l,o,s,u;for(this.fromInt(0),null==a&&(a=10),r=this.chunkSize(a),n=Math.pow(a,r),i=!1,l=0,o=0,s=0;su?"-"==t.charAt(s)&&0==this.signum()&&(i=!0):(o=a*o+u,++l>=r&&(this.dMultiply(n),this.dAddOffset(o,0),l=0,o=0));l>0&&(this.dMultiply(Math.pow(a,l)),this.dAddOffset(o,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,a,n){var i,l;if("number"==typeof a)if(2>t)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),r,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(a);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else i=[],l=7&t,i.length=1+(t>>3),a.nextBytes(i),l>0?i[0]&=(1<r;++r)a[r]=t(this[r],e[r]);if(e.ta;)r+=this[a]+e[a],t[a++]=r&this.DM,r>>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;a>=this.DB;r+=e.s}t.s=0>r?-1:0,r>0?t[a++]=r:-1>r&&(t[a++]=this.DV+r),t.t=a,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,a){var r,n=Math.min(this.t+e.t,t);for(a.s=0,a.t=n;n>0;)a[--n]=0;for(r=a.t-this.t;r>n;++n)a[n+this.t]=this.am(0,e[n],a,n,0,this.t);for(r=Math.min(e.t,t);r>n;++n)this.am(0,e[n],a,n,0,t-n);a.clamp()},e.prototype.multiplyUpperTo=function(e,t,a){--t;var r=a.t=this.t+e.t-t;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(t-this.t,0);r=e)return 0;if(t=this.DV%e,a=this.s<0?e-1:0,this.t>0)if(0==t)a=this[0]%e;else for(r=this.t-1;r>=0;--r)a=(t*a+this[r])%e;return a},e.prototype.millerRabin=function(t){var a,r,n,i,l,o=this.subtract(e.ONE),s=o.getLowestSetBit();if(0>=s)return!1;for(a=o.shiftRight(s),t=t+1>>1,t>oe.length&&(t=oe.length),r=d(),n=0;t>n;++n)if(r.fromInt(oe[Math.floor(Math.random()*oe.length)]),i=r.modPow(a,this),0!=i.compareTo(e.ONE)&&0!=i.compareTo(o)){for(l=1;l++n?void t(l):(n>r&&(n=r),n>0&&(l.rShiftTo(n,l),o.rShiftTo(n,o)),i=function(){(r=l.getLowestSetBit())>0&&l.rShiftTo(r,l),(r=o.getLowestSetBit())>0&&o.rShiftTo(r,o),l.compareTo(o)>=0?(l.subTo(o,l),l.rShiftTo(1,l)):(o.subTo(l,o),o.rShiftTo(1,o)),l.signum()>0?setTimeout(i,0):(n>0&&o.lShiftTo(n,o),setTimeout((function(){t(o)}),0))},void setTimeout(i,10))},e.prototype.fromNumberAsync=function(t,a,n,i){var l,o,s,u;"number"==typeof a?2>t?this.fromInt(1):(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),r,this),this.isEven()&&this.dAddOffset(1,0),l=this,o=function(){l.dAddOffset(2,0),l.bitLength()>t&&l.subTo(e.ONE.shiftLeft(t-1),l),l.isProbablePrime(a)?setTimeout((function(){i()}),0):setTimeout(o,0)},setTimeout(o,0)):(s=[],u=7&t,s.length=1+(t>>3),a.nextBytes(s),u>0?s[0]&=(1<=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,a){e.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),he=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=d();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(var t,a,r;e.t<=this.mt2;)e[e.t++]=0;for(t=0;t>15)*this.mpl&this.um)<<15)&e.DM,a=t+this.m.t,e[a]+=this.m.am(0,r,e,t,0,this.m.t);e[a]>=e.DV;)e[a]-=e.DV,e[++a]++;e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,a){e.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),de=function(){function e(e){this.m=e,this.r2=d(),this.q3=d(),ue.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=d();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,a){e.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();for(ue.prototype.am=p,T=28,ue.prototype.DB=T,ue.prototype.DM=(1<=R;++R)O[D++]=R;for(D="a".charCodeAt(0),R=10;36>R;++R)O[D++]=R;for(D="A".charCodeAt(0),R=10;36>R;++R)O[D++]=R;if(ue.ZERO=g(0),ue.ONE=g(1),B=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,a,r;for(t=0;256>t;++t)this.S[t]=t;for(a=0,t=0;256>t;++t)a=255&a+this.S[t]+e[t%e.length],r=this.S[t],this.S[t]=this.S[a],this.S[a]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=255&this.i+1,this.j=255&this.j+this.S[this.i],e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[255&e+this.S[this.i]]},e}(),I=256,L=null,null==L&&(L=[],j=0,F=void 0,s&&s.getRandomValues))for(N=new Uint32Array(256),s.getRandomValues(N),F=0;F0&&t.length>0?(this.n=b(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t,a,r=x(e,this.n.bitLength()+7>>3);return null==r?null:(t=this.doPublic(r),null==t?null:(a=t.toString(16),0==(1&a.length)?a:"0"+a))},e.prototype.setPrivate=function(e,t,a){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=b(e,16),this.e=parseInt(t,16),this.d=b(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,a,r,n,i,l,o){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=b(e,16),this.e=parseInt(t,16),this.d=b(a,16),this.p=b(r,16),this.q=b(n,16),this.dmp1=b(i,16),this.dmq1=b(l,16),this.coeff=b(o,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var a,r,n,i,l,o=new z,s=e>>1;for(this.e=parseInt(t,16),a=new ue(t,16);;){for(;this.p=new ue(e-s,1,o),0!=this.p.subtract(ue.ONE).gcd(a).compareTo(ue.ONE)||!this.p.isProbablePrime(10););for(;this.q=new ue(s,1,o),0!=this.q.subtract(ue.ONE).gcd(a).compareTo(ue.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0&&(r=this.p,this.p=this.q,this.q=r),n=this.p.subtract(ue.ONE),i=this.q.subtract(ue.ONE),l=n.multiply(i),0==l.gcd(a).compareTo(ue.ONE)){this.n=this.p.multiply(this.q),this.d=a.modInverse(l),this.dmp1=this.d.mod(n),this.dmq1=this.d.mod(i),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=b(e,16),a=this.doPrivate(t);return null==a?null:S(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,a){var r,n,i,l=new z,o=e>>1;this.e=parseInt(t,16),r=new ue(t,16),n=this,i=function(){var t=function(){var e,t,l,o;n.p.compareTo(n.q)<=0&&(e=n.p,n.p=n.q,n.q=e),t=n.p.subtract(ue.ONE),l=n.q.subtract(ue.ONE),o=t.multiply(l),0==o.gcd(r).compareTo(ue.ONE)?(n.n=n.p.multiply(n.q),n.d=r.modInverse(o),n.dmp1=n.d.mod(t),n.dmq1=n.d.mod(l),n.coeff=n.q.modInverse(n.p),setTimeout((function(){a()}),0)):setTimeout(i,0)},s=function e(){n.q=d(),n.q.fromNumberAsync(o,1,l,(function(){n.q.subtract(ue.ONE).gcda(r,(function(a){0==a.compareTo(ue.ONE)&&n.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(e,0)}))}))},u=function t(){n.p=d(),n.p.fromNumberAsync(e-o,1,l,(function(){n.p.subtract(ue.ONE).gcda(r,(function(e){0==e.compareTo(ue.ONE)&&n.p.isProbablePrime(10)?setTimeout(s,0):setTimeout(t,0)}))}))};setTimeout(u,0)},setTimeout(i,0)},e.prototype.sign=function(e,t,a){var r,n,i=A(a),l=i+t(e).toString(),o=w(l,this.n.bitLength()/4);return null==o?null:(r=this.doPrivate(o),null==r?null:(n=r.toString(16),0==(1&n.length)?n:"0"+n))},e.prototype.verify=function(e,t,a){var r,n,i=b(t,16),l=this.doPublic(i);return null==l?null:(r=l.toString(16).replace(/^1f+00/,""),n=k(r),n==a(e).toString())},e}(),q={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},U={},U.lang={extend:function(e,t,a){var r,n,i,o;if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");if(r=function(){},r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),a){for(n in a)e.prototype[n]=a[n];i=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(e,t){for(n=0;nn;n++)r+="f";i=new ue(r,16),l=i.xor(e).add(ue.ONE),o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t,a,r,n,i,l,o,s,u=H,c=u.asn1,f=c.DERBoolean,h=c.DERInteger,d=c.DERBitString,b=c.DEROctetString,p=c.DERNull,v=c.DERObjectIdentifier,g=c.DEREnumerated,y=c.DERUTF8String,m=c.DERNumericString,_=c.DERPrintableString,w=c.DERTeletexString,x=c.DERIA5String,S=c.DERUTCTime,A=c.DERGeneralizedTime,k=c.DERSequence,M=c.DERSet,E=c.DERTaggedObject,T=c.ASN1Util.newObject,P=Object.keys(e);if(1!=P.length)throw"key of param shall be only one.";if(t=P[0],-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+t+":"))throw"undefined key: "+t;if("bool"==t)return new f(e[t]);if("int"==t)return new h(e[t]);if("bitstr"==t)return new d(e[t]);if("octstr"==t)return new b(e[t]);if("null"==t)return new p(e[t]);if("oid"==t)return new v(e[t]);if("enum"==t)return new g(e[t]);if("utf8str"==t)return new y(e[t]);if("numstr"==t)return new m(e[t]);if("prnstr"==t)return new _(e[t]);if("telstr"==t)return new w(e[t]);if("ia5str"==t)return new x(e[t]);if("utctime"==t)return new S(e[t]);if("gentime"==t)return new A(e[t]);if("seq"==t){for(a=e[t],r=[],n=0;na;a++)t+="0";for(o=t+o,a=0;at)return a;if(r=a.length/2,r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return n=128+r,n.toString(16)+a},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},H.asn1.DERAbstractString=function(e){H.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e?this.setString(e):"undefined"!=typeof e["str"]?this.setString(e["str"]):"undefined"!=typeof e["hex"]&&this.setStringHex(e["hex"]))},U.lang.extend(H.asn1.DERAbstractString,H.asn1.ASN1Object),H.asn1.DERAbstractTime=function(){H.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+6e4*e.getTimezoneOffset();var t=new Date(utc);return t},this.formatDate=function(e,t,a){var r,n,i,l,o,s,u,c,f=this.zeroPadding,h=this.localDateToUTC(e),d=String(h.getFullYear());return"utc"==t&&(d=d.substr(2,2)),r=f(String(h.getMonth()+1),2),n=f(String(h.getDate()),2),i=f(String(h.getHours()),2),l=f(String(h.getMinutes()),2),o=f(String(h.getSeconds()),2),s=d+r+n+i+l+o,!0===a&&(u=h.getMilliseconds(),0!=u&&(c=f(String(u),3),c=c.replace(/[0]+$/,""),s=s+"."+c)),s+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,a,r,n,i){var l=new Date(Date.UTC(e,t-1,a,r,n,i,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},U.lang.extend(H.asn1.DERAbstractTime,H.asn1.ASN1Object),H.asn1.DERAbstractStructured=function(e){H.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,"undefined"!=typeof e&&"undefined"!=typeof e["array"]&&(this.asn1Array=e["array"])},U.lang.extend(H.asn1.DERAbstractStructured,H.asn1.ASN1Object),H.asn1.DERBoolean=function(){H.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},U.lang.extend(H.asn1.DERBoolean,H.asn1.ASN1Object),H.asn1.DERInteger=function(e){H.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=H.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ue(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["bigint"]?this.setByBigInteger(e["bigint"]):"undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e["hex"]&&this.setValueHex(e["hex"]))},U.lang.extend(H.asn1.DERInteger,H.asn1.ASN1Object),H.asn1.DERBitString=function(e){if(void 0!==e&&"undefined"!=typeof e.obj){var t=H.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}H.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(0>e||e>7)throw"unused bits shall be from 0 to 7: u = "+e;var a="0"+e;this.hTLV=null,this.isModified=!0,this.hV=a+t},this.setByBinaryString=function(e){var t,a,r,n,i;for(e=e.replace(/0+$/,""),t=8-e.length%8,8==t&&(t=0),a=0;t>=a;a++)e+="0";for(r="",a=0;at;t++)a[t]=!1;return a},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):"undefined"!=typeof e["hex"]?this.setHexValueIncludingUnusedBits(e["hex"]):"undefined"!=typeof e["bin"]?this.setByBinaryString(e["bin"]):"undefined"!=typeof e["array"]&&this.setByBooleanArray(e["array"]))},U.lang.extend(H.asn1.DERBitString,H.asn1.ASN1Object),H.asn1.DEROctetString=function(e){if(void 0!==e&&"undefined"!=typeof e.obj){var t=H.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}H.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},U.lang.extend(H.asn1.DEROctetString,H.asn1.DERAbstractString),H.asn1.DERNull=function(){H.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},U.lang.extend(H.asn1.DERNull,H.asn1.ASN1Object),H.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},a=function(e){var a,r,n,i="",l=new ue(e,10),o=l.toString(2),s=7-o.length%7;for(7==s&&(s=0),a="",r=0;s>r;r++)a+="0";for(o=a+o,r=0;ri)throw new RangeError("requested too many random bytes");var a=o.allocUnsafe(e);if(e>0)if(e>n)for(var l=0;l=0;r--){var n=e[r];"."===n?e.splice(r,1):".."===n?(e.splice(r,1),a++):a&&(e.splice(r,1),a--)}if(t)for(;a--;a)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,a=0,r=-1,n=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!n){a=t+1;break}}else-1===r&&(n=!1,r=t+1);return-1===r?"":e.slice(a,r)}function n(e,t){if(e.filter)return e.filter(t);for(var a=[],r=0;r=-1&&!r;i--){var l=i>=0?arguments[i]:e.cwd();if("string"!==typeof l)throw new TypeError("Arguments to path.resolve must be strings");l&&(t=l+"/"+t,r="/"===l.charAt(0))}return t=a(n(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),l="/"===i(e,-1);return e=a(n(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&l&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,a){function r(e){for(var t=0;t=0;a--)if(""!==e[a])break;return t>a?[]:e.slice(t,a-t+1)}e=t.resolve(e).substr(1),a=t.resolve(a).substr(1);for(var n=r(e.split("/")),i=r(a.split("/")),l=Math.min(n.length,i.length),o=l,s=0;s=1;--i)if(t=e.charCodeAt(i),47===t){if(!n){r=i;break}}else n=!1;return-1===r?a?"/":".":a&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var a=r(e);return t&&a.substr(-1*t.length)===t&&(a=a.substr(0,a.length-t.length)),a},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,a=0,r=-1,n=!0,i=0,l=e.length-1;l>=0;--l){var o=e.charCodeAt(l);if(47!==o)-1===r&&(n=!1,r=l+1),46===o?-1===t?t=l:1!==i&&(i=1):-1!==t&&(i=-1);else if(!n){a=l+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===a+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,a){return e.substr(t,a)}:function(e,t,a){return t<0&&(t=e.length+t),e.substr(t,a)}}).call(this,a(325))},327:function(e,t,a){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var r=a(328),n=r.Buffer;function i(e,t){for(var a in e)t[a]=e[a]}function l(e,t,a){return n(e,t,a)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=l),l.prototype=Object.create(n.prototype),i(n,l),l.from=function(e,t,a){if("number"===typeof e)throw new TypeError("Argument must not be a number");return n(e,t,a)},l.alloc=function(e,t,a){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"===typeof a?r.fill(t,a):r.fill(t):r.fill(0),r},l.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n(e)},l.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},328:function(e,t,a){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=a(329),n=a(330),i=a(331);function l(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),u.alloc(+e)}function _(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var a=e.length;if(0===a)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return Q(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,a){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if(a>>>=0,t>>>=0,a<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return j(this,t,a);case"utf8":case"utf-8":return R(this,t,a);case"ascii":return C(this,t,a);case"latin1":case"binary":return L(this,t,a);case"base64":return D(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,a);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,a){var r=e[t];e[t]=e[a],e[a]=r}function S(e,t,a,r,n){if(0===e.length)return-1;if("string"===typeof a?(r=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=n?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(n)return-1;a=e.length-1}else if(a<0){if(!n)return-1;a=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:A(e,t,a,r,n);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):A(e,[t],a,r,n);throw new TypeError("val must be string, number or Buffer")}function A(e,t,a,r,n){var i,l=1,o=e.length,s=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;l=2,o/=2,s/=2,a/=2}function u(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(n){var c=-1;for(i=a;io&&(a=o-s),i=a;i>=0;i--){for(var f=!0,h=0;hn&&(r=n)):r=n;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var l=0;l239?4:u>223?3:u>191?2:1;if(n+f<=a)switch(f){case 1:u<128&&(c=u);break;case 2:i=e[n+1],128===(192&i)&&(s=(31&u)<<6|63&i,s>127&&(c=s));break;case 3:i=e[n+1],l=e[n+2],128===(192&i)&&128===(192&l)&&(s=(15&u)<<12|(63&i)<<6|63&l,s>2047&&(s<55296||s>57343)&&(c=s));break;case 4:i=e[n+1],l=e[n+2],o=e[n+3],128===(192&i)&&128===(192&l)&&128===(192&o)&&(s=(15&u)<<18|(63&i)<<12|(63&l)<<6|63&o,s>65535&&s<1114112&&(c=s))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),n+=f}return I(r)}t.Buffer=u,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:l(),t.kMaxLength=o(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,a){return c(null,e,t,a)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,a){return h(null,e,t,a)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var a=e.length,r=t.length,n=0,i=Math.min(a,r);n0&&(e=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(e+=" ... ")),""},u.prototype.compare=function(e,t,a,r,n){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||a>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=a)return 0;if(r>=n)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,r>>>=0,n>>>=0,this===e)return 0;for(var i=n-r,l=a-t,o=Math.min(i,l),s=this.slice(r,n),c=e.slice(t,a),f=0;fn)&&(a=n),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return k(this,e,t,a);case"utf8":case"utf-8":return M(this,e,t,a);case"ascii":return E(this,e,t,a);case"latin1":case"binary":return T(this,e,t,a);case"base64":return P(this,e,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,a);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function I(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);var a="",r=0;while(rr)&&(a=r);for(var n="",i=t;ia)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,a,r,n,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function $(e,t,a,r){t<0&&(t=65535+t+1);for(var n=0,i=Math.min(e.length-a,2);n>>8*(r?n:1-n)}function q(e,t,a,r){t<0&&(t=4294967295+t+1);for(var n=0,i=Math.min(e.length-a,4);n>>8*(r?n:3-n)&255}function U(e,t,a,r,n,i){if(a+r>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function H(e,t,a,r,i){return i||U(e,t,a,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,a,r,23,4),a+4}function V(e,t,a,r,i){return i||U(e,t,a,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,a,r,52,8),a+8}u.prototype.slice=function(e,t){var a,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(n*=256))r+=this[e+--t]*n;return r},u.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,a){e|=0,t|=0,a||N(e,t,this.length);var r=this[e],n=1,i=0;while(++i=n&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,a){e|=0,t|=0,a||N(e,t,this.length);var r=t,n=1,i=this[e+--r];while(r>0&&(n*=256))i+=this[e+--r]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},u.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},u.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),n.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),n.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),n.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),n.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,a,r){if(e=+e,t|=0,a|=0,!r){var n=Math.pow(2,8*a)-1;z(this,e,t,a,n,0)}var i=1,l=0;this[t]=255&e;while(++l=0&&(l*=256))this[t+i]=e/l&255;return t+a},u.prototype.writeUInt8=function(e,t,a){return e=+e,t|=0,a||z(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,a){return e=+e,t|=0,a||z(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,a){return e=+e,t|=0,a||z(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,a){return e=+e,t|=0,a||z(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):q(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,a){return e=+e,t|=0,a||z(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,a,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*a-1);z(this,e,t,a,n-1,-n)}var i=0,l=1,o=0;this[t]=255&e;while(++i>0)-o&255;return t+a},u.prototype.writeIntBE=function(e,t,a,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*a-1);z(this,e,t,a,n-1,-n)}var i=a-1,l=1,o=0;this[t+i]=255&e;while(--i>=0&&(l*=256))e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/l>>0)-o&255;return t+a},u.prototype.writeInt8=function(e,t,a){return e=+e,t|=0,a||z(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,a){return e=+e,t|=0,a||z(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,a){return e=+e,t|=0,a||z(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,a){return e=+e,t|=0,a||z(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):q(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,a){return e=+e,t|=0,a||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,a){return H(this,e,t,!0,a)},u.prototype.writeFloatBE=function(e,t,a){return H(this,e,t,!1,a)},u.prototype.writeDoubleLE=function(e,t,a){return V(this,e,t,!0,a)},u.prototype.writeDoubleBE=function(e,t,a){return V(this,e,t,!1,a)},u.prototype.copy=function(e,t,a,r){if(a||(a=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--n)e[n+t]=this[n+a];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&a<57344){if(!n){if(a>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(l+1===r){(t-=3)>-1&&i.push(239,191,189);continue}n=a;continue}if(a<56320){(t-=3)>-1&&i.push(239,191,189),n=a;continue}a=65536+(n-55296<<10|a-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,a<128){if((t-=1)<0)break;i.push(a)}else if(a<2048){if((t-=2)<0)break;i.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;i.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return i}function Z(e){for(var t=[],a=0;a>8,n=a%256,i.push(n),i.push(r)}return i}function Q(e){return r.toByteArray(K(e))}function ee(e,t,a,r){for(var n=0;n=t.length||n>=e.length)break;t[n+a]=e[n]}return n}function te(e){return e!==e}}).call(this,a(3))},329:function(e,t,a){"use strict";t.byteLength=c,t.toByteArray=h,t.fromByteArray=p;for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=l.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var a=e.indexOf("=");-1===a&&(a=t);var r=a===t?0:4-a%4;return[a,r]}function c(e){var t=u(e),a=t[0],r=t[1];return 3*(a+r)/4-r}function f(e,t,a){return 3*(t+a)/4-a}function h(e){var t,a,r=u(e),l=r[0],o=r[1],s=new i(f(e,l,o)),c=0,h=o>0?l-4:l;for(a=0;a>16&255,s[c++]=t>>8&255,s[c++]=255&t;return 2===o&&(t=n[e.charCodeAt(a)]<<2|n[e.charCodeAt(a+1)]>>4,s[c++]=255&t),1===o&&(t=n[e.charCodeAt(a)]<<10|n[e.charCodeAt(a+1)]<<4|n[e.charCodeAt(a+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t),s}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function b(e,t,a){for(var r,n=[],i=t;is?s:o+l));return 1===n?(t=e[a-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[a-2]<<8)+e[a-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},33:function(e,t,a){"use strict";(function(e){var r=a(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(34)),i=r(a(35)),l=r(a(39)),o=r(a(40)),s=r(a(44)),u=r(a(45)),c=r(a(46)),f=r(a(47)),h=r(a(48)),d=r(a(49)),b=r(a(50)),p=r(a(37)),v=r(a(36)),g=r(a(51)),y=r(a(38)),m=r(a(52)),_=r(a(53)),w=r(a(54)),x=r(a(55)),S=r(a(56)),A=a(57),k=r(a(58)),M=r(a(59)),E=r(a(60)),T=r(a(61));function P(e){console.warn(e)}var O={queryParams:l.default,route:o.default,timeFormat:s.default,date:s.default,timeFrom:u.default,colorGradient:c.default.colorGradient,colorToRgba:c.default.colorToRgba,guid:f.default,color:h.default,sys:A.sys,os:A.os,type2icon:d.default,randomArray:b.default,wranning:P,get:i.default.get,post:i.default.post,put:i.default.put,delete:i.default.delete,hexToRgb:c.default.hexToRgb,rgbToHex:c.default.rgbToHex,test:y.default,random:m.default,deepClone:p.default,deepMerge:v.default,getParent:x.default,$parent:S.default,addUnit:g.default,trim:_.default,type:["primary","success","error","warning","info"],http:i.default,toast:w.default,config:E.default,zIndex:T.default,debounce:k.default,throttle:M.default};e.$u=O;var D=function(e){e.mixin(n.default),e.prototype.openShare&&e.mixin(mpShare),e.filter("timeFormat",(function(e,t){return(0,s.default)(e,t)})),e.filter("date",(function(e,t){return(0,s.default)(e,t)})),e.filter("timeFrom",(function(e,t){return(0,u.default)(e,t)})),e.prototype.$u=O},R={install:D};t.default=R}).call(this,a(2)["default"])},330:function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ t.read=function(e,t,a,r,n){var i,l,o=8*n-r-1,s=(1<>1,c=-7,f=a?n-1:0,h=a?-1:1,d=e[t+f];for(f+=h,i=d&(1<<-c)-1,d>>=-c,c+=o;c>0;i=256*i+e[t+f],f+=h,c-=8);for(l=i&(1<<-c)-1,i>>=-c,c+=r;c>0;l=256*l+e[t+f],f+=h,c-=8);if(0===i)i=1-u;else{if(i===s)return l?NaN:1/0*(d?-1:1);l+=Math.pow(2,r),i-=u}return(d?-1:1)*l*Math.pow(2,i-r)},t.write=function(e,t,a,r,n,i){var l,o,s,u=8*i-n-1,c=(1<>1,h=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,b=r?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-l))<1&&(l--,s*=2),t+=l+f>=1?h/s:h*Math.pow(2,1-f),t*s>=2&&(l++,s/=2),l+f>=c?(o=0,l=c):l+f>=1?(o=(t*s-1)*Math.pow(2,n),l+=f):(o=t*Math.pow(2,f-1)*Math.pow(2,n),l=0));n>=8;e[a+d]=255&o,d+=b,o/=256,n-=8);for(l=l<0;e[a+d]=255&l,d+=b,l/=256,u-=8);e[a+d-b]|=128*p}},331:function(e,t){var a={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==a.call(e)}},332:function(e,t,a){"use strict";var r=a(333),n=a(334),i=a(352),l=a(353),o=a(361);function s(e){o.call(this,"digest"),this._hash=e}r(s,o),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return e=e.toLowerCase(),"md5"===e?new n:"rmd160"===e||"ripemd160"===e?new i:new s(l(e))}},333:function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}}},334:function(e,t,a){"use strict";var r=a(333),n=a(335),i=a(327).Buffer,l=new Array(16);function o(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function u(e,t,a,r,n,i,l){return s(e+(t&a|~t&r)+n+i|0,l)+t|0}function c(e,t,a,r,n,i,l){return s(e+(t&r|a&~r)+n+i|0,l)+t|0}function f(e,t,a,r,n,i,l){return s(e+(t^a^r)+n+i|0,l)+t|0}function h(e,t,a,r,n,i,l){return s(e+(a^(t|~r))+n+i|0,l)+t|0}r(o,n),o.prototype._update=function(){for(var e=l,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var a=this._a,r=this._b,n=this._c,i=this._d;a=u(a,r,n,i,e[0],3614090360,7),i=u(i,a,r,n,e[1],3905402710,12),n=u(n,i,a,r,e[2],606105819,17),r=u(r,n,i,a,e[3],3250441966,22),a=u(a,r,n,i,e[4],4118548399,7),i=u(i,a,r,n,e[5],1200080426,12),n=u(n,i,a,r,e[6],2821735955,17),r=u(r,n,i,a,e[7],4249261313,22),a=u(a,r,n,i,e[8],1770035416,7),i=u(i,a,r,n,e[9],2336552879,12),n=u(n,i,a,r,e[10],4294925233,17),r=u(r,n,i,a,e[11],2304563134,22),a=u(a,r,n,i,e[12],1804603682,7),i=u(i,a,r,n,e[13],4254626195,12),n=u(n,i,a,r,e[14],2792965006,17),r=u(r,n,i,a,e[15],1236535329,22),a=c(a,r,n,i,e[1],4129170786,5),i=c(i,a,r,n,e[6],3225465664,9),n=c(n,i,a,r,e[11],643717713,14),r=c(r,n,i,a,e[0],3921069994,20),a=c(a,r,n,i,e[5],3593408605,5),i=c(i,a,r,n,e[10],38016083,9),n=c(n,i,a,r,e[15],3634488961,14),r=c(r,n,i,a,e[4],3889429448,20),a=c(a,r,n,i,e[9],568446438,5),i=c(i,a,r,n,e[14],3275163606,9),n=c(n,i,a,r,e[3],4107603335,14),r=c(r,n,i,a,e[8],1163531501,20),a=c(a,r,n,i,e[13],2850285829,5),i=c(i,a,r,n,e[2],4243563512,9),n=c(n,i,a,r,e[7],1735328473,14),r=c(r,n,i,a,e[12],2368359562,20),a=f(a,r,n,i,e[5],4294588738,4),i=f(i,a,r,n,e[8],2272392833,11),n=f(n,i,a,r,e[11],1839030562,16),r=f(r,n,i,a,e[14],4259657740,23),a=f(a,r,n,i,e[1],2763975236,4),i=f(i,a,r,n,e[4],1272893353,11),n=f(n,i,a,r,e[7],4139469664,16),r=f(r,n,i,a,e[10],3200236656,23),a=f(a,r,n,i,e[13],681279174,4),i=f(i,a,r,n,e[0],3936430074,11),n=f(n,i,a,r,e[3],3572445317,16),r=f(r,n,i,a,e[6],76029189,23),a=f(a,r,n,i,e[9],3654602809,4),i=f(i,a,r,n,e[12],3873151461,11),n=f(n,i,a,r,e[15],530742520,16),r=f(r,n,i,a,e[2],3299628645,23),a=h(a,r,n,i,e[0],4096336452,6),i=h(i,a,r,n,e[7],1126891415,10),n=h(n,i,a,r,e[14],2878612391,15),r=h(r,n,i,a,e[5],4237533241,21),a=h(a,r,n,i,e[12],1700485571,6),i=h(i,a,r,n,e[3],2399980690,10),n=h(n,i,a,r,e[10],4293915773,15),r=h(r,n,i,a,e[1],2240044497,21),a=h(a,r,n,i,e[8],1873313359,6),i=h(i,a,r,n,e[15],4264355552,10),n=h(n,i,a,r,e[6],2734768916,15),r=h(r,n,i,a,e[13],1309151649,21),a=h(a,r,n,i,e[4],4149444226,6),i=h(i,a,r,n,e[11],3174756917,10),n=h(n,i,a,r,e[2],718787259,15),r=h(r,n,i,a,e[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+i|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=o},335:function(e,t,a){"use strict";var r=a(327).Buffer,n=a(336).Transform,i=a(333);function l(e,t){if(!r.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}function o(e){n.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(o,n),o.prototype._transform=function(e,t,a){var r=null;try{this.update(e,t)}catch(n){r=n}a(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(a){t=a}e(t)},o.prototype.update=function(e,t){if(l(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));var a=this._block,n=0;while(this._blockOffset+e.length-n>=this._blockSize){for(var i=this._blockOffset;i0;++o)this._length[o]+=s,s=this._length[o]/4294967296|0,s>0&&(this._length[o]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var a=0;a<4;++a)this._length[a]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},336:function(e,t,a){t=e.exports=a(337),t.Stream=t,t.Readable=t,t.Writable=a(347),t.Duplex=a(346),t.Transform=a(350),t.PassThrough=a(351)},337:function(e,t,a){"use strict";(function(t,r){var n=a(338);e.exports=x;var i,l=a(331);x.ReadableState=w;a(339).EventEmitter;var o=function(e,t){return e.listeners(t).length},s=a(340),u=a(327).Buffer,c=t.Uint8Array||function(){};function f(e){return u.from(e)}function h(e){return u.isBuffer(e)||e instanceof c}var d=Object.create(a(341));d.inherits=a(333);var b=a(342),p=void 0;p=b&&b.debuglog?b.debuglog("stream"):function(){};var v,g=a(343),y=a(345);d.inherits(x,s);var m=["error","close","destroy","pause","resume"];function _(e,t,a){if("function"===typeof e.prependListener)return e.prependListener(t,a);e._events&&e._events[t]?l(e._events[t])?e._events[t].unshift(a):e._events[t]=[a,e._events[t]]:e.on(t,a)}function w(e,t){i=i||a(346),e=e||{};var r=t instanceof i;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,l=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(l||0===l)?l:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(v||(v=a(349).StringDecoder),this.decoder=new v(e.encoding),this.encoding=e.encoding)}function x(e){if(i=i||a(346),!(this instanceof x))return new x(e);this._readableState=new w(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function S(e,t,a,r,n){var i,l=e._readableState;null===t?(l.reading=!1,O(e,l)):(n||(i=k(l,t)),i?e.emit("error",i):l.objectMode||t&&t.length>0?("string"===typeof t||l.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=f(t)),r?l.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):A(e,l,t,!0):l.ended?e.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!a?(t=l.decoder.write(t),l.objectMode||0!==t.length?A(e,l,t,!1):B(e,l)):A(e,l,t,!1))):r||(l.reading=!1));return M(l)}function A(e,t,a,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",a),e.read(0)):(t.length+=t.objectMode?1:a.length,r?t.buffer.unshift(a):t.buffer.push(a),t.needReadable&&D(e)),B(e,t)}function k(e,t){var a;return h(t)||"string"===typeof t||void 0===t||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a}function M(e){return!e.ended&&(e.needReadable||e.length=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=T(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e,t){if(!t.ended){if(t.decoder){var a=t.decoder.end();a&&a.length&&(t.buffer.push(a),t.length+=t.objectMode?1:a.length)}t.ended=!0,D(e)}}function D(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(R,e):R(e))}function R(e){p("emit readable"),e.emit("readable"),N(e)}function B(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(I,e,t))}function I(e,t){var a=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):a=$(e,t.buffer,t.decoder),a);var a}function $(e,t,a){var r;return ei.length?i.length:e;if(l===i.length?n+=i:n+=i.slice(0,e),e-=l,0===e){l===i.length?(++r,a.next?t.head=a.next:t.head=t.tail=null):(t.head=a,a.data=i.slice(l));break}++r}return t.length-=r,n}function U(e,t){var a=u.allocUnsafe(e),r=t.head,n=1;r.data.copy(a),e-=r.data.length;while(r=r.next){var i=r.data,l=e>i.length?i.length:e;if(i.copy(a,a.length-e,0,l),e-=l,0===e){l===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(l));break}++n}return t.length-=n,a}function H(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(V,t,e))}function V(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function W(e,t){for(var a=0,r=e.length;a=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):D(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&H(this),null;var r,n=t.needReadable;return p("need readable",n),(0===t.length||t.length-e0?z(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),a!==e&&t.ended&&H(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,t){var a=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,s=l?c:w;function u(e,t){p("onunpipe"),e===a&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function c(){p("onend"),e.end()}i.endEmitted?n.nextTick(s):a.once("end",s),e.on("unpipe",u);var f=C(a);e.on("drain",f);var h=!1;function d(){p("cleanup"),e.removeListener("close",y),e.removeListener("finish",m),e.removeListener("drain",f),e.removeListener("error",g),e.removeListener("unpipe",u),a.removeListener("end",c),a.removeListener("end",w),a.removeListener("data",v),h=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}var b=!1;function v(t){p("ondata"),b=!1;var r=e.write(t);!1!==r||b||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==W(i.pipes,e))&&!h&&(p("false write response, pause",a._readableState.awaitDrain),a._readableState.awaitDrain++,b=!0),a.pause())}function g(t){p("onerror",t),w(),e.removeListener("error",g),0===o(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",m),w()}function m(){p("onfinish"),e.removeListener("close",y),w()}function w(){p("unpipe"),a.unpipe(e)}return a.on("data",v),_(e,"error",g),e.once("close",y),e.once("finish",m),e.emit("pipe",a),i.flowing||(p("pipe resume"),a.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,a={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,a)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0&&o.length>n&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,l(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function b(e,t,a){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},n=d.bind(r);return n.listener=a,r.wrapFn=n,n}function p(e,t,a){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"===typeof n?a?[n.listener||n]:[n]:a?m(n):g(n,n.length)}function v(e){var t=this._events;if(void 0!==t){var a=t[e];if("function"===typeof a)return 1;if(void 0!==a)return a.length}return 0}function g(e,t){for(var a=new Array(t),r=0;r0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=n[e];if(void 0===s)return!1;if("function"===typeof s)i(s,this,t);else{var u=s.length,c=g(s,u);for(a=0;a=0;i--)if(a[i]===t||a[i].listener===t){l=a[i].listener,n=i;break}if(n<0)return this;0===n?a.shift():y(a,n),1===a.length&&(r[e]=a[0]),void 0!==r.removeListener&&this.emit("removeListener",e,l||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,a,r;if(a=this._events,void 0===a)return this;if(void 0===a.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==a[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete a[e]),this;if(0===arguments.length){var n,i=Object.keys(a);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},34:function(e,t,a){(function(t){e.exports={data:function(){return{}},onLoad:function(){this.$u.getRect=this.$uGetRect},methods:{$uGetRect:function(e,a){var r=this;return new Promise((function(n){t.createSelectorQuery().in(r)[a?"selectAll":"select"](e).boundingClientRect((function(e){a&&Array.isArray(e)&&e.length&&n(e),!a&&e&&n(e)})).exec()}))},getParentData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,t),this.parent&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&e.stopPropagation&&e.stopPropagation()}},onReachBottom:function(){t.$emit("uOnReachBottom")}}}).call(this,a(2)["default"])},340:function(e,t,a){e.exports=a(339).EventEmitter},341:function(e,t,a){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function n(e){return"boolean"===typeof e}function i(e){return null===e}function l(e){return null==e}function o(e){return"number"===typeof e}function s(e){return"string"===typeof e}function u(e){return"symbol"===typeof e}function c(e){return void 0===e}function f(e){return"[object RegExp]"===g(e)}function h(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===g(e)}function b(e){return"[object Error]"===g(e)||e instanceof Error}function p(e){return"function"===typeof e}function v(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function g(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=n,t.isNull=i,t.isNullOrUndefined=l,t.isNumber=o,t.isString=s,t.isSymbol=u,t.isUndefined=c,t.isRegExp=f,t.isObject=h,t.isDate=d,t.isError=b,t.isFunction=p,t.isPrimitive=v,t.isBuffer=a(328).Buffer.isBuffer},343:function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=a(327).Buffer,i=a(344);function l(e,t,a){e.copy(t,a)}e.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,a=""+t.data;while(t=t.next)a+=e+t.data;return a},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;var t=n.allocUnsafe(e>>>0),a=this.head,r=0;while(a)l(a.data,t,r),r+=a.data.length,a=a.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},345:function(e,t,a){"use strict";var r=a(338);function n(e,t){var a=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(l,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(l,a,e),a._writableState&&(a._writableState.errorEmitted=!0)):t&&t(e)})),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(e,t){e.emit("error",t)}e.exports={destroy:n,undestroy:i}},346:function(e,t,a){"use strict";var r=a(338),n=Object.keys||function(e){var t=[];for(var a in e)t.push(a);return t};e.exports=f;var i=Object.create(a(341));i.inherits=a(333);var l=a(337),o=a(347);i.inherits(f,l);for(var s=n(o.prototype),u=0;u-1?setImmediate:n.nextTick;m.WritableState=y;var s=Object.create(a(341));s.inherits=a(333);var u={deprecate:a(348)},c=a(340),f=a(327).Buffer,h=r.Uint8Array||function(){};function d(e){return f.from(e)}function b(e){return f.isBuffer(e)||e instanceof h}var p,v=a(345);function g(){}function y(e,t){l=l||a(346),e=e||{};var r=t instanceof l;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,o=e.writableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){E(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(e){if(l=l||a(346),!p.call(m,this)&&!(this instanceof l))return new m(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),c.call(this)}function _(e,t){var a=new Error("write after end");e.emit("error",a),n.nextTick(t,a)}function w(e,t,a,r){var i=!0,l=!1;return null===a?l=new TypeError("May not write null values to stream"):"string"===typeof a||void 0===a||t.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(e.emit("error",l),n.nextTick(r,l),i=!1),i}function x(e,t,a){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=f.from(t,a)),t}function S(e,t,a,r,n,i){if(!a){var l=x(t,r,n);r!==l&&(a=!0,n="buffer",r=l)}var o=t.objectMode?1:r.length;t.length+=o;var s=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,a){a(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,a){var r=this._writableState;"function"===typeof e?(a=e,e=null,t=null):"function"===typeof t&&(a=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||C(this,r,a)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=v.destroy,m.prototype._undestroy=v.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,a(325),a(3))},348:function(e,t,a){(function(t){function a(e,t){if(r("noDeprecation"))return e;var a=!1;function n(){if(!a){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),a=!0}return e.apply(this,arguments)}return n}function r(e){try{if(!t.localStorage)return!1}catch(r){return!1}var a=t.localStorage[e];return null!=a&&"true"===String(a).toLowerCase()}e.exports=a}).call(this,a(3))},349:function(e,t,a){"use strict";var r=a(327).Buffer,n=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function l(e){var t=i(e);if("string"!==typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}function o(e){var t;switch(this.encoding=l(e),this.encoding){case"utf16le":this.text=b,this.end=p,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=v,this.end=g,t=3;break;default:return this.write=y,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,a){var r=t.length-1;if(r=0?(n>0&&(e.lastNeed=n-1),n):--r=0?(n>0&&(e.lastNeed=n-2),n):--r=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0))}function c(e,t,a){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,a=c(this,e,t);return void 0!==a?a:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var a=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=a;var r=e.length-(a-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function b(e,t){if((e.length-t)%2===0){var a=e.toString("utf16le",t);if(a){var r=a.charCodeAt(a.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],a.slice(0,-1)}return a}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var a=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,a)}return t}function v(e,t){var a=(e.length-t)%3;return 0===a?e.toString("base64",t):(this.lastNeed=3-a,this.lastTotal=3,1===a?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-a))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,a;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";a=this.lastNeed,this.lastNeed=0}else a=0;return a1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({method:"GET",url:t,header:r,data:a})},this.post=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"POST",header:r,data:a})},this.put=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"PUT",header:r,data:a})},this.delete=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"DELETE",header:r,data:a})}}return(0,i.default)(t,[{key:"setConfig",value:function(e){this.config=(0,l.default)(this.config,e)}},{key:"request",value:function(){var t=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.interceptor.request&&"function"===typeof this.interceptor.request){var r=this.interceptor.request(a);if(!1===r)return new Promise((function(){}));this.options=r}return a.dataType=a.dataType||this.config.dataType,a.responseType=a.responseType||this.config.responseType,a.url=a.url||"",a.params=a.params||{},a.header=Object.assign(this.config.header,a.header),a.method=a.method||this.config.method,new Promise((function(r,n){a.complete=function(a){if(e.hideLoading(),clearTimeout(t.config.timer),t.config.timer=null,t.config.originalData)if(t.interceptor.response&&"function"===typeof t.interceptor.response){var i=t.interceptor.response(a);!1!==i?r(i):n(a)}else r(a);else if(200==a.statusCode)if(t.interceptor.response&&"function"===typeof t.interceptor.response){var l=t.interceptor.response(a.data);!1!==l?r(l):n(a.data)}else r(a.data);else n(a)},a.url=o.default.url(a.url)?a.url:t.config.baseUrl+(0==a.url.indexOf("/")?a.url:"/"+a.url),t.config.showLoading&&!t.config.timer&&(t.config.timer=setTimeout((function(){e.showLoading({title:t.config.loadingText,mask:t.config.loadingMask}),t.config.timer=null}),t.config.loadingTime)),e.request(a)}))}}]),t}(),u=new s;t.default=u}).call(this,a(2)["default"])},350:function(e,t,a){"use strict";e.exports=l;var r=a(346),n=Object.create(a(341));function i(e,t){var a=this._transformState;a.transforming=!1;var r=a.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));a.writechunk=null,a.writecb=null,null!=t&&this.push(t),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length>>32-t}function p(e,t,a,r,n,i,l,o){return b(e+(t^a^r)+i+l|0,o)+n|0}function v(e,t,a,r,n,i,l,o){return b(e+(t&a|~t&r)+i+l|0,o)+n|0}function g(e,t,a,r,n,i,l,o){return b(e+((t|~a)^r)+i+l|0,o)+n|0}function y(e,t,a,r,n,i,l,o){return b(e+(t&r|a&~r)+i+l|0,o)+n|0}function m(e,t,a,r,n,i,l,o){return b(e+(t^(a|~r))+i+l|0,o)+n|0}n(d,i),d.prototype._update=function(){for(var e=l,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var a=0|this._a,r=0|this._b,n=0|this._c,i=0|this._d,d=0|this._e,_=0|this._a,w=0|this._b,x=0|this._c,S=0|this._d,A=0|this._e,k=0;k<80;k+=1){var M,E;k<16?(M=p(a,r,n,i,d,e[o[k]],f[0],u[k]),E=m(_,w,x,S,A,e[s[k]],h[0],c[k])):k<32?(M=v(a,r,n,i,d,e[o[k]],f[1],u[k]),E=y(_,w,x,S,A,e[s[k]],h[1],c[k])):k<48?(M=g(a,r,n,i,d,e[o[k]],f[2],u[k]),E=g(_,w,x,S,A,e[s[k]],h[2],c[k])):k<64?(M=y(a,r,n,i,d,e[o[k]],f[3],u[k]),E=v(_,w,x,S,A,e[s[k]],h[3],c[k])):(M=m(a,r,n,i,d,e[o[k]],f[4],u[k]),E=p(_,w,x,S,A,e[s[k]],h[4],c[k])),a=d,d=i,i=b(n,10),n=r,r=M,_=A,A=S,S=b(x,10),x=w,w=E}var T=this._b+n+S|0;this._b=this._c+i+A|0,this._c=this._d+d+_|0,this._d=this._e+a+w|0,this._e=this._a+r+x|0,this._a=T},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=d},353:function(e,t,a){t=e.exports=function(e){e=e.toLowerCase();var a=t[e];if(!a)throw new Error(e+" is not supported (we accept pull requests)");return new a};t.sha=a(354),t.sha1=a(356),t.sha224=a(357),t.sha256=a(358),t.sha384=a(359),t.sha512=a(360)},354:function(e,t,a){var r=a(333),n=a(355),i=a(327).Buffer,l=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function f(e,t,a,r){return 0===e?t&a|~t&r:2===e?t&a|t&r|a&r:t^a^r}r(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t=this._w,a=0|this._a,r=0|this._b,n=0|this._c,i=0|this._d,o=0|this._e,s=0;s<16;++s)t[s]=e.readInt32BE(4*s);for(;s<80;++s)t[s]=t[s-3]^t[s-8]^t[s-14]^t[s-16];for(var h=0;h<80;++h){var d=~~(h/20),b=u(a)+f(d,r,n,i)+o+t[h]+l[d]|0;o=i,i=n,n=c(r),r=a,a=b}this._a=a+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=i+this._d|0,this._e=o+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},355:function(e,t,a){var r=a(327).Buffer;function n(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"===typeof e&&(t=t||"utf8",e=r.from(e,t));for(var a=this._block,n=this._blockSize,i=e.length,l=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var r=(4294967295&a)>>>0,n=(a-r)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},356:function(e,t,a){var r=a(333),n=a(355),i=a(327).Buffer,l=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}function u(e){return e<<1|e>>>31}function c(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function h(e,t,a,r){return 0===e?t&a|~t&r:2===e?t&a|t&r|a&r:t^a^r}r(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t=this._w,a=0|this._a,r=0|this._b,n=0|this._c,i=0|this._d,o=0|this._e,s=0;s<16;++s)t[s]=e.readInt32BE(4*s);for(;s<80;++s)t[s]=u(t[s-3]^t[s-8]^t[s-14]^t[s-16]);for(var d=0;d<80;++d){var b=~~(d/20),p=c(a)+h(b,r,n,i)+o+t[d]+l[b]|0;o=i,i=n,n=f(r),r=a,a=p}this._a=a+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=i+this._d|0,this._e=o+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},357:function(e,t,a){var r=a(333),n=a(358),i=a(355),l=a(327).Buffer,o=new Array(64);function s(){this.init(),this._w=o,i.call(this,64,56)}r(s,n),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=l.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=s},358:function(e,t,a){var r=a(333),n=a(355),i=a(327).Buffer,l=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function s(){this.init(),this._w=o,n.call(this,64,56)}function u(e,t,a){return a^e&(t^a)}function c(e,t,a){return e&t|a&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function b(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}r(s,n),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t=this._w,a=0|this._a,r=0|this._b,n=0|this._c,i=0|this._d,o=0|this._e,s=0|this._f,p=0|this._g,v=0|this._h,g=0;g<16;++g)t[g]=e.readInt32BE(4*g);for(;g<64;++g)t[g]=b(t[g-2])+t[g-7]+d(t[g-15])+t[g-16]|0;for(var y=0;y<64;++y){var m=v+h(o)+u(o,s,p)+l[y]+t[y]|0,_=f(a)+c(a,r,n)|0;v=p,p=s,s=o,o=i+m|0,i=n,n=r,r=a,a=m+_|0}this._a=a+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=i+this._d|0,this._e=o+this._e|0,this._f=s+this._f|0,this._g=p+this._g|0,this._h=v+this._h|0},s.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s},359:function(e,t,a){var r=a(333),n=a(360),i=a(355),l=a(327).Buffer,o=new Array(160);function s(){this.init(),this._w=o,i.call(this,128,112)}r(s,n),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=l.allocUnsafe(48);function t(t,a,r){e.writeInt32BE(t,r),e.writeInt32BE(a,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=s},36:function(e,t,a){"use strict";var r=a(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(13)),i=r(a(37));function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=(0,i.default)(e),"object"!==(0,n.default)(e)||"object"!==(0,n.default)(t))return!1;for(var a in t)t.hasOwnProperty(a)&&(a in e?"object"!==(0,n.default)(e[a])||"object"!==(0,n.default)(t[a])?e[a]=t[a]:e[a].concat&&t[a].concat?e[a]=e[a].concat(t[a]):e[a]=l(e[a],t[a]):e[a]=t[a]);return e}var o=l;t.default=o},360:function(e,t,a){var r=a(333),n=a(355),i=a(327).Buffer,l=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function s(){this.init(),this._w=o,n.call(this,128,112)}function u(e,t,a){return a^e&(t^a)}function c(e,t,a){return e&t|a&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function b(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function v(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}r(s,n),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,a=0|this._ah,r=0|this._bh,n=0|this._ch,i=0|this._dh,o=0|this._eh,s=0|this._fh,y=0|this._gh,m=0|this._hh,_=0|this._al,w=0|this._bl,x=0|this._cl,S=0|this._dl,A=0|this._el,k=0|this._fl,M=0|this._gl,E=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var P=t[T-30],O=t[T-30+1],D=d(P,O),R=b(O,P);P=t[T-4],O=t[T-4+1];var B=p(P,O),I=v(O,P),C=t[T-14],L=t[T-14+1],j=t[T-32],F=t[T-32+1],N=R+L|0,z=D+C+g(N,R)|0;N=N+I|0,z=z+B+g(N,I)|0,N=N+F|0,z=z+j+g(N,F)|0,t[T]=z,t[T+1]=N}for(var $=0;$<160;$+=2){z=t[$],N=t[$+1];var q=c(a,r,n),U=c(_,w,x),H=f(a,_),V=f(_,a),W=h(o,A),K=h(A,o),X=l[$],G=l[$+1],Y=u(o,s,y),Z=u(A,k,M),J=E+K|0,Q=m+W+g(J,E)|0;J=J+Z|0,Q=Q+Y+g(J,Z)|0,J=J+G|0,Q=Q+X+g(J,G)|0,J=J+N|0,Q=Q+z+g(J,N)|0;var ee=V+U|0,te=H+q+g(ee,V)|0;m=y,E=M,y=s,M=k,s=o,k=A,A=S+J|0,o=i+Q+g(A,S)|0,i=n,S=x,n=r,x=w,r=a,w=_,_=J+ee|0,a=Q+te+g(_,J)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+S|0,this._el=this._el+A|0,this._fl=this._fl+k|0,this._gl=this._gl+M|0,this._hl=this._hl+E|0,this._ah=this._ah+a+g(this._al,_)|0,this._bh=this._bh+r+g(this._bl,w)|0,this._ch=this._ch+n+g(this._cl,x)|0,this._dh=this._dh+i+g(this._dl,S)|0,this._eh=this._eh+o+g(this._el,A)|0,this._fh=this._fh+s+g(this._fl,k)|0,this._gh=this._gh+y+g(this._gl,M)|0,this._hh=this._hh+m+g(this._hl,E)|0},s.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,a,r){e.writeInt32BE(t,r),e.writeInt32BE(a,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=s},361:function(e,t,a){var r=a(327).Buffer,n=a(362).Transform,i=a(349).StringDecoder,l=a(333);function o(e){n.call(this),this.hashMode="string"===typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}l(o,n),o.prototype.update=function(e,t,a){"string"===typeof e&&(e=r.from(e,t));var n=this._update(e);return this.hashMode?this:(a&&(n=this._toString(n,a)),n)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,a){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(n){r=n}finally{a(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(a){t=a}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,a){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return a&&(r+=this._decoder.end()),r},e.exports=o},362:function(e,t,a){e.exports=i;var r=a(339).EventEmitter,n=a(333);function i(){r.call(this)}n(i,r),i.Readable=a(336),i.Writable=a(363),i.Duplex=a(364),i.Transform=a(365),i.PassThrough=a(366),i.Stream=i,i.prototype.pipe=function(e,t){var a=this;function n(t){e.writable&&!1===e.write(t)&&a.pause&&a.pause()}function i(){a.readable&&a.resume&&a.resume()}a.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(a.on("end",o),a.on("close",s));var l=!1;function o(){l||(l=!0,e.end())}function s(){l||(l=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){a.removeListener("data",n),e.removeListener("drain",i),a.removeListener("end",o),a.removeListener("close",s),a.removeListener("error",u),e.removeListener("error",u),a.removeListener("end",c),a.removeListener("close",c),e.removeListener("close",c)}return a.on("error",u),e.on("error",u),a.on("end",c),a.on("close",c),e.on("close",c),e.emit("pipe",a),e}},363:function(e,t,a){e.exports=a(347)},364:function(e,t,a){e.exports=a(346)},365:function(e,t,a){e.exports=a(336).Transform},366:function(e,t,a){e.exports=a(336).PassThrough},367:function(e,t,a){"use strict";var r=a(333),n=a(368),i=a(361),l=a(327).Buffer,o=a(369),s=a(352),u=a(353),c=l.alloc(128);function f(e,t){i.call(this,"digest"),"string"===typeof t&&(t=l.from(t));var a="sha512"===e||"sha384"===e?128:64;if(this._alg=e,this._key=t,t.length>a){var r="rmd160"===e?new s:u(e);t=r.update(t).digest()}else t.lengtho?t=e(t):t.lengtha||t!==t)throw new TypeError("Bad key length")}},375:function(e,t,a){(function(t,a){var r;if(t.process&&t.process.browser)r="utf-8";else if(t.process&&t.process.version){var n=parseInt(a.version.split(".")[0].slice(1),10);r=n>=6?"utf-8":"binary"}else r="utf-8";e.exports=r}).call(this,a(3),a(325))},376:function(e,t,a){var r=a(369),n=a(352),i=a(353),l=a(327).Buffer,o=a(374),s=a(375),u=a(377),c=l.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,a){var r=d(e),n="sha512"===e||"sha384"===e?128:64;t.length>n?t=r(t):t.length=0}function m(e,t){return e>=t[0]&&e<=t[1]}function _(e,t){return e.length>=t[0]&&e.length<=t[1]}function w(e){var t=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return t.test(e)}function x(e){switch((0,n.default)(e)){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function S(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=(0,n.default)(t)||!t)}catch(a){return!1}return!1}function A(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function k(e){return"[object Object]"===Object.prototype.toString.call(e)}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}var E={email:i,mobile:l,url:o,date:s,dateISO:u,number:c,digits:f,idCard:h,carNo:d,amount:b,chinese:p,letter:v,enOrNum:g,contains:y,range:m,rangeLength:_,empty:x,isEmpty:x,jsonString:S,landline:w,object:k,array:A,code:M};t.default=E},380:function(e,t,a){"use strict";t.utils=a(381),t.Cipher=a(382),t.DES=a(384),t.CBC=a(385),t.EDE=a(386)},381:function(e,t,a){"use strict";t.readUInt32BE=function(e,t){var a=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return a>>>0},t.writeUInt32BE=function(e,t,a){e[0+a]=t>>>24,e[1+a]=t>>>16&255,e[2+a]=t>>>8&255,e[3+a]=255&t},t.ip=function(e,t,a,r){for(var n=0,i=0,l=6;l>=0;l-=2){for(var o=0;o<=24;o+=8)n<<=1,n|=t>>>o+l&1;for(o=0;o<=24;o+=8)n<<=1,n|=e>>>o+l&1}for(l=6;l>=0;l-=2){for(o=1;o<=25;o+=8)i<<=1,i|=t>>>o+l&1;for(o=1;o<=25;o+=8)i<<=1,i|=e>>>o+l&1}a[r+0]=n>>>0,a[r+1]=i>>>0},t.rip=function(e,t,a,r){for(var n=0,i=0,l=0;l<4;l++)for(var o=24;o>=0;o-=8)n<<=1,n|=t>>>o+l&1,n<<=1,n|=e>>>o+l&1;for(l=4;l<8;l++)for(o=24;o>=0;o-=8)i<<=1,i|=t>>>o+l&1,i<<=1,i|=e>>>o+l&1;a[r+0]=n>>>0,a[r+1]=i>>>0},t.pc1=function(e,t,a,r){for(var n=0,i=0,l=7;l>=5;l--){for(var o=0;o<=24;o+=8)n<<=1,n|=t>>o+l&1;for(o=0;o<=24;o+=8)n<<=1,n|=e>>o+l&1}for(o=0;o<=24;o+=8)n<<=1,n|=t>>o+l&1;for(l=1;l<=3;l++){for(o=0;o<=24;o+=8)i<<=1,i|=t>>o+l&1;for(o=0;o<=24;o+=8)i<<=1,i|=e>>o+l&1}for(o=0;o<=24;o+=8)i<<=1,i|=e>>o+l&1;a[r+0]=n>>>0,a[r+1]=i>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,a,n){for(var i=0,l=0,o=r.length>>>1,s=0;s>>r[s]&1;for(s=o;s>>r[s]&1;a[n+0]=i>>>0,a[n+1]=l>>>0},t.expand=function(e,t,a){var r=0,n=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(i=11;i>=3;i-=4)n|=e>>>i&63,n<<=6;n|=(31&e)<<1|e>>>31,t[a+0]=r>>>0,t[a+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var a=0,r=0;r<4;r++){var i=e>>>18-6*r&63,l=n[64*r+i];a<<=4,a|=l}for(r=0;r<4;r++){i=t>>>18-6*r&63,l=n[256+64*r+i];a<<=4,a|=l}return a>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,a=0;a>>i[a]&1;return t>>>0},t.padSplit=function(e,t,a){var r=e.toString(2);while(r.length0;r--)t+=this._buffer(e,t),a+=this._flushBuffer(n,a);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,a;return e&&(t=this.update(e)),a="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(a):a},n.prototype._pad=function(e,t){if(0===t)return!1;while(t>>1];a=i.r28shl(a,o),n=i.r28shl(n,o),i.pc2(a,n,e.keys,l)}},s.prototype._update=function(e,t,a,r){var n=this._desState,l=i.readUInt32BE(e,t),o=i.readUInt32BE(e,t+4);i.ip(l,o,n.tmp,0),l=n.tmp[0],o=n.tmp[1],"encrypt"===this.type?this._encrypt(n,l,o,n.tmp,0):this._decrypt(n,l,o,n.tmp,0),l=n.tmp[0],o=n.tmp[1],i.writeUInt32BE(a,l,r),i.writeUInt32BE(a,o,r+4)},s.prototype._pad=function(e,t){for(var a=e.length-t,r=t;r>>0,l=d}i.rip(o,l,r,n)},s.prototype._decrypt=function(e,t,a,r,n){for(var l=a,o=t,s=e.keys.length-2;s>=0;s-=2){var u=e.keys[s],c=e.keys[s+1];i.expand(l,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var f=i.substitute(u,c),h=i.permute(f),d=l;l=(o^h)>>>0,o=d}i.rip(l,o,r,n)}},385:function(e,t,a){"use strict";var r=a(383),n=a(333),i={};function l(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){var e=16-this.cache.length,t=i.allocUnsafe(e),a=-1;while(++a0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",r=t?"?":"",n=[];-1==["indices","brackets","repeat","comma"].indexOf(a)&&(a="brackets");var i=function(t){var r=e[t];if(["",void 0,null].indexOf(r)>=0)return"continue";if(r.constructor===Array)switch(a){case"indices":for(var i=0;i>o%8,e._prev=i(e._prev,a?n:l);return u}function i(e,t){var a=e.length,n=-1,i=r.allocUnsafe(e.length);e=r.concat([e,r.from([t])]);while(++n>7;return i}t.encrypt=function(e,t,a){var i=t.length,l=r.allocUnsafe(i),o=-1;while(++o0&&void 0!==o[0]?o[0]:{},r=o.length>1&&void 0!==o[1]?o[1]:{},i={},"string"===typeof a?(i.url=this.mixinParam(a,r),i.type="navigateTo"):(i=e.$u.deepClone(a,this.config),i.url=this.mixinParam(a.url,a.params)),r.intercept&&(this.config.intercept=r.intercept),i.params=r,i=e.$u.deepMerge(this.config,i),"function"!==typeof e.$u.routeIntercept){t.next=14;break}return t.next=10,new Promise((function(t,a){e.$u.routeIntercept(i,t)}));case 10:l=t.sent,l&&this.openPage(i),t.next=15;break;case 14:this.openPage(i);case 15:case"end":return t.stop()}}),t,this)})));function a(){return t.apply(this,arguments)}return a}()},{key:"openPage",value:function(t){var a=t.url,r=(t.type,t.delta),n=t.animationType,i=t.animationDuration;"navigateTo"!=t.type&&"to"!=t.type||e.navigateTo({url:a,animationType:n,animationDuration:i}),"redirectTo"!=t.type&&"redirect"!=t.type||e.redirectTo({url:a}),"switchTab"!=t.type&&"tab"!=t.type||e.switchTab({url:a}),"reLaunch"!=t.type&&"launch"!=t.type||e.reLaunch({url:a}),"navigateBack"!=t.type&&"back"!=t.type||e.navigateBack({delta:r})}}]),t}(),c=(new u).route;t.default=c}).call(this,a(2)["default"])},400:function(e,t,a){var r=a(401),n=a(327).Buffer,i=a(361),l=a(333),o=a(402),s=a(392),u=a(398);function c(e,t){var a=0;e.length!==t.length&&a++;for(var r=Math.min(e.length,t.length),n=0;n>>24]^c[b>>>16&255]^f[p>>>8&255]^h[255&v]^t[g++],l=u[b>>>24]^c[p>>>16&255]^f[v>>>8&255]^h[255&d]^t[g++],o=u[p>>>24]^c[v>>>16&255]^f[d>>>8&255]^h[255&b]^t[g++],s=u[v>>>24]^c[d>>>16&255]^f[b>>>8&255]^h[255&p]^t[g++],d=i,b=l,p=o,v=s;return i=(r[d>>>24]<<24|r[b>>>16&255]<<16|r[p>>>8&255]<<8|r[255&v])^t[g++],l=(r[b>>>24]<<24|r[p>>>16&255]<<16|r[v>>>8&255]<<8|r[255&d])^t[g++],o=(r[p>>>24]<<24|r[v>>>16&255]<<16|r[d>>>8&255]<<8|r[255&b])^t[g++],s=(r[v>>>24]<<24|r[d>>>16&255]<<16|r[b>>>8&255]<<8|r[255&p])^t[g++],i>>>=0,l>>>=0,o>>>=0,s>>>=0,[i,l,o,s]}var o=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var a=[],r=[],n=[[],[],[],[]],i=[[],[],[],[]],l=0,o=0,s=0;s<256;++s){var u=o^o<<1^o<<2^o<<3^o<<4;u=u>>>8^255&u^99,a[l]=u,r[u]=l;var c=e[l],f=e[c],h=e[f],d=257*e[u]^16843008*u;n[0][l]=d<<24|d>>>8,n[1][l]=d<<16|d>>>16,n[2][l]=d<<8|d>>>24,n[3][l]=d,d=16843009*h^65537*f^257*c^16843008*l,i[0][u]=d<<24|d>>>8,i[1][u]=d<<16|d>>>16,i[2][u]=d<<8|d>>>24,i[3][u]=d,0===l?l=o=1:(l=c^e[e[e[h^c]]],o^=e[e[o]])}return{SBOX:a,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:i}}();function u(e){this._key=n(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,a=t+6,r=4*(a+1),n=[],i=0;i>>24,l=s.SBOX[l>>>24]<<24|s.SBOX[l>>>16&255]<<16|s.SBOX[l>>>8&255]<<8|s.SBOX[255&l],l^=o[i/t|0]<<24):t>6&&i%t===4&&(l=s.SBOX[l>>>24]<<24|s.SBOX[l>>>16&255]<<16|s.SBOX[l>>>8&255]<<8|s.SBOX[255&l]),n[i]=n[i-t]^l}for(var u=[],c=0;c>>24]]^s.INV_SUB_MIX[1][s.SBOX[h>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[h>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&h]]}this._nRounds=a,this._keySchedule=n,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return e=n(e),l(e,this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),a=r.allocUnsafe(16);return a.writeUInt32BE(t[0],0),a.writeUInt32BE(t[1],4),a.writeUInt32BE(t[2],8),a.writeUInt32BE(t[3],12),a},u.prototype.decryptBlock=function(e){e=n(e);var t=e[1];e[1]=e[3],e[3]=t;var a=l(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),i=r.allocUnsafe(16);return i.writeUInt32BE(a[0],0),i.writeUInt32BE(a[3],4),i.writeUInt32BE(a[2],8),i.writeUInt32BE(a[1],12),i},u.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=u},402:function(e,t,a){var r=a(327).Buffer,n=r.alloc(16,0);function i(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function l(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){var t=-1;while(++t0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,a&&(r[0]=r[0]^225<<24)}this.state=l(n)},o.prototype.update=function(e){var t;this.cache=r.concat([this.cache,e]);while(this.cache.length>=16)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(l([0,e,0,t])),this.state},e.exports=o},403:function(e,t,a){var r=a(401),n=a(327).Buffer,i=a(361),l=a(333);function o(e,t,a,l){i.call(this),this._cipher=new r.AES(t),this._prev=n.from(a),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=l,this._mode=e}l(o,i),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},404:function(e,t,a){var r=a(327).Buffer,n=a(334);function i(e,t,a,i){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");var l=a/8,o=r.alloc(l),s=r.alloc(i||0),u=r.alloc(0);while(l>0||i>0){var c=new n;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var f=0;if(l>0){var h=o.length-l;f=Math.min(l,u.length),u.copy(o,h,0,f),l-=f}if(f0){var d=s.length-i,b=Math.min(i,u.length-f);u.copy(s,d,f,f+b),i-=b}}return u.fill(0),{key:o,iv:s}}e.exports=i},405:function(e,t,a){var r=a(400),n=a(327).Buffer,i=a(389),l=a(403),o=a(361),s=a(401),u=a(404),c=a(333);function f(e,t,a){o.call(this),this._cache=new h,this._last=void 0,this._cipher=new s.AES(t),this._prev=n.from(a),this._mode=e,this._autopadding=!0}function h(){this.cache=n.allocUnsafe(0)}function d(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var a=-1;while(++a16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=p,t.createDecipheriv=b},406:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},407:function(e,t,a){(function(e){var r=a(408),n=a(414),i=a(415);function l(t){var a=new e(n[t].prime,"hex"),r=new e(n[t].gen,"hex");return new i(a,r)}var o={binary:!0,hex:!0,base64:!0};function s(t,a,n,l){return e.isBuffer(a)||void 0===o[a]?s(t,"binary",a,n):(a=a||"binary",l=l||"binary",n=n||new e([2]),e.isBuffer(n)||(n=new e(n,l)),"number"===typeof t?new i(r(t,n),n,!0):(e.isBuffer(t)||(t=new e(t,a)),new i(t,n,!0)))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=l,t.createDiffieHellman=t.DiffieHellman=s}).call(this,a(328).Buffer)},408:function(e,t,a){var r=a(324);e.exports=m,m.simpleSieve=g,m.fermatTest=y;var n=a(409),i=new n(24),l=a(411),o=new l,s=new n(1),u=new n(2),c=new n(5),f=(new n(16),new n(8),new n(10)),h=new n(3),d=(new n(7),new n(11)),b=new n(4),p=(new n(12),null);function v(){if(null!==p)return p;var e=1048576,t=[];t[0]=2;for(var a=1,r=3;re)a.ishrn(1);if(a.isEven()&&a.iadd(s),a.testn(1)||a.iadd(u),t.cmp(u)){if(!t.cmp(c))while(a.mod(f).cmp(h))a.iadd(b)}else while(a.mod(i).cmp(d))a.iadd(b);if(l=a.shrn(1),g(l)&&g(a)&&y(l)&&y(a)&&o.test(l)&&o.test(a))return a}}},409:function(e,t,a){(function(e){(function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function i(e,t,a){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var l;"object"===typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{l="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:a(410).Buffer}catch(E){}function o(e,t){var a=e.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function u(e,t,a,r){for(var n=0,i=Math.min(e.length,a),l=t;l=49?o-49+10:o>=17?o-17+10:o}return n}i.isBN=function(e){return e instanceof i||null!==e&&"object"===typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,a){if("number"===typeof e)return this._initNumber(e,t,a);if("object"===typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var n=0;"-"===e[0]&&(n++,this.negative=1),n=0;n-=3)l=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=l<>>26-o&67108863,o+=24,o>=26&&(o-=26,i++);else if("le"===a)for(n=0,i=0;n>>26-o&67108863,o+=24,o>=26&&(o-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(i-=18,l+=1,this.words[l]|=n>>>26):i+=8;else{var o=e.length-t;for(r=o%2===0?t+1:t;r=18?(i-=18,l+=1,this.words[l]|=n>>>26):i+=8}this.strip()},i.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var i=e.length-a,l=i%r,o=Math.min(i,i-l)+a,s=0,c=a;c1&&0===this.words[this.length-1])this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}function b(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],i=0|t.words[0],l=n*i,o=67108863&l,s=l/67108864|0;a.words[0]=o;for(var u=1;u>>26,f=67108863&s,h=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=h;d++){var b=u-d|0;n=0|e.words[b],i=0|t.words[d],l=n*i+f,c+=l/67108864|0,f=67108863&l}a.words[u]=0|f,s=0|c}return 0!==s?a.words[u]=0|s:a.length--,a.strip()}i.prototype.toString=function(e,t){var a;if(e=e||10,t=0|t||1,16===e||"hex"===e){a="";for(var n=0,i=0,l=0;l>>24-n&16777215,a=0!==i||l!==this.length-1?c[6-s.length]+s+a:s+a,n+=2,n>=26&&(n-=26,l--)}0!==i&&(a=i.toString(16)+a);while(a.length%t!==0)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],d=h[e];a="";var b=this.clone();b.negative=0;while(!b.isZero()){var p=b.modn(d).toString(e);b=b.idivn(d),a=b.isZero()?p+a:c[u-p.length]+p+a}this.isZero()&&(a="0"+a);while(a.length%t!==0)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r("undefined"!==typeof l),this.toArrayLike(l,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),i=a||Math.max(1,n);r(n<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var l,o,s="le"===t,u=new e(i),c=this.clone();if(s){for(o=0;!c.isZero();o++)l=c.andln(255),c.iushrn(8),u[o]=l;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0===(8191&t)&&(a+=13,t>>>=13),0===(127&t)&&(a+=7,t>>>=7),0===(15&t)&&(a+=4,t>>>=4),0===(3&t)&&(a+=2,t>>>=2),0===(1&t)&&a++,a},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,i=0;i>>26;for(;0!==n&&i>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var i=0,l=0;l>26,this.words[l]=67108863&t;for(;0!==i&&l>26,this.words[l]=67108863&t;if(0===i&&l>>13,d=0|l[1],b=8191&d,p=d>>>13,v=0|l[2],g=8191&v,y=v>>>13,m=0|l[3],_=8191&m,w=m>>>13,x=0|l[4],S=8191&x,A=x>>>13,k=0|l[5],M=8191&k,E=k>>>13,T=0|l[6],P=8191&T,O=T>>>13,D=0|l[7],R=8191&D,B=D>>>13,I=0|l[8],C=8191&I,L=I>>>13,j=0|l[9],F=8191&j,N=j>>>13,z=0|o[0],$=8191&z,q=z>>>13,U=0|o[1],H=8191&U,V=U>>>13,W=0|o[2],K=8191&W,X=W>>>13,G=0|o[3],Y=8191&G,Z=G>>>13,J=0|o[4],Q=8191&J,ee=J>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ie=8191&ne,le=ne>>>13,oe=0|o[7],se=8191&oe,ue=oe>>>13,ce=0|o[8],fe=8191&ce,he=ce>>>13,de=0|o[9],be=8191&de,pe=de>>>13;a.negative=e.negative^t.negative,a.length=19,r=Math.imul(f,$),n=Math.imul(f,q),n=n+Math.imul(h,$)|0,i=Math.imul(h,q);var ve=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(b,$),n=Math.imul(b,q),n=n+Math.imul(p,$)|0,i=Math.imul(p,q),r=r+Math.imul(f,H)|0,n=n+Math.imul(f,V)|0,n=n+Math.imul(h,H)|0,i=i+Math.imul(h,V)|0;var ge=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,$),n=Math.imul(g,q),n=n+Math.imul(y,$)|0,i=Math.imul(y,q),r=r+Math.imul(b,H)|0,n=n+Math.imul(b,V)|0,n=n+Math.imul(p,H)|0,i=i+Math.imul(p,V)|0,r=r+Math.imul(f,K)|0,n=n+Math.imul(f,X)|0,n=n+Math.imul(h,K)|0,i=i+Math.imul(h,X)|0;var ye=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(_,$),n=Math.imul(_,q),n=n+Math.imul(w,$)|0,i=Math.imul(w,q),r=r+Math.imul(g,H)|0,n=n+Math.imul(g,V)|0,n=n+Math.imul(y,H)|0,i=i+Math.imul(y,V)|0,r=r+Math.imul(b,K)|0,n=n+Math.imul(b,X)|0,n=n+Math.imul(p,K)|0,i=i+Math.imul(p,X)|0,r=r+Math.imul(f,Y)|0,n=n+Math.imul(f,Z)|0,n=n+Math.imul(h,Y)|0,i=i+Math.imul(h,Z)|0;var me=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(S,$),n=Math.imul(S,q),n=n+Math.imul(A,$)|0,i=Math.imul(A,q),r=r+Math.imul(_,H)|0,n=n+Math.imul(_,V)|0,n=n+Math.imul(w,H)|0,i=i+Math.imul(w,V)|0,r=r+Math.imul(g,K)|0,n=n+Math.imul(g,X)|0,n=n+Math.imul(y,K)|0,i=i+Math.imul(y,X)|0,r=r+Math.imul(b,Y)|0,n=n+Math.imul(b,Z)|0,n=n+Math.imul(p,Y)|0,i=i+Math.imul(p,Z)|0,r=r+Math.imul(f,Q)|0,n=n+Math.imul(f,ee)|0,n=n+Math.imul(h,Q)|0,i=i+Math.imul(h,ee)|0;var _e=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,$),n=Math.imul(M,q),n=n+Math.imul(E,$)|0,i=Math.imul(E,q),r=r+Math.imul(S,H)|0,n=n+Math.imul(S,V)|0,n=n+Math.imul(A,H)|0,i=i+Math.imul(A,V)|0,r=r+Math.imul(_,K)|0,n=n+Math.imul(_,X)|0,n=n+Math.imul(w,K)|0,i=i+Math.imul(w,X)|0,r=r+Math.imul(g,Y)|0,n=n+Math.imul(g,Z)|0,n=n+Math.imul(y,Y)|0,i=i+Math.imul(y,Z)|0,r=r+Math.imul(b,Q)|0,n=n+Math.imul(b,ee)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0,r=r+Math.imul(f,ae)|0,n=n+Math.imul(f,re)|0,n=n+Math.imul(h,ae)|0,i=i+Math.imul(h,re)|0;var we=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,$),n=Math.imul(P,q),n=n+Math.imul(O,$)|0,i=Math.imul(O,q),r=r+Math.imul(M,H)|0,n=n+Math.imul(M,V)|0,n=n+Math.imul(E,H)|0,i=i+Math.imul(E,V)|0,r=r+Math.imul(S,K)|0,n=n+Math.imul(S,X)|0,n=n+Math.imul(A,K)|0,i=i+Math.imul(A,X)|0,r=r+Math.imul(_,Y)|0,n=n+Math.imul(_,Z)|0,n=n+Math.imul(w,Y)|0,i=i+Math.imul(w,Z)|0,r=r+Math.imul(g,Q)|0,n=n+Math.imul(g,ee)|0,n=n+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,r=r+Math.imul(b,ae)|0,n=n+Math.imul(b,re)|0,n=n+Math.imul(p,ae)|0,i=i+Math.imul(p,re)|0,r=r+Math.imul(f,ie)|0,n=n+Math.imul(f,le)|0,n=n+Math.imul(h,ie)|0,i=i+Math.imul(h,le)|0;var xe=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,$),n=Math.imul(R,q),n=n+Math.imul(B,$)|0,i=Math.imul(B,q),r=r+Math.imul(P,H)|0,n=n+Math.imul(P,V)|0,n=n+Math.imul(O,H)|0,i=i+Math.imul(O,V)|0,r=r+Math.imul(M,K)|0,n=n+Math.imul(M,X)|0,n=n+Math.imul(E,K)|0,i=i+Math.imul(E,X)|0,r=r+Math.imul(S,Y)|0,n=n+Math.imul(S,Z)|0,n=n+Math.imul(A,Y)|0,i=i+Math.imul(A,Z)|0,r=r+Math.imul(_,Q)|0,n=n+Math.imul(_,ee)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(g,ae)|0,n=n+Math.imul(g,re)|0,n=n+Math.imul(y,ae)|0,i=i+Math.imul(y,re)|0,r=r+Math.imul(b,ie)|0,n=n+Math.imul(b,le)|0,n=n+Math.imul(p,ie)|0,i=i+Math.imul(p,le)|0,r=r+Math.imul(f,se)|0,n=n+Math.imul(f,ue)|0,n=n+Math.imul(h,se)|0,i=i+Math.imul(h,ue)|0;var Se=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(C,$),n=Math.imul(C,q),n=n+Math.imul(L,$)|0,i=Math.imul(L,q),r=r+Math.imul(R,H)|0,n=n+Math.imul(R,V)|0,n=n+Math.imul(B,H)|0,i=i+Math.imul(B,V)|0,r=r+Math.imul(P,K)|0,n=n+Math.imul(P,X)|0,n=n+Math.imul(O,K)|0,i=i+Math.imul(O,X)|0,r=r+Math.imul(M,Y)|0,n=n+Math.imul(M,Z)|0,n=n+Math.imul(E,Y)|0,i=i+Math.imul(E,Z)|0,r=r+Math.imul(S,Q)|0,n=n+Math.imul(S,ee)|0,n=n+Math.imul(A,Q)|0,i=i+Math.imul(A,ee)|0,r=r+Math.imul(_,ae)|0,n=n+Math.imul(_,re)|0,n=n+Math.imul(w,ae)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(g,ie)|0,n=n+Math.imul(g,le)|0,n=n+Math.imul(y,ie)|0,i=i+Math.imul(y,le)|0,r=r+Math.imul(b,se)|0,n=n+Math.imul(b,ue)|0,n=n+Math.imul(p,se)|0,i=i+Math.imul(p,ue)|0,r=r+Math.imul(f,fe)|0,n=n+Math.imul(f,he)|0,n=n+Math.imul(h,fe)|0,i=i+Math.imul(h,he)|0;var Ae=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(F,$),n=Math.imul(F,q),n=n+Math.imul(N,$)|0,i=Math.imul(N,q),r=r+Math.imul(C,H)|0,n=n+Math.imul(C,V)|0,n=n+Math.imul(L,H)|0,i=i+Math.imul(L,V)|0,r=r+Math.imul(R,K)|0,n=n+Math.imul(R,X)|0,n=n+Math.imul(B,K)|0,i=i+Math.imul(B,X)|0,r=r+Math.imul(P,Y)|0,n=n+Math.imul(P,Z)|0,n=n+Math.imul(O,Y)|0,i=i+Math.imul(O,Z)|0,r=r+Math.imul(M,Q)|0,n=n+Math.imul(M,ee)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(S,ae)|0,n=n+Math.imul(S,re)|0,n=n+Math.imul(A,ae)|0,i=i+Math.imul(A,re)|0,r=r+Math.imul(_,ie)|0,n=n+Math.imul(_,le)|0,n=n+Math.imul(w,ie)|0,i=i+Math.imul(w,le)|0,r=r+Math.imul(g,se)|0,n=n+Math.imul(g,ue)|0,n=n+Math.imul(y,se)|0,i=i+Math.imul(y,ue)|0,r=r+Math.imul(b,fe)|0,n=n+Math.imul(b,he)|0,n=n+Math.imul(p,fe)|0,i=i+Math.imul(p,he)|0,r=r+Math.imul(f,be)|0,n=n+Math.imul(f,pe)|0,n=n+Math.imul(h,be)|0,i=i+Math.imul(h,pe)|0;var ke=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(F,H),n=Math.imul(F,V),n=n+Math.imul(N,H)|0,i=Math.imul(N,V),r=r+Math.imul(C,K)|0,n=n+Math.imul(C,X)|0,n=n+Math.imul(L,K)|0,i=i+Math.imul(L,X)|0,r=r+Math.imul(R,Y)|0,n=n+Math.imul(R,Z)|0,n=n+Math.imul(B,Y)|0,i=i+Math.imul(B,Z)|0,r=r+Math.imul(P,Q)|0,n=n+Math.imul(P,ee)|0,n=n+Math.imul(O,Q)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(M,ae)|0,n=n+Math.imul(M,re)|0,n=n+Math.imul(E,ae)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(S,ie)|0,n=n+Math.imul(S,le)|0,n=n+Math.imul(A,ie)|0,i=i+Math.imul(A,le)|0,r=r+Math.imul(_,se)|0,n=n+Math.imul(_,ue)|0,n=n+Math.imul(w,se)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(g,fe)|0,n=n+Math.imul(g,he)|0,n=n+Math.imul(y,fe)|0,i=i+Math.imul(y,he)|0,r=r+Math.imul(b,be)|0,n=n+Math.imul(b,pe)|0,n=n+Math.imul(p,be)|0,i=i+Math.imul(p,pe)|0;var Me=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(F,K),n=Math.imul(F,X),n=n+Math.imul(N,K)|0,i=Math.imul(N,X),r=r+Math.imul(C,Y)|0,n=n+Math.imul(C,Z)|0,n=n+Math.imul(L,Y)|0,i=i+Math.imul(L,Z)|0,r=r+Math.imul(R,Q)|0,n=n+Math.imul(R,ee)|0,n=n+Math.imul(B,Q)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(P,ae)|0,n=n+Math.imul(P,re)|0,n=n+Math.imul(O,ae)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(M,ie)|0,n=n+Math.imul(M,le)|0,n=n+Math.imul(E,ie)|0,i=i+Math.imul(E,le)|0,r=r+Math.imul(S,se)|0,n=n+Math.imul(S,ue)|0,n=n+Math.imul(A,se)|0,i=i+Math.imul(A,ue)|0,r=r+Math.imul(_,fe)|0,n=n+Math.imul(_,he)|0,n=n+Math.imul(w,fe)|0,i=i+Math.imul(w,he)|0,r=r+Math.imul(g,be)|0,n=n+Math.imul(g,pe)|0,n=n+Math.imul(y,be)|0,i=i+Math.imul(y,pe)|0;var Ee=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(F,Y),n=Math.imul(F,Z),n=n+Math.imul(N,Y)|0,i=Math.imul(N,Z),r=r+Math.imul(C,Q)|0,n=n+Math.imul(C,ee)|0,n=n+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,r=r+Math.imul(R,ae)|0,n=n+Math.imul(R,re)|0,n=n+Math.imul(B,ae)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(P,ie)|0,n=n+Math.imul(P,le)|0,n=n+Math.imul(O,ie)|0,i=i+Math.imul(O,le)|0,r=r+Math.imul(M,se)|0,n=n+Math.imul(M,ue)|0,n=n+Math.imul(E,se)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(S,fe)|0,n=n+Math.imul(S,he)|0,n=n+Math.imul(A,fe)|0,i=i+Math.imul(A,he)|0,r=r+Math.imul(_,be)|0,n=n+Math.imul(_,pe)|0,n=n+Math.imul(w,be)|0,i=i+Math.imul(w,pe)|0;var Te=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(F,Q),n=Math.imul(F,ee),n=n+Math.imul(N,Q)|0,i=Math.imul(N,ee),r=r+Math.imul(C,ae)|0,n=n+Math.imul(C,re)|0,n=n+Math.imul(L,ae)|0,i=i+Math.imul(L,re)|0,r=r+Math.imul(R,ie)|0,n=n+Math.imul(R,le)|0,n=n+Math.imul(B,ie)|0,i=i+Math.imul(B,le)|0,r=r+Math.imul(P,se)|0,n=n+Math.imul(P,ue)|0,n=n+Math.imul(O,se)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(M,fe)|0,n=n+Math.imul(M,he)|0,n=n+Math.imul(E,fe)|0,i=i+Math.imul(E,he)|0,r=r+Math.imul(S,be)|0,n=n+Math.imul(S,pe)|0,n=n+Math.imul(A,be)|0,i=i+Math.imul(A,pe)|0;var Pe=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(F,ae),n=Math.imul(F,re),n=n+Math.imul(N,ae)|0,i=Math.imul(N,re),r=r+Math.imul(C,ie)|0,n=n+Math.imul(C,le)|0,n=n+Math.imul(L,ie)|0,i=i+Math.imul(L,le)|0,r=r+Math.imul(R,se)|0,n=n+Math.imul(R,ue)|0,n=n+Math.imul(B,se)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(P,fe)|0,n=n+Math.imul(P,he)|0,n=n+Math.imul(O,fe)|0,i=i+Math.imul(O,he)|0,r=r+Math.imul(M,be)|0,n=n+Math.imul(M,pe)|0,n=n+Math.imul(E,be)|0,i=i+Math.imul(E,pe)|0;var Oe=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(F,ie),n=Math.imul(F,le),n=n+Math.imul(N,ie)|0,i=Math.imul(N,le),r=r+Math.imul(C,se)|0,n=n+Math.imul(C,ue)|0,n=n+Math.imul(L,se)|0,i=i+Math.imul(L,ue)|0,r=r+Math.imul(R,fe)|0,n=n+Math.imul(R,he)|0,n=n+Math.imul(B,fe)|0,i=i+Math.imul(B,he)|0,r=r+Math.imul(P,be)|0,n=n+Math.imul(P,pe)|0,n=n+Math.imul(O,be)|0,i=i+Math.imul(O,pe)|0;var De=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(F,se),n=Math.imul(F,ue),n=n+Math.imul(N,se)|0,i=Math.imul(N,ue),r=r+Math.imul(C,fe)|0,n=n+Math.imul(C,he)|0,n=n+Math.imul(L,fe)|0,i=i+Math.imul(L,he)|0,r=r+Math.imul(R,be)|0,n=n+Math.imul(R,pe)|0,n=n+Math.imul(B,be)|0,i=i+Math.imul(B,pe)|0;var Re=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(F,fe),n=Math.imul(F,he),n=n+Math.imul(N,fe)|0,i=Math.imul(N,he),r=r+Math.imul(C,be)|0,n=n+Math.imul(C,pe)|0,n=n+Math.imul(L,be)|0,i=i+Math.imul(L,pe)|0;var Be=(u+r|0)+((8191&n)<<13)|0;u=(i+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(F,be),n=Math.imul(F,pe),n=n+Math.imul(N,be)|0,i=Math.imul(N,pe);var Ie=(u+r|0)+((8191&n)<<13)|0;return u=(i+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,s[0]=ve,s[1]=ge,s[2]=ye,s[3]=me,s[4]=_e,s[5]=we,s[6]=xe,s[7]=Se,s[8]=Ae,s[9]=ke,s[10]=Me,s[11]=Ee,s[12]=Te,s[13]=Pe,s[14]=Oe,s[15]=De,s[16]=Re,s[17]=Be,s[18]=Ie,0!==u&&(s[19]=u,a.length++),a};function v(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,i=0;i>>26)|0,n+=l>>>26,l&=67108863}a.words[i]=o,r=l,l=n}return 0!==r?a.words[i]=r:a.length--,a.strip()}function g(e,t,a){var r=new y;return r.mulp(e,t,a)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=b),i.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?p(this,e,t):r<63?b(this,e,t):r<1024?v(this,e,t):g(this,e,t),a},y.prototype.makeRBT=function(e){for(var t=new Array(e),a=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,a,r,n,i){for(var l=0;l>>=1)n++;return 1<>>=13,a[2*l+1]=8191&i,i>>>=13;for(l=2*t;l>=26,t+=n/67108864|0,t+=i>>>26,this.words[a]=67108863&i}return 0!==t&&(this.words[a]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=d(e);if(0===t.length)return new i(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,i=67108863>>>26-a<<26-a;if(0!==a){var l=0;for(t=0;t>>26-a}l&&(this.words[t]=l,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,l=Math.min((e-i)/26,this.length),o=67108863^67108863>>>i<l)for(this.length-=l,u=0;u=0&&(0!==c||u>=n);u--){var f=0|this.words[u];this.words[u]=c<<26-i|f>>>i,c=f&o}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&i}for(;n>26,this.words[n+a]=67108863&i;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var a=this.length-e.length,r=this.clone(),n=e,l=0|n.words[n.length-1],o=this._countBits(l);a=26-o,0!==a&&(n=n.ushln(a),r.iushln(a),l=0|n.words[n.length-1]);var s,u=r.length-n.length;if("mod"!==t){s=new i(null),s.length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[n.length+h])+(0|r.words[n.length+h-1]);d=Math.min(d/l|0,67108863),r._ishlnsubmul(n,d,h);while(0!==r.negative)d--,r.negative=0,r._ishlnsubmul(n,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(l=o.mod.neg(),a&&0!==l.negative&&l.iadd(e)),{div:n,mod:l}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!==(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(l=o.mod.neg(),a&&0!==l.negative&&l.isub(e)),{div:o.div,mod:l}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,l,o},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),i=a.cmp(r);return i<0||1===n&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();var n=new i(1),l=new i(0),o=new i(0),s=new i(1),u=0;while(t.isEven()&&a.isEven())t.iushrn(1),a.iushrn(1),++u;var c=a.clone(),f=t.clone();while(!t.isZero()){for(var h=0,d=1;0===(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0){t.iushrn(h);while(h-- >0)(n.isOdd()||l.isOdd())&&(n.iadd(c),l.isub(f)),n.iushrn(1),l.iushrn(1)}for(var b=0,p=1;0===(a.words[0]&p)&&b<26;++b,p<<=1);if(b>0){a.iushrn(b);while(b-- >0)(o.isOdd()||s.isOdd())&&(o.iadd(c),s.isub(f)),o.iushrn(1),s.iushrn(1)}t.cmp(a)>=0?(t.isub(a),n.isub(o),l.isub(s)):(a.isub(t),o.isub(n),s.isub(l))}return{a:o,b:s,gcd:a.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();var n,l=new i(1),o=new i(0),s=a.clone();while(t.cmpn(1)>0&&a.cmpn(1)>0){for(var u=0,c=1;0===(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0){t.iushrn(u);while(u-- >0)l.isOdd()&&l.iadd(s),l.iushrn(1)}for(var f=0,h=1;0===(a.words[0]&h)&&f<26;++f,h<<=1);if(f>0){a.iushrn(f);while(f-- >0)o.isOdd()&&o.iadd(s),o.iushrn(1)}t.cmp(a)>=0?(t.isub(a),l.isub(o)):(a.isub(t),o.isub(l))}return n=0===t.cmpn(1)?l:o,n.cmpn(0)<0&&n.iadd(e),n},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);do{while(t.isEven())t.iushrn(1);while(a.isEven())a.iushrn(1);var n=t.cmp(a);if(n<0){var i=t;t=a,a=i}else if(0===n||0===a.cmpn(1))break;t.isub(a)}while(1);return a.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0===(1&this.words[0])},i.prototype.isOdd=function(){return 1===(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[l]=o}return 0!==i&&(this.words[l]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new k(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"===typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),a=this.imulK(a),a=a.iadd(this.tmp),t=a.bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},n(w,_),w.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,i=l}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new x;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return m[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},k.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var a=this.m.add(new i(1)).iushrn(2);return this.pow(e,a)}var n=this.m.subn(1),l=0;while(!n.isZero()&&0===n.andln(1))l++,n.iushrn(1);r(!n.isZero());var o=new i(1).toRed(this),s=o.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new i(2*c*c).toRed(this);while(0!==this.pow(c,u).cmp(s))c.redIAdd(s);var f=this.pow(c,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),b=l;while(0!==d.cmp(o)){for(var p=d,v=0;0!==p.cmp(o);v++)p=p.redSqr();r(v=0;n--){for(var c=t.words[n],f=u-1;f>=0;f--){var h=c>>f&1;l!==r[0]&&(l=this.sqr(l)),0!==h||0!==o?(o<<=1,o|=h,s++,(s===a||0===n&&0===f)&&(l=this.mul(l,r[o]),s=0,o=0)):s=0}u=26}return l},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new M(e)},n(M,k),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),l=n;return n.cmp(this.m)>=0?l=n.isub(this.m):n.cmpn(0)<0&&(l=n.iadd(this.m)),l._forceRed(this)},M.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(e,this)}).call(this,a(200)(e))},41:function(e,t,a){var r=a(42)();e.exports=r},411:function(e,t,a){var r=a(409),n=a(412);function i(e){this.rand=e||new n.Rand}e.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),a=Math.ceil(t/8);do{var n=new r(this.rand.generate(a))}while(n.cmp(e)>=0);return n},i.prototype._randrange=function(e,t){var a=t.sub(e);return e.add(this._randbelow(a))},i.prototype.test=function(e,t,a){var n=e.bitLength(),i=r.mont(e),l=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var u=e.shrn(s),c=o.toRed(i),f=!0;t>0;t--){var h=this._randrange(new r(2),o);a&&a(h);var d=h.toRed(i).redPow(u);if(0!==d.cmp(l)&&0!==d.cmp(c)){for(var b=1;b0;t--){var c=this._randrange(new r(2),l),f=e.gcd(c);if(0!==f.cmpn(1))return f;var h=c.toRed(n).redPow(s);if(0!==h.cmp(i)&&0!==h.cmp(u)){for(var d=1;d0&&a.ishrn(r),a}function v(e,t){e=p(e,t),e=e.mod(t);var a=r.from(e.toArray());if(a.length=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,a){var n=i(a),l=a.modulus.byteLength(),o=new r(e).mul(n.blinder).umod(a.modulus),s=o.toRed(r.mont(a.prime1)),u=o.toRed(r.mont(a.prime2)),c=a.coefficient,f=a.prime1,h=a.prime2,d=s.redPow(a.exponent1).fromRed(),b=u.redPow(a.exponent2).fromRed(),p=d.isub(b).imul(c).umod(f).imul(h);return b.iadd(p).imul(n.unblinder).umod(a.modulus).toArrayLike(t,"be",l)}o.getr=l,e.exports=o}).call(this,a(328).Buffer)},419:function(e,t,a){"use strict";var r=t;r.version=a(420).version,r.utils=a(421),r.rand=a(412),r.curve=a(423),r.curves=a(428),r.ec=a(442),r.eddsa=a(446)},42:function(e,t,a){var r=a(13)["default"];function n(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=n=function(){return a},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,a={},i=Object.prototype,l=i.hasOwnProperty,o=Object.defineProperty||function(e,t,a){e[t]=a.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function h(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,a){return e[t]=a}}function d(e,t,a,r){var n=t&&t.prototype instanceof _?t:_,i=Object.create(n.prototype),l=new B(r||[]);return o(i,"_invoke",{value:P(e,a,l)}),i}function b(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}a.wrap=d;var p="suspendedStart",v="suspendedYield",g="executing",y="completed",m={};function _(){}function w(){}function x(){}var S={};h(S,u,(function(){return this}));var A=Object.getPrototypeOf,k=A&&A(A(I([])));k&&k!==i&&l.call(k,u)&&(S=k);var M=x.prototype=_.prototype=Object.create(S);function E(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function a(n,i,o,s){var u=b(e[n],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==r(f)&&l.call(f,"__await")?t.resolve(f.__await).then((function(e){a("next",e,o,s)}),(function(e){a("throw",e,o,s)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return a("throw",e,o,s)}))}s(u.arg)}var n;o(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,n){a(e,r,t,n)}))}return n=n?n.then(i,i):i()}})}function P(e,a,r){var n=p;return function(i,l){if(n===g)throw Error("Generator is already running");if(n===y){if("throw"===i)throw l;return{value:t,done:!0}}for(r.method=i,r.arg=l;;){var o=r.delegate;if(o){var s=O(o,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=g;var u=b(e,a,r);if("normal"===u.type){if(n=r.done?y:v,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=y,r.method="throw",r.arg=u.arg)}}}function O(e,a){var r=a.method,n=e.iterator[r];if(n===t)return a.delegate=null,"throw"===r&&e.iterator["return"]&&(a.method="return",a.arg=t,O(e,a),"throw"===a.method)||"return"!==r&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=b(n,e.iterator,a.arg);if("throw"===i.type)return a.method="throw",a.arg=i.arg,a.delegate=null,m;var l=i.arg;return l?l.done?(a[e.resultName]=l.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,m):l:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,m)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function I(e){if(e||""===e){var a=e[u];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function a(){for(;++n=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=l.call(i,"catchLoc"),u=l.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),R(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var n=r.arg;R(a)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,a,r){return this.delegate={iterator:I(e),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=t),m}},a}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},420:function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},421:function(e,t,a){"use strict";var r=t,n=a(409),i=a(383),l=a(422);function o(e,t,a){var r=new Array(Math.max(e.bitLength(),a)+1);r.fill(0);for(var n=1<(n>>1)-1?(n>>1)-s:s,i.isubn(o)):o=0,r[l]=o,i.iushrn(1)}return r}function s(e,t){var a=[[],[]];e=e.clone(),t=t.clone();var r,n=0,i=0;while(e.cmpn(-n)>0||t.cmpn(-i)>0){var l,o,s=e.andln(3)+n&3,u=t.andln(3)+i&3;3===s&&(s=-1),3===u&&(u=-1),0===(1&s)?l=0:(r=e.andln(7)+n&7,l=3!==r&&5!==r||2!==u?s:-s),a[0].push(l),0===(1&u)?o=0:(r=t.andln(7)+i&7,o=3!==r&&5!==r||2!==s?u:-u),a[1].push(o),2*n===l+1&&(n=1-n),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return a}function u(e,t,a){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=a.call(this)}}function c(e){return"string"===typeof e?r.toArray(e,"hex"):e}function f(e){return new n(e,"hex","le")}r.assert=i,r.toArray=l.toArray,r.zero2=l.zero2,r.toHex=l.toHex,r.encode=l.encode,r.getNAF=o,r.getJSF=s,r.cachedProperty=u,r.parseBytes=c,r.intFromLE=f},422:function(e,t,a){"use strict";var r=t;function n(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var a=[];if("string"!==typeof e){for(var r=0;r>8,l=255&n;i?a.push(i,l):a.push(l)}return a}function i(e){return 1===e.length?"0"+e:e}function l(e){for(var t="",a=0;a0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(e,t){o(e.precomputed);var a=e._getDoubles(),r=i(t,1,this._bitLength),n=(1<=l;c--)s=(s<<1)+r[c];u.push(s)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(l=0;l=0;u--){for(var c=0;u>=0&&0===l[u];u--)c++;if(u>=0&&c++,s=s.dblp(c),u<0)break;var f=l[u];o(0!==f),s="affine"===e.type?f>0?s.mixedAdd(n[f-1>>1]):s.mixedAdd(n[-f-1>>1].neg()):f>0?s.add(n[f-1>>1]):s.add(n[-f-1>>1].neg())}return"affine"===e.type?s.toP():s},s.prototype._wnafMulAdd=function(e,t,a,r,n){var o,s,u,c=this._wnafT1,f=this._wnafT2,h=this._wnafT3,d=0;for(o=0;o=1;o-=2){var p=o-1,v=o;if(1===c[p]&&1===c[v]){var g=[t[p],null,null,t[v]];0===t[p].y.cmp(t[v].y)?(g[1]=t[p].add(t[v]),g[2]=t[p].toJ().mixedAdd(t[v].neg())):0===t[p].y.cmp(t[v].y.redNeg())?(g[1]=t[p].toJ().mixedAdd(t[v]),g[2]=t[p].add(t[v].neg())):(g[1]=t[p].toJ().mixedAdd(t[v]),g[2]=t[p].toJ().mixedAdd(t[v].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],m=l(a[p],a[v]);for(d=Math.max(m[0].length,d),h[p]=new Array(d),h[v]=new Array(d),s=0;s=0;o--){var A=0;while(o>=0){var k=!0;for(s=0;s=0&&A++,x=x.dblp(A),o<0)break;for(s=0;s0?u=f[s][M-1>>1]:M<0&&(u=f[s][-M-1>>1].neg()),x="affine"===u.type?x.mixedAdd(u):x.add(u))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],r=this,n=0;n=0&&(l=t,o=a),r.negative&&(r=r.neg(),i=i.neg()),l.negative&&(l=l.neg(),o=o.neg()),[{a:r,b:i},{a:l,b:o}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,a=t[0],r=t[1],n=r.b.mul(e).divRound(this.n),i=a.b.neg().mul(e).divRound(this.n),l=n.mul(a.a),o=i.mul(r.a),s=n.mul(a.b),u=i.mul(r.b),c=e.sub(l).sub(o),f=s.add(u).neg();return{k1:c,k2:f}},s.prototype.pointFromX=function(e,t){e=new n(e,16),e.red||(e=e.toRed(this.red));var a=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=a.redSqrt();if(0!==r.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,a=e.y,r=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===a.redSqr().redISub(n).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,a){for(var r=this._endoWnafT1,n=this._endoWnafT2,i=0;i":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var a=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,r)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,a=this.x.redSqr(),r=e.redInvm(),n=a.redAdd(a).redIAdd(a).redIAdd(t).redMul(r),i=n.redSqr().redISub(this.x.redAdd(this.x)),l=n.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,l)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new n(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,a){var r=[this,t],n=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(r,n):this.curve._wnafMulAdd(1,r,n,2)},u.prototype.jmulAdd=function(e,t,a){var r=[this,t],n=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(r,n,!0):this.curve._wnafMulAdd(1,r,n,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var a=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(r)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(r)}}}return t},u.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e},i(c,l.BasePoint),s.prototype.jpoint=function(e,t,a){return new c(this,e,t,a)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),a=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(a,r)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),a=this.z.redSqr(),r=this.x.redMul(t),n=e.x.redMul(a),i=this.y.redMul(t.redMul(e.z)),l=e.y.redMul(a.redMul(this.z)),o=r.redSub(n),s=i.redSub(l);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),c=u.redMul(o),f=r.redMul(u),h=s.redSqr().redIAdd(c).redISub(f).redISub(f),d=s.redMul(f.redISub(h)).redISub(i.redMul(c)),b=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(h,d,b)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),a=this.x,r=e.x.redMul(t),n=this.y,i=e.y.redMul(t).redMul(this.z),l=a.redSub(r),o=n.redSub(i);if(0===l.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=l.redSqr(),u=s.redMul(l),c=a.redMul(s),f=o.redSqr().redIAdd(u).redISub(c).redISub(c),h=o.redMul(c.redISub(f)).redISub(n.redMul(u)),d=this.z.redMul(l);return this.curve.jpoint(f,h,d)},c.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var a=this;for(t=0;t=0)return!1;if(a.redIAdd(n),0===this.x.cmp(a))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},426:function(e,t,a){"use strict";var r=a(409),n=a(333),i=a(424),l=a(421);function o(e){i.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(e,t,a){i.BasePoint.call(this,e,"projective"),null===t&&null===a?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,i),e.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,a=t.redSqr(),r=a.redMul(t).redAdd(a.redMul(this.a)).redAdd(t),n=r.redSqrt();return 0===n.redSqr().cmp(r)},n(s,i.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(l.toArray(e,t),1)},o.prototype.point=function(e,t){return new s(this,e,t)},o.prototype.pointFromJSON=function(e){return s.fromJSON(this,e)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(e,t){return new s(e,t[0],t[1]||e.one)},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),a=this.x.redSub(this.z),r=a.redSqr(),n=t.redSub(r),i=t.redMul(r),l=n.redMul(r.redAdd(this.curve.a24.redMul(n)));return this.curve.point(i,l)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(e,t){var a=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=e.x.redAdd(e.z),i=e.x.redSub(e.z),l=i.redMul(a),o=n.redMul(r),s=t.z.redMul(l.redAdd(o).redSqr()),u=t.x.redMul(l.redISub(o).redSqr());return this.curve.point(s,u)},s.prototype.mul=function(e){for(var t=e.clone(),a=this,r=this.curve.point(null,null),n=this,i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var l=i.length-1;l>=0;l--)0===i[l]?(a=a.diffAdd(r,n),r=r.dbl()):(r=a.diffAdd(r,n),a=a.dbl());return r},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},427:function(e,t,a){"use strict";var r=a(421),n=a(409),i=a(333),l=a(424),o=r.assert;function s(e){this.twisted=1!==(0|e.a),this.mOneA=this.twisted&&-1===(0|e.a),this.extended=this.mOneA,l.call(this,"edwards",e),this.a=new n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|e.c)}function u(e,t,a,r,i){l.BasePoint.call(this,e,"projective"),null===t&&null===a&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new n(t,16),this.y=new n(a,16),this.z=r?new n(r,16):this.curve.one,this.t=i&&new n(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(s,l),e.exports=s,s.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,a,r){return this.point(e,t,a,r)},s.prototype.pointFromX=function(e,t){e=new n(e,16),e.red||(e=e.toRed(this.red));var a=e.redSqr(),r=this.c2.redSub(this.a.redMul(a)),i=this.one.redSub(this.c2.redMul(this.d).redMul(a)),l=r.redMul(i.redInvm()),o=l.redSqrt();if(0!==o.redSqr().redSub(l).cmp(this.zero))throw new Error("invalid point");var s=o.fromRed().isOdd();return(t&&!s||!t&&s)&&(o=o.redNeg()),this.point(e,o)},s.prototype.pointFromY=function(e,t){e=new n(e,16),e.red||(e=e.toRed(this.red));var a=e.redSqr(),r=a.redSub(this.c2),i=a.redMul(this.d).redMul(this.c2).redSub(this.a),l=r.redMul(i.redInvm());if(0===l.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=l.redSqrt();if(0!==o.redSqr().redSub(l).cmp(this.zero))throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),a=e.y.redSqr(),r=t.redMul(this.a).redAdd(a),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(a)));return 0===r.cmp(n)},i(u,l.BasePoint),s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},s.prototype.point=function(e,t,a,r){return new u(this,e,t,a,r)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),a=this.z.redSqr();a=a.redIAdd(a);var r=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),l=i.redSub(a),o=r.redSub(t),s=n.redMul(l),u=i.redMul(o),c=n.redMul(o),f=l.redMul(i);return this.curve.point(s,u,f,c)},u.prototype._projDbl=function(){var e,t,a,r,n,i,l=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){r=this.curve._mulA(o);var u=r.redAdd(s);this.zOne?(e=l.redSub(o).redSub(s).redMul(u.redSub(this.curve.two)),t=u.redMul(r.redSub(s)),a=u.redSqr().redSub(u).redSub(u)):(n=this.z.redSqr(),i=u.redSub(n).redISub(n),e=l.redSub(o).redISub(s).redMul(i),t=u.redMul(r.redSub(s)),a=u.redMul(i))}else r=o.redAdd(s),n=this.curve._mulC(this.z).redSqr(),i=r.redSub(n).redSub(n),e=this.curve._mulC(l.redISub(r)).redMul(i),t=this.curve._mulC(r).redMul(o.redISub(s)),a=r.redMul(i);return this.curve.point(e,t,a)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),a=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),i=a.redSub(t),l=n.redSub(r),o=n.redAdd(r),s=a.redAdd(t),u=i.redMul(l),c=o.redMul(s),f=i.redMul(s),h=l.redMul(o);return this.curve.point(u,c,h,f)},u.prototype._projAdd=function(e){var t,a,r=this.z.redMul(e.z),n=r.redSqr(),i=this.x.redMul(e.x),l=this.y.redMul(e.y),o=this.curve.d.redMul(i).redMul(l),s=n.redSub(o),u=n.redAdd(o),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(l),f=r.redMul(s).redMul(c);return this.curve.twisted?(t=r.redMul(u).redMul(l.redSub(this.curve._mulA(i))),a=s.redMul(u)):(t=r.redMul(u).redMul(l.redSub(i)),a=this.curve._mulC(s).redMul(u)),this.curve.point(f,t,a)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,a){return this.curve._wnafMulAdd(1,[this,t],[e,a],2,!1)},u.prototype.jmulAdd=function(e,t,a){return this.curve._wnafMulAdd(1,[this,t],[e,a],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var a=e.clone(),r=this.curve.redN.redMul(this.z);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},428:function(e,t,a){"use strict";var r,n=t,i=a(429),l=a(423),o=a(421),s=o.assert;function u(e){"short"===e.type?this.curve=new l.short(e):"edwards"===e.type?this.curve=new l.edwards(e):this.curve=new l.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var a=new u(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:a}),a}})}n.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=a(441)}catch(f){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},429:function(e,t,a){var r=t;r.utils=a(430),r.common=a(431),r.sha=a(432),r.ripemd=a(439),r.hmac=a(440),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},43:function(e,t){function a(e,t,a,r,n,i,l){try{var o=e[i](l),s=o.value}catch(u){return void a(u)}o.done?t(s):Promise.resolve(s).then(r,n)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var l=e.apply(t,r);function o(e){a(l,n,i,o,s,"next",e)}function s(e){a(l,n,i,o,s,"throw",e)}o(void 0)}))}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},430:function(e,t,a){"use strict";var r=a(383),n=a(333);function i(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function l(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var a=[];if("string"===typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!==0&&(e="0"+e),n=0;n>6|192,a[r++]=63&l|128):i(e,n)?(l=65536+((1023&l)<<10)+(1023&e.charCodeAt(++n)),a[r++]=l>>18|240,a[r++]=l>>12&63|128,a[r++]=l>>6&63|128,a[r++]=63&l|128):(a[r++]=l>>12|224,a[r++]=l>>6&63|128,a[r++]=63&l|128)}else for(n=0;n>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24;return t>>>0}function u(e,t){for(var a="",r=0;r>>0}return l}function d(e,t){for(var a=new Array(4*e.length),r=0,n=0;r>>24,a[n+1]=i>>>16&255,a[n+2]=i>>>8&255,a[n+3]=255&i):(a[n+3]=i>>>24,a[n+2]=i>>>16&255,a[n+1]=i>>>8&255,a[n]=255&i)}return a}function b(e,t){return e>>>t|e<<32-t}function p(e,t){return e<>>32-t}function v(e,t){return e+t>>>0}function g(e,t,a){return e+t+a>>>0}function y(e,t,a,r){return e+t+a+r>>>0}function m(e,t,a,r,n){return e+t+a+r+n>>>0}function _(e,t,a,r){var n=e[t],i=e[t+1],l=r+i>>>0,o=(l>>0,e[t+1]=l}function w(e,t,a,r){var n=t+r>>>0,i=(n>>0}function x(e,t,a,r){var n=t+r;return n>>>0}function S(e,t,a,r,n,i,l,o){var s=0,u=t;u=u+r>>>0,s+=u>>0,s+=u>>0,s+=u>>0}function A(e,t,a,r,n,i,l,o){var s=t+r+i+o;return s>>>0}function k(e,t,a,r,n,i,l,o,s,u){var c=0,f=t;f=f+r>>>0,c+=f>>0,c+=f>>0,c+=f>>0,c+=f>>0}function M(e,t,a,r,n,i,l,o,s,u){var c=t+r+i+o+u;return c>>>0}function E(e,t,a){var r=t<<32-a|e>>>a;return r>>>0}function T(e,t,a){var r=e<<32-a|t>>>a;return r>>>0}function P(e,t,a){return e>>>a}function O(e,t,a){var r=e<<32-a|t>>>a;return r>>>0}t.inherits=n,t.toArray=l,t.toHex=o,t.htonl=s,t.toHex32=u,t.zero2=c,t.zero8=f,t.join32=h,t.split32=d,t.rotr32=b,t.rotl32=p,t.sum32=v,t.sum32_3=g,t.sum32_4=y,t.sum32_5=m,t.sum64=_,t.sum64_hi=w,t.sum64_lo=x,t.sum64_4_hi=S,t.sum64_4_lo=A,t.sum64_5_hi=k,t.sum64_5_lo=M,t.rotr64_hi=E,t.rotr64_lo=T,t.shr64_hi=P,t.shr64_lo=O},431:function(e,t,a){"use strict";var r=a(430),n=a(383);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var a=e.length%this._delta8;this.pending=e.slice(e.length-a,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-a,this.endian);for(var n=0;n>>24&255,r[n++]=e>>>16&255,r[n++]=e>>>8&255,r[n++]=255&e}else for(r[n++]=255&e,r[n++]=e>>>8&255,r[n++]=e>>>16&255,r[n++]=e>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,i=8;i>>3}function h(e){return n(e,17)^n(e,19)^e>>>10}t.ft_1=i,t.ch32=l,t.maj32=o,t.p32=s,t.s0_256=u,t.s1_256=c,t.g0_256=f,t.g1_256=h},435:function(e,t,a){"use strict";var r=a(430),n=a(436);function i(){if(!(this instanceof i))return new i;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(i,n),e.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},436:function(e,t,a){"use strict";var r=a(430),n=a(431),i=a(434),l=a(383),o=r.sum32,s=r.sum32_4,u=r.sum32_5,c=i.ch32,f=i.maj32,h=i.s0_256,d=i.s1_256,b=i.g0_256,p=i.g1_256,v=n.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(y,v),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var a=this.W,r=0;r<16;r++)a[r]=e[t+r];for(;r0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);var a,r=new Date(Number(e)),n={"y+":r.getFullYear().toString(),"m+":(r.getMonth()+1).toString(),"d+":r.getDate().toString(),"h+":r.getHours().toString(),"M+":r.getMinutes().toString(),"s+":r.getSeconds().toString()};for(var i in n)a=new RegExp("("+i+")").exec(t),a&&(t=t.replace(a[1],1==a[1].length?n[i]:n[i].padStart(a[1].length,"0")));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,String.prototype.padStart||(String.prototype.padStart=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");var a=this;if(a.length>=e)return String(a);var r=e-a.length,n=Math.ceil(r/t.length);while(n>>=1)t+=t,1===n&&(t+=t);return t.slice(0,r)+a});var n=r;t.default=n},440:function(e,t,a){"use strict";var r=a(430),n=a(383);function i(e,t,a){if(!(this instanceof i))return new i(e,t,a);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,a))}e.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t0))return l.iaddn(1),this.keyFromPrivate(l)}},f.prototype._truncateToN=function(e,t){var a=8*e.byteLength()-this.n.bitLength();return a>0&&(e=e.ushrn(a)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,a,i){"object"===typeof a&&(i=a,a=null),i||(i={}),t=this.keyFromPrivate(t,a),e=this._truncateToN(new r(e,16));for(var l=this.n.byteLength(),o=t.getPrivate().toArray("be",l),s=e.toArray("be",l),u=new n({hash:this.hash,entropy:o,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),f=this.n.sub(new r(1)),h=0;;h++){var d=i.k?i.k(h):new r(u.generate(this.n.byteLength()));if(d=this._truncateToN(d,!0),!(d.cmpn(1)<=0||d.cmp(f)>=0)){var b=this.g.mul(d);if(!b.isInfinity()){var p=b.getX(),v=p.umod(this.n);if(0!==v.cmpn(0)){var g=d.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(g=g.umod(this.n),0!==g.cmpn(0)){var y=(b.getY().isOdd()?1:0)|(0!==p.cmp(v)?2:0);return i.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new c({r:v,s:g,recoveryParam:y})}}}}}},f.prototype.verify=function(e,t,a,n){e=this._truncateToN(new r(e,16)),a=this.keyFromPublic(a,n),t=new c(t,"hex");var i=t.r,l=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(l.cmpn(1)<0||l.cmp(this.n)>=0)return!1;var o,s=l.invm(this.n),u=s.mul(e).umod(this.n),f=s.mul(i).umod(this.n);return this.curve._maxwellTrick?(o=this.g.jmulAdd(u,a.getPublic(),f),!o.isInfinity()&&o.eqXToP(i)):(o=this.g.mulAdd(u,a.getPublic(),f),!o.isInfinity()&&0===o.getX().umod(this.n).cmp(i))},f.prototype.recoverPubKey=function(e,t,a,n){s((3&a)===a,"The recovery param is more than two bits"),t=new c(t,n);var i=this.n,l=new r(e),o=t.r,u=t.s,f=1&a,h=a>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");o=h?this.curve.pointFromX(o.add(this.curve.n),f):this.curve.pointFromX(o,f);var d=t.r.invm(i),b=i.sub(l).mul(d).umod(i),p=u.mul(d).umod(i);return this.g.mulAdd(b,o,p)},f.prototype.getKeyRecoveryParam=function(e,t,a,r){if(t=new c(t,r),null!==t.recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var i;try{i=this.recoverPubKey(e,t,n)}catch(e){continue}if(i.eq(a))return n}throw new Error("Unable to find valid recovery factor")}},443:function(e,t,a){"use strict";var r=a(429),n=a(422),i=a(383);function l(e){if(!(this instanceof l))return new l(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=n.toArray(e.entropy,e.entropyEnc||"hex"),a=n.toArray(e.nonce,e.nonceEnc||"hex"),r=n.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,a,r)}e.exports=l,l.prototype._init=function(e,t,a){var r=e.concat(t).concat(a);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(a||[])),this._reseed=1},l.prototype.generate=function(e,t,a,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(r=a,a=t,t=null),a&&(a=n.toArray(a,r||"hex"),this._update(a));var i=[];while(i.length"}},445:function(e,t,a){"use strict";var r=a(409),n=a(421),i=n.assert;function l(e,t){if(e instanceof l)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function s(e,t){var a=e[t.place++];if(!(128&a))return a;var r=15&a;if(0===r||r>4)return!1;for(var n=0,i=0,l=t.place;i>>=0;return!(n<=127)&&(t.place=l,n)}function u(e){var t=0,a=e.length-1;while(!e[t]&&!(128&e[t+1])&&t>>3);e.push(128|a);while(--a)e.push(t>>>(a<<3)&255);e.push(t)}}e.exports=l,l.prototype._importDER=function(e,t){e=n.toArray(e,t);var a=new o;if(48!==e[a.place++])return!1;var i=s(e,a);if(!1===i)return!1;if(i+a.place!==e.length)return!1;if(2!==e[a.place++])return!1;var l=s(e,a);if(!1===l)return!1;var u=e.slice(a.place,l+a.place);if(a.place+=l,2!==e[a.place++])return!1;var c=s(e,a);if(!1===c)return!1;if(e.length!==c+a.place)return!1;var f=e.slice(a.place,c+a.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(u),this.s=new r(f),this.recoveryParam=null,!0},l.prototype.toDER=function(e){var t=this.r.toArray(),a=this.s.toArray();128&t[0]&&(t=[0].concat(t)),128&a[0]&&(a=[0].concat(a)),t=u(t),a=u(a);while(!a[0]&&!(128&a[1]))a=a.slice(1);var r=[2];c(r,t.length),r=r.concat(t),r.push(2),c(r,a.length);var i=r.concat(a),l=[48];return c(l,i.length),l=l.concat(i),n.encode(l,e)}},446:function(e,t,a){"use strict";var r=a(429),n=a(428),i=a(421),l=i.assert,o=i.parseBytes,s=a(447),u=a(448);function c(e){if(l("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=c,c.prototype.sign=function(e,t){e=o(e);var a=this.keyFromSecret(t),r=this.hashInt(a.messagePrefix(),e),n=this.g.mul(r),i=this.encodePoint(n),l=this.hashInt(i,a.pubBytes(),e).mul(a.priv()),s=r.add(l).umod(this.curve.n);return this.makeSignature({R:n,S:s,Rencoded:i})},c.prototype.verify=function(e,t,a){e=o(e),t=this.makeSignature(t);var r=this.keyFromPublic(a),n=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S()),l=t.R().add(r.pub().mul(n));return l.eq(i)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);var a=+new Date(Number(e)),r=(Number(new Date)-a)/1e3,i="";switch(!0){case r<300:i="刚刚";break;case r>=300&&r<3600:i=parseInt(r/60)+"分钟前";break;case r>=3600&&r<86400:i=parseInt(r/3600)+"小时前";break;case r>=86400&&r<2592e3:i=parseInt(r/86400)+"天前";break;default:i=!1===t?r>=2592e3&&r<31536e3?parseInt(r/2592e3)+"个月前":parseInt(r/31536e3)+"年前":(0,n.default)(a,t)}return i}var l=i;t.default=l},450:function(e,t,a){"use strict";var r=a(451);t.certificate=a(466);var n=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=n;var i=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=i;var l=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}));t.PublicKey=l;var o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),s=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=s;var u=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=u;var c=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=c,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=f;var h=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},451:function(e,t,a){"use strict";const r=t;r.bignum=a(409),r.define=a(452).define,r.base=a(464),r.constants=a(465),r.decoders=a(461),r.encoders=a(453)},452:function(e,t,a){"use strict";const r=a(453),n=a(461),i=a(333),l=t;function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}l.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function a(e){this._initNamed(e,t)}return i(a,e),a.prototype._initNamed=function(t,a){e.call(this,t,a)},new a(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n[e])),this.decoders[e]},o.prototype.decode=function(e,t,a){return this._getDecoder(t).decode(e,a)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},o.prototype.encode=function(e,t,a){return this._getEncoder(t).encode(e,a)}},453:function(e,t,a){"use strict";const r=t;r.der=a(454),r.pem=a(460)},454:function(e,t,a){"use strict";const r=a(333),n=a(455).Buffer,i=a(456),l=a(459);function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new s,this.tree._init(e.body)}function s(e){i.call(this,"der",e)}function u(e){return e<10?"0"+e:e}function c(e,t,a,r){let n;if("seqof"===e?e="seq":"setof"===e&&(e="set"),l.tagByName.hasOwnProperty(e))n=l.tagByName[e];else{if("number"!==typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);n=e}return n>=31?r.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=l.tagClassByName[a||"universal"]<<6,n)}e.exports=o,o.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(s,i),s.prototype._encodeComposite=function(e,t,a,r){const i=c(e,t,a,this.reporter);if(r.length<128){const e=n.alloc(2);return e[0]=i,e[1]=r.length,this._createEncoderBuffer([e,r])}let l=1;for(let n=r.length;n>=256;n>>=8)l++;const o=n.alloc(2+l);o[0]=i,o[1]=128|l;for(let n=1+l,s=r.length;s>0;n--,s>>=8)o[n]=255&s;return this._createEncoderBuffer([o,r])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=n.alloc(2*e.length);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let n=0;n=128;t>>=7)r++}const i=n.alloc(r);let l=i.length-1;for(let n=e.length-1;n>=0;n--){let t=e[n];i[l--]=127&t;while((t>>=7)>0)i[l--]=128|127&t}return this._createEncoderBuffer(i)},s.prototype._encodeTime=function(e,t){let a;const r=new Date(e);return"gentime"===t?a=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?a=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(a,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"===typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!==typeof e&&!n.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=n.from(t)}if(n.isBuffer(e)){let t=e.length;0===e.length&&t++;const a=n.alloc(t);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let a=1;for(let n=e;n>=256;n>>=8)a++;const r=new Array(a);for(let n=r.length-1;n>=0;n--)r[n]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(n.from(r))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,a){const r=this._baseState;let n;if(null===r["default"])return!1;const i=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r["default"],t,a).join()),i.length!==r.defaultBuffer.length)return!1;for(n=0;n=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=i(e);return t&&0!==t.length?"string"===typeof a?r.fill(t,a):r.fill(t):r.fill(0),r}),!l.kStringMaxLength)try{l.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(s){}l.constants||(l.constants={MAX_LENGTH:l.kMaxLength},l.kStringMaxLength&&(l.constants.MAX_STRING_LENGTH=l.kStringMaxLength)),e.exports=l}).call(this,a(325))},456:function(e,t,a){"use strict";const r=a(457).Reporter,n=a(458).EncoderBuffer,i=a(458).DecoderBuffer,l=a(383),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o),u=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function c(e,t,a){const r={};this._baseState=r,r.name=a,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r["default"]=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=c;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};f.forEach((function(a){t[a]=e[a]}));const a=new this.constructor(t.parent);return a._baseState=t,a},c.prototype._wrap=function(){const e=this._baseState;s.forEach((function(t){this[t]=function(){const a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}}),this)},c.prototype._init=function(e){const t=this._baseState;l(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),l.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,a=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==a.length&&(l(null===t.children),t.children=a,a.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(l(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(a){a==(0|a)&&(a|=0);const r=e[a];t[r]=a})),t})))},u.forEach((function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),o.forEach((function(e){c.prototype[e]=function(){const t=this._baseState,a=Array.prototype.slice.call(arguments);return l(null===t.tag),t.tag=e,this._useArgs(a),this}})),c.prototype.use=function(e){l(e);const t=this._baseState;return l(null===t.use),t.use=e,this},c.prototype.optional=function(){const e=this._baseState;return e.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return l(null===t["default"]),t["default"]=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return l(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return l(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return l(null===t.key),t.key=e,this},c.prototype.any=function(){const e=this._baseState;return e.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return l(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){const t=this._baseState;return l(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const a=this._baseState;if(null===a.parent)return e.wrapResult(a.children[0]._decode(e,t));let r,n=a["default"],l=!0,o=null;if(null!==a.key&&(o=e.enterKey(a.key)),a.optional){let r=null;if(null!==a.explicit?r=a.explicit:null!==a.implicit?r=a.implicit:null!==a.tag&&(r=a.tag),null!==r||a.any){if(l=this._peekTag(e,r,a.any),e.isError(l))return l}else{const r=e.save();try{null===a.choice?this._decodeGeneric(a.tag,e,t):this._decodeChoice(e,t),l=!0}catch(s){l=!1}e.restore(r)}}if(a.obj&&l&&(r=e.enterObject()),l){if(null!==a.explicit){const t=this._decodeTag(e,a.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===a.use&&null===a.choice){let t;a.any&&(t=e.save());const r=this._decodeTag(e,null!==a.implicit?a.implicit:a.tag,a.any);if(e.isError(r))return r;a.any?n=e.raw(t):e=r}if(t&&t.track&&null!==a.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==a.tag&&t.track(e.path(),e.offset,e.length,"content"),a.any||(n=null===a.choice?this._decodeGeneric(a.tag,e,t):this._decodeChoice(e,t)),e.isError(n))return n;if(a.any||null!==a.choice||null===a.children||a.children.forEach((function(a){a._decode(e,t)})),a.contains&&("octstr"===a.tag||"bitstr"===a.tag)){const r=new i(n);n=this._getUse(a.contains,e._reporterState.obj)._decode(r,t)}}return a.obj&&l&&(n=e.leaveObject(r)),null===a.key||null===n&&!0!==l?null!==o&&e.exitKey(o):e.leaveKey(o,a.key,n),n},c.prototype._decodeGeneric=function(e,t,a){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],a):/str$/.test(e)?this._decodeStr(t,e,a):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],a):"objid"===e?this._decodeObjid(t,null,null,a):"gentime"===e||"utctime"===e?this._decodeTime(t,e,a):"null_"===e?this._decodeNull(t,a):"bool"===e?this._decodeBool(t,a):"objDesc"===e?this._decodeStr(t,e,a):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],a):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,a):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const a=this._baseState;return a.useDecoder=this._use(e,t),l(null===a.useDecoder._baseState.parent),a.useDecoder=a.useDecoder._baseState.children[0],a.implicit!==a.useDecoder._baseState.implicit&&(a.useDecoder=a.useDecoder.clone(),a.useDecoder._baseState.implicit=a.implicit),a.useDecoder},c.prototype._decodeChoice=function(e,t){const a=this._baseState;let r=null,n=!1;return Object.keys(a.choice).some((function(i){const l=e.save(),o=a.choice[i];try{const a=o._decode(e,t);if(e.isError(a))return!1;r={type:i,value:a},n=!0}catch(s){return e.restore(l),!1}return!0}),this),n?r:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},c.prototype._encode=function(e,t,a){const r=this._baseState;if(null!==r["default"]&&r["default"]===e)return;const n=this._encodeValue(e,t,a);return void 0===n||this._skipDefault(n,t,a)?void 0:n},c.prototype._encodeValue=function(e,t,a){const n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new r);let i=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n["default"])return;e=n["default"]}let l=null,o=!1;if(n.any)i=this._createEncoderBuffer(e);else if(n.choice)i=this._encodeChoice(e,t);else if(n.contains)l=this._getUse(n.contains,a)._encode(e,t),o=!0;else if(n.children)l=n.children.map((function(a){if("null_"===a._baseState.tag)return a._encode(null,t,e);if(null===a._baseState.key)return t.error("Child should have a key");const r=t.enterKey(a._baseState.key);if("object"!==typeof e)return t.error("Child expected, but input is not object");const n=a._encode(e[a._baseState.key],t,e);return t.leaveKey(r),n}),this).filter((function(e){return e})),l=this._createEncoderBuffer(l);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const a=this.clone();a._baseState.implicit=null,l=this._createEncoderBuffer(e.map((function(a){const r=this._baseState;return this._getUse(r.args[0],e)._encode(a,t)}),a))}else null!==n.use?i=this._getUse(n.use,a)._encode(e,t):(l=this._encodePrimitive(n.tag,e),o=!0);if(!n.any&&null===n.choice){const e=null!==n.implicit?n.implicit:n.tag,a=null===n.implicit?"universal":"context";null===e?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(i=this._encodeComposite(e,o,a,l))}return null!==n.explicit&&(i=this._encodeComposite(n.explicit,!1,"context",i)),i},c.prototype._encodeChoice=function(e,t){const a=this._baseState,r=a.choice[e.type];return r||l(!1,e.type+" not found in "+JSON.stringify(Object.keys(a.choice))),r._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const a=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&a.args)return this._encodeObjid(t,a.reverseArgs[0],a.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,a.args&&a.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},457:function(e,t,a){"use strict";const r=a(333);function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}t.Reporter=n,n.prototype.isError=function(e){return e instanceof i},n.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,a){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=a)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){const t=this._reporterState,a=t.obj;return t.obj=e,a},n.prototype.error=function(e){let t;const a=this._reporterState,r=e instanceof i;if(t=r?e:new i(a.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!a.options.partial)throw t;return r||a.errors.push(t),t},n.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},458:function(e,t,a){"use strict";const r=a(333),n=a(457).Reporter,i=a(455).Buffer;function l(e,t){n.call(this,t),i.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e}),this);else if("number"===typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"===typeof e)this.value=e,this.length=i.byteLength(e);else{if(!i.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(l,n),t.DecoderBuffer=l,l.isDecoderBuffer=function(e){if(e instanceof l)return!0;const t="object"===typeof e&&i.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"===typeof e.offset&&"number"===typeof e.length&&"function"===typeof e.save&&"function"===typeof e.restore&&"function"===typeof e.isEmpty&&"function"===typeof e.readUInt8&&"function"===typeof e.skip&&"function"===typeof e.raw;return t},l.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},l.prototype.restore=function(e){const t=new l(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},l.prototype.isEmpty=function(){return this.offset===this.length},l.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},l.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const a=new l(this.base);return a._reporterState=this._reporterState,a.offset=this.offset,a.length=this.offset+e,this.offset+=e,a},l.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=o,o.isEncoderBuffer=function(e){if(e instanceof o)return!0;const t="object"===typeof e&&"EncoderBuffer"===e.constructor.name&&"number"===typeof e.length&&"function"===typeof e.join;return t},o.prototype.join=function(e,t){return e||(e=i.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(a){a.join(e,t),t+=a.length})):("number"===typeof this.value?e[t]=this.value:"string"===typeof this.value?e.write(this.value,t):i.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},459:function(e,t,a){"use strict";function r(e){const t={};return Object.keys(e).forEach((function(a){(0|a)==a&&(a|=0);const r=e[a];t[r]=a})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r(t.tag)},46:function(e,t,a){"use strict";function r(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=n(e,!1),l=r[0],o=r[1],s=r[2],u=n(t,!1),c=u[0],f=u[1],h=u[2],d=(c-l)/a,b=(f-o)/a,p=(h-s)/a,v=[],g=0;g1&&void 0!==arguments[1])||arguments[1],a=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=e.toLowerCase(),e&&a.test(e)){if(4===e.length){for(var r="#",n=1;n<4;n+=1)r+=e.slice(n,n+1).concat(e.slice(n,n+1));e=r}for(var i=[],l=1;l<7;l+=2)i.push(parseInt("0x"+e.slice(l,l+2)));return t?"rgb(".concat(i[0],",").concat(i[1],",").concat(i[2],")"):i}if(/^(rgb|RGB)/.test(e)){var o=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return o.map((function(e){return Number(e)}))}return e}function i(e){var t=e,a=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(t)){for(var r=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),n="#",i=0;i1&&void 0!==arguments[1]?arguments[1]:.3;e=i(e);var a=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,r=e.toLowerCase();if(r&&a.test(r)){if(4===r.length){for(var n="#",l=1;l<4;l+=1)n+=r.slice(l,l+1).concat(r.slice(l,l+1));r=n}for(var o=[],s=1;s<7;s+=2)o.push(parseInt("0x"+r.slice(s,s+2)));return"rgba("+o.join(",")+","+t+")"}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={colorGradient:r,hexToRgb:n,rgbToHex:i,colorToRgba:l};t.default=o},460:function(e,t,a){"use strict";const r=a(333),n=a(454);function i(e){n.call(this,e),this.enc="pem"}r(i,n),e.exports=i,i.prototype.encode=function(e,t){const a=n.prototype.encode.call(this,e),r=a.toString("base64"),i=["-----BEGIN "+t.label+"-----"];for(let n=0;n>6],n=0===(32&a);if(31===(31&a)){let r=a;a=0;while(128===(128&r)){if(r=e.readUInt8(t),e.isError(r))return r;a<<=7,a|=127&r}}else a&=31;const i=o.tag[a];return{cls:r,primitive:n,tag:a,tagStr:i}}function f(e,t,a){let r=e.readUInt8(a);if(e.isError(r))return r;if(!t&&128===r)return null;if(0===(128&r))return r;const n=127&r;if(n>4)return e.error("length octect is too long");r=0;for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];if(a=a||r.length,e)for(var i=0;i=t)throw new Error("invalid sig")}e.exports=s},471:function(e,t,a){(function(t){var r=a(419),n=a(409);e.exports=function(e){return new l(e)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function l(e){this.curveType=i[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function o(e,a,r){Array.isArray(e)||(e=e.toArray());var n=new t(e);if(r&&n.lengtha-h-2)throw new Error("message too long");var d=f.alloc(a-r-h-2),b=a-c-1,p=n(c),v=o(f.concat([u,d,f.alloc(1,1),t],b),l(p,b)),g=o(p,l(v,c));return new s(f.concat([f.alloc(1),g,v],a))}function d(e,t,a){var r,n=t.length,i=e.modulus.byteLength();if(n>i-11)throw new Error("message too long");return r=a?f.alloc(i-n-3,255):b(i-n-3),new s(f.concat([f.from([0,a?1:2]),r,f.alloc(1),t],i))}function b(e){var t,a=f.allocUnsafe(e),r=0,i=n(2*e),l=0;while(r=0)throw new Error("data too long for modulus")}return a?c(i,l):u(i,l)}},474:function(e,t,a){var r=a(332),n=a(327).Buffer;function i(e){var t=n.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){var a,l=n.alloc(0),o=0;while(l.length=t.length){i++;break}var l=t.slice(2,n-1);if(("0002"!==r.toString("hex")&&!a||"0001"!==r.toString("hex")&&a)&&i++,l.length<8&&i++,i)throw new Error("decryption error");return t.slice(n)}function d(e,t){e=c.from(e),t=c.from(t);var a=0,r=e.length;e.length!==t.length&&(a++,r=Math.min(e.length,t.length));var n=-1;while(++nd||new l(t).cmp(s.modulus)>=0)throw new Error("decryption error");i=a?u(new l(t),s):o(t,s);var b=c.alloc(d-i.length);if(i=c.concat([b,i],d),4===n)return f(s,i);if(1===n)return h(s,i,a);if(3===n)return i;throw new Error("unknown padding")}},478:function(e,t,a){"use strict";(function(e,r){function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=a(327),l=a(324),o=i.Buffer,s=i.kMaxLength,u=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function f(e,t){if("number"!==typeof e||e!==e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function h(e,t,a){if("number"!==typeof e||e!==e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>a||e>s)throw new RangeError("buffer too small")}function d(t,a,r,n){if(!o.isBuffer(t)&&!(t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof a)n=a,a=0,r=t.length;else if("function"===typeof r)n=r,r=t.length-a;else if("function"!==typeof n)throw new TypeError('"cb" argument must be a function');return f(a,t.length),h(r,a,t.length),b(t,a,r,n)}function b(e,t,a,n){if(r.browser){var i=e.buffer,o=new Uint8Array(i,t,a);return u.getRandomValues(o),n?void r.nextTick((function(){n(null,e)})):e}if(!n){var s=l(a);return s.copy(e,t),e}l(a,(function(a,r){if(a)return n(a);r.copy(e,t),n(null,e)}))}function p(t,a,r){if("undefined"===typeof a&&(a=0),!o.isBuffer(t)&&!(t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(a,t.length),void 0===r&&(r=t.length-a),h(r,a,t.length),b(t,a,r)}u&&u.getRandomValues||!r.browser?(t.randomFill=d,t.randomFillSync=p):(t.randomFill=n,t.randomFillSync=n)}).call(this,a(3),a(325))},48:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={primary:"#2979ff",primaryDark:"#2b85e4",primaryDisabled:"#a0cfff",primaryLight:"#ecf5ff",bgColor:"#f3f4f6",info:"#909399",infoDark:"#82848a",infoDisabled:"#c8c9cc",infoLight:"#f4f4f5",warning:"#ff9900",warningDark:"#f29100",warningDisabled:"#fcbd71",warningLight:"#fdf6ec",error:"#fa3534",errorDark:"#dd6161",errorDisabled:"#fab6b6",errorLight:"#fef0f0",success:"#19be6b",successDark:"#18b566",successDisabled:"#71d5a1",successLight:"#dbf1e1",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"},n=r;t.default=n},49:function(e,t,a){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");var a="";switch(e){case"primary":a="info-circle";break;case"info":a="info-circle";break;case"error":a="close-circle";break;case"warning":a="error-circle";break;case"success":a="checkmark-circle";break;default:a="checkmark-circle"}return t&&(a+="-fill"),a}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r;t.default=n},5:function(e,t,a){var r=a(6),n=a(7),i=a(8),l=a(10);function o(e,t){return r(e)||n(e,t)||i(e,t)||l()}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},50:function(e,t,a){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r;t.default=n},51:function(e,t,a){"use strict";var r=a(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(a(38));function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rpx";return e=String(e),n.default.number(e)?"".concat(e).concat(t):e}},52:function(e,t,a){"use strict";function r(e,t){if(e>=0&&t>0&&t>=e){var a=t-e+1;return Math.floor(Math.random()*a+e)}return 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r;t.default=n},53:function(e,t,a){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r;t.default=n},54:function(e,t,a){"use strict";(function(e){function a(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;e.showToast({title:t,icon:"none",duration:a})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a;t.default=r}).call(this,a(2)["default"])},55:function(e,t,a){"use strict";var r=a(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(a(13));function i(e,t){var a=this.$parent;while(a)if(a.$options.name!==e)a=a.$parent;else{var r=function(){var e={};if(Array.isArray(t))t.map((function(t){e[t]=a[t]?a[t]:""}));else for(var r in t)Array.isArray(t[r])?t[r].length?e[r]=t[r]:e[r]=a[r]:t[r].constructor===Object?Object.keys(t[r]).length?e[r]=t[r]:e[r]=a[r]:e[r]=t[r]||!1===t[r]?t[r]:a[r];return{v:e}}();if("object"===(0,n.default)(r))return r.v}return{}}},56:function(e,t,a){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},57:function(e,t,a){"use strict";(function(e){function a(){return e.getSystemInfoSync().platform}function r(){return e.getSystemInfoSync()}Object.defineProperty(t,"__esModule",{value:!0}),t.os=a,t.sys=r}).call(this,a(2)["default"])},58:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=null;function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==r&&clearTimeout(r),a){var n=!r;r=setTimeout((function(){r=null}),t),n&&"function"===typeof e&&e()}else r=setTimeout((function(){"function"===typeof e&&e()}),t)}var i=n;t.default=i},59:function(e,t,a){"use strict";var r;function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];a?r||(r=!0,"function"===typeof e&&e(),setTimeout((function(){r=!1}),t)):r||(r=!0,setTimeout((function(){r=!1,"function"===typeof e&&e()}),t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n;t.default=i},6:function(e,t){function a(e){if(Array.isArray(e))return e}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},60:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="1.8.1",n={v:r,version:r,type:["primary","success","info","error","warning"]};t.default=n},61:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965};t.default=r},62:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.myRequest=void 0;var a="https://wx.hnyfwlw.com",r=function(t){var r="";r=e.getStorageSync("session_key");var n=t.url,i=t.data||{};return"user.login.login_user"!=n&&"pest.pests.insect_discern"!=n&&"pest.pests.plant_discern"!=n&&"pest.pests.pests_contrast"!=n&&"pest.pests.pests_expert_img"!=n&&"pest.pests.pests_img"!=n&&"recognizationSys"!=n&&"base.bases.base_photo"!=n&&"pest.warning_record.rolemanage_img"!=n&&"home.homes.personal_photo"!=n&&"ascend.ascend_manage.product_info"!=n&&"ascend.ascend_manage.quality_info"!=n&&"ascend.ascend_manage.grow_info"!=n&&"ascend.ascend_manage.all_ascend"!=n&&"after_sale.after_sale_manage.device_check"!=n&&"after_sale.after_sale_manage.aftersale_apply"!=n&&(i.token=r),new Promise((function(r,n){e.request({url:a+t.url,method:t.method||"POST",header:{"Content-Type":"application/x-www-form-urlencoded"},data:i,success:function(t){if(403==t.data.errorCode)return e.removeStorageSync("session_key"),e.showToast({title:"登录已过期,请重新登录!",icon:"none"}),!e.getStorageSync("isLink")&&(e.setStorageSync("isLink",!0),e.navigateTo({url:"/pages/login/login"}));if(t.data.message){if("识别无结果"!==t.data.message&&"该设备未绑定SIM"!==t.data.message)return e.showToast({title:t.data.message,icon:"none"});r(t.data.data)}r(t.data.data)},fail:function(t){e.showToast({title:"请求接口失败",icon:"none"}),n(t)}})}))};t.myRequest=r}).call(this,a(2)["default"])},63:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.QueryPermission=r;var a=[];function r(t){e.getStorage({key:"jurisdiction",success:function(e){a=JSON.parse(e.data)}});for(var r=0;re.length)&&(t=e.length);for(var a=0,r=new Array(t);a