var vendor_76bf4b826ffb7ef3aa3a=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1942)}([function(e,t,n){"use strict";n.r(t),n.d(t,"$override",(function(){return p})),n.d(t,"guid",(function(){return g})),n.d(t,"logError",(function(){return v})),n.d(t,"clone",(function(){return _})),n.d(t,"merge",(function(){return y})),n.d(t,"mergeAll",(function(){return b})),n.d(t,"extend",(function(){return S})),n.d(t,"defaults",(function(){return w})),n.d(t,"createCanvas",(function(){return E})),n.d(t,"indexOf",(function(){return C})),n.d(t,"inherits",(function(){return T})),n.d(t,"mixin",(function(){return O})),n.d(t,"isArrayLike",(function(){return x})),n.d(t,"each",(function(){return M})),n.d(t,"map",(function(){return k})),n.d(t,"reduce",(function(){return A})),n.d(t,"filter",(function(){return D})),n.d(t,"find",(function(){return R})),n.d(t,"keys",(function(){return L})),n.d(t,"bind",(function(){return I})),n.d(t,"curry",(function(){return N})),n.d(t,"isArray",(function(){return P})),n.d(t,"isFunction",(function(){return j})),n.d(t,"isString",(function(){return B})),n.d(t,"isStringSafe",(function(){return F})),n.d(t,"isNumber",(function(){return Y})),n.d(t,"isObject",(function(){return H})),n.d(t,"isBuiltInObject",(function(){return U})),n.d(t,"isTypedArray",(function(){return W})),n.d(t,"isDom",(function(){return V})),n.d(t,"isGradientObject",(function(){return z})),n.d(t,"isPatternObject",(function(){return G})),n.d(t,"isRegExp",(function(){return $})),n.d(t,"eqNaN",(function(){return q})),n.d(t,"retrieve",(function(){return K})),n.d(t,"retrieve2",(function(){return X})),n.d(t,"retrieve3",(function(){return Q})),n.d(t,"slice",(function(){return Z})),n.d(t,"normalizeCssArray",(function(){return J})),n.d(t,"assert",(function(){return ee})),n.d(t,"trim",(function(){return te})),n.d(t,"setAsPrimitive",(function(){return ne})),n.d(t,"isPrimitive",(function(){return re})),n.d(t,"HashMap",(function(){return ie})),n.d(t,"createHashMap",(function(){return ae})),n.d(t,"concatArray",(function(){return oe})),n.d(t,"createObject",(function(){return se})),n.d(t,"hasOwn",(function(){return le})),n.d(t,"noop",(function(){return ue}));var r={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},i={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},a=Object.prototype.toString,o=Array.prototype,s=o.forEach,l=o.filter,u=o.slice,c=o.map,d=function(){}.constructor,h=d?d.prototype:null,f={};function p(e,t){f[e]=t}var m=2311;function g(){return m++}function v(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,i=e;null!==i;){if(n===t){r=i;break}i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i=i.host:(n+=1,i=i.parentNode)}return r}function c(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function d(e){return c(e)&&e.parent}function h(e){return!!Object.getPrototypeOf(e.parent)}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=Node,i=r.ELEMENT_NODE,a=r.DOCUMENT_FRAGMENT_NODE,o=e;null!=o&&o!==n;){var s=o,l=s.nodeType,u=s.nodeName;if(l===i&&(t.includes(u)||t.includes(o)))return o;var c=o,d=c.host;o=d&&l===a?d:o.parentNode}return null}function p(e,t,n){for(var r=[],i=e;i&&(i=f(i,t,n))&&(!n||n.contains(i));)r.push(i),i=i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i.host:i.parentNode;var a=r.length;return a?r[a-1]:null}function m(e,t){var n=e.parentNode,r=[];for("string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function g(e){var t=!1,n=v(e);function r(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="hot-table".toUpperCase()}for(;null!==n;){if(r(n)){t=!0;break}if(n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(t=r(n.host))break;n=n.host}n=n.parentNode}return t}function v(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function _(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function y(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t}function b(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null}function S(e){var t=[];if(!e||!e.length)return t;for(var n=0;e[n];)t.push(e[n]),n+=1;return t}if(Object(s.isClassListSupported)()){var w=function(e){var t=e.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")};r=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},i=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=S(i)).length>0)if(w(r))(n=e.classList).add.apply(n,l(i));else for(var a=0;i&&i[a];)e.classList.add(i[a]),a+=1},a=function(e,t){var n,r=t;if("string"==typeof r&&(r=r.split(" ")),(r=S(r)).length>0)if(w)(n=e.classList).remove.apply(n,l(r));else for(var i=0;r&&r[i];)e.classList.remove(r[i]),i+=1}}else{var E=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};r=function(e,t){return void 0!==e.className&&E(t).test(e.className)},i=function(e,t){var n=0,r=e.className,i=t;if("string"==typeof i&&(i=i.split(" ")),""===r)r=i.join(" ");else for(;i&&i[n];)E(i[n]).test(r)||(r+=" ".concat(i[n])),n+=1;e.className=r},a=function(e,t){var n=0,r=e.className,i=t;for("string"==typeof i&&(i=i.split(" "));i&&i[n];)r=r.replace(E(i[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function C(e,t){return r(e,t)}function T(e,t){return i(e,t)}function O(e,t){return a(e,t)}function x(e,t){if(3===e.nodeType)t.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1)for(var n=e.childNodes,r=n.length-1;r>=0;r--)x(n[r],e)}function M(e){for(var t;t=e.lastChild;)e.removeChild(t)}var k,A=/(<(.*)>|&(.*);)/;function D(e,t){A.test(t)?e.innerHTML=t:R(e,t)}function R(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?s.isTextContentSupported?n.textContent=t:n.data=t:(M(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function L(e){for(var t=e.ownerDocument.documentElement,n=e;_(n)!==t;){if(null===n)return!1;if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n.host){if(n.host.impl)return L(n.host.impl);if(n.host)return L(n.host);throw new Error("Lost in Web Components world")}return!1}if(n.style&&"none"===n.style.display)return!1;n=n.parentNode}return!0}function I(e){var t,n,r,i,a=e.ownerDocument,o=a.defaultView,l=a.documentElement,u=e;if(Object(s.hasCaptionProblem)()&&u.firstChild&&"CAPTION"===u.firstChild.nodeName)return{top:(i=u.getBoundingClientRect()).top+(o.pageYOffset||l.scrollTop)-(l.clientTop||0),left:i.left+(o.pageXOffset||l.scrollLeft)-(l.clientLeft||0)};for(t=u.offsetLeft,n=u.offsetTop,r=u;(u=u.offsetParent)&&u!==a.body;)t+=u.offsetLeft,n+=u.offsetTop,r=u;return r&&"fixed"===r.style.position&&(t+=o.pageXOffset||l.scrollLeft,n+=o.pageYOffset||l.scrollTop),{left:t,top:n}}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?N(t):e.scrollTop}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?P(t):e.scrollLeft}function F(e){var t=e.ownerDocument,n=t?t.defaultView:void 0;t||(n=(t=e.document?e.document:e).defaultView);for(var r=["auto","scroll"],i=Object(s.isGetComputedStyleSupported)(),a=e.parentNode;a&&a.style&&t.body!==a;){var o=a.style,l=o.overflow,u=o.overflowX,c=o.overflowY;if([l,u,c].includes("scroll"))return a;if(i){var d=n.getComputedStyle(a);if(l=d.overflow,u=d.overflowX,c=d.overflowY,r.includes(l)||r.includes(u)||r.includes(c))return a}if(a.clientHeight<=a.scrollHeight+1&&(r.includes(c)||r.includes(l)))return a;if(a.clientWidth<=a.scrollWidth+1&&(r.includes(u)||r.includes(l)))return a;a=a.parentNode}return n}function Y(e){for(var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var i=W(r,n),a=["scroll","hidden","auto"],o=i.getPropertyValue("overflow"),s=i.getPropertyValue("overflow-y"),l=i.getPropertyValue("overflow-x");if(a.includes(o)||a.includes(s)||a.includes(l))return r;r=r.parentNode}return n}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(e){if(e===n)return"width"===t?"".concat(n.innerWidth,"px"):"height"===t?"".concat(n.innerHeight,"px"):void 0;var r=e.style[t];if(""!==r&&void 0!==r)return r;var i=W(e,n);return""!==i[t]&&void 0!==i[t]?i[t]:void 0}}function U(e,t){var n=t.selectorText,r=!1;return t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n))),r}function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function V(e){return e.offsetWidth}function z(e){return Object(s.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function G(e){return e.clientHeight||e.innerHeight}function $(e){return e.clientWidth||e.innerWidth}function q(e,t,n){var r=e.defaultView;r||(r=e.document?e:e.ownerDocument.defaultView),r.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on".concat(t),n)}function K(e,t,n){var r=e.defaultView;r||(r=e.document?e:e.ownerDocument.defaultView),r.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on".concat(t),n)}function X(e){var t=e.ownerDocument;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),i=r.duplicate();return r.moveToBookmark(n.getBookmark()),i.setEndPoint("EndToStart",r),i.text.length}return 0}function Q(e){var t=e.ownerDocument;if(e.selectionEnd)return e.selectionEnd;if(t.selection){var n=t.selection.createRange();return null===n?0:e.createTextRange().text.indexOf(n.text)+n.text.length}return 0}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document,n="";return e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text),n}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document;e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():t.selection&&t.selection.empty()}function ee(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(a){var r=e.parentNode,i=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=i}}else if(e.createTextRange){var a=e.createTextRange();a.collapse(!0),a.moveEnd("character",n),a.moveStart("character",t),a.select()}}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("div");t.style.height="200px",t.style.width="100%";var n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;return r===i&&(i=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-i}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return void 0===k&&(k=te(e)),k}function re(e){return e.offsetWidth!==e.clientWidth}function ie(e){return e.offsetHeight!==e.clientHeight}function ae(e,t,n){Object(o.isIE8)()||Object(o.isIE9)()?(e.style.top=n,e.style.left=t):Object(o.isSafari)()?(e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"),e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)")):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")}function oe(e){var t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"])?["-webkit-transform",t]:-1}function se(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")}function le(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function ue(e){return le(e)&&-1===e.className.indexOf("handsontableInput")&&-1===e.className.indexOf("HandsontableCopyPaste")}function ce(e){ue(e.ownerDocument.activeElement)||e.select()}},function(e,t,n){"use strict";n.r(t),n.d(t,"to2dArray",(function(){return r})),n.d(t,"extendArray",(function(){return i})),n.d(t,"pivot",(function(){return a})),n.d(t,"arrayReduce",(function(){return o})),n.d(t,"arrayFilter",(function(){return s})),n.d(t,"arrayMap",(function(){return l})),n.d(t,"arrayEach",(function(){return u})),n.d(t,"arraySum",(function(){return c})),n.d(t,"arrayMax",(function(){return d})),n.d(t,"arrayMin",(function(){return h})),n.d(t,"arrayAvg",(function(){return f})),n.d(t,"arrayFlatten",(function(){return p})),n.d(t,"arrayUnique",(function(){return m}));n(81),n(98),n(64),n(17);function r(e){for(var t=e.length,n=0;nt?e:t}),Array.isArray(e)?e[0]:void 0)}function h(e){return o(e,(function(e,t){return e1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),a=(i(t={_touched:!1},r,e),i(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(a,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),a}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return h})),n.d(t,"__exportStar",(function(){return f})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__await",(function(){return _})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return S})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return T})),n.d(t,"__classPrivateFieldGet",(function(){return O})),n.d(t,"__classPrivateFieldSet",(function(){return x})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof _?Promise.resolve(n.value.v).then(l,u):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&h(t,e,n);return E(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function x(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"linearMap",(function(){return i})),n.d(t,"parsePercent",(function(){return a})),n.d(t,"round",(function(){return o})),n.d(t,"asc",(function(){return s})),n.d(t,"getPrecision",(function(){return l})),n.d(t,"getPrecisionSafe",(function(){return u})),n.d(t,"getPixelPrecision",(function(){return c})),n.d(t,"getPercentWithPrecision",(function(){return d})),n.d(t,"MAX_SAFE_INTEGER",(function(){return h})),n.d(t,"remRadian",(function(){return f})),n.d(t,"isRadianAroundZero",(function(){return p})),n.d(t,"parseDate",(function(){return g})),n.d(t,"quantity",(function(){return v})),n.d(t,"quantityExponent",(function(){return _})),n.d(t,"nice",(function(){return y})),n.d(t,"quantile",(function(){return b})),n.d(t,"reformIntervals",(function(){return S})),n.d(t,"numericToNumber",(function(){return w})),n.d(t,"isNumeric",(function(){return E})),n.d(t,"getRandomIdBase",(function(){return C})),n.d(t,"getGreatestCommonDividor",(function(){return T})),n.d(t,"getLeastCommonMultiple",(function(){return O}));var r=n(0);function i(e,t,n,r){var i=t[1]-t[0],a=n[1]-n[0];if(0===i)return 0===a?n[0]:(n[0]+n[1])/2;if(r)if(i>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/i*a+n[0]}function a(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function o(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function s(e){return e.sort((function(e,t){return e-t})),e}function l(e){if(e=+e,isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}function u(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var r=+t.slice(n+1);return r<0?-r:0}var i=t.indexOf(".");return i<0?0:t.length-1-i}function c(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function d(e,t,n){if(!e[t])return 0;var i=r.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;for(var a=Math.pow(10,n),o=r.map(e,(function(e){return(isNaN(e)?0:e)/i*a*100})),s=100*a,l=r.map(o,(function(e){return Math.floor(e)})),u=r.reduce(l,(function(e,t){return e+t}),0),c=r.map(o,(function(e,t){return e-l[t]}));ud&&(d=c[f],h=f);++l[h],c[h]=0,++u}return l[t]/a}var h=9007199254740991;function f(e){var t=2*Math.PI;return(e%t+t)%t}function p(e){return e>-1e-4&&e<1e-4}var m=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function g(e){if(e instanceof Date)return e;if("string"==typeof e){var t=m.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))}function v(e){return Math.pow(10,_(e))}function _(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function y(e,t){var n=_(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function b(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function S(e){e.sort((function(e,t){return function e(t,n,r){return t.interval[r]0?l?t.animateFrom(n,{duration:p,delay:g||0,easing:m,done:a,force:!!a||!!o,scope:e,during:o}):t.animateTo(n,{duration:p,delay:g||0,easing:m,done:a,force:!!a||!!o,setToFinal:!0,scope:e,during:o}):(t.stopAnimation(),!l&&t.attr(n),a&&a())}else t.stopAnimation(),!l&&t.attr(n),o&&o(1),a&&a()}function q(e,t,n,r,i,a){$("update",e,t,n,r,i,a)}function K(e,t,n,r,i,a){$("init",e,t,n,r,i,a)}function X(e,t,n,r,i,a){J(e)||$("remove",e,t,n,r,i,a)}function Q(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),X(e,{style:{opacity:0}},t,n,r)}function Z(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||Q(e,t,n,r)})):Q(e,t,n,r)}function J(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function re(e){return!e.isGroup}function ie(e,t,n){if(e&&t){var r,i=(r={},e.traverse((function(e){re(e)&&e.anid&&(r[e.anid]=e)})),r);t.traverse((function(e){if(re(e)&&e.anid){var t=i[e.anid];if(t){var r=a(e);e.attr(a(t)),q(e,r,n,Object(A.getECData)(e).dataIndex)}}}))}function a(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=Object(k.extend)({},e.shape)),t}}function ae(e,t){return Object(k.map)(e,(function(e){var n=e[0];n=D(n,t.x),n=R(n,t.x+t.width);var r=e[1];return r=D(r,t.y),[n,r=R(r,t.y+t.height)]}))}function oe(e,t){var n=D(e.x,t.x),r=R(e.x+e.width,t.x+t.width),i=D(e.y,t.y),a=R(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function se(e,t,n){var r=Object(k.extend)({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(k.defaults)(i,n),new l.default(r)):F(e.replace("path://",""),r,n,"center")}function le(e,t,n,r,i){for(var a=0,o=i[i.length-1];a=-1e-6)return!1;var p=e-i,m=t-a,g=ce(p,m,u,c)/f;if(g<0||g>1)return!1;var v=ce(p,m,d,h)/f;return!(v<0||v>1)}function ce(e,t,n,r){return e*r-n*t}j("circle",d.default),j("ellipse",h.default),j("sector",f.default),j("ring",p.default),j("polygon",m.default),j("polyline",g.default),j("rect",v.default),j("line",_.default),j("bezierCurve",y.default),j("arc",b.default)},function(e,t,n){"use strict";n.r(t),n.d(t,"normalizeToArray",(function(){return s})),n.d(t,"defaultEmphasis",(function(){return l})),n.d(t,"TEXT_STYLE_OPTIONS",(function(){return u})),n.d(t,"getDataItemValue",(function(){return c})),n.d(t,"isDataItemOption",(function(){return d})),n.d(t,"mappingToExists",(function(){return h})),n.d(t,"convertOptionIdName",(function(){return m})),n.d(t,"isNameSpecified",(function(){return g})),n.d(t,"isComponentIdInternal",(function(){return v})),n.d(t,"makeInternalComponentId",(function(){return _})),n.d(t,"setComponentTypeToKeyInfo",(function(){return y})),n.d(t,"compressBatches",(function(){return b})),n.d(t,"queryDataIndex",(function(){return S})),n.d(t,"makeInner",(function(){return w})),n.d(t,"parseFinder",(function(){return C})),n.d(t,"SINGLE_REFERRING",(function(){return T})),n.d(t,"MULTIPLE_REFERRING",(function(){return O})),n.d(t,"queryReferringComponents",(function(){return x})),n.d(t,"setAttribute",(function(){return M})),n.d(t,"getAttribute",(function(){return k})),n.d(t,"getTooltipRenderMode",(function(){return A})),n.d(t,"groupData",(function(){return D})),n.d(t,"interpolateRawValues",(function(){return R}));var r=n(0),i=n(60),a=n(5),o=n(250);function s(e){return e instanceof Array?e:null==e?[]:[e]}function l(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r=0,o=!1;if(e instanceof l.default){var s=d(e),u=a&&s.selectFill||s.normalFill,c=a&&s.selectStroke||s.normalStroke;if(C(u)||C(c)){var h=(r=r||{}).style||{};!C(h.fill)&&C(u)?(o=!0,r=Object(i.extend)({},r),(h=Object(i.extend)({},h)).fill=O(u)):!C(h.stroke)&&C(c)&&(o||(r=Object(i.extend)({},r),h=Object(i.extend)({},h)),h.stroke=O(c)),r.style=h}}if(r&&null==r.z2){o||(r=Object(i.extend)({},r));var f=e.z2EmphasisLift;r.z2=e.z2+(null!=f?f:v)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=Object(i.indexOf)(e.currentStates,t)>=0,a=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o0){var a={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(a.dataType=r),t.push(a)}}))})),t}function ee(e,t,n){ae(e,!0),N(e,F),te(e,t,n)}function te(e,t,n){var r=Object(a.getECData)(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var ne=["emphasis","blur","select"],re={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ie(e,t,n,r){n=n||"itemStyle";for(var i=0;i0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function l(){for(var e=[],t=0;t=t&&!1!==n(r););}function s(e,t){return t=parseInt(t.toString().replace("%",""),10),t=parseInt(e*t/100,10)}},function(e,t,n){var r=n(823),i=n(257),a=n(1972);r||i(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Y=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},W={};function V(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(W[e]=i),t&&(W[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e,t){return e.isValid()?(t=G(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r,i=e.match(Y);for(t=0,n=i.length;t=0&&H.test(e);)e=e.replace(H,r),H.lastIndex=0,n-=1;return e}var $=/\d/,q=/\d\d/,K=/\d{3}/,X=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,J=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue={};function ce(e,t,n){ue[e]=A(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=E(e)}),n=0;n68?1900:2e3)};var ye,be=Se("FullYear",!0);function Se(e,t){return function(n){return null!=n?(Ee(this,e,n),i.updateOffset(this,t),this):we(this,e)}}function we(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ee(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&_e(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ce(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ce(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?_e(e)?29:28:31-r%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Ne(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Pe(e,t,n){var r=7+t-n;return-(7+Ne(e,0,r).getUTCDay()-t)%7+r-1}function je(e,t,n,r,i){var a,o,s=1+7*(t-1)+(7+n-r)%7+Pe(e,r,i);return s<=0?o=ve(a=e-1)+s:s>ve(e)?(a=e+1,o=s-ve(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Be(e,t,n){var r,i,a=Pe(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?r=o+Fe(i=e.year()-1,t,n):o>Fe(e.year(),t,n)?(r=o-Fe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Fe(e,t,n){var r=Pe(e,t,n),i=Pe(e+1,t,n);return(ve(e)-r+i)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),B("week",5),B("isoWeek",5),ce("w",Z),ce("ww",Z,q),ce("W",Z),ce("WW",Z,q),me(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=E(e)})),V("d",0,"do","day"),V("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),V("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),V("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),ce("d",Z),ce("e",Z),ce("E",Z),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),me(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),me(["d","e","E"],(function(e,t,n,r){t[r]=E(e)}));var He="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ve(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ye.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=ye.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._shortWeekdaysParse,o))||-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=ye.call(this._shortWeekdaysParse,o))||-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,o))||-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._shortWeekdaysParse,o))?i:null}var ze=le,Ge=le,$e=le;function qe(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),l.push(a),u.push(r),u.push(i),u.push(a);for(o.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=he(s[t]),l[t]=he(l[t]),u[t]=he(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Xe(e,t){V(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,Ke),V("k",["kk",2],0,(function(){return this.hours()||24})),V("hmm",0,0,(function(){return""+Ke.apply(this)+F(this.minutes(),2)})),V("hmmss",0,0,(function(){return""+Ke.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),V("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),V("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),Xe("a",!0),Xe("A",!1),I("hour","h"),B("hour",13),ce("a",Qe),ce("A",Qe),ce("H",Z),ce("h",Z),ce("k",Z),ce("HH",Z,q),ce("hh",Z,q),ce("kk",Z,q),ce("hmm",J),ce("hmmss",ee),ce("Hmm",J),ce("Hmmss",ee),pe(["H","HH"],3),pe(["k","kk"],(function(e,t,n){var r=E(e);t[3]=24===r?0:r})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[3]=E(e),p(n).bigHour=!0})),pe("hmm",(function(e,t,n){var r=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r)),p(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r,2)),t[5]=E(e.substr(i)),p(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var r=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r))})),pe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r,2)),t[5]=E(e.substr(i))}));var Ze,Je=Se("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:xe,week:{dow:0,doy:6},weekdays:He,weekdaysMin:We,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var r=null;if(!tt[t]&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n(1981)("./"+t),at(r)}catch(e){}return tt[t]}function at(e,t){var n;return e&&((n=s(t)?st(e):ot(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function ot(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new R(D(r,t)),nt[e]&&nt[e].forEach((function(e){ot(e.name,e.config)})),at(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&C(i,n,!0)>=t-1)break;t--}a++}return Ze}(e)}function lt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ce(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function ct(e){var t,n,r,a,o,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,a,o,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,o=4,n=ut(t.GG,e._a[0],Be(Tt(),1,4).year),r=ut(t.W,1),((i=ut(t.E,1))<1||i>7)&&(l=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var u=Be(Tt(),a,o);n=ut(t.gg,e._a[0],u.year),r=ut(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a}r<1||r>Fe(n,a,o)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=je(n,r,i,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=ut(e._a[0],r[0]),(e._dayOfYear>ve(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ne(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ne:Ie).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,n,r,i,a,o,s=e._i,l=dt.exec(s)||ht.exec(s);if(l){for(p(e).iso=!0,t=0,n=pt.length;t0&&p(e).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),u+=n.length),W[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),ge(a,n,e)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=l-u,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),ct(e),lt(e)}else St(e);else vt(e)}function Et(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new b(lt(t)):(u(t)?e._d=t:a(n)?function(e){var t,n,r,i,a;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:g()}));function Mt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function en(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tn(e,t){V(0,[e,e.length],0,t)}function nn(e,t,n,r,i){var a;return null==e?Be(this,r,i).year:(t>(a=Fe(e,r,i))&&(t=a),rn.call(this,e,t,n,r,i))}function rn(e,t,n,r,i){var a=je(e,t,n,r,i),o=Ne(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}V(0,["gg",2],0,(function(){return this.weekYear()%100})),V(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),ce("G",ae),ce("g",ae),ce("GG",Z,q),ce("gg",Z,q),ce("GGGG",ne,X),ce("gggg",ne,X),ce("GGGGG",re,Q),ce("ggggg",re,Q),me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=E(e)})),me(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),V("Q",0,"Qo","quarter"),I("quarter","Q"),B("quarter",7),ce("Q",$),pe("Q",(function(e,t){t[1]=3*(E(e)-1)})),V("D",["DD",2],"Do","date"),I("date","D"),B("date",9),ce("D",Z),ce("DD",Z,q),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],2),pe("Do",(function(e,t){t[2]=E(e.match(Z)[0])}));var an=Se("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),B("dayOfYear",4),ce("DDD",te),ce("DDDD",K),pe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=E(e)})),V("m",["mm",2],0,"minute"),I("minute","m"),B("minute",14),ce("m",Z),ce("mm",Z,q),pe(["m","mm"],4);var on=Se("Minutes",!1);V("s",["ss",2],0,"second"),I("second","s"),B("second",15),ce("s",Z),ce("ss",Z,q),pe(["s","ss"],5);var sn,ln=Se("Seconds",!1);for(V("S",0,0,(function(){return~~(this.millisecond()/100)})),V(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),V(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),V(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),V(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),V(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),V(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),B("millisecond",16),ce("S",te,$),ce("SS",te,q),ce("SSS",te,K),sn="SSSS";sn.length<=9;sn+="S")ce(sn,ie);function un(e,t){t[6]=E(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")pe(sn,un);var cn=Se("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var dn=b.prototype;function hn(e){return e}dn.add=Gt,dn.calendar=function(e,t){var n=e||Tt(),r=Pt(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=t&&(A(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Tt(n)))},dn.clone=function(){return new b(this)},dn.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Pt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=N(t)){case"year":a=qt(this,r)/12;break;case"month":a=qt(this,r);break;case"quarter":a=qt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:w(a)},dn.endOf=function(e){var t;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:Jt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Zt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Zt(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},dn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||Tt(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Tt(),e)},dn.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||Tt(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Tt(),e)},dn.get=function(e){return A(this[e=N(e)])?this[e]():this},dn.invalidAt=function(){return p(this).overflow},dn.isAfter=function(e,t){var n=S(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=be,dn.isLeapYear=function(){return _e(this.year())},dn.weekYear=function(e){return nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Ae,dn.daysInMonth=function(){return Ce(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},dn.date=an,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=Je,dn.minute=dn.minutes=on,dn.second=dn.seconds=ln,dn.millisecond=dn.milliseconds=cn,dn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Nt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?zt(this,Ht(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:jt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Nt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Bt,dn.isUTC=Bt,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=O("dates accessor is deprecated. Use date instead.",an),dn.months=O("months accessor is deprecated. Use month instead",Ae),dn.years=O("years accessor is deprecated. Use year instead",be),dn.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),dn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(_(e,this),(e=Et(e))._a){var t=e._isUTC?f(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&C(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var fn=R.prototype;function pn(e,t,n,r){var i=st(),a=f().set(r,t);return i[n](a,e)}function mn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pn(e,r,n,"month");return i}function gn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,a=st(),o=e?a._week.dow:0;if(null!=n)return pn(t,(n+o)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=pn(t,(i+o)%7,r,"day");return s}fn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return A(r)?r.call(t,n):r},fn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},fn.invalidDate=function(){return this._invalidDate},fn.ordinal=function(e){return this._ordinal.replace("%d",e)},fn.preparse=hn,fn.postformat=hn,fn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return A(i)?i(e,t,n,r):i.replace(/%d/i,e)},fn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)},fn.set=function(e){var t,n;for(n in e)A(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},fn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},fn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return Me.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},fn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Le.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},fn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Le.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},fn.week=function(e){return Be(e,this._week.dow,this._week.doy).week},fn.firstDayOfYear=function(){return this._week.doy},fn.firstDayOfWeek=function(){return this._week.dow},fn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ye(n,this._week.dow):e?n[e.day()]:n},fn.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},fn.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},fn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Ve.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},fn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},fn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},fn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===E(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=O("moment.lang is deprecated. Use moment.locale instead.",at),i.langData=O("moment.langData is deprecated. Use moment.localeData instead.",st);var vn=Math.abs;function _n(e,t,n,r){var i=Ht(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}var En=wn("ms"),Cn=wn("s"),Tn=wn("m"),On=wn("h"),xn=wn("d"),Mn=wn("w"),kn=wn("M"),An=wn("Q"),Dn=wn("y");function Rn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ln=Rn("milliseconds"),In=Rn("seconds"),Nn=Rn("minutes"),Pn=Rn("hours"),jn=Rn("days"),Bn=Rn("months"),Fn=Rn("years"),Yn=Math.round,Hn={ss:44,s:45,m:45,h:22,d:26,M:11};function Un(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Wn=Math.abs;function Vn(e){return(e>0)-(e<0)||+e}function zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Wn(this._milliseconds)/1e3,r=Wn(this._days),i=Wn(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var a=w(i/12),o=i%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=Vn(this._months)!==Vn(d)?"-":"",p=Vn(this._days)!==Vn(d)?"-":"",m=Vn(this._milliseconds)!==Vn(d)?"-":"";return h+"P"+(a?f+a+"Y":"")+(o?f+o+"M":"")+(s?p+s+"D":"")+(l||u||c?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(c?m+c+"S":"")}var Gn=At.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),e.milliseconds=vn(e.milliseconds),e.seconds=vn(e.seconds),e.minutes=vn(e.minutes),e.hours=vn(e.hours),e.months=vn(e.months),e.years=vn(e.years),this},Gn.add=function(e,t){return _n(this,e,t,1)},Gn.subtract=function(e,t){return _n(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=En,Gn.asSeconds=Cn,Gn.asMinutes=Tn,Gn.asHours=On,Gn.asDays=xn,Gn.asWeeks=Mn,Gn.asMonths=kn,Gn.asQuarters=An,Gn.asYears=Dn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN},Gn._bubble=function(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*yn(Sn(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=w(a/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,n=w(t/60),l.hours=n%24,o+=w(n/24),i=w(bn(o)),s+=i,o-=yn(Sn(i)),r=w(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},Gn.clone=function(){return Ht(this)},Gn.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=Ln,Gn.seconds=In,Gn.minutes=Nn,Gn.hours=Pn,Gn.days=jn,Gn.weeks=function(){return w(this.days()/7)},Gn.months=Bn,Gn.years=Fn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ht(e).abs(),i=Yn(r.as("s")),a=Yn(r.as("m")),o=Yn(r.as("h")),s=Yn(r.as("d")),l=Yn(r.as("M")),u=Yn(r.as("y")),c=i<=Hn.ss&&["s",i]||i0,c[4]=n,Un.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Gn.toISOString=zn,Gn.toString=zn,Gn.toJSON=zn,Gn.locale=Kt,Gn.localeData=Qt,Gn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zn),Gn.lang=Xt,V("X",0,0,"unix"),V("x",0,0,"valueOf"),ce("x",ae),ce("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),pe("x",(function(e,t,n){n._d=new Date(E(e))})),i.version="2.24.0",t=Tt,i.fn=dn,i.min=function(){var e=[].slice.call(arguments,0);return Mt("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return Mt("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return Tt(1e3*e)},i.months=function(e,t){return mn(e,t,"months")},i.isDate=u,i.locale=at,i.invalid=g,i.duration=Ht,i.isMoment=S,i.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},i.parseZone=function(){return Tt.apply(null,arguments).parseZone()},i.localeData=st,i.isDuration=Dt,i.monthsShort=function(e,t){return mn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},i.defineLocale=ot,i.updateLocale=function(e,t){if(null!=t){var n,r,i=et;null!=(r=it(e))&&(i=r._config),t=D(i,t),(n=new R(t)).parentLocale=tt[e],tt[e]=n,at(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},i.locales=function(){return x(tt)},i.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},i.normalizeUnits=N,i.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Hn[e]&&(void 0===t?Hn[e]:(Hn[e]=t,"s"===e&&(Hn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=dn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(260)(e))},function(e,t,n){"use strict";n.r(t);var r=n(569);n.d(t,"ViewportColumnsCalculator",(function(){return r.default}));var i=n(570);n.d(t,"ViewportRowsCalculator",(function(){return i.default}));var a=n(115);n.d(t,"CellCoords",(function(){return a.default}));var o=n(607);n.d(t,"CellRange",(function(){return o.default}));var s=n(608);n.d(t,"ColumnFilter",(function(){return s.default}));var l=n(609);n.d(t,"RowFilter",(function(){return l.default}));var u=n(610);n.d(t,"MasterTable",(function(){return u.default}));var c=n(1227);n.d(t,"LeftOverlay",(function(){return c.default}));var d=n(1228);n.d(t,"TopOverlay",(function(){return d.default}));var h=n(1229);n.d(t,"TopLeftCornerOverlay",(function(){return h.default}));var f=n(1230);n.d(t,"BottomOverlay",(function(){return f.default}));var p=n(1231);n.d(t,"BottomLeftCornerOverlay",(function(){return p.default}));var m=n(616);n.d(t,"Border",(function(){return m.default}));var g=n(490);n.d(t,"default",(function(){return g.default})),n.d(t,"Core",(function(){return g.default}));var v=n(494);n.d(t,"Event",(function(){return v.default}));var _=n(613);n.d(t,"Overlays",(function(){return _.default}));var y=n(495);n.d(t,"Scroll",(function(){return y.default}));var b=n(1232);n.d(t,"Selection",(function(){return b.default}));var S=n(614);n.d(t,"Settings",(function(){return S.default}));var w=n(611);n.d(t,"Renderer",(function(){return w}));var E=n(297);n.d(t,"OrderView",(function(){return E.OrderView})),n.d(t,"SharedOrderView",(function(){return E.SharedOrderView}));var C=n(615);n.d(t,"Viewport",(function(){return C.default}));var T=n(53);n.d(t,"getListenersCounter",(function(){return T.getListenersCounter}))},function(e,t,n){"use strict";var r=n(218),i=n(464),a=n(466),o=n(317),s=n(821),l=o.set,u=o.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var r=n(824).charAt,i=n(317),a=n(821),o=i.set,s=i.getterFor("String Iterator");a(String,"String",(function(e){o(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(132),i=n(1088),a=n(16),o=n(256),s=n(136),l=s("iterator"),u=s("toStringTag"),c=a.values;for(var d in i){var h=r[d],f=h&&h.prototype;if(f){if(f[l]!==c)try{o(f,l,c)}catch(e){f[l]=c}if(f[u]||o(f,u,d),i[d])for(var p in a)if(f[p]!==a[p])try{o(f,p,a[p])}catch(e){f[p]=a[p]}}}},function(e,t,n){"use strict";var r=n(80),i=n(132),a=n(388),o=n(387),s=n(174),l=n(819),u=n(1077),c=n(100),d=n(175),h=n(469),f=n(140),p=n(153),m=n(202),g=n(218),v=n(461),_=n(459),y=n(389),b=n(465),S=n(463),w=n(1076),E=n(818),C=n(290),T=n(182),O=n(555),x=n(256),M=n(257),k=n(815),A=n(556),D=n(462),R=n(557),L=n(136),I=n(1089),N=n(1090),P=n(563),j=n(317),B=n(291).forEach,F=A("hidden"),Y=L("toPrimitive"),H=j.set,U=j.getterFor("Symbol"),W=Object.prototype,V=i.Symbol,z=a("JSON","stringify"),G=C.f,$=T.f,q=w.f,K=O.f,X=k("symbols"),Q=k("op-symbols"),Z=k("string-to-symbol-registry"),J=k("symbol-to-string-registry"),ee=k("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&c((function(){return 7!=y($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=G(W,t);r&&delete W[t],$(e,t,n),r&&e!==W&&$(W,t,r)}:$,ie=function(e,t){var n=X[e]=y(V.prototype);return H(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},ae=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof V},oe=function(e,t,n){e===W&&oe(Q,t,n),p(e);var r=v(t,!0);return p(n),d(X,r)?(n.enumerable?(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=y(n,{enumerable:_(0,!1)})):(d(e,F)||$(e,F,_(1,{})),e[F][r]=!0),re(e,r,n)):$(e,r,n)},se=function(e,t){p(e);var n=g(t),r=b(n).concat(de(n));return B(r,(function(t){s&&!le.call(n,t)||oe(e,t,n[t])})),e},le=function(e){var t=v(e,!0),n=K.call(this,t);return!(this===W&&d(X,t)&&!d(Q,t))&&(!(n||!d(this,t)||!d(X,t)||d(this,F)&&this[F][t])||n)},ue=function(e,t){var n=g(e),r=v(t,!0);if(n!==W||!d(X,r)||d(Q,r)){var i=G(n,r);return!i||!d(X,r)||d(n,F)&&n[F][r]||(i.enumerable=!0),i}},ce=function(e){var t=q(g(e)),n=[];return B(t,(function(e){d(X,e)||d(D,e)||n.push(e)})),n},de=function(e){var t=e===W,n=q(t?Q:g(e)),r=[];return B(n,(function(e){!d(X,e)||t&&!d(W,e)||r.push(X[e])})),r};(l||(M((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function(e){this===W&&n.call(Q,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),re(this,t,_(1,e))};return s&&ne&&re(W,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return U(this).tag})),M(V,"withoutSetter",(function(e){return ie(R(e),e)})),O.f=le,T.f=oe,C.f=ue,S.f=w.f=ce,E.f=de,I.f=function(e){return ie(L(e),e)},s&&($(V.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),o||M(W,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),B(b(ee),(function(e){N(e)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(Z,t))return Z[t];var n=V(t);return Z[t]=n,J[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(d(J,e))return J[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?y(e):se(y(e),t)},defineProperty:oe,defineProperties:se,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ce,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:c((function(){E.f(1)}))},{getOwnPropertySymbols:function(e){return E.f(m(e))}}),z)&&r({target:"JSON",stat:!0,forced:!l||c((function(){var e=V();return"[null]"!=z([e])||"{}"!=z({a:e})||"{}"!=z(Object(e))}))},{stringify:function(e,t,n){for(var r,i=[e],a=1;arguments.length>a;)i.push(arguments[a++]);if(r=t,(f(t)||void 0!==e)&&!ae(e))return h(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),i[1]=t,z.apply(null,i)}});V.prototype[Y]||x(V.prototype,Y,V.prototype.valueOf),P(V,"Symbol"),D[F]=!0},function(e,t,n){"use strict";var r=n(80),i=n(174),a=n(132),o=n(175),s=n(140),l=n(182).f,u=n(1072),c=a.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new c(e):void 0===e?c():c(e);return""===e&&(d[t]=!0),t};u(h,c);var f=h.prototype=c.prototype;f.constructor=h;var p=f.toString,m="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(d,e))return"";var n=m?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},function(e,t,n){n(1090)("iterator")},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n<_.length;n++)u(i=t[r=_[n]])||(e[r]=i);return e}function S(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function w(e){return e instanceof S||null!=e&&null!=e._isAMomentObject}function E(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var n=!0;return f((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,a,o,l=[];for(a=0;a=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},N={};function P(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(N[e]=i),t&&(N[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function j(e,t){return e.isValid()?(t=B(t,e.localeData()),I[t]=I[t]||function(e){var t,n,r,i=e.match(R);for(t=0,n=i.length;t=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var F={};function Y(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function H(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)s(e,n)&&(t=H(n))&&(r[t]=e[n]);return r}var W={};function V(e,t){W[e]=t}function z(e){return e%4==0&&e%100!=0||e%400==0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=G(t)),n}function q(e,t){return function(n){return null!=n?(X(this,e,n),i.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function X(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&z(e.year())&&1===e.month()&&29===e.date()?(n=$(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),we(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Q,Z=/\d/,J=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,ie=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ue=/\d+/,ce=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,he=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){Q[e]=M(t)?t:function(e,r){return e&&n?n:t}}function me(e,t){return s(Q,e)?Q[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var ve,_e={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=$(e)}),n=0;n68?1900:2e3)};var Le=q("FullYear",!0);function Ie(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Ne(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Pe(e,t,n){var r=7+t-n;return-(7+Ne(e,0,r).getUTCDay()-t)%7+r-1}function je(e,t,n,r,i){var a,o,s=1+7*(t-1)+(7+n-r)%7+Pe(e,r,i);return s<=0?o=Re(a=e-1)+s:s>Re(e)?(a=e+1,o=s-Re(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Be(e,t,n){var r,i,a=Pe(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?r=o+Fe(i=e.year()-1,t,n):o>Fe(e.year(),t,n)?(r=o-Fe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Fe(e,t,n){var r=Pe(e,t,n),i=Pe(e+1,t,n);return(Re(e)-r+i)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),V("week",5),V("isoWeek",5),pe("w",re),pe("ww",re,J),pe("W",re),pe("WW",re,J),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=$(e)})),P("d",0,"do","day"),P("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),P("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),P("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),pe("d",re),pe("e",re),pe("E",re),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=$(e)}));var He="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=fe,ze=fe,Ge=fe;function $e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,o))||-1!==(i=ve.call(this._shortWeekdaysParse,o))||-1!==(i=ve.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,o))||-1!==(i=ve.call(this._weekdaysParse,o))||-1!==(i=ve.call(this._minWeekdaysParse,o))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,o))||-1!==(i=ve.call(this._weekdaysParse,o))||-1!==(i=ve.call(this._shortWeekdaysParse,o))?i:null}function qe(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=ge(this.weekdaysMin(n,"")),i=ge(this.weekdaysShort(n,"")),a=ge(this.weekdays(n,"")),o.push(r),s.push(i),l.push(a),u.push(r),u.push(i),u.push(a);o.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Xe(e,t){P(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,Ke),P("k",["kk",2],0,(function(){return this.hours()||24})),P("hmm",0,0,(function(){return""+Ke.apply(this)+D(this.minutes(),2)})),P("hmmss",0,0,(function(){return""+Ke.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),P("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),P("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),Xe("a",!0),Xe("A",!1),Y("hour","h"),V("hour",13),pe("a",Qe),pe("A",Qe),pe("H",re),pe("h",re),pe("k",re),pe("HH",re,J),pe("hh",re,J),pe("kk",re,J),pe("hmm",ie),pe("hmmss",ae),pe("Hmm",ie),pe("Hmmss",ae),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=$(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=$(e),m(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r)),m(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(i)),m(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(i))}));var Ze,Je=q("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ee,monthsShort:Ce,week:{dow:0,doy:6},weekdays:He,weekdaysMin:We,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=at(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(i,n)>=t-1)break;t--}a++}return Ze}(e)}function ut(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mt=/^\/?Date\((-?\d+)/i,gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,r,i,a,o,s=e._i,l=ct.exec(s)||dt.exec(s);if(l){for(m(e).iso=!0,t=0,n=ft.length;t7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,u=Be(Ot(),a,o),n=St(t.gg,e._a[0],u.year),r=St(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>Fe(n,a,o)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(s=je(n,r,i,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=St(e._a[0],r[0]),(e._dayOfYear>Re(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ne(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ne:Ie).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function Et(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,a,o,s,l=""+e._i,u=l.length,c=0;for(r=B(e._f,e._locale).match(R)||[],t=0;t0&&m(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),c+=n.length),N[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),Se(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=u-c,l.length>0&&m(e).unusedInput.push(l),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),ut(e)}else bt(e);else _t(e)}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new S(ut(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,i,a,o,s=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:v()}));function kt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],i=[],a=[],o=this.eras();for(e=0,t=o.length;e(a=Fe(e,r,i))&&(t=a),cn.call(this,e,t,n,r,i))}function cn(e,t,n,r,i){var a=je(e,t,n,r,i),o=Ne(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}P("N",0,0,"eraAbbr"),P("NN",0,0,"eraAbbr"),P("NNN",0,0,"eraAbbr"),P("NNNN",0,0,"eraName"),P("NNNNN",0,0,"eraNarrow"),P("y",["y",1],"yo","eraYear"),P("y",["yy",2],0,"eraYear"),P("y",["yyy",3],0,"eraYear"),P("y",["yyyy",4],0,"eraYear"),pe("N",on),pe("NN",on),pe("NNN",on),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e})),pe("y",ue),pe("yy",ue),pe("yyy",ue),pe("yyyy",ue),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),P(0,["gg",2],0,(function(){return this.weekYear()%100})),P(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),pe("G",ce),pe("g",ce),pe("GG",re,J),pe("gg",re,J),pe("GGGG",se,te),pe("gggg",se,te),pe("GGGGG",le,ne),pe("ggggg",le,ne),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=$(e)})),be(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),P("Q",0,"Qo","quarter"),Y("quarter","Q"),V("quarter",7),pe("Q",Z),ye("Q",(function(e,t){t[1]=3*($(e)-1)})),P("D",["DD",2],"Do","date"),Y("date","D"),V("date",9),pe("D",re),pe("DD",re,J),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=$(e.match(re)[0])}));var dn=q("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),V("dayOfYear",4),pe("DDD",oe),pe("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=$(e)})),P("m",["mm",2],0,"minute"),Y("minute","m"),V("minute",14),pe("m",re),pe("mm",re,J),ye(["m","mm"],4);var hn=q("Minutes",!1);P("s",["ss",2],0,"second"),Y("second","s"),V("second",15),pe("s",re),pe("ss",re,J),ye(["s","ss"],5);var fn,pn,mn=q("Seconds",!1);for(P("S",0,0,(function(){return~~(this.millisecond()/100)})),P(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),P(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),P(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),P(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),P(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),P(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Y("millisecond","ms"),V("millisecond",16),pe("S",oe,Z),pe("SS",oe,J),pe("SSS",oe,ee),fn="SSSS";fn.length<=9;fn+="S")pe(fn,ue);function gn(e,t){t[6]=$(1e3*("0."+e))}for(fn="S";fn.length<=9;fn+="S")ye(fn,gn);pn=q("Milliseconds",!1),P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var vn=S.prototype;function _n(e){return e}vn.add=$t,vn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),r=jt(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=t&&(M(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Ot(n)))},vn.clone=function(){return new S(this)},vn.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=jt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=H(t)){case"year":a=Zt(this,r)/12;break;case"month":a=Zt(this,r);break;case"quarter":a=Zt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:G(a)},vn.endOf=function(e){var t,n;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},vn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=j(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ot(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(Ot(),e)},vn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ot(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(Ot(),e)},vn.get=function(e){return M(this[e=H(e)])?this[e]():this},vn.invalidAt=function(){return m(this).overflow},vn.isAfter=function(e,t){var n=w(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?j(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=Ft,vn.isUTC=Ft,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=C("dates accessor is deprecated. Use date instead.",dn),vn.months=C("months accessor is deprecated. Use month instead",Ae),vn.years=C("years accessor is deprecated. Use year instead",Le),vn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),vn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Ct(t))._a?(e=t._isUTC?p(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=A.prototype;function bn(e,t,n,r){var i=lt(),a=p().set(r,t);return i[n](a,e)}function Sn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bn(e,r,n,"month");return i}function wn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,a=lt(),o=e?a._week.dow:0,s=[];if(null!=n)return bn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=bn(t,(i+o)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return M(r)?r.call(t,n):r},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=_n,yn.postformat=_n,yn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return M(i)?i(e,t,n,r):i.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return M(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)s(e,n)&&(M(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,r,a,o=this._eras||lt("en")._eras;for(n=0,r=o.length;n=0)return l[r]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return Me.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},yn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||De.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=xe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||De.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Be(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ye(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return $e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===$(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",ot),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",lt);var En=Math.abs;function Cn(e,t,n,r){var i=Ut(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function On(e){return 4800*e/146097}function xn(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var kn=Mn("ms"),An=Mn("s"),Dn=Mn("m"),Rn=Mn("h"),Ln=Mn("d"),In=Mn("w"),Nn=Mn("M"),Pn=Mn("Q"),jn=Mn("y");function Bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=Bn("milliseconds"),Yn=Bn("seconds"),Hn=Bn("minutes"),Un=Bn("hours"),Wn=Bn("days"),Vn=Bn("months"),zn=Bn("years"),Gn=Math.round,$n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Kn=Math.abs;function Xn(e){return(e>0)-(e<0)||+e}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,o,s,l=Kn(this._milliseconds)/1e3,u=Kn(this._days),c=Kn(this._months),d=this.asSeconds();return d?(e=G(l/60),t=G(e/60),l%=60,e%=60,n=G(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=Xn(this._months)!==Xn(d)?"-":"",o=Xn(this._days)!==Xn(d)?"-":"",s=Xn(this._milliseconds)!==Xn(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Zn=Dt.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=En(this._milliseconds),this._days=En(this._days),this._months=En(this._months),e.milliseconds=En(e.milliseconds),e.seconds=En(e.seconds),e.minutes=En(e.minutes),e.hours=En(e.hours),e.months=En(e.months),e.years=En(e.years),this},Zn.add=function(e,t){return Cn(this,e,t,1)},Zn.subtract=function(e,t){return Cn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=H(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+On(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(xn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Zn.asMilliseconds=kn,Zn.asSeconds=An,Zn.asMinutes=Dn,Zn.asHours=Rn,Zn.asDays=Ln,Zn.asWeeks=In,Zn.asMonths=Nn,Zn.asQuarters=Pn,Zn.asYears=jn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):NaN},Zn._bubble=function(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Tn(xn(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=G(a/1e3),l.seconds=e%60,t=G(e/60),l.minutes=t%60,n=G(t/60),l.hours=n%24,o+=G(n/24),i=G(On(o)),s+=i,o-=Tn(xn(i)),r=G(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},Zn.clone=function(){return Ut(this)},Zn.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Fn,Zn.seconds=Yn,Zn.minutes=Hn,Zn.hours=Un,Zn.days=Wn,Zn.weeks=function(){return G(this.days()/7)},Zn.months=Vn,Zn.years=zn,Zn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=$n;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},$n,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var i=Ut(e).abs(),a=Gn(i.as("s")),o=Gn(i.as("m")),s=Gn(i.as("h")),l=Gn(i.as("d")),u=Gn(i.as("M")),c=Gn(i.as("w")),d=Gn(i.as("y")),h=a<=n.ss&&["s",a]||a0,h[4]=r,qn.apply(null,h)}(this,!i,a,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},Zn.toISOString=Qn,Zn.toString=Qn,Zn.toJSON=Qn,Zn.locale=Jt,Zn.localeData=tn,Zn.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Zn.lang=en,P("X",0,0,"unix"),P("x",0,0,"valueOf"),pe("x",ce),pe("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date($(e))})), //! moment.js i.version="2.29.1",t=Ot,i.fn=vn,i.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return Ot(1e3*e)},i.months=function(e,t){return Sn(e,t,"months")},i.isDate=d,i.locale=ot,i.invalid=v,i.duration=Ut,i.isMoment=w,i.weekdays=function(e,t,n){return wn(e,t,n,"weekdays")},i.parseZone=function(){return Ot.apply(null,arguments).parseZone()},i.localeData=lt,i.isDuration=Rt,i.monthsShort=function(e,t){return Sn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return wn(e,t,n,"weekdaysMin")},i.defineLocale=st,i.updateLocale=function(e,t){if(null!=t){var n,r,i=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(k(tt[e]._config,t)):(null!=(r=at(e))&&(i=r._config),t=k(i,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=tt[e],tt[e]=n),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},i.locales=function(){return T(tt)},i.weekdaysShort=function(e,t,n){return wn(e,t,n,"weekdaysShort")},i.normalizeUnits=H,i.relativeTimeRounding=function(e){return void 0===e?Gn:"function"==typeof e&&(Gn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==$n[e]&&(void 0===t?$n[e]:($n[e]=t,"s"===e&&($n.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=vn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(260)(e))},function(e,t,n){"use strict";function r(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function i(e,t){return e[0]=t[0],e[1]=t[1],e}function a(e){return[e[0],e[1]]}function o(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function l(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function c(e){return Math.sqrt(h(e))}n.r(t),n.d(t,"create",(function(){return r})),n.d(t,"copy",(function(){return i})),n.d(t,"clone",(function(){return a})),n.d(t,"set",(function(){return o})),n.d(t,"add",(function(){return s})),n.d(t,"scaleAndAdd",(function(){return l})),n.d(t,"sub",(function(){return u})),n.d(t,"len",(function(){return c})),n.d(t,"length",(function(){return d})),n.d(t,"lenSquare",(function(){return h})),n.d(t,"lengthSquare",(function(){return f})),n.d(t,"mul",(function(){return p})),n.d(t,"div",(function(){return m})),n.d(t,"dot",(function(){return g})),n.d(t,"scale",(function(){return v})),n.d(t,"normalize",(function(){return _})),n.d(t,"distance",(function(){return y})),n.d(t,"dist",(function(){return b})),n.d(t,"distanceSquare",(function(){return S})),n.d(t,"distSquare",(function(){return w})),n.d(t,"negate",(function(){return E})),n.d(t,"lerp",(function(){return C})),n.d(t,"applyTransform",(function(){return T})),n.d(t,"min",(function(){return O})),n.d(t,"max",(function(){return x}));var d=c;function h(e){return e[0]*e[0]+e[1]*e[1]}var f=h;function p(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function m(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function g(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function _(e,t){var n=c(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function y(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var b=y;function S(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var w=S;function E(e,t){return e[0]=-t[0],e[1]=-t[1],e}function C(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function T(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function O(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function x(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}},function(e,t,n){var r=n(95),i=n(239),a=n(206),o=n(207),s=n(240),l=function(e,t,n){var u,c,d,h,f=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,_=p?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,y=p?i:i[t]||(i[t]={}),b=y.prototype||(y.prototype={});for(u in p&&(n=t),n)d=((c=!f&&_&&void 0!==_[u])?_:n)[u],h=v&&c?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,_&&o(_,u,d,e&l.U),y[u]!=d&&a(y,u,h),g&&b[u]!=d&&(b[u]=d)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";n.r(t),n.d(t,"bindProps",(function(){return u})),n.d(t,"defineProp",(function(){return c})),n.d(t,"setPropValue",(function(){return l}));var r=n(11),i=n(791),a=n(26),o=n(338),s={equals:a.theSame,clone:!1};function l(e,t,n,r){var a=n.setter;a&&("function"==typeof a?a.call(e,t,r):"string"==typeof a&&(n.clone&&(r=Object(i.default)(r)),t[a](r)))}function u(e,t,n){t||(t=e.$amap.context.target),n||(n=e.$options.props);var r=function(r){var i=n[r];if(!i.setter)return"continue";var a={deep:!!i.deep};e.$amap.logger.debug("watch",r,a),e.$watch("$props."+r,(function(n,r){if(!a.deep||a.deep&&n!==r)if("function"==typeof i.equals){if(i.equals(n,r))return}else if(n===r)return;l(e,t,i,n)}),a),i.events&&Object(o.bindTwoWayEvent)(e,r,i,t)};for(var i in n)r(i)}function c(e,t,n){if("string"==typeof e){var i=e,a=Object(r.__assign)(Object(r.__assign)({},s),{setter:i});return t&&(a.type=t),arguments.length>=3&&(a.default=n),a}return Object(r.__assign)(Object(r.__assign)({},s),e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"EPSILON",(function(){return u})),n.d(t,"bounds2Array",(function(){return v})),n.d(t,"getOptionsFromProps",(function(){return p})),n.d(t,"lngLat2Array",(function(){return m})),n.d(t,"makeBounds",(function(){return y})),n.d(t,"makeOptionsSetter",(function(){return b})),n.d(t,"near",(function(){return c})),n.d(t,"nearPair",(function(){return d})),n.d(t,"path2Array",(function(){return _})),n.d(t,"theSame",(function(){return a})),n.d(t,"theSameArray",(function(){return o})),n.d(t,"theSamePair",(function(){return s})),n.d(t,"theSamePath",(function(){return l})),n.d(t,"xy2Array",(function(){return g}));var r=n(791),i=n(811);function a(e,t){return e===t}function o(e,t){return!(!e&&t)&&!(e&&!t)&&(e===t||e.length===t.length&&e.every((function(e,n){return e===t[n]})))}function s(e,t){return!(!e&&t||e&&!t||e!==t&&(e[0]!==t[0]||e[1]!==t[1]))}function l(e,t){if(!e&&t)return!1;if(e&&!t)return!1;if(!e&&!t)return!0;if(e===t)return!0;if(e.length!==t.length)return!1;var n=Object(i.arrayDims)(e);return!!o(n,Object(i.arrayDims)(t))&&(2===n.length?e.every((function(e,n){return s(e,t[n])})):3===n.length&&e.every((function(e,n){return l(e,t)})))}var u=1e-7;function c(e,t,n){return void 0===n&&(n=1e-7),Math.abs(e-t)t+r)&&!(l>n+i)))},t.getRotatePointPos=w,t.getScalePointPos=E,t.getTranslatePointPos=C,t.getDistanceBetweenPointAndLine=T,t.getCircleRadianPoint=O,t.getRegularPolygonPoints=x,t.default=void 0;var i=r(n(155)),a=r(n(184)),o=r(n(192)),s=Math.abs,l=Math.sqrt,u=Math.sin,c=Math.cos,d=Math.max,h=Math.min,f=Math.PI;function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return e;var n=JSON.parse,r=JSON.stringify;if(!t)return n(r(e));var i=e instanceof Array?[]:{};if(e&&"object"===(0,o.default)(e))for(var a in e)e.hasOwnProperty(a)&&(e[a]&&"object"===(0,o.default)(e[a])?i[a]=p(e[a],!0):i[a]=e[a]);return i}function m(e){return e.map((function(e){var t=(0,a.default)(e,2),n=t[0],r=t[1];return[parseInt(n)+.5,parseInt(r)+.5]}))}function g(e,t,n,r){return v(e,[t,n])<=r}function v(e,t){var n=(0,a.default)(e,2),r=n[0],i=n[1],o=(0,a.default)(t,2),u=o[0],c=o[1],d=s(r-u),h=s(i-c);return l(d*d+h*h)}function _(e,t){for(var n=0,r=(0,a.default)(e,2),i=r[0],o=r[1],s=t.length,l=1,u=t[0];l<=s;l++){var c=t[l%s];if(i>h(u[0],c[0])&&i<=d(u[0],c[0])&&o<=d(u[1],c[1])&&u[0]!==c[0]){var f=(i-u[0])*(c[1]-u[1])/(c[0]-u[0])+u[1];(u[1]===c[1]||o<=f)&&n++}u=c}return n%2==1}function y(e,t,n,r,i,o,s){if(!e)return!1;if(v(e,[t,n])>r)return!1;if(!s){var l=p([o,i]),u=(0,a.default)(l,2);i=u[0],o=u[1]}var c=i>o;if(c){var d=[o,i];i=d[0],o=d[1]}var h=o-i;if(h>=2*f)return!0;var m=(0,a.default)(e,2),g=m[0],_=m[1],y=O(t,n,r,i),S=(0,a.default)(y,2),w=S[0],E=S[1],C=O(t,n,r,o),T=(0,a.default)(C,2),x=[g-t,_-n],M=[w-t,E-n],k=[T[0]-t,T[1]-n],A=h>f;if(A){var D=p([k,M]),R=(0,a.default)(D,2);M=R[0],k=R[1]}var L=b(M,x)&&!b(k,x);return A&&(L=!L),c&&(L=!L),L}function b(e,t){var n=(0,a.default)(e,2),r=n[0],i=n[1],o=(0,a.default)(t,2);return-i*o[0]+r*o[1]>0}function S(e,t,n){var r=n/2,o=t.map((function(e){var t=(0,a.default)(e,2);return[t[0],t[1]-r]})),s=t.map((function(e){var t=(0,a.default)(e,2);return[t[0],t[1]+r]}));return _(e,[].concat((0,i.default)(o),(0,i.default)(s.reverse())))}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(e%360==0)return t;var r=(0,a.default)(t,2),i=r[0],o=r[1],s=(0,a.default)(n,2),l=s[0],d=s[1];return[(i-l)*c(e*=f/180)-(o-d)*u(e)+l,(i-l)*u(e)+(o-d)*c(e)+d]}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,1],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(1===e)return t;var r=(0,a.default)(t,2),i=r[0],o=r[1],s=(0,a.default)(n,2),l=s[0],u=s[1],c=(0,a.default)(e,2),d=c[0],h=c[1],f=i-l,p=o-u;return[f*d+l,p*h+u]}function C(e,t){if(!e||!t)return!1;var n=(0,a.default)(t,2),r=n[0],i=n[1],o=(0,a.default)(e,2);return[r+o[0],i+o[1]]}function T(e,t,n){if(!e||!t||!n)return!1;var r=(0,a.default)(e,2),i=r[0],o=r[1],u=(0,a.default)(t,2),c=u[0],d=u[1],h=(0,a.default)(n,2),f=h[0],p=h[1],m=p-d,g=c-f;return s(m*i+g*o+(d*(f-c)-c*(p-d)))/l(m*m+g*g)}function O(e,t,n,r){return[e+c(r)*n,t+u(r)*n]}function x(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-.5*f,a=2*f/r,o=new Array(r).fill("").map((function(e,t){return t*a+i}));return o.map((function(r){return O(e,t,n,r)}))}var M={deepClone:p,eliminateBlur:m,checkPointIsInCircle:g,checkPointIsInPolygon:_,checkPointIsInSector:y,checkPointIsNearPolyline:S,getTwoPointDistance:v,getRotatePointPos:w,getScalePointPos:E,getTranslatePointPos:C,getCircleRadianPoint:O,getRegularPolygonPoints:x,getDistanceBetweenPointAndLine:T};t.default=M},function(e,t,n){"use strict";n.r(t),n.d(t,"stringify",(function(){return p})),n.d(t,"isDefined",(function(){return m})),n.d(t,"isUndefined",(function(){return g})),n.d(t,"isEmpty",(function(){return v})),n.d(t,"isRegExp",(function(){return _})),n.d(t,"_injectProductInfo",(function(){return M}));n(19),n(20),n(21),n(16),n(117),n(259),n(13),n(102),n(34),n(1978),n(17),n(1097),n(160),n(203),n(18);var r=n(14),i=n.n(r),a=n(113);function o(){var e=h(['\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: \'non-commercial-and-evaluation\'. \n Read more about it in \n the documentation or contact us at support@handsontable.com.'],['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'non-commercial-and-evaluation\'.\\x20\n Read more about it in\\x20\n the documentation or contact us at support@handsontable.com.']);return o=function(){return e},e}function s(){var e=h(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. Renew your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at sales@handsontable.com.'],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. Renew your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at sales@handsontable.com.']);return s=function(){return e},e}function l(){var e=h(['\n The license key for Handsontable is invalid. \n Read more on how to \n install it properly or contact us at support@handsontable.com.'],['\n The license key for Handsontable is invalid.\\x20\n Read more on how to\\x20\n install it properly or contact us at support@handsontable.com.']);return l=function(){return e},e}function u(){var e=h(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at support@handsontable.com."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at support@handsontable.com."]);return u=function(){return e},e}function c(){var e=h(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at sales@handsontable.com."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ",". If you need any help, contact us at sales@handsontable.com."]);return c=function(){return e},e}function d(){var e=h(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at support@handsontable.com."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at support@handsontable.com."]);return d=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function f(e){return(f="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)}function p(e){var t;switch(f(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t}function m(e){return void 0!==e}function g(e){return void 0===e}function v(e){return null===e||""===e||g(e)}function _(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y="length",b=function(e){return parseInt(e,16)},S=function(e){return parseInt(e,10)},w=function(e,t,n){return e.substr(t,n)},E=function(e){return e.codePointAt(0)-65},C=function(e){return"".concat(e).replace(/\-/g,"")},T=!1,O={invalid:function(){return Object(a.toSingleLine)(d())},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return Object(a.toSingleLine)(c(),t,n,t)},missing:function(){return Object(a.toSingleLine)(u())},non_commercial:function(){return""}},x={invalid:function(){return Object(a.toSingleLine)(l())},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return Object(a.toSingleLine)(s(),t,n,t)},missing:function(){return Object(a.toSingleLine)(o())},non_commercial:function(){return""}};function M(e,t){var n,r,a=!v(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),s="invalid",l="invalid",u=function(e){var t=[][y],n=t;if(e[y]!==E("Z"))return!1;for(var r="",i="B>1:r=w(e,a,a?1===i[y]?9:8:6);return n===t}(e=C(e||""));if(a||o||u)if(u){var c=i()("19/02/2020","DD/MM/YYYY"),d=Math.floor(c.toDate().getTime()/864e5),h=b(w(C(r=e),b("12"),E("F")))/(b(w(C(r),E("B"),~~![][y]))||9);if(n=i()(864e5*(h+1),"x").format("MMMM DD, YYYY"),d>h){var f=i()().diff(c,"days");s=f<=1?"valid":"expired",l=f<=15?"valid":"expired"}else s="valid",l="valid"}else o?(s="non_commercial",l="valid"):(s="invalid",l="invalid");else s="missing",l="missing";("undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)&&(s="valid",l="valid"),T||"valid"===s)||(O[s]({keyValidityDate:n,hotVersion:"7.4.2"})&&console["non_commercial"===s?"info":"warn"](O[s]({keyValidityDate:n,hotVersion:"7.4.2"})),T=!0);if("valid"!==l&&t.parentNode&&x[l]({keyValidityDate:n,hotVersion:"7.4.2"})){var p=document.createElement("div");p.id="hot-display-license-info",p.innerHTML=x[l]({keyValidityDate:n,hotVersion:"7.4.2"}),t.parentNode.insertBefore(p,t.nextSibling)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"setLabelText",(function(){return u})),n.d(t,"setLabelStyle",(function(){return d})),n.d(t,"getLabelStatesModels",(function(){return h})),n.d(t,"createTextStyle",(function(){return f})),n.d(t,"createTextConfig",(function(){return p})),n.d(t,"getFont",(function(){return y})),n.d(t,"labelInner",(function(){return b})),n.d(t,"setLabelValueAnimation",(function(){return S})),n.d(t,"animateLabelValue",(function(){return w}));var r=n(82),i=n(0),a=n(10),o=n(7),s=n(6),l={};function u(e,t){for(var n=0;nr||l.newline?(a=0,c=m,o+=s+n,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(p?-p.y+h.y:0);(d=o+g)>i||l.newline?(a+=s+n,o=0,d=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=c+n:o=d+n)}))}var d=c,h=r.curry(c,"vertical"),f=r.curry(c,"horizontal");function p(e,t,n){var r=t.width,i=t.height,s=Object(a.parsePercent)(e.left,r),l=Object(a.parsePercent)(e.top,i),u=Object(a.parsePercent)(e.right,r),c=Object(a.parsePercent)(e.bottom,i);return(isNaN(s)||isNaN(parseFloat(e.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(e.right)))&&(u=r),(isNaN(l)||isNaN(parseFloat(e.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(e.bottom)))&&(c=i),n=o.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function m(e,t,n){n=o.normalizeCssArray(n||0);var r=t.width,s=t.height,l=Object(a.parsePercent)(e.left,r),u=Object(a.parsePercent)(e.top,s),c=Object(a.parsePercent)(e.right,r),d=Object(a.parsePercent)(e.bottom,s),h=Object(a.parsePercent)(e.width,r),f=Object(a.parsePercent)(e.height,s),p=n[2]+n[0],m=n[1]+n[3],g=e.aspect;switch(isNaN(h)&&(h=r-c-m-l),isNaN(f)&&(f=s-d-p-u),null!=g&&(isNaN(h)&&isNaN(f)&&(g>r/s?h=.8*r:f=.8*s),isNaN(h)&&(h=g*f),isNaN(f)&&(f=h/g)),isNaN(l)&&(l=r-c-h-m),isNaN(u)&&(u=s-d-f-p),e.left||e.right){case"center":l=r/2-h/2-n[3];break;case"right":l=r-h-m}switch(e.top||e.bottom){case"middle":case"center":u=s/2-f/2-n[0];break;case"bottom":u=s-f-p}l=l||0,u=u||0,isNaN(h)&&(h=r-m-l-(c||0)),isNaN(f)&&(f=s-p-u-(d||0));var v=new i.default(l+n[3],u+n[0],h,f);return v.margin=n,v}function g(e,t,n,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===e.type?new i.default(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(c=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();(c=c.clone()).applyTransform(d)}var h=m(r.defaults({width:c.width,height:c.height},t),n,a),f=s?h.x-c.x:0,p=l?h.y-c.y:0;"raw"===u?(e.x=f,e.y=p):(e.x+=f,e.y+=p),e.markRedraw()}}function v(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function _(e){var t=e.layoutMode||e.constructor.layoutMode;return r.isObject(t)?t:t?{type:t}:null}function y(e,t,n){var i=n&&n.ignoreSize;!r.isArray(i)&&(i=[i,i]);var a=l(u[0],0),o=l(u[1],1);function l(n,r){var a={},o=0,l={},u=0;if(s(n,(function(t){l[t]=e[t]})),s(n,(function(e){c(t,e)&&(a[e]=l[e]=t[e]),d(a,e)&&o++,d(l,e)&&u++})),i[r])return d(t,n[1])?l[n[2]]=null:d(t,n[2])&&(l[n[1]]=null),l;if(2!==u&&o){if(o>=2)return a;for(var h=0;h0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))Object(r.arrayEach)(t,(function(t){return n.add(e,t,i)}));else{var a=this.getBucket(i);if(void 0===a[e]&&(this.register(e),a[e]=[]),t.skip=!1,-1===a[e].indexOf(t)){var o=!1;t.initialHook&&Object(r.arrayEach)(a[e],(function(n,r){if(n.initialHook)return a[e][r]=t,o=!0,!1})),o||a[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?Object(r.arrayEach)(t,(function(t){return n.once(e,t,i)})):(t.runOnce=!0,this.add(e,t,i))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getBucket(n);return void 0!==r[e]&&r[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,r,i,a,o,s){var l=this.globalBucket[t],u=l?l.length:0,c=0;if(u)for(;c0&&void 0!==arguments[0]?arguments[0]:null;Object(i.objectEach)(this.getBucket(e),(function(e,t,n){return n[t].length=0}))}},{key:"register",value:function(e){this.isRegistered(e)||s.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&s.splice(s.indexOf(e),1)}},{key:"isRegistered",value:function(e){return s.indexOf(e)>=0}},{key:"getRegistered",value:function(){return s}}]),e}(),u=new l;t.default=l},function(e,t,n){"use strict";n.r(t);var r=n(46),i=n(75),a=Math.min,o=Math.max,s=new i.default,l=new i.default,u=new i.default,c=new i.default,d=new i.default,h=new i.default,f=function(){function e(e,t,n,r){n<0&&isFinite(n)&&(e+=n,n=-n),r<0&&isFinite(r)&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=a(e.x,this.x),n=a(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=o(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=o(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=r.create();return r.translate(a,a,[-t.x,-t.y]),r.scale(a,a,[n,i]),r.translate(a,a,[e.x,e.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,a=r.x,o=r.x+r.width,s=r.y,l=r.y+r.height,u=t.x,c=t.x+t.width,f=t.y,p=t.y+t.height,m=!(ov&&(v=w,_v&&(v=E,b=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],d=r[3],h=r[4],f=r[5];return t.x=n.x*i+h,t.y=n.y*d+f,t.width=n.width*i,t.height=n.height*d,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}s.x=u.x=n.x,s.y=c.y=n.y,l.x=c.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(r),c.transform(r),l.transform(r),u.transform(r),t.x=a(s.x,l.x,u.x,c.x),t.y=a(s.y,l.y,u.y,c.y);var p=o(s.x,l.x,u.x,c.x),m=o(s.y,l.y,u.y,c.y);t.width=p-t.x,t.height=m-t.y}else t!==n&&e.copy(t,n)},e}();t.default=f},function(e,t,n){"use strict";n.r(t),n.d(t,"KEY_CODES",(function(){return i})),n.d(t,"isPrintableChar",(function(){return a})),n.d(t,"isMetaKey",(function(){return o})),n.d(t,"isCtrlKey",(function(){return s})),n.d(t,"isCtrlMetaKey",(function(){return l})),n.d(t,"isKey",(function(){return u}));n(122),n(64),n(102),n(145),n(203);var r=n(2),i={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL:17,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88};function a(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function o(e){return-1!==[i.ARROW_DOWN,i.ARROW_UP,i.ARROW_LEFT,i.ARROW_RIGHT,i.HOME,i.END,i.DELETE,i.BACKSPACE,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12,i.TAB,i.PAGE_DOWN,i.PAGE_UP,i.ENTER,i.ESCAPE,i.SHIFT,i.CAPS_LOCK,i.ALT].indexOf(e)}function s(e){var t=[];return navigator.platform.includes("Mac")?t.push(i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX):t.push(i.CONTROL),t.includes(e)}function l(e){return[i.CONTROL,i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX].includes(e)}function u(e,t){var n=t.split("|"),a=!1;return Object(r.arrayEach)(n,(function(t){if(e===i[t])return a=!0,!1})),a}},function(e,t,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function o(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function s(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function l(e,t,n){var r=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+o*u,e[1]=-r*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function u(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function c(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}function d(e){var t=[1,0,0,1,0,0];return a(t,e),t}n.r(t),n.d(t,"create",(function(){return r})),n.d(t,"identity",(function(){return i})),n.d(t,"copy",(function(){return a})),n.d(t,"mul",(function(){return o})),n.d(t,"translate",(function(){return s})),n.d(t,"rotate",(function(){return l})),n.d(t,"scale",(function(){return u})),n.d(t,"invert",(function(){return c})),n.d(t,"clone",(function(){return d}))},function(e,t,n){"use strict";n.r(t);var r=n(59),i=n(0),a=n(170),o=n(44),s=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Object(r.__extends)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=i.indexOf(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n=0&&u.splice(u.indexOf(this.pluginName),1),u.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(e,t){l.get(this).hooks[e]=l.get(this).hooks[e]||[];var n=l.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),l.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;Object(i.arrayEach)(l.get(this).hooks[e]||[],(function(n){t.hot.removeHook(e,n)}))}},{key:"clearHooks",value:function(){var e=this,t=l.get(this).hooks;Object(r.objectEach)(t,(function(t,n){return e.removeHooks(n)})),t.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){Object(i.arrayEach)(this.pluginsInitializedCallbacks,(function(e){return e()})),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),Object(r.objectEach)(this,(function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)})),delete this.t,delete this.hot}}])&&s(t.prototype,n),c&&s(t,c),e}();t.default=c},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_PATH_STYLE",(function(){return d})),n.d(t,"DEFAULT_PATH_ANIMATION_PROPS",(function(){return h}));var r=n(59),i=n(138),a=n(170),o=n(148),s=n(931),l=n(0),u=n(78),c=n(150),d=Object(l.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i.DEFAULT_COMMON_STYLE),h={style:Object(l.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i.DEFAULT_COMMON_ANIMATION_PROPS.style)},f=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],p=function(e){function t(t){return e.call(this,t)||this}var n;return Object(r.__extends)(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var s in r)o[s]!==r[s]&&(o[s]=r[s]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var l=0;l.5?c.DARK_LABEL_COLOR:t>.2?c.LIGHTER_LABEL_COLOR:c.LIGHT_LABEL_COLOR}if(e)return c.LIGHT_LABEL_COLOR}return c.DARK_LABEL_COLOR},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(l.isString)(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(u.lum)(e,0)0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,r=!e;if(r){var i=!1;this.path||(i=!0,this.createPathProxy());var a=this.path;(i||this.__dirty&t.SHAPE_CHANGED_BIT)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),e=a.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||r){o.copy(e);var s=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,null==u?4:u)}s>1e-10&&(o.width+=l/s,o.height+=l/s,o.x-=l/s/2,o.y-=l/s/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,l=i.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s.containStroke(a,o/l,e,t)))return!0}if(this.hasFill())return s.contain(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=t.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:Object(l.extend)(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&t.SHAPE_CHANGED_BIT)},t.prototype.createStyle=function(e){return Object(l.createObject)(d,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(l.extend)({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,u=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=Object(l.extend)({},r.shape),Object(l.extend)(s,n.shape)):(s=Object(l.extend)({},i?this.shape:r.shape),Object(l.extend)(s,n.shape)):u&&(s=r.shape),s)if(a){this.shape=Object(l.extend)({},this.shape);for(var c={},d=Object(l.keys)(s),h=0;h=0;l--)o=i.merge(o,n[l],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Object(l.queryReferringComponents)(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(a.default);Object(s.mountExtend)(d,a.default),Object(s.enableClassManagement)(d),o.enableSubTypeDefaulter(d),o.enableTopologicalTravel(d,(function(e){var t=[];i.each(d.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=i.map(t,(function(e){return Object(s.parseClassType)(e).main})),"dataset"!==e&&i.indexOf(t,"dataset")<=0&&t.unshift("dataset");return t})),t.default=d},function(e,t,n){"use strict";n.r(t),n.d(t,"normalizeSelection",(function(){return o})),n.d(t,"isSeparator",(function(){return s})),n.d(t,"hasSubMenu",(function(){return l})),n.d(t,"isDisabled",(function(){return u})),n.d(t,"isSelectionDisabled",(function(){return c})),n.d(t,"getValidSelection",(function(){return d})),n.d(t,"prepareVerticalAlignClass",(function(){return h})),n.d(t,"prepareHorizontalAlignClass",(function(){return f})),n.d(t,"getAlignmentClasses",(function(){return p})),n.d(t,"align",(function(){return m})),n.d(t,"checkSelectionConsistency",(function(){return v})),n.d(t,"markLabelAsSelected",(function(){return _})),n.d(t,"isItemHidden",(function(){return y})),n.d(t,"filterSeparators",(function(){return E}));n(81),n(64),n(571),n(117),n(205),n(102),n(160);var r=n(2),i=n(1),a=n(276);function o(e){return Object(r.arrayMap)(e,(function(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}))}function s(e){return Object(i.hasClass)(e,"htSeparator")}function l(e){return Object(i.hasClass)(e,"htSubmenu")}function u(e){return Object(i.hasClass)(e,"htDisabled")}function c(e){return Object(i.hasClass)(e,"htSelectionDisabled")}function d(e){var t=e.getSelected();return t?t[0]<0?null:t:null}function h(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","");return"".concat(n," ").concat(t)}function f(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","");return"".concat(n," ").concat(t)}function p(e,t){var n={};return Object(r.arrayEach)(e,(function(e){for(var r=e.from,i=e.to,a=r.row;a<=i.row;a++)for(var o=r.col;o<=i.col;o++)n[a]||(n[a]=[]),n[a][o]=t(a,o)})),n}function m(e,t,n,i,a){Object(r.arrayEach)(e,(function(e){var r=e.from,o=e.to;if(r.row===o.row&&r.col===o.col)g(r.row,r.col,t,n,i,a);else for(var s=r.row;s<=o.row;s++)for(var l=r.col;l<=o.col;l++)g(s,l,t,n,i,a)}))}function g(e,t,n,r,i,a){var o=i(e,t),s=r;o.className&&(s="vertical"===n?h(o.className,r):f(o.className,r)),a(e,t,"className",s)}function v(e,t){var n=!1;return Array.isArray(e)&&Object(r.arrayEach)(e,(function(e){return e.forAll((function(e,r){if(t(e,r))return n=!0,!1})),n})),n}function _(e){return''.concat(String.fromCharCode(10003),"").concat(e)}function y(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}function b(e,t){for(var n=e.slice(0);00?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.KEY,n=e.slice(0);return n=w(n=S(n=b(n,t),t))}},function(e,t,n){"use strict";n.r(t),n.d(t,"ONE_SECOND",(function(){return s})),n.d(t,"ONE_MINUTE",(function(){return l})),n.d(t,"ONE_HOUR",(function(){return u})),n.d(t,"ONE_DAY",(function(){return c})),n.d(t,"ONE_YEAR",(function(){return d})),n.d(t,"defaultLeveledFormatter",(function(){return h})),n.d(t,"fullLeveledFormatter",(function(){return f})),n.d(t,"primaryTimeUnits",(function(){return p})),n.d(t,"timeUnits",(function(){return m})),n.d(t,"pad",(function(){return g})),n.d(t,"getPrimaryTimeUnit",(function(){return v})),n.d(t,"isPrimaryTimeUnit",(function(){return _})),n.d(t,"getDefaultFormatPrecisionOfInterval",(function(){return y})),n.d(t,"format",(function(){return b})),n.d(t,"leveledFormat",(function(){return S})),n.d(t,"getUnitFromValue",(function(){return w})),n.d(t,"getUnitValue",(function(){return E})),n.d(t,"fullYearGetterName",(function(){return C})),n.d(t,"monthGetterName",(function(){return T})),n.d(t,"dateGetterName",(function(){return O})),n.d(t,"hoursGetterName",(function(){return x})),n.d(t,"minutesGetterName",(function(){return M})),n.d(t,"secondsGetterName",(function(){return k})),n.d(t,"millisecondsGetterName",(function(){return A})),n.d(t,"fullYearSetterName",(function(){return D})),n.d(t,"monthSetterName",(function(){return R})),n.d(t,"dateSetterName",(function(){return L})),n.d(t,"hoursSetterName",(function(){return I})),n.d(t,"minutesSetterName",(function(){return N})),n.d(t,"secondsSetterName",(function(){return P})),n.d(t,"millisecondsSetterName",(function(){return j}));var r=n(0),i=n(5),a=n(299),o=n(71),s=1e3,l=60*s,u=60*l,c=24*u,d=365*c,h={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}"},f={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+h.hour,minute:"{yyyy}-{MM}-{dd} "+h.minute,second:"{yyyy}-{MM}-{dd} "+h.second,millisecond:h.none},p=["year","month","day","hour","minute","second","millisecond"],m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function g(e,t){return"0000".substr(0,t-(e+="").length)+e}function v(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function _(e){return e===v(e)}function y(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function b(e,t,n,r){var s=i.parseDate(e),l=s[C(n)](),u=s[T(n)]()+1,c=Math.floor((u-1)/4)+1,d=s[O(n)](),h=s["get"+(n?"UTC":"")+"Day"](),f=s[x(n)](),p=(f-1)%12+1,m=s[M(n)](),v=s[k(n)](),_=s[A(n)](),y=(r instanceof o.default?r:Object(a.getLocaleModel)(r||a.SYSTEM_LANG)||Object(a.getDefaultLocaleModel)()).getModel("time"),b=y.get("month"),S=y.get("monthAbbr"),w=y.get("dayOfWeek"),E=y.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,l%100+"").replace(/{Q}/g,c+"").replace(/{MMMM}/g,b[u-1]).replace(/{MMM}/g,S[u-1]).replace(/{MM}/g,g(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,g(d,2)).replace(/{d}/g,d+"").replace(/{eeee}/g,w[h]).replace(/{ee}/g,E[h]).replace(/{e}/g,h+"").replace(/{HH}/g,g(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,g(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,g(m,2)).replace(/{m}/g,m+"").replace(/{ss}/g,g(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,g(_,3)).replace(/{S}/g,_+"")}function S(e,t,n,i,a){var o=null;if("string"==typeof n)o=n;else if("function"==typeof n)o=n(e.value,t,{level:e.level});else{var s=r.extend({},h);if(e.level>0)for(var l=0;l=0;--l)if(u[c]){o=u[c];break}o=o||s.none}if(r.isArray(o)){var d=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[d=Math.min(d,o.length-1)]}}return b(new Date(e.value),o,a,i)}function w(e,t){var n=i.parseDate(e),r=n[T(t)]()+1,a=n[O(t)](),o=n[x(t)](),s=n[M(t)](),l=n[k(t)](),u=0===n[A(t)](),c=u&&0===l,d=c&&0===s,h=d&&0===o,f=h&&1===a;return f&&1===r?"year":f?"month":h?"day":d?"hour":c?"minute":u?"second":"millisecond"}function E(e,t,n){var r="number"==typeof e?i.parseDate(e):e;switch(t=t||w(e,n)){case"year":return r[C(n)]();case"half-year":return r[T(n)]()>=6?1:0;case"quarter":return Math.floor((r[T(n)]()+1)/4);case"month":return r[T(n)]();case"day":return r[O(n)]();case"half-day":return r[x(n)]()/24;case"hour":return r[x(n)]();case"minute":return r[M(n)]();case"second":return r[k(n)]();case"millisecond":return r[A(n)]()}}function C(e){return e?"getUTCFullYear":"getFullYear"}function T(e){return e?"getUTCMonth":"getMonth"}function O(e){return e?"getUTCDate":"getDate"}function x(e){return e?"getUTCHours":"getHours"}function M(e){return e?"getUTCMinutes":"getMinutes"}function k(e){return e?"getUTCSeconds":"getSeconds"}function A(e){return e?"getUTCSeconds":"getSeconds"}function D(e){return e?"setUTCFullYear":"setFullYear"}function R(e){return e?"setUTCMonth":"setMonth"}function L(e){return e?"setUTCDate":"setDate"}function I(e){return e?"setUTCHours":"setHours"}function N(e){return e?"setUTCMinutes":"setMinutes"}function P(e){return e?"setUTCSeconds":"setSeconds"}function j(e){return e?"setUTCSeconds":"setSeconds"}},function(e,t,n){"use strict";n.r(t),n.d(t,"getListenersCounter",(function(){return h}));n(128);var r=n(1),i=n(3),a=n(114),o=n(30);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;s(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}var t,n,r;return t=e,(n=[{key:"addEventListener",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.context;function s(e){n.call(this,d(o,e))}return"boolean"==typeof i||Object(a.isPassiveEventSupported)()||(i=!1),this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:s,options:i,eventManager:this}),e.addEventListener(t,s,i),u+=1,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=this.context.eventListeners.length;a;)if(a-=1,(r=this.context.eventListeners[a]).event===t&&r.element===e){if(n&&n!==r.callback)continue;if(i&&r.eventManager!==this)continue;this.context.eventListeners.splice(a,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),u-=1}}},{key:"clearEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.context)for(var t=this.context.eventListeners.length;t;){t-=1;var n=this.context.eventListeners[t];n&&this.removeEventListener(n.element,n.event,n.callback,e)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0),this.context=null}},{key:"fireEvent",value:function(e,t){var n=e.document,r=e;n||(r=(n=e.ownerDocument?e.ownerDocument:e).defaultView);var i,a={bubbles:!0,cancelable:"mousemove"!==t,view:r,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};n.createEvent?(i=n.createEvent("MouseEvents")).initMouseEvent(t,a.bubbles,a.cancelable,a.view,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget||n.body.parentNode):i=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on".concat(t),i)}}])&&l(t.prototype,n),r&&l(t,r),e}();function d(e,t){var n,s,l,u,d;t.isTargetWebComponent=!1,t.realTarget=t.target;var h=t.stopImmediatePropagation;if(t.stopImmediatePropagation=function(){h.apply(this),Object(o.stopImmediatePropagation)(this)},!c.isHotTableEnv)return t;for(d=(t=Object(r.polymerWrap)(t)).path?t.path.length:0;d;){if(d-=1,"HOT-TABLE"===t.path[d].nodeName)n=!0;else if(n&&t.path[d].shadowRoot){u=t.path[d];break}0!==d||u||(u=t.path[d])}return u||(u=t.target),t.isTargetWebComponent=!0,Object(a.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:(Object(i.hasOwnProperty)(e,"hot")||e.isHotTableEnv||e.wtTable)&&(Object(i.hasOwnProperty)(e,"hot")?s=e.hot?e.hot.view.wt.wtTable.TABLE:null:e.isHotTableEnv?s=e.view.activeWt.wtTable.TABLE.parentNode.parentNode:e.wtTable&&(s=e.wtTable.TABLE.parentNode.parentNode),l=Object(r.closest)(t.target,["HOT-TABLE"],s),t.realTarget=l&&s.querySelector("HOT-TABLE")||t.target),Object.defineProperty(t,"target",{get:function(){return Object(r.polymerWrap)(u)},enumerable:!0,configurable:!0}),t}function h(){return u}t.default=c},function(e,t,n){"use strict";n.r(t),n.d(t,"log",(function(){return i})),n.d(t,"warn",(function(){return a})),n.d(t,"error",(function(){return o})),n.d(t,"deprecateLog",(function(){return s})),n.d(t,"deprecateReplaceLog",(function(){return l})),n.d(t,"consoleLog",(function(){return u})),n.d(t,"makePrintable",(function(){return c})),n.d(t,"throwError",(function(){return d}));var r="undefined"!=typeof console&&console.warn&&console.log;function i(e){r&&console.log("[ECharts] "+e)}function a(e){r&&console.warn("[ECharts] "+e)}function o(e){r&&console.error("[ECharts] "+e)}function s(e){0}function l(e,t,n){0}function u(){for(var e=[],t=0;t-1e-8&&e<1e-8}function d(e){return e>1e-8||e<-1e-8}function h(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function f(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function p(e,t,n,r,s,l){var u=r+3*(t-n)-e,d=3*(n-2*t+e),h=3*(t-e),f=e-s,p=d*d-3*u*h,m=d*h-9*u*f,g=h*h-3*d*f,v=0;if(c(p)&&c(m)){if(c(d))l[0]=0;else(M=-h/d)>=0&&M<=1&&(l[v++]=M)}else{var _=m*m-4*p*g;if(c(_)){var y=m/p,b=-y/2;(M=-d/u+y)>=0&&M<=1&&(l[v++]=M),b>=0&&b<=1&&(l[v++]=b)}else if(_>0){var S=a(_),w=p*d+1.5*u*(-m+S),E=p*d+1.5*u*(-m-S);(M=(-d-((w=w<0?-i(-w,1/3):i(w,1/3))+(E=E<0?-i(-E,1/3):i(E,1/3))))/(3*u))>=0&&M<=1&&(l[v++]=M)}else{var C=(2*p*d-3*u*m)/(2*a(p*p*p)),T=Math.acos(C)/3,O=a(p),x=Math.cos(T),M=(-d-2*O*x)/(3*u),k=(b=(-d+O*(x+o*Math.sin(T)))/(3*u),(-d+O*(x-o*Math.sin(T)))/(3*u));M>=0&&M<=1&&(l[v++]=M),b>=0&&b<=1&&(l[v++]=b),k>=0&&k<=1&&(l[v++]=k)}}return v}function m(e,t,n,r,i){var o=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,u=0;if(c(s)){if(d(o))(f=-l/o)>=0&&f<=1&&(i[u++]=f)}else{var h=o*o-4*s*l;if(c(h))i[0]=-o/(2*s);else if(h>0){var f,p=a(h),m=(-o-p)/(2*s);(f=(-o+p)/(2*s))>=0&&f<=1&&(i[u++]=f),m>=0&&m<=1&&(i[u++]=m)}}return u}function g(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-o)*i+o,c=(l-s)*i+s,d=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=r}function v(e,t,n,i,o,c,d,f,p,m,g){var v,_,y,b,S,w=.005,E=1/0;s[0]=p,s[1]=m;for(var C=0;C<1;C+=.05)l[0]=h(e,n,o,d,C),l[1]=h(t,i,c,f,C),(b=Object(r.distSquare)(s,l))=0&&b=0&&f<=1&&(i[u++]=f)}else{var h=s*s-4*o*l;if(c(h))(f=-s/(2*o))>=0&&f<=1&&(i[u++]=f);else if(h>0){var f,p=a(h),m=(-s-p)/(2*o);(f=(-s+p)/(2*o))>=0&&f<=1&&(i[u++]=f),m>=0&&m<=1&&(i[u++]=m)}}return u}function w(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function E(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function C(e,t,n,i,o,c,d,h,f){var p,m=.005,g=1/0;s[0]=d,s[1]=h;for(var v=0;v<1;v+=.05){l[0]=y(e,n,o,v),l[1]=y(t,i,c,v),(w=Object(r.distSquare)(s,l))=0&&w({dom:"",width:0,height:0,debounceInitWHFun:"",domObserver:""}),methods:{async autoResizeMixinInit(){const{initWH:e,getDebounceInitWHFun:t,bindDomResizeCallback:n,afterAutoResizeMixinInit:r}=this;await e(!1),t(),n(),"function"==typeof r&&r()},initWH(e=!0){const{$nextTick:t,$refs:n,ref:r,onResize:i}=this;return new Promise(a=>{t(t=>{const o=this.dom=n[r];this.width=o?o.clientWidth:0,this.height=o?o.clientHeight:0,o?this.width&&this.height||console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),"function"==typeof i&&e&&i(),a()})})},getDebounceInitWHFun(){const{initWH:e}=this;this.debounceInitWHFun=Object(r.debounce)(100,e)},bindDomResizeCallback(){const{dom:e,debounceInitWHFun:t}=this;this.domObserver=Object(r.observerDomResize)(e,t),window.addEventListener("resize",t)},unbindDomResizeCallback(){let{domObserver:e,debounceInitWHFun:t}=this;e&&(e.disconnect(),e.takeRecords(),e=null,window.removeEventListener("resize",t))}},mounted(){const{autoResizeMixinInit:e}=this;e()},beforeDestroy(){const{unbindDomResizeCallback:e}=this;e()}}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return h})),n.d(t,"__exportStar",(function(){return f})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__await",(function(){return _})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return S})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return T})),n.d(t,"__classPrivateFieldGet",(function(){return O})),n.d(t,"__classPrivateFieldSet",(function(){return x})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof _?Promise.resolve(n.value.v).then(l,u):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&h(t,e,n);return E(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function x(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.r(t);var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.canvasSupported=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(i.worker=!0,i.canvasSupported=!0):"undefined"==typeof navigator?(i.node=!0,i.canvasSupported=!0,i.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18);o&&(n.weChat=!0);t.canvasSupported=!!document.createElement("canvas").getContext,t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document}(navigator.userAgent,i),t.default=i},function(e,t,n){"use strict";n.r(t),n.d(t,"use",(function(){return h}));var r=n(134),i=n(74),a=n(65),o=n(50),s=n(70),l=n(0),u=n(367),c=[],d={registerPreprocessor:r.registerPreprocessor,registerProcessor:r.registerProcessor,registerPostInit:r.registerPostInit,registerPostUpdate:r.registerPostUpdate,registerAction:r.registerAction,registerCoordinateSystem:r.registerCoordinateSystem,registerLayout:r.registerLayout,registerVisual:r.registerVisual,registerTransform:r.registerTransform,registerLoading:r.registerLoading,registerMap:r.registerMap,PRIORITY:r.PRIORITY,ComponentModel:o.default,ComponentView:i.default,SeriesModel:s.default,ChartView:a.default,registerComponentModel:function(e){o.default.registerClass(e)},registerComponentView:function(e){i.default.registerClass(e)},registerSeriesModel:function(e){s.default.registerClass(e)},registerChartView:function(e){a.default.registerClass(e)},registerSubTypeDefaulter:function(e,t){o.default.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Object(u.registerPainter)(e,t)}};function h(e){Object(l.isArray)(e)?Object(l.each)(e,(function(e){h(e)})):Object(l.indexOf)(c,e)>=0||(c.push(e),Object(l.isFunction)(e)&&(e={install:e}),e.install(d))}},function(e,t,n){"use strict";n.r(t),n.d(t,"warning",(function(){return l})),n.d(t,"format",(function(){return u})),n.d(t,"isEmptyValue",(function(){return c})),n.d(t,"isEmptyObject",(function(){return d})),n.d(t,"asyncMap",(function(){return f})),n.d(t,"complementError",(function(){return p})),n.d(t,"deepMerge",(function(){return m}));var r=n(381),i=n.n(r),a=n(235),o=n.n(a),s=/%[sdj%]/g,l=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n=a)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(e){return"[Circular]"}break;default:return e}})),l=t[r];r=0?parseFloat(e)/100*t:parseFloat(e):e}function b(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=y(r[0],n.width),u+=y(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+o,u+=s,d="middle";break;case"top":l+=o/2,u-=i,c="center",d="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=o-i,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,d="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}},function(e,t,n){"use strict";var r=n(80),i=n(816).indexOf,a=n(319),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0,l=a("indexOf");r({target:"Array",proto:!0,forced:s||!l},{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(47),a=n(108),o=n(124),s=n(7),l=n(10),u=n(334),c=n(227),d=s.makeInner(),h=Object(c.default)(),f=function(){function e(){this.group=new i.default,this.uid=a.getUID("viewChart"),this.renderTask=Object(u.createTask)({plan:g,reset:v}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){m(e.getData(),r,"emphasis")},e.prototype.downplay=function(e,t,n,r){m(e.getData(),r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.markUpdateMethod=function(e,t){d(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function p(e,t,n){e&&("emphasis"===t?l.enterEmphasis:l.leaveEmphasis)(e,n)}function m(e,t,n){var i=s.queryDataIndex(e,t),a=t&&null!=t.highlightKey?Object(l.getHighlightDigit)(t.highlightKey):null;null!=i?Object(r.each)(s.normalizeToArray(i),(function(t){p(e.getItemGraphicEl(t),n,a)})):e.eachItemGraphicEl((function(e){p(e,n,a)}))}function g(e){return h(e.model)}function v(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&d(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),_[l]}o.enableClassExtend(f,["dispose"]),o.enableClassManagement(f);var _={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};t.default=f},function(e,t,n){"use strict";n.r(t);var r=n(413);n.d(t,"registerRootComparator",(function(){return r.registerRootComparator})),n.d(t,"getRootComparator",(function(){return r.getRootComparator})),n.d(t,"getCompareFunctionFactory",(function(){return r.getCompareFunctionFactory}));var i=n(475);n.d(t,"FIRST_AFTER_SECOND",(function(){return i.FIRST_AFTER_SECOND})),n.d(t,"FIRST_BEFORE_SECOND",(function(){return i.FIRST_BEFORE_SECOND})),n.d(t,"DO_NOT_SWAP",(function(){return i.DO_NOT_SWAP})),n.d(t,"sort",(function(){return i.sort}))},function(e,t,n){"use strict";n.r(t);n(64);var r=n(1),i=n(3),a=n(2),o=n(104),s=n(53),l=n(490);function u(e,t){for(var n=0;n=this.wot.getSetting("totalRows")-this.wot.getSetting("fixedRowsBottom"),l={left:this.clone.wtTable.spreader.offsetLeft,top:this.clone.wtTable.spreader.offsetTop},u={left:e.offsetLeft,top:e.offsetTop};return r?this.getRelativeCellPositionWithinWindow(a,i,u,l):this.getRelativeCellPositionWithinHolder(a,s,i,u,l)}Object(o.warn)("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,r){var i=this.wot.wtTable.wtRootElement.getBoundingClientRect(),a=0,o=0;(a=t?i.left<=0?-1*i.left:0:r.left,e)?o=this.clone.wtTable.TABLE.getBoundingClientRect().top-i.top:o=r.top;return{left:n.left+a,top:n.top+o}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,r,i){var a=this.clone.cloneSource.wtOverlays.leftOverlay.getScrollPosition(),o=this.clone.cloneSource.wtOverlays.topOverlay.getScrollPosition(),s=0,l=0;if(n||(s=a-i.left),t){var u=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+u.top}else e||(l=o-i.top);return{left:r.left-s,top:r.top-l}}},{key:"makeClone",value:function(t){if(-1===e.CLONE_TYPES.indexOf(t))throw new Error('Clone type "'.concat(t,'" is not supported.'));var n=this.wot,i=n.wtTable,a=n.rootDocument,o=n.rootWindow,s=a.createElement("DIV"),u=a.createElement("TABLE");s.className="ht_clone_".concat(t," handsontable"),s.style.position="absolute",s.style.top=0,s.style.left=0,s.style.overflow="hidden",u.className=i.TABLE.className,s.appendChild(u),this.type=t,i.wtRootElement.parentNode.appendChild(s);var c=this.wot.getSetting("preventOverflow");return!0===c||"horizontal"===c&&this.type===e.CLONE_TOP||"vertical"===c&&this.type===e.CLONE_LEFT?this.mainTableScrollableElement=o:"hidden"===o.getComputedStyle(i.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=i.holder:this.mainTableScrollableElement=Object(r.getScrollableElement)(i.TABLE),new l.default({cloneSource:this.wot,cloneOverlay:this,table:u})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider,n=e.style,r=t.style,i=e.parentNode.style;Object(a.arrayEach)([n,r,i],(function(e){e.width="",e.height=""}))}}},{key:"destroy",value:function(){new s.default(this.clone).destroy()}}]),e}();t.default=h},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(80),i=n(100),a=n(218),o=n(290).f,s=n(174),l=i((function(){o(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(0),a=n(60),o=n(7),s=n(50),l=n(280),u=n(300),c=n(38),d=n(334),h=n(124),f=n(447),p=n(744),m=o.makeInner();function g(e,t){return e.getName(t)||e.getId(t)}var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return Object(r.__extends)(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(d.createTask)({count:y,reset:b}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(m(this).sourceManager=new f.SourceManager(this)).prepareSource();var r=this.getInitialData(e,n);w(r,this),this.dataTask.context.data=r,m(this).dataBeforeProcessed=r,_(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(c.fetchLayoutMode)(this),r=n?Object(c.getLayoutParams)(e):{},a=this.subType;s.default.hasClass(a)&&(a+="Series"),i.merge(e,t.getTheme().get(this.subType)),i.merge(e,this.getDefaultOption()),o.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Object(c.mergeLayoutParam)(e,r,n)},t.prototype.mergeOption=function(e,t){e=i.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Object(c.fetchLayoutMode)(this);n&&Object(c.mergeLayoutParam)(this.option,e,n);var r=m(this).sourceManager;r.dirty(),r.prepareSource();var a=this.getInitialData(e,t);w(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,m(this).dataBeforeProcessed=a,_(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!i.isTypedArray(e))for(var t=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=l.PaletteMixin.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n)for(var r=this.getData(t),i=0;i=0&&n.push(a)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;return n&&n[g(this.getData(t),e)]||!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option.selectedMode,a=t.length;if(i&&a)if("multiple"===i)for(var o=this.option.selectedMap||(this.option.selectedMap={}),s=0;s0&&this._innerSelect(e,t)}},t.registerClass=function(e){return s.default.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.useColorPaletteOnData=!1,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(s.default);function _(e){var t=e.name;o.isNameSpecified(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return i.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}(e)||t)}function y(e){return e.model.getRawData().count()}function b(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),S}function S(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function w(e,t){i.each(Object(r.__spreadArrays)(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,i.curry(E,t))}))}function E(e,t){var n=C(e);return n&&n.setOutputEnd((t||this).count()),t}function C(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}i.mixin(v,u.DataFormatMixin),i.mixin(v,l.PaletteMixin),Object(h.mountExtend)(v,s.default),t.default=v},function(e,t,n){"use strict";n.r(t);var r=n(60),i=n(124),a=n(1587),o=n(1588),s=n(734),l=n(735),u=n(0),c=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i1?"."+t[1]:"")}function u(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}n.d(t,"getTextRect",(function(){return s.getTextRect}));var c=r.normalizeCssArray,d=/([&<>"'])/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"};function f(e){return null==e?"":(e+"").replace(d,(function(e,t){return h[t]}))}function p(e,t,n){function o(e){return e&&r.trim(e)?e:"-"}function s(e){return!(null==e||isNaN(e)||!isFinite(e))}var u="time"===t,c=e instanceof Date;if(u||c){var d=u?Object(i.parseDate)(e):e;if(!isNaN(+d))return Object(a.format)(d,"yyyy-MM-dd hh:mm:ss",n);if(c)return"-"}if("ordinal"===t)return r.isStringSafe(e)?o(e):r.isNumber(e)&&s(e)?e+"":"-";var h=Object(i.numericToNumber)(e);return s(h)?l(h):r.isStringSafe(e)?o(e):"-"}var m=["a","b","c","d","e","f","g"],g=function(e,t){return"{"+e+(null==t?"":t)+"}"};function v(e,t,n){r.isArray(t)||(t=[t]);var i=t.length;if(!i)return"";for(var a=t[0].$vars||[],o=0;o':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function b(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=Object(i.parseDate)(t),o=n?"UTC":"",s=r["get"+o+"FullYear"](),l=r["get"+o+"Month"]()+1,u=r["get"+o+"Date"](),c=r["get"+o+"Hours"](),d=r["get"+o+"Minutes"](),h=r["get"+o+"Seconds"](),f=r["get"+o+"Milliseconds"]();return e=e.replace("MM",Object(a.pad)(l,2)).replace("M",l).replace("yyyy",s).replace("yy",s%100+"").replace("dd",Object(a.pad)(u,2)).replace("d",u).replace("hh",Object(a.pad)(c,2)).replace("h",c).replace("mm",Object(a.pad)(d,2)).replace("m",d).replace("ss",Object(a.pad)(h,2)).replace("s",h).replace("SSS",Object(a.pad)(f,3))}function S(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function w(e,t){return t=t||"transparent",r.isString(e)?e:r.isObject(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function E(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}},function(e,t,n){"use strict";n.r(t);var r=n(47),i=n(108),a=n(124),o=function(){function e(){this.group=new r.default,this.uid=i.getUID("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.blurSeries=function(e,t){},e}();a.enableClassExtend(o),a.enableClassManagement(o),t.default=o},function(e,t,n){"use strict";n.r(t);var r=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}();t.default=r},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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";n.r(t);var r=n(788),i=n(1923),a=n(1924),o=n(1925),s=n(1926),l=n(1927);t.default={required:r.default,whitespace:i.default,type:a.default,range:o.default,enum:s.default,pattern:l.default}},function(e,t,n){"use strict";n.r(t),n.d(t,"parse",(function(){return g})),n.d(t,"lift",(function(){return _})),n.d(t,"toHex",(function(){return y})),n.d(t,"fastLerp",(function(){return b})),n.d(t,"fastMapToColor",(function(){return S})),n.d(t,"lerp",(function(){return w})),n.d(t,"mapToColor",(function(){return E})),n.d(t,"modifyHSL",(function(){return C})),n.d(t,"modifyAlpha",(function(){return T})),n.d(t,"stringify",(function(){return O})),n.d(t,"lum",(function(){return x})),n.d(t,"random",(function(){return M}));var r=n(226),i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(e){return(e=Math.round(e))<0?0:e>255?255:e}function o(e){return e<0?0:e>1?1:e}function s(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function l(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100):o(parseFloat(t))}function u(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){return e+(t-e)*n}function d(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var f=new r.default(20),p=null;function m(e,t){p&&h(p,t),p=f.put(e,p||t.slice())}function g(e,t){if(e){t=t||[];var n=f.get(e);if(n)return h(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in i)return h(t,i[r]),m(e,t),t;var a,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(a=parseInt(r.slice(1,4),16))>=0&&a<=4095?(d(t,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===o?parseInt(r.slice(4),16)/15:1),m(e,t),t):void d(t,0,0,0,1):7===o||9===o?(a=parseInt(r.slice(1,7),16))>=0&&a<=16777215?(d(t,(16711680&a)>>16,(65280&a)>>8,255&a,9===o?parseInt(r.slice(7),16)/255:1),m(e,t),t):void d(t,0,0,0,1):void 0;var u=r.indexOf("("),c=r.indexOf(")");if(-1!==u&&c+1===o){var p=r.substr(0,u),g=r.substr(u+1,c-(u+1)).split(","),_=1;switch(p){case"rgba":if(4!==g.length)return 3===g.length?d(t,+g[0],+g[1],+g[2],1):d(t,0,0,0,1);_=l(g.pop());case"rgb":return 3!==g.length?void d(t,0,0,0,1):(d(t,s(g[0]),s(g[1]),s(g[2]),_),m(e,t),t);case"hsla":return 4!==g.length?void d(t,0,0,0,1):(g[3]=l(g[3]),v(g,t),m(e,t),t);case"hsl":return 3!==g.length?void d(t,0,0,0,1):(v(g,t),m(e,t),t);default:return}}d(t,0,0,0,1)}}function v(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=l(e[1]),i=l(e[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return d(t=t||[],a(255*u(s,o,n+1/3)),a(255*u(s,o,n)),a(255*u(s,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e,t){var n=g(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return O(n,4===n.length?"rgba":"rgb")}}function y(e){var t=g(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function b(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),s=Math.ceil(r),l=t[i],u=t[s],d=r-i;return n[0]=a(c(l[0],u[0],d)),n[1]=a(c(l[1],u[1],d)),n[2]=a(c(l[2],u[2],d)),n[3]=o(c(l[3],u[3],d)),n}}var S=b;function w(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),s=Math.ceil(r),l=g(t[i]),u=g(t[s]),d=r-i,h=O([a(c(l[0],u[0],d)),a(c(l[1],u[1],d)),a(c(l[2],u[2],d)),o(c(l[3],u[3],d))],"rgba");return n?{color:h,leftIndex:i,rightIndex:s,value:r}:h}}var E=w;function C(e,t,n,r){var i,a=g(e);if(e)return a=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o,u=(s+o)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,h=((s-a)/6+l/2)/l;r===s?t=h-d:i===s?t=1/3+c-h:a===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,u];return null!=e[3]&&f.push(e[3]),f}}(a),null!=t&&(a[0]=(i=t,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(a[1]=l(n)),null!=r&&(a[2]=l(r)),O(v(a),"rgba")}function T(e,t){var n=g(e);if(n&&null!=t)return n[3]=o(t),O(n,"rgba")}function O(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function x(e,t){var n=g(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function M(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}},function(e,t,n){"use strict";n.r(t);var r=n(59),i=n(49),a=n(1591),o=n(333),s=function(){this.x=0,this.y=0,this.width=0,this.height=0},l={},u=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var u=Object(o.subPixelOptimizeRect)(l,t,this.style);n=u.x,r=u.y,i=u.width,s=u.height,u.r=t.r,t=u}else n=t.x,r=t.y,i=t.width,s=t.height;t.r?a.buildPath(e,t):e.rect(n,r,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(i.default);u.prototype.type="rect",t.default=u},function(e,t,n){var r=n(132),i=n(290).f,a=n(256),o=n(257),s=n(813),l=n(1072),u=n(559);e.exports=function(e,t){var n,c,d,h,f,p=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(h=t[c],d=e.noTargetGet?(f=i(n,c))&&f.value:n[c],!u(m?c:p+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&a(h,"sham",!0),o(n,c,h,e)}}},function(e,t,n){"use strict";var r=n(80),i=n(100),a=n(469),o=n(140),s=n(202),l=n(176),u=n(470),c=n(829),d=n(471),h=n(136),f=n(560),p=h("isConcatSpreadable"),m=f>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),g=d("concat"),v=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!m||!g},{concat:function(e){var t,n,r,i,a,o=s(this),d=c(o,0),h=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(d,h++,a)}return d.length=h,d}})},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_TEXT_ANIMATION_PROPS",(function(){return p})),n.d(t,"normalizeTextStyle",(function(){return _}));var r=n(59),i=n(491),a=n(245),o=n(0),s=n(63),l=n(109),u=n(79),c=n(44),d=n(46),h=n(138),f={fill:"#000"},p={style:Object(o.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h.DEFAULT_COMMON_ANIMATION_PROPS.style)},m=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=f,n.attr(t),n}return Object(r.__extends)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,I=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),N=o.calculatedLineHeight,P=0;P=0&&"right"===(R=C[D]).align;)this._placeToken(R,e,O,v,A,"right",y),x-=R.width,A-=R.width,D--;for(k+=(r-(k-g)-(_-A)-x)/2;M<=D;)R=C[M],this._placeToken(R,e,O,v,k+R.width/2,"center",y),k+=R.width,M++;v+=O}},t.prototype._placeToken=function(e,t,n,r,i,l,u){var d=t.rich[e.styleName]||{};d.text=e.text;var h=e.verticalAlign,f=r+n/2;"top"===h?f=r+e.height/2:"bottom"===h&&(f=r+n-e.height/2),!e.isLineHolder&&E(d)&&this._renderBackground(d,t,"right"===l?i-e.width:"center"===l?i-e.width/2:i,f-e.height/2,e.width,e.height);var p=!!d.backgroundColor,m=e.textPadding;m&&(i=S(i,l,m),f-=e.height/2-m[0]-e.innerHeight/2);var g=this._getOrCreateChild(a.default),v=g.createStyle();g.useStyle(v);var _=this._defaultStyle,y=!1,w=0,C=b("fill"in d?d.fill:"fill"in t?t.fill:(y=!0,_.fill)),T=b("stroke"in d?d.stroke:"stroke"in t?t.stroke:p||u||_.autoStroke&&!y?null:(w=2,_.stroke)),O=d.textShadowBlur>0||t.textShadowBlur>0;v.text=e.text,v.x=i,v.y=f,O&&(v.shadowBlur=d.textShadowBlur||t.textShadowBlur||0,v.shadowColor=d.textShadowColor||t.textShadowColor||"transparent",v.shadowOffsetX=d.textShadowOffsetX||t.textShadowOffsetX||0,v.shadowOffsetY=d.textShadowOffsetY||t.textShadowOffsetY||0),v.textAlign=l,v.textBaseline="middle",v.font=e.font||s.DEFAULT_FONT,v.opacity=Object(o.retrieve3)(d.opacity,t.opacity,1),T&&(v.lineWidth=Object(o.retrieve3)(d.lineWidth,t.lineWidth,w),v.lineDash=Object(o.retrieve2)(d.lineDash,t.lineDash),v.lineDashOffset=t.lineDashOffset||0,v.stroke=T),C&&(v.fill=C);var x=e.contentWidth,M=e.contentHeight;g.setBoundingRect(new c.default(Object(s.adjustTextX)(v.x,x,v.textAlign),Object(s.adjustTextY)(v.y,M,v.textBaseline),x,M))},t.prototype._renderBackground=function(e,t,n,r,i,a){var s,c,d,h=e.backgroundColor,f=e.borderWidth,p=e.borderColor,m=Object(o.isString)(h),g=e.borderRadius,v=this;if(m||f&&p){(s=this._getOrCreateChild(u.default)).useStyle(s.createStyle()),s.style.fill=null;var _=s.shape;_.x=n,_.y=r,_.width=i,_.height=a,_.r=g,s.dirtyShape()}if(m)(d=s.style).fill=h||null,d.fillOpacity=Object(o.retrieve2)(e.fillOpacity,1);else if(h&&h.image){(c=this._getOrCreateChild(l.default)).onload=function(){v.dirtyStyle()};var y=c.style;y.image=h.image,y.x=n,y.y=r,y.width=i,y.height=a}f&&p&&((d=s.style).lineWidth=f,d.stroke=p,d.strokeOpacity=Object(o.retrieve2)(e.strokeOpacity,1),d.lineDash=e.borderDash,d.lineDashOffset=e.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(d.strokeFirst=!0,d.lineWidth*=2));var b=(s||c).style;b.shadowBlur=e.shadowBlur||0,b.shadowColor=e.shadowColor||"transparent",b.shadowOffsetX=e.shadowOffsetX||0,b.shadowOffsetY=e.shadowOffsetY||0,b.opacity=Object(o.retrieve3)(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";if(e.fontSize||e.fontFamily||e.fontWeight){var n="";n="string"!=typeof e.fontSize||-1===e.fontSize.indexOf("px")&&-1===e.fontSize.indexOf("rem")&&-1===e.fontSize.indexOf("em")?isNaN(+e.fontSize)?"12px":e.fontSize+"px":e.fontSize,t=[e.fontStyle,e.fontWeight,n,e.fontFamily||"sans-serif"].join(" ")}return t&&Object(o.trim)(t)||e.textFont||e.font},t}(h.default),g={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1};function _(e){return y(e),Object(o.each)(e.rich,y),e}function y(e){if(e){e.font=m.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||g[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||v[n]?n:"top",e.padding&&(e.padding=Object(o.normalizeCssArray)(e.padding))}}function b(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function S(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function w(e){var t=e.text;return null!=t&&(t+=""),t}function E(e){return!!(e.backgroundColor||e.borderWidth&&e.borderColor)}t.default=m},function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return o[e];var n,a=String(e);return(n=r[a.toLowerCase()])?n:(n=i[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var a;if(a=r[t.toLowerCase()])return a===n;if(a=i[t.toLowerCase()])return a===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91}; /*! * Programatically add the following */ for(a=97;a<123;a++)r[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)r[a-48]=a;for(a=1;a<13;a++)r["f"+a]=a+111;for(a=0;a<10;a++)r["numpad "+a]=a+96;var o=t.names=t.title={};for(a in r)o[r[a]]=a;for(var s in i)r[s]=i[s]},function(e,t,n){"use strict";n.r(t),n.d(t,"createTooltipMarkup",(function(){return c})),n.d(t,"buildTooltipMarkup",(function(){return f})),n.d(t,"retrieveVisualColorForTooltipMarker",(function(){return v})),n.d(t,"getPaddingFromTooltipModel",(function(){return _})),n.d(t,"TooltipMarkupStyleCreator",(function(){return y}));var r=n(73),i=n(0),a=n(195),o=n(5);function s(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+r+"px;color:"+n+";font-weight:"+i,valueStyle:"font-size:"+o+"px;color:"+a+";font-weight:"+s}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var l=[0,10,20,30],u=["","\n","\n\n","\n\n\n"];function c(e,t){return t.type=e,t}function d(e){return Object(i.hasOwn)(h,e.type)&&h[e.type]}var h={section:{planLayout:function(e){var t=e.blocks.length,n=t>1||t>0&&!e.noHeader,r=0;Object(i.each)(e.blocks,(function(e){d(e).planLayout(e);var t=e.__gapLevelBetweenSubBlocks;t>=r&&(r=t+(!n||t&&("section"!==e.type||e.noHeader)?0:1))})),e.__gapLevelBetweenSubBlocks=r},build:function(e,t,n,o){var l=t.noHeader,u=p(t),c=function(e,t,n,r){var o=[],s=t.blocks||[];Object(i.assert)(!s||Object(i.isArray)(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(i.hasOwn)(u,l)){var c=new a.SortOrderComparator(u[l],null);s.sort((function(e,t){return c.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}var h=p(t);if(Object(i.each)(s,(function(t,n){var i=d(t).build(e,t,n>0?h.html:0,r);null!=i&&o.push(i)})),!o.length)return;return"richText"===e.renderMode?o.join(h.richText):m(o.join(""),n)}(e,t,l?n:u.html,o);if(l)return c;var h=Object(r.makeValueReadable)(t.header,"ordinal",e.useUTC),f=s(o,e.renderMode).nameStyle;return"richText"===e.renderMode?g(e,h,f)+u.richText+c:m('
'+Object(r.encodeHTML)(h)+"
"+c,n)}},nameValue:{planLayout:function(e){e.__gapLevelBetweenSubBlocks=0},build:function(e,t,n,a){var o=e.renderMode,l=t.noName,u=t.noValue,c=!t.markerType,d=t.name,h=t.value,f=e.useUTC;if(!l||!u){var p=c?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),v=l?"":Object(r.makeValueReadable)(d,"ordinal",f),_=t.valueType,y=u?[]:Object(i.isArray)(h)?Object(i.map)(h,(function(e,t){return Object(r.makeValueReadable)(e,Object(i.isArray)(_)?_[t]:_,f)})):[Object(r.makeValueReadable)(h,Object(i.isArray)(_)?_[0]:_,f)],b=!c||!l,S=!c&&l,w=s(a,o),E=w.nameStyle,C=w.valueStyle;return"richText"===o?(c?"":p)+(l?"":g(e,v,E))+(u?"":function(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(t.join(" "),a)}(e,y,b,S,C)):m((c?"":p)+(l?"":function(e,t,n){return''+Object(r.encodeHTML)(e)+""}(v,!c,E))+(u?"":function(e,t,n,a){var o=n?"10px":"20px";return''+Object(i.map)(e,(function(e){return Object(r.encodeHTML)(e)})).join("  ")+""}(y,b,S,C)),n)}}}};function f(e,t,n,r,i,a){if(e){var o=d(e);o.planLayout(e);var s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t};return o.build(s,e,0,a)}}function p(e){var t=e.__gapLevelBetweenSubBlocks;return{html:l[t],richText:u[t]}}function m(e,t){return'
'+e+'
'}function g(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function v(e,t){var n=e.getData().getItemVisual(t,"style")[e.visualDrawType];return Object(r.convertToColorString)(n)}function _(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var y=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Object(o.getRandomIdBase)()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var a="richText"===n?this._generateStyleName():null,o=Object(r.getTooltipMarker)({color:t,type:e,renderMode:n,markerId:a});return Object(i.isString)(o)?o:(this.richTextStyles[a]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(i.isArray)(t)?Object(i.each)(t,(function(e){return Object(i.extend)(n,e)})):Object(i.extend)(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"getScaleExtent",(function(){return f})),n.d(t,"niceScaleExtent",(function(){return p})),n.d(t,"createScaleByModel",(function(){return m})),n.d(t,"ifAxisCrossZero",(function(){return g})),n.d(t,"makeLabelFormatter",(function(){return v})),n.d(t,"getAxisRawValue",(function(){return _})),n.d(t,"estimateLabelUnionRect",(function(){return y})),n.d(t,"getOptionCategoryInterval",(function(){return b})),n.d(t,"shouldShowAllLabels",(function(){return S})),n.d(t,"getDataDimensionsOnAxis",(function(){return w})),n.d(t,"unionAxisExtentFromData",(function(){return E}));var r=n(0),i=n(538),a=n(247),o=n(196),s=n(251),l=n(44),u=n(746),c=n(1608),d=n(137),h=n(370);function f(e,t){var n=e.type,i=Object(h.ensureScaleRawExtentInfo)(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var a=i.min,o=i.max,l=t.ecModel;if(l&&"time"===n){var u=Object(s.prepareLayoutBarSeries)("bar",l),c=!1;if(r.each(u,(function(e){c=c||e.getBaseAxis()===t.axis})),c){var d=Object(s.makeColumnLayout)(u),f=function(e,t,n,i){var a=n.axis.getExtent(),o=a[1]-a[0],l=Object(s.retrieveColumnLayout)(i,n.axis);if(void 0===l)return{min:e,max:t};var u=1/0;r.each(l,(function(e){u=Math.min(e.offset,u)}));var c=-1/0;r.each(l,(function(e){c=Math.max(e.offset+e.width,c)})),u=Math.abs(u),c=Math.abs(c);var d=u+c,h=t-e,f=h/(1-(u+c)/o)-h;return{min:e-=f*(u/d),max:t+=f*(c/d)}}(a,o,t,d);a=f.min,o=f.max}}return{extent:[a,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function p(e,t){var n=f(e,t),r=n.extent,i=t.get("splitNumber");e instanceof c.default&&(e.base=t.get("logBase"));var a=e.type;e.setExtent(r[0],r[1]),e.niceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===a||"time"===a?t.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?t.get("maxInterval"):null});var o=t.get("interval");null!=o&&e.setInterval&&e.setInterval(o)}function m(e,t){if(t=t||e.get("type"))switch(t){case"category":return new i.default({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new u.default({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(o.default.getClass(t)||a.default)}}function g(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function v(e){var t,n,r=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):"string"==typeof r?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(r):"function"==typeof r?(t=r,function(n,r){return null!=i&&(r=n.value-i),t(_(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function _(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function y(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,a,o=n.getExtent();a=n instanceof i.default?n.count():(r=n.getTicks()).length;var s,u,c,d,h,f,p,m,g=e.getLabelModel(),_=v(e),y=1;a>40&&(y=Math.ceil(a/40));for(var b=0;be[1]&&(e[1]=r[1])}))}},function(e,t,n){var r=n(106);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";n.r(t),function(e,n){ /*! * Vue.js v2.6.11 * (c) 2014-2019 Evan You * Released under the MIT License. */ var r=Object.freeze({});function i(e){return null==e}function a(e){return null!=e}function o(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function S(e,t){return b.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var E=/-(\w)/g,C=w((function(e){return e.replace(E,(function(e,t){return t?t.toUpperCase():""}))})),T=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),O=/\B([A-Z])/g,x=w((function(e){return e.replace(O,"-$1").toLowerCase()}));var M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function k(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function A(e,t){for(var n in t)e[n]=t[n];return e}function D(e){for(var t={},n=0;n0,J=X&&X.indexOf("edge/")>0,ee=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===K),te=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/)),ne={}.watch,re=!1;if($)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var ae=function(){return void 0===z&&(z=!$&&!q&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),z},oe=$&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var le,ue="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);le="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 ce=R,de=0,he=function(){this.id=de++,this.subs=[]};he.prototype.addSub=function(e){this.subs.push(e)},he.prototype.removeSub=function(e){y(this.subs,e)},he.prototype.depend=function(){he.target&&he.target.addDep(this)},he.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(a&&!S(i,"default"))o=!1;else if(""===o||o===x(e)){var l=We(String,i.type);(l<0||s0&&(ht((l=e(l,(n||"")+"_"+r))[0])&&ht(c)&&(d[u]=ye(c.text+l[0].text),l.shift()),d.push.apply(d,l)):s(l)?ht(c)?d[u]=ye(c.text+l):""!==l&&d.push(ye(l)):ht(l)&&ht(c)?d[u]=ye(c.text+l.text):(o(t._isVList)&&a(l.tag)&&i(l.key)&&a(n)&&(l.key="__vlist"+n+"_"+r+"__"),d.push(l)));return d}(e):void 0}function ht(e){return a(e)&&a(e.text)&&!1===e.isComment}function ft(e,t){if(e){for(var n=Object.create(null),r=ue?Reflect.ownKeys(e):Object.keys(e),i=0;i0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==r&&s===n.$key&&!a&&!n.$hasNormal)return n;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=vt(t,l,e[l]))}else i={};for(var u in t)u in i||(i[u]=_t(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),W(i,"$stable",o),W(i,"$key",s),W(i,"$hasNormal",a),i}function vt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:dt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function _t(e,t){return function(){return e[t]}}function yt(e,t){var n,r,i,o,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;rdocument.createEvent("Event").timeStamp&&(cn=function(){return dn.now()})}function hn(){var e,t;for(un=cn(),sn=!0,nn.sort((function(e,t){return e.id-t.id})),ln=0;lnln&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);on||(on=!0,rt(hn))}}(this)},pn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ve(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var mn={enumerable:!0,configurable:!0,get:R,set:R};function gn(e,t,n){mn.get=function(){return this[t][n]},mn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,mn)}function vn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&Te(!1);var a=function(a){i.push(a);var o=Ye(a,t,n,e);Me(r,a,o),a in e||gn(e,"_props",a)};for(var o in t)a(o);Te(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?R:M(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;c(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return Ve(e,t,"data()"),{}}finally{me()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var a=n[i];0,r&&S(r,a)||U(a)||gn(e,"_data",a)}xe(t,!0)}(e):xe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ae();for(var i in t){var a=t[i],o="function"==typeof a?a:a.get;0,r||(n[i]=new pn(e,o||R,R,_n)),i in e||yn(e,i,a)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function kn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=xn(o.componentOptions);s&&!t(s)&&An(n,a,r,i)}}}function An(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=En++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Be(Cn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Xt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=pt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ht(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ht(e,t,n,r,i,!0)};var a=n&&n.data;Me(e,"$attrs",a&&a.attrs||r,null,!0),Me(e,"$listeners",t._parentListeners||r,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&(Te(!1),Object.keys(t).forEach((function(n){Me(e,n,t[n])})),Te(!0))}(t),vn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Tn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ke,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){if(c(t))return wn(this,e,t,n);(n=n||{}).user=!0;var r=new pn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Ve(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(Tn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,a=e.length;i1?k(n):n;for(var r=k(arguments,1),i='event handler for "'+e+'"',a=0,o=n.length;aparseInt(this.max)&&An(o,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return Y}};Object.defineProperty(e,"config",t),e.util={warn:ce,extend:A,mergeOptions:Be,defineReactive:Me},e.set=ke,e.delete=Ae,e.nextTick=rt,e.observable=function(e){return xe(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,A(e.options.components,Rn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Be(this.options,e),this}}(e),On(e),function(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Tn),Object.defineProperty(Tn.prototype,"$isServer",{get:ae}),Object.defineProperty(Tn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Tn,"FunctionalRenderContext",{value:It}),Tn.version="2.6.11";var Ln=g("style,class"),In=g("input,textarea,option,select,progress"),Nn=function(e,t,n){return"value"===n&&In(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Pn=g("contenteditable,draggable,spellcheck"),jn=g("events,caret,typing,plaintext-only"),Bn=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Fn="http://www.w3.org/1999/xlink",Yn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Hn=function(e){return Yn(e)?e.slice(6,e.length):""},Un=function(e){return null==e||!1===e};function Wn(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Vn(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=Vn(t,n.data));return function(e,t){if(a(e)||a(t))return zn(e,Gn(t));return""}(t.staticClass,t.class)}function Vn(e,t){return{staticClass:zn(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function zn(e,t){return e?t?e+" "+t:e:t||""}function Gn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?vr(e,t,n):Bn(t)?Un(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Pn(t)?e.setAttribute(t,function(e,t){return Un(t)||"false"===t?"false":"contenteditable"===e&&jn(t)?t:"true"}(t,n)):Yn(t)?Un(n)?e.removeAttributeNS(Fn,Hn(t)):e.setAttributeNS(Fn,t,n):vr(e,t,n)}function vr(e,t,n){if(Un(n))e.removeAttribute(t);else{if(Q&&!Z&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var _r={create:mr,update:mr};function yr(e,t){var n=t.elm,r=t.data,o=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=Wn(t),l=n._transitionClasses;a(l)&&(s=zn(s,Gn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var br,Sr,wr,Er,Cr,Tr,Or={create:yr,update:yr},xr=/[\w).+\-_$\]]/;function Mr(e){var t,n,r,i,a,o=!1,s=!1,l=!1,u=!1,c=0,d=0,h=0,f=0;for(r=0;r=0&&" "===(m=e.charAt(p));p--);m&&xr.test(m)||(u=!0)}}else void 0===i?(f=r+1,i=e.slice(0,r).trim()):g();function g(){(a||(a=[])).push(e.slice(f,r).trim()),f=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==f&&g(),a)for(r=0;r-1?{exp:e.slice(0,Er),key:'"'+e.slice(Er+1)+'"'}:{exp:e,key:null};Sr=e,Er=Cr=Tr=0;for(;!zr();)Gr(wr=Vr())?qr(wr):91===wr&&$r(wr);return{exp:e.slice(0,Cr),key:e.slice(Cr+1,Tr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Vr(){return Sr.charCodeAt(++Er)}function zr(){return Er>=br}function Gr(e){return 34===e||39===e}function $r(e){var t=1;for(Cr=Er;!zr();)if(Gr(e=Vr()))qr(e);else if(91===e&&t++,93===e&&t--,0===t){Tr=Er;break}}function qr(e){for(var t=e;!zr()&&(e=Vr())!==t;);}var Kr;function Xr(e,t,n){var r=Kr;return function i(){var a=t.apply(null,arguments);null!==a&&Jr(e,i,n,r)}}var Qr=Ke&&!(te&&Number(te[1])<=53);function Zr(e,t,n,r){if(Qr){var i=un,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Kr.addEventListener(e,t,re?{capture:n,passive:r}:n)}function Jr(e,t,n,r){(r||Kr).removeEventListener(e,t._wrapper||t,n)}function ei(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Kr=t.elm,function(e){if(a(e.__r)){var t=Q?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),lt(n,r,Zr,Jr,Xr,t.context),Kr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,o=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in a(l.__ob__)&&(l=t.data.domProps=A({},l)),s)n in l||(o[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var u=i(r)?"":String(r);ii(o,u)&&(o.value=u)}else if("innerHTML"===n&&Kn(o.tagName)&&i(o.innerHTML)){(ti=ti||document.createElement("div")).innerHTML=""+r+"";for(var c=ti.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;c.firstChild;)o.appendChild(c.firstChild)}else if(r!==s[n])try{o[n]=r}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ai={create:ri,update:ri},oi=w((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function si(e){var t=li(e.style);return e.staticStyle?A(e.staticStyle,t):t}function li(e){return Array.isArray(e)?D(e):"string"==typeof e?oi(e):e}var ui,ci=/^--/,di=/\s*!important$/,hi=function(e,t,n){if(ci.test(t))e.style.setProperty(t,n);else if(di.test(n))e.style.setProperty(x(t),n.replace(di,""),"important");else{var r=pi(t);if(Array.isArray(n))for(var i=0,a=n.length;i-1?t.split(vi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function yi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(vi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function bi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&A(t,Si(e.name||"v")),A(t,e),t}return"string"==typeof e?Si(e):void 0}}var Si=w((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),wi=$&&!Z,Ei="transition",Ci="transitionend",Ti="animation",Oi="animationend";wi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ei="WebkitTransition",Ci="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ti="WebkitAnimation",Oi="webkitAnimationEnd"));var xi=$?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Mi(e){xi((function(){xi(e)}))}function ki(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),_i(e,t))}function Ai(e,t){e._transitionClasses&&y(e._transitionClasses,t),yi(e,t)}function Di(e,t,n){var r=Li(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s="transition"===i?Ci:Oi,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=o&&u()};setTimeout((function(){l0&&(n="transition",c=o,d=a.length):"animation"===t?u>0&&(n="animation",c=u,d=l.length):d=(n=(c=Math.max(o,u))>0?o>u?"transition":"animation":null)?"transition"===n?a.length:l.length:0,{type:n,timeout:c,propCount:d,hasTransform:"transition"===n&&Ri.test(r[Ei+"Property"])}}function Ii(e,t){for(;e.length1}function Yi(e,t){!0!==t.data.show&&Pi(t)}var Hi=function(e){var t,n,r={},l=e.modules,u=e.nodeOps;for(t=0;tp?y(e,i(n[v+1])?null:n[v+1].elm,n,f,v,r):f>v&&S(t,h,p)}(h,g,v,n,c):a(v)?(a(e.text)&&u.setTextContent(h,""),y(h,null,v,0,v.length-1,n)):a(g)?S(g,0,g.length-1):a(e.text)&&u.setTextContent(h,""):e.text!==t.text&&u.setTextContent(h,t.text),a(p)&&a(f=p.hook)&&a(f=f.postpatch)&&f(e,t)}}}function T(e,t,n){if(o(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,o.selected!==a&&(o.selected=a);else if(N(Gi(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function zi(e,t){return t.every((function(t){return!N(t,e)}))}function Gi(e){return"_value"in e?e._value:e.value}function $i(e){e.target.composing=!0}function qi(e){e.target.composing&&(e.target.composing=!1,Ki(e.target,"input"))}function Ki(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Xi(e){return!e.componentInstance||e.data&&e.data.transition?e:Xi(e.componentInstance._vnode)}var Qi={model:Ui,show:{bind:function(e,t,n){var r=t.value,i=(n=Xi(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Pi(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Xi(n)).data&&n.data.transition?(n.data.show=!0,r?Pi(n,(function(){e.style.display=e.__vOriginalDisplay})):ji(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Zi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ji(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ji(Gt(t.children)):e}function ea(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[C(a)]=i[a];return t}function ta(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var na=function(e){return e.tag||zt(e)},ra=function(e){return"show"===e.name},ia={name:"transition",props:Zi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(na)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var a=Ji(i);if(!a)return i;if(this._leaving)return ta(e,i);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var l=(a.data||(a.data={})).transition=ea(this),u=this._vnode,c=Ji(u);if(a.data.directives&&a.data.directives.some(ra)&&(a.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,c)&&!zt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=A({},l);if("out-in"===r)return this._leaving=!0,ut(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ta(e,i);if("in-out"===r){if(zt(a))return u;var h,f=function(){h()};ut(l,"afterEnter",f),ut(l,"enterCancelled",f),ut(d,"delayLeave",(function(e){h=e}))}}return i}}},aa=A({tag:String,moveClass:String},Zi);function oa(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function sa(e){e.data.newPos=e.elm.getBoundingClientRect()}function la(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}delete aa.mode;var ua={Transition:ia,TransitionGroup:{props:aa,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Zt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=ea(this),s=0;s-1?Zn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Zn[e]=/HTMLUnknownElement/.test(t.toString())},A(Tn.options.directives,Qi),A(Tn.options.components,ua),Tn.prototype.__patch__=$?Hi:R,Tn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=_e),tn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new pn(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&$?er(e):void 0,t)},$&&setTimeout((function(){Y.devtools&&oe&&oe.emit("init",Tn)}),0);var ca=/\{\{((?:.|\r?\n)+?)\}\}/g,da=/[-.*+?^${}()|[\]\/\\]/g,ha=w((function(e){var t=e[0].replace(da,"\\$&"),n=e[1].replace(da,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var fa={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Fr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Br(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var pa,ma={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Fr(e,"style");n&&(e.staticStyle=JSON.stringify(oi(n)));var r=Br(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},ga=function(e){return(pa=pa||document.createElement("div")).innerHTML=e,pa.textContent},va=g("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),_a=g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ya=g("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ba=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Sa=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,wa="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+H.source+"]*",Ea="((?:"+wa+"\\:)?"+wa+")",Ca=new RegExp("^<"+Ea),Ta=/^\s*(\/?)>/,Oa=new RegExp("^<\\/"+Ea+"[^>]*>"),xa=/^]+>/i,Ma=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},La=/&(?:lt|gt|quot|amp|#39);/g,Ia=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Na=g("pre,textarea",!0),Pa=function(e,t){return e&&Na(e)&&"\n"===t[0]};function ja(e,t){var n=t?Ia:La;return e.replace(n,(function(e){return Ra[e]}))}var Ba,Fa,Ya,Ha,Ua,Wa,Va,za,Ga=/^@|^v-on:/,$a=/^v-|^@|^:|^#/,qa=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ka=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Xa=/^\(|\)$/g,Qa=/^\[.*\]$/,Za=/:(.*)$/,Ja=/^:|^\.|^v-bind:/,eo=/\.[^.\]]+(?=[^\]]*$)/g,to=/^v-slot(:|$)|^#/,no=/[\r\n]/,ro=/\s+/g,io=w(ga);function ao(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fo(t),rawAttrsMap:{},parent:n,children:[]}}function oo(e,t){Ba=t.warn||Ar,Wa=t.isPreTag||L,Va=t.mustUseProp||L,za=t.getTagNamespace||L;var n=t.isReservedTag||L;(function(e){return!!e.component||!n(e.tag)}),Ya=Dr(t.modules,"transformNode"),Ha=Dr(t.modules,"preTransformNode"),Ua=Dr(t.modules,"postTransformNode"),Fa=t.delimiters;var r,i,a=[],o=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,u=!1;function c(e){if(d(e),l||e.processed||(e=so(e,t)),a.length||e===r||r.if&&(e.elseif||e.else)&&uo(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)o=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children))&&s.if&&uo(s,{exp:o.elseif,block:o});else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}var o,s;e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(l=!1),Wa(e.tag)&&(u=!1);for(var c=0;c]*>)","i")),h=e.replace(d,(function(e,n,r){return u=r.length,Aa(c)||"noscript"===c||(n=n.replace(//g,"$1").replace(//g,"$1")),Pa(c,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-h.length,e=h,O(c,l-u,l)}else{var f=e.indexOf("<");if(0===f){if(Ma.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),l,l+p+3),E(p+3);continue}}if(ka.test(e)){var m=e.indexOf("]>");if(m>=0){E(m+2);continue}}var g=e.match(xa);if(g){E(g[0].length);continue}var v=e.match(Oa);if(v){var _=l;E(v[0].length),O(v[1],_,l);continue}var y=C();if(y){T(y),Pa(y.tagName,e)&&E(1);continue}}var b=void 0,S=void 0,w=void 0;if(f>=0){for(S=e.slice(f);!(Oa.test(S)||Ca.test(S)||Ma.test(S)||ka.test(S)||(w=S.indexOf("<",1))<0);)f+=w,S=e.slice(f);b=e.substring(0,f)}f<0&&(b=e),b&&E(b.length),t.chars&&b&&t.chars(b,l-b.length,l)}if(e===n){t.chars&&t.chars(e);break}}function E(t){l+=t,e=e.substring(t)}function C(){var t=e.match(Ca);if(t){var n,r,i={tagName:t[1],attrs:[],start:l};for(E(t[0].length);!(n=e.match(Ta))&&(r=e.match(Sa)||e.match(ba));)r.start=l,E(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],E(n[0].length),i.end=l,i}}function T(e){var n=e.tagName,l=e.unarySlash;a&&("p"===r&&ya(n)&&O(r),s(n)&&r===n&&O(n));for(var u=o(n)||!!l,c=e.attrs.length,d=new Array(c),h=0;h=0&&i[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var u=i.length-1;u>=o;u--)t.end&&t.end(i[u].tag,n,a);i.length=o,r=o&&i[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}O()}(e,{warn:Ba,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,o,s,d){var h=i&&i.ns||za(e);Q&&"svg"===h&&(n=function(e){for(var t=[],n=0;nl&&(s.push(a=e.slice(l,i)),o.push(JSON.stringify(a)));var u=Mr(r[1].trim());o.push("_s("+u+")"),s.push({"@binding":u}),l=i+r[0].length}return l-1"+("true"===a?":("+t+")":":_q("+t+","+a+")")),jr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Wr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Wr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Wr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===a&&"radio"===o)!function(e,t,n){var r=n&&n.number,i=Br(e,"value")||"null";Rr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),jr(e,"change",Wr(t,i),null,!0)}(e,r,i);else if("input"===a||"textarea"===a)!function(e,t,n){var r=e.attrsMap.type;0;var i=n||{},a=i.lazy,o=i.number,s=i.trim,l=!a&&"range"!==r,u=a?"change":"range"===r?"__r":"input",c="$event.target.value";s&&(c="$event.target.value.trim()");o&&(c="_n("+c+")");var d=Wr(t,c);l&&(d="if($event.target.composing)return;"+d);Rr(e,"value","("+t+")"),jr(e,u,d,null,!0),(s||o)&&jr(e,"blur","$forceUpdate()")}(e,r,i);else{if(!Y.isReservedTag(a))return Ur(e,r,i),!1}return!0},text:function(e,t){t.value&&Rr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Rr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:va,mustUseProp:Nn,canBeLeftOpenTag:_a,isReservedTag:Xn,getTagNamespace:Qn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(vo)},So=w((function(e){return g("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function wo(e,t){e&&(_o=So(t.staticKeys||""),yo=t.isReservedTag||L,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!yo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(_o)))}(t),1===t.type){if(!yo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,Co=/\([^)]*?\);*$/,To=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Oo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},xo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Mo=function(e){return"if("+e+")return null;"},ko={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Mo("$event.target !== $event.currentTarget"),ctrl:Mo("!$event.ctrlKey"),shift:Mo("!$event.shiftKey"),alt:Mo("!$event.altKey"),meta:Mo("!$event.metaKey"),left:Mo("'button' in $event && $event.button !== 0"),middle:Mo("'button' in $event && $event.button !== 1"),right:Mo("'button' in $event && $event.button !== 2")};function Ao(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var a in e){var o=Do(e[a]);e[a]&&e[a].dynamic?i+=a+","+o+",":r+='"'+a+'":'+o+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Do(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Do(e)})).join(",")+"]";var t=To.test(e.value),n=Eo.test(e.value),r=To.test(e.value.replace(Co,""));if(e.modifiers){var i="",a="",o=[];for(var s in e.modifiers)if(ko[s])a+=ko[s],Oo[s]&&o.push(s);else if("exact"===s){var l=e.modifiers;a+=Mo(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else o.push(s);return o.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ro).join("&&")+")return null;"}(o)),a&&(i+=a),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ro(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Oo[e],r=xo[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Lo={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:R},Io=function(e){this.options=e,this.warn=e.warn||Ar,this.transforms=Dr(e.modules,"transformCode"),this.dataGenFns=Dr(e.modules,"genData"),this.directives=A(A({},Lo),e.directives);var t=e.isReservedTag||L;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function No(e,t){var n=new Io(t);return{render:"with(this){return "+(e?Po(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Po(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return jo(e,t);if(e.once&&!e.onceProcessed)return Bo(e,t);if(e.for&&!e.forProcessed)return Yo(e,t);if(e.if&&!e.ifProcessed)return Fo(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Vo(e,t),i="_t("+n+(r?","+r:""),a=e.attrs||e.dynamicAttrs?$o((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:C(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];!a&&!o||r||(i+=",null");a&&(i+=","+a);o&&(i+=(a?"":",null")+","+o);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Vo(t,n,!0);return"_c("+e+","+Ho(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Ho(e,t));var i=e.inlineTemplate?null:Vo(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var a=0;a>>0}(o):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var a=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=No(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);a&&(n+=a+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+$o(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Uo(e){return 1===e.type&&("slot"===e.tag||e.children.some(Uo))}function Wo(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Fo(e,t,Wo,"null");if(e.for&&!e.forProcessed)return Yo(e,t,Wo);var r="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Vo(e,t)||"undefined")+":undefined":Vo(e,t)||"undefined":Po(e,t))+"}",a=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+a+"}"}function Vo(e,t,n,r,i){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(r||Po)(o,t)+s}var l=n?function(e,t){for(var n=0,r=0;r':'
',Zo.innerHTML.indexOf(" ")>0}var ns=!!$&&ts(!1),rs=!!$&&ts(!0),is=w((function(e){var t=er(e);return t&&t.innerHTML})),as=Tn.prototype.$mount;Tn.prototype.$mount=function(e,t){if((e=e&&er(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=es(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return as.call(this,e,t)},Tn.compile=es,t.default=Tn}.call(this,n(126),n(458).setImmediate)},function(e,t,n){"use strict";n.r(t),n.d(t,"registerRenderer",(function(){return h})),n.d(t,"getRenderer",(function(){return v})),n.d(t,"hasRenderer",(function(){return p})),n.d(t,"getRegisteredRendererNames",(function(){return m})),n.d(t,"getRegisteredRenderers",(function(){return g}));var r=n(169),i=n(1825),a=n(1826),o=n(1827),s=n(1828),l=n(1829),u=n(1830),c=n(1831),d=Object(r.default)("renderers"),h=d.register,f=d.getItem,p=d.hasItem,m=d.getNames,g=d.getValues;function v(e){if("function"==typeof e)return e;if(!p(e))throw Error('No registered renderer found under "'.concat(e,'" name'));return f(e)}h("base",i.default),h("autocomplete",a.default),h("checkbox",o.default),h("html",s.default),h("numeric",l.default),h("password",u.default),h("text",c.default)},function(e,t,n){"use strict";n.r(t),n.d(t,"clientToLocal",(function(){return u})),n.d(t,"getNativeEvent",(function(){return d})),n.d(t,"normalizeEvent",(function(){return h})),n.d(t,"addEventListener",(function(){return f})),n.d(t,"removeEventListener",(function(){return p})),n.d(t,"stop",(function(){return m})),n.d(t,"isMiddleOrRightButtonOnMouseUpDown",(function(){return g})),n.d(t,"notLeftMouse",(function(){return v}));var r=n(143);n.d(t,"Dispatcher",(function(){return r.default}));var i=n(60),a=n(532),o="undefined"!=typeof window&&!!window.addEventListener,s=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,l=[];function u(e,t,n,r){return n=n||{},r||!i.default.canvasSupported?c(e,t,n):i.default.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):c(e,t,n),n}function c(e,t,n){if(i.default.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(Object(a.isCanvasEl)(e)){var s=e.getBoundingClientRect();return n.zrX=r-s.left,void(n.zrY=o-s.top)}if(Object(a.transformCoordWithViewport)(l,e,r,o))return n.zrX=l[0],void(n.zrY=l[1])}n.zrX=n.zrY=0}function d(e){return e||window.event}function h(e,t,n){if(null!=(t=d(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&u(e,i,t,n)}else{u(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return null==t.which&&void 0!==o&&s.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}function f(e,t,n,r){o?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}function p(e,t,n,r){o?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)}var m=o?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function g(e){return 2===e.which||3===e.which}function v(e){return e.which>1}},function(e,t,n){var r=n(146),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n{t.apply(r,i)},e)}}function a(e,t){const n=new(window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)(t);return n.observe(e,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),n}function o(e,t){const n=Math.abs(e[0]-t[0]),r=Math.abs(e[1]-t[1]);return Math.sqrt(n*n+r*r)}function s(e){return(e?"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}n.r(t),n.d(t,"randomExtend",(function(){return r})),n.d(t,"debounce",(function(){return i})),n.d(t,"observerDomResize",(function(){return a})),n.d(t,"getPointDistance",(function(){return o})),n.d(t,"uuid",(function(){return s}))},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";n.r(t),n.d(t,"isFunction",(function(){return i})),n.d(t,"throttle",(function(){return a})),n.d(t,"throttleAfterHits",(function(){return o})),n.d(t,"debounce",(function(){return s})),n.d(t,"pipe",(function(){return l})),n.d(t,"partial",(function(){return u})),n.d(t,"curry",(function(){return c})),n.d(t,"curryRight",(function(){return d}));n(81),n(571),n(117),n(133);var r=n(2);function i(e){return"function"==typeof e}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},i=null;function a(){for(var a=this,o=arguments.length,s=new Array(o),l=0;l1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=a(e,t),i=n;function o(){i=n}function s(){for(var t=arguments.length,n=new Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:200,r=null;function i(){for(var i=this,a=arguments.length,o=new Array(a),s=0;s1?t-1:0),r=1;r=t?e.apply(this,s):n(s)}}([])}function d(e){var t=e.length;return function n(r){return function(){for(var i=arguments.length,a=new Array(i),o=0;o=t?e.apply(this,s):n(s)}}([])}},function(e,t,n){"use strict";n.r(t),n.d(t,"withOpacity",(function(){return u})),n.d(t,"withVisible",(function(){return s})),n.d(t,"withZIndex",(function(){return l})),n.d(t,"withZooms",(function(){return c}));var r=n(87),i=n(26),a=n(25);function o(e,t,n,r){var i;"function"==typeof e[n]?e[n](r):"function"==typeof e.setOptions&&e.setOptions(((i={})[t]=r,i))}function s(e,t,n){return void 0===t&&(t="show"),void 0===n&&(n="hide"),r.default.extend({props:{visible:Object(a.defineProp)({type:Boolean,default:e,setter:function(e,r){r?e[t]():e[n]()}})}})}var l=r.default.extend({props:{zIndex:Object(a.defineProp)({type:Number,setter:function(e,t){o(e,"zIndex","setzIndex",t)}})}}),u=r.default.extend({props:{opacity:Object(a.defineProp)("setOpacity",Number)}}),c=r.default.extend({props:{zooms:Object(a.defineProp)({type:Array,deep:!0,equals:i.theSamePair,setter:function(e,t){o(e,"zooms","setZooms",t)}})}})},function(e,t,n){var r=n(80),i=n(1973);r({target:"Array",stat:!0,forced:!n(1086)((function(e){Array.from(e)}))},{from:i})},function(e,t,n){(function(t){var r;e.exports=(r=r||function(e,r){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==t&&t.crypto&&(i=t.crypto),!i)try{i=n(2298)}catch(e){}var a=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},l=s.lib={},u=l.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=l.WordArray=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},f=d.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},p=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},m=l.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=a/(4*o),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*l,a);if(l){for(var d=0;d=2&&"="===e.charAt(0)}function i(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}function a(e){return i(e)?e.substr(1):e}function o(e){var t=/(\\"|"(?:\\"|[^"])*"|(\+))|(\\'|'(?:\\'|[^'])*'|(\+))/g,n=e.match(t)||[],r=-1;return e.toUpperCase().replace(t,(function(){return n[r+=1]}))}function s(e,t){return function(n){return{row:"row"===e?t:n.row,column:"column"===e?t:n.column}}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";n.r(t);var r=n(298),i=n(11);t.default=function(e){return Object(i.__awaiter)(this,void 0,void 0,(function(){var t;return Object(i.__generator)(this,(function(n){switch(n.label){case 0:return[4,Object(r.default)()];case 1:return t=n.sent(),[2,new Promise((function(n){t.plugin(e,(function(){n()}))}))]}}))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"getUID",(function(){return o})),n.d(t,"enableSubTypeDefaulter",(function(){return s})),n.d(t,"enableTopologicalTravel",(function(){return l})),n.d(t,"inheritDefaultOption",(function(){return u}));var r=n(0),i=n(124),a=Math.round(10*Math.random());function o(e){return[e||"",a++].join("_")}function s(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Object(i.parseClassType)(e);t[r.main]=n},e.determineSubType=function(n,r){var a=r.type;if(!a){var o=Object(i.parseClassType)(n).main;e.hasSubTypes(n)&&t[o]&&(a=t[o](r))}return a}}function l(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,i,a,o){if(e.length){var s=function(e){var i={},a=[];return r.each(e,(function(o){var s=n(i,o),l=function(e,t){var n=[];return r.each(e,(function(e){r.indexOf(t,e)>=0&&n.push(e)})),n}(s.originalDeps=t(o),e);s.entryCount=l.length,0===s.entryCount&&a.push(o),r.each(l,(function(e){r.indexOf(s.predecessor,e)<0&&s.predecessor.push(e);var t=n(i,e);r.indexOf(t.successor,e)<0&&t.successor.push(o)}))})),{graph:i,noEntryList:a}}(i),l=s.graph,u=s.noEntryList,c={};for(r.each(e,(function(e){c[e]=!0}));u.length;){var d=u.pop(),h=l[d],f=!!c[d];f&&(a.call(o,d,h.originalDeps.slice()),delete c[d]),r.each(h.successor,f?m:p)}r.each(c,(function(){throw new Error("")}))}function p(e){l[e].entryCount--,0===l[e].entryCount&&u.push(e)}function m(e){c[e]=!0,p(e)}}}function u(e,t){return r.merge(r.merge({},e,!0),t,!0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_IMAGE_STYLE",(function(){return s})),n.d(t,"DEFAULT_IMAGE_ANIMATION_PROPS",(function(){return l}));var r=n(59),i=n(138),a=n(44),o=n(0),s=Object(o.defaults)({x:0,y:0},i.DEFAULT_COMMON_STYLE),l={style:Object(o.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.DEFAULT_COMMON_ANIMATION_PROPS.style)};var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.createStyle=function(e){return Object(o.createObject)(s,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",o=t[a];return null==o?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return l},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new a.default(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(i.default);u.prototype.type="image",t.default=u},function(e,t,n){"use strict";n.r(t),n.d(t,"ToolboxFeature",(function(){return r})),n.d(t,"registerFeature",(function(){return a})),n.d(t,"getFeature",(function(){return o}));var r=function(){},i={};function a(e,t){i[e]=t}function o(e){return i[e]}},function(e,t,n){"use strict";n.r(t),n.d(t,"TYPE_NUMERIC",(function(){return N})),n.d(t,"TYPE_TEXT",(function(){return P})),n.d(t,"TYPE_DATE",(function(){return j})),n.d(t,"TYPES",(function(){return B})),n.d(t,"default",(function(){return F}));var r=n(3),i=n(2),a=n(55),o=n(56),s=n(549);n.d(t,"CONDITION_NONE",(function(){return s.CONDITION_NAME}));var l=n(373);n.d(t,"CONDITION_EMPTY",(function(){return l.CONDITION_NAME}));var u=n(550);n.d(t,"CONDITION_NOT_EMPTY",(function(){return u.CONDITION_NAME}));var c=n(374);n.d(t,"CONDITION_EQUAL",(function(){return c.CONDITION_NAME}));var d=n(551);n.d(t,"CONDITION_NOT_EQUAL",(function(){return d.CONDITION_NAME}));var h=n(918);n.d(t,"CONDITION_GREATER_THAN",(function(){return h.CONDITION_NAME}));var f=n(919);n.d(t,"CONDITION_GREATER_THAN_OR_EQUAL",(function(){return f.CONDITION_NAME}));var p=n(920);n.d(t,"CONDITION_LESS_THAN",(function(){return p.CONDITION_NAME}));var m=n(921);n.d(t,"CONDITION_LESS_THAN_OR_EQUAL",(function(){return m.CONDITION_NAME}));var g=n(441);n.d(t,"CONDITION_BETWEEN",(function(){return g.CONDITION_NAME}));var v=n(922);n.d(t,"CONDITION_NOT_BETWEEN",(function(){return v.CONDITION_NAME}));var _=n(923);n.d(t,"CONDITION_BEGINS_WITH",(function(){return _.CONDITION_NAME}));var y=n(924);n.d(t,"CONDITION_ENDS_WITH",(function(){return y.CONDITION_NAME}));var b=n(499);n.d(t,"CONDITION_CONTAINS",(function(){return b.CONDITION_NAME}));var S=n(925);n.d(t,"CONDITION_NOT_CONTAINS",(function(){return S.CONDITION_NAME}));var w=n(498);n.d(t,"CONDITION_DATE_BEFORE",(function(){return w.CONDITION_NAME}));var E=n(497);n.d(t,"CONDITION_DATE_AFTER",(function(){return E.CONDITION_NAME}));var C=n(926);n.d(t,"CONDITION_TOMORROW",(function(){return C.CONDITION_NAME}));var T=n(927);n.d(t,"CONDITION_TODAY",(function(){return T.CONDITION_NAME}));var O=n(928);n.d(t,"CONDITION_YESTERDAY",(function(){return O.CONDITION_NAME}));var x=n(1408);n.d(t,"CONDITION_BY_VALUE",(function(){return x.CONDITION_NAME}));var M=n(1409);n.d(t,"CONDITION_TRUE",(function(){return M.CONDITION_NAME}));var k=n(1410);n.d(t,"CONDITION_FALSE",(function(){return k.CONDITION_NAME}));var A=n(308);n.d(t,"OPERATION_AND",(function(){return A.OPERATION_ID}));var D=n(500);n.d(t,"OPERATION_OR",(function(){return D.OPERATION_ID}));var R,L=n(618);function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"OPERATION_OR_THEN_VARIABLE",(function(){return L.OPERATION_ID}));var N="numeric",P="text",j="date",B=(I(R={},N,[s.CONDITION_NAME,a.SEPARATOR,l.CONDITION_NAME,u.CONDITION_NAME,a.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,a.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,p.CONDITION_NAME,m.CONDITION_NAME,g.CONDITION_NAME,v.CONDITION_NAME]),I(R,P,[s.CONDITION_NAME,a.SEPARATOR,l.CONDITION_NAME,u.CONDITION_NAME,a.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,a.SEPARATOR,_.CONDITION_NAME,y.CONDITION_NAME,a.SEPARATOR,b.CONDITION_NAME,S.CONDITION_NAME]),I(R,j,[s.CONDITION_NAME,a.SEPARATOR,l.CONDITION_NAME,u.CONDITION_NAME,a.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,a.SEPARATOR,w.CONDITION_NAME,E.CONDITION_NAME,g.CONDITION_NAME,a.SEPARATOR,C.CONDITION_NAME,T.CONDITION_NAME,O.CONDITION_NAME]),R);function F(e){var t=[],n=e;return B[n]||(n=P),Object(i.arrayEach)(B[n],(function(e){var n;n=e===a.SEPARATOR?{name:a.SEPARATOR}:Object(r.clone)(Object(o.getConditionDescriptor)(e)),t.push(n)})),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"RegisteredEditor",(function(){return w})),n.d(t,"_getEditorInstance",(function(){return E})),n.d(t,"registerEditor",(function(){return T})),n.d(t,"getEditor",(function(){return C})),n.d(t,"getEditorInstance",(function(){return E})),n.d(t,"hasEditor",(function(){return y})),n.d(t,"getRegisteredEditorNames",(function(){return b})),n.d(t,"getRegisteredEditors",(function(){return S}));n(16),n(13),n(17),n(101),n(18);var r=n(169),i=n(43),a=n(198),o=n(773),s=n(1819),l=n(1820),u=n(1821),c=n(774),d=n(1822),h=n(1823),f=n(1824),p=n(275),m=new WeakMap,g=Object(r.default)("editors"),v=g.register,_=g.getItem,y=g.hasItem,b=g.getNames,S=g.getValues;function w(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},i.default.getSingleton().add("afterDestroy",(function(){t[this.guid]=null}))}function E(e,t){var n;if("function"==typeof e)m.get(e)||T(null,e),n=m.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=_(e)}if(!n)throw Error('No editor registered under name "'.concat(e,'"'));return n.getInstance(t)}function C(e){if(!y(e))throw Error('No registered editor found under "'.concat(e,'" name'));return _(e).getConstructor()}function T(e,t){var n=new w(t);"string"==typeof e&&v(e,n),m.set(t,n)}T("base",a.default),T("autocomplete",o.default),T("checkbox",s.default),T("date",l.default),T("dropdown",u.default),T("handsontable",c.default),T("numeric",d.default),T("password",h.default),T("select",f.default),T("text",p.default)},function(e,t,n){"use strict";n.r(t),n.d(t,"toSingleLine",(function(){return i}));n(102),n(160),n(568);var r=n(2);function i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it
t";var n=document.createElement("CAPTION");n.innerHTML="c
c
c
c",n.style.padding="0",n.style.margin="0",e.insertBefore(n,t),document.body.appendChild(e),i=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}(),i}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a||(a="object"===("undefined"==typeof Intl?"undefined":r(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return"".concat(e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1})}function S(){if(void 0!==o)return o;try{var e={get passive(){o=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){o=!1}return o}u||(u=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-s)),r=window.setTimeout((function(){e(t+n)}),n);return s=t+n,r}),c||(c=function(e){clearTimeout(e)})},function(e,t,n){"use strict";function r(e,t){for(var n=0;n=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&this.col<=e.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&this.col<=e.col}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&this.col>=e.col}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}])&&r(t.prototype,n),i&&r(t,i),e}();t.default=i},function(e,t,n){"use strict";n.r(t),n.d(t,"DEC_LENGTH",(function(){return r})),n.d(t,"WEEK_LENGTH",(function(){return i})),n.d(t,"getMixedMonthObject",(function(){return a})),n.d(t,"getMixedMonthName",(function(){return o})),n.d(t,"getShorthand",(function(){return s})),n.d(t,"getStartDate",(function(){return l})),n.d(t,"getEndDate",(function(){return u})),n.d(t,"getAdditionalData",(function(){return c})),n.d(t,"setStartDate",(function(){return d})),n.d(t,"setEndDate",(function(){return h})),n.d(t,"parseDate",(function(){return f})),n.d(t,"getDateYear",(function(){return p}));n(81),n(205),n(13),n(34);var r=31,i=7;function a(e,t){return{name:e,days:i,daysBeforeFullWeeks:0,daysAfterFullWeeks:0,fullWeeks:1,index:t}}function o(e,t){var n=s(t[e].name),r=e>0?s(t[e-1].name):null,i=s(t[0].name),a=s(t[t.length-1].name);return e>0?"".concat(r,"/").concat(n):e===t.length-1?"".concat(n,"/").concat(i):"".concat(a,"/").concat(n)}function s(e){return e.substring(0,3)}function l(e){return f(Array.isArray(e)?e[1]:e.startDate)}function u(e){return f(Array.isArray(e)?e[2]:e.endDate)}function c(e){return Array.isArray(e)?e[3]:e.additionalData}function d(e,t){Array.isArray(e)?e[1]=t:e.startDate=t}function h(e,t){Array.isArray(e)?e[2]=t:e.endDate=t}function f(e){var t=e;return null===t?null:t instanceof Date||"Invalid Date"!==(t=new Date(t)).toString()?t:null}function p(e){var t=f(e);return t?t.getFullYear():null}},function(e,t,n){"use strict";var r=n(80),i=n(140),a=n(469),o=n(558),s=n(176),l=n(218),u=n(470),c=n(136),d=n(471)("slice"),h=c("species"),f=[].slice,p=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,c,d=l(this),m=s(d.length),g=o(e,m),v=o(void 0===t?m:t,m);if(a(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!a(n.prototype)?i(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(d,g,v);for(r=new(void 0===n?Array:n)(p(v-g,0)),c=0;gS[1]&&(S[1]=b)}t&&(this._nameList[v]=t[_],this._dontMakeIdFromName||d(this,v))}this._rawCount=this._count=u,this._extent={},i(this)},e.prototype._initDataFromProvider=function(e,t,n){if(!(e>=t)){for(var r=this._rawData,a=this._storage,s=this.dimensions,l=s.length,u=this._dimensionInfos,c=this._nameList,h=this._idList,f=this._rawExtent,m=r.getSource().sourceFormat===E.SOURCE_FORMAT_ORIGINAL,g=0;gx[1]&&(x[1]=O)}if(m&&!r.pure&&b){var M=b.name;null==c[S]&&null!=M&&(c[S]=Object(C.convertOptionIdName)(M,null));var k=b.id;null==h[S]&&null!=k&&(h[S]=Object(C.convertOptionIdName)(k,null))}this._dontMakeIdFromName||d(this,S)}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},i(this)}},e.prototype.count=function(){return this._count},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=0&&t=0&&t=0&&to&&(o=l)}return r=[a,o],this._extent[e]=r,r},e.prototype.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){k(e)?v.extend(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getSum=function(e){var t=0;if(this._storage[e])for(var n=0,r=this.count();n=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))return a;i=a-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._storage[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var a=1/0,o=-1,s=0,l=0,u=this.count();l=0&&o<0)&&(a=d,o=c,s=0),c===o&&(i[s++]=l))}return i.length=s,i},e.prototype.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n=p&&C<=m||isNaN(C))&&(c[d++]=_),_++}v=!0}else if(2===o){y=g[f[0]];var S=g[f[1]],w=e[r[1]][0],E=e[r[1]][1];for(b=0;b=p&&C<=m||isNaN(C))&&(T>=w&&T<=E||isNaN(T))&&(c[d++]=_),_++}v=!0}}if(!v)if(1===o)for(b=0;b=p&&C<=m||isNaN(C))&&(c[d++]=O)}else for(b=0;be[k][1])&&(x=!1)}x&&(c[d++]=this.getRawIndex(b))}return dC[1]&&(C[1]=E)}}}return o},e.prototype.downSample=function(e,t,n,r){for(var i=f(this,[e]),o=i._storage,s=[],u=M(1/t),c=o[e],d=this.count(),h=i._rawExtent[e],p=new(a(this))(d),m=0,g=0;gd-g&&(u=d-g,s.length=u);for(var v=0;vh[1]&&(h[1]=y),p[m++]=b}return i._count=m,i._indices=p,i.getRawIndex=l,i},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=f(this,[]),s=o._storage[e],u=this.count(),c=new(a(this))(u),d=0,h=M(1/t),p=this.getRawIndex(0);c[d++]=p;for(var m=1;mn&&(n=r,i=O)}c[d++]=i,p=i}return c[d++]=this.getRawIndex(u-1),o._count=d,o._indices=c,o.getRawIndex=l,o},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new _.default(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new y.default(e?e.getIndices():[],this.getIndices(),(function(t){return u(e,t)}),(function(e){return u(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},k(e)?v.extend(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),v.isArray(i)?i=i.slice():k(i)&&(i=v.extend({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,k(t)?v.extend(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){if(k(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?v.extend(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel;if(t){var r=Object(T.getECData)(t);r.dataIndex=e,r.dataType=this.dataType,r.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(m,t)}this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){v.each(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){t||(t=new e(A(this.dimensions,this.getDimensionInfo,this),this.hostModel));if(t._storage=this._storage,t._storageArr=this._storageArr,g(t,this),this._indices){var n=this._indices.constructor;if(n===Array){var r=this._indices.length;t._indices=new n(r);for(var i=0;i65535?R:I},o=function(e,t,n,r){var i=D[t.type],a=t.name;if(r){var o=e[a],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u=0?this._indices[e]:-1},u=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=c(e,e._idDimIdx,e._idOrdinalMeta,t)),null==n&&(n="e\0\0"+t),n},h=function(e){return v.isArray(e)||(e=null!=e?[e]:[]),e},function(e,t){for(var n=0;n=0?(s[d]=(a=l[d],o=void 0,(o=a.constructor)===Array?a.slice():new o(a)),i._rawExtent[d]=p(),i._extent[d]=null):s[d]=l[d],u.push(s[d]))}return i},p=function(){return[1/0,-1/0]},m=function(e){var t=Object(T.getECData)(e),n=Object(T.getECData)(this);t.seriesIndex=n.seriesIndex,t.dataIndex=n.dataIndex,t.dataType=n.dataType},g=function(e,t){v.each(N.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,v.each(P,(function(n){e[n]=v.clone(t[n])})),e._calculationInfo=v.extend({},t._calculationInfo)},d=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(null==o&&null!=i&&(n[t]=o=c(e,i,e._nameOrdinalMeta,t)),null==s&&null!=a&&(r[t]=s=c(e,a,e._idOrdinalMeta,t)),null==s&&null!=o){var l=e._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),r[t]=s}}}(),e}();t.default=j},function(e,t,n){"use strict";n.r(t),n.d(t,"setBrowserMeta",(function(){return s})),n.d(t,"setPlatformMeta",(function(){return l})),n.d(t,"isChrome",(function(){return u})),n.d(t,"isEdge",(function(){return c})),n.d(t,"isIE",(function(){return d})),n.d(t,"isIE8",(function(){return h})),n.d(t,"isIE9",(function(){return f})),n.d(t,"isMSBrowser",(function(){return p})),n.d(t,"isMobileBrowser",(function(){return m})),n.d(t,"isSafari",(function(){return g})),n.d(t,"isFirefox",(function(){return v})),n.d(t,"isWindowsOS",(function(){return _})),n.d(t,"isMacOS",(function(){return y})),n.d(t,"isLinuxOS",(function(){return b}));var r=n(3),i=function(e){var t={value:!1,test:function(n,r){t.value=e(n,r)}};return t},a={chrome:i((function(e,t){return/Chrome/.test(e)&&/Google/.test(t)})),edge:i((function(e){return/Edge/.test(e)})),firefox:i((function(e){return/Firefox/.test(e)})),ie:i((function(e){return/Trident/.test(e)})),ie8:i((function(){return!document.createTextNode("test").textContent})),ie9:i((function(){return!!document.documentMode})),mobile:i((function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)})),safari:i((function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)}))},o={mac:i((function(e){return/^Mac/.test(e)})),win:i((function(e){return/^Win/.test(e)})),linux:i((function(e){return/^Linux/.test(e)}))};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userAgent,n=void 0===t?navigator.userAgent:t,i=e.vendor,o=void 0===i?navigator.vendor:i;Object(r.objectEach)(a,(function(e){(0,e.test)(n,o)}))}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.platform,n=void 0===t?navigator.platform:t;Object(r.objectEach)(o,(function(e){(0,e.test)(n)}))}function u(){return a.chrome.value}function c(){return a.edge.value}function d(){return a.ie.value}function h(){return a.ie8.value}function f(){return a.ie9.value}function p(){return a.ie.value||a.edge.value}function m(){return a.mobile.value}function g(){return a.safari.value}function v(){return a.firefox.value}function _(){return o.win.value}function y(){return o.mac.value}function b(){return o.linux.value}s(),l()},function(e,t,n){"use strict";n.r(t),n.d(t,"toUpperCaseFirst",(function(){return i})),n.d(t,"equalsIgnoreCase",(function(){return a})),n.d(t,"randomString",(function(){return o})),n.d(t,"isPercentValue",(function(){return s})),n.d(t,"substitute",(function(){return l})),n.d(t,"stripTags",(function(){return c}));n(64),n(13),n(102),n(34),n(160);var r=n(28);function i(e){return e[0].toUpperCase()+e.substr(1)}function a(){for(var e=[],t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(e).replace(/(?:\\)?\[([^[\]]+)]/g,(function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]}))}var u=/<\/?\w+\/?>|<\w+[\s|/][^>]*>/gi;function c(e){return"".concat(e).replace(u,"")}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(80),i=n(816).includes,a=n(464);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){"use strict";n.r(t);var r=n(2),i=n(3),a={_localHooks:Object.create(null),addLocalHook:function(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks:function(e){for(var t=this,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a'.concat(String.fromCharCode(10003),"").concat(e)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(476)("wks"),i=n(351),a=n(95).Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(80),i=n(558),a=n(318),o=n(176),s=n(202),l=n(829),u=n(470),c=n(471)("splice"),d=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!c},{splice:function(e,t){var n,r,c,f,p,m,g=s(this),v=o(g.length),_=i(e,v),y=arguments.length;if(0===y?n=r=0:1===y?(n=0,r=v-_):(n=y-2,r=h(d(a(t),0),v-_)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(c=l(g,r),f=0;fv-r+n;f--)delete g[f-1]}else if(n>r)for(f=v-r;f>_;f--)m=f+n-1,(p=f+r-1)in g?g[m]=g[p]:delete g[m];for(f=0;f0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";n.r(t);n(19),n(20),n(21),n(64),n(16),n(36),n(40),n(13),n(17),n(18);var r=n(144),i=n(2),a=n(785);function o(e){return(o="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)}function s(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){for(var n=0;n0}},{key:"hasPrecedent",value:function(e){return Object(i.arrayFilter)(this.precedents,(function(t){return t.isEqual(e)})).length>0}}]),t}(a.default);t.default=f},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(78),a=n(5),o=r.each,s=r.isObject,l=function(){function e(t){var n=t.mappingMethod,i=t.type,a=this.option=r.clone(t);this.type=i,this.mappingMethod=n,this._normalizeData=_[n];var s=e.visualHandlers[i];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._normalizedToVisual=s._normalizedToVisual[n],"piecewise"===n?(u(a),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,r.each(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(a)):"category"===n?a.categories?function(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(o(t,(function(e,t){n[e]=t})),!r.isArray(i)){var a=[];r.isObject(i)?o(i,(function(e,t){var r=n[t];a[null!=r?r:-1]=e})):a[-1]=i,i=v(e,a)}for(var s=t.length-1;s>=0;s--)null==i[s]&&(delete n[t[s]],t.pop())}(a):u(a,!0):(r.assert("linear"!==n||a.dataExtent),u(a))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return r.bind(this._normalizeData,this)},e.listVisualTypes=function(){return r.keys(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){r.isObject(e)?r.each(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var a,o=r.isArray(t)?[]:r.isObject(t)?{}:(a=!0,null);return e.eachVisual(t,(function(e,t){var r=n.call(i,e,t);a?o=r:o[t]=r})),o},e.retrieveVisuals=function(t){var n,r={};return t&&o(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(r.isArray(e))e=e.slice();else{if(!s(e))return[];var t=[];o(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a2,i=r?o.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(a)},{setTimeout:s(i.setTimeout),setInterval:s(i.setInterval)})},function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return X})),n.d(t,"dependencies",(function(){return Q})),n.d(t,"PRIORITY",(function(){return Z})),n.d(t,"init",(function(){return Ve})),n.d(t,"connect",(function(){return ze})),n.d(t,"disConnect",(function(){return Ge})),n.d(t,"disconnect",(function(){return $e})),n.d(t,"dispose",(function(){return qe})),n.d(t,"getInstanceByDom",(function(){return Ke})),n.d(t,"getInstanceById",(function(){return Xe})),n.d(t,"registerTheme",(function(){return Qe})),n.d(t,"registerPreprocessor",(function(){return Ze})),n.d(t,"registerProcessor",(function(){return Je})),n.d(t,"registerPostInit",(function(){return et})),n.d(t,"registerPostUpdate",(function(){return tt})),n.d(t,"registerAction",(function(){return nt})),n.d(t,"registerCoordinateSystem",(function(){return rt})),n.d(t,"getCoordinateSystemDimensions",(function(){return it})),n.d(t,"registerLayout",(function(){return at})),n.d(t,"registerVisual",(function(){return ot})),n.d(t,"registerLoading",(function(){return ut})),n.d(t,"setCanvasCreator",(function(){return ct})),n.d(t,"registerMap",(function(){return dt})),n.d(t,"getMap",(function(){return ht})),n.d(t,"registerTransform",(function(){return ft})),n.d(t,"dataTool",(function(){return pt}));var r=n(4),i=n(367),a=n(0),o=n(78),s=n(60),l=n(531),u=n(143),c=n(740),d=n(742),h=n(246),f=n(1600),p=n(930),m=n(1602),g=n(70),v=n(74),_=n(65),y=n(79),b=n(109),S=n(6),w=n(49),E=n(37),C=n(10),T=n(7),O=n(167),x=n(796),M=n(1603),k=n(932),A=n(1604),D=n(1605),R=n(369),L=n(124),I=n(1577),N=n(933),P=n(179),j=n(1599),B=n(54),F=n(415),Y=n(743),H=n(299),U=n(341),W=n(1601);n.d(t,"registerLocale",(function(){return H.registerLocale}));var V=a.assert,z=a.each,G=a.isFunction,$=a.isObject,q=a.indexOf,K="undefined"!=typeof window,X="5.0.1",Q={zrender:"5.0.3"},Z={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},J=/^[a-zA-Z0-9_]+$/;function ee(e){return function(){for(var t=[],n=0;n0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.setOption=function(e,t,n){if(this._disposed)ke(this.id);else{var r,i,a;if($(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this.__flagInMainProcess=!0,!this._model||t){var o=new f.default(this._api),s=this._theme,l=this._model=new c.default;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},Le),Se(this,a),n?(this.__optionUpdated={silent:r},this.__flagInMainProcess=!1,this.getZr().wakeUp()):(re(this),oe.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this.__flagInMainProcess=!1,ce.call(this,r),de.call(this,r))}},t.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||K&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){if(s.default.canvasSupported)return(e=a.extend({},e||{})).pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(e)},t.prototype.getSvgDataURL=function(){if(s.default.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return a.each(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;z(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return z(r,(function(e){e.group.ignore=!1})),a}ke(this.id)},t.prototype.getConnectedDataURL=function(e){if(this._disposed)ke(this.id);else if(s.default.canvasSupported){var t="svg"===e.type,n=this.group,r=Math.min,o=Math.max;if(Ye[n]){var l=1/0,u=1/0,c=-1/0,d=-1/0,h=[],f=e&&e.pixelRatio||1;a.each(Fe,(function(i,s){if(i.group===n){var f=t?i.getZr().painter.getSvgDom().innerHTML:i.getRenderedCanvas(a.clone(e)),p=i.getDom().getBoundingClientRect();l=r(p.left,l),u=r(p.top,u),c=o(p.right,c),d=o(p.bottom,d),h.push({dom:f,left:p.left,top:p.top})}}));var p=(c*=f)-(l*=f),m=(d*=f)-(u*=f),g=a.createCanvas(),v=i.init(g,{renderer:t?"svg":"canvas"});if(v.resize({width:p,height:m}),t){var _="";return z(h,(function(e){var t=e.left-l,n=e.top-u;_+=''+e.dom+""})),v.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&v.painter.setBackgroundColor(e.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return e.connectedBackgroundColor&&v.add(new y.default({shape:{x:0,y:0,width:p,height:m},style:{fill:e.connectedBackgroundColor}})),z(h,(function(e){var t=new b.default({style:{x:e.left*f-l,y:e.top*f-u,image:e.dom}});v.add(t)})),v.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t){return se(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return se(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,i=T.parseFinder(r,e);return a.each(i,(function(e,r){r.indexOf("Models")>=0&&a.each(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}else 0}),this)}),this),!!n}ke(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=T.parseFinder(n,e,{defaultMainType:"series"});var i=r.seriesModel.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?i.indexOfRawIndex(r.dataIndex):null;return null!=a?Object(P.getItemVisualFromData)(i,a,t):Object(P.getVisualFromData)(i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;z(Me,(function(t){var n=function(n){var r,i=e.getModel(),o=n.target;if("globalout"===t?r={}:o&&Object(U.findEventDispatcher)(o,(function(e){var t=Object(E.getECData)(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return r=a.extend({},t.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),z(De,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),z(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),Object(F.handleLegacySelectEvents)(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?ke(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)ke(this.id);else{this._disposed=!0,T.setAttribute(this.getDom(),We,"");var e=this._api,t=this._model;z(this._componentsViews,(function(n){n.dispose(t,e)})),z(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete Fe[this.id]}},t.prototype.resize=function(e){if(this._disposed)ke(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this.__flagInMainProcess=!0,n&&re(this),oe.update.call(this,{type:"resize",animation:{duration:0}}),this.__flagInMainProcess=!1,ce.call(this,r),de.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)ke(this.id);else if($(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Be[e]){var n=Be[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?ke(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=a.extend({},e);return t.type=De[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)ke(this.id);else if($(t)||(t={silent:!!t}),Ae[e.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(e);else{var n=t.silent;ue.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&s.default.browser.weChat&&this._throttledZrFlush(),ce.call(this,n),de.call(this,n)}},t.prototype.updateLabelLayout=function(){var e=this._labelManager;e.updateLayoutConfig(this._api),e.layout(this._api),e.processLabelsOverall()},t.prototype.appendData=function(e){if(this._disposed)ke(this.id);else{var t=e.seriesIndex;0,this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){for(var t=[],n=e.currentStates,r=0;r0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;n.group.traverse((function(t){if(t.states&&t.states.emphasis){if(S.isElementRemoved(t))return;if(t instanceof w.default&&Object(C.savePathStates)(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=o;var r=t.getTextContent(),a=t.getTextGuideLine();r&&(r.stateTransition=o),a&&(a.stateTransition=o)}t.__dirty&&e(t)}}))}re=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),ie(e,!0),ie(e,!1),t.plan()},ie=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;lt.get("hoverLayerThreshold")&&!s.default.node&&!s.default.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,r)},_e=function(e,t){z(Ne,(function(n){n(e,t)}))},we=function(e){e.__needsUpdateStatus=!0,e.getZr().wakeUp()},Ee=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){S.isElementRemoved(t)||e(t)})),t.__needsUpdateStatus=!1)},ye=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Object(C.enterEmphasis)(t,n),we(e)},n.prototype.leaveEmphasis=function(t,n){Object(C.leaveEmphasis)(t,n),we(e)},n.prototype.enterBlur=function(t){Object(C.enterBlur)(t),we(e)},n.prototype.leaveBlur=function(t){Object(C.leaveBlur)(t),we(e)},n.prototype.enterSelect=function(t){Object(C.enterSelect)(t),we(e)},n.prototype.leaveSelect=function(t){Object(C.leaveSelect)(t),we(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(d.default))(e)},be=function(e){function t(e,t){for(var n=0;n=0)){st.push(n);var a=k.default.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function ut(e,t){Be[e]=t}function ct(e){a.$override("createCanvas",e)}function dt(e,t,n){R.default.registerMap(e,t,n)}function ht(e){var t=R.default.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}}var ft=Y.registerExternalTransform;ot(2e3,x.seriesStyleTask),ot(4500,x.dataStyleTask),ot(4500,x.dataColorPaletteTask),ot(2e3,N.seriesSymbolTask),ot(4500,N.dataSymbolTask),ot(7e3,W.default),Ze(p.default),Je(900,m.default),ut("default",M.default),nt({type:C.HIGHLIGHT_ACTION_TYPE,event:C.HIGHLIGHT_ACTION_TYPE,update:C.HIGHLIGHT_ACTION_TYPE},a.noop),nt({type:C.DOWNPLAY_ACTION_TYPE,event:C.DOWNPLAY_ACTION_TYPE,update:C.DOWNPLAY_ACTION_TYPE},a.noop),nt({type:C.SELECT_ACTION_TYPE,event:C.SELECT_ACTION_TYPE,update:C.SELECT_ACTION_TYPE},a.noop),nt({type:C.UNSELECT_ACTION_TYPE,event:C.UNSELECT_ACTION_TYPE,update:C.UNSELECT_ACTION_TYPE},a.noop),nt({type:C.TOGGLE_SELECT_ACTION_TYPE,event:C.TOGGLE_SELECT_ACTION_TYPE,update:C.TOGGLE_SELECT_ACTION_TYPE},a.noop),Qe("light",A.default),Qe("dark",D.default);var pt={}},function(e,t,n){"use strict"; /*! @name @videojs/vhs-utils @version 2.3.0 @license MIT */Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(9))&&"object"==typeof r&&"default"in r?r.default:r,a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],l=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})):e},u=function(e){return e.map(l)},c=function(e){void 0===e&&(e="");var t=e.split(","),n={},r=[];return t.forEach((function(e){var t;e=e.trim(),o.forEach((function(r){var i=a[r].exec(e.toLowerCase());if(i&&!(i.length<=1)){t=r;var o=e.substring(0,i[1].length),s=e.replace(o,"");n[r]={type:o,details:s}}})),t||r.push(e)})),r.length&&(n.unknown=r),n},d=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())},h=function(e){return void 0===e&&(e=""),a.text.test(e.trim().toLowerCase())},f=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map((function(e){return l(e.trim())})),n="video";1===t.length&&d(t[0])?n="audio":1===t.length&&h(t[0])&&(n="application");var r="mp4";return t.every((function(e){return a.mp4.test(e)}))?r="mp4":t.every((function(e){return a.webm.test(e)}))?r="webm":t.every((function(e){return a.ogg.test(e)}))&&(r="ogg"),n+"/"+r+';codecs="'+e+'"'}};t.DEFAULT_AUDIO_CODEC="mp4a.40.2",t.DEFAULT_VIDEO_CODEC="avc1.4d400d",t.browserSupportsCodec=function(e){return void 0===e&&(e=""),i.MediaSource&&i.MediaSource.isTypeSupported&&i.MediaSource.isTypeSupported(f(e))||!1},t.codecsFromDefault=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var r in n){var i=n[r];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},t.getMimeForCodec=f,t.isAudioCodec=d,t.isTextCodec=h,t.isVideoCodec=function(e){return void 0===e&&(e=""),a.video.test(e.trim().toLowerCase())},t.mapLegacyAvcCodecs=function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e){return u([e])[0]}))},t.muxerSupportsCodec=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t1)for(var n=1;n-1?parseFloat(e):parseInt(e,10)),t}t.__esModule=!0,t.toNumber=r,t.invertNumber=function(e){return-1*r(e)}},function(e,t,n){var r=n(1),i=n(0),a=n(5),o=n(8),s=n(7);t.ABS=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.abs(e)},t.ACOS=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.acos(e);return isNaN(t)&&(t=i.num),t},t.ACOSH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.log(e+Math.sqrt(e*e-1));return isNaN(t)&&(t=i.num),t},t.ACOT=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.atan(1/e)},t.ACOTH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=.5*Math.log((e+1)/(e-1));return isNaN(t)&&(t=i.num),t},t.AGGREGATE=function(e,n,o,s){if(e=r.parseNumber(e),n=r.parseNumber(e),r.anyIsError(e,n))return i.value;switch(e){case 1:return a.AVERAGE(o);case 2:return a.COUNT(o);case 3:return a.COUNTA(o);case 4:return a.MAX(o);case 5:return a.MIN(o);case 6:return t.PRODUCT(o);case 7:return a.STDEV.S(o);case 8:return a.STDEV.P(o);case 9:return t.SUM(o);case 10:return a.VAR.S(o);case 11:return a.VAR.P(o);case 12:return a.MEDIAN(o);case 13:return a.MODE.SNGL(o);case 14:return a.LARGE(o,s);case 15:return a.SMALL(o,s);case 16:return a.PERCENTILE.INC(o,s);case 17:return a.QUARTILE.INC(o,s);case 18:return a.PERCENTILE.EXC(o,s);case 19:return a.QUARTILE.EXC(o,s)}},t.ARABIC=function(e){if(!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(e))return i.value;var t=0;return e.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,(function(e){t+={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1}[e]})),t},t.ASIN=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.asin(e);return isNaN(t)&&(t=i.num),t},t.ASINH=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e+Math.sqrt(e*e+1))},t.ATAN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.atan(e)},t.ATAN2=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?i.value:Math.atan2(e,t)},t.ATANH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.log((1+e)/(1-e))/2;return isNaN(t)&&(t=i.num),t},t.BASE=function(e,t,n){if(n=n||0,e=r.parseNumber(e),t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(e,t,n))return i.value;n=void 0===n?0:n;var a=e.toString(t);return new Array(Math.max(n+1-a.length,0)).join("0")+a},t.CEILING=function(e,n,a){if(n=void 0===n?1:Math.abs(n),a=a||0,e=r.parseNumber(e),n=r.parseNumber(n),a=r.parseNumber(a),r.anyIsError(e,n,a))return i.value;if(0===n)return 0;var o=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.ceil(e/n)*n,o):0===a?-t.ROUND(Math.floor(Math.abs(e)/n)*n,o):-t.ROUND(Math.ceil(Math.abs(e)/n)*n,o)},t.CEILING.MATH=t.CEILING,t.CEILING.PRECISE=t.CEILING,t.COMBIN=function(e,n){return e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n)?i.value:t.FACT(e)/(t.FACT(n)*t.FACT(e-n))},t.COMBINA=function(e,n){return e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n)?i.value:0===e&&0===n?1:t.COMBIN(e+n-1,e-1)},t.COS=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.cos(e)},t.COSH=function(e){return(e=r.parseNumber(e))instanceof Error?e:(Math.exp(e)+Math.exp(-e))/2},t.COT=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.tan(e)},t.COTH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.exp(2*e);return(t+1)/(t-1)},t.CSC=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.sin(e)},t.CSCH=function(e){return(e=r.parseNumber(e))instanceof Error?e:2/(Math.exp(e)-Math.exp(-e))},t.DECIMAL=function(e,t){return arguments.length<1?i.value:parseInt(e,t)},t.DEGREES=function(e){return(e=r.parseNumber(e))instanceof Error?e:180*e/Math.PI},t.EVEN=function(e){return(e=r.parseNumber(e))instanceof Error?e:t.CEILING(e,-2,-1)},t.EXP=function(e){return arguments.length<1?i.na:"number"!=typeof e||arguments.length>1?i.error:e=Math.exp(e)};var l=[];t.FACT=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var n=Math.floor(e);return 0===n||1===n?1:(l[n]>0||(l[n]=t.FACT(n-1)*n),l[n])},t.FACTDOUBLE=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var n=Math.floor(e);return n<=0?1:n*t.FACTDOUBLE(n-2)},t.FLOOR=function(e,n){if(e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n))return i.value;if(0===n)return 0;if(!(e>0&&n>0||e<0&&n<0))return i.num;n=Math.abs(n);var a=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.floor(e/n)*n,a):-t.ROUND(Math.ceil(Math.abs(e)/n),a)},t.FLOOR.MATH=function(e,n,a){if(n=void 0===n?1:n,a=void 0===a?0:a,e=r.parseNumber(e),n=r.parseNumber(n),a=r.parseNumber(a),r.anyIsError(e,n,a))return i.value;if(0===n)return 0;n=n?Math.abs(n):1;var o=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.floor(e/n)*n,o):0===a||void 0===a?-t.ROUND(Math.ceil(Math.abs(e)/n)*n,o):-t.ROUND(Math.floor(Math.abs(e)/n)*n,o)},t.FLOOR.PRECISE=t.FLOOR.MATH,t.GCD=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t=e.length,n=e[0],i=n<0?-n:n,a=1;as?i%=s:s%=i;i+=s}return i},t.INT=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.floor(e)},t.ISO={CEILING:t.CEILING},t.LCM=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t,n,i,a,o=1;void 0!==(i=e.pop());)for(;i>1;){if(i%2){for(t=3,n=Math.floor(Math.sqrt(i));t<=n&&i%t;t+=2);a=t<=n?t:i}else a=2;for(i/=a,o*=a,t=e.length;t;e[--t]%a==0&&1==(e[t]/=a)&&e.splice(t,1));}return o},t.LN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e)},t.LN10=function(){return Math.log(10)},t.LN2=function(){return Math.log(2)},t.LOG10E=function(){return Math.LOG10E},t.LOG2E=function(){return Math.LOG2E},t.LOG=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?i.value:(t=void 0===t?10:t,Math.log(e)/Math.log(t))},t.LOG10=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e)/Math.log(10)},t.MOD=function(e,t){if(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t))return i.value;if(0===t)return i.div0;var n=Math.abs(e%t);return t>0?n:-n},t.MROUND=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?i.value:e*t<0?i.num:Math.round(e/t)*t},t.MULTINOMIAL=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var n=0,i=1,a=0;a0?t:-t},t.PI=function(){return Math.PI},t.E=function(){return Math.E},t.POWER=function(e,t){if(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t))return i.value;var n=Math.pow(e,t);return isNaN(n)?i.num:n},t.PRODUCT=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t=1,n=0;n0?1:-1)*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)},t.ROUNDUP=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?i.value:(e>0?1:-1)*Math.ceil(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)},t.SEC=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.cos(e)},t.SECH=function(e){return(e=r.parseNumber(e))instanceof Error?e:2/(Math.exp(e)+Math.exp(-e))},t.SERIESSUM=function(e,t,n,a){if(e=r.parseNumber(e),t=r.parseNumber(t),n=r.parseNumber(n),a=r.parseNumberArray(a),r.anyIsError(e,t,n,a))return i.value;for(var o=a[0]*Math.pow(e,t),s=1;s=t)},t.LT=function(e,t){return 2!==arguments.length?i.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?i.error:e0?1:-1)*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)}},function(e,t,n){var r=n(4),i=n(6),a=n(10),o=n(1),s=n(7),l=n(0),u=n(11);t.AVEDEV=function(){var e=o.parseNumberArray(o.flatten(arguments));return e instanceof Error?e:a.sum(a(e).subtract(a.mean(e)).abs()[0])/e.length},t.AVERAGE=function(){for(var e,t=o.numbers(o.flatten(arguments)),n=t.length,r=0,i=0,a=0;a=n)return r;r++}},t.CHISQ={},t.CHISQ.DIST=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?l.value:n?a.chisquare.cdf(e,t):a.chisquare.pdf(e,t)},t.CHISQ.DIST.RT=function(e,t){return!e|!t?l.na:e<1||t>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t?l.value:1-a.chisquare.cdf(e,t)},t.CHISQ.INV=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?l.value:a.chisquare.inv(e,t)},t.CHISQ.INV.RT=function(e,t){return!e|!t?l.na:e<0||e>1||t<1||t>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t?l.value:a.chisquare.inv(1-e,t)},t.CHISQ.TEST=function(e,t){if(2!==arguments.length)return l.na;if(!(e instanceof Array&&t instanceof Array))return l.value;if(e.length!==t.length)return l.value;if(e[0]&&t[0]&&e[0].length!==t[0].length)return l.value;var n,r,i,a=e.length;for(r=0;r=2;)n=n*e/r,r-=2;for(var i=n,a=t;i>1e-10*n;)n+=i=i*e/(a+=2);return 1-n}return Math.round(1e6*d(u,s))/1e6},t.COLUMN=function(e,t){return 2!==arguments.length?l.na:t<0?l.num:e instanceof Array&&"number"==typeof t?0!==e.length?a.col(e,t):void 0:l.value},t.COLUMNS=function(e){return 1!==arguments.length?l.na:e instanceof Array?0===e.length?0:a.cols(e):l.value},t.CONFIDENCE={},t.CONFIDENCE.NORM=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?l.value:a.normalci(1,e,t,n)[1]-1},t.CONFIDENCE.T=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?l.value:a.tci(1,e,t,n)[1]-1},t.CORREL=function(e,t){return e=o.parseNumberArray(o.flatten(e)),t=o.parseNumberArray(o.flatten(t)),o.anyIsError(e,t)?l.value:a.corrcoeff(e,t)},t.COUNT=function(){return o.numbers(o.flatten(arguments)).length},t.COUNTA=function(){var e=o.flatten(arguments);return e.length-t.COUNTBLANK(e)},t.COUNTIN=function(e,t){var n=0;e=o.flatten(e);for(var r=0;r1?l.num:a.centralF.inv(e,t,n)},t.F.INV.RT=function(e,t,n){return 3!==arguments.length?l.na:e<0||e>1||t<1||t>Math.pow(10,10)||n<1||n>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:a.centralF.inv(1-e,t,n)},t.F.TEST=function(e,t){if(!e||!t)return l.na;if(!(e instanceof Array&&t instanceof Array))return l.na;if(e.length<2||t.length<2)return l.div0;var n=function(e,t){for(var n=0,r=0;rt[a-1]&&e[s]<=t[a]&&(i[a]+=1):a===r&&e[s]>t[r-1]&&(i[r]+=1)}return i},t.GAMMA=function(e){return(e=o.parseNumber(e))instanceof Error?e:0===e||parseInt(e,10)===e&&e<0?l.num:a.gammafn(e)},t.GAMMA.DIST=function(e,t,n,r){return 4!==arguments.length?l.na:e<0||t<=0||n<=0||"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:r?a.gamma.cdf(e,t,n,!0):a.gamma.pdf(e,t,n,!1)},t.GAMMA.INV=function(e,t,n){return 3!==arguments.length?l.na:e<0||e>1||t<=0||n<=0?l.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:a.gamma.inv(e,t,n)},t.GAMMALN=function(e){return(e=o.parseNumber(e))instanceof Error?e:a.gammaln(e)},t.GAMMALN.PRECISE=function(e){return 1!==arguments.length?l.na:e<=0?l.num:"number"!=typeof e?l.value:a.gammaln(e)},t.GAUSS=function(e){return(e=o.parseNumber(e))instanceof Error?e:a.normal.cdf(e,0,1)-.5},t.GEOMEAN=function(){var e=o.parseNumberArray(o.flatten(arguments));return e instanceof Error?e:a.geomean(e)},t.GROWTH=function(e,t,n,r){if((e=o.parseNumberArray(e))instanceof Error)return e;var i;if(void 0===t)for(t=[],i=1;i<=e.length;i++)t.push(i);if(void 0===n)for(n=[],i=1;i<=e.length;i++)n.push(i);if(t=o.parseNumberArray(t),n=o.parseNumberArray(n),o.anyIsError(t,n))return l.value;void 0===r&&(r=!0);var a,s,u=e.length,c=0,d=0,h=0,f=0;for(i=0;ia&&(a=r[t],i=[]),r[t]===a&&(i[i.length]=t);return i},t.MODE.SNGL=function(){var e=o.parseNumberArray(o.flatten(arguments));return e instanceof Error?e:t.MODE.MULT(e).sort((function(e,t){return e-t}))[0]},t.NEGBINOM={},t.NEGBINOM.DIST=function(e,t,n,r){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?l.value:r?a.negbin.cdf(e,t,n):a.negbin.pdf(e,t,n)},t.NORM={},t.NORM.DIST=function(e,t,n,r){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?l.value:n<=0?l.num:r?a.normal.cdf(e,t,n):a.normal.pdf(e,t,n)},t.NORM.INV=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?l.value:a.normal.inv(e,t,n)},t.NORM.S={},t.NORM.S.DIST=function(e,t){return(e=o.parseNumber(e))instanceof Error?l.value:t?a.normal.cdf(e,0,1):a.normal.pdf(e,0,1)},t.NORM.S.INV=function(e){return(e=o.parseNumber(e))instanceof Error?l.value:a.normal.inv(e,0,1)},t.PEARSON=function(e,t){if(t=o.parseNumberArray(o.flatten(t)),e=o.parseNumberArray(o.flatten(e)),o.anyIsError(t,e))return l.value;for(var n=a.mean(e),r=a.mean(t),i=e.length,s=0,u=0,c=0,d=0;d1-1/(n+1))return l.num;var r=t*(n+1)-1,i=Math.floor(r);return o.cleanFloat(r===i?e[r]:e[i]+(r-i)*(e[i+1]-e[i]))},t.PERCENTILE.INC=function(e,t){if(e=o.parseNumberArray(o.flatten(e)),t=o.parseNumber(t),o.anyIsError(e,t))return l.value;var n=t*((e=e.sort((function(e,t){return e-t}))).length-1),r=Math.floor(n);return o.cleanFloat(n===r?e[n]:e[r]+(n-r)*(e[r+1]-e[r]))},t.PERCENTRANK={},t.PERCENTRANK.EXC=function(e,t,n){if(n=void 0===n?3:n,e=o.parseNumberArray(o.flatten(e)),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n))return l.value;e=e.sort((function(e,t){return e-t}));for(var r=u.UNIQUE.apply(null,e),i=e.length,a=r.length,s=Math.pow(10,n),c=0,d=!1,h=0;!d&&h=r[h]&&(t=r[h]&&(t=0?t[e.indexOf(n)]:0;for(var i=e.sort((function(e,t){return e-t})),a=i.length,s=0,u=0;u=n&&i[u]<=r&&(s+=t[e.indexOf(i[u])]);return s},t.QUARTILE={},t.QUARTILE.EXC=function(e,n){if(e=o.parseNumberArray(o.flatten(e)),n=o.parseNumber(n),o.anyIsError(e,n))return l.value;switch(n){case 1:return t.PERCENTILE.EXC(e,.25);case 2:return t.PERCENTILE.EXC(e,.5);case 3:return t.PERCENTILE.EXC(e,.75);default:return l.num}},t.QUARTILE.INC=function(e,n){if(e=o.parseNumberArray(o.flatten(e)),n=o.parseNumber(n),o.anyIsError(e,n))return l.value;switch(n){case 1:return t.PERCENTILE.INC(e,.25);case 2:return t.PERCENTILE.INC(e,.5);case 3:return t.PERCENTILE.INC(e,.75);default:return l.num}},t.RANK={},t.RANK.AVG=function(e,t,n){if(e=o.parseNumber(e),t=o.parseNumberArray(o.flatten(t)),o.anyIsError(e,t))return l.value;for(var r=(n=n||!1)?function(e,t){return e-t}:function(e,t){return t-e},i=(t=(t=o.flatten(t)).sort(r)).length,a=0,s=0;s1?(2*t.indexOf(e)+a+1)/2:t.indexOf(e)+1},t.RANK.EQ=function(e,t,n){if(e=o.parseNumber(e),t=o.parseNumberArray(o.flatten(t)),o.anyIsError(e,t))return l.value;var r=(n=n||!1)?function(e,t){return e-t}:function(e,t){return t-e};return(t=t.sort(r)).indexOf(e)+1},t.ROW=function(e,t){return 2!==arguments.length?l.na:t<0?l.num:e instanceof Array&&"number"==typeof t?0!==e.length?a.row(e,t):void 0:l.value},t.ROWS=function(e){return 1!==arguments.length?l.na:e instanceof Array?0===e.length?0:a.rows(e):l.value},t.RSQ=function(e,n){return e=o.parseNumberArray(o.flatten(e)),n=o.parseNumberArray(o.flatten(n)),o.anyIsError(e,n)?l.value:Math.pow(t.PEARSON(e,n),2)},t.SKEW=function(){var e=o.parseNumberArray(o.flatten(arguments));if(e instanceof Error)return e;for(var t=a.mean(e),n=e.length,r=0,i=0;i1||t<1?l.num:o.anyIsError(e,t)?l.value:Math.abs(a.studentt.inv(e/2,t))},t.T.TEST=function(e,n){if(e=o.parseNumberArray(o.flatten(e)),n=o.parseNumberArray(o.flatten(n)),o.anyIsError(e,n))return l.value;var r,i=a.mean(e),s=a.mean(n),u=0,c=0;for(r=0;r-1;)e[t]="TRUE";for(var n=0;(n=e.indexOf(!1))>-1;)e[n]="FALSE";return e.join("")},t.DBCS=function(){throw new Error("DBCS is not implemented")},t.DOLLAR=function(){throw new Error("DOLLAR is not implemented")},t.EXACT=function(e,t){return 2!==arguments.length?i.na:e===t},t.FIND=function(e,t,n){return arguments.length<2?i.na:(n=void 0===n?0:n,t?t.indexOf(e,n-1)+1:null)},t.FIXED=function(){throw new Error("FIXED is not implemented")},t.HTML2TEXT=function(e){var t="";return e&&(e instanceof Array?e.forEach((function(e){""!==t&&(t+="\n"),t+=e.replace(/<(?:.|\n)*?>/gm,"")})):t=e.replace(/<(?:.|\n)*?>/gm,"")),t},t.LEFT=function(e,t){return t=void 0===t?1:t,(t=r.parseNumber(t))instanceof Error||"string"!=typeof e?i.value:e?e.substring(0,t):null},t.LEN=function(e){return 0===arguments.length?i.error:"string"==typeof e?e?e.length:0:e.length?e.length:i.value},t.LOWER=function(e){return"string"!=typeof e?i.value:e?e.toLowerCase():e},t.MID=function(e,t,n){if(t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(t,n)||"string"!=typeof e)return n;var i=t-1,a=i+n;return e.substring(i,a)},t.NUMBERVALUE=function(e,t,n){return t=void 0===t?".":t,n=void 0===n?",":n,Number(e.replace(t,".").replace(n,""))},t.PRONETIC=function(){throw new Error("PRONETIC is not implemented")},t.PROPER=function(e){return void 0===e||0===e.length?i.value:(!0===e&&(e="TRUE"),!1===e&&(e="FALSE"),isNaN(e)&&"number"==typeof e?i.value:("number"==typeof e&&(e=""+e),e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))))},t.REGEXEXTRACT=function(e,t){if(arguments.length<2)return i.na;var n=e.match(new RegExp(t));return n?n[n.length>1?n.length-1:0]:null},t.REGEXMATCH=function(e,t,n){if(arguments.length<2)return i.na;var r=e.match(new RegExp(t));return n?r:!!r},t.REGEXREPLACE=function(e,t,n){return arguments.length<3?i.na:e.replace(new RegExp(t),n)},t.REPLACE=function(e,t,n,a){return t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(t,n)||"string"!=typeof e||"string"!=typeof a?i.value:e.substr(0,t-1)+a+e.substr(t-1+n)},t.REPT=function(e,t){return(t=r.parseNumber(t))instanceof Error?t:new Array(t+1).join(e)},t.RIGHT=function(e,t){return t=void 0===t?1:t,(t=r.parseNumber(t))instanceof Error?t:e?e.substring(e.length-t):i.na},t.SEARCH=function(e,t,n){var r;return"string"!=typeof e||"string"!=typeof t?i.value:(n=void 0===n?0:n,0===(r=t.toLowerCase().indexOf(e.toLowerCase(),n-1)+1)?i.value:r)},t.SPLIT=function(e,t){return e.split(t)},t.SUBSTITUTE=function(e,t,n,r){if(arguments.length<2)return i.na;if(!(e&&t&&n))return e;if(void 0===r)return e.replace(new RegExp(t,"g"),n);for(var a=0,o=0;e.indexOf(t,a)>0;)if(a=e.indexOf(t,a+1),++o===r)return e.substring(0,a)+n+e.substring(a+t.length)},t.T=function(e){return"string"==typeof e?e:""},t.TEXT=function(){throw new Error("TEXT is not implemented")},t.TRIM=function(e){return"string"!=typeof e?i.value:e.replace(/ +/g," ").trim()},t.UNICHAR=t.CHAR,t.UNICODE=t.CODE,t.UPPER=function(e){return"string"!=typeof e?i.value:e.toUpperCase()},t.VALUE=function(){throw new Error("VALUE is not implemented")}},function(e,t){var n=[">",">=","<","<=","=","<>"],r=["operator","literal"];function i(e,t){if(-1===r.indexOf(t))throw new Error("Unsupported token type: "+t);return{value:e,type:t}}function a(e){for(var t,r="",a=[],o=0;o=0?a.push(i(s,"operator")):r+=s}return r.length>0&&a.push(i(("string"!=typeof(t=r)||/^\d+(\.\d+)?$/.test(t)&&(t=-1===t.indexOf(".")?parseInt(t,10):parseFloat(t)),t),"literal")),a.length>0&&"operator"!==a[0].type&&a.unshift(i("=","operator")),a}t.TOKEN_TYPE_OPERATOR="operator",t.TOKEN_TYPE_LITERAL="literal",t.parse=function(e){return a(function(e){for(var t=e.length,n=[],r=0,i="",a="";r":case"<":case"=":a+=o,i.length>0&&(n.push(i),i="");break;default:a.length>0&&(n.push(a),a=""),i+=o}r++}return i.length>0&&n.push(i),a.length>0&&n.push(a),n}(e))},t.createToken=i,t.compute=function(e){for(var t,n=[],r=0;r":n=e[0]>e[1];break;case">=":n=e[0]>=e[1];break;case"<":n=e[0]":n=e[0]!=e[1]}return n}(n,t)}},function(e,t,n){var r=n(0);t.CELL=function(){throw new Error("CELL is not implemented")},t.ERROR={},t.ERROR.TYPE=function(e){switch(e){case r.nil:return 1;case r.div0:return 2;case r.value:return 3;case r.ref:return 4;case r.name:return 5;case r.num:return 6;case r.na:return 7;case r.data:return 8}return r.na},t.INFO=function(){throw new Error("INFO is not implemented")},t.ISBLANK=function(e){return null===e},t.ISBINARY=function(e){return/^[01]{1,10}$/.test(e)},t.ISERR=function(e){return[r.value,r.ref,r.div0,r.num,r.name,r.nil].indexOf(e)>=0||"number"==typeof e&&(isNaN(e)||!isFinite(e))},t.ISERROR=function(e){return t.ISERR(e)||e===r.na},t.ISEVEN=function(e){return!(1&Math.floor(Math.abs(e)))},t.ISFORMULA=function(){throw new Error("ISFORMULA is not implemented")},t.ISLOGICAL=function(e){return!0===e||!1===e},t.ISNA=function(e){return e===r.na},t.ISNONTEXT=function(e){return"string"!=typeof e},t.ISNUMBER=function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)},t.ISODD=function(e){return!!(1&Math.floor(Math.abs(e)))},t.ISREF=function(){throw new Error("ISREF is not implemented")},t.ISTEXT=function(e){return"string"==typeof e},t.N=function(e){return this.ISNUMBER(e)?e:e instanceof Date?e.getTime():!0===e?1:!1===e?0:this.ISERROR(e)?e:0},t.NA=function(){return r.na},t.SHEET=function(){throw new Error("SHEET is not implemented")},t.SHEETS=function(){throw new Error("SHEETS is not implemented")},t.TYPE=function(e){return this.ISNUMBER(e)?1:this.ISTEXT(e)?2:this.ISLOGICAL(e)?4:this.ISERROR(e)?16:Array.isArray(e)?64:void 0}},function(e,t,n){var r=n(0),i=n(1),a=new Date(Date.UTC(1900,0,1)),o=[void 0,0,1,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,1,2,3,4,5,6,0],s=[[],[1,2,3,4,5,6,7],[7,1,2,3,4,5,6],[6,0,1,2,3,4,5],[],[],[],[],[],[],[],[7,1,2,3,4,5,6],[6,7,1,2,3,4,5],[5,6,7,1,2,3,4],[4,5,6,7,1,2,3],[3,4,5,6,7,1,2],[2,3,4,5,6,7,1],[1,2,3,4,5,6,7]],l=[[],[6,0],[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],void 0,void 0,void 0,[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6]];function u(e){return 1===new Date(e,1,29).getMonth()}function c(e,t){return Math.ceil((t-e)/1e3/60/60/24)}function d(e){var t=e>-22038912e5?2:1;return Math.ceil((e-a)/864e5)+t}t.DATE=function(e,t,n){return e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),i.anyIsError(e,t,n)?r.value:e<0||t<0||n<0?r.num:new Date(e,t-1,n)},t.DATEVALUE=function(e){var t,n=2;return"string"!=typeof e?r.value:(t=Date.parse(e),isNaN(t)?r.value:(t<=-22038912e5&&(n=1),Math.ceil((t-a)/864e5)+n))},t.DAY=function(e){var t=i.parseDate(e);return t instanceof Error?t:t.getDate()},t.DAYS=function(e,t){return e=i.parseDate(e),t=i.parseDate(t),e instanceof Error?e:t instanceof Error?t:d(e)-d(t)},t.DAYS360=function(e,t,n){if(n=i.parseBool(n),e=i.parseDate(e),t=i.parseDate(t),e instanceof Error)return e;if(t instanceof Error)return t;if(n instanceof Error)return n;var r,a,o=e.getMonth(),s=t.getMonth();if(n)r=31===e.getDate()?30:e.getDate(),a=31===t.getDate()?30:t.getDate();else{var l=new Date(e.getFullYear(),o+1,0).getDate(),u=new Date(t.getFullYear(),s+1,0).getDate();r=e.getDate()===l?30:e.getDate(),t.getDate()===u?r<30?(s++,a=1):a=30:a=t.getDate()}return 360*(t.getFullYear()-e.getFullYear())+30*(s-o)+(a-r)},t.EDATE=function(e,t){return(e=i.parseDate(e))instanceof Error?e:isNaN(t)?r.value:(t=parseInt(t,10),e.setMonth(e.getMonth()+t),d(e))},t.EOMONTH=function(e,t){return(e=i.parseDate(e))instanceof Error?e:isNaN(t)?r.value:(t=parseInt(t,10),d(new Date(e.getFullYear(),e.getMonth()+t+1,0)))},t.HOUR=function(e){return(e=i.parseDate(e))instanceof Error?e:e.getHours()},t.INTERVAL=function(e){if("number"!=typeof e&&"string"!=typeof e)return r.value;e=parseInt(e,10);var t=Math.floor(e/94608e4);e%=94608e4;var n=Math.floor(e/2592e3);e%=2592e3;var i=Math.floor(e/86400);e%=86400;var a=Math.floor(e/3600);e%=3600;var o=Math.floor(e/60),s=e%=60;return"P"+(t=t>0?t+"Y":"")+(n=n>0?n+"M":"")+(i=i>0?i+"D":"")+"T"+(a=a>0?a+"H":"")+(o=o>0?o+"M":"")+(s=s>0?s+"S":"")},t.ISOWEEKNUM=function(e){if((e=i.parseDate(e))instanceof Error)return e;e.setHours(0,0,0),e.setDate(e.getDate()+4-(e.getDay()||7));var t=new Date(e.getFullYear(),0,1);return Math.ceil(((e-t)/864e5+1)/7)},t.MINUTE=function(e){return(e=i.parseDate(e))instanceof Error?e:e.getMinutes()},t.MONTH=function(e){return(e=i.parseDate(e))instanceof Error?e:e.getMonth()+1},t.NETWORKDAYS=function(e,t,n){return this.NETWORKDAYS.INTL(e,t,1,n)},t.NETWORKDAYS.INTL=function(e,t,n,a){if((e=i.parseDate(e))instanceof Error)return e;if((t=i.parseDate(t))instanceof Error)return t;if(!((n=void 0===n?l[1]:l[n])instanceof Array))return r.value;void 0===a?a=[]:a instanceof Array||(a=[a]);for(var o=0;o0?d.getUTCDay():d.getDay(),f=!1;h!==n[0]&&h!==n[1]||(f=!0);for(var p=0;pl||a===l&&r>=s))return(o===d&&u(o)||function(e,t){var n=e.getFullYear(),r=new Date(n,2,1);if(u(n)&&e=r)return!0;var i=t.getFullYear(),a=new Date(i,2,1);return u(i)&&t>=a&&e=0;)t+=e[n];return t},e.sumsqrd=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n]*e[n];return t},e.sumsqerr=function(t){for(var n,r=e.mean(t),i=0,a=t.length;--a>=0;)i+=(n=t[a]-r)*n;return i},e.sumrow=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n];return t},e.product=function(e){for(var t=1,n=e.length;--n>=0;)t*=e[n];return t},e.min=function(e){for(var t=e[0],n=0;++nt&&(t=e[n]);return t},e.unique=function(e){for(var t={},n=[],r=0;ro?(l=[i[t]],o=a,s=0):a===o&&(l.push(i[t]),s++),a=1);return 0===s?l[0]:l},e.range=function(t){return e.max(t)-e.min(t)},e.variance=function(t,n){return e.sumsqerr(t)/(t.length-(n?1:0))},e.pooledvariance=function(t){return t.reduce((function(t,n){return t+e.sumsqerr(n)}),0)/(t.reduce((function(e,t){return e+t.length}),0)-t.length)},e.deviation=function(t){for(var n=e.mean(t),r=t.length,i=new Array(r),a=0;a=0;a--)i.push(t.abs(n[a]-r));return e.mean(i)},e.meddev=function(n){for(var r=e.median(n),i=[],a=n.length-1;a>=0;a--)i.push(t.abs(n[a]-r));return e.median(i)},e.coeffvar=function(t){return e.stdev(t)/e.mean(t)},e.quartiles=function(e){var n=e.length,i=e.slice().sort(r);return[i[t.round(n/4)-1],i[t.round(n/2)-1],i[t.round(3*n/4)-1]]},e.quantiles=function(e,n,a,o){var s,l,u,c,d,h=e.slice().sort(r),f=[n.length],p=e.length;for(void 0===a&&(a=3/8),void 0===o&&(o=3/8),s=0;s1){for(l=!0===r?this:this.transpose();s1){for("sumrow"!==t&&(l=!0===r?this:this.transpose());s1){for(s=s.transpose();on?t:n;return e.pow(10,17-~~(e.log(r>0?r:-r)*e.LOG10E))}var o=Array.isArray||function(e){return"[object Array]"===i.call(e)};function s(e){return"[object Function]"===i.call(e)}function l(e){return"number"==typeof e&&e-e==0}function u(){return new u._init(arguments)}function c(){return 0}function d(){return 1}function h(e,t){return e===t?1:0}u.fn=u.prototype,u._init=function(e){if(o(e[0]))if(o(e[0][0])){s(e[1])&&(e[0]=u.map(e[0],e[1]));for(var t=0;t=0;t--,r++)n[r]=[e[r][t]];return n},u.transpose=function(e){var t,n,r,i,a,s=[];for(o(e[0])||(e=[e]),n=e.length,r=e[0].length,a=0;a0&&(s[r][0]=e[r][0]),l=1;lt&&n>0)return[];if(n>0)for(r=e;rt;r+=n)i.push(r);return i},u.slice=function(){function e(e,t,n,r){var i,a=[],o=e.length;if(void 0===t&&void 0===n&&void 0===r)return u.copy(e);if(r=r||1,(t=(t=t||0)>=0?t:o+t)===(n=(n=n||e.length)>=0?n:o+n)||0===r)return[];if(tn&&r>0)return[];if(r>0)for(i=t;in;i+=r)a.push(e[i]);return a}return function(t,n){var r,i;return l((n=n||{}).row)?l(n.col)?t[n.row][n.col]:e(u.rowa(t,n.row),(r=n.col||{}).start,r.end,r.step):l(n.col)?e(u.cola(t,n.col),(i=n.row||{}).start,i.end,i.step):(i=n.row||{},r=n.col||{},e(t,i.start,i.end,i.step).map((function(t){return e(t,r.start,r.end,r.step)})))}}(),u.sliceAssign=function(t,n,r){var i,a;if(l(n.row)){if(l(n.col))return t[n.row][n.col]=r;n.col=n.col||{},n.col.start=n.col.start||0,n.col.end=n.col.end||t[0].length,n.col.step=n.col.step||1,i=u.arange(n.col.start,e.min(t.length,n.col.end),n.col.step);var o=n.row;return i.forEach((function(e,n){t[o][e]=r[n]})),t}if(l(n.col)){n.row=n.row||{},n.row.start=n.row.start||0,n.row.end=n.row.end||t.length,n.row.step=n.row.step||1,a=u.arange(n.row.start,e.min(t[0].length,n.row.end),n.row.step);var s=n.col;return a.forEach((function(e,n){t[e][s]=r[n]})),t}return void 0===r[0].length&&(r=[r]),n.row.start=n.row.start||0,n.row.end=n.row.end||t.length,n.row.step=n.row.step||1,n.col.start=n.col.start||0,n.col.end=n.col.end||t[0].length,n.col.step=n.col.step||1,a=u.arange(n.row.start,e.min(t.length,n.row.end),n.row.step),i=u.arange(n.col.start,e.min(t[0].length,n.col.end),n.col.step),a.forEach((function(e,n){i.forEach((function(i,a){t[e][i]=r[n][a]}))})),t},u.diagonal=function(e){var t=u.zeros(e.length,e.length);return e.forEach((function(e,n){t[n][n]=e})),t},u.copy=function(e){return e.map((function(e){return l(e)?e:e.map((function(e){return e}))}))};var f=u.prototype;return f.length=0,f.push=Array.prototype.push,f.sort=Array.prototype.sort,f.splice=Array.prototype.splice,f.slice=Array.prototype.slice,f.toArray=function(){return this.length>1?r.call(this):r.call(this)[0]},f.map=function(e,t){return u(u.map(this,e,t))},f.cumreduce=function(e,t){return u(u.cumreduce(this,e,t))},f.alter=function(e){return u.alter(this,e),this},function(e){for(var t=0;t=0;s--)o*=r,o+=u[s];if(a=o/n+.5*t.log(i)+(n-.5)*t.log(n)-n,e<=7)for(s=1;s<=l;s++)a-=t.log(n-1),n-=1;return a},e.gammafn=function(e){var n,r,i,a,o=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],s=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],l=!1,u=0,c=0,d=0,h=e;if(h<=0){if(!(a=h%1+36e-17))return 1/0;l=(1&h?-1:1)*t.PI/t.sin(t.PI*a),h=1-h}for(i=h,r=h<1?h++:(h-=u=(0|h)-1)-1,n=0;n<8;++n)d=(d+o[n])*r,c=c*r+s[n];if(a=d/c+1,ih)for(n=0;n=1?n:1/n)+.4*n+17);if(r<0||n<=0)return NaN;if(r170||r>170?t.exp(e.combinationln(n,r)):e.factorial(n)/e.factorial(r)/e.factorial(n-r)},e.combinationln=function(t,n){return e.factorialln(t)-e.factorialln(n)-e.factorialln(t-n)},e.permutation=function(t,n){return e.factorial(t)/e.factorial(t-n)},e.betafn=function(n,r){if(!(n<=0||r<=0))return n+r>170?t.exp(e.betaln(n,r)):e.gammafn(n)*e.gammafn(r)/e.gammafn(n+r)},e.betaln=function(t,n){return e.gammaln(t)+e.gammaln(n)-e.gammaln(t+n)},e.betacf=function(e,n,r){var i,a,o,s,l=1,u=n+r,c=n+1,d=n-1,h=1,f=1-u*e/c;for(t.abs(f)<1e-30&&(f=1e-30),s=f=1/f;l<=100&&(f=1+(a=l*(r-l)*e/((d+(i=2*l))*(n+i)))*f,t.abs(f)<1e-30&&(f=1e-30),h=1+a/h,t.abs(h)<1e-30&&(h=1e-30),s*=(f=1/f)*h,f=1+(a=-(n+l)*(u+l)*e/((n+i)*(c+i)))*f,t.abs(f)<1e-30&&(f=1e-30),h=1+a/h,t.abs(h)<1e-30&&(h=1e-30),s*=o=(f=1/f)*h,!(t.abs(o-1)<3e-7));l++);return s},e.gammapinv=function(n,r){var i,a,o,s,l,u,c=0,d=r-1,h=e.gammaln(r);if(n>=1)return t.max(100,r+100*t.sqrt(r));if(n<=0)return 0;for(r>1?(l=t.log(d),u=t.exp(d*(l-1)-h),s=n<.5?n:1-n,i=(2.30753+.27061*(a=t.sqrt(-2*t.log(s))))/(1+a*(.99229+.04481*a))-a,n<.5&&(i=-i),i=t.max(.001,r*t.pow(1-1/(9*r)-i/(3*t.sqrt(r)),3))):i=n<(a=1-r*(.253+.12*r))?t.pow(n/a,1/r):1-t.log(1-(n-a)/(1-a));c<12;c++){if(i<=0)return 0;if((i-=a=(o=(e.lowRegGamma(r,i)-n)/(a=r>1?u*t.exp(-(i-d)+d*(t.log(i)-l)):t.exp(-i+d*t.log(i)-h)))/(1-.5*t.min(1,o*((r-1)/i-1))))<=0&&(i=.5*(i+a)),t.abs(a)<1e-8*i)break}return i},e.erf=function(e){var n,r,i,a,o=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-.000946595344482036,.000366839497852761,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,1.5626441722e-8,-8.5238095915e-8,6.529054439e-9,5.059343495e-9,-9.91364156e-10,-2.27365122e-10,96467911e-18,2394038e-18,-6886027e-18,894487e-18,313092e-18,-112708e-18,381e-18,7106e-18,-1523e-18,-94e-18,121e-18,-28e-18],s=o.length-1,l=!1,u=0,c=0;for(e<0&&(e=-e,l=!0),r=4*(n=2/(2+e))-2;s>0;s--)i=u,u=r*u-c+o[s],c=i;return a=n*t.exp(-e*e+.5*(o[0]+r*u)-c),l?a-1:1-a},e.erfc=function(t){return 1-e.erf(t)},e.erfcinv=function(n){var r,i,a,o,s=0;if(n>=2)return-100;if(n<=0)return 100;for(o=n<1?n:2-n,r=-.70711*((2.30753+.27061*(a=t.sqrt(-2*t.log(o/2))))/(1+a*(.99229+.04481*a))-a);s<2;s++)r+=(i=e.erfc(r)-o)/(1.1283791670955126*t.exp(-r*r)-r*i);return n<1?r:-r},e.ibetainv=function(n,r,i){var a,o,s,l,u,c,d,h,f,p,m=r-1,g=i-1,v=0;if(n<=0)return 0;if(n>=1)return 1;for(r>=1&&i>=1?(s=n<.5?n:1-n,c=(2.30753+.27061*(l=t.sqrt(-2*t.log(s))))/(1+l*(.99229+.04481*l))-l,n<.5&&(c=-c),d=(c*c-3)/6,h=2/(1/(2*r-1)+1/(2*i-1)),f=c*t.sqrt(d+h)/h-(1/(2*i-1)-1/(2*r-1))*(d+5/6-2/(3*h)),c=r/(r+i*t.exp(2*f))):(a=t.log(r/(r+i)),o=t.log(i/(r+i)),c=n<(l=t.exp(r*a)/r)/(f=l+(u=t.exp(i*o)/i))?t.pow(r*f*n,1/r):1-t.pow(i*f*(1-n),1/i)),p=-e.gammaln(r)-e.gammaln(i)+e.gammaln(r+i);v<10;v++){if(0===c||1===c)return c;if((c-=l=(u=(e.ibeta(c,r,i)-n)/(l=t.exp(m*t.log(c)+g*t.log(1-c)+p)))/(1-.5*t.min(1,u*(m/c-g/(1-c)))))<=0&&(c=.5*(c+l)),c>=1&&(c=.5*(c+l+1)),t.abs(l)<1e-8*c&&v>0)break}return c},e.ibeta=function(n,r,i){var a=0===n||1===n?0:t.exp(e.gammaln(r+i)-e.gammaln(r)-e.gammaln(i)+r*t.log(n)+i*t.log(1-n));return!(n<0||n>1)&&(n<(r+1)/(r+i+2)?a*e.betacf(n,r,i)/r:1-a*e.betacf(1-n,i,r)/i)},e.randn=function(n,r){var i,a,o,s,l;if(r||(r=n),n)return e.create(n,r,(function(){return e.randn()}));do{i=e._random_fn(),a=1.7156*(e._random_fn()-.5),l=(o=i-.449871)*o+(s=t.abs(a)+.386595)*(.196*s-.25472*o)}while(l>.27597&&(l>.27846||a*a>-4*t.log(i)*i*i));return a/i},e.randg=function(n,r,i){var a,o,s,l,u,c,d=n;if(i||(i=r),n||(n=1),r)return(c=e.zeros(r,i)).alter((function(){return e.randg(n)})),c;n<1&&(n+=1),a=n-1/3,o=1/t.sqrt(9*a);do{do{l=1+o*(u=e.randn())}while(l<=0);l*=l*l,s=e._random_fn()}while(s>1-.331*t.pow(u,4)&&t.log(s)>.5*u*u+a*(1-l+t.log(l)));if(n==d)return a*l;do{s=e._random_fn()}while(0===s);return t.pow(s,1/d)*a*l},function(t){for(var n=0;ni;)d=l,s=u+(a=-(n+c)*(n+r+c)*e/(n+2*c)/(n+2*c+1))*s,l=(o=l+a*o)+(a=(c+=1)*(r-c)*e/(n+2*c-1)/(n+2*c))*l,o/=u=s+a*u,s/=u,l/=u,u=1;return l/n}function r(n,r,i){var a=[.9815606342467192,.9041172563704749,.7699026741943047,.5873179542866175,.3678314989981802,.1252334085114689],o=[.04717533638651183,.10693932599531843,.16007832854334622,.20316742672306592,.2334925365383548,.24914704581340277],s=.5*n;if(s>=8)return 1;var l,u=2*e.normal.cdf(s,0,1,1,0)-1;u=u>=t.exp(-50/i)?t.pow(u,i):0;for(var c=s,d=(8-s)/(l=n>3?2:3),h=c+d,f=0,p=i-1,m=1;m<=l;m++){for(var g=0,v=.5*(h+c),_=.5*(h-c),y=1;y<=12;y++){var b,S=v+_*(660)break;var E=2*e.normal.cdf(S,0,1,1,0)*.5-2*e.normal.cdf(S,n,1,1,0)*.5;E>=t.exp(-30/p)&&(g+=E=o[b-1]*t.exp(-.5*w)*t.pow(E,p))}f+=g*=2*_*i/t.sqrt(2*t.PI),c=h,h+=d}return(u+=f)<=t.exp(-30/r)?0:(u=t.pow(u,r))>=1?1:u}!function(t){for(var n=0;n1||n<0?0:1==r&&1==i?1:r<512&&i<512?t.pow(n,r-1)*t.pow(1-n,i-1)/e.betafn(r,i):t.exp((r-1)*t.log(n)+(i-1)*t.log(1-n)-e.betaln(r,i))},cdf:function(t,n,r){return t>1||t<0?1*(t>1):e.ibeta(t,n,r)},inv:function(t,n,r){return e.ibetainv(t,n,r)},mean:function(e,t){return e/(e+t)},median:function(t,n){return e.ibetainv(.5,t,n)},mode:function(e,t){return(e-1)/(e+t-2)},sample:function(t,n){var r=e.randg(t);return r/(r+e.randg(n))},variance:function(e,n){return e*n/(t.pow(e+n,2)*(e+n+1))}}),e.extend(e.centralF,{pdf:function(n,r,i){var a;return n<0?0:r<=2?0===n&&r<2?1/0:0===n&&2===r?1:1/e.betafn(r/2,i/2)*t.pow(r/i,r/2)*t.pow(n,r/2-1)*t.pow(1+r/i*n,-(r+i)/2):(a=r*n/(i+n*r),r*(i/(i+n*r))/2*e.binomial.pdf((r-2)/2,(r+i-2)/2,a))},cdf:function(t,n,r){return t<0?0:e.ibeta(n*t/(n*t+r),n/2,r/2)},inv:function(t,n,r){return r/(n*(1/e.ibetainv(t,n/2,r/2)-1))},mean:function(e,t){return t>2?t/(t-2):void 0},mode:function(e,t){return e>2?t*(e-2)/(e*(t+2)):void 0},sample:function(t,n){return 2*e.randg(t/2)/t/(2*e.randg(n/2)/n)},variance:function(e,t){if(!(t<=4))return 2*t*t*(e+t-2)/(e*(t-2)*(t-2)*(t-4))}}),e.extend(e.cauchy,{pdf:function(e,n,r){return r<0?0:r/(t.pow(e-n,2)+t.pow(r,2))/t.PI},cdf:function(e,n,r){return t.atan((e-n)/r)/t.PI+.5},inv:function(e,n,r){return n+r*t.tan(t.PI*(e-.5))},median:function(e){return e},mode:function(e){return e},sample:function(n,r){return e.randn()*t.sqrt(1/(2*e.randg(.5)))*r+n}}),e.extend(e.chisquare,{pdf:function(n,r){return n<0?0:0===n&&2===r?.5:t.exp((r/2-1)*t.log(n)-n/2-r/2*t.log(2)-e.gammaln(r/2))},cdf:function(t,n){return t<0?0:e.lowRegGamma(n/2,t/2)},inv:function(t,n){return 2*e.gammapinv(t,.5*n)},mean:function(e){return e},median:function(e){return e*t.pow(1-2/(9*e),3)},mode:function(e){return e-2>0?e-2:0},sample:function(t){return 2*e.randg(t/2)},variance:function(e){return 2*e}}),e.extend(e.exponential,{pdf:function(e,n){return e<0?0:n*t.exp(-n*e)},cdf:function(e,n){return e<0?0:1-t.exp(-n*e)},inv:function(e,n){return-t.log(1-e)/n},mean:function(e){return 1/e},median:function(e){return 1/e*t.log(2)},mode:function(){return 0},sample:function(n){return-1/n*t.log(e._random_fn())},variance:function(e){return t.pow(e,-2)}}),e.extend(e.gamma,{pdf:function(n,r,i){return n<0?0:0===n&&1===r?1/i:t.exp((r-1)*t.log(n)-n/i-e.gammaln(r)-r*t.log(i))},cdf:function(t,n,r){return t<0?0:e.lowRegGamma(n,t/r)},inv:function(t,n,r){return e.gammapinv(t,n)*r},mean:function(e,t){return e*t},mode:function(e,t){if(e>1)return(e-1)*t},sample:function(t,n){return e.randg(t)*n},variance:function(e,t){return e*t*t}}),e.extend(e.invgamma,{pdf:function(n,r,i){return n<=0?0:t.exp(-(r+1)*t.log(n)-i/n-e.gammaln(r)+r*t.log(i))},cdf:function(t,n,r){return t<=0?0:1-e.lowRegGamma(n,r/t)},inv:function(t,n,r){return r/e.gammapinv(1-t,n)},mean:function(e,t){return e>1?t/(e-1):void 0},mode:function(e,t){return t/(e+1)},sample:function(t,n){return n/e.randg(t)},variance:function(e,t){if(!(e<=2))return t*t/((e-1)*(e-1)*(e-2))}}),e.extend(e.kumaraswamy,{pdf:function(e,n,r){return 0===e&&1===n?r:1===e&&1===r?n:t.exp(t.log(n)+t.log(r)+(n-1)*t.log(e)+(r-1)*t.log(1-t.pow(e,n)))},cdf:function(e,n,r){return e<0?0:e>1?1:1-t.pow(1-t.pow(e,n),r)},inv:function(e,n,r){return t.pow(1-t.pow(1-e,1/r),1/n)},mean:function(t,n){return n*e.gammafn(1+1/t)*e.gammafn(n)/e.gammafn(1+1/t+n)},median:function(e,n){return t.pow(1-t.pow(2,-1/n),1/e)},mode:function(e,n){if(e>=1&&n>=1&&1!==e&&1!==n)return t.pow((e-1)/(e*n-1),1/e)},variance:function(){throw new Error("variance not yet implemented")}}),e.extend(e.lognormal,{pdf:function(e,n,r){return e<=0?0:t.exp(-t.log(e)-.5*t.log(2*t.PI)-t.log(r)-t.pow(t.log(e)-n,2)/(2*r*r))},cdf:function(n,r,i){return n<0?0:.5+.5*e.erf((t.log(n)-r)/t.sqrt(2*i*i))},inv:function(n,r,i){return t.exp(-1.4142135623730951*i*e.erfcinv(2*n)+r)},mean:function(e,n){return t.exp(e+n*n/2)},median:function(e){return t.exp(e)},mode:function(e,n){return t.exp(e-n*n)},sample:function(n,r){return t.exp(e.randn()*r+n)},variance:function(e,n){return(t.exp(n*n)-1)*t.exp(2*e+n*n)}}),e.extend(e.noncentralt,{pdf:function(n,r,i){return t.abs(i)<1e-14?e.studentt.pdf(n,r):t.abs(n)<1e-14?t.exp(e.gammaln((r+1)/2)-i*i/2-.5*t.log(t.PI*r)-e.gammaln(r/2)):r/n*(e.noncentralt.cdf(n*t.sqrt(1+2/r),r+2,i)-e.noncentralt.cdf(n,r,i))},cdf:function(n,r,i){if(t.abs(i)<1e-14)return e.studentt.cdf(n,r);var a=!1;n<0&&(a=!0,i=-i);for(var o=e.normal.cdf(-i,0,1),s=1e-14+1,l=s,u=n*n/(n*n+r),c=0,d=t.exp(-i*i/2),h=t.exp(-i*i/2-.5*t.log(2)-e.gammaln(1.5))*i;c<200||l>1e-14||s>1e-14;)l=s,c>0&&(d*=i*i/(2*c),h*=i*i/(2*(c+.5))),o+=.5*(s=d*e.beta.cdf(u,c+.5,r/2)+h*e.beta.cdf(u,c+1,r/2)),c++;return a?1-o:o}}),e.extend(e.normal,{pdf:function(e,n,r){return t.exp(-.5*t.log(2*t.PI)-t.log(r)-t.pow(e-n,2)/(2*r*r))},cdf:function(n,r,i){return.5*(1+e.erf((n-r)/t.sqrt(2*i*i)))},inv:function(t,n,r){return-1.4142135623730951*r*e.erfcinv(2*t)+n},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},sample:function(t,n){return e.randn()*n+t},variance:function(e,t){return t*t}}),e.extend(e.pareto,{pdf:function(e,n,r){return e1e100?1e100:r,1/(t.sqrt(r)*e.betafn(.5,r/2))*t.pow(1+n*n/r,-(r+1)/2)},cdf:function(n,r){var i=r/2;return e.ibeta((n+t.sqrt(n*n+r))/(2*t.sqrt(n*n+r)),i,i)},inv:function(n,r){var i=e.ibetainv(2*t.min(n,1-n),.5*r,.5);return i=t.sqrt(r*(1-i)/i),n>.5?i:-i},mean:function(e){return e>1?0:void 0},median:function(){return 0},mode:function(){return 0},sample:function(n){return e.randn()*t.sqrt(n/(2*e.randg(n/2)))},variance:function(e){return e>2?e/(e-2):e>1?1/0:void 0}}),e.extend(e.weibull,{pdf:function(e,n,r){return e<0||n<0||r<0?0:r/n*t.pow(e/n,r-1)*t.exp(-t.pow(e/n,r))},cdf:function(e,n,r){return e<0?0:1-t.exp(-t.pow(e/n,r))},inv:function(e,n,r){return n*t.pow(-t.log(1-e),1/r)},mean:function(t,n){return t*e.gammafn(1+1/n)},median:function(e,n){return e*t.pow(t.log(2),1/n)},mode:function(e,n){return n<=1?0:e*t.pow((n-1)/n,1/n)},sample:function(n,r){return n*t.pow(-t.log(e._random_fn()),1/r)},variance:function(n,r){return n*n*e.gammafn(1+2/r)-t.pow(e.weibull.mean(n,r),2)}}),e.extend(e.uniform,{pdf:function(e,t,n){return en?0:1/(n-t)},cdf:function(e,t,n){return e=i)return 1;if(a<0||a>1||i<=0)return NaN;var s=a,l=(r=t.floor(r))+1,u=i-r,c=l+u,d=t.exp(e.gammaln(c)-e.gammaln(u)-e.gammaln(l)+l*t.log(s)+u*t.log(1-s));return o=s<(l+1)/(c+2)?d*n(s,l,u,1e-10):1-d*n(1-s,u,l,1e-10),t.round(1/1e-10*(1-o))/(1/1e-10)}}),e.extend(e.negbin,{pdf:function(n,r,i){return n===n>>>0&&(n<0?0:e.combination(n+r-1,r-1)*t.pow(1-i,n)*t.pow(i,r))},cdf:function(t,n,r){var i=0,a=0;if(t<0)return 0;for(;a<=t;a++)i+=e.negbin.pdf(a,n,r);return i}}),e.extend(e.hypgeom,{pdf:function(n,r,i,a){if(n!=n|0)return!1;if(n<0||na||n>i)return 0;if(2*i>r)return 2*a>r?e.hypgeom.pdf(r-i-a+n,r,r-i,r-a):e.hypgeom.pdf(a-n,r,r-i,a);if(2*a>r)return e.hypgeom.pdf(i-n,r,i,r-a);if(i1&&s=a||n>=i)return 1;if(2*i>r)return 2*a>r?e.hypgeom.cdf(r-i-a+n,r,r-i,r-a):1-e.hypgeom.cdf(a-n-1,r,r-i,a);if(2*a>r)return 1-e.hypgeom.cdf(i-n-1,r,i,r-a);if(i1&&la);return i-1},sampleLarge:function(n){var r,i,a,o,s,l,u,c,d,h,f=n;for(o=t.sqrt(f),s=t.log(f),l=.02483*(u=.931+2.53*o)-.059,c=1.1239+1.1328/(u-3.4),d=.9277-3.6224/(u-2);;){if(i=t.random()-.5,a=t.random(),h=.5-t.abs(i),r=t.floor((2*l/h+u)*i+f+.43),h>=.07&&a<=d)return r;if(!(r<0||h<.013&&a>h)&&t.log(a)+t.log(c)-t.log(l/(h*h)+u)<=r*s-f-e.loggam(r+1))return r}},sample:function(e){return e<10?this.sampleSmall(e):this.sampleLarge(e)}}),e.extend(e.triangular,{pdf:function(e,t,n,r){return n<=t||rn?NaN:en?0:er?NaN:e<=n?0:e>=r?1:e<=i?t.pow(e-n,2)/((r-n)*(i-n)):1-t.pow(r-e,2)/((r-n)*(r-i))},inv:function(e,n,r,i){return r<=n||ir?NaN:e<=(i-n)/(r-n)?n+(r-n)*t.sqrt(e*((i-n)/(r-n))):n+(r-n)*(1-t.sqrt((1-e)*(1-(i-n)/(r-n))))},mean:function(e,t,n){return(e+t+n)/3},median:function(e,n,r){return r<=(e+n)/2?n-t.sqrt((n-e)*(n-r))/t.sqrt(2):r>(e+n)/2?e+t.sqrt((n-e)*(r-e))/t.sqrt(2):void 0},mode:function(e,t,n){return n},sample:function(n,r,i){var a=e._random_fn();return a<(i-n)/(r-n)?n+t.sqrt(a*(r-n)*(i-n)):r-t.sqrt((1-a)*(r-n)*(r-i))},variance:function(e,t,n){return(e*e+t*t+n*n-e*t-e*n-t*n)/18}}),e.extend(e.arcsine,{pdf:function(e,n,r){return r<=n?NaN:e<=n||e>=r?0:2/t.PI*t.pow(t.pow(r-n,2)-t.pow(2*e-n-r,2),-.5)},cdf:function(e,n,r){return e25e3)return r(n,1,o);var u,c=.5*a,d=c*t.log(a)-a*t.log(2)-e.gammaln(c),h=c-1,f=.25*a;u=a<=100?1:a<=800?.5:a<=5e3?.25:.125,d+=t.log(u);for(var p=0,m=1;m<=50;m++){for(var g=0,v=(2*m-1)*u,_=1;_<=16;_++){var y,b;8<_?(y=_-8-1,b=d+h*t.log(v+s[y]*u)-(s[y]*u+v)*f):(y=_-1,b=d+h*t.log(v-s[y]*u)+(s[y]*u-v)*f),b>=-30&&(g+=r(8<_?n*t.sqrt(.5*(s[y]*u+v)):n*t.sqrt(.5*(-s[y]*u+v)),1,o)*l[y]*t.exp(b))}if(m*u>=1&&g<=1e-14)break;p+=g}if(g>1e-14)throw new Error("tukey.cdf failed to converge");return p>1&&(p=1),p},inv:function(n,r,i){if(i<2||r<2)return NaN;if(n<0||n>1)return NaN;if(0===n)return 0;if(1===n)return 1/0;var a,o=function(e,n,r){var i=.5-.5*e,a=t.sqrt(t.log(1/(i*i))),o=a+((((-453642210148e-16*a-.204231210125)*a-.342242088547)*a-1)*a+.322232421088)/((((.0038560700634*a+.10353775285)*a+.531103462366)*a+.588581570495)*a+.099348462606);r<120&&(o+=(o*o*o+o)/r/4);var s=.8832-.2368*o;return r<120&&(s+=-1.214/r+1.208*o/r),o*(s*t.log(n-1)+1.4142)}(n,r,i),s=e.tukey.cdf(o,r,i)-n;a=s>0?t.max(0,o-1):o+1;for(var l,u=e.tukey.cdf(a,r,i)-n,c=1;c<50;c++)if(l=a-u*(a-o)/(u-s),s=u,o=a,l<0&&(l=0,u=-n),u=e.tukey.cdf(l,r,i)-n,a=l,t.abs(a-o)<1e-4)return l;throw new Error("tukey.inv failed to converge")}})}(r,Math),function(e,t){var n,r,i=Array.prototype.push,a=e.utils.isArray;function o(t){return a(t)||t instanceof e}e.extend({add:function(t,n){return o(n)?(o(n[0])||(n=[n]),e.map(t,(function(e,t,r){return e+n[t][r]}))):e.map(t,(function(e){return e+n}))},subtract:function(t,n){return o(n)?(o(n[0])||(n=[n]),e.map(t,(function(e,t,r){return e-n[t][r]||0}))):e.map(t,(function(e){return e-n}))},divide:function(t,n){return o(n)?(o(n[0])||(n=[n]),e.multiply(t,e.inv(n))):e.map(t,(function(e){return e/n}))},multiply:function(t,n){var r,i,a,s,l,u,c,d;if(void 0===t.length&&void 0===n.length)return t*n;if(l=t.length,u=t[0].length,c=e.zeros(l,a=o(n)?n[0].length:u),d=0,o(n)){for(;d=0;l--){for(f=0,u=l+1;u<=c-1;u++)f+=p[u]*n[l][u];p[l]=(n[l][i-1]-f)/n[l][l]}return p},gauss_jordan:function(n,r){var i,a,o,s=e.aug(n,r),l=s.length,u=s[0].length,c=0;for(a=0;at.abs(s[d][a])&&(d=o);var h=s[a];for(s[a]=s[d],s[d]=h,o=a+1;o=0;a--){for(c=s[a][a],o=0;oa-1;i--)s[o][i]-=s[a][i]*s[o][a]/c;for(s[a][a]/=c,i=l;id?(f[c][d]=n[c][d],p[c][d]=m[c][d]=0):ca;)o=u,u=e.add(e.multiply(l,o),s),c++;return u},gauss_seidel:function(n,r,i,a){for(var o,s,l,u,c,d=0,h=n.length,f=[],p=[],m=[];do?(f[d][o]=n[d][o],p[d][o]=m[d][o]=0):da;)s=c,c=e.add(e.multiply(u,s),l),d+=1;return c},SOR:function(n,r,i,a,o){for(var s,l,u,c,d,h=0,f=n.length,p=[],m=[],g=[];hs?(p[h][s]=n[h][s],m[h][s]=g[h][s]=0):ha;)l=d,d=e.add(e.multiply(c,l),u),h++;return d},householder:function(n){for(var r,i,a,o,s=n.length,l=n[0].length,u=0,c=[],d=[];u0?-1:1)*t.sqrt(r),i=t.sqrt((r*r-n[u+1][u]*r)/2),(c=e.zeros(s,1))[u+1][0]=(n[u+1][u]-r)/(2*i),a=u+2;a0?t.PI/4:-t.PI/4:t.atan(2*n[a][o]/(n[a][a]-n[o][o]))/2,(u=e.identity(d,d))[a][a]=t.cos(l),u[a][o]=-t.sin(l),u[o][a]=t.sin(l),u[o][o]=t.cos(l),h=e.multiply(h,u),n=e.multiply(e.multiply(e.inv(u),n),u),c=0,r=1;r.001&&(c=1)}for(r=0;r=d;)o=a(e,r+i),s=a(e,r),f[h]=(n[o]-2*n[s]+n[2*s-o])/(i*i),i/=2,h++;for(u=f.length,l=1;1!=u;){for(c=0;cr);i++);return n[i-=1]+(r-t[i])*h[i]+e.sq(r-t[i])*a[i]+(r-t[i])*e.sq(r-t[i])*f[i]},gauss_quadrature:function(){throw new Error("gauss_quadrature not yet implemented")},PCA:function(t){var n,r,i,a,o,s=t.length,l=t[0].length,u=0,c=[],d=[],h=[],f=[],p=[],m=[],g=[];for(u=0;u1||r>1||e<=0||r<=0)throw new Error("Proportions should be greater than 0 and less than 1");var a=(e*n+r*i)/(n+i);return(e-r)/t.sqrt(a*(1-a)*(1/n+1/i))}e.extend({zscore:function(){var t=n.call(arguments);return r(t[1])?(t[0]-t[1])/t[2]:(t[0]-e.mean(t[1]))/e.stdev(t[1],t[2])},ztest:function(){var r,a=n.call(arguments);return i(a[1])?(r=e.zscore(a[0],a[1],a[3]),1===a[2]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1)):a.length>2?(r=e.zscore(a[0],a[1],a[2]),1===a[3]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1)):(r=a[0],1===a[1]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1))}}),e.extend(e.fn,{zscore:function(e,t){return(e-this.mean())/this.stdev(t)},ztest:function(n,r,i){var a=t.abs(this.zscore(n,i));return 1===r?e.normal.cdf(-a,0,1):2*e.normal.cdf(-a,0,1)}}),e.extend({tscore:function(){var r=n.call(arguments);return 4===r.length?(r[0]-r[1])/(r[2]/t.sqrt(r[3])):(r[0]-e.mean(r[1]))/(e.stdev(r[1],!0)/t.sqrt(r[1].length))},ttest:function(){var i,a=n.call(arguments);return 5===a.length?(i=t.abs(e.tscore(a[0],a[1],a[2],a[3])),1===a[4]?e.studentt.cdf(-i,a[3]-1):2*e.studentt.cdf(-i,a[3]-1)):r(a[1])?(i=t.abs(a[0]),1==a[2]?e.studentt.cdf(-i,a[1]-1):2*e.studentt.cdf(-i,a[1]-1)):(i=t.abs(e.tscore(a[0],a[1])),1==a[2]?e.studentt.cdf(-i,a[1].length-1):2*e.studentt.cdf(-i,a[1].length-1))}}),e.extend(e.fn,{tscore:function(e){return(e-this.mean())/(this.stdev(!0)/t.sqrt(this.cols()))},ttest:function(n,r){return 1===r?1-e.studentt.cdf(t.abs(this.tscore(n)),this.cols()-1):2*e.studentt.cdf(-t.abs(this.tscore(n)),this.cols()-1)}}),e.extend({anovafscore:function(){var r,i,a,o,s,l,u,c,d=n.call(arguments);if(1===d.length){for(s=new Array(d[0].length),u=0;u.5?1-n:n)})),c=r.studentt.inv(.975,t.df_resid),d=t.coef.map((function(e,t){var n=c*s[t];return[e-n,e+n]}));return{se:s,t:l,p:u,sigmaHat:o,interval95:d}}return{ols:function(n,i){var a=e(n,i),o=t(a),s=function(e){var t,n,i,a=e.R2/e.df_model/((1-e.R2)/e.df_resid);return{F_statistic:a,pvalue:1-(t=a,n=e.df_model,i=e.df_resid,r.beta.cdf(t/(i/n+t),n/2,i/2))}}(a),l=1-(1-a.R2)*((a.nobs-1)/a.df_resid);return a.t=o,a.f=s,a.adjust_R2=l,a}}}(),r.extend({buildxmatrix:function(){for(var e=new Array(arguments.length),t=0;t1){for(o=[],n=0;n=i.length?a.REPT("0",t-i.length)+i:r.num},t.BIN2OCT=function(e,t){if(!l(e))return r.num;var n=e.toString();if(10===n.length&&"1"===n.substring(0,1))return(1073741312+parseInt(n.substring(1),2)).toString(8);var i=parseInt(e,2).toString(8);return void 0===t?i:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=i.length?a.REPT("0",t-i.length)+i:r.num},t.BITAND=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e&t},t.BITLSHIFT=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?r.num:t>=0?e<>-t},t.BITOR=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e|t},t.BITRSHIFT=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?r.num:t>=0?e>>t:e<<-t},t.BITXOR=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e^t},t.COMPLEX=function(e,t,n){if(e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t))return e;if("i"!==(n=void 0===n?"i":n)&&"j"!==n)return r.value;if(0===e&&0===t)return 0;if(0===e)return 1===t?n:t.toString()+n;if(0===t)return e.toString();var i=t>0?"+":"";return e.toString()+i+(1===t?n:t.toString()+n)},t.CONVERT=function(e,t,n){if((e=o.parseNumber(e))instanceof Error)return e;for(var i,a=[["a.u. of action","?",null,"action",!1,!1,105457168181818e-48],["a.u. of charge","e",null,"electric_charge",!1,!1,160217653141414e-33],["a.u. of energy","Eh",null,"energy",!1,!1,435974417757576e-32],["a.u. of length","a?",null,"length",!1,!1,529177210818182e-25],["a.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["a.u. of time","?/Eh",null,"time",!1,!1,241888432650516e-31],["admiralty knot","admkn",null,"speed",!1,!0,.514773333],["ampere","A",null,"electric_current",!0,!1,1],["ampere per meter","A/m",null,"magnetic_field_intensity",!0,!1,1],["ångström","Å",["ang"],"length",!1,!0,1e-10],["are","ar",null,"area",!1,!0,100],["astronomical unit","ua",null,"length",!1,!1,149597870691667e-25],["bar","bar",null,"pressure",!1,!1,1e5],["barn","b",null,"area",!1,!1,1e-28],["becquerel","Bq",null,"radioactivity",!0,!1,1],["bit","bit",["b"],"information",!1,!0,1],["btu","BTU",["btu"],"energy",!1,!0,1055.05585262],["byte","byte",null,"information",!1,!0,8],["candela","cd",null,"luminous_intensity",!0,!1,1],["candela per square metre","cd/m?",null,"luminance",!0,!1,1],["coulomb","C",null,"electric_charge",!0,!1,1],["cubic ångström","ang3",["ang^3"],"volume",!1,!0,1e-30],["cubic foot","ft3",["ft^3"],"volume",!1,!0,.028316846592],["cubic inch","in3",["in^3"],"volume",!1,!0,16387064e-12],["cubic light-year","ly3",["ly^3"],"volume",!1,!0,846786664623715e-61],["cubic metre","m?",null,"volume",!0,!0,1],["cubic mile","mi3",["mi^3"],"volume",!1,!0,4168181825.44058],["cubic nautical mile","Nmi3",["Nmi^3"],"volume",!1,!0,6352182208],["cubic Pica","Pica3",["Picapt3","Pica^3","Picapt^3"],"volume",!1,!0,7.58660370370369e-8],["cubic yard","yd3",["yd^3"],"volume",!1,!0,.764554857984],["cup","cup",null,"volume",!1,!0,.0002365882365],["dalton","Da",["u"],"mass",!1,!1,166053886282828e-41],["day","d",["day"],"time",!1,!0,86400],["degree","°",null,"angle",!1,!1,.0174532925199433],["degrees Rankine","Rank",null,"temperature",!1,!0,.555555555555556],["dyne","dyn",["dy"],"force",!1,!0,1e-5],["electronvolt","eV",["ev"],"energy",!1,!0,1.60217656514141],["ell","ell",null,"length",!1,!0,1.143],["erg","erg",["e"],"energy",!1,!0,1e-7],["farad","F",null,"electric_capacitance",!0,!1,1],["fluid ounce","oz",null,"volume",!1,!0,295735295625e-16],["foot","ft",null,"length",!1,!0,.3048],["foot-pound","flb",null,"energy",!1,!0,1.3558179483314],["gal","Gal",null,"acceleration",!1,!1,.01],["gallon","gal",null,"volume",!1,!0,.003785411784],["gauss","G",["ga"],"magnetic_flux_density",!1,!0,1],["grain","grain",null,"mass",!1,!0,647989e-10],["gram","g",null,"mass",!1,!0,.001],["gray","Gy",null,"absorbed_dose",!0,!1,1],["gross registered ton","GRT",["regton"],"volume",!1,!0,2.8316846592],["hectare","ha",null,"area",!1,!0,1e4],["henry","H",null,"inductance",!0,!1,1],["hertz","Hz",null,"frequency",!0,!1,1],["horsepower","HP",["h"],"power",!1,!0,745.69987158227],["horsepower-hour","HPh",["hh","hph"],"energy",!1,!0,2684519.538],["hour","h",["hr"],"time",!1,!0,3600],["imperial gallon (U.K.)","uk_gal",null,"volume",!1,!0,.00454609],["imperial hundredweight","lcwt",["uk_cwt","hweight"],"mass",!1,!0,50.802345],["imperial quart (U.K)","uk_qt",null,"volume",!1,!0,.0011365225],["imperial ton","brton",["uk_ton","LTON"],"mass",!1,!0,1016.046909],["inch","in",null,"length",!1,!0,.0254],["international acre","uk_acre",null,"area",!1,!0,4046.8564224],["IT calorie","cal",null,"energy",!1,!0,4.1868],["joule","J",null,"energy",!0,!0,1],["katal","kat",null,"catalytic_activity",!0,!1,1],["kelvin","K",["kel"],"temperature",!0,!0,1],["kilogram","kg",null,"mass",!0,!0,1],["knot","kn",null,"speed",!1,!0,.514444444444444],["light-year","ly",null,"length",!1,!0,9460730472580800],["litre","L",["l","lt"],"volume",!1,!0,.001],["lumen","lm",null,"luminous_flux",!0,!1,1],["lux","lx",null,"illuminance",!0,!1,1],["maxwell","Mx",null,"magnetic_flux",!1,!1,1e-18],["measurement ton","MTON",null,"volume",!1,!0,1.13267386368],["meter per hour","m/h",["m/hr"],"speed",!1,!0,.00027777777777778],["meter per second","m/s",["m/sec"],"speed",!0,!0,1],["meter per second squared","m?s??",null,"acceleration",!0,!1,1],["parsec","pc",["parsec"],"length",!1,!0,0x6da012f958ee1c],["meter squared per second","m?/s",null,"kinematic_viscosity",!0,!1,1],["metre","m",null,"length",!0,!0,1],["miles per hour","mph",null,"speed",!1,!0,.44704],["millimetre of mercury","mmHg",null,"pressure",!1,!1,133.322],["minute","?",null,"angle",!1,!1,.000290888208665722],["minute","min",["mn"],"time",!1,!0,60],["modern teaspoon","tspm",null,"volume",!1,!0,5e-6],["mole","mol",null,"amount_of_substance",!0,!1,1],["morgen","Morgen",null,"area",!1,!0,2500],["n.u. of action","?",null,"action",!1,!1,105457168181818e-48],["n.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["n.u. of speed","c?",null,"speed",!1,!1,299792458],["n.u. of time","?/(me?c??)",null,"time",!1,!1,128808866778687e-35],["nautical mile","M",["Nmi"],"length",!1,!0,1852],["newton","N",null,"force",!0,!0,1],["œrsted","Oe ",null,"magnetic_field_intensity",!1,!1,79.5774715459477],["ohm","Ω",null,"electric_resistance",!0,!1,1],["ounce mass","ozm",null,"mass",!1,!0,.028349523125],["pascal","Pa",null,"pressure",!0,!1,1],["pascal second","Pa?s",null,"dynamic_viscosity",!0,!1,1],["pferdestärke","PS",null,"power",!1,!0,735.49875],["phot","ph",null,"illuminance",!1,!1,1e-4],["pica (1/6 inch)","pica",null,"length",!1,!0,.00035277777777778],["pica (1/72 inch)","Pica",["Picapt"],"length",!1,!0,.00423333333333333],["poise","P",null,"dynamic_viscosity",!1,!1,.1],["pond","pond",null,"force",!1,!0,.00980665],["pound force","lbf",null,"force",!1,!0,4.4482216152605],["pound mass","lbm",null,"mass",!1,!0,.45359237],["quart","qt",null,"volume",!1,!0,.000946352946],["radian","rad",null,"angle",!0,!1,1],["second","?",null,"angle",!1,!1,484813681109536e-20],["second","s",["sec"],"time",!0,!0,1],["short hundredweight","cwt",["shweight"],"mass",!1,!0,45.359237],["siemens","S",null,"electrical_conductance",!0,!1,1],["sievert","Sv",null,"equivalent_dose",!0,!1,1],["slug","sg",null,"mass",!1,!0,14.59390294],["square ångström","ang2",["ang^2"],"area",!1,!0,1e-20],["square foot","ft2",["ft^2"],"area",!1,!0,.09290304],["square inch","in2",["in^2"],"area",!1,!0,64516e-8],["square light-year","ly2",["ly^2"],"area",!1,!0,895054210748189e17],["square meter","m?",null,"area",!0,!0,1],["square mile","mi2",["mi^2"],"area",!1,!0,2589988.110336],["square nautical mile","Nmi2",["Nmi^2"],"area",!1,!0,3429904],["square Pica","Pica2",["Picapt2","Pica^2","Picapt^2"],"area",!1,!0,1792111111111e-17],["square yard","yd2",["yd^2"],"area",!1,!0,.83612736],["statute mile","mi",null,"length",!1,!0,1609.344],["steradian","sr",null,"solid_angle",!0,!1,1],["stilb","sb",null,"luminance",!1,!1,1e-4],["stokes","St",null,"kinematic_viscosity",!1,!1,1e-4],["stone","stone",null,"mass",!1,!0,6.35029318],["tablespoon","tbs",null,"volume",!1,!0,147868e-10],["teaspoon","tsp",null,"volume",!1,!0,492892e-11],["tesla","T",null,"magnetic_flux_density",!0,!0,1],["thermodynamic calorie","c",null,"energy",!1,!0,4.184],["ton","ton",null,"mass",!1,!0,907.18474],["tonne","t",null,"mass",!1,!1,1e3],["U.K. pint","uk_pt",null,"volume",!1,!0,.00056826125],["U.S. bushel","bushel",null,"volume",!1,!0,.03523907],["U.S. oil barrel","barrel",null,"volume",!1,!0,.158987295],["U.S. pint","pt",["us_pt"],"volume",!1,!0,.000473176473],["U.S. survey mile","survey_mi",null,"length",!1,!0,1609.347219],["U.S. survey/statute acre","us_acre",null,"area",!1,!0,4046.87261],["volt","V",null,"voltage",!0,!1,1],["watt","W",null,"power",!0,!0,1],["watt-hour","Wh",["wh"],"energy",!1,!0,3600],["weber","Wb",null,"magnetic_flux",!0,!1,1],["yard","yd",null,"length",!1,!0,.9144],["year","yr",null,"time",!1,!0,31557600]],s={Yi:["yobi",80,12089258196146292e8,"Yi","yotta"],Zi:["zebi",70,11805916207174113e5,"Zi","zetta"],Ei:["exbi",60,0x1000000000000000,"Ei","exa"],Pi:["pebi",50,0x4000000000000,"Pi","peta"],Ti:["tebi",40,1099511627776,"Ti","tera"],Gi:["gibi",30,1073741824,"Gi","giga"],Mi:["mebi",20,1048576,"Mi","mega"],ki:["kibi",10,1024,"ki","kilo"]},l={Y:["yotta",1e24,"Y"],Z:["zetta",1e21,"Z"],E:["exa",1e18,"E"],P:["peta",1e15,"P"],T:["tera",1e12,"T"],G:["giga",1e9,"G"],M:["mega",1e6,"M"],k:["kilo",1e3,"k"],h:["hecto",100,"h"],e:["dekao",10,"e"],d:["deci",.1,"d"],c:["centi",.01,"c"],m:["milli",.001,"m"],u:["micro",1e-6,"u"],n:["nano",1e-9,"n"],p:["pico",1e-12,"p"],f:["femto",1e-15,"f"],a:["atto",1e-18,"a"],z:["zepto",1e-21,"z"],y:["yocto",1e-24,"y"]},u=null,c=null,d=t,h=n,f=1,p=1,m=0;m=0)&&(u=a[m]),(a[m][1]===h||i.indexOf(h)>=0)&&(c=a[m]);if(null===u){var g=s[t.substring(0,2)],v=l[t.substring(0,1)];"da"===t.substring(0,2)&&(v=["dekao",10,"da"]),g?(f=g[2],d=t.substring(2)):v&&(f=v[1],d=t.substring(v[2].length));for(var _=0;_=0)&&(u=a[_])}if(null===c){var y=s[n.substring(0,2)],b=l[n.substring(0,1)];"da"===n.substring(0,2)&&(b=["dekao",10,"da"]),y?(p=y[2],h=n.substring(2)):b&&(p=b[1],h=n.substring(b[2].length));for(var S=0;S=0)&&(c=a[S])}return null===u||null===c||u[3]!==c[3]?r.na:e*u[6]*f/(c[6]*p)},t.DEC2BIN=function(e,t){if((e=o.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,3}$/.test(e)||e<-512||e>511)return r.num;if(e<0)return"1"+a.REPT("0",9-(512+e).toString(2).length)+(512+e).toString(2);var n=parseInt(e,10).toString(2);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?a.REPT("0",t-n.length)+n:r.num},t.DEC2HEX=function(e,t){if((e=o.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,12}$/.test(e)||e<-549755813888||e>549755813887)return r.num;if(e<0)return(1099511627776+e).toString(16);var n=parseInt(e,10).toString(16);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?a.REPT("0",t-n.length)+n:r.num},t.DEC2OCT=function(e,t){if((e=o.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,9}$/.test(e)||e<-536870912||e>536870911)return r.num;if(e<0)return(1073741824+e).toString(8);var n=parseInt(e,10).toString(8);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?a.REPT("0",t-n.length)+n:r.num},t.DELTA=function(e,t){return t=void 0===t?0:t,e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e===t?1:0},t.ERF=function(e,t){return t=void 0===t?0:t,e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:i.erf(e)},t.ERF.PRECISE=function(){throw new Error("ERF.PRECISE is not implemented")},t.ERFC=function(e){return isNaN(e)?r.value:i.erfc(e)},t.ERFC.PRECISE=function(){throw new Error("ERFC.PRECISE is not implemented")},t.GESTEP=function(e,t){return t=t||0,e=o.parseNumber(e),o.anyIsError(t,e)?e:e>=t?1:0},t.HEX2BIN=function(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var n=10===e.length&&"f"===e.substring(0,1).toLowerCase(),i=n?parseInt(e,16)-1099511627776:parseInt(e,16);if(i<-512||i>511)return r.num;if(n)return"1"+a.REPT("0",9-(512+i).toString(2).length)+(512+i).toString(2);var o=i.toString(2);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?a.REPT("0",t-o.length)+o:r.num},t.HEX2DEC=function(e){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var t=parseInt(e,16);return t>=549755813888?t-1099511627776:t},t.HEX2OCT=function(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var n=parseInt(e,16);if(n>536870911&&n<0xffe0000000)return r.num;if(n>=0xffe0000000)return(n-0xffc0000000).toString(8);var i=n.toString(8);return void 0===t?i:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=i.length?a.REPT("0",t-i.length)+i:r.num},t.IMABS=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.value:Math.sqrt(Math.pow(n,2)+Math.pow(i,2))},t.IMAGINARY=function(e){if(void 0===e||!0===e||!1===e)return r.value;if(0===e||"0"===e)return 0;if(["i","j"].indexOf(e)>=0)return 1;var t=(e=e.replace("+i","+1i").replace("-i","-1i").replace("+j","+1j").replace("-j","-1j")).indexOf("+"),n=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===n&&(n=e.indexOf("-",1));var i=e.substring(e.length-1,e.length),a="i"===i||"j"===i;return t>=0||n>=0?a?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?r.num:Number(e.substring(t+1,e.length-1)):isNaN(e.substring(0,n))||isNaN(e.substring(n+1,e.length-1))?r.num:-Number(e.substring(n+1,e.length-1)):r.num:a?isNaN(e.substring(0,e.length-1))?r.num:e.substring(0,e.length-1):isNaN(e)?r.num:0},t.IMARGUMENT=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.value:0===n&&0===i?r.div0:0===n&&i>0?Math.PI/2:0===n&&i<0?-Math.PI/2:0===i&&n>0?0:0===i&&n<0?-Math.PI:n>0?Math.atan(i/n):n<0&&i>=0?Math.atan(i/n)+Math.PI:Math.atan(i/n)-Math.PI},t.IMCONJUGATE=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",0!==i?t.COMPLEX(n,-i,a):e},t.IMCOS=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.cos(n)*(Math.exp(i)+Math.exp(-i))/2,-Math.sin(n)*(Math.exp(i)-Math.exp(-i))/2,a)},t.IMCOSH=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.cos(i)*(Math.exp(n)+Math.exp(-n))/2,Math.sin(i)*(Math.exp(n)-Math.exp(-n))/2,a)},t.IMCOT=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.value:t.IMDIV(t.IMCOS(e),t.IMSIN(e))},t.IMDIV=function(e,n){var i=t.IMREAL(e),a=t.IMAGINARY(e),s=t.IMREAL(n),l=t.IMAGINARY(n);if(o.anyIsError(i,a,s,l))return r.value;var u=e.substring(e.length-1),c=n.substring(n.length-1),d="i";if(("j"===u||"j"===c)&&(d="j"),0===s&&0===l)return r.num;var h=s*s+l*l;return t.COMPLEX((i*s+a*l)/h,(a*s-i*l)/h,d)},t.IMEXP=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);a="i"===a||"j"===a?a:"i";var s=Math.exp(n);return t.COMPLEX(s*Math.cos(i),s*Math.sin(i),a)},t.IMLN=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+i*i)),Math.atan(i/n),a)},t.IMLOG10=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+i*i))/Math.log(10),Math.atan(i/n)/Math.log(10),a)},t.IMLOG2=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+i*i))/Math.log(2),Math.atan(i/n)/Math.log(2),a)},t.IMPOWER=function(e,n){n=o.parseNumber(n);var i=t.IMREAL(e),a=t.IMAGINARY(e);if(o.anyIsError(n,i,a))return r.value;var s=e.substring(e.length-1);s="i"===s||"j"===s?s:"i";var l=Math.pow(t.IMABS(e),n),u=t.IMARGUMENT(e);return t.COMPLEX(l*Math.cos(n*u),l*Math.sin(n*u),s)},t.IMPRODUCT=function(){var e=arguments[0];if(!arguments.length)return r.value;for(var n=1;n=0)return 0;var t=e.indexOf("+"),n=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===n&&(n=e.indexOf("-",1));var i=e.substring(e.length-1,e.length),a="i"===i||"j"===i;return t>=0||n>=0?a?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?r.num:Number(e.substring(0,t)):isNaN(e.substring(0,n))||isNaN(e.substring(n+1,e.length-1))?r.num:Number(e.substring(0,n)):r.num:a?isNaN(e.substring(0,e.length-1))?r.num:0:isNaN(e)?r.num:e},t.IMSEC=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.value:t.IMDIV("1",t.IMCOS(e))},t.IMSECH=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.value:t.IMDIV("1",t.IMCOSH(e))},t.IMSIN=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.sin(n)*(Math.exp(i)+Math.exp(-i))/2,Math.cos(n)*(Math.exp(i)-Math.exp(-i))/2,a)},t.IMSINH=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.cos(i)*(Math.exp(n)-Math.exp(-n))/2,Math.sin(i)*(Math.exp(n)+Math.exp(-n))/2,a)},t.IMSQRT=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);a="i"===a||"j"===a?a:"i";var s=Math.sqrt(t.IMABS(e)),l=t.IMARGUMENT(e);return t.COMPLEX(s*Math.cos(l/2),s*Math.sin(l/2),a)},t.IMCSC=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.num:t.IMDIV("1",t.IMSIN(e))},t.IMCSCH=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.num:t.IMDIV("1",t.IMSINH(e))},t.IMSUB=function(e,t){var n=this.IMREAL(e),i=this.IMAGINARY(e),a=this.IMREAL(t),s=this.IMAGINARY(t);if(o.anyIsError(n,i,a,s))return r.value;var l=e.substring(e.length-1),u=t.substring(t.length-1),c="i";return("j"===l||"j"===u)&&(c="j"),this.COMPLEX(n-a,i-s,c)},t.IMSUM=function(){if(!arguments.length)return r.value;for(var e=o.flatten(arguments),t=e[0],n=1;n511)return r.num;if(n)return"1"+a.REPT("0",9-(512+i).toString(2).length)+(512+i).toString(2);var o=i.toString(2);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?a.REPT("0",t-o.length)+o:r.num},t.OCT2DEC=function(e){if(!/^[0-7]{1,10}$/.test(e))return r.num;var t=parseInt(e,8);return t>=536870912?t-1073741824:t},t.OCT2HEX=function(e,t){if(!/^[0-7]{1,10}$/.test(e))return r.num;var n=parseInt(e,8);if(n>=536870912)return"ff"+(n+3221225472).toString(16);var i=n.toString(16);return void 0===t?i:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=i.length?a.REPT("0",t-i.length)+i:r.num}},function(e,t,n){"use strict";t.__esModule=!0,t.default=["ABS","ACCRINT","ACOS","ACOSH","ACOT","ACOTH","ADD","AGGREGATE","AND","ARABIC","ARGS2ARRAY","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETA.DIST","BETA.INV","BETADIST","BETAINV","BIN2DEC","BIN2HEX","BIN2OCT","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BINOMDIST","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CEILING","CEILINGMATH","CEILINGPRECISE","CHAR","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHOOSE","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUNTIN","COUNTUNIQUE","COVARIANCE.P","COVARIANCE.S","CSC","CSCH","CUMIPMT","CUMPRINC","DATE","DATEVALUE","DAY","DAYS","DAYS360","DB","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DIVIDE","DOLLARDE","DOLLARFR","E","EDATE","EFFECT","EOMONTH","EQ","ERF","ERFC","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","F.DIST","F.DIST.RT","F.INV","F.INV.RT","FACT","FACTDOUBLE","FALSE","FDIST","FDISTRT","FIND","FINV","FINVRT","FISHER","FISHERINV","FLATTEN","FLOOR","FORECAST","FREQUENCY","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMA.INV","GAMMADIST","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GROWTH","GTE","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HOUR","HTML2TEXT","HYPGEOM.DIST","HYPGEOMDIST","IF","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INT","INTERCEPT","INTERVAL","IPMT","IRR","ISBINARY","ISBLANK","ISEVEN","ISLOGICAL","ISNONTEXT","ISNUMBER","ISODD","ISODD","ISOWEEKNUM","ISPMT","ISTEXT","JOIN","KURT","LARGE","LCM","LEFT","LEN","LINEST","LN","LOG","LOG10","LOGEST","LOGNORM.DIST","LOGNORM.INV","LOGNORMDIST","LOGNORMINV","LOWER","LT","LTE","MATCH","MAX","MAXA","MEDIAN","MID","MIN","MINA","MINUS","MINUTE","MIRR","MOD","MODE.MULT","MODE.SNGL","MODEMULT","MODESNGL","MONTH","MROUND","MULTINOMIAL","MULTIPLY","NE","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NOMINAL","NORM.DIST","NORM.INV","NORM.S.DIST","NORM.S.INV","NORMDIST","NORMINV","NORMSDIST","NORMSINV","NOT","NOW","NPER","NPV","NUMBERS","OCT2BIN","OCT2DEC","OCT2HEX","ODD","OR","PDURATION","PEARSON","PERCENTILEEXC","PERCENTILEINC","PERCENTRANKEXC","PERCENTRANKINC","PERMUT","PERMUTATIONA","PHI","PI","PMT","POISSON.DIST","POISSONDIST","POW","POWER","PPMT","PROB","PRODUCT","PROPER","PV","QUARTILE.EXC","QUARTILE.INC","QUARTILEEXC","QUARTILEINC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANKAVG","RANKEQ","RATE","REFERENCE","REGEXEXTRACT","REGEXMATCH","REGEXREPLACE","REPLACE","REPT","RIGHT","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","SEARCH","SEC","SECH","SECOND","SERIESSUM","SIGN","SIN","SINH","SKEW","SKEW.P","SKEWP","SLN","SLOPE","SMALL","SPLIT","SPLIT","SQRT","SQRTPI","STANDARDIZE","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STDEVS","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","T.DIST","T.DIST.2T","T.DIST.RT","T.INV","T.INV.2T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","TDIST","TDIST2T","TDISTRT","TIME","TIMEVALUE","TINV","TINV2T","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","UNICHAR","UNICODE","UNIQUE","UPPER","VAR.P","VAR.S","VARA","VARP","VARPA","VARS","WEEKDAY","WEEKNUM","WEIBULL.DIST","WEIBULLDIST","WORKDAY","XIRR","XNPV","XOR","YEAR","YEARFRAC"]},function(e,t,n){"use strict";function r(e){var t=parseInt(e,10);return t=isNaN(t)?-1:Math.max(t-1,-1)}function i(e){var t="";return e>=0&&(t=""+(e+1)),t}t.__esModule=!0,t.rowLabelToIndex=r,t.rowIndexToLabel=i,t.columnLabelToIndex=o,t.columnIndexToLabel=s,t.extractLabel=function(e){if("string"!=typeof e||!l.test(e))return[];var t=e.toUpperCase().match(l),n=t[1],i=t[2],a=t[3],s=t[4];return[{index:r(s),label:s,isAbsolute:"$"===a},{index:o(i),label:i,isAbsolute:"$"===n}]},t.toLabel=function(e,t){var n=(e.isAbsolute?"$":"")+i(e.index);return(t.isAbsolute?"$":"")+s(t.index)+n};var a="ABCDEFGHIJKLMNOPQRSTUVWXYZ".length;function o(e){var t=0;if("string"==typeof e)for(var n=0,r=(e=e.toUpperCase()).length-1;n=0;)t=String.fromCharCode(e%a+97)+t,e=Math.floor(e/a)-1;return t.toUpperCase()}var l=/^([$])?([A-Za-z]+)([$])?([0-9]+)$/},function(e,t,n){"use strict";t.__esModule=!0,t.rowLabelToIndex=t.rowIndexToLabel=t.columnLabelToIndex=t.columnIndexToLabel=t.toLabel=t.extractLabel=t.error=t.Parser=t.ERROR_VALUE=t.ERROR_REF=t.ERROR_NUM=t.ERROR_NULL=t.ERROR_NOT_AVAILABLE=t.ERROR_NAME=t.ERROR_DIV_ZERO=t.ERROR=t.SUPPORTED_FORMULAS=void 0;var r=l(n(16)),i=l(n(13)),a=n(2),o=l(a),s=n(14);function l(e){return e&&e.__esModule?e:{default:e}}t.SUPPORTED_FORMULAS=i.default,t.ERROR=a.ERROR,t.ERROR_DIV_ZERO=a.ERROR_DIV_ZERO,t.ERROR_NAME=a.ERROR_NAME,t.ERROR_NOT_AVAILABLE=a.ERROR_NOT_AVAILABLE,t.ERROR_NULL=a.ERROR_NULL,t.ERROR_NUM=a.ERROR_NUM,t.ERROR_REF=a.ERROR_REF,t.ERROR_VALUE=a.ERROR_VALUE,t.Parser=r.default,t.error=o.default,t.extractLabel=s.extractLabel,t.toLabel=s.toLabel,t.columnIndexToLabel=s.columnIndexToLabel,t.columnLabelToIndex=s.columnLabelToIndex,t.rowIndexToLabel=s.rowIndexToLabel,t.rowLabelToIndex=s.rowLabelToIndex},function(e,t,n){"use strict";t.__esModule=!0;var r=d(n(17)),i=d(n(18)),a=n(39),o=n(40),s=n(3),l=n(2),u=d(l),c=n(14);function d(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n.parser=new a.Parser,n.parser.yy={toNumber:s.toNumber,trimEdges:o.trimEdges,invertNumber:s.invertNumber,throwError:function(e){return n._throwError(e)},callVariable:function(e){return n._callVariable(e)},evaluateByOperator:i.default,callFunction:function(e,t){return n._callFunction(e,t)},cellValue:function(e){return n._callCellValue(e)},rangeValue:function(e,t){return n._callRangeValue(e,t)}},n.variables=Object.create(null),n.functions=Object.create(null),n.setVariable("TRUE",!0).setVariable("FALSE",!1).setVariable("NULL",null),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.parse=function(e){var t=null,n=null;try{t=""===e?"":this.parser.parse(e)}catch(e){var r=(0,u.default)(e.message);n=r||(0,u.default)(l.ERROR)}return t instanceof Error&&(n=(0,u.default)(t.message)||(0,u.default)(l.ERROR),t=null),{error:n,result:t}},t.prototype.setVariable=function(e,t){return this.variables[e]=t,this},t.prototype.getVariable=function(e){return this.variables[e]},t.prototype._callVariable=function(e){var t=this.getVariable(e);if(this.emit("callVariable",e,(function(e){void 0!==e&&(t=e)})),void 0===t)throw Error(l.ERROR_NAME);return t},t.prototype.setFunction=function(e,t){return this.functions[e]=t,this},t.prototype.getFunction=function(e){return this.functions[e]},t.prototype._callFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.getFunction(e),r=void 0;return n&&(r=n(t)),this.emit("callFunction",e,t,(function(e){void 0!==e&&(r=e)})),void 0===r?(0,i.default)(e,t):r},t.prototype._callCellValue=function(e){e=e.toUpperCase();var t=(0,c.extractLabel)(e),n=t[0],r=t[1],i=void 0;return this.emit("callCellValue",{label:e,row:n,column:r},(function(e){i=e})),i},t.prototype._callRangeValue=function(e,t){e=e.toUpperCase(),t=t.toUpperCase();var n=(0,c.extractLabel)(e),r=n[0],i=n[1],a=(0,c.extractLabel)(t),o=a[0],s=a[1],l={},u={};r.index<=o.index?(l.row=r,u.row=o):(l.row=o,u.row=r),i.index<=s.index?(l.column=i,u.column=s):(l.column=s,u.column=i),l.label=(0,c.toLabel)(l.row,l.column),u.label=(0,c.toLabel)(u.row,u.column);var d=[];return this.emit("callRangeValue",l,u,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];d=e})),d},t.prototype._throwError=function(e){if((0,l.isValidStrict)(e))throw Error(e);throw Error(l.ERROR)},t}(r.default);t.default=h},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r1&&void 0!==arguments[1]?arguments[1]:[];if(e=e.toUpperCase(),!_[e])throw Error(g.ERROR_NAME);return _[e].apply(_,t)},t.registerOperation=y;var r=v(n(19)),i=v(n(20)),a=v(n(21)),o=v(n(22)),s=v(n(23)),l=v(n(31)),u=v(n(32)),c=v(n(33)),d=v(n(34)),h=v(n(35)),f=v(n(36)),p=v(n(37)),m=v(n(38)),g=n(2);function v(e){return e&&e.__esModule?e:{default:e}}var _=Object.create(null);function y(e,t){Array.isArray(e)||(e=[e.toUpperCase()]),e.forEach((function(e){t.isFactory?_[e]=t(e):_[e]=t}))}y(r.default.SYMBOL,r.default),y(i.default.SYMBOL,i.default),y(a.default.SYMBOL,a.default),y(o.default.SYMBOL,o.default),y(m.default.SYMBOL,m.default),y(s.default.SYMBOL,s.default),y(l.default.SYMBOL,l.default),y(u.default.SYMBOL,u.default),y(c.default.SYMBOL,c.default),y(d.default.SYMBOL,d.default),y(f.default.SYMBOL,f.default),y(p.default.SYMBOL,p.default),y(h.default.SYMBOL,h.default)},function(e,t,n){"use strict";t.__esModule=!0,t.SYMBOL=void 0,t.default=o;var r=n(3),i=n(2),a=t.SYMBOL="+";function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a1?t-1:0),a=1;ai)a=r(n,i,l(n),f(n),-1);else{for(var o=!1,s=0,u=0,c=1,d=0,h=2/n,p=2*t.floor((i+t.floor(t.sqrt(40*i)))/2);p>0;p--)d=p*h*c-s,s=c,c=d,t.abs(c)>1e10&&(c*=1e-10,s*=1e-10,a*=1e-10,u*=1e-10),o&&(u+=c),o=!o,p==i&&(a=s);a/=u=2*u-c}return a}}(),y=(a=.636619772,o=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),s=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),l=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),u=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse(),c=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),d=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),h=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),f=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse(),i((function(e){var r=0,i=0,c=0,d=e*e,h=e-.785398164;return e<8?r=(i=n(o,d))/(c=n(s,d))+a*_(e,0)*t.log(e):(i=n(l,d=64/d),c=n(u,d),r=t.sqrt(a/e)*(t.sin(h)*i+t.cos(h)*c*8/e)),r}),(function(e){var r=0,i=0,o=0,s=e*e,l=e-2.356194491;return e<8?r=(i=e*n(c,s))/(o=n(d,s))+a*(_(e,1)*t.log(e)-1/e):(i=n(h,s=64/s),o=n(f,s),r=t.sqrt(a/e)*(t.sin(l)*i+t.cos(l)*o*8/e)),r}),0,1,-1)),b=(p=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),m=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),g=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),v=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(r,i){if(0===(i=Math.round(i)))return function(e){return e<=3.75?n(p,e*e/14.0625):t.exp(t.abs(e))/t.sqrt(t.abs(e))*n(m,3.75/t.abs(e))}(r);if(1===i)return function(e){return e<3.75?e*n(g,e*e/14.0625):(e<0?-1:1)*t.exp(t.abs(e))/t.sqrt(t.abs(e))*n(v,3.75/t.abs(e))}(r);if(i<0)return NaN;if(0===t.abs(r))return 0;if(r==1/0)return 1/0;var a,o=0,s=2/t.abs(r),l=0,u=1,c=0;for(a=2*t.round((i+t.round(t.sqrt(40*i)))/2);a>0;a--)c=a*s*u+l,l=u,u=c,t.abs(u)>1e10&&(u*=1e-10,l*=1e-10,o*=1e-10),a==i&&(o=l);return o*=e(r,0)/u,r<0&&i%2?-o:o}),S=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),r=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse(),a=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),o=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();return i((function(i){return i<=2?-t.log(i/2)*b(i,0)+n(e,i*i/4):t.exp(-i)/t.sqrt(i)*n(r,2/i)}),(function(e){return e<=2?t.log(e/2)*b(e,1)+1/e*n(a,e*e/4):t.exp(-e)/t.sqrt(e)*n(o,2/e)}),0,2,1)}();e.besselj=_,e.bessely=y,e.besseli=b,e.besselk=S},"undefined"==typeof DO_NOT_EXPORT_BESSEL?r(t):r({})},function(e,t,n){var r=n(0),i=n(5),a=n(4),o=n(1),s=n(7);function l(e){var t=[];return o.arrayEach(e,(function(e){e&&t.push(e)})),t}function u(e,t){for(var n={},r=1;ri&&(i=t[r].length);for(var a=1;a1?r.num:s[a[0]]},t.DMAX=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var a=u(e,i),s=[];if("string"==typeof n){var l=t.FINDFIELD(e,n);s=o.rest(e[l])}else s=o.rest(e[n]);var c=s[a[0]];return o.arrayEach(a,(function(e){cs[e]&&(c=s[e])})),c},t.DPRODUCT=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var a=u(e,i),s=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);s=o.rest(e[c])}else s=o.rest(e[n]);var d=[];o.arrayEach(a,(function(e){d.push(s[e])})),d=l(d);var h=1;return o.arrayEach(d,(function(e){h*=e})),h},t.DSTDEV=function(e,n,a){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,a),c=[];if("string"==typeof n){var d=t.FINDFIELD(e,n);c=o.rest(e[d])}else c=o.rest(e[n]);var h=[];return o.arrayEach(s,(function(e){h.push(c[e])})),h=l(h),i.STDEV.S(h)},t.DSTDEVP=function(e,n,a){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,a),c=[];if("string"==typeof n){var d=t.FINDFIELD(e,n);c=o.rest(e[d])}else c=o.rest(e[n]);var h=[];return o.arrayEach(s,(function(e){h.push(c[e])})),h=l(h),i.STDEV.P(h)},t.DSUM=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,i),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=o.rest(e[c])}else l=o.rest(e[n]);var d=[];return o.arrayEach(s,(function(e){d.push(l[e])})),a.SUM(d)},t.DVAR=function(e,n,a){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,a),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=o.rest(e[c])}else l=o.rest(e[n]);var d=[];return o.arrayEach(s,(function(e){d.push(l[e])})),i.VAR.S(d)},t.DVARP=function(e,n,a){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,a),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=o.rest(e[c])}else l=o.rest(e[n]);var d=[];return o.arrayEach(s,(function(e){d.push(l[e])})),i.VAR.P(d)}},function(e,t,n){var r=n(0),i=n(1),a=n(8);t.AND=function(){for(var e=i.flatten(arguments),t=!0,n=0;n254||arguments.length0){var t=arguments[0],n=arguments.length-1,i=Math.floor(n/2),a=!1,o=n%2!=0,s=n%2==0?null:arguments[arguments.length-1];if(i)for(var l=0;ls)return r.num;if(0!==l&&1!==l)return r.num;var u=t.PMT(e,n,i,0,l),c=0;1===o&&0===l&&(c=-i,o++);for(var d=o;d<=s;d++)c+=1===l?t.FV(e,d-2,u,i,1)-u:t.FV(e,d-1,u,i,0);return c*=e},t.CUMPRINC=function(e,n,i,o,s,l){if(e=a.parseNumber(e),n=a.parseNumber(n),i=a.parseNumber(i),a.anyIsError(e,n,i))return r.value;if(e<=0||n<=0||i<=0)return r.num;if(o<1||s<1||o>s)return r.num;if(0!==l&&1!==l)return r.num;var u=t.PMT(e,n,i,0,l),c=0;1===o&&(c=0===l?u+i*e:u,o++);for(var d=o;d<=s;d++)c+=l>0?u-(t.FV(e,d-2,u,i,1)-u)*e:u-t.FV(e,d-1,u,i,0)*e;return c},t.DB=function(e,t,n,i,o){if(o=void 0===o?12:o,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),i=a.parseNumber(i),o=a.parseNumber(o),a.anyIsError(e,t,n,i,o))return r.value;if(e<0||t<0||n<0||i<0)return r.num;if(-1===[1,2,3,4,5,6,7,8,9,10,11,12].indexOf(o))return r.num;if(i>n)return r.num;if(t>=e)return 0;for(var s=(1-Math.pow(t/e,1/n)).toFixed(3),l=e*s*o/12,u=l,c=0,d=i===n?n-1:i,h=2;h<=d;h++)u+=c=(e-u)*s;return 1===i?l:i===n?(e-u)*s:c},t.DDB=function(e,t,n,i,o){if(o=void 0===o?2:o,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),i=a.parseNumber(i),o=a.parseNumber(o),a.anyIsError(e,t,n,i,o))return r.value;if(e<0||t<0||n<0||i<0||o<=0)return r.num;if(i>n)return r.num;if(t>=e)return 0;for(var s=0,l=0,u=1;u<=i;u++)s+=l=Math.min(o/n*(e-s),e-t-s);return l},t.DISC=function(){throw new Error("DISC is not implemented")},t.DOLLARDE=function(e,t){if(e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t))return r.value;if(t<0)return r.num;if(t>=0&&t<1)return r.div0;t=parseInt(t,10);var n=parseInt(e,10);n+=e%1*Math.pow(10,Math.ceil(Math.log(t)/Math.LN10))/t;var i=Math.pow(10,Math.ceil(Math.log(t)/Math.LN2)+1);return n=Math.round(n*i)/i},t.DOLLARFR=function(e,t){if(e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t))return r.value;if(t<0)return r.num;if(t>=0&&t<1)return r.div0;t=parseInt(t,10);var n=parseInt(e,10);return n+=e%1*Math.pow(10,-Math.ceil(Math.log(t)/Math.LN10))*t},t.DURATION=function(){throw new Error("DURATION is not implemented")},t.EFFECT=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<=0||t<1?r.num:(t=parseInt(t,10),Math.pow(1+e/t,t)-1)},t.FV=function(e,t,n,i,o){if(i=i||0,o=o||0,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),i=a.parseNumber(i),o=a.parseNumber(o),a.anyIsError(e,t,n,i,o))return r.value;var s;if(0===e)s=i+n*t;else{var l=Math.pow(1+e,t);s=1===o?i*l+n*(1+e)*(l-1)/e:i*l+n*(l-1)/e}return-s},t.FVSCHEDULE=function(e,t){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return r.value;for(var n=t.length,i=e,o=0;o0&&(s=!0),e[u]<0&&(l=!0);if(!s||!l)return r.num;var c,d,h,f=t=void 0===t?.1:t,p=!0;do{c=f-(h=n(e,o,f))/i(e,o,f),d=Math.abs(c-f),f=c,p=d>1e-10&&Math.abs(h)>1e-10}while(p);return f},t.ISPMT=function(e,t,n,i){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),i=a.parseNumber(i),a.anyIsError(e,t,n,i)?r.value:i*e*(t/n-1)},t.MDURATION=function(){throw new Error("MDURATION is not implemented")},t.MIRR=function(e,n,i){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumber(n),i=a.parseNumber(i),a.anyIsError(e,n,i))return r.value;for(var o=e.length,s=[],l=[],u=0;u1e-10&&f<50;)p=(u*c-l*d)/(u-l),c=d,d=p,l=u,u=Math.abs(p)<1e-10?n*(1+e*p)+t*(1+p*o)*e+i:n*(h=Math.exp(e*Math.log(1+p)))+t*(1/p+o)*(h-1)+i,++f;return p},t.RECEIVED=function(){throw new Error("RECEIVED is not implemented")},t.RRI=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?r.value:0===e||0===t?r.num:Math.pow(n/t,1/e)-1},t.SLN=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?r.value:0===n?r.num:(e-t)/n},t.SYD=function(e,t,n,i){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),i=a.parseNumber(i),a.anyIsError(e,t,n,i)?r.value:0===n||i<1||i>n?r.num:(e-t)*(n-(i=parseInt(i,10))+1)*2/(n*(n+1))},t.TBILLEQ=function(e,t,n){return e=a.parseDate(e),t=a.parseDate(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?r.value:n<=0||e>t||t-e>31536e6?r.num:365*n/(360-n*i.DAYS360(e,t,!1))},t.TBILLPRICE=function(e,t,n){return e=a.parseDate(e),t=a.parseDate(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?r.value:n<=0||e>t||t-e>31536e6?r.num:100*(1-n*i.DAYS360(e,t,!1)/360)},t.TBILLYIELD=function(e,t,n){return e=a.parseDate(e),t=a.parseDate(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?r.value:n<=0||e>t||t-e>31536e6?r.num:360*(100-n)/(n*i.DAYS360(e,t,!1))},t.VDB=function(){throw new Error("VDB is not implemented")},t.XNPV=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),n=a.parseDateArray(a.flatten(n)),a.anyIsError(e,t,n))return r.value;for(var o=0,s=0;sa&&(i=o+1,a=t[o]):(i=o+1,a=t[o]))}else if(0===n){if("string"==typeof e){if(e=e.replace(/\?/g,"."),t[o].toLowerCase().match(e.toLowerCase()))return o+1}else if(t[o]===e)return o+1}else if(-1===n){if(t[o]===e)return o+1;t[o]>e&&(a?t[o]";function i(e,t){return e>t}i.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=i;var r=t.SYMBOL=">=";function i(e,t){return e>=t}i.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=i;var r=t.SYMBOL="<";function i(e,t){return e1?t-1:0),a=1;a1?t-1:0),a=1;a";function i(e,t){return e!==t}i.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.SYMBOL=void 0,t.default=o;var r=n(3),i=n(2),a=t.SYMBOL="^";function o(e,t){var n=Math.pow((0,r.toNumber)(e),(0,r.toNumber)(t));if(isNaN(n))throw Error(i.ERROR_VALUE);return n}o.SYMBOL=a},function(e,t,n){var r=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,5],n=[1,8],r=[1,6],i=[1,7],a=[1,9],o=[1,14],s=[1,15],l=[1,16],u=[1,12],c=[1,13],d=[1,17],h=[1,19],f=[1,20],p=[1,21],m=[1,22],g=[1,23],v=[1,24],_=[1,25],y=[1,26],b=[1,27],S=[1,28],w=[5,9,10,11,13,14,15,16,17,18,19,20,29,30],E=[5,9,10,11,13,14,15,16,17,18,19,20,29,30,32],C=[5,9,10,11,13,14,15,16,17,18,19,20,29,30,34],T=[5,10,11,13,14,15,16,17,29,30],O=[5,10,13,14,15,16,29,30],x=[5,10,11,13,14,15,16,17,18,19,29,30],M=[13,29,30],k={trace:function(){},yy:{},symbols_:{error:2,expressions:3,expression:4,EOF:5,variableSequence:6,number:7,STRING:8,"&":9,"=":10,"+":11,"(":12,")":13,"<":14,">":15,NOT:16,"-":17,"*":18,"/":19,"^":20,FUNCTION:21,expseq:22,cell:23,ABSOLUTE_CELL:24,RELATIVE_CELL:25,MIXED_CELL:26,":":27,ARRAY:28,";":29,",":30,VARIABLE:31,DECIMAL:32,NUMBER:33,"%":34,ERROR:35,$accept:0,$end:1},terminals_:{5:"EOF",8:"STRING",9:"&",10:"=",11:"+",12:"(",13:")",14:"<",15:">",16:"NOT",17:"-",18:"*",19:"/",20:"^",21:"FUNCTION",24:"ABSOLUTE_CELL",25:"RELATIVE_CELL",26:"MIXED_CELL",27:":",28:"ARRAY",29:";",30:",",31:"VARIABLE",32:"DECIMAL",33:"NUMBER",34:"%",35:"ERROR"},productions_:[0,[3,2],[4,1],[4,1],[4,1],[4,3],[4,3],[4,3],[4,3],[4,4],[4,4],[4,4],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,3],[4,4],[4,1],[4,1],[4,2],[23,1],[23,1],[23,1],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[22,1],[22,1],[22,3],[22,3],[6,1],[6,3],[7,1],[7,3],[7,2],[2,1]],performAction:function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=r.callVariable(a[s][0]);break;case 3:this.$=r.toNumber(a[s]);break;case 4:this.$=r.trimEdges(a[s]);break;case 5:this.$=r.evaluateByOperator("&",[a[s-2],a[s]]);break;case 6:this.$=r.evaluateByOperator("=",[a[s-2],a[s]]);break;case 7:this.$=r.evaluateByOperator("+",[a[s-2],a[s]]);break;case 8:this.$=a[s-1];break;case 9:this.$=r.evaluateByOperator("<=",[a[s-3],a[s]]);break;case 10:this.$=r.evaluateByOperator(">=",[a[s-3],a[s]]);break;case 11:this.$=r.evaluateByOperator("<>",[a[s-3],a[s]]);break;case 12:this.$=r.evaluateByOperator("NOT",[a[s-2],a[s]]);break;case 13:this.$=r.evaluateByOperator(">",[a[s-2],a[s]]);break;case 14:this.$=r.evaluateByOperator("<",[a[s-2],a[s]]);break;case 15:this.$=r.evaluateByOperator("-",[a[s-2],a[s]]);break;case 16:this.$=r.evaluateByOperator("*",[a[s-2],a[s]]);break;case 17:this.$=r.evaluateByOperator("/",[a[s-2],a[s]]);break;case 18:this.$=r.evaluateByOperator("^",[a[s-2],a[s]]);break;case 19:var l=r.invertNumber(a[s]);this.$=l,isNaN(this.$)&&(this.$=0);break;case 20:l=r.toNumber(a[s]),this.$=l,isNaN(this.$)&&(this.$=0);break;case 21:this.$=r.callFunction(a[s-2]);break;case 22:this.$=r.callFunction(a[s-3],a[s-1]);break;case 26:case 27:case 28:this.$=r.cellValue(a[s]);break;case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:this.$=r.rangeValue(a[s-2],a[s]);break;case 38:case 42:this.$=[a[s]];break;case 39:this.$=r.trimEdges(e).split(",");break;case 40:case 41:a[s-2].push(a[s]),this.$=a[s-2];break;case 43:this.$=Array.isArray(a[s-2])?a[s-2]:[a[s-2]],this.$.push(a[s]);break;case 44:this.$=a[s];break;case 45:this.$=1*(a[s-2]+"."+a[s]);break;case 46:this.$=.01*a[s-1];break;case 47:this.$=r.throwError(a[s])}},table:[{2:11,3:1,4:2,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{1:[3]},{5:[1,18],9:h,10:f,11:p,14:m,15:g,16:v,17:_,18:y,19:b,20:S},e(w,[2,2],{32:[1,29]}),e(w,[2,3],{34:[1,30]}),e(w,[2,4]),{2:11,4:31,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:32,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:33,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{12:[1,34]},e(w,[2,23]),e(w,[2,24],{2:35,35:d}),e(E,[2,42]),e(C,[2,44],{32:[1,36]}),e(w,[2,26],{27:[1,37]}),e(w,[2,27],{27:[1,38]}),e(w,[2,28],{27:[1,39]}),e([5,9,10,11,13,14,15,16,17,18,19,20,29,30,35],[2,47]),{1:[2,1]},{2:11,4:40,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:41,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:42,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:45,6:3,7:4,8:t,10:[1,43],11:n,12:r,15:[1,44],17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:47,6:3,7:4,8:t,10:[1,46],11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:48,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:49,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:50,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:51,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:52,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{31:[1,53]},e(C,[2,46]),{9:h,10:f,11:p,13:[1,54],14:m,15:g,16:v,17:_,18:y,19:b,20:S},e(T,[2,19],{9:h,18:y,19:b,20:S}),e(T,[2,20],{9:h,18:y,19:b,20:S}),{2:11,4:57,6:3,7:4,8:t,11:n,12:r,13:[1,55],17:i,21:a,22:56,23:10,24:o,25:s,26:l,28:[1,58],31:u,33:c,35:d},e(w,[2,25]),{33:[1,59]},{24:[1,60],25:[1,61],26:[1,62]},{24:[1,63],25:[1,64],26:[1,65]},{24:[1,66],25:[1,67],26:[1,68]},e(w,[2,5]),e([5,10,13,29,30],[2,6],{9:h,11:p,14:m,15:g,16:v,17:_,18:y,19:b,20:S}),e(T,[2,7],{9:h,18:y,19:b,20:S}),{2:11,4:69,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:70,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},e(O,[2,14],{9:h,11:p,17:_,18:y,19:b,20:S}),{2:11,4:71,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},e(O,[2,13],{9:h,11:p,17:_,18:y,19:b,20:S}),e([5,10,13,16,29,30],[2,12],{9:h,11:p,14:m,15:g,17:_,18:y,19:b,20:S}),e(T,[2,15],{9:h,18:y,19:b,20:S}),e(x,[2,16],{9:h,20:S}),e(x,[2,17],{9:h,20:S}),e([5,10,11,13,14,15,16,17,18,19,20,29,30],[2,18],{9:h}),e(E,[2,43]),e(w,[2,8]),e(w,[2,21]),{13:[1,72],29:[1,73],30:[1,74]},e(M,[2,38],{9:h,10:f,11:p,14:m,15:g,16:v,17:_,18:y,19:b,20:S}),e(M,[2,39]),e(C,[2,45]),e(w,[2,29]),e(w,[2,30]),e(w,[2,31]),e(w,[2,32]),e(w,[2,33]),e(w,[2,34]),e(w,[2,35]),e(w,[2,36]),e(w,[2,37]),e(O,[2,9],{9:h,11:p,17:_,18:y,19:b,20:S}),e(O,[2,11],{9:h,11:p,17:_,18:y,19:b,20:S}),e(O,[2,10],{9:h,11:p,17:_,18:y,19:b,20:S}),e(w,[2,22]),{2:11,4:75,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:76,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},e(M,[2,40],{9:h,10:f,11:p,14:m,15:g,16:v,17:_,18:y,19:b,20:S}),e(M,[2,41],{9:h,10:f,11:p,14:m,15:g,16:v,17:_,18:y,19:b,20:S})],defaultActions:{18:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],a=this.table,o="",s=0,l=0,u=0,c=2,d=1,h=i.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var g=f.yylloc;i.push(g);var v=f.options&&f.options.ranges;function _(e){n.length=n.length-2*e,r.length=r.length-e,i.length=i.length-e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,b,S,w,E,C,T,O,x,M=function(){var e;return"number"!=typeof(e=f.lex()||d)&&(e=t.symbols_[e]||e),e},k={};;){if(S=n[n.length-1],this.defaultActions[S]?w=this.defaultActions[S]:(null==y&&(y=M()),w=a[S]&&a[S][y]),void 0===w||!w.length||!w[0]){var A,D="";function R(e){for(var t=n.length-1,r=0;;){if(c.toString()in a[e])return r;if(0===e||t<2)return!1;e=n[t-=2],++r}}if(u)b!==d&&(A=R(S));else{for(C in A=R(S),x=[],a[S])this.terminals_[C]&&C>c&&x.push("'"+this.terminals_[C]+"'");D=f.showPosition?"Parse error on line "+(s+1)+":\n"+f.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(s+1)+": Unexpected "+(y==d?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(D,{text:f.match,token:this.terminals_[y]||y,line:f.yylineno,loc:g,expected:x,recoverable:!1!==A})}if(3==u){if(y===d||b===d)throw new Error(D||"Parsing halted while starting to recover from another error.");l=f.yyleng,o=f.yytext,s=f.yylineno,g=f.yylloc,y=M()}if(!1===A)throw new Error(D||"Parsing halted. No suitable error recovery rule available.");_(A),b=y==c?null:y,y=c,S=n[n.length-1],w=a[S]&&a[S][c],u=3}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+y);switch(w[0]){case 1:n.push(y),r.push(f.yytext),i.push(f.yylloc),n.push(w[1]),y=null,b?(y=b,b=null):(l=f.yyleng,o=f.yytext,s=f.yylineno,g=f.yylloc,u>0&&u--);break;case 2:if(T=this.productions_[w[1]][1],k.$=r[r.length-T],k._$={first_line:i[i.length-(T||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(T||1)].first_column,last_column:i[i.length-1].last_column},v&&(k._$.range=[i[i.length-(T||1)].range[0],i[i.length-1].range[1]]),void 0!==(E=this.performAction.apply(k,[o,l,s,p.yy,w[1],r,i].concat(h))))return E;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),i=i.slice(0,-1*T)),n.push(this.productions_[w[1]][0]),r.push(k.$),i.push(k._$),O=a[n[n.length-2]][n[n.length-1]],n.push(O);break;case 3:return!0}}return!0}},A={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:case 2:return 8;case 3:return 21;case 4:return 35;case 5:return 24;case 6:case 7:return 26;case 8:return 25;case 9:return 21;case 10:case 11:return 31;case 12:return 33;case 13:return 28;case 14:return 9;case 15:return" ";case 16:return 32;case 17:return 27;case 18:return 29;case 19:return 30;case 20:return 18;case 21:return 19;case 22:return 17;case 23:return 11;case 24:return 20;case 25:return 12;case 26:return 13;case 27:return 15;case 28:return 14;case 29:return 16;case 30:return'"';case 31:return"'";case 32:return"!";case 33:return 10;case 34:return 34;case 35:return"#";case 36:return 5}},rules:[/^(?:\s+)/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]))/,/^(?:#[A-Z0-9\/]+(!|\?)?)/,/^(?:\$[A-Za-z]+\$[0-9]+)/,/^(?:\$[A-Za-z]+[0-9]+)/,/^(?:[A-Za-z]+\$[0-9]+)/,/^(?:[A-Za-z]+[0-9]+)/,/^(?:[A-Za-z\.]+(?=[(]))/,/^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,/^(?:[A-Za-z_]+)/,/^(?:[0-9]+)/,/^(?:\[(.*)?\])/,/^(?:&)/,/^(?: )/,/^(?:[.])/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:\()/,/^(?:\))/,/^(?:>)/,/^(?:<)/,/^(?:NOT\b)/,/^(?:")/,/^(?:')/,/^(?:!)/,/^(?:=)/,/^(?:%)/,/^(?:[#])/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],inclusive:!0}}};function D(){this.yy={}}return k.lexer=A,D.prototype=k,k.Parser=D,new D}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)}},function(e,t,n){"use strict";t.__esModule=!0,t.trimEdges=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e=e.substring(t,e.length-t)}}])},e.exports=r()},function(e,t,n){"use strict";var r=n(80),i=n(833),a=n(191);r({target:"String",proto:!0,forced:!n(834)("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n(2015),i=n(2016),a=n(1419);function o(){return l.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 p(e,t){if(l.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 n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;hi&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),c=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function N(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,r,a){return a||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,a){return a||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=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;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(126))},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(118),a=n(225),o=n(302),s=n(7),l=n(246),u=n(1606),c=n(163),d=n(137),h=n(162),f=n(33);t.default=function(e,t,n){n=n||{},Object(c.isSourceInstance)(e)||(e=Object(c.createSourceFromSeriesDataOption)(e));var p,m=t.get("coordinateSystem"),g=l.default.get(m),v=Object(u.getCoordSysInfoBySeries)(t);v&&v.coordSysDims&&(p=r.map(v.coordSysDims,(function(e){var t={name:e},n=v.axisMap.get(e);if(n){var r=n.get("type");t.type=Object(o.getDimensionTypeByAxis)(r)}return t}))),p||(p=g&&(g.getDimensionsInfo?g.getDimensionsInfo():g.dimensions.slice())||["x","y"]);var _,y,b=n.useEncodeDefaulter,S=Object(a.default)(e,{coordDimensions:p,generateCoord:n.generateCoord,encodeDefaulter:r.isFunction(b)?b:b?r.curry(h.makeSeriesEncodeForAxisCoordSys,p,t):null});v&&r.each(S,(function(e,t){var r=e.coordDim,i=v.categoryAxisMap.get(r);i&&(null==_&&(_=t),e.ordinalMeta=i.getOrdinalMeta(),n.createInvertedIndices&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(y=!0)})),y||null==_||(S[_].otherDims.itemName=0);var w=Object(d.enableDataStack)(t,S),E=new i.default(S,t);E.setCalculationInfo(w);var C=null!=_&&function(e){if(e.sourceFormat===f.SOURCE_FORMAT_ORIGINAL){var t=function(e){var t=0;for(;t=w?i=n+w:t&&n-i>=w?i=n-w:!t&&n>i?i=n+(w-T(n-i)):t&&n0&&(this._ux=b(n/a.devicePixelRatio/e)||0,this._uy=b(n/a.devicePixelRatio/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=b(e-this._xi)>this._ux||b(t-this._yi)>this._uy||this._len<5;return this.addData(l.L,e,t),this._ctx&&n&&(this._needsDash?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this.addData(l.C,e,t,n,r,i,a),this._ctx&&(this._needsDash?this._dashedBezierTo(e,t,n,r,i,a):this._ctx.bezierCurveTo(e,t,n,r,i,a)),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this.addData(l.Q,e,t,n,r),this._ctx&&(this._needsDash?this._dashedQuadraticTo(e,t,n,r):this._ctx.quadraticCurveTo(e,t,n,r)),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){C[0]=r,C[1]=i,O(C,a),r=C[0];var o=(i=C[1])-r;return this.addData(l.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=v(i)*n+e,this._yi=_(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._ctx&&this._ctx.rect(e,t,n,r),this.addData(l.R,e,t,n,r),this},e.prototype.closePath=function(){this.addData(l.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.setLineDash=function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&f<=e||c<0&&f>=e||0===c&&(d>0&&p<=t||d<0&&p>=t);)f+=c*(n=a[r=this._dashIdx]),p+=d*n,this._dashIdx=(r+1)%v,c>0&&fl||d>0&&pu||o[r%2?"moveTo":"lineTo"](c>=0?m(f,e):g(f,e),d>=0?m(p,t):g(p,t));c=f-e,d=p-t,this._dashOffset=-y(c*c+d*d)},e.prototype._dashedBezierTo=function(e,t,n,r,i,a){var o,l,u,c,d,h=this._ctx,f=this._dashSum,p=this._dashOffset,m=this._lineDash,g=this._xi,v=this._yi,_=0,b=this._dashIdx,S=m.length,w=0;for(p<0&&(p=f+p),p%=f,o=0;o<1;o+=.1)l=Object(s.cubicAt)(g,e,n,i,o+.1)-Object(s.cubicAt)(g,e,n,i,o),u=Object(s.cubicAt)(v,t,r,a,o+.1)-Object(s.cubicAt)(v,t,r,a,o),_+=y(l*l+u*u);for(;bp);b++);for(o=(w-p)/_;o<=1;)c=Object(s.cubicAt)(g,e,n,i,o),d=Object(s.cubicAt)(v,t,r,a,o),b%2?h.moveTo(c,d):h.lineTo(c,d),o+=m[b]/_,b=(b+1)%S;b%2!=0&&h.lineTo(i,a),l=i-c,u=a-d,this._dashOffset=-y(l*l+u*u)},e.prototype._dashedQuadraticTo=function(e,t,n,r){var i=n,a=r;n=(n+2*e)/3,r=(r+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,r,i,a)},e.prototype.toStatic=function(){if(this._saveData){var e=this.data;e instanceof Array&&(e.length=this._len,E&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){d[0]=d[1]=f[0]=f[1]=Number.MAX_VALUE,h[0]=h[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,a=0,s=0,u=0;for(e=0;en||b(C)>r||f===t-1)&&(S=Math.sqrt(j*j+C*C),i=E,a=x);break;case l.C:var T=e[f++],O=e[f++],x=(E=e[f++],e[f++]),M=e[f++],k=e[f++];S=Object(s.cubicLength)(i,a,T,O,E,x,M,k,10),i=M,a=k;break;case l.Q:T=e[f++],O=e[f++],E=e[f++],x=e[f++];S=Object(s.quadraticLength)(i,a,T,O,E,x,10),i=E,a=x;break;case l.A:var A=e[f++],D=e[f++],R=e[f++],L=e[f++],I=e[f++],N=e[f++],P=N+I;f+=1;e[f++];y&&(o=v(I)*R+A,u=_(I)*L+D),S=g(R,L)*m(w,Math.abs(N)),i=v(P)*R+A,a=_(P)*L+D;break;case l.R:o=i=e[f++],u=a=e[f++],S=2*e[f++]+2*e[f++];break;case l.Z:var j=o-i;C=u-a;S=Math.sqrt(j*j+C*C),i=o,a=u}S>=0&&(c[h++]=S,d+=S)}return this._pathLen=d,d},e.prototype.rebuildPath=function(e,t){var n,r,i,a,o,d,h,f,p=this.data,y=this._ux,S=this._uy,w=this._len,E=t<1,C=0,T=0;if(!E||(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,f=t*this._pathLen))e:for(var O=0;Oy||b(d-a)>S||O===w-1){if(E){if(C+(Q=h[T++])>f){var k=(f-C)/Q;e.lineTo(i*(1-k)+o*k,a*(1-k)+d*k);break e}C+=Q}e.lineTo(o,d),i=o,a=d}break;case l.C:var A=p[O++],D=p[O++],R=p[O++],L=p[O++],I=p[O++],N=p[O++];if(E){if(C+(Q=h[T++])>f){k=(f-C)/Q;Object(s.cubicSubdivide)(i,A,R,I,k,u),Object(s.cubicSubdivide)(a,D,L,N,k,c),e.bezierCurveTo(u[1],c[1],u[2],c[2],u[3],c[3]);break e}C+=Q}e.bezierCurveTo(A,D,R,L,I,N),i=I,a=N;break;case l.Q:A=p[O++],D=p[O++],R=p[O++],L=p[O++];if(E){if(C+(Q=h[T++])>f){k=(f-C)/Q;Object(s.quadraticSubdivide)(i,A,R,k,u),Object(s.quadraticSubdivide)(a,D,L,k,c),e.quadraticCurveTo(u[1],c[1],u[2],c[2]);break e}C+=Q}e.quadraticCurveTo(A,D,R,L),i=R,a=L;break;case l.A:var P=p[O++],j=p[O++],B=p[O++],F=p[O++],Y=p[O++],H=p[O++],U=p[O++],W=!p[O++],V=B>F?B:F,z=b(B-F)>.001,G=Y+H,$=!1;if(E)C+(Q=h[T++])>f&&(G=Y+H*(f-C)/Q,$=!0),C+=Q;if(z&&e.ellipse?e.ellipse(P,j,B,F,U,Y,G,W):e.arc(P,j,V,Y,G,W),$)break e;M&&(n=v(Y)*B+P,r=_(Y)*F+j),i=v(G)*B+P,a=_(G)*F+j;break;case l.R:n=i=p[O],r=a=p[O+1],o=p[O++],d=p[O++];var q=p[O++],K=p[O++];if(E){if(C+(Q=h[T++])>f){var X=f-C;e.moveTo(o,d),e.lineTo(o+m(X,q),d),(X-=q)>0&&e.lineTo(o+q,d+m(X,K)),(X-=K)>0&&e.lineTo(o+g(q-X,0),d+K),(X-=q)>0&&e.lineTo(o,d+g(K-X,0));break e}C+=Q}e.rect(o,d,q,K);break;case l.Z:if(E){var Q;if(C+(Q=h[T++])>f){k=(f-C)/Q;e.lineTo(i*(1-k)+n*k,a*(1-k)+r*k);break e}C+=Q}e.closePath(),i=n,a=r}}},e.CMD=l,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._needsDash=!1,t._dashOffset=0,t._dashIdx=0,t._dashSum=0,t._ux=0,void(t._uy=0)),e}();t.default=x},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(5),a=n(797),o=[0,1],s=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Object(i.getPixelPrecision)(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&l(n=n.slice(),r.count()),Object(i.linearMap)(e,o,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&l(n=n.slice(),r.count());var a=Object(i.linearMap)(e,n,o,t);return this.scale.scale(a)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=Object(a.createAxisTicks)(this,t).ticks,o=Object(r.map)(n,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,a){var o=t.length;if(!e.onBand||n||!o)return;var s,l,u=e.getExtent();if(1===o)t[0].coord=u[0],s=t[1]={coord:u[0]};else{var c=t[o-1].tickValue-t[0].tickValue,d=(t[o-1].coord-t[0].coord)/c;Object(r.each)(t,(function(e){e.coord-=d/2}));var h=e.scale.getExtent();l=1+h[1]-t[o-1].tickValue,s={coord:t[o-1].coord+d*l},t.push(s)}var f=u[0]>u[1];p(t[0].coord,u[0])&&(a?t[0].coord=u[0]:t.shift());a&&p(u[0],t[0].coord)&&t.unshift({coord:u[0]});p(u[1],s.coord)&&(a?s.coord=u[1]:t.pop());a&&p(s.coord,u[1])&&t.push({coord:u[1]});function p(e,t){return e=Object(i.round)(e),t=Object(i.round)(t),f?e>t:e0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return Object(r.map)(t,(function(e){return Object(r.map)(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return Object(a.createAxisLabels)(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return Object(a.calculateCategoryInterval)(this)},e}();function l(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"debugMode",(function(){return i})),n.d(t,"devicePixelRatio",(function(){return a})),n.d(t,"DARK_MODE_THRESHOLD",(function(){return o})),n.d(t,"DARK_LABEL_COLOR",(function(){return s})),n.d(t,"LIGHT_LABEL_COLOR",(function(){return l})),n.d(t,"LIGHTER_LABEL_COLOR",(function(){return u}));var r=1;"undefined"!=typeof window&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i=0,a=r,o=.4,s="#333",l="#ccc",u="#eee"},function(e,t,n){"use strict";n.r(t),n.d(t,"SELECTION_TYPE_UNRECOGNIZED",(function(){return l})),n.d(t,"SELECTION_TYPE_EMPTY",(function(){return u})),n.d(t,"SELECTION_TYPE_ARRAY",(function(){return c})),n.d(t,"SELECTION_TYPE_OBJECT",(function(){return d})),n.d(t,"SELECTION_TYPES",(function(){return h})),n.d(t,"detectSelectionType",(function(){return g})),n.d(t,"normalizeSelectionFactory",(function(){return v})),n.d(t,"transformSelectionToColumnDistance",(function(){return _})),n.d(t,"transformSelectionToRowDistance",(function(){return y})),n.d(t,"isValidCoord",(function(){return b}));n(19),n(20),n(21),n(98),n(122),n(16),n(393),n(292),n(13),n(34),n(322),n(145),n(17),n(18);var r=n(15),i=n(2),a=n(28);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e){return(s="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)}var l=0,u=1,c=2,d=3,h=[d,c],f=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],p=Symbol("root"),m=Symbol("child");function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;if(t!==p&&t!==m)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),i=t===p,a=l;if(n){var o=e[0];if(0===e.length)a=u;else if(i&&o instanceof r.CellRange)a=d;else if(i&&Array.isArray(o))a=g(o,m);else if(e.length>=2&&e.length<=4){var h=!e.some((function(e,t){return!f[t].includes(s(e))}));h&&(a=c)}}return a}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,r=void 0!==n&&n,i=t.propToCol;if(!h.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(t){var n=e===d,o=n?t.from.row:t[0],s=n?t.from.col:t[1],l=n?t.to.row:t[2],u=n?t.to.col:t[3];if("function"==typeof i&&("string"==typeof s&&(s=i(s)),"string"==typeof u&&(u=i(u))),Object(a.isUndefined)(l)&&(l=o),Object(a.isUndefined)(u)&&(u=s),!r){var c=o,h=s,f=l,p=u;o=Math.min(c,f),s=Math.min(h,p),l=Math.max(c,f),u=Math.max(h,p)}return[o,s,l,u]}}function _(e){var t=g(e);if(t===l||t===u)return[];var n=v(t),r=new Set;Object(i.arrayEach)(e,(function(e){var t=o(n(e),4),a=t[1],s=t[3]-a+1;Object(i.arrayEach)(Array.from(new Array(s),(function(e,t){return a+t})),(function(e){r.has(e)||r.add(e)}))}));var a=Array.from(r).sort((function(e,t){return e-t}));return Object(i.arrayReduce)(a,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])}function y(e){var t=g(e);if(t===l||t===u)return[];var n=v(t),r=new Set;Object(i.arrayEach)(e,(function(e){var t=o(n(e),3),a=t[0],s=t[2]-a+1;Object(i.arrayEach)(Array.from(new Array(s),(function(e,t){return a+t})),(function(e){r.has(e)||r.add(e)}))}));var a=Array.from(r).sort((function(e,t){return e-t}));return Object(i.arrayReduce)(a,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return"number"==typeof e&&e>=0&&e=0){var i=n.getData().tree.root,a=e.targetNode;if("string"==typeof a&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var o=e.targetNodeId;if(null!=o&&(a=i.getNodeById(o)))return{node:a}}}function a(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function o(e,t){var n=a(e);return r.indexOf(n,t)>=0}function s(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"DATA_ZOOM_AXIS_DIMENSIONS",(function(){return i})),n.d(t,"isCoordSupported",(function(){return o})),n.d(t,"getAxisMainType",(function(){return s})),n.d(t,"getAxisIndexPropName",(function(){return l})),n.d(t,"getAxisIdPropName",(function(){return u})),n.d(t,"findEffectedDataZooms",(function(){return c})),n.d(t,"collectReferCoordSysModelInfo",(function(){return d}));var r=n(0),i=["x","y","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function o(e){var t=e.get("coordinateSystem");return Object(r.indexOf)(a,t)>=0}function s(e){return e+"Axis"}function l(e){return e+"AxisIndex"}function u(e){return e+"AxisId"}function c(e,t){var n,i=Object(r.createHashMap)(),a=[],o=Object(r.createHashMap)();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||l(e)}));do{n=!1,e.eachComponent("dataZoom",s)}while(n);function s(e){!o.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}(e)&&(l(e),n=!0)}function l(e){o.set(e.uid,!0),a.push(e),e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return a}function d(e){var t=e.ecModel,n={infoList:[],infoMap:Object(r.createHashMap)()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(s(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,l=n.infoMap.get(o);l||(l={model:a,axisModels:[]},n.infoList.push(l),n.infoMap.set(o,l)),l.axisModels.push(i)}}})),n}},function(e,t,n){"use strict";n.r(t);var r=n(59),i=n(49),a=n(333),o={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var l=Object(a.subPixelOptimizeLine)(o,t,this.style);n=l.x1,r=l.y1,i=l.x2,s=l.y2}else n=t.x1,r=t.y1,i=t.x2,s=t.y2;var u=t.percent;0!==u&&(e.moveTo(n,r),u<1&&(i=n*(1-u)+i*u,s=r*(1-u)+s*u),e.lineTo(i,s))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(i.default);l.prototype.type="line",t.default=l},function(e,t,n){"use strict";var r=n(566),i=n(153),a=n(176),o=n(318),s=n(191),l=n(832),u=n(1977),c=n(567),d=Math.max,h=Math.min;r("replace",2,(function(e,t,n,r){var f=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,p=r.REPLACE_KEEPS_$0,m=f?"$":"$0";return[function(n,r){var i=s(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!f&&p||"string"==typeof r&&-1===r.indexOf(m)){var s=n(t,e,this,r);if(s.done)return s.value}var g=i(e),v=String(this),_="function"==typeof r;_||(r=String(r));var y=g.global;if(y){var b=g.unicode;g.lastIndex=0}for(var S=[];;){var w=c(g,v);if(null===w)break;if(S.push(w),!y)break;""===String(w[0])&&(g.lastIndex=l(v,a(g.lastIndex),b))}for(var E,C="",T=0,O=0;O=T&&(C+=v.slice(T,M)+L,T=M+x.length)}return C+v.slice(T)}]}))},function(e,t,n){"use strict";n.r(t);var r=n(443),i=n(11),a=n(314),o=n(35),s=n(790),l=n(26),u=n(338),c=n(25),d=n(793),h=Object(o.default)(d.default).extend({inject:["$amapMap"],amapMeta:{slot:!1,initComponent:a.panic,add:function(e,t){t.setMap(e.target)},remove:function(e,t){t.setMap(null)}},props:{extraOptions:{type:Object,required:!1,default:void 0}},beforeCreate:function(){var e=Object(r.default)(),t={AMap:null,ready:e.promise,target:null,vm:this,destroyed:!1};this.$amap={events:{},ready:e,context:t,logger:Object(s.createLogger)(this)}},mounted:function(){return Object(i.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,a,o,s;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return t=(e=this).$amap,n=e.$context,r=e.$container,a=this.$options.amapMeta,[4,r.ready];case 1:return i.sent(),n.AMap=r.AMap,a.prepare?[4,a.prepare()]:[3,3];case 2:i.sent(),i.label=3;case 3:return o=Object(l.getOptionsFromProps)(this),n.destroyed?[2]:[4,a.initComponent.call(this,n.AMap,o)];case 4:return s=i.sent(),n.target=s,a.add.call(this,r,s),Object(c.bindProps)(this),Object(u.bindEvents)(this),t.ready.resolve(s),this.$emit("amap-ready",s),[2]}}))}))},beforeDestroy:function(){var e=this.$context,t=this.$container,n=this.$target;n&&(Object(u.unbindEvents)(this),this.$options.amapMeta.remove.call(this,t,n)),e.destroyed=!0},render:function(e){return this.$options.amapMeta.slot&&this.$slots.default?e("div",{class:"amap-vue-placeholder",style:"visibility: hidden; pointer-events: none;"},this.$slots.default):null}});t.default=h},function(e,t,n){"use strict";n.r(t),n.d(t,"BE_ORDINAL",(function(){return o})),n.d(t,"resetSourceDefaulter",(function(){return l})),n.d(t,"makeSeriesEncodeForAxisCoordSys",(function(){return u})),n.d(t,"makeSeriesEncodeForNameBased",(function(){return c})),n.d(t,"querySeriesUpstreamDatasetModel",(function(){return d})),n.d(t,"queryDatasetUpstreamDatasetModels",(function(){return h})),n.d(t,"guessOrdinal",(function(){return f}));var r=n(7),i=n(0),a=n(33),o={Must:1,Might:2,Not:3},s=Object(r.makeInner)();function l(e){s(e).datasetMap=Object(i.createHashMap)()}function u(e,t,n){var r={},a=d(t);if(!a||!e)return r;var o,l,u=[],c=[],h=t.ecModel,f=s(h).datasetMap,p=a.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(i.each)(e,(function(t,n){var a=Object(i.isObject)(t)?t:e[n]={name:t};"ordinal"===a.type&&null==o&&(o=n,l=v(a)),r[a.name]=[]}));var m=f.get(p)||f.set(p,{categoryWayDim:l,valueWayDim:0});function g(e,t,n){for(var r=0;ra&&(c=s.interval=a);var d=s.intervalPrecision=o(c);return l(s.niceTickExtent=[i(Math.ceil(e[0]/c)*c,d),i(Math.floor(e[1]/c)*c,d)],e),s}function o(e){return r.getPrecisionSafe(e)+2}function s(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function l(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),s(e,0,t),s(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function u(e,t){return e>=t[0]&&e<=t[1]}function c(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function d(e,t){return e*(t[1]-t[0])+t[0]}},function(e,t,n){var r,i,a,o,s,l,u,c,d,h,f,p,m,g,v,_,y,b,S;e.exports=(r=n(99),n(366),void(r.lib.Cipher||(i=r,a=i.lib,o=a.Base,s=a.WordArray,l=a.BufferedBlockAlgorithm,u=i.enc,u.Utf8,c=u.Base64,d=i.algo.EvpKDF,h=a.Cipher=l.extend({cfg:o.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,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?S:y}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),a.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=i.mode={},p=a.BlockCipherMode=o.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}}),m=f.CBC=function(){var e=p.extend();function t(e,t,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},a.BlockCipher=h.extend({cfg:h.cfg.extend({mode:m,padding:g}),reset:function(){var e;h.reset.call(this);var t=this.cfg,n=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,n&&n.words):(this._mode=e.call(r,this,n&&n.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}),v=a.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),_=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=s.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},y=a.SerializableCipher=o.extend({cfg:o.extend({format:_}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),a=i.finalize(t),o=i.cfg;return v.create({ciphertext:a,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(i.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=s.random(8));var i=d.create({keySize:t+n}).compute(e,r),a=s.create(i.words.slice(t),4*n);return i.sigBytes=4*t,v.create({key:i,iv:a,salt:r})}},S=a.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:b}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var a=y.encrypt.call(this,e,t,i.key,r);return a.mixIn(i),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}}))))},function(e,t,n){"use strict";n.r(t),n.d(t,"throttle",(function(){return a})),n.d(t,"createOrUpdate",(function(){return o})),n.d(t,"clear",(function(){return s}));var r="\0__throttleOriginMethod",i="\0__throttleRate";function a(e,t,n){var r,i,a,o,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(a,o||[])}t=t||0;var h=function(){for(var e=[],h=0;h=0?d():c=setTimeout(d,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function o(e,t,n,o){var s=e[t];if(s){var l=s[r]||s,u=s["\0__throttleType"];if(s[i]!==n||u!==o){if(null==n||!o)return e[t]=l;(s=e[t]=a(l,n,"debounce"===o))[r]=l,s["\0__throttleType"]=o,s[i]=n}return s}}function s(e,t){var n=e[t];n&&n[r]&&(e[t]=n[r])}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(47),a=n(159),o=n(82),s=n(37),l=n(29),u=n(71),c=n(5),d=n(93),h=n(46),f=n(23),p=n(85),m=Math.PI,g=function(){function e(e,t){this.group=new i.default,this.opt=t,this.axisModel=e,Object(r.defaults)(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new i.default({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!v[e]},e.prototype.add=function(e){v[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,a=Object(c.remRadian)(t-e);return Object(c.isRadianAroundZero)(a)?(i=n>0?"top":"bottom",r="center"):Object(c.isRadianAroundZero)(a-m)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=a>0&&a0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),v={axisLine:function(e,t,n,i){var o=t.get(["axisLine","show"]);if("auto"===o&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),o){var s=t.axis.getExtent(),l=i.transform,u=[s[0],0],c=[s[1],0];l&&(Object(f.applyTransform)(u,u,l),Object(f.applyTransform)(c,c,l));var h=Object(r.extend)({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new a.default({subPixelOptimize:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});p.anid="line",n.add(p);var m=t.get(["axisLine","symbol"]),g=t.get(["axisLine","symbolSize"]),v=t.get(["axisLine","symbolOffset"])||0;if("number"==typeof v&&(v=[v,v]),null!=m){"string"==typeof m&&(m=[m,m]),"string"!=typeof g&&"number"!=typeof g||(g=[g,g]);var _=g[0],y=g[1];Object(r.each)([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-c[0])*(u[0]-c[0])+(u[1]-c[1])*(u[1]-c[1]))}],(function(t,r){if("none"!==m[r]&&null!=m[r]){var i=Object(d.createSymbol)(m[r],-_/2,-y/2,_,y,h.stroke,!0),a=t.r+t.offset;i.attr({rotation:t.rotate,x:u[0]+a*Math.cos(e.rotation),y:u[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,i){var a=function(e,t,n,i){var a=n.axis,o=n.getModel("axisTick"),s=o.get("show");"auto"===s&&i.handleAutoShown&&(s=i.handleAutoShown("axisTick"));if(!s||a.scale.isBlank())return;for(var l=o.getModel("lineStyle"),u=i.tickDirection*o.get("length"),c=S(a.getTicksCoords(),t.transform,u,Object(r.defaults)(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d_[1]?-1:1,S=["start"===h?_[0]-y*v:"end"===h?_[1]+y*v:(_[0]+_[1])/2,b(h)?e.labelOffset+f*v:0],w=t.get("nameRotate");null!=w&&(w=w*m/180),b(h)?u=g.innerTextLayout(e.rotation,null!=w?w:e.rotation,f):(u=function(e,t,n,r){var i,a,o=Object(c.remRadian)(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;Object(c.isRadianAroundZero)(o-m/2)?(a=l?"bottom":"top",i="center"):Object(c.isRadianAroundZero)(o-1.5*m)?(a=l?"top":"bottom",i="center"):(a="middle",i=o<1.5*m&&o>m/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:i,textVerticalAlign:a}}(e.rotation,h,w||0,_),null!=(d=e.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(u.rotation)),!isFinite(d)&&(d=null)));var E=p.getFont(),C=t.get("nameTruncate",!0)||{},T=C.ellipsis,O=Object(r.retrieve)(e.nameTruncateMaxWidth,C.maxWidth,d),x=t.get("tooltip",!0),M=t.mainType,k={componentType:M,name:a,$vars:["name"]};k[M+"Index"]=t.componentIndex;var A=new o.default({x:S[0],y:S[1],rotation:u.rotation,silent:g.isLabelSilent(t),style:Object(l.createTextStyle)(p,{text:a,font:E,overflow:"truncate",width:O,ellipsis:T,fill:p.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:p.get("align")||u.textAlign,verticalAlign:p.get("verticalAlign")||u.textVerticalAlign}),z2:1});if(A.tooltip=x&&x.show?Object(r.extend)({content:a,formatter:function(){return a},formatterParams:k},x):null,A.__fullText=a,A.anid="name",t.get("triggerEvent")){var D=g.makeAxisEventDataBase(t);D.targetType="axisName",D.name=a,Object(s.getECData)(A).eventData=D}i.add(A),A.updateTransform(),n.add(A),A.decomposeTransform()}}};function _(e){e&&(e.ignore=!0)}function y(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=h.identity([]);return h.rotate(i,i,-e.rotation),n.applyTransform(h.mul([],i,e.getLocalTransform())),r.applyTransform(h.mul([],i,t.getLocalTransform())),n.intersect(r)}}function b(e){return"middle"===e||"center"===e}function S(e,t,n,r,i){for(var o=[],s=[],l=[],u=0;u0&&void 0!==arguments[0]?arguments[0]:"common";i.has(e)||i.set(e,new Map);var t=i.get(e);function n(e,n){t.set(e,n)}function a(e){return t.get(e)}function o(e){return t.has(e)}function s(){return r(t.keys())}function l(){return r(t.values())}return{register:n,getItem:a,hasItem:o,getNames:s,getValues:l}}},function(e,t,n){"use strict";n.r(t),n.d(t,"PRESERVED_NORMAL_STATE",(function(){return h}));var r=n(187),i=n(250),a=n(44),o=n(143),s=n(63),l=n(0),u=n(150),c=n(78),d=n(60),h="__zr_normal__",f=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],p={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},m={},g=new a.default(0,0,0,0),v=function(){function e(e){this.id=Object(l.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.attachedTransform,a=void 0,o=void 0,l=!1;i.parent=r?this:null;var u=!1;if(i.x=t.x,i.y=t.y,i.originX=t.originX,i.originY=t.originY,i.rotation=t.rotation,i.scaleX=t.scaleX,i.scaleY=t.scaleY,null!=n.position){var c=g;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(m,n,c):Object(s.calculateTextPosition)(m,n,c),i.x=m.x,i.y=m.y,a=m.align,o=m.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var h=void 0,f=void 0;"center"===d?(h=.5*c.width,f=.5*c.height):(h=Object(s.parsePercent)(d[0],c.width),f=Object(s.parsePercent)(d[1],c.height)),u=!0,i.originX=-i.x+h+(r?0:c.x),i.originY=-i.y+f+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var v=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,S=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(y),S=!0)):(y=n.outsideFill,b=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(y),S=!0)),(y=y||"#000")===_.fill&&b===_.stroke&&S===_.autoStroke&&a===_.align&&o===_.verticalAlign||(l=!0,_.fill=y,_.stroke=b,_.autoStroke=S,_.align=a,_.verticalAlign=o,t.setDefaultTextStyle(_)),l&&t.dirtyStyle(),t.markRedraw()}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u.LIGHT_LABEL_COLOR:u.DARK_LABEL_COLOR},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&Object(c.parse)(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Object(c.stringify)(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(l.extend)(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(Object(l.isObject)(e))for(var n=e,r=Object(l.keys)(n),i=0;i0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(h,!1,e)},e.prototype.useState=function(t,n,r){var i=t===h;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(Object(l.indexOf)(a,t)>=0)||!n&&1!==a.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var u=!(!s||!s.hoverLayer);return u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,n,!r&&!this.__inHover&&o&&o.duration>0,o),this._textContent&&this._textContent.useState(t,n),this._textGuide&&this._textGuide.useState(t,n),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~e.REDARAW_BIT),s}Object(l.logError)("State "+t+" not exists.")}}},e.prototype.useStates=function(t,n){if(t.length){var r=[],i=this.currentStates,a=t.length,o=a===i.length;if(o)for(var s=0;s0,h),this._textContent&&this._textContent.useStates(t),this._textGuide&&this._textGuide.useStates(t),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~e.REDARAW_BIT)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Object(l.indexOf)(r,e),a=Object(l.indexOf)(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();function _(e,t,n,r,a){var o=[];!function e(t,n,r,a,o,s,u,c){for(var d=[],h=[],f=Object(l.keys)(a),p=o.duration,m=o.delay,g=o.additive,v=o.setToFinal,_=!Object(l.isObject)(s),y=0;y0||o.force&&!u.length){for(var E=t.animators,C=[],T=0;T0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var p=0;pu&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t=0&&(l[s]=+l[s].toFixed(p)),[l,f]}var s={min:Object(a.curry)(o,"min"),max:Object(a.curry)(o,"max"),average:Object(a.curry)(o,"average"),median:Object(a.curry)(o,"median")};function l(e,t){var n=e.getData(),r=e.coordinateSystem;if(t&&!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!Object(a.isArray)(t.coord)&&r){var i=r.dimensions,o=u(t,n,r,e);if((t=Object(a.clone)(t)).type&&s[t.type]&&o.baseAxis&&o.valueAxis){var l=Object(a.indexOf)(i,o.baseAxis.dim),c=Object(a.indexOf)(i,o.valueAxis.dim),d=s[t.type](n,o.baseDataDim,o.valueDataDim,l,c);t.coord=d[0],t.value=d[1]}else{for(var f=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],p=0;p<2;p++)s[f[p]]&&(f[p]=h(n,n.mapDimension(i[p]),f[p]));t.coord=f}}return t}function u(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(function(e,t){var n=e.getData(),r=n.dimensions;t=n.getDimension(t);for(var i=0;i0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(80),i=n(291).filter;r({target:"Array",proto:!0,forced:!n(471)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(121);Object.defineProperty(t,"__esModule",{value:!0}),t.getRgbValue=c,t.getRgbaValue=d,t.getOpacity=h,t.toRgb=f,t.toHex=p,t.getColorFromRgbValue=m,t.darken=g,t.lighten=v,t.fade=_,t.default=void 0;var i=r(n(155)),a=r(n(2428)),o=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,s=/^(rgb|rgba|RGB|RGBA)/,l=/^(rgba|RGBA)/;function u(e){var t=o.test(e),n=s.test(e);return t||n?e:(e=function(e){if(!e)return console.error("getColorByKeywords: Missing parameters!"),!1;return!!a.default.has(e)&&a.default.get(e)}(e))||(console.error("Color: Invalid color!"),!1)}function c(e){if(!e)return console.error("getRgbValue: Missing parameters!"),!1;if(!(e=u(e)))return!1;var t=o.test(e),n=s.test(e),r=e.toLowerCase();return t?function(e){3===(e=e.replace("#","")).length&&(e=Array.from(e).map((function(e){return e+e})).join(""));return e=e.split(""),new Array(3).fill(0).map((function(t,n){return parseInt("0x".concat(e[2*n]).concat(e[2*n+1]))}))}(r):n?function(e){return e.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map((function(e){return parseInt(e)}))}(r):void 0}function d(e){if(!e)return console.error("getRgbaValue: Missing parameters!"),!1;var t=c(e);return!!t&&(t.push(h(e)),t)}function h(e){return e?!!(e=u(e))&&(l.test(e)?(e=e.toLowerCase(),Number(e.split(",").slice(-1)[0].replace(/[)|\s]/g,""))):1):(console.error("getOpacity: Missing parameters!"),!1)}function f(e,t){if(!e)return console.error("toRgb: Missing parameters!"),!1;var n=c(e);return!!n&&("number"==typeof t?"rgba("+n.join(",")+",".concat(t,")"):"rgb("+n.join(",")+")")}function p(e){return e?o.test(e)?e:!!(e=c(e))&&"#"+e.map((function(e){return Number(e).toString(16)})).map((function(e){return"0"===e?"00":e})).join(""):(console.error("toHex: Missing parameters!"),!1)}function m(e){if(!e)return console.error("getColorFromRgbValue: Missing parameters!"),!1;var t=e.length;if(3!==t&&4!==t)return console.error("getColorFromRgbValue: Value is illegal!"),!1;var n=3===t?"rgb(":"rgba(";return n+=e.join(",")+")"}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)return console.error("darken: Missing parameters!"),!1;var n=d(e);return!!n&&m(n=n.map((function(e,n){return 3===n?e:e-Math.ceil(2.55*t)})).map((function(e){return e<0?0:e})))}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)return console.error("lighten: Missing parameters!"),!1;var n=d(e);return!!n&&m(n=n.map((function(e,n){return 3===n?e:e+Math.ceil(2.55*t)})).map((function(e){return e>255?255:e})))}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!e)return console.error("fade: Missing parameters!"),!1;var n=c(e);if(!n)return!1;var r=[].concat((0,i.default)(n),[t/100]);return m(r)}var y={fade:_,toHex:p,toRgb:f,darken:g,lighten:v,getOpacity:h,getRgbValue:c,getRgbaValue:d,getColorFromRgbValue:m};t.default=y},function(e,t,n){"use strict";function r(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function i(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function a(e,t,n,r){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:0}}n.r(t),n.d(t,"getItemVisualFromData",(function(){return r})),n.d(t,"getVisualFromData",(function(){return i})),n.d(t,"setItemVisualFromData",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"sortComparison",(function(){return o})),n.d(t,"toVisualValue",(function(){return s})),n.d(t,"createArrayAssertion",(function(){return c})),n.d(t,"toEmptyString",(function(){return d})),n.d(t,"unifyColumnValues",(function(){return h})),n.d(t,"intersectValues",(function(){return f}));n(98),n(64),n(16),n(292),n(13),n(322),n(17),n(18);var r=n(114),i=n(2),a=Object(r.getComparisonFunction)();function o(e,t){return"number"==typeof e&&"number"==typeof t?e-t:a(e,t)}function s(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}var l=new Set([1]).has(1),u=l&&"function"==typeof Array.from;function c(e){var t=e;return l&&(t=new Set(t)),function(e){return l?t.has(e):!!~t.indexOf(e)}}function d(e){return null==e?"":e}function h(e){var t=e;return t=(t=u?Array.from(new Set(t)):Object(i.arrayUnique)(t)).sort((function(e,t){return"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1}))}function f(e,t,n,r){var a,o=[],l=e===t;return l||(a=c(t)),Object(i.arrayEach)(e,(function(e){var t=!1;(l||a(e))&&(t=!0);var i={checked:t,value:e,visualValue:s(e,n)};r&&r(i),o.push(i)})),o}},function(e,t,n){"use strict";n.r(t);var r=n(59),i=n(49),a=n(737),o=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a.buildPath(e,t,!0)},t}(i.default);s.prototype.type="polygon",t.default=s},function(e,t,n){var r=n(174),i=n(1069),a=n(153),o=n(461),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(2430),i=n(2431),a=n(1537),o=n(2432);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(e){return null==e?0:e.length||1}function i(e){return e}n.r(t);var a=function(){function e(e,t,n,r,a,o){this._old=e,this._new=t,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=a,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,o)}else 1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(1===d&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(1===d&&1===h)this._update&&this._update(c,u),i[l]=null;else if(d>1)for(var f=0;f1)for(var s=0;s5e-5||e<-5e-5}var s=[],l=[],u=r.create(),c=Math.abs,d=function(){function e(){}var t;return e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return o(this.rotation)||o(this.x)||o(this.y)||o(this.scaleX-1)||o(this.scaleY-1)},e.prototype.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),i=this.transform;n||t?(i=i||r.create(),n?this.getLocalTransform(i):a(i),t&&(n?r.mul(i,e.transform,i):r.copy(i,e.transform)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&a(i)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(s);var n=s[0]<0?-1:1,i=s[1]<0?-1:1,a=((s[0]-n)*t+n)/s[0]||0,o=((s[1]-i)*t+i)/s[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,e)},e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3];o(t-1)&&(t=Math.sqrt(t)),o(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),this.rotation=Math.atan2(-e[1]/n,e[0]/t),t<0&&n<0&&(this.rotation+=Math.PI,t=-t,n=-n),this.x=e[4],this.y=e[5],this.scaleX=t,this.scaleY=n}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(r.mul(l,e.invTransform,t),t=l);var n=this.originX,i=this.originY;(n||i)&&(u[4]=n,u[5]=i,r.mul(l,t,u),l[4]-=n,l[5]-=i,t=l),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i.applyTransform(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&c(e[0]-1)>1e-10&&c(e[3]-1)>1e-10?Math.sqrt(c(e[0]*e[3]-e[2]*e[1])):1},e.getLocalTransform=function(e,t){a(t=t||[]);var n=e.originX||0,i=e.originY||0,o=e.scaleX,s=e.scaleY,l=e.rotation||0,u=e.x,c=e.y;return t[4]-=n,t[5]-=i,t[0]*=o,t[1]*=s,t[2]*=o,t[3]*=s,t[4]*=o,t[5]*=s,l&&r.rotate(t,t,l),t[4]+=n,t[5]+=i,t[4]+=u,t[5]+=c,t},e.initDefaultProps=((t=e.prototype).x=0,t.y=0,t.scaleX=1,t.scaleY=1,t.originX=0,t.originY=0,t.rotation=0,void(t.globalScaleRatio=1)),e}();t.default=d},function(e,t,n){"use strict";n.r(t);var r=n(59),i=n(49),a=n(1593),o=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},s=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a.buildPath(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(i.default);s.prototype.type="sector",t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(59),i=n(49),a=n(737),o=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a.buildPath(e,t,!1)},t}(i.default);s.prototype.type="polyline",t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"ASC_SORT_STATE",(function(){return o})),n.d(t,"DESC_SORT_STATE",(function(){return s})),n.d(t,"HEADER_SPAN_CLASS",(function(){return l})),n.d(t,"areValidSortStates",(function(){return c})),n.d(t,"getNextSortOrder",(function(){return d})),n.d(t,"getHeaderSpanElement",(function(){return h})),n.d(t,"isFirstLevelColumnHeader",(function(){return f})),n.d(t,"wasHeaderClickedProperly",(function(){return p}));n(394),n(98),n(122),n(64),n(16),n(573),n(320),n(321),n(13),n(322),n(17),n(18);var r=n(28),i=n(3),a=n(30),o="asc",s="desc",l="colHeader";function u(e){if(Object(r.isUndefined)(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[o,s].includes(n)}function c(e){if(!1===Array.isArray(e)||!1===e.every((function(e){return Object(i.isObject)(e)})))return!1;var t=e.map((function(e){return e.column}));return new Set(t).size===t.length&&e.every(u)}function d(e){if(e!==s)return e===o?s:o}function h(e){return e.querySelector(".".concat(l))}function f(e,t){if(e<0||!t.parentNode)return!1;var n=t.parentNode.parentNode.childNodes;return-1===Array.from(n).indexOf(t.parentNode)-n.length}function p(e,t,n){return-1===e&&t>=0&&!1===Object(a.isRightClick)(n)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(304),a=n(74),o={},s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(r.__extends)(t,e),t.prototype.render=function(t,n,r,a){this.axisPointerClass&&i.fixValue(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=i.getAxisPointerModel(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){o[e]=t},t.getAxisPointerClass=function(e){return e&&o[e]},t.type="axis",t}(a.default);t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"line",(function(){return c})),n.d(t,"plane",(function(){return u}));var r=n(35),i=n(26),a=n(25),o=n(444),s=n(339),l=Object(r.default)(o.default).extend({props:{strokeColor:Object(a.defineProp)({type:String,setter:Object(i.makeOptionsSetter)("strokeColor")}),strokeOpacity:Object(a.defineProp)({type:Number,setter:Object(i.makeOptionsSetter)("strokeOpacity")}),strokeWeight:Object(a.defineProp)({type:Number,setter:Object(i.makeOptionsSetter)("strokeWeight")}),strokeStyle:Object(a.defineProp)({type:String,setter:Object(i.makeOptionsSetter)("strokeStyle"),validator:function(e){return s.StrokeStyles.includes(e)}}),strokeDasharray:Object(a.defineProp)({type:Array,deep:!0,equals:i.theSameArray,setter:Object(i.makeOptionsSetter)("strokeDasharray")})}}),u=Object(r.default)(l).extend({props:{fillColor:Object(a.defineProp)({type:String,setter:Object(i.makeOptionsSetter)("fillColor")}),fillOpacity:Object(a.defineProp)({type:Number,setter:Object(i.makeOptionsSetter)("fillOpacity")})}}),c=Object(r.default)(l).extend({props:{lineJoin:Object(a.defineProp)({type:String,setter:Object(i.makeOptionsSetter)("lineJoin"),validator:function(e){return s.LineJoins.includes(e)}}),lineCap:Object(a.defineProp)({type:String,setter:Object(i.makeOptionsSetter)("lineCap"),validator:function(e){return s.LineCaps.includes(e)}}),showDir:Object(a.defineProp)({type:Boolean,default:void 0,setter:Object(i.makeOptionsSetter)("showDir")}),dirColor:Object(a.defineProp)({type:String,setter:Object(i.makeOptionsSetter)("dirColor")}),dirImg:Object(a.defineProp)({type:Object,setter:Object(i.makeOptionsSetter)("dirImg")}),isOutline:Object(a.defineProp)({type:Boolean,default:void 0,setter:Object(i.makeOptionsSetter)("isOutline")}),outlineColor:Object(a.defineProp)({type:String,setter:Object(i.makeOptionsSetter)("outlineColor")}),borderWeight:Object(a.defineProp)({type:Number,setter:Object(i.makeOptionsSetter)("borderWeight")}),geodesic:Object(a.defineProp)({type:Boolean,default:void 0,setter:Object(i.makeOptionsSetter)("geodesic")})}});t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"parseDataValue",(function(){return o})),n.d(t,"getRawValueParser",(function(){return l})),n.d(t,"SortOrderComparator",(function(){return d})),n.d(t,"createFilterComparator",(function(){return f}));var r=n(5),i=n(0),a=n(54);function o(e,t){var n=t&&t.type;if("ordinal"===n){var i=t&&t.ordinalMeta;return i?i.parseAndCollect(e):e}return"time"===n&&"number"!=typeof e&&null!=e&&"-"!==e&&(e=+Object(r.parseDate)(e)),null==e||""===e?NaN:+e}var s=Object(i.createHashMap)({number:function(e){return parseFloat(e)},time:function(e){return+Object(r.parseDate)(e)},trim:function(e){return"string"==typeof e?Object(i.trim)(e):e}});function l(e){return s.get(e)}var u={lt:function(e,t){return et},gte:function(e,t){return e>=t}},c=function(){function e(e,t){if("number"!=typeof t){0,Object(a.throwError)("")}this._opFn=u[e],this._rvalFloat=Object(r.numericToNumber)(t)}return e.prototype.evaluate=function(e){return"number"==typeof e?this._opFn(e,this._rvalFloat):this._opFn(Object(r.numericToNumber)(e),this._rvalFloat)},e}(),d=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=typeof e,i=typeof t,a="number"===n?e:Object(r.numericToNumber)(e),o="number"===i?t:Object(r.numericToNumber)(t),s=isNaN(a),l=isNaN(o);if(s&&(a=this._incomparable),l&&(o=this._incomparable),s&&l){var u="string"===n,c="string"===i;u&&(a=c?e:0),c&&(o=u?t:0)}return ao?-this._resultLT:0},e}(),h=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Object(r.numericToNumber)(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=Object(r.numericToNumber)(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function f(e,t){return"eq"===e||"ne"===e?new h("eq"===e,t):Object(i.hasOwn)(u,e)?new c(e,t):null}},function(e,t,n){"use strict";n.r(t);var r=n(124),i=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();r.enableClassManagement(i),t.default=i},function(e,t,n){"use strict";function r(e,t){return e.type===t}n.r(t),n.d(t,"isCoordinateSystemType",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"EditorState",(function(){return f}));n(19),n(20),n(21),n(16),n(36),n(40),n(13),n(17),n(568),n(18);var r=n(15),i=n(28),a=n(3),o=n(1817);function s(e){return(s="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)}function l(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;nn[2]&&(r=n[0],n[0]=n[2],n[2]=r),n[1]>n[3]&&(r=n[1],n[1]=n[3],n[3]=r)):n=[this.row,this.col,null,null],this.hot.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")}},{key:"beginEditing",value:function(e,t){if(this.state===f.VIRGIN){if(this.hot.view.scrollViewport(new r.CellCoords(this.row,this.col)),this.state=f.EDITING,this.isInFullEditMode()){var n="string"==typeof e?e:Object(i.stringify)(this.originalValue);this.setValue(n)}this.open(t),this._opened=!0,this.focus(),this.hot.view.render(),this.hot.runHooks("afterBeginEditing",this.row,this.col)}}},{key:"finishEditing",value:function(e,t,n){var r,i=this;if(n){var a=this._closeCallback;this._closeCallback=function(e){a&&a(e),n(e),i.hot.view.render()}}if(!this.isWaiting())if(this.state!==f.VIRGIN){if(this.state===f.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();var o=this.getValue();r=this.hot.getSettings().trimWhitespace?[["string"==typeof o?String.prototype.trim.call(o||""):o]]:[[o]],this.state=f.WAITING,this.saveValue(r,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(function(e){i.state=f.FINISHED,i.discardEditor(e)})):(this.state=f.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((function(){i._fireCallbacks(!0)}))}},{key:"cancelChanges",value:function(){this.state=f.FINISHED,this.discardEditor()}},{key:"discardEditor",value:function(e){this.state===f.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=f.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=f.VIRGIN,this._fireCallbacks(!0)))}},{key:"enableFullEditMode",value:function(){this._fullEditMode=!0}},{key:"isInFullEditMode",value:function(){return this._fullEditMode}},{key:"isOpened",value:function(){return this._opened}},{key:"isWaiting",value:function(){return this.state===f.WAITING}},{key:"getEditedCellsLayerClass",value:function(){switch(this.checkEditorSection()){case"right":return"ht_clone_right";case"left":return"ht_clone_left";case"bottom":return"ht_clone_bottom";case"bottom-right-corner":return"ht_clone_bottom_right_corner";case"bottom-left-corner":return"ht_clone_bottom_left_corner";case"top":return"ht_clone_top";case"top-right-corner":return"ht_clone_top_right_corner";case"top-left-corner":return"ht_clone_top_left_corner";default:return"ht_clone_master"}}},{key:"getEditedCell",value:function(){return this.hot.getCell(this.row,this.col,!0)}},{key:"checkEditorSection",value:function(){var e=this.hot.countRows(),t="";return this.row=e-this.hot.getSettings().fixedRowsBottom?t=this.coli&&(i+=f);var m=Math.atan2(l,o);if(m<0&&(m+=f),m>=r&&m<=i||m+f>=r&&m+f<=i)return u[0]=d,u[1]=h,c-n;var g=n*Math.cos(r)+e,v=n*Math.sin(r)+t,_=n*Math.cos(i)+e,y=n*Math.sin(i)+t,b=(g-o)*(g-o)+(v-l)*(v-l),S=(_-o)*(_-o)+(y-l)*(y-l);return b0){t=t/180*Math.PI,E.fromArray(e[0]),C.fromArray(e[1]),T.fromArray(e[2]),r.default.sub(O,E,C),r.default.sub(x,T,C);var n=O.len(),i=x.len();if(!(n<.001||i<.001)){O.scale(1/n),x.scale(1/i);var a=O.dot(x);if(Math.cos(t)1&&r.default.copy(A,T),A.toArray(e[1])}}}}function R(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,E.fromArray(e[0]),C.fromArray(e[1]),T.fromArray(e[2]),r.default.sub(O,C,E),r.default.sub(x,T,C);var i=O.len(),a=x.len();if(!(i<.001||a<.001))if(O.scale(1/i),x.scale(1/a),O.dot(t)=s)r.default.copy(A,T);else{A.scaleAndAdd(x,o/Math.tan(Math.PI/2-l));var u=T.x!==C.x?(A.x-C.x)/(T.x-C.x):(A.y-C.y)/(T.y-C.y);if(isNaN(u))return;u<0?r.default.copy(A,C):u>1&&r.default.copy(A,T)}A.toArray(e[1])}}}function L(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function I(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=d.dist(r[0],r[1]),a=d.dist(r[1],r[2]);if(!i||!a)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=d.lerp([],r[1],r[0],o/i),l=d.lerp([],r[1],r[2],o/a),u=d.lerp([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c1||"".split(/.?/).length?function(e,n){var r=String(o(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,a);for(var s,l,u,c=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,h+"g");(s=d.call(m,r))&&!((l=m.lastIndex)>p&&(c.push(r.slice(p,s.index)),s.length>1&&s.index=a));)m.lastIndex===s.index&&m.lastIndex++;return p===r.length?!u&&m.test("")||c.push(""):c.push(r.slice(p)),c.length>a?c.slice(0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=o(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var d=a(e),h=String(this),f=s(d,RegExp),g=d.unicode,v=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(m?"y":"g"),_=new f(m?d:"^(?:"+d.source+")",v),y=void 0===i?4294967295:i>>>0;if(0===y)return[];if(0===h.length)return null===c(_,h)?[h]:[];for(var b=0,S=0,w=[];S"+i+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(0);function i(e,t){for(var n=0;n=0||a&&r.indexOf(a,l)<0)){var u=n.getShallow(l,t);null!=u&&(o[e[s][0]]=u)}}return o}}},function(e,t,n){"use strict";function r(e,t,n,r,o,s){e=e||0;var l=n[1]-n[0];if(null!=o&&(o=a(o,[0,l])),null!=s&&(s=Math.max(s,null!=o?o:0)),"all"===r){var u=Math.abs(t[1]-t[0]);u=a(u,[0,l]),o=s=a(u,[o,s]),r=0}t[0]=a(t[0],n),t[1]=a(t[1],n);var c=i(t,r);t[r]+=e;var d,h=o||0,f=n.slice();return c.sign<0?f[0]+=h:f[1]-=h,t[r]=a(t[r],f),d=i(t,r),null!=o&&(d.sign!==c.sign||d.spans&&(t[1-r]=t[r]+d.sign*s),t}function i(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function a(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}n.r(t),n.d(t,"default",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"createCanvasPattern",(function(){return b})),n.d(t,"brushSingle",(function(){return M})),n.d(t,"brush",(function(){return k}));var r=n(138),i=n(148),a=n(285),o=n(335),s=n(49),l=n(109),u=n(245),c=n(63),d=n(0),h=n(537),f=n(170),p=n(328),m=new i.default(!0);function g(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function v(e){var t=e.fill;return null!=t&&"none"!==t}function _(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function y(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function b(e,t,n){var r=Object(a.createOrUpdateImage)(t.image,t.__image,n);if(Object(a.isImageReady)(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix){var o=new DOMMatrix;o.rotateSelf(0,0,(t.rotation||0)/Math.PI*180),o.scaleSelf(t.scaleX||1,t.scaleY||1),o.translateSelf(t.x||0,t.y||0),i.setTransform(o)}return i}}var S=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function E(e,t,n,i,a){var o=!1;if(!i&&t===(n=n||{}))return!1;(i||t.opacity!==n.opacity)&&(o||(O(e,a),o=!0),e.globalAlpha=null==t.opacity?r.DEFAULT_COMMON_STYLE.opacity:t.opacity),(i||t.blend!==n.blend)&&(o||(O(e,a),o=!0),e.globalCompositeOperation=t.blend||r.DEFAULT_COMMON_STYLE.blend);for(var s=0;s0&&Object(h.normalizeLineDash)(n.lineDash,n.lineWidth),R=n.lineDashOffset,L=!!e.setLineDash,I=t.getGlobalScale();if(f.setScale(I[0],I[1],t.segmentIgnoreThreshold),D){var N=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;N&&1!==N&&(D=Object(d.map)(D,(function(e){return e/N})),R/=N)}var P=!0;(c||t.__dirty&s.default.SHAPE_CHANGED_BIT||D&&!L&&i)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),P=!1),f.reset(),D&&!L&&(f.setLineDash(D),f.setLineDashOffset(R)),t.buildPath(f,t.shape,r),f.toStatic(),t.pathUpdated()),P&&f.rebuildPath(e,u?l:1),D&&L&&(e.setLineDash(D),e.lineDashOffset=R),r||(n.strokeFirst?(i&&y(e,n),a&&_(e,n)):(a&&_(e,n),i&&y(e,n))),D&&L&&e.setLineDash([])}(e,t,N,I),I&&(n.batchFill=N.fill||"",n.batchStroke=N.stroke||"")):t instanceof u.default?(3!==n.lastDrawType&&(A=!0,n.lastDrawType=3),C(e,t,D,A,n),function(e,t,n){var r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||c.DEFAULT_FONT,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0;if(e.setLineDash){var a=n.lineDash&&n.lineWidth>0&&Object(h.normalizeLineDash)(n.lineDash,n.lineWidth),o=n.lineDashOffset;if(a){var s=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(a=Object(d.map)(a,(function(e){return e/s})),o/=s),e.setLineDash(a),e.lineDashOffset=o,i=!0}}n.strokeFirst?(g(n)&&e.strokeText(r,n.x,n.y),v(n)&&e.fillText(r,n.x,n.y)):(v(n)&&e.fillText(r,n.x,n.y),g(n)&&e.strokeText(r,n.x,n.y)),i&&e.setLineDash([])}}(e,t,N)):t instanceof l.default?(2!==n.lastDrawType&&(A=!0,n.lastDrawType=2),function(e,t,n,r,i){E(e,x(t,i.inHover),n&&x(n,i.inHover),r,i)}(e,t,D,A,n),function(e,t,n){var r=t.__image=Object(a.createOrUpdateImage)(n.image,t.__image,t,t.onload);if(r&&Object(a.isImageReady)(r)){var i=n.x||0,o=n.y||0,s=t.getWidth(),l=t.getHeight(),u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,d=n.sy||0;e.drawImage(r,c,d,n.sWidth,n.sHeight,i,o,s,l)}else if(n.sx&&n.sy){var h=s-(c=n.sx),f=l-(d=n.sy);e.drawImage(r,c,d,h,f,i,o,s,l)}else e.drawImage(r,i,o,s,l)}}(e,t,N)):t instanceof p.default&&(4!==n.lastDrawType&&(A=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(a=t.getCursor(),o=r.length;a=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}}],(n=[{key:"normalize",value:function(e){var t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col)}},{key:"includes",value:function(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}},{key:"includesHorizontally",value:function(e){return this.col<=e&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return this.row<=e&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],r=t+Math.abs(e[0]||e[1])-1,i=e[0]?"colspan":"rowspan",a=e[0]?"col":"row",o=Math.min(t,r),s=Math.max(t,r),l=this[a],u=this[a]+this[i]-1;if(l>=t&&(this[a]+=n),n>0)t<=u&&t>l&&(this[i]+=n);else if(n<0){if(o<=l&&s>=u)return this.removed=!0,!1;if(l>=o&&l<=s){var c=s-l+1,d=Math.abs(n)-c;this[a]-=d+n,this[i]-=c}else if(l<=o&&u>=s)this[i]+=n;else if(l<=o&&u>=o&&uthis.row:"right"===t?e.col+e.colspan-1this.col:null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return new r.CellRange(new r.CellCoords(this.row,this.col),new r.CellCoords(this.row,this.col),new r.CellCoords(this.getLastRow(),this.getLastColumn()))}}])&&c(t.prototype,n),u&&c(t,u),e}();t.default=d},function(e,t,n){"use strict";n.r(t),n.d(t,"init",(function(){return i})),n.d(t,"firstWalk",(function(){return a})),n.d(t,"secondWalk",(function(){return o})),n.d(t,"separation",(function(){return s})),n.d(t,"radialCoordinate",(function(){return l})),n.d(t,"getViewRect",(function(){return u}));var r=n(38);function i(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[t];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var a=r.length-1;a>=0;a--){var o=r[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(o)}}function a(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,r=0,i=0;for(;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=function(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,p=o.hierNode.modifier,m=s.hierNode.modifier;s=c(s),a=d(a),s&&a;){i=c(i),o=d(o),i.hierNode.ancestor=e;var g=s.hierNode.prelim+m-a.hierNode.prelim-u+r(s,a);g>0&&(f(h(s,e,n),e,g),u+=g,l+=g),m+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,p+=o.hierNode.modifier}s&&!c(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=m-l),a&&!d(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-p,n=e)}return n}(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function o(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function s(e){return arguments.length?e:p}function l(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function u(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function d(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function h(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function f(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function p(e,t){return e.parentNode===t.parentNode?1:2}},function(e,t,n){var r=n(460),i=n(191);e.exports=function(e){return r(i(e))}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(477),i=n(262);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(478),i=n(350),a=n(220),o=n(261),s=n(219),l=n(1424),u=Object.getOwnPropertyDescriptor;t.f=n(141)?u:function(e,t){if(e=a(e),t=o(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(219),i=n(154),a=n(838)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,i=n(296),a=n(223),o=n(1517);r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-l:l,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,a=0;e.cmpn(-i)>0||t.cmpn(-a)>0;){var o,s,l=e.andln(3)+i&3,u=t.andln(3)+a&3;3===l&&(l=-1),3===u&&(u=-1),o=0==(1&l)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==u?l:-l,n[0].push(o),s=0==(1&u)?0:3!==(r=t.andln(7)+a&7)&&5!==r||2!==l?u:-u,n[1].push(s),2*i===o+1&&(i=1-i),2*a===s+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(1607);function i(e,t){return t=t||{},Object(r.default)(t.coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}},function(e,t,n){"use strict";n.r(t),n.d(t,"Entry",(function(){return r})),n.d(t,"LinkedList",(function(){return i}));var r=function(e){this.value=e},i=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new r(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),a=function(){function e(e){this._list=new i,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(null==i[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return a},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(7);function i(){var e=Object(r.makeInner)();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===o&&a===s)&&"reset"}}},function(e,t,n){"use strict";n.r(t),n.d(t,"AxisModelCommonMixin",(function(){return r}));var r=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n(225),i=n(118),a=n(0);function o(e,t,n){t=Object(a.isArray)(t)&&{coordDimensions:t}||Object(a.extend)({},t);var o=e.getSource(),s=Object(r.default)(o,t),l=new i.default(s,e);return l.initData(o,n),l}},function(e,t,n){"use strict";n.r(t);n(19),n(20),n(21),n(98),n(122),n(16),n(13),n(34),n(17),n(18);var r=n(1),i=n(96),a=n(115),o=n(608),s=n(609),l=n(611),u=n(67),c=n(1810),d=n(1811);function h(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]&&arguments[0],t=this.wot,n=t.wtOverlays,i=t.wtViewport,a=t.getSetting("totalRows"),l=t.getSetting("totalColumns"),c=t.getSetting("rowHeaders"),d=c.length,h=t.getSetting("columnHeaders"),f=h.length,p=!1,m=e;if(this.isMaster&&(this.holderOffset=Object(r.offset)(this.holder),m=i.createRenderCalculators(m),d&&!t.getSetting("fixedColumnsLeft"))){var g=n.leftOverlay.getScrollPosition(),v=this.correctHeaderWidth;this.correctHeaderWidth=g>0,v!==this.correctHeaderWidth&&(m=!1)}if(this.isMaster&&(p=n.prepareOverlays()),m)this.isMaster&&i.createVisibleCalculators(),n&&n.refresh(!0);else{this.isMaster?this.tableOffset=Object(r.offset)(this.TABLE):this.tableOffset=this.wot.cloneSource.wtTable.tableOffset;var _=a>0?this.getFirstRenderedRow():0,y=l>0?this.getFirstRenderedColumn():0;this.rowFilter=new s.default(_,a,f),this.columnFilter=new o.default(y,l,d);var b,S=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();var w={};this.wot.getSetting("beforeDraw",!0,w),S=!0!==w.skipRender}if(S)if(this.tableRenderer.setHeaderContentRenderers(c,h),(this.is(u.default.CLONE_BOTTOM)||this.is(u.default.CLONE_BOTTOM_LEFT_CORNER))&&this.tableRenderer.setHeaderContentRenderers(c,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(b=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(u.default.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster){this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var E=Object(r.outerWidth)(this.hider),C=Object(r.outerWidth)(this.TABLE);0!==E&&C!==E&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),b!==this.wot.wtViewport.getWorkspaceWidth()&&(this.wot.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wot.getSetting("onDraw",!0)}else this.is(u.default.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize()}return this.refreshSelections(m),this.isMaster&&(n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&n.bottomOverlay.resetFixedPosition(),n.leftOverlay.resetFixedPosition(),n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition()),p&&n.syncScrollWithMaster(),t.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,i,a=this.wot.wtTable.columnFilter.renderedToSource(e),o=this.wot.getSetting("columnHeaders").length,s=this.wot.wtSettings.settings.defaultRowHeight,l=this.wot.getSetting("columnHeaderHeight")||[];o;)o-=1,t=this.wot.wtTable.getColumnHeaderHeight(o),(n=this.wot.wtTable.getColumnHeader(a,o))&&(i=Object(r.innerHeight)(n),(!t&&s=0)throw new Error("TR was expected to be rendered but is not");var s=o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)];if(!s&&n>=0)throw new Error("TD or TH was expected to be rendered but is not");return s}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getRowHeader",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=Object(r.closest)(t,["TD","TH"])),null===t)return null;var n=t.parentNode,i=n.parentNode,o=Object(r.index)(n),s=t.cellIndex;return Object(r.overlayContainsElement)(u.default.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||Object(r.overlayContainsElement)(u.default.CLONE_TOP,t,this.wtRootElement)?"THEAD"===i.nodeName&&(o-=i.childNodes.length):o=Object(r.overlayContainsElement)(u.default.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)||Object(r.overlayContainsElement)(u.default.CLONE_BOTTOM,t,this.wtRootElement)?this.wot.getSetting("totalRows")-i.childNodes.length+o:i===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o),s=Object(r.overlayContainsElement)(u.default.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||Object(r.overlayContainsElement)(u.default.CLONE_LEFT,t,this.wtRootElement)||Object(r.overlayContainsElement)(u.default.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(s):this.columnFilter.visibleRowHeadedColumnToSourceColumn(s),new a.default(o,s)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e,t,n,i,a,o=this.TBODY.childNodes.length;if(o*this.wot.wtSettings.settings.defaultRowHeight!=Object(r.innerHeight)(this.TBODY)-1||this.wot.getSetting("fixedRowsBottom"))for(;o;)o-=1,n=this.rowFilter.renderedToSource(o),e=this.getRowHeight(n),t=(a=(i=this.getTrForRow(n)).querySelector("th"))?Object(r.innerHeight)(a):Object(r.innerHeight)(i)-1,(!e&&this.wot.wtSettings.settings.defaultRowHeightthis.wot.getSetting("columnHeaders").length-1}},{key:"isRowHeaderLevelRendered",value:function(e){return e>this.wot.getSetting("rowHeaders").length-1}},{key:"isRowBeforeRenderedRows",value:function(e){var t=this.getFirstRenderedRow();return e<0&&(e=0),-1===t||ethis.getLastVisibleRow()}},{key:"isRowAfterRenderedRows",value:function(e){if(e<0){var t=this.wot.getSetting("columnHeaders").length+e;return this.isColumnHeaderLevelRendered(t)}return e>this.getLastRenderedRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isColumnBeforeRenderedColumns",value:function(e){var t=this.getFirstRenderedColumn();return e<0&&(e=0),-1===t||ethis.getLastVisibleColumn()}},{key:"isColumnAfterRenderedColumns",value:function(e){if(e<0){var t=this.wot.getSetting("rowHeaders").length+e;return this.isRowHeaderLevelRendered(t)}return this.columnFilter&&e>this.getLastRenderedColumn()}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(e){return this.rowUtils.getHeight(e)}},{key:"getColumnHeaderHeight",value:function(e){return this.columnUtils.getHeaderHeight(e)}},{key:"getColumnWidth",value:function(e){return this.columnUtils.getWidth(e)}},{key:"getStretchedColumnWidth",value:function(e){return this.columnUtils.getStretchedColumnWidth(e)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&&this.hasTableWidth}},{key:"isVisible",value:function(){return Object(r.isVisible)(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t=Object(i.isFunction)(e)?e():null;return Array.isArray(t)?(t=h(t))[t.length-1]=this._correctRowHeaderWidth(t[t.length-1]):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){var t=e;return"number"!=typeof e&&(t=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}])&&p(t.prototype,n),m&&p(t,m),e}();t.default=m},function(e,t,n){"use strict";n.r(t),n.d(t,"RecordTranslator",(function(){return o})),n.d(t,"registerIdentity",(function(){return u})),n.d(t,"getTranslator",(function(){return c})),n.d(t,"getIdentity",(function(){return d}));n(16),n(13),n(17),n(101),n(18);var r=n(371),i=n(3);function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:1,i=Object(r.arrayMax)(this._arrayMap)+1,o=[];return Object(a.rangeEach)(n-1,(function(n){o.push(t._arrayMap.splice(e+n,0,i+n))})),o},removeItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[];if(Array.isArray(e)){var r=[].concat(this._arrayMap);e.sort((function(e,t){return t-e}));for(var i=0,a=e.length;i1&&void 0!==arguments[1]?arguments[1]:1,n=this.removeItems(e,t);function i(e){return Object(r.arrayReduce)(n,(function(t,n){var r=t;return e>n&&(r+=1),r}),0)}this._arrayMap=Object(r.arrayMap)(this._arrayMap,(function(e){var t=e,n=i(t);return n&&(t-=n),t}))},shiftItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._arrayMap=Object(r.arrayMap)(this._arrayMap,(function(t){var r=t;return r>=e&&(r+=n),r})),Object(a.rangeEach)(n-1,(function(n){t._arrayMap.splice(e+n,0,e+n)}))},swapIndexes:function(e,t){var n;(n=this._arrayMap).splice.apply(n,[t,0].concat(o(this._arrayMap.splice(e,1))))},clearMap:function(){this._arrayMap.length=0}};Object(i.defineGetter)(s,"MIXIN_NAME","arrayMapper",{writable:!1,enumerable:!1}),t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"fromPoints",(function(){return f})),n.d(t,"fromLine",(function(){return p})),n.d(t,"fromCubic",(function(){return v})),n.d(t,"fromQuadratic",(function(){return _})),n.d(t,"fromArc",(function(){return y}));var r=n(23),i=n(57),a=Math.min,o=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=r.create(),d=r.create(),h=r.create();function f(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],s=r[0],l=r[1],u=r[1],c=1;c1e-4)return p[0]=e-n,p[1]=t-i,m[0]=e+n,void(m[1]=t+i);if(c[0]=l(a)*n+e,c[1]=s(a)*i+t,d[0]=l(o)*n+e,d[1]=s(o)*i+t,g(p,c,d),v(m,c,d),(a%=u)<0&&(a+=u),(o%=u)<0&&(o+=u),a>o&&!f?o+=u:aa&&(h[0]=l(b)*n+e,h[1]=s(b)*i+t,g(p,h,p),v(m,h,m))}},function(e,t,n){"use strict";n.r(t),n.d(t,"spreadsheetColumnLabel",(function(){return o})),n.d(t,"spreadsheetColumnIndex",(function(){return s})),n.d(t,"createSpreadsheetData",(function(){return l})),n.d(t,"createSpreadsheetObjectData",(function(){return u})),n.d(t,"createEmptySpreadsheetData",(function(){return c})),n.d(t,"translateRowsToColumns",(function(){return d})),n.d(t,"cellMethodLookupFactory",(function(){return h}));n(36);var r=n(311),i=n(3),a="ABCDEFGHIJKLMNOPQRSTUVWXYZ".length;function o(e){for(var t,n=e+1,r="";n>0;)t=(n-1)%a,r=String.fromCharCode(65+t)+r,n=parseInt((n-t)/a,10);return r}function s(e){var t=0;if(e)for(var n=0,r=e.length-1;n0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;e0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;e0?r:n)(e)}},function(e,t,n){"use strict";var r=n(103);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_TSPAN_STYLE",(function(){return l}));var r=n(59),i=n(138),a=n(63),o=n(49),s=n(0),l=Object(s.defaults)({strokeFirst:!0,font:a.DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},o.DEFAULT_PATH_STYLE),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Object(s.createObject)(l,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Object(a.getBoundingRect)(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(i.default);u.prototype.type="tspan",t.default=u},function(e,t,n){"use strict";n.r(t);var r=n(0),i={},a=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];r.each(i,(function(r,i){var a=r.create(e,t);n=n.concat(a||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){r.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){i[e]=t},e.get=function(e){return i[e]},e}();t.default=a},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(5),a=n(73),o=n(196),s=n(165),l=i.round,u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return Object(r.__extends)(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return s.contain(e,this._extent)},t.prototype.normalize=function(e){return s.normalize(e,this._extent)},t.prototype.scale=function(e){return s.scale(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.getIntervalPrecision(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;n[0]1e4)return[];var s=a.length?a[a.length-1].value:r[1];return n[1]>s&&(e?a.push({value:l(s+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&d.5?t:e}function u(e,t,n,r){for(var i=t.length,a=0;as)r.length=s;else for(var l=a;l=2&&this.interpolable},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t){e>=this.maxTime?this.maxTime=e:this._needsSort=!0;var n=this.keyframes,r=n.length;if(this.interpolable)if(Object(a.isArrayLike)(t)){var o=function(e){return Object(a.isArrayLike)(e&&e[0])?2:1}(t);if(r>0&&this.arrDim!==o)return void(this.interpolable=!1);if(1===o&&"number"!=typeof t[0]||2===o&&"number"!=typeof t[0][0])return void(this.interpolable=!1);if(r>0){var s=n[r-1];this._isAllValueEqual&&(1===o&&p(t,s.value)||(this._isAllValueEqual=!1))}this.arrDim=o}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof t){var l=i.parse(t);l?(t=l,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof t)return void(this.interpolable=!1);if(this._isAllValueEqual&&r>0){s=n[r-1];(this.isValueColor&&!p(s.value,t)||s.value!==t)&&(this._isAllValueEqual=!1)}}var u={time:e,value:t,percent:0};return this.keyframes.push(u),u},e.prototype.prepare=function(e){var t=this.keyframes;this._needsSort&&t.sort((function(e,t){return e.time-t.time}));for(var n=this.arrDim,r=t.length,i=t[r-1],a=0;a0&&a!==r-1&&f(t[a].value,i.value,n);if(e&&this.needsAnimate()&&e.needsAnimate()&&n===e.arrDim&&this.isValueColor===e.isValueColor&&!e._finished){this._additiveTrack=e;var o=t[0].value;for(a=0;a=0&&!(a[n].percent<=t);n--);n=Math.min(n,o-2)}else{for(n=this._lastFrame;nt);n++);n=Math.min(n-1,o-2)}var p=a[n+1],v=a[n];if(v&&p){this._lastFrame=n,this._lastFramePercent=t;var b=p.percent-v.percent;if(0!==b){var S=(t-v.percent)/b,w=r?this._additiveValue:f?y:e[d];if((h>0||f)&&!w&&(w=this._additiveValue=[]),this.useSpline){var E=a[n][i],C=a[0===n?n:n-1][i],T=a[n>o-2?o-1:n+1][i],O=a[n>o-3?o-1:n+2][i];if(h>0)1===h?g(w,C,E,T,O,S,S*S,S*S*S):function(e,t,n,r,i,a,o,s){for(var l=t.length,u=t[0].length,c=0;c0)1===h?u(w,v[i],p[i],S):c(w,v[i],p[i],S);else if(f)u(w,v[i],p[i],S),r||(e[d]=_(w));else{x=void 0;x=this.interpolable?s(v[i],p[i],S):l(v[i],p[i],S),r?this._additiveValue=x:e[d]=x}r&&this._addToTarget(e)}}}},e.prototype._addToTarget=function(e){var t=this.arrDim,n=this.propName,r=this._additiveValue;0===t?this.isValueColor?(i.parse(e[n],y),d(y,y,r,1),e[n]=_(y)):e[n]=e[n]+r:1===t?d(e[n],e[n],r,1):2===t&&h(e[n],e[n],r,1)},e}(),S=function(){function e(e,t,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n?Object(a.logError)("Can' use additive animation on looped animation."):this._additiveAnimators=n}return e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t){return this.whenWithKeys(e,t,Object(a.keys)(t))},e.prototype.whenWithKeys=function(e,t,n){for(var r=this._tracks,i=0;i0)){this._started=1;for(var n=this,i=[],a=0;a1){var s=o.pop();i.addKeyframe(s.time,e[r]),i.prepare(i.getAdditiveTrack())}}}},e}();t.default=S},function(e,t,n){"use strict";n.r(t),n.d(t,"getLayoutOnAxis",(function(){return c})),n.d(t,"prepareLayoutBarSeries",(function(){return d})),n.d(t,"makeColumnLayout",(function(){return h})),n.d(t,"retrieveColumnLayout",(function(){return p})),n.d(t,"layout",(function(){return m})),n.d(t,"largeLayout",(function(){return g}));var r=n(0),i=n(5),a=n(137),o=n(227),s="undefined"!=typeof Float32Array?Float32Array:Array;function l(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function u(e){return e.dim+e.index}function c(e){var t=[],n=e.axis;if("category"===n.type){for(var i=n.getBandWidth(),a=0;a0&&(o=null===o?l:Math.min(o,l))}n[i]=o}}return n}(e),n=[];return r.each(e,(function(e){var r,a=e.coordinateSystem.getBaseAxis(),o=a.getExtent();if("category"===a.type)r=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,c=t[s],d=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),f=Math.abs(h[1]-h[0]);r=c?d/f*c:d}else{var p=e.getData();r=Math.abs(o[1]-o[0])/p.count()}var m=Object(i.parsePercent)(e.get("barWidth"),r),g=Object(i.parsePercent)(e.get("barMaxWidth"),r),v=Object(i.parsePercent)(e.get("barMinWidth")||1,r),_=e.get("barGap"),y=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:m,barMaxWidth:g,barMinWidth:v,barGap:_,barCategoryGap:y,axisKey:u(a),stackId:l(e)})})),f(n)}function f(e){var t={};r.each(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=e.barMaxWidth;u&&(o[s].maxWidth=u);var c=e.barMinWidth;c&&(o[s].minWidth=c);var d=e.barGap;null!=d&&(a.gap=d);var h=e.barCategoryGap;null!=h&&(a.categoryGap=h)}));var n={};return r.each(t,(function(e,t){n[t]={};var a=e.stacks,o=e.bandWidth,s=e.categoryGap;if(null==s){var l=r.keys(a).length;s=Math.max(35-4*l,15)+"%"}var u=Object(i.parsePercent)(s,o),c=Object(i.parsePercent)(e.gap,1),d=e.remainedWidth,h=e.autoWidthCount,f=(d-u)/(h+(h-1)*c);f=Math.max(f,0),r.each(a,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,d-=r+c*r,h--}else{var r=f;t&&tr&&(r=n),r!==f&&(e.width=r,d-=r+c*r,h--)}})),f=(d-u)/(h+(h-1)*c),f=Math.max(f,0);var p,m=0;r.each(a,(function(e,t){e.width||(e.width=f),p=e,m+=e.width*(1+c)})),p&&(m-=p.width*c);var g=-m/2;r.each(a,(function(e,r){n[t][r]=n[t][r]||{bandWidth:o,offset:g,width:e.width},g+=e.width*(1+c)}))})),n}function p(e,t,n){if(e&&t){var r=e[u(t)];return null!=r&&null!=n?r[l(n)]:r}}function m(e,t){var n=d(e,t),i=h(n),o={};r.each(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),s=l(e),c=i[u(r)][s],d=c.offset,h=c.width,f=n.getOtherAxis(r),p=e.get("barMinHeight")||0;o[s]=o[s]||[],t.setLayout({bandWidth:c.bandWidth,offset:d,size:h});for(var m=t.mapDimension(f.dim),g=t.mapDimension(r.dim),v=Object(a.isDimensionStacked)(t,m),_=f.isHorizontal(),b=y(r,f,v),S=0,w=t.count();S=0?"p":"n",O=b;v&&(o[s][C]||(o[s][C]={p:b,n:b}),O=o[s][C][T]);var x,M=void 0,k=void 0,A=void 0,D=void 0;if(_)M=O,k=(x=n.dataToPoint([E,C]))[1]+d,A=x[0]-b,D=h,Math.abs(A).5||(d=.5),{progress:function(e,t){for(var h,f=e.count,p=new s(2*f),m=new s(2*f),g=new s(f),v=[],_=[],b=0,S=0;null!=(h=e.next());)_[c]=t.get(o,h),_[1-c]=t.get(l,h),v=n.dataToPoint(_,null,v),m[b]=u?r.x+r.width:v[0],p[b++]=v[0],m[b]=u?v[1]:r.y+r.height,p[b++]=v[1],g[S++]=h;t.setLayout({largePoints:p,largeDataIndices:g,largeBackgroundPoints:m,barWidth:d,valueAxisStart:y(i,a,!1),backgroundStart:u?r.x:r.y,valueAxisHorizontal:u})}}}}};function v(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function _(e){return e.pipelineContext&&e.pipelineContext.large}function y(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}},function(e,t,n){"use strict";n.r(t),n.d(t,"createVisualMappings",(function(){return l})),n.d(t,"replaceVisualOption",(function(){return u})),n.d(t,"applyVisual",(function(){return c})),n.d(t,"incrementalApplyVisual",(function(){return d}));var r=n(0),i=n(131),a=n(179),o=r.each;function s(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function l(e,t,n){var a={};return o(t,(function(t){var s,l=a[t]=((s=function(){}).prototype.__hidden=s.prototype,new s);o(e[t],(function(e,a){if(i.default.isValidType(a)){var o={type:a,visual:e};n&&n(o,t),l[a]=new i.default(o),"opacity"===a&&((o=r.clone(o)).type="colorAlpha",l.__hidden.__alphaForOpacity=new i.default(o))}}))})),a}function u(e,t,n){var i;r.each(n,(function(e){t.hasOwnProperty(e)&&s(t[e])&&(i=!0)})),i&&r.each(n,(function(n){t.hasOwnProperty(n)&&s(t[n])?e[n]=r.clone(t[n]):delete e[n]}))}function c(e,t,n,o,s,l){var u,c={};function d(e){return Object(a.getItemVisualFromData)(n,u,e)}function h(e,t){Object(a.setItemVisualFromData)(n,u,e,t)}function f(e,r){u=null==l?e:r;var i=n.getRawDataItem(u);if(!i||!1!==i.visualMap)for(var a=o.call(s,e),f=t[a],p=c[a],m=0,g=p.length;mt&&a>r||ai?s:0}n.r(t),n.d(t,"default",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"WORKING_SPACE_ALL",(function(){return r})),n.d(t,"WORKING_SPACE_TOP",(function(){return i})),n.d(t,"WORKING_SPACE_BOTTOM",(function(){return a}));var r=0,i=1,a=2},function(e,t,n){var r=n(174),i=n(182),a=n(459);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(132),i=n(256),a=n(175),o=n(813),s=n(1070),l=n(317),u=l.get,c=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,u=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),(l=c(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(u?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=n:i(e,t,n)):h?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t,n){"use strict";var r=n(564),i=n(1091);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){var r=n(80),i=n(1082),a=n(100),o=n(140),s=n(467).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:a((function(){l(1)})),sham:!i},{freeze:function(e){return l&&o(e)?l(s(e)):e}})},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(106);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(24),i=n(239),a=n(103);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",o)}},function(e,t,n){var r=n(240),i=n(477),a=n(154),o=n(129),s=n(854);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var m,g,v=a(t),_=i(v),y=r(s,p,3),b=o(_.length),S=0,w=n?f(t,b):l?f(t,0):void 0;b>S;S++)if((h||S in _)&&(g=y(m=_[S],S,v),e))if(n)w[S]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:w.push(m)}else if(c)return!1;return d?-1:u||c?c:w}}},function(e,t,n){"use strict";t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var r="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};t.noop=function(){},t.hasOwn=function(e,t){return l.call(e,t)},t.toObject=function(e){for(var t={},n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var c=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},d=(t.arrayFind=function(e,t){var n=c(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!o.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!o.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!o.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==(void 0===e?"undefined":r(e)))return e;var t=["ms-","webkit-"];return["transform","transition","animation"].forEach((function(n){var r=e[n];n&&r&&t.forEach((function(t){e[t+n]=r}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,s.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,s.isObject)(e),r=(0,s.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}),h=t.arrayEquals=function(e,t){if(t=t||[],(e=e||[]).length!==t.length)return!1;for(var n=0;n=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,n[r++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a>>0,e[t+1]=a},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,a,o,s){var l=0,u=t;return l+=(u=u+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,a,o,s,l,u){var c=0,d=t;return c+=(d=d+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,i,a,o,s,l,u){return t+r+a+s+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeDefaultConfig=function(e,t){if(!m["".concat(e,"Config")])return void console.warn("Change default config Error - Invalid key!");(0,p.deepMerge)(m["".concat(e,"Config")],t)},Object.defineProperty(t,"colorConfig",{enumerable:!0,get:function(){return r.colorConfig}}),Object.defineProperty(t,"gridConfig",{enumerable:!0,get:function(){return i.gridConfig}}),Object.defineProperty(t,"xAxisConfig",{enumerable:!0,get:function(){return a.xAxisConfig}}),Object.defineProperty(t,"yAxisConfig",{enumerable:!0,get:function(){return a.yAxisConfig}}),Object.defineProperty(t,"titleConfig",{enumerable:!0,get:function(){return o.titleConfig}}),Object.defineProperty(t,"lineConfig",{enumerable:!0,get:function(){return s.lineConfig}}),Object.defineProperty(t,"barConfig",{enumerable:!0,get:function(){return l.barConfig}}),Object.defineProperty(t,"pieConfig",{enumerable:!0,get:function(){return u.pieConfig}}),Object.defineProperty(t,"radarAxisConfig",{enumerable:!0,get:function(){return c.radarAxisConfig}}),Object.defineProperty(t,"radarConfig",{enumerable:!0,get:function(){return d.radarConfig}}),Object.defineProperty(t,"gaugeConfig",{enumerable:!0,get:function(){return h.gaugeConfig}}),Object.defineProperty(t,"legendConfig",{enumerable:!0,get:function(){return f.legendConfig}}),t.keys=void 0;var r=n(2444),i=n(2445),a=n(2446),o=n(2447),s=n(2448),l=n(2449),u=n(1538),c=n(2450),d=n(2451),h=n(1539),f=n(2452),p=n(31),m={colorConfig:r.colorConfig,gridConfig:i.gridConfig,xAxisConfig:a.xAxisConfig,yAxisConfig:a.yAxisConfig,titleConfig:o.titleConfig,lineConfig:s.lineConfig,barConfig:l.barConfig,pieConfig:u.pieConfig,radarAxisConfig:c.radarAxisConfig,radarConfig:d.radarConfig,gaugeConfig:h.gaugeConfig,legendConfig:f.legendConfig};t.keys=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"]},function(e,t,n){"use strict";var r=n(121);Object.defineProperty(t,"__esModule",{value:!0}),t.doUpdate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.chart,n=e.series,r=e.key,i=e.getGraphConfig,a=e.getStartGraphConfig,o=e.beforeChange,l=e.beforeUpdate,u=e.afterAddGraph;t[r]?t[r].update(n):t[r]=new s({chart:t,key:r,getGraphConfig:i,getStartGraphConfig:a,beforeChange:o,beforeUpdate:l,afterAddGraph:u},n)},t.Updater=void 0;var i=r(n(155)),a=r(n(192)),o=r(n(489)),s=function e(t,n){(0,o.default)(this,e);var r=t.chart,i=t.key;"function"==typeof t.getGraphConfig?(r[i]||(this.graphs=r[i]=[]),Object.assign(this,t),this.update(n)):console.warn("Updater need function getGraphConfig!")};function l(e,t){Object.keys(t).forEach((function(n){"shape"===n||"style"===n?e.animation(n,t[n],!0):e[n]=t[n]}))}t.Updater=s,s.prototype.update=function(e){var t=this,n=this.graphs,r=this.beforeUpdate;if(function(e,t){var n=e.graphs,r=e.chart.render,i=n.length,a=t.length;if(i>a){n.splice(a).forEach((function(e){return e.forEach((function(e){return r.delGraph(e)}))}))}}(this,e),e.length){var o=(0,a.default)(r);e.forEach((function(e,a){"function"===o&&r(n,e,a,t);var s=n[a];s?function(e,t,n,r){var a=r.getGraphConfig,o=r.chart.render,s=r.beforeChange,u=a(t,r);(function(e,t,n){var r=e.length,a=t.length;if(a>r){var o=e.slice(-1)[0],s=new Array(a-r).fill(0).map((function(e){return n.clone(o)}));e.push.apply(e,(0,i.default)(s))}else if(a=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}();t.default=r},function(e,t,n){"use strict";function r(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i3?1.4:i>1?1.2:1.1;u(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r);u(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:a,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){o.isTaken(this._zr,"globalPan")||u(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(i.default);function u(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(a.stop(r.event),c(e,t,n,r,i))}function c(e,t,n,r,i){i.isAvailableBehavior=Object(s.bind)(d,null,n,r),e.trigger(t,i)}function d(e,t,n){var r=n[e];return!e||r&&(!Object(s.isString)(r)||t.event[r+"Key"])}t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(1809);function i(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];e?Object(r.selectElementIfAllowed)(this.TEXTAREA):(this.TEXTAREA.select(),Object(r.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length))}},{key:"createElements",value:function(){var e=this.hot.rootDocument;this.TEXTAREA=e.createElement("TEXTAREA"),this.TEXTAREA.tabIndex=-1,Object(r.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),Object(r.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),Object(r.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&Object(r.removeClass)(this.TEXTAREA_PARENT,this.layerClass),Object(r.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}},{key:"hideEditableElement",value:function(){(Object(s.isIE)()||Object(s.isEdge)())&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",Object(r.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&Object(r.removeClass)(this.TEXTAREA_PARENT,this.layerClass),Object(r.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle.right="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden";var e=this.TEXTAREA_PARENT.childNodes,t=!1;Object(i.rangeEach)(e.length-1,(function(n){var i=e[n];if(Object(r.hasClass)(i,"handsontableEditor"))return t=!0,!1})),Object(r.hasClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")&&Object(r.removeClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),t?(this.layerClass="ht_editor_visible",Object(r.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),Object(r.addClass)(this.TEXTAREA_PARENT,this.layerClass))}},{key:"refreshValue",value:function(){var e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}},{key:"refreshDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state===l.EditorState.EDITING||e)if(this.TD=this.getEditedCell(),this.TD){var t,n=this.hot.view.wt,i=n.wtOverlays,a=n.wtViewport,o=Object(r.offset)(this.TD),s=Object(r.offset)(this.hot.rootElement),u=i.topOverlay.holder,c=i.leftOverlay.holder,d=this.hot.countRows(),h=u!==this.hot.rootWindow?u.scrollTop:0,f=c!==this.hot.rootWindow?c.scrollLeft:0,p=this.checkEditorSection(),m=["","left"].includes(p)?h:0,g=["","top","bottom"].includes(p)?f:0,v=o.top===s.top?0:1,_=this.hot.getSettings(),y=this.hot.hasColHeaders(),b=this.TD.style.backgroundColor,S=o.top-s.top-v-m,w=o.left-s.left-1-g;switch(p){case"top":t=Object(r.getCssTransform)(i.topOverlay.clone.wtTable.holder.parentNode);break;case"left":t=Object(r.getCssTransform)(i.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":t=Object(r.getCssTransform)(i.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":t=Object(r.getCssTransform)(i.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":t=Object(r.getCssTransform)(i.bottomOverlay.clone.wtTable.holder.parentNode)}(y&&0===this.hot.getSelectedLast()[0]||_.fixedRowsBottom&&this.hot.getSelectedLast()[0]===d-_.fixedRowsBottom)&&(S+=1),0===this.hot.getSelectedLast()[1]&&(w+=1),t&&-1!==t?this.textareaParentStyle[t[0]]=t[1]:Object(r.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top="".concat(S,"px"),this.textareaParentStyle.left="".concat(w,"px"),this.showEditableElement();var E=a.rowsRenderCalculator.startPosition,C=a.columnsRenderCalculator.startPosition,T=i.leftOverlay.getScrollPosition(),O=i.topOverlay.getScrollPosition(),x=Object(r.getScrollbarWidth)(this.hot.rootDocument),M=this.TD.offsetTop+E-O,k=this.TD.offsetLeft+C-T,A=Object(r.innerWidth)(this.TD)-8,D=Object(r.hasVerticalScrollbar)(u)?x:0,R=Object(r.hasHorizontalScrollbar)(c)?x:0,L=this.hot.view.maximumVisibleElementWidth(k)-9-D,I=this.TD.scrollHeight+1,N=Math.max(this.hot.view.maximumVisibleElementHeight(M)-R,23),P=Object(r.getComputedStyle)(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=P.fontSize,this.TEXTAREA.style.fontFamily=P.fontFamily,this.TEXTAREA.style.backgroundColor=b,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(I,N),maxHeight:N,minWidth:Math.min(A,L),maxWidth:L},!0)}else e||this.close()}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",(function(e){return Object(d.stopPropagation)(e)})),this.eventManager.addEventListener(this.TEXTAREA,"paste",(function(e){return Object(d.stopPropagation)(e)})),this.addHook("afterScrollHorizontally",(function(){return e.refreshDimensions()})),this.addHook("afterScrollVertically",(function(){return e.refreshDimensions()})),this.addHook("afterColumnResize",(function(){e.refreshDimensions(),e.focus()})),this.addHook("afterRowResize",(function(){e.refreshDimensions(),e.focus()}))}},{key:"allowKeyEventPropagation",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.clearHooks()}},{key:"onBeforeKeyDown",value:function(e){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;if(e.target===this.TEXTAREA&&!Object(d.isImmediatePropagationStopped)(e)){switch(e.keyCode){case c.KEY_CODES.ARROW_RIGHT:case c.KEY_CODES.ARROW_LEFT:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||Object(d.stopImmediatePropagation)(e));break;case c.KEY_CODES.ARROW_UP:case c.KEY_CODES.ARROW_DOWN:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||Object(d.stopImmediatePropagation)(e));break;case c.KEY_CODES.ENTER:var n=this.hot.selection.isMultiple();if(t&&!n||e.altKey){if(this.isOpened()){var i=Object(r.getCaretPosition)(this.TEXTAREA),a=this.getValue(),o="".concat(a.slice(0,i),"\n").concat(a.slice(i));this.setValue(o),Object(r.setCaretPosition)(this.TEXTAREA,i+1)}else this.beginEditing("".concat(this.originalValue,"\n"));Object(d.stopImmediatePropagation)(e)}e.preventDefault();break;case c.KEY_CODES.BACKSPACE:case c.KEY_CODES.DELETE:case c.KEY_CODES.HOME:case c.KEY_CODES.END:Object(d.stopImmediatePropagation)(e)}-1===[c.KEY_CODES.ARROW_UP,c.KEY_CODES.ARROW_RIGHT,c.KEY_CODES.ARROW_DOWN,c.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&this.autoResize.resize(String.fromCharCode(e.keyCode))}}}])&&f(n.prototype,a),_&&f(n,_),t}(l.default);t.default=_},function(e,t,n){"use strict";n.r(t),n.d(t,"KEY",(function(){return r})),n.d(t,"default",(function(){return i}));var r="---------";function i(){return{name:r}}},function(e,t,n){"use strict";n.r(t);n(19),n(20),n(21),n(64),n(16),n(13),n(102),n(34),n(17),n(473),n(160),n(203),n(574),n(18);var r=n(144),i=n(2),a=n(3),o=n(123),s=n(105);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.arrayEach)(this.cells,(function(e){null!=n&&t._translateCell(e,"row",n,a.row),null!=r&&t._translateCell(e,"column",r,a.column)})),this}},{key:"toString",value:function(){var e=this,t=this.expression.replace(p,(function(t,n,i){var a=-1===t.indexOf(":"),o=t,s=t,l=null;a&&(s=c.test(n)?n:i);var u=e._searchCell(s);return u&&(l=u.refError?Object(r.error)(r.ERROR_REF):u.toLabel(),o=a?t.replace(s,l):l),o}));return t.startsWith("=")||(t="=".concat(t)),t}},{key:"_translateCell",value:function(e,t,n,r){var i=e.start,a=e.end,o=i[t].index,s=a[t].index,u=n,c=n,d=!1;if(this.customModifier){var h=l(this.customModifier(e,t,n,r),3);u=h[0],c=h[1],d=h[2]}else i[t].isAbsolute&&(u=0),a[t].isAbsolute&&(c=0);u&&!d&&(o+u<0&&(d=!0),i[t].index=Math.max(o+u,0)),c&&!d&&(s+c<0&&(d=!0),a[t].index=Math.max(s+c,0)),d&&(e.refError=!0)}},{key:"_extractCells",value:function(){var e=this,t=this.expression.match(h);t&&Object(i.arrayEach)(t,(function(t){var n=t.match(d);if(n){var i=l(Object(r.extractLabel)(n[0]),2),a=i[0],o=i[1];e.cells.push(e._createCell({row:a,column:o},{row:a,column:o},n[0]))}}))}},{key:"_extractCellsRange",value:function(){var e=this,t=this.expression.match(f);t&&Object(i.arrayEach)(t,(function(t){var n=l(t.split(":"),2),i=n[0],a=n[1],o=l(Object(r.extractLabel)(i),2),s=o[0],u=o[1],c=l(Object(r.extractLabel)(a),2),d={row:s,column:u},h={row:c[0],column:c[1]};e.cells.push(e._createCell(d,h,t))}))}},{key:"_searchCell",value:function(e){return l(Object(i.arrayFilter)(this.cells,(function(t){return t.origLabel===e})),1)[0]||null}},{key:"_createCell",value:function(e,t,n){return{start:e,end:t,origLabel:n,type:-1===n.indexOf(":")?"cell":"range",refError:!1,toLabel:function(){var e=Object(r.toLabel)(this.start.row,this.start.column);return"range"===this.type&&(e+=":".concat(Object(r.toLabel)(this.end.row,this.end.column))),e}}}}])&&u(t.prototype,n),a&&u(t,a),e}();Object(a.mixin)(m,o.default),t.default=m},function(e,t,n){"use strict";n.r(t);var r=n(11),i=n(314),a=n(35),o=n(25),s=n(793),l=Object(a.default)(s.default).extend({data:function(){return{$editor:null}},props:{editable:Object(o.defineProp)({type:Boolean,default:!1,initialize:!1}),editorOpts:Object(o.defineProp)({type:Object,default:function(){},initialize:!1})},computed:{$editable:function(){return this.$meta.editable}},mounted:function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.$context.ready];case 1:return t.sent(),e=this.$options.amapMeta.editable,this.editable&&e.startEditing.call(this),[2]}}))}))},beforeDestroy:function(){var e=this,t=this.$editor,n=this.$context;t&&(this.$options.amapMeta.editable.events.forEach((function(n){t.off(n,e.$onAmapEdit)})),t.close(),n&&n.target&&n.target.setMap(null))},watch:{"$props.editable":function(e){var t=this.$editable,n=this.$context;e?n.destroyed||t.startEditing.call(this):t.endEditing.call(this)}}}),u=Object(a.default)(l).extend({amapMeta:{editable:{events:[],loadEditor:i.panic,initEditor:i.panic,onEdit:i.panic,initEditing:function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e,t,n,i,a,o,s,l,u,c,d=this;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return this.$editor?[2,this.$editor]:(e=this.$options.amapMeta.editable,n=(t=this).$container,i=t.$context,a=t.$editable,o=t.$map,s=t.editorOpts,[4,n.ready]);case 1:return r.sent(),[4,a.loadEditor()];case 2:return r.sent(),l=i.AMap,u=this,[4,e.initEditor.call(this,l,o,i.target,s)];case 3:return u.$editor=r.sent(),c=this.$onAmapEdit=e.onEdit.bind(this),e.events.forEach((function(e){d.$editor.on(e,c)})),[2,this.$editor]}}))}))},startEditing:function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.$editable.initEditing.call(this)];case 1:return e=n.sent(),"function"==typeof(t=this.$context.target).setDraggable&&t.setDraggable(!1),e.open(),[2]}}))}))},endEditing:function(){if(this.$editor){this.$editor.close();var e=this.$context.target;"function"==typeof e.setDraggable&&"boolean"==typeof this.$props.draggable&&e.setDraggable(this.$props.draggable)}}}}});t.default=u},function(e,t,n){"use strict";n.r(t);var r=n(11),i=n(35),a=n(161),o=n(97),s=Object(i.default)(a.default,Object(o.withVisible)(!0),o.withZIndex,o.withOpacity,o.withZooms).extend({amapMeta:{events:["complete"]},props:{tileSize:{type:Number}},mounted:function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.$context.ready];case 1:return e.sent(),this.$context.destroyed||this.visible||this.$target.hide(),[2]}}))}))}});t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"getDecalFromPalette",(function(){return s})),n.d(t,"PaletteMixin",(function(){return o}));var r=n(7),i=Object(r.makeInner)(),a=Object(r.makeInner)(),o=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var a=Object(r.normalizeToArray)(this.get("color",!0)),o=this.get("colorLayer",!0);return l(this,i,a,o,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=i)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();function s(e,t,n,i){var o=Object(r.normalizeToArray)(e.get(["aria","decal","decals"]));return l(e,a,o,null,t,n,i)}function l(e,t,n,r,i,a,o){var s=t(a=a||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=o&&r?function(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}(r,o):n;if((c=c||n)&&c.length){var d=c[l];return i&&(u[i]=d),s.paletteIdx=(l+1)%c.length,d}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u}));var r=n(4),i=n(750),a=n(38),o=n(539),s=n(1628),l=n(0);function u(e,t,n,u){Object(l.each)(s.AXIS_TYPES,(function(s,d){var h=Object(l.merge)(Object(l.merge)({},i.default[d],!0),u,!0),f=function(e){function n(){for(var n=[],r=0;r0&&(s-=1),0===s&&c()}function c(){a.clearEvents(),o.clear(),s=0}function d(e){return Array.from(o.values()).some((function(t){return Object(i.isKey)(t,e)}))}function h(){return Array.from(o.values()).some((function(e){return Object(i.isCtrlMetaKey)(e)}))}function f(){return s}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t,n){if(!e)return n;var r,i;if(Array.isArray(t)&&(r=t.slice(0)),"string"==typeof t&&(r=t.split(".")),"symbol"==typeof t&&(r=[t]),!Array.isArray(r))throw new Error("props arg must be an array, a string or a symbol");for(;r.length;){if(i=r.shift(),!e)return n;if(void 0===(e=e[i]))return n}return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"findExistImage",(function(){return i})),n.d(t,"createOrUpdateImage",(function(){return a})),n.d(t,"isImageReady",(function(){return s}));var r=new(n(226).default)(50);function i(e){if("string"==typeof e){var t=r.get(e);return t&&t.image}return e}function a(e,t,n,i,a){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var l=r.get(e),u={hostEl:n,cb:i,cbPayload:a};return l?!s(t=l.image)&&l.pending.push(u):((t=new Image).onload=t.onerror=o,r.put(e,t.__cachedImgObj={image:t,pending:[u]}),t.src=t.__zrImageSrc=e),t}return e}return t}function o(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tt+s&&o>r+s||oe+s&&a>n+s||a-1e-4}function v(e,t){t&&_(e,"transform","matrix("+p(t[0])+","+p(t[1])+","+p(t[2])+","+p(t[3])+","+m(t[4])+","+m(t[5])+")")}function _(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function y(e,t,n){var r=null==t.opacity?1:t.opacity;if(n instanceof i.default)e.style.opacity=r+"";else{if(function(e){var t=e.fill;return null!=t&&"none"!==t}(t)){var a=t.fill;_(e,"fill",a="transparent"===a?"none":a),_(e,"fill-opacity",(null!=t.fillOpacity?t.fillOpacity*r:r)+"")}else _(e,"fill","none");if(function(e){var t=e.stroke;return null!=t&&"none"!==t}(t)){var u=t.stroke;_(e,"stroke",u="transparent"===u?"none":u);var c=t.lineWidth,d=t.strokeNoScale?n.getLineScale():1;_(e,"stroke-width",(d?c/d:0)+""),_(e,"paint-order",t.strokeFirst?"stroke":"fill"),_(e,"stroke-opacity",(null!=t.strokeOpacity?t.strokeOpacity*r:r)+"");var h=t.lineDash&&c>0&&Object(s.normalizeLineDash)(t.lineDash,c);if(h){var f=t.lineDashOffset;d&&1!==d&&(h=Object(o.map)(h,(function(e){return e/d})),f&&(f=l(f/=d))),_(e,"stroke-dasharray",h.join(",")),_(e,"stroke-dashoffset",(f||0)+"")}else _(e,"stroke-dasharray","");t.lineCap&&_(e,"stroke-linecap",t.lineCap),t.lineJoin&&_(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&_(e,"stroke-miterlimit",t.miterLimit+"")}else _(e,"stroke","none")}}var b=function(){function e(){}return e.prototype.reset=function(){this._d=[],this._str=""},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add("C",e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var p=0===this._d.length,v=o-a,_=!s,y=Math.abs(v),b=g(y-h)||(_?v>=h:-v>=h),S=v>0?v%h:v%h+h,w=!1;w=!!b||!g(y)&&S>=d==!!_;var E=m(e+n*c(a)),C=m(t+r*u(a));b&&(v=_?h-1e-4:1e-4-h,w=!0,p&&this._d.push("M",E,C));var T=m(e+n*c(a+v)),O=m(t+r*u(a+v));if(isNaN(E)||isNaN(C)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(f)||isNaN(T)||isNaN(O))return"";this._d.push("A",m(n),m(r),l(i*f),+w,+_,T,O)},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("L",e+n,t),this._add("L",e+n,t+r),this._add("L",e,t+r),this._add("L",e,t)},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,a,o,s,l){this._d.push(e);for(var u=1;uC;C++)if((f||C in S)&&(y=w(_=S[C],C,b),e))if(t)O[C]=y;else if(y)switch(e){case 3:return!0;case 5:return _;case 6:return C;case 2:l.call(O,_)}else switch(e){case 4:return!1;case 7:l.call(O,_)}return d?-1:u||c?c:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},function(e,t,n){"use strict";var r=n(80),i=n(390),a=n(202),o=n(100),s=n(319),l=[],u=l.sort,c=o((function(){l.sort(void 0)})),d=o((function(){l.sort(null)})),h=s("sort");r({target:"Array",proto:!0,forced:c||!d||!h},{sort:function(e){return void 0===e?u.call(a(this)):u.call(a(this),i(e))}})},function(e,t,n){"use strict";if(n(141)){var r=n(323),i=n(95),a=n(103),o=n(24),s=n(586),l=n(862),u=n(240),c=n(357),d=n(350),h=n(206),f=n(359),p=n(242),m=n(129),g=n(1452),v=n(353),_=n(261),y=n(219),b=n(396),S=n(106),w=n(154),E=n(851),C=n(354),T=n(222),O=n(355).f,x=n(853),M=n(351),k=n(127),A=n(264),D=n(576),R=n(480),L=n(856),I=n(398),N=n(581),P=n(356),j=n(855),B=n(1441),F=n(142),Y=n(221),H=F.f,U=Y.f,W=i.RangeError,V=i.TypeError,z=i.Uint8Array,G=Array.prototype,$=l.ArrayBuffer,q=l.DataView,K=A(0),X=A(2),Q=A(3),Z=A(4),J=A(5),ee=A(6),te=D(!0),ne=D(!1),re=L.values,ie=L.keys,ae=L.entries,oe=G.lastIndexOf,se=G.reduce,le=G.reduceRight,ue=G.join,ce=G.sort,de=G.slice,he=G.toString,fe=G.toLocaleString,pe=k("iterator"),me=k("toStringTag"),ge=M("typed_constructor"),ve=M("def_constructor"),_e=s.CONSTR,ye=s.TYPED,be=s.VIEW,Se=A(1,(function(e,t){return Oe(R(e,e[ve]),t)})),we=a((function(){return 1===new z(new Uint16Array([1]).buffer)[0]})),Ee=!!z&&!!z.prototype.set&&a((function(){new z(1).set({})})),Ce=function(e,t){var n=p(e);if(n<0||n%t)throw W("Wrong offset!");return n},Te=function(e){if(S(e)&&ye in e)return e;throw V(e+" is not a typed array!")},Oe=function(e,t){if(!S(e)||!(ge in e))throw V("It is not a typed array constructor!");return new e(t)},xe=function(e,t){return Me(R(e,e[ve]),t)},Me=function(e,t){for(var n=0,r=t.length,i=Oe(e,r);r>n;)i[n]=t[n++];return i},ke=function(e,t,n){H(e,t,{get:function(){return this._d[n]}})},Ae=function(e){var t,n,r,i,a,o,s=w(e),l=arguments.length,c=l>1?arguments[1]:void 0,d=void 0!==c,h=x(s);if(null!=h&&!E(h)){for(o=h.call(s),r=[],t=0;!(a=o.next()).done;t++)r.push(a.value);s=r}for(d&&l>2&&(c=u(c,arguments[2],2)),t=0,n=m(s.length),i=Oe(this,n);n>t;t++)i[t]=d?c(s[t],t):s[t];return i},De=function(){for(var e=0,t=arguments.length,n=Oe(this,t);t>e;)n[e]=arguments[e++];return n},Re=!!z&&a((function(){fe.call(new z(1))})),Le=function(){return fe.apply(Re?de.call(Te(this)):Te(this),arguments)},Ie={copyWithin:function(e,t){return B.call(Te(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Te(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return j.apply(Te(this),arguments)},filter:function(e){return xe(this,X(Te(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return J(Te(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Te(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(Te(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Te(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Te(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Te(this),arguments)},lastIndexOf:function(e){return oe.apply(Te(this),arguments)},map:function(e){return Se(Te(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Te(this),arguments)},reduceRight:function(e){return le.apply(Te(this),arguments)},reverse:function(){for(var e,t=Te(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ce.call(Te(this),e)},subarray:function(e,t){var n=Te(this),r=n.length,i=v(e,r);return new(R(n,n[ve]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-i))}},Ne=function(e,t){return xe(this,de.call(Te(this),e,t))},Pe=function(e){Te(this);var t=Ce(arguments[1],1),n=this.length,r=w(e),i=m(r.length),a=0;if(i+t>n)throw W("Wrong length!");for(;a255?255:255&r),i.v[f](n*t+i.o,r,we)}(this,n,e)},enumerable:!0})};y?(p=n((function(e,n,r,i){c(e,p,u,"_d");var a,o,s,l,d=0,f=0;if(S(n)){if(!(n instanceof $||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return ye in n?Me(p,n):Ae.call(p,n);a=n,f=Ce(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw W("Wrong length!");if((o=v-f)<0)throw W("Wrong length!")}else if((o=m(i)*t)+f>v)throw W("Wrong length!");s=o/t}else s=g(n),a=new $(o=s*t);for(h(e,"_d",{b:a,o:f,l:o,e:s,v:new q(a)});d-1}var p=t.getStyle=u<9?function(e,t){if(!o){if(!e||!t)return null;"float"===(t=c(t))&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(e){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!o){if(!e||!t)return null;"float"===(t=c(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(n){return e.style[t]}}};var m=t.isScroll=function(e,t){if(!o)return p(e,null!==t||void 0!==t?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto)/)};t.getScrollContainer=function(e,t){if(!o){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(m(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(o||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.topr.top&&n.right>r.left&&n.left=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=l(e,t,r)<=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,l=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.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"],d=[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 f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,l=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&l,h=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=h;f++){var p=u-f|0;c+=(o=(i=0|e.words[p])*(a=0|t.words[f])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?c[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],f=h[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);n=(p=p.idivn(f)).isZero()?m+n:c[u-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.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},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,u=new e(a),c=this.clone();if(l){for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],v=8191&g,_=g>>>13,y=0|o[3],b=8191&y,S=y>>>13,w=0|o[4],E=8191&w,C=w>>>13,T=0|o[5],O=8191&T,x=T>>>13,M=0|o[6],k=8191&M,A=M>>>13,D=0|o[7],R=8191&D,L=D>>>13,I=0|o[8],N=8191&I,P=I>>>13,j=0|o[9],B=8191&j,F=j>>>13,Y=0|s[0],H=8191&Y,U=Y>>>13,W=0|s[1],V=8191&W,z=W>>>13,G=0|s[2],$=8191&G,q=G>>>13,K=0|s[3],X=8191&K,Q=K>>>13,Z=0|s[4],J=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],le=8191&se,ue=se>>>13,ce=0|s[8],de=8191&ce,he=ce>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(u+(r=Math.imul(d,H))|0)+((8191&(i=(i=Math.imul(d,U))+Math.imul(h,H)|0))<<13)|0;u=((a=Math.imul(h,U))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,H),i=(i=Math.imul(p,U))+Math.imul(m,H)|0,a=Math.imul(m,U);var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,z)|0)+Math.imul(h,V)|0))<<13)|0;u=((a=a+Math.imul(h,z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,H),i=(i=Math.imul(v,U))+Math.imul(_,H)|0,a=Math.imul(_,U),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,z)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,z)|0;var _e=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,$)|0))<<13)|0;u=((a=a+Math.imul(h,q)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(b,H),i=(i=Math.imul(b,U))+Math.imul(S,H)|0,a=Math.imul(S,U),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,z)|0)+Math.imul(_,V)|0,a=a+Math.imul(_,z)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,q)|0;var ye=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(h,X)|0))<<13)|0;u=((a=a+Math.imul(h,Q)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(E,H),i=(i=Math.imul(E,U))+Math.imul(C,H)|0,a=Math.imul(C,U),r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,z)|0)+Math.imul(S,V)|0,a=a+Math.imul(S,z)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,q)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,X)|0,a=a+Math.imul(m,Q)|0;var be=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,J)|0))<<13)|0;u=((a=a+Math.imul(h,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(O,H),i=(i=Math.imul(O,U))+Math.imul(x,H)|0,a=Math.imul(x,U),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,z)|0)+Math.imul(C,V)|0,a=a+Math.imul(C,z)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,q)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,Q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,ee)|0;var Se=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;u=((a=a+Math.imul(h,re)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(k,H),i=(i=Math.imul(k,U))+Math.imul(A,H)|0,a=Math.imul(A,U),r=r+Math.imul(O,V)|0,i=(i=i+Math.imul(O,z)|0)+Math.imul(x,V)|0,a=a+Math.imul(x,z)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(C,$)|0,a=a+Math.imul(C,q)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,Q)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0;var we=(u+(r=r+Math.imul(d,ae)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(h,ae)|0))<<13)|0;u=((a=a+Math.imul(h,oe)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(R,H),i=(i=Math.imul(R,U))+Math.imul(L,H)|0,a=Math.imul(L,U),r=r+Math.imul(k,V)|0,i=(i=i+Math.imul(k,z)|0)+Math.imul(A,V)|0,a=a+Math.imul(A,z)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(x,$)|0,a=a+Math.imul(x,q)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,Q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(_,ne)|0,a=a+Math.imul(_,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var Ee=(u+(r=r+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(h,le)|0))<<13)|0;u=((a=a+Math.imul(h,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,H),i=(i=Math.imul(N,U))+Math.imul(P,H)|0,a=Math.imul(P,U),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,z)|0)+Math.imul(L,V)|0,a=a+Math.imul(L,z)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(A,$)|0,a=a+Math.imul(A,q)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,Q)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,Q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(S,ne)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(v,ae)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,oe)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,le)|0,a=a+Math.imul(m,ue)|0;var Ce=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;u=((a=a+Math.imul(h,he)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,H),i=(i=Math.imul(B,U))+Math.imul(F,H)|0,a=Math.imul(F,U),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,z)|0)+Math.imul(P,V)|0,a=a+Math.imul(P,z)|0,r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,q)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,Q)|0,r=r+Math.imul(O,J)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,r=r+Math.imul(v,le)|0,i=(i=i+Math.imul(v,ue)|0)+Math.imul(_,le)|0,a=a+Math.imul(_,ue)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,a=a+Math.imul(m,he)|0;var Te=(u+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;u=((a=a+Math.imul(h,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,V),i=(i=Math.imul(B,z))+Math.imul(F,V)|0,a=Math.imul(F,z),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,q)|0)+Math.imul(P,$)|0,a=a+Math.imul(P,q)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(L,X)|0,a=a+Math.imul(L,Q)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(A,J)|0,a=a+Math.imul(A,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(x,ne)|0,a=a+Math.imul(x,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,r=r+Math.imul(b,le)|0,i=(i=i+Math.imul(b,ue)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ue)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(_,de)|0,a=a+Math.imul(_,he)|0;var Oe=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,q))+Math.imul(F,$)|0,a=Math.imul(F,q),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,Q)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,Q)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(A,ne)|0,a=a+Math.imul(A,re)|0,r=r+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,r=r+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ue)|0,r=r+Math.imul(b,de)|0,i=(i=i+Math.imul(b,he)|0)+Math.imul(S,de)|0,a=a+Math.imul(S,he)|0;var xe=(u+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(_,pe)|0))<<13)|0;u=((a=a+Math.imul(_,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,X),i=(i=Math.imul(B,Q))+Math.imul(F,X)|0,a=Math.imul(F,Q),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(P,J)|0,a=a+Math.imul(P,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(L,ne)|0,a=a+Math.imul(L,re)|0,r=r+Math.imul(k,ae)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(A,ae)|0,a=a+Math.imul(A,oe)|0,r=r+Math.imul(O,le)|0,i=(i=i+Math.imul(O,ue)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,ue)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(C,de)|0,a=a+Math.imul(C,he)|0;var Me=(u+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(S,pe)|0))<<13)|0;u=((a=a+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,ee))+Math.imul(F,J)|0,a=Math.imul(F,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(P,ne)|0,a=a+Math.imul(P,re)|0,r=r+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(L,ae)|0,a=a+Math.imul(L,oe)|0,r=r+Math.imul(k,le)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(A,le)|0,a=a+Math.imul(A,ue)|0,r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,he)|0;var ke=(u+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(C,pe)|0))<<13)|0;u=((a=a+Math.imul(C,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,ne),i=(i=Math.imul(B,re))+Math.imul(F,ne)|0,a=Math.imul(F,re),r=r+Math.imul(N,ae)|0,i=(i=i+Math.imul(N,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,r=r+Math.imul(R,le)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(L,le)|0,a=a+Math.imul(L,ue)|0,r=r+Math.imul(k,de)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(A,de)|0,a=a+Math.imul(A,he)|0;var Ae=(u+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(x,pe)|0))<<13)|0;u=((a=a+Math.imul(x,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,ae),i=(i=Math.imul(B,oe))+Math.imul(F,ae)|0,a=Math.imul(F,oe),r=r+Math.imul(N,le)|0,i=(i=i+Math.imul(N,ue)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ue)|0,r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(L,de)|0,a=a+Math.imul(L,he)|0;var De=(u+(r=r+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(A,pe)|0))<<13)|0;u=((a=a+Math.imul(A,me)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(B,le),i=(i=Math.imul(B,ue))+Math.imul(F,le)|0,a=Math.imul(F,ue),r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(P,de)|0,a=a+Math.imul(P,he)|0;var Re=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(L,pe)|0))<<13)|0;u=((a=a+Math.imul(L,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(B,de),i=(i=Math.imul(B,he))+Math.imul(F,de)|0,a=Math.imul(F,he);var Le=(u+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(P,pe)|0))<<13)|0;u=((a=a+Math.imul(P,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863;var Ie=(u+(r=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(F,pe)|0))<<13)|0;return u=((a=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,l[0]=ge,l[1]=ve,l[2]=_e,l[3]=ye,l[4]=be,l[5]=Se,l[6]=we,l[7]=Ee,l[8]=Ce,l[9]=Te,l[10]=Oe,l[11]=xe,l[12]=Me,l[13]=ke,l[14]=Ae,l[15]=De,l[16]=Re,l[17]=Le,l[18]=Ie,0!==u&&(l[19]=u,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,u=0;u=0&&(0!==c||u>=i);u--){var d=0|this.words[u];this.words[u]=c<<26-a|d>>>a,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=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},a.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)-(l/67108864|0),this.words[i+n]=67108863&a}for(;i>26,this.words[i+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==t){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(h=Math.min(h/o|0,67108863),r._ishlnsubmul(i,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0==(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(l)):(n.isub(t),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:n.iushln(u)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;0==(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.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)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._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 C(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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 a(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(y,_),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return v[e]=t,t},E.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},E.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")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=o;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;r--){for(var u=t.words[r],c=l-1;c>=0;c--){var d=u>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}l=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new C(e)},i(C,E),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(260)(e))},function(e,t,n){"use strict";n.r(t);var r=n(612);n.d(t,"OrderView",(function(){return r.default}));var i=n(1096);n.d(t,"SharedOrderView",(function(){return i.default}))},function(e,t,n){"use strict";n.r(t),n.d(t,"ready",(function(){return u}));var r=n(171),i=n(443),a=n(1940),o=Object(i.default)(),s=!1,l=!1,u=o.promise;t.default=function(){if(!l){if(l=!0,window.AMap)return o.resolve(window.AMap),u;var e=document.createElement("script"),t="amap_vue_"+Date.now()+"_"+Math.ceil(1e4*Math.random());window[t]=function(){s||(s=!0,o.resolve(window.AMap))};var n=Object(a.buildQuery)({v:r.default.version,key:r.default.key,callback:t,plugin:r.default.plugins.join(",")}),i=r.default._prefix+"?"+n;e.src=i,document.body.appendChild(e)}return u}},function(e,t,n){"use strict";n.r(t),n.d(t,"SYSTEM_LANG",(function(){return c})),n.d(t,"registerLocale",(function(){return d})),n.d(t,"createLocaleObject",(function(){return h})),n.d(t,"getLocaleModel",(function(){return f})),n.d(t,"getDefaultLocaleModel",(function(){return p}));var r=n(71),i=n(60),a=n(1596),o=n(1597),s=n(0),l={},u={},c=i.default.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function d(e,t){e=e.toUpperCase(),u[e]=new r.default(t),l[e]=t}function h(e){if(Object(s.isString)(e)){var t=l[e.toUpperCase()]||{};return"ZH"===e||"EN"===e?Object(s.clone)(t):Object(s.merge)(Object(s.clone)(t),Object(s.clone)(l.EN),!1)}return Object(s.merge)(Object(s.clone)(e),Object(s.clone)(l.EN),!1)}function f(e){return u[e]}function p(){return u.EN}d("EN",a.default),d("ZH",o.default)},function(e,t,n){"use strict";n.r(t),n.d(t,"DataFormatMixin",(function(){return s})),n.d(t,"normalizeTooltipFormatResult",(function(){return l}));var r=n(0),i=n(172),a=n(73),o=/\{@(.+?)\}/g,s=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput;return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:l,borderColor:u,dimensionNames:h?h.dimensionNames:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,s,l,u){t=t||"normal";var c=this.getData(n),d=this.getDataParams(e,n);(u&&(d.value=u.interpolatedValue),null!=s&&r.isArray(d.value)&&(d.value=d.value[s]),l)||(l=c.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return"function"==typeof l?(d.status=t,d.dimensionIndex=s,l(d)):"string"==typeof l?Object(a.formatTpl)(l,d).replace(o,(function(t,n){var a=n.length,o="["===n.charAt(0)&&"]"===n.charAt(a-1)?+n.slice(1,a-1):n,s=Object(i.retrieveRawValue)(c,e,o);if(u&&r.isArray(u.interpolatedValue)){var l=c.getDimensionInfo(o);l&&(s=u.interpolatedValue[l.index])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return Object(i.retrieveRawValue)(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function l(e){var t,n;return r.isObject(e)?e.type&&(n=e):t=e,{markupText:t,markupFragment:n}}},function(e,t,n){"use strict";n.r(t),n.d(t,"createOrUpdatePatternFromDecal",(function(){return h}));var r=n(745),i=n(226),a=n(0),o=n(5),s=n(93),l=n(211),u=new r.default,c=new i.default(100),d=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function h(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&u.delete(e);var h=u.get(e);if(h)return h;var p=Object(a.defaults)(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===p.backgroundColor&&(p.backgroundColor=null);var m={repeat:"repeat"};return function(e){for(var t,u=[n],h=!0,m=0;m=0||e===t}function s(e){var t=l(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=r.parse(o));var s=c(n);null==a&&(i.status=s?"show":"hide");var u=r.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==o||o>u[1])&&(o=u[1]),oa&&(a=t);var s=a%2?a+2:a+3;o=[];for(var l=0;l"},s=new RegExp(Object.keys(o).map((function(e){return"(".concat(e,")")})).join("|"),"gi");function l(e){return"TABLE"===(e&&e.nodeName||"")}function u(e){for(var t=e.hasColHeaders(),n=e.hasRowHeaders(),r=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],a=e.getData.apply(e,r),o=a.length,s=o>0?a[0].length:0,l=["","
"],u=t?["",""]:[],c=["",""],d=n?1:0,h=t?1:0,f=0;f".concat(e.getColHeader(g-d),"");else if(v)_="".concat(e.getRowHeader(f-h),"");else{var y=a[f][g],b=e.getCellMeta(f-d,g-h),S=b.hidden,w=b.rowspan,E=b.colspan;if(!S){var C=[];if(w&&C.push('rowspan="'.concat(w,'"')),E&&C.push('colspan="'.concat(E,'"')),Object(i.isEmpty)(y))_="");else{var T=y.toString().replace("<","<").replace(">",">").replace(/((\r\n|\n)?|\r\n|\n)/g,"
\r\n").replace(/\x20/gi," ").replace(/\t/gi," ");_="").concat(T,"")}}}m.push(_)}var O=[""].concat(m,[""]).join("");p?u.splice(1,0,O):c.splice(-1,0,O)}return l.splice(1,0,u.join(""),c.join("")),l.join("")}function c(e){for(var t=e.length,n=[""],r=0;r");for(var l=0;l/g,">").replace(/((\r\n|\n)?|\r\n|\n)/g,"
\r\n").replace(/\x20/gi," ").replace(/\t/gi," ");s.push("
"))}n.push.apply(n,[""].concat(s,[""])),r+1===t&&n.push("")}return n.push("
".concat(c,"
"),n.join("")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n={},i=t.createDocumentFragment(),u=t.createElement("div");i.appendChild(u);var c=e;if("string"==typeof c){var d=c.replace(/]*?>([\s\S]*?)<\/\s*td>/g,(function(e){var t=e.match(/]*?>/g)[0],n=e.substring(t.length,e.lastIndexOf("<")).replace(/(<(?!br)([^>]+)>)/gi,"");return"".concat(t).concat(n).concat("")}));u.insertAdjacentHTML("afterbegin","".concat(d)),c=u.querySelector("table")}if(c&&l(c)){var h=u.querySelector("style"),f=null,p=[];h&&(t.body.appendChild(h),h.disabled=!0,f=h.sheet,p=f?Array.from(f.cssRules):[],t.body.removeChild(h));var m=u.querySelector('meta[name$="enerator"]'),g=null!==c.querySelector("tbody th"),v=Array.from(c.querySelector("tr").cells).reduce((function(e,t){return e+t.colSpan}),0)-(g?1:0),_=c.tFoot&&Array.from(c.tFoot.rows)||[],y=[],b=!1,S=0,w=0;if(c.tHead){var E=Array.from(c.tHead.rows).filter((function(e){var t=null!==e.querySelector("td");return t&&y.push(e),!t}));b=(S=E.length)>0,S>1?n.nestedHeaders=Array.from(E).reduce((function(e,t){var n=Array.from(t.cells).reduce((function(e,t,n){if(g&&0===n)return e;var r=t.colSpan,i=t.innerHTML,a=r>1?{label:i,colspan:r}:i;return e.push(a),e}),[]);return e.push(n),e}),[]):b&&(n.colHeaders=Array.from(E[0].children).reduce((function(e,t,n){return g&&0===n||e.push(t.innerHTML),e}),[]))}y.length&&(n.fixedRowsTop=y.length),_.length&&(n.fixedRowsBottom=_.length);var C=[].concat(y,a(Array.from(c.tBodies).reduce((function(e,t){return e.push.apply(e,a(Array.from(t.rows))),e}),[])),a(_));w=C.length;for(var T=new Array(w),O=0;O1||l>1){for(var c=k;c/gim,"\r\n"):m&&/excel/gi.test(m.content)?i.replace(/[\r\n][\x20]{0,2}/g," ").replace(/[\r\n]?[\x20]{0,3}/gim,"\r\n"):i.replace(/[\r\n]?/gim,"\r\n"),T[k][u]=f.replace(s,(function(e){return o[e]}))}else M.push(i)},I=0;I0?r:n)(e)}},function(e,t,n){"use strict";var r=n(100);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var r=n(174),i=n(132),a=n(559),o=n(257),s=n(175),l=n(316),u=n(828),c=n(461),d=n(100),h=n(389),f=n(463).f,p=n(290).f,m=n(182).f,g=n(1094).trim,v=i.Number,_=v.prototype,y="Number"==l(h(_)),b=function(e){var t,n,r,i,a,o,s,l,u=c(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=g(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=(a=u.slice(2)).length,s=0;si)return NaN;return parseInt(a,r)}return+u};if(a("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var S,w=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof w&&(y?d((function(){_.valueOf.call(n)})):"Number"!=l(n))?u(new v(b(t)),n,w):b(t)},E=r?f(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;E.length>C;C++)s(v,S=E[C])&&!s(w,S)&&m(w,S,p(v,S));w.prototype=_,_.constructor=w,o(i,"Number",w)}},function(e,t,n){n(80)({target:"Number",stat:!0},{isInteger:n(1986)})},function(e,t,n){"use strict";var r=n(564),i=n(1091);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t){e.exports=!1},function(e,t,n){var r=n(351)("meta"),i=n(106),a=n(219),o=n(142).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(103)((function(){return l(Object.preventExtensions({}))})),c=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!a(e,r)&&c(e),e}}},function(e,t,n){var r=n(127)("unscopables"),i=Array.prototype;null==i[r]&&n(206)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(90).Buffer,i=n(2312).Transform,a=n(364).StringDecoder;function o(e){i.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}n(76)(o,i),o.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},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,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}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,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=o},function(e,t,n){"use strict";n.r(t);var r=n(59),i=n(138),a=n(44),o=[],s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Object(r.__extends)(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n=0;--n)if(t[n]===e)return!0;return!1}),r}return null}return n[0]},e.prototype.doUpdate=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"==typeof t&&t(e);else{var r=this.add(e);r&&(e[this._domName]=r)}}},e.prototype.add=function(e){return null},e.prototype.addDom=function(e){var t=this.getDefs(!0);e.parentNode!==t&&t.appendChild(e)},e.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},e.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return i.each(this._tagNames,(function(n){for(var r=e.getElementsByTagName(n),i=0;i=1)&&(e=1),e}s===u&&l===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=u,this._modDataCount=c;var h=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||f1&&r>0?s:o}};return a;function o(){return t=e?null:a0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(i.each)([["start","startValue"],["end","endValue"]],(function(r,i){var a=null!=e[r[0]],o=null!=e[r[1]];a&&!o?t[i]="percent":!a&&o?t[i]="value":n?t[i]=n[i]:a&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(Object(o.getAxisMainType)(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(i.each)(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(Object(o.getAxisMainType)(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(i.each)([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(i.each)(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r0?n=r[0]:r[1]<0&&(n=r[1]);return n}(o,n),l=a.dim,u=o.dim,c=t.mapDimension(u),d=t.mapDimension(l),h="x"===u||"radius"===u?1:0,f=Object(i.map)(e.dimensions,(function(e){return t.mapDimension(e)})),p=!1,m=t.getCalculationInfo("stackResultDimension");return Object(r.isDimensionStacked)(t,f[0])&&(p=!0,f[0]=m),Object(r.isDimensionStacked)(t,f[1])&&(p=!0,f[1]=m),{dataDimsForPoint:f,valueStart:s,valueAxisDim:u,baseAxisDim:l,stacked:!!p,valueDim:c,baseDim:d,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function o(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}},function(e,t,n){"use strict";n.r(t),n.d(t,"getSectorCornerRadius",(function(){return a}));var r=n(0),i=n(63);function a(e,t){var n=e.get("borderRadius");return null==n?null:(Object(r.isArray)(n)||(n=[n,n]),{innerCornerRadius:Object(i.parsePercent)(n[0],t.r0),cornerRadius:Object(i.parsePercent)(n[1],t.r)})}},function(e,t,n){"use strict";n.r(t),n.d(t,"makeRectPanelClipPath",(function(){return o})),n.d(t,"makeLinearBrushOtherExtent",(function(){return s})),n.d(t,"makeRectIsTargetByCursor",(function(){return l}));var r=n(44),i=n(331),a=n(6);function o(e){return e=u(e),function(t){return a.clipPointsByRect(t,e)}}function s(e,t){return e=u(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function l(e,t,n){var r=u(e);return function(e,a){return r.contain(a[0],a[1])&&!Object(i.onIrrelevantElement)(e,t,n)}}function u(e){return r.default.create(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"isEC4CompatibleStyle",(function(){return i})),n.d(t,"convertFromEC4CompatibleStyle",(function(){return a})),n.d(t,"convertToEC4StyleForCustomSerise",(function(){return s})),n.d(t,"warnDeprecated",(function(){return u}));var r=n(0);function i(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(r.hasOwn)(e,"text")))}function a(e,t,n){var i,a,s,l=e;if("text"===t)s=l;else{s={},Object(r.hasOwn)(l,"text")&&(s.text=l.text),Object(r.hasOwn)(l,"rich")&&(s.rich=l.rich),Object(r.hasOwn)(l,"textFill")&&(s.fill=l.textFill),Object(r.hasOwn)(l,"textStroke")&&(s.stroke=l.textStroke),a={type:"text",style:s,silent:!0},i={};var u=Object(r.hasOwn)(l,"textPosition");n?i.position=u?l.textPosition:"inside":u&&(i.position=l.textPosition),Object(r.hasOwn)(l,"textPosition")&&(i.position=l.textPosition),Object(r.hasOwn)(l,"textOffset")&&(i.offset=l.textOffset),Object(r.hasOwn)(l,"textRotation")&&(i.rotation=l.textRotation),Object(r.hasOwn)(l,"textDistance")&&(i.distance=l.textDistance)}return o(s,e),Object(r.each)(s.rich,(function(e){o(e,e)})),{textConfig:i,textContent:a}}function o(e,t){t&&(t.font=t.textFont||t.font,Object(r.hasOwn)(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(r.hasOwn)(t,"textAlign")&&(e.align=t.textAlign),Object(r.hasOwn)(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(r.hasOwn)(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(r.hasOwn)(t,"textWidth")&&(e.width=t.textWidth),Object(r.hasOwn)(t,"textHeight")&&(e.height=t.textHeight),Object(r.hasOwn)(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(r.hasOwn)(t,"textPadding")&&(e.padding=t.textPadding),Object(r.hasOwn)(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(r.hasOwn)(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(r.hasOwn)(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(r.hasOwn)(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(r.hasOwn)(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(r.hasOwn)(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(r.hasOwn)(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function s(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var a=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";l(i,t);var s=null==i.textFill;return a?s&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(s&&(i.textFill=n.outsideFill||o),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(r.each)(t.rich,(function(e){l(e,e)})),i}function l(e,t){t&&(Object(r.hasOwn)(t,"fill")&&(e.textFill=t.fill),Object(r.hasOwn)(t,"stroke")&&(e.textStroke=t.fill),Object(r.hasOwn)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(r.hasOwn)(t,"font")&&(e.font=t.font),Object(r.hasOwn)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(r.hasOwn)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(r.hasOwn)(t,"fontSize")&&(e.fontSize=t.fontSize),Object(r.hasOwn)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(r.hasOwn)(t,"align")&&(e.textAlign=t.align),Object(r.hasOwn)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(r.hasOwn)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(r.hasOwn)(t,"width")&&(e.textWidth=t.width),Object(r.hasOwn)(t,"height")&&(e.textHeight=t.height),Object(r.hasOwn)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(r.hasOwn)(t,"padding")&&(e.textPadding=t.padding),Object(r.hasOwn)(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(r.hasOwn)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(r.hasOwn)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(r.hasOwn)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(r.hasOwn)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(r.hasOwn)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(r.hasOwn)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(r.hasOwn)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(r.hasOwn)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(r.hasOwn)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(r.hasOwn)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function u(e,t){}},function(e,t,n){"use strict";n.r(t),n.d(t,"getItemAlign",(function(){return o})),n.d(t,"makeHighDownBatch",(function(){return s}));var r=n(0),i=n(38),a=[["left","right","width"],["top","bottom","height"]];function o(e,t,n){var r=e.option,o=r.align;if(null!=o&&"auto"!==o)return o;for(var s={width:t.getWidth(),height:t.getHeight()},l="horizontal"===r.orient?1:0,u=a[l],c=[0,null,10],d={},h=0;h<3;h++)d[a[1-l][h]]=c[h],d[u[h]]=2===h?n[0]:r[u[h]];var f=[["x","width",3],["y","height",0]][l],p=Object(i.getLayoutRect)(d,s,r.padding);return u[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*s[f[1]]?0:1]}function s(e,t){return r.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}},function(e,t,n){!function(e){"use strict";function n(e){return e.split('"').length-1}var r=function(e){var t,r,i,a,o,s,l,u=[],c=0;for((i=e.replace(/\r\n|\r/g,"\n").split("\n")).length>1&&""===i[i.length-1]&&i.pop(),t=0,r=i.length;t0&&(o+="\t"),"string"==typeof(a=e[t][r])?a.indexOf("\n")>-1?o+='"'+a.replace(/"/g,'""')+'"':o+=a:o+=null==a?"":a;t!==n-1&&(o+="\n")}return o};t.parse=r,t.stringify=i}(window)},function(e,t,n){"use strict";n.r(t),n.d(t,"holder",(function(){return r})),n.d(t,"rootInstanceSymbol",(function(){return i})),n.d(t,"registerAsRootInstance",(function(){return a})),n.d(t,"hasValidParameter",(function(){return o})),n.d(t,"isRootInstance",(function(){return s}));n(19),n(20),n(16),n(13),n(17),n(101),n(18);var r=new WeakMap,i=Symbol("rootInstance");function a(e){r.set(e,!0)}function o(e){return e===i}function s(e){return r.has(e)}},function(e,t,n){e.exports=function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[o]={exports:{}};t[o][0].call(u.exports,(function(e){return i(t[o][1][e]||e)}),u,u.exports,e,t,n,r)}return n[o].exports}for(var a=!1,o=0;oa[o]^n?1:-1;return l==u?0:u(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else tj?e.c=e.e=null:e.c=n=g.length){if(!r)break e;for(;g.length<=p;g.push(0));f=m=0,c=(s%=u)-u+(o=1)}else{for(f=h=g[p],o=1;10<=h;h/=10,o++);m=(c=(s%=u)-u+o)<0?0:f/v[o-c-1]%10|0}if(r=r||t<0||null!=g[p+1]||(c<0?f:f%v[o-c-1]),r=n<4?(m||r)&&(0==n||n==(e.s<0?3:2)):5j?e.c=e.e=null:e.e>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(h.push(l%1e14),c+=2);c=s/2}else{if(!crypto.randomBytes)throw B=!1,Error(o+"crypto unavailable");for(t=crypto.randomBytes(s*=7);cn-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}return function(r,i,a,o,s){var l,u,c,d,h,f,p,g,v=r.indexOf("."),_=R,y=L;for(0<=v&&(d=Y,Y=0,r=r.replace(".",""),f=(g=new W(i)).pow(r.length-v),Y=d,g.c=t(b(m(f.c),f.e,"0"),10,a,e),g.e=g.c.length),c=d=(p=t(r,i,a,s?(l=U,e):(l=e,U))).length;0==p[--d];p.pop());if(!p[0])return l.charAt(0);if(v<0?--c:(f.c=p,f.e=c,f.s=o,p=(f=n(f,g,_,y,a)).c,h=f.r,c=f.e),v=p[u=c+_+1],d=a/2,h=h||u<0||null!=p[u+1],h=y<4?(null!=v||h)&&(0==y||y==(f.s<0?3:2)):da;)p[u]=0,u||(++c,p=[1].concat(p));for(d=p.length;!p[--d];);for(v=0,r="";v<=d;r+=l.charAt(p[v++]));r=b(r,c,l.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,a,o,s=0,l=e.length,u=t%h,c=t/h|0;for(e=e.slice();l--;)s=((i=u*(a=e[l]%h)+(r=c*a+(o=e[l]/h|0)*u)%h*h+s)/n|0)+(r/h|0)+c*o,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=rt[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n](A[f]||0)&&h--,k<0)b.push(1),m=!0;else{for(T=A.length,x=D.length,k+=2,1<(g=a(c/(D[f=0]+1)))&&(D=e(D,g,c),A=e(A,g,c),x=D.length,T=A.length),C=x,w=(S=A.slice(0,x)).length;w=c/2&&O++;do{if(g=0,(d=t(D,S,x,w))<0){if(E=S[0],x!=w&&(E=E*c+(S[1]||0)),1<(g=a(E/O)))for(c<=g&&(g=c-1),_=(v=e(D,g,c)).length,w=S.length;1==t(v,S,_,w);)g--,n(v,x<_?M:D,_,c),_=v.length,d=1;else 0==g&&(d=g=1),_=(v=D.slice()).length;if(_l&&(f.c.length=l):r&&(f=f.mod(t))}if(s){if(0===(s=a(s/2)))break;h=s%2}else if($(e=e.times(n),e.e+1,1),14l&&(p.c.length=l):r&&(p=p.mod(t))}return r?f:(d&&(f=D.div(f)),t?f.mod(t):l?$(f,Y,L,void 0):f)},A.integerValue=function(e){var t=new W(this);return null==e?e=L:v(e,0,8),$(t,t.e+1,e)},A.isEqualTo=A.eq=function(e,t){return 0===g(this,new W(e,t))},A.isFinite=function(){return!!this.c},A.isGreaterThan=A.gt=function(e,t){return 0this.c.length-2},A.isLessThan=A.lt=function(e,t){return g(this,new W(e,t))<0},A.isLessThanOrEqualTo=A.lte=function(e,t){return-1===(t=g(this,new W(e,t)))||0===t},A.isNaN=function(){return!this.s},A.isNegative=function(){return this.s<0},A.isPositive=function(){return 0r&&(r=this.e+1),r},A.shiftedBy=function(e){return v(e,-c,c),this.times("1e"+e)},A.squareRoot=A.sqrt=function(){var e,t,r,i,a,o=this,s=o.c,l=o.s,u=o.e,c=R+4,d=new W("0.5");if(1!==l||!s||!s[0])return new W(!l||l<0&&(!s||s[0])?NaN:s?o:1/0);if((r=0==(l=Math.sqrt(+q(o)))||l==1/0?(((t=m(s)).length+u)%2==0&&(t+="0"),l=Math.sqrt(+t),u=p((u+1)/2)-(u<0||u%2),new W(t=l==1/0?"1e"+u:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+u)):new W(l+"")).c[0])for((l=(u=r.e)+c)<3&&(l=0);;)if(a=r,r=d.times(a.plus(n(o,a,c,1))),m(a.c).slice(0,l)===(t=m(r.c)).slice(0,l)){if(r.e=Math.pow(10,12)&&!n||"trillion"===n?(l=r.trillion,t/=Math.pow(10,12)):u=Math.pow(10,9)&&!n||"billion"===n?(l=r.billion,t/=Math.pow(10,9)):u=Math.pow(10,6)&&!n||"million"===n?(l=r.million,t/=Math.pow(10,6)):(u=Math.pow(10,3)&&!n||"thousand"===n)&&(l=r.thousand,t/=Math.pow(10,3)),l&&(l=(a?" ":"")+l),s){var d=t.toString().split(".")[0];c=Math.max(s-d.length,0)}return{value:t,abbreviation:l,mantissaPrecision:c}}({value:d,forceAverage:T,abbreviations:o.currentAbbreviations(),spaceSeparated:D,totalLength:w});d=P.value,N+=P.abbreviation,w&&(x=P.mantissaPrecision)}if(I){var j=(p=(h={value:d,characteristicPrecision:E}).value,g=void 0===(m=h.characteristicPrecision)?0:m,_=(v=r(p.toExponential().split("e"),2))[0],y=v[1],b=+_,g&&1document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(1426),i=n(839).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(95),i=n(142),a=n(141),o=n(127)("species");e.exports=function(e){var t=r[e];a&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(240),i=n(1439),a=n(851),o=n(86),s=n(129),l=n(853),u={},c={};(t=e.exports=function(e,t,n,d,h){var f,p,m,g,v=h?function(){return e}:l(e),_=r(n,d,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(a(v)){for(f=s(e.length);f>y;y++)if((g=t?_(o(p=e[y])[0],p[1]):_(e[y]))===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=i(m,_,p.value,t))===u||g===c)return g}).BREAK=u,t.RETURN=c},function(e,t,n){var r=n(207);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(106);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";function r(e,t,n){this.$children.forEach((function(i){i.$options.componentName===e?i.$emit.apply(i,[t].concat(n)):r.apply(i,[e,t].concat([n]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==e);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,n)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,a,o,s;if(u(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=c(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s=l,console&&console.warn&&console.warn(s)}return e}function h(){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 f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var u=l.length,c=g(l,u);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=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):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";var r=n(90).Buffer,i=r.isEncoding||function(e){switch((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 a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)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}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){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,"�"}}(this,e);return void 0!==n?n: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 l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.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],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(601),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var a=Object.create(n(485));a.inherits=n(76);var o=n(1489),s=n(890);a.inherits(d,o);for(var l=i(s.prototype),u=0;u0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.addHover=function(e){},e.prototype.removeHover=function(e){},e.prototype.clearHover=function(){},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.pathToImage=function(e,t){if(this.painter.pathToImage)return this.painter.pathToImage(e,t)},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0&&(n.content=this.$slots.default[0].elm),[2,new e.Marker(n)]}))}))}},props:{content:Object(a.defineProp)("setContent",String),icon:Object(a.defineProp)({setter:function(e,t){if(t){var n=l(t);e.setIcon(n)}},transform:l}),label:Object(a.defineProp)({type:Object,setter:function(e,t){t&&e.setLabel(s(t))},deep:!0,transform:s})}});t.default=u},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(493),a=Object(r.createHashMap)();t.default={registerMap:function(e,t,n){var i;if(Object(r.isArray)(t))i=t;else if(t.svg)i=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}];else{var s=t.geoJson||t.geoJSON;s&&!t.features&&(n=t.specialAreas,t=s),i=[{type:"geoJSON",source:t,specialAreas:n}]}return Object(r.each)(i,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON"),(0,o[t])(e)})),a.set(e,i)},retrieveMap:function(e){return a.get(e)}};var o={geoJSON:function(e){var t=e.source;e.geoJSON=Object(r.isString)(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=Object(i.parseXML)(e.source)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"ScaleRawExtentInfo",(function(){return a})),n.d(t,"ensureScaleRawExtentInfo",(function(){return l})),n.d(t,"parseAxisModelMinMax",(function(){return u}));var r=n(0),i=n(63),a=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]l&&(s=NaN,l=NaN);var d=Object(r.eqNaN)(s)||Object(r.eqNaN)(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(s=h,u=!0),null!=f&&(l=f,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},e.prototype.modifyDataMinMax=function(e,t){this[s[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[o[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),o={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(e,t,n){var r=e.rawExtentInfo;return r||(r=new a(e,t,n),e.rawExtentInfo=r,r)}function u(e,t){return null==t?null:Object(r.eqNaN)(t)?NaN:e.parse(t)}},function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"default",(function(){return F}));n(19),n(20),n(21),n(81),n(98),n(64),n(16),n(292),n(128),n(320),n(321),n(13),n(102),n(34),n(17),n(160),n(18),n(1987),n(133);var i=n(1),a=n(337),o=n(96),s=n(104),l=n(28),u=n(119),c=n(1845),d=n(1847),h=n(53),f=n(3),p=n(2),m=n(312),g=n(41),v=n(88),_=n(156),y=n(120),b=n(12),S=n(1848),w=n(1849),E=n(234),C=n(231),T=n(348),O=n(15),x=n(43),M=n(776),k=n(311),A=n(777),D=n(253),R=n(453),L=n(283),I=n(379);function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function j(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]&&arguments[2],G=!1,$=this,q=function(){},K=new h.default($);Object(f.extend)(q.prototype,M.default.prototype),Object(f.extend)(q.prototype,n),Object(f.extend)(q.prototype,ie(n)),Object(R.applyLanguageSetting)(q.prototype,n.language),Object(T.hasValidParameter)(z)&&Object(T.registerAsRootInstance)(this),this.rootElement=t,this.rootDocument=t.ownerDocument,this.rootWindow=this.rootDocument.defaultView,Object(L.startObserving)(this.rootDocument),this.isDestroyed=!1,this.isHotTableEnv=Object(i.isChildOfWebComponentTable)(this.rootElement),h.default.isHotTableEnv=this.isHotTableEnv,this.container=this.rootDocument.createElement("div"),this.renderCall=!1,t.insertBefore(this.container,t.firstChild),Object(T.isRootInstance)(this)&&Object(l._injectProductInfo)(n.licenseKey,t),this.guid="ht_".concat(Object(y.randomString)());var X=Object(C.getTranslator)($);H=new w.default($),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),F={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width","language"],settings:new q,selRange:null,isPopulated:null,scrollable:null,firstRun:!0};var Q=new I.Selection(F.settings,{countCols:function(){return $.countCols()},countRows:function(){return $.countRows()},propToCol:function(e){return Y.propToCol(e)},isEditorOpened:function(){return!!$.getActiveEditor()&&$.getActiveEditor().isOpened()}});function Z(e){var t=Object(R.normalizeLanguageCode)(e);Object(D.hasLanguageDictionary)(t)?($.runHooks("beforeLanguageChange",t),q.prototype.language=t,$.runHooks("afterLanguageChange",t)):Object(R.warnUserAboutLanguageRegistration)(e)}function J(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ee(e){var t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function te(e,t,n){if(e.length){var r=$.getActiveEditor(),a=$.runHooks("beforeChange",e,t||"edit"),l=!0;if(Object(o.isFunction)(a))Object(s.warn)("Your beforeChange callback returns a function. It's not supported since Handsontable 0.12.1 (and the returned function will not be executed).");else if(!1===a)return void(r&&r.cancelChanges());var u,c=new J;c.onQueueEmpty=function(e){r&&l&&r.cancelChanges(),n(e)};for(var d=e.length-1;d>=0;d--)if(null===e[d])e.splice(d,1);else{var h=P(e[d],4),f=h[0],p=h[1],m=h[3],g=Y.propToCol(p),v=$.getCellMeta(f,g);"numeric"===v.type&&"string"==typeof m&&((u=m).length>0&&/^\s*[+-.]?\s*(?:(?:\d+(?:(\.|,)\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/.test(u))&&(e[d][3]=ee(m)),$.getCellValidator(v)&&(c.addValidatorToQueue(),$.validateCell(e[d][3],v,function(t,n){return function(r){if("boolean"!=typeof r)throw new Error("Validation error: result is not boolean");if(!1===r&&!1===n.allowInvalid){l=!1,e.splice(t,1),n.valid=!0;var a=$.getCell(n.visualRow,n.visualCol);null!==a&&Object(i.removeClass)(a,$.getSettings().invalidCellClassName)}c.removeValidatorFormQueue()}}(d,v),t))}c.checkIfQueueIsEmpty()}}function ne(e,t){var n=e.length-1;if(!(n<0)){for(;n>=0;n--){var r=!1;if(null!==e[n]){if(null!==e[n][2]&&void 0!==e[n][2]||null!==e[n][3]&&void 0!==e[n][3]){if(F.settings.allowInsertRow)for(;e[n][0]>$.countRows()-1;){if(0===Y.createRow(void 0,void 0,t)){r=!0;break}}if("array"===$.dataType&&(!F.settings.columns||0===F.settings.columns.length)&&F.settings.allowInsertColumn)for(;Y.propToCol(e[n][1])>$.countCols()-1;){if(0===Y.createCol(void 0,void 0,t)){r=!0;break}}r||Y.set(e[n][0],e[n][1],e[n][3])}}else e.splice(n,1)}$.forceFullRender=!0,U.adjustRowsAndCols(),$.runHooks("beforeChangeRender",e,t),W.lockEditor(),$._refreshBorders(null),W.unlockEditor(),$.view.wt.wtOverlays.adjustElementsSize(),$.runHooks("afterChange",e,t||"edit");var i=$.getActiveEditor();i&&Object(l.isDefined)(i.refreshValue)&&i.refreshValue()}}function re(e,t,n){return"object"===N(e)?e:[[e,t,n]]}function ie(e){if(Object(f.hasOwnProperty)(e,"type")){var t,n={};for(var r in"object"===N(e.type)?t=e.type:"string"==typeof e.type&&(t=Object(k.getCellType)(e.type)),t)Object(f.hasOwnProperty)(t,r)&&!Object(f.hasOwnProperty)(e,r)&&(n[r]=t[r]);return n}}this.selection=Q,this.selection.addLocalHook("beforeSetRangeStart",(function(e){V.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(function(e){V.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(function(e){V.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=V.view.wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=V.view.wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(function(e){var t=Object(f.createObjectPropListener)(!1),n=V.selection.getSelectedRange(),r=n.current(),a=r.from,o=r.to,s=n.size()-1;V.runHooks("afterSelection",a.row,a.col,o.row,o.col,t,s),V.runHooks("afterSelectionByProp",a.row,$.colToProp(a.col),o.row,$.colToProp(o.col),t,s);var l=V.selection.isSelectedByAnyHeader(),u=V.selection.selectedRange.current(),c=!0;G&&(c=!1),t.isTouched()&&(c=!t.value);var d=V.selection.isSelectedByRowHeader(),h=V.selection.isSelectedByColumnHeader();!1!==c&&(l?d?V.view.scrollViewportVertically(e.row):h&&V.view.scrollViewportHorizontally(e.col):u&&!V.selection.isMultiple()?V.view.scrollViewport(u.from):V.view.scrollViewport(e)),d&&h?Object(i.addClass)(V.rootElement,["ht__selection--rows","ht__selection--columns"]):d?(Object(i.removeClass)(V.rootElement,"ht__selection--columns"),Object(i.addClass)(V.rootElement,"ht__selection--rows")):h?(Object(i.removeClass)(V.rootElement,"ht__selection--rows"),Object(i.addClass)(V.rootElement,"ht__selection--columns")):Object(i.removeClass)(V.rootElement,["ht__selection--rows","ht__selection--columns"]),V._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(function(e){var t=e.length-1,n=e[t],r=n.from,i=n.to;V.runHooks("afterSelectionEnd",r.row,r.col,i.row,i.col,t),V.runHooks("afterSelectionEndByProp",r.row,$.colToProp(r.col),i.row,$.colToProp(i.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(function(e){var t=V.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(function(e){V.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",(function(e,t,n){V.runHooks("afterModifyTransformStart",e,t,n)})),this.selection.addLocalHook("beforeModifyTransformEnd",(function(e){V.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",(function(e,t,n){V.runHooks("afterModifyTransformEnd",e,t,n)})),this.selection.addLocalHook("afterDeselect",(function(){W.destroyEditor(),V._refreshBorders(),Object(i.removeClass)(V.rootElement,["ht__selection--rows","ht__selection--columns"]),V.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(function(e){V.alter("insert_row",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(function(e){V.alter("insert_col",e,1,"auto")})),U={alter:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;function o(e,t,n,r){var i=Object(p.arrayMap)(new Array(n),(function(){return"array"===r?e=[]:"object"===r&&(e={}),e;var e}));i.unshift(t,0),e.splice.apply(e,j(i))}var s=function(e){if(0===e.length)return[];var t=j(e);return t.sort((function(e,t){var n=P(e,1)[0],r=P(t,1)[0];return n===r?0:n>r?1:-1})),Object(p.arrayReduce)(t,(function(e,t){var n=P(t,2),r=n[0],i=n[1],a=e[e.length-1],o=P(a,2),s=o[0]+o[1];if(r<=s){var l=Math.max(i-(s-r),0);a[1]+=l}else e.push([r,i]);return e}),[t[0]])};switch(e){case"insert_row":var u=$.countSourceRows();if($.getSettings().maxRows===u)return;t=Object(l.isDefined)(t)?t:u,n=Y.createRow(t,r,i),o(F.cellSettings,t,r,"array"),n&&(Q.isSelected()&&Q.selectedRange.current().from.row>=t?(Q.selectedRange.current().from.row+=n,Q.transformEnd(n,0)):$._refreshBorders());break;case"insert_col":n=Y.createCol(t,r,i);for(var c=0,d=$.countSourceRows();c=t?(Q.selectedRange.current().from.col+=n,Q.transformEnd(0,n)):$._refreshBorders()}break;case"remove_row":var f=function(e){var t=0;Object(p.arrayEach)(e,(function(e){var n=P(e,2),a=n[0],o=n[1],s=Object(l.isEmpty)(a)?$.countRows()-1:Math.max(a-t,0);Number.isInteger(a)&&(a=Math.max(a-t,0)),Y.removeRow(a,o,i),F.cellSettings.splice(s,r);var u=$.countRows(),c=$.getSettings().fixedRowsTop;c>=s+1&&($.getSettings().fixedRowsTop-=Math.min(o,c-s));var d=$.getSettings().fixedRowsBottom;d&&s>=u-d&&($.getSettings().fixedRowsBottom-=Math.min(o,d)),t+=o}))};Array.isArray(t)?f(s(t)):f([[t,r]]),U.adjustRowsAndCols(),$._refreshBorders();break;case"remove_col":var m=function(e){var t=0;Object(p.arrayEach)(e,(function(e){var n=P(e,2),r=n[0],a=n[1],o=Object(l.isEmpty)(r)?$.countCols()-1:Math.max(r-t,0),s=X.toPhysicalColumn(o);Number.isInteger(r)&&(r=Math.max(r-t,0)),Y.removeCol(r,a,i);for(var u=0,c=$.countSourceRows();u=o+1&&($.getSettings().fixedColumnsLeft-=Math.min(a,d-o)),Array.isArray($.getSettings().colHeaders)&&(void 0===s&&(s=-1),$.getSettings().colHeaders.splice(s,a)),t+=a}))};Array.isArray(t)?m(s(t)):m([[t,r]]),U.adjustRowsAndCols(),$._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}a||U.adjustRowsAndCols()},adjustRowsAndCols:function(){if(F.settings.minRows){var e=$.countRows();if(ea-1?(t=!0,i>(n=a-1)&&(i=n)):i>a-1&&(t=!0,n>(i=a-1)&&(n=i)),r>o-1?(t=!0,s>(r=o-1)&&(s=r)):s>o-1&&(t=!0,r>(s=o-1)&&(r=s)),t&&$.selectCell(n,r,i,s)})),$.view&&$.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,n,r,i,a,o){var s,u,c,d,h,p,m,g,v=[],_={};if(0===(u=t.length))return!1;switch(i){case"shift_down":for(h=n?n.col-e.col+1:0,p=n?n.row-e.row+1:0,c=0,d=(t=Object(E.translateRowsToColumns)(t)).length,m=Math.max(d,h);c1&&void 0!==arguments[1]?arguments[1]:null,r=t[e%t.length];return null!==n?r[n%r.length]:r},A=t.length,D=n?n.row-e.row+1:0;for(u=n?D:Math.max(A,D),s=0;sn.row&&D>A||!F.settings.allowInsertRow&&_.row>$.countRows()-1||_.row>=F.settings.maxRows);s++){var R=s-O,L=k(R).length,I=n?n.col-e.col+1:0;if(d=n?I:Math.max(L,I),_.col=e.col,C=$.getCellMeta(_.row,_.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!C.skipRowOnPaste){for(x=0,c=0;cn.col&&I>L||!F.settings.allowInsertColumn&&_.col>$.countCols()-1||_.col>=F.settings.maxCols);c++)if(C=$.getCellMeta(_.row,_.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!C.skipColumnOnPaste)if(C.readOnly)_.col+=1;else{var P=c-x,B=k(R,P),Y=$.getDataAtCell(_.row,_.col),H={row:R,col:P};if("Autofill.fill"===r){var U=$.runHooks("beforeAutofillInsidePopulate",H,a,t,o,{},T);U&&(B=Object(l.isUndefined)(U.value)?B:U.value)}if(null!==B&&"object"===N(B))if(Array.isArray(B)&&null===Y&&(Y=[]),null===Y||"object"!==N(Y))M=!1;else{var W=Object(f.duckSchema)(Array.isArray(Y)?Y:Y[0]||Y),V=Object(f.duckSchema)(Array.isArray(B)?B:B[0]||B);Object(f.isObjectEqual)(W,V)?B=Object(f.deepClone)(B):M=!1}else null!==Y&&"object"===N(Y)&&(M=!1);M&&v.push([_.row,_.col,B]),M=!0,_.col+=1}else x+=1,_.col+=1,d+=1;_.row+=1}else O+=1,_.row+=1,u+=1}$.setDataAtCell(v,null,null,r||"populateFromArray")}}},this.init=function(){H.setData(F.settings.data),$.runHooks("beforeInit"),Object(u.isMobileBrowser)()&&Object(i.addClass)($.rootElement,"mobile"),this.updateSettings(F.settings,!0),this.view=new S.default(this),W=d.default.getInstance($,F,Q,Y),this.forceFullRender=!0,$.runHooks("init"),this.view.render(),"object"===N(F.firstRun)&&($.runHooks("afterChange",F.firstRun[0],F.firstRun[1]),F.firstRun=!1),$.runHooks("afterInit")},this.validateCell=function(e,t,n,r){var i,a=$.getCellValidator(t);function s(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(r&&!0!==t.hidden){var i=t.visualCol,a=t.visualRow,o=$.getCell(a,i,!0);o&&"TH"!==o.nodeName&&$.view.wt.wtSettings.settings.cellRenderer(a,i,o),n(e)}else n(e)}Object(l.isRegExp)(a)&&(i=a,a=function(e,t){t(i.test(e))}),Object(o.isFunction)(a)?(e=$.runHooks("beforeValidate",e,t.visualRow,t.prop,r),$._registerImmediate((function(){a.call(t,e,(function(n){$&&(n=$.runHooks("afterValidate",n,e,t.visualRow,t.prop,r),t.valid=n,s(n),$.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,r))}))}))):$._registerImmediate((function(){t.valid=!0,s(t.valid,!1)}))},this.setDataAtCell=function(e,t,n,r){var i,a,o,s=re(e,t,n),l=[],u=r;for(i=0,a=s.length;i0&&void 0!==arguments[0])||arguments[0],t=$,n=t.rootDocument;if(e){var r=!n.activeElement||n.activeElement&&void 0===n.activeElement.nodeName;n.activeElement&&n.activeElement!==n.body&&!r?n.activeElement.blur():r&&n.body.focus()}$&&!$.isListening()&&(B=$.guid,$.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(B=null,$.runHooks("afterUnlisten"))},this.isListening=function(){return B===$.guid},this.destroyEditor=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];$._refreshBorders(e,t)},this.populateFromArray=function(e,t,n,r,i,a,o,s,l){if("object"!==N(n)||"object"!==N(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");var u="number"==typeof r?new O.CellCoords(r,i):null;return U.populateFromArray(new O.CellCoords(e,t),n,u,a,o,s,l)},this.spliceCol=function(e,t,n){for(var r,i=arguments.length,a=new Array(i>3?i-3:0),o=3;o3?i-3:0),o=3;o0&&(e=t[t.length-1]),e},this.getSelectedRange=function(){if(Q.isSelected())return Array.from(Q.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.emptySelectedCells=function(e){var t=this;if(Q.isSelected()){var n=[];Object(p.arrayEach)(Q.getSelectedRange(),(function(e){var r=e.getTopLeftCorner(),i=e.getBottomRightCorner();Object(b.rangeEach)(r.row,i.row,(function(e){Object(b.rangeEach)(r.col,i.col,(function(r){t.getCellMeta(e,r).readOnly||n.push([e,r,null])}))}))})),n.length>0&&this.setDataAtCell(n,e)}},this.render=function(){$.view&&($.renderCall=!0,$.forceFullRender=!0,W.lockEditor(),$._refreshBorders(null),W.unlockEditor())},this.refreshDimensions=function(){if($.view){var e=$.view.getLastSize(),t=e.width,n=e.height,r=$.rootElement.getBoundingClientRect(),i=r.width,a=r.height,o=i!==t||a!==n;!1===$.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:i,height:a},o)||((o||$.view.wt.wtOverlays.scrollableElement===$.rootWindow)&&($.view.setLastSize(i,a),$.render()),$.runHooks("afterRefreshDimensions",{width:t,height:n},{width:i,height:a},o))}},this.loadData=function(e){if(Array.isArray(F.settings.dataSchema)?$.dataType="array":Object(o.isFunction)(F.settings.dataSchema)?$.dataType="function":$.dataType="object",Y&&Y.destroy(),Y=new c.default($,F,q),"object"===N(e)&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("loadData only accepts array of objects or array of arrays (".concat(N(e)," given)"));var t,n=Y.getSchema();e=[];var r,i=0;for(i=0,r=F.settings.startRows;i1&&void 0!==arguments[1]&&arguments[1],u=!1;if(Object(l.isDefined)(e.rows))throw new Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if(Object(l.isDefined)(e.cols))throw new Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(t in e)"data"!==t&&("language"!==t?x.default.getSingleton().getRegistered().indexOf(t)>-1?(Object(o.isFunction)(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,$.addHook(t,e[t])):!s&&Object(f.hasOwnProperty)(e,t)&&(q.prototype[t]=e[t]):Z(e.language));void 0===e.data&&void 0===F.settings.data?$.loadData(null):void 0!==e.data?$.loadData(e.data):void 0!==e.columns&&Y.createMap(),r=$.countCols();var c,d,h=e.columns||q.prototype.columns;if(h&&Object(o.isFunction)(h)&&(r=$.countSourceCols(),u=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(F.cellSettings.length=0),r>0)for(t=0,n=0;t-1||v.indexOf("overflow")>-1)?$.rootElement.setAttribute("style",v):($.rootElement.style.height="",$.rootElement.style.overflow="")}else void 0!==m&&($.rootElement.style.height=isNaN(m)?"".concat(m):"".concat(m,"px"),$.rootElement.style.overflow="hidden");if(void 0!==e.width){var _=e.width;Object(o.isFunction)(_)&&(_=_()),$.rootElement.style.width=isNaN(_)?"".concat(_):"".concat(_,"px")}s||(Y.clearLengthCache(),$.view&&$.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),$.runHooks("afterUpdateSettings",e)),U.adjustRowsAndCols(),$.view&&!F.firstRun&&($.forceFullRender=!0,W.lockEditor(),$._refreshBorders(null),W.unlockEditor()),s||!$.view||""!==p&&""!==m&&void 0!==m||p===m||$.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=$.getSelectedLast();if(q.prototype.getValue){if(Object(o.isFunction)(q.prototype.getValue))return q.prototype.getValue.call($);if(e)return $.getData()[e[0][0]][q.prototype.getValue]}else if(e)return $.getDataAtCell(e[0],e[1])},this.getSettings=function(){return F.settings},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,i){U.alter(e,t,n,r,i)},this.getCell=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return $.view.getCellAtCoords(new O.CellCoords(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return Y.colToProp(e)},this.propToCol=function(e){return Y.propToCol(e)},this.toVisualRow=function(e){return X.toVisualRow(e)},this.toVisualColumn=function(e){return X.toVisualColumn(e)},this.toPhysicalRow=function(e){return X.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return X.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return Y.get(e,Y.colToProp(t))},this.getDataAtRowProp=function(e,t){return Y.get(e,t)},this.getDataAtCol=function(e){var t;return(t=[]).concat.apply(t,j(Y.getRange(new O.CellCoords(0,e),new O.CellCoords(F.settings.data.length-1,e),Y.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,n=Y.getRange(new O.CellCoords(0,Y.propToCol(e)),new O.CellCoords(F.settings.data.length-1,Y.propToCol(e)),Y.DESTINATION_RENDERER);return(t=[]).concat.apply(t,j(n))},this.getSourceData=function(e,t,n,r){return void 0===e?H.getData():H.getByRange(new O.CellCoords(e,t),new O.CellCoords(n,r))},this.getSourceDataArray=function(e,t,n,r){return void 0===e?H.getData(!0):H.getByRange(new O.CellCoords(e,t),new O.CellCoords(n,r),!0)},this.getSourceDataAtCol=function(e){return H.getAtColumn(e)},this.getSourceDataAtRow=function(e){return H.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return H.getAtCell(e,t)},this.getDataAtRow=function(e){return Y.getRange(new O.CellCoords(e,0),new O.CellCoords(e,this.countCols()-1),Y.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,r){var i=this,a=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,r],o=a[0],s=a[1],l=a[2],u=a[3],c=null,d=null;void 0===l&&(l=o),void 0===u&&(u=s);var h="mixed";return Object(b.rangeEach)(Math.min(o,l),Math.max(o,l),(function(e){var t=!0;return Object(b.rangeEach)(Math.min(s,u),Math.max(s,u),(function(n){var r=i.getCellMeta(e,n);return d=r.type,c?t=c===d:c=d,t})),h=t?d:"mixed",t})),h},this.removeCellMeta=function(e,t,n){var r=P(X.toPhysical(e,t),2),i=r[0],a=r[1],o=F.cellSettings[i][a][n];!1!==$.runHooks("beforeRemoveCellMeta",e,t,n,o)&&(delete F.cellSettings[i][a][n],$.runHooks("afterRemoveCellMeta",e,t,n,o)),o=null},this.spliceCellsMeta=function(e,t){for(var n,r=arguments.length,i=new Array(r>2?r-2:0),a=2;a=0;)if(void 0===t||-1!==t.indexOf(i)){for(var a=$.countCols()-1;a>=0;)void 0===n||-1!==n.indexOf(a)?(r.addValidatorToQueue(),$.validateCell($.getDataAtCell(i,a),$.getCellMeta(i,a),(function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()}),"validateCells"),a-=1):a-=1;i-=1}else i-=1;r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=F.settings.rowHeaders,n=e;return void 0!==n&&(n=$.runHooks("modifyRowHeader",n)),void 0===n?(t=[],Object(b.rangeEach)($.countRows()-1,(function(e){t.push($.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[n]?t=t[n]:Object(o.isFunction)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!F.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==F.settings.colHeaders&&null!==F.settings.colHeaders)return!!F.settings.colHeaders;for(var e=0,t=$.countCols();e0&&void 0!==arguments[0]&&arguments[0],t=0;return Object(b.rangeEachReverse)($.countRows()-1,(function(n){if($.isEmptyRow(n))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if($.countRows()<1)return 0;var t=0;return Object(b.rangeEachReverse)($.countCols()-1,(function(n){if($.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return F.settings.isEmptyRow.call($,e)},this.isEmptyCol=function(e){return F.settings.isEmptyCol.call($,e)},this.selectCell=function(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!Object(l.isUndefined)(e)&&!Object(l.isUndefined)(t)&&this.selectCells([[e,t,n,r]],i,a)},this.selectCells=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===t&&(G=!0);var r=Q.selectCells(e);return r&&n&&$.listen(),G=!1,r},this.selectColumns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Q.selectColumns(e,t)},this.selectRows=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Q.selectRows(e,t)},this.deselectCell=function(){Q.deselect()},this.selectAll=function(){G=!0,Q.selectAll(),G=!1},this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=!n,a=!r,o=!1;return void 0!==e&&void 0!==t&&(o=$.view.scrollViewport(new O.CellCoords(e,t),i,r,n,a)),"number"==typeof e&&"number"!=typeof t&&(o=$.view.scrollViewportVertically(e,i,n)),"number"==typeof t&&"number"!=typeof e&&(o=$.view.scrollViewportHorizontally(t,r,a)),o},this.destroy=function(){if($._clearTimeouts(),$._clearImmediates(),$.view&&$.view.destroy(),H&&H.destroy(),H=null,Object(L.stopObserving)(),Object(T.isRootInstance)($)){var e=this.rootDocument.querySelector("#hot-display-license-info");e&&e.parentNode.removeChild(e)}Object(i.empty)($.rootElement),K.destroy(),W&&W.destroy(),$.runHooks("afterDestroy"),x.default.getSingleton().destroy($),Object(f.objectEach)($,(function(e,t,n){Object(o.isFunction)(e)?n[t]=se(t):"guid"!==t&&(n[t]=null)})),$.isDestroyed=!0,Y&&Y.destroy(),Y=null,F=null,U=null,Q=null,W=null,$=null,q=null},this.getActiveEditor=function(){return W.getActiveEditor()},this.getPlugin=function(e){return Object(g.getPlugin)(this,e)},this.getInstance=function(){return $},this.addHook=function(e,t){x.default.getSingleton().add(e,t,$)},this.hasHook=function(e){return x.default.getSingleton().has(e,$)},this.addHookOnce=function(e,t){x.default.getSingleton().once(e,t,$)},this.removeHook=function(e,t){x.default.getSingleton().remove(e,t,$)},this.runHooks=function(e,t,n,r,i,a,o){return x.default.getSingleton().run($,e,t,n,r,i,a,o)},this.getTranslatedPhrase=function(e,t){return Object(A.getTranslatedPhrase)(F.settings.language,e,t)},this.toHTML=function(){return Object(m.instanceToHTML)(V)},this.toTableElement=function(){var e=V.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",Object(m.instanceToHTML)(V)),e.firstElementChild},this.timeouts=[],this._registerTimeout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;"function"==typeof n&&(n=setTimeout(n,t)),this.timeouts.push(n)},this._clearTimeouts=function(){Object(p.arrayEach)(this.timeouts,(function(e){clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(t){this.immediates.push(e(t))},this._clearImmediates=function(){Object(p.arrayEach)(this.immediates,(function(e){r(e)}))},this._refreshBorders=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];W.destroyEditor(e),$.view.render(),t&&Q.isSelected()&&W.prepareEditor()},x.default.getSingleton().run($,"construct")}}.call(this,n(458).setImmediate,n(458).clearImmediate)},function(e,t,n){"use strict";n.r(t),n.d(t,"ACTIVE_HEADER_TYPE",(function(){return c})),n.d(t,"AREA_TYPE",(function(){return d})),n.d(t,"CELL_TYPE",(function(){return h})),n.d(t,"FILL_TYPE",(function(){return f})),n.d(t,"HEADER_TYPE",(function(){return p})),n.d(t,"CUSTOM_SELECTION",(function(){return m}));n(19),n(20),n(21),n(81),n(1994),n(177),n(391),n(98),n(122),n(16),n(258),n(69),n(1371),n(238),n(13),n(34),n(145),n(17),n(392),n(18);var r=n(384),i=n(2);function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea",value:function(){var e,t=this.layerLevel;return this.areas.has(t)?e=this.areas.get(t):(e=Object(r.createHighlight)(d,s({layerLevel:t},this.options)),this.areas.set(t,e)),e}},{key:"getAreas",value:function(){return a(this.areas.values())}},{key:"createOrGetHeader",value:function(){var e,t=this.layerLevel;return this.headers.has(t)?e=this.headers.get(t):(e=Object(r.createHighlight)(p,s({},this.options)),this.headers.set(t,e)),e}},{key:"getHeaders",value:function(){return a(this.headers.values())}},{key:"createOrGetActiveHeader",value:function(){var e,t=this.layerLevel;return this.activeHeaders.has(t)?e=this.activeHeaders.get(t):(e=Object(r.createHighlight)(c,s({},this.options)),this.activeHeaders.set(t,e)),e}},{key:"getActiveHeaders",value:function(){return a(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return a(this.customSelections.values())}},{key:"addCustomSelection",value:function(e){this.customSelections.push(Object(r.createHighlight)(m,s({},e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),Object(i.arrayEach)(this.areas.values(),(function(e){e.clear()})),Object(i.arrayEach)(this.headers.values(),(function(e){e.clear()})),Object(i.arrayEach)(this.activeHeaders.values(),(function(e){e.clear()}))}},{key:Symbol.iterator,value:function(){return[this.cell,this.fill].concat(a(this.areas.values()),a(this.headers.values()),a(this.activeHeaders.values()),a(this.customSelections))[Symbol.iterator]()}}])&&u(t.prototype,n),o&&u(t,o),e}();t.default=g},function(e,t,n){"use strict";n.r(t),n.d(t,"CONDITION_NAME",(function(){return a})),n.d(t,"condition",(function(){return o}));var r=n(8),i=n(56),a="empty";function o(e){return""===e.value||null===e.value||void 0===e.value}Object(i.registerCondition)(a,o,{name:r.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";n.r(t),n.d(t,"CONDITION_NAME",(function(){return s})),n.d(t,"condition",(function(){return l}));n(19),n(20),n(21),n(16),n(13),n(34),n(17),n(18);var r=n(8),i=n(28),a=n(56);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var s="eq";function l(e,t){var n=o(t,1)[0];return Object(i.stringify)(e.value).toLowerCase()===Object(i.stringify)(n)}Object(a.registerCondition)(s,l,{name:r.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t0&&a&&w(-d/o,0,o);var g,v,_=e[0],y=e[o-1];return b(),g<0&&E(-g,.8),v<0&&E(v,.8),b(),S(g,v,1),S(v,g,-1),b(),g<0&&C(-g),v<0&&C(v),u}function b(){g=_.rect[t]-r,v=i-y.rect[t]-y.rect[n]}function S(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){w(r*n,0,o);var i=r+e;i<0&&E(-i*n,1)}else E(-e*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var a=r;a0)for(l=0;l0;l--){w(-(a[l-1]*d),l,o)}}}function C(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(o-1)),r=0;r0?w(n,0,r+1):w(-n,o-r-1,o),(e-=n)<=0)return}}function s(e,t,n,r){return o(e,"x","width",t,n,r)}function l(e,t,n,r){return o(e,"y","height",t,n,r)}function u(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new i.default(0,0,0,0);function a(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var o=0;o=0;a--)r.push(i[a])}}n.r(t),n.d(t,"eachAfter",(function(){return r})),n.d(t,"eachBefore",(function(){return i}))},function(e,t,n){"use strict";n.r(t),n.d(t,"pathToBezierCurves",(function(){return m})),n.d(t,"alignBezierCurves",(function(){return _})),n.d(t,"centroid",(function(){return y})),n.d(t,"morphPath",(function(){return w})),n.d(t,"isCombiningPath",(function(){return O})),n.d(t,"isInAnyMorphing",(function(){return x})),n.d(t,"combine",(function(){return M})),n.d(t,"separate",(function(){return I}));var r=n(148),i=n(57),a=n(0),o=n(23),s=n(79),l=n(188),u=r.default.CMD,c=2*Math.PI,d=["x","y"],h=["width","height"],f=[];function p(e,t){return Math.abs(e-t)<1e-5}function m(e){var t,n,r,i,a,o=e.data,s=e.len(),l=[],c=0,d=0,h=0,f=0;function m(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function g(e,n,r,i){p(e,r)&&p(n,i)||t.push(e,n,r,i,r,i)}function v(e,n,r,i,a,o){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=nO:k2&&l.push(t),l}function g(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var a=n0)for(var C=r/n,T=-r/2;T<=r/2;T+=C){var O=Math.sin(T),x=Math.cos(T),M=0;for(w=0;wg.width?1:0,i=h[r],a=d[r],o=g[i]/t,u=g[a],f=0;f>4?n+20:n+10},o=function e(t,n){return void 0===n&&(n=0),(t=r(t)).length-n<10||"ID3"!==i(t.subarray(n,n+3))?n:e(t,n+=a(t,n))},s={aac:function(e){var t=o(e);return e.length>=t+2&&255==(255&e[t])&&224==(224&e[t+1])&&16==(22&e[t+1])},mp3:function(e){var t=o(e);return e.length>=t+2&&255==(255&e[t])&&224==(224&e[t+1])&&2==(6&e[t+1])},webm:function(e){return e.length>=4&&26==(255&e[0])&&69==(255&e[1])&&223==(255&e[2])&&163==(255&e[3])},mp4:function(e){return e.length>=8&&/^(f|s)typ$/.test(i(e.subarray(4,8)))&&!/^ftyp3g$/.test(i(e.subarray(4,10)))},"3gp":function(e){return e.length>=10&&/^ftyp3g$/.test(i(e.subarray(4,10)))},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188=4&&/^fLaC$/.test(i(e.subarray(0,4)))},ogg:function(e){return e.length>=4&&/^OggS$/.test(i(e.subarray(0,4)))}},l=Object.keys(s).filter((function(e){return"ts"!==e})).concat("ts");l.forEach((function(e){var t=s[e];s[e]=function(e){return t(r(e))}}));t.detectContainerForBytes=function(e){e=r(e);for(var t=0;t>>0;if("moof"===i(e.subarray(t+4,t+8)))return!0;0===n||n+t>e.length?t=e.length:t+=n}return!1}},function(e,t,n){"use strict";n.r(t),n.d(t,"print",(function(){return c})),n.d(t,"start",(function(){return l})),n.d(t,"stop",(function(){return u}));var r=n(171),i=n(11),a=new Map,o=new Map;function s(e){var t=o.get(e);if(t){var n=t.ops,r=t.milliseconds,i=n/r*1e3;console.log(e+": "+n+"ops, "+r.toFixed(2)+"ms, "+i.toFixed(2)+"ops/s")}}function l(e){r.default.timing&&performance&&performance.now&&a.set(e,performance.now())}function u(e,t){if(void 0===t&&(t=1),r.default.timing&&performance&&performance.now){var n=performance.now(),i=a.get(e);if(a.delete(e),i){var s=n-i,l=o.get(e)||{ops:0,milliseconds:0};l.ops+=t||1,l.milliseconds+=s,o.set(e,l)}}}function c(e){var t,n;if(console.log("[perf timer statistics]"),e)s(e);else try{for(var r=Object(i.__values)(o.keys()),a=r.next();!a.done;a=r.next())s(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}"undefined"!=typeof window&&(window.__amap_perf__={start:l,stop:u,print:c})},function(e,t){e.exports=!1},function(e,t,n){var r=n(1074),i=n(132),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r,i=n(153),a=n(1969),o=n(817),s=n(462),l=n(1078),u=n(812),c=n(556),d=c("IE_PROTO"),h=function(){},f=function(e){return"