Core code of ChartWerk project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
71 KiB

!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=214)}([function(t,e,n){var r=n(93),i=n(54);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(56),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(29),i=n(78),o=n(14);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e,n){var r=n(7),i=n(4);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e,n){var r=n(12),i=n(95),o=n(96),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},function(t,e,n){var r=n(103),i=n(106);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(34),i=n(38);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var r=n(122);t.exports=function(t){return r(t,5)}},function(t,e,n){var r=n(29),i=n(73),o=n(14);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e,n){var r=n(3).Symbol;t.exports=r},function(t,e,n){var r=n(62),i=n(133),o=n(9);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(60),i=n(39);t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var u=e[a],f=o?o(n[u],t[u],u,n,t):void 0;void 0===f&&(f=t[u]),s?i(n,u,f):r(n,u,f)}return n}},function(t,e,n){var r=n(62),i=n(136),o=n(9);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,e,n){var r=n(80),i=n(50),o=n(192),s=n(51),a=i((function(t){return t.push(void 0,o),r(s,void 0,t)}));t.exports=a},function(t,e,n){var r=n(8)(Object,"create");t.exports=r},function(t,e,n){var r=n(111),i=n(112),o=n(113),s=n(114),a=n(115);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(15);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(117);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(121),i=n(4),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e,n){var r=n(6);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r=n(20),i=n(123),o=n(124),s=n(125),a=n(126),c=n(127);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=c,t.exports=u},function(t,e,n){(function(t){var r=n(3),i=n(131),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;t.exports=c}).call(this,n(40)(t))},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(142),i=n(35),o=n(143),s=n(144),a=n(145),c=n(7),u=n(57),f=u(r),l=u(i),h=u(o),p=u(s),v=u(a),d=c;(r&&"[object DataView]"!=d(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=d(new i)||o&&"[object Promise]"!=d(o.resolve())||s&&"[object Set]"!=d(new s)||a&&"[object WeakMap]"!=d(new a))&&(d=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case v:return"[object WeakMap]"}return e}),t.exports=d},function(t,e,n){var r=n(6);t.exports=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(void 0===c?a==a&&!r(a):n(a,c)))var c=a,u=s}return u}},function(t,e,n){var r=n(29),i=n(48),o=n(73);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},function(t,e,n){var r=n(29),i=n(78),o=n(48);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},function(t,e,n){var r=n(1),i=n(6),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(100),i=n(116),o=n(118),s=n(119),a=n(120);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(7),i=n(2);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(8)(n(3),"Map");t.exports=r},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(61);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(132),i=n(27),o=n(42),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},function(t,e,n){(function(t){var r=n(56),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,n(40)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(139),i=n(66),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(63)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(70);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(156),i=n(169),o=n(14),s=n(1),a=n(173);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},function(t,e,n){var r=n(55),i=n(24);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(14),i=n(187),o=n(188);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e,n){var r=n(82),i=n(197)((function(t,e,n,i){r(t,e,n,i)}));t.exports=i},function(t,e,n){var r=n(176),i=n(178),o=n(50),s=n(81),a=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&s(t,e[0],e[1])?e=[]:n>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=a},function(t,e){var n=Array.prototype.reverse;t.exports=function(t){return null==t?t:n.call(t)}},function(t,e,n){var r=n(55),i=n(23),o=n(1),s=n(37),a=n(38),c=n(24);t.exports=function(t,e,n){for(var u=-1,f=(e=r(e,t)).length,l=!1;++u<f;){var h=c(e[u]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++u!=f?l:!!(f=null==t?0:t.length)&&a(f)&&s(h,f)&&(o(t)||i(t))}},function(t,e,n){var r=n(1),i=n(32),o=n(97),s=n(58);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(94))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(59);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(12),i=n(36),o=n(1),s=n(6),a=r?r.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(39),i=n(15),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(8),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(130),i=n(23),o=n(1),s=n(26),a=n(37),c=n(41),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),f=!n&&i(t),l=!n&&!f&&s(t),h=!n&&!f&&!l&&c(t),p=n||f||l||h,v=p?r(t.length,String):[],d=v.length;for(var y in t)!e&&!u.call(t,y)||p&&("length"==y||l&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,d))||v.push(y);return v}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){(function(t){var r=n(3),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(40)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(45),i=n(46),o=n(44),s=n(66),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s;t.exports=a},function(t,e,n){var r=n(69),i=n(44),o=n(13);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(45),i=n(1);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e,n){var r=n(3).Uint8Array;t.exports=r},function(t,e,n){var r=n(47);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(151),i=n(46),o=n(43);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e,n){var r=n(158),i=n(4);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},function(t,e,n){var r=n(159),i=n(162),o=n(163);t.exports=function(t,e,n,s,a,c){var u=1&n,f=t.length,l=e.length;if(f!=l&&!(u&&l>f))return!1;var h=c.get(t),p=c.get(e);if(h&&p)return h==e&&p==t;var v=-1,d=!0,y=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++v<f;){var b=t[v],x=e[v];if(s)var g=u?s(x,b,v,e,t,c):s(b,x,v,t,e,c);if(void 0!==g){if(g)continue;d=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(b===t||a(b,t,n,s,c)))return y.push(e)}))){d=!1;break}}else if(b!==x&&!a(b,x,n,s,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},function(t,e,n){var r=n(2);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,n){var r=n(182)();t.exports=r},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(15),i=n(9),o=n(37),s=n(2);t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(25),i=n(83),o=n(79),s=n(193),a=n(2),c=n(17),u=n(84);t.exports=function t(e,n,f,l,h){e!==n&&o(n,(function(o,c){if(h||(h=new r),a(o))s(e,n,c,f,t,l,h);else{var p=l?l(u(e,c),o,c+"",e,n,h):void 0;void 0===p&&(p=o),i(e,c,p)}}),c)}},function(t,e,n){var r=n(39),i=n(15);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){var r=n(2),i=n(6),o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=a.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):s.test(t)?NaN:+t}},function(t,e,n){var r=n(198),i=n(199);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o,s=0,a={injectType:"lazyStyleTag",insert:"head",singleton:!1},c={};c.locals=i.locals||{},c.use=function(){return s++||(o=r(i,a)),c},c.unuse=function(){s>0&&!--s&&(o(),o=null)},t.exports=c},function(t,e,n){var r=n(201),i=n(9),o=n(205),s=n(206),a=n(208),c=Math.max;t.exports=function(t,e,n,u){t=i(t)?t:a(t),n=n&&!u?s(n):0;var f=t.length;return n<0&&(n=c(f+n,0)),o(t)?n<=f&&t.indexOf(e,n)>-1:!!f&&r(t,e,n)>-1}},function(t,e,n){t.exports=n(210)},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(211)((function(t,e){return t+e}),0);t.exports=r},function(t,e,n){var r=n(58);t.exports=function(){var t=arguments,e=r(t[0]);return t.length<3?e:e.replace(t[1],t[2])}},function(t,e,n){var r=n(2),i=n(213),o=n(85),s=Math.max,a=Math.min;t.exports=function(t,e,n){var c,u,f,l,h,p,v=0,d=!1,y=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(e){var n=c,r=u;return c=u=void 0,v=e,l=t.apply(r,n)}function g(t){return v=t,h=setTimeout(O,e),d?x(t):l}function m(t){var n=t-p;return void 0===p||n>=e||n<0||y&&t-v>=f}function O(){var t=i();if(m(t))return A(t);h=setTimeout(O,function(t){var n=e-(t-p);return y?a(n,f-(t-v)):n}(t))}function A(t){return h=void 0,b&&c?x(t):(c=u=void 0,l)}function j(){var t=i(),n=m(t);if(c=arguments,u=this,p=t,n){if(void 0===h)return g(p);if(y)return clearTimeout(h),h=setTimeout(O,e),x(p)}return void 0===h&&(h=setTimeout(O,e)),l}return e=o(e)||0,r(n)&&(d=!!n.leading,f=(y="maxWait"in n)?s(o(n.maxWait)||0,e):f,b="trailing"in n?!!n.trailing:b),j.cancel=function(){void 0!==h&&clearTimeout(h),v=0,c=p=u=h=void 0},j.flush=function(){return void 0===h?l:A(i())},j}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(12),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(98),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},function(t,e,n){var r=n(99);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(33);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(101),i=n(20),o=n(35);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(102),i=n(107),o=n(108),s=n(109),a=n(110);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(19);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(34),i=n(104),o=n(2),s=n(57),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,l=u.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:a).test(s(t))}},function(t,e,n){var r,i=n(105),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(3)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(19),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(19),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(19);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(21),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(21);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(21);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(21);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(22);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(22);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(22);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(22);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(7),i=n(4);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(25),i=n(128),o=n(60),s=n(129),a=n(135),c=n(64),u=n(65),f=n(138),l=n(140),h=n(68),p=n(141),v=n(28),d=n(146),y=n(147),b=n(72),x=n(1),g=n(26),m=n(152),O=n(2),A=n(154),j=n(13),S=n(17),_={};_["[object Arguments]"]=_["[object Array]"]=_["[object ArrayBuffer]"]=_["[object DataView]"]=_["[object Boolean]"]=_["[object Date]"]=_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Map]"]=_["[object Number]"]=_["[object Object]"]=_["[object RegExp]"]=_["[object Set]"]=_["[object String]"]=_["[object Symbol]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_["[object Error]"]=_["[object Function]"]=_["[object WeakMap]"]=!1,t.exports=function t(e,n,C,E,k,w){var T,R=1&n,M=2&n,F=4&n;if(C&&(T=k?C(e,E,k,w):C(e)),void 0!==T)return T;if(!O(e))return e;var I=x(e);if(I){if(T=d(e),!R)return u(e,T)}else{var P=v(e),z="[object Function]"==P||"[object GeneratorFunction]"==P;if(g(e))return c(e,R);if("[object Object]"==P||"[object Arguments]"==P||z&&!k){if(T=M||z?{}:b(e),!R)return M?l(e,a(T,e)):f(e,s(T,e))}else{if(!_[P])return k?e:{};T=y(e,P,R)}}w||(w=new r);var L=w.get(e);if(L)return L;w.set(e,T),A(e)?e.forEach((function(r){T.add(t(r,n,C,r,e,w))})):m(e)&&e.forEach((function(r,i){T.set(i,t(r,n,C,i,e,w))}));var B=I?void 0:(F?M?p:h:M?S:j)(e);return i(B||e,(function(r,i){B&&(r=e[i=r]),o(T,i,t(r,n,C,i,e,w))})),T}},function(t,e,n){var r=n(20);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(20),i=n(35),o=n(33);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(16),i=n(13);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(7),i=n(38),o=n(4),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},function(t,e,n){var r=n(43),i=n(134),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(63)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(16),i=n(17);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(2),i=n(43),o=n(137),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(16),i=n(44);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},function(t,e,n){var r=n(16),i=n(67);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(69),i=n(67),o=n(17);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(8)(n(3),"DataView");t.exports=r},function(t,e,n){var r=n(8)(n(3),"Promise");t.exports=r},function(t,e,n){var r=n(8)(n(3),"Set");t.exports=r},function(t,e,n){var r=n(8)(n(3),"WeakMap");t.exports=r},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(47),i=n(148),o=n(149),s=n(150),a=n(71);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Set]":return new c;case"[object Symbol]":return s(t)}}},function(t,e,n){var r=n(47);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(12),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var r=n(2),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){var r=n(153),i=n(27),o=n(42),s=o&&o.isMap,a=s?i(s):r;t.exports=a},function(t,e,n){var r=n(28),i=n(4);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(155),i=n(27),o=n(42),s=o&&o.isSet,a=s?i(s):r;t.exports=a},function(t,e,n){var r=n(28),i=n(4);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},function(t,e,n){var r=n(157),i=n(168),o=n(77);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(25),i=n(74);t.exports=function(t,e,n,o){var s=n.length,a=s,c=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=n[s];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<a;){var f=(u=n[s])[0],l=t[f],h=u[1];if(c&&u[2]){if(void 0===l&&!(f in t))return!1}else{var p=new r;if(o)var v=o(l,h,f,t,e,p);if(!(void 0===v?i(h,l,3,o,p):v))return!1}}return!0}},function(t,e,n){var r=n(25),i=n(75),o=n(164),s=n(167),a=n(28),c=n(1),u=n(26),f=n(41),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,v,d){var y=c(t),b=c(e),x=y?"[object Array]":a(t),g=b?"[object Array]":a(e),m=(x="[object Arguments]"==x?l:x)==l,O=(g="[object Arguments]"==g?l:g)==l,A=x==g;if(A&&u(t)){if(!u(e))return!1;y=!0,m=!1}if(A&&!m)return d||(d=new r),y||f(t)?i(t,e,n,p,v,d):o(t,e,x,n,p,v,d);if(!(1&n)){var j=m&&h.call(t,"__wrapped__"),S=O&&h.call(e,"__wrapped__");if(j||S){var _=j?t.value():t,C=S?e.value():e;return d||(d=new r),v(_,C,n,p,d)}}return!!A&&(d||(d=new r),s(t,e,n,p,v,d))}},function(t,e,n){var r=n(33),i=n(160),o=n(161);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(12),i=n(70),o=n(15),s=n(75),a=n(165),c=n(166),u=r?r.prototype:void 0,f=u?u.valueOf:void 0;t.exports=function(t,e,n,r,u,l,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!l(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=a;case"[object Set]":var v=1&r;if(p||(p=c),t.size!=e.size&&!v)return!1;var d=h.get(t);if(d)return d==e;r|=2,h.set(t,e);var y=s(p(t),p(e),r,u,l,h);return h.delete(t),y;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(68),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var c=1&n,u=r(t),f=u.length;if(f!=r(e).length&&!c)return!1;for(var l=f;l--;){var h=u[l];if(!(c?h in e:i.call(e,h)))return!1}var p=a.get(t),v=a.get(e);if(p&&v)return p==e&&v==t;var d=!0;a.set(t,e),a.set(e,t);for(var y=c;++l<f;){var b=t[h=u[l]],x=e[h];if(o)var g=c?o(x,b,h,e,t,a):o(b,x,h,t,e,a);if(!(void 0===g?b===x||s(b,x,n,o,a):g)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var m=t.constructor,O=e.constructor;m==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof O&&O instanceof O||(d=!1)}return a.delete(t),a.delete(e),d}},function(t,e,n){var r=n(76),i=n(13);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},function(t,e,n){var r=n(74),i=n(170),o=n(171),s=n(32),a=n(76),c=n(77),u=n(24);t.exports=function(t,e){return s(t)&&a(e)?c(u(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},function(t,e,n){var r=n(49);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=n(172),i=n(54);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(174),i=n(175),o=n(32),s=n(24);t.exports=function(t){return o(t)?r(s(t)):i(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(49);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(45),i=n(177);t.exports=function t(e,n,o,s,a){var c=-1,u=e.length;for(o||(o=i),a||(a=[]);++c<u;){var f=e[c];n>0&&o(f)?n>1?t(f,n-1,o,s,a):r(a,f):s||(a[a.length]=f)}return a}},function(t,e,n){var r=n(12),i=n(23),o=n(1),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},function(t,e,n){var r=n(36),i=n(49),o=n(48),s=n(179),a=n(184),c=n(27),u=n(185),f=n(14),l=n(1);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return l(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[f];var h=-1;e=r(e,c(o));var p=s(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++h,value:t}}));return a(p,(function(t,e){return u(t,e,n)}))}},function(t,e,n){var r=n(180),i=n(9);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},function(t,e,n){var r=n(181),i=n(183)(r);t.exports=i},function(t,e,n){var r=n(79),i=n(13);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++i];if(!1===n(o[c],c,o))break}return e}}},function(t,e,n){var r=n(9);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(186);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,c=n.length;++i<a;){var u=r(o[i],s[i]);if(u)return i>=c?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(6);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,c=null===e,u=e==e,f=r(e);if(!c&&!f&&!s&&t>e||s&&a&&u&&!c&&!f||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!f&&t<e||f&&n&&o&&!i&&!s||c&&n&&o||!a&&o||!u)return-1}return 0}},function(t,e,n){var r=n(80),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),c=Array(a);++s<a;)c[s]=o[e+s];s=-1;for(var u=Array(e+1);++s<e;)u[s]=o[s];return u[e]=n(c),r(t,this,u)}}},function(t,e,n){var r=n(189),i=n(191)(r);t.exports=i},function(t,e,n){var r=n(190),i=n(61),o=n(14),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(82),i=n(2);t.exports=function t(e,n,o,s,a,c){return i(e)&&i(n)&&(c.set(n,e),r(e,n,void 0,t,c),c.delete(n)),e}},function(t,e,n){var r=n(83),i=n(64),o=n(71),s=n(65),a=n(72),c=n(23),u=n(1),f=n(194),l=n(26),h=n(34),p=n(2),v=n(195),d=n(41),y=n(84),b=n(196);t.exports=function(t,e,n,x,g,m,O){var A=y(t,n),j=y(e,n),S=O.get(j);if(S)r(t,n,S);else{var _=m?m(A,j,n+"",t,e,O):void 0,C=void 0===_;if(C){var E=u(j),k=!E&&l(j),w=!E&&!k&&d(j);_=j,E||k||w?u(A)?_=A:f(A)?_=s(A):k?(C=!1,_=i(j,!0)):w?(C=!1,_=o(j,!0)):_=[]:v(j)||c(j)?(_=A,c(A)?_=b(A):p(A)&&!h(A)||(_=a(j))):C=!1}C&&(O.set(j,_),g(_,j,x,m,O),O.delete(j)),r(t,n,_)}}},function(t,e,n){var r=n(9),i=n(4);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){var r=n(7),i=n(46),o=n(4),s=Function.prototype,a=Object.prototype,c=s.toString,u=a.hasOwnProperty,f=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(t,e,n){var r=n(16),i=n(17);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(50),i=n(81);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,s)}return e}))}},function(t,e,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],c=e.base?o[0]+e.base:o[0],u=n[c]||0,f="".concat(c," ").concat(u);n[c]=u+1;var l=a(f),h={css:o[1],media:o[2],sourceMap:o[3]};-1!==l?(s[l].references++,s[l].updater(h)):s.push({identifier:f,updater:y(h,e),references:1}),r.push(f)}return r}function u(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var s=o(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var f,l=(f=[],function(t,e){return f[t]=e,f.filter(Boolean).join("\n")});function h(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=l(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function p(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var v=null,d=0;function y(t,e){var n,r,i;if(e.singleton){var o=d++;n=v||(v=u(e)),r=h.bind(null,n,o,!1),i=h.bind(null,n,o,!0)}else n=u(e),r=p.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=a(n[r]);s[i].references--}for(var o=c(t,e),u=0;u<n.length;u++){var f=a(n[u]);0===s[f].references&&(s[f].updater(),s.splice(f,1))}n=o}}}},function(t,e,n){(e=n(200)(!1)).push([t.i,".grid path {\n stroke-width: 0;\n}\n\n.grid line {\n stroke: lightgrey;\n stroke-opacity: 0.7;\n shape-rendering: crispEdges;\n}\n",""]),t.exports=e},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(s=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var s,a,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},function(t,e,n){var r=n(202),i=n(203),o=n(204);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(7),i=n(1),o=n(4);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},function(t,e,n){var r=n(207);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(85);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(209),i=n(13);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,e,n){var r=n(36);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,n){var r=n(212),i=n(59);t.exports=function(t,e){return function(n,o){var s;if(void 0===n&&void 0===o)return e;if(void 0!==n&&(s=n),void 0!==o){if(void 0===s)return o;"string"==typeof n||"string"==typeof o?(n=i(n),o=i(o)):(n=r(n),o=r(o)),s=t(n,o)}return s}}},function(t,e,n){var r=n(6);t.exports=function(t){return"number"==typeof t?t:r(t)?NaN:+t}},function(t,e,n){var r=n(3);t.exports=function(){return r.Date.now()}},function(t,e,n){"use strict";n.r(e),n.d(e,"ChartwerkPod",(function(){return rt})),n.d(e,"VueChartwerkPodMixin",(function(){return y})),n.d(e,"TickOrientation",(function(){return r})),n.d(e,"TimeFormat",(function(){return i})),n.d(e,"BrushOrientation",(function(){return o})),n.d(e,"PanOrientation",(function(){return s})),n.d(e,"AxisFormat",(function(){return u})),n.d(e,"yAxisOrientation",(function(){return p})),n.d(e,"CrosshairOrientation",(function(){return f})),n.d(e,"ScrollPanOrientation",(function(){return a})),n.d(e,"ScrollPanDirection",(function(){return c})),n.d(e,"KeyEvent",(function(){return l})),n.d(e,"palette",(function(){return N}));var r,i,o,s,a,c,u,f,l,h,p,v=n(0),d=n.n(v),y={props:{id:{type:String,required:!0},series:{type:Array,required:!1,default:function(){return[]}},options:{type:Object,required:!1,default:function(){return{}}}},watch:{id:function(){this.renderChart()},series:function(){this.renderChart()},options:function(){this.renderChart()}},mounted:function(){this.renderChart()},destroyed:function(){this.pod.removeEventListeners(),this.pod=void 0},methods:{render:function(){},renderSharedCrosshair:function(t){},hideSharedCrosshair:function(){},onPanningRescale:function(t){this.pod.rescaleMetricAndAxis(t)},renderChart:function(){this.appendEvents(),this.render()},appendEvents:function(){void 0===this.options.eventsCallbacks&&(this.options.eventsCallbacks={}),d()(this.$listeners,"zoomIn")&&(this.options.eventsCallbacks.zoomIn=this.zoomIn.bind(this)),d()(this.$listeners,"zoomOut")&&(this.options.eventsCallbacks.zoomOut=this.zoomOut.bind(this)),d()(this.$listeners,"mouseMove")&&(this.options.eventsCallbacks.mouseMove=this.mouseMove.bind(this)),d()(this.$listeners,"mouseOut")&&(this.options.eventsCallbacks.mouseOut=this.mouseOut.bind(this)),d()(this.$listeners,"onLegendClick")&&(this.options.eventsCallbacks.onLegendClick=this.onLegendClick.bind(this)),d()(this.$listeners,"panningEnd")&&(this.options.eventsCallbacks.panningEnd=this.panningEnd.bind(this)),d()(this.$listeners,"panning")&&(this.options.eventsCallbacks.panning=this.panning.bind(this)),d()(this.$listeners,"contextMenu")&&(this.options.eventsCallbacks.contextMenu=this.contextMenu.bind(this)),d()(this.$listeners,"sharedCrosshairMove")&&(this.options.eventsCallbacks.sharedCrosshairMove=this.sharedCrosshairMove.bind(this)),d()(this.$listeners,"renderStart")&&(this.options.eventsCallbacks.renderStart=this.renderStart.bind(this)),d()(this.$listeners,"renderEnd")&&(this.options.eventsCallbacks.renderEnd=this.renderEnd.bind(this))},zoomIn:function(t){this.$emit("zoomIn",t)},zoomOut:function(t){this.$emit("zoomOut",t)},mouseMove:function(t){this.$emit("mouseMove",t)},mouseOut:function(){this.$emit("mouseOut")},onLegendClick:function(t){this.$emit("onLegendClick",t)},panningEnd:function(t){this.$emit("panningEnd",t)},panning:function(t){this.$emit("panning",t)},contextMenu:function(t){this.$emit("contextMenu",t)},sharedCrosshairMove:function(t){this.$emit("sharedCrosshairMove",t)},renderStart:function(){this.$emit("renderStart")},renderEnd:function(){this.$emit("renderEnd")}}};!function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.DIAGONAL="diagonal"}(r||(r={})),function(t){t.SECOND="second",t.MINUTE="minute",t.HOUR="hour",t.DAY="day",t.MONTH="month",t.YEAR="year"}(i||(i={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.RECTANGLE="rectangle",t.SQUARE="square"}(o||(o={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.BOTH="both"}(s||(s={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal"}(a||(a={})),function(t){t.FORWARD="forward",t.BACKWARD="backward",t.BOTH="both"}(c||(c={})),function(t){t.TIME="time",t.NUMERIC="numeric",t.STRING="string",t.CUSTOM="custom"}(u||(u={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.BOTH="both"}(f||(f={})),function(t){t.MAIN="main",t.SHIFT="shift"}(l||(l={})),function(t){t.TOP="top",t.BOTTOM="bottom",t.BOTH="both"}(h||(h={})),function(t){t.LEFT="left",t.RIGHT="right",t.BOTH="both"}(p||(p={}));var b=n(10),x=n.n(b),g=n(11),m=n.n(g),O=n(30),A=n.n(O),j=n(5),S=n.n(j),_=n(31),C=n.n(_),E=n(52),k=n.n(E),w=n(53),T=n.n(w),R=[0,1],M={x:0,y:0,k:1},F=function(){function t(t,e,n,r){this._d3=t,this.boxParams=e,this.series=n,this.options=r,this._transform=x()(M),this.setInitialRanges(),this.initScales()}return t.prototype.setInitialRanges=function(){this._xValueRange=[this.getMinValueX(),this.getMaxValueX()],this._yValueRange=[this.getMinValueY(),this.getMaxValueY()],this._y1ValueRange=[this.getMinValueY1(),this.getMaxValueY1()]},t.prototype.initScales=function(){this.setXScale(),this.setYScale(),this.setY1Scale()},t.prototype.setYScale=function(){var t=this._yValueRange;t=k()(t),!0===this.options.axis.y.invert&&(t=T()(t)),this._yScale=this._d3.scaleLinear().domain(t).range([this.boxParams.height,0])},t.prototype.setXScale=function(){var t=this._xValueRange;this._xScale=this._d3.scaleLinear().domain(t).range([0,this.boxParams.width])},t.prototype.setY1Scale=function(){var t=this._y1ValueRange;t=k()(t),!0===this.options.axis.y1.invert&&(t=T()(t)),this._y1Scale=this._d3.scaleLinear().domain(t).range([this.boxParams.height,0])},t.prototype.clearState=function(){this.setInitialRanges(),this.initScales(),this._transform={x:0,y:0,k:1}},Object.defineProperty(t.prototype,"yScale",{get:function(){return this._yScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xScale",{get:function(){return this._xScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1Scale",{get:function(){return this._y1Scale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xValueRange",{get:function(){return this._xValueRange},set:function(t){this._xValueRange=t,this.setXScale()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yValueRange",{get:function(){return this._yValueRange},set:function(t){this._yValueRange=t,this.setYScale()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1ValueRange",{get:function(){return this._y1ValueRange},set:function(t){this._y1ValueRange=t,this.setY1Scale()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transform",{get:function(){return this._transform},set:function(t){this._transform.x=void 0!==t.x?t.x:this._transform.x,this._transform.y=void 0!==t.y?t.y:this._transform.y,this._transform.k=void 0!==t.k?t.k:this._transform.k},enumerable:!1,configurable:!0}),t.prototype.getMinValueY=function(){var t=this;return this.isSeriesUnavailable?R[0]:void 0!==this.options.axis.y&&void 0!==this.options.axis.y.range?m()(this.options.axis.y.range):m()(this.series.filter((function(e){return!1!==e.visible&&t.filterSerieByYAxisOrientation(e,p.LEFT)})).map((function(t){return A()(t.datapoints,(function(t){return t[1]}))[1]})))},t.prototype.getMaxValueY=function(){var t=this;return this.isSeriesUnavailable?R[1]:void 0!==this.options.axis.y&&void 0!==this.options.axis.y.range?S()(this.options.axis.y.range):S()(this.series.filter((function(e){return!1!==e.visible&&t.filterSerieByYAxisOrientation(e,p.LEFT)})).map((function(t){return C()(t.datapoints,(function(t){return t[1]}))[1]})))},t.prototype.getMinValueX=function(){return this.isSeriesUnavailable?R[0]:void 0!==this.options.axis.x&&void 0!==this.options.axis.x.range?m()(this.options.axis.x.range):m()(this.series.filter((function(t){return!1!==t.visible})).map((function(t){return A()(t.datapoints,(function(t){return t[0]}))[0]})))},t.prototype.getMaxValueX=function(){return this.isSeriesUnavailable?R[1]:void 0!==this.options.axis.x&&void 0!==this.options.axis.x.range?S()(this.options.axis.x.range):S()(this.series.filter((function(t){return!1!==t.visible})).map((function(t){return C()(t.datapoints,(function(t){return t[0]}))[0]})))},t.prototype.getMinValueY1=function(){var t=this;return this.isSeriesUnavailable||void 0===this.options.axis.y1||!1===this.options.axis.y1.isActive?R[0]:void 0!==this.options.axis.y1.range?m()(this.options.axis.y1.range):m()(this.series.filter((function(e){return!1!==e.visible&&t.filterSerieByYAxisOrientation(e,p.RIGHT)})).map((function(t){return A()(t.datapoints,(function(t){return t[1]}))[1]})))},t.prototype.getMaxValueY1=function(){var t=this;return this.isSeriesUnavailable||void 0===this.options.axis.y1||!1===this.options.axis.y1.isActive?R[1]:void 0!==this.options.axis.y1&&void 0!==this.options.axis.y1.range?S()(this.options.axis.y1.range):S()(this.series.filter((function(e){return!1!==e.visible&&t.filterSerieByYAxisOrientation(e,p.RIGHT)})).map((function(t){return C()(t.datapoints,(function(t){return t[1]}))[1]})))},Object.defineProperty(t.prototype,"isSeriesUnavailable",{get:function(){return void 0===this.series||0===this.series.length||0===S()(this.series.map((function(t){return t.datapoints.length})))},enumerable:!1,configurable:!0}),t.prototype.filterSerieByYAxisOrientation=function(t,e){return void 0===t.yOrientation||t.yOrientation===p.BOTH||t.yOrientation===e},t}(),I=n(18),P=n.n(I),z={x:{enabled:!0,ticksCount:5},y:{enabled:!0,ticksCount:5}},L=function(){function t(t,e,n,r){this._d3=t,this._svgEl=e,this._svgElParams=n,this.gridOptions=this.setOptionDefaults(r)}return t.prototype.setOptionDefaults=function(t){return P()(t,z)},t.prototype.render=function(){this._svgEl.selectAll(".grid").remove(),this.renderGridLinesX(),this.renderGridLinesY(),this.updateStylesOfTicks()},t.prototype.renderGridLinesX=function(){this.gridOptions.x.enabled&&this._svgEl.append("g").attr("transform","translate(0,"+this._svgElParams.height+")").attr("class","grid x-grid").style("pointer-events","none").call(this._d3.axisBottom(this._svgElParams.xScale).ticks(this.gridOptions.x.ticksCount).tickSize(-this._svgElParams.height).tickFormat((function(){return""})))},t.prototype.renderGridLinesY=function(){this.gridOptions.y.enabled&&this._svgEl.append("g").attr("class","grid y-grid").style("pointer-events","none").call(this._d3.axisLeft(this._svgElParams.yScale).ticks(this.gridOptions.y.ticksCount).tickSize(-this._svgElParams.width).tickFormat((function(){return""})))},t.prototype.updateStylesOfTicks=function(){this._svgEl.selectAll(".grid").selectAll(".tick").attr("opacity","0.5"),this._svgEl.selectAll(".grid").select(".domain").style("pointer-events","none")},t}(),B=n(86),V=n.n(B);var N=["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"],Y=n(87),D=n.n(Y),U=n(88),H=n.n(U),$=n(89),X=n.n($),G=n(51),Z=n.n(G),W=n(90),K=n.n(W),q=n(91),Q=n.n(q),J=n(92),tt=n.n(J),et={top:30,right:20,bottom:20,left:30},nt={confidence:0,timeInterval:{timeFormat:i.MINUTE},tickFormat:{xAxis:"%H:%M",xTickOrientation:r.HORIZONTAL},zoomEvents:{mouse:{zoom:{isActive:!0,keyEvent:l.MAIN,orientation:o.HORIZONTAL},pan:{isActive:!0,keyEvent:l.SHIFT,orientation:s.HORIZONTAL},doubleClick:{isActive:!0,keyEvent:l.MAIN}},scroll:{zoom:{isActive:!0,keyEvent:l.MAIN,orientation:s.BOTH},pan:{isActive:!1,keyEvent:l.SHIFT,panStep:50,orientation:a.HORIZONTAL,direction:c.BOTH}}},axis:{x:{isActive:!0,ticksCount:4,format:u.TIME},y:{isActive:!0,ticksCount:4,format:u.NUMERIC},y1:{isActive:!1,ticksCount:4,format:u.NUMERIC}},crosshair:{orientation:f.VERTICAL,color:"red"},renderTicksfromTimestamps:!1,renderLegend:!0},rt=function(){function t(t,e,n,r){void 0===n&&(n=[]),this.el=e,this.isPanning=!1,this.isBrushing=!1,this.brushStartSelection=null,this.yAxisTicksColors=[],this._clipPathUID="",this.deltaYTransform=0,this.debouncedRender=tt()(this.render.bind(this),100),V.a.use();var i=x()(r);P()(i,nt),this.options=i,this.series=x()(n),this.d3=t,this.d3Node=this.d3.select(this.el),this.addEventListeners(),this.createSvg(),this.initPodState(),this.initComponents()}return t.prototype.addEventListeners=function(){window.addEventListener("resize",this.debouncedRender)},t.prototype.removeEventListeners=function(){window.removeEventListener("resize",this.debouncedRender)},t.prototype.render=function(){d()(this.options.eventsCallbacks,"renderStart")&&this.options.eventsCallbacks.renderStart(),this.renderClipPath(),this.addEvents(),this.renderAxes(),this.renderGrid(),this.renderCrosshair(),this.renderMetricsContainer(),this.renderMetrics(),this.renderLegend(),this.renderYLabel(),this.renderXLabel(),d()(this.options.eventsCallbacks,"renderEnd")&&this.options.eventsCallbacks.renderEnd()},t.prototype.updateData=function(t,e,n){void 0===n&&(n=!0),this.updateSeries(t),this.updateOptions(e),n&&this.forceRerender()},t.prototype.forceRerender=function(){this.createSvg(),this.initPodState(),this.initComponents(),this.render()},t.prototype.updateOptions=function(t){if(void 0!==t){var e=x()(t);P()(e,nt),this.options=e}},t.prototype.updateSeries=function(t){if(void 0!==t){var e=x()(t);this.series=e}},t.prototype.initPodState=function(){var t={height:this.height,width:this.width};this.state=new F(this.d3,t,this.series,this.options)},t.prototype.initComponents=function(){var t={height:this.height,width:this.width,xScale:this.state.xScale,yScale:this.state.yScale};this.grid=new L(this.d3,this.chartContainer,t,this.options.grid)},t.prototype.renderMetricsContainer=function(){this.chartContainer.select(".metrics-container").remove();var t=this.chartContainer.append("g").attr("clip-path","url(#"+this.rectClipId+")").attr("class","metrics-container");this.metricContainer=t.append("g").attr("class","metrics-rect")},t.prototype.createSvg=function(){this.d3Node.select("svg").remove(),this.svg=this.d3Node.append("svg").style("width","100%").style("height","100%").style("backface-visibility","hidden"),this.chartContainer=this.svg.append("g").attr("transform","translate("+this.margin.left+","+this.margin.top+")")},t.prototype.renderGrid=function(){this.grid.render()},t.prototype.renderAxes=function(){this.renderXAxis(),this.renderYAxis(),this.renderY1Axis()},t.prototype.renderXAxis=function(){!1!==this.options.axis.x.isActive&&(this.chartContainer.select("#x-axis-container").remove(),this.xAxisElement=this.chartContainer.append("g").attr("transform","translate(0,"+this.height+")").attr("id","x-axis-container").style("pointer-events","none").call(this.d3.axisBottom(this.xScale).ticks(this.options.axis.x.ticksCount).tickSize(2).tickFormat(this.getAxisTicksFormatter(this.options.axis.x))),this.chartContainer.select("#x-axis-container").selectAll(".tick").selectAll("text").style("transform",this.xTickTransform))},t.prototype.renderYAxis=function(){var t=this;if(!1!==this.options.axis.y.isActive){this.chartContainer.select("#y-axis-container").remove(),this.yAxisTicksColors=[],this.yAxisElement=this.chartContainer.append("g").attr("id","y-axis-container").style("pointer-events","none").call(this.d3.axisLeft(this.yScale).ticks(this.options.axis.y.ticksCount).tickSize(2).tickFormat(this.getAxisTicksFormatter(this.options.axis.y)));var e=this.yAxisElement.selectAll(".tick").select("text").nodes();this.yAxisTicksColors.map((function(n,r){void 0!==e&&void 0!==e[r]&&t.d3.select(e[r]).attr("color",n)}))}},t.prototype.renderY1Axis=function(){!1!==this.options.axis.y1.isActive&&(this.chartContainer.select("#y1-axis-container").remove(),this.y1AxisElement=this.chartContainer.append("g").attr("id","y1-axis-container").attr("transform","translate("+this.width+",0)").style("pointer-events","none").call(this.d3.axisRight(this.y1Scale).ticks(4).tickSize(2).tickFormat(this.getAxisTicksFormatter(this.options.axis.y1))))},t.prototype.renderCrosshair=function(){this.chartContainer.select("#crosshair-container").remove(),this.crosshair=this.chartContainer.append("g").attr("id","crosshair-container").style("display","none"),this.options.crosshair.orientation!==f.VERTICAL&&this.options.crosshair.orientation!==f.BOTH||this.crosshair.append("line").attr("class","crosshair-line").attr("id","crosshair-line-x").attr("fill",this.options.crosshair.color).attr("stroke",this.options.crosshair.color).attr("stroke-width","1px").attr("y1",0).attr("y2",this.height).style("pointer-events","none"),this.options.crosshair.orientation!==f.HORIZONTAL&&this.options.crosshair.orientation!==f.BOTH||this.crosshair.append("line").attr("class","crosshair-line").attr("id","crosshair-line-y").attr("fill",this.options.crosshair.color).attr("stroke",this.options.crosshair.color).attr("stroke-width","1px").attr("x1",0).attr("x2",this.width).style("pointer-events","none")},t.prototype.addEvents=function(){var t=this.options.zoomEvents.mouse.pan.keyEvent;!0===this.options.zoomEvents.mouse.pan.isActive&&t===l.MAIN?(this.initPan(),this.initBrush()):(this.initBrush(),this.initPan()),this.chartContainer.on("mouseover",this.onMouseOver.bind(this)).on("mouseout",this.onMouseOut.bind(this)).on("mousemove",this.onMouseMove.bind(this)).on("dblclick.zoom",this.zoomOut.bind(this))},t.prototype.initBrush=function(){if(!1!==this.options.zoomEvents.mouse.zoom.isActive){switch(this.options.zoomEvents.mouse.zoom.orientation){case o.VERTICAL:this.brush=this.d3.brushY();break;case o.HORIZONTAL:this.brush=this.d3.brushX();break;case o.SQUARE:case o.RECTANGLE:this.brush=this.d3.brush();break;default:this.brush=this.d3.brushX()}var t=this.options.zoomEvents.mouse.zoom.keyEvent;this.brush.extent([[0,0],[this.width,this.height]]).handleSize(20).filter(this.filterByKeyEvent(t)).on("start",this.onBrushStart.bind(this)).on("brush",this.onBrush.bind(this)).on("end",this.onBrushEnd.bind(this)),this.chartContainer.call(this.brush)}},t.prototype.filterByKeyEvent=function(t){var e=this;switch(t){case l.MAIN:return function(){return!e.d3.event.shiftKey};case l.SHIFT:return function(){return e.d3.event.shiftKey};default:throw new Error("Unknown type of KeyEvent: "+t)}},t.prototype.isD3EventKeyEqualOption=function(t,e){return!(!t||!t.sourceEvent)&&t.sourceEvent.shiftKey===(e===l.SHIFT)},t.prototype.initPan=function(){!1===this.options.zoomEvents.mouse.pan.isActive&&!1===this.options.zoomEvents.scroll.pan.isActive&&!1===this.options.zoomEvents.scroll.zoom.isActive||(!1===this.options.zoomEvents.mouse.zoom.isActive&&(this.customOverlay=this.chartContainer.append("rect").attr("class","custom-overlay").attr("width",this.width).attr("height",this.height).attr("x",0).attr("y",0).attr("pointer-events","all").attr("cursor","crosshair").attr("fill","none")),this.initScaleX=this.xScale.copy(),this.initScaleY=this.yScale.copy(),!0===this.options.axis.y1.isActive&&(this.initScaleY1=this.y1Scale.copy()),this.pan=this.d3.zoom().on("zoom",this.onPanning.bind(this)).on("end",this.onPanningEnd.bind(this)),this.chartContainer.call(this.pan))},t.prototype.renderClipPath=function(){this.clipPath=this.chartContainer.append("defs").append("SVG:clipPath").attr("id",this.rectClipId).append("SVG:rect").attr("width",this.width).attr("height",this.height).attr("x",0).attr("y",0)},t.prototype.renderLegend=function(){var t=this;if(!1!==this.options.renderLegend&&this.series.length>0)for(var e=this.chartContainer.append("g").attr("class","legend-row"),n=function(n){if(D()(r.seriesTargetsWithBounds,r.series[n].target))return"continue";var i=0;null!==e.selectAll("text").node()&&(i=e.node().getBBox().width+25);var o=!1!==r.series[n].visible;e.append("foreignObject").attr("x",i).attr("y",r.legendRowPositionY-12).attr("width",13).attr("height",15).html("<form><input type=checkbox "+(o?"checked":"")+" /></form>").on("click",(function(){void 0!==t.options.eventsCallbacks&&void 0!==t.options.eventsCallbacks.onLegendClick&&t.options.eventsCallbacks.onLegendClick(n)})),e.append("text").attr("x",i+20).attr("y",r.legendRowPositionY).attr("class","metric-legend-"+n).style("font-size","12px").style("fill",r.getSerieColor(n)).text(r.series[n].target).on("click",(function(){void 0!==t.options.eventsCallbacks&&void 0!==t.options.eventsCallbacks.onLegendLabelClick&&t.options.eventsCallbacks.onLegendLabelClick(n)}))},r=this,i=0;i<this.series.length;i++)n(i)},t.prototype.renderYLabel=function(){void 0!==this.options.labelFormat&&void 0!==this.options.labelFormat.yAxis&&this.chartContainer.append("text").attr("y",0-this.margin.left).attr("x",0-this.height/2).attr("dy","1em").attr("class","y-axis-label").attr("transform","rotate(-90)").style("text-anchor","middle").style("font-size","14px").style("fill","currentColor").text(this.options.labelFormat.yAxis)},t.prototype.renderXLabel=function(){if(void 0!==this.options.labelFormat&&void 0!==this.options.labelFormat.xAxis){var t=this.height+this.margin.top+this.margin.bottom-35;0===this.series.length&&(t+=20),this.chartContainer.append("text").attr("class","x-axis-label").attr("x",this.width/2).attr("y",t).style("text-anchor","middle").style("font-size","14px").style("fill","currentColor").text(this.options.labelFormat.xAxis)}},t.prototype.renderNoDataPointsMessage=function(){this.chartContainer.append("text").attr("class","alert-text").attr("x",this.width/2).attr("y",this.height/2).style("text-anchor","middle").style("font-size","14px").style("fill","currentColor").text("No data points")},t.prototype.disableScrollForward=function(t){return t.sourceEvent.wheelDelta>0&&this.options.zoomEvents.scroll.pan.direction===c.FORWARD},t.prototype.disableScrollBackward=function(t){return t.sourceEvent.wheelDelta<0&&this.options.zoomEvents.scroll.pan.direction===c.BACKWARD},t.prototype.onPanning=function(){var t=this.d3.event;null!==t.sourceEvent&&void 0!==t.sourceEvent&&("wheel"===t.sourceEvent.type&&(this.disableScrollBackward(t)||this.disableScrollForward(t))||(this.rescaleMetricAndAxis(t),void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.panning?this.options.eventsCallbacks.panning({ranges:[this.state.xValueRange,this.state.yValueRange,this.state.y1ValueRange],d3Event:t}):console.log("on panning, but there is no callback")))},t.prototype.rescaleMetricAndAxis=function(t){this.isPanning=!0,this.onMouseOut(),this.onPanningRescale(t),this.renderYAxis(),this.renderXAxis(),this.chartContainer.select(".metrics-rect").attr("transform","translate("+this.state.transform.x+","+this.state.transform.y+"), scale("+this.state.transform.k+")")},t.prototype.onPanningRescale=function(t){var e=t.sourceEvent.type,n=this.options.zoomEvents.scroll.pan,r=this.options.zoomEvents.scroll.zoom;if("wheel"!==e){var i=this.options.zoomEvents.mouse.pan.orientation;i!==s.HORIZONTAL&&i!==s.BOTH||this.rescaleAxisX(t.transform.x),i!==s.VERTICAL&&i!==s.BOTH||this.rescaleAxisY(t.transform.y)}else{if(!0===n.isActive&&this.isD3EventKeyEqualOption(t,n.keyEvent))return void this.onScrollPanningRescale(t);if(!0===r.isActive&&this.isD3EventKeyEqualOption(t,r.keyEvent)){var o=r.orientation,a=void 0;switch(o){case s.HORIZONTAL:a=t.transform.k+",1",this.rescaleAxisX(t.transform.x);break;case s.VERTICAL:a="1,"+t.transform.k,this.rescaleAxisY(t.transform.y);break;case s.BOTH:a=t.transform.k,this.rescaleAxisX(t.transform.x),this.rescaleAxisY(t.transform.y);break;default:throw new Error("Unknown type of PanOrientation: "+o)}return void(this.state.transform.k=a)}}},t.prototype.rescaleAxisX=function(t){this.state.transform={x:t};var e=this.d3.event.transform.rescaleX(this.initScaleX);this.xAxisElement.call(this.d3.axisBottom(this.xScale).scale(e)),this.state.xValueRange=[e.invert(0),e.invert(this.width)]},t.prototype.rescaleAxisY=function(t){this.state.transform={y:t};var e=this.d3.event.transform.rescaleY(this.initScaleY);if(this.yAxisElement.call(this.d3.axisLeft(this.yScale).scale(e)),this.state.yValueRange=[e.invert(0),e.invert(this.height)],this.y1AxisElement){var n=this.d3.event.transform.rescaleY(this.initScaleY1);this.y1AxisElement.call(this.d3.axisLeft(this.y1Scale).scale(n)),this.state.y1ValueRange=[n.invert(0),n.invert(this.height)],this.y1AxisElement.selectAll("line").attr("x2",2),this.y1AxisElement.selectAll("text").attr("x",5)}},t.prototype.onScrollPanningRescale=function(t){var e=this.options.zoomEvents.scroll.pan,n=e.panStep,r=e.orientation;switch(r){case a.HORIZONTAL:var i=Math.sign(t.transform.x),o=this.absXScale.invert(Math.abs(n)),s=this.state.xValueRange;this.state.xValueRange=[s[0]+i*o,s[1]+i*o];var c=this.state.transform.x+i*n;this.state.transform={x:c};break;case a.VERTICAL:var u=Math.sign(t.transform.y);!0===this.options.axis.y.invert&&(u=-u);var f=this.state.yValueRange,l=this.absYScale.invert(n);if(this.deltaYTransform=this.deltaYTransform+n,this.deltaYTransform>.9*this.height)return;this.state.yValueRange=[f[0]-u*l,f[1]-u*l];var h=this.state.transform.y+u*n;this.state.transform={y:h};break;default:throw new Error("Unknown type of scroll pan orientation: "+r)}},t.prototype.onPanningEnd=function(){this.isPanning=!1,this.deltaYTransform=0,this.onMouseOut(),void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.panningEnd?this.options.eventsCallbacks.panningEnd([this.state.xValueRange,this.state.yValueRange,this.state.y1ValueRange]):console.log("on panning end, but there is no callback")},t.prototype.onBrush=function(){var t=this.d3.event.selection;if(this.options.zoomEvents.mouse.zoom.orientation===o.SQUARE&&null!==t){var e=this.getSelectionAttrs(t);void 0!==e&&this.chartContainer.select(".selection").attr("x",e.x).attr("y",e.y).attr("width",e.width).attr("height",e.height)}},t.prototype.getSelectionAttrs=function(t){if(null!==this.brushStartSelection&&null!=t){var e=this.brushStartSelection[0],n=this.brushStartSelection[1],r=t[0][0],i=t[1][0],o=t[0][1],s=i-r,a=t[1][1]-o,c=Math.min(s,a);return{x:r===e?e:e-c,y:o===n?n:n-c,width:c,height:c}}},t.prototype.onBrushStart=function(){this.isBrushing;var t=this.d3.event.selection;null!==t&&t.length>0&&(this.brushStartSelection=this.d3.event.selection[0]),this.onMouseOut()},t.prototype.onBrushEnd=function(){var t=this.d3.event.selection;if(this.isBrushing,!(null==t||t.length<2)){var e,n;switch(this.chartContainer.call(this.brush.move,null),this.options.zoomEvents.mouse.zoom.orientation){case o.HORIZONTAL:var r=this.xScale.invert(t[0]),i=this.xScale.invert(t[1]);if(Math.abs(i-r)<this.timeInterval)return;e=[r,i],this.state.xValueRange=e;break;case o.VERTICAL:n=[this.yScale.invert(t[0]),this.yScale.invert(t[1])],this.state.yValueRange=n;break;case o.RECTANGLE:e=[this.xScale.invert(t[0][0]),this.xScale.invert(t[1][0])],n=[this.yScale.invert(t[0][1]),this.yScale.invert(t[1][1])],this.state.xValueRange=e,this.state.yValueRange=n;break;case o.SQUARE:var s=this.getSelectionAttrs(t);if(void 0===s)break;e=[this.xScale.invert(s.x),this.xScale.invert(s.x+s.width)],n=[this.yScale.invert(s.y),this.yScale.invert(s.y+s.height)],this.state.xValueRange=e,this.state.yValueRange=n,this.brushStartSelection=null}void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.zoomIn?this.options.eventsCallbacks.zoomIn([e,n]):console.log("zoom in, but there is no callback")}},t.prototype.zoomOut=function(){if(!0!==this.isOutOfChart()){var t={x:this.xScale.invert(this.width/2),y:this.yScale.invert(this.height/2)};void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.zoomOut?this.options.eventsCallbacks.zoomOut(t):console.log("zoom out, but there is no callback")}},Object.defineProperty(t.prototype,"absXScale",{get:function(){var t=[0,Math.abs(this.state.getMaxValueX()-this.state.getMinValueX())];return this.d3.scaleLinear().domain(t).range([0,this.width])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"absYScale",{get:function(){var t=[0,Math.abs(this.state.getMaxValueY()-this.state.getMinValueY())];return this.d3.scaleLinear().domain(t).range([0,this.height])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xScale",{get:function(){return this.state.xScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yScale",{get:function(){return this.state.yScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1Scale",{get:function(){return this.state.y1Scale},enumerable:!1,configurable:!0}),t.prototype.getd3TimeRangeEvery=function(t){if(void 0===this.options.timeInterval||void 0===this.options.timeInterval.timeFormat)return this.d3.timeMinute.every(t);switch(this.options.timeInterval.timeFormat){case i.SECOND:return this.d3.utcSecond.every(t);case i.MINUTE:return this.d3.utcMinute.every(t);case i.HOUR:return this.d3.utcHour.every(t);case i.DAY:return this.d3.utcDay.every(t);case i.MONTH:return this.d3.utcMonth.every(t);case i.YEAR:return this.d3.utcYear.every(t);default:return this.d3.utcMinute.every(t)}},Object.defineProperty(t.prototype,"serieTimestampRange",{get:function(){if(0!==this.series.length){var t=H()(this.series[0].datapoints)[0];return(X()(this.series[0].datapoints)[0]-t)/1e3}},enumerable:!1,configurable:!0}),t.prototype.getAxisTicksFormatter=function(t){var e=this;if(0===t.ticksCount)return function(t){return""};switch(t.format){case u.TIME:return this.d3.timeFormat("%m/%d %H:%M");case u.NUMERIC:return function(t){return t};case u.STRING:throw new Error("Not supported AxisFormat type "+t.format+" yet");case u.CUSTOM:return void 0===t.valueFormatter?(console.warn("Value formatter for axis is not defined. Path options.axis.{?}.valueFormatter"),function(t){return t}):function(n,r){return void 0!==t.colorFormatter&&e.yAxisTicksColors.push(t.colorFormatter(n,r)),t.valueFormatter(n,r)};default:throw new Error("Unknown time format for axis: "+t.format)}},Object.defineProperty(t.prototype,"timeInterval",{get:function(){return void 0!==this.series&&this.series.length>0&&this.series[0].datapoints.length>1?this.series[0].datapoints[1][0]-this.series[0].datapoints[0][0]:void 0!==this.options.timeInterval&&void 0!==this.options.timeInterval.count?6e4*this.options.timeInterval.count:6e4},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xTickTransform",{get:function(){if(void 0===this.options.tickFormat||void 0===this.options.tickFormat.xTickOrientation)return"";switch(this.options.tickFormat.xTickOrientation){case r.VERTICAL:return"translate(-10px, 50px) rotate(-90deg)";case r.HORIZONTAL:return"";case r.DIAGONAL:return"translate(-30px, 30px) rotate(-45deg)";default:return""}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extraMargin",{get:function(){var t={top:0,right:0,bottom:0,left:0};if(void 0!==this.options.tickFormat&&void 0!==this.options.tickFormat.xTickOrientation)switch(this.options.tickFormat.xTickOrientation){case r.VERTICAL:t.bottom+=80;break;case r.HORIZONTAL:break;case r.DIAGONAL:t.left+=15,t.bottom+=50,t.right+=10}return void 0!==this.options.labelFormat&&(void 0!==this.options.labelFormat.xAxis&&this.options.labelFormat.xAxis.length>0&&(t.bottom+=20),void 0!==this.options.labelFormat.yAxis&&this.options.labelFormat.yAxis.length>0&&(t.left+=20)),this.series.length>0&&(t.bottom+=25),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.d3Node.node().clientWidth-this.margin.left-this.margin.right},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.d3Node.node().clientHeight-this.margin.top-this.margin.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"legendRowPositionY",{get:function(){return this.height+this.margin.bottom-5},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"margin",{get:function(){return void 0!==this.options.margin?this.options.margin:Z()({},et,this.extraMargin,K.a)},enumerable:!1,configurable:!0}),t.prototype.formattedBound=function(t,e){return Q()(t,"$__metric_name",e)},t.prototype.clearState=function(){this.state.clearState()},t.prototype.getSerieColor=function(t){if(void 0===this.series[t])throw new Error("Can't get color for unexisting serie: "+t+", there are only "+this.series.length+" series");var e=this.series[t].color;return void 0===e&&(e=N[t%N.length]),e},Object.defineProperty(t.prototype,"seriesTargetsWithBounds",{get:function(){var t=this;if(void 0===this.options.bounds||void 0===this.options.bounds.upper||void 0===this.options.bounds.lower)return[];var e=[];return this.series.forEach((function(n){e.push(t.formattedBound(t.options.bounds.upper,n.target)),e.push(t.formattedBound(t.options.bounds.lower,n.target))})),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleSeries",{get:function(){return this.series.filter((function(t){return!1!==t.visible}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rectClipId",{get:function(){return 0===this._clipPathUID.length&&(this._clipPathUID=Math.random().toString(36).substr(2,12)),this._clipPathUID},enumerable:!1,configurable:!0}),t.prototype.isOutOfChart=function(){var t=this.d3.mouse(this.chartContainer.node()),e=t[0],n=t[1];return n>this.height+1||n<-1||e>this.width||e<0},t}()}])}));