/*! * tui-chart-all.min * @fileoverview tui-chart * @author NHN. FE Development Lab * @version 3.11.3 * @license MIT * @link https://github.com/nhn/tui.chart * bundle created at "Fri Jan 29 2021 15:50:33 GMT+0900 (Korean Standard Time)" */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.chart=e():(t.tui=t.tui||{},t.tui.chart=e())}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="/dist/",e(0)}([function(t,e,i){t.exports=i(2)},,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}i(3),i(53),i(58),i(62),i(65),i(68),i(83),i(86),i(92),i(96),i(118),i(121),i(126),i(129);var r=i(133),o=n(r);t.exports=o["default"]},function(t,e,i){var n=i(4);t.exports=n},function(t,e,i){i(5);var n=i(39),r=n.Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,i){var n=i(6),r=i(9),o=i(49);n({target:"Object",stat:!0,sham:!r},{create:o})},function(t,e,i){var n=i(7),r=i(8).f,o=i(22),a=i(25),s=i(26),u=i(36),l=i(48);t.exports=function(t,e){var i,h,c,p,d,f,g=t.target,m=t.global,y=t.stat;if(h=m?n:y?n[g]||s(g,{}):(n[g]||{}).prototype)for(c in e){if(d=e[c],t.noTargetGet?(f=r(h,c),p=f&&f.value):p=h[c],i=l(m?c:g+(y?".":"#")+c,t.forced),!i&&void 0!==p){if(typeof d==typeof p)continue;u(d,p)}(t.sham||p&&p.sham)&&o(d,"sham",!0),a(h,c,d,t)}}},function(t,e){(function(e){var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||Function("return this")()}).call(e,function(){return this}())},function(t,e,i){var n=i(9),r=i(11),o=i(12),a=i(13),s=i(17),u=i(19),l=i(20),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=a(t),e=s(e,!0),l)try{return h(t,e)}catch(i){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,i){var n=i(10);t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(14),r=i(16);t.exports=function(t){return n(r(t))}},function(t,e,i){var n=i(10),r=i(15),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(18);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var n=i(9),r=i(10),o=i(21);t.exports=!n&&!r(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(7),r=i(18),o=n.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,i){var n=i(9),r=i(23),o=i(12);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(9),r=i(20),o=i(24),a=i(17),s=Object.defineProperty;e.f=n?s:function(t,e,i){if(o(t),e=a(e,!0),o(i),r)try{return s(t,e,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(18);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,i){var n=i(7),r=i(22),o=i(19),a=i(26),s=i(27),u=i(29),l=u.get,h=u.enforce,c=String(String).split("String");(t.exports=function(t,e,i,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;return"function"==typeof i&&("string"!=typeof e||o(i,"name")||r(i,"name",e),h(i).source=c.join("string"==typeof e?e:"")),t===n?void(l?t[e]=i:a(e,i)):(u?!p&&t[e]&&(l=!0):delete t[e],void(l?t[e]=i:r(t,e,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||s(this)})},function(t,e,i){var n=i(7),r=i(22);t.exports=function(t,e){try{r(n,t,e)}catch(i){n[t]=e}return e}},function(t,e,i){var n=i(28),r=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return r.call(t)}),t.exports=n.inspectSource},function(t,e,i){var n=i(7),r=i(26),o="__core-js_shared__",a=n[o]||r(o,{});t.exports=a},function(t,e,i){var n,r,o,a=i(30),s=i(7),u=i(18),l=i(22),h=i(19),c=i(31),p=i(35),d=s.WeakMap,f=function(t){return o(t)?r(t):n(t,{})},g=function(t){return function(e){var i;if(!u(e)||(i=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}};if(a){var m=new d,y=m.get,_=m.has,v=m.set;n=function(t,e){return v.call(m,t,e),e},r=function(t){return y.call(m,t)||{}},o=function(t){return _.call(m,t)}}else{var x=c("state");p[x]=!0,n=function(t,e){return l(t,x,e),e},r=function(t){return h(t,x)?t[x]:{}},o=function(t){return h(t,x)}}t.exports={set:n,get:r,has:o,enforce:f,getterFor:g}},function(t,e,i){var n=i(7),r=i(27),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(r(o))},function(t,e,i){var n=i(32),r=i(34),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,i){var n=i(33),r=i(28);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++i+n).toString(36)}},function(t,e){t.exports={}},function(t,e,i){var n=i(19),r=i(37),o=i(8),a=i(23);t.exports=function(t,e){for(var i=r(e),s=a.f,u=o.f,l=0;lu;)n(s,i=e[u++])&&(~o(l,i)||l.push(i));return l}},function(t,e,i){var n=i(13),r=i(43),o=i(45),a=function(t){return function(e,i,a){var s,u=n(e),l=r(u.length),h=o(a,l);if(t&&i!=i){for(;l>h;)if(s=u[h++],s!=s)return!0}else for(;l>h;h++)if((t||h in u)&&u[h]===i)return t||h||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,i){var n=i(44),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(44),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(10),r=/#|\.prototype\./,o=function(t,e){var i=s[a(t)];return i==l||i!=u&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,i){var n,r=i(24),o=i(50),a=i(46),s=i(35),u=i(52),l=i(21),h=i(31),c=">",p="<",d="prototype",f="script",g=h("IE_PROTO"),m=function(){},y=function(t){return p+f+c+t+p+"/"+f+c},_=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=l("iframe"),i="java"+f+":";return e.style.display="none",u.appendChild(e),e.src=String(i),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},x=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=n?_(n):v();for(var e=a.length;e--;)delete x[d][a[e]];return x()};s[g]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(m[d]=r(t),i=new m,m[d]=null,i[g]=t):i=x(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(9),r=i(23),o=i(24),a=i(51);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var i,n=a(e),s=n.length,u=0;s>u;)r.f(t,i=n[u++],e[i]);return t}},function(t,e,i){var n=i(41),r=i(46);t.exports=Object.keys||function(t){return n(t,r)}},function(t,e,i){var n=i(38);t.exports=n("document","documentElement")},function(t,e,i){var n=i(54);t.exports=n},function(t,e,i){i(55);var n=i(39);t.exports=n.Object.assign},function(t,e,i){var n=i(6),r=i(56);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(t,e,i){"use strict";var n=i(9),r=i(10),o=i(51),a=i(47),s=i(11),u=i(57),l=i(14),h=Object.assign,c=Object.defineProperty;t.exports=!h||r(function(){if(n&&1!==h({b:1},h(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||o(h({},e)).join("")!=r})?function(t,e){for(var i=u(t),r=arguments.length,h=1,c=a.f,p=s.f;r>h;)for(var d,f=l(arguments[h++]),g=c?o(f).concat(c(f)):o(f),m=g.length,y=0;m>y;)d=g[y++],n&&!p.call(f,d)||(i[d]=f[d]);return i}:h},function(t,e,i){var n=i(16);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(59);t.exports=n},function(t,e,i){i(60);var n=i(39);t.exports=n.Object.entries},function(t,e,i){var n=i(6),r=i(61).entries;n({target:"Object",stat:!0},{entries:function(t){return r(t)}})},function(t,e,i){var n=i(9),r=i(51),o=i(13),a=i(11).f,s=function(t){return function(e){for(var i,s=o(e),u=r(s),l=u.length,h=0,c=[];l>h;)i=u[h++],n&&!a.call(s,i)||c.push(t?[i,s[i]]:s[i]);return c}};t.exports={entries:s(!0),values:s(!1)}},function(t,e,i){var n=i(63);t.exports=n},function(t,e,i){i(64);var n=i(39);t.exports=n.Object.values},function(t,e,i){var n=i(6),r=i(61).values;n({target:"Object",stat:!0},{values:function(t){return r(t)}})},function(t,e,i){var n=i(66);t.exports=n},function(t,e,i){i(67);var n=i(39);t.exports=n.Object.keys},function(t,e,i){var n=i(6),r=i(57),o=i(51),a=i(10),s=a(function(){o(1)});n({target:"Object",stat:!0,forced:s},{keys:function(t){return o(r(t))}})},function(t,e,i){var n=i(69);t.exports=n},function(t,e,i){i(70);var n=i(82);t.exports=n("Array","forEach")},function(t,e,i){"use strict";var n=i(6),r=i(71);n({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(t,e,i){"use strict";var n=i(72).forEach,r=i(80),o=i(81),a=r("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,i){var n=i(73),r=i(14),o=i(57),a=i(43),s=i(75),u=[].push,l=function(t){var e=1==t,i=2==t,l=3==t,h=4==t,c=6==t,p=5==t||c;return function(d,f,g,m){for(var y,_,v=o(d),x=r(v),T=n(f,g,3),b=a(x.length),A=0,E=m||s,D=e?E(d,b):i?E(d,0):void 0;b>A;A++)if((p||A in x)&&(y=x[A],_=T(y,A,v),t))if(e)D[A]=_;else if(_)switch(t){case 3:return!0;case 5:return y;case 6:return A;case 2:u.call(D,y)}else if(h)return!1;return c?-1:l||h?h:D}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(t,e,i){var n=i(74);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,i){var n=i(18),r=i(76),o=i(77),a=o("species");t.exports=function(t,e){var i;return r(t)&&(i=t.constructor,"function"!=typeof i||i!==Array&&!r(i.prototype)?n(i)&&(i=i[a],null===i&&(i=void 0)):i=void 0),new(void 0===i?Array:i)(0===e?0:e)}},function(t,e,i){var n=i(15);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(7),r=i(32),o=i(19),a=i(34),s=i(78),u=i(79),l=r("wks"),h=n.Symbol,c=u?h:h&&h.withoutSetter||a;t.exports=function(t){return o(l,t)||(s&&o(h,t)?l[t]=h[t]:l[t]=c("Symbol."+t)),l[t]}},function(t,e,i){var n=i(10);t.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(t,e,i){var n=i(78);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,i){"use strict";var n=i(10);t.exports=function(t,e){var i=[][t];return!!i&&n(function(){i.call(null,e||function(){throw 1},1)})}},function(t,e,i){var n=i(9),r=i(10),o=i(19),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var i=[][t],l=!!o(e,"ACCESSORS")&&e.ACCESSORS,h=o(e,0)?e[0]:u,c=o(e,1)?e[1]:void 0;return s[t]=!!i&&!r(function(){if(l&&!n)return!0;var t={length:-1};l?a(t,1,{enumerable:!0,get:u}):t[1]=1,i.call(t,h,c)})}},function(t,e,i){var n=i(7),r=i(73),o=Function.call;t.exports=function(t,e,i){return r(o,n[t].prototype[e],i)}},function(t,e,i){var n=i(84);t.exports=n},function(t,e,i){i(85);var n=i(39);t.exports=n.Array.isArray},function(t,e,i){var n=i(6),r=i(76);n({target:"Array",stat:!0},{isArray:r})},function(t,e,i){var n=i(87);t.exports=n},function(t,e,i){i(88);var n=i(82);t.exports=n("Array","filter")},function(t,e,i){"use strict";var n=i(6),r=i(72).filter,o=i(89),a=i(81),s=o("filter"),u=a("filter");n({target:"Array",proto:!0,forced:!s||!u},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(10),r=i(77),o=i(90),a=r("species");t.exports=function(t){return o>=51||!n(function(){var e=[],i=e.constructor={};return i[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,i){var n,r,o=i(7),a=i(91),s=o.process,u=s&&s.versions,l=u&&u.v8;l?(n=l.split("."),r=n[0]+n[1]):a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(r=n[1]))),t.exports=r&&+r},function(t,e,i){var n=i(38);t.exports=n("navigator","userAgent")||""},function(t,e,i){var n=i(93);t.exports=n},function(t,e,i){i(94);var n=i(82);t.exports=n("Array","reduce")},function(t,e,i){"use strict";var n=i(6),r=i(95).left,o=i(80),a=i(81),s=o("reduce"),u=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!s||!u},{reduce:function(t){return r(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(74),r=i(57),o=i(14),a=i(43),s=function(t){return function(e,i,s,u){n(i);var l=r(e),h=o(l),c=a(l.length),p=t?c-1:0,d=t?-1:1;if(s<2)for(;;){if(p in h){u=h[p],p+=d;break}if(p+=d,t?p<0:c<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:c>p;p+=d)p in h&&(u=i(u,h[p],p,l));return u}};t.exports={left:s(!1),right:s(!0)}},function(t,e,i){var n=i(97);t.exports=n},function(t,e,i){i(98),i(109);var n=i(39);t.exports=n.Array.from},function(t,e,i){"use strict";var n=i(99).charAt,r=i(29),o=i(100),a="String Iterator",s=r.set,u=r.getterFor(a);o(String,"String",function(t){s(this,{type:a,string:String(t),index:0})},function(){var t,e=u(this),i=e.string,r=e.index;return r>=i.length?{value:void 0,done:!0}:(t=n(i,r),e.index+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(44),r=i(16),o=function(t){return function(e,i){var o,a,s=String(r(e)),u=n(i),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,i){"use strict";var n=i(6),r=i(101),o=i(103),a=i(107),s=i(105),u=i(22),l=i(25),h=i(77),c=i(33),p=i(106),d=i(102),f=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=h("iterator"),y="keys",_="values",v="entries",x=function(){return this};t.exports=function(t,e,i,h,d,T,b){r(i,e,h);var A,E,D,C=function(t){if(t===d&&P)return P;if(!g&&t in L)return L[t];switch(t){case y:return function(){return new i(this,t)};case _:return function(){return new i(this,t)};case v:return function(){return new i(this,t)}}return function(){return new i(this)}},S=e+" Iterator",w=!1,L=t.prototype,M=L[m]||L["@@iterator"]||d&&L[d],P=!g&&M||C(d),k="Array"==e?L.entries||M:M;if(k&&(A=o(k.call(new t)),f!==Object.prototype&&A.next&&(c||o(A)===f||(a?a(A,f):"function"!=typeof A[m]&&u(A,m,x)),s(A,S,!0,!0),c&&(p[S]=x))),d==_&&M&&M.name!==_&&(w=!0,P=function(){return M.call(this)}),c&&!b||L[m]===P||u(L,m,P),p[e]=P,d)if(E={values:C(_),keys:T?P:C(y),entries:C(v)},b)for(D in E)!g&&!w&&D in L||l(L,D,E[D]);else n({target:e,proto:!0,forced:g||w},E);return E}},function(t,e,i){"use strict";var n=i(102).IteratorPrototype,r=i(49),o=i(12),a=i(105),s=i(106),u=function(){return this};t.exports=function(t,e,i){var l=e+" Iterator";return t.prototype=r(n,{next:o(1,i)}),a(t,l,!1,!0),s[l]=u,t}},function(t,e,i){"use strict";var n,r,o,a=i(103),s=i(22),u=i(19),l=i(77),h=i(33),c=l("iterator"),p=!1,d=function(){return this};[].keys&&(o=[].keys(),"next"in o?(r=a(a(o)),r!==Object.prototype&&(n=r)):p=!0),void 0==n&&(n={}),h||u(n,c)||s(n,c,d),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},function(t,e,i){var n=i(19),r=i(57),o=i(31),a=i(104),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=r(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,i){var n=i(10);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,i){var n=i(23).f,r=i(19),o=i(77),a=o("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,a)&&n(t,a,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,i){var n=i(24),r=i(108);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(i,[]),e=i instanceof Array}catch(o){}return function(i,o){return n(i),r(o),e?t.call(i,o):i.__proto__=o,i}}():void 0)},function(t,e,i){var n=i(18);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,i){var n=i(6),r=i(110),o=i(117),a=!o(function(t){Array.from(t)});n({target:"Array",stat:!0,forced:a},{from:r})},function(t,e,i){"use strict";var n=i(73),r=i(57),o=i(111),a=i(112),s=i(43),u=i(113),l=i(114);t.exports=function(t){var e,i,h,c,p,d,f=r(t),g="function"==typeof this?this:Array,m=arguments.length,y=m>1?arguments[1]:void 0,_=void 0!==y,v=l(f),x=0;if(_&&(y=n(y,m>2?arguments[2]:void 0,2)),void 0==v||g==Array&&a(v))for(e=s(f.length),i=new g(e);e>x;x++)d=_?y(f[x],x):f[x],u(i,x,d);else for(c=v.call(f),p=c.next,i=new g;!(h=p.call(c)).done;x++)d=_?o(c,y,[h.value,x],!0):h.value,u(i,x,d);return i.length=x,i}},function(t,e,i){var n=i(24);t.exports=function(t,e,i,r){try{return r?e(n(i)[0],i[1]):e(i)}catch(o){var a=t["return"];throw void 0!==a&&n(a.call(t)),o}}},function(t,e,i){var n=i(77),r=i(106),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,i){"use strict";var n=i(17),r=i(23),o=i(12);t.exports=function(t,e,i){var a=n(e);a in t?r.f(t,a,o(0,i)):t[a]=i}},function(t,e,i){var n=i(115),r=i(106),o=i(77),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||r[n(t)]}},function(t,e,i){var n=i(116),r=i(15),o=i(77),a=o("toStringTag"),s="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(i){}};t.exports=n?r:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=u(e=Object(t),a))?i:s?r(e):"Object"==(n=r(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,i){var n=i(77),r=n("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},function(t,e,i){var n=i(77),r=n("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},"return":function(){o=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var n={};n[r]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(a){}return i}},function(t,e,i){var n=i(119);t.exports=n},function(t,e,i){i(120);var n=i(82);t.exports=n("Array","map")},function(t,e,i){"use strict";var n=i(6),r=i(72).map,o=i(89),a=i(81),s=o("map"),u=a("map");n({target:"Array",proto:!0,forced:!s||!u},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(122);t.exports=n},function(t,e,i){i(123);var n=i(82);t.exports=n("Array","fill")},function(t,e,i){var n=i(6),r=i(124),o=i(125);n({target:"Array",proto:!0},{fill:r}),o("fill")},function(t,e,i){"use strict";var n=i(57),r=i(45),o=i(43);t.exports=function(t){for(var e=n(this),i=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,i),u=a>2?arguments[2]:void 0,l=void 0===u?i:r(u,i);l>s;)e[s++]=t;return e}},function(t,e,i){var n=i(77),r=i(49),o=i(23),a=n("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,i){var n=i(127);t.exports=n},function(t,e,i){i(128);var n=i(39);n.JSON||(n.JSON={stringify:JSON.stringify}),t.exports=function(t,e,i){return n.JSON.stringify.apply(null,arguments)}},function(t,e,i){var n=i(6),r=i(38),o=i(10),a=r("JSON","stringify"),s=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,l=/^[\uDC00-\uDFFF]$/,h=function(t,e,i){var n=i.charAt(e-1),r=i.charAt(e+1);return u.test(t)&&!l.test(r)||l.test(t)&&!u.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},c=o(function(){return'"\\udf06\\ud834"'!==a("��")||'"\\udead"'!==a("�")});a&&n({target:"JSON",stat:!0,forced:c},{stringify:function(t,e,i){var n=a.apply(null,arguments);return"string"==typeof n?n.replace(s,h):n}})},function(t,e,i){var n=i(130);t.exports=n},function(t,e,i){i(131);var n=i(82);t.exports=n("Function","bind")},function(t,e,i){var n=i(6),r=i(132);n({target:"Function",proto:!0},{bind:r})},function(t,e,i){"use strict";var n=i(74),r=i(18),o=[].slice,a={},s=function(t,e,i){if(!(e in a)){for(var n=[],r=0;r=1e3&&delete s[u.shift()],u.push(a),s[a]=t[w](e,o),i?i(s[a]):s[a])}return r}function o(){return this.hex}function a(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var o=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4==n?o[3]={x:+t[0],y:+t[1]}:r-2==n&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4==n?o[3]=o[2]:n||(o[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return i}function s(t,e,i,n,r){var o=-3*e+9*i-9*n+3*r,a=t*o+6*e-12*i+6*n;return t*a-3*e+3*i}function u(t,e,i,n,r,o,a,u,l){null==l&&(l=1),l=l>1?1:l<0?0:l;for(var h=l/2,c=12,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,g=0;gf;)p/=2,d+=(hG(r,a)||G(e,n)G(o,s))){var u=(t*n-e*i)*(r-a)-(t-i)*(r*s-o*a),l=(t*n-e*i)*(o-s)-(e-n)*(r*s-o*a),h=(t-i)*(o-s)-(e-n)*(r-a);if(h){var c=u/h,p=l/h,d=+c.toFixed(2),f=+p.toFixed(2);if(!(d<+H(t,i).toFixed(2)||d>+G(t,i).toFixed(2)||d<+H(r,a).toFixed(2)||d>+G(r,a).toFixed(2)||f<+H(e,n).toFixed(2)||f>+G(e,n).toFixed(2)||f<+H(o,s).toFixed(2)||f>+G(o,s).toFixed(2)))return{x:c,y:p}}}}function c(t,i,n){var r=e.bezierBBox(t),o=e.bezierBBox(i);if(!e.isBBoxIntersect(r,o))return n?0:[];for(var a=u.apply(0,t),s=u.apply(0,i),l=G(~~(a/5),1),c=G(~~(s/5),1),p=[],d=[],f={},g=n?0:[],m=0;m=0&&C<=1.001&&S>=0&&S<=1.001&&(n?g++:g.push({x:D.x,y:D.y,t1:H(C,1),t2:H(S,1)}))}}return g}function p(t,i,n){t=e._path2curve(t),i=e._path2curve(i);for(var r,o,a,s,u,l,h,p,d,f,g=n?0:[],m=0,y=t.length;mn)return n;for(;io?i=r:n=r,r=(n-i)/2+i}return r}var l=3*e,h=3*(n-e)-l,c=1-l-h,p=3*i,d=3*(r-i)-p,f=1-p-d;return s(t,1/(200*o))}function m(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var r in t)t[E](r)&&(n[Q(r)]=t[r],i.push(Q(r)));i.sort(ht)}this.anim=n,this.top=i[i.length-1],this.percents=i}function y(i,n,r,o,a,s){r=Q(r);var u,l,h,c,p,f,m=i.ms,y={},_={},v={};if(o)for(b=0,A=oe.length;bo*i.top){ r=i.percents[b],p=i.percents[b-1]||0,m=m/i.top*(r-p),c=i.percents[b+1],u=i.anim[r];break}o&&n.attr(i.anim[i.percents[b]])}if(u){if(l)l.initstatus=o,l.start=new Date-l.ms*o;else{for(var D in u)if(u[E](D)&&(it[E](D)||n.paper.customAttributes[E](D)))switch(y[D]=n.attr(D),null==y[D]&&(y[D]=et[D]),_[D]=u[D],it[D]){case W:v[D]=(_[D]-y[D])/m;break;case"colour":y[D]=e.getRGB(y[D]);var C=e.getRGB(_[D]);v[D]={r:(C.r-y[D].r)/m,g:(C.g-y[D].g)/m,b:(C.b-y[D].b)/m};break;case"path":var S=Rt(y[D],_[D]),w=S[1];for(y[D]=S[0],v[D]=[],b=0,A=y[D].length;b',mt=yt.firstChild,mt.style.behavior="url(#default#VML)",!mt||"object"!=typeof mt.adj)return e.type=P;yt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=S,e.fn=x=S.prototype=e.prototype,e._id=0,e._oid=0,e.is=function(t,e){return e=N.call(e),"finite"==e?!q[E](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||X.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,i,n,r,o,a){if(null==o){var s=t-n,u=i-r;return s||u?(180+180*F.atan2(-u,-s)/z+360)%360:0}return e.angle(t,i,o,a)-e.angle(n,r,o,a)},e.rad=function(t){return t%360*z/180},e.deg=function(t){return Math.round(180*t/z%360*1e3)/1e3},e.snapTo=function(t,i,n){if(n=e.is(n,"finite")?n:10,e.is(t,U)){for(var r=t.length;r--;)if(V(t[r]-i)<=n)return t[r]}else{t=+t;var o=i%t;if(ot-n)return i-o+t}return i};e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*F.random()|0,i="x"==t?e:3&e|8;return i.toString(16)});e.setWindow=function(i){t("raphael.setWindow",e,D.win,i),D.win=i,D.doc=D.win.document,e._engine.initWin&&e._engine.initWin(D.win)};var _t=function(t){if(e.vml){var i,n=/^\s+|\s+$/g;try{var o=new ActiveXObject("htmlfile");o.write(""),o.close(),i=o.body}catch(a){i=createPopup().document.body}var s=i.createTextRange();_t=r(function(t){try{i.style.color=O(t).replace(n,P);var e=s.queryCommandValue("ForeColor");return e=(255&e)<<16|65280&e|(16711680&e)>>>16,"#"+("000000"+e.toString(16)).slice(-6)}catch(r){return"none"}})}else{var u=D.doc.createElement("i");u.title="Raphaël Colour Picker",u.style.display="none",D.doc.body.appendChild(u),_t=r(function(t){return u.style.color=t,D.doc.defaultView.getComputedStyle(u,P).getPropertyValue("color")})}return _t(t)},vt=function(){return"hsb("+[this.h,this.s,this.b]+")"},xt=function(){return"hsl("+[this.h,this.s,this.l]+")"},Tt=function(){return this.hex},bt=function(t,i,n){if(null==i&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,i=t.g,t=t.r),null==i&&e.is(t,Y)){var r=e.getRGB(t);t=r.r,i=r.g,n=r.b}return(t>1||i>1||n>1)&&(t/=255,i/=255,n/=255),[t,i,n]},At=function(t,i,n,r){t*=255,i*=255,n*=255;var o={r:t,g:i,b:n,hex:e.rgb(t,i,n),toString:Tt};return e.is(r,"finite")&&(o.opacity=r),o};e.color=function(t){var i;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(i=e.hsb2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(i=e.hsl2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(i=e.rgb2hsl(t),t.h=i.h,t.s=i.s,t.l=i.l,i=e.rgb2hsb(t),t.v=i.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.toString=Tt,t},e.hsb2rgb=function(t,e,i,n){this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=t.o,t=t.h),t*=360;var r,o,a,s,u;return t=t%360/60,u=i*e,s=u*(1-V(t%2-1)),r=o=a=i-u,t=~~t,r+=[u,s,0,0,s,u][t],o+=[s,u,u,s,0,0][t],a+=[0,0,s,u,u,s][t],At(r,o,a,n)},e.hsl2rgb=function(t,e,i,n){this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),t*=360;var r,o,a,s,u;return t=t%360/60,u=2*e*(i<.5?i:1-i),s=u*(1-V(t%2-1)),r=o=a=i-u/2,t=~~t,r+=[u,s,0,0,s,u][t],o+=[s,u,u,s,0,0][t],a+=[0,0,s,u,u,s][t],At(r,o,a,n)},e.rgb2hsb=function(t,e,i){i=bt(t,e,i),t=i[0],e=i[1],i=i[2];var n,r,o,a;return o=G(t,e,i),a=o-H(t,e,i),n=0==a?null:o==t?(e-i)/a:o==e?(i-t)/a+2:(t-e)/a+4,n=(n+360)%6*60/360,r=0==a?0:a/o,{h:n,s:r,b:o,toString:vt}},e.rgb2hsl=function(t,e,i){i=bt(t,e,i),t=i[0],e=i[1],i=i[2];var n,r,o,a,s,u;return a=G(t,e,i),s=H(t,e,i),u=a-s,n=0==u?null:a==t?(e-i)/u:a==e?(i-t)/u+2:(t-e)/u+4,n=(n+360)%6*60/360,o=(a+s)/2,r=0==u?0:o<.5?u/(2*o):u/(2-2*o),{h:n,s:r,l:o,toString:xt}},e._path2string=function(){return this.join(",").replace(ot,"$1")};e._preload=function(t,e){var i=D.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,D.doc.body.removeChild(this)},i.onerror=function(){D.doc.body.removeChild(this)},D.doc.body.appendChild(i),i.src=t};e.getRGB=r(function(t){if(!t||(t=O(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:o};!(rt[E](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=_t(t));var i,n,r,a,s,u,l=t.match(Z);return l?(l[2]&&(r=$(l[2].substring(5),16),n=$(l[2].substring(3,5),16),i=$(l[2].substring(1,3),16)),l[3]&&(r=$((s=l[3].charAt(3))+s,16),n=$((s=l[3].charAt(2))+s,16),i=$((s=l[3].charAt(1))+s,16)),l[4]&&(u=l[4][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100)),l[5]?(u=l[5][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(i/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),e.hsb2rgb(i,n,r,a)):l[6]?(u=l[6][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(i/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),e.hsl2rgb(i,n,r,a)):(l={r:i,g:n,b:r,toString:o},l.hex="#"+(16777216|r|n<<8|i<<16).toString(16).slice(1),e.is(a,"finite")&&(l.opacity=a),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o}},e),e.hsb=r(function(t,i,n){return e.hsb2rgb(t,i,n).hex}),e.hsl=r(function(t,i,n){return e.hsl2rgb(t,i,n).hex}),e.rgb=r(function(t,e,i){function n(t){return t+.5|0}return"#"+(16777216|n(i)|n(e)<<8|n(t)<<16).toString(16).slice(1)}),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var i=Et(t);if(i.arr)return Ct(i.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return e.is(t,U)&&e.is(t[0],U)&&(r=Ct(t)),r.length||O(t).replace(at,function(t,e,i){var o=[],a=e.toLowerCase();if(i.replace(ut,function(t,e){e&&o.push(+e)}),"m"==a&&o.length>2&&(r.push([e][L](o.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)r.push([e][L](o));else for(;o.length>=n[a]&&(r.push([e][L](o.splice(0,n[a]))),n[a]););}),r.toString=e._path2string,i.arr=Ct(r),r},e.parseTransformString=r(function(t){if(!t)return null;var i=[];return e.is(t,U)&&e.is(t[0],U)&&(i=Ct(t)),i.length||O(t).replace(st,function(t,e,n){var r=[];N.call(e);n.replace(ut,function(t,e){e&&r.push(+e)}),i.push([e][L](r))}),i.toString=e._path2string,i});var Et=function(t){var e=Et.ps=Et.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var i in e)e[E](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])}),e[t]};e.findDotsAtSegment=function(t,e,i,n,r,o,a,s,u){var l=1-u,h=j(l,3),c=j(l,2),p=u*u,d=p*u,f=h*t+3*c*u*i+3*l*u*u*r+d*a,g=h*e+3*c*u*n+3*l*u*u*o+d*s,m=t+2*u*(i-t)+p*(r-2*i+t),y=e+2*u*(n-e)+p*(o-2*n+e),_=i+2*u*(r-i)+p*(a-2*r+i),v=n+2*u*(o-n)+p*(s-2*o+n),x=l*t+u*i,T=l*e+u*n,b=l*r+u*a,A=l*o+u*s,E=90-180*F.atan2(m-_,y-v)/z;return(m>_||y=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},e.isBBoxIntersect=function(t,i){var n=e.isPointInsideBBox;return n(i,t.x,t.y)||n(i,t.x2,t.y)||n(i,t.x,t.y2)||n(i,t.x2,t.y2)||n(t,i.x,i.y)||n(t,i.x2,i.y)||n(t,i.x,i.y2)||n(t,i.x2,i.y2)||(t.xi.x||i.xt.x)&&(t.yi.y||i.yt.y)},e.pathIntersection=function(t,e){return p(t,e)},e.pathIntersectionNumber=function(t,e){return p(t,e,1)},e.isPointInsidePath=function(t,i,n){var r=e.pathBBox(t);return e.isPointInsideBBox(r,i,n)&&p(t,[["M",i,n],["H",r.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var Dt=e.pathBBox=function(t){var e=Et(t);if(e.bbox)return i(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};t=Rt(t);for(var n,r=0,o=0,a=[],s=[],u=0,l=t.length;u1&&(_=F.sqrt(_),i*=_,n*=_);var v=i*i,x=n*n,T=(a==s?-1:1)*F.sqrt(V((v*x-v*y*y-x*m*m)/(v*y*y+x*m*m))),b=T*i*y/n+(t+u)/2,A=T*-n*m/i+(e+l)/2,E=F.asin(((e-A)/n).toFixed(9)),D=F.asin(((l-A)/n).toFixed(9));E=tD&&(E-=2*z),!s&&D>E&&(D-=2*z)}var C=D-E;if(V(C)>p){var S=D,w=u,M=l;D=E+p*(s&&D>E?1:-1),u=b+i*F.cos(D),l=A+n*F.sin(D),f=Pt(u,l,i,n,o,0,s,w,M,[D,S,b,A])}C=D-E;var P=F.cos(E),k=F.sin(E),O=F.cos(D),I=F.sin(D),B=F.tan(C/4),N=4/3*i*B,G=4/3*n*B,H=[t,e],j=[t+N*k,e-G*P],W=[u+N*I,l-G*O],Y=[u,l];if(j[0]=2*H[0]-j[0],j[1]=2*H[1]-j[1],h)return[j,W,Y][L](f);f=[j,W,Y][L](f).join()[R](",");for(var U=[],X=0,Z=f.length;X"1e12"&&(p=.5),V(d)>"1e12"&&(d=.5),p>0&&p<1&&(u=kt(t,e,i,n,r,o,a,s,p),g.push(u.x),f.push(u.y)),d>0&&d<1&&(u=kt(t,e,i,n,r,o,a,s,d),g.push(u.x),f.push(u.y)),l=o-2*n+e-(s-2*o+n),h=2*(n-e)-2*(o-n),c=e-n,p=(-h+F.sqrt(h*h-4*l*c))/2/l,d=(-h-F.sqrt(h*h-4*l*c))/2/l,V(p)>"1e12"&&(p=.5),V(d)>"1e12"&&(d=.5),p>0&&p<1&&(u=kt(t,e,i,n,r,o,a,s,p),g.push(u.x),f.push(u.y)),d>0&&d<1&&(u=kt(t,e,i,n,r,o,a,s,d),g.push(u.x),f.push(u.y)),{min:{x:H[w](0,g),y:H[w](0,f)},max:{x:G[w](0,g),y:G[w](0,f)}}}),Rt=e._path2curve=r(function(t,e){var i=!e&&Et(t);if(!e&&i.curve)return Ct(i.curve);for(var n=wt(t),r=e&&wt(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=(function(t,e,i){var n,r,o={T:1,Q:1};if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in o)&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][L](Pt[w](0,[e.x,e.y][L](t.slice(1))));break;case"S":"C"==i||"S"==i?(n=2*e.x-e.bx,r=2*e.y-e.by):(n=e.x,r=e.y),t=["C",n,r][L](t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][L](Mt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][L](Mt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][L](Lt(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][L](Lt(e.x,e.y,t[1],e.y));break;case"V":t=["C"][L](Lt(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][L](Lt(e.x,e.y,e.X,e.Y))}return t}),u=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)h[e]="A",r&&(c[e]="A"),t.splice(e++,0,["C"][L](i.splice(0,6)));t.splice(e,1),g=G(n.length,r&&r.length||0)}},l=function(t,e,i,o,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],g=G(n.length,r&&r.length||0))},h=[],c=[],p="",d="",f=0,g=G(n.length,r&&r.length||0);fr){if(i&&!p.start){if(h=$t(a,s,u[1],u[2],u[3],u[4],u[5],u[6],r-d),c+=["C"+h.start.x,h.start.y,h.m.x,h.m.y,h.x,h.y],o)return c;p.start=c,c=["M"+h.x,h.y+"C"+h.n.x,h.n.y,h.end.x,h.end.y,u[5],u[6]].join(),d+=l,a=+u[5],s=+u[6];continue}if(!t&&!i)return h=$t(a,s,u[1],u[2],u[3],u[4],u[5],u[6],r-d),{x:h.x,y:h.y,alpha:h.alpha}}d+=l,a=+u[5],s=+u[6]}c+=u.shift()+u}return p.end=c,h=t?d:i?p:e.findDotsAtSegment(a,s,u[0],u[1],u[2],u[3],u[4],u[5],1),h.alpha&&(h={x:h.x,y:h.y,alpha:h.alpha}),h}},ee=te(1),ie=te(),ne=te(0,1);e.getTotalLength=ee,e.getPointAtLength=ie,e.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return ne(t,e).end;var n=ne(t,i,1);return e?ne(n,e).end:n},qt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():ee(t)},qt.getPointAtLength=function(t){var e=this.getPath();if(e)return ie(e,t)},qt.getPath=function(){var t,i=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return i&&(t=i(this)),t},qt.getSubpath=function(t,i){var n=this.getPath();if(n)return e.getSubpath(n,t,i)};var re=e.easing_formulas={linear:function(t){return t},"<":function(t){return j(t,1.7)},">":function(t){return j(t,.48)},"<>":function(t){var e=.48-t/1.04,i=F.sqrt(.1734+e*e),n=i-e,r=j(V(n),1/3)*(n<0?-1:1),o=-i-e,a=j(V(o),1/3)*(o<0?-1:1),s=r+a+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:j(2,-10*t)*F.sin((t-.075)*(2*z)/.3)+1},bounce:function(t){var e,i=7.5625,n=2.75;return t<1/n?e=i*t*t:t<2/n?(t-=1.5/n,e=i*t*t+.75):t<2.5/n?(t-=2.25/n,e=i*t*t+.9375):(t-=2.625/n,e=i*t*t+.984375),e}};re.easeIn=re["ease-in"]=re["<"],re.easeOut=re["ease-out"]=re[">"],re.easeInOut=re["ease-in-out"]=re["<>"],re["back-in"]=re.backIn,re["back-out"]=re.backOut;var oe=[],ae=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},se=function(){for(var i=+new Date,n=0;n1&&!r.next){for(a in p)p[E](a)&&(g[a]=r.totalOrigin[a]);r.el.attr(g),y(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&y(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}oe.length&&ae(se)},ue=function(t){return t>255?255:t<0?0:t};qt.animateWith=function(t,i,n,r,o,a){var s=this;if(s.removed)return a&&a.call(s),s;var u=n instanceof m?n:e.animation(n,r,o,a);y(u,s,u.percents[0],null,s.attr());for(var l=0,h=oe.length;lu&&(u=h)}u+="%",!t[u].callback&&(t[u].callback=r)}return new m(t,i)},qt.animate=function(t,i,n,r){var o=this;if(o.removed)return r&&r.call(o),o;var a=t instanceof m?t:e.animation(t,i,n,r);return y(a,o,a.percents[0],null,o.attr()),o},qt.setTime=function(t,e){return t&&null!=e&&this.status(t,H(e,t.ms)/t.ms),this},qt.status=function(t,e){var i,n,r=[],o=0;if(null!=e)return y(t,this,-1,H(e,1)),this;for(i=oe.length;o.5)-1;u(p-.5,2)+u(d-.5,2)>.25&&(d=o.sqrt(.25-u(p-.5,2))*r+.5)&&.5!=d&&(d=d.toFixed(5)-1e-5*r)}return c}),r=r.split(/\s*\-\s*/),"linear"==l){var x=r.shift();if(x=-n(x),isNaN(x))return null;var T=[0,0,o.cos(t.rad(x)),o.sin(t.rad(x))],b=1/(a(s(T[2]),s(T[3]))||1);T[2]*=b,T[3]*=b,T[2]<0&&(T[0]=-T[2],T[2]=0),T[3]<0&&(T[1]=-T[3],T[3]=0)}var A=t._parseDots(r);if(!A)return null;if(h=h.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&h!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){_=m(l+"Gradient",{id:h}),e.gradient=_,m(_,"radial"==l?{fx:p,fy:d}:{x1:T[0],y1:T[1],x2:T[2],y2:T[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(_);for(var E=0,D=A.length;E1?O.opacity/100:O.opacity});case"stroke":O=t.getRGB(g),u.setAttribute(f,O.hex),"stroke"==f&&O[e]("opacity")&&m(u,{"stroke-opacity":O.opacity>1?O.opacity/100:O.opacity}),"stroke"==f&&n._.arrows&&("startString"in n._.arrows&&T(n,n._.arrows.startString),"endString"in n._.arrows&&T(n,n._.arrows.endString,1));break;case"gradient":("circle"==n.type||"ellipse"==n.type||"r"!=i(g).charAt())&&y(n,g);break;case"opacity":h.gradient&&!h[e]("stroke-opacity")&&m(u,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(h.gradient){R=t._g.doc.getElementById(u.getAttribute("fill").replace(/^url\(#|\)$/g,c)),R&&(I=R.getElementsByTagName("stop"),m(I[I.length-1],{"stop-opacity":g}));break}default:"font-size"==f&&(g=r(g,10)+"px");var B=f.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});u.style[B]=g,n._.dirty=1,u.setAttribute(f,g)}}C(n,o),u.style.visibility=p},D=1.2,C=function(n,o){if("text"==n.type&&(o[e]("text")||o[e]("font")||o[e]("font-size")||o[e]("x")||o[e]("y"))){var a=n.attrs,s=n.node,u=s.firstChild?r(t._g.doc.defaultView.getComputedStyle(s.firstChild,c).getPropertyValue("font-size"),10):10;if(o[e]("text")){for(a.text=o.text;s.firstChild;)s.removeChild(s.firstChild);for(var l,h=i(o.text).split("\n"),p=[],d=0,f=h.length;d"));var q=U.getBoundingClientRect();_.W=p.w=(q.right-q.left)/X,_.H=p.h=(q.bottom-q.top)/X,_.X=p.x,_.Y=p.y+_.H/2,("x"in u||"y"in u)&&(_.path.v=t.format("m{0},{1}l{2},{1}",o(p.x*x),o(p.y*x),o(p.x*x)+1));for(var K=["x","y","text","font","font-family","font-weight","font-style","font-size"],J=0,Q=K.length;J.25&&(i=r.sqrt(.25-s(e-.5,2))*(2*(i>.5)-1)+.5),l=e+d+i),f}),o=o.split(/\s*\-\s*/),"linear"==u){var h=o.shift();if(h=-n(h),isNaN(h))return null}var c=t._parseDots(o);if(!c)return null;if(e=e.shape||e.node,c.length){e.removeChild(a),a.on=!0,a.method="none",a.color=c[0].color,a.color2=c[c.length-1].color;for(var p=[],g=0,m=c.length;g')}}catch(i){P=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e.container,n=e.height,r=e.width,o=e.x,a=e.y;if(!i)throw new Error("VML container not found.");var s=new t._Paper,u=s.canvas=t._g.doc.createElement("div"),l=u.style;return o=o||0,a=a||0,r=r||512,n=n||342,s.width=r,s.height=n,r==+r&&(r+="px"),n==+n&&(n+="px"),s.coordsize=1e3*x+d+1e3*x,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",u.appendChild(s.span),l.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,n),1==i?(t._g.doc.body.appendChild(u),l.left=o+"px",l.top=a+"px",l.position="absolute"):i.firstChild?i.insertBefore(u,i.firstChild):i.appendChild(u),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=f,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var k=t.st;for(var O in M)M[e](O)&&!k[e](O)&&(k[O]=function(t){return function(){var e=arguments;return this.forEach(function(i){i[t].apply(i,e)})}}(O))}}.apply(e,n),!(void 0!==r&&(t.exports=r))}])})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e=0||i.isRange){var o=Object.assign({},t.leftTop);o.left-="column"===e||n<0?1:0,r=m["default"].makeLinePath(o,t.rightTop).join(" ")}return r},t.prototype._makeRightLinePath=function(t,e,i){var n=null;return("column"===e||i.value>=0||i.isRange)&&(n=m["default"].makeLinePath(t.rightTop,t.rightBottom).join(" ")),n},t.prototype._makeBottomLinePath=function(t,e,i){var n=null;return("bar"===e||i.value<0||i.isRange)&&(n=m["default"].makeLinePath(t.leftBottom,t.rightBottom).join(" ")),n},t.prototype._makeLeftLinePath=function(t,e,i){var n=null;return("column"===e||i.value<0||i.isRange)&&(n=m["default"].makeLinePath(t.leftTop,t.leftBottom).join(" ")),n},t.prototype._makeBorderLinesPaths=function(t,e,i){var n=this._makeRectPoints(t),r={top:this._makeTopLinePath(n,e,i),right:this._makeRightLinePath(n,e,i),bottom:this._makeBottomLinePath(n,e,i),left:this._makeLeftLinePath(n,e,i)};return Object.keys(r).forEach(function(t){r[t]||delete r[t]}),r},t.prototype._renderBorderLines=function(t,e,i,n){var r=this._makeBorderLinesPaths(t,i,n),o={};return Object.entries(r).forEach(function(t){var i=a(t,2),n=i[0],r=i[1];o[n]=m["default"].renderLine(self.paper,r,{color:e,strokeWidth:1})}),o},t.prototype._renderBarBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var n=t.map(function(t,n){return t.map(function(t,r){if(!t)return null;var o=e.seriesDataModel.getSeriesItem(n,r);return e._renderBorderLines(t.start,i,self.chartType,o)})});return n},t.prototype._animateRect=function(t,e,i){t.animate({x:e.width?e.left:e.left-b/2,y:e.height?e.top:e.top-b/2,width:e.width?e.width:b,height:e.height?e.height:b,opacity:e.height&&e.width?1:A},i,">")},t.prototype._animateBorders=function(t,e,i,n){var r=this._makeBorderLinesPaths(e,i,n);(0,f["default"])(t,function(t,e){t.animate({path:r[e]},y,">")})},t.prototype.animate=function(t){var e=this,i=this.groupBorders||[],n=this.options.animationDuration;m["default"].forEach2dArray(this.groupBars,function(t,r,o){var a=i[r]&&i[r][o];t&&(n&&e._animateRect(t.rect,t.bound,n),a&&e._animateBorders(a,t.bound,e.chartType,t.item))}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},n))},t.prototype.showAnimation=function(t){var e=this.groupBars[t.groupIndex][t.index],i=e.bound;this.overlay.attr({width:i.width+T,height:i.height+T,stroke:"#fff","stroke-width":"1",x:i.left-4,y:i.top-4,"fill-opacity":1}),this.resortBarIndex(t.groupIndex),this.overlay.toFront(),e.rect.toFront(),this.labelSet&&this.labelSet.toFront(),this.overlay.node.setAttribute("filter","url(#shadow)")},t.prototype.hideAnimation=function(t){this.resortBarIndex(t.groupIndex),this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0}),this.labelSet&&this.labelSet.toFront()},t.prototype.resortBarIndex=function(t){this.groupBars[t].forEach(function(t){t.rect.toFront()})},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=this,i=this.groupBorders||[],n=t.dimension,r=t.groupBounds;this.groupBounds=r,this.paper.setSize(n.width,n.height),m["default"].forEach2dArray(this.groupBars,function(t,n,o){if(t){var a=i[n]&&i[n][o],s=r[n][o].end;t.bound=s,m["default"].updateRectBound(t.rect,s),a&&e._updateBordersPath(a,s,e.chartType,t.item)}})},t.prototype._changeBordersColor=function(t,e){(0,f["default"])(t,function(t){t.attr({stroke:e})})},t.prototype._changeBarColor=function(t,e,i){var n=this.groupBars[t.groupIndex][t.index];if(n.rect.attr({fill:e}),i){var r=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(r,i)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=u["default"].color(e.color),n=this.theme.selectionColor,r=n||m["default"].makeChangedLuminanceColor(i.hex,x),o=this.theme.borderColor;if(o){var a=u["default"].color(o);o=m["default"].makeChangedLuminanceColor(a.hex,x)}this._changeBarColor(t,r,o)},t.prototype.unselectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBarColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=this.groupBorders||[],i=(0,h["default"])(t);m["default"].forEach2dArray(this.groupBars,function(n,r,o){if(n){var a=e[r]&&e[r][o],s=i||t===o?_:v;n.rect.attr({"fill-opacity":s}),a&&(0,f["default"])(a,function(t){t.attr({"stroke-opacity":s})})}})},t.prototype.renderSeriesLabel=function(t,e,i,n,r){var o=r||"column"===this.chartType?"middle":"start",a={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":o},s=this.labelSet=t.set();return i.forEach(function(i,n){i.forEach(function(i,r){var o=e[n][r],u=m["default"].renderText(t,o.end,i.end,a),l=u.node.style;if(l.userSelect="none",l.cursor="default",s.push(u),o.start){var h=m["default"].renderText(t,o.start,i.start,a);h.node.style.userSelect="none",h.node.style.cursor="default",s.push(h)}})}),s},t.prototype._calculateConnectorPosition=function(t,e){for(var i=[],n="bar"===this.chartType,r=a(t,2),o=r[0],s=r[1],u=a(e,2),l=u[0],h=u[1],c=0;c2&&void 0!==arguments[2]?arguments[2]:1,n=[t.left,t.top],r=[e.left,e.top],o=i%2/2;return n.forEach(function(t,e){t===r[e]&&(n[e]=r[e]=Math.round(t)-o)}),["M"].concat(n,["L"],r)},renderLine:function(t,e,i){var n=i.color,r=i.strokeWidth,o=i.dotted,a=i.connector,s=t.path([e]),u={stroke:n,"stroke-width":(0,c["default"])(r)?2:r,"stroke-linecap":"butt",opacity:a?0:1};return"transparent"===n&&(u.stroke="#fff",u["stroke-opacity"]=0),s.attr(u).node.setAttribute("class","auto-shape-rendering"),o&&s.attr(u).node.setAttribute("class","stroke-dasharray"),s},getEllipsisText:function(t,e,i){for(var n=String(t).split(""),r=n.length,o=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,a="",s=2*o,u=0;u=e){a+="..";break}a+=n[u]}return a},renderText:function(t,e,i,n){var r=t.text(e.left,e.top,(0,d["default"])(String(i)));return n&&(n["dominant-baseline"]?r.node.setAttribute("dominant-baseline",n["dominant-baseline"]):r.node.setAttribute("dominant-baseline","central"),r.attr(n)),r},renderArea:function(t,e,i){var n=t.path(e);return i=Object.assign({"stroke-opacity":0},i),n.attr(i),n},renderCircle:function(t,e,i,n){var r=t.circle(e.left,e.top,i);return n&&r.attr(n),r},renderRect:function(t,e,i){var n=t.rect(e.left,e.top,e.width,e.height);return i&&n.attr(i),n},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&t.forEach(function(t,i){t.forEach(function(t,n){e(t,i,n)})})},makeChangedLuminanceColor:function(t,e){t=t.replace("#",""),e=e||0;var i=(0,s["default"])(3).map(function(i){var n=parseInt(t.substr(2*i,2),16),r=n+n*e;return r=Math.round(Math.min(Math.max(0,r),255)).toString(16),y["default"].formatToZeroFill(r,2)}).join("");return"#"+i},getRenderedTextSize:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:11,i=arguments[2],n=v.canvasElement;return n?this._getTextDimensionWithCanvas(t,e,i):this._getTextDimensionUseHtmlElement(t,e,i)},_getTextDimensionWithCanvas:function(t,e,i){var n=v.canvasElement,r=v.cacheFontInfo,o=n.getContext("2d"),a=e+"px "+i;return r!==a&&(v.cacheFontInfo=a,o.font=a),{width:o.measureText(t).width,height:e*_}},_getTextDimensionUseHtmlElement:function(t,e,i){var n=v.cacheFontInfo,r=v.elementForTextSize;if(!r){r=document.createElement("div");var o=r.style;this._setBasicHtmlElementStyleForGetTextSize(o),document.body.appendChild(r),v.elementForTextSize=r}var a=e+"px "+i;if(n!==a){var s=r.style;s.fontFamily=i,s.fontSize=e+"px",v.cacheFontInfo=a}return r.innerHTML=t,{width:r.clientWidth,height:r.clientHeight}},_setBasicHtmlElementStyleForGetTextSize:function(t){t.visibility="hidden",t.position="absolute",t.margin=0,t.padding=0,t.lineHeight=_,t.whiteSpace="nowrap"},animateOpacity:function(t,e,i,n){var o=r(n)?n:600,a=r(e)?e:0,s=r(i)?i:1,u=g["default"].animation({opacity:s},o);t.attr({opacity:a}),t.animate(u)},getDefaultAnimationDuration:function(t){switch(t){case"boxplot":case"combo":case"pie":case"scatter":case"bubble":case"area":case"line":case"column":case"bar":return 700;case"heatmap":case"treemap":return 600;default:return 0}}}},function(t,e,i){"use strict";function n(t,e,i){var n,o=[];for(r(e)&&(e=t||0,t=0),i=i||1,n=i<0?-1:1,e*=n;t*n","'":"'"," ":" "};return t.replace(/&|<|>|"|'| /g,function(t){return e[t]?e[t]:t})}t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.length?e.join(";"):""},_makeCachingKey:function(t,e,i){var n=[t,i];return(0,x["default"])(e,function(t,e){n.push(t+e)}),n.join("-")},_addCssStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.fontSize,n=e.fontFamily,r=e.fontWeight,o=e.cssText;t.style.fontSize=(i||C["default"].DEFAULT_LABEL_FONT_SIZE)+"px",n&&(t.style.fontFamily=n),r&&(t.style.fontWeight=r),o&&(t.style.cssText+=o)},sizeCache:{},_getRenderedLabelSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(t=String(t),!t)return 0;var n=this._makeCachingKey(t,e,i),r=this.sizeCache[n];if(!r){var o=this._createSizeCheckEl(),a=o.firstChild;a.innerText=t,this._addCssStyle(o,e),document.body.appendChild(o),r=a[i],document.body.removeChild(o),this.sizeCache[n]=r}return r},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=w["default"].create("DIV","tui-chart-size-check-element"),e=w["default"].create("SPAN");t.appendChild(e),this.checkEl=t}return this.checkEl},getRenderedLabelWidth:function(t,e){return this._getRenderedLabelSize(t,e,"offsetWidth")},getRenderedLabelHeight:function(t,e){return this._getRenderedLabelSize(t,e,"offsetHeight")},_getRenderedLabelsMaxSize:function(t,e,i){var n=0;if(t&&t.length){var r=t.map(function(t){return i(t,e)});n=M["default"].max(r)}return n},getRenderedLabelsMaxWidth:function(t,e,i){var n=this.getRenderedLabelWidth.bind(this),r=this._getRenderedLabelsMaxSize(t,e,n);return i?Math.min(i,r):r},getRenderedLabelsMaxHeight:function(t,e){var i=this.getRenderedLabelHeight.bind(this);return this._getRenderedLabelsMaxSize(t,e,i)},renderDimension:function(t,e){var i=e.width,n=void 0===i?0:i,r=e.height,o=void 0===r?0:r;t.style.cssText=[this.concatStr("width:",n,"px"),this.concatStr("height:",o,"px")].join(";")},renderPosition:function(t,e){(0,m["default"])(e)||(0,b["default"])(["top","bottom","left","right"],function(i){var n=e[i];(0,f["default"])(n)&&(t.style[i]=n+"px")})},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,i){if(!t)return null;var n=I.makeFontCssText(e),r=w["default"].create("DIV",i);return r.innerHTML=t,e.background&&(n+=";"+this.concatStr("background:",e.background)),r.style.cssText=n,r},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*C["default"].SERIES_EXPAND_SIZE,height:e.height+2*C["default"].SERIES_EXPAND_SIZE},position:{left:i.left-C["default"].SERIES_EXPAND_SIZE,top:i.top-C["default"].SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,i){return t+this._properCase(e)+this._properCase(i)},formatValue:function(t){var e=t.value,i=t.formatFunctions,n=t.valueType,o=void 0===n?"value":n,a=t.areaType,s=t.legendName,u=t.chartType,l=[String(e)].concat(r(i||[]));return l.reduce(function(t,e){return e(t,u,a,o,s)})},formatValues:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.chartType,r=i.areaType,o=i.valueType;return e&&e.length?t.map(function(t){return I.formatValue({value:t,formatFunctions:e,chartType:n,areaType:r,valueType:o})}):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C["default"].DEFAULT_DATE_FORMAT,i=(0,h["default"])(t)?t:new Date(t);return(0,_["default"])(e,i)||t},formatDates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C["default"].DEFAULT_DATE_FORMAT;return t.map(function(t){return e.formatDate(t,i)})},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,i){function n(){var a=(new Date).getTime()-o,s=Math.min(a/t,1);e(s),1===s?(delete r.id,i&&i()):r.id=requestAnimationFrame(n)}var r={},o=(new Date).getTime();return r.id=requestAnimationFrame(n),r},isOldBrowser:function(){return P},formatToZeroFill:function(t,e){var i="0";if(t=String(t),t.length>=e)return t;for(;t.length-1?"-":"",a="",s=void 0,u=void 0,l=void 0;if(t.indexOf(".")>-1?(s=t.split("."),t=String(Math.abs(s[0])),a="."+s[1]):t=String(Math.abs(t)),t.length<=i)l=n;else{var h;s=t.split("").reverse(),u=s.length-1,s=s.map(function(t,n){var r=[t];return n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i=this._perseString(i),n=this._perseString(n),""!==i||""!==n?t.map(function(t){return e.addPrefixSuffixItem(t,i,n)}):t},addPrefixSuffixItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e=this._perseString(e),i=this._perseString(i),e+t+i},getStyle:function(t){var e=void 0;return e=k?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=O+R;return R+=1,t}};P?(I.makeOpacityCssText=function(t){var e="";if((0,p["default"])(t)){var i=a(t);e=";filter:"+i}return e},I.setOpacity=function(t,e){var i=a(e);o(t,function(t){t.style.filter=i})}):(I.makeOpacityCssText=function(t){var e="";return(0,p["default"])(t)&&(e=";opacity:"+t),e},I.setOpacity=function(t,e){o(t,function(t){t.style.opacity=e})}),e["default"]=I},function(t,e){"use strict";function i(t){return t instanceof Date}t.exports=i},function(t,e){"use strict";function i(t){return"number"==typeof t||t instanceof Number}t.exports=i},function(t,e,i){"use strict";function n(t,e,i){var n,r,o,a;return t=Number(t),e=Number(e),i=Number(i),n=t>-1&&t<100||t>1969&&t<2070,r=e>0&&e<13,!(!n||!r)&&(a=l[e],2===e&&t%4===0&&(t%100===0&&t%400!==0||(a=29)),o=i>0&&i<=a)}function r(t,e,i){var r,u,l,c=o(i,"meridiemSet","AM")||"AM",p=o(i,"meridiemSet","PM")||"PM";return u=a(e)?{year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate(),hour:e.getHours(),minute:e.getMinutes()}:{year:e.year,month:e.month,date:e.date,hour:e.hour,minute:e.minute},!!n(u.year,u.month,u.date)&&(u.meridiem="",/([^\\]|^)[aA]\b/.test(t)&&(r=u.hour>11?p:c,u.hour>12&&(u.hour%=12),0===u.hour&&(u.hour=12),u.meridiem=r),l=t.replace(s,function(t){return t.indexOf("\\")>-1?t.replace(/\\/,""):h[t](u)||""}))}var o=i(152),a=i(149),s=/[\\]*YYYY|[\\]*YY|[\\]*MMMM|[\\]*MMM|[\\]*MM|[\\]*M|[\\]*DD|[\\]*D|[\\]*HH|[\\]*H|[\\]*A/gi,u=["Invalid month","January","February","March","April","May","June","July","August","September","October","November","December"],l=[0,31,28,31,30,31,30,31,31,30,31,30,31],h={M:function(t){return Number(t.month)},MM:function(t){var e=t.month;return Number(e)<10?"0"+e:e},MMM:function(t){return u[Number(t.month)].substr(0,3)},MMMM:function(t){return u[Number(t.month)]},D:function(t){return Number(t.date)},d:function(t){return h.D(t)},DD:function(t){var e=t.date;return Number(e)<10?"0"+e:e},dd:function(t){return h.DD(t)},YY:function(t){return Number(t.year)%100},yy:function(t){return h.YY(t)},YYYY:function(t){var e="20",i=t.year;return i>69&&i<100&&(e="19"),Number(i)<100?e+String(i):i},yyyy:function(t){return h.YYYY(t)},A:function(t){return t.meridiem},a:function(t){return t.meridiem},hh:function(t){var e=t.hour;return Number(e)<10?"0"+e:e},HH:function(t){return h.hh(t)},h:function(t){return String(Number(t.hour))},H:function(t){return h.h(t)},m:function(t){return String(Number(t.minute))},mm:function(t){var e=t.minute;return Number(e)<10?"0"+e:e}};t.exports=r},function(t,e,i){"use strict";function n(t,e){for(var i=arguments,n=i[0],a=1,s=i.length;a1)){n[t]=i=!0,n.version=parseFloat(e[1]||0);break}i||(n.others=!0)}},c=h[r];c&&h[r]()}var n={chrome:!1,firefox:!1,safari:!1,msie:!1,edge:!1,others:!1,version:0};window&&window.navigator&&i(),t.exports=n},function(t,e){"use strict";e.__esModule=!0,e["default"]={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_ZOOM_OUT_BTN:"tui-chart-zoom-out-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CLASS_NAME_CHART_EXPORT_MENU_HEAD:"tui-chart-chartExportMenu-head",CLASS_NAME_CHART_EXPORT_MENU_BODY:"tui-chart-chartExportMenu-body",CLASS_NAME_TOOLTIP_VALUE:"tui-chart-tooltip-value",CLASS_NAME_TOOLTIP_HEAD:"tui-chart-tooltip-head",CLASS_NAME_TOOLTIP_BODY:"tui-chart-tooltip-body",CLASS_NAME_SVG_AUTOSHAPE:"auto-shape-rendering",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_AREA_V_PADDING:10,SERIES_LABEL_PADDING:5,SERIES_EXTRA_EVENT_AREA_FOR_ZERO:2,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ffffff",TREEMAP_DEFAULT_BORDER_WIDTH:4,EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",LEGEND_PAGINATION_BUTTON_WIDTH:20,LEGEND_PAGINATION_BUTTON_PADDING_RIGHT:6,SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,PIE_GRAPH_LEGEND_LABEL_SIZE:16,PIE_GRAPH_LEGEND_LABEL_INTERVAL:20,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},MAP_CHART_ZOOM_AREA_WIDTH:24,MAP_CHART_ZOOM_AREA_HEIGHT:58,DOT_RADIUS:4,SCATTER_RADIUS:7,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,CHART_EXPORT_MENU_SIZE:24,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:10,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:20,TITLE_ALIGN_CENTER:"center",TITLE_ALIGN_RIGHT:"right",TITLE_ALIGN_LEFT:"left",DEFAULT_HEADER_HEIGHT:10,LEGEND_AREA_H_PADDING:15,LEGEND_AREA_V_PADDING:7,LEGEND_CHECKBOX_SIZE:14,LEGEND_ICON_WIDTH:10,LEGEND_ICON_HEIGHT:10,LEGEND_LABEL_LEFT_PADDING:8,LEGEND_V_LABEL_RIGHT_PADDING:20,LEGEND_H_LABEL_RIGHT_PADDING:25,LEGEND_LINE_ICON_PATH:"M1,9 L1,3 C1,1.8954305 1.8954305,1 3,1 L3,1 C4.1045695,1 5,1.8954305 5,3 L5,7 C5,8.1045695 5.8954305,9 7,9 L7,9 C8.1045695,9 9,8.1045695 9,7 L9,1",MIN_LEGEND_WIDTH:100,MAP_LEGEND_AREA_PADDING_WIDE:22,VERTICAL_MAP_LEGEND_AREA_TOP_PADDING:26,MAP_LEGEND_AREA_PADDING_NARROW:10,MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:4,MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING:6,MAP_LEGEND_WEDGE_SIZE:4,MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE:4,VERTICAL_MAP_LEGEND_HEIGHT:320,HORIZONTAL_MAP_LEGEND_WIDTH:400,MAP_LEGEND_GRAPH_SIZE:6,MAP_LEGEND_LABEL_PADDING:5,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_BACKGROUND_RIGHT_PADDING:4,X_AXIS_LABEL_PADDING:7,X_AXIS_TITLE_PADDING:5,Y_AXIS_LABEL_PADDING:17,Y_AXIS_TITLE_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,AXIS_EDGE_RATIO:8,LABEL_PADDING_TOP:7,LINE_MARGIN_TOP:14,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,ZOOM_POSITION_TOP_EXIST_TITLE:5,ZOOM_POSITION_TOP_NONE_TITLE:1,FF_WHEELDELTA_ADJUSTING_VALUE:-40,PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,changeCheckedLegends:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e-1||(i.push(e),t.className=i.join(" "))}},removeClass:function(t,e){var i=this._getClassNames(t),n=(0,h["default"])(e,i);n!==-1&&(i.splice(n,1),t.className=i.join(" "))},hasClass:function(t,e){var i=this._getClassNames(t),n=(0,h["default"])(e,i);return n>-1},findParentByClass:function(t,e,i){var n=t.parentNode,r=void 0;return r=n?this.hasClass(n,e)?n:"BODY"===n.nodeName||this.hasClass(n,i)?null:this.findParentByClass(n,e,i):null},append:function(t,e){t&&e&&(e=(0,a["default"])(e)?e:[e],(0,p["default"])(e,function(e){e&&t.appendChild(e)}))}}},function(t,e){"use strict";function i(t){return"string"==typeof t||t instanceof String}t.exports=i},function(t,e,i){"use strict";function n(t,e,i){var n,o;if(i=i||0,!r(e))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t,i);for(o=e.length,n=i;i>=0&&ns&&(s=o,n=t)})}else n=Math.max.apply(Math,r(t));return n}function s(t,e,i){var n=!1;return(0,_["default"])(t,function(r,o){return e.call(i,r,o,t)&&(n=!0),!n}),n}function u(t,e,i){var n=!!(t||[]).length;return(0,_["default"])(t,function(r,o){return e.call(i,r,o,t)||(n=!1),n!==!1}),n}function l(t,e,i,n){var r=[];if((0,f["default"])(e)||(n=i,i=e,e=!1),i=i||function(t){return t},e){var o=void 0;(0,x["default"])(t,function(e,a){e=i.call(n,e,a,t),a&&o===e||r.push(e),o=e})}else(0,x["default"])(t,function(e,o){e=i.call(n,e,o,t),(0,m["default"])(e,r)===-1&&r.push(e)});return r}function h(t){var e=[],i=a(t.map(function(t){return t.length}));return t.forEach(function(t){for(var n=0;n0?1:-1,u=t.left,l=t.width,h=l/4,c="M"+(u+h)+","+t.top+"H"+(u+3*h),p=y["default"].oneLineTrim(s,u+2*h,t.top,t.top+Math.abs(o)*a),d=g["default"].renderLine(n,c,{color:i,strokeWidth:T}),f=g["default"].renderLine(n,p,{color:i,strokeWidth:A}),m=[];return d.attr({opacity:r?0:1}),f.attr({opacity:r?0:1}),m.push(d),m.push(f),m},t.prototype._renderWhiskers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,r=[];return t.forEach(function(t,o){var a=[];t.forEach(function(t,r){var s=n?i[o]:i[r];t&&(a=a.concat(e._renderWhisker(t.min,t.start,s)),a=a.concat(e._renderWhisker(t.max,t.end,s)))}),r.push(a)}),r},t.prototype._renderMedianLine=function(t){var e=t.width,i="M"+t.left+","+t.top+",H"+(t.left+e),n=g["default"].renderLine(this.paper,i,{color:"#fff",strokeWidth:b});return n.attr({opacity:this.animationDuration?0:1}),n},t.prototype._renderMedianLines=function(t){var e=this,i=[];return t.forEach(function(t){var n=[];t.forEach(function(t){t&&n.push(e._renderMedianLine(t.median))}),i.push(n)}),i},t.prototype._renderOutlier=function(t,e){var i=g["default"].renderCircle(this.paper,{left:t.left,top:t.top},3.5,{stroke:e,"stroke-width":2});return i.attr({opacity:this.animationDuration?0:1}),i},t.prototype._renderOutliers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,r=[];return t.forEach(function(t,o){var a=[];t.forEach(function(t,r){var s=n?i[o]:i[r],u=[];t&&(t.outliers.length&&t.outliers.forEach(function(t){u.push(e._renderOutlier(t,s))}),a.push(u))}),r.push(a)}),r},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._renderBorderLines=function(t,e,i,n){var r=this,o=this._makeBorderLinesPaths(t,i,n),s={};return Object.entries(o).forEach(function(t){var i=a(t,2),n=i[0],o=i[1];s[n]=g["default"].renderLine(r.paper,o,{color:e,strokeWidth:1})}),s},t.prototype._renderBoxBorders=function(t){var e=this,i=this.theme.borderColor;return i?t.map(function(t,n){return t.map(function(t,r){if(!t)return null;var o=e.seriesDataModel.getSeriesItem(n,r);return e._renderBorderLines(t.start,i,e.chartType,o)})}):null},t.prototype._animateRect=function(t,e,i){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},i,">")},t.prototype.animate=function(t){var e=this;if(this.animationDuration){var i=l["default"].animation({opacity:1},this.animationDuration);g["default"].forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound,e.animationDuration)}),g["default"].forEach2dArray(this.groupWhiskers,function(t){t.animate(i.delay(e.animationDuration))}),g["default"].forEach2dArray(this.groupMedians,function(t){t.animate(i.delay(e.animationDuration))}),g["default"].forEach2dArray(this.groupOutliers,function(t){t.forEach(function(t){t.animate(i.delay(e.animationDuration))})}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},this.animationDuration))}},t.prototype.showAnimation=function(t){(0,d["default"])(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},t.prototype.showRectAnimation=function(t){var e=this.groupBoxes[t.groupIndex][t.index];this.hoveredBar=e.rect,this.hoveredBar.attr({stroke:"#ffffff","stroke-width":4}),this.hoveredBar.node.setAttribute("filter","url(#shadow)")},t.prototype.showOutlierAnimation=function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":1,stroke:e.stroke,"stroke-width":4})},t.prototype.hideAnimation=function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":2}),this.hoveredBar.attr({stroke:"none"}),this.hoveredBar.node.setAttribute("filter","none")},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds;this.groupBounds=i,this.paper.setSize(e.width,e.height),g["default"].forEach2dArray(this.groupBoxes,function(t,e,n){if(t){var r=i[e][n].end;t.bound=r,g["default"].updateRectBound(t.rect,r)}})},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype._changeBoxColor=function(t,e,i){var n=this.groupBoxes[t.groupIndex][t.index];if(n.rect.attr({stroke:e}),i){var r=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(r,i)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=l["default"].color(e.color),n=this.theme.selectionColor,r=g["default"].makeChangedLuminanceColor,o=n||r(i.hex,x),a=this.theme.borderColor;if(a){var s=l["default"].color(a);a=g["default"].makeChangedLuminanceColor(s.hex,x)}this._changeBoxColor(t,o,a)},t.prototype.unselectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=this.theme.borderColor; this._changeBoxColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=(0,c["default"])(t);g["default"].forEach2dArray(this.groupBoxes,function(i,n,r){if(i){var o=e||t===r?_:v;i.rect.attr({"stroke-opacity":o})}}),g["default"].forEach2dArray(this.groupWhiskers,function(i,n,r){var o=e||t===r?_:v;i.attr({"stroke-opacity":o})}),g["default"].forEach2dArray(this.groupMedians,function(i,n,r){var o=e||t===r?_:v;i.attr({"stroke-opacity":o})})},t.prototype.renderSeriesLabel=function(t,e,i,n,r){var o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":r?"middle":"start"},a=t.set();return i.forEach(function(i,n){i.forEach(function(i,r){var s=e[n][r],u=g["default"].renderText(t,s.end,i.end,o);if(u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),a.push(u),s.start){var l=g["default"].renderText(t,s.start,i.start,o);l.node.style.userSelect="none",l.node.style.cursor="default",l.node.setAttribute("filter","url(#glow)"),a.push(l)}})}),a},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),o=t.rect(e.left,e.top,i.width,i.height);return o.id=n+"_rect",r.id=n,r.appendChild(o.node),t.defs.appendChild(r),o}e.__esModule=!0;var a=i(137),s=n(a),u=i(153),l=n(u),h=i(143),c=n(h),p=i(154),d=n(p),f=i(148),g=n(f),m=l["default"].msie&&l["default"].version<=8,y=1,_=.3,v=20,x=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.seriesDataModel;return i&&i.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.animationDuration=e.options.animationDuration,this.seriesDataModel=n,this.maxRangeCount=n.maxRangeCount,this.maxMarkerCount=n.maxMarkerCount,this._graphColors=[],this.rangeOpacities={},this.paper.setStart(),this._renderBounds(i),this.paper.setFinish()):null},t.prototype._getRangeOpacity=function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t",t)),t&&(this.callbackTimeout=setTimeout(function(){t(),delete i.callbackTimeout},s))},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds,n=e.width,r=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(n,r),this.paper.setSize(n,r)},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i&&i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=g["default"].generateClipRectId()),this.clipRectId},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype.selectLegend=function(t){var e=this,i=(0,s["default"])(t);this.groupBars.forEach(function(n,r){var o=i||t===r?y:_;e.groupBars[r].attr({"fill-opacity":o}),e.groupLabels[r].attr({opacity:o}),e.groupLabels[r].forEach(function(t){t.attr({opacity:o})})})},t.prototype.renderSeriesLabel=function(t,e,i,n){var r=this,o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},a=t.set();return this.groupLabels=i.map(function(i,n){var s=t.set();return i.forEach(function(i,u){var l=r._renderLabel(t,e[n][u],o,i);s.push(l),a.push(l)}),s},this),a},t.prototype._renderLabel=function(t,e,i,n){var r=c["default"].renderText(t,e,n,i),o=r.node,a=o.style;return a.userSelect="none",a.cursor="default",o.setAttribute("filter","url(#glow)"),r},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map(function(e,i){var n=[],r=t.groupLines[i].length;e.forEach(function(t){n.push(t.attrs.fill)});for(var o=n[n.length-1],a=0;a<=r;a+=1)n.push(o);return n})),this._graphColors},t}();e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(137),u=n(s),l=i(150),h=n(l),c=i(163),p=n(c),d=i(143),f=n(d),g=1,m=.3,y=function(t){function e(){r(this,e);var i=o(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="line",i.lineWidth=6,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,r=e.theme,o=e.options,a=e.position,s=r.colors,u=o.showDot?1:0,l=o.spline,c=this.lineWidth=(0,h["default"])(o.pointWidth)?o.pointWidth:this.lineWidth,p=this.makeBorderStyle(r.dot.strokeColor,u,r.dot.strokeWidth),d=this.makeOutDotStyle(u,p),f=void 0;return f=l?this._getSplineLinesPath(n,o.connectNulls):this._getLinesPath(n,o.connectNulls),this.paper=t,this.theme=r,this.isSpline=l,this.dimension=i,this.position=a,t.setStart(),this.groupLines=this._renderLines(t,f,s,c),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,n,s,u),o.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor),this.colors=s,this.borderStyle=p,this.outDotStyle=d,this.groupPositions=n,this.groupPaths=f,this.dotOpacity=u,this.animationDuration=o.animationDuration,delete this.pivotGroupDots,t.raphael.svg&&this.appendShadowFilterToDefs(),t.setFinish()},e.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},e.prototype._getLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeLinesPath(t,null,e)})},e.prototype._getSplineLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeSplineLinesPath(t,{connectNulls:e})})},e.prototype._renderLines=function(t,e,i,n){return e.map(function(e,r){var o=i[r]||"transparent",a=f["default"].renderLine(t,e.join(" "),{color:o,strokeWidth:n});return a.node.setAttribute("class","auto-shape-rendering"),a})},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.resizeClipRect(i.width,i.height),this.groupPositions=n,this.groupPaths=this.isSpline?this._getSplineLinesPath(n):this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,r){t.endDot&&e._moveDot(t.endDot.dot,n[i][r])})})},e.prototype.selectLegend=function(t){var e=this,i=(0,u["default"])(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupLines.forEach(function(n,r){var o=t===r,a=i||o?g:m,s=e.groupDots[r];n.attr({"stroke-opacity":a}),o&&e.moveSeriesToFront(n,s)}),i&&this.groupLines.forEach(function(t,i){e.moveSeriesToFront(t,e.groupDots[i])})},e.prototype.resetSeriesOrder=function(t){var e=t+10&&(o[0]="M"),o},t.prototype._getAnchor=function(t,e,i,n){var r=(e.left-t.left)/2,o=(i.left-e.left)/2,a=void 0,s=void 0;n?(a=Math.atan((t.left-e.left)/Math.abs(t.top-e.top)),s=Math.atan((e.left-i.left)/Math.abs(i.top-e.top))):(a=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),s=Math.atan((i.left-e.left)/Math.abs(e.top-i.top))),a=t.top0&&!e||a)&&(i.push(n),n=[])}),i},t.prototype._getSplinePartialPaths=function(t,e){var i=this,n=[],r=void 0,o=void 0,a=void 0,u=void 0,l=void 0;return t.forEach(function(t){var h=s(t,1),c=h[0],p=c;o=t.length,a=p,r=t[o-1],u=t.slice(1).slice(0,o-2),l=u.map(function(n,r){var o=t[r+2],s=i._getAnchor(a,n,o,e);return a=n,Math.abs(s.y1-c.top)>Math.abs(c.top-n.top)&&(s.y1=n.top),Math.abs(s.y2-o.top)>Math.abs(o.top-n.top)&&(s.y2=n.top),c=n,[s.x1,s.y1,n.left,n.top,s.x2,s.y2]}),l.push([r.left,r.top,r.left,r.top]),l.unshift(["M",p.left,p.top,"C",p.left,p.top]),n.push(l)}),n},t.prototype._makeSplineLinesPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._getSplinePositionsGroups(t,e.connectNulls),n=this._getSplinePartialPaths(i,e.isReverseDirection),r=[];return n.forEach(function(t){r=r.concat(t)}),e.isBeConnected&&(r[0]=r[0].slice(3)),r},t.prototype._renderTooltipLine=function(t,e){var i=v["default"].makeLinePath({left:10,top:e},{left:10,top:0});return v["default"].renderLine(t,i,{color:"transparent",strokeWidth:1})},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype.makeBorderStyle=function(t,e,i){var n={"stroke-width":i,"stroke-opacity":e};return t&&(n.stroke=t),n},t.prototype.makeOutDotStyle=function(t,e){var i={"fill-opacity":t,"stroke-opacity":t,r:L};return e&&Object.assign(i,e),i},t.prototype.renderDot=function(t,e,i,n){var r=this.theme&&this.theme.dot||{dot:{}},o=void 0;if(e){var a=t.circle(e.left,e.top,(0,y["default"])(r.radius)?L:r.radius),s={fill:r.fillColor||i,"fill-opacity":(0,g["default"])(n)?n:r.fillOpacity,stroke:r.strokeColor||i,"stroke-opacity":(0,g["default"])(n)?n:r.strokeOpacity,"stroke-width":r.strokeWidth};a.attr(s),o={dot:a,color:i}}return o},t.prototype._moveDotsToFront=function(t){v["default"].forEach2dArray(t,function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},t.prototype._renderDots=function(t,e,i,n,r){var o=this,a=e.map(function(e,a){var s=i[a];return Object.values(e).map(function(e){var i={endDot:o.renderDot(t,e,s,n)};if(o.hasRangeData){var a=Object.assign({},e);a.top=a.startTop,i.startDot=o.renderDot(t,a,s,n)}return r&&(r.push(i.endDot.dot),i.startDot&&r.push(i.startDot.dot)),i})});return a},t.prototype._getCenter=function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},t.prototype._showDot=function(t,e){var i=this.theme.dot.hover,n={"fill-opacity":i.fillOpacity,stroke:i.strokeColor||t.color,"stroke-opacity":i.strokeOpacity,"stroke-width":i.strokeWidth,r:i.radius,filter:"url(#shadow)"};this._setPrevDotAttributes(e,t.dot),i.fillColor&&(n.fill=i.fillColor),t.dot.attr(n),t.dot.node&&t.dot.node.setAttribute("filter","url(#shadow)"),t.dot.toFront()},t.prototype._setPrevDotAttributes=function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},t.prototype._updateLineStrokeOpacity=function(t,e){var i=1,n=!(0,d["default"])(this.selectedLegendIndex);this.groupLines&&((t===O||n)&&(i="radial"===this.chartType&&this.showArea?0:P),t===R&&n&&(e=this.getLine(this.selectedLegendIndex)),this.groupLines.forEach(function(t){t.attr({"stroke-opacity":i})}),e.attr({"stroke-opacity":1}))},t.prototype.getLine=function(t){return this.groupLines?this.groupLines[t]:this.groupAreas[t]},t.prototype._updateAreaOpacity=function(t){this.groupAreas&&this.groupAreas.forEach(function(e){e.area.attr({"fill-opacity":t===O?P:1})})},t.prototype._updateLineStrokeWidth=function(t,e){var i={"stroke-width":e};t.attrs&&(i.stroke=t.attrs.stroke),t.attr(i)},t.prototype.showAnimation=function(t){var e=t.index,i=this.groupDots[e],n=this._findDotItem(i,t.groupIndex),r=this.groupLines?this.groupLines[e]:this.groupAreas[e],o=void 0,a=void 0;if(n){if("area"===this.chartType){var s=r;a=s.startLine,r=s.line,o=5,this._updateAreaOpacity(O)}else o=this.lineWidth;this._updateLineStrokeOpacity(O,r),this._updateLineStrokeWidth(r,o),a&&this._updateLineStrokeWidth(a,o),this._showDot(n.endDot,e),n.startDot&&this._showDot(n.startDot,e)}},t.prototype._findDotItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],i=A["default"].isRadialChart(this.chartType);return i&&t.length===e&&(e=0),t[e]},t.prototype._getPivotGroupDots=function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=D["default"].pivot(this.groupDots)),this.pivotGroupDots},t.prototype._showGroupDots=function(t){var e=this,i=this._getPivotGroupDots();i&&i[t]&&i[t].forEach(function(t,i){t.endDot&&e._showDot(t.endDot,i),t.startDot&&e._showDot(t.startDot,i)})},t.prototype.showGroupTooltipLine=function(t,e){var i=Math.max(t.position.left,11),n=v["default"].makeLinePath({left:i,top:e.position.top+t.dimension.height},{left:i,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:n,stroke:"#999","stroke-opacity":1})},t.prototype.showGroupAnimation=function(t){this._showGroupDots(t)},t.prototype._hideDot=function(t,e,i){var n=this._prevDotAttributes[e],r=this.outDotStyle;n&&!(0,y["default"])(i)&&(r={r:n.r,stroke:n.stroke,fill:n.fill,"stroke-opacity":n["stroke-opacity"],"stroke-width":n["stroke-width"],"fill-opacity":n["fill-opacity"]}),t.attr(r),t.node&&t.node.setAttribute("filter",""),this.resetSeriesOrder(e)},t.prototype.hideAnimation=function(t){var e=t.groupIndex,i=t.index,n=this.groupDots[i],r=this._findDotItem(n,e),o=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(r){if(o=this.groupLines?this.groupLines[i]:this.groupAreas[i],"area"===this.chartType){a=this.lineWidth;var l=o;s=l.startLine,o=l.line,this._updateAreaOpacity(R)}else a=this.lineWidth;u&&!(0,d["default"])(this.selectedLegendIndex)&&this.selectedLegendIndex!==i&&(u=P),this._updateLineStrokeOpacity(R,o),this._updateLineStrokeWidth(o,a),s&&this._updateLineStrokeWidth(s,a),r&&(this._hideDot(r.endDot.dot,i,u),r.startDot&&this._hideDot(r.startDot.dot,i,u))}},t.prototype._hideGroupDots=function(t){var e=this,i=!(0,d["default"])(this.selectedLegendIndex),n=this.dotOpacity,r=this._getPivotGroupDots();r&&r[t]&&r[t].forEach(function(t,r){var o=n;o&&i&&e.selectedLegendIndex!==r&&(o=P),t.endDot&&e._hideDot(t.endDot.dot,r,o),t.startDot&&e._hideDot(t.startDot.dot,r,o)})},t.prototype.hideGroupTooltipLine=function(){this.tooltipLine.attr({"stroke-opacity":0})},t.prototype.hideGroupAnimation=function(t){this._hideGroupDots(t)},t.prototype._moveDot=function(t,e){var i={cx:e.left,cy:e.top};this.dotOpacity&&(i=Object.assign({"fill-opacity":this.dotOpacity},i,this.borderStyle)),t.attr(i)},t.prototype.animate=function(t,e){var i=this.paper,n=this.dimension,r=this.position,o=this.animationDuration,s=this._getClipRectId(),u=this._makeClipRectPosition(r),l=this.clipRect;!w&&n&&(l?(this._makeClipRectPosition(r),l.attr({width:o?0:n.width,height:n.height,x:u.left,y:u.top})):(l=a(i,u,n,s,!!o),this.clipRect=l),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+s+")")}),o&&l.animate({width:n.width},o,">",t))},t.prototype._makeClipRectPosition=function(t){return{left:t.left-S["default"].SERIES_EXPAND_SIZE,top:t.top-S["default"].SERIES_EXPAND_SIZE}},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,M);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},t.prototype.selectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex],i=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:i.left,cy:i.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:i.left,cy:i.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},t.prototype.unselectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},t.prototype.setSize=function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},t.prototype._animateByPosition=function(t,e,i){var n={cx:e.left,cy:e.top};(0,c["default"])(i)&&(n.transform="t-"+i+",0"),t.animate(n,k)},t.prototype._animateByPath=function(t,e,i){var n={path:e.join(" ")};(0,c["default"])(i)&&(n.transform="t-"+i+",0"),t.animate(n,k)},t.prototype._removeFirstDot=function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},t.prototype.clear=function(){delete this.paper.dots,this.paper.clear()},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=T["default"].generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e["default"]=I},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(159),o=n(r),a=i(138),s=n(a),u=i(154),l=n(u),h=i(158),c=n(h),p={isBarChart:function(t){return t===l["default"].CHART_TYPE_BAR},isColumnChart:function(t){return t===l["default"].CHART_TYPE_COLUMN},isBarTypeChart:function(t){return p.isBarChart(t)||p.isColumnChart(t)},isColumnTypeChart:function(t,e){return p.isHeatmapChart(t)||p.isColumnChart(t)||p.isBoxplotChart(t)||p.isLineColumnComboChart(t,e)},isBoxplotChart:function(t){return t===l["default"].CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===l["default"].CHART_TYPE_BULLET},isRadialChart:function(t){return t===l["default"].CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var i=p.isAllowedStackOption(t),n=p.isNormalStack(e);return i&&n},isPercentStackChart:function(t,e){var i=p.isAllowedStackOption(t),n=p.isPercentStack(e);return i&&n},isComboChart:function(t){return t===l["default"].CHART_TYPE_COMBO},isLineColumnComboChart:function(t,e){var i=c["default"].all(e||[],function(t){return p.isLineChart(t)||p.isColumnChart(t)});return p.isComboChart(t)&&i},isPieDonutComboChart:function(t,e){var i=c["default"].all(e,function(t){return p.isPieChart(t)});return p.isComboChart(t)&&i},isLineChart:function(t){return t===l["default"].CHART_TYPE_LINE},isAreaChart:function(t){return t===l["default"].CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var i=c["default"].all(e||[],function(t){return p.isLineChart(t)||p.isAreaChart(t)});return p.isComboChart(t)&&i},hasLineChart:function(t,e){var i=c["default"].any(e||[],function(t){return p.isLineChart(t)});return p.isComboChart(t)&&i},isLineScatterComboChart:function(t,e){var i=c["default"].all(e||[],function(t){return p.isLineChart(t)||p.isScatterChart(t)});return p.isComboChart(t)&&i},isLineTypeChart:function(t,e){return p.isLineChart(t)||p.isAreaChart(t)||p.isLineAreaComboChart(t,e)},isBubbleChart:function(t){return t===l["default"].CHART_TYPE_BUBBLE},isScatterChart:function(t){return t===l["default"].CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===l["default"].CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===l["default"].CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return p.isHeatmapChart(t)||p.isTreemapChart(t)},isMapTypeChart:function(t){return this.isMapChart(t)||this.isHeatmapChart(t)||this.isTreemapChart(t)},isPieChart:function(t){return t&&t.indexOf(l["default"].CHART_TYPE_PIE)!==-1},isMapChart:function(t){return t===l["default"].CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return p.isBubbleChart(t)||p.isScatterChart(t)},allowMinusPointRender:function(t){return p.isLineTypeChart(t)||p.isCoordinateTypeChart(t)||p.isBoxTypeChart(t)||p.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return p.isPieChart(t)||p.isMapChart(t)||p.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===l["default"].LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return p.isShowLabel(t)&&p.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===l["default"].LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===l["default"].LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===l["default"].LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return p.isLegendAlignTop(t)||p.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!p.isHorizontalLegend(t)},isAllowedStackOption:function(t){return p.isBarChart(t)||p.isColumnChart(t)||p.isAreaChart(t)},isNormalStack:function(t){return!!t&&t.type===l["default"].NORMAL_STACK_TYPE},isPercentStack:function(t){return!!t&&t.type===l["default"].PERCENT_STACK_TYPE},isValidStackOption:function(t){return p.isNormalStack(t)||p.isPercentStack(t)},isAllowRangeData:function(t){return p.isBarTypeChart(t)||p.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===l["default"].YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===l["default"].TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===l["default"].AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isRenderConnector:function(t){return(0,o["default"])(t)&&t||(0,s["default"])(t)&&("solid"===t.type||"dotted"===t.type)}};e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1)&&b["default"].print(A,"warn"):(0,f["default"])(t)||b["default"].print(A,"error"),e},e}(m["default"]);e["default"]=S},function(t,e){"use strict";e.__esModule=!0,e["default"]={print:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";window.console&&window.console[e](t)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(146),s=n(a),u=i(137),l=n(u),h=i(135),c=n(h),p=i(143),d=n(p),f=180,g=360,m=.01,y=Math.PI/f,_=1,v=.3,x=.2,T="overlay",b=20,A=function(){function t(){r(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();this.animationDuration=e.options.animationDuration,this.paper=t;var r=o(e.options.radiusRange,1);return this.holeRatio=r[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=i,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,n),this.overlay=this._renderOverlay(),this.labelInfos={value:[],legend:[]},this.prevPosition=null,this.prevHoverSector=null,n},t.prototype.clear=function(){this.paper.clear()},t.prototype._makeSectorPath=function(t,e,i,n,r){var o=n*y,a=r*y,s=t+i*Math.sin(o),u=e-i*Math.cos(o),l=t+i*Math.sin(a),h=e-i*Math.cos(a),c=r-n>f?1:0,p=["M",t,e,"L",s,u,"A",i,i,0,c,1,l,h,"Z"];return{path:p}},t.prototype._makeDonutSectorPath=function(t,e,i,n,r,o){var a=n*y,s=r*y,u=o||i*this.holeRatio,l=t+i*Math.sin(a),h=e-i*Math.cos(a),c=t+u*Math.sin(a),p=e-u*Math.cos(a),d=t+i*Math.sin(s),g=e-i*Math.cos(s),m=t+u*Math.sin(s),_=e-u*Math.cos(s),v=r-n>f?1:0,x=["M",l,h,"A",i,i,0,v,1,d,g,"L",m,_,"A",u,u,0,v,0,c,p,"Z"];return{path:x}},t.prototype._setSectorAttr=function(){var t=void 0;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=t.bind(this))},t.prototype._renderOverlay=function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.node.setAttribute("class","auto-shape-rendering"),e.data("id",T),e.data("chartType",this.chartType),e},t.prototype._renderSector=function(t){var e=t.circleBound,i=t.angles,n=t.attrs;return n[this.sectorName]=[e.cx,e.cy,e.r,i.startAngle,i.endAngle],t.paper.path().attr(n)},t.prototype._renderPie=function(t,e,i,n){var r=this,o=this.circleBound,a=this.chartBackground,s=this.animationDuration,u=[];return t.forEach(function(t,l){var h=t.ratio,c=t.angles,p=e[l],d=r._renderSector({paper:r.paper,circleBound:o,angles:s?c.start:c.end,attrs:{fill:s?a.color:p,stroke:a.color,"stroke-width":0}});d.node.setAttribute("class","auto-shape-rendering"),d.data("index",l),d.data("legendIndex",l+i),d.data("chartType",r.chartType),u.push({sector:d,color:p,angles:c.end,ratio:h}),n.push(d)}),u},t.prototype._showOverlay=function(t,e){var i=this.overlay,n=this.sectorInfos[t],r=n.angles.startAngle,o=n.angles.endAngle,a=this.circleBound,s={fill:"#fff",opacity:1,"stroke-width":7,"stroke-color":"#fff","stroke-miterlimit":15};s[this.sectorName]=[a.cx,a.cy,a.r,r,o,a.r*this.holeRatio],i.attr(s),i.data("index",t),i.data("legendIndex",e),i.node.setAttribute("filter","url(#shadow)"),this._indexingOverlapElement([i,n.sector,this.labelInfos.legend[t],this.labelInfos.value[t]])},t.prototype._indexingOverlapElement=function(t){t.forEach(function(t){t&&t.toFront()})},t.prototype._hideOverlay=function(){var t=this.overlay,e={fill:"none",opacity:0};t.attr(e),this._indexingOverlapElement(this.labelInfos.legend),this._indexingOverlapElement(this.labelInfos.value)},t.prototype.animate=function(t){var e=this.sectorName,i=this.circleBound,n=this.animationDuration,r=[i.cx,i.cy,i.r],o=0;this.sectorInfos.forEach(function(t){var i=t.angles,a={fill:t.color};if(n){var s=n*t.ratio;0===i.startAngle&&i.endAngle===g&&(i.endAngle=g-m),a[e]=r.concat([i.startAngle,i.endAngle]);var u=c["default"].animation(a,s,">");t.sector.animate(u.delay(o)),o+=s}}),t&&setTimeout(t,o)},t.prototype.resize=function(t){var e=t.dimension,i=t.circleBound;this.circleBound=i,this.paper.setSize(e.width,e.height)},t.prototype.findSectorInfo=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={legendIndex:(0,s["default"])(e.data("legendIndex"))?e.data("legendIndex"):-1,index:(0,s["default"])(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),i},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype._showTooltip=function(t,e){var i=[{},0,t.data("index"),{left:e.left-b,top:e.top-b}];this.callbacks.showTooltip.apply(null,i)},t.prototype._isValidSector=function(t){return t&&t.data("chartType")===this.chartType},t.prototype.moveMouseOnSeries=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},t.prototype.selectSeries=function(t){var e=this.sectorInfos[t.index];if(e){var i=c["default"].color(e.color),n=d["default"].makeChangedLuminanceColor(i.hex,x),r=this.selectionColor||n;e.sector.attr({fill:r})}},t.prototype.unselectSeries=function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},t.prototype.selectLegend=function(t){var e=(0,l["default"])(t);this.sectorInfos.forEach(function(i,n){var r=e||t===n?_:v;i.sector.attr({"fill-opacity":r})})},t.prototype.getRenderedLabelWidth=function(t,e){return d["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).width},t.prototype.getRenderedLabelHeight=function(t,e){return d["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype.renderLabels=function(t){var e=this,i=t.theme,n=t.labelFilter,r=t.dataType,o=t.ratioValues,a=t.seriesNames,s={"font-size":i.fontSize,"font-family":t.fontFamily?t.fontFamily:t.theme.fontFamily,"font-weight":i.fontWeight,"text-anchor":"middle",fill:i.color||"#fff",opacity:0};t.positions.forEach(function(i,u){var l=o[u],h=n&&!n({value:t.labels[u],labelType:r,seriesName:a[u],ratio:l}),c=void 0;h||(t.colors&&(s.fill=t.colors[u]),i&&(c=d["default"].renderText(t.paper,i,t.labels[u],s),c.node.style.userSelect="none",c.node.style.cursor="default",c.node.setAttribute("class","auto-shape-rendering")),e.labelInfos[r].push(c),t.labelSet.push(c))},this),this.labelSet||(this.labelSet=t.labelSet)},t}();e["default"]=A},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(137),u=n(s),l=i(163),h=n(l),c=i(143),p=n(c),d=1,f=.3,g=6,m=function(t){function e(){r(this,e);var i=o(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="radial",i.lineWidth=g,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,r=e.theme,o=r.colors,a=e.options,s=a.pointWidth,u=a.showDot,l=a.showArea,h=u?1:0,c=this._getLinesPath(n),p=this.makeBorderStyle(r.strokeColor,h,r.strokeWidth),d=this.makeOutDotStyle(h,p),f=t.set(),g=this.lineWidth=s?s:this.lineWidth,m=n.map(function(t){return t.pop(),t});return this.paper=t,this.theme=r,this.dimension=i,this.position=e.position,l&&(this.groupAreas=this._renderArea(t,c,o,f)),this.groupLines=this._renderLines(t,c,o,g,f),this.groupDots=this._renderDots(t,m,o,h,f),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor),this.colors=o,this.borderStyle=p,this.outDotStyle=d,this.groupPositions=n,this.groupPaths=c,this.dotOpacity=h,this.showArea=l,f},e.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},e.prototype._renderLines=function(t,e,i,n,r){return e.map(function(e,o){var a=i[o]||"transparent",s=p["default"].renderLine(t,e.join(" "),{color:a,strokeWidth:n});return r.push(s),s})},e.prototype._renderArea=function(t,e,i,n){var r=this;return e.map(function(e,o){var a=i[o]||"transparent",s=p["default"].renderArea(t,e,{fill:a,opacity:.4,"stroke-width":r.lineWidth,stroke:a});return n.push(s),s},this)},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.groupPositions=n,this.groupPaths=this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.showArea&&e.groupAreas[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,r){e._moveDot(t.endDot.dot,n[i][r])})})},e.prototype.selectLegend=function(t){var e=(0,u["default"])(t);this.selectedLegendIndex=t,this.groupLines.forEach(function(i,n){var r=e||t===n?d:f;i.attr({"stroke-opacity":r})})},e}(h["default"]);e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(135),a=n(o),s=i(146),u=n(s),l=i(137),h=n(l),c=i(145),p=n(c),d=i(143),f=n(d),g=.8,m=1,y=.8,_=.3,v=.2,x=2,T=20,b=function(){function t(){r(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();return this.paper=t,this.animationDuration=e.options.animationDuration,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=i,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(n),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,this.selectedLegend=null,this.paper.raphael.svg&&this.appendShadowFilterToDefs(),n},t.prototype._renderOverlay=function(){var t={left:0,top:0},e={fill:"none",stroke:"#fff","stroke-opacity":m,"stroke-width":2},i=f["default"].renderCircle(this.paper,t,0,e);return i},t.prototype._renderCircles=function(t){var e=this,i=this.theme.colors;return this.groupBounds.map(function(n,r){return n.map(function(n,o){var a=null;if(n){var s=i[o],u=f["default"].renderCircle(e.paper,n,e.animationDuration?0:n.radius,{fill:s,opacity:e.animationDuration?0:g,stroke:"none"});t.push(u),u.data("groupIndex",r),u.data("index",o),a={circle:u,color:s,bound:n}}return a})})},t.prototype._animateCircle=function(t,e,i){t.animate({r:e,opacity:g},i,">")},t.prototype.animate=function(){var t=this;f["default"].forEach2dArray(this.groupCircleInfos,function(e){e&&t.animationDuration&&t._animateCircle(e.circle,e.bound.radius,t.animationDuration)})},t.prototype._updatePosition=function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},t.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupBounds;this.groupBounds=n,this.paper.setSize(i.width,i.height),f["default"].forEach2dArray(this.groupCircleInfos,function(t,i,r){var o=n[i][r];t&&(t.bound=o,e._updatePosition(t.circle,o))})},t.prototype.findIndexes=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={index:e.data("index"),groupIndex:e.data("groupIndex")}),i},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype.showAnimation=function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],i=e.bound;this.circle=e.circle,this.overlay.attr({fill:e.color,cx:i.left,cy:i.top,r:i.radius+x,stroke:"#fff",opacity:1}),this.circle.attr({opacity:1}),this.overlay.node.setAttribute("filter","url(#shadow)"),this.overlay.toFront(),this.circle.toFront()},t.prototype.hideAnimation=function(t){var e=_;this.overlay.attr({cx:0,cy:0,r:0,opacity:0}),((0,h["default"])(this.selectedLegend)||t.index===this.selectedLegend)&&(e=y),this.circle.attr({opacity:e})},t.prototype._findCircle=function(t){for(var e=[],i=this.paper,n=void 0;(0,p["default"])(n);){var r=i.getElementByPoint(t.left,t.top);r?r.attrs.opacity>_?n=r:(e.push(r),r.hide()):n=null}return n||(n=e[0]),e.forEach(function(t){t.show()}),n},t.prototype.moveMouseOnSeries=function(t){var e=this._findCircle(t);if(e&&(0,u["default"])(e.data("groupIndex"))){var i=e.data("groupIndex"),n=e.data("index"),r=[{},i,n,{left:t.left-T,top:t.top-T}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,r),this.prevOverCircle=e)}else this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null);this.prevPosition=t},t.prototype.selectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i],r=a["default"].color(n.color),o=this.theme.selectionColor,s=o||f["default"].makeChangedLuminanceColor(r.hex,v);n.circle.attr({fill:s})},t.prototype.unselectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i];n.circle.attr({fill:n.color})},t.prototype.selectLegend=function(t){var e=(0,h["default"])(t);this.selectedLegend=t,f["default"].forEach2dArray(this.groupCircleInfos,function(i,n,r){if(i){var o=e||t===r?y:_;i.circle.attr({opacity:o})}})},t}();e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(146),a=n(o),s=i(143),u=n(s),l=i(164),h=n(l),c=100,p=0,d=4,f=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=t.set();return this.paper=t,this.chartType=e.chartType,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.useColorValue=e.options.useColorValue,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.seriesDataModel=e.seriesDataModel,this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,i),this.rectOverlay=this._renderRectOverlay(),i},t.prototype._renderRectOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=u["default"].renderRect(this.paper,t,Object.assign({"stroke-width":0},e));return i.node.setAttribute("filter","url(#shadow)"),i},t.prototype._bindGetBoundFunction=function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},t.prototype._bindGetColorFunction=function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this._getColor=this._getColorFromColors},t.prototype._getBoundFromGroupBounds=function(t){return this.groupBounds[t.groupIndex][t.index].end},t.prototype._getBoundFromBoundMap=function(t){return this.boundMap[t.id]},t.prototype._getColorFromSpectrum=function(t,e){var i=void 0;return i=t.hasChild&&t.depth===e?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},t.prototype._getColorFromColors=function(t,e){return t.depth===e?this.theme.colors[t.group]:"#000"},t.prototype._renderRect=function(t,e,i,n){return u["default"].renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":i,"fill-opacity":n})},t.prototype._getStrokeWidth=function(t){var e=void 0;return e=this.borderWidth?this.borderWidth:t?d:p},t.prototype._renderBoxes=function(t,e,i,n){var r=this,o=h["default"].isTreemapChart(this.chartType);return t.map(function(t,i){if(o&&!r.colorSpectrum&&t.getSeriesItemCount()){var a=t.getSeriesItem(0);r._setTreeFillOpacity({id:a.parent},e)}return t.map(function(t,o){var a=null,s=t.depth,u=r.colorSpectrum?r.borderWidth:r._getStrokeWidth(s===e),l=r.colorSpectrum?1:t.fillOpacity;t.groupIndex=i,t.index=o;var h=r._getBound(t);if(h){var c=r._getColor(t,e);a={rect:r._renderRect(h,c,u,l),seriesItem:t,color:c},n&&n.push(a.rect)}return a})},i)},t.prototype._setTreeFillOpacity=function(t,e){var i=this,n=this.seriesDataModel.findSeriesItemsByParent(t.id);n.forEach(function(n,r){var o=n.depth;o===e?n.fillOpacity=1:o===e+1?n.fillOpacity=.05*r:o")},t.prototype.showAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];if(e){var i=e.rect.node,n=e.color;"treemap"!==this.chartType||this.zoomable||this.useColorValue||(n=this.theme.colors[t.index]),this.rectOverlay.attr({x:i.getAttribute("x"),y:i.getAttribute("y"),width:i.getAttribute("width"),height:i.getAttribute("height"),fill:n,"fill-opacity":1,stroke:"#ffffff","stroke-width":4,"stroke-opacity":1}),this.rectOverlay.toFront(),this.labelSet&&this.labelSet.toFront()}},t.prototype.hideAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];e&&this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-opacity":0})},t.prototype.resize=function(t){var e=this,i=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(i.width,i.height),u["default"].forEach2dArray(this.boxesSet,function(t,i,n){if(t){var r=e._getBound(t.seriesItem,i,n);r&&u["default"].updateRectBound(t.rect,r)}})},t.prototype.renderSeriesLabel=function(t,e,i,n){var r=t.set(),o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:"#ffffff",opacity:0};return i.forEach(function(i,n){i.forEach(function(i,a){var s=u["default"].renderText(t,e[n][a].end,i,o);s.node.style.userSelect="none",s.node.style.cursor="default",r.push(s)})}),this.labelSet=r,r},t.prototype.renderSeriesLabelForTreemap=function(t,e,i,n){var r=t.set(),o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0};return i.forEach(function(i,n){if(e[n]){var a=u["default"].renderText(t,e[n],i,o);a.node.style.userSelect="none",a.node.style.cursor="default",r.push(a)}}),this.labelSet=r,r},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.id=i,e.forEach(function(t){m["default"].append(n,t.node)}),t.canvas.appendChild(n),n}e.__esModule=!0;var s=r(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),u=r(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),l=i(145),h=n(l),c=i(153),p=n(c),d=i(143),f=n(d),g=i(155),m=n(g),y=i(148),_=n(y),v=p["default"].msie&&p["default"].version<=8,x="gray",T=100,b="tui-chart-series-group",A="#eee",E=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,i),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),v||(this.g=a(t,this.sectorSet,b)),this.overColor=e.theme.overColor},t.prototype._getDimensionRatio=function(t,e){return Math.min(t.height/e.height,t.width/e.width)},t.prototype._renderMap=function(t,e){var i=this.sectorSet,n=this.paper,r=t.layout.position,o=t.colorSpectrum;return t.mapModel.getMapData().map(function(t,a){var u=t.ratio,l=t.path,h=u?o.getColor(u):A,c=f["default"].renderArea(n,l,{fill:h,opacity:1,stroke:x,"stroke-width":.2,"stroke-opacity":1,transform:_["default"].oneLineTrim(s,e,e,r.left/e,r.top/e)});return c.data("index",a),i.push(c),{sector:c,color:h,ratio:u}})},t.prototype.findSectorIndex=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=e&&e.data("index"),n=!(0,h["default"])(i)&&this.sectors[i];return n&&!(0,h["default"])(n.ratio)?i:null},t.prototype.changeColor=function(t){var e=this.sectors[t],i={stroke:"#ffffff","stroke-width":4};this.overColor&&(i.fill=this.overColor),e.sector.animate(i,T,">"),e.sector.node.setAttribute("filter","url(#shadow)"),e.sector.toFront()},t.prototype.restoreColor=function(t){var e=this.sectors[t];e.sector.animate({fill:e.color,stroke:x,"stroke-width":.2},T,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,i,n,r){var o=this.g.transform.baseVal,a=this.paper.canvas.createSVGTransform(),s=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),l=o.numberOfItems?o.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},h=r.width-this.dimension.width,c=r.height-this.dimension.height,p=l.e/l.a,d=l.f/l.d,f=-h/l.a,g=-c/l.d;u.scale(t,t,e.left*i-p*t,e.top*i-d*t);var m=u.e/u.a+p,y=u.f/u.d+d;m>=0?u.e=-p*u.a:m=0?u.f=-d*u.a:y=0&&r>0?e.e=0:o<0&&o<-n/i.a&&r<0&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,n=t.maxTop,r=e.f/e.d,o=r+i.f/i.d;o>=0&&r>0?e.f=0:o<0&&o<-n/i.d&&r<0&&(e.f=0)},t.prototype.renderSeriesLabels=function(t,e,i){var n={"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color,"text-anchor":"middle",opacity:0,transform:_["default"].oneLineTrim(u,this.ratio,this.ratio,this.position.left/this.ratio,this.position.top/this.ratio)},r=t.set();return e.forEach(function(e){var i=e.position,o=f["default"].renderText(t,i,e.name||e.code,n);r.push(o),o.node.style.userSelect="none",o.node.style.cursor="default",o.node.setAttribute("filter","url(#glow)"),v||self.g.appendChild(o.node)}),r},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){return y["default"].LEGEND_ICON_WIDTH+y["default"].LEGEND_LABEL_LEFT_PADDING}e.__esModule=!0;var s=r(["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "]),u=i(146),l=n(u),h=i(137),c=n(h),p=i(150),d=n(p),f=i(145),g=n(f),m=i(154),y=n(m),_=i(143),v=n(_),x=i(158),T=n(x),b=i(148),A=n(b),E=i(173),D=n(E),C=.5,S=8,w=10,L=w/2,M=3,P=function(){function t(){o(this,t),this._checkBoxWidth=0,this._checkBoxHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0}return t.prototype._renderLegendItems=function(t){var e=this,i=y["default"].LEGEND_LABEL_LEFT_PADDING,n=Object.assign({},this.basePosition);t.forEach(function(t,r){var o=t.iconType,a=t.index,s=t.isUnselected,u=t.labelHeight,l=t.checkbox,h=t.colorByPoint?"#aaa":t.theme.color,c=n.left+e._calculateSingleLegendWidth(a,o),p=c>=e.paper.width;e.isHorizontal&&p&&(n.top+=e._legendItemHeight+y["default"].LABEL_PADDING_TOP,n.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(n,{isChecked:l.checked,legendIndex:a,legendSet:e.legendSet}),n.left+=e._checkBoxWidth+i),e._renderIcon(n,{legendColor:h,iconType:o,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),n.left+=y["default"].LEGEND_ICON_WIDTH+i,e._renderLabel(n,{labelText:t.label,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),e.isHorizontal?n.left+=e.labelWidths[r]+y["default"].LEGEND_H_LABEL_RIGHT_PADDING:(n.left=e.basePosition.left,n.top+=e._legendItemHeight+y["default"].LINE_MARGIN_TOP)})},t.prototype._getLegendData=function(t,e){var i=this.basePosition.top,n=this.dimension.height,r=this.paper.height,o=t;if(!this.isHorizontal&&n+2*i>r){this._legendItemHeight=Math.max(t[0].labelHeight,y["default"].LEGEND_CHECKBOX_SIZE);var a=r-2*i,s=this._legendItemHeight+y["default"].LINE_MARGIN_TOP,u=Math.floor(a/s);o=t.slice((e-1)*u,e*u)}return o},t.prototype.render=function(t){this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData;var e=[];if(this.originalLegendData.length){this._showCheckbox=(0,l["default"])(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight);var i=this._getLegendData(t.legendData,this._currentPageCount);if(this._renderLegendItems(i),!this.isHorizontal&&i&&i.length1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),T.click(function(){i._currentPageCounti&&(n=i),n+y["default"].LEGEND_LABEL_LEFT_PADDING})},t.prototype.getRenderedLabelHeight=function(t,e){return v["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype._renderLabel=function(t,e){var i=this.eventBus,n=this.labelTheme,r={left:t.left,top:t.top+this._legendItemHeight/2},o={fill:n.color,"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,opacity:e.isUnselected?C:1,"text-anchor":"start"},a=v["default"].renderText(this.paper,r,e.labelText,o);a.data("index",e.legendIndex),a.node.style.userSelect="none",a.node.style.cursor="pointer",e.legendSet.push(a),a.click(function(){i.fire("labelClicked",e.legendIndex)})},t.prototype._renderCheckbox=function(t,e){var i=this,n=t.left,r=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,o=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,u=A["default"].oneLineTrim(s,.25*this._checkBoxWidth+n,.5*this._checkBoxHeight+r,a,a,o,o),l=this.paper.set(),h=this.paper.rect(n,r,this._checkBoxWidth,this._checkBoxHeight,0).attr({fill:"#fff",stroke:"#aaa","stroke-width":1});if(h.node.setAttribute("class","auto-shape-rendering"),l.push(h),e.isChecked){var c=this.paper.path(u).attr({stroke:"#555","stroke-width":2});c.node.setAttribute("class","auto-shape-rendering"),l.push(c)}l.data("index",e.legendIndex),l.click(function(){i.eventBus.fire("checkboxClicked",e.legendIndex)}),l.forEach(function(t){e.legendSet.push(t)})},t.prototype._renderIcon=function(t,e){var i=this,n=void 0;this.paper.setStart(),"line"!==e.iconType&&"radial"!==e.iconType||!this.paper.canvas.transform?n=v["default"].renderRect(this.paper,{left:t.left,top:t.top+(y["default"].LEGEND_CHECKBOX_SIZE-y["default"].LEGEND_ICON_HEIGHT)/2,width:y["default"].LEGEND_ICON_WIDTH,height:y["default"].LEGEND_ICON_HEIGHT},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?C:1}):(n=this.paper.path(y["default"].LEGEND_LINE_ICON_PATH),n.attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?C:1}),n.translate(t.left,t.top)),n.data("icon",e.iconType),n.data("index",e.legendIndex),n.click(function(){i.eventBus.fire("labelClicked",e.legendIndex)}),e.legendSet.push(n)},t.prototype.selectLegend=function(t,e){e.forEach(function(e){var i=e.data("index"),n="line"===e.data("icon")?"stroke-opacity":"opacity";(0,c["default"])(i)||(0,g["default"])(i)?e.attr(n,1):(0,g["default"])(i)||((0,d["default"])(t)&&i!==t?e.attr(n,C):e.attr(n,1))})},t.prototype._getCheckboxWidth=function(){return this._showCheckbox?this._checkBoxWidth+y["default"].LEGEND_LABEL_LEFT_PADDING:0},t.prototype._getLabelWidth=function(t){var e=void 0;return e=t?this.labelWidths[t]||0:T["default"].max(this.labelWidths)},t.prototype._calculateLegendWidth=function(){return this._calculateSingleLegendWidth()},t.prototype._calculateSingleLegendWidth=function(t){return y["default"].LEGEND_AREA_H_PADDING+this._getCheckboxWidth()+a()+this._getLabelWidth(t)+y["default"].LEGEND_AREA_H_PADDING},t.prototype._setComponentDimensionsBaseOnLabelHeight=function(t){this._legendItemHeight=Math.max(t,y["default"].LEGEND_CHECKBOX_SIZE),this._checkBoxWidth=this._checkBoxHeight=y["default"].LEGEND_CHECKBOX_SIZE},t}();e["default"]=P},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(144),o=n(r),a=i(158),s=n(a),u=100,l={calculateLimit:function(t,e){var i={},n=0;t<0&&(n=t,e-=t,t=0);var r=(e-t)/20;return i.max=e+r+n,e/6>t?i.min=n:i.min=t-r+n,i},makeTickPixelPositions:function(t,e,i,n){var r=[];return i=i||0,e>0&&(r=(0,o["default"])(0,e).map(function(n){var r=0===n?0:n/(e-1);return r*t+i}),r[r.length-1]-=1),n&&r.push(n),r},makeLabelsFromLimit:function(t,e){var i=l.findMultipleNum(e),n=Math.round(t.min*i),r=Math.round(t.max*i),a=(0,o["default"])(n,r+1,e*i);return a.map(function(t){return t/i})},calculateStepFromLimit:function(t,e){return l.divide(l.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=t.filter(function(t){return t>0});return l.sum(e)},sumMinusValues:function(t){var e=t.filter(function(t){return t<0});return l.sum(e)},makePercentageValue:function(t,e){return t/e*u},calculateRatio:function(t,e,i,n){return e?(t-i)/e*n:0}},h=function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},c=function(){for(var t=arguments.length,e=Array(t),i=0;ih.dimension[e]+f},m=void 0;n.forEach(function(n){var s="M";n+=r,g(n)||(o?a?(s+=d+","+(p+n),s+="H"+(d+5),s+="M"+c+","+(p+n),s+="H"+(c-5)):u?(s+=d+","+(p+n),s+="H"+(d+5)):(s+=c+","+(p+n),s+="H"+(c-5)):(s+=d+n+","+p,s+="V"+(p+5)),isNaN(n)||(m=i.path(s).attr({stroke:l,opacity:.5}),t.set.push(m),e.ticks.push(m)))})},t.prototype.renderStandardLine=function(t){var e=t.areaSize,i=t.layout,n=i.position,r=i.dimension,o=t.paper,a=t.isVertical,s=n.left,u=Math.abs(t.axisLimit.min),l=Math.abs(t.axisLimit.max),h=1-l/(u+l),c="M",p=n.top,d=s+r.width;if(a){var f=p;d+=t.seriesDimension.width*h,c+=d+","+f;var g=p+e;c+="V"+g}else{c+=s,p-=t.seriesDimension.height*h,c+=","+p+"H";var m=s+e;c+=m}t.set.push(o.path(c).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,i=t.paper,n=t.layout,r=n.position,o=r.top,a=r.left,s=n.dimension,u=t.isNegativeStandard,l=t.isNotDividedXAxis,h=t.additionalSize,c=t.isPositionRight,p=t.isCenter,d=t.isVertical,f=t.tickColor,g=t.seriesDimension,m=e,y=s.height+o,_=a+s.width,v="M",x=void 0,T=void 0;c?(v+=a+","+o,v+="V"+y):d?(x=o,u&&(_+=g.width/2),v+=_+","+x,p?(v+="V"+y,v+="M"+a+","+x,v+="V"+y):(T=o+m,v+="V"+T)):v=this._makeNormalTickPath(v,{isNotDividedXAxis:l,baseTop:o,baseLeft:a,additionalSize:h,isNegativeStandard:u,seriesDimension:g,lineSize:m}),t.set.push(i.path(v).attr({"stroke-width":1,stroke:f,opacity:.5}))},t.prototype._makeNormalTickPath=function(t,e){t+=e.isNotDividedXAxis?e.baseLeft:e.baseLeft+e.additionalSize,e.isNegativeStandard&&(e.baseTop-=e.seriesDimension.height/2),t+=","+e.baseTop+"H";var i=e.baseLeft+e.lineSize;return e.isNotDividedXAxis||(i+=e.additionalSize),t+=i},t.prototype.animateForAddingData=function(t){this.ticks.forEach(function(e){e.animate({transform:"t-"+t+",0"},300)})},t.prototype.calculatePosition=function(t,e){var i=e.rotationInfo,n=e.text,r=e.theme,u=e.additionalWidth,l=e.otherSideDimension,h=e.areaSize,c=e.layout,d=o(n,r),f=a(n,r),g=c.dimension.height,m=c.dimension.width,y=c.position,_=y.top,v=y.left,x=v+u,T=f-l.width,b={top:_+g-d/2,left:x+(T<0?0:T)};return i.isVertical?i.isCenter?(b.top+=d/2,b.left=v+m/2):i.isDiverging||(b.top=_-d/2-p):i.isVertical||(i.isDiverging&&i.isYAxisCenter?b.left=v+h/2:i.isDiverging&&!i.isYAxisCenter?b.left=v+m/2:i.isXAxisTitleLeft?b.left=c.position.left:b.left=c.position.left+m),i.isPositionRight&&(b.left+=m),i.isCenter||s(b,e.offset),b},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(143),s=n(a),u=i(158),l=n(u),h=8,c=3,p=function(){function t(){r(this,t)}return t.prototype.render=function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},t.prototype._renderPlot=function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCategoryDots(t)},t.prototype._renderSpiderwebPlot=function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},t.prototype._renderCirclePlot=function(t){for(var e=this.plotPositions,i=o(e,1),n=o(i[0],1),r=n[0],a=this.theme.lineColor,u=1;u1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],n=arguments[3];if(e.table&&(e=N["default"].makeDataWithTable(e.table)),e.series||(e.series=[]),e=I["default"].deepCopy(e),"combo"!==n){var r=e.series;e.series={},e.series[n]=r}i=i?I["default"].deepCopy(i):{},i.chartType=n,i.theme=i.theme||D["default"].DEFAULT_THEME_NAME,i.series&&i.series.stackType&&(i.series.stack={type:i.series.stackType},delete i.series.stackType),i.series&&(0,A["default"])(i.series.stack)&&(i.series.stack={type:i.series.stack});var o=i.series&&i.series.colorByPoint,a=P["default"].get(i.theme,n,e.series,o),s=S["default"].get(i.chartType,e,a,i);return s.render(t),s.animateChart(),s}function o(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_BAR)}function a(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_COLUMN)}function s(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_LINE)}function u(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_AREA)}function l(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_BUBBLE)}function h(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_SCATTER)}function c(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_HEATMAP)}function p(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_TREEMAP)}function d(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_COMBO)}function f(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_PIE)}function g(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_MAP)}function m(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_RADIAL)}function y(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_BOXPLOT)}function _(t,e,i){return r(t,e,i,D["default"].CHART_TYPE_BULLET)}function v(t,e){P["default"].register(t,e)}function x(t,e){O["default"].register(t,e)}function T(t,e,i){L["default"].register(t,e),G["default"].addRendererType(t,i)}var b=i(156),A=n(b),E=i(154),D=n(E),C=i(180),S=n(C),w=i(182),L=n(w),M=i(183),P=n(M),k=i(185),O=n(k),R=i(186),I=n(R),B=i(188),N=n(B),F=i(191),G=n(F);i(192),i(193),i(306),t.exports={barChart:o,columnChart:a,lineChart:s,areaChart:u,bubbleChart:l,scatterChart:h,heatmapChart:c,treemapChart:p,comboChart:d,pieChart:f,mapChart:g,radialChart:m,boxplotChart:y,bulletChart:_,registerTheme:v,registerMap:x,registerPlugin:T}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),a=i(181),s=n(a),u=i(164),l=n(u),h={};e["default"]={_findKey:function(t,e){var i=null;if(l["default"].isComboChart(t)){var n=s["default"].getChartTypeMap(e);n[o["default"].CHART_TYPE_COLUMN]&&n[o["default"].CHART_TYPE_LINE]?i=o["default"].CHART_TYPE_COLUMN_LINE_COMBO:n[o["default"].CHART_TYPE_LINE]&&n[o["default"].CHART_TYPE_SCATTER]?i=o["default"].CHART_TYPE_LINE_SCATTER_COMBO:n[o["default"].CHART_TYPE_AREA]&&n[o["default"].CHART_TYPE_LINE]?i=o["default"].CHART_TYPE_LINE_AREA_COMBO:n[o["default"].CHART_TYPE_PIE]&&(i=o["default"].CHART_TYPE_PIE_DONUT_COMBO)}else i=t;return i},get:function(t,e,i,n){var r=this._findKey(t,e),o=h[r];if(!o)throw new Error("Not exist "+t+" chart.");return new o(e,i,n)},register:function(t,e){h[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(138),a=n(o),s=i(139),u=n(s),l=i(154),h=n(l),c=i(164),p=n(c),d=i(158),f=n(d);e["default"]={pickStacks:function(t,e){var i=t.map(function(t){return t.stack}),n=f["default"].unique(i);e&&(n=n.slice(0,2));var r=n.filter(function(t){return!!t});return r.length1&&void 0!==arguments[1]?arguments[1]:{};p["default"].isValidStackOption(i.stack)&&Object.keys(t.series).forEach(function(i){t.series[i]=e._sortSeriesData(t.series[i])}),i.diverging&&Object.entries(t.series).forEach(function(n){var o=r(n,2),a=o[0],s=o[1];t.series[a]=e._makeRawSeriesDataForDiverging(s,i.stack)})},appendOutliersToSeriesData:function(t){var e=t.series.boxplot;e.forEach(function(t){var e=t.outliers;e&&e.length&&e.forEach(function(e){t.data[e[0]].push(e[1])})})},filterCheckedRawData:function(t,e){var i=JSON.parse(JSON.stringify(t));if(e&&Object.entries(i.series).forEach(function(t){var n=r(t,2),o=n[0],a=n[1];e[o]?e[o].length&&(i.series[o]=a.filter(function(t,i){return e[o][i]})):i.series[o]=[]}),i.series.bullet){var n=[];e.bullet.forEach(function(e,i){e&&n.push(t.categories[i])}),i.categories=n}return i},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet,i=void 0===e?[]:e;t.categories=t.categories||[],t.categories=i.map(function(t){return t.name||""})}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),a={};e["default"]={get:function(t,e){var i=a[t||o["default"].DEFAULT_PLUGIN];if(!i)throw new Error("Not exist "+t+" plugin.");var n=i[e];if(!n)throw new Error("Not exist "+e+" chart renderer.");var r=new n;return r},register:function(t,e){a[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(140),a=n(o),s=i(146),u=n(s),l=i(138),h=n(l),c=i(139),p=n(c),d=i(154),f=n(d),g=i(164),m=n(g),y=i(184),_=n(y),v={};e["default"]={register:function(t,e){e=JSON.parse(JSON.stringify(e)),v[t]=e},_pickSeriesNames:function(t,e){var i=[];return m["default"].isComboChart(t)?Object.keys(e).forEach(function(t){i.push(t)}):i.push(t),i},_overwriteTheme:function(t,e){var i=this;Object.entries(e).forEach(function(n){var o=r(n,2),s=o[0],u=o[1],l=t[s];(l||0===l)&&((0,a["default"])(l)?e[s]=l.slice():(0,h["default"])(l)?i._overwriteTheme(l,u):e[s]=l)})},_pickValidTheme:function(t,e){var i={};return f["default"].THEME_PROPS_MAP[e].forEach(function(e){(0,u["default"])(t[e])&&(i[e]=t[e])}),i},_createComponentThemeWithSeriesName:function(t,e,i,n){var r=this,o={};return e=e||{},t.forEach(function(t){var a=e[t]||r._pickValidTheme(e,n);Object.keys(a).length?(o[t]=JSON.parse(JSON.stringify(_["default"][n])),r._overwriteTheme(a,o[t])):o[t]=JSON.parse(JSON.stringify(i))}),o},_makeEachSeriesColors:function(t,e,i){for(var n=[],r=t.length,o=i||0,a=0;a=r&&(o=0);return n},_setSeriesColors:function(t,e,i,n,r){var o=this,a=void 0,s=void 0,u=void 0,l=0;i=i||{},t.forEach(function(t){i[t]?(a=i[t].colors,u=!0):(a=i.colors||_["default"].series.colors,u=!1),s=o._getSeriesThemeColorCount(n[t],r),e[t].colors=o._makeEachSeriesColors(a,s,!u&&l),u||(l=(s+l)%a.length)})},_getSeriesThemeColorCount:function(t,e){var i=0;if(t&&t.length){var n=t[0]&&t[0].data&&t[0].data.length;i=e&&n?Math.max(t.length,t[0].data.length):t.length}return i},_initTheme:function(t,e,i,n,r){var o=void 0;return t!==f["default"].DEFAULT_THEME_NAME?(o=JSON.parse(JSON.stringify(_["default"])),this._overwriteTheme(e,o)):o=JSON.parse(JSON.stringify(e)),o.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,o.yAxis,"yAxis"),o.series=this._createComponentThemeWithSeriesName(i,e.series,o.series,"series"),this._setSeriesColors(i,o.series,e.series,n,r),o},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label]; return(0,p["default"])(t.yAxis,function(t){e.push(t.title,t.label)}),(0,p["default"])(t.series,function(t){e.push(t.label)}),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),i=t.chart.fontFamily;e.forEach(function(t){t.fontFamily||(t.fontFamily=i)})},_copySeriesColorTheme:function(t,e,i){e[i]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;(0,p["default"])(t.series,function(i,n){e._copySeriesColorTheme(i,t.legend,n),e._copySeriesColorTheme(i,t.tooltip,n)})},get:function(t,e,i,n){var r=v[t];if(!r)throw new Error("Not exist "+t+" theme.");var o=this._pickSeriesNames(e,i),a=this._initTheme(t,r,o,i,n);return this._inheritThemeFont(a,o),this._copySeriesColorThemeToOther(a),a}}},function(t,e){"use strict";e.__esModule=!0;var i="#000000",n="#ffffff",r="lighter",o="Arial",a=e.DEFAULT_LEGEND_LABEL_FONTCOLOR="#333",s="",u={tickColor:i,title:{fontSize:11,fontFamily:o,color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:o,color:"#333",fontWeight:"normal"}};e["default"]={chart:{background:{color:n,opacity:1},fontFamily:o},title:{fontSize:18,fontFamily:o,color:i,fontWeight:r},yAxis:u,xAxis:u,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:o,color:"#888"}},series:{label:{fontSize:11,fontFamily:o,color:i,fontWeight:r},colors:["#00a9ff","#ffb840","#ff5a46","#00bd9f","#785fff","#f28b8c","#989486","#516f7d","#29dbe3","#dddddd"],borderColor:s,borderWidth:s,selectionColor:s,startColor:"#FFE98A",endColor:"#D74177",overColor:s,dot:{fillColor:s,fillOpacity:1,strokeColor:s,strokeOpacity:s,strokeWidth:0,radius:6,hover:{fillColor:s,fillOpacity:1,strokeColor:"#fff",strokeOpacity:1,strokeWidth:4,radius:6}},ranges:[]},legend:{label:{fontSize:11,fontFamily:o,color:a,fontWeight:r}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}}},function(t,e){"use strict";e.__esModule=!0;var i={};e["default"]={get:function(t){var e=i[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){i[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(140),a=n(o),s=i(149),u=n(s),l=i(187),h=n(l),c=i(138),p=n(c),d=function f(t){var e=void 0;return(0,a["default"])(t)?(e=[],t.forEach(function(t,i){e[i]=f(t)})):(0,h["default"])(t)||(0,u["default"])(t)?e=t:(0,p["default"])(t)?(e={},Object.entries(t).forEach(function(t){var i=r(t,2),n=i[0],o=i[1];e[n]=f(o)})):e=t,e};e["default"]={deepCopy:d}},function(t,e){"use strict";function i(t){return t instanceof Function}t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=void 0;return t.length>0&&(e={},e.categories=[],e.series=[],e.categories=t.shift().slice(1),t.forEach(function(t){var i={name:t[0],data:t.slice(1)};e.series.push(i)})),e}function o(t){var e=[];if(t){var i=[],n=(0,p["default"])(t.getElementsByTagName("TR"));(0,u["default"])(n,function(t,e){var n=0===e?"TH":"TD",r=(0,p["default"])(t.getElementsByTagName(n)),o=(0,h["default"])(r,"innerText");i.push(o)}),i[0].length1,this.addComponents(),this._attachToEventBus(),this.componentManager.presetAnimationConfig(this.options.series.animation),this.options.usageStatistics&&(0,f["default"])("chart",N)}return t.prototype.destroy=function(){var t=this;this.eventBus.off(),this.chartContainer.outerHTML="",(0,p["default"])(this,function(e,i){t[i]=null})},t.prototype.selectSeries=function(t){var e=t.legendIndex,i=t.index,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.componentManager.get("mouseEventDetector").selectSeries({chartType:this.chartType,indexes:{groupIndex:i,index:e}},n)},t.prototype.unselectSeries=function(){this.componentManager.get("mouseEventDetector").unselectSeries()},t.prototype._attachToEventBus=function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},t.prototype._setOffsetProperty=function(t,e,i){(0,u["default"])(t[e])&&(t.offset=t.offset||{},t.offset[i]=t[e],delete t[e])},t.prototype._initializeOffset=function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},t.prototype._initializeTitleOptions=function(t){var e=this;if(t){var i=(0,a["default"])(t)?t:[t];i.forEach(function(t){var i=t.title;(0,h["default"])(i)&&(t.title={text:i}),e._initializeOffset(t.title)})}},t.prototype._initializeTooltipOptions=function(t){t.grouped=!!t.grouped,this._initializeOffset(t),delete t.position},t.prototype._initializeOptions=function(t){var e=M["default"].deepCopy(t),i={chartTypes:this.chartTypes,xAxis:{},series:{},tooltip:{},usageStatistics:!0,chartExportMenu:Object.assign({visible:!0},e.chartExportMenu),legend:Object.assign({visible:!0},e.legend)};delete e.chartExportMenu,delete e.legend,Object.assign(t,i,e),this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),this._initializeTooltipOptions(t.tooltip),this.options=t},t.prototype._createDataProcessor=function(t){var e=t.DataProcessor||b["default"],i=new e(t.rawData,this.chartType,t.options,this.seriesTypes);return i},t.prototype._createComponentManager=function(){return new x["default"]({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},t.prototype.addComponents=function(){},t.prototype.getScaleOption=function(){},t.prototype._buildBoundsAndScaleData=function(t,e){return k["default"].build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null,prevXAxisData:t,addingDataMode:e})},t.prototype.addDataRatios=function(){},t.prototype.readyForRender=function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},t.prototype.render=function(t){var e=C["default"].create("DIV","tui-chart "+this.className),i=this.componentManager,n=this.dataProcessor,r=n.getLegendVisibility(),o=E["default"].filterCheckedRawData(n.rawData,r),a=i.drawingToolPicker.getPaper(e,_["default"].COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(o),a.changeChartBackgroundColor(this.theme.chart.background.color),a.changeChartBackgroundOpacity(this.theme.chart.background.opacity),w["default"].renderFontFamily(e,this.theme.chart.fontFamily),C["default"].append(t,e);var s=this.readyForRender();w["default"].renderDimension(e,s.dimensionMap.chart),i.render("render",s,{checkedLegends:r},e),this.chartContainer=e,this.paper=a},t.prototype.protectedRerender=function(t,e){var i=this.dataProcessor;e||(e=E["default"].filterCheckedRawData(i.getCurrentData(),t)),this.dataProcessor.initData(e);var n=this.readyForRender();this.componentManager.render("rerender",n,{checkedLegends:t},this.chartContainer)},t.prototype.rerender=function(t,e){t=t||this.getCheckedLegend(),e=e||this.dataProcessor.getOriginalRawData();var i=e.series;e.series=Object.keys(i).reduce(function(e,n){var r=i[n],o=t[n];return e[n]=r.map(function(t,e){return t.visible=o[e],t}),e},{}),this.setData(e)},t.prototype.setData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._initializeRawData(t),n=this.dataProcessor,r=this.options,o=r.chartType,a=r.theme;n.initData(i,!0);var s=R["default"].get(a,o,i.series);this.theme=s,this.componentManager.presetBeforeRerender(),this.componentManager.presetForChangeData(s),this.componentManager.presetAnimationConfig(e),this.protectedRerender(n.getLegendVisibility())},t.prototype.getCheckedLegend=function(){var t=this.componentManager,e=this.dataProcessor,i=t.has("legend");return i?t.get("legend").getCheckedIndexes():e.getLegendVisibility()},t.prototype._initializeRawData=function(t){this.prevXAxisData=null;var e=M["default"].deepCopy(t),i=this.originalOptions,n=i.chartType,r=i.series;if("combo"!==n&&(0,a["default"])(e.series)){var o=e.series;e.series={},e.series[n]=o}return E["default"].updateRawSeriesDataByOptions(e,r),"boxplot"===n&&E["default"].appendOutliersToSeriesData(e),e},t.prototype.onChangeCheckedLegends=function(t,e,i){this.protectedRerender(t,e,i)},t.prototype.animateChart=function(){this.componentManager.execute("animateComponent")},t.prototype.on=function(t,e){_["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.on(_["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype.off=function(t,e){_["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.off(_["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype._updateChartDimension=function(t){var e=!1,i=this.options;return i.chart=i.chart||{},t.width&&t.width>0&&i.chart.width!==t.width&&(i.chart.width=t.width,e=!0),t.height&&t.height>0&&i.chart.height!==t.height&&(i.chart.height=t.height,e=!0),e},t.prototype.resize=function(t){var e=this.dataProcessor,i=e.getLegendVisibility();if(t){var n=this._updateChartDimension(t);if(n){var r=this.readyForRender(),o=r.dimensionMap.chart;w["default"].renderDimension(this.chartContainer,o),this.paper.resizeBackground(o.width,o.height),this.paper.setSize(o.width,o.height),this.componentManager.render("resize",r,{checkedLegends:i})}}},t.prototype.setTooltipAlign=function(t){this.componentManager.get("tooltip").setAlign(t)},t.prototype.setTooltipOffset=function(t){this.componentManager.get("tooltip").setOffset(t)},t.prototype.setTooltipPosition=function(t){this.componentManager.get("tooltip").setPosition(t)},t.prototype.resetTooltipAlign=function(){this.componentManager.get("tooltip").resetAlign()},t.prototype.resetTooltipOffset=function(){this.componentManager.get("tooltip").resetOffset()},t.prototype.resetTooltipPosition=function(){this.resetTooltipOffset()},t.prototype.showSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.showLabel()})},t.prototype.hideSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.hideLabel()})},t.prototype.addData=function(){},t.prototype.addPlotLine=function(){},t.prototype.addPlotBand=function(){},t.prototype.removePlotLine=function(){},t.prototype.removePlotBand=function(){},t.prototype._getSeriesData=function(t,e,i){var n={index:t,seriesIndex:e,outlierIndex:i};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(n)},t.prototype._findSeriesIndexByLabel=function(t,e){for(var i=this.dataProcessor.getLegendLabels(t),n=i?i.length:0,r=-1,o=0;o=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0})}},t}();e["default"]=F},function(t,e,i){"use strict";function n(t){var e=(new Date).getTime();return e-t>s}function r(t,e){var i="https://www.google-analytics.com/collect",r=location.hostname,s="event",u="use",l="TOAST UI "+t+" for "+r+": Statistics",h=window.localStorage.getItem(l);(o(window.tui)||window.tui.usageStatistics!==!1)&&(h&&!n(h)||(window.localStorage.setItem(l,(new Date).getTime()),setTimeout(function(){"interactive"!==document.readyState&&"complete"!==document.readyState||a(i,{v:1,t:s,tid:e,cid:r,dp:r,dh:t,el:t,ec:u})},1e3)))}var o=i(145),a=i(197),s=6048e5;t.exports=r},function(t,e,i){"use strict";function n(t,e){var i=document.createElement("img"),n="";return r(e,function(t,e){n+="&"+e+"="+t}),n=n.substring(1),i.src=t+"?"+n,i.style.display="none",document.body.appendChild(i),document.body.removeChild(i),i}var r=i(142);t.exports=n},function(t,e,i){"use strict";function n(){this.events=null,this.contexts=null}var r=i(199),o=i(146),a=i(156),s=i(138),u=i(140),l=i(187),h=i(139),c=/\s+/g;n.mixin=function(t){r(t.prototype,n.prototype)},n.prototype._getHandlerItem=function(t,e){var i={handler:t};return e&&(i.context=e),i},n.prototype._safeEvent=function(t){var e,i=this.events;return i||(i=this.events={}),t&&(e=i[t],e||(e=[],i[t]=e),i=e),i},n.prototype._safeContext=function(){var t=this.contexts;return t||(t=this.contexts=[]),t},n.prototype._indexOfContext=function(t){for(var e=this._safeContext(),i=0;e[i];){if(t===e[i][0])return i;i+=1}return-1},n.prototype._memorizeContext=function(t){var e,i;o(t)&&(e=this._safeContext(),i=this._indexOfContext(t),i>-1?e[i][1]+=1:e.push([t,1]))},n.prototype._forgetContext=function(t){var e,i;o(t)&&(e=this._safeContext(),i=this._indexOfContext(t),i>-1&&(e[i][1]-=1,e[i][1]<=0&&e.splice(i,1)))},n.prototype._bindEvent=function(t,e,i){var n=this._safeEvent(t);this._memorizeContext(i),n.push(this._getHandlerItem(e,i))},n.prototype.on=function(t,e,i){var n=this;a(t)?(t=t.split(c),h(t,function(t){n._bindEvent(t,e,i)})):s(t)&&(i=e,h(t,function(t,e){n.on(e,t,i)}))},n.prototype.once=function(t,e,i){function n(){e.apply(i,arguments),r.off(t,n,i)}var r=this;return s(t)?(i=e,void h(t,function(t,e){r.once(e,t,i)})):void this.on(t,n,i)},n.prototype._spliceMatches=function(t,e){var i,n=0;if(u(t))for(i=t.length;n0},n.prototype.getListenerLength=function(t){var e=this._safeEvent(t);return e.length},t.exports=n},function(t,e){"use strict";function i(t,e){var i,n,r,o,a=Object.prototype.hasOwnProperty;for(r=1,o=arguments.length;r2&&void 0!==arguments[2]?arguments[2]:{},n=i.index||0,r=Et[e],o=r.componentType;i.name=t,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes;var a=this._getOptionKey(o,t);i.theme=this._makeTheme(a,t),i.options=this._makeOptions(a,t,n),i.dataProcessor=this.dataProcessor,i.hasAxes=this.hasAxes,i.isVertical=this.isVertical,i.eventBus=this.eventBus,i.alternativeModel=this.alternativeModel;var s=r(i);s&&(s.componentName=t,s.componentType=o,this.components.push(s),this.componentMap[t]=s)},t.prototype.presetBeforeRerender=function(){this.componentMap.mouseEventDetector.zoomable&&this.componentMap.mouseEventDetector.presetBeforeRerender()},t.prototype.presetForChangeData=function(t){var e=this;this.theme=t,this.components.forEach(function(t){if(t.presetForChangeData){var i=t.componentType,n=t.componentName,r=e._getOptionKey(i,n);t.presetForChangeData(e._makeTheme(r,n))}})},t.prototype.presetAnimationConfig=function(t){var e=this;this.seriesTypes.forEach(function(i){(0,d["default"])(e.options.series[i])?e.options.series[i].animationDuration=e._getAnimationDuration(t):e.options.series.animationDuration=e._getAnimationDuration(t)})},t.prototype._getAnimationDuration=function(t){return(0,l["default"])(t)&&!t?0:(0,d["default"])(t)&&(0,c["default"])(t.duration)?t.duration:At["default"].getDefaultAnimationDuration(this.options.chartType)},t.prototype._makeOptions=function(t,e,i){var n=this.options[t];return n||"rightYAxis"!==t||(n=this.options.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(n=n[t]||n,(0,s["default"])(n)&&(n=n[i]||{}),!1)}),n},t.prototype._getOptionKey=function(t,e){return"axis"===t?e:t},t.prototype._makeTheme=function(t,e){var i=this.theme[t];return i||"rightYAxis"!==t||(i=this.theme.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(i=i[t],!1)}),i},t.prototype._makeDataForRendering=function(t,e,i,n,r){var o=Object.assign({paper:i},r);return n&&(Object.assign(o,n),o.layout={dimension:o.dimensionMap[t]||o.dimensionMap[e],position:o.positionMap[t]||o.positionMap[e]}),o},t.prototype.render=function(t,e,i,n){var r=this,o=this.components.map(function(o){var a=null;if(o[t]){var s=o.componentName,u=o.componentType,l=r.drawingToolPicker.getPaper(n,o.drawingType),h=r._makeDataForRendering(s,u,l,e,i),c=o[t](h);c&&!c.paper&&(a=c)}return a});n&&v["default"].append(n,o)},t.prototype.where=function(t){return this.components.filter(function(e){var i=!0;return Object.entries(t).forEach(function(t){var n=o(t,2),r=n[0],a=n[1];return e[r]!==a&&(i=!1),i}),i})},t.prototype.execute=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n3&&void 0!==arguments[3]?arguments[3]:0,r=this.isYAxis&&this.data.aligned,o=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&o&&o.min<0,s=c["default"].isBarTypeChart(this.dataProcessor.chartType),u=this.dataProcessor.getOption("series")||{},l=u.diverging;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(t,n),this.options.showLabel!==!1&&this._renderLabelArea(t,e,i,n),r||this._renderTickArea(t,e,n),a&&s&&!l&&this._renderNegativeStandardsLine(t,n,this.dimensionMap.series,o)},t.prototype._renderDividedAxis=function(t){var e=t.width,i=this.data,n=i.tickCount,r=i.labels,o=Math.round(e/2),a=e-o-1,s=parseInt(n/2,10)+1,u=r.slice(0,s),l=r.slice(s-1,n),h=o/s,c=o+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=h,this._renderChildContainers(o,s,u,0),this._renderChildContainers(a+1,s,l,c)},t.prototype._renderNotDividedAxis=function(t){var e=t.width,i=t.height,n=this.data,r=n.positionRatio,o=n.tickCount,a=n.labels,s=this.isYAxis,u=s?i:e,l=0;r&&(l=u*r),this._renderChildContainers(u,o,a,l)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,i=this.options,n=i.divided,r=i.isCenter,o=t.width;this.isLabelAxis=e,n?(this.containerWidth=o+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),o=this.containerWidth):(o+=r?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.dimensionMap,n=t.limitMap,r=t.axisDataMap; this.layout=e,this.dimensionMap=i,this.limitMap=n,this.data=r[this.componentName],this.options=this.data.options},t.prototype.render=function(t){var e=t.paper;this.paper=e,this.axisSet=e.set(),this._setDataForRendering(t),this._renderAxisArea()},t.prototype.rerender=function(t){this.axisSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._getOtherSideDimension=function(){return this.dimensionMap[this.isYAxis?"xAxis":"yAxis"]},t.prototype._renderTitleArea=function(t,e){var i=this.options.title,n=void 0===i?{}:i,r=this.dataProcessor.getOption("xAxis"),o=this.dataProcessor.getOption("yAxis"),a=this.dataProcessor.getOption("series")||{};n.text&&this.graphRenderer.renderTitle(this.paper,{text:n.text,offset:n.offset,theme:this.theme.title,rotationInfo:{isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter,isColumnType:c["default"].isColumnTypeChart(this.dataProcessor.chartType,this.dataProcessor.seriesTypes),isDiverging:a.diverging,isYAxisCenter:o&&"center"===o.align,isXAxisTitleLeft:r&&r.title&&"left"===r.title.align},layout:this.layout,areaSize:t,additionalWidth:e,otherSideDimension:this._getOtherSideDimension(),tickCount:this.data.tickCount,set:this.axisSet})},t.prototype._renderTickLine=function(t,e,i){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:i,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},t.prototype._renderTicks=function(t,e,i,n){var r=this.theme.tickColor,o=this.data,a=o.remainLastBlockInterval,s=o.sizeRatio,u=void 0===s?1:s,l=o.tickCount,h=o.isPositionRight,c=a?t:0,p=this.isYAxis,f=this.data.options,g=f.isCenter,m=f.divided,y=d["default"].makeTickPixelPositions(t*u,e,0,c),_=this.paperAdditionalHeight+1,v=this.paperAdditionalWidth,x=c?l+1:l;y.length=x,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:y,isVertical:p,isCenter:g,isDivided:m,additionalSize:n,additionalWidth:v,additionalHeight:_,otherSideDimension:this._getOtherSideDimension(),isPositionRight:h,tickColor:r,set:this.axisSet})},t.prototype._renderNegativeStandardsLine=function(t,e,i,n){this.graphRenderer.renderStandardLine({areaSize:t,isVertical:this.isYAxis,layout:this.layout,paper:this.paper,set:this.axisSet,seriesDimension:i,axisLimit:n})},t.prototype._renderTickArea=function(t,e,i){var n=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,n,i||0),this._renderTicks(t,e,n,i||0)},t.prototype._renderLabelArea=function(t,e,i,n){var r=this.data,o=r.sizeRatio,a=void 0===o?1:o,s=r.remainLastBlockInterval,u=s?t:0,l=d["default"].makeTickPixelPositions(t*a,e,0,u),h=l[1]-l[0];this._renderLabels(l,i,h,n||0)},t.prototype._renderRotationLabels=function(t,e,i,n){var r=this,o=this.graphRenderer,a=this.isYAxis,s=this.theme.label,u=this.data.degree,l=i/2,h=i/x,c=this.layout.position,p=c.top,d=c.left,f=p+T,g=d,m=this.options.labelMargin||0;t.forEach(function(t,c){var p=t+(n||0),d={};a?(d.top=p+l,d.left=i+m):(d.top=f+m,d.left=g+p+h),o.renderRotatedLabel({degree:u,labelText:e[c],paper:r.paper,positionTopAndLeft:d,set:r.axisSet,theme:s})},this)},t.prototype._renderNormalLabels=function(t,e,i,n){var r=this,o=this.graphRenderer,a=this.isYAxis,s=this.isLabelAxis,u=this.dataProcessor,l=this.layout,h=this.data.isPositionRight,p=this.theme.label,d=this.options,f=d.labelMargin,g=void 0===f?0:f,m=d.pointOnColumn,_=d.isCenter,x=d.maxWidth,T=c["default"].isLineTypeChart(u.chartType,u.seriesTypes),b=T&&m,A=c["default"].isAutoTickInterval(this.options.tickInterval);t.forEach(function(u,c){var d=u+n,f=i/2,m=r._isOverLapXAxisLabel(e[c],u,t[c+1]),E={};if(!(d<0||!a&&A&&m)){E=a?r._getYAxisLabelPosition(l,{labelPosition:d,isCategoryLabel:s,halfLabelDistance:f,isPositionRight:h}):r._getXAxisLabelPosition(l,{labelMargin:g,labelHeight:y["default"].getRenderedLabelsMaxHeight(e,p),labelPosition:d,isCategoryLabel:s,isLineTypeChart:T,isPointOnColumn:b,halfLabelDistance:f}),E.top=Math.round(E.top),E.left=Math.round(E.left);var D=e[c];x&&(D=v["default"].getEllipsisText(e[c],x,p)),o.renderLabel({isPositionRight:h,isVertical:a,isCenter:_,labelSize:i,labelText:D,paper:r.paper,positionTopAndLeft:E,set:r.axisSet,theme:p})}},this)},t.prototype._isOverLapXAxisLabel=function(t,e,i){var n=y["default"].getRenderedLabelWidth(t);return!(0,s["default"])(i)&&i-e0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t},t.prototype._renderPlotArea=function(t){var e=this.layout.dimension;v["default"].isLineTypeChart(this.chartType,this.chartTypes)&&this._renderOptionalLines(t,e),this.options.showLine&&this._renderPlotLines(t,e)},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap,this.paper=t.paper)},t.prototype.render=function(t){var e=t&&t.paper||this.paper;this.plotSet=e.set(),this.additionalPlotSet=e.set(),this._setDataForRendering(t),this._renderPlotArea(this.paper),this.additionalPlotSet.toBack(),this.plotSet.toBack(),e.pushDownBackgroundToBottom()},t.prototype.rerender=function(t){this.additionalPlotSet.remove(),this.plotSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._makeVerticalLineTemplateParams=function(t){return Object.assign({className:"vertical",positionType:"left",width:"1px"},t)},t.prototype._makeHorizontalLineTemplateParams=function(t){return Object.assign({className:"horizontal",positionType:"bottom",height:"1px"},t)},t.prototype._renderLine=function(t,e){var i=this.layout,n=i.position.top,r=i.dimension.height,o="M"+t+","+n+"V"+(n+r),a=this.paper.path(o);return a.attr({opacity:e.opacity||1,stroke:e.color}),this.additionalPlotSet.push(a),a},t.prototype._renderBand=function(t,e,i){var n=this.layout,r=n.position,o=n.dimension,a=o.width-t+r.left,s=e<0?a:e,u=this.paper.rect(t,r.top,s,o.height);return u.attr({fill:i.color,opacity:i.opacity||1,stroke:i.color}),this.additionalPlotSet.push(u),u},t.prototype._createOptionalLineValueRange=function(t){var e=t.range||[t.value];return v["default"].isDatetimeType(this.xAxisTypeOption)&&(e=e.map(function(t){var e=new Date(t);return e.getTime()||t})),e},t.prototype._createOptionalLinePosition=function(t,e,i){var n=t.dataMin,r=t.distance,o=(i-n)/r,a=o*e;return 1===o&&(a-=1),a<0&&(a=null),a},t.prototype._calculateXAxisLabelDistance=function(t,e){var i=e.sizeRatio,n=void 0===i?1:i,r=e.tickCount,o=e.remainLastBlockInterval,a=o?t:0,s=T["default"].makeTickPixelPositions(t*n,r,0,a);return s[1]-s[0]},t.prototype._createOptionalLinePositionWhenLabelAxis=function(t,e,i){var n=this.dataProcessor,r=v["default"].isLineTypeChart(n.chartType,n.seriesTypes),o=r&&e.options.pointOnColumn,a=n.findCategoryIndex(i),s=this._calculateXAxisLabelDistance(t,e)/2,u=null,l=void 0;if(!(0,d["default"])(a)){var h=n.getCategoryCount(),c=o?h:h-1;l=0===a?0:a/c,u=l*t,o&&(u+=s)}return 1===l&&(u-=1),u},t.prototype._createOptionalLinePositionMap=function(t,e,i){var n=this.dataProcessor.getCategories(),r=n.length,o=this.dataProcessor.valuesMap.linex,a=this._createOptionalLineValueRange(t),s=void 0,u=void 0;if(e.isLabelAxis?(s=this._createOptionalLinePositionWhenLabelAxis(i,e,a[0]),u=this._createOptionalLinePositionWhenLabelAxis(i,e,a[1])):(s=this._createOptionalLinePosition(e,i,a[0]),u=a[1]&&this._createOptionalLinePosition(e,i,a[1])),(0,d["default"])(s)){var l=r?n[0]:o[0];s=this._isBeforeVisibleValue(a[0],l)?0:-1}if((0,d["default"])(u)||u>i){var h=r?n[r-1]:o[o.length-1];u=this._isAfterVisibleValue(a[1],h)?i:-1}return{start:s,end:u}},t.prototype._isBeforeVisibleValue=function(t,e){var i=this.dataProcessor;if(!(0,c["default"])(t))return!1;if(v["default"].isDatetimeType(this.xAxisTypeOption))return t=0&&ne;var n=i.findAbsoluteCategoryIndex(t),r=i.findAbsoluteCategoryIndex(e);return n>=0&&n>r},t.prototype._renderOptionalLine=function(t,e,i,n){var r=this._createOptionalLinePositionMap(n,t,e),o=void 0;return r.start>=0&&r.start<=e&&(i.width=1,i.color=n.color||"transparent",i.opacity=n.opacity,o=this._renderLine(r.start+this.layout.position.left,i)),o},t.prototype._makeOptionalBand=function(t,e,i,n){var r=this,a=n.range;a&&a.length&&this._makeRangeTo2DArray(n);var s=n.range.map(function(i){return r._createOptionalLinePositionMap({range:i},t,e)});return n.mergeOverlappingRanges&&(s.sort(o),s=this._mergeOverlappingPositionMaps(s)),s.map(function(t){var o=t.start>=0&&t.start<=e,a=void 0;if(o&&t.end>=0){i.color=n.color||"transparent",i.opacity=n.opacity;var s=t.end-t.start;a=r._renderBand(t.start+r.layout.position.left,s,i)}return a},this)},t.prototype._makeOptionalLines=function(t,e){var i=e.width,n=e.height,r=this.axisDataMap.xAxis,o=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._renderOptionalLine.bind(this,r,i,o);return t.map(a)},t.prototype._makeOptionalBands=function(t,e){var i=e.width,n=e.height,r=this.axisDataMap.xAxis,o=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._makeOptionalBand.bind(this,r,i,o);return t.map(a)},t.prototype._renderOptionalLines=function(t,e){this.optionalBands=this._makeOptionalBands(this.options.bands,e),this.optionalLines=this._makeOptionalLines(this.options.lines,e)},t.prototype._renderVerticalLines=function(t){var e=this,i=t.width,n=this._makeHorizontalPositions(i),r=this.layout,o=this.theme.lineColor,a=r.position,s=a.top,u=a.left;n.forEach(function(t){var i="M"+(t+u)+","+s+"V"+(s+r.dimension.height),n=e.paper.path(i);n.attr({stroke:o,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(n)})},t.prototype._renderHorizontalLines=function(t){var e=this,i=t.height,n=this._makeVerticalPositions(i),r=this.layout,o=this.theme.lineColor,a=r.position,s=a.left,u=a.top,l=n.length>1?n[1]-n[0]:0;n.forEach(function(t,i){var n="M"+s+","+(l*i+u)+"H"+(s+r.dimension.width),a=e.paper.path(n);a.attr({stroke:o,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(a)})},t.prototype._renderPlotLines=function(t,e){this.options.hideLine||(this._renderVerticalLines(e),this._renderHorizontalLines(e))},t.prototype._makeVerticalPositions=function(t){var e=this.axisDataMap,i=e.yAxis||e.rightYAxis,n=T["default"].makeTickPixelPositions(t,i.validTickCount);return n.shift(),n},t.prototype._makeDividedPlotPositions=function(t,e){var i=this.dimensionMap.yAxis.width;e=parseInt(e/2,10)+1,t-=i;var n=Math.round(t/2),r=t-n,o=T["default"].makeTickPixelPositions(n,e),a=T["default"].makeTickPixelPositions(r,e,n+i);return o.pop(),a.shift(),o.concat(a)},t.prototype._makeHorizontalPositions=function(t){var e=this.axisDataMap.xAxis.validTickCount,i=void 0;return this.options.divided?i=this._makeDividedPlotPositions(t,e):(i=T["default"].makeTickPixelPositions(t,e),i.shift()),i},t.prototype.addPlotLine=function(t){this.options.lines.push(t),this.rerender()},t.prototype.addPlotBand=function(t){this.options.bands.push(t),this.rerender()},t.prototype.removePlotLine=function(t){this.options.lines=this.options.lines.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.removePlotBand=function(t){this.options.bands=this.options.bands.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.animateForAddingData=function(t){var e=this,i=this.options.lines,n=this.options.bands;this.dataProcessor.isCoordinateType()||t.shifting&&(this._animateItemForAddingData(this.optionalLines,t,function(t){i.splice(t,1)}),this.optionalBands.forEach(function(i,r){e._animateItemForAddingData(i,t,function(t){n[r].range.splice(t,1)})}))},t.prototype._animateItemForAddingData=function(t,e,i){var n=this;t.forEach(function(t,r){var o=t.getBBox();o.x-e.tickSize0&&p<180?"end":p>180&&p<360?"start":"middle",u.push({left:d.x,top:i-d.y,anchor:f})}return u}function s(t){return new x(t)}e.__esModule=!0,e["default"]=s;var u=i(205),l=n(u),h=i(173),c=n(h),p=i(154),d=n(p),f=i(182),g=n(f),m=d["default"].COMPONENT_TYPE_RAPHAEL,y=d["default"].RADIAL_PLOT_PADDING,_=d["default"].RADIAL_MARGIN_FOR_CATEGORY,v=d["default"].RADIAL_CATEGORY_PADDING,x=function(){function t(e){r(this,t),this.className="tui-chart-plot-area",this.options=Object.assign({type:"spiderweb"},e.options),this.theme=e.theme||{},this.graphRenderer=g["default"].get(m,"radialPlot"),this.drawingType=m}return t.prototype._renderPlotArea=function(t,e,i,n){var r={paper:t,layout:e,plotPositions:i,labelData:n,theme:this.theme,options:this.options};return this.graphRenderer.render(r)},t.prototype._makePositions=function(t,e){var i=e.dimension,n=e.position,r=n.left,a=n.top,s=i.width,u=i.height;s=s-y-_,u=u-y-_;var l=c["default"].sum([s/2,y/2,_/2,r]),h=u/2-y/2-_/2-a,p=t.yAxis.tickCount,d=t.xAxis.labels.length;return o({width:s,height:u,centerX:l,centerY:h,angleStepCount:d,stepCount:p})},t.prototype._makeCategoryPositions=function(t,e){var i=e.dimension,n=e.position,r=n.left,o=n.top,s=i.width,u=i.height;s=s-y-v,u=u-y-v;var l=c["default"].sum([s/2,y/2,v/2,r]),h=u/2-y/2-v/2-o,p=t.xAxis.labels.length;return a({width:s,height:u,centerX:l,centerY:h,angleStepCount:p})},t.prototype._makeLabelData=function(t,e,i){for(var n=t.xAxis.labels,r=t.yAxis.labels,o=this._makeCategoryPositions(t,e),a=[],s=[],u=0;u0?t[n][0]:"",a=t[n].length>1?t[n][1]:"";r=o+"~"+a}i.push(r)}return i}function l(t,e){for(var i=[],n=0;n",(0,E["default"])(t,function(t,r){var o=0!==i||0===r?' class="number"':"",a="<"+n+o+">"+t+"";e+=a}),e+=""}),e+=""}function f(t){var e=k["default"].oneLineTrim(m,d(t));return e}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.lineDelimiter,n=void 0===i?"\n":i,r=e.itemDelimiter,o=void 0===r?",":r,a=t.length-1,s="";return(0,C["default"])(t,function(t,e){var i=t.length-1;(0,C["default"])(t,function(t,e){var n=(0,b["default"])(t)?t:'"'+t+'"';s+=n,e\n \n \n \n \n \n \n ',"\n \n "],['\n \n \n \n \n \n \n ',"\n \n "]),y=i(140),_=n(y),v=i(146),x=n(v),T=i(150),b=n(T),A=i(139),E=n(A),D=i(141),C=n(D),S=i(209),w=n(S),L=i(154),M=n(L),P=i(148),k=n(P),O={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv;charset=utf-8,%EF%BB%BF"},R={xls:f,csv:g},I=[].concat(o(M["default"].DATA_EXTENSIONS)),B={downloadData:function(t,e,i,n){var r=a(i),o=O[e].replace(/(data:|;base64,|,%EF%BB%BF)/g,""),s=R[e](r,n);this._isNeedDataEncodeing()&&("csv"!==e&&(s=window.btoa(unescape(encodeURIComponent(s)))),s=O[e]+s),w["default"].execDownload(t,e,s,o)},_isNeedDataEncodeing:function(){var t=(0,x["default"])(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob;return!(e||!t)},getExtensions:function(){return I}};Object.assign(B,{_makeCsvBodyWithRawData:g,_makeXlsBodyWithRawData:f,_get2DArrayFromRawData:a,_get2DArrayFromBulletRawData:h,_get2DArrayFromHeatmapRawData:p,_makeTCellsFromBulletRanges:u,_makeTCellsFromBulletMarkers:l,_makeTHeadForBullet:s}),e["default"]=B},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(){var t=(0,c["default"])(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob,i=void 0;return e?i="msSaveOrOpenBlob":t&&(i="downloadAttribute"),i}function o(t){for(var e=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),i=1024,n=atob(t.substr(t.indexOf(",")+1)),r=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.legendModel=new y["default"]({theme:this.theme,labels:this.dataProcessor.getLegendLabels(),legendData:this.dataProcessor.getLegendData(),seriesTypes:this.seriesTypes,chartType:this.chartType})},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.paper=t.paper)},t.prototype._render=function(t){this._setDataForRendering(t);var e=this._renderLegendArea(t.paper),i=e.legendSet,n=e.paginationElem;this.legendSet=i,this.paginationArea=n},t.prototype.render=function(t){this._render(t),this._listenEvents()},t.prototype.rerender=function(t){this.legendSet.remove(),this.paginationArea.forEach(function(t){return t.remove()}),this._render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype._getLegendRenderingData=function(t,e,i){var n=this,r=(T["default"].isBarTypeChart(this.chartType)||T["default"].isBoxplotChart(this.chartType))&&this.dataProcessor.options.series.colorByPoint,o=t.map(function(t,o){var a=n.options.showCheckbox===!1?null:{checked:n.legendModel.isCheckedIndex(o)},s=t.label;return n.options.maxWidth&&(s=A["default"].getEllipsisText(s,n.options.maxWidth,n.theme.label)),{checkbox:a,iconType:t.chartType||"rect",colorByPoint:r,index:o,theme:t.theme,label:s,labelHeight:e,labelWidth:i[o],isUnselected:n.legendModel.isUnselectedIndex(o)}});return(T["default"].isAreaChart(this.chartType)||T["default"].isColumnChart(this.chartType))&&(0,c["default"])(this.dataProcessor.options.series.stack)&&"top"!==this.options.align&&"bottom"!==this.options.align&&o.reverse(),o},t.prototype._renderLegendArea=function(t){var e=this.legendModel.getData(),i=this.graphRenderer,n=T["default"].isHorizontalLegend(this.options.align),r=this.layout.position,o=i.makeLabelWidths(e,this.theme.label,this.options.maxWidth),a=e[0]?e[0].theme:{},s=i.getRenderedLabelHeight("DEFAULT_TEXT",a)-1,u=o.length,l=Math.max(E,s),h=(D+l)*(n?1:u),c=r.top,p=r.left;return T["default"].isLegendAlignLeft(this.options.align)||(p+=C),i.render({paper:t,legendData:this._getLegendRenderingData(e,s,o),isHorizontal:n,position:{left:p,top:c},dimension:{height:h,width:this.layout.dimension.width},labelTheme:this.theme.label,labelWidths:o,eventBus:this.eventBus})},t.prototype._fireChangeCheckedLegendsEvent=function(){this.eventBus.fire("changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireChangeCheckedLegendsPublicEvent=function(){this.eventBus.fire(S+"changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireSelectLegendEvent=function(t){var e=this.legendModel.getSelectedIndex(),i=(0,s["default"])(e)?e:t.seriesIndex;this.eventBus.fire("selectLegend",t.chartType,i)},t.prototype._fireSelectLegendPublicEvent=function(t){var e=t.label,i=t.index,n=t.chartType;this.eventBus.fire(S+"selectLegend",{legend:e,chartType:n,index:i})},t.prototype._selectLegend=function(t){var e=this.legendModel.getDatum(t);this.legendModel.toggleSelectedIndex(t),(0,s["default"])(this.legendModel.getSelectedIndex())||this.legendModel.isCheckedSelectedIndex()||(this.legendModel.checkSelectedIndex(),this._fireChangeCheckedLegendsEvent()),this.dataProcessor.selectLegendIndex=this.legendModel.getSelectedIndex(),this.graphRenderer.selectLegend(this.dataProcessor.selectLegendIndex,this.legendSet),this._fireSelectLegendEvent(e),this._fireSelectLegendPublicEvent(e)},t.prototype._getCheckedIndexes=function(){var t=[];return this.legendModel.checkedWholeIndexes.forEach(function(e,i){e&&t.push(i)}),t},t.prototype.getCheckedIndexes=function(){return this.legendModel.getCheckedIndexes()},t.prototype._checkLegend=function(){var t=this.legendModel.getSelectedDatum();this.legendModel.isCheckedSelectedIndex()||this.legendModel.updateSelectedIndex(null),this._fireChangeCheckedLegendsEvent(),this._fireChangeCheckedLegendsPublicEvent(),t&&this._fireSelectLegendEvent(t)},t.prototype._checkboxClick=function(t){this.legendModel.toggleCheckedIndex(t);var e=this._getCheckedIndexes();e.length>0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},t.prototype._labelClick=function(t){this._selectLegend(t)},t.prototype._listenEvents=function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)},t}();d["default"].mixin(w),o.componentType="legend",o.Legend=w},function(t,e,i){"use strict";function n(t){return!r(t)}var r=i(214);t.exports=n},function(t,e,i){"use strict";function n(t){return a(t)&&""===t}function r(t){var e;for(e in t)if(t.hasOwnProperty(e))return!0;return!1}function o(t){return!(s(t)&&!n(t))||(u(t)||l(t)?0===t.length:!(h(t)&&!c(t))||!r(t))}var a=i(156),s=i(146),u=i(140),l=i(215),h=i(138),c=i(187);t.exports=o},function(t,e,i){"use strict";function n(t){var e=r(t)&&("[object Arguments]"===Object.prototype.toString.call(t)||!!t.callee);return e}var r=i(146);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e5;n=o?n.substr(0,4):String(r);var a=n+" % "||"";return e.ratioLabel=i+a,e.label=t.tooltipLabel||(t.label?t.label:""),e}function o(t){var e=t.chartOptions.chartType,i=t.seriesTypes,n=t.chartOptions.xAxis,o=[],a=void 0,u=Object.values(t.chartTheme.legend).filter(function(t){return(0,g["default"])(t.colors)});return u.forEach(function(t){o=o.concat(t.colors)}),a="map"===e?c["default"]:t.options.grouped?l["default"]:s["default"],("pie"===e||d["default"].isPieDonutComboChart(e,i))&&(t.labelFormatter=r),t.chartType=e,t.chartTypes=i,t.xAxisType=n.type,t.dateFormat=n.dateFormat,t.colors=o,a(t)}e.__esModule=!0,e["default"]=o;var a=i(220),s=n(a),u=i(225),l=n(u),h=i(227),c=n(h),p=i(164),d=n(p),f=i(140),g=n(f);o.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new D(t)}e.__esModule=!0,e["default"]=s;var u=i(140),l=n(u),h=i(150),c=n(h),p=i(152),d=n(p),f=i(221),g=n(f),m=i(222),y=n(m),_=i(154),v=n(_),x=i(164),T=n(x),b=i(223),A=n(b),E="#aaa",D=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e){var i=this._getTooltipTemplate(e);return i(Object.assign({categoryVisible:t?"show":"hide",category:t},e))},e.prototype._getTooltipTemplate=function(t){var e=A["default"].tplDefault;return T["default"].isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):T["default"].isPieChart(this.chartType)||T["default"].isPieDonutComboChart(this.chartType,this.chartTypes)?e=A["default"].tplPieChart:this.dataProcessor.coordinateType?e=A["default"].tplCoordinatetypeChart:T["default"].isBulletChart(this.chartType)?e=A["default"].tplBulletChartDefault:T["default"].isHeatmapChart(this.chartType)&&(e=A["default"].tplHeatmapChart),e},e.prototype._getBoxplotTooltipTemplate=function(t){var e=A["default"].tplBoxplotChartDefault;return(0,c["default"])(t.outlierIndex)&&(e=A["default"].tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},e.prototype._makeHtmlForValueTypes=function(t,e){return e.map(function(e){return t[e]?""+e+''+t[e]+"":""}).join("")},e.prototype._makeSingleTooltipHtml=function(t,e){var i=e.groupIndex,n=this._findTooltipData(t,e),r=this._findTooltipColor(t,e,n);return T["default"].isBoxplotChart(this.chartType)&&(0,c["default"])(e.outlierIndex)&&(n.outlierIndex=e.outlierIndex),this.colorSpectrum&&(r=this.colorSpectrum.getColor(n.colorRatio||n.ratio)),n.color=r,n.chartType=this.chartType,n.cssText="background-color: "+r,n=Object.assign({suffix:this.suffix},n),n.valueTypes=this._makeHtmlForValueTypes(n,["x","y","r"]),this.templateFunc(n.category,n,this.getRawCategory(i))},e.prototype._findTooltipData=function(t,e){var i=this.data[t],n=e.groupIndex;return T["default"].isRadialChart(t)&&i.length===n&&(n=0),Object.assign({},(0,d["default"])(i,n,e.index))},e.prototype._findTooltipColor=function(t,e,i){var n=T["default"].isBarTypeChart(this.chartType),r=T["default"].isBoxplotChart(this.chartType),o=(n||r)&&this.dataProcessor.options.series.colorByPoint,a=e.groupIndex,s=e.index;return T["default"].isBulletChart(this.chartType)?s=a:T["default"].isTreemapChart(this.chartType)&&(s=i.tooltipColorIndex),o?E:this.tooltipColors[t][s]},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=v["default"].TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=v["default"].TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},e.prototype._makeShowTooltipParams=function(t,e){var i=t.index,n=this.dataProcessor.getLegendItem(i);if(!n)return null;var r=n.chartType,o=n.label,a=Object.assign({chartType:r,legend:o,legendIndex:i,index:t.groupIndex},e);return T["default"].isBoxplotChart(r)&&(0,c["default"])(t.outlierIndex)&&(a.outlierIndex=t.outlierIndex),a},e.prototype._makeTooltipDatum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],n=i.tooltipLabel,r=this.labelFormatter,o={legend:t,label:n||(i.label?i.label:""),category:e};return r&&(o=r(i,o,"")),o.category=e,Object.assign(o,i.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=T["default"].isTreemapChart(this.chartType),n={},r={};return(0,l["default"])(e)?n[this.chartType]=e:n=e,this.dataProcessor.eachBySeriesGroup(function(e,i,o){o=o||t.chartType;var a=T["default"].isBulletChart(o),s=e.map(function(e,r){var s=t.dataProcessor.makeTooltipCategory(i,r,t.isVertical),u=a?i:r;return e?t._makeTooltipDatum(n[o][u],s,e):null});r[o]||(r[o]=[]),r[o].push(s)},i),r},e}(g["default"]);y["default"].mixin(D),s.componentType="tooltip",s.NormalTooltip=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(146),a=n(o),s=i(135),u=n(s),l=i(186),h=n(l),c=i(154),p=n(c),d=i(155),f=n(d),g=i(164),m=n(g),y=i(148),_=n(y),v=function(){function t(e){r(this,t);var i=m["default"].isPieChart(e.chartType);this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.dataProcessor=e.dataProcessor,this.options=e.options,this.colors=e.colors,this.theme=e.theme,this.originalTheme=h["default"].deepCopy(e.theme),this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.labelTheme=e.labelTheme,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.labelFormatter=e.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?" "+this.options.suffix:"",this.templateFunc=this.options.template||this._makeTooltipHtml.bind(this),this.animationTime=i?p["default"].TOOLTIP_PIE_ANIMATION_TIME:p["default"].TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=p["default"].COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.originalTheme=h["default"].deepCopy(t)},t.prototype._attachToEventBus=function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},t.prototype._makeTooltipHtml=function(){},t.prototype._setDefaultTooltipPositionOption=function(){},t.prototype._saveOriginalPositionOptions=function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},t.prototype.makeLineLegendIcon=function(t){for(var e=t.length,i=0;i-1?r-=o+a:e.indexOf("center")>-1&&o?r-=o/2:r+=a,r},_makeTopPositionOfNotBarChart:function(t,e,i,n){var r=t,o=i||0;return e.indexOf("bottom")>-1?r+=o+n:e.indexOf("middle")>-1&&o?r+=o/2:r-=o+s["default"].TOOLTIP_GAP,r},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,n=t.dimension,r=t.alignOption,o=void 0===r?"":r,a=n.width-(e.width||0),u=e.width?0:s["default"].TOOLTIP_GAP,l=n.height,h=e.left-this.layout.position.left+i.left,c=e.top-this.layout.position.top+i.top-s["default"].TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(h,o,a,u),top:this._makeTopPositionOfNotBarChart(c,o,l,u)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},Object.assign(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("left")>-1?n-=i:e.indexOf("center")>-1?n-=i/2:n+=s["default"].TOOLTIP_GAP,n},_makeTopPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("top")>-1?n-=i:e.indexOf("middle")>-1&&(n-=i/2),n},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,r=t.dimension,o=t.alignOption,a=void 0===o?"":o,s=r.height-(i.height||0),u=r.width,l=i.left+i.width+n.left-e.left,h=i.top+n.top-e.top;return{left:this._makeLeftPositionForBarChart(l,a,u),top:this._makeTopPositionForBarChart(h,a,s)}},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,r=t.dimension,o=d["default"].getRenderedLabelHeight(s["default"].MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-r.width)/2+n.left-e.left,top:i.top+i.height/2-o+n.top-e.top}},_adjustPosition:function(t,e){var i=this.dimensionMap.chart,n=this.layout.position; return e.left=Math.max(e.left,-n.left),e.left=Math.min(e.left,i.width-n.left-t.width),e.top=Math.max(e.top,-n.top),e.top=Math.min(e.top,i.height-n.top-t.height),e},_makeTooltipPosition:function(t){var e={};if(t.mousePosition)e=this._makeTooltipPositionToMousePosition(t);else{var i=void 0,n=void 0,r=void 0;l["default"].isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),i="width",n="left",r=1):l["default"].isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),i="height",n="top",r=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:i,positionType:n,addPadding:r})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var i=e.bound,n=e.sizeType,r=e.positionType,o=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(o.groupIndex,o.index,a),u=l["default"].isBarChart(this.chartType)?-1:1;if(s<0){var h=e.dimension[n],c=i[n],p=t[r]+(c+h)*u;t[r]=p}return t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,i){var n=this.tooltipContainer.parentNode.getBoundingClientRect(),r=e.indexes,o=this._getIndexesCustomAttribute(t),a=this.options.offset||{},u={},l=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-n.left+s["default"].CHART_PADDING,top:e.mousePosition.top-n.top+s["default"].CHART_PADDING}),(this._isChangedIndexes(o,r)||l!==e.chartType)&&this.eventBus.fire("hoverOffSeries",o,l),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,r),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,r),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(r,e.silent),c["default"].addClass(t,"show"),u.left=a.x||0,u.top=a.y||0;var h=this._makeTooltipPosition(Object.assign({dimension:this.getTooltipDimension(t),positionOption:u,alignOption:this.options.align||""},e));this._moveToPosition(t,h,i),this.eventBus.fire("hoverSeries",r,e.chartType),this._fireAfterShowTooltipPublicEvent(r,{element:t,position:h},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){if(!e){var i=this._makeShowTooltipParams(t);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeShowTooltip",i)}},_fireAfterShowTooltipPublicEvent:function(t,e,i){if(!i){var n=this._makeShowTooltipParams(t,e);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"afterShowTooltip",n)}},_executeHidingTooltip:function(t){c["default"].removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,i){var n=this,r=this._getIndexesCustomAttribute(t),o=t.getAttribute("data-chart-type"),a=!(!i||!i.silent);l["default"].isChartToDetectMouseEventOnSeries(o)?(this.eventBus.fire("hoverOffSeries",r,o),this._fireBeforeHideTooltipPublicEvent(r,a),this._executeHidingTooltip(t)):o&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",r,o),this._isChangedIndexes(this.prevIndexes,r)&&delete this.prevIndexes,setTimeout(function(){n._isShowedTooltip(t)||(n._fireBeforeHideTooltipPublicEvent(r,a),n._executeHidingTooltip(t))},s["default"].HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){var i=void 0;e||this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeHideTooltip",i)},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=s["default"].TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){Object.assign(t.prototype,this)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(224),o=n(r),a={HTML_DEFAULT_TEMPLATE:'
\n
{{ category }}
\n
\n \n {{ legend }}\n {{ label }}{{ suffix }}\n
\n
',HTML_PIE_TEMPLATE:'
\n
{{ category }}
\n
\n \n {{ legend }}\n {{ ratioLabel }} ( {{ label }} {{ suffix }})\n
\n
',HTML_COORDINATE_TYPE_CHART_TEMPLATE:'
\n
\n \n {{ category }}\n
\n
\n \n {{ legend }}\n {{ label }}\n
\n {{ valueTypes }}
\n
',HTML_GROUP:'
\n
{{ category }}
\n \n {{ items }}\n
\n
',HTML_GROUP_TYPE:'\n \n {{ type }}\n ',HTML_GROUP_ITEM:'\n
\n {{ legend }}\n {{ value }} {{ suffix }}\n ',GROUP_CSS_TEXT:"background-color:{{ color }}",HTML_MAP_CHART_DEFAULT_TEMPLATE:'
\n
\n \n {{ name }}\n {{ value }}{{ suffix }}\n
\n
',HTML_HEATMAP_TEMPLATE:'
\n
{{ category }}
\n
\n \n {{ label }}{{ suffix }}\n
\n
',HTML_BOXPLOT_TEMPLATE:'
\n
{{ category }}
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n {{ legend }}\n
Maximum: {{ maxLabel }} {{ suffix }}
Upper Quartile: {{ uqLabel }} {{ suffix }}
Median: {{ medianLabel }} {{ suffix }}
Lower Quartile: {{ lqLabel }} {{ suffix }}
Minimum: {{ minLabel }} {{ suffix }}
\n
',HTML_BOXPLOT_OUTLIER:'
\n
{{ category }}
\n
\n {{ legend }}\n
\n
\n Outlier: \n {{ label }} {{ suffix }}\n
\n
',HTML_BULLET_TEMPLATE:'
\n
\n \n {{ category }}\n {{ label }} {{ suffix }}\n
\n
'};e["default"]={tplDefault:o["default"].template(a.HTML_DEFAULT_TEMPLATE),tplPieChart:o["default"].template(a.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:o["default"].template(a.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:o["default"].template(a.HTML_GROUP),tplGroupType:o["default"].template(a.HTML_GROUP_TYPE),tplGroupItem:o["default"].template(a.HTML_GROUP_ITEM),tplGroupCssText:o["default"].template(a.GROUP_CSS_TEXT),tplMapChartDefault:o["default"].template(a.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplHeatmapChart:o["default"].template(a.HTML_HEATMAP_TEMPLATE),tplBoxplotChartDefault:o["default"].template(a.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:o["default"].template(a.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:o["default"].template(a.HTML_BULLET_TEMPLATE)}},function(t,e){"use strict";e.__esModule=!0;var i=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]={template:function(t){return function(e){var n=t;return Object.entries(e).forEach(function(t){var e=i(t,2),r=e[0],o=e[1],a=new RegExp("{{\\s*"+r+"\\s*}}","g");n=n.replace(a,String(o).replace("$","$"))}),n}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new k(t)}e.__esModule=!0,e["default"]=s;var u=i(137),l=n(u),h=i(189),c=n(h),p=i(221),d=n(p),f=i(226),g=n(f),m=i(154),y=n(m),_=i(155),v=n(_),x=i(148),T=n(x),b=i(184),A=n(b),E=i(223),D=n(E),C=i(164),S=n(C),w=y["default"].TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,L=y["default"].TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,M=y["default"].SERIES_EXPAND_SIZE,P=y["default"].PUBLIC_EVENT_PREFIX,k=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.prevIndex=null,n.tickInterval=null,n.isBullet=S["default"].isBulletChart(i.chartType),n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e,i,n){var r=D["default"].tplGroupItem,o=D["default"].tplGroupCssText,a=S["default"].isBarChart(this.chartType),s=S["default"].isBarTypeChart(this.chartType),u=S["default"].isBoxplotChart(this.chartType),l=this.dataProcessor.options.series,h=(s||u)&&l&&l.colorByPoint,c=!a&&l&&l.stack,p=this._makeColors(this.theme,n),d=void 0,f=e.map(function(t,e){var i=t.type,n="data"!==i&&d!==i,a="";return d=i,t.value?(n&&(a=D["default"].tplGroupType({type:i})),a+=r(Object.assign({cssText:o({color:h?"#aaa":p[e]})},t))):null});return c&&f.reverse(),D["default"].tplGroup({category:t,items:f.join("")})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=w:this.options.align=L)},e.prototype.render=function(t){var e=d["default"].prototype.render.call(this,t),i=this.dimensionMap.chart,n=this.layout;return t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends)),this.positionModel=new g["default"](i,n,this.isVertical,this.options),e},e.prototype.rerender=function(t){d["default"].prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},e.prototype.zoom=function(){this.prevIndex=null,this.tickInterval=null,d["default"].prototype.zoom.call(this)},e.prototype._updateLegendTheme=function(t){var e=this,i=[],n=Object.keys(this.originalTheme);return n.forEach(function(n){var r=e.originalTheme[n].colors;r.forEach(function(e,r){var o=t[n]||t;o[r]&&i.push(e)})}),{colors:i}},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getCategoryCount(this.isVertical);return this.dataProcessor.getSeriesGroups().map(function(i,n){var r=i.map(function(t){return{type:t.type||"data",label:t.tooltipLabel||t.label}});return{category:t.dataProcessor.makeTooltipCategory(n,e-n,t.isVertical),values:r}})},e.prototype._makeColors=function(t,e){var i=0,n=this.dataProcessor.getLegendData(),r=void 0,o=void 0;if(this.isBullet)return this.dataProcessor.getGraphColors()[e];if(t.colors)return t.colors;var a=A["default"].series.colors.slice(0,n.length);return(0,c["default"])(n,"chartType").map(function(e){o!==e&&(r=t[e]?t[e].colors:a,i=0),o=e;var n=r[i];return i+=1,n})},e.prototype._makeItemRenderingData=function(t,e){var i=this,n=this.dataProcessor,r=this.suffix,o=this._makeColors(this.theme,e);return t.map(function(t,a){var s={value:t.label,type:t.type,suffix:r,legend:"",color:o[a]},u=void 0;return i.isBullet?u=n.getLegendItem(e):(u=n.getLegendItem(a),s.legend=u.label),s.chartType=u.chartType,s})},e.prototype._makeGroupTooltipHtml=function(t){var e=this.data[t],i="";if(e){var n=this._makeItemRenderingData(e.values,t);i=this.templateFunc(e.category,n,this.getRawCategory(t),t)}return i},e.prototype._getTooltipSectorElement=function(){if(!this.groupTooltipSector){var t=this.groupTooltipSector=v["default"].create("DIV","tui-chart-group-tooltip-sector");v["default"].append(this.tooltipContainer,t)}return this.groupTooltipSector},e.prototype._makeVerticalTooltipSectorBound=function(t,e,i){var n=void 0;return n=i?1:e.end-e.start,{dimension:{width:n,height:t},position:{left:e.start+this.tickInterval/2,top:M}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:M,top:e.start}}},e.prototype._makeTooltipSectorBound=function(t,e,i,n){return i?this._makeVerticalTooltipSectorBound(t,e,n):this._makeHorizontalTooltipSectorBound(t,e)},e.prototype._showTooltipSector=function(t,e,i,n,r){var o=this._getTooltipSectorElement(),a=e.start===e.end,s=this._makeTooltipSectorBound(t,e,i,a);a?this.eventBus.fire("showGroupTooltipLine",s):(T["default"].renderDimension(o,s.dimension),T["default"].renderPosition(o,s.position),v["default"].addClass(o,"show")),r&&(n-=1),this.eventBus.fire("showGroupAnimation",n)},e.prototype._hideTooltipSector=function(t){var e=this._getTooltipSectorElement();v["default"].hasClass(e,"show")?v["default"].removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},e.prototype._showTooltip=function(t,e,i){(0,l["default"])(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),(0,l["default"])(this.tickInterval)&&(this.tickInterval=e.tickInterval),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),document.getElementsByClassName&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),v["default"].addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving);var n=this.getTooltipDimension(t),r=this.positionModel.calculatePosition(n,e.range);this._moveToPosition(t,r,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:r},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,i){i||this.eventBus.fire(P+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,i,n){n||this.eventBus.fire(P+"afterShowTooltip",Object.assign({chartType:this.chartType,index:t,range:e},i))},e.prototype._hideTooltip=function(t,e,i){var n=!(!i||!i.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,n),this._hideTooltipSector(e),v["default"].removeClass(t,"show"),t.style.cssText=""},e.prototype._fireBeforeHideTooltipPublicEvent=function(t,e){e||this.eventBus.fire(P+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(d["default"]);s.componentType="tooltip",s.GroupTooltip=k},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(154),a=n(o),s=function(){function t(e,i,n,o){r(this,t),this.chartDimension=e,this.areaBound=i,this.isVertical=n,this.options=o,this.positions={},this._setData(e,i,n,o)}return t.prototype._getHorizontalDirection=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=void 0;return e=t.indexOf("left")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?a["default"].TOOLTIP_DIRECTION_CENTER:a["default"].TOOLTIP_DIRECTION_FORWARD},t.prototype._makeVerticalData=function(t,e,i){var n=this._getHorizontalDirection(i);return{positionType:"left",sizeType:"width",direction:n,areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._getVerticalDirection=function(t){var e=void 0;return t=t||"",e=t.indexOf("top")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?a["default"].TOOLTIP_DIRECTION_FORWARD:a["default"].TOOLTIP_DIRECTION_CENTER},t.prototype._makeHorizontalData=function(t,e,i){var n=this._getVerticalDirection(i);return{positionType:"top",sizeType:"height",direction:n,areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._setData=function(t,e,i,n){var r=this._makeVerticalData(t,e,n.align),o=this._makeHorizontalData(t,e,n.align),a=n.offset||{};i?(this.mainData=r,this.subData=o):(this.mainData=o,this.subData=r),this.positionOption={},this.positionOption.left=a.x||0,this.positionOption.top=a.y||0,this.positions={}},t.prototype._calculateMainPositionValue=function(t,e,i){var n=e.start===e.end,r=9,o=5,s=n?r:o,u=i.basePosition;return u+=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?e.end+s:i.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?e.start-t-s:n?e.start-t/2:e.start+(e.end-e.start-t)/2},t.prototype._calculateSubPositionValue=function(t,e){var i=e.areaSize/2,n=void 0;return n=e.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?i+e.basePosition:e.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?i-t+e.basePosition:i-t/2+e.basePosition},t.prototype._makePositionValueDiff=function(t,e,i){return t+i.areaPosition+e-i.chartSize},t.prototype._adjustBackwardPositionValue=function(t,e,i,n){var r=void 0;return t<-n.areaPosition&&(r=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_FORWARD,basePosition:n.basePosition}),t=this._makePositionValueDiff(r,i,n)>0?-n.areaPosition:r),t},t.prototype._adjustForwardPositionValue=function(t,e,i,n){var r=this._makePositionValueDiff(t,i,n);if(r>0){var o=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_BACKWARD,basePosition:n.basePosition});o<-n.areaPosition?t-=r:t=o}return t},t.prototype._adjustMainPositionValue=function(t,e,i,n){return n.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,i,n):n.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,i,n):(t=Math.max(t,-n.areaPosition),t=Math.min(t,n.chartSize-n.areaPosition-i)),t},t.prototype._adjustSubPositionValue=function(t,e,i){return t=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?Math.min(t,i.chartSize-i.areaPosition-e):Math.max(t,-i.areaPosition)},t.prototype._makeCachingKey=function(t){var e=t.start,i=t.end;return e+"-"+i},t.prototype._addPositionOptionValue=function(t,e){return t+this.positionOption[e]},t.prototype._makeMainPositionValue=function(t,e,i){var n=this._calculateMainPositionValue(t[i.sizeType],e,i);return n=this._addPositionOptionValue(n,i.positionType),n=this._adjustMainPositionValue(n,e,t[i.sizeType],i)},t.prototype._makeSubPositionValue=function(t,e){var i=this._calculateSubPositionValue(t[e.sizeType],e);return i=this._addPositionOptionValue(i,e.positionType),i=this._adjustSubPositionValue(i,t[e.sizeType],e)},t.prototype.calculatePosition=function(t,e){var i=this._makeCachingKey(e),n=this.mainData,r=this.subData,o=this.positions[i];return o||(o={},o[n.positionType]=this._makeMainPositionValue(t,e,n),o[r.positionType]=this._makeSubPositionValue(t,r),this.positions[i]=o),o},t.prototype.updateOptions=function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},t.prototype.updateBound=function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)},t}();e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new m(t)}e.__esModule=!0,e["default"]=s;var u=i(154),l=n(u),h=i(221),c=n(h),p=i(222),d=n(p),f=i(223),g=n(f),m=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.mapModel=i.mapModel,n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t){return g["default"].tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var i=this.mapModel.getDatum(e.index),n=this.options.suffix?" "+this.options.suffix:"",r=this.colorSpectrum.getColor(i.ratio);return this.templateFunc({name:i.name||i.code,value:i.label,suffix:n,cssText:"background-color: "+r,color:r})},e.prototype._makeShowTooltipParams=function(t,e){var i=this.mapModel.getDatum(t.index),n=Object.assign({chartType:this.chartType,code:i.code,name:i.name,value:i.label,index:t.index},e);return n},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.options.align=l["default"].TOOLTIP_DEFAULT_ALIGN_OPTION)},e}(c["default"]);d["default"].mixin(m),s.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new x(t)}e.__esModule=!0,e["default"]=s;var u=i(229),l=n(u),h=i(154),c=n(h),p=i(211),d=n(p),f=i(155),g=n(f),m=i(148),y=n(m),_=i(153),v=n(_),x=function(t){function e(i){r(this,e);var n=o(this,t.call(this));return n.chartType=i.chartType,n.eventBus=i.eventBus,n.isDown=!1,n.drawingType=c["default"].COMPONENT_TYPE_DOM,n}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){y["default"].renderDimension(t,this.layout.dimension),y["default"].renderPosition(t,this.layout.position)},e.prototype._onClick=function(){},e.prototype._onMousedown=function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},e.prototype._dragEnd=function(){this.isDrag=!1,g["default"].removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},e.prototype._onMouseup=function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},e.prototype._onMousemove=function(t){this.isDown?(this.isDrag||g["default"].addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},e.prototype._onMouseout=function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},e.prototype._onMousewheel=function(t){var e=t.wheelDelta||t.detail*c["default"].FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},e.prototype.attachEvent=function(t){l["default"].prototype.attachEvent.call(this,t),v["default"].firefox?d["default"].on(t,"DOMMouseScroll",this._onMousewheel,this):d["default"].on(t,"mousewheel",this._onMousewheel,this)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(145),a=n(o),s=i(198),u=n(s),l=i(230),h=n(l),c=i(231),p=n(c),d=i(154),f=n(d),g=i(211),m=n(g),y=i(164),_=n(y),v=i(155),x=n(v),T=i(148),b=n(T),A=function(){function t(e){if(r(this,t),e){this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.isVertical=e.isVertical,this.dataProcessor=e.dataProcessor,this.allowSelect=e.allowSelect,this.eventBus=e.eventBus,this.layout=null,this.selectedData=null;var i=_["default"].isLineTypeChart(this.chartType,this.chartTypes);this.expandSize=i?f["default"].SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=_["default"].isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=f["default"].COMPONENT_TYPE_DOM}}return t.prototype._attachToEventBus=function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},t.prototype._getRenderingBound=function(){var t=b["default"].expandBound(this.layout);return t},t.prototype._renderMouseEventDetectorArea=function(t,e){this.dimension=this.layout.dimension;var i=new h["default"](this.layout,e,this.chartType,this.isVertical,this.chartTypes);this.tickBaseCoordinateModel=i;var n=this._getRenderingBound(),r=n.dimension,o=n.position;b["default"].renderDimension(t,r),b["default"].renderPosition(t,o)},t.prototype._setDataForRendering=function(t){this.layout=t.layout},t.prototype._pickTickCount=function(t){return this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},t.prototype.render=function(t){this.positionMap=t.positionMap;var e=t.paper,i=void 0;return x["default"].addClass(e,"tui-chart-series-custom-event-area"),e.style.backgroundColor="aliceblue",t.axisDataMap.xAxis&&(i=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(e,i),this.attachEvent(e),this.mouseEventDetectorContainer=e,this.transparentChild=this._createTransparentChild(),x["default"].append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=b["default"].getStyle(this.mouseEventDetectorContainer).height,b["default"].setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,i){var n=this.mouseEventDetectorContainer.getBoundingClientRect(),r=n.left,o=n.right,s=n.top,u=this.positionMap.series,l=this.expandSize,h={};if(i=!!(0,a["default"])(i)||i){var c=o-l,p=r+l;t=Math.min(Math.max(t,p),c)}return h.x=t-r+u.left-f["default"].CHART_PADDING,(0,a["default"])(e)||(h.y=e-s+u.top-f["default"].CHART_PADDING),h},t.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.boundsBaseCoordinateModel=new p["default"](i))},t.prototype.rerender=function(t){var e=void 0;this.positionMap=t.positionMap,t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=b["default"].getStyle(this.mouseEventDetectorContainer).height},t.prototype.resize=function(t){this.containerBound=null,this.rerender(t)},t.prototype._isChangedSelectData=function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},t.prototype._findDataFromBoundsCoordinateModel=function(t){var e=t.x,i=t.y,n=void 0;return n=_["default"].isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?e:i),this.boundsBaseCoordinateModel.findData(n,e,i)},t.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(i)},t.prototype._showTooltip=function(){},t.prototype._hideTooltip=function(){},t.prototype._onMouseEvent=function(t,e){x["default"].addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),x["default"].removeClass(this.mouseEventDetectorContainer,"hide")},t.prototype.unselectSeries=function(){this.selectedData&&(this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null)},t.prototype._onClick=function(t){var e=this._findData(t.clientX,t.clientY);this.selectSeries(e)},t.prototype.selectSeries=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._isChangedSelectData(this.selectedData,t)?t&&(this.selectedData&&this.unselectSeries(),this.eventBus.fire("selectSeries",t,e),this.allowSelect&&(this.selectedData=t)):this.unselectSeries()},t.prototype._onMousedown=function(){},t.prototype._onMouseup=function(){},t.prototype._onMousemove=function(){},t.prototype._onMouseout=function(){},t.prototype.attachEvent=function(t){m["default"].on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},t.prototype.findDataByIndexes=function(){},t.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},t}();u["default"].mixin(A),e["default"]=A},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(144),a=n(o),s=i(164),u=n(s),l=i(158),h=n(l),c=function(){function t(e,i,n,o,a){r(this,t),this.isLineType=u["default"].isLineTypeChart(n,a),this.data=this._makeData(e,i,o)}return t.prototype._getRanges=function(t,e,i){var n=e,r=i/2;return(0,a["default"])(0,t).map(function(){var t={min:n-r,max:n+r};return n+=i,t})},t.prototype._makeLineTypeData=function(t,e,i){var n=(t+1)/(e-1),r=this._getRanges(e,i||0,n);return r[e-1].max-=1,r},t.prototype._makeNormalData=function(t,e,i){var n=e-1,r=t/n,o=i||0;return(0,a["default"])(0,n).map(function(){var e=h["default"].min([t+o,r+o]),i={min:o,max:e};return o=e,i})},t.prototype._makeData=function(t,e,i){var n=i?"width":"height",r=i?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[n],e,t.position[r]):this._makeNormalData(t.dimension[n],e,t.position[r])},t.prototype.findIndex=function(t){var e=-1;return this.data.forEach(function(i,n){return!(i.min=t)||(e=n,!1)}),e},t.prototype.getLastIndex=function(){return this.data.length-1},t.prototype.makeRange=function(t,e){ var i=this.data[t],n=void 0;return this.isLineType?(n=parseInt(i.max-(i.max-i.min)/2,10),{start:n,end:n}):{start:i.min-(e||0),end:i.max-(e||0)}},t}();e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e=i,o=t.top<=n&&t.bottom>=n;return r&&o},t.prototype.findData=function(t,e,i){var n=1e4,r=null;if(t>-1&&this.data[t]){var o=this._findCandidates(this.data[t],e,i);o.forEach(function(t){var e=Math.abs(i-t.bound.top);n>e&&(n=e,r=t.sendData)})}return r},t.prototype.findDataByIndexes=function(t){var e=this.data[t.index][t.seriesIndex].sendData;return(0,s["default"])(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},t.prototype._findOutlierDataByIndexes=function(t){var e=null;return this.data[t.index].forEach(function(i){var n=i.sendData.indexes,r=n.index===t.seriesIndex&&n.outlierIndex===t.outlierIndex;return r&&(e=i.sendData),!r}),e},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=t.chartOptions,i=t.seriesTypes,n=e.chartType,r=e.series,o=r.zoomable,s=r.allowSelect,l=e.xAxis.pointOnColumn,c=void 0;return c=t.chartOptions.tooltip.grouped?p["default"]:a["default"].isMapChart(n)?m["default"]:a["default"].isBarTypeChart(n)||a["default"].isBoxplotChart(n)||a["default"].isHeatmapChart(n)||a["default"].isTreemapChart(n)||a["default"].isBulletChart(n)?f["default"]:a["default"].isCoordinateTypeChart(n)||a["default"].isPieChart(n)||a["default"].isPieDonutComboChart(n,i)?h["default"]:u["default"],t.chartType=n,t.chartTypes=i,t.zoomable=o,t.allowSelect=s,t.pointOnColumn=!!l,c(t)}e.__esModule=!0,e["default"]=r;var o=i(164),a=n(o),s=i(233),u=n(s),l=i(236),h=n(l),c=i(237),p=n(c),d=i(238),f=n(d),g=i(228),m=n(g);r.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new f(t)}e.__esModule=!0,e["default"]=s;var u=i(229),l=n(u),h=i(234),c=n(h),p=i(235),d=n(p),f=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.prevFoundData=null,n.prevClientPosition=null,n.zoomable=i.zoomable,n.zoomable&&(Object.assign(n,c["default"]),n._initForZoom(i.zoomable)),n}return a(e,t),e.prototype.animateForAddingData=function(){if(this.prevClientPosition){var t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y);if(t){var e=this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,i=this.prevFoundData&&e;this._showTooltip(t,i)}this.prevFoundData=t}},e.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount;this.seriesItemBoundsData.length===e&&(this.seriesItemBoundsData=[]),this.seriesItemBoundsData.push(t),this.seriesItemBoundsData.length===e&&(this.dataModel=new d["default"](this.seriesItemBoundsData)),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e),n=this.dataProcessor.selectLegendIndex,r=this.dataProcessor.isCoordinateType();return this.dataModel.findData(i,n,{distanceLimit:this.dataModel.leftStepLength,isCoordinateTypeChart:r})},e.prototype._findDataForZoomable=function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i)},e.prototype._getFirstData=function(t){return this.dataModel.getFirstData(t)},e.prototype._getLastData=function(t){return this.dataModel.getLastData(t)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},e.prototype._onMousemove=function(t){var e=void 0;this._setPrevClientPosition(t);var i=this._findData(t.clientX,t.clientY);this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,i)&&(i?this._showTooltip(i):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=i)},e.prototype._onMouseout=function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},e.prototype.findDataByIndexes=function(t){return this.dataModel.findDataByIndexes(t)},e.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(137),a=n(o),s=i(229),u=n(s),l=i(154),h=n(l),c=i(155),p=n(c),d=i(164),f=n(d),g=i(158),m=n(g),y=i(148),_=n(y),v=i(211),x=n(v);e["default"]={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},presetBeforeRerender:function(){this.resetZoomBtn&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null),this._hideTooltip(),this.prevDistanceOfRange=null},_showTooltipAfterZoom:function(){var t=this.isShowTooltipAfterZoom,e=void 0;this.isShowTooltipAfterZoom=!1,t&&this.dragStartIndexes&&(e=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index),e&&this._showTooltip(e))},_updateDimensionForDragSelection:function(t){_["default"].renderDimension(t,{height:this.layout.dimension.height})},_renderDragSelection:function(){var t=p["default"].create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=u["default"].prototype.render.call(this,t),i=this._renderDragSelection();return p["default"].append(e,i),this.dragSelectionElement=i,e},resize:function(t){this.containerBound=null,u["default"].prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),x["default"].on(document,"mousemove",this._onDrag,this),x["default"].off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),x["default"].on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),x["default"].off(document,"mousemove",this._onDrag,this),x["default"].off(document,"mouseup",this._onMouseupAfterDrag,this),x["default"].on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){if(this.zoomable){var e=t.target||t.srcElement;this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e)}},_showDragSelection:function(t){var e=this.mouseEventDetectorContainer.getBoundingClientRect(),i=e.left,n=this._calculateLayerPosition(t).x,r=this.startClientPosition,o=i-(r.x-this.startLayerX),a=Math.min(n,this.startLayerX)-o,s=Math.abs(n-this.startLayerX),u=this.dragSelectionElement;u.style.left=a+"px",u.style.width=s+"px",p["default"].addClass(u,"show")},_hideDragSelection:function(){p["default"].removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e=this.startClientPosition,i=t.target||t.srcElement;if(e){var n=this._findDataForZoomable(e.x,e.y);p["default"].hasClass(i,h["default"].CLASS_NAME_RESET_ZOOM_BTN)||((0,a["default"])(this.dragStartIndexes)?this.dragStartIndexes=n?n.indexes:{}:this._showDragSelection(t.clientX))}},_changeIndexToHaveMinimumIndexes:function(t){var e=r(t,2),i=e[0],n=e[1],o=n-i;return 0===o?0===i?n+=2:(i-=1,n+=1):1===o&&(0===i?n+=1:i-=1),{startIndex:i,endIndex:n}},_adjustIndexRange:function(t,e){var i=[t,e].sort(function(t,e){return t-e});return this._changeIndexToHaveMinimumIndexes(i)},_fireZoom:function(){this.dataProcessor.isLineCoordinateType()?this._fireZoomUsingValue(this.dragStartIndexes,this.dragEndIndexes):this._fireZoomUsingIndex(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)},_fireZoomUsingIndex:function(t,e){var i=t>e,n=this._adjustIndexRange(t,e),r=n.startIndex,o=n.endIndex,a=o-r;this.prevDistanceOfRange!==a&&(this.prevDistanceOfRange=a,this.reverseMove=i,this.eventBus.fire("zoom",[r,o]))},_adjustValueRange:function(t,e){var i=void 0,n=void 0,r=this.dataProcessor,o=r.integratedXAxisData,a=r.options.xAxis,s=f["default"].isDatetimeType(a.type);s?(i=m["default"].findIndexFromDateTypeArray(o,new Date(t)),n=m["default"].findIndexFromDateTypeArray(o,new Date(e))):(i=o.indexOf(t),n=o.indexOf(e));var u=[i,n].sort(function(t,e){return t-e}),l=this._changeIndexToHaveMinimumIndexes(u),h=l.startIndex,c=l.endIndex;return[o[h],o[c]]},_fireZoomUsingValue:function(t,e){var i=t.index,n=t.groupIndex,o=e.index,a=e.groupIndex,s=this.dataProcessor.rawData.series.line,u=r(s[i].data[n],1),l=u[0],h=r(s[o].data[a],1),c=h[0],p=this._adjustValueRange(l,c);this.eventBus.fire("zoom",p)},_setIsShowTooltipAfterZoomFlag:function(t,e){var i=this._calculateLayerPosition(t,e,!1).x,n=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=i===n},_onMouseupAfterDrag:function(t){var e=this._findDataForZoomable(t.clientX,t.clientY);if(this._unbindDragEvent(),(0,a["default"])(this.dragStartIndexes)){var i=t.target||t.srcElement;p["default"].hasClass(i,h["default"].CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):u["default"].prototype._onClick.call(this,t)}else this.dragStartIndexes&&e?(this.dragEndIndexes=e.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection(),this._fireZoom()):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection());this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){var t=p["default"].create("DIV",h["default"].CLASS_NAME_RESET_ZOOM_BTN);return t},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),p["default"].append(this.mouseEventDetectorContainer,this.resetZoomBtn))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&u[1][0]&&u[0][0];return n.leftStepLength=h?u[1][0].left-u[0][0].left:0,u.map(function(t,n){return t.map(function(t,r){var a=null;return t&&(a={chartType:i,indexes:{groupIndex:n,index:r},bound:t}),o>1&&(a.indexes.legendIndex=e),a})})});return u=(e=[]).concat.apply(e,r(u)),this.lastGroupIndex=a,(i=[]).concat.apply(i,r(u)).filter(function(t){return!!t})},t.prototype.findData=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.distanceLimit,r=i.isCoordinateTypeChart,o=n&&ne||((0,c["default"])(i)||i===o.indexes.index)&&u<=n&&(n=u,r=o)}),r},t.prototype.findDataByIndexes=function(t){var e=t.index,i=t.seriesIndex,n=null;return this.data.forEach(function(t){return t.indexes.groupIndex===e&&t.indexes.index===i&&(n=t),!n}),n},t.prototype.getFirstData=function(t){var e={index:0,seriesIndex:t};return this.findDataByIndexes(e)},t.prototype.getLastData=function(t){var e={index:this.lastGroupIndex,seriesIndex:t};return this.findDataByIndexes(e)},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new f(t)}e.__esModule=!0,e["default"]=s;var u=i(154),l=n(u),h=i(229),c=n(h),p=i(148),d=n(p),f=function(t){function e(i){r(this,e);var n=o(this,t.call(this));return n.chartType=i.chartType,n.drawingType=l["default"].COMPONENT_TYPE_DOM,n.eventBus=i.eventBus,n}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){d["default"].renderDimension(t,this.layout.dimension),d["default"].renderPosition(t,this.layout.position)},e.prototype.onReceiveSeriesData=function(){},e.prototype._onClick=function(t){this._onMouseEvent("click",t)},e.prototype._onMousemove=function(t){this._onMouseEvent("move",t)},e.prototype._onMouseout=function(t){this._onMouseEvent("move",t)},e}(c["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new y(t)}e.__esModule=!0;var u=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]=s;var l=i(137),h=n(l),c=i(154),p=n(c),d=i(229),f=n(d),g=i(234),m=n(g),y=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.prevIndex=null,n.zoomable=i.zoomable,n.sizeType=n.isVertical?"height":"width",n.pointOnColumn=i.pointOnColumn,n.zoomable&&(Object.assign(n,m["default"]),n._initForZoom(i.zoomable)),n}return a(e,t),e.prototype.initMouseEventDetectorData=function(t){f["default"].prototype.initMouseEventDetectorData.call(this,t),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findGroupData=function(t,e){var i=this._calculateLayerPosition(t,e,!0),n=void 0;return n=this.isVertical?i.x:i.y,{indexes:{groupIndex:this.tickBaseCoordinateModel.findIndex(n)}}},e.prototype._findDataForZoomable=function(t,e){return this._findGroupData(t,e)},e.prototype._getFirstData=function(){return{indexes:{groupIndex:0}}},e.prototype._getLastData=function(){return{indexes:{groupIndex:this.tickBaseCoordinateModel.getLastIndex()}}},e.prototype._isOuterPosition=function(t,e){var i=this.dimension,n=i.width,r=i.height,o=this.layout.position,a=o.top,s=o.left;return ts+n||ea+r},e.prototype._showTooltip=function(t,e){var i=t.indexes.groupIndex,n=(this.isVertical?this.layout.position.left:this.layout.position.top)-p["default"].CHART_PADDING,r=this.tickBaseCoordinateModel.data,o=r.length,a=this.pointOnColumn?o-1>i:o>i;if(a){var s=0;if(this.pointOnColumn){var l=u(r,1),h=l[0],c=h.min,d=h.max;s=d-c}this.eventBus.fire("showTooltip",{index:i,range:this.tickBaseCoordinateModel.makeRange(i,n),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent,tickInterval:s}),this.prevIndex=i}},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},e.prototype._onMousemove=function(t){if(!this.zoomable||!this._isAfterDragMouseup()){var e=this._findGroupData(t.clientX,t.clientY),i=e.indexes.groupIndex;i===-1?this._onMouseout(t):this.prevIndex!==i&&this._showTooltip(e)}},e.prototype._onMouseout=function(t){var e=this._calculateLayerPosition(t.clientX,t.clientY,!1),i=e.x,n=e.y;this._isOuterPosition(i,n)&&!(0,h["default"])(this.prevIndex)&&this._hideTooltip()},e}(f["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new m(t)}e.__esModule=!0,e["default"]=s;var u=i(229),l=n(u),h=i(154),c=n(h),p=i(164),d=n(p),f=i(155),g=n(f),m=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a=e&&s>=i||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=g["default"].create("DIV",c["default"].CLASS_NAME_RESET_ZOOM_BTN),g["default"].append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},e.prototype.findDataByIndexes=function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="bar",t.chartBackground=e.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(241),c=n(h),p=i(154),d=n(p),f=i(164),g=n(f),m=d["default"].OVERLAPPING_WIDTH,y=d["default"].TEXT_PADDING,_=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,r){return{start:{top:i,left:n,width:0,height:e},end:{top:i,left:r,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+m),e},e.prototype._makeBarChartBound=function(t,e,i,n,r){var o=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,c=n.ratioDistance,p=n.value,d=n.startRatio,f=n.stack,g=o*c,m=this._calculateAdditionalLeft(p),y=o*d,_=a+y+m,v=f!==e.prevStack,x=s*u>l,T=x?h:s,b=void 0;if(!i||!this.options.diverging&&v){var A=i?this.dataProcessor.findStackIndex(f):r;e.top=e.baseTop+T*A,e.plusLeft=0,e.minusLeft=0}p>=0?(b=_+e.plusLeft,e.plusLeft+=g):(e.minusLeft-=g,b=_+e.minusLeft),e.prevStack=f;var E=e.top+h-s/2;return x||(E+=(h-s)/2*(u-1)),this._makeBound(g,s,E,_,b)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stack),n=this.layout,r=n.dimension,o=r.width,a=r.height,s=n.position.top,u=this._makeBaseDataForMakingBound(a,o);return e.map(function(e,n){var r=n*u.groupSize+s,o={baseTop:r,top:r,plusLeft:0,minusLeft:0,prevStack:null},a=t._makeBarChartBound.bind(t,u,o,i);return e.map(a)})},e.prototype._calculateTopPositionOfSumLabel=function(t,e){return t.top+(t.height-e+y)/2},e}(l["default"]);c["default"].mixin(_),s.componentType="series",s.BarChartSeries=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(140),a=n(o),s=i(214),u=n(s),l=i(146),h=n(l),c=i(137),p=n(c),d=i(154),f=n(d),g=i(155),m=n(g),y=i(164),_=n(y),v=i(148),x=n(v),T=i(182),b=n(T),A=i(143),E=n(A),D=f["default"].COMPONENT_TYPE_RAPHAEL,C=f["default"].PUBLIC_EVENT_PREFIX,S=f["default"].CLASS_NAME_SERIES_LABEL,w=function(){function t(e){r(this,t);var i=e.libType;this.className="tui-chart-series-area",this.chartType=e.chartType,this.seriesType=e.seriesType||e.chartType,this.componentType=e.componentType,this.dataProcessor=e.dataProcessor,this.eventBus=e.eventBus,this.chartBackground=e.chartBackground,this.options=e.options||{},this.orgTheme=this.theme=e.theme,this.graphRenderer=b["default"].get(i,e.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData={},this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=D,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,i=e.labelPrefix,n=void 0===i?"":i,r=e.labelSuffix,o=void 0===r?"":r,s=x["default"].addPrefixSuffix,u=x["default"].addPrefixSuffixItem,l=((0,a["default"])(t)?s:u).bind(x["default"]);return l(t,n,o)},t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.orgTheme;this.orgTheme=t,this.theme=t,"treemap"===this.chartType&&(this.boundMap=null)},t.prototype._attachToEventBus=function(){var t=function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)}.bind(this);this.eventBus.on(C+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},t.prototype._getSeriesDataModel=function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},t.prototype._makeSeriesData=function(){},t.prototype.getSeriesData=function(){return this.seriesData},t.prototype._renderSeriesLabel=function(){},t.prototype._renderConnector=function(){},t.prototype._renderSeriesLabelArea=function(t){return this._renderSeriesLabel(t)},t.prototype._sendBoundsToMouseEventDetector=function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},t.prototype._renderSeriesArea=function(t,e){var i=this.dimensionMap.extendedSeries,n=this.seriesData=this._makeSeriesData();this._sendBoundsToMouseEventDetector(n),(this.hasDataForRendering(n)||"map"===this.chartType)&&(e&&(this.seriesSet=e(i,n,t)),_["default"].isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)),_["default"].isBarTypeChart(this.chartType)&&_["default"].isValidStackOption(this.options.stack)&&_["default"].isRenderConnector(this.options.stack.connector)&&(this.connectorSet=this._renderConnector(t,n,this.options.stack)))},t.prototype._makeParamsForGraphRendering=function(t,e){return Object.assign({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},t.prototype._renderGraph=function(t,e,i){var n=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,n)},t.prototype._setDataForRendering=function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},t.prototype.render=function(t){if(this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends){var e=t.checkedLegends[this.seriesType];this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))}this._renderSeriesArea(t.paper,this._renderGraph.bind(this)), this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},t.prototype._getCheckedSeriesTheme=function(t,e){if(!e.length)return t;var i=JSON.parse(JSON.stringify(t));return i.colors=i.colors.filter(function(t,i){return e[i]}),i},t.prototype._clearSeriesContainer=function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach(function(t){t.remove()},this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach(function(t){t.remove()},this),this.labelSet.remove()),this.connectorSet&&this.connectorSet.remove&&(this.connectorSet.forEach(function(t){t.remove()},this),this.connectorSet.remove()),this.seriesData={}},t.prototype.rerender=function(t){var e=void 0;"map"===this.seriesType||this.dataProcessor.getGroupCount(this.seriesType)?(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),(0,p["default"])(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)):this._clearSeriesContainer()},t.prototype._isLabelVisible=function(){return!(!this.options.showLabel&&!this.options.showLegend)},t.prototype._resizeGraph=function(t,e){return this.graphRenderer.resize(Object.assign({dimension:this.dimensionMap.chart},e)),this.seriesSet},t.prototype.resize=function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,this._resizeGraph.bind(this)),this.rerender(t)},t.prototype._renderPosition=function(t,e){var i=x["default"].isOldBrowser()?1:0;x["default"].renderPosition(t,{top:e.top-i,left:e.left-2*i})},t.prototype._getLimitDistanceFromZeroPoint=function(t,e){var i=e.min,n=e.max,r=n-i,o=0,a=0;return i<=0&&n>=0?(o=(r+i)/r*t,a=(r-n)/r*t):i>0&&(o=t),{toMax:o,toMin:a}},t.prototype._findLabelElement=function(t){return m["default"].hasClass(t,S)?t:m["default"].findParentByClass(t,S)},t.prototype.onHoverSeries=function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},t.prototype.onHoverOffSeries=function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},t.prototype.onShowGroupAnimation=function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},t.prototype.onHideGroupAnimation=function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},t.prototype.animateComponent=function(t){var e=this;this.graphRenderer.animate?(this.seriesSet&&this.graphRenderer.animate(this.animateSeriesLabelArea.bind(this,t),this.seriesSet),this.connectorSet&&this.graphRenderer.animate(this.animateSeriesConnector.bind(this,t),this.connectorSet)):(this.animateSeriesLabelArea(t),this.animateSeriesConnector()),setTimeout(function(){e.options.animationDuration=E["default"].getDefaultAnimationDuration(e.chartType)})},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(C+"load")},t.prototype.animateSeriesLabelArea=function(t){return this._isLabelVisible()?void(this.labelSet&&this.labelSet.length&&E["default"].animateOpacity(this.labelSet,0,1,this.options.animationDuration)):void this._fireLoadEvent(t)},t.prototype.animateSeriesConnector=function(){this.connectorSet&&this.connectorSet.length&&E["default"].animateOpacity(this.connectorSet,0,1,this.options.animationDuration)},t.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=(0,h["default"])(e.legendIndex)?e.legendIndex:e.index,n=this.dataProcessor.getLegendItem(i),r=(0,h["default"])(e.groupIndex)?e.groupIndex:0,o=this._getSeriesDataModel().getSeriesItem(r,e.index),a=void 0;return(0,h["default"])(o)&&(a={chartType:n.chartType,legend:n.label,legendIndex:i},a.index=o.index),a},t.prototype._executeGraphRenderer=function(t,e){var i=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&m["default"].hasClass(this.seriesLabelContainer,"show")&&(m["default"].removeClass(this.seriesLabelContainer,"show"),i=!0);var n=this.graphRenderer[e](t);return i&&m["default"].addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),n},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var i=C+"selectSeries";this.eventBus.fire(i,this._makeExportationSeriesData(t)),e=!!(0,u["default"])(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes)}},t.prototype.onUnselectSeries=function(t){if(t.chartType===this.chartType){var e=C+"unselectSeries";this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes)}},t.prototype.onSelectLegend=function(t,e){this.seriesType===t||(0,p["default"])(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},t.prototype.showLabel=function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},t.prototype.hideLabel=function(){this.options.showLabel=!1,this.seriesLabelContainer&&(m["default"].removeClass(this.seriesLabelContainer,"show"),m["default"].removeClass(this.seriesLabelContainer,"opacity"))},t.prototype.isAvailableSeriesData=function(){return!!(this.seriesData&&this.seriesData.isAvailable&&this.seriesData.isAvailable())},t.prototype.hasDataForRendering=function(t){return!(!t||!t.isAvailable())},t}();e["default"]=w},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(154),a=n(o),s=i(242),u=n(s),l=i(164),h=n(l),c=i(173),p=n(c),d=i(148),f=n(d),g=i(143),m=n(g),y=i(146),_=n(y),v=a["default"].CHART_PADDING,x=a["default"].LEGEND_LABEL_LEFT_PADDING,T=.85,b=function(){function t(){r(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype._getBarWidthOptionSize=function(t,e){var i=0;return e&&(e/2>=t?e=2*t:e<0&&(e=0),i=e),i},t.prototype._calculateAdditionalPosition=function(t,e,i){var n=0;return e&&e0){var l=void 0;l=i?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):n.getFirstSeriesGroup().getSeriesItemCount();var c=r/(l+1),p=this.options.barWidth||this.options.pointWidth,d=c*T,f=a+s;d=this._getBarWidthOptionSize(c,p)||d,h["default"].isColumnChart(this.chartType)&&(f=e-f),h["default"].isBoxplotChart(this.chartType)&&a&&(f-=2*a),u={baseBarSize:e,groupSize:r,barSize:d,pointInterval:c,basePosition:f,itemCount:l,firstAdditionalPosition:c}}return u},t.prototype._renderConnector=function(t,e,i){return this.graphRenderer.renderConnector(t,e,i)},t.prototype._renderNormalSeriesLabel=function(t){var e=this,i=this.graphRenderer,n=this._getSeriesDataModel(),r=this.seriesData.groupBounds,o=this.theme.label,a=this.selectedLegendIndex,s=n.map(function(t){return t.map(function(t){var i=t.start,n=t.startLabel,r=t.endLabel,o={end:e.decorateLabel(r)};return(0,_["default"])(i)&&(o.start=e.decorateLabel(n)),o})}),l=void 0;return l=h["default"].isBarChart(this.chartType)?u["default"].boundsToLabelPositionsForBarChart(n,r,o):u["default"].boundsToLabelPositionsForColumnChart(n,r,o),i.renderSeriesLabel(t,l,s,o,a)},t.prototype._makeSumValues=function(t){return f["default"].formatValue({value:p["default"].sum(t),formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},t.prototype._makeStackedLabelPosition=function(t){var e=t.top,i=t.left,n=t.width,r=t.height;return{left:i+n/2,top:e+r/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this,i=t.seriesGroup,n=i.map(function(i,n){var r=t.bounds[n],o=void 0;return r&&i&&(o=e._makeStackedLabelPosition(r.end)),{end:o}});return n},t.prototype.getGroupLabels=function(t,e,i){var n=this,r=h["default"].isNormalStack(this.options.stack);return t.map(function(t){var o=t.map(function(t){return{end:n.decorateLabel(t.endLabel)}});if(r){e.push(p["default"].sumPlusValues(t.pluck("value")));var a=p["default"].sumMinusValues(t.pluck("value"));a<0&&i.push(a)}return o})},t.prototype.getGroupPositions=function(t,e){var i=this;return t.map(function(t,n){return i._makeStackedLabelPositions({seriesGroup:t,bounds:e[n]})})},t.prototype._renderStackedSeriesLabel=function(t){var e=this,i=[],n=[],r=this.theme.label,o=this.seriesData.groupBounds,a=this._getSeriesDataModel(),s=this.getGroupPositions(a,o),u=this.getGroupLabels(a,i,n),l=!0,c=h["default"].isNormalStack(this.options.stack),p=h["default"].isBarChart(this.chartType),d=p?"width":"height",g=p?"left":"top",y=p?1:-1;return c&&(u.forEach(function(t,r){var o=i[r],a=n[r];a<0&&e.options.diverging&&(a*=-1),t.push({end:e.decorateLabel(f["default"].formatToComma(o))}),n.length&&t.push({end:e.decorateLabel(f["default"].formatToComma(a))})}),s.forEach(function(t,a){var s=o[a],u=s[s.length-1].end,l=s[Math.max(parseInt(s.length/2,10),1)-1].end,h=e._makeStackedLabelPosition(u),c=e._makeStackedLabelPosition(l),p=i[a],f=n[a],_=m["default"].getRenderedTextSize(p,r.fontSize,r.fontFamily),v=m["default"].getRenderedTextSize(f,r.fontSize,r.fontFamily),T=(u[d]+_[d])/2,b=(l[d]+v[d])/2;h[g]+=(T+x)*y,c[g]-=(b+x)*y,t.push({end:h}),n.length&&t.push({end:c})})),this.graphRenderer.renderSeriesLabel(t,s,u,r,l)},t.prototype._renderSeriesLabel=function(t){return this.options.stack?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();b.mixin=function(t){Object.assign(t.prototype,b.prototype)},e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),a=i(148),s=n(a),u=o["default"].MAX_HEIGHT_WORD,l=o["default"].SERIES_LABEL_PADDING;e["default"]={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,i,n,r){var o=t.value,a=o>=0,s={end:r(e,i,t.endLabel||t.label,n,a)};return t.isRange&&(a=o<0,s.start=r(e,i,t.startLabel,n,a)),s},boundsToLabelPositions:function(t,e,i,n,r){var o=this,a=s["default"].getRenderedLabelHeight(u,i);return n=n||this._makePositionForBoundType.bind(this),r=!!r,t.map(function(t,r){var s=e[r];return t.map(function(t,e){var r=s[e].end;return o._makePositionMap(t,r,a,i,n)})},r)},_makePositionForBarChart:function(t,e,i,n,r){var o=s["default"].getRenderedLabelWidth(i,n),a=t.left;return r?a+=t.width+l:a-=o+l,{left:a,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,i){var n=this._makePositionForBarChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},_makePositionForColumnChart:function(t,e,i,n,r){var o=t.top;return r?o-=e+l:o+=t.height+l,{left:this._calculateLeftPositionForCenterAlign(t),top:o}},boundsToLabelPositionsForColumnChart:function(t,e,i){var n=this._makePositionForColumnChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},boundsToLabelPostionsForTreemap:function(t,e){var i=this,n=t.map(function(t){var n=e[t.id],r=void 0;return n&&(r=i._makePositionForBoundType(n)),r});return n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="column",t.chartBackground=t.chartTheme.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(241),c=n(h),p=i(154),d=n(p),f=i(164),g=n(f),m=i(148),y=n(m),_=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,r){return{start:{top:n,left:i,width:t,height:0},end:{top:r,left:i,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,i,n,r){var o=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,c=Math.abs(o*n.ratioDistance),p=o*n.startRatio,f=a+p+d["default"].SERIES_EXPAND_SIZE,g=n.stack!==e.prevStack,m=s*u>l,y=m?h:s,_=void 0,v=void 0;if(!i||!this.options.diverging&&g){var x=i?this.dataProcessor.findStackIndex(n.stack):r;e.left=e.baseLeft+y*x,e.plusTop=0,e.minusTop=0}return n.value>=0?(e.plusTop-=c,_=f+e.plusTop):(_=f+e.minusTop,e.minusTop+=c),e.prevStack=n.stack,v=m?e.left+h-s/2:e.left+h-s/2+(h-s)/2*(u-1),this._makeBound(s,c,v,f,_)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stack),n=this.layout.dimension,r=n.width,o=n.height,a=this._makeBaseDataForMakingBound(r,o);return e.map(function(e,n){var r=n*a.groupSize+t.layout.position.left,o={baseLeft:r,left:r,plusTop:0,minusTop:0,prevStack:null},s=t._makeColumnChartBound.bind(t,a,o,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,r=y["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-r+d["default"].TEXT_PADDING)/2},e}(l["default"]);c["default"].mixin(_),s.componentType="series",s.ColumnChartSeries=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="line",t.chartBackground=t.chartTheme.chart.background,new p(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(245),c=n(h),p=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);c["default"].mixin(p),s.componentType="series"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(146),a=n(o),s=i(137),u=n(s),l=i(158),h=n(l),c=i(154),p=n(c),d=i(164),f=n(d),g=i(173),m=n(g),y=i(148),_=n(y),v=p["default"].SERIES_EXPAND_SIZE,x=p["default"].SERIES_LABEL_PADDING,T=p["default"].MAX_HEIGHT_WORD,b=p["default"].ADDING_DATA_ANIMATION_DURATION,A=function(){function t(){r(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,i=e.height,n=e.width,r=this._getSeriesDataModel(),o=t||n||0,s=r.getGroupCount(),l=this.layout.position.top,h=this.layout.position.left,c=void 0;return this.aligned?c=o/(s>1?s-1:s):(c=o/s,h+=c/2),r.map(function(t){return t.map(function(t,e){var n=void 0;return(0,u["default"])(t.end)||(n={left:h+c*e,top:l+i-t.ratio*i},(0,a["default"])(t.startRatio)&&(n.startTop=l+i-t.startRatio*i)),n})},!0)},t.prototype._makePositionForCoordinateType=function(t){var e=this.layout.dimension,i=this._getSeriesDataModel(),n=e.height,r=this.axisDataMap.xAxis,o=this.layout.position.top,s=this.layout.position.left,l=t||e.width||0,h=0;return r.sizeRatio&&(h=m["default"].multiply(l,r.positionRatio),l=m["default"].multiply(l,r.sizeRatio)),i.map(function(t){return t.map(function(t){var e=void 0;return(0,u["default"])(t.end)||(e={left:s+t.ratioMap.x*l+h,top:o+n-t.ratioMap.y*n},(0,a["default"])(t.ratioMap.start)&&(e.startTop=n-t.ratioMap.start*n+p["default"].SERIES_EXPAND_SIZE)),e})},!0)},t.prototype._makeBasicPositions=function(t){return this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},t.prototype._calculateLabelPositionTop=function(t,e,i,n){var r=t.top,o=void 0;return o=f["default"].isValidStackOption(this.options.stack)?(t.startTop+r-i)/2+1:e>=0&&!n||e<0&&n?r-i-x:r+x},t.prototype._makeLabelPosition=function(t,e,i,n,r){return{left:t.left,top:this._calculateLabelPositionTop(t,n,e/2,r)}},t.prototype._getLabelPositions=function(t,e){var i=this,n=h["default"].pivot(this.seriesData.groupPositions),r=_["default"].getRenderedLabelHeight(T,e);return t.map(function(t,e){return t.map(function(t,o){var a=n[e][o];if(!a)return{end:0,start:0};var s=i._makeLabelPosition(a,r,t.endLabel,t.end),u={end:s};return t.isRange&&(a.top=a.startTop,u.start=i._makeLabelPosition(a,r,t.startLabel,t.start)),u})})},t.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){return t.map(function(t){var i=t.endLabel,n=t.isRange,r=t.startLabel,o={end:e.decorateLabel(i)};return n&&(o.start=e.decorateLabel(r)),o})})},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),r=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,r,n,e)},t.prototype.onShowGroupTooltipLine=function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},t.prototype.onHideGroupTooltipLine=function(){this.isAvailableSeriesData()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},t.prototype.zoom=function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),(0,u["default"])(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},t.prototype._isChangedLimit=function(t,e){return t.min!==e.min||t.max!==e.max},t.prototype._isChangedAxisLimit=function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,i=!0;return t&&(i=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(i=i||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,i},t.prototype._animate=function(t){var e=this,i=b,n=this._isChangedAxisLimit();n&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=_["default"].startAnimation(i,t,function(){e.movingAnimation=null}))},t.prototype._makeZeroTopForAddingData=function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+v},t.prototype.animateForAddingData=function(t){var e=t.tickSize,i=t.limitMap,n=t.axisDataMap,r=this.dimensionMap.extendedSeries,o=this.options.shifting,a=this.layout.dimension.width;this.limit=i[this.chartType],this.axisDataMap=n;var s=this._makeSeriesData(),u=this._makeParamsForGraphRendering(r,s);o&&(a+=e);var l=this._makePositions(a),h=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(u,e,l,o,h)},t.prototype._cancelMovingAnimation=function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)},t}();A.mixin=function(t){Object.assign(t.prototype,A.prototype)},e["default"]=A},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType=t.chartOptions.chartType,t.chartBackground=t.chartTheme.background,new T(t)}e.__esModule=!0,e["default"]=s;var u=i(137),l=n(u),h=i(240),c=n(h),p=i(154),d=n(p),f=i(173),g=n(f),m=i(205),y=n(m),_=d["default"].COMPONENT_TYPE_RAPHAEL,v=d["default"].RADIAL_PLOT_PADDING,x=d["default"].RADIAL_MARGIN_FOR_CATEGORY,T=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return c["default"].prototype.rerender.call(this,t)},e}(c["default"]);s.componentType="series",s.RadialChartSeries=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="area",t.chartBackground=e.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(245),c=n(h),p=i(164),d=n(p),f=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a=0&&!r&&(r=e),r},e.prototype._makeStackedPositions=function(t){var e=this.layout,i=e.dimension.height,n=e.position.top,r=this._makePositionTopOfZeroPoint(),o=[];return t.map(function(t){return t.map(function(t,e){var a=o[e]||r,s=t?t.top:0,u=i-s+n,l=t?a-u:a;return t&&(t.startTop=a,t.top=l),o[e]=l,t})})},e.prototype._makePositions=function(t){var e=this._makeBasicPositions(t);return d["default"].isValidStackOption(this.options.stack)&&(e=this._makeStackedPositions(e)),e},e.prototype._makeSeriesData=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,n=this._getLimitDistanceFromZeroPoint(e,this.limit).toMax+i,r=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:r,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:n,isAvailable:function(){return r&&r.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);c["default"].mixin(f),s.componentType="series",s.AreaChartSeries=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bubble",t.chartBackground=i.chart.background,new m(t)}e.__esModule=!0,e["default"]=s;var u=i(154),l=n(u),h=i(240),c=n(h),p=i(249),d=n(p),f=i(146),g=n(f),m=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},t.prototype.showTooltip=function(t,e,i,n,r){this.eventBus.fire("showTooltip",Object.assign({indexes:{groupIndex:i,index:n},mousePosition:r},t))},t.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},t.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{chartType:this.chartType}),r={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},o=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,o,r)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),i=this.prevClickedIndexes,n=this.options.allowSelect,r=this.chartType;if(e&&i&&(this.onUnselectSeries({chartType:r,indexes:i}),this.prevClickedIndexes=null),e){var o=!i||e.index!==i.index||e.groupIndex!==i.groupIndex;n&&o&&(this.onSelectSeries({chartType:r,indexes:e},o),this.prevClickedIndexes=e)}},t.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},t}();n.mixin=function(t){Object.assign(t.prototype,n.prototype)},e["default"]=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="scatter",t.chartBackground=t.chartTheme.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(249),c=n(h),p=i(154),d=n(p),f=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0&&(t%=E),t},e.prototype._transformRadiusRange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["0%","100%"];return t.map(function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)})},e.prototype._setDefaultOptions=function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},e.prototype._calculateAngleForRendering=function(){var t=this.options,e=t.startAngle,i=t.endAngle,n=void 0;return n=ei?E-(e-i):E},e.prototype._makeSectorData=function(t){var e=this,i=t.cx,n=t.r,r=t.cy,o=u(this.options.radiusRange,1),a=o[0],s=this._calculateAngleForRendering(),l=this._getSeriesDataModel().getFirstSeriesGroup(),h=this.options.startAngle,c=.5*n;if(a&&(c+=c*a),!l)return null;var p=l.map(function(t){var o=t?t.ratio:0,a=s*o,u=h+a,l=h+a/2,p={start:{startAngle:h,endAngle:h},end:{startAngle:h,endAngle:u}},d={cx:i,cy:r,angle:l};return h=u,{ratio:o,angles:p,centerPosition:e._getArcPosition(Object.assign({r:c},d)),outerPosition:e._getArcPosition(Object.assign({r:n+e.legendLongestWidth/2+D},d))}});return p},e.prototype._makeValueLabel=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.label})},e.prototype._makeRatioValues=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.ratio})},e.prototype._makeSeriesData=function(){this.valueLabels=this._makeValueLabel(),this.legendLabels=this._getLegendLabels(),this.legendLongestWidth=this._getMaxLengthLegendWidth(),this.ratioValues=this._makeRatioValues();var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},e.prototype._getQuadrantFromAngle=function(t,e){var i=parseInt(t/C,10)+1;return e&&t%C===0&&(i+=1===i?3:-1),i},e.prototype._getRangeForQuadrant=function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},e.prototype._isInQuadrantRange=function(t,e){var i=this._getRangeForQuadrant();return i.start===t&&i.end===e},e.prototype._calculateBaseSize=function(){var t=this.layout.dimension,e=t.width,i=t.height;if(!this.isCombo){var n=this._getRangeForQuadrant();this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?i*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?e*=2:n.start===n.end&&(e*=2,i*=2)}return Math.min(e,i)},e.prototype._calculateRadius=function(){var t=this.isCombo&&this.seriesType===O,e=this._calculateBaseSize(),i=0,n=this.isShowOuterLabel;return t&&(n=this.dataProcessor.isComboDonutShowOuterLabel()),i=n?S:w,e*i*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,i=e.dimension,n=i.width,r=i.height,o=e.position,a=o.top,s=o.left,u=t/2,l=n/2+s,h=r/2+a;return this.isCombo||(this._isInQuadrantRange(1,1)?(l-=u,h+=u):this._isInQuadrantRange(1,2)?l-=u:this._isInQuadrantRange(2,2)?(l-=u,h-=u):this._isInQuadrantRange(2,3)?h-=u:this._isInQuadrantRange(3,3)?(l+=u,h-=u):this._isInQuadrantRange(3,4)?l+=u:this._isInQuadrantRange(4,1)?h+=u:this._isInQuadrantRange(4,4)&&(l+=u,h+=u)),{cx:l,cy:h}},e.prototype._makeCircleBound=function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return Object.assign({r:t},e)},e.prototype._getArcPosition=function(t){return{left:t.cx+t.r*Math.sin(t.angle*L),top:t.cy-t.r*Math.cos(t.angle*L)}},e.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),r={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},o=this._makeParamsForGraphRendering(t,e),a=this.seriesType,s=this.dataProcessor.seriesDataModelMap,u=[],l=0;return(this.dataProcessor.seriesTypes||[]).forEach(function(t){var e=!0;return t!==a?u.push(t):e=!1,e}),u.forEach(function(t){l+=s[t].baseGroups.length}),o.additionalIndex=l,this.graphRenderer.render(i,o,r)},e.prototype.showTooltip=function(t,e,i,n,r){this.eventBus.fire("showTooltip",Object.assign({indexes:{groupIndex:i,index:n},mousePosition:r},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map(function(e){return b["default"].getRenderedTextSize(e,t.labelTheme.fontSize,t.labelTheme.fontFamily).width});return e.sort(function(t,e){return t-e}),e[e.length-1]},e.prototype._makeSeriesDataBySelection=function(t){return{indexes:{index:t,groupIndex:t}}},e.prototype._pickPositionsFromSectorData=function(t,e){var i=this,n=this.options,r=n.showLegend,o=n.showLabel,a=b["default"].getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,s=b["default"].getRenderedTextSize(this.valueLabels[0],M,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map(function(n){var u=n.ratio?Object.assign({},n[t]):null,l=u&&r&&o&&!i.isLabelAlignOuter;return l&&("value"===e?u.top-=s/2:"legend"===e&&(u.top+=a/2)),u})},e.prototype._addEndPosition=function(t,e){e.forEach(function(e){if(e){var i=Object.assign({},e.middle);i.left-1&&r!==i;n&&!o||(this.onSelectSeries({chartType:this.chartType,indexes:{index:r,legendIndex:e.legendIndex}},o),n&&r>-1&&(this.prevClickedIndex=r))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(m["default"]);s.componentType="series",s.PieChartSeries=R},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="heatmap",new p(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(242),c=n(h),p=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBound=function(t,e,i,n){var r=this.layout,o=r.dimension.height,a=r.position,s=a.top,u=a.left;return{end:{left:u+t*i,top:s+o-e*(n+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,n=i.width,r=i.height,o=n/this.dataProcessor.getCategoryCount(!1),a=r/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,n){return t._makeBound(o,a,i,n)})})},e.prototype.onShowTooltip=function(t){var e=t.indexes,i=this._getSeriesDataModel(),n=i.getSeriesItem(e.groupIndex,e.index),r=n.ratio,o=n.label;this.eventBus.fire("showWedge",r,o)},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this.seriesData.groupBounds,r=this.theme.label,o=this.selectedLegendIndex,a=c["default"].boundsToLabelPositions(i,n,r),s=i.map(function(t){return e.decorateLabel(t.valuesMap.value)});return this.graphRenderer.renderSeriesLabel(t,a,s,r,o)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i0}}},e.prototype._makeBoundMap=function(t,e,i){var n=this,r=this._getSeriesDataModel(),o=Object.assign({},this.layout.dimension,this.layout.position),a=r.findSeriesItemsByParent(t);return i=i||o,e=Object.assign(e||{},d["default"].squarify(i,a)),a.forEach(function(t){e=n._makeBoundMap(t.id,e,e[t.id])}),e},e.prototype._makeBounds=function(t){var e=this.startDepth,i=this._getSeriesDataModel(),n=void 0;return n=this.options.zoomable?function(t){return t.depth===e}:function(t){return!t.hasChild},i.map(function(e){return e.map(function(e){var i=t[e.id],r=null;return i&&n(e)&&(r={end:i}),r},!0)},!0)},e.prototype._getBoundMap=function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},e.prototype._shouldDimmed=function(t,e,i){var n=!1;if(e&&i.id!==e.id&&i.group===e.group){var r=t.findParentByDepth(i.id,e.depth+1);r&&r.parent===e.id&&(n=!0)}return n},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this._getBoundMap(),r=this.theme.label,o=this.options.labelTemplate,a=void 0;a=this.options.useLeafLabel?i.findLeafSeriesItems(this.selectedGroup):i.findSeriesItemsByDepth(this.startDepth,this.selectedGroup);var s=a.map(function(t){var i=o?o(t.pickLabelTemplateData()):t.label;return e.decorateLabel(i)}),u=g["default"].boundsToLabelPostionsForTreemap(a,n,r);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,r)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i-1&&this.eventBus.fire("showWedge",i,e.colorValue)}},e.prototype.onHoverOffSeries=function(t){v["default"].isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},e}(c["default"]);s.componentType="series",s.TreemapChartSeries=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(189),o=n(r),a=i(173),s=n(a),u=i(158),l=n(u);e["default"]={boundMap:{},_makeBaseBound:function(t){return Object.assign({},t)},_calculateScale:function(t,e,i){return e*i/s["default"].sum(t)},_makeBaseData:function(t,e,i){var n=this._calculateScale((0,o["default"])(t,"value"),e,i),r=t.map(function(t){return{id:t.id,weight:t.value*n}}).sort(function(t,e){return e.weight-t.weight});return r},_worst:function(t,e,i,n){var r=t*t,o=n*n;return Math.max(o*i/r,r/(o*e))},_changedStackDirection:function(t,e,i,n){var r=l["default"].min(e),o=l["default"].max(e),a=this._worst(t,r,o,i),s=this._worst(t+n,Math.min(r,n),Math.max(o,n),i);return s>=a},_isVerticalStack:function(t){return t.height=0?(e.plusTop-=l,f=c+e.plusTop):(f=c+e.minusTop,e.minusTop+=l);var g=e.left+o-a/2,m=(n.outliers||[]).map(function(t){return{top:s*(1-t.ratio)+p,left:g+a/2}});return{start:{top:c,left:g,width:a,height:0},end:{top:f,left:g,width:a,height:l},min:{top:s*(1-n.minRatio)+p,left:g,width:a,height:0},max:{top:s*(1-n.maxRatio)+p,left:g,width:a,height:0},median:{top:s*(1-n.medianRatio)+p,left:g,width:a,height:0},outliers:m}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stack),n=this.layout.dimension,r=n.width,o=n.height,a=this._makeBaseDataForMakingBound(r,o);return e.map(function(e,n){var r=n*a.groupSize+t.layout.position.left,o={baseLeft:r,left:r,plusTop:0,minusTop:0,prevStack:null},s=t._makeBoxplotChartBound.bind(t,a,o,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,r=y["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-r+v)/2},e}(l["default"]);c["default"].mixin(x),s.componentType="series",s.BoxplotChartSeries=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.chartType="bullet",t.libType=t.chartOptions.libType,t.chartBackground=t.chartTheme.chart.background,new b(t)}e.__esModule=!0,e["default"]=s;var u=i(240),l=n(u),h=i(148),c=n(h),p=i(154),d=n(p),f=d["default"].BULLET_TYPE_ACTUAL,g=d["default"].BULLET_ACTUAL_HEIGHT_RATIO,m=d["default"].BULLET_TYPE_RANGE,y=d["default"].BULLET_RANGES_HEIGHT_RATIO,_=d["default"].BULLET_TYPE_MARKER,v=d["default"].BULLET_MARKERS_HEIGHT_RATIO,x=d["default"].BULLET_MARKER_DETECT_PADDING,T=d["default"].MAX_HEIGHT_WORD,b=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.isVertical=i.isVertical,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this._makeBaseDataForMakingBound(),n={renderedItemCount:0,top:i.categoryAxisTop,left:i.categoryAxisLeft};return e.map(function(e){var r=t._makeBulletChartBound.bind(t,i,n),o=e.map(r);return t._updateIterationData(n,i.itemWidth),o})},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,i=e.dimension,n=i.width,r=i.height,o=e.position,a=o.left,s=o.top,u=void 0,l=void 0;this.isVertical?(s+=r,u=n,l=r):(u=r,l=n);var h=u/t;return{categoryAxisTop:s,categoryAxisLeft:a,categoryAxisWidth:u,valueAxisWidth:l,itemWidth:h}},e.prototype._makeBulletChartBound=function(t,e,i){var n=i.type,r=void 0;return n===f?r=this._makeBarBound(i,g,t,e):n===m?r=this._makeBarBound(i,y,t,e):n===_&&(r=this._makeLineBound(i,v,t,e)),r.type=n,r},e.prototype._makeBarBound=function(t,e,i,n){var r=t.ratioDistance,o=t.endRatio,a=i.itemWidth*e,s=i.valueAxisWidth*r,u=i.valueAxisWidth*o,l=void 0;return l=this.isVertical?this._makeVerticalBarBound(n,i,a,s,u):this._makeHorizontalBarBound(n,i,a,s,u)},e.prototype._makeVerticalBarBound=function(t,e,i,n,r){return{top:t.top-r,left:t.left+(e.itemWidth-i)/2,width:i,height:n}},e.prototype._makeHorizontalBarBound=function(t,e,i,n,r){return{top:t.top+(e.itemWidth-i)/2,left:t.left+r-n,width:n,height:i}},e.prototype._makeLineBound=function(t,e,i,n){var r=i.itemWidth,o=i.valueAxisWidth,a=r*e,s=o*t.endRatio,u=x,l=x,h=void 0,c=void 0;return this.isVertical?(h=n.top-s,c=n.left+(r-a)/2,l=a):(h=n.top+(r-a)/2,c=n.left+s,u=a),{top:h,left:c,width:l,height:u,length:a}},e.prototype._updateIterationData=function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},e.prototype._renderSeriesArea=function(t,e){l["default"].prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},e.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),r=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,r,n,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){var i=[];return t.each(function(t){t.type!==m&&i.push(e.decorateLabel(t.endLabel))}),i})},e.prototype._calculateLabelPositions=function(t,e){var i=this,n=this.seriesData.groupBounds,r=c["default"].getRenderedLabelHeight(T,e);return n.map(function(t){var e=[];return t.forEach(function(t){t.type!==m&&e.push(i._makePositionByBound(t,r))}),e})},e.prototype._makePositionByBound=function(t,e){var i=t.top,n=t.left,r={};if(this.isVertical){var o=t.width||t.length;r.top=i-e,r.left=n+o/2}else{var a=t.width||0,s=t.height||t.length;r.top=i+s/2,r.left=n+5+(a||0)}return r},e}(l["default"]);s.componentType="series",s.BulletChartSeries=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){return new S(t)}e.__esModule=!0,e["default"]=o;var a=i(153),s=n(a),u=i(259),l=n(u),h=i(154),c=n(h),p=i(155),d=n(p),f=i(173),g=n(f),m=i(148),y=n(m),_=i(211),v=n(_),x=i(164),T=n(x),b=c["default"].COMPONENT_TYPE_DOM,A=c["default"].MAP_CHART_ZOOM_AREA_HEIGHT,E=c["default"].MAP_CHART_ZOOM_AREA_WIDTH,D=c["default"].CHART_PADDING,C=s["default"].msie&&s["default"].version<=8,S=function(){function t(e){r(this,t),this.className="tui-chart-zoom-area";var i=e.seriesTypes,n=!(!i||!i.length)&&T["default"].isMapChart(i[0]),o=e.dataProcessor.options.legend,a=T["default"].isLegendAlignTop(o.align),s=o.visible!==!1;this.isMapLegendTop=n&&a&&s,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=b,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!C){var i=g["default"].sum([t.positionMap.series.top,-A,E]);this.isMapLegendTop&&(i=t.positionMap.legend.top-E);var n={top:i,right:D};e=d["default"].create("DIV",this.className),e.innerHTML+=l["default"].ZOOM_BUTTONS,y["default"].renderPosition(e,n),this._attachEvent(e)}return e},t.prototype._findBtnElement=function(t){var e="tui-chart-zoom-btn",i=t;return d["default"].hasClass(t,e)||(i=d["default"].findParentByClass(t,e)),i},t.prototype._zoom=function(t,e){this.eventBus.fire("zoomMap",t,e)},t.prototype._onClick=function(t){var e=t.target||t.srcElement,i=this._findBtnElement(e),n=i.getAttribute("data-magn"),r=this._calculateMagn(n);return r>5?this.magn=5:r<1?this.magn=1:r>=1&&this._zoom(r),t.preventDefault&&t.preventDefault(),!1},t.prototype._attachEvent=function(t){ v["default"].on(t,"click",this._onClick,this)},t.prototype._calculateMagn=function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},t.prototype.onWheel=function(t,e){var i=this._calculateMagn(t);i>5?this.magn=5:i<1?this.magn=1:i>=1&&this._zoom(i,e)},t}();o.componentType="zoom"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(224),o=n(r),a={HTML_SERIES_LABEL:'
{{ label }}
',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'',HTML_SERIES_BLOCK:'
{{ label }}
'};e["default"]={tplSeriesLabel:o["default"].template(a.HTML_SERIES_LABEL),tplCssText:o["default"].template(a.TEXT_CSS_TEXT),tplCssTextForLineType:o["default"].template(a.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:a.HTML_ZOOM_BUTTONS,tplSeriesBlock:o["default"].template(a.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e=e&&r<=i})}),o},e.prototype._filterRawDataByValue=function(t,e){var i=this,n=u(e,2),r=n[0],o=n[1],a=Object.assign({},t);return Object.entries(a.series).forEach(function(t){var e=u(t,2),n=e[0],s=e[1];a.series[n]=i._filterSeriesDataByValue(s,r,o)}),a},e.prototype.updateRawDataForZoom=function(t){var e=this.getCurrentData(),i=this.getRawData(),n=this.isLineCoordinateType()?this._filterRawDataByValue.bind(this):this._filterRawDataByIndexRange.bind(this);this.zoomedRawData=n(e,t),i=n(i,t),this.initData(i)},e.prototype.initZoomedRawData=function(){this.zoomedRawData=null},e.prototype.initData=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.rawData=t,e&&(this.originalRawData=W["default"].deepCopy(t),this.originalLegendData=null),this.categoriesMap=null,this.categoriesIsDateTime={},this.stacks=null,this.seriesDataModelMap={},this.legendVisibilities=null,this.zoomedRawData=null,this.seriesGroups=null,this.valuesMap={},this.legendLabels=null,this.legendData=null,this.multilineCategories=null,this.coordinateType=null,this.lineCoordinateType=null},e.prototype.getRawData=function(){return this.rawData},e.prototype.findChartType=function(t){return B["default"].findChartType(this.rawData.seriesAlias,t)},e.prototype._escapeCategories=function(t){return t.map(function(t){return(0,x["default"])(String(t))})},e.prototype._mapCategories=function(t,e){var i=this,n=e+"Axis",r=this.options[n]||{},o=!1;return o=(0,p["default"])(r)?r.filter(function(t){return t.type&&F["default"].isDatetimeType(t.type)}):r.type&&F["default"].isDatetimeType(r.type),t=o?t.map(function(t){return i.chageDatetypeToTimestamp(t)}):this._escapeCategories(t),this.categoriesIsDateTime[e]=o,t},e.prototype._processCategories=function(t){var e=this.rawData.categories,i={};return(0,p["default"])(e)?i[t]=this._mapCategories(e,t):e&&(e.x&&(i.x=this._mapCategories(e.x,"x")),e.y&&(i.y=this._mapCategories(e.y,"y").reverse())),i},e.prototype.getCategories=function(t){var e=t?"y":"x",i=[];return this.categoriesMap||(this.categoriesMap=this._processCategories(e)),(0,f["default"])(t)?i=this.categoriesMap[e]||[]:Object.values(this.categoriesMap).every(function(t){return i=t,!1}),i},e.prototype.getCategorieDateType=function(t){var e=t?"y":"x";return this.categoriesIsDateTime[e]},e.prototype.chageDatetypeToTimestamp=function(t){var e=new Date(t);return e.getTime()>0||(e=new Date(parseInt(t,10))),e.getTime()||t},e.prototype.getCategoryCount=function(t){var e=this.getCategories(t);return e?e.length:0},e.prototype.hasCategories=function(t){return!!this.getCategoryCount(t)},e.prototype.isXCountGreaterThanYCount=function(t){var e=this.getSeriesDataModel(t);return e.isXCountGreaterThanYCount()},e.prototype.hasXValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},e.prototype.hasYValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},e.prototype.getCategory=function(t,e){return this.getCategories(e)[t]},e.prototype.findCategoryIndex=function(t){var e=this,i=this.getCategories(),n=this.getCategorieDateType(),r=null;return i.forEach(function(i,o){return n&&(t=e.chageDatetypeToTimestamp(t)),i===t&&(r=o),(0,m["default"])(r)}),r},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(e.forEach(function(e,n){var r=e===t;return r&&(i=n),!r}),i):i},e.prototype._getTooltipCategory=function(t,e){var i=this.getCategory(t,e),n=e?"yAxis":"xAxis",r=this.options[n]||{},o=this.options.tooltip||{};return F["default"].isDatetimeType(o.type)?i=H["default"].formatDate(i,o.dateFormat):F["default"].isDatetimeType(r.type)&&(i=H["default"].formatDate(i,r.dateFormat)),i},e.prototype.makeTooltipCategory=function(t,e,i){var n=!i,r=this._getTooltipCategory(t,n),o=this.getCategoryCount(!n);return o&&(r+=", "+this._getTooltipCategory(o-e-1,!n)),r},e.prototype.getStacks=function(t){return this.stacks||(this.stacks=B["default"].pickStacks(this.rawData.series[t])),this.stacks},e.prototype.getStackCount=function(t){return this.getStacks(t).length},e.prototype.findStackIndex=function(t){return(0,_["default"])(t,this.getStacks())},e.prototype.isLineCoordinateType=function(){var t=this.lineCoordinateType;if(!(0,f["default"])(t)){var e=this.chartType;t=F["default"].isLineTypeChart(e)&&!this.hasCategories(),this.lineCoordinateType=t}return t},e.prototype.isCoordinateType=function(){var t=this.coordinateType;if(!(0,f["default"])(t)){var e=this.chartType;t=F["default"].isCoordinateTypeChart(e),t=t||F["default"].isLineScatterComboChart(e,this.seriesTypes),t=t||F["default"].isLineTypeChart(e)&&!this.hasCategories(),this.coordinateType=t}return t},e.prototype.getSeriesDataModel=function(t){if(!this.seriesDataModelMap[t]){var e=this.findChartType(t),i=this.rawData.series[t],n=void 0;n=F["default"].isBoxplotChart(this.chartType)?w["default"]:F["default"].isTreemapChart(this.chartType)?k["default"]:F["default"].isBulletChart(this.chartType)?M["default"]:C["default"],this.seriesDataModelMap[t]=new n(i,e,this.options,this.getFormatFunctions(),this.isCoordinateType())}return this.seriesDataModelMap[t]},e.prototype.getOption=function(t){return this.options[t]},e.prototype.getGroupCount=function(t){return this.getSeriesDataModel(t).getGroupCount()},e.prototype._pushCategory=function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},e.prototype._shiftCategory=function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},e.prototype._findRawSeriesDatumByName=function(t,e){var i=this.rawData.series[e],n=null;return i.forEach(function(e){var i=e.name===t;return i&&(n=e),!i}),n},e.prototype._pushValue=function(t,e,i){var n=this._findRawSeriesDatumByName(t.name,i);t.data.push(e),n&&n.data.push(e)},e.prototype._pushValues=function(t,e,i){var n=this;t.forEach(function(t,r){n._pushValue(t,e[r],i)})},e.prototype._pushSeriesData=function(t){var e=this;if("combo"!==this.chartType&&(0,p["default"])(t)){var i=t;t={},t[this.chartType]=i}Object.entries(this.originalRawData.series).forEach(function(i){var n=u(i,2),r=n[0],o=n[1];e._pushValues(o,t[r],r)})},e.prototype._shiftValues=function(t,e){var i=this;t.forEach(function(t){var n=i._findRawSeriesDatumByName(t.name,e);t.data.shift(),n&&n.data.shift()})},e.prototype._shiftSeriesData=function(){var t=this;Object.entries(this.originalRawData.series).forEach(function(e){var i=u(e,2),n=i[0],r=i[1];t._shiftValues(r,n)})},e.prototype.addDynamicData=function(t,e){this.dynamicData.push({category:t,values:e})},e.prototype._pushDynamicData=function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},e.prototype._pushDynamicDataForCoordinateType=function(t){var e=this;Object.values(this.originalRawData.series).forEach(function(i){e._pushValue(i,t[i.name])})},e.prototype.addDataFromDynamicData=function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},e.prototype.shiftData=function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},e.prototype.addDataFromRemainDynamicData=function(t){var e=this,i=this.dynamicData;this.dynamicData=[],i.forEach(function(i){e._pushCategory(i.category),e._pushSeriesData(i.values),t&&(e._shiftCategory(),e._shiftSeriesData())}),this.initData(this.rawData)},e.prototype._eachByAllSeriesDataModel=function(t){var e=this,i=this.seriesTypes||[this.chartType];i.forEach(function(i){return t(e.getSeriesDataModel(i),i)})},e.prototype.isValidAllSeriesDataModel=function(){var t=!0;return this._eachByAllSeriesDataModel(function(e){t=!!e.getGroupCount()}),t},e.prototype._makeSeriesGroups=function(){var t=[];this._eachByAllSeriesDataModel(function(e){e.each(function(e,i){t[i]||(t[i]=[]),t[i]=t[i].concat(e.items)})});var e=t.map(function(t){return new R["default"](t)});return e},e.prototype.getSeriesGroups=function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},e.prototype.getValue=function(t,e,i){return this.getSeriesDataModel(i).getValue(t,e)},e.prototype.getDefaultDatetimeValues=function(){var t=36e5,e=Date.now();return[e-t,e]},e.prototype.isSeriesDataEmpty=function(t){var e=this.rawData,i=e&&!e.series;return!e||i||!e.series[t]||e.series[t]&&!e.series[t].length},e.prototype.isLimitOptionsEmpty=function(t){var e=this.options[t]||{};return(0,h["default"])(e.min)&&(0,h["default"])(e.max)},e.prototype.isLimitOptionsInsufficient=function(t){var e=this.options[t]||{};return(0,h["default"])(e.min)||(0,h["default"])(e.max)},e.prototype._createValues=function(t,e,i){var n=void 0,r=this.options,o=r.plot,a=r[i]||{},s=a.type,u=this.isSeriesDataEmpty(t),l=this.isLimitOptionsEmpty(i),h=this.isLimitOptionsInsufficient(i),c=F["default"].isLineChart(t)||F["default"].isAreaChart(t)||F["default"].isLineAreaComboChart(t,this.seriesTypes),p=this.defaultValues;if(F["default"].isComboChart(t))n=[],this._eachByAllSeriesDataModel(function(t){n=n.concat(t.getValues(e))});else if(u&&h)if(!l&&h&&(p=p.concat([a.min||a.max])),"x"===e&&"datetime"===s){if(n=this.getDefaultDatetimeValues(),c&&o){var d=this.getValuesFromPlotOptions(o,s);n=n.concat(d)}}else n=p;else n=this.getSeriesDataModel(t).getValues(e);return n},e.prototype.getValuesFromPlotOptions=function(t,e){var i=[];return t.lines&&t.lines.forEach(function(t){i.push("datetime"!==e?t.value:new Date(t.value))}),t.bands&&t.bands.forEach(function(t){var n=t.range.map(function(t){return"datetime"!==e?t:new Date(t)});i=i.concat(n)}),i},e.prototype.getValues=function(t,e,i){var n=t+e;return this.valuesMap[n]||(this.valuesMap[n]=this._createValues(t,e,i)),this.valuesMap[n]},e.prototype.eachBySeriesGroup=function(t,e){this._eachByAllSeriesDataModel(function(i,n){i.each(function(e,i){t(e,i,n)},e)})},e.prototype._pickLegendLabel=function(t){return!(0,m["default"])(t)&&t.name?(0,x["default"])(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return((0,m["default"])(t)||(0,f["default"])(t.visible)&&t.visible===!1)&&(e=!1),e},e.prototype._pickLegendData=function(t){var e=this.rawData.series,i={},n=void 0;return"visibility"===t?n=this._isVisibleLegend:"label"===t&&(n=this._pickLegendLabel),n&&Object.entries(e).forEach(function(t){var e=u(t,2),r=e[0],o=e[1],a=o.map(n);(0,f["default"])(a)&&(i[r]=a)}),i},e.prototype.getLegendLabels=function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},e.prototype.getLegendVisibility=function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},e.prototype._makeLegendData=function(){var t,e=this.getLegendLabels(this.chartType),i=this.getLegendVisibility(),n=this.seriesTypes||[this.chartType],o=void 0;(0,p["default"])(e)?(o=[this.chartType],o[this.chartType]=e):(n=this.seriesTypes,o=e);var a=n.map(function(t){return o[t].map(function(e,n){var r=(0,p["default"])(i[t]);return{chartType:t,label:e,visible:r?i[t][n]:i[n]}})});return(t=[]).concat.apply(t,r(a))},e.prototype.getLegendData=function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},e.prototype.getOriginalLegendData=function(){return this.originalLegendData},e.prototype.getLegendItem=function(t){return this.getLegendData()[t]},e.prototype.getFirstItemLabel=function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},e.prototype.addDataRatiosOfPieChart=function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},e.prototype.addDataRatiosForCoordinateType=function(t,e,i){F["default"].isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,i)},e.prototype._addStartValueToAllSeriesItem=function(t,e){var i=0;t.min>=0?i=t.min:t.max<=0&&(i=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(i)},e.prototype.addDataRatios=function(t,e,i){var n=this.getSeriesDataModel(i);this._addStartValueToAllSeriesItem(t,i),n.addDataRatios(t,e)},e.prototype.addDataRatiosForTreemapChart=function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},e.prototype._createBaseValuesForNormalStackedChart=function(t){var e=this.getSeriesDataModel(t),i=[];return e.each(function(t){var e=t._makeValuesMapPerStack();Object.values(e).forEach(function(t){var e=j["default"].sumPlusValues(t),n=j["default"].sumMinusValues(t);i=i.concat([e,n])})}),i},e.prototype.createBaseValuesForLimit=function(t,e,i,n,r){var o=void 0;return F["default"].isComboChart(this.chartType)&&e?(o=this.getValues(this.chartType,n),F["default"].isNormalStackChart(t,i)&&(o=o.concat(this._createBaseValuesForNormalStackedChart(t)))):o=F["default"].isTreemapChart(t)?this.getValues(t,"colorValue"):F["default"].isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,n,r),o},e.prototype.findOverflowItem=function(t,e){var i=this.getSeriesDataModel(t),n=i.getMaxValue("r"),r=function(t){return t.r/n>b["default"].HALF_RATIO};return{minItem:i.findMinSeriesItem(e,r),maxItem:i.findMaxSeriesItem(e,r)}},e.prototype.setGraphColors=function(t){this.graphColors=t},e.prototype.getGraphColors=function(){return this.graphColors},e.prototype.isComboDonutShowOuterLabel=function(){var t=this.options.series;return t&&t.pie2&&"outer"===t.pie2.labelAlign},e}(E["default"]);e["default"]=Y},function(t,e){"use strict";function i(t){var e={'"':"quot","&":"amp","<":"lt",">":"gt","'":"#39"};return t.replace(/[<>&"']/g,function(t){return e[t]?"&"+e[t]+";":t})}t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(187),a=n(o),s=i(156),u=n(s),l=i(152),h=n(l),c=i(158),p=n(c),d=i(148),f=n(d),g=i(173),m=n(g),y=function(){function t(){r(this,t)}return t.prototype.baseInit=function(){this.formatFunctions=null},t.prototype.getValues=function(){},t.prototype.getCurrentData=function(){},t.prototype.getMaxValue=function(t,e){return p["default"].max(this.getValues(t,e))},t.prototype.getMinValue=function(t,e){return p["default"].min(this.getValues(t,e))},t.prototype.getFormattedMaxValue=function(t,e,i){var n=this.getMaxValue(t,i),r=this.getFormatFunctions();return f["default"].formatValue({value:n,formatFunctions:r,chartType:t,areaType:e,valueType:i})},t.prototype.getFormattedMinValue=function(t,e,i){var n=this.getMinValue(t,i),r=this.getFormatFunctions();return f["default"].formatValue({value:n,formatFunctions:r,chartType:t,areaType:e,valueType:i})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach(function(t){var i=m["default"].getDecimalLength(t);i>e&&(e=i)}),e},t.prototype._isZeroFill=function(t){return t.length>2&&"0"===t.charAt(0)},t.prototype._isDecimal=function(t){var e=t.indexOf(".");return e>-1&&e-1},t.prototype._formatToZeroFill=function(t,e){var i=e<0;return e=f["default"].formatToZeroFill(Math.abs(e),t),(i?"-":"")+e},t.prototype._formatToDecimal=function(t,e){return f["default"].formatToDecimal(e,t)},t.prototype._findSimpleTypeFormatFunctions=function(t){var e=[],i=void 0;if(this._isDecimal(t))i=this._pickMaxLenUnderPoint([t]),e=[this._formatToDecimal.bind(this,i)];else if(this._isZeroFill(t))return i=t.length,e=[this._formatToZeroFill.bind(this,i)];return this._isComma(t)&&e.push(f["default"].formatToComma),e},t.prototype._findFormatFunctions=function(){var t=(0,h["default"])(this.options,"chart","format"),e=[];return(0,a["default"])(t)?e=[t]:(0,u["default"])(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},t.prototype.getFormatFunctions=function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions},t}();e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"value";return this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype.isXCountGreaterThanYCount=function(){return this.getValues("x").length>this.getValues("y").length},t.prototype._addRatiosWhenNormalStacked=function(t){var e=Math.abs(t.max-t.min);this.each(function(t){t.addRatios(e)})},t.prototype._calculateBaseRatio=function(){var t=this.getValues(),e=b["default"].sumPlusValues(t),i=Math.abs(b["default"].sumMinusValues(t)),n=e>0&&i>0?.5:1;return n},t.prototype._addRatiosWhenPercentStacked=function(){var t=this._calculateBaseRatio();this.each(function(e){e.addRatiosWhenPercentStacked(t)})},t.prototype._addRatiosWhenDivergingStacked=function(){this.each(function(t){var e=t.pluck("value"),i=b["default"].sumPlusValues(e),n=Math.abs(b["default"].sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,n)})},t.prototype._makeSubtractionValue=function(t){var e=x["default"].allowMinusPointRender(this.chartType),i=0;return!e&&x["default"].isMinusLimit(t)?i=t.max:(e||t.min>=0)&&(i=t.min),i},t.prototype._addRatios=function(t){var e=Math.abs(t.max-t.min),i=this._makeSubtractionValue(t);this.each(function(t){t.addRatios(e,i)})},t.prototype.addDataRatios=function(t,e){var i=x["default"].isAllowedStackOption(this.chartType);i&&x["default"].isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&x["default"].isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each(function(t){var e=b["default"].sum(t.pluck("value"));t.addRatios(e)})},t.prototype.addDataRatiosForCoordinateType=function(t,e){var i=t.xAxis,n=t.yAxis,r=e?E["default"].max(this.getValues("r")):0,o=void 0,a=void 0,s=void 0,u=void 0;i&&(o=Math.abs(i.max-i.min),a=this._makeSubtractionValue(i)),n&&(s=Math.abs(n.max-n.min),u=this._makeSubtractionValue(n)),this.each(function(t){t.each(function(t){t&&(t.addRatio("x",o,a),t.addRatio("y",s,u),t.addRatio("r",r,0),(0,h["default"])(t.start)&&t.addRatio("start",s,u))})})},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e.addStartValueToAllSeriesItem(t)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t.hasRangeData(),!e}),e},t.prototype.each=function(t,e){var i=e?this._getPivotGroups():this._getSeriesGroups();i.forEach(function(e,i){return t(e,i)})},t.prototype.map=function(t,e){var i=[];return this.each(function(e,n){i.push(t(e,n))},e),i},t}();e["default"]=C},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(146),s=n(a),u=i(189),l=n(u),h=i(173),c=n(h),p=function(){function t(e){r(this,t),this.items=e,this.valuesMap={},this.valuesMapPerStack=null}return t.prototype.getSeriesItemCount=function(){return this.items.length},t.prototype.getSeriesItem=function(t){return this.items[t]},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0)},t.prototype._createValues=function(t){var e=[];return this.each(function(i){i&&((0,s["default"])(i[t])&&e.push(i[t]),(0,s["default"])(i.start)&&e.push(i.start))}),e},t.prototype.getValues=function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype._makeValuesMapPerStack=function(){var t={};return this.each(function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)}),t},t.prototype.getValuesMapPerStack=function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},t.prototype._makeSumMapPerStack=function(){var t=this.getValuesMapPerStack(),e={};return Object.entries(t).forEach(function(t){var i=o(t,2),n=i[0],r=i[1];e[n]=c["default"].sum(r.map(function(t){return Math.abs(t)}))}),e},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e&&e.addStart(t)})},t.prototype.addRatiosWhenPercentStacked=function(t){var e=this._makeSumMapPerStack();this.each(function(i){var n=e[i.stack];i.addRatio(n,0,t)})},t.prototype.addRatiosWhenDivergingStacked=function(t,e){this.each(function(i){var n=i.value>=0?t:e;i.addRatio(n,0,.5)})},t.prototype.addRatios=function(t,e){this.each(function(i){i&&i.addRatio(t,e)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t&&t.isRange,!e}),e},t.prototype.each=function(t){this.items.forEach(t)},t.prototype.map=function(t){return this.items.map(t)},t.prototype.pluck=function(t){var e=this.items.filter(s["default"]);return(0,l["default"])(e,t)},t.prototype.find=function(t){var e=void 0;return this.each(function(i){return t(i)&&(e=i),!e}),e||null},t.prototype.filter=function(t){return this.items.filter(t)},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(146),s=n(a),u=i(137),l=n(u),h=i(154),c=n(h),p=i(148),d=n(p),f=i(173),g=n(f),m=i(164),y=n(m),_=function(){function t(e){r(this,t),this.chartType=e.chartType,this.stack=e.stack||c["default"].DEFAULT_STACK,this.isDivergingChart=e.isDivergingChart,this.formatFunctions=e.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.tooltipLabel=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,y["default"].isBulletChart(this.chartType)&&(this.type=e.type),this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,n=this._createValues(t),r=n.length>1,a=o(n,1),s=a[0];this.value=this.end=s,this.index=e,this.isDivergingChart&&(s=Math.abs(s)),(0,l["default"])(s)?this._setLabel(""):["label","tooltipLabel"].forEach(function(t){i[t]=d["default"].formatValue({value:s,formatFunctions:i.formatFunctions,chartType:i.chartType, areaType:"tooltipLabel"===t?"makingTooltipLabel":"makingSeriesLabel",legendName:i.legendName})}),this.endLabel=this.label,r&&(this.addStart(n[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},t.prototype._setLabel=function(t){this.label=t,this.tooltipLabel=t},t.prototype._createValues=function(t){var e=[].concat(t).map(function(t){return(0,l["default"])(t)?null:parseFloat(t)});return e=e.sort(function(t,e){return t<0&&e<0?t-e:e-t})},t.prototype.addStart=function(t){(0,l["default"])(this.start)&&(this.start=t,this.startLabel=d["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this._setLabel(this.startLabel+" ~ "+this.endLabel)},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.ratio=this.endRatio=g["default"].calculateRatio(this.value,t,e,i),(0,s["default"])(this.start)&&(this.startRatio=g["default"].calculateRatio(this.start,t,e,i),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},t.prototype._getFormattedValueForTooltip=function(t){return d["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return(0,s["default"])(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t},t}();e["default"]=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(140),s=n(a),u=i(149),l=n(u),h=i(146),c=n(h),p=i(150),d=n(p),f=i(164),g=n(f),m=i(148),y=n(m),_=function(){function t(e){r(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.ratioMap={},this._initData(e.datum,e.index)}return t.prototype._initData=function(t,e){var i=void 0;if((0,s["default"])(t))if(this.x=t[0]||0,this.y=t[1]||0,g["default"].isBubbleChart(this.chartType)){var n=o(t,4);this.r=n[2];var r=n[3];this.label=void 0===r?"":r}else{var a=o(t,3),u=a[2];this.label=void 0===u?"":u}else this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||"";if(g["default"].isDatetimeType(this.xAxisType)&&(i=(0,l["default"])(this.x)?this.x:new Date(this.x),this.x=i.getTime()||0),this.index=e,!this.label){g["default"].isLineTypeChart(this.chartType)&&g["default"].isDatetimeType(this.xAxisType)?this.label=y["default"].formatDate(this.x,this.dateFormat):this.label=y["default"].formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});var h=y["default"].formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});this.label+=", "+h}},t.prototype.addStart=function(t){this.start=t},t.prototype.addRatio=function(t,e,i){!(0,c["default"])(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-i)/e)},t.prototype._getFormattedValueForTooltip=function(t){var e=this.ratioMap[t],i=this[t],n=y["default"].formatValue({value:i,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return(0,d["default"])(e)?n:i},t.prototype.pickValueMapForTooltip=function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return(0,c["default"])(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t},t}();e["default"]=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(268),u=n(s),l=i(263),h=n(l),c=i(140),p=n(c),d=Array.prototype.concat,f=function(t){function e(i,n,a,s){r(this,e);var u=o(this,t.call(this));return u.chartType=n,u.options=a||{},u.formatFunctions=s,u.rawSeriesData=i||[],u.baseGroups=null,u.groups=null,u.options.series=u.options.series||{},u.valuesMap={},u}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions;return this.rawSeriesData.map(function(i){var n=(0,p["default"])(i)?i:[].concat(i.data),r=n.map(function(n,r){return new u["default"]({datum:n,chartType:t,formatFunctions:e,index:r,legendName:i.name})});return r})},e.prototype._createValues=function(){var t=[];return this.map(function(e){return e.items.forEach(function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)})}),t=d.apply([],t),t.filter(function(t){return!isNaN(t)})},e}(h["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(146),s=n(a),u=i(137),l=n(u),h=i(148),c=n(h),p=i(173),d=n(p),f=function(){function t(e){r(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,n=this._createValues(t),r=o(n,5),a=r[0],s=r[1],u=r[2],l=r[3],h=r[4],p=n.length>5,d=void 0,f=function(t){return c["default"].formatValue({value:t,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"makingSeriesLabel",legendName:i.legendName})};this.value=this.max=h,this.uq=l,this.median=u,this.lq=s,this.min=a,this.index=e,p&&(this.outliers=[],d=this.outliers,n.slice(5).forEach(function(t){d.push({value:t,label:f(t)})})),this.label=f(h),this.uqLabel=f(l),this.medianLabel=f(u),this.lqLabel=f(s),this.minLabel=f(a),this.maxLabel=this.label},t.prototype._createValues=function(t){return[].concat(t).map(function(t){return(0,l["default"])(t)?null:parseFloat(t)})},t.prototype.addStart=function(t){(0,l["default"])(this.min)&&(this.min=t,this.minLabel=c["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.minLabel+"~"+this.maxLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=d["default"].calculateRatio;this.ratio=this.maxRatio=n(this.max,t,e,i),this.uqRatio=n(this.uq,t,e,i),this.medianRatio=n(this.median,t,e,i),this.lqRatio=n(this.lq,t,e,i),this.minRatio=n(this.min,t,e,i),(this.outliers||[]).forEach(function(r){r.ratio=n(r.value,t,e,i)}),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},t.prototype._getFormattedValueForTooltip=function(t){return c["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return(0,s["default"])(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(265),u=n(s),l=i(263),h=n(l),c=i(154),p=n(c),d=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=0,n=0,r=this.rawSeriesData.map(function(r){var o=[],a=r.data,s=r.markers,l=r.ranges,h=s.length,c=l.length;return l&&c&&(l.forEach(function(i){o.push(new u["default"]({datum:i,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_RANGE}))}),i=Math.max(i,c)),a&&o.push(new u["default"]({datum:a,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_ACTUAL})),s&&h&&(s.forEach(function(i){o.push(new u["default"]({datum:i,chartType:t,formabutFunctions:e,type:p["default"].BULLET_TYPE_MARKER}))}),n=Math.max(n,h)),o});return this.maxMarkerCount=n,this.maxRangeCount=i,r},e.prototype._createSeriesGroupsFromRawData=function(){return h["default"].prototype._createSeriesGroupsFromRawData.call(this)},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(189),l=n(u),h=i(146),c=n(h),p=i(137),d=n(p),f=i(145),g=n(f),m=i(263),y=n(m),_=i(271),v=n(_),x=i(154),T=n(x),b=i(173),A=n(b),E=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a1&&(n+=e.slice(1).join("_")),n},e.prototype._isValidGroup=function(t,e){return!(0,c["default"])(e)||t===e},e.prototype.findSeriesItemsByDepth=function(t,e){var i=this,n=this._makeCacheKey(T["default"].TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(n,function(n){return n.depth===t&&i._isValidGroup(n.group,e)})},e.prototype.findSeriesItemsByParent=function(t){var e=this._makeCacheKey(T["default"].TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,function(e){return e.parent===t})},e.prototype.findLeafSeriesItems=function(t){var e=this,i=this._makeCacheKey(T["default"].TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(i,function(i){return!i.hasChild&&e._isValidGroup(i.group,t)})},e.prototype.findParentByDepth=function(t,e){var i=this.seriesItemMap[t]||null;return i&&i.depth!==e&&(i=this.findParentByDepth(i.parent,e)),i},e.prototype.initSeriesItemsMap=function(){this.foundSeriesItemsMap=null},e}(y["default"]);e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(173),a=n(o),s=i(148),u=n(s),l=i(146),h=n(l),c=function(){function t(e,i,n){r(this,t),this.chartType=n,this.formatFunctions=i,this.id=e.id,this.parent=e.parent,this.value=e.value,this.ratio=e.ratio,this.colorValue=e.colorValue,this.depth=e.depth,this.label=e.label||"",this.group=e.group,this.hasChild=!!e.hasChild,this.indexes=e.indexes,this.fillOpacity=e.fillOpacity}return t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.colorRatio=a["default"].calculateRatio(this.colorValue,t,e,1)||-1},t.prototype.pickValueMapForTooltip=function(){var t=this.formatFunctions,e=this.chartType,i=this.colorValue,n=u["default"].formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),r=n,o={legend:this.label||"",value:n,label:r,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return(0,h["default"])(i)&&(o.colorValue=u["default"].formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),o.colorRatio=this.colorRatio),o},t.prototype.pickLabelTemplateData=function(){var t={value:this.value,ratio:this.ratio,label:this.label};return(0,h["default"])(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t},t}();e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(273),o=n(r),a=i(279),s=n(a),u=i(154),l=n(u),h=i(164),c=n(h);e["default"]={_createBoundsModel:function(t,e){return new o["default"]({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,i){return new s["default"]({chartType:i.chartType,seriesTypes:i.seriesTypes,options:i.options,theme:i.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:i.hasRightYAxis,addedDataCount:i.addedDataCount})},addYAxisScale:function(t,e,i,n){t.addScale(e,i&&i.options||n||{},{valueType:i.valueType||"value",areaType:i.areaType,chartType:i.chartType},i.additionalOptions)},_registerYAxisDimension:function(t,e,i,n,r){var o=t.get(n),a=null,s=[];if(o){var u=i[n];u&&(a=u.limit,s=u.labels),e.registerYAxisDimension({limit:a,axisName:n,options:o.options,theme:o.theme,yAxisLabels:s,isVertical:r})}},_setLayoutBoundsAndScale:function(t,e,i,n,r){var o=r.options,a=r.scaleOption,s=void 0===a?{}:a,u=r.addingDataMode,h=r.isVertical;e.has("xAxis")&&i.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?i.registerSpectrumLegendDimension():i.registerLegendDimension()),s.yAxis&&this.addYAxisScale(n,"yAxis",s.yAxis,r.options.yAxis),s.rightYAxis&&this.addYAxisScale(n,"rightYAxis",s.rightYAxis),s.legend&&n.addScale("legend",{},{chartType:r.chartType},{tickCounts:[l["default"].SPECTRUM_LEGEND_TICK_COUNT]});var p=n.scaleDataMap;p.legend&&e.get("legend")&&e.get("legend").colorSpectrum&&i.registerSpectrumLegendDimension(p.legend.limit),this._registerYAxisDimension(e,i,p,"yAxis",h),this._registerYAxisDimension(e,i,p,"rightYAxis",h),s.xAxis&&n.addScale("xAxis",o.xAxis,{valueType:s.xAxis.valueType||"value"},s.xAxis.additionalOptions),r.hasAxes&&n.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&o.circleLegend.visible&&i.registerCircleLegendDimension(n.axisDataMap),e.has("xAxis")&&(c["default"].isAutoTickInterval(o.xAxis.tickInterval)&&n.updateXAxisDataForAutoTickInterval(r.prevXAxisData,u),n.updateXAxisDataForLabel(u)),i.registerBoundsData(n.axisDataMap.xAxis)},build:function(t,e,i){var n=this._createBoundsModel(t,i),r=this._createScaleDataModel(t,n,i);this._setLayoutBoundsAndScale(t,e,n,r,i);var o={dimensionMap:n.dimensionMap,positionMap:n.positionMap,limitMap:r.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)};return r.axisDataMap&&(o.axisDataMap=r.axisDataMap),c["default"].isBubbleChart(i.chartType)&&(o.maxRadius=n.calculateMaxRadius(r.axisDataMap)),r.scaleDataMap.legend&&(o.legendScaleData=r.scaleDataMap.legend),o}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(153),a=n(o),s=i(140),u=n(s),l=i(146),h=n(l),c=i(189),p=n(c),d=i(154),f=n(d),g=i(164),m=n(g),y=i(148),_=n(y),v=i(143),x=n(v),T=i(274),b=n(T),A=i(275),E=n(A),D=i(276),C=n(D),S=i(277),w=n(S),L=i(278),M=n(L),P=f["default"].LEGEND_AREA_H_PADDING,k=a["default"].msie&&a["default"].version<=8,O=function(){function t(e){r(this,t),this.options=e.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=e.theme||{},this.hasAxes=e.hasAxes,this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[],this.dataProcessor=e.dataProcessor,this.initBoundsData()}return t.prototype.initBoundsData=function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=f["default"].CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},t.prototype._registerDimension=function(t,e){this.dimensionMap[t]=Object.assign(this.dimensionMap[t]||{},e)},t.prototype.getBound=function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}}},t.prototype._setBound=function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},t.prototype.getDimension=function(t){return this.dimensionMap[t]},t.prototype.getDimensionMap=function(t){var e=this,i={};return t&&t.length?t.forEach(function(t){i[t]=e.dimensionMap[t]}):i=this.dimensionMap,JSON.parse(JSON.stringify(i))},t.prototype.getPosition=function(t){return this.positionMap[t]},t.prototype._registerChartDimension=function(){var t=this.options.chart||{},e={width:t.width||f["default"].CHART_DEFAULT_WIDTH,height:t.height||f["default"].CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},t.prototype._registerTitleDimension=function(){var t=this.options.chart||{},e=(0,h["default"])(t.title),i=this.theme.title,n=e?x["default"].getRenderedTextSize(t.title.text,i.fontSize,i.fontFamily).height:0,r=n||0;r&&(r+=f["default"].TITLE_PADDING),this._registerDimension("title",{height:r})},t.prototype._registerChartExportMenuDimension=function(){var t=void 0;t=this.options.chartExportMenu.visible===!1?{width:0,height:0}:{height:f["default"].CHART_EXPORT_MENU_SIZE+f["default"].SERIES_AREA_V_PADDING,width:f["default"].CHART_EXPORT_MENU_SIZE},this._registerDimension("chartExportMenu",t)},t.prototype.registerXAxisHeight=function(){this._registerDimension("xAxis",{height:E["default"].calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},t.prototype.registerLegendDimension=function(){var t=(0,p["default"])(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,i=this.theme.legend.label,n=this.getDimension("chart").width,r=C["default"].calculate(e,i,t,n);this._registerDimension("legend",r)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=t?t.min:"",n=this.theme.label,r=this.options.legend.align,o=void 0;if(m["default"].isHorizontalLegend(r)){var a=m["default"].isBoxTypeChart(this.chartType),s=m["default"].isLegendAlignTop(r);o=M["default"]._makeHorizontalDimension(e,n,a,s)}else o=M["default"]._makeVerticalDimension(e,i,n);this._registerDimension("legend",o),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,i=t.options,n=t.theme,r=t.yAxisLabels,o=t.isVertical,a=t.axisName,s=this.options.series&&this.options.series.diverging,l=void 0,h=void 0;if(e)l=[e.min,e.max];else{if(!m["default"].isHeatmapChart(this.chartType)&&o)return;l=this.dataProcessor.getCategories(!0)}h=(0,u["default"])(i)?"yAxis"===a?i[0]:i[1]:i,this._registerDimension(a,{width:E["default"].calculateYAxisWidth(l,h,n,r,s)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),i=0;m["default"].isColumnTypeChart(this.chartType)||(i=_["default"].getRenderedLabelHeight(t,this.theme.title));var n=w["default"].calculateWidth(e,this.options.legend,i);return m["default"].isMapChart(this.chartType)&&!k&&(n-=f["default"].MAP_CHART_ZOOM_AREA_WIDTH+P),n},t.prototype.calculateSeriesHeight=function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]),e=0;return this.options.yAxis&&this.options.yAxis.title&&(e=_["default"].getRenderedLabelHeight(this.options.yAxis.title,this.theme.title)),w["default"].calculateHeight(t,this.options.legend,e)},t.prototype.getBaseSizeForLimit=function(t){var e=void 0;return e=t?this.calculateSeriesHeight():this.calculateSeriesWidth()},t.prototype._makeSeriesDimension=function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},t.prototype.registerSeriesDimension=function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},t.prototype._updateLegendAndSeriesWidth=function(t,e){var i=this.options.legend;m["default"].isVerticalLegend(i.align)&&i.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},t.prototype.registerCircleLegendDimension=function(t){var e=this.getDimension("series"),i=this.options.legend,n=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),r=this.theme.chart.fontFamily,o=b["default"].calculateCircleLegendWidth(e,t,n,r),a=void 0;a=m["default"].isVerticalLegend(i.align)&&i.visible?this.getDimension("legend").width:0,o=Math.min(o,Math.max(a,f["default"].MIN_LEGEND_WIDTH));var s=o-a;this._registerDimension("circleLegend",{width:o,height:o}),s>0&&this._updateLegendAndSeriesWidth(o,s)},t.prototype._makePlotDimension=function(){var t=this.getDimension("series");return{width:t.width,height:t.height+f["default"].OVERLAPPING_WIDTH}},t.prototype._registerCenterComponentsDimension=function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},t.prototype._registerAxisComponentsDimension=function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},t.prototype._updateDimensionsWidth=function(t){var e=Math.max(t.overflowLeft,0),i=t.overflowRight?Math.max(t.overflowRight,0):0,n=e+i;this.chartLeftPadding+=e,this.dimensionMap.plot.width-=n,this.dimensionMap.series.width-=n,this.dimensionMap.mouseEventDetector.width-=n,this.dimensionMap.xAxis.width-=n},t.prototype._updateDimensionsHeight=function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},t.prototype._updateDimensionsForXAxisLabel=function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},t.prototype._registerAxisComponentsPosition=function(t){var e=this.getPosition("series"),i=this.getDimension("series"),n=this.getDimension("yAxis").width,r=t+n+i.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+i.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+r-f["default"].OVERLAPPING_WIDTH}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,i=this.getPosition("series").top,n=this.options.legend,r=0,o=void 0,a=void 0;return m["default"].isHorizontalLegend(n.align)?(a=(this.getDimension("chart").width-this.getDimension("legend").width)/2,r=m["default"].isLegendAlignBottom(n.align)?i+e.height+this.getDimension("xAxis").height+f["default"].SERIES_AREA_V_PADDING:i-t.legend.height+f["default"].LEGEND_AREA_V_PADDING):(m["default"].isLegendAlignLeft(n.align)?a=this.chartLeftPadding:(o=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,a=this.chartLeftPadding+o+e.width),r=i+f["default"].SERIES_AREA_V_PADDING),{top:r,left:a}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,i=this.getPosition("series"),n=this.getDimension("series"),r=this.getDimension("legend"),o=void 0,a=void 0,s=void 0;m["default"].isHorizontalLegend(e)?(a=(this.getDimension("chart").width-r.width)/2,o=m["default"].isLegendAlignTop(e)?i.top-r.height:i.top+n.height+this.getDimension("xAxis").height):(m["default"].isLegendAlignLeft(t.align)?a=this.chartLeftPadding:(s=this.getDimension("chart").width-this.chartLeftPadding,a=s-this.getDimension("legend").width),o=m["default"].isBoxTypeChart(this.chartType)?i.top:i.top+.75*f["default"].MAP_CHART_ZOOM_AREA_HEIGHT);var u={top:o,left:a};return s&&(u.right=s),u},t.prototype._makeChartExportMenuPosition=function(){var t=this.getPosition("series").top-f["default"].SERIES_AREA_V_PADDING-f["default"].CHART_EXPORT_MENU_SIZE;return{top:t,right:f["default"].CHART_PADDING}},t.prototype._makeCircleLegendPosition=function(){var t=this.getPosition("series"),e=this.getDimension("series"),i=this.getDimension("circleLegend"),n=this.options.legend,r=void 0,o=void 0;return r=m["default"].isLegendAlignLeft(n.align)?0:t.left+e.width,m["default"].isVerticalLegend(n.align)&&n.visible&&(o=this.getDimension("legend").width+f["default"].CHART_PADDING,r+=(o-i.width)/2),{top:t.top+e.height-i.height,left:r}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(m["default"].isPieChart(t)||m["default"].isMapChart(t)||m["default"].isTreemapChart(t)||m["default"].isRadialChart(t)||m["default"].isPieDonutComboChart(t,this.seriesTypes))},t.prototype._registerEssentialComponentsPositions=function(){var t=this.getPosition("series"),e=void 0;this.positionMap.mouseEventDetector=Object.assign({},t),this.positionMap.legend=this.useSpectrumLegend?this._makeSpectrumLegendPosition():this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),e=this._isNeedExpansionSeries()?{top:t.top-f["default"].SERIES_EXPAND_SIZE,left:t.left-f["default"].SERIES_EXPAND_SIZE}:t,this.positionMap.tooltip=e},t.prototype._registerPositions=function(){var t=this,e=this.options.legend.align,i=this.options.legend.visible,n=this.getDimension("legend"),r=m["default"].isLegendAlignTop(e)&&i,o=m["default"].isLegendAlignLeft(e)&&i,a=r?n.height:0,s=o?n.width:0,u=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),l=function(){if(t.options.yAxis.title&&!t.useSpectrumLegend){var e=_["default"].getRenderedLabelHeight(t.options.yAxis.title,t.theme.yAxis.title);return e+f["default"].Y_AXIS_TITLE_PADDING}return 0}(),h=Math.max(0,Math.max(a,l)-f["default"].TITLE_PADDING),c=u+h;u||(c=Math.max(a,l));var p={top:c+f["default"].CHART_PADDING,left:this.chartLeftPadding+s+this.getDimension("yAxis").width};this.positionMap.series=p,this.hasAxes&&this._registerAxisComponentsPosition(s),this._registerEssentialComponentsPositions()},t.prototype._registerExtendedSeriesBound=function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=_["default"].expandBound(t)),this._setBound("extendedSeries",t)},t.prototype._updateBoundsForYAxisCenterOption=function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+f["default"].OVERLAPPING_WIDTH,i=t-f["default"].OVERLAPPING_WIDTH,n=_["default"].isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=f["default"].OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+f["default"].OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-n,this.positionMap.extendedSeries.left-=i-n,this.positionMap.plot.left-=i,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=i,this.positionMap.mouseEventDetector.left-=i,this.positionMap.tooltip.left-=i}, t.prototype.registerBoundsData=function(t){this._registerCenterComponentsDimension(),this.useSpectrumLegend&&this._updateDimensionsForSpectrumLegend(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},t.prototype._updateDimensionsForSpectrumLegend=function(){var t=this.options.legend.align,e=this.getDimension("legend"),i=this.getDimension("series");m["default"].isHorizontalLegend(t)&&e.width>i.width?e.width=i.width:m["default"].isVerticalLegend(t)&&(m["default"].isBoxTypeChart(this.chartType)?e.height=i.height:e.height>i.height-f["default"].MAP_CHART_ZOOM_AREA_HEIGHT&&(e.height=i.height-f["default"].MAP_CHART_ZOOM_AREA_HEIGHT))},t.prototype.calculateMaxRadius=function(t){var e=this.getDimensionMap(["series","circleLegend"]),i=!!this.options.circleLegend&&this.options.circleLegend.visible;return b["default"].calculateMaxRadius(e,t,i)},t}();e["default"]=O},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),a=i(148),s=n(a);e["default"]={_calculatePixelStep:function(t,e){var i=t.tickCount,n=void 0;return n=t.isLabelAxis?e/i/2:e/(i-1),parseInt(n,10)},_calculateRadiusByAxisData:function(t,e){var i=this._calculatePixelStep(e.yAxis,t.height),n=this._calculatePixelStep(e.xAxis,t.width);return Math.min(i,n)},_getCircleLegendLabelMaxWidth:function(t,e){return s["default"].getRenderedLabelWidth(t,{fontSize:o["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,n){var r=this._calculateRadiusByAxisData(t,e),a=this._getCircleLegendLabelMaxWidth(i,n);return Math.max(2*r,a)+o["default"].CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var n=this._calculateRadiusByAxisData(t.series,e),r=t.circleLegend.width;return i?Math.min((r-o["default"].CIRCLE_LEGEND_PADDING)/2,n):n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),a=i(164),s=n(a),u=i(148),l=n(u);e["default"]={calculateXAxisHeight:function(t,e){var i=t.title,n=i?l["default"].getRenderedLabelHeight(i.text,e.title):0,r=n?n+o["default"].X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=l["default"].getRenderedLabelHeight(o["default"].MAX_HEIGHT_WORD,e.label),u=r+o["default"].X_AXIS_LABEL_PADDING;return a>0&&(u+=a),t.showLabel!==!1&&(u+=s),u},calculateYAxisWidth:function(t,e,i,n,r){var a=e.labelMargin,u=e.prefix,h=e.suffix,c=e.isCenter,p=e.type,d=e.dateFormat,f=e.showLabel,g=e.title,m=e.maxWidth,y=0,_=0,v=0;return t=e.categories||t,t=l["default"].addPrefixSuffix(t,u,h),n=l["default"].addPrefixSuffix(n,u,h),c&&(v+=o["default"].Y_AXIS_LABEL_PADDING),s["default"].isDatetimeType(p)&&(t=l["default"].formatDates(t,d),n=l["default"].formatDates(n,d)),a&&a>0&&(v+=a),t=n.length?n:t,f!==!1&&(_=l["default"].getRenderedLabelsMaxWidth(t,i.label,m)),g&&(y=l["default"].getRenderedLabelWidth(g.text,i.title)),v+=(r?Math.max(_,y):_)+o["default"].Y_AXIS_LABEL_PADDING}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),a=i(164),s=n(a),u=i(173),l=n(u),h=i(148),c=n(h),p=i(158),d=n(p),f=o["default"].LEGEND_CHECKBOX_SIZE,g=o["default"].LEGEND_ICON_WIDTH,m=o["default"].LEGEND_LABEL_LEFT_PADDING,y=o["default"].LEGEND_V_LABEL_RIGHT_PADDING,_=o["default"].LEGEND_H_LABEL_RIGHT_PADDING,v=o["default"].LEGEND_AREA_H_PADDING;e["default"]={_calculateLegendsWidth:function(t,e,i,n){var r=l["default"].sum([v,i,g,m]);return t.map(function(t){var i=c["default"].getRenderedLabelWidth(t,e);return n&&i>n&&(i=n),i+=r,i+_})},_divideLegendLabels:function(t,e){var i=[],n=[];return t.forEach(function(t){n.length=e);return s=Math.min(s,e),{labels:this._optimizedHorizontalLegendLabels(t,h,s),maxLineWidth:s}},_optimizedHorizontalLegendLabels:function(t,e,i){var n=[],r=t.length-1,o=0,a=[];return t.forEach(function(t,s){var u=e[s],l=v-_,h=o+u+l;h<=i?a.push(t):(n.push(a),a=[t],o=0),o+=u,r===s&&n.push(a)}),n},_calculateHorizontalLegendHeight:function(t,e){var i=Math.max.apply(null,t.map(function(t){return c["default"].getRenderedLabelsMaxHeight(t,e)})),n=l["default"].sum([Math.max(o["default"].LEGEND_CHECKBOX_SIZE,i),o["default"].LINE_MARGIN_TOP]),r=n*t.length-o["default"].LINE_MARGIN_TOP+o["default"].SERIES_AREA_V_PADDING;return r},_makeHorizontalDimension:function(t,e,i,n,r){var a=this._makeDividedLabelsAndMaxLineWidth(e,i,t,n,r),s=this._calculateHorizontalLegendHeight(a.labels,t),u=s+o["default"].SERIES_AREA_V_PADDING;return{width:Math.max(a.maxLineWidth,o["default"].MIN_LEGEND_WIDTH),height:u}},_makeVerticalDimension:function(t,e,i,n){var r=c["default"].getRenderedLabelsMaxWidth(e,t),o=0;return n&&r>n&&(r=n),o=l["default"].sum([2*v,i,g,m,r,y]),{width:o,height:0}},calculate:function(t,e,i,n){var r=t.showCheckbox===!1?0:f+m,o=t.maxWidth,a={};return t.visible?a=s["default"].isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,n,r,o):this._makeVerticalDimension(e,i,r,o):a.width=0,a}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),a=i(164),s=n(a);e["default"]={calculateWidth:function(t,e,i){var n=t.chart.width,r=t.yAxis,a=t.rightYAxis,u=t.legend,l=r.width+a.width,h=u,c=0,p=0;return s["default"].isVerticalLegend(e.align)&&e.visible&&(c=h?h.width:0),c||a.width||!i||(p=i/2),n-2*o["default"].CHART_PADDING-l-c-p},calculateHeight:function(t,e,i){var n=t.chart.height,r=Math.max(t.title.height,t.chartExportMenu.height),a=e.visible?t.legend.height:0,u=s["default"].isLegendAlignTop(e.align)?a:0,l=Math.max(0,Math.max(i,u)-o["default"].TITLE_PADDING),h=r+l,c=s["default"].isLegendAlignBottom(e.align)?a:0,p=t.xAxis.height+c;return n-2*o["default"].CHART_PADDING-h-p}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(154),o=n(r),a=i(148),s=n(a),u=i(173),l=n(u),h=o["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,c=o["default"].MAP_LEGEND_WEDGE_SIZE,p=o["default"].MAP_LEGEND_AREA_PADDING_WIDE,d=o["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,f=o["default"].MAP_LEGEND_GRAPH_SIZE,g=o["default"].MAP_LEGEND_LABEL_PADDING,m=o["default"].VERTICAL_MAP_LEGEND_HEIGHT,y=o["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,_=o["default"].MAP_LEGEND_AREA_PADDING_NARROW,v=o["default"].HORIZONTAL_MAP_LEGEND_WIDTH;e["default"]={_makeVerticalDimension:function(t,e,i){var n=s["default"].getRenderedLabelWidth(t,i),r=s["default"].getRenderedLabelWidth(e,i),o=s["default"].getRenderedLabelWidth(t,i),a=l["default"].sum([2*h,o,c]);return{width:l["default"].sum([p,a,d,f,g,Math.max(n,r)]),height:m}},_makeHorizontalDimension:function(t,e,i,n){var r=s["default"].getRenderedLabelHeight(t,e),o=l["default"].sum([2*y,r,c]),a=i?_:p,u=n?p:0;return{width:v,height:l["default"].sum([a,o,d,f,g,r,g,u])}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(140),a=n(o),s=i(137),u=n(s),l=i(280),h=n(l),c=i(282),p=n(c),d=i(283),f=n(d),g=i(164),m=n(g),y=i(148),_=n(y),v=function(){function t(e){r(this,t),this.chartType=e.chartType,this.seriesTypes=e.seriesTypes,this.dataProcessor=e.dataProcessor,this.boundsModel=e.boundsModel,this.options=e.options,this.theme=e.theme,this.hasRightYAxis=!!e.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(e.addedDataCount),this.initForAutoTickInterval()}return t.prototype.initScaleData=function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},t.prototype.initForAutoTickInterval=function(){this.firstTickCount=null},t.prototype._pickLimitOption=function(t){return t=t||{},{min:t.min,max:t.max}},t.prototype._createBaseScaleData=function(t,e,i,n){var r=t.chartType,o="xAxis"!==t.areaType,a=this.dataProcessor.createBaseValuesForLimit(r,n.isSingleYAxis,e.stack,t.valueType,t.areaType),s=this.boundsModel.getBaseSizeForLimit(o),u=Object.assign(e,{isVertical:o,limitOption:this._pickLimitOption(i),tickCounts:n.tickCounts,showLabel:this.options.series.showLabel});return m["default"].isBubbleChart(r)&&(u.overflowItem=this.dataProcessor.findOverflowItem(r,t.valueType)),(m["default"].isMapChart(r)||m["default"].isHeatmapChart(r)||m["default"].isTreemapChart(r))&&(u.useSpectrumLegend=!0),h["default"].makeScaleData(a,s,r,u)},t.prototype._createScaleLabels=function(t,e,i,n){var r=this.dataProcessor.getFormatFunctions(),o=Object.assign(i,{dateFormat:n});return p["default"].createFormattedLabels(t,e,o,r)},t.prototype._createScaleData=function(t,e,i){var n=this.options.series,r=e.chartType||this.chartType;e.chartType=r,n=n[r]||n;var o={stack:i.stack||n.stack,diverging:n.diverging,type:t.type},a=this._createBaseScaleData(e,o,t,i);return Object.assign(a,{labels:this._createScaleLabels(a,e,o,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,i,n,r){var o=this.dataProcessor.hasCategories(),a=!n&&!o&&i,s=t.labels,u=t.limit,l=t.step,h=s.length,c=f["default"].makeValueAxisData({labels:s,tickCount:s.length,limit:u,step:l,labelTheme:e,aligned:i,options:t.axisOptions,isVertical:!!n,isPositionRight:!!r});if(a){var p=this.dataProcessor.getValues(this.chartType,"x"),d=f["default"].makeAdditionalDataForCoordinateLineType(s,p,u,l,h);Object.assign(c,d)}return c},t.prototype._createLabelAxisData=function(t,e,i,n,r){var o=t.categories||this.dataProcessor.getCategories(n);return f["default"].makeLabelAxisData({labels:o,options:t,labelTheme:e,aligned:i,isVertical:!!n,isPositionRight:!!r,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,i,n,r){var o=m["default"].isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn,a=void 0;return a=t?this._createValueAxisData(t,i,o,n,r):this._createLabelAxisData(e,i,o,n,r)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,i=this.theme,n=(0,a["default"])(e.yAxis)?e.yAxis:[e.yAxis],r={};return r.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),r.yAxis=this._createAxisData(t.yAxis,n[0],i.yAxis.label,!0),this.hasRightYAxis&&(r.rightYAxis=this._createAxisData(t.rightYAxis,n[1],i.yAxis.label,!0,!0),r.rightYAxis.aligned||(r.rightYAxis.aligned=r.yAxis.aligned)),r},t.prototype.addScale=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.areaType=i.areaType||t,i.chartType=n.chartType||i.chartType,this.scaleDataMap[t]=this._createScaleData(e,i,n)},t.prototype.setAxisDataMap=function(){this.axisDataMap=this._createAxesData()},t.prototype.updateXAxisDataForAutoTickInterval=function(t,e){var i=this.options.series.shifting,n=this.options.series.zoomable,r=this.axisDataMap.xAxis,o=this.boundsModel.getDimension("series").width,a=this.addedDataCount;i||!t||n?f["default"].updateLabelAxisDataForAutoTickInterval(r,o,a,e):f["default"].updateLabelAxisDataForStackingDynamicData(r,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=r.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,i=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),n=e.isLabelAxis,r=this.theme.xAxis.label,o=void 0,a=void 0,s=e.labels;t&&(s=s.slice(0,s.length-1)),s=_["default"].addPrefixSuffix(s,this.options.xAxis.prefix,this.options.xAxis.suffix);var l=s.filter(function(t){return t});o=(0,u["default"])(this.prevValidLabelCount)?l.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(o+=1,i.yAxis.width=0),a=e.options.rotateLabel===!1?f["default"].makeAdditionalDataForMultilineLabels(s,o,r,n,i):f["default"].makeAdditionalDataForRotatedLabels(l,o,r,n,i),this.prevValidLabelCount=o,Object.assign(e,a)},t.prototype._findLimit=function(t,e,i){var n=void 0;return n=0===e?i?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},t.prototype.makeLimitMap=function(t,e){var i=this,n=this.scaleDataMap,r={};return n.xAxis&&(r.xAxis=n.xAxis.limit),n.yAxis&&(r.yAxis=n.yAxis.limit),n.rightYAxis&&(r.rightYAxis=n.rightYAxis.limit),n.legend&&(r.legend=n.legend.limit),t.forEach(function(t,n){r[t]=i._findLimit(r,n,e)}),r},t}();e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(154),a=n(o),s=i(164),u=n(s),l=i(173),h=n(l),c=i(158),p=n(c),d=i(281),f=n(d),g=i(146),m=n(g),y={_makeLimitForDivergingOption:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,i){var n=t.min,r=t.max;return i.min&&(n=h["default"].subtract(n,e)),i.max&&(r=h["default"].add(r,e)),{min:n,max:r}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var i=t.max-t.min,n=this.millisecondTypes,r=this.millisecondMap,o=n.length-1,s=void 0;return i?n.every(function(t,a){var u=r[t],l=Math.floor(i/u),h=void 0;return l&&(h=a0?e.min=0:0===n?e.max=10:e.max=0}else 0===e.min&&0===e.max?e.max=10:e.min===e.max&&(e.min-=e.min/10,e.max+=e.max/10);return e},_calculateDatetimeScale:function(t,e,i){var n=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),r=n.dataLimit;i&&(r=this._makeLimitForDivergingOption(r));var o=(0,f["default"])({min:r.min,max:r.max,offsetSize:e,minimumStepSize:1});return o=this._restoreScaleToDatetimeType(o,n.minDate,n.divisionNumber)},_calculatePercentStackedScale:function(t,e){var i=void 0;return i=0===h["default"].sumMinusValues(t)?a["default"].PERCENT_STACKED_AXIS_SCALE:0===h["default"].sumPlusValues(t)?a["default"].MINUS_PERCENT_STACKED_AXIS_SCALE:e?a["default"].DIVERGING_PERCENT_STACKED_AXIS_SCALE:a["default"].DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t){var e=t.options,i=e.limitOption,n=void 0===i?{}:i,r=e.useSpectrumLegend,o=t.baseSize,a=t.overflowItem,s=t.chartType,l=this._getLimitSafely(t.baseValues),h=(0,m["default"])(n.min),c=(0,m["default"])(n.max),p=l.min,d=l.max,g=void 0,y=t.options.stepCount;h&&(p=n.min,y=null),c&&(d=n.max,y=null);var _=(0,f["default"])({min:p,max:d,stepCount:y,offsetSize:o});return r||(g=this._isOverflowed(a,_,l,h,c)),g&&!u["default"].isMapTypeChart(s)&&(_.limit=this._adjustLimitForOverflow(_.limit,_.step,g)),t.isDiverging&&(_.limit=this._makeLimitForDivergingOption(_.limit)),_},_isOverflowed:function(t,e,i,n,r){var o=!(!t||!t.minItem),a=!(!t||!t.maxItem),s=e.limit,u=o||!n&&s.min===i.min&&0!==s.min,l=a||!r&&s.max===i.max&&0!==s.max;return u||l?{min:u,max:l}:null},makeScaleData:function(t,e,i,n){var r=void 0,o=u["default"].isDivergingChart(i,n.diverging),a=n.overflowItem;return u["default"].isPercentStackChart(i,n.stack)?r=this._calculatePercentStackedScale(t,o):u["default"].isDatetimeType(n.type)?r=this._calculateDatetimeScale(t,e,o):(u["default"].isRadialChart(i)&&(n.stepCount=Math.floor(e/100)),r=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:o,chartType:i,options:n})),r}};e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function o(t){for(var e=void 0,i=0,n=f.length;i1?1:1/o,s=i*a,u=e,l=!1;return e=Math.ceil(e*a/s)*s/a,l=s/2>e-u,n&&l&&(e+=s),t=t>i?Math.floor(t*a/s)*s/a:t<0?-(Math.ceil(Math.abs(t)*a/s)*s)/a:0,{min:t,max:e}}function u(t,e){var i=1/Math.min(r(t),r(e));return Math.ceil(t*i/(e*i))}function l(t,e){var i=a(t.step),n=s(t.limit.min,t.limit.max,i,e),r=Math.abs(n.max-n.min),o=u(r,i);return{limit:{min:n.min,max:n.max},step:i,stepCount:o}}function h(t,e,i,n,r){var o=Math.abs(e-t),a=o/i;n||(n=Math.ceil(i/g));var s=i/n,u=a*s;return(0,d["default"])(r)&&ui.labelInterval&&(r=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),h["default"].isDatetimeType(i.type)&&(r=m["default"].formatDates(r,i.dateFormat)),t.aligned||(n+=1),{labels:r,tickCount:n,validTickCount:n,isLabelAxis:!0,options:i,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,i=t.tickCount,n=t.limit,r=t.step,o=t.options,a=t.isVertical,s=t.isPositionRight,u=t.aligned,l={labels:e,tickCount:i,limit:n,step:r,options:o,validTickCount:i,dataMin:n.min,distance:n.max-n.min,isVertical:!!a,isPositionRight:!!s,aligned:!!u};return l},makeAdditionalDataForCoordinateLineType:function(t,e,i,n,r){var o=_["default"].min(e),a=_["default"].max(e),s=a-o,u=0,l=1;return s&&(i.mina&&(i.max-=n,l-=(a-i.max)/s,r-=1,t.pop())),{labels:t,tickCount:r,limit:i,distance:s,positionRatio:u,sizeRatio:l,validTickCount:r,dataMin:o}},_makeAdjustingIntervalInfo:function(t,e,i){var n=void 0,r=parseInt(e/i,10),o=null,a=parseInt(t/r,10);return a>1&&(n=t-a*r,n>=a&&(r+=parseInt(n/a,0),n%=a),o={blockCount:r,beforeRemainBlockCount:n,interval:a}),o},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,n=[],r=f["default"].divisors(t);if(r.forEach(function(i){var r=i/t*e;r>=v&&r<=x&&n.push({interval:i,blockCount:t/i,beforeRemainBlockCount:0})}),0===n.length){var o=(0,a["default"])(v,x,T);n=o.map(function(n){return i._makeAdjustingIntervalInfo(t,e,n)})}return n.filter(function(t){return!!t})},_calculateAdjustingIntervalInfo:function(t,e){var i=this._makeCandidatesForAdjustingInterval(t,e),n=null;return i.length&&(n=_["default"].max(i,function(t){return t.blockCount})),n},_makeFilteredLabelsByInterval:function(t,e,i){return t.slice(e).filter(function(t,e){return e%i===0})},updateLabelAxisDataForAutoTickInterval:function(t,e,i,n){n&&(t.tickCount-=1,t.labels.pop());var r=t.tickCount-1,o=this._calculateAdjustingIntervalInfo(r,e);if(o){t.eventTickCount=t.tickCount;var a=o.blockCount,s=o.beforeRemainBlockCount,u=o.interval,l=a+1,h=0,c=t.labels[t.labels.length-1];t.labels=this._makeFilteredLabelsByInterval(t.labels,h,u),s>0&&t.labels.push(c),Object.assign(t,{startIndex:h,tickCount:l,interval:u,positionRatio:h/r,sizeRatio:1-s/r,remainLastBlockInterval:s})}},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var n=e.interval,r=e.startIndex,o=t.tickCount-1,a=i?i-1:0,s=o/n;a&&2*a<=s&&(n*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,r,n),s=t.labels.length-1;var u=o-n*s;Object.assign(t,{startIndex:r,interval:n,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:r/o,sizeRatio:1-u/o})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var n=String(t).split(" "),o=[],a=r(n,1),s=a[0];return n.slice(1).forEach(function(t){var n=m["default"].getRenderedLabelWidth(s+" "+t,i);n>e?(o.push(s),s=t):s+=" "+t}),s&&o.push(s),o.join("\n")},_createMultilineLabels:function(t,e,i){var n=this._createMultilineLabel;return t.map(function(t){return n(t,i,e)})},_calculateMultilineHeight:function(t,e,i){return m["default"].getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,n,r){var o=r.series.width,a=this._calculateXAxisLabelAreaWidth(n,o,e),s=this._createMultilineLabels(t,i,a),u=this._calculateMultilineHeight(s,i,a),l=m["default"].getRenderedLabelsMaxHeight(t,i);return{multilineLabels:s,overflowHeight:u-l,overflowLeft:0}},_findRotationDegree:function(t,e,i){var n=null;return u["default"].DEGREE_CANDIDATES.every(function(r){var o=p["default"].calculateRotatedWidth(r,e,i);return n=r,!(o<=t)}),n},_calculateRotatedWidth:function(t,e,i,n){var r=m["default"].getRenderedLabelWidth(e,n),o=p["default"].calculateRotatedWidth(t,r,i);return o-=p["default"].calculateAdjacent(u["default"].ANGLE_90-t,i/2)},_calculateLimitWidth:function(t,e,i){var n=t;return e&&(n+=i/2),n},makeAdditionalDataForRotatedLabels:function(t,e,i,n,r){var o=m["default"].getRenderedLabelsMaxWidth(t,i),a=r.series.width,s=r.yAxis.width+(r.rightYAxis?r.rightYAxis.width:0),l=this._calculateXAxisLabelAreaWidth(n,a,e),h=null,c=2*u["default"].CHART_PADDING+s+a;if(l0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.series.length&&!e.categories.length&&(delete this.options.xAxis.tickInterval,this.options.tooltip.grouped=!1,this.options.series.shifting=!1),t.prototype.setData.call(this,e,i)},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype.onChangeCheckedLegends=function(t,e,i){this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,e,i)},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},r=void 0;r=this.dataProcessor.isCoordinateType()?function(i){var n=m["default"].isBubbleChart(i);e.dataProcessor.addDataRatiosForCoordinateType(i,t,n)}:function(i){var r=n[i]||n,o=r.stack;e.dataProcessor.addDataRatios(t[i],o,i)},(0,u["default"])(i,r)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("xAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("legend","legend"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={},e=this.options.xAxis,i=this.options.yAxis,n=void 0,r=void 0;return this.dataProcessor.isCoordinateType()?(r=e&&"datetime"===e.type,n=r&&(0,h["default"])(e.dateFormat),t.xAxis={valueType:"x"},r&&(t.xAxis.type=(e||{}).dateTime),n&&(t.xAxis.format=(e||{}).dateFormat),t.yAxis={valueType:"y"}):this.hasRightYAxis?(t.yAxis=this._makeYAxisScaleOption("yAxis",i[0]),t.rightYAxis=this._makeYAxisScaleOption("yAxis",i[1])):t.yAxis=!0,t},e.prototype._makeYAxisScaleOption=function(t,e){return{options:e,areaType:"yAxis"}},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=b["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData((0,p["default"])(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(f["default"]);e["default"]=A},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(154),a=n(o),s=i(164),u=n(s),l=function(){function t(e){var i=this;r(this,t);var n=function o(){i.isInitRenderCompleted=!0,i.chart.off(o)};this.chart=e,this.isInitRenderCompleted=!1,this.chart.on("load",n),this.reset()}return t.prototype.reset=function(){this.lookupping=!1,this.paused=!1,this.rerenderingDelayTimerId=null,this.addedDataCount=0,this.checkedLegends=null,this.prevXAxisData=null},t.prototype._calculateAnimateTickSize=function(t){var e=this.chart.dataProcessor,i=this.chart.options.xAxis.tickInterval,n=!!this.chart.options.series.shifting,r=void 0;return r=e.isCoordinateType()?e.getValues(this.chart.chartType,"x").length-1:e.getCategoryCount(!1)-1,n&&!u["default"].isAutoTickInterval(i)&&(r-=1),t/r},t.prototype._animateForAddingData=function(){var t=this.chart,e=t.readyForRender(!0),i=!!this.chart.options.series.shifting;this.addedDataCount+=1;var n=this._calculateAnimateTickSize(e.dimensionMap.xAxis.width);t.componentManager.render("animateForAddingData",e,{tickSize:n,shifting:i}),i&&t.dataProcessor.shiftData()},t.prototype._rerenderForAddingData=function(){var t=this.chart,e=t.readyForRender();t.componentManager.render("rerender",e); },t.prototype._checkForAddedData=function(){var t=this,e=this.chart,i=e.dataProcessor.addDataFromDynamicData();return i?this.paused?void(e.options.series.shifting&&e.dataProcessor.shiftData()):(this._animateForAddingData(),void(this.rerenderingDelayTimerId=setTimeout(function(){t.rerenderingDelayTimerId=null,t._rerenderForAddingData(),t._checkForAddedData()},400))):void(this.lookupping=!1)},t.prototype.changeCheckedLegends=function(t,e,i){var n=this,r=this.chart,o=!!r.options.series.shifting,s=this.paused;s||this.pauseAnimation(),this.checkedLegends=t,r.protectedRerender(t,e,i),s||setTimeout(function(){r.dataProcessor.addDataFromRemainDynamicData(o),n.restartAnimation()},a["default"].RERENDER_TIME)},t.prototype.pauseAnimation=function(){this.paused=!0,this.rerenderingDelayTimerId&&(clearTimeout(this.rerenderingDelayTimerId),this.rerenderingDelayTimerId=null,this.chart.options.series.shifting&&this.chart.dataProcessor.shiftData())},t.prototype.restartAnimation=function(){this.paused=!1,this.lookupping=!1,this._startLookup()},t.prototype._startLookup=function(){this.lookupping||(this.lookupping=!0,this._checkForAddedData())},t.prototype.addData=function(t,e){e||(e=t,t=null),this.chart.dataProcessor.addDynamicData(t,e),this.isInitRenderCompleted?this._startLookup():e&&(this.addedDataCount+=1)},t}();e["default"]=l},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(152),u=n(s),l=i(195),h=n(l),c=i(286),p=n(c),d=i(181),f=n(d),g=i(247),m=n(g),y=function(t){function e(i,n,a){r(this,e),f["default"].removeSeriesStack(i.series);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-area-chart",s.Series=m["default"],s._dynamicDataHelper=new p["default"](s),s}return a(e,t),e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype.onChangeCheckedLegends=function(t,e,i){this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,e,i)},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},r=void 0;r=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var r=n[i]||n,o=r.stack;e.dataProcessor.addDataRatios(t[i],o,i)},i.forEach(r)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("areaSeries","areaSeries"),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.isCoordinateType()?(t.xAxis={valueType:"x"},t.yAxis={valueType:"y"}):t.yAxis=!0,t},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=f["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData((0,u["default"])(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(h["default"]);e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(195),l=n(u),h=i(181),c=n(h),p=i(164),d=n(p),f=i(289),g=n(f),m=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.grouped=!0;var s=(0,g["default"])({rawSeriesData:i.series,yAxisOptions:a.yAxis}),u=o(this,t.call(this,{rawData:i,theme:n,options:a,chartTypes:s.chartTypes,seriesTypes:s.seriesTypes,hasAxes:!0,isVertical:!0}));return u.yAxisOptions=u._makeYAxisOptions(u.chartTypes,a.yAxis),u}return a(e,t),e.prototype._makeYAxisOptions=function(t,e){var i={};return e=e||{},t.forEach(function(t,n){i[t]=e[n]||e}),i},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=c["default"].filterCheckedRawData(e,t),n=(0,g["default"])({rawSeriesData:i.series,yAxisOptions:this.options.yAxis});this.chartTypes=n.chartTypes,this.seriesTypes=n.seriesTypes,this.protectedRerender(t,i,n)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("columnSeries","columnSeries"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("yAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={yAxis:this._makeYAxisScaleOption("yAxis",this.chartTypes[0],!this.hasRightYAxis)};return this.hasRightYAxis&&(t.rightYAxis=this._makeYAxisScaleOption("rightYAxis",this.chartTypes[1])),t},e.prototype._makeYAxisScaleOption=function(t,e,i){var n=this.yAxisOptions[e],r={isSingleYAxis:!!i};return i&&this.options.series&&this._setAdditionalOptions(r),{options:n,areaType:"yAxis",chartType:e,additionalOptions:r}},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var n=s(i,2),r=n[0],o=n[1];if(o.stackType){var a=e.findChartType(r);d["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stackType=o.stackType)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},r=function(i){var r=n[i]||n,o=r.stack;e.dataProcessor.addDataRatios(t[i],o,i)};i.forEach(r)},e}(l["default"]);e["default"]=m},function(t,e){"use strict";function i(t){var e=t.rawSeriesData,i=t.yAxisOptions,r=n(e,i);return{chartTypes:r.chartTypes,seriesTypes:r.seriesTypes}}function n(t,e){var i=Object.keys(t).sort(),n=r(i,e),o=n.length?n:i,a=n.filter(function(e){return t[e].length}),s=void 0;return s=1===a.length?{chartTypes:a,seriesTypes:a}:{chartTypes:o,seriesTypes:i}}function r(t,e){var i=t.slice(),n=[].concat(e||[]),r=!1,o=void 0;return!n.length||1===n.length&&!n[0].chartType?i=[]:n.length&&(o=n.map(function(t){return t.chartType}),o.forEach(function(t,e){r=r||t&&i[e]!==t||!1}),r&&i.reverse()),i}e.__esModule=!0,e["default"]=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(141),u=n(s),l=i(195),h=n(l),c=function(t){function e(i,n,a){return r(this,e),o(this,t.call(this,{rawData:i,theme:n,options:a,chartTypes:["line","scatter"],seriesTypes:["line","scatter"],hasAxes:!0,isVertical:!0}))}return a(e,t),e.prototype.getScaleOption=function(){return{yAxis:{valueType:"y"},xAxis:{valueType:"x"}}},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)};(0,u["default"])(i,n)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(h["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(152),l=n(u),h=i(141),c=n(h),p=i(195),d=n(p),f=i(181),g=n(f),m=i(164),y=n(m),_=i(289),v=n(_),x=i(286),T=n(x),b=function(t){function e(i,n,a){r(this,e);var s=(0,v["default"])({rawSeriesData:i.series,yAxisOptions:a.yAxis});a.tooltip=a.tooltip||{},a.tooltip.grouped=!0;var u=o(this,t.call(this,{rawData:i,theme:n,options:a,seriesTypes:s.seriesTypes,chartTypes:s.chartTypes,hasAxes:!0,isVertical:!0}));return u.yAxisOptions=u._makeYAxisOptions(u.chartTypes,a.yAxis),u._dynamicDataHelper=new T["default"](u),u.className="tui-combo-chart",u}return a(e,t),e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getCurrentData(),i=g["default"].filterCheckedRawData(e,t),n=(0,v["default"])({rawSeriesData:i.series,yAxisOptions:this.options.yAxis});this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,i,n)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("areaSeries","areaSeries"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={yAxis:this._makeYAxisScaleOption("yAxis",this.chartTypes[0],!this.hasRightYAxis)};return this.hasRightYAxis&&(t.rightYAxis=this._makeYAxisScaleOption("rightYAxis",this.chartTypes[1])),t},e.prototype._makeYAxisScaleOption=function(t,e,i){var n=this.yAxisOptions[e],r={isSingleYAxis:!!i};return i&&this.options.series&&this._setAdditionalOptions(r),{options:n,areaType:"yAxis",chartType:e,additionalOptions:r}},e.prototype._makeYAxisOptions=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={};return t.forEach(function(t,n){i[t]=e[n]||e}),i},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var n=s(i,2),r=n[0],o=n[1];if(o.stackType){var a=e.findChartType(r);y["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stack=o.stack)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},r=void 0;r=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var r=n[i]||n,o=r.stack;e.dataProcessor.addDataRatios(t[i],o,i)},(0,c["default"])(i,r)},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=g["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData((0,l["default"])(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(d["default"]);e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(181),h=n(l),c=function(t){function e(i,n,a){r(this,e);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,seriesTypes:Object.keys(i.series).sort(),chartTypes:["pie","pie"],isVertical:!0}));return s.className="tui-combo-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){var t=this,e=this.seriesTypes||[this.chartType];e.forEach(function(e){t.dataProcessor.addDataRatiosOfPieChart(e)})},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=h["default"].filterCheckedRawData(e,t);u["default"].prototype.onChangeCheckedLegends.call(this,t,i,{seriesTypes:this.seriesTypes})},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(154),h=n(l),c=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION);var s=o(this,t.call(this,{rawData:i,theme:n,options:a}));return s.className="tui-pie-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(145),u=n(s),l=i(195),h=n(l),c=i(154),p=n(c),d=function(t){function e(i,n,a){r(this,e),a=Object.assign({tooltip:{},circleLegend:{}},a),a.circleLegend=Object.assign({visible:!0},a.circleLegend),a.tooltip=Object.assign({align:p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION,grouped:!1},a.tooltip);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-bubble-chart",s}return a(e,t),e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},e.prototype._setDefaultOptions=function(t){h["default"].prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},(0,u["default"])(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(154),h=n(l),c=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-scatter-chart",s}return a(e,t),e.prototype.getScaleOption=function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(297),h=n(l),c=i(154),p=n(c),d=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-heatmap-chart",s}return a(e,t),e.prototype._addComponents=function(){var t=this.theme.series[this.chartType],e=new h["default"](t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new h["default"](t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip",{colorSpectrum:e}),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);ee)return String(t);for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;this.mapModel.clearMapData(),t.prototype.setData.call(this,e)},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend)},e}(u["default"]);e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(145),a=n(o),s=i(189),u=n(s),l=i(154),h=n(l),c=i(158),p=n(c),d=function(){function t(e,i){r(this,t),this.commandFuncMap={M:this._makeCoordinate.bind(this),m:this._makeCoordinateFromRelativeCoordinate.bind(this),L:this._makeCoordinate.bind(this),l:this._makeCoordinateFromRelativeCoordinate.bind(this),H:this._makeXCoordinate.bind(this),h:this._makeXCoordinateFroRelativeCoordinate.bind(this),V:this._makeYCoordinate.bind(this),v:this._makeYCoordinateFromRelativeCoordinate.bind(this)},this.ignoreCommandMap={Z:!0,z:!0},this.mapDimension=null,this.dataProcessor=e,this.rawMapData=i,this.mapData=null}return t.prototype._splitCoordinate=function(t){var e=t.split(","),i={x:parseFloat(e[0])};return e[1]&&(i.y=parseFloat(e[1])),i},t.prototype._makeCoordinate=function(t){return this._splitCoordinate(t)},t.prototype._makeCoordinateFromRelativeCoordinate=function(t,e){var i=this._splitCoordinate(t);return{x:i.x+e.x,y:i.y+e.y}},t.prototype._makeXCoordinate=function(t){var e=this._splitCoordinate(t);return{x:e.x}},t.prototype._makeXCoordinateFroRelativeCoordinate=function(t,e){var i=this._splitCoordinate(t);return{x:i.x+e.x}},t.prototype._makeYCoordinate=function(t){var e=this._splitCoordinate(t);return{y:e.x}},t.prototype._makeYCoordinateFromRelativeCoordinate=function(t,e){var i=this._splitCoordinate(t);return{y:i.x+e.y}},t.prototype._splitPath=function(t){for(var e=t.length,i=[],n="",r=void 0,o=0;o1&&void 0!==arguments[1]?arguments[1]:{},i=e.commandType,n=e.coordinate;i&&n&&t.push({type:i,coordinate:n})},t.prototype._makeCoordinatesFromPath=function(t){var e=this,i=this._splitPath(t),n={x:0,y:0};return i.map(function(t){var i=e.commandFuncMap[t.type],r=i(t.coordinate,n);return Object.assign(n,r),r})},t.prototype._findBoundFromCoordinates=function(t){var e=(0,u["default"])(t,"x").filter(function(t){return!(0,a["default"])(t)}),i=(0,u["default"])(t,"y").filter(function(t){return!(0,a["default"])(t)}),n=p["default"].max(e),r=p["default"].min(e),o=p["default"].max(i),s=p["default"].min(i);return{dimension:{width:n-r,height:o-s},position:{left:r,top:s}}},t.prototype._makeLabelPosition=function(t,e){return e=e||h["default"].MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},t.prototype._createMapData=function(t){var e=this;return t.map(function(t){var i=e._makeCoordinatesFromPath(t.path),n=e._findBoundFromCoordinates(i),r=e.dataProcessor.getValueMapDatum(t.code),o=void 0,a=void 0,s=void 0,u=void 0;r&&(s=r.label,u=r.ratio,o=r.name||t.name,a=r.labelCoordinate||t.labelCoordinate);var l={code:t.code,name:o,path:t.path,bound:n,labelPosition:e._makeLabelPosition(n,a)};return s&&(l.label=s),u>=0&&(l.ratio=u),l})},t.prototype.clearMapData=function(){this.mapData=null},t.prototype.getMapData=function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},t.prototype.getDatum=function(t){return this.getMapData()[t]},t.prototype.getLabelData=function(t){var e=this,i=this.getMapData(),n=i.filter(function(t){return e.dataProcessor.getValueMapDatum(t.code)});return n.map(function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}})},t.prototype._makeMapDimension=function(){var t=this.getMapData(),e=t.map(function(t){return t.bound.position.left}),i=t.map(function(t){return t.bound.position.left+t.bound.dimension.width}),n=t.map(function(t){return t.bound.position.top}),r=t.map(function(t){return t.bound.position.top+t.bound.dimension.height});return{width:p["default"].max(i)-p["default"].min(e),height:p["default"].max(r)-p["default"].min(n)}},t.prototype.getMapDimension=function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(189),u=n(s),l=i(262),h=n(l),c=i(148),p=n(c),d=function(t){function e(i,n,a){r(this,e);var s=o(this,t.call(this));return s.rawData=i,s.options=a,s}return a(e,t),e.prototype.initData=function(t){this.rawData=t,this.valueMap=null},e.prototype._makeValueMap=function(){var t=this.rawData.series.map,e={},i=this._findFormatFunctions();return t.forEach(function(t){var n={value:t.data,label:p["default"].formatValue({value:t.data,formatFunctions:i,chartType:"map",areaType:"series"})};t.name&&(n.name=t.name),t.labelCoordinate&&(n.labelCoordinate=t.labelCoordinate),e[t.code]=n}),e},e.prototype.getValueMap=function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},e.prototype.getValues=function(){return(0,u["default"])(this.getValueMap(),"value")},e.prototype.getCurrentData=function(){return this.rawData},e.prototype.getValueMapDatum=function(t){return this.getValueMap()[t]},e.prototype.addDataRatios=function(t){var e=t.min,i=t.max-e,n=Object.values(this.getValueMap());n.forEach(function(t){t.ratio=(t.value-e)/i})},e.prototype.createBaseValuesForLimit=function(){return this.getValues()},e.prototype.getLegendVisibility=function(){return null},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(244),h=n(l),c=function(t){function e(i,n,a){r(this,e),a.tooltip&&(a.tooltip.grouped=!1);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-radial-chart",s.Series=h["default"],s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e.prototype.getScaleOption=function(){return{yAxis:{}}},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(181),h=n(l),c=function(t){function e(i,n,a){r(this,e),h["default"].appendOutliersToSeriesData(i);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-boxplot-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,n=this.chartType,r=i[n]||i,o=r.stack;this.dataProcessor.addDataRatios(t[n],o,n)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(195),u=n(s),l=i(181),h=n(l),c=function(t){function e(i,n,a){r(this,e),h["default"]._makeRawSeriesDataForBulletChart(i);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!!a.series.vertical}));return s.className="tui-bullet-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return this.isVertical?{yAxis:!0}:{xAxis:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var r=i(154),o=n(r),a=i(183),s=n(a),u=i(184),l=n(u);s["default"].register(o["default"].DEFAULT_THEME_NAME,l["default"])},function(t,e){}])});